1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for isl 0.12.2. 4# 5# Report bugs to <isl-development@googlegroups.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: isl-development@googlegroups.com about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='isl' 592PACKAGE_TARNAME='isl' 593PACKAGE_VERSION='0.12.2' 594PACKAGE_STRING='isl 0.12.2' 595PACKAGE_BUGREPORT='isl-development@googlegroups.com' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638GIT_HEAD_VERSION 639GIT_HEAD 640GIT_HEAD_ID 641pkgconfig_libfile 642pkgconfig_libdir 643WARNING_FLAGS 644HAVE_CLANG_FALSE 645HAVE_CLANG_TRUE 646LIB_CLANG_EDIT 647llvm_config_found 648CLANG_LIBS 649CLANG_LDFLAGS 650CLANG_CXXFLAGS 651HAVE_PIPLIB_FALSE 652HAVE_PIPLIB_TRUE 653PIPLIB_LIBS 654PIPLIB_LDFLAGS 655PIPLIB_CPPFLAGS 656NEED_GET_MEMORY_FUNCTIONS_FALSE 657NEED_GET_MEMORY_FUNCTIONS_TRUE 658GMP_LIBS 659GMP_LDFLAGS 660GMP_CPPFLAGS 661GENERATE_DOC_FALSE 662GENERATE_DOC_TRUE 663POD2HTML 664PDFLATEX 665PERL 666CXXCPP 667CPP 668OTOOL64 669OTOOL 670LIPO 671NMEDIT 672DSYMUTIL 673MANIFEST_TOOL 674RANLIB 675ac_ct_AR 676AR 677DLLTOOL 678OBJDUMP 679LN_S 680NM 681ac_ct_DUMPBIN 682DUMPBIN 683LD 684FGREP 685EGREP 686GREP 687SED 688LIBTOOL 689PRTDIAG 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698am__fastdepCXX_FALSE 699am__fastdepCXX_TRUE 700CXXDEPMODE 701ac_ct_CXX 702CXXFLAGS 703CXX 704am__fastdepCC_FALSE 705am__fastdepCC_TRUE 706CCDEPMODE 707am__nodep 708AMDEPBACKSLASH 709AMDEP_FALSE 710AMDEP_TRUE 711am__quote 712am__include 713DEPDIR 714OBJEXT 715EXEEXT 716ac_ct_CC 717CPPFLAGS 718LDFLAGS 719CFLAGS 720CC 721versioninfo 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_alias 750host_alias 751build_alias 752LIBS 753ECHO_T 754ECHO_N 755ECHO_C 756DEFS 757mandir 758localedir 759libdir 760psdir 761pdfdir 762dvidir 763htmldir 764infodir 765docdir 766oldincludedir 767includedir 768localstatedir 769sharedstatedir 770sysconfdir 771datadir 772datarootdir 773libexecdir 774sbindir 775bindir 776program_transform_name 777prefix 778exec_prefix 779PACKAGE_URL 780PACKAGE_BUGREPORT 781PACKAGE_STRING 782PACKAGE_VERSION 783PACKAGE_TARNAME 784PACKAGE_NAME 785PATH_SEPARATOR 786SHELL' 787ac_subst_files='' 788ac_user_opts=' 789enable_option_checking 790enable_silent_rules 791enable_dependency_tracking 792enable_portable_binary 793with_gcc_arch 794enable_shared 795enable_static 796with_pic 797enable_fast_install 798with_gnu_ld 799with_sysroot 800enable_libtool_lock 801with_gmp 802with_gmp_prefix 803with_gmp_exec_prefix 804with_gmp_builddir 805with_piplib 806with_piplib_prefix 807with_piplib_exec_prefix 808with_piplib_builddir 809with_clang 810with_clang_prefix 811with_clang_exec_prefix 812' 813 ac_precious_vars='build_alias 814host_alias 815target_alias 816CC 817CFLAGS 818LDFLAGS 819LIBS 820CPPFLAGS 821CXX 822CXXFLAGS 823CCC 824CPP 825CXXCPP' 826 827 828# Initialize some variables set by options. 829ac_init_help= 830ac_init_version=false 831ac_unrecognized_opts= 832ac_unrecognized_sep= 833# The variables have the same names as the options, with 834# dashes changed to underlines. 835cache_file=/dev/null 836exec_prefix=NONE 837no_create= 838no_recursion= 839prefix=NONE 840program_prefix=NONE 841program_suffix=NONE 842program_transform_name=s,x,x, 843silent= 844site= 845srcdir= 846verbose= 847x_includes=NONE 848x_libraries=NONE 849 850# Installation directory options. 851# These are left unexpanded so users can "make install exec_prefix=/foo" 852# and all the variables that are supposed to be based on exec_prefix 853# by default will actually change. 854# Use braces instead of parens because sh, perl, etc. also accept them. 855# (The list follows the same order as the GNU Coding Standards.) 856bindir='${exec_prefix}/bin' 857sbindir='${exec_prefix}/sbin' 858libexecdir='${exec_prefix}/libexec' 859datarootdir='${prefix}/share' 860datadir='${datarootdir}' 861sysconfdir='${prefix}/etc' 862sharedstatedir='${prefix}/com' 863localstatedir='${prefix}/var' 864includedir='${prefix}/include' 865oldincludedir='/usr/include' 866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 867infodir='${datarootdir}/info' 868htmldir='${docdir}' 869dvidir='${docdir}' 870pdfdir='${docdir}' 871psdir='${docdir}' 872libdir='${exec_prefix}/lib' 873localedir='${datarootdir}/locale' 874mandir='${datarootdir}/man' 875 876ac_prev= 877ac_dashdash= 878for ac_option 879do 880 # If the previous option needs an argument, assign it. 881 if test -n "$ac_prev"; then 882 eval $ac_prev=\$ac_option 883 ac_prev= 884 continue 885 fi 886 887 case $ac_option in 888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 889 *=) ac_optarg= ;; 890 *) ac_optarg=yes ;; 891 esac 892 893 # Accept the important Cygnus configure options, so we can diagnose typos. 894 895 case $ac_dashdash$ac_option in 896 --) 897 ac_dashdash=yes ;; 898 899 -bindir | --bindir | --bindi | --bind | --bin | --bi) 900 ac_prev=bindir ;; 901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 902 bindir=$ac_optarg ;; 903 904 -build | --build | --buil | --bui | --bu) 905 ac_prev=build_alias ;; 906 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 907 build_alias=$ac_optarg ;; 908 909 -cache-file | --cache-file | --cache-fil | --cache-fi \ 910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 911 ac_prev=cache_file ;; 912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 914 cache_file=$ac_optarg ;; 915 916 --config-cache | -C) 917 cache_file=config.cache ;; 918 919 -datadir | --datadir | --datadi | --datad) 920 ac_prev=datadir ;; 921 -datadir=* | --datadir=* | --datadi=* | --datad=*) 922 datadir=$ac_optarg ;; 923 924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 925 | --dataroo | --dataro | --datar) 926 ac_prev=datarootdir ;; 927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 929 datarootdir=$ac_optarg ;; 930 931 -disable-* | --disable-*) 932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 935 as_fn_error $? "invalid feature name: $ac_useropt" 936 ac_useropt_orig=$ac_useropt 937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 938 case $ac_user_opts in 939 *" 940"enable_$ac_useropt" 941"*) ;; 942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 943 ac_unrecognized_sep=', ';; 944 esac 945 eval enable_$ac_useropt=no ;; 946 947 -docdir | --docdir | --docdi | --doc | --do) 948 ac_prev=docdir ;; 949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 950 docdir=$ac_optarg ;; 951 952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 953 ac_prev=dvidir ;; 954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 955 dvidir=$ac_optarg ;; 956 957 -enable-* | --enable-*) 958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 959 # Reject names that are not valid shell variable names. 960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 961 as_fn_error $? "invalid feature name: $ac_useropt" 962 ac_useropt_orig=$ac_useropt 963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 964 case $ac_user_opts in 965 *" 966"enable_$ac_useropt" 967"*) ;; 968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 969 ac_unrecognized_sep=', ';; 970 esac 971 eval enable_$ac_useropt=\$ac_optarg ;; 972 973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 975 | --exec | --exe | --ex) 976 ac_prev=exec_prefix ;; 977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 979 | --exec=* | --exe=* | --ex=*) 980 exec_prefix=$ac_optarg ;; 981 982 -gas | --gas | --ga | --g) 983 # Obsolete; use --with-gas. 984 with_gas=yes ;; 985 986 -help | --help | --hel | --he | -h) 987 ac_init_help=long ;; 988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 989 ac_init_help=recursive ;; 990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 991 ac_init_help=short ;; 992 993 -host | --host | --hos | --ho) 994 ac_prev=host_alias ;; 995 -host=* | --host=* | --hos=* | --ho=*) 996 host_alias=$ac_optarg ;; 997 998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 999 ac_prev=htmldir ;; 1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1001 | --ht=*) 1002 htmldir=$ac_optarg ;; 1003 1004 -includedir | --includedir | --includedi | --included | --include \ 1005 | --includ | --inclu | --incl | --inc) 1006 ac_prev=includedir ;; 1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1008 | --includ=* | --inclu=* | --incl=* | --inc=*) 1009 includedir=$ac_optarg ;; 1010 1011 -infodir | --infodir | --infodi | --infod | --info | --inf) 1012 ac_prev=infodir ;; 1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1014 infodir=$ac_optarg ;; 1015 1016 -libdir | --libdir | --libdi | --libd) 1017 ac_prev=libdir ;; 1018 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1019 libdir=$ac_optarg ;; 1020 1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1022 | --libexe | --libex | --libe) 1023 ac_prev=libexecdir ;; 1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1025 | --libexe=* | --libex=* | --libe=*) 1026 libexecdir=$ac_optarg ;; 1027 1028 -localedir | --localedir | --localedi | --localed | --locale) 1029 ac_prev=localedir ;; 1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1031 localedir=$ac_optarg ;; 1032 1033 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1034 | --localstate | --localstat | --localsta | --localst | --locals) 1035 ac_prev=localstatedir ;; 1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1038 localstatedir=$ac_optarg ;; 1039 1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1041 ac_prev=mandir ;; 1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1043 mandir=$ac_optarg ;; 1044 1045 -nfp | --nfp | --nf) 1046 # Obsolete; use --without-fp. 1047 with_fp=no ;; 1048 1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1050 | --no-cr | --no-c | -n) 1051 no_create=yes ;; 1052 1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1055 no_recursion=yes ;; 1056 1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1059 | --oldin | --oldi | --old | --ol | --o) 1060 ac_prev=oldincludedir ;; 1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1064 oldincludedir=$ac_optarg ;; 1065 1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1067 ac_prev=prefix ;; 1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1069 prefix=$ac_optarg ;; 1070 1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1072 | --program-pre | --program-pr | --program-p) 1073 ac_prev=program_prefix ;; 1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1076 program_prefix=$ac_optarg ;; 1077 1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1079 | --program-suf | --program-su | --program-s) 1080 ac_prev=program_suffix ;; 1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1083 program_suffix=$ac_optarg ;; 1084 1085 -program-transform-name | --program-transform-name \ 1086 | --program-transform-nam | --program-transform-na \ 1087 | --program-transform-n | --program-transform- \ 1088 | --program-transform | --program-transfor \ 1089 | --program-transfo | --program-transf \ 1090 | --program-trans | --program-tran \ 1091 | --progr-tra | --program-tr | --program-t) 1092 ac_prev=program_transform_name ;; 1093 -program-transform-name=* | --program-transform-name=* \ 1094 | --program-transform-nam=* | --program-transform-na=* \ 1095 | --program-transform-n=* | --program-transform-=* \ 1096 | --program-transform=* | --program-transfor=* \ 1097 | --program-transfo=* | --program-transf=* \ 1098 | --program-trans=* | --program-tran=* \ 1099 | --progr-tra=* | --program-tr=* | --program-t=*) 1100 program_transform_name=$ac_optarg ;; 1101 1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1103 ac_prev=pdfdir ;; 1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1105 pdfdir=$ac_optarg ;; 1106 1107 -psdir | --psdir | --psdi | --psd | --ps) 1108 ac_prev=psdir ;; 1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1110 psdir=$ac_optarg ;; 1111 1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1113 | -silent | --silent | --silen | --sile | --sil) 1114 silent=yes ;; 1115 1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1117 ac_prev=sbindir ;; 1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1119 | --sbi=* | --sb=*) 1120 sbindir=$ac_optarg ;; 1121 1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1124 | --sharedst | --shareds | --shared | --share | --shar \ 1125 | --sha | --sh) 1126 ac_prev=sharedstatedir ;; 1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1130 | --sha=* | --sh=*) 1131 sharedstatedir=$ac_optarg ;; 1132 1133 -site | --site | --sit) 1134 ac_prev=site ;; 1135 -site=* | --site=* | --sit=*) 1136 site=$ac_optarg ;; 1137 1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1139 ac_prev=srcdir ;; 1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1141 srcdir=$ac_optarg ;; 1142 1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1144 | --syscon | --sysco | --sysc | --sys | --sy) 1145 ac_prev=sysconfdir ;; 1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1148 sysconfdir=$ac_optarg ;; 1149 1150 -target | --target | --targe | --targ | --tar | --ta | --t) 1151 ac_prev=target_alias ;; 1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1153 target_alias=$ac_optarg ;; 1154 1155 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1156 verbose=yes ;; 1157 1158 -version | --version | --versio | --versi | --vers | -V) 1159 ac_init_version=: ;; 1160 1161 -with-* | --with-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: $ac_useropt" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=\$ac_optarg ;; 1176 1177 -without-* | --without-*) 1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1179 # Reject names that are not valid shell variable names. 1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1181 as_fn_error $? "invalid package name: $ac_useropt" 1182 ac_useropt_orig=$ac_useropt 1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1184 case $ac_user_opts in 1185 *" 1186"with_$ac_useropt" 1187"*) ;; 1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1189 ac_unrecognized_sep=', ';; 1190 esac 1191 eval with_$ac_useropt=no ;; 1192 1193 --x) 1194 # Obsolete; use --with-x. 1195 with_x=yes ;; 1196 1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1198 | --x-incl | --x-inc | --x-in | --x-i) 1199 ac_prev=x_includes ;; 1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1202 x_includes=$ac_optarg ;; 1203 1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1206 ac_prev=x_libraries ;; 1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1209 x_libraries=$ac_optarg ;; 1210 1211 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1212Try \`$0 --help' for more information" 1213 ;; 1214 1215 *=*) 1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1217 # Reject names that are not valid shell variable names. 1218 case $ac_envvar in #( 1219 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1221 esac 1222 eval $ac_envvar=\$ac_optarg 1223 export $ac_envvar ;; 1224 1225 *) 1226 # FIXME: should be removed in autoconf 3.0. 1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1231 ;; 1232 1233 esac 1234done 1235 1236if test -n "$ac_prev"; then 1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1238 as_fn_error $? "missing argument to $ac_option" 1239fi 1240 1241if test -n "$ac_unrecognized_opts"; then 1242 case $enable_option_checking in 1243 no) ;; 1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1246 esac 1247fi 1248 1249# Check all directory arguments for consistency. 1250for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1251 datadir sysconfdir sharedstatedir localstatedir includedir \ 1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1253 libdir localedir mandir 1254do 1255 eval ac_val=\$$ac_var 1256 # Remove trailing slashes. 1257 case $ac_val in 1258 */ ) 1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1260 eval $ac_var=\$ac_val;; 1261 esac 1262 # Be sure to have absolute directory names. 1263 case $ac_val in 1264 [\\/$]* | ?:[\\/]* ) continue;; 1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1266 esac 1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1268done 1269 1270# There might be people who depend on the old broken behavior: `$host' 1271# used to hold the argument of --host etc. 1272# FIXME: To remove some day. 1273build=$build_alias 1274host=$host_alias 1275target=$target_alias 1276 1277# FIXME: To remove some day. 1278if test "x$host_alias" != x; then 1279 if test "x$build_alias" = x; then 1280 cross_compiling=maybe 1281 elif test "x$build_alias" != "x$host_alias"; then 1282 cross_compiling=yes 1283 fi 1284fi 1285 1286ac_tool_prefix= 1287test -n "$host_alias" && ac_tool_prefix=$host_alias- 1288 1289test "$silent" = yes && exec 6>/dev/null 1290 1291 1292ac_pwd=`pwd` && test -n "$ac_pwd" && 1293ac_ls_di=`ls -di .` && 1294ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1295 as_fn_error $? "working directory cannot be determined" 1296test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1297 as_fn_error $? "pwd does not report name of working directory" 1298 1299 1300# Find the source files, if location was not specified. 1301if test -z "$srcdir"; then 1302 ac_srcdir_defaulted=yes 1303 # Try the directory containing this script, then the parent directory. 1304 ac_confdir=`$as_dirname -- "$as_myself" || 1305$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1306 X"$as_myself" : 'X\(//\)[^/]' \| \ 1307 X"$as_myself" : 'X\(//\)$' \| \ 1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1309$as_echo X"$as_myself" | 1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\/\)[^/].*/{ 1315 s//\1/ 1316 q 1317 } 1318 /^X\(\/\/\)$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\).*/{ 1323 s//\1/ 1324 q 1325 } 1326 s/.*/./; q'` 1327 srcdir=$ac_confdir 1328 if test ! -r "$srcdir/$ac_unique_file"; then 1329 srcdir=.. 1330 fi 1331else 1332 ac_srcdir_defaulted=no 1333fi 1334if test ! -r "$srcdir/$ac_unique_file"; then 1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1337fi 1338ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1339ac_abs_confdir=`( 1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1341 pwd)` 1342# When building in place, set srcdir=. 1343if test "$ac_abs_confdir" = "$ac_pwd"; then 1344 srcdir=. 1345fi 1346# Remove unnecessary trailing slashes from srcdir. 1347# Double slashes in file names in object file debugging info 1348# mess up M-x gdb in Emacs. 1349case $srcdir in 1350*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1351esac 1352for ac_var in $ac_precious_vars; do 1353 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1354 eval ac_env_${ac_var}_value=\$${ac_var} 1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1356 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1357done 1358 1359# 1360# Report the --help message. 1361# 1362if test "$ac_init_help" = "long"; then 1363 # Omit some internal or obsolete options to make the list less imposing. 1364 # This message is too long to be a string in the A/UX 3.1 sh. 1365 cat <<_ACEOF 1366\`configure' configures isl 0.12.2 to adapt to many kinds of systems. 1367 1368Usage: $0 [OPTION]... [VAR=VALUE]... 1369 1370To assign environment variables (e.g., CC, CFLAGS...), specify them as 1371VAR=VALUE. See below for descriptions of some of the useful variables. 1372 1373Defaults for the options are specified in brackets. 1374 1375Configuration: 1376 -h, --help display this help and exit 1377 --help=short display options specific to this package 1378 --help=recursive display the short help of all the included packages 1379 -V, --version display version information and exit 1380 -q, --quiet, --silent do not print \`checking ...' messages 1381 --cache-file=FILE cache test results in FILE [disabled] 1382 -C, --config-cache alias for \`--cache-file=config.cache' 1383 -n, --no-create do not create output files 1384 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1385 1386Installation directories: 1387 --prefix=PREFIX install architecture-independent files in PREFIX 1388 [$ac_default_prefix] 1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1390 [PREFIX] 1391 1392By default, \`make install' will install all the files in 1393\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1394an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1395for instance \`--prefix=\$HOME'. 1396 1397For better control, use the options below. 1398 1399Fine tuning of the installation directories: 1400 --bindir=DIR user executables [EPREFIX/bin] 1401 --sbindir=DIR system admin executables [EPREFIX/sbin] 1402 --libexecdir=DIR program executables [EPREFIX/libexec] 1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1406 --libdir=DIR object code libraries [EPREFIX/lib] 1407 --includedir=DIR C header files [PREFIX/include] 1408 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1411 --infodir=DIR info documentation [DATAROOTDIR/info] 1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1413 --mandir=DIR man documentation [DATAROOTDIR/man] 1414 --docdir=DIR documentation root [DATAROOTDIR/doc/isl] 1415 --htmldir=DIR html documentation [DOCDIR] 1416 --dvidir=DIR dvi documentation [DOCDIR] 1417 --pdfdir=DIR pdf documentation [DOCDIR] 1418 --psdir=DIR ps documentation [DOCDIR] 1419_ACEOF 1420 1421 cat <<\_ACEOF 1422 1423Program names: 1424 --program-prefix=PREFIX prepend PREFIX to installed program names 1425 --program-suffix=SUFFIX append SUFFIX to installed program names 1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1427 1428System types: 1429 --build=BUILD configure for building on BUILD [guessed] 1430 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1431_ACEOF 1432fi 1433 1434if test -n "$ac_init_help"; then 1435 case $ac_init_help in 1436 short | recursive ) echo "Configuration of isl 0.12.2:";; 1437 esac 1438 cat <<\_ACEOF 1439 1440Optional Features: 1441 --disable-option-checking ignore unrecognized --enable/--with options 1442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1444 --enable-silent-rules less verbose build output (undo: `make V=1') 1445 --disable-silent-rules verbose build output (undo: `make V=0') 1446 --disable-dependency-tracking speeds up one-time build 1447 --enable-dependency-tracking do not reject slow dependency extractors 1448 --enable-portable-binary 1449 disable compiler optimizations that would produce 1450 unportable binaries 1451 --enable-shared[=PKGS] build shared libraries [default=yes] 1452 --enable-static[=PKGS] build static libraries [default=yes] 1453 --enable-fast-install[=PKGS] 1454 optimize for fast installation [default=yes] 1455 --disable-libtool-lock avoid locking (might break parallel builds) 1456 1457Optional Packages: 1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1460 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune, 1461 instead of guessing 1462 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1463 both] 1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1465 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1466 compiler's sysroot if not specified). 1467 --with-gmp=system|build Which gmp to use [default=system] 1468 --with-gmp-prefix=DIR Prefix of gmp installation 1469 --with-gmp-exec-prefix=DIR 1470 Exec prefix of gmp installation 1471 --with-gmp-builddir=DIR Location of gmp builddir 1472 --with-piplib=no|system|build 1473 Which piplib to use [default=no] 1474 --with-piplib-prefix=DIR 1475 Prefix of piplib installation 1476 --with-piplib-exec-prefix=DIR 1477 Exec prefix of piplib installation 1478 --with-piplib-builddir=DIR 1479 Location of piplib builddir 1480 --with-clang=system|no Which clang to use [default=no] 1481 --with-clang-prefix=DIR Prefix of clang installation 1482 --with-clang-exec-prefix=DIR 1483 Exec prefix of clang installation 1484 1485Some influential environment variables: 1486 CC C compiler command 1487 CFLAGS C compiler flags 1488 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1489 nonstandard directory <lib dir> 1490 LIBS libraries to pass to the linker, e.g. -l<library> 1491 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1492 you have headers in a nonstandard directory <include dir> 1493 CXX C++ compiler command 1494 CXXFLAGS C++ compiler flags 1495 CPP C preprocessor 1496 CXXCPP C++ preprocessor 1497 1498Use these variables to override the choices made by `configure' or to help 1499it to find libraries and programs with nonstandard names/locations. 1500 1501Report bugs to <isl-development@googlegroups.com>. 1502_ACEOF 1503ac_status=$? 1504fi 1505 1506if test "$ac_init_help" = "recursive"; then 1507 # If there are subdirs, report their specific --help. 1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1509 test -d "$ac_dir" || 1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1511 continue 1512 ac_builddir=. 1513 1514case "$ac_dir" in 1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1516*) 1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1518 # A ".." for each directory in $ac_dir_suffix. 1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1520 case $ac_top_builddir_sub in 1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1523 esac ;; 1524esac 1525ac_abs_top_builddir=$ac_pwd 1526ac_abs_builddir=$ac_pwd$ac_dir_suffix 1527# for backward compatibility: 1528ac_top_builddir=$ac_top_build_prefix 1529 1530case $srcdir in 1531 .) # We are building in place. 1532 ac_srcdir=. 1533 ac_top_srcdir=$ac_top_builddir_sub 1534 ac_abs_top_srcdir=$ac_pwd ;; 1535 [\\/]* | ?:[\\/]* ) # Absolute name. 1536 ac_srcdir=$srcdir$ac_dir_suffix; 1537 ac_top_srcdir=$srcdir 1538 ac_abs_top_srcdir=$srcdir ;; 1539 *) # Relative name. 1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1541 ac_top_srcdir=$ac_top_build_prefix$srcdir 1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1543esac 1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1545 1546 cd "$ac_dir" || { ac_status=$?; continue; } 1547 # Check for guested configure. 1548 if test -f "$ac_srcdir/configure.gnu"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1551 elif test -f "$ac_srcdir/configure"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure" --help=recursive 1554 else 1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1556 fi || ac_status=$? 1557 cd "$ac_pwd" || { ac_status=$?; break; } 1558 done 1559fi 1560 1561test -n "$ac_init_help" && exit $ac_status 1562if $ac_init_version; then 1563 cat <<\_ACEOF 1564isl configure 0.12.2 1565generated by GNU Autoconf 2.69 1566 1567Copyright (C) 2012 Free Software Foundation, Inc. 1568This configure script is free software; the Free Software Foundation 1569gives unlimited permission to copy, distribute and modify it. 1570_ACEOF 1571 exit 1572fi 1573 1574## ------------------------ ## 1575## Autoconf initialization. ## 1576## ------------------------ ## 1577 1578# ac_fn_c_try_compile LINENO 1579# -------------------------- 1580# Try to compile conftest.$ac_ext, and return whether this succeeded. 1581ac_fn_c_try_compile () 1582{ 1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1584 rm -f conftest.$ac_objext 1585 if { { ac_try="$ac_compile" 1586case "(($ac_try" in 1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1588 *) ac_try_echo=$ac_try;; 1589esac 1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1591$as_echo "$ac_try_echo"; } >&5 1592 (eval "$ac_compile") 2>conftest.err 1593 ac_status=$? 1594 if test -s conftest.err; then 1595 grep -v '^ *+' conftest.err >conftest.er1 1596 cat conftest.er1 >&5 1597 mv -f conftest.er1 conftest.err 1598 fi 1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1600 test $ac_status = 0; } && { 1601 test -z "$ac_c_werror_flag" || 1602 test ! -s conftest.err 1603 } && test -s conftest.$ac_objext; then : 1604 ac_retval=0 1605else 1606 $as_echo "$as_me: failed program was:" >&5 1607sed 's/^/| /' conftest.$ac_ext >&5 1608 1609 ac_retval=1 1610fi 1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1612 as_fn_set_status $ac_retval 1613 1614} # ac_fn_c_try_compile 1615 1616# ac_fn_cxx_try_compile LINENO 1617# ---------------------------- 1618# Try to compile conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_cxx_try_compile () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 rm -f conftest.$ac_objext 1623 if { { ac_try="$ac_compile" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_compile") 2>conftest.err 1631 ac_status=$? 1632 if test -s conftest.err; then 1633 grep -v '^ *+' conftest.err >conftest.er1 1634 cat conftest.er1 >&5 1635 mv -f conftest.er1 conftest.err 1636 fi 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } && { 1639 test -z "$ac_cxx_werror_flag" || 1640 test ! -s conftest.err 1641 } && test -s conftest.$ac_objext; then : 1642 ac_retval=0 1643else 1644 $as_echo "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=1 1648fi 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652} # ac_fn_cxx_try_compile 1653 1654# ac_fn_c_try_run LINENO 1655# ---------------------- 1656# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1657# that executables *can* be run. 1658ac_fn_c_try_run () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 if { { ac_try="$ac_link" 1662case "(($ac_try" in 1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1664 *) ac_try_echo=$ac_try;; 1665esac 1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1667$as_echo "$ac_try_echo"; } >&5 1668 (eval "$ac_link") 2>&5 1669 ac_status=$? 1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1671 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1672 { { case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675esac 1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677$as_echo "$ac_try_echo"; } >&5 1678 (eval "$ac_try") 2>&5 1679 ac_status=$? 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; }; }; then : 1682 ac_retval=0 1683else 1684 $as_echo "$as_me: program exited with status $ac_status" >&5 1685 $as_echo "$as_me: failed program was:" >&5 1686sed 's/^/| /' conftest.$ac_ext >&5 1687 1688 ac_retval=$ac_status 1689fi 1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 as_fn_set_status $ac_retval 1693 1694} # ac_fn_c_try_run 1695 1696# ac_fn_c_try_link LINENO 1697# ----------------------- 1698# Try to link conftest.$ac_ext, and return whether this succeeded. 1699ac_fn_c_try_link () 1700{ 1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1702 rm -f conftest.$ac_objext conftest$ac_exeext 1703 if { { ac_try="$ac_link" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_link") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } && { 1719 test -z "$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 } && test -s conftest$ac_exeext && { 1722 test "$cross_compiling" = yes || 1723 test -x conftest$ac_exeext 1724 }; then : 1725 ac_retval=0 1726else 1727 $as_echo "$as_me: failed program was:" >&5 1728sed 's/^/| /' conftest.$ac_ext >&5 1729 1730 ac_retval=1 1731fi 1732 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1733 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1734 # interfere with the next link command; also delete a directory that is 1735 # left behind by Apple's compiler. We do this before executing the actions. 1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 as_fn_set_status $ac_retval 1739 1740} # ac_fn_c_try_link 1741 1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1743# ------------------------------------------------------- 1744# Tests whether HEADER exists and can be compiled using the include files in 1745# INCLUDES, setting the cache variable VAR accordingly. 1746ac_fn_c_check_header_compile () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1750$as_echo_n "checking for $2... " >&6; } 1751if eval \${$3+:} false; then : 1752 $as_echo_n "(cached) " >&6 1753else 1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1755/* end confdefs.h. */ 1756$4 1757#include <$2> 1758_ACEOF 1759if ac_fn_c_try_compile "$LINENO"; then : 1760 eval "$3=yes" 1761else 1762 eval "$3=no" 1763fi 1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1765fi 1766eval ac_res=\$$3 1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1768$as_echo "$ac_res" >&6; } 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1770 1771} # ac_fn_c_check_header_compile 1772 1773# ac_fn_c_try_cpp LINENO 1774# ---------------------- 1775# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1776ac_fn_c_try_cpp () 1777{ 1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1779 if { { ac_try="$ac_cpp conftest.$ac_ext" 1780case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } > conftest.i && { 1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 }; then : 1798 ac_retval=0 1799else 1800 $as_echo "$as_me: failed program was:" >&5 1801sed 's/^/| /' conftest.$ac_ext >&5 1802 1803 ac_retval=1 1804fi 1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1806 as_fn_set_status $ac_retval 1807 1808} # ac_fn_c_try_cpp 1809 1810# ac_fn_c_check_func LINENO FUNC VAR 1811# ---------------------------------- 1812# Tests whether FUNC exists, setting the cache variable VAR accordingly 1813ac_fn_c_check_func () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1817$as_echo_n "checking for $2... " >&6; } 1818if eval \${$3+:} false; then : 1819 $as_echo_n "(cached) " >&6 1820else 1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1825#define $2 innocuous_$2 1826 1827/* System header to define __stub macros and hopefully few prototypes, 1828 which can conflict with char $2 (); below. 1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1830 <limits.h> exists even on freestanding compilers. */ 1831 1832#ifdef __STDC__ 1833# include <limits.h> 1834#else 1835# include <assert.h> 1836#endif 1837 1838#undef $2 1839 1840/* Override any GCC internal prototype to avoid an error. 1841 Use char because int might match the return type of a GCC 1842 builtin and then its argument prototype would still apply. */ 1843#ifdef __cplusplus 1844extern "C" 1845#endif 1846char $2 (); 1847/* The GNU C library defines this for functions which it implements 1848 to always fail with ENOSYS. Some functions are actually named 1849 something starting with __ and the normal name is an alias. */ 1850#if defined __stub_$2 || defined __stub___$2 1851choke me 1852#endif 1853 1854int 1855main () 1856{ 1857return $2 (); 1858 ; 1859 return 0; 1860} 1861_ACEOF 1862if ac_fn_c_try_link "$LINENO"; then : 1863 eval "$3=yes" 1864else 1865 eval "$3=no" 1866fi 1867rm -f core conftest.err conftest.$ac_objext \ 1868 conftest$ac_exeext conftest.$ac_ext 1869fi 1870eval ac_res=\$$3 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1872$as_echo "$ac_res" >&6; } 1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1874 1875} # ac_fn_c_check_func 1876 1877# ac_fn_cxx_try_cpp LINENO 1878# ------------------------ 1879# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1880ac_fn_cxx_try_cpp () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 if { { ac_try="$ac_cpp conftest.$ac_ext" 1884case "(($ac_try" in 1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1886 *) ac_try_echo=$ac_try;; 1887esac 1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1889$as_echo "$ac_try_echo"; } >&5 1890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1891 ac_status=$? 1892 if test -s conftest.err; then 1893 grep -v '^ *+' conftest.err >conftest.er1 1894 cat conftest.er1 >&5 1895 mv -f conftest.er1 conftest.err 1896 fi 1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1898 test $ac_status = 0; } > conftest.i && { 1899 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1900 test ! -s conftest.err 1901 }; then : 1902 ac_retval=0 1903else 1904 $as_echo "$as_me: failed program was:" >&5 1905sed 's/^/| /' conftest.$ac_ext >&5 1906 1907 ac_retval=1 1908fi 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 as_fn_set_status $ac_retval 1911 1912} # ac_fn_cxx_try_cpp 1913 1914# ac_fn_cxx_try_link LINENO 1915# ------------------------- 1916# Try to link conftest.$ac_ext, and return whether this succeeded. 1917ac_fn_cxx_try_link () 1918{ 1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1920 rm -f conftest.$ac_objext conftest$ac_exeext 1921 if { { ac_try="$ac_link" 1922case "(($ac_try" in 1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1924 *) ac_try_echo=$ac_try;; 1925esac 1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1927$as_echo "$ac_try_echo"; } >&5 1928 (eval "$ac_link") 2>conftest.err 1929 ac_status=$? 1930 if test -s conftest.err; then 1931 grep -v '^ *+' conftest.err >conftest.er1 1932 cat conftest.er1 >&5 1933 mv -f conftest.er1 conftest.err 1934 fi 1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1936 test $ac_status = 0; } && { 1937 test -z "$ac_cxx_werror_flag" || 1938 test ! -s conftest.err 1939 } && test -s conftest$ac_exeext && { 1940 test "$cross_compiling" = yes || 1941 test -x conftest$ac_exeext 1942 }; then : 1943 ac_retval=0 1944else 1945 $as_echo "$as_me: failed program was:" >&5 1946sed 's/^/| /' conftest.$ac_ext >&5 1947 1948 ac_retval=1 1949fi 1950 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1951 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1952 # interfere with the next link command; also delete a directory that is 1953 # left behind by Apple's compiler. We do this before executing the actions. 1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1956 as_fn_set_status $ac_retval 1957 1958} # ac_fn_cxx_try_link 1959 1960# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1961# ------------------------------------------- 1962# Tests whether TYPE exists after having included INCLUDES, setting cache 1963# variable VAR accordingly. 1964ac_fn_c_check_type () 1965{ 1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1968$as_echo_n "checking for $2... " >&6; } 1969if eval \${$3+:} false; then : 1970 $as_echo_n "(cached) " >&6 1971else 1972 eval "$3=no" 1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1974/* end confdefs.h. */ 1975$4 1976int 1977main () 1978{ 1979if (sizeof ($2)) 1980 return 0; 1981 ; 1982 return 0; 1983} 1984_ACEOF 1985if ac_fn_c_try_compile "$LINENO"; then : 1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1987/* end confdefs.h. */ 1988$4 1989int 1990main () 1991{ 1992if (sizeof (($2))) 1993 return 0; 1994 ; 1995 return 0; 1996} 1997_ACEOF 1998if ac_fn_c_try_compile "$LINENO"; then : 1999 2000else 2001 eval "$3=yes" 2002fi 2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2004fi 2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2006fi 2007eval ac_res=\$$3 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2009$as_echo "$ac_res" >&6; } 2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2011 2012} # ac_fn_c_check_type 2013 2014# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2015# -------------------------------------------- 2016# Tries to find the compile-time value of EXPR in a program that includes 2017# INCLUDES, setting VAR accordingly. Returns whether the value could be 2018# computed 2019ac_fn_c_compute_int () 2020{ 2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2022 if test "$cross_compiling" = yes; then 2023 # Depending upon the size, compute the lo and hi bounds. 2024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2025/* end confdefs.h. */ 2026$4 2027int 2028main () 2029{ 2030static int test_array [1 - 2 * !(($2) >= 0)]; 2031test_array [0] = 0; 2032return test_array [0]; 2033 2034 ; 2035 return 0; 2036} 2037_ACEOF 2038if ac_fn_c_try_compile "$LINENO"; then : 2039 ac_lo=0 ac_mid=0 2040 while :; do 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044int 2045main () 2046{ 2047static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2048test_array [0] = 0; 2049return test_array [0]; 2050 2051 ; 2052 return 0; 2053} 2054_ACEOF 2055if ac_fn_c_try_compile "$LINENO"; then : 2056 ac_hi=$ac_mid; break 2057else 2058 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2059 if test $ac_lo -le $ac_mid; then 2060 ac_lo= ac_hi= 2061 break 2062 fi 2063 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2064fi 2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2066 done 2067else 2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2069/* end confdefs.h. */ 2070$4 2071int 2072main () 2073{ 2074static int test_array [1 - 2 * !(($2) < 0)]; 2075test_array [0] = 0; 2076return test_array [0]; 2077 2078 ; 2079 return 0; 2080} 2081_ACEOF 2082if ac_fn_c_try_compile "$LINENO"; then : 2083 ac_hi=-1 ac_mid=-1 2084 while :; do 2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086/* end confdefs.h. */ 2087$4 2088int 2089main () 2090{ 2091static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2092test_array [0] = 0; 2093return test_array [0]; 2094 2095 ; 2096 return 0; 2097} 2098_ACEOF 2099if ac_fn_c_try_compile "$LINENO"; then : 2100 ac_lo=$ac_mid; break 2101else 2102 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2103 if test $ac_mid -le $ac_hi; then 2104 ac_lo= ac_hi= 2105 break 2106 fi 2107 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2108fi 2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2110 done 2111else 2112 ac_lo= ac_hi= 2113fi 2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2115fi 2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2117# Binary search between lo and hi bounds. 2118while test "x$ac_lo" != "x$ac_hi"; do 2119 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2121/* end confdefs.h. */ 2122$4 2123int 2124main () 2125{ 2126static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2127test_array [0] = 0; 2128return test_array [0]; 2129 2130 ; 2131 return 0; 2132} 2133_ACEOF 2134if ac_fn_c_try_compile "$LINENO"; then : 2135 ac_hi=$ac_mid 2136else 2137 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2138fi 2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2140done 2141case $ac_lo in #(( 2142?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2143'') ac_retval=1 ;; 2144esac 2145 else 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147/* end confdefs.h. */ 2148$4 2149static long int longval () { return $2; } 2150static unsigned long int ulongval () { return $2; } 2151#include <stdio.h> 2152#include <stdlib.h> 2153int 2154main () 2155{ 2156 2157 FILE *f = fopen ("conftest.val", "w"); 2158 if (! f) 2159 return 1; 2160 if (($2) < 0) 2161 { 2162 long int i = longval (); 2163 if (i != ($2)) 2164 return 1; 2165 fprintf (f, "%ld", i); 2166 } 2167 else 2168 { 2169 unsigned long int i = ulongval (); 2170 if (i != ($2)) 2171 return 1; 2172 fprintf (f, "%lu", i); 2173 } 2174 /* Do not output a trailing newline, as this causes \r\n confusion 2175 on some platforms. */ 2176 return ferror (f) || fclose (f) != 0; 2177 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_run "$LINENO"; then : 2183 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2184else 2185 ac_retval=1 2186fi 2187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2188 conftest.$ac_objext conftest.beam conftest.$ac_ext 2189rm -f conftest.val 2190 2191 fi 2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2193 as_fn_set_status $ac_retval 2194 2195} # ac_fn_c_compute_int 2196 2197# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2198# ------------------------------------------------------- 2199# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2200# the include files in INCLUDES and setting the cache variable VAR 2201# accordingly. 2202ac_fn_c_check_header_mongrel () 2203{ 2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2205 if eval \${$3+:} false; then : 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2207$as_echo_n "checking for $2... " >&6; } 2208if eval \${$3+:} false; then : 2209 $as_echo_n "(cached) " >&6 2210fi 2211eval ac_res=\$$3 2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2213$as_echo "$ac_res" >&6; } 2214else 2215 # Is the header compilable? 2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2217$as_echo_n "checking $2 usability... " >&6; } 2218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2219/* end confdefs.h. */ 2220$4 2221#include <$2> 2222_ACEOF 2223if ac_fn_c_try_compile "$LINENO"; then : 2224 ac_header_compiler=yes 2225else 2226 ac_header_compiler=no 2227fi 2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2230$as_echo "$ac_header_compiler" >&6; } 2231 2232# Is the header present? 2233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2234$as_echo_n "checking $2 presence... " >&6; } 2235cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237#include <$2> 2238_ACEOF 2239if ac_fn_c_try_cpp "$LINENO"; then : 2240 ac_header_preproc=yes 2241else 2242 ac_header_preproc=no 2243fi 2244rm -f conftest.err conftest.i conftest.$ac_ext 2245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2246$as_echo "$ac_header_preproc" >&6; } 2247 2248# So? What about this header? 2249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2250 yes:no: ) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2252$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2254$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2255 ;; 2256 no:yes:* ) 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2258$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2260$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2262$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2264$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2266$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2267( $as_echo "## ----------------------------------------------- ## 2268## Report this to isl-development@googlegroups.com ## 2269## ----------------------------------------------- ##" 2270 ) | sed "s/^/$as_me: WARNING: /" >&2 2271 ;; 2272esac 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2274$as_echo_n "checking for $2... " >&6; } 2275if eval \${$3+:} false; then : 2276 $as_echo_n "(cached) " >&6 2277else 2278 eval "$3=\$ac_header_compiler" 2279fi 2280eval ac_res=\$$3 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2282$as_echo "$ac_res" >&6; } 2283fi 2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2285 2286} # ac_fn_c_check_header_mongrel 2287 2288# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2289# --------------------------------------------- 2290# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2291# accordingly. 2292ac_fn_c_check_decl () 2293{ 2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2295 as_decl_name=`echo $2|sed 's/ *(.*//'` 2296 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2298$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2299if eval \${$3+:} false; then : 2300 $as_echo_n "(cached) " >&6 2301else 2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2303/* end confdefs.h. */ 2304$4 2305int 2306main () 2307{ 2308#ifndef $as_decl_name 2309#ifdef __cplusplus 2310 (void) $as_decl_use; 2311#else 2312 (void) $as_decl_name; 2313#endif 2314#endif 2315 2316 ; 2317 return 0; 2318} 2319_ACEOF 2320if ac_fn_c_try_compile "$LINENO"; then : 2321 eval "$3=yes" 2322else 2323 eval "$3=no" 2324fi 2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2326fi 2327eval ac_res=\$$3 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2329$as_echo "$ac_res" >&6; } 2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2331 2332} # ac_fn_c_check_decl 2333 2334# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2335# ---------------------------------------------------- 2336# Tries to find if the field MEMBER exists in type AGGR, after including 2337# INCLUDES, setting cache variable VAR accordingly. 2338ac_fn_c_check_member () 2339{ 2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2342$as_echo_n "checking for $2.$3... " >&6; } 2343if eval \${$4+:} false; then : 2344 $as_echo_n "(cached) " >&6 2345else 2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2347/* end confdefs.h. */ 2348$5 2349int 2350main () 2351{ 2352static $2 ac_aggr; 2353if (ac_aggr.$3) 2354return 0; 2355 ; 2356 return 0; 2357} 2358_ACEOF 2359if ac_fn_c_try_compile "$LINENO"; then : 2360 eval "$4=yes" 2361else 2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2363/* end confdefs.h. */ 2364$5 2365int 2366main () 2367{ 2368static $2 ac_aggr; 2369if (sizeof ac_aggr.$3) 2370return 0; 2371 ; 2372 return 0; 2373} 2374_ACEOF 2375if ac_fn_c_try_compile "$LINENO"; then : 2376 eval "$4=yes" 2377else 2378 eval "$4=no" 2379fi 2380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2381fi 2382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2383fi 2384eval ac_res=\$$4 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2386$as_echo "$ac_res" >&6; } 2387 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2388 2389} # ac_fn_c_check_member 2390 2391# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2392# --------------------------------------------------------- 2393# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2394# the include files in INCLUDES and setting the cache variable VAR 2395# accordingly. 2396ac_fn_cxx_check_header_mongrel () 2397{ 2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2399 if eval \${$3+:} false; then : 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2401$as_echo_n "checking for $2... " >&6; } 2402if eval \${$3+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404fi 2405eval ac_res=\$$3 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2407$as_echo "$ac_res" >&6; } 2408else 2409 # Is the header compilable? 2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2411$as_echo_n "checking $2 usability... " >&6; } 2412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2413/* end confdefs.h. */ 2414$4 2415#include <$2> 2416_ACEOF 2417if ac_fn_cxx_try_compile "$LINENO"; then : 2418 ac_header_compiler=yes 2419else 2420 ac_header_compiler=no 2421fi 2422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2424$as_echo "$ac_header_compiler" >&6; } 2425 2426# Is the header present? 2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2428$as_echo_n "checking $2 presence... " >&6; } 2429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2430/* end confdefs.h. */ 2431#include <$2> 2432_ACEOF 2433if ac_fn_cxx_try_cpp "$LINENO"; then : 2434 ac_header_preproc=yes 2435else 2436 ac_header_preproc=no 2437fi 2438rm -f conftest.err conftest.i conftest.$ac_ext 2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2440$as_echo "$ac_header_preproc" >&6; } 2441 2442# So? What about this header? 2443case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2444 yes:no: ) 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2446$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2448$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2449 ;; 2450 no:yes:* ) 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2452$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2454$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2456$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2458$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2460$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2461( $as_echo "## ----------------------------------------------- ## 2462## Report this to isl-development@googlegroups.com ## 2463## ----------------------------------------------- ##" 2464 ) | sed "s/^/$as_me: WARNING: /" >&2 2465 ;; 2466esac 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2468$as_echo_n "checking for $2... " >&6; } 2469if eval \${$3+:} false; then : 2470 $as_echo_n "(cached) " >&6 2471else 2472 eval "$3=\$ac_header_compiler" 2473fi 2474eval ac_res=\$$3 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2476$as_echo "$ac_res" >&6; } 2477fi 2478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2479 2480} # ac_fn_cxx_check_header_mongrel 2481cat >config.log <<_ACEOF 2482This file contains any messages produced by compilers while 2483running configure, to aid debugging if configure makes a mistake. 2484 2485It was created by isl $as_me 0.12.2, which was 2486generated by GNU Autoconf 2.69. Invocation command line was 2487 2488 $ $0 $@ 2489 2490_ACEOF 2491exec 5>>config.log 2492{ 2493cat <<_ASUNAME 2494## --------- ## 2495## Platform. ## 2496## --------- ## 2497 2498hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2499uname -m = `(uname -m) 2>/dev/null || echo unknown` 2500uname -r = `(uname -r) 2>/dev/null || echo unknown` 2501uname -s = `(uname -s) 2>/dev/null || echo unknown` 2502uname -v = `(uname -v) 2>/dev/null || echo unknown` 2503 2504/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2505/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2506 2507/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2508/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2509/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2510/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2511/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2512/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2513/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2514 2515_ASUNAME 2516 2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2518for as_dir in $PATH 2519do 2520 IFS=$as_save_IFS 2521 test -z "$as_dir" && as_dir=. 2522 $as_echo "PATH: $as_dir" 2523 done 2524IFS=$as_save_IFS 2525 2526} >&5 2527 2528cat >&5 <<_ACEOF 2529 2530 2531## ----------- ## 2532## Core tests. ## 2533## ----------- ## 2534 2535_ACEOF 2536 2537 2538# Keep a trace of the command line. 2539# Strip out --no-create and --no-recursion so they do not pile up. 2540# Strip out --silent because we don't want to record it for future runs. 2541# Also quote any args containing shell meta-characters. 2542# Make two passes to allow for proper duplicate-argument suppression. 2543ac_configure_args= 2544ac_configure_args0= 2545ac_configure_args1= 2546ac_must_keep_next=false 2547for ac_pass in 1 2 2548do 2549 for ac_arg 2550 do 2551 case $ac_arg in 2552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2554 | -silent | --silent | --silen | --sile | --sil) 2555 continue ;; 2556 *\'*) 2557 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2558 esac 2559 case $ac_pass in 2560 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2561 2) 2562 as_fn_append ac_configure_args1 " '$ac_arg'" 2563 if test $ac_must_keep_next = true; then 2564 ac_must_keep_next=false # Got value, back to normal. 2565 else 2566 case $ac_arg in 2567 *=* | --config-cache | -C | -disable-* | --disable-* \ 2568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2570 | -with-* | --with-* | -without-* | --without-* | --x) 2571 case "$ac_configure_args0 " in 2572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2573 esac 2574 ;; 2575 -* ) ac_must_keep_next=true ;; 2576 esac 2577 fi 2578 as_fn_append ac_configure_args " '$ac_arg'" 2579 ;; 2580 esac 2581 done 2582done 2583{ ac_configure_args0=; unset ac_configure_args0;} 2584{ ac_configure_args1=; unset ac_configure_args1;} 2585 2586# When interrupted or exit'd, cleanup temporary files, and complete 2587# config.log. We remove comments because anyway the quotes in there 2588# would cause problems or look ugly. 2589# WARNING: Use '\'' to represent an apostrophe within the trap. 2590# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2591trap 'exit_status=$? 2592 # Save into config.log some information that might help in debugging. 2593 { 2594 echo 2595 2596 $as_echo "## ---------------- ## 2597## Cache variables. ## 2598## ---------------- ##" 2599 echo 2600 # The following way of writing the cache mishandles newlines in values, 2601( 2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2603 eval ac_val=\$$ac_var 2604 case $ac_val in #( 2605 *${as_nl}*) 2606 case $ac_var in #( 2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2608$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2609 esac 2610 case $ac_var in #( 2611 _ | IFS | as_nl) ;; #( 2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2613 *) { eval $ac_var=; unset $ac_var;} ;; 2614 esac ;; 2615 esac 2616 done 2617 (set) 2>&1 | 2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2619 *${as_nl}ac_space=\ *) 2620 sed -n \ 2621 "s/'\''/'\''\\\\'\'''\''/g; 2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2623 ;; #( 2624 *) 2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2626 ;; 2627 esac | 2628 sort 2629) 2630 echo 2631 2632 $as_echo "## ----------------- ## 2633## Output variables. ## 2634## ----------------- ##" 2635 echo 2636 for ac_var in $ac_subst_vars 2637 do 2638 eval ac_val=\$$ac_var 2639 case $ac_val in 2640 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2641 esac 2642 $as_echo "$ac_var='\''$ac_val'\''" 2643 done | sort 2644 echo 2645 2646 if test -n "$ac_subst_files"; then 2647 $as_echo "## ------------------- ## 2648## File substitutions. ## 2649## ------------------- ##" 2650 echo 2651 for ac_var in $ac_subst_files 2652 do 2653 eval ac_val=\$$ac_var 2654 case $ac_val in 2655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2656 esac 2657 $as_echo "$ac_var='\''$ac_val'\''" 2658 done | sort 2659 echo 2660 fi 2661 2662 if test -s confdefs.h; then 2663 $as_echo "## ----------- ## 2664## confdefs.h. ## 2665## ----------- ##" 2666 echo 2667 cat confdefs.h 2668 echo 2669 fi 2670 test "$ac_signal" != 0 && 2671 $as_echo "$as_me: caught signal $ac_signal" 2672 $as_echo "$as_me: exit $exit_status" 2673 } >&5 2674 rm -f core *.core core.conftest.* && 2675 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2676 exit $exit_status 2677' 0 2678for ac_signal in 1 2 13 15; do 2679 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2680done 2681ac_signal=0 2682 2683# confdefs.h avoids OS command line length limits that DEFS can exceed. 2684rm -f -r conftest* confdefs.h 2685 2686$as_echo "/* confdefs.h */" > confdefs.h 2687 2688# Predefined preprocessor variables. 2689 2690cat >>confdefs.h <<_ACEOF 2691#define PACKAGE_NAME "$PACKAGE_NAME" 2692_ACEOF 2693 2694cat >>confdefs.h <<_ACEOF 2695#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2696_ACEOF 2697 2698cat >>confdefs.h <<_ACEOF 2699#define PACKAGE_VERSION "$PACKAGE_VERSION" 2700_ACEOF 2701 2702cat >>confdefs.h <<_ACEOF 2703#define PACKAGE_STRING "$PACKAGE_STRING" 2704_ACEOF 2705 2706cat >>confdefs.h <<_ACEOF 2707#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2708_ACEOF 2709 2710cat >>confdefs.h <<_ACEOF 2711#define PACKAGE_URL "$PACKAGE_URL" 2712_ACEOF 2713 2714 2715# Let the site file select an alternate cache file if it wants to. 2716# Prefer an explicitly selected file to automatically selected ones. 2717ac_site_file1=NONE 2718ac_site_file2=NONE 2719if test -n "$CONFIG_SITE"; then 2720 # We do not want a PATH search for config.site. 2721 case $CONFIG_SITE in #(( 2722 -*) ac_site_file1=./$CONFIG_SITE;; 2723 */*) ac_site_file1=$CONFIG_SITE;; 2724 *) ac_site_file1=./$CONFIG_SITE;; 2725 esac 2726elif test "x$prefix" != xNONE; then 2727 ac_site_file1=$prefix/share/config.site 2728 ac_site_file2=$prefix/etc/config.site 2729else 2730 ac_site_file1=$ac_default_prefix/share/config.site 2731 ac_site_file2=$ac_default_prefix/etc/config.site 2732fi 2733for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2734do 2735 test "x$ac_site_file" = xNONE && continue 2736 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2738$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2739 sed 's/^/| /' "$ac_site_file" >&5 2740 . "$ac_site_file" \ 2741 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2743as_fn_error $? "failed to load site script $ac_site_file 2744See \`config.log' for more details" "$LINENO" 5; } 2745 fi 2746done 2747 2748if test -r "$cache_file"; then 2749 # Some versions of bash will fail to source /dev/null (special files 2750 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2751 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2753$as_echo "$as_me: loading cache $cache_file" >&6;} 2754 case $cache_file in 2755 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2756 *) . "./$cache_file";; 2757 esac 2758 fi 2759else 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2761$as_echo "$as_me: creating cache $cache_file" >&6;} 2762 >$cache_file 2763fi 2764 2765# Check that the precious variables saved in the cache have kept the same 2766# value. 2767ac_cache_corrupted=false 2768for ac_var in $ac_precious_vars; do 2769 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2770 eval ac_new_set=\$ac_env_${ac_var}_set 2771 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2772 eval ac_new_val=\$ac_env_${ac_var}_value 2773 case $ac_old_set,$ac_new_set in 2774 set,) 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2776$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2777 ac_cache_corrupted=: ;; 2778 ,set) 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2780$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2781 ac_cache_corrupted=: ;; 2782 ,);; 2783 *) 2784 if test "x$ac_old_val" != "x$ac_new_val"; then 2785 # differences in whitespace do not lead to failure. 2786 ac_old_val_w=`echo x $ac_old_val` 2787 ac_new_val_w=`echo x $ac_new_val` 2788 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2790$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2791 ac_cache_corrupted=: 2792 else 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2794$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2795 eval $ac_var=\$ac_old_val 2796 fi 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2798$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2800$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2801 fi;; 2802 esac 2803 # Pass precious variables to config.status. 2804 if test "$ac_new_set" = set; then 2805 case $ac_new_val in 2806 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2807 *) ac_arg=$ac_var=$ac_new_val ;; 2808 esac 2809 case " $ac_configure_args " in 2810 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2811 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2812 esac 2813 fi 2814done 2815if $ac_cache_corrupted; then 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2819$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2820 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2821fi 2822## -------------------- ## 2823## Main body of script. ## 2824## -------------------- ## 2825 2826ac_ext=c 2827ac_cpp='$CPP $CPPFLAGS' 2828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2830ac_compiler_gnu=$ac_cv_c_compiler_gnu 2831 2832 2833ac_aux_dir= 2834for ac_dir in . "$srcdir"/.; do 2835 if test -f "$ac_dir/install-sh"; then 2836 ac_aux_dir=$ac_dir 2837 ac_install_sh="$ac_aux_dir/install-sh -c" 2838 break 2839 elif test -f "$ac_dir/install.sh"; then 2840 ac_aux_dir=$ac_dir 2841 ac_install_sh="$ac_aux_dir/install.sh -c" 2842 break 2843 elif test -f "$ac_dir/shtool"; then 2844 ac_aux_dir=$ac_dir 2845 ac_install_sh="$ac_aux_dir/shtool install -c" 2846 break 2847 fi 2848done 2849if test -z "$ac_aux_dir"; then 2850 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2851fi 2852 2853# These three variables are undocumented and unsupported, 2854# and are intended to be withdrawn in a future Autoconf release. 2855# They can cause serious problems if a builder's source tree is in a directory 2856# whose full name contains unusual characters. 2857ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2858ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2859ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2860 2861 2862 2863am__api_version='1.11' 2864 2865# Find a good install program. We prefer a C program (faster), 2866# so one script is as good as another. But avoid the broken or 2867# incompatible versions: 2868# SysV /etc/install, /usr/sbin/install 2869# SunOS /usr/etc/install 2870# IRIX /sbin/install 2871# AIX /bin/install 2872# AmigaOS /C/install, which installs bootblocks on floppy discs 2873# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2874# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2875# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2876# OS/2's system install, which has a completely different semantic 2877# ./install, which can be erroneously created by make from ./install.sh. 2878# Reject install programs that cannot install multiple files. 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2880$as_echo_n "checking for a BSD-compatible install... " >&6; } 2881if test -z "$INSTALL"; then 2882if ${ac_cv_path_install+:} false; then : 2883 $as_echo_n "(cached) " >&6 2884else 2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH 2887do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 # Account for people who put trailing slashes in PATH elements. 2891case $as_dir/ in #(( 2892 ./ | .// | /[cC]/* | \ 2893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2895 /usr/ucb/* ) ;; 2896 *) 2897 # OSF1 and SCO ODT 3.0 have their own names for install. 2898 # Don't use installbsd from OSF since it installs stuff as root 2899 # by default. 2900 for ac_prog in ginstall scoinst install; do 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2903 if test $ac_prog = install && 2904 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2905 # AIX install. It has an incompatible calling convention. 2906 : 2907 elif test $ac_prog = install && 2908 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2909 # program-specific install script used by HP pwplus--don't use. 2910 : 2911 else 2912 rm -rf conftest.one conftest.two conftest.dir 2913 echo one > conftest.one 2914 echo two > conftest.two 2915 mkdir conftest.dir 2916 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2917 test -s conftest.one && test -s conftest.two && 2918 test -s conftest.dir/conftest.one && 2919 test -s conftest.dir/conftest.two 2920 then 2921 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2922 break 3 2923 fi 2924 fi 2925 fi 2926 done 2927 done 2928 ;; 2929esac 2930 2931 done 2932IFS=$as_save_IFS 2933 2934rm -rf conftest.one conftest.two conftest.dir 2935 2936fi 2937 if test "${ac_cv_path_install+set}" = set; then 2938 INSTALL=$ac_cv_path_install 2939 else 2940 # As a last resort, use the slow shell script. Don't cache a 2941 # value for INSTALL within a source directory, because that will 2942 # break other packages using the cache if that directory is 2943 # removed, or if the value is a relative name. 2944 INSTALL=$ac_install_sh 2945 fi 2946fi 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2948$as_echo "$INSTALL" >&6; } 2949 2950# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2951# It thinks the first close brace ends the variable substitution. 2952test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2953 2954test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2955 2956test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2957 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2959$as_echo_n "checking whether build environment is sane... " >&6; } 2960# Just in case 2961sleep 1 2962echo timestamp > conftest.file 2963# Reject unsafe characters in $srcdir or the absolute working directory 2964# name. Accept space and tab only in the latter. 2965am_lf=' 2966' 2967case `pwd` in 2968 *[\\\"\#\$\&\'\`$am_lf]*) 2969 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2970esac 2971case $srcdir in 2972 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2973 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2974esac 2975 2976# Do `set' in a subshell so we don't clobber the current shell's 2977# arguments. Must try -L first in case configure is actually a 2978# symlink; some systems play weird games with the mod time of symlinks 2979# (eg FreeBSD returns the mod time of the symlink's containing 2980# directory). 2981if ( 2982 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2983 if test "$*" = "X"; then 2984 # -L didn't work. 2985 set X `ls -t "$srcdir/configure" conftest.file` 2986 fi 2987 rm -f conftest.file 2988 if test "$*" != "X $srcdir/configure conftest.file" \ 2989 && test "$*" != "X conftest.file $srcdir/configure"; then 2990 2991 # If neither matched, then we have a broken ls. This can happen 2992 # if, for instance, CONFIG_SHELL is bash and it inherits a 2993 # broken ls alias from the environment. This has actually 2994 # happened. Such a system could not be considered "sane". 2995 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2996alias in your environment" "$LINENO" 5 2997 fi 2998 2999 test "$2" = conftest.file 3000 ) 3001then 3002 # Ok. 3003 : 3004else 3005 as_fn_error $? "newly created file is older than distributed files! 3006Check your system clock" "$LINENO" 5 3007fi 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3009$as_echo "yes" >&6; } 3010test "$program_prefix" != NONE && 3011 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3012# Use a double $ so make ignores it. 3013test "$program_suffix" != NONE && 3014 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3015# Double any \ or $. 3016# By default was `s,x,x', remove it if useless. 3017ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3018program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3019 3020# expand $ac_aux_dir to an absolute path 3021am_aux_dir=`cd $ac_aux_dir && pwd` 3022 3023if test x"${MISSING+set}" != xset; then 3024 case $am_aux_dir in 3025 *\ * | *\ *) 3026 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3027 *) 3028 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3029 esac 3030fi 3031# Use eval to expand $SHELL 3032if eval "$MISSING --run true"; then 3033 am_missing_run="$MISSING --run " 3034else 3035 am_missing_run= 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3037$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3038fi 3039 3040if test x"${install_sh}" != xset; then 3041 case $am_aux_dir in 3042 *\ * | *\ *) 3043 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3044 *) 3045 install_sh="\${SHELL} $am_aux_dir/install-sh" 3046 esac 3047fi 3048 3049# Installed binaries are usually stripped using `strip' when the user 3050# run `make install-strip'. However `strip' might not be the right 3051# tool to use in cross-compilation environments, therefore Automake 3052# will honor the `STRIP' environment variable to overrule this program. 3053if test "$cross_compiling" != no; then 3054 if test -n "$ac_tool_prefix"; then 3055 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3056set dummy ${ac_tool_prefix}strip; ac_word=$2 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3058$as_echo_n "checking for $ac_word... " >&6; } 3059if ${ac_cv_prog_STRIP+:} false; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 if test -n "$STRIP"; then 3063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3064else 3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3066for as_dir in $PATH 3067do 3068 IFS=$as_save_IFS 3069 test -z "$as_dir" && as_dir=. 3070 for ac_exec_ext in '' $ac_executable_extensions; do 3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3072 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3074 break 2 3075 fi 3076done 3077 done 3078IFS=$as_save_IFS 3079 3080fi 3081fi 3082STRIP=$ac_cv_prog_STRIP 3083if test -n "$STRIP"; then 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3085$as_echo "$STRIP" >&6; } 3086else 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3088$as_echo "no" >&6; } 3089fi 3090 3091 3092fi 3093if test -z "$ac_cv_prog_STRIP"; then 3094 ac_ct_STRIP=$STRIP 3095 # Extract the first word of "strip", so it can be a program name with args. 3096set dummy strip; ac_word=$2 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3098$as_echo_n "checking for $ac_word... " >&6; } 3099if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3100 $as_echo_n "(cached) " >&6 3101else 3102 if test -n "$ac_ct_STRIP"; then 3103 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3104else 3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3106for as_dir in $PATH 3107do 3108 IFS=$as_save_IFS 3109 test -z "$as_dir" && as_dir=. 3110 for ac_exec_ext in '' $ac_executable_extensions; do 3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3112 ac_cv_prog_ac_ct_STRIP="strip" 3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3114 break 2 3115 fi 3116done 3117 done 3118IFS=$as_save_IFS 3119 3120fi 3121fi 3122ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3123if test -n "$ac_ct_STRIP"; then 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3125$as_echo "$ac_ct_STRIP" >&6; } 3126else 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128$as_echo "no" >&6; } 3129fi 3130 3131 if test "x$ac_ct_STRIP" = x; then 3132 STRIP=":" 3133 else 3134 case $cross_compiling:$ac_tool_warned in 3135yes:) 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3138ac_tool_warned=yes ;; 3139esac 3140 STRIP=$ac_ct_STRIP 3141 fi 3142else 3143 STRIP="$ac_cv_prog_STRIP" 3144fi 3145 3146fi 3147INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3148 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3150$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3151if test -z "$MKDIR_P"; then 3152 if ${ac_cv_path_mkdir+:} false; then : 3153 $as_echo_n "(cached) " >&6 3154else 3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3156for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3157do 3158 IFS=$as_save_IFS 3159 test -z "$as_dir" && as_dir=. 3160 for ac_prog in mkdir gmkdir; do 3161 for ac_exec_ext in '' $ac_executable_extensions; do 3162 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3163 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3164 'mkdir (GNU coreutils) '* | \ 3165 'mkdir (coreutils) '* | \ 3166 'mkdir (fileutils) '4.1*) 3167 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3168 break 3;; 3169 esac 3170 done 3171 done 3172 done 3173IFS=$as_save_IFS 3174 3175fi 3176 3177 test -d ./--version && rmdir ./--version 3178 if test "${ac_cv_path_mkdir+set}" = set; then 3179 MKDIR_P="$ac_cv_path_mkdir -p" 3180 else 3181 # As a last resort, use the slow shell script. Don't cache a 3182 # value for MKDIR_P within a source directory, because that will 3183 # break other packages using the cache if that directory is 3184 # removed, or if the value is a relative name. 3185 MKDIR_P="$ac_install_sh -d" 3186 fi 3187fi 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3189$as_echo "$MKDIR_P" >&6; } 3190 3191mkdir_p="$MKDIR_P" 3192case $mkdir_p in 3193 [\\/$]* | ?:[\\/]*) ;; 3194 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3195esac 3196 3197for ac_prog in gawk mawk nawk awk 3198do 3199 # Extract the first word of "$ac_prog", so it can be a program name with args. 3200set dummy $ac_prog; ac_word=$2 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3202$as_echo_n "checking for $ac_word... " >&6; } 3203if ${ac_cv_prog_AWK+:} false; then : 3204 $as_echo_n "(cached) " >&6 3205else 3206 if test -n "$AWK"; then 3207 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3208else 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 test -z "$as_dir" && as_dir=. 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3216 ac_cv_prog_AWK="$ac_prog" 3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224fi 3225fi 3226AWK=$ac_cv_prog_AWK 3227if test -n "$AWK"; then 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3229$as_echo "$AWK" >&6; } 3230else 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232$as_echo "no" >&6; } 3233fi 3234 3235 3236 test -n "$AWK" && break 3237done 3238 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3240$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3241set x ${MAKE-make} 3242ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3243if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3244 $as_echo_n "(cached) " >&6 3245else 3246 cat >conftest.make <<\_ACEOF 3247SHELL = /bin/sh 3248all: 3249 @echo '@@@%%%=$(MAKE)=@@@%%%' 3250_ACEOF 3251# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3252case `${MAKE-make} -f conftest.make 2>/dev/null` in 3253 *@@@%%%=?*=@@@%%%*) 3254 eval ac_cv_prog_make_${ac_make}_set=yes;; 3255 *) 3256 eval ac_cv_prog_make_${ac_make}_set=no;; 3257esac 3258rm -f conftest.make 3259fi 3260if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3262$as_echo "yes" >&6; } 3263 SET_MAKE= 3264else 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3266$as_echo "no" >&6; } 3267 SET_MAKE="MAKE=${MAKE-make}" 3268fi 3269 3270rm -rf .tst 2>/dev/null 3271mkdir .tst 2>/dev/null 3272if test -d .tst; then 3273 am__leading_dot=. 3274else 3275 am__leading_dot=_ 3276fi 3277rmdir .tst 2>/dev/null 3278 3279if test "`cd $srcdir && pwd`" != "`pwd`"; then 3280 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3281 # is not polluted with repeated "-I." 3282 am__isrc=' -I$(srcdir)' 3283 # test to see if srcdir already configured 3284 if test -f $srcdir/config.status; then 3285 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3286 fi 3287fi 3288 3289# test whether we have cygpath 3290if test -z "$CYGPATH_W"; then 3291 if (cygpath --version) >/dev/null 2>/dev/null; then 3292 CYGPATH_W='cygpath -w' 3293 else 3294 CYGPATH_W=echo 3295 fi 3296fi 3297 3298 3299# Define the identity of the package. 3300 PACKAGE='isl' 3301 VERSION='0.12.2' 3302 3303 3304cat >>confdefs.h <<_ACEOF 3305#define PACKAGE "$PACKAGE" 3306_ACEOF 3307 3308 3309cat >>confdefs.h <<_ACEOF 3310#define VERSION "$VERSION" 3311_ACEOF 3312 3313# Some tools Automake needs. 3314 3315ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3316 3317 3318AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3319 3320 3321AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3322 3323 3324AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3325 3326 3327MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3328 3329# We need awk for the "check" target. The system "awk" is bad on 3330# some platforms. 3331# Always define AMTAR for backward compatibility. Yes, it's still used 3332# in the wild :-( We should find a proper way to deprecate it ... 3333AMTAR='$${TAR-tar}' 3334 3335am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3336 3337 3338 3339 3340 3341# Check whether --enable-silent-rules was given. 3342if test "${enable_silent_rules+set}" = set; then : 3343 enableval=$enable_silent_rules; 3344fi 3345 3346case $enable_silent_rules in 3347yes) AM_DEFAULT_VERBOSITY=0;; 3348no) AM_DEFAULT_VERBOSITY=1;; 3349*) AM_DEFAULT_VERBOSITY=0;; 3350esac 3351am_make=${MAKE-make} 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3353$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3354if ${am_cv_make_support_nested_variables+:} false; then : 3355 $as_echo_n "(cached) " >&6 3356else 3357 if $as_echo 'TRUE=$(BAR$(V)) 3358BAR0=false 3359BAR1=true 3360V=1 3361am__doit: 3362 @$(TRUE) 3363.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3364 am_cv_make_support_nested_variables=yes 3365else 3366 am_cv_make_support_nested_variables=no 3367fi 3368fi 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3370$as_echo "$am_cv_make_support_nested_variables" >&6; } 3371if test $am_cv_make_support_nested_variables = yes; then 3372 AM_V='$(V)' 3373 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3374else 3375 AM_V=$AM_DEFAULT_VERBOSITY 3376 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3377fi 3378AM_BACKSLASH='\' 3379 3380 3381versioninfo=12:2:2 3382 3383if test "x$prefix" != "xNONE"; then 3384 prefix_wd=`cd $prefix && pwd` 3385 srcdir_wd=`cd $srcdir && pwd` 3386 wd=`pwd` 3387 if test "x$prefix_wd" = "x$srcdir_wd"; then 3388 as_fn_error $? "Installation in source directory not supported" "$LINENO" 5 3389 fi 3390 if test "x$prefix_wd" = "x$wd"; then 3391 as_fn_error $? "Installation in build directory not supported" "$LINENO" 5 3392 fi 3393fi 3394 3395ac_ext=c 3396ac_cpp='$CPP $CPPFLAGS' 3397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3399ac_compiler_gnu=$ac_cv_c_compiler_gnu 3400if test -n "$ac_tool_prefix"; then 3401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3402set dummy ${ac_tool_prefix}gcc; ac_word=$2 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3404$as_echo_n "checking for $ac_word... " >&6; } 3405if ${ac_cv_prog_CC+:} false; then : 3406 $as_echo_n "(cached) " >&6 3407else 3408 if test -n "$CC"; then 3409 ac_cv_prog_CC="$CC" # Let the user override the test. 3410else 3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3412for as_dir in $PATH 3413do 3414 IFS=$as_save_IFS 3415 test -z "$as_dir" && as_dir=. 3416 for ac_exec_ext in '' $ac_executable_extensions; do 3417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3418 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3420 break 2 3421 fi 3422done 3423 done 3424IFS=$as_save_IFS 3425 3426fi 3427fi 3428CC=$ac_cv_prog_CC 3429if test -n "$CC"; then 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3431$as_echo "$CC" >&6; } 3432else 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3434$as_echo "no" >&6; } 3435fi 3436 3437 3438fi 3439if test -z "$ac_cv_prog_CC"; then 3440 ac_ct_CC=$CC 3441 # Extract the first word of "gcc", so it can be a program name with args. 3442set dummy gcc; ac_word=$2 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3444$as_echo_n "checking for $ac_word... " >&6; } 3445if ${ac_cv_prog_ac_ct_CC+:} false; then : 3446 $as_echo_n "(cached) " >&6 3447else 3448 if test -n "$ac_ct_CC"; then 3449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3450else 3451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3452for as_dir in $PATH 3453do 3454 IFS=$as_save_IFS 3455 test -z "$as_dir" && as_dir=. 3456 for ac_exec_ext in '' $ac_executable_extensions; do 3457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3458 ac_cv_prog_ac_ct_CC="gcc" 3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3460 break 2 3461 fi 3462done 3463 done 3464IFS=$as_save_IFS 3465 3466fi 3467fi 3468ac_ct_CC=$ac_cv_prog_ac_ct_CC 3469if test -n "$ac_ct_CC"; then 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3471$as_echo "$ac_ct_CC" >&6; } 3472else 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3474$as_echo "no" >&6; } 3475fi 3476 3477 if test "x$ac_ct_CC" = x; then 3478 CC="" 3479 else 3480 case $cross_compiling:$ac_tool_warned in 3481yes:) 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3484ac_tool_warned=yes ;; 3485esac 3486 CC=$ac_ct_CC 3487 fi 3488else 3489 CC="$ac_cv_prog_CC" 3490fi 3491 3492if test -z "$CC"; then 3493 if test -n "$ac_tool_prefix"; then 3494 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3495set dummy ${ac_tool_prefix}cc; ac_word=$2 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3497$as_echo_n "checking for $ac_word... " >&6; } 3498if ${ac_cv_prog_CC+:} false; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 if test -n "$CC"; then 3502 ac_cv_prog_CC="$CC" # Let the user override the test. 3503else 3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3505for as_dir in $PATH 3506do 3507 IFS=$as_save_IFS 3508 test -z "$as_dir" && as_dir=. 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3511 ac_cv_prog_CC="${ac_tool_prefix}cc" 3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516 done 3517IFS=$as_save_IFS 3518 3519fi 3520fi 3521CC=$ac_cv_prog_CC 3522if test -n "$CC"; then 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3524$as_echo "$CC" >&6; } 3525else 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3527$as_echo "no" >&6; } 3528fi 3529 3530 3531 fi 3532fi 3533if test -z "$CC"; then 3534 # Extract the first word of "cc", so it can be a program name with args. 3535set dummy cc; ac_word=$2 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3537$as_echo_n "checking for $ac_word... " >&6; } 3538if ${ac_cv_prog_CC+:} false; then : 3539 $as_echo_n "(cached) " >&6 3540else 3541 if test -n "$CC"; then 3542 ac_cv_prog_CC="$CC" # Let the user override the test. 3543else 3544 ac_prog_rejected=no 3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3546for as_dir in $PATH 3547do 3548 IFS=$as_save_IFS 3549 test -z "$as_dir" && as_dir=. 3550 for ac_exec_ext in '' $ac_executable_extensions; do 3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3553 ac_prog_rejected=yes 3554 continue 3555 fi 3556 ac_cv_prog_CC="cc" 3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3558 break 2 3559 fi 3560done 3561 done 3562IFS=$as_save_IFS 3563 3564if test $ac_prog_rejected = yes; then 3565 # We found a bogon in the path, so make sure we never use it. 3566 set dummy $ac_cv_prog_CC 3567 shift 3568 if test $# != 0; then 3569 # We chose a different compiler from the bogus one. 3570 # However, it has the same basename, so the bogon will be chosen 3571 # first if we set CC to just the basename; use the full file name. 3572 shift 3573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3574 fi 3575fi 3576fi 3577fi 3578CC=$ac_cv_prog_CC 3579if test -n "$CC"; then 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3581$as_echo "$CC" >&6; } 3582else 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3584$as_echo "no" >&6; } 3585fi 3586 3587 3588fi 3589if test -z "$CC"; then 3590 if test -n "$ac_tool_prefix"; then 3591 for ac_prog in cl.exe 3592 do 3593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3594set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3596$as_echo_n "checking for $ac_word... " >&6; } 3597if ${ac_cv_prog_CC+:} false; then : 3598 $as_echo_n "(cached) " >&6 3599else 3600 if test -n "$CC"; then 3601 ac_cv_prog_CC="$CC" # Let the user override the test. 3602else 3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3604for as_dir in $PATH 3605do 3606 IFS=$as_save_IFS 3607 test -z "$as_dir" && as_dir=. 3608 for ac_exec_ext in '' $ac_executable_extensions; do 3609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3612 break 2 3613 fi 3614done 3615 done 3616IFS=$as_save_IFS 3617 3618fi 3619fi 3620CC=$ac_cv_prog_CC 3621if test -n "$CC"; then 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3623$as_echo "$CC" >&6; } 3624else 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3626$as_echo "no" >&6; } 3627fi 3628 3629 3630 test -n "$CC" && break 3631 done 3632fi 3633if test -z "$CC"; then 3634 ac_ct_CC=$CC 3635 for ac_prog in cl.exe 3636do 3637 # Extract the first word of "$ac_prog", so it can be a program name with args. 3638set dummy $ac_prog; ac_word=$2 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3640$as_echo_n "checking for $ac_word... " >&6; } 3641if ${ac_cv_prog_ac_ct_CC+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643else 3644 if test -n "$ac_ct_CC"; then 3645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3646else 3647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3648for as_dir in $PATH 3649do 3650 IFS=$as_save_IFS 3651 test -z "$as_dir" && as_dir=. 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3654 ac_cv_prog_ac_ct_CC="$ac_prog" 3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3656 break 2 3657 fi 3658done 3659 done 3660IFS=$as_save_IFS 3661 3662fi 3663fi 3664ac_ct_CC=$ac_cv_prog_ac_ct_CC 3665if test -n "$ac_ct_CC"; then 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3667$as_echo "$ac_ct_CC" >&6; } 3668else 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3670$as_echo "no" >&6; } 3671fi 3672 3673 3674 test -n "$ac_ct_CC" && break 3675done 3676 3677 if test "x$ac_ct_CC" = x; then 3678 CC="" 3679 else 3680 case $cross_compiling:$ac_tool_warned in 3681yes:) 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3683$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3684ac_tool_warned=yes ;; 3685esac 3686 CC=$ac_ct_CC 3687 fi 3688fi 3689 3690fi 3691 3692 3693test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3695as_fn_error $? "no acceptable C compiler found in \$PATH 3696See \`config.log' for more details" "$LINENO" 5; } 3697 3698# Provide some information about the compiler. 3699$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3700set X $ac_compile 3701ac_compiler=$2 3702for ac_option in --version -v -V -qversion; do 3703 { { ac_try="$ac_compiler $ac_option >&5" 3704case "(($ac_try" in 3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3706 *) ac_try_echo=$ac_try;; 3707esac 3708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3709$as_echo "$ac_try_echo"; } >&5 3710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3711 ac_status=$? 3712 if test -s conftest.err; then 3713 sed '10a\ 3714... rest of stderr output deleted ... 3715 10q' conftest.err >conftest.er1 3716 cat conftest.er1 >&5 3717 fi 3718 rm -f conftest.er1 conftest.err 3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 test $ac_status = 0; } 3721done 3722 3723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3724/* end confdefs.h. */ 3725 3726int 3727main () 3728{ 3729 3730 ; 3731 return 0; 3732} 3733_ACEOF 3734ac_clean_files_save=$ac_clean_files 3735ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3736# Try to create an executable without -o first, disregard a.out. 3737# It will help us diagnose broken compilers, and finding out an intuition 3738# of exeext. 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3740$as_echo_n "checking whether the C compiler works... " >&6; } 3741ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3742 3743# The possible output files: 3744ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3745 3746ac_rmfiles= 3747for ac_file in $ac_files 3748do 3749 case $ac_file in 3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3751 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3752 esac 3753done 3754rm -f $ac_rmfiles 3755 3756if { { ac_try="$ac_link_default" 3757case "(($ac_try" in 3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3759 *) ac_try_echo=$ac_try;; 3760esac 3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3762$as_echo "$ac_try_echo"; } >&5 3763 (eval "$ac_link_default") 2>&5 3764 ac_status=$? 3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3766 test $ac_status = 0; }; then : 3767 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3768# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3769# in a Makefile. We should not override ac_cv_exeext if it was cached, 3770# so that the user can short-circuit this test for compilers unknown to 3771# Autoconf. 3772for ac_file in $ac_files '' 3773do 3774 test -f "$ac_file" || continue 3775 case $ac_file in 3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3777 ;; 3778 [ab].out ) 3779 # We found the default executable, but exeext='' is most 3780 # certainly right. 3781 break;; 3782 *.* ) 3783 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3784 then :; else 3785 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3786 fi 3787 # We set ac_cv_exeext here because the later test for it is not 3788 # safe: cross compilers may not add the suffix if given an `-o' 3789 # argument, so we may need to know it at that point already. 3790 # Even if this section looks crufty: it has the advantage of 3791 # actually working. 3792 break;; 3793 * ) 3794 break;; 3795 esac 3796done 3797test "$ac_cv_exeext" = no && ac_cv_exeext= 3798 3799else 3800 ac_file='' 3801fi 3802if test -z "$ac_file"; then : 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3804$as_echo "no" >&6; } 3805$as_echo "$as_me: failed program was:" >&5 3806sed 's/^/| /' conftest.$ac_ext >&5 3807 3808{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3810as_fn_error 77 "C compiler cannot create executables 3811See \`config.log' for more details" "$LINENO" 5; } 3812else 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3814$as_echo "yes" >&6; } 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3817$as_echo_n "checking for C compiler default output file name... " >&6; } 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3819$as_echo "$ac_file" >&6; } 3820ac_exeext=$ac_cv_exeext 3821 3822rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3823ac_clean_files=$ac_clean_files_save 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3825$as_echo_n "checking for suffix of executables... " >&6; } 3826if { { ac_try="$ac_link" 3827case "(($ac_try" in 3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3829 *) ac_try_echo=$ac_try;; 3830esac 3831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3832$as_echo "$ac_try_echo"; } >&5 3833 (eval "$ac_link") 2>&5 3834 ac_status=$? 3835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3836 test $ac_status = 0; }; then : 3837 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3838# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3839# work properly (i.e., refer to `conftest.exe'), while it won't with 3840# `rm'. 3841for ac_file in conftest.exe conftest conftest.*; do 3842 test -f "$ac_file" || continue 3843 case $ac_file in 3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3846 break;; 3847 * ) break;; 3848 esac 3849done 3850else 3851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3853as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3854See \`config.log' for more details" "$LINENO" 5; } 3855fi 3856rm -f conftest conftest$ac_cv_exeext 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3858$as_echo "$ac_cv_exeext" >&6; } 3859 3860rm -f conftest.$ac_ext 3861EXEEXT=$ac_cv_exeext 3862ac_exeext=$EXEEXT 3863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3864/* end confdefs.h. */ 3865#include <stdio.h> 3866int 3867main () 3868{ 3869FILE *f = fopen ("conftest.out", "w"); 3870 return ferror (f) || fclose (f) != 0; 3871 3872 ; 3873 return 0; 3874} 3875_ACEOF 3876ac_clean_files="$ac_clean_files conftest.out" 3877# Check that the compiler produces executables we can run. If not, either 3878# the compiler is broken, or we cross compile. 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3880$as_echo_n "checking whether we are cross compiling... " >&6; } 3881if test "$cross_compiling" != yes; then 3882 { { ac_try="$ac_link" 3883case "(($ac_try" in 3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3885 *) ac_try_echo=$ac_try;; 3886esac 3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3888$as_echo "$ac_try_echo"; } >&5 3889 (eval "$ac_link") 2>&5 3890 ac_status=$? 3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3892 test $ac_status = 0; } 3893 if { ac_try='./conftest$ac_cv_exeext' 3894 { { case "(($ac_try" in 3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3896 *) ac_try_echo=$ac_try;; 3897esac 3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3899$as_echo "$ac_try_echo"; } >&5 3900 (eval "$ac_try") 2>&5 3901 ac_status=$? 3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3903 test $ac_status = 0; }; }; then 3904 cross_compiling=no 3905 else 3906 if test "$cross_compiling" = maybe; then 3907 cross_compiling=yes 3908 else 3909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3911as_fn_error $? "cannot run C compiled programs. 3912If you meant to cross compile, use \`--host'. 3913See \`config.log' for more details" "$LINENO" 5; } 3914 fi 3915 fi 3916fi 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3918$as_echo "$cross_compiling" >&6; } 3919 3920rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3921ac_clean_files=$ac_clean_files_save 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3923$as_echo_n "checking for suffix of object files... " >&6; } 3924if ${ac_cv_objext+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3928/* end confdefs.h. */ 3929 3930int 3931main () 3932{ 3933 3934 ; 3935 return 0; 3936} 3937_ACEOF 3938rm -f conftest.o conftest.obj 3939if { { ac_try="$ac_compile" 3940case "(($ac_try" in 3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3942 *) ac_try_echo=$ac_try;; 3943esac 3944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3945$as_echo "$ac_try_echo"; } >&5 3946 (eval "$ac_compile") 2>&5 3947 ac_status=$? 3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3949 test $ac_status = 0; }; then : 3950 for ac_file in conftest.o conftest.obj conftest.*; do 3951 test -f "$ac_file" || continue; 3952 case $ac_file in 3953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3954 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3955 break;; 3956 esac 3957done 3958else 3959 $as_echo "$as_me: failed program was:" >&5 3960sed 's/^/| /' conftest.$ac_ext >&5 3961 3962{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3964as_fn_error $? "cannot compute suffix of object files: cannot compile 3965See \`config.log' for more details" "$LINENO" 5; } 3966fi 3967rm -f conftest.$ac_cv_objext conftest.$ac_ext 3968fi 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3970$as_echo "$ac_cv_objext" >&6; } 3971OBJEXT=$ac_cv_objext 3972ac_objext=$OBJEXT 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3974$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3975if ${ac_cv_c_compiler_gnu+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980 3981int 3982main () 3983{ 3984#ifndef __GNUC__ 3985 choke me 3986#endif 3987 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992if ac_fn_c_try_compile "$LINENO"; then : 3993 ac_compiler_gnu=yes 3994else 3995 ac_compiler_gnu=no 3996fi 3997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3998ac_cv_c_compiler_gnu=$ac_compiler_gnu 3999 4000fi 4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4002$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4003if test $ac_compiler_gnu = yes; then 4004 GCC=yes 4005else 4006 GCC= 4007fi 4008ac_test_CFLAGS=${CFLAGS+set} 4009ac_save_CFLAGS=$CFLAGS 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4011$as_echo_n "checking whether $CC accepts -g... " >&6; } 4012if ${ac_cv_prog_cc_g+:} false; then : 4013 $as_echo_n "(cached) " >&6 4014else 4015 ac_save_c_werror_flag=$ac_c_werror_flag 4016 ac_c_werror_flag=yes 4017 ac_cv_prog_cc_g=no 4018 CFLAGS="-g" 4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4020/* end confdefs.h. */ 4021 4022int 4023main () 4024{ 4025 4026 ; 4027 return 0; 4028} 4029_ACEOF 4030if ac_fn_c_try_compile "$LINENO"; then : 4031 ac_cv_prog_cc_g=yes 4032else 4033 CFLAGS="" 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036 4037int 4038main () 4039{ 4040 4041 ; 4042 return 0; 4043} 4044_ACEOF 4045if ac_fn_c_try_compile "$LINENO"; then : 4046 4047else 4048 ac_c_werror_flag=$ac_save_c_werror_flag 4049 CFLAGS="-g" 4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4051/* end confdefs.h. */ 4052 4053int 4054main () 4055{ 4056 4057 ; 4058 return 0; 4059} 4060_ACEOF 4061if ac_fn_c_try_compile "$LINENO"; then : 4062 ac_cv_prog_cc_g=yes 4063fi 4064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4065fi 4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4067fi 4068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4069 ac_c_werror_flag=$ac_save_c_werror_flag 4070fi 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4072$as_echo "$ac_cv_prog_cc_g" >&6; } 4073if test "$ac_test_CFLAGS" = set; then 4074 CFLAGS=$ac_save_CFLAGS 4075elif test $ac_cv_prog_cc_g = yes; then 4076 if test "$GCC" = yes; then 4077 CFLAGS="-g -O2" 4078 else 4079 CFLAGS="-g" 4080 fi 4081else 4082 if test "$GCC" = yes; then 4083 CFLAGS="-O2" 4084 else 4085 CFLAGS= 4086 fi 4087fi 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4089$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4090if ${ac_cv_prog_cc_c89+:} false; then : 4091 $as_echo_n "(cached) " >&6 4092else 4093 ac_cv_prog_cc_c89=no 4094ac_save_CC=$CC 4095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097#include <stdarg.h> 4098#include <stdio.h> 4099struct stat; 4100/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4101struct buf { int x; }; 4102FILE * (*rcsopen) (struct buf *, struct stat *, int); 4103static char *e (p, i) 4104 char **p; 4105 int i; 4106{ 4107 return p[i]; 4108} 4109static char *f (char * (*g) (char **, int), char **p, ...) 4110{ 4111 char *s; 4112 va_list v; 4113 va_start (v,p); 4114 s = g (p, va_arg (v,int)); 4115 va_end (v); 4116 return s; 4117} 4118 4119/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4120 function prototypes and stuff, but not '\xHH' hex character constants. 4121 These don't provoke an error unfortunately, instead are silently treated 4122 as 'x'. The following induces an error, until -std is added to get 4123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4124 array size at least. It's necessary to write '\x00'==0 to get something 4125 that's true only with -std. */ 4126int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4127 4128/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4129 inside strings and character constants. */ 4130#define FOO(x) 'x' 4131int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4132 4133int test (int i, double x); 4134struct s1 {int (*f) (int a);}; 4135struct s2 {int (*f) (double a);}; 4136int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4137int argc; 4138char **argv; 4139int 4140main () 4141{ 4142return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4143 ; 4144 return 0; 4145} 4146_ACEOF 4147for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4149do 4150 CC="$ac_save_CC $ac_arg" 4151 if ac_fn_c_try_compile "$LINENO"; then : 4152 ac_cv_prog_cc_c89=$ac_arg 4153fi 4154rm -f core conftest.err conftest.$ac_objext 4155 test "x$ac_cv_prog_cc_c89" != "xno" && break 4156done 4157rm -f conftest.$ac_ext 4158CC=$ac_save_CC 4159 4160fi 4161# AC_CACHE_VAL 4162case "x$ac_cv_prog_cc_c89" in 4163 x) 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4165$as_echo "none needed" >&6; } ;; 4166 xno) 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4168$as_echo "unsupported" >&6; } ;; 4169 *) 4170 CC="$CC $ac_cv_prog_cc_c89" 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4172$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4173esac 4174if test "x$ac_cv_prog_cc_c89" != xno; then : 4175 4176fi 4177 4178ac_ext=c 4179ac_cpp='$CPP $CPPFLAGS' 4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4182ac_compiler_gnu=$ac_cv_c_compiler_gnu 4183DEPDIR="${am__leading_dot}deps" 4184 4185ac_config_commands="$ac_config_commands depfiles" 4186 4187 4188am_make=${MAKE-make} 4189cat > confinc << 'END' 4190am__doit: 4191 @echo this is the am__doit target 4192.PHONY: am__doit 4193END 4194# If we don't find an include directive, just comment out the code. 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4196$as_echo_n "checking for style of include used by $am_make... " >&6; } 4197am__include="#" 4198am__quote= 4199_am_result=none 4200# First try GNU make style include. 4201echo "include confinc" > confmf 4202# Ignore all kinds of additional output from `make'. 4203case `$am_make -s -f confmf 2> /dev/null` in #( 4204*the\ am__doit\ target*) 4205 am__include=include 4206 am__quote= 4207 _am_result=GNU 4208 ;; 4209esac 4210# Now try BSD make style include. 4211if test "$am__include" = "#"; then 4212 echo '.include "confinc"' > confmf 4213 case `$am_make -s -f confmf 2> /dev/null` in #( 4214 *the\ am__doit\ target*) 4215 am__include=.include 4216 am__quote="\"" 4217 _am_result=BSD 4218 ;; 4219 esac 4220fi 4221 4222 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4224$as_echo "$_am_result" >&6; } 4225rm -f confinc confmf 4226 4227# Check whether --enable-dependency-tracking was given. 4228if test "${enable_dependency_tracking+set}" = set; then : 4229 enableval=$enable_dependency_tracking; 4230fi 4231 4232if test "x$enable_dependency_tracking" != xno; then 4233 am_depcomp="$ac_aux_dir/depcomp" 4234 AMDEPBACKSLASH='\' 4235 am__nodep='_no' 4236fi 4237 if test "x$enable_dependency_tracking" != xno; then 4238 AMDEP_TRUE= 4239 AMDEP_FALSE='#' 4240else 4241 AMDEP_TRUE='#' 4242 AMDEP_FALSE= 4243fi 4244 4245 4246 4247depcc="$CC" am_compiler_list= 4248 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4250$as_echo_n "checking dependency style of $depcc... " >&6; } 4251if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4252 $as_echo_n "(cached) " >&6 4253else 4254 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4255 # We make a subdir and do the tests there. Otherwise we can end up 4256 # making bogus files that we don't know about and never remove. For 4257 # instance it was reported that on HP-UX the gcc test will end up 4258 # making a dummy file named `D' -- because `-MD' means `put the output 4259 # in D'. 4260 rm -rf conftest.dir 4261 mkdir conftest.dir 4262 # Copy depcomp to subdir because otherwise we won't find it if we're 4263 # using a relative directory. 4264 cp "$am_depcomp" conftest.dir 4265 cd conftest.dir 4266 # We will build objects and dependencies in a subdirectory because 4267 # it helps to detect inapplicable dependency modes. For instance 4268 # both Tru64's cc and ICC support -MD to output dependencies as a 4269 # side effect of compilation, but ICC will put the dependencies in 4270 # the current directory while Tru64 will put them in the object 4271 # directory. 4272 mkdir sub 4273 4274 am_cv_CC_dependencies_compiler_type=none 4275 if test "$am_compiler_list" = ""; then 4276 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4277 fi 4278 am__universal=false 4279 case " $depcc " in #( 4280 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4281 esac 4282 4283 for depmode in $am_compiler_list; do 4284 # Setup a source with many dependencies, because some compilers 4285 # like to wrap large dependency lists on column 80 (with \), and 4286 # we should not choose a depcomp mode which is confused by this. 4287 # 4288 # We need to recreate these files for each test, as the compiler may 4289 # overwrite some of them when testing with obscure command lines. 4290 # This happens at least with the AIX C compiler. 4291 : > sub/conftest.c 4292 for i in 1 2 3 4 5 6; do 4293 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4294 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4295 # Solaris 8's {/usr,}/bin/sh. 4296 touch sub/conftst$i.h 4297 done 4298 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4299 4300 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4301 # mode. It turns out that the SunPro C++ compiler does not properly 4302 # handle `-M -o', and we need to detect this. Also, some Intel 4303 # versions had trouble with output in subdirs 4304 am__obj=sub/conftest.${OBJEXT-o} 4305 am__minus_obj="-o $am__obj" 4306 case $depmode in 4307 gcc) 4308 # This depmode causes a compiler race in universal mode. 4309 test "$am__universal" = false || continue 4310 ;; 4311 nosideeffect) 4312 # after this tag, mechanisms are not by side-effect, so they'll 4313 # only be used when explicitly requested 4314 if test "x$enable_dependency_tracking" = xyes; then 4315 continue 4316 else 4317 break 4318 fi 4319 ;; 4320 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4321 # This compiler won't grok `-c -o', but also, the minuso test has 4322 # not run yet. These depmodes are late enough in the game, and 4323 # so weak that their functioning should not be impacted. 4324 am__obj=conftest.${OBJEXT-o} 4325 am__minus_obj= 4326 ;; 4327 none) break ;; 4328 esac 4329 if depmode=$depmode \ 4330 source=sub/conftest.c object=$am__obj \ 4331 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4332 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4333 >/dev/null 2>conftest.err && 4334 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4335 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4336 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4337 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4338 # icc doesn't choke on unknown options, it will just issue warnings 4339 # or remarks (even with -Werror). So we grep stderr for any message 4340 # that says an option was ignored or not supported. 4341 # When given -MP, icc 7.0 and 7.1 complain thusly: 4342 # icc: Command line warning: ignoring option '-M'; no argument required 4343 # The diagnosis changed in icc 8.0: 4344 # icc: Command line remark: option '-MP' not supported 4345 if (grep 'ignoring option' conftest.err || 4346 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4347 am_cv_CC_dependencies_compiler_type=$depmode 4348 break 4349 fi 4350 fi 4351 done 4352 4353 cd .. 4354 rm -rf conftest.dir 4355else 4356 am_cv_CC_dependencies_compiler_type=none 4357fi 4358 4359fi 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4361$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4362CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4363 4364 if 4365 test "x$enable_dependency_tracking" != xno \ 4366 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4367 am__fastdepCC_TRUE= 4368 am__fastdepCC_FALSE='#' 4369else 4370 am__fastdepCC_TRUE='#' 4371 am__fastdepCC_FALSE= 4372fi 4373 4374 4375ac_ext=cpp 4376ac_cpp='$CXXCPP $CPPFLAGS' 4377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4380if test -z "$CXX"; then 4381 if test -n "$CCC"; then 4382 CXX=$CCC 4383 else 4384 if test -n "$ac_tool_prefix"; then 4385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4386 do 4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4388set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4390$as_echo_n "checking for $ac_word... " >&6; } 4391if ${ac_cv_prog_CXX+:} false; then : 4392 $as_echo_n "(cached) " >&6 4393else 4394 if test -n "$CXX"; then 4395 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4396else 4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4398for as_dir in $PATH 4399do 4400 IFS=$as_save_IFS 4401 test -z "$as_dir" && as_dir=. 4402 for ac_exec_ext in '' $ac_executable_extensions; do 4403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4404 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4406 break 2 4407 fi 4408done 4409 done 4410IFS=$as_save_IFS 4411 4412fi 4413fi 4414CXX=$ac_cv_prog_CXX 4415if test -n "$CXX"; then 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4417$as_echo "$CXX" >&6; } 4418else 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4420$as_echo "no" >&6; } 4421fi 4422 4423 4424 test -n "$CXX" && break 4425 done 4426fi 4427if test -z "$CXX"; then 4428 ac_ct_CXX=$CXX 4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4430do 4431 # Extract the first word of "$ac_prog", so it can be a program name with args. 4432set dummy $ac_prog; ac_word=$2 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4434$as_echo_n "checking for $ac_word... " >&6; } 4435if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 if test -n "$ac_ct_CXX"; then 4439 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4440else 4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4442for as_dir in $PATH 4443do 4444 IFS=$as_save_IFS 4445 test -z "$as_dir" && as_dir=. 4446 for ac_exec_ext in '' $ac_executable_extensions; do 4447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4448 ac_cv_prog_ac_ct_CXX="$ac_prog" 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4450 break 2 4451 fi 4452done 4453 done 4454IFS=$as_save_IFS 4455 4456fi 4457fi 4458ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4459if test -n "$ac_ct_CXX"; then 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4461$as_echo "$ac_ct_CXX" >&6; } 4462else 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4464$as_echo "no" >&6; } 4465fi 4466 4467 4468 test -n "$ac_ct_CXX" && break 4469done 4470 4471 if test "x$ac_ct_CXX" = x; then 4472 CXX="g++" 4473 else 4474 case $cross_compiling:$ac_tool_warned in 4475yes:) 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4478ac_tool_warned=yes ;; 4479esac 4480 CXX=$ac_ct_CXX 4481 fi 4482fi 4483 4484 fi 4485fi 4486# Provide some information about the compiler. 4487$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4488set X $ac_compile 4489ac_compiler=$2 4490for ac_option in --version -v -V -qversion; do 4491 { { ac_try="$ac_compiler $ac_option >&5" 4492case "(($ac_try" in 4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4494 *) ac_try_echo=$ac_try;; 4495esac 4496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4497$as_echo "$ac_try_echo"; } >&5 4498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4499 ac_status=$? 4500 if test -s conftest.err; then 4501 sed '10a\ 4502... rest of stderr output deleted ... 4503 10q' conftest.err >conftest.er1 4504 cat conftest.er1 >&5 4505 fi 4506 rm -f conftest.er1 conftest.err 4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4508 test $ac_status = 0; } 4509done 4510 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4512$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4513if ${ac_cv_cxx_compiler_gnu+:} false; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4517/* end confdefs.h. */ 4518 4519int 4520main () 4521{ 4522#ifndef __GNUC__ 4523 choke me 4524#endif 4525 4526 ; 4527 return 0; 4528} 4529_ACEOF 4530if ac_fn_cxx_try_compile "$LINENO"; then : 4531 ac_compiler_gnu=yes 4532else 4533 ac_compiler_gnu=no 4534fi 4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4536ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4537 4538fi 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4540$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4541if test $ac_compiler_gnu = yes; then 4542 GXX=yes 4543else 4544 GXX= 4545fi 4546ac_test_CXXFLAGS=${CXXFLAGS+set} 4547ac_save_CXXFLAGS=$CXXFLAGS 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4549$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4550if ${ac_cv_prog_cxx_g+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4554 ac_cxx_werror_flag=yes 4555 ac_cv_prog_cxx_g=no 4556 CXXFLAGS="-g" 4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4558/* end confdefs.h. */ 4559 4560int 4561main () 4562{ 4563 4564 ; 4565 return 0; 4566} 4567_ACEOF 4568if ac_fn_cxx_try_compile "$LINENO"; then : 4569 ac_cv_prog_cxx_g=yes 4570else 4571 CXXFLAGS="" 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573/* end confdefs.h. */ 4574 4575int 4576main () 4577{ 4578 4579 ; 4580 return 0; 4581} 4582_ACEOF 4583if ac_fn_cxx_try_compile "$LINENO"; then : 4584 4585else 4586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4587 CXXFLAGS="-g" 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4589/* end confdefs.h. */ 4590 4591int 4592main () 4593{ 4594 4595 ; 4596 return 0; 4597} 4598_ACEOF 4599if ac_fn_cxx_try_compile "$LINENO"; then : 4600 ac_cv_prog_cxx_g=yes 4601fi 4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4603fi 4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4605fi 4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4608fi 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4610$as_echo "$ac_cv_prog_cxx_g" >&6; } 4611if test "$ac_test_CXXFLAGS" = set; then 4612 CXXFLAGS=$ac_save_CXXFLAGS 4613elif test $ac_cv_prog_cxx_g = yes; then 4614 if test "$GXX" = yes; then 4615 CXXFLAGS="-g -O2" 4616 else 4617 CXXFLAGS="-g" 4618 fi 4619else 4620 if test "$GXX" = yes; then 4621 CXXFLAGS="-O2" 4622 else 4623 CXXFLAGS= 4624 fi 4625fi 4626ac_ext=c 4627ac_cpp='$CPP $CPPFLAGS' 4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4630ac_compiler_gnu=$ac_cv_c_compiler_gnu 4631 4632depcc="$CXX" am_compiler_list= 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4635$as_echo_n "checking dependency style of $depcc... " >&6; } 4636if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4640 # We make a subdir and do the tests there. Otherwise we can end up 4641 # making bogus files that we don't know about and never remove. For 4642 # instance it was reported that on HP-UX the gcc test will end up 4643 # making a dummy file named `D' -- because `-MD' means `put the output 4644 # in D'. 4645 rm -rf conftest.dir 4646 mkdir conftest.dir 4647 # Copy depcomp to subdir because otherwise we won't find it if we're 4648 # using a relative directory. 4649 cp "$am_depcomp" conftest.dir 4650 cd conftest.dir 4651 # We will build objects and dependencies in a subdirectory because 4652 # it helps to detect inapplicable dependency modes. For instance 4653 # both Tru64's cc and ICC support -MD to output dependencies as a 4654 # side effect of compilation, but ICC will put the dependencies in 4655 # the current directory while Tru64 will put them in the object 4656 # directory. 4657 mkdir sub 4658 4659 am_cv_CXX_dependencies_compiler_type=none 4660 if test "$am_compiler_list" = ""; then 4661 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4662 fi 4663 am__universal=false 4664 case " $depcc " in #( 4665 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4666 esac 4667 4668 for depmode in $am_compiler_list; do 4669 # Setup a source with many dependencies, because some compilers 4670 # like to wrap large dependency lists on column 80 (with \), and 4671 # we should not choose a depcomp mode which is confused by this. 4672 # 4673 # We need to recreate these files for each test, as the compiler may 4674 # overwrite some of them when testing with obscure command lines. 4675 # This happens at least with the AIX C compiler. 4676 : > sub/conftest.c 4677 for i in 1 2 3 4 5 6; do 4678 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4679 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4680 # Solaris 8's {/usr,}/bin/sh. 4681 touch sub/conftst$i.h 4682 done 4683 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4684 4685 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4686 # mode. It turns out that the SunPro C++ compiler does not properly 4687 # handle `-M -o', and we need to detect this. Also, some Intel 4688 # versions had trouble with output in subdirs 4689 am__obj=sub/conftest.${OBJEXT-o} 4690 am__minus_obj="-o $am__obj" 4691 case $depmode in 4692 gcc) 4693 # This depmode causes a compiler race in universal mode. 4694 test "$am__universal" = false || continue 4695 ;; 4696 nosideeffect) 4697 # after this tag, mechanisms are not by side-effect, so they'll 4698 # only be used when explicitly requested 4699 if test "x$enable_dependency_tracking" = xyes; then 4700 continue 4701 else 4702 break 4703 fi 4704 ;; 4705 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4706 # This compiler won't grok `-c -o', but also, the minuso test has 4707 # not run yet. These depmodes are late enough in the game, and 4708 # so weak that their functioning should not be impacted. 4709 am__obj=conftest.${OBJEXT-o} 4710 am__minus_obj= 4711 ;; 4712 none) break ;; 4713 esac 4714 if depmode=$depmode \ 4715 source=sub/conftest.c object=$am__obj \ 4716 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4717 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4718 >/dev/null 2>conftest.err && 4719 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4720 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4721 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4722 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4723 # icc doesn't choke on unknown options, it will just issue warnings 4724 # or remarks (even with -Werror). So we grep stderr for any message 4725 # that says an option was ignored or not supported. 4726 # When given -MP, icc 7.0 and 7.1 complain thusly: 4727 # icc: Command line warning: ignoring option '-M'; no argument required 4728 # The diagnosis changed in icc 8.0: 4729 # icc: Command line remark: option '-MP' not supported 4730 if (grep 'ignoring option' conftest.err || 4731 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4732 am_cv_CXX_dependencies_compiler_type=$depmode 4733 break 4734 fi 4735 fi 4736 done 4737 4738 cd .. 4739 rm -rf conftest.dir 4740else 4741 am_cv_CXX_dependencies_compiler_type=none 4742fi 4743 4744fi 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4746$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4747CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4748 4749 if 4750 test "x$enable_dependency_tracking" != xno \ 4751 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4752 am__fastdepCXX_TRUE= 4753 am__fastdepCXX_FALSE='#' 4754else 4755 am__fastdepCXX_TRUE='#' 4756 am__fastdepCXX_FALSE= 4757fi 4758 4759 4760 4761 4762 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 4764$as_echo_n "checking for C compiler vendor... " >&6; } 4765if ${ax_cv_c_compiler_vendor+:} false; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 ax_cv_c_compiler_vendor=unknown 4769 # note: don't check for gcc first since some other compilers define __GNUC__ 4770 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do 4771 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773/* end confdefs.h. */ 4774 4775int 4776main () 4777{ 4778 4779#if !($vencpp) 4780 thisisanerror; 4781#endif 4782 4783 ; 4784 return 0; 4785} 4786_ACEOF 4787if ac_fn_c_try_compile "$LINENO"; then : 4788 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break 4789fi 4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4791 done 4792 4793fi 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 4795$as_echo "$ax_cv_c_compiler_vendor" >&6; } 4796 4797# Make sure we can run config.sub. 4798$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4799 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4800 4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4802$as_echo_n "checking build system type... " >&6; } 4803if ${ac_cv_build+:} false; then : 4804 $as_echo_n "(cached) " >&6 4805else 4806 ac_build_alias=$build_alias 4807test "x$ac_build_alias" = x && 4808 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4809test "x$ac_build_alias" = x && 4810 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4811ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4813 4814fi 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4816$as_echo "$ac_cv_build" >&6; } 4817case $ac_cv_build in 4818*-*-*) ;; 4819*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4820esac 4821build=$ac_cv_build 4822ac_save_IFS=$IFS; IFS='-' 4823set x $ac_cv_build 4824shift 4825build_cpu=$1 4826build_vendor=$2 4827shift; shift 4828# Remember, the first character of IFS is used to create $*, 4829# except with old shells: 4830build_os=$* 4831IFS=$ac_save_IFS 4832case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4833 4834 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4836$as_echo_n "checking host system type... " >&6; } 4837if ${ac_cv_host+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839else 4840 if test "x$host_alias" = x; then 4841 ac_cv_host=$ac_cv_build 4842else 4843 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4845fi 4846 4847fi 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4849$as_echo "$ac_cv_host" >&6; } 4850case $ac_cv_host in 4851*-*-*) ;; 4852*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4853esac 4854host=$ac_cv_host 4855ac_save_IFS=$IFS; IFS='-' 4856set x $ac_cv_host 4857shift 4858host_cpu=$1 4859host_vendor=$2 4860shift; shift 4861# Remember, the first character of IFS is used to create $*, 4862# except with old shells: 4863host_os=$* 4864IFS=$ac_save_IFS 4865case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4866 4867 4868 4869 4870 4871 4872 4873# Check whether --enable-portable-binary was given. 4874if test "${enable_portable_binary+set}" = set; then : 4875 enableval=$enable_portable_binary; acx_maxopt_portable=$withval 4876else 4877 acx_maxopt_portable=no 4878fi 4879 4880 4881# Try to determine "good" native compiler flags if none specified via CFLAGS 4882if test "$ac_test_CFLAGS" != "set"; then 4883 CFLAGS="" 4884 case $ax_cv_c_compiler_vendor in 4885 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host" 4886 if test "x$acx_maxopt_portable" = xno; then 4887 CFLAGS="$CFLAGS -arch host" 4888 fi;; 4889 4890 sun) CFLAGS="-native -fast -xO5 -dalign" 4891 if test "x$acx_maxopt_portable" = xyes; then 4892 CFLAGS="$CFLAGS -xarch=generic" 4893 fi;; 4894 4895 hp) CFLAGS="+Oall +Optrs_ansi +DSnative" 4896 if test "x$acx_maxopt_portable" = xyes; then 4897 CFLAGS="$CFLAGS +DAportable" 4898 fi;; 4899 4900 ibm) if test "x$acx_maxopt_portable" = xno; then 4901 xlc_opt="-qarch=auto -qtune=auto" 4902 else 4903 xlc_opt="-qtune=auto" 4904 fi 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5 4906$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; } 4907ax_save_FLAGS=$CFLAGS 4908 CFLAGS="$xlc_opt" 4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4910/* end confdefs.h. */ 4911 4912int 4913main () 4914{ 4915 4916 ; 4917 return 0; 4918} 4919_ACEOF 4920if ac_fn_c_try_compile "$LINENO"; then : 4921 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes 4922else 4923 eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no 4924fi 4925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4926 CFLAGS=$ax_save_FLAGS 4927eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh` 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 4929$as_echo "$ax_check_compiler_flags" >&6; } 4930if test "x$ax_check_compiler_flags" = xyes; then 4931 CFLAGS="-O3 -qansialias -w $xlc_opt" 4932else 4933 CFLAGS="-O3 -qansialias -w" 4934 echo "******************************************************" 4935 echo "* You seem to have the IBM C compiler. It is *" 4936 echo "* recommended for best performance that you use: *" 4937 echo "* *" 4938 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *" 4939 echo "* ^^^ ^^^ *" 4940 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *" 4941 echo "* CPU you have. (Set the CFLAGS environment var. *" 4942 echo "* and re-run configure.) For more info, man cc. *" 4943 echo "******************************************************" 4944fi 4945 4946 ;; 4947 4948 intel) CFLAGS="-O3 -ansi_alias" 4949 if test "x$acx_maxopt_portable" = xno; then 4950 icc_archflag=unknown 4951 icc_flags="" 4952 case $host_cpu in 4953 i686*|x86_64*) 4954 # icc accepts gcc assembly syntax, so these should work: 4955 4956ac_ext=c 4957ac_cpp='$CPP $CPPFLAGS' 4958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4960ac_compiler_gnu=$ac_cv_c_compiler_gnu 4961 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 4963$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 4964if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 if test "$cross_compiling" = yes; then : 4968 ax_cv_gcc_x86_cpuid_0=unknown 4969else 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972#include <stdio.h> 4973int 4974main () 4975{ 4976 4977 int op = 0, eax, ebx, ecx, edx; 4978 FILE *f; 4979 __asm__("cpuid" 4980 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 4981 : "a" (op)); 4982 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 4983 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 4984 fclose(f); 4985 return 0; 4986 4987 ; 4988 return 0; 4989} 4990_ACEOF 4991if ac_fn_c_try_run "$LINENO"; then : 4992 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 4993else 4994 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 4995fi 4996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4997 conftest.$ac_objext conftest.beam conftest.$ac_ext 4998fi 4999 5000fi 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 5002$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 5003ac_ext=c 5004ac_cpp='$CPP $CPPFLAGS' 5005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5007ac_compiler_gnu=$ac_cv_c_compiler_gnu 5008 5009 5010 5011ac_ext=c 5012ac_cpp='$CPP $CPPFLAGS' 5013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5015ac_compiler_gnu=$ac_cv_c_compiler_gnu 5016 5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 5018$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 5019if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 5020 $as_echo_n "(cached) " >&6 5021else 5022 if test "$cross_compiling" = yes; then : 5023 ax_cv_gcc_x86_cpuid_1=unknown 5024else 5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5026/* end confdefs.h. */ 5027#include <stdio.h> 5028int 5029main () 5030{ 5031 5032 int op = 1, eax, ebx, ecx, edx; 5033 FILE *f; 5034 __asm__("cpuid" 5035 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 5036 : "a" (op)); 5037 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 5038 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 5039 fclose(f); 5040 return 0; 5041 5042 ; 5043 return 0; 5044} 5045_ACEOF 5046if ac_fn_c_try_run "$LINENO"; then : 5047 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 5048else 5049 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 5050fi 5051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5052 conftest.$ac_objext conftest.beam conftest.$ac_ext 5053fi 5054 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 5057$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 5058ac_ext=c 5059ac_cpp='$CPP $CPPFLAGS' 5060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5062ac_compiler_gnu=$ac_cv_c_compiler_gnu 5063 5064 5065 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG 5066 *:756e6547:*:*) # Intel 5067 case $ax_cv_gcc_x86_cpuid_1 in 5068 *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";; 5069 *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";; 5070 *f??:*:*:*) icc_flags="-xN -xW -xK";; 5071 esac ;; 5072 esac ;; 5073 esac 5074 if test "x$icc_flags" != x; then 5075 for flag in $icc_flags; do 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 5077$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 5078ax_save_FLAGS=$CFLAGS 5079 CFLAGS="$flag" 5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5081/* end confdefs.h. */ 5082 5083int 5084main () 5085{ 5086 5087 ; 5088 return 0; 5089} 5090_ACEOF 5091if ac_fn_c_try_compile "$LINENO"; then : 5092 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes 5093else 5094 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no 5095fi 5096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5097 CFLAGS=$ax_save_FLAGS 5098eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` 5099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 5100$as_echo "$ax_check_compiler_flags" >&6; } 5101if test "x$ax_check_compiler_flags" = xyes; then 5102 icc_archflag=$flag; break 5103else 5104 : 5105fi 5106 5107 done 5108 fi 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5 5110$as_echo_n "checking for icc architecture flag... " >&6; } 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5 5112$as_echo "$icc_archflag" >&6; } 5113 if test "x$icc_archflag" != xunknown; then 5114 CFLAGS="$CFLAGS $icc_archflag" 5115 fi 5116 fi 5117 ;; 5118 5119 gnu) 5120 # default optimization flags for gcc on all systems 5121 CFLAGS="-O3 -fomit-frame-pointer" 5122 5123 # -malign-double for x86 systems 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5 5125$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; } 5126if ${ax_cv_c_flags__malign_double+:} false; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 5130 ax_save_FLAGS=$CFLAGS 5131 CFLAGS="-malign-double" 5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5133/* end confdefs.h. */ 5134 5135int 5136main () 5137{ 5138 5139 ; 5140 return 0; 5141} 5142_ACEOF 5143if ac_fn_c_try_compile "$LINENO"; then : 5144 ax_cv_c_flags__malign_double=yes 5145else 5146 ax_cv_c_flags__malign_double=no 5147fi 5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5149 CFLAGS=$ax_save_FLAGS 5150fi 5151 5152eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 5154$as_echo "$ax_check_compiler_flags" >&6; } 5155if test "x$ax_check_compiler_flags" = xyes; then 5156 CFLAGS="$CFLAGS -malign-double" 5157else 5158 : 5159fi 5160 5161 5162 # -fstrict-aliasing for gcc-2.95+ 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5 5164$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; } 5165if ${ax_cv_c_flags__fstrict_aliasing+:} false; then : 5166 $as_echo_n "(cached) " >&6 5167else 5168 5169 ax_save_FLAGS=$CFLAGS 5170 CFLAGS="-fstrict-aliasing" 5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5172/* end confdefs.h. */ 5173 5174int 5175main () 5176{ 5177 5178 ; 5179 return 0; 5180} 5181_ACEOF 5182if ac_fn_c_try_compile "$LINENO"; then : 5183 ax_cv_c_flags__fstrict_aliasing=yes 5184else 5185 ax_cv_c_flags__fstrict_aliasing=no 5186fi 5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5188 CFLAGS=$ax_save_FLAGS 5189fi 5190 5191eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 5193$as_echo "$ax_check_compiler_flags" >&6; } 5194if test "x$ax_check_compiler_flags" = xyes; then 5195 CFLAGS="$CFLAGS -fstrict-aliasing" 5196else 5197 : 5198fi 5199 5200 5201 # note that we enable "unsafe" fp optimization with other compilers, too 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5 5203$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; } 5204if ${ax_cv_c_flags__ffast_math+:} false; then : 5205 $as_echo_n "(cached) " >&6 5206else 5207 5208 ax_save_FLAGS=$CFLAGS 5209 CFLAGS="-ffast-math" 5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211/* end confdefs.h. */ 5212 5213int 5214main () 5215{ 5216 5217 ; 5218 return 0; 5219} 5220_ACEOF 5221if ac_fn_c_try_compile "$LINENO"; then : 5222 ax_cv_c_flags__ffast_math=yes 5223else 5224 ax_cv_c_flags__ffast_math=no 5225fi 5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5227 CFLAGS=$ax_save_FLAGS 5228fi 5229 5230eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 5232$as_echo "$ax_check_compiler_flags" >&6; } 5233if test "x$ax_check_compiler_flags" = xyes; then 5234 CFLAGS="$CFLAGS -ffast-math" 5235else 5236 : 5237fi 5238 5239 5240 5241 5242 5243 5244# Check whether --with-gcc-arch was given. 5245if test "${with_gcc_arch+set}" = set; then : 5246 withval=$with_gcc_arch; ax_gcc_arch=$withval 5247else 5248 ax_gcc_arch=yes 5249fi 5250 5251 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 5253$as_echo_n "checking for gcc architecture flag... " >&6; } 5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 5255$as_echo "" >&6; } 5256if ${ax_cv_gcc_archflag+:} false; then : 5257 $as_echo_n "(cached) " >&6 5258else 5259 5260ax_cv_gcc_archflag="unknown" 5261 5262if test "$GCC" = yes; then 5263 5264if test "x$ax_gcc_arch" = xyes; then 5265ax_gcc_arch="" 5266if test "$cross_compiling" = no; then 5267case $host_cpu in 5268 i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones 5269 5270ac_ext=c 5271ac_cpp='$CPP $CPPFLAGS' 5272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5274ac_compiler_gnu=$ac_cv_c_compiler_gnu 5275 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5 5277$as_echo_n "checking for x86 cpuid 0 output... " >&6; } 5278if ${ax_cv_gcc_x86_cpuid_0+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 if test "$cross_compiling" = yes; then : 5282 ax_cv_gcc_x86_cpuid_0=unknown 5283else 5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5285/* end confdefs.h. */ 5286#include <stdio.h> 5287int 5288main () 5289{ 5290 5291 int op = 0, eax, ebx, ecx, edx; 5292 FILE *f; 5293 __asm__("cpuid" 5294 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 5295 : "a" (op)); 5296 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 5297 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 5298 fclose(f); 5299 return 0; 5300 5301 ; 5302 return 0; 5303} 5304_ACEOF 5305if ac_fn_c_try_run "$LINENO"; then : 5306 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid 5307else 5308 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid 5309fi 5310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5311 conftest.$ac_objext conftest.beam conftest.$ac_ext 5312fi 5313 5314fi 5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5 5316$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; } 5317ac_ext=c 5318ac_cpp='$CPP $CPPFLAGS' 5319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5321ac_compiler_gnu=$ac_cv_c_compiler_gnu 5322 5323 5324 5325ac_ext=c 5326ac_cpp='$CPP $CPPFLAGS' 5327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5329ac_compiler_gnu=$ac_cv_c_compiler_gnu 5330 5331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5 5332$as_echo_n "checking for x86 cpuid 1 output... " >&6; } 5333if ${ax_cv_gcc_x86_cpuid_1+:} false; then : 5334 $as_echo_n "(cached) " >&6 5335else 5336 if test "$cross_compiling" = yes; then : 5337 ax_cv_gcc_x86_cpuid_1=unknown 5338else 5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5340/* end confdefs.h. */ 5341#include <stdio.h> 5342int 5343main () 5344{ 5345 5346 int op = 1, eax, ebx, ecx, edx; 5347 FILE *f; 5348 __asm__("cpuid" 5349 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 5350 : "a" (op)); 5351 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 5352 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 5353 fclose(f); 5354 return 0; 5355 5356 ; 5357 return 0; 5358} 5359_ACEOF 5360if ac_fn_c_try_run "$LINENO"; then : 5361 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid 5362else 5363 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid 5364fi 5365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5366 conftest.$ac_objext conftest.beam conftest.$ac_ext 5367fi 5368 5369fi 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5 5371$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; } 5372ac_ext=c 5373ac_cpp='$CPP $CPPFLAGS' 5374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5376ac_compiler_gnu=$ac_cv_c_compiler_gnu 5377 5378 5379 case $ax_cv_gcc_x86_cpuid_0 in 5380 *:756e6547:*:*) # Intel 5381 case $ax_cv_gcc_x86_cpuid_1 in 5382 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;; 5383 *5??:*:*:*) ax_gcc_arch=pentium ;; 5384 *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 5385 *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;; 5386 *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 5387 *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;; 5388 *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;; 5389 *6??:*:*:*) ax_gcc_arch=pentiumpro ;; 5390 *f3[347]:*:*:*|*f41347:*:*:*) 5391 case $host_cpu in 5392 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;; 5393 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;; 5394 esac ;; 5395 *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";; 5396 esac ;; 5397 *:68747541:*:*) # AMD 5398 case $ax_cv_gcc_x86_cpuid_1 in 5399 *5[67]?:*:*:*) ax_gcc_arch=k6 ;; 5400 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;; 5401 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;; 5402 *60?:*:*:*) ax_gcc_arch=k7 ;; 5403 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;; 5404 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;; 5405 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;; 5406 *6[68a]?:*:*:*) 5407 5408ac_ext=c 5409ac_cpp='$CPP $CPPFLAGS' 5410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5412ac_compiler_gnu=$ac_cv_c_compiler_gnu 5413 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5 5415$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; } 5416if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 if test "$cross_compiling" = yes; then : 5420 ax_cv_gcc_x86_cpuid_0x80000006=unknown 5421else 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423/* end confdefs.h. */ 5424#include <stdio.h> 5425int 5426main () 5427{ 5428 5429 int op = 0x80000006, eax, ebx, ecx, edx; 5430 FILE *f; 5431 __asm__("cpuid" 5432 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 5433 : "a" (op)); 5434 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 5435 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 5436 fclose(f); 5437 return 0; 5438 5439 ; 5440 return 0; 5441} 5442_ACEOF 5443if ac_fn_c_try_run "$LINENO"; then : 5444 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid 5445else 5446 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid 5447fi 5448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5449 conftest.$ac_objext conftest.beam conftest.$ac_ext 5450fi 5451 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5 5454$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; } 5455ac_ext=c 5456ac_cpp='$CPP $CPPFLAGS' 5457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5459ac_compiler_gnu=$ac_cv_c_compiler_gnu 5460 5461 # L2 cache size 5462 case $ax_cv_gcc_x86_cpuid_0x80000006 in 5463 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256 5464 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;; 5465 *) ax_gcc_arch="athlon-4 athlon k7" ;; 5466 esac ;; 5467 *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;; 5468 *f5?:*:*:*) ax_gcc_arch="opteron k8" ;; 5469 *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;; 5470 *f??:*:*:*) ax_gcc_arch="k8" ;; 5471 esac ;; 5472 *:746e6543:*:*) # IDT 5473 case $ax_cv_gcc_x86_cpuid_1 in 5474 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;; 5475 *58?:*:*:*) ax_gcc_arch=winchip2 ;; 5476 *6[78]?:*:*:*) ax_gcc_arch=c3 ;; 5477 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;; 5478 esac ;; 5479 esac 5480 if test x"$ax_gcc_arch" = x; then # fallback 5481 case $host_cpu in 5482 i586*) ax_gcc_arch=pentium ;; 5483 i686*) ax_gcc_arch=pentiumpro ;; 5484 esac 5485 fi 5486 ;; 5487 5488 sparc*) 5489 # Extract the first word of "prtdiag", so it can be a program name with args. 5490set dummy prtdiag; ac_word=$2 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5492$as_echo_n "checking for $ac_word... " >&6; } 5493if ${ac_cv_path_PRTDIAG+:} false; then : 5494 $as_echo_n "(cached) " >&6 5495else 5496 case $PRTDIAG in 5497 [\\/]* | ?:[\\/]*) 5498 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path. 5499 ;; 5500 *) 5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5502as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/" 5503for as_dir in $as_dummy 5504do 5505 IFS=$as_save_IFS 5506 test -z "$as_dir" && as_dir=. 5507 for ac_exec_ext in '' $ac_executable_extensions; do 5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5509 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext" 5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5511 break 2 5512 fi 5513done 5514 done 5515IFS=$as_save_IFS 5516 5517 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag" 5518 ;; 5519esac 5520fi 5521PRTDIAG=$ac_cv_path_PRTDIAG 5522if test -n "$PRTDIAG"; then 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5 5524$as_echo "$PRTDIAG" >&6; } 5525else 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5527$as_echo "no" >&6; } 5528fi 5529 5530 5531 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` 5532 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters` 5533 case $cputype in 5534 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;; 5535 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;; 5536 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;; 5537 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;; 5538 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;; 5539 *cypress*) ax_gcc_arch=cypress ;; 5540 esac ;; 5541 5542 alphaev5) ax_gcc_arch=ev5 ;; 5543 alphaev56) ax_gcc_arch=ev56 ;; 5544 alphapca56) ax_gcc_arch="pca56 ev56" ;; 5545 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;; 5546 alphaev6) ax_gcc_arch=ev6 ;; 5547 alphaev67) ax_gcc_arch=ev67 ;; 5548 alphaev68) ax_gcc_arch="ev68 ev67" ;; 5549 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;; 5550 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;; 5551 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;; 5552 5553 powerpc*) 5554 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` 5555 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'` 5556 case $cputype in 5557 *750*) ax_gcc_arch="750 G3" ;; 5558 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;; 5559 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;; 5560 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;; 5561 *970*) ax_gcc_arch="970 G5 power4";; 5562 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";; 5563 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";; 5564 603ev|8240) ax_gcc_arch="$cputype 603e 603";; 5565 *) ax_gcc_arch=$cputype ;; 5566 esac 5567 ax_gcc_arch="$ax_gcc_arch powerpc" 5568 ;; 5569esac 5570fi # not cross-compiling 5571fi # guess arch 5572 5573if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then 5574for arch in $ax_gcc_arch; do 5575 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code 5576 flags="-mtune=$arch" 5577 # -mcpu=$arch and m$arch generate nonportable code on every arch except 5578 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr. 5579 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac 5580 else 5581 flags="-march=$arch -mcpu=$arch -m$arch" 5582 fi 5583 for flag in $flags; do 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 5585$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 5586ax_save_FLAGS=$CFLAGS 5587 CFLAGS="$flag" 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5589/* end confdefs.h. */ 5590 5591int 5592main () 5593{ 5594 5595 ; 5596 return 0; 5597} 5598_ACEOF 5599if ac_fn_c_try_compile "$LINENO"; then : 5600 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes 5601else 5602 eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no 5603fi 5604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5605 CFLAGS=$ax_save_FLAGS 5606eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh` 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 5608$as_echo "$ax_check_compiler_flags" >&6; } 5609if test "x$ax_check_compiler_flags" = xyes; then 5610 ax_cv_gcc_archflag=$flag; break 5611else 5612 : 5613fi 5614 5615 done 5616 test "x$ax_cv_gcc_archflag" = xunknown || break 5617done 5618fi 5619 5620fi # $GCC=yes 5621 5622fi 5623 5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5 5625$as_echo_n "checking for gcc architecture flag... " >&6; } 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5 5627$as_echo "$ax_cv_gcc_archflag" >&6; } 5628if test "x$ax_cv_gcc_archflag" = xunknown; then 5629 : 5630else 5631 CFLAGS="$CFLAGS $ax_cv_gcc_archflag" 5632fi 5633 5634 5635 # drop to -O1 for gcc 4.2 5636 $CC --version | 5637 sed -e 's/.* \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/\1 \2/' | 5638 (read major minor 5639 if test $major -eq 4 -a $minor -eq 2; then 5640 exit 0 5641 fi 5642 exit 1 5643 ) && CFLAGS="-O1" 5644 ;; 5645 esac 5646 5647 if test -z "$CFLAGS"; then 5648 echo "" 5649 echo "********************************************************" 5650 echo "* WARNING: Don't know the best CFLAGS for this system *" 5651 echo "* Use ./configure CFLAGS=... to specify your own flags *" 5652 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" 5653 echo "********************************************************" 5654 echo "" 5655 CFLAGS="-O3" 5656 fi 5657 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5 5659$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; } 5660ax_save_FLAGS=$CFLAGS 5661 CFLAGS="$CFLAGS" 5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5663/* end confdefs.h. */ 5664 5665int 5666main () 5667{ 5668 5669 ; 5670 return 0; 5671} 5672_ACEOF 5673if ac_fn_c_try_compile "$LINENO"; then : 5674 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes 5675else 5676 eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no 5677fi 5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5679 CFLAGS=$ax_save_FLAGS 5680eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh` 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5 5682$as_echo "$ax_check_compiler_flags" >&6; } 5683if test "x$ax_check_compiler_flags" = xyes; then 5684 : 5685else 5686 5687 echo "" 5688 echo "********************************************************" 5689 echo "* WARNING: The guessed CFLAGS don't seem to work with *" 5690 echo "* your compiler. *" 5691 echo "* Use ./configure CFLAGS=... to specify your own flags *" 5692 echo "********************************************************" 5693 echo "" 5694 CFLAGS="" 5695 5696fi 5697 5698 5699fi 5700 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports function __attribute__((__warn_unused_result__))" >&5 5702$as_echo_n "checking whether the compiler supports function __attribute__((__warn_unused_result__))... " >&6; } 5703if ${ax_cv_gcc_warn_unused_result+:} false; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5708/* end confdefs.h. */ 5709__attribute__((__warn_unused_result__)) 5710 int f(int i) { return i; } 5711int 5712main () 5713{ 5714 5715 ; 5716 return 0; 5717} 5718_ACEOF 5719if ac_fn_c_try_compile "$LINENO"; then : 5720 ax_cv_gcc_warn_unused_result=yes 5721else 5722 ax_cv_gcc_warn_unused_result=no 5723fi 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5725fi 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_warn_unused_result" >&5 5727$as_echo "$ax_cv_gcc_warn_unused_result" >&6; } 5728 if test "$ax_cv_gcc_warn_unused_result" = yes; then 5729 5730$as_echo "#define GCC_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))" >>confdefs.h 5731 5732 fi 5733 5734 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5 5736$as_echo_n "checking for __attribute__... " >&6; } 5737if ${ax_cv___attribute__+:} false; then : 5738 $as_echo_n "(cached) " >&6 5739else 5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5741/* end confdefs.h. */ 5742#include <stdlib.h> 5743 static void foo(void) __attribute__ ((unused)); 5744 static void 5745 foo(void) { 5746 exit(1); 5747 } 5748 5749int 5750main () 5751{ 5752 5753 ; 5754 return 0; 5755} 5756_ACEOF 5757if ac_fn_c_try_compile "$LINENO"; then : 5758 ax_cv___attribute__=yes 5759else 5760 ax_cv___attribute__=no 5761 5762fi 5763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5764 5765fi 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5 5767$as_echo "$ax_cv___attribute__" >&6; } 5768 if test "$ax_cv___attribute__" = "yes"; then 5769 5770$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h 5771 5772 fi 5773 5774 5775case `pwd` in 5776 *\ * | *\ *) 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5778$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5779esac 5780 5781 5782 5783macro_version='2.4.2.418' 5784macro_revision='2.4.2.418' 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798ltmain=$ac_aux_dir/ltmain.sh 5799 5800# Backslashify metacharacters that are still active within 5801# double-quoted strings. 5802sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5803 5804# Same as above, but do not quote variable references. 5805double_quote_subst='s/\(["`\\]\)/\\\1/g' 5806 5807# Sed substitution to delay expansion of an escaped shell variable in a 5808# double_quote_subst'ed string. 5809delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5810 5811# Sed substitution to delay expansion of an escaped single quote. 5812delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5813 5814# Sed substitution to avoid accidental globbing in evaled expressions 5815no_glob_subst='s/\*/\\\*/g' 5816 5817ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5818ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5819ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5820 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5822$as_echo_n "checking how to print strings... " >&6; } 5823# Test print first, because it will be a builtin if present. 5824if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5825 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5826 ECHO='print -r --' 5827elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5828 ECHO='printf %s\n' 5829else 5830 # Use this function as a fallback that always works. 5831 func_fallback_echo () 5832 { 5833 eval 'cat <<_LTECHO_EOF 5834$1 5835_LTECHO_EOF' 5836 } 5837 ECHO='func_fallback_echo' 5838fi 5839 5840# func_echo_all arg... 5841# Invoke $ECHO with all args, space-separated. 5842func_echo_all () 5843{ 5844 $ECHO "" 5845} 5846 5847case $ECHO in 5848 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5849$as_echo "printf" >&6; } ;; 5850 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5851$as_echo "print -r" >&6; } ;; 5852 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5853$as_echo "cat" >&6; } ;; 5854esac 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5870$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5871if ${ac_cv_path_SED+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873else 5874 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5875 for ac_i in 1 2 3 4 5 6 7; do 5876 ac_script="$ac_script$as_nl$ac_script" 5877 done 5878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5879 { ac_script=; unset ac_script;} 5880 if test -z "$SED"; then 5881 ac_path_SED_found=false 5882 # Loop through the user's path and test for each of PROGNAME-LIST 5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884for as_dir in $PATH 5885do 5886 IFS=$as_save_IFS 5887 test -z "$as_dir" && as_dir=. 5888 for ac_prog in sed gsed; do 5889 for ac_exec_ext in '' $ac_executable_extensions; do 5890 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5891 as_fn_executable_p "$ac_path_SED" || continue 5892# Check for GNU ac_path_SED and select it if it is found. 5893 # Check for GNU $ac_path_SED 5894case `"$ac_path_SED" --version 2>&1` in 5895*GNU*) 5896 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5897*) 5898 ac_count=0 5899 $as_echo_n 0123456789 >"conftest.in" 5900 while : 5901 do 5902 cat "conftest.in" "conftest.in" >"conftest.tmp" 5903 mv "conftest.tmp" "conftest.in" 5904 cp "conftest.in" "conftest.nl" 5905 $as_echo '' >> "conftest.nl" 5906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5908 as_fn_arith $ac_count + 1 && ac_count=$as_val 5909 if test $ac_count -gt ${ac_path_SED_max-0}; then 5910 # Best one so far, save it but keep looking for a better one 5911 ac_cv_path_SED="$ac_path_SED" 5912 ac_path_SED_max=$ac_count 5913 fi 5914 # 10*(2^10) chars as input seems more than enough 5915 test $ac_count -gt 10 && break 5916 done 5917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5918esac 5919 5920 $ac_path_SED_found && break 3 5921 done 5922 done 5923 done 5924IFS=$as_save_IFS 5925 if test -z "$ac_cv_path_SED"; then 5926 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5927 fi 5928else 5929 ac_cv_path_SED=$SED 5930fi 5931 5932fi 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5934$as_echo "$ac_cv_path_SED" >&6; } 5935 SED="$ac_cv_path_SED" 5936 rm -f conftest.sed 5937 5938test -z "$SED" && SED=sed 5939Xsed="$SED -e 1s/^X//" 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5952$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5953if ${ac_cv_path_GREP+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955else 5956 if test -z "$GREP"; then 5957 ac_path_GREP_found=false 5958 # Loop through the user's path and test for each of PROGNAME-LIST 5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5960for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5961do 5962 IFS=$as_save_IFS 5963 test -z "$as_dir" && as_dir=. 5964 for ac_prog in grep ggrep; do 5965 for ac_exec_ext in '' $ac_executable_extensions; do 5966 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5967 as_fn_executable_p "$ac_path_GREP" || continue 5968# Check for GNU ac_path_GREP and select it if it is found. 5969 # Check for GNU $ac_path_GREP 5970case `"$ac_path_GREP" --version 2>&1` in 5971*GNU*) 5972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5973*) 5974 ac_count=0 5975 $as_echo_n 0123456789 >"conftest.in" 5976 while : 5977 do 5978 cat "conftest.in" "conftest.in" >"conftest.tmp" 5979 mv "conftest.tmp" "conftest.in" 5980 cp "conftest.in" "conftest.nl" 5981 $as_echo 'GREP' >> "conftest.nl" 5982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5984 as_fn_arith $ac_count + 1 && ac_count=$as_val 5985 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5986 # Best one so far, save it but keep looking for a better one 5987 ac_cv_path_GREP="$ac_path_GREP" 5988 ac_path_GREP_max=$ac_count 5989 fi 5990 # 10*(2^10) chars as input seems more than enough 5991 test $ac_count -gt 10 && break 5992 done 5993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5994esac 5995 5996 $ac_path_GREP_found && break 3 5997 done 5998 done 5999 done 6000IFS=$as_save_IFS 6001 if test -z "$ac_cv_path_GREP"; then 6002 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6003 fi 6004else 6005 ac_cv_path_GREP=$GREP 6006fi 6007 6008fi 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6010$as_echo "$ac_cv_path_GREP" >&6; } 6011 GREP="$ac_cv_path_GREP" 6012 6013 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6015$as_echo_n "checking for egrep... " >&6; } 6016if ${ac_cv_path_EGREP+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6020 then ac_cv_path_EGREP="$GREP -E" 6021 else 6022 if test -z "$EGREP"; then 6023 ac_path_EGREP_found=false 6024 # Loop through the user's path and test for each of PROGNAME-LIST 6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6027do 6028 IFS=$as_save_IFS 6029 test -z "$as_dir" && as_dir=. 6030 for ac_prog in egrep; do 6031 for ac_exec_ext in '' $ac_executable_extensions; do 6032 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6033 as_fn_executable_p "$ac_path_EGREP" || continue 6034# Check for GNU ac_path_EGREP and select it if it is found. 6035 # Check for GNU $ac_path_EGREP 6036case `"$ac_path_EGREP" --version 2>&1` in 6037*GNU*) 6038 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6039*) 6040 ac_count=0 6041 $as_echo_n 0123456789 >"conftest.in" 6042 while : 6043 do 6044 cat "conftest.in" "conftest.in" >"conftest.tmp" 6045 mv "conftest.tmp" "conftest.in" 6046 cp "conftest.in" "conftest.nl" 6047 $as_echo 'EGREP' >> "conftest.nl" 6048 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6050 as_fn_arith $ac_count + 1 && ac_count=$as_val 6051 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6052 # Best one so far, save it but keep looking for a better one 6053 ac_cv_path_EGREP="$ac_path_EGREP" 6054 ac_path_EGREP_max=$ac_count 6055 fi 6056 # 10*(2^10) chars as input seems more than enough 6057 test $ac_count -gt 10 && break 6058 done 6059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6060esac 6061 6062 $ac_path_EGREP_found && break 3 6063 done 6064 done 6065 done 6066IFS=$as_save_IFS 6067 if test -z "$ac_cv_path_EGREP"; then 6068 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6069 fi 6070else 6071 ac_cv_path_EGREP=$EGREP 6072fi 6073 6074 fi 6075fi 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6077$as_echo "$ac_cv_path_EGREP" >&6; } 6078 EGREP="$ac_cv_path_EGREP" 6079 6080 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6082$as_echo_n "checking for fgrep... " >&6; } 6083if ${ac_cv_path_FGREP+:} false; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6087 then ac_cv_path_FGREP="$GREP -F" 6088 else 6089 if test -z "$FGREP"; then 6090 ac_path_FGREP_found=false 6091 # Loop through the user's path and test for each of PROGNAME-LIST 6092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6093for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6094do 6095 IFS=$as_save_IFS 6096 test -z "$as_dir" && as_dir=. 6097 for ac_prog in fgrep; do 6098 for ac_exec_ext in '' $ac_executable_extensions; do 6099 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6100 as_fn_executable_p "$ac_path_FGREP" || continue 6101# Check for GNU ac_path_FGREP and select it if it is found. 6102 # Check for GNU $ac_path_FGREP 6103case `"$ac_path_FGREP" --version 2>&1` in 6104*GNU*) 6105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6106*) 6107 ac_count=0 6108 $as_echo_n 0123456789 >"conftest.in" 6109 while : 6110 do 6111 cat "conftest.in" "conftest.in" >"conftest.tmp" 6112 mv "conftest.tmp" "conftest.in" 6113 cp "conftest.in" "conftest.nl" 6114 $as_echo 'FGREP' >> "conftest.nl" 6115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6117 as_fn_arith $ac_count + 1 && ac_count=$as_val 6118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6119 # Best one so far, save it but keep looking for a better one 6120 ac_cv_path_FGREP="$ac_path_FGREP" 6121 ac_path_FGREP_max=$ac_count 6122 fi 6123 # 10*(2^10) chars as input seems more than enough 6124 test $ac_count -gt 10 && break 6125 done 6126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6127esac 6128 6129 $ac_path_FGREP_found && break 3 6130 done 6131 done 6132 done 6133IFS=$as_save_IFS 6134 if test -z "$ac_cv_path_FGREP"; then 6135 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6136 fi 6137else 6138 ac_cv_path_FGREP=$FGREP 6139fi 6140 6141 fi 6142fi 6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6144$as_echo "$ac_cv_path_FGREP" >&6; } 6145 FGREP="$ac_cv_path_FGREP" 6146 6147 6148test -z "$GREP" && GREP=grep 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168# Check whether --with-gnu-ld was given. 6169if test "${with_gnu_ld+set}" = set; then : 6170 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6171else 6172 with_gnu_ld=no 6173fi 6174 6175ac_prog=ld 6176if test yes = "$GCC"; then 6177 # Check if gcc -print-prog-name=ld gives a path. 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6179$as_echo_n "checking for ld used by $CC... " >&6; } 6180 case $host in 6181 *-*-mingw*) 6182 # gcc leaves a trailing carriage return, which upsets mingw 6183 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6184 *) 6185 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6186 esac 6187 case $ac_prog in 6188 # Accept absolute paths. 6189 [\\/]* | ?:[\\/]*) 6190 re_direlt='/[^/][^/]*/\.\./' 6191 # Canonicalize the pathname of ld 6192 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6193 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6194 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6195 done 6196 test -z "$LD" && LD=$ac_prog 6197 ;; 6198 "") 6199 # If it fails, then pretend we aren't using GCC. 6200 ac_prog=ld 6201 ;; 6202 *) 6203 # If it is relative, then search for the first ld in PATH. 6204 with_gnu_ld=unknown 6205 ;; 6206 esac 6207elif test yes = "$with_gnu_ld"; then 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6209$as_echo_n "checking for GNU ld... " >&6; } 6210else 6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6212$as_echo_n "checking for non-GNU ld... " >&6; } 6213fi 6214if ${lt_cv_path_LD+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216else 6217 if test -z "$LD"; then 6218 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6219 for ac_dir in $PATH; do 6220 IFS=$lt_save_ifs 6221 test -z "$ac_dir" && ac_dir=. 6222 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6223 lt_cv_path_LD=$ac_dir/$ac_prog 6224 # Check to see if the program is GNU ld. I'd rather use --version, 6225 # but apparently some variants of GNU ld only accept -v. 6226 # Break only if it was the GNU/non-GNU ld that we prefer. 6227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6228 *GNU* | *'with BFD'*) 6229 test no != "$with_gnu_ld" && break 6230 ;; 6231 *) 6232 test yes != "$with_gnu_ld" && break 6233 ;; 6234 esac 6235 fi 6236 done 6237 IFS=$lt_save_ifs 6238else 6239 lt_cv_path_LD=$LD # Let the user override the test with a path. 6240fi 6241fi 6242 6243LD=$lt_cv_path_LD 6244if test -n "$LD"; then 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6246$as_echo "$LD" >&6; } 6247else 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6249$as_echo "no" >&6; } 6250fi 6251test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6253$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6254if ${lt_cv_prog_gnu_ld+:} false; then : 6255 $as_echo_n "(cached) " >&6 6256else 6257 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6258case `$LD -v 2>&1 </dev/null` in 6259*GNU* | *'with BFD'*) 6260 lt_cv_prog_gnu_ld=yes 6261 ;; 6262*) 6263 lt_cv_prog_gnu_ld=no 6264 ;; 6265esac 6266fi 6267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6268$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6269with_gnu_ld=$lt_cv_prog_gnu_ld 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6280$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6281if ${lt_cv_path_NM+:} false; then : 6282 $as_echo_n "(cached) " >&6 6283else 6284 if test -n "$NM"; then 6285 # Let the user override the test. 6286 lt_cv_path_NM=$NM 6287else 6288 lt_nm_to_check=${ac_tool_prefix}nm 6289 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6290 lt_nm_to_check="$lt_nm_to_check nm" 6291 fi 6292 for lt_tmp_nm in $lt_nm_to_check; do 6293 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6294 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6295 IFS=$lt_save_ifs 6296 test -z "$ac_dir" && ac_dir=. 6297 tmp_nm=$ac_dir/$lt_tmp_nm 6298 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6299 # Check to see if the nm accepts a BSD-compat flag. 6300 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6301 # nm: unknown option "B" ignored 6302 # Tru64's nm complains that /dev/null is an invalid object file 6303 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6304 */dev/null* | *'Invalid file or object type'*) 6305 lt_cv_path_NM="$tmp_nm -B" 6306 break 2 6307 ;; 6308 *) 6309 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6310 */dev/null*) 6311 lt_cv_path_NM="$tmp_nm -p" 6312 break 2 6313 ;; 6314 *) 6315 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6316 continue # so that we can try to find one that supports BSD flags 6317 ;; 6318 esac 6319 ;; 6320 esac 6321 fi 6322 done 6323 IFS=$lt_save_ifs 6324 done 6325 : ${lt_cv_path_NM=no} 6326fi 6327fi 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6329$as_echo "$lt_cv_path_NM" >&6; } 6330if test no != "$lt_cv_path_NM"; then 6331 NM=$lt_cv_path_NM 6332else 6333 # Didn't find any BSD compatible name lister, look for dumpbin. 6334 if test -n "$DUMPBIN"; then : 6335 # Let the user override the test. 6336 else 6337 if test -n "$ac_tool_prefix"; then 6338 for ac_prog in dumpbin "link -dump" 6339 do 6340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6341set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6343$as_echo_n "checking for $ac_word... " >&6; } 6344if ${ac_cv_prog_DUMPBIN+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 if test -n "$DUMPBIN"; then 6348 ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 test -z "$as_dir" && as_dir=. 6355 for ac_exec_ext in '' $ac_executable_extensions; do 6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6357 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6359 break 2 6360 fi 6361done 6362 done 6363IFS=$as_save_IFS 6364 6365fi 6366fi 6367DUMPBIN=$ac_cv_prog_DUMPBIN 6368if test -n "$DUMPBIN"; then 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6370$as_echo "$DUMPBIN" >&6; } 6371else 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6373$as_echo "no" >&6; } 6374fi 6375 6376 6377 test -n "$DUMPBIN" && break 6378 done 6379fi 6380if test -z "$DUMPBIN"; then 6381 ac_ct_DUMPBIN=$DUMPBIN 6382 for ac_prog in dumpbin "link -dump" 6383do 6384 # Extract the first word of "$ac_prog", so it can be a program name with args. 6385set dummy $ac_prog; ac_word=$2 6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6387$as_echo_n "checking for $ac_word... " >&6; } 6388if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6389 $as_echo_n "(cached) " >&6 6390else 6391 if test -n "$ac_ct_DUMPBIN"; then 6392 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6393else 6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6395for as_dir in $PATH 6396do 6397 IFS=$as_save_IFS 6398 test -z "$as_dir" && as_dir=. 6399 for ac_exec_ext in '' $ac_executable_extensions; do 6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6401 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6403 break 2 6404 fi 6405done 6406 done 6407IFS=$as_save_IFS 6408 6409fi 6410fi 6411ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6412if test -n "$ac_ct_DUMPBIN"; then 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6414$as_echo "$ac_ct_DUMPBIN" >&6; } 6415else 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6417$as_echo "no" >&6; } 6418fi 6419 6420 6421 test -n "$ac_ct_DUMPBIN" && break 6422done 6423 6424 if test "x$ac_ct_DUMPBIN" = x; then 6425 DUMPBIN=":" 6426 else 6427 case $cross_compiling:$ac_tool_warned in 6428yes:) 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6431ac_tool_warned=yes ;; 6432esac 6433 DUMPBIN=$ac_ct_DUMPBIN 6434 fi 6435fi 6436 6437 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6438 *COFF*) 6439 DUMPBIN="$DUMPBIN -symbols -headers" 6440 ;; 6441 *) 6442 DUMPBIN=: 6443 ;; 6444 esac 6445 fi 6446 6447 if test : != "$DUMPBIN"; then 6448 NM=$DUMPBIN 6449 fi 6450fi 6451test -z "$NM" && NM=nm 6452 6453 6454 6455 6456 6457 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6459$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6460if ${lt_cv_nm_interface+:} false; then : 6461 $as_echo_n "(cached) " >&6 6462else 6463 lt_cv_nm_interface="BSD nm" 6464 echo "int some_variable = 0;" > conftest.$ac_ext 6465 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6466 (eval "$ac_compile" 2>conftest.err) 6467 cat conftest.err >&5 6468 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6469 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6470 cat conftest.err >&5 6471 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6472 cat conftest.out >&5 6473 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6474 lt_cv_nm_interface="MS dumpbin" 6475 fi 6476 rm -f conftest* 6477fi 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6479$as_echo "$lt_cv_nm_interface" >&6; } 6480 6481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6482$as_echo_n "checking whether ln -s works... " >&6; } 6483LN_S=$as_ln_s 6484if test "$LN_S" = "ln -s"; then 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6486$as_echo "yes" >&6; } 6487else 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6489$as_echo "no, using $LN_S" >&6; } 6490fi 6491 6492# find the maximum length of command line arguments 6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6494$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6495if ${lt_cv_sys_max_cmd_len+:} false; then : 6496 $as_echo_n "(cached) " >&6 6497else 6498 i=0 6499 teststring=ABCD 6500 6501 case $build_os in 6502 msdosdjgpp*) 6503 # On DJGPP, this test can blow up pretty badly due to problems in libc 6504 # (any single argument exceeding 2000 bytes causes a buffer overrun 6505 # during glob expansion). Even if it were fixed, the result of this 6506 # check would be larger than it should be. 6507 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6508 ;; 6509 6510 gnu*) 6511 # Under GNU Hurd, this test is not required because there is 6512 # no limit to the length of command line arguments. 6513 # Libtool will interpret -1 as no limit whatsoever 6514 lt_cv_sys_max_cmd_len=-1; 6515 ;; 6516 6517 cygwin* | mingw* | cegcc*) 6518 # On Win9x/ME, this test blows up -- it succeeds, but takes 6519 # about 5 minutes as the teststring grows exponentially. 6520 # Worse, since 9x/ME are not pre-emptively multitasking, 6521 # you end up with a "frozen" computer, even though with patience 6522 # the test eventually succeeds (with a max line length of 256k). 6523 # Instead, let's just punt: use the minimum linelength reported by 6524 # all of the supported platforms: 8192 (on NT/2K/XP). 6525 lt_cv_sys_max_cmd_len=8192; 6526 ;; 6527 6528 mint*) 6529 # On MiNT this can take a long time and run out of memory. 6530 lt_cv_sys_max_cmd_len=8192; 6531 ;; 6532 6533 amigaos*) 6534 # On AmigaOS with pdksh, this test takes hours, literally. 6535 # So we just punt and use a minimum line length of 8192. 6536 lt_cv_sys_max_cmd_len=8192; 6537 ;; 6538 6539 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6540 # This has been around since 386BSD, at least. Likely further. 6541 if test -x /sbin/sysctl; then 6542 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6543 elif test -x /usr/sbin/sysctl; then 6544 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6545 else 6546 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6547 fi 6548 # And add a safety zone 6549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6551 ;; 6552 6553 interix*) 6554 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6555 lt_cv_sys_max_cmd_len=196608 6556 ;; 6557 6558 os2*) 6559 # The test takes a long time on OS/2. 6560 lt_cv_sys_max_cmd_len=8192 6561 ;; 6562 6563 osf*) 6564 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6565 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6566 # nice to cause kernel panics so lets avoid the loop below. 6567 # First set a reasonable default. 6568 lt_cv_sys_max_cmd_len=16384 6569 # 6570 if test -x /sbin/sysconfig; then 6571 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6572 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6573 esac 6574 fi 6575 ;; 6576 sco3.2v5*) 6577 lt_cv_sys_max_cmd_len=102400 6578 ;; 6579 sysv5* | sco5v6* | sysv4.2uw2*) 6580 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6581 if test -n "$kargmax"; then 6582 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6583 else 6584 lt_cv_sys_max_cmd_len=32768 6585 fi 6586 ;; 6587 *) 6588 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6589 if test -n "$lt_cv_sys_max_cmd_len" && \ 6590 test undefined != "$lt_cv_sys_max_cmd_len"; then 6591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6593 else 6594 # Make teststring a little bigger before we do anything with it. 6595 # a 1K string should be a reasonable start. 6596 for i in 1 2 3 4 5 6 7 8; do 6597 teststring=$teststring$teststring 6598 done 6599 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6600 # If test is not a shell built-in, we'll probably end up computing a 6601 # maximum length that is only half of the actual maximum length, but 6602 # we can't tell. 6603 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6604 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6605 test 17 != "$i" # 1/2 MB should be enough 6606 do 6607 i=`expr $i + 1` 6608 teststring=$teststring$teststring 6609 done 6610 # Only check the string length outside the loop. 6611 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6612 teststring= 6613 # Add a significant safety factor because C++ compilers can tack on 6614 # massive amounts of additional arguments before passing them to the 6615 # linker. It appears as though 1/2 is a usable value. 6616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6617 fi 6618 ;; 6619 esac 6620 6621fi 6622 6623if test -n "$lt_cv_sys_max_cmd_len"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6625$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6628$as_echo "none" >&6; } 6629fi 6630max_cmd_len=$lt_cv_sys_max_cmd_len 6631 6632 6633 6634 6635 6636 6637: ${CP="cp -f"} 6638: ${MV="mv -f"} 6639: ${RM="rm -f"} 6640 6641if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6642 lt_unset=unset 6643else 6644 lt_unset=false 6645fi 6646 6647 6648 6649 6650 6651# test EBCDIC or ASCII 6652case `echo X|tr X '\101'` in 6653 A) # ASCII based system 6654 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6655 lt_SP2NL='tr \040 \012' 6656 lt_NL2SP='tr \015\012 \040\040' 6657 ;; 6658 *) # EBCDIC based system 6659 lt_SP2NL='tr \100 \n' 6660 lt_NL2SP='tr \r\n \100\100' 6661 ;; 6662esac 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6673$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6674if ${lt_cv_to_host_file_cmd+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 case $host in 6678 *-*-mingw* ) 6679 case $build in 6680 *-*-mingw* ) # actually msys 6681 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6682 ;; 6683 *-*-cygwin* ) 6684 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6685 ;; 6686 * ) # otherwise, assume *nix 6687 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6688 ;; 6689 esac 6690 ;; 6691 *-*-cygwin* ) 6692 case $build in 6693 *-*-mingw* ) # actually msys 6694 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6695 ;; 6696 *-*-cygwin* ) 6697 lt_cv_to_host_file_cmd=func_convert_file_noop 6698 ;; 6699 * ) # otherwise, assume *nix 6700 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6701 ;; 6702 esac 6703 ;; 6704 * ) # unhandled hosts (and "normal" native builds) 6705 lt_cv_to_host_file_cmd=func_convert_file_noop 6706 ;; 6707esac 6708 6709fi 6710 6711to_host_file_cmd=$lt_cv_to_host_file_cmd 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6713$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6714 6715 6716 6717 6718 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6720$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6721if ${lt_cv_to_tool_file_cmd+:} false; then : 6722 $as_echo_n "(cached) " >&6 6723else 6724 #assume ordinary cross tools, or native build. 6725lt_cv_to_tool_file_cmd=func_convert_file_noop 6726case $host in 6727 *-*-mingw* ) 6728 case $build in 6729 *-*-mingw* ) # actually msys 6730 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6731 ;; 6732 esac 6733 ;; 6734esac 6735 6736fi 6737 6738to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6740$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6741 6742 6743 6744 6745 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6747$as_echo_n "checking for $LD option to reload object files... " >&6; } 6748if ${lt_cv_ld_reload_flag+:} false; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 lt_cv_ld_reload_flag='-r' 6752fi 6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6754$as_echo "$lt_cv_ld_reload_flag" >&6; } 6755reload_flag=$lt_cv_ld_reload_flag 6756case $reload_flag in 6757"" | " "*) ;; 6758*) reload_flag=" $reload_flag" ;; 6759esac 6760reload_cmds='$LD$reload_flag -o $output$reload_objs' 6761case $host_os in 6762 cygwin* | mingw* | pw32* | cegcc*) 6763 if test yes != "$GCC"; then 6764 reload_cmds=false 6765 fi 6766 ;; 6767 darwin*) 6768 if test yes = "$GCC"; then 6769 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6770 else 6771 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6772 fi 6773 ;; 6774esac 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784if test -n "$ac_tool_prefix"; then 6785 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6786set dummy ${ac_tool_prefix}objdump; ac_word=$2 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if ${ac_cv_prog_OBJDUMP+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 if test -n "$OBJDUMP"; then 6793 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6802 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812OBJDUMP=$ac_cv_prog_OBJDUMP 6813if test -n "$OBJDUMP"; then 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6815$as_echo "$OBJDUMP" >&6; } 6816else 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818$as_echo "no" >&6; } 6819fi 6820 6821 6822fi 6823if test -z "$ac_cv_prog_OBJDUMP"; then 6824 ac_ct_OBJDUMP=$OBJDUMP 6825 # Extract the first word of "objdump", so it can be a program name with args. 6826set dummy objdump; ac_word=$2 6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6828$as_echo_n "checking for $ac_word... " >&6; } 6829if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6830 $as_echo_n "(cached) " >&6 6831else 6832 if test -n "$ac_ct_OBJDUMP"; then 6833 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6834else 6835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6836for as_dir in $PATH 6837do 6838 IFS=$as_save_IFS 6839 test -z "$as_dir" && as_dir=. 6840 for ac_exec_ext in '' $ac_executable_extensions; do 6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6842 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6844 break 2 6845 fi 6846done 6847 done 6848IFS=$as_save_IFS 6849 6850fi 6851fi 6852ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6853if test -n "$ac_ct_OBJDUMP"; then 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6855$as_echo "$ac_ct_OBJDUMP" >&6; } 6856else 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6858$as_echo "no" >&6; } 6859fi 6860 6861 if test "x$ac_ct_OBJDUMP" = x; then 6862 OBJDUMP="false" 6863 else 6864 case $cross_compiling:$ac_tool_warned in 6865yes:) 6866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6868ac_tool_warned=yes ;; 6869esac 6870 OBJDUMP=$ac_ct_OBJDUMP 6871 fi 6872else 6873 OBJDUMP="$ac_cv_prog_OBJDUMP" 6874fi 6875 6876test -z "$OBJDUMP" && OBJDUMP=objdump 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6887$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6888if ${lt_cv_deplibs_check_method+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 lt_cv_file_magic_cmd='$MAGIC_CMD' 6892lt_cv_file_magic_test_file= 6893lt_cv_deplibs_check_method='unknown' 6894# Need to set the preceding variable on all platforms that support 6895# interlibrary dependencies. 6896# 'none' -- dependencies not supported. 6897# 'unknown' -- same as none, but documents that we really don't know. 6898# 'pass_all' -- all dependencies passed with no checks. 6899# 'test_compile' -- check by making test program. 6900# 'file_magic [[regex]]' -- check by looking for files in library path 6901# that responds to the $file_magic_cmd with a given extended regex. 6902# If you have 'file' or equivalent on your system and you're not sure 6903# whether 'pass_all' will *always* work, you probably want this one. 6904 6905case $host_os in 6906aix[4-9]*) 6907 lt_cv_deplibs_check_method=pass_all 6908 ;; 6909 6910beos*) 6911 lt_cv_deplibs_check_method=pass_all 6912 ;; 6913 6914bsdi[45]*) 6915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6916 lt_cv_file_magic_cmd='/usr/bin/file -L' 6917 lt_cv_file_magic_test_file=/shlib/libc.so 6918 ;; 6919 6920cygwin*) 6921 # func_win32_libid is a shell function defined in ltmain.sh 6922 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6923 lt_cv_file_magic_cmd='func_win32_libid' 6924 ;; 6925 6926mingw* | pw32*) 6927 # Base MSYS/MinGW do not provide the 'file' command needed by 6928 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6929 # unless we find 'file', for example because we are cross-compiling. 6930 if ( file / ) >/dev/null 2>&1; then 6931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6932 lt_cv_file_magic_cmd='func_win32_libid' 6933 else 6934 # Keep this pattern in sync with the one in func_win32_libid. 6935 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6936 lt_cv_file_magic_cmd='$OBJDUMP -f' 6937 fi 6938 ;; 6939 6940cegcc*) 6941 # use the weaker test based on 'objdump'. See mingw*. 6942 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6943 lt_cv_file_magic_cmd='$OBJDUMP -f' 6944 ;; 6945 6946darwin* | rhapsody*) 6947 lt_cv_deplibs_check_method=pass_all 6948 ;; 6949 6950freebsd* | dragonfly*) 6951 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6952 case $host_cpu in 6953 i*86 ) 6954 # Not sure whether the presence of OpenBSD here was a mistake. 6955 # Let's accept both of them until this is cleared up. 6956 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6957 lt_cv_file_magic_cmd=/usr/bin/file 6958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6959 ;; 6960 esac 6961 else 6962 lt_cv_deplibs_check_method=pass_all 6963 fi 6964 ;; 6965 6966haiku*) 6967 lt_cv_deplibs_check_method=pass_all 6968 ;; 6969 6970hpux10.20* | hpux11*) 6971 lt_cv_file_magic_cmd=/usr/bin/file 6972 case $host_cpu in 6973 ia64*) 6974 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6976 ;; 6977 hppa*64*) 6978 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]' 6979 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6980 ;; 6981 *) 6982 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6983 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6984 ;; 6985 esac 6986 ;; 6987 6988interix[3-9]*) 6989 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6991 ;; 6992 6993irix5* | irix6* | nonstopux*) 6994 case $LD in 6995 *-32|*"-32 ") libmagic=32-bit;; 6996 *-n32|*"-n32 ") libmagic=N32;; 6997 *-64|*"-64 ") libmagic=64-bit;; 6998 *) libmagic=never-match;; 6999 esac 7000 lt_cv_deplibs_check_method=pass_all 7001 ;; 7002 7003# This must be glibc/ELF. 7004linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7005 lt_cv_deplibs_check_method=pass_all 7006 ;; 7007 7008netbsd*) 7009 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7010 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7011 else 7012 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7013 fi 7014 ;; 7015 7016newos6*) 7017 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7018 lt_cv_file_magic_cmd=/usr/bin/file 7019 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7020 ;; 7021 7022*nto* | *qnx*) 7023 lt_cv_deplibs_check_method=pass_all 7024 ;; 7025 7026openbsd* | bitrig*) 7027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7029 else 7030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7031 fi 7032 ;; 7033 7034osf3* | osf4* | osf5*) 7035 lt_cv_deplibs_check_method=pass_all 7036 ;; 7037 7038rdos*) 7039 lt_cv_deplibs_check_method=pass_all 7040 ;; 7041 7042solaris*) 7043 lt_cv_deplibs_check_method=pass_all 7044 ;; 7045 7046sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7047 lt_cv_deplibs_check_method=pass_all 7048 ;; 7049 7050sysv4 | sysv4.3*) 7051 case $host_vendor in 7052 motorola) 7053 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]' 7054 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7055 ;; 7056 ncr) 7057 lt_cv_deplibs_check_method=pass_all 7058 ;; 7059 sequent) 7060 lt_cv_file_magic_cmd='/bin/file' 7061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7062 ;; 7063 sni) 7064 lt_cv_file_magic_cmd='/bin/file' 7065 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7066 lt_cv_file_magic_test_file=/lib/libc.so 7067 ;; 7068 siemens) 7069 lt_cv_deplibs_check_method=pass_all 7070 ;; 7071 pc) 7072 lt_cv_deplibs_check_method=pass_all 7073 ;; 7074 esac 7075 ;; 7076 7077tpf*) 7078 lt_cv_deplibs_check_method=pass_all 7079 ;; 7080esac 7081 7082fi 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7084$as_echo "$lt_cv_deplibs_check_method" >&6; } 7085 7086file_magic_glob= 7087want_nocaseglob=no 7088if test "$build" = "$host"; then 7089 case $host_os in 7090 mingw* | pw32*) 7091 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7092 want_nocaseglob=yes 7093 else 7094 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7095 fi 7096 ;; 7097 esac 7098fi 7099 7100file_magic_cmd=$lt_cv_file_magic_cmd 7101deplibs_check_method=$lt_cv_deplibs_check_method 7102test -z "$deplibs_check_method" && deplibs_check_method=unknown 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125if test -n "$ac_tool_prefix"; then 7126 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7127set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7129$as_echo_n "checking for $ac_word... " >&6; } 7130if ${ac_cv_prog_DLLTOOL+:} false; then : 7131 $as_echo_n "(cached) " >&6 7132else 7133 if test -n "$DLLTOOL"; then 7134 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7135else 7136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7137for as_dir in $PATH 7138do 7139 IFS=$as_save_IFS 7140 test -z "$as_dir" && as_dir=. 7141 for ac_exec_ext in '' $ac_executable_extensions; do 7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7143 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7145 break 2 7146 fi 7147done 7148 done 7149IFS=$as_save_IFS 7150 7151fi 7152fi 7153DLLTOOL=$ac_cv_prog_DLLTOOL 7154if test -n "$DLLTOOL"; then 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7156$as_echo "$DLLTOOL" >&6; } 7157else 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7159$as_echo "no" >&6; } 7160fi 7161 7162 7163fi 7164if test -z "$ac_cv_prog_DLLTOOL"; then 7165 ac_ct_DLLTOOL=$DLLTOOL 7166 # Extract the first word of "dlltool", so it can be a program name with args. 7167set dummy dlltool; ac_word=$2 7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7169$as_echo_n "checking for $ac_word... " >&6; } 7170if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7171 $as_echo_n "(cached) " >&6 7172else 7173 if test -n "$ac_ct_DLLTOOL"; then 7174 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7175else 7176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7177for as_dir in $PATH 7178do 7179 IFS=$as_save_IFS 7180 test -z "$as_dir" && as_dir=. 7181 for ac_exec_ext in '' $ac_executable_extensions; do 7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7183 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7185 break 2 7186 fi 7187done 7188 done 7189IFS=$as_save_IFS 7190 7191fi 7192fi 7193ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7194if test -n "$ac_ct_DLLTOOL"; then 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7196$as_echo "$ac_ct_DLLTOOL" >&6; } 7197else 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7199$as_echo "no" >&6; } 7200fi 7201 7202 if test "x$ac_ct_DLLTOOL" = x; then 7203 DLLTOOL="false" 7204 else 7205 case $cross_compiling:$ac_tool_warned in 7206yes:) 7207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7209ac_tool_warned=yes ;; 7210esac 7211 DLLTOOL=$ac_ct_DLLTOOL 7212 fi 7213else 7214 DLLTOOL="$ac_cv_prog_DLLTOOL" 7215fi 7216 7217test -z "$DLLTOOL" && DLLTOOL=dlltool 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7229$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7230if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 lt_cv_sharedlib_from_linklib_cmd='unknown' 7234 7235case $host_os in 7236cygwin* | mingw* | pw32* | cegcc*) 7237 # two different shell functions defined in ltmain.sh; 7238 # decide which one to use based on capabilities of $DLLTOOL 7239 case `$DLLTOOL --help 2>&1` in 7240 *--identify-strict*) 7241 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7242 ;; 7243 *) 7244 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7245 ;; 7246 esac 7247 ;; 7248*) 7249 # fallback: assume linklib IS sharedlib 7250 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7251 ;; 7252esac 7253 7254fi 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7256$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7257sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7258test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7259 7260 7261 7262 7263 7264 7265 7266if test -n "$ac_tool_prefix"; then 7267 for ac_prog in ar 7268 do 7269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7270set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7272$as_echo_n "checking for $ac_word... " >&6; } 7273if ${ac_cv_prog_AR+:} false; then : 7274 $as_echo_n "(cached) " >&6 7275else 7276 if test -n "$AR"; then 7277 ac_cv_prog_AR="$AR" # Let the user override the test. 7278else 7279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7280for as_dir in $PATH 7281do 7282 IFS=$as_save_IFS 7283 test -z "$as_dir" && as_dir=. 7284 for ac_exec_ext in '' $ac_executable_extensions; do 7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7286 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7288 break 2 7289 fi 7290done 7291 done 7292IFS=$as_save_IFS 7293 7294fi 7295fi 7296AR=$ac_cv_prog_AR 7297if test -n "$AR"; then 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7299$as_echo "$AR" >&6; } 7300else 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7302$as_echo "no" >&6; } 7303fi 7304 7305 7306 test -n "$AR" && break 7307 done 7308fi 7309if test -z "$AR"; then 7310 ac_ct_AR=$AR 7311 for ac_prog in ar 7312do 7313 # Extract the first word of "$ac_prog", so it can be a program name with args. 7314set dummy $ac_prog; ac_word=$2 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7316$as_echo_n "checking for $ac_word... " >&6; } 7317if ${ac_cv_prog_ac_ct_AR+:} false; then : 7318 $as_echo_n "(cached) " >&6 7319else 7320 if test -n "$ac_ct_AR"; then 7321 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7322else 7323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7324for as_dir in $PATH 7325do 7326 IFS=$as_save_IFS 7327 test -z "$as_dir" && as_dir=. 7328 for ac_exec_ext in '' $ac_executable_extensions; do 7329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7330 ac_cv_prog_ac_ct_AR="$ac_prog" 7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7332 break 2 7333 fi 7334done 7335 done 7336IFS=$as_save_IFS 7337 7338fi 7339fi 7340ac_ct_AR=$ac_cv_prog_ac_ct_AR 7341if test -n "$ac_ct_AR"; then 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7343$as_echo "$ac_ct_AR" >&6; } 7344else 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7346$as_echo "no" >&6; } 7347fi 7348 7349 7350 test -n "$ac_ct_AR" && break 7351done 7352 7353 if test "x$ac_ct_AR" = x; then 7354 AR="false" 7355 else 7356 case $cross_compiling:$ac_tool_warned in 7357yes:) 7358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7360ac_tool_warned=yes ;; 7361esac 7362 AR=$ac_ct_AR 7363 fi 7364fi 7365 7366: ${AR=ar} 7367: ${AR_FLAGS=cru} 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7380$as_echo_n "checking for archiver @FILE support... " >&6; } 7381if ${lt_cv_ar_at_file+:} false; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 lt_cv_ar_at_file=no 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387 7388int 7389main () 7390{ 7391 7392 ; 7393 return 0; 7394} 7395_ACEOF 7396if ac_fn_c_try_compile "$LINENO"; then : 7397 echo conftest.$ac_objext > conftest.lst 7398 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7400 (eval $lt_ar_try) 2>&5 7401 ac_status=$? 7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7403 test $ac_status = 0; } 7404 if test 0 -eq "$ac_status"; then 7405 # Ensure the archiver fails upon bogus file names. 7406 rm -f conftest.$ac_objext libconftest.a 7407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7408 (eval $lt_ar_try) 2>&5 7409 ac_status=$? 7410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7411 test $ac_status = 0; } 7412 if test 0 -ne "$ac_status"; then 7413 lt_cv_ar_at_file=@ 7414 fi 7415 fi 7416 rm -f conftest.* libconftest.a 7417 7418fi 7419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7420 7421fi 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7423$as_echo "$lt_cv_ar_at_file" >&6; } 7424 7425if test no = "$lt_cv_ar_at_file"; then 7426 archiver_list_spec= 7427else 7428 archiver_list_spec=$lt_cv_ar_at_file 7429fi 7430 7431 7432 7433 7434 7435 7436 7437if test -n "$ac_tool_prefix"; then 7438 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7439set dummy ${ac_tool_prefix}strip; ac_word=$2 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7441$as_echo_n "checking for $ac_word... " >&6; } 7442if ${ac_cv_prog_STRIP+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444else 7445 if test -n "$STRIP"; then 7446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7447else 7448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7449for as_dir in $PATH 7450do 7451 IFS=$as_save_IFS 7452 test -z "$as_dir" && as_dir=. 7453 for ac_exec_ext in '' $ac_executable_extensions; do 7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7455 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7457 break 2 7458 fi 7459done 7460 done 7461IFS=$as_save_IFS 7462 7463fi 7464fi 7465STRIP=$ac_cv_prog_STRIP 7466if test -n "$STRIP"; then 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7468$as_echo "$STRIP" >&6; } 7469else 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7471$as_echo "no" >&6; } 7472fi 7473 7474 7475fi 7476if test -z "$ac_cv_prog_STRIP"; then 7477 ac_ct_STRIP=$STRIP 7478 # Extract the first word of "strip", so it can be a program name with args. 7479set dummy strip; ac_word=$2 7480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7481$as_echo_n "checking for $ac_word... " >&6; } 7482if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484else 7485 if test -n "$ac_ct_STRIP"; then 7486 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7487else 7488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7489for as_dir in $PATH 7490do 7491 IFS=$as_save_IFS 7492 test -z "$as_dir" && as_dir=. 7493 for ac_exec_ext in '' $ac_executable_extensions; do 7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7495 ac_cv_prog_ac_ct_STRIP="strip" 7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7497 break 2 7498 fi 7499done 7500 done 7501IFS=$as_save_IFS 7502 7503fi 7504fi 7505ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7506if test -n "$ac_ct_STRIP"; then 7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7508$as_echo "$ac_ct_STRIP" >&6; } 7509else 7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7511$as_echo "no" >&6; } 7512fi 7513 7514 if test "x$ac_ct_STRIP" = x; then 7515 STRIP=":" 7516 else 7517 case $cross_compiling:$ac_tool_warned in 7518yes:) 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7520$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7521ac_tool_warned=yes ;; 7522esac 7523 STRIP=$ac_ct_STRIP 7524 fi 7525else 7526 STRIP="$ac_cv_prog_STRIP" 7527fi 7528 7529test -z "$STRIP" && STRIP=: 7530 7531 7532 7533 7534 7535 7536if test -n "$ac_tool_prefix"; then 7537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7538set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7540$as_echo_n "checking for $ac_word... " >&6; } 7541if ${ac_cv_prog_RANLIB+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 if test -n "$RANLIB"; then 7545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7546else 7547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7548for as_dir in $PATH 7549do 7550 IFS=$as_save_IFS 7551 test -z "$as_dir" && as_dir=. 7552 for ac_exec_ext in '' $ac_executable_extensions; do 7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7556 break 2 7557 fi 7558done 7559 done 7560IFS=$as_save_IFS 7561 7562fi 7563fi 7564RANLIB=$ac_cv_prog_RANLIB 7565if test -n "$RANLIB"; then 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7567$as_echo "$RANLIB" >&6; } 7568else 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7570$as_echo "no" >&6; } 7571fi 7572 7573 7574fi 7575if test -z "$ac_cv_prog_RANLIB"; then 7576 ac_ct_RANLIB=$RANLIB 7577 # Extract the first word of "ranlib", so it can be a program name with args. 7578set dummy ranlib; ac_word=$2 7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7580$as_echo_n "checking for $ac_word... " >&6; } 7581if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7582 $as_echo_n "(cached) " >&6 7583else 7584 if test -n "$ac_ct_RANLIB"; then 7585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7586else 7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588for as_dir in $PATH 7589do 7590 IFS=$as_save_IFS 7591 test -z "$as_dir" && as_dir=. 7592 for ac_exec_ext in '' $ac_executable_extensions; do 7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7594 ac_cv_prog_ac_ct_RANLIB="ranlib" 7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7596 break 2 7597 fi 7598done 7599 done 7600IFS=$as_save_IFS 7601 7602fi 7603fi 7604ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7605if test -n "$ac_ct_RANLIB"; then 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7607$as_echo "$ac_ct_RANLIB" >&6; } 7608else 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7610$as_echo "no" >&6; } 7611fi 7612 7613 if test "x$ac_ct_RANLIB" = x; then 7614 RANLIB=":" 7615 else 7616 case $cross_compiling:$ac_tool_warned in 7617yes:) 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7620ac_tool_warned=yes ;; 7621esac 7622 RANLIB=$ac_ct_RANLIB 7623 fi 7624else 7625 RANLIB="$ac_cv_prog_RANLIB" 7626fi 7627 7628test -z "$RANLIB" && RANLIB=: 7629 7630 7631 7632 7633 7634 7635# Determine commands to create old-style static archives. 7636old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7637old_postinstall_cmds='chmod 644 $oldlib' 7638old_postuninstall_cmds= 7639 7640if test -n "$RANLIB"; then 7641 case $host_os in 7642 bitrig* | openbsd*) 7643 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7644 ;; 7645 *) 7646 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7647 ;; 7648 esac 7649 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7650fi 7651 7652case $host_os in 7653 darwin*) 7654 lock_old_archive_extraction=yes ;; 7655 *) 7656 lock_old_archive_extraction=no ;; 7657esac 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697# If no C compiler was specified, use CC. 7698LTCC=${LTCC-"$CC"} 7699 7700# If no C compiler flags were specified, use CFLAGS. 7701LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7702 7703# Allow CC to be a program name with arguments. 7704compiler=$CC 7705 7706 7707# Check for command to grab the raw symbol name followed by C symbol from nm. 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7709$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7710if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 7714# These are sane defaults that work on at least a few old systems. 7715# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7716 7717# Character class describing NM global symbol codes. 7718symcode='[BCDEGRST]' 7719 7720# Regexp to match symbols that can be accessed directly from C. 7721sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7722 7723# Define system-specific variables. 7724case $host_os in 7725aix*) 7726 symcode='[BCDT]' 7727 ;; 7728cygwin* | mingw* | pw32* | cegcc*) 7729 symcode='[ABCDGISTW]' 7730 ;; 7731hpux*) 7732 if test ia64 = "$host_cpu"; then 7733 symcode='[ABCDEGRST]' 7734 fi 7735 ;; 7736irix* | nonstopux*) 7737 symcode='[BCDEGRST]' 7738 ;; 7739osf*) 7740 symcode='[BCDEGQRST]' 7741 ;; 7742solaris*) 7743 symcode='[BDRT]' 7744 ;; 7745sco3.2v5*) 7746 symcode='[DT]' 7747 ;; 7748sysv4.2uw2*) 7749 symcode='[DT]' 7750 ;; 7751sysv5* | sco5v6* | unixware* | OpenUNIX*) 7752 symcode='[ABDT]' 7753 ;; 7754sysv4) 7755 symcode='[DFNSTU]' 7756 ;; 7757esac 7758 7759# If we're using GNU nm, then use its standard symbol codes. 7760case `$NM -V 2>&1` in 7761*GNU* | *'with BFD'*) 7762 symcode='[ABCDGIRSTW]' ;; 7763esac 7764 7765if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7766 # Gets list of data symbols to import. 7767 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7768 # Adjust the below global symbol transforms to fixup imported variables. 7769 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7770 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7771 lt_c_name_lib_hook="\ 7772 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7773 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7774else 7775 # Disable hooks by default. 7776 lt_cv_sys_global_symbol_to_import= 7777 lt_cdecl_hook= 7778 lt_c_name_hook= 7779 lt_c_name_lib_hook= 7780fi 7781 7782# Transform an extracted symbol line into a proper C declaration. 7783# Some systems (esp. on ia64) link data and code symbols differently, 7784# so use this general approach. 7785lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7786$lt_cdecl_hook\ 7787" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7788" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7789 7790# Transform an extracted symbol line into symbol name and symbol address 7791lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7792$lt_c_name_hook\ 7793" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7794" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7795 7796# Transform an extracted symbol line into symbol name with lib prefix and 7797# symbol address. 7798lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7799$lt_c_name_lib_hook\ 7800" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7801" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7802" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7803 7804# Handle CRLF in mingw tool chain 7805opt_cr= 7806case $build_os in 7807mingw*) 7808 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7809 ;; 7810esac 7811 7812# Try without a prefix underscore, then with it. 7813for ac_symprfx in "" "_"; do 7814 7815 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7816 symxfrm="\\1 $ac_symprfx\\2 \\2" 7817 7818 # Write the raw and C identifiers. 7819 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7820 # Fake it for dumpbin and say T for any non-static function, 7821 # D for any global variable and I for any imported variable. 7822 # Also find C++ and __fastcall symbols from MSVC++, 7823 # which start with @ or ?. 7824 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7825" {last_section=section; section=\$ 3};"\ 7826" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7827" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7828" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7829" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7830" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7831" \$ 0!~/External *\|/{next};"\ 7832" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7833" {if(hide[section]) next};"\ 7834" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7835" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7836" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7837" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7838" ' prfx=^$ac_symprfx" 7839 else 7840 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7841 fi 7842 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7843 7844 # Check to see that the pipe works correctly. 7845 pipe_works=no 7846 7847 rm -f conftest* 7848 cat > conftest.$ac_ext <<_LT_EOF 7849#ifdef __cplusplus 7850extern "C" { 7851#endif 7852char nm_test_var; 7853void nm_test_func(void); 7854void nm_test_func(void){} 7855#ifdef __cplusplus 7856} 7857#endif 7858int main(){nm_test_var='a';nm_test_func();return(0);} 7859_LT_EOF 7860 7861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7862 (eval $ac_compile) 2>&5 7863 ac_status=$? 7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7865 test $ac_status = 0; }; then 7866 # Now try to grab the symbols. 7867 nlist=conftest.nm 7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7869 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7870 ac_status=$? 7871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7872 test $ac_status = 0; } && test -s "$nlist"; then 7873 # Try sorting and uniquifying the output. 7874 if sort "$nlist" | uniq > "$nlist"T; then 7875 mv -f "$nlist"T "$nlist" 7876 else 7877 rm -f "$nlist"T 7878 fi 7879 7880 # Make sure that we snagged all the symbols we need. 7881 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7882 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7883 cat <<_LT_EOF > conftest.$ac_ext 7884/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7885#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7886/* DATA imports from DLLs on WIN32 can't be const, because runtime 7887 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7888# define LT_DLSYM_CONST 7889#elif defined __osf__ 7890/* This system does not cope well with relocations in const data. */ 7891# define LT_DLSYM_CONST 7892#else 7893# define LT_DLSYM_CONST const 7894#endif 7895 7896#ifdef __cplusplus 7897extern "C" { 7898#endif 7899 7900_LT_EOF 7901 # Now generate the symbol file. 7902 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7903 7904 cat <<_LT_EOF >> conftest.$ac_ext 7905 7906/* The mapping between symbol names and symbols. */ 7907LT_DLSYM_CONST struct { 7908 const char *name; 7909 void *address; 7910} 7911lt__PROGRAM__LTX_preloaded_symbols[] = 7912{ 7913 { "@PROGRAM@", (void *) 0 }, 7914_LT_EOF 7915 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7916 cat <<\_LT_EOF >> conftest.$ac_ext 7917 {0, (void *) 0} 7918}; 7919 7920/* This works around a problem in FreeBSD linker */ 7921#ifdef FREEBSD_WORKAROUND 7922static const void *lt_preloaded_setup() { 7923 return lt__PROGRAM__LTX_preloaded_symbols; 7924} 7925#endif 7926 7927#ifdef __cplusplus 7928} 7929#endif 7930_LT_EOF 7931 # Now try linking the two files. 7932 mv conftest.$ac_objext conftstm.$ac_objext 7933 lt_globsym_save_LIBS=$LIBS 7934 lt_globsym_save_CFLAGS=$CFLAGS 7935 LIBS=conftstm.$ac_objext 7936 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7938 (eval $ac_link) 2>&5 7939 ac_status=$? 7940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7941 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7942 pipe_works=yes 7943 fi 7944 LIBS=$lt_globsym_save_LIBS 7945 CFLAGS=$lt_globsym_save_CFLAGS 7946 else 7947 echo "cannot find nm_test_func in $nlist" >&5 7948 fi 7949 else 7950 echo "cannot find nm_test_var in $nlist" >&5 7951 fi 7952 else 7953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7954 fi 7955 else 7956 echo "$progname: failed program was:" >&5 7957 cat conftest.$ac_ext >&5 7958 fi 7959 rm -rf conftest* conftst* 7960 7961 # Do not use the global_symbol_pipe unless it works. 7962 if test yes = "$pipe_works"; then 7963 break 7964 else 7965 lt_cv_sys_global_symbol_pipe= 7966 fi 7967done 7968 7969fi 7970 7971if test -z "$lt_cv_sys_global_symbol_pipe"; then 7972 lt_cv_sys_global_symbol_to_cdecl= 7973fi 7974if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7976$as_echo "failed" >&6; } 7977else 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7979$as_echo "ok" >&6; } 7980fi 7981 7982# Response file support. 7983if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7984 nm_file_list_spec='@' 7985elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7986 nm_file_list_spec='@' 7987fi 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8026$as_echo_n "checking for sysroot... " >&6; } 8027 8028# Check whether --with-sysroot was given. 8029if test "${with_sysroot+set}" = set; then : 8030 withval=$with_sysroot; 8031else 8032 with_sysroot=no 8033fi 8034 8035 8036lt_sysroot= 8037case $with_sysroot in #( 8038 yes) 8039 if test yes = "$GCC"; then 8040 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8041 fi 8042 ;; #( 8043 /*) 8044 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8045 ;; #( 8046 no|'') 8047 ;; #( 8048 *) 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8050$as_echo "$with_sysroot" >&6; } 8051 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8052 ;; 8053esac 8054 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8056$as_echo "${lt_sysroot:-no}" >&6; } 8057 8058 8059 8060 8061 8062# Check whether --enable-libtool-lock was given. 8063if test "${enable_libtool_lock+set}" = set; then : 8064 enableval=$enable_libtool_lock; 8065fi 8066 8067test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8068 8069# Some flags need to be propagated to the compiler or linker for good 8070# libtool support. 8071case $host in 8072ia64-*-hpux*) 8073 # Find out what ABI is being produced by ac_compile, and set mode 8074 # options accordingly. 8075 echo 'int i;' > conftest.$ac_ext 8076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8077 (eval $ac_compile) 2>&5 8078 ac_status=$? 8079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8080 test $ac_status = 0; }; then 8081 case `/usr/bin/file conftest.$ac_objext` in 8082 *ELF-32*) 8083 HPUX_IA64_MODE=32 8084 ;; 8085 *ELF-64*) 8086 HPUX_IA64_MODE=64 8087 ;; 8088 esac 8089 fi 8090 rm -rf conftest* 8091 ;; 8092*-*-irix6*) 8093 # Find out what ABI is being produced by ac_compile, and set linker 8094 # options accordingly. 8095 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8097 (eval $ac_compile) 2>&5 8098 ac_status=$? 8099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8100 test $ac_status = 0; }; then 8101 if test yes = "$lt_cv_prog_gnu_ld"; then 8102 case `/usr/bin/file conftest.$ac_objext` in 8103 *32-bit*) 8104 LD="${LD-ld} -melf32bsmip" 8105 ;; 8106 *N32*) 8107 LD="${LD-ld} -melf32bmipn32" 8108 ;; 8109 *64-bit*) 8110 LD="${LD-ld} -melf64bmip" 8111 ;; 8112 esac 8113 else 8114 case `/usr/bin/file conftest.$ac_objext` in 8115 *32-bit*) 8116 LD="${LD-ld} -32" 8117 ;; 8118 *N32*) 8119 LD="${LD-ld} -n32" 8120 ;; 8121 *64-bit*) 8122 LD="${LD-ld} -64" 8123 ;; 8124 esac 8125 fi 8126 fi 8127 rm -rf conftest* 8128 ;; 8129 8130mips64*-*linux*) 8131 # Find out what ABI is being produced by ac_compile, and set linker 8132 # options accordingly. 8133 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8135 (eval $ac_compile) 2>&5 8136 ac_status=$? 8137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8138 test $ac_status = 0; }; then 8139 emul=elf 8140 case `/usr/bin/file conftest.$ac_objext` in 8141 *32-bit*) 8142 emul="${emul}32" 8143 ;; 8144 *64-bit*) 8145 emul="${emul}64" 8146 ;; 8147 esac 8148 case `/usr/bin/file conftest.$ac_objext` in 8149 *MSB*) 8150 emul="${emul}btsmip" 8151 ;; 8152 *LSB*) 8153 emul="${emul}ltsmip" 8154 ;; 8155 esac 8156 case `/usr/bin/file conftest.$ac_objext` in 8157 *N32*) 8158 emul="${emul}n32" 8159 ;; 8160 esac 8161 LD="${LD-ld} -m $emul" 8162 fi 8163 rm -rf conftest* 8164 ;; 8165 8166x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8167s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8168 # Find out what ABI is being produced by ac_compile, and set linker 8169 # options accordingly. Note that the listed cases only cover the 8170 # situations where additional linker options are needed (such as when 8171 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8172 # vice versa); the common cases where no linker options are needed do 8173 # not appear in the list. 8174 echo 'int i;' > conftest.$ac_ext 8175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8176 (eval $ac_compile) 2>&5 8177 ac_status=$? 8178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8179 test $ac_status = 0; }; then 8180 case `/usr/bin/file conftest.o` in 8181 *32-bit*) 8182 case $host in 8183 x86_64-*kfreebsd*-gnu) 8184 LD="${LD-ld} -m elf_i386_fbsd" 8185 ;; 8186 x86_64-*linux*) 8187 case `/usr/bin/file conftest.o` in 8188 *x86-64*) 8189 LD="${LD-ld} -m elf32_x86_64" 8190 ;; 8191 *) 8192 LD="${LD-ld} -m elf_i386" 8193 ;; 8194 esac 8195 ;; 8196 powerpc64le-*linux*) 8197 LD="${LD-ld} -m elf32lppclinux" 8198 ;; 8199 powerpc64-*linux*) 8200 LD="${LD-ld} -m elf32ppclinux" 8201 ;; 8202 s390x-*linux*) 8203 LD="${LD-ld} -m elf_s390" 8204 ;; 8205 sparc64-*linux*) 8206 LD="${LD-ld} -m elf32_sparc" 8207 ;; 8208 esac 8209 ;; 8210 *64-bit*) 8211 case $host in 8212 x86_64-*kfreebsd*-gnu) 8213 LD="${LD-ld} -m elf_x86_64_fbsd" 8214 ;; 8215 x86_64-*linux*) 8216 LD="${LD-ld} -m elf_x86_64" 8217 ;; 8218 powerpcle-*linux*) 8219 LD="${LD-ld} -m elf64lppc" 8220 ;; 8221 powerpc-*linux*) 8222 LD="${LD-ld} -m elf64ppc" 8223 ;; 8224 s390*-*linux*|s390*-*tpf*) 8225 LD="${LD-ld} -m elf64_s390" 8226 ;; 8227 sparc*-*linux*) 8228 LD="${LD-ld} -m elf64_sparc" 8229 ;; 8230 esac 8231 ;; 8232 esac 8233 fi 8234 rm -rf conftest* 8235 ;; 8236 8237*-*-sco3.2v5*) 8238 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8239 SAVE_CFLAGS=$CFLAGS 8240 CFLAGS="$CFLAGS -belf" 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8242$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8243if ${lt_cv_cc_needs_belf+:} false; then : 8244 $as_echo_n "(cached) " >&6 8245else 8246 ac_ext=c 8247ac_cpp='$CPP $CPPFLAGS' 8248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8250ac_compiler_gnu=$ac_cv_c_compiler_gnu 8251 8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253/* end confdefs.h. */ 8254 8255int 8256main () 8257{ 8258 8259 ; 8260 return 0; 8261} 8262_ACEOF 8263if ac_fn_c_try_link "$LINENO"; then : 8264 lt_cv_cc_needs_belf=yes 8265else 8266 lt_cv_cc_needs_belf=no 8267fi 8268rm -f core conftest.err conftest.$ac_objext \ 8269 conftest$ac_exeext conftest.$ac_ext 8270 ac_ext=c 8271ac_cpp='$CPP $CPPFLAGS' 8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8274ac_compiler_gnu=$ac_cv_c_compiler_gnu 8275 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8278$as_echo "$lt_cv_cc_needs_belf" >&6; } 8279 if test yes != "$lt_cv_cc_needs_belf"; then 8280 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8281 CFLAGS=$SAVE_CFLAGS 8282 fi 8283 ;; 8284*-*solaris*) 8285 # Find out what ABI is being produced by ac_compile, and set linker 8286 # options accordingly. 8287 echo 'int i;' > conftest.$ac_ext 8288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8289 (eval $ac_compile) 2>&5 8290 ac_status=$? 8291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8292 test $ac_status = 0; }; then 8293 case `/usr/bin/file conftest.o` in 8294 *64-bit*) 8295 case $lt_cv_prog_gnu_ld in 8296 yes*) 8297 case $host in 8298 i?86-*-solaris*|x86_64-*-solaris*) 8299 LD="${LD-ld} -m elf_x86_64" 8300 ;; 8301 sparc*-*-solaris*) 8302 LD="${LD-ld} -m elf64_sparc" 8303 ;; 8304 esac 8305 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8306 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8307 LD=${LD-ld}_sol2 8308 fi 8309 ;; 8310 *) 8311 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8312 LD="${LD-ld} -64" 8313 fi 8314 ;; 8315 esac 8316 ;; 8317 esac 8318 fi 8319 rm -rf conftest* 8320 ;; 8321esac 8322 8323need_locks=$enable_libtool_lock 8324 8325if test -n "$ac_tool_prefix"; then 8326 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8327set dummy ${ac_tool_prefix}mt; ac_word=$2 8328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8329$as_echo_n "checking for $ac_word... " >&6; } 8330if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332else 8333 if test -n "$MANIFEST_TOOL"; then 8334 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8335else 8336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8337for as_dir in $PATH 8338do 8339 IFS=$as_save_IFS 8340 test -z "$as_dir" && as_dir=. 8341 for ac_exec_ext in '' $ac_executable_extensions; do 8342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8343 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8345 break 2 8346 fi 8347done 8348 done 8349IFS=$as_save_IFS 8350 8351fi 8352fi 8353MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8354if test -n "$MANIFEST_TOOL"; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8356$as_echo "$MANIFEST_TOOL" >&6; } 8357else 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8359$as_echo "no" >&6; } 8360fi 8361 8362 8363fi 8364if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8365 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8366 # Extract the first word of "mt", so it can be a program name with args. 8367set dummy mt; ac_word=$2 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8369$as_echo_n "checking for $ac_word... " >&6; } 8370if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 if test -n "$ac_ct_MANIFEST_TOOL"; then 8374 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8375else 8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8377for as_dir in $PATH 8378do 8379 IFS=$as_save_IFS 8380 test -z "$as_dir" && as_dir=. 8381 for ac_exec_ext in '' $ac_executable_extensions; do 8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8383 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8385 break 2 8386 fi 8387done 8388 done 8389IFS=$as_save_IFS 8390 8391fi 8392fi 8393ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8394if test -n "$ac_ct_MANIFEST_TOOL"; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8396$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8397else 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8399$as_echo "no" >&6; } 8400fi 8401 8402 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8403 MANIFEST_TOOL=":" 8404 else 8405 case $cross_compiling:$ac_tool_warned in 8406yes:) 8407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8409ac_tool_warned=yes ;; 8410esac 8411 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8412 fi 8413else 8414 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8415fi 8416 8417test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8419$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8420if ${lt_cv_path_mainfest_tool+:} false; then : 8421 $as_echo_n "(cached) " >&6 8422else 8423 lt_cv_path_mainfest_tool=no 8424 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8425 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8426 cat conftest.err >&5 8427 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8428 lt_cv_path_mainfest_tool=yes 8429 fi 8430 rm -f conftest* 8431fi 8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8433$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8434if test yes != "$lt_cv_path_mainfest_tool"; then 8435 MANIFEST_TOOL=: 8436fi 8437 8438 8439 8440 8441 8442 8443 case $host_os in 8444 rhapsody* | darwin*) 8445 if test -n "$ac_tool_prefix"; then 8446 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8447set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8449$as_echo_n "checking for $ac_word... " >&6; } 8450if ${ac_cv_prog_DSYMUTIL+:} false; then : 8451 $as_echo_n "(cached) " >&6 8452else 8453 if test -n "$DSYMUTIL"; then 8454 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8455else 8456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8457for as_dir in $PATH 8458do 8459 IFS=$as_save_IFS 8460 test -z "$as_dir" && as_dir=. 8461 for ac_exec_ext in '' $ac_executable_extensions; do 8462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8463 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8465 break 2 8466 fi 8467done 8468 done 8469IFS=$as_save_IFS 8470 8471fi 8472fi 8473DSYMUTIL=$ac_cv_prog_DSYMUTIL 8474if test -n "$DSYMUTIL"; then 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8476$as_echo "$DSYMUTIL" >&6; } 8477else 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8479$as_echo "no" >&6; } 8480fi 8481 8482 8483fi 8484if test -z "$ac_cv_prog_DSYMUTIL"; then 8485 ac_ct_DSYMUTIL=$DSYMUTIL 8486 # Extract the first word of "dsymutil", so it can be a program name with args. 8487set dummy dsymutil; ac_word=$2 8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8489$as_echo_n "checking for $ac_word... " >&6; } 8490if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8491 $as_echo_n "(cached) " >&6 8492else 8493 if test -n "$ac_ct_DSYMUTIL"; then 8494 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8495else 8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8497for as_dir in $PATH 8498do 8499 IFS=$as_save_IFS 8500 test -z "$as_dir" && as_dir=. 8501 for ac_exec_ext in '' $ac_executable_extensions; do 8502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8503 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8505 break 2 8506 fi 8507done 8508 done 8509IFS=$as_save_IFS 8510 8511fi 8512fi 8513ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8514if test -n "$ac_ct_DSYMUTIL"; then 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8516$as_echo "$ac_ct_DSYMUTIL" >&6; } 8517else 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8519$as_echo "no" >&6; } 8520fi 8521 8522 if test "x$ac_ct_DSYMUTIL" = x; then 8523 DSYMUTIL=":" 8524 else 8525 case $cross_compiling:$ac_tool_warned in 8526yes:) 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8529ac_tool_warned=yes ;; 8530esac 8531 DSYMUTIL=$ac_ct_DSYMUTIL 8532 fi 8533else 8534 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8535fi 8536 8537 if test -n "$ac_tool_prefix"; then 8538 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8539set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8541$as_echo_n "checking for $ac_word... " >&6; } 8542if ${ac_cv_prog_NMEDIT+:} false; then : 8543 $as_echo_n "(cached) " >&6 8544else 8545 if test -n "$NMEDIT"; then 8546 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8547else 8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8549for as_dir in $PATH 8550do 8551 IFS=$as_save_IFS 8552 test -z "$as_dir" && as_dir=. 8553 for ac_exec_ext in '' $ac_executable_extensions; do 8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8555 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8557 break 2 8558 fi 8559done 8560 done 8561IFS=$as_save_IFS 8562 8563fi 8564fi 8565NMEDIT=$ac_cv_prog_NMEDIT 8566if test -n "$NMEDIT"; then 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8568$as_echo "$NMEDIT" >&6; } 8569else 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8571$as_echo "no" >&6; } 8572fi 8573 8574 8575fi 8576if test -z "$ac_cv_prog_NMEDIT"; then 8577 ac_ct_NMEDIT=$NMEDIT 8578 # Extract the first word of "nmedit", so it can be a program name with args. 8579set dummy nmedit; ac_word=$2 8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8581$as_echo_n "checking for $ac_word... " >&6; } 8582if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584else 8585 if test -n "$ac_ct_NMEDIT"; then 8586 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8587else 8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8589for as_dir in $PATH 8590do 8591 IFS=$as_save_IFS 8592 test -z "$as_dir" && as_dir=. 8593 for ac_exec_ext in '' $ac_executable_extensions; do 8594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8595 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8597 break 2 8598 fi 8599done 8600 done 8601IFS=$as_save_IFS 8602 8603fi 8604fi 8605ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8606if test -n "$ac_ct_NMEDIT"; then 8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8608$as_echo "$ac_ct_NMEDIT" >&6; } 8609else 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8611$as_echo "no" >&6; } 8612fi 8613 8614 if test "x$ac_ct_NMEDIT" = x; then 8615 NMEDIT=":" 8616 else 8617 case $cross_compiling:$ac_tool_warned in 8618yes:) 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8621ac_tool_warned=yes ;; 8622esac 8623 NMEDIT=$ac_ct_NMEDIT 8624 fi 8625else 8626 NMEDIT="$ac_cv_prog_NMEDIT" 8627fi 8628 8629 if test -n "$ac_tool_prefix"; then 8630 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8631set dummy ${ac_tool_prefix}lipo; ac_word=$2 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8633$as_echo_n "checking for $ac_word... " >&6; } 8634if ${ac_cv_prog_LIPO+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 if test -n "$LIPO"; then 8638 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8639else 8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8641for as_dir in $PATH 8642do 8643 IFS=$as_save_IFS 8644 test -z "$as_dir" && as_dir=. 8645 for ac_exec_ext in '' $ac_executable_extensions; do 8646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8647 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8649 break 2 8650 fi 8651done 8652 done 8653IFS=$as_save_IFS 8654 8655fi 8656fi 8657LIPO=$ac_cv_prog_LIPO 8658if test -n "$LIPO"; then 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8660$as_echo "$LIPO" >&6; } 8661else 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8663$as_echo "no" >&6; } 8664fi 8665 8666 8667fi 8668if test -z "$ac_cv_prog_LIPO"; then 8669 ac_ct_LIPO=$LIPO 8670 # Extract the first word of "lipo", so it can be a program name with args. 8671set dummy lipo; ac_word=$2 8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8673$as_echo_n "checking for $ac_word... " >&6; } 8674if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8675 $as_echo_n "(cached) " >&6 8676else 8677 if test -n "$ac_ct_LIPO"; then 8678 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8679else 8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8681for as_dir in $PATH 8682do 8683 IFS=$as_save_IFS 8684 test -z "$as_dir" && as_dir=. 8685 for ac_exec_ext in '' $ac_executable_extensions; do 8686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8687 ac_cv_prog_ac_ct_LIPO="lipo" 8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8689 break 2 8690 fi 8691done 8692 done 8693IFS=$as_save_IFS 8694 8695fi 8696fi 8697ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8698if test -n "$ac_ct_LIPO"; then 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8700$as_echo "$ac_ct_LIPO" >&6; } 8701else 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8703$as_echo "no" >&6; } 8704fi 8705 8706 if test "x$ac_ct_LIPO" = x; then 8707 LIPO=":" 8708 else 8709 case $cross_compiling:$ac_tool_warned in 8710yes:) 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8713ac_tool_warned=yes ;; 8714esac 8715 LIPO=$ac_ct_LIPO 8716 fi 8717else 8718 LIPO="$ac_cv_prog_LIPO" 8719fi 8720 8721 if test -n "$ac_tool_prefix"; then 8722 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8723set dummy ${ac_tool_prefix}otool; ac_word=$2 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8725$as_echo_n "checking for $ac_word... " >&6; } 8726if ${ac_cv_prog_OTOOL+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728else 8729 if test -n "$OTOOL"; then 8730 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8731else 8732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8733for as_dir in $PATH 8734do 8735 IFS=$as_save_IFS 8736 test -z "$as_dir" && as_dir=. 8737 for ac_exec_ext in '' $ac_executable_extensions; do 8738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8739 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8741 break 2 8742 fi 8743done 8744 done 8745IFS=$as_save_IFS 8746 8747fi 8748fi 8749OTOOL=$ac_cv_prog_OTOOL 8750if test -n "$OTOOL"; then 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8752$as_echo "$OTOOL" >&6; } 8753else 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8755$as_echo "no" >&6; } 8756fi 8757 8758 8759fi 8760if test -z "$ac_cv_prog_OTOOL"; then 8761 ac_ct_OTOOL=$OTOOL 8762 # Extract the first word of "otool", so it can be a program name with args. 8763set dummy otool; ac_word=$2 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8765$as_echo_n "checking for $ac_word... " >&6; } 8766if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8767 $as_echo_n "(cached) " >&6 8768else 8769 if test -n "$ac_ct_OTOOL"; then 8770 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8771else 8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8773for as_dir in $PATH 8774do 8775 IFS=$as_save_IFS 8776 test -z "$as_dir" && as_dir=. 8777 for ac_exec_ext in '' $ac_executable_extensions; do 8778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8779 ac_cv_prog_ac_ct_OTOOL="otool" 8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8781 break 2 8782 fi 8783done 8784 done 8785IFS=$as_save_IFS 8786 8787fi 8788fi 8789ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8790if test -n "$ac_ct_OTOOL"; then 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8792$as_echo "$ac_ct_OTOOL" >&6; } 8793else 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8795$as_echo "no" >&6; } 8796fi 8797 8798 if test "x$ac_ct_OTOOL" = x; then 8799 OTOOL=":" 8800 else 8801 case $cross_compiling:$ac_tool_warned in 8802yes:) 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8805ac_tool_warned=yes ;; 8806esac 8807 OTOOL=$ac_ct_OTOOL 8808 fi 8809else 8810 OTOOL="$ac_cv_prog_OTOOL" 8811fi 8812 8813 if test -n "$ac_tool_prefix"; then 8814 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8815set dummy ${ac_tool_prefix}otool64; ac_word=$2 8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8817$as_echo_n "checking for $ac_word... " >&6; } 8818if ${ac_cv_prog_OTOOL64+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 if test -n "$OTOOL64"; then 8822 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8823else 8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8825for as_dir in $PATH 8826do 8827 IFS=$as_save_IFS 8828 test -z "$as_dir" && as_dir=. 8829 for ac_exec_ext in '' $ac_executable_extensions; do 8830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8831 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8833 break 2 8834 fi 8835done 8836 done 8837IFS=$as_save_IFS 8838 8839fi 8840fi 8841OTOOL64=$ac_cv_prog_OTOOL64 8842if test -n "$OTOOL64"; then 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8844$as_echo "$OTOOL64" >&6; } 8845else 8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8847$as_echo "no" >&6; } 8848fi 8849 8850 8851fi 8852if test -z "$ac_cv_prog_OTOOL64"; then 8853 ac_ct_OTOOL64=$OTOOL64 8854 # Extract the first word of "otool64", so it can be a program name with args. 8855set dummy otool64; ac_word=$2 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8857$as_echo_n "checking for $ac_word... " >&6; } 8858if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8859 $as_echo_n "(cached) " >&6 8860else 8861 if test -n "$ac_ct_OTOOL64"; then 8862 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8863else 8864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8865for as_dir in $PATH 8866do 8867 IFS=$as_save_IFS 8868 test -z "$as_dir" && as_dir=. 8869 for ac_exec_ext in '' $ac_executable_extensions; do 8870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8871 ac_cv_prog_ac_ct_OTOOL64="otool64" 8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8873 break 2 8874 fi 8875done 8876 done 8877IFS=$as_save_IFS 8878 8879fi 8880fi 8881ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8882if test -n "$ac_ct_OTOOL64"; then 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8884$as_echo "$ac_ct_OTOOL64" >&6; } 8885else 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8887$as_echo "no" >&6; } 8888fi 8889 8890 if test "x$ac_ct_OTOOL64" = x; then 8891 OTOOL64=":" 8892 else 8893 case $cross_compiling:$ac_tool_warned in 8894yes:) 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8897ac_tool_warned=yes ;; 8898esac 8899 OTOOL64=$ac_ct_OTOOL64 8900 fi 8901else 8902 OTOOL64="$ac_cv_prog_OTOOL64" 8903fi 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8932$as_echo_n "checking for -single_module linker flag... " >&6; } 8933if ${lt_cv_apple_cc_single_mod+:} false; then : 8934 $as_echo_n "(cached) " >&6 8935else 8936 lt_cv_apple_cc_single_mod=no 8937 if test -z "$LT_MULTI_MODULE"; then 8938 # By default we will add the -single_module flag. You can override 8939 # by either setting the environment variable LT_MULTI_MODULE 8940 # non-empty at configure time, or by adding -multi_module to the 8941 # link flags. 8942 rm -rf libconftest.dylib* 8943 echo "int foo(void){return 1;}" > conftest.c 8944 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8945-dynamiclib -Wl,-single_module conftest.c" >&5 8946 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8947 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8948 _lt_result=$? 8949 # If there is a non-empty error log, and "single_module" 8950 # appears in it, assume the flag caused a linker warning 8951 if test -s conftest.err && $GREP single_module conftest.err; then 8952 cat conftest.err >&5 8953 # Otherwise, if the output was created with a 0 exit code from 8954 # the compiler, it worked. 8955 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8956 lt_cv_apple_cc_single_mod=yes 8957 else 8958 cat conftest.err >&5 8959 fi 8960 rm -rf libconftest.dylib* 8961 rm -f conftest.* 8962 fi 8963fi 8964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8965$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8966 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8968$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8969if ${lt_cv_ld_exported_symbols_list+:} false; then : 8970 $as_echo_n "(cached) " >&6 8971else 8972 lt_cv_ld_exported_symbols_list=no 8973 save_LDFLAGS=$LDFLAGS 8974 echo "_main" > conftest.sym 8975 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8977/* end confdefs.h. */ 8978 8979int 8980main () 8981{ 8982 8983 ; 8984 return 0; 8985} 8986_ACEOF 8987if ac_fn_c_try_link "$LINENO"; then : 8988 lt_cv_ld_exported_symbols_list=yes 8989else 8990 lt_cv_ld_exported_symbols_list=no 8991fi 8992rm -f core conftest.err conftest.$ac_objext \ 8993 conftest$ac_exeext conftest.$ac_ext 8994 LDFLAGS=$save_LDFLAGS 8995 8996fi 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8998$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8999 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9001$as_echo_n "checking for -force_load linker flag... " >&6; } 9002if ${lt_cv_ld_force_load+:} false; then : 9003 $as_echo_n "(cached) " >&6 9004else 9005 lt_cv_ld_force_load=no 9006 cat > conftest.c << _LT_EOF 9007int forced_loaded() { return 2;} 9008_LT_EOF 9009 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9010 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9011 echo "$AR cru libconftest.a conftest.o" >&5 9012 $AR cru libconftest.a conftest.o 2>&5 9013 echo "$RANLIB libconftest.a" >&5 9014 $RANLIB libconftest.a 2>&5 9015 cat > conftest.c << _LT_EOF 9016int main() { return 0;} 9017_LT_EOF 9018 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9019 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9020 _lt_result=$? 9021 if test -s conftest.err && $GREP force_load conftest.err; then 9022 cat conftest.err >&5 9023 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9024 lt_cv_ld_force_load=yes 9025 else 9026 cat conftest.err >&5 9027 fi 9028 rm -f conftest.err libconftest.a conftest conftest.c 9029 rm -rf conftest.dSYM 9030 9031fi 9032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9033$as_echo "$lt_cv_ld_force_load" >&6; } 9034 case $host_os in 9035 rhapsody* | darwin1.[012]) 9036 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9037 darwin1.*) 9038 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9039 darwin*) # darwin 5.x on 9040 # if running on 10.5 or later, the deployment target defaults 9041 # to the OS version, if on x86, and 10.4, the deployment 9042 # target defaults to 10.4. Don't you love it? 9043 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9044 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9045 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9046 10.[012]*) 9047 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9048 10.*) 9049 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9050 esac 9051 ;; 9052 esac 9053 if test yes = "$lt_cv_apple_cc_single_mod"; then 9054 _lt_dar_single_mod='$single_module' 9055 fi 9056 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9057 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9058 else 9059 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9060 fi 9061 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9062 _lt_dsymutil='~$DSYMUTIL $lib || :' 9063 else 9064 _lt_dsymutil= 9065 fi 9066 ;; 9067 esac 9068 9069ac_ext=c 9070ac_cpp='$CPP $CPPFLAGS' 9071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9073ac_compiler_gnu=$ac_cv_c_compiler_gnu 9074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9075$as_echo_n "checking how to run the C preprocessor... " >&6; } 9076# On Suns, sometimes $CPP names a directory. 9077if test -n "$CPP" && test -d "$CPP"; then 9078 CPP= 9079fi 9080if test -z "$CPP"; then 9081 if ${ac_cv_prog_CPP+:} false; then : 9082 $as_echo_n "(cached) " >&6 9083else 9084 # Double quotes because CPP needs to be expanded 9085 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 9086 do 9087 ac_preproc_ok=false 9088for ac_c_preproc_warn_flag in '' yes 9089do 9090 # Use a header file that comes with gcc, so configuring glibc 9091 # with a fresh cross-compiler works. 9092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9093 # <limits.h> exists even on freestanding compilers. 9094 # On the NeXT, cc -E runs the code through the compiler's parser, 9095 # not just through cpp. "Syntax error" is here to catch this case. 9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9097/* end confdefs.h. */ 9098#ifdef __STDC__ 9099# include <limits.h> 9100#else 9101# include <assert.h> 9102#endif 9103 Syntax error 9104_ACEOF 9105if ac_fn_c_try_cpp "$LINENO"; then : 9106 9107else 9108 # Broken: fails on valid input. 9109continue 9110fi 9111rm -f conftest.err conftest.i conftest.$ac_ext 9112 9113 # OK, works on sane cases. Now check whether nonexistent headers 9114 # can be detected and how. 9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117#include <ac_nonexistent.h> 9118_ACEOF 9119if ac_fn_c_try_cpp "$LINENO"; then : 9120 # Broken: success on invalid input. 9121continue 9122else 9123 # Passes both tests. 9124ac_preproc_ok=: 9125break 9126fi 9127rm -f conftest.err conftest.i conftest.$ac_ext 9128 9129done 9130# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9131rm -f conftest.i conftest.err conftest.$ac_ext 9132if $ac_preproc_ok; then : 9133 break 9134fi 9135 9136 done 9137 ac_cv_prog_CPP=$CPP 9138 9139fi 9140 CPP=$ac_cv_prog_CPP 9141else 9142 ac_cv_prog_CPP=$CPP 9143fi 9144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9145$as_echo "$CPP" >&6; } 9146ac_preproc_ok=false 9147for ac_c_preproc_warn_flag in '' yes 9148do 9149 # Use a header file that comes with gcc, so configuring glibc 9150 # with a fresh cross-compiler works. 9151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9152 # <limits.h> exists even on freestanding compilers. 9153 # On the NeXT, cc -E runs the code through the compiler's parser, 9154 # not just through cpp. "Syntax error" is here to catch this case. 9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9156/* end confdefs.h. */ 9157#ifdef __STDC__ 9158# include <limits.h> 9159#else 9160# include <assert.h> 9161#endif 9162 Syntax error 9163_ACEOF 9164if ac_fn_c_try_cpp "$LINENO"; then : 9165 9166else 9167 # Broken: fails on valid input. 9168continue 9169fi 9170rm -f conftest.err conftest.i conftest.$ac_ext 9171 9172 # OK, works on sane cases. Now check whether nonexistent headers 9173 # can be detected and how. 9174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9175/* end confdefs.h. */ 9176#include <ac_nonexistent.h> 9177_ACEOF 9178if ac_fn_c_try_cpp "$LINENO"; then : 9179 # Broken: success on invalid input. 9180continue 9181else 9182 # Passes both tests. 9183ac_preproc_ok=: 9184break 9185fi 9186rm -f conftest.err conftest.i conftest.$ac_ext 9187 9188done 9189# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9190rm -f conftest.i conftest.err conftest.$ac_ext 9191if $ac_preproc_ok; then : 9192 9193else 9194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9196as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9197See \`config.log' for more details" "$LINENO" 5; } 9198fi 9199 9200ac_ext=c 9201ac_cpp='$CPP $CPPFLAGS' 9202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9204ac_compiler_gnu=$ac_cv_c_compiler_gnu 9205 9206 9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9208$as_echo_n "checking for ANSI C header files... " >&6; } 9209if ${ac_cv_header_stdc+:} false; then : 9210 $as_echo_n "(cached) " >&6 9211else 9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9213/* end confdefs.h. */ 9214#include <stdlib.h> 9215#include <stdarg.h> 9216#include <string.h> 9217#include <float.h> 9218 9219int 9220main () 9221{ 9222 9223 ; 9224 return 0; 9225} 9226_ACEOF 9227if ac_fn_c_try_compile "$LINENO"; then : 9228 ac_cv_header_stdc=yes 9229else 9230 ac_cv_header_stdc=no 9231fi 9232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9233 9234if test $ac_cv_header_stdc = yes; then 9235 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9237/* end confdefs.h. */ 9238#include <string.h> 9239 9240_ACEOF 9241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9242 $EGREP "memchr" >/dev/null 2>&1; then : 9243 9244else 9245 ac_cv_header_stdc=no 9246fi 9247rm -f conftest* 9248 9249fi 9250 9251if test $ac_cv_header_stdc = yes; then 9252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9254/* end confdefs.h. */ 9255#include <stdlib.h> 9256 9257_ACEOF 9258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9259 $EGREP "free" >/dev/null 2>&1; then : 9260 9261else 9262 ac_cv_header_stdc=no 9263fi 9264rm -f conftest* 9265 9266fi 9267 9268if test $ac_cv_header_stdc = yes; then 9269 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9270 if test "$cross_compiling" = yes; then : 9271 : 9272else 9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274/* end confdefs.h. */ 9275#include <ctype.h> 9276#include <stdlib.h> 9277#if ((' ' & 0x0FF) == 0x020) 9278# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9279# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9280#else 9281# define ISLOWER(c) \ 9282 (('a' <= (c) && (c) <= 'i') \ 9283 || ('j' <= (c) && (c) <= 'r') \ 9284 || ('s' <= (c) && (c) <= 'z')) 9285# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9286#endif 9287 9288#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9289int 9290main () 9291{ 9292 int i; 9293 for (i = 0; i < 256; i++) 9294 if (XOR (islower (i), ISLOWER (i)) 9295 || toupper (i) != TOUPPER (i)) 9296 return 2; 9297 return 0; 9298} 9299_ACEOF 9300if ac_fn_c_try_run "$LINENO"; then : 9301 9302else 9303 ac_cv_header_stdc=no 9304fi 9305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9306 conftest.$ac_objext conftest.beam conftest.$ac_ext 9307fi 9308 9309fi 9310fi 9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9312$as_echo "$ac_cv_header_stdc" >&6; } 9313if test $ac_cv_header_stdc = yes; then 9314 9315$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9316 9317fi 9318 9319# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9320for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9321 inttypes.h stdint.h unistd.h 9322do : 9323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9324ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9325" 9326if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9327 cat >>confdefs.h <<_ACEOF 9328#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9329_ACEOF 9330 9331fi 9332 9333done 9334 9335 9336for ac_header in dlfcn.h 9337do : 9338 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9339" 9340if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9341 cat >>confdefs.h <<_ACEOF 9342#define HAVE_DLFCN_H 1 9343_ACEOF 9344 9345fi 9346 9347done 9348 9349 9350 9351 9352func_stripname_cnf () 9353{ 9354 case $2 in 9355 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9356 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9357 esac 9358} # func_stripname_cnf 9359 9360 9361 9362 9363 9364# Set options 9365 9366 9367 9368 enable_dlopen=no 9369 9370 9371 enable_win32_dll=no 9372 9373 9374 # Check whether --enable-shared was given. 9375if test "${enable_shared+set}" = set; then : 9376 enableval=$enable_shared; p=${PACKAGE-default} 9377 case $enableval in 9378 yes) enable_shared=yes ;; 9379 no) enable_shared=no ;; 9380 *) 9381 enable_shared=no 9382 # Look at the argument we got. We use all the common list separators. 9383 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9384 for pkg in $enableval; do 9385 IFS=$lt_save_ifs 9386 if test "X$pkg" = "X$p"; then 9387 enable_shared=yes 9388 fi 9389 done 9390 IFS=$lt_save_ifs 9391 ;; 9392 esac 9393else 9394 enable_shared=yes 9395fi 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 # Check whether --enable-static was given. 9406if test "${enable_static+set}" = set; then : 9407 enableval=$enable_static; p=${PACKAGE-default} 9408 case $enableval in 9409 yes) enable_static=yes ;; 9410 no) enable_static=no ;; 9411 *) 9412 enable_static=no 9413 # Look at the argument we got. We use all the common list separators. 9414 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9415 for pkg in $enableval; do 9416 IFS=$lt_save_ifs 9417 if test "X$pkg" = "X$p"; then 9418 enable_static=yes 9419 fi 9420 done 9421 IFS=$lt_save_ifs 9422 ;; 9423 esac 9424else 9425 enable_static=yes 9426fi 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437# Check whether --with-pic was given. 9438if test "${with_pic+set}" = set; then : 9439 withval=$with_pic; lt_p=${PACKAGE-default} 9440 case $withval in 9441 yes|no) pic_mode=$withval ;; 9442 *) 9443 pic_mode=default 9444 # Look at the argument we got. We use all the common list separators. 9445 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9446 for lt_pkg in $withval; do 9447 IFS=$lt_save_ifs 9448 if test "X$lt_pkg" = "X$lt_p"; then 9449 pic_mode=yes 9450 fi 9451 done 9452 IFS=$lt_save_ifs 9453 ;; 9454 esac 9455else 9456 pic_mode=default 9457fi 9458 9459 9460 9461 9462 9463 9464 9465 9466 # Check whether --enable-fast-install was given. 9467if test "${enable_fast_install+set}" = set; then : 9468 enableval=$enable_fast_install; p=${PACKAGE-default} 9469 case $enableval in 9470 yes) enable_fast_install=yes ;; 9471 no) enable_fast_install=no ;; 9472 *) 9473 enable_fast_install=no 9474 # Look at the argument we got. We use all the common list separators. 9475 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9476 for pkg in $enableval; do 9477 IFS=$lt_save_ifs 9478 if test "X$pkg" = "X$p"; then 9479 enable_fast_install=yes 9480 fi 9481 done 9482 IFS=$lt_save_ifs 9483 ;; 9484 esac 9485else 9486 enable_fast_install=yes 9487fi 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499# This can be used to rebuild libtool when needed 9500LIBTOOL_DEPS=$ltmain 9501 9502# Always use our own libtool. 9503LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534test -z "$LN_S" && LN_S="ln -s" 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549if test -n "${ZSH_VERSION+set}"; then 9550 setopt NO_GLOB_SUBST 9551fi 9552 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9554$as_echo_n "checking for objdir... " >&6; } 9555if ${lt_cv_objdir+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 rm -f .libs 2>/dev/null 9559mkdir .libs 2>/dev/null 9560if test -d .libs; then 9561 lt_cv_objdir=.libs 9562else 9563 # MS-DOS does not allow filenames that begin with a dot. 9564 lt_cv_objdir=_libs 9565fi 9566rmdir .libs 2>/dev/null 9567fi 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9569$as_echo "$lt_cv_objdir" >&6; } 9570objdir=$lt_cv_objdir 9571 9572 9573 9574 9575 9576cat >>confdefs.h <<_ACEOF 9577#define LT_OBJDIR "$lt_cv_objdir/" 9578_ACEOF 9579 9580 9581 9582 9583case $host_os in 9584aix3*) 9585 # AIX sometimes has problems with the GCC collect2 program. For some 9586 # reason, if we set the COLLECT_NAMES environment variable, the problems 9587 # vanish in a puff of smoke. 9588 if test set != "${COLLECT_NAMES+set}"; then 9589 COLLECT_NAMES= 9590 export COLLECT_NAMES 9591 fi 9592 ;; 9593esac 9594 9595# Global variables: 9596ofile=libtool 9597can_build_shared=yes 9598 9599# All known linkers require a '.a' archive for static linking (except MSVC, 9600# which needs '.lib'). 9601libext=a 9602 9603with_gnu_ld=$lt_cv_prog_gnu_ld 9604 9605old_CC=$CC 9606old_CFLAGS=$CFLAGS 9607 9608# Set sane defaults for various variables 9609test -z "$CC" && CC=cc 9610test -z "$LTCC" && LTCC=$CC 9611test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9612test -z "$LD" && LD=ld 9613test -z "$ac_objext" && ac_objext=o 9614 9615for cc_temp in $compiler""; do 9616 case $cc_temp in 9617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9619 \-*) ;; 9620 *) break;; 9621 esac 9622done 9623cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9624 9625 9626# Only perform the check for file, if the check method requires it 9627test -z "$MAGIC_CMD" && MAGIC_CMD=file 9628case $deplibs_check_method in 9629file_magic*) 9630 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9632$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9633if ${lt_cv_path_MAGIC_CMD+:} false; then : 9634 $as_echo_n "(cached) " >&6 9635else 9636 case $MAGIC_CMD in 9637[\\/*] | ?:[\\/]*) 9638 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9639 ;; 9640*) 9641 lt_save_MAGIC_CMD=$MAGIC_CMD 9642 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9644 for ac_dir in $ac_dummy; do 9645 IFS=$lt_save_ifs 9646 test -z "$ac_dir" && ac_dir=. 9647 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9648 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9649 if test -n "$file_magic_test_file"; then 9650 case $deplibs_check_method in 9651 "file_magic "*) 9652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9653 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9655 $EGREP "$file_magic_regex" > /dev/null; then 9656 : 9657 else 9658 cat <<_LT_EOF 1>&2 9659 9660*** Warning: the command libtool uses to detect shared libraries, 9661*** $file_magic_cmd, produces output that libtool cannot recognize. 9662*** The result is that libtool may fail to recognize shared libraries 9663*** as such. This will affect the creation of libtool libraries that 9664*** depend on shared libraries, but programs linked with such libtool 9665*** libraries will work regardless of this problem. Nevertheless, you 9666*** may want to report the problem to your system manager and/or to 9667*** bug-libtool@gnu.org 9668 9669_LT_EOF 9670 fi ;; 9671 esac 9672 fi 9673 break 9674 fi 9675 done 9676 IFS=$lt_save_ifs 9677 MAGIC_CMD=$lt_save_MAGIC_CMD 9678 ;; 9679esac 9680fi 9681 9682MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9683if test -n "$MAGIC_CMD"; then 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9685$as_echo "$MAGIC_CMD" >&6; } 9686else 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9688$as_echo "no" >&6; } 9689fi 9690 9691 9692 9693 9694 9695if test -z "$lt_cv_path_MAGIC_CMD"; then 9696 if test -n "$ac_tool_prefix"; then 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9698$as_echo_n "checking for file... " >&6; } 9699if ${lt_cv_path_MAGIC_CMD+:} false; then : 9700 $as_echo_n "(cached) " >&6 9701else 9702 case $MAGIC_CMD in 9703[\\/*] | ?:[\\/]*) 9704 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9705 ;; 9706*) 9707 lt_save_MAGIC_CMD=$MAGIC_CMD 9708 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9710 for ac_dir in $ac_dummy; do 9711 IFS=$lt_save_ifs 9712 test -z "$ac_dir" && ac_dir=. 9713 if test -f "$ac_dir/file"; then 9714 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9715 if test -n "$file_magic_test_file"; then 9716 case $deplibs_check_method in 9717 "file_magic "*) 9718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9719 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9721 $EGREP "$file_magic_regex" > /dev/null; then 9722 : 9723 else 9724 cat <<_LT_EOF 1>&2 9725 9726*** Warning: the command libtool uses to detect shared libraries, 9727*** $file_magic_cmd, produces output that libtool cannot recognize. 9728*** The result is that libtool may fail to recognize shared libraries 9729*** as such. This will affect the creation of libtool libraries that 9730*** depend on shared libraries, but programs linked with such libtool 9731*** libraries will work regardless of this problem. Nevertheless, you 9732*** may want to report the problem to your system manager and/or to 9733*** bug-libtool@gnu.org 9734 9735_LT_EOF 9736 fi ;; 9737 esac 9738 fi 9739 break 9740 fi 9741 done 9742 IFS=$lt_save_ifs 9743 MAGIC_CMD=$lt_save_MAGIC_CMD 9744 ;; 9745esac 9746fi 9747 9748MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9749if test -n "$MAGIC_CMD"; then 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9751$as_echo "$MAGIC_CMD" >&6; } 9752else 9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9754$as_echo "no" >&6; } 9755fi 9756 9757 9758 else 9759 MAGIC_CMD=: 9760 fi 9761fi 9762 9763 fi 9764 ;; 9765esac 9766 9767# Use C for the default configuration in the libtool script 9768 9769lt_save_CC=$CC 9770ac_ext=c 9771ac_cpp='$CPP $CPPFLAGS' 9772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9774ac_compiler_gnu=$ac_cv_c_compiler_gnu 9775 9776 9777# Source file extension for C test sources. 9778ac_ext=c 9779 9780# Object file extension for compiled C test sources. 9781objext=o 9782objext=$objext 9783 9784# Code to be used in simple compile tests 9785lt_simple_compile_test_code="int some_variable = 0;" 9786 9787# Code to be used in simple link tests 9788lt_simple_link_test_code='int main(){return(0);}' 9789 9790 9791 9792 9793 9794 9795 9796# If no C compiler was specified, use CC. 9797LTCC=${LTCC-"$CC"} 9798 9799# If no C compiler flags were specified, use CFLAGS. 9800LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9801 9802# Allow CC to be a program name with arguments. 9803compiler=$CC 9804 9805# Save the default compiler, since it gets overwritten when the other 9806# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9807compiler_DEFAULT=$CC 9808 9809# save warnings/boilerplate of simple test code 9810ac_outfile=conftest.$ac_objext 9811echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9812eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9813_lt_compiler_boilerplate=`cat conftest.err` 9814$RM conftest* 9815 9816ac_outfile=conftest.$ac_objext 9817echo "$lt_simple_link_test_code" >conftest.$ac_ext 9818eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9819_lt_linker_boilerplate=`cat conftest.err` 9820$RM -r conftest* 9821 9822 9823## CAVEAT EMPTOR: 9824## There is no encapsulation within the following macros, do not change 9825## the running order or otherwise move them around unless you know exactly 9826## what you are doing... 9827if test -n "$compiler"; then 9828 9829lt_prog_compiler_no_builtin_flag= 9830 9831if test yes = "$GCC"; then 9832 case $cc_basename in 9833 nvcc*) 9834 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9835 *) 9836 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9837 esac 9838 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9840$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9841if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9842 $as_echo_n "(cached) " >&6 9843else 9844 lt_cv_prog_compiler_rtti_exceptions=no 9845 ac_outfile=conftest.$ac_objext 9846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9847 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9848 # Insert the option either (1) after the last *FLAGS variable, or 9849 # (2) before a word containing "conftest.", or (3) at the end. 9850 # Note that $ac_compile itself does not contain backslashes and begins 9851 # with a dollar sign (not a hyphen), so the echo should work correctly. 9852 # The option is referenced via a variable to avoid confusing sed. 9853 lt_compile=`echo "$ac_compile" | $SED \ 9854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9856 -e 's:$: $lt_compiler_flag:'` 9857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9858 (eval "$lt_compile" 2>conftest.err) 9859 ac_status=$? 9860 cat conftest.err >&5 9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9862 if (exit $ac_status) && test -s "$ac_outfile"; then 9863 # The compiler can only warn and ignore the option if not recognized 9864 # So say no if there are warnings other than the usual output. 9865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9868 lt_cv_prog_compiler_rtti_exceptions=yes 9869 fi 9870 fi 9871 $RM conftest* 9872 9873fi 9874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9875$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9876 9877if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9878 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9879else 9880 : 9881fi 9882 9883fi 9884 9885 9886 9887 9888 9889 9890 lt_prog_compiler_wl= 9891lt_prog_compiler_pic= 9892lt_prog_compiler_static= 9893 9894 9895 if test yes = "$GCC"; then 9896 lt_prog_compiler_wl='-Wl,' 9897 lt_prog_compiler_static='-static' 9898 9899 case $host_os in 9900 aix*) 9901 # All AIX code is PIC. 9902 if test ia64 = "$host_cpu"; then 9903 # AIX 5 now supports IA64 processor 9904 lt_prog_compiler_static='-Bstatic' 9905 fi 9906 lt_prog_compiler_pic='-fPIC' 9907 ;; 9908 9909 amigaos*) 9910 case $host_cpu in 9911 powerpc) 9912 # see comment about AmigaOS4 .so support 9913 lt_prog_compiler_pic='-fPIC' 9914 ;; 9915 m68k) 9916 # FIXME: we need at least 68020 code to build shared libraries, but 9917 # adding the '-m68020' flag to GCC prevents building anything better, 9918 # like '-m68040'. 9919 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9920 ;; 9921 esac 9922 ;; 9923 9924 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9925 # PIC is the default for these OSes. 9926 ;; 9927 9928 mingw* | cygwin* | pw32* | os2* | cegcc*) 9929 # This hack is so that the source file can tell whether it is being 9930 # built for inclusion in a dll (and should export symbols for example). 9931 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9932 # (--disable-auto-import) libraries 9933 lt_prog_compiler_pic='-DDLL_EXPORT' 9934 ;; 9935 9936 darwin* | rhapsody*) 9937 # PIC is the default on this platform 9938 # Common symbols not allowed in MH_DYLIB files 9939 lt_prog_compiler_pic='-fno-common' 9940 ;; 9941 9942 haiku*) 9943 # PIC is the default for Haiku. 9944 # The "-static" flag exists, but is broken. 9945 lt_prog_compiler_static= 9946 ;; 9947 9948 hpux*) 9949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9951 # sets the default TLS model and affects inlining. 9952 case $host_cpu in 9953 hppa*64*) 9954 # +Z the default 9955 ;; 9956 *) 9957 lt_prog_compiler_pic='-fPIC' 9958 ;; 9959 esac 9960 ;; 9961 9962 interix[3-9]*) 9963 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9964 # Instead, we relocate shared libraries at runtime. 9965 ;; 9966 9967 msdosdjgpp*) 9968 # Just because we use GCC doesn't mean we suddenly get shared libraries 9969 # on systems that don't support them. 9970 lt_prog_compiler_can_build_shared=no 9971 enable_shared=no 9972 ;; 9973 9974 *nto* | *qnx*) 9975 # QNX uses GNU C++, but need to define -shared option too, otherwise 9976 # it will coredump. 9977 lt_prog_compiler_pic='-fPIC -shared' 9978 ;; 9979 9980 sysv4*MP*) 9981 if test -d /usr/nec; then 9982 lt_prog_compiler_pic=-Kconform_pic 9983 fi 9984 ;; 9985 9986 *) 9987 lt_prog_compiler_pic='-fPIC' 9988 ;; 9989 esac 9990 9991 case $cc_basename in 9992 nvcc*) # Cuda Compiler Driver 2.2 9993 lt_prog_compiler_wl='-Xlinker ' 9994 if test -n "$lt_prog_compiler_pic"; then 9995 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9996 fi 9997 ;; 9998 esac 9999 else 10000 # PORTME Check for flag to pass linker flags through the system compiler. 10001 case $host_os in 10002 aix*) 10003 lt_prog_compiler_wl='-Wl,' 10004 if test ia64 = "$host_cpu"; then 10005 # AIX 5 now supports IA64 processor 10006 lt_prog_compiler_static='-Bstatic' 10007 else 10008 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10009 fi 10010 ;; 10011 10012 darwin* | rhapsody*) 10013 # PIC is the default on this platform 10014 # Common symbols not allowed in MH_DYLIB files 10015 lt_prog_compiler_pic='-fno-common' 10016 case $cc_basename in 10017 nagfor*) 10018 # NAG Fortran compiler 10019 lt_prog_compiler_wl='-Wl,-Wl,,' 10020 lt_prog_compiler_pic='-PIC' 10021 lt_prog_compiler_static='-Bstatic' 10022 ;; 10023 esac 10024 ;; 10025 10026 mingw* | cygwin* | pw32* | os2* | cegcc*) 10027 # This hack is so that the source file can tell whether it is being 10028 # built for inclusion in a dll (and should export symbols for example). 10029 lt_prog_compiler_pic='-DDLL_EXPORT' 10030 ;; 10031 10032 hpux9* | hpux10* | hpux11*) 10033 lt_prog_compiler_wl='-Wl,' 10034 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10035 # not for PA HP-UX. 10036 case $host_cpu in 10037 hppa*64*|ia64*) 10038 # +Z the default 10039 ;; 10040 *) 10041 lt_prog_compiler_pic='+Z' 10042 ;; 10043 esac 10044 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10045 lt_prog_compiler_static='$wl-a ${wl}archive' 10046 ;; 10047 10048 irix5* | irix6* | nonstopux*) 10049 lt_prog_compiler_wl='-Wl,' 10050 # PIC (with -KPIC) is the default. 10051 lt_prog_compiler_static='-non_shared' 10052 ;; 10053 10054 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10055 case $cc_basename in 10056 # old Intel for x86_64, which still supported -KPIC. 10057 ecc*) 10058 lt_prog_compiler_wl='-Wl,' 10059 lt_prog_compiler_pic='-KPIC' 10060 lt_prog_compiler_static='-static' 10061 ;; 10062 # icc used to be incompatible with GCC. 10063 # ICC 10 doesn't accept -KPIC any more. 10064 icc* | ifort*) 10065 lt_prog_compiler_wl='-Wl,' 10066 lt_prog_compiler_pic='-fPIC' 10067 lt_prog_compiler_static='-static' 10068 ;; 10069 # Lahey Fortran 8.1. 10070 lf95*) 10071 lt_prog_compiler_wl='-Wl,' 10072 lt_prog_compiler_pic='--shared' 10073 lt_prog_compiler_static='--static' 10074 ;; 10075 nagfor*) 10076 # NAG Fortran compiler 10077 lt_prog_compiler_wl='-Wl,-Wl,,' 10078 lt_prog_compiler_pic='-PIC' 10079 lt_prog_compiler_static='-Bstatic' 10080 ;; 10081 tcc*) 10082 # Fabrice Bellard et al's Tiny C Compiler 10083 lt_prog_compiler_wl='-Wl,' 10084 lt_prog_compiler_pic='-fPIC' 10085 lt_prog_compiler_static='-static' 10086 ;; 10087 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10088 # Portland Group compilers (*not* the Pentium gcc compiler, 10089 # which looks to be a dead project) 10090 lt_prog_compiler_wl='-Wl,' 10091 lt_prog_compiler_pic='-fpic' 10092 lt_prog_compiler_static='-Bstatic' 10093 ;; 10094 ccc*) 10095 lt_prog_compiler_wl='-Wl,' 10096 # All Alpha code is PIC. 10097 lt_prog_compiler_static='-non_shared' 10098 ;; 10099 xl* | bgxl* | bgf* | mpixl*) 10100 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10101 lt_prog_compiler_wl='-Wl,' 10102 lt_prog_compiler_pic='-qpic' 10103 lt_prog_compiler_static='-qstaticlink' 10104 ;; 10105 *) 10106 case `$CC -V 2>&1 | sed 5q` in 10107 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10108 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10109 lt_prog_compiler_pic='-KPIC' 10110 lt_prog_compiler_static='-Bstatic' 10111 lt_prog_compiler_wl='' 10112 ;; 10113 *Sun\ F* | *Sun*Fortran*) 10114 lt_prog_compiler_pic='-KPIC' 10115 lt_prog_compiler_static='-Bstatic' 10116 lt_prog_compiler_wl='-Qoption ld ' 10117 ;; 10118 *Sun\ C*) 10119 # Sun C 5.9 10120 lt_prog_compiler_pic='-KPIC' 10121 lt_prog_compiler_static='-Bstatic' 10122 lt_prog_compiler_wl='-Wl,' 10123 ;; 10124 *Intel*\ [CF]*Compiler*) 10125 lt_prog_compiler_wl='-Wl,' 10126 lt_prog_compiler_pic='-fPIC' 10127 lt_prog_compiler_static='-static' 10128 ;; 10129 *Portland\ Group*) 10130 lt_prog_compiler_wl='-Wl,' 10131 lt_prog_compiler_pic='-fpic' 10132 lt_prog_compiler_static='-Bstatic' 10133 ;; 10134 esac 10135 ;; 10136 esac 10137 ;; 10138 10139 newsos6) 10140 lt_prog_compiler_pic='-KPIC' 10141 lt_prog_compiler_static='-Bstatic' 10142 ;; 10143 10144 *nto* | *qnx*) 10145 # QNX uses GNU C++, but need to define -shared option too, otherwise 10146 # it will coredump. 10147 lt_prog_compiler_pic='-fPIC -shared' 10148 ;; 10149 10150 osf3* | osf4* | osf5*) 10151 lt_prog_compiler_wl='-Wl,' 10152 # All OSF/1 code is PIC. 10153 lt_prog_compiler_static='-non_shared' 10154 ;; 10155 10156 rdos*) 10157 lt_prog_compiler_static='-non_shared' 10158 ;; 10159 10160 solaris*) 10161 lt_prog_compiler_pic='-KPIC' 10162 lt_prog_compiler_static='-Bstatic' 10163 case $cc_basename in 10164 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10165 lt_prog_compiler_wl='-Qoption ld ';; 10166 *) 10167 lt_prog_compiler_wl='-Wl,';; 10168 esac 10169 ;; 10170 10171 sunos4*) 10172 lt_prog_compiler_wl='-Qoption ld ' 10173 lt_prog_compiler_pic='-PIC' 10174 lt_prog_compiler_static='-Bstatic' 10175 ;; 10176 10177 sysv4 | sysv4.2uw2* | sysv4.3*) 10178 lt_prog_compiler_wl='-Wl,' 10179 lt_prog_compiler_pic='-KPIC' 10180 lt_prog_compiler_static='-Bstatic' 10181 ;; 10182 10183 sysv4*MP*) 10184 if test -d /usr/nec; then 10185 lt_prog_compiler_pic='-Kconform_pic' 10186 lt_prog_compiler_static='-Bstatic' 10187 fi 10188 ;; 10189 10190 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10191 lt_prog_compiler_wl='-Wl,' 10192 lt_prog_compiler_pic='-KPIC' 10193 lt_prog_compiler_static='-Bstatic' 10194 ;; 10195 10196 unicos*) 10197 lt_prog_compiler_wl='-Wl,' 10198 lt_prog_compiler_can_build_shared=no 10199 ;; 10200 10201 uts4*) 10202 lt_prog_compiler_pic='-pic' 10203 lt_prog_compiler_static='-Bstatic' 10204 ;; 10205 10206 *) 10207 lt_prog_compiler_can_build_shared=no 10208 ;; 10209 esac 10210 fi 10211 10212case $host_os in 10213 # For platforms that do not support PIC, -DPIC is meaningless: 10214 *djgpp*) 10215 lt_prog_compiler_pic= 10216 ;; 10217 *) 10218 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10219 ;; 10220esac 10221 10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10223$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10224if ${lt_cv_prog_compiler_pic+:} false; then : 10225 $as_echo_n "(cached) " >&6 10226else 10227 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10228fi 10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10230$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10231lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10232 10233# 10234# Check to make sure the PIC flag actually works. 10235# 10236if test -n "$lt_prog_compiler_pic"; then 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10238$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10239if ${lt_cv_prog_compiler_pic_works+:} false; then : 10240 $as_echo_n "(cached) " >&6 10241else 10242 lt_cv_prog_compiler_pic_works=no 10243 ac_outfile=conftest.$ac_objext 10244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10245 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10246 # Insert the option either (1) after the last *FLAGS variable, or 10247 # (2) before a word containing "conftest.", or (3) at the end. 10248 # Note that $ac_compile itself does not contain backslashes and begins 10249 # with a dollar sign (not a hyphen), so the echo should work correctly. 10250 # The option is referenced via a variable to avoid confusing sed. 10251 lt_compile=`echo "$ac_compile" | $SED \ 10252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10254 -e 's:$: $lt_compiler_flag:'` 10255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10256 (eval "$lt_compile" 2>conftest.err) 10257 ac_status=$? 10258 cat conftest.err >&5 10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10260 if (exit $ac_status) && test -s "$ac_outfile"; then 10261 # The compiler can only warn and ignore the option if not recognized 10262 # So say no if there are warnings other than the usual output. 10263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10266 lt_cv_prog_compiler_pic_works=yes 10267 fi 10268 fi 10269 $RM conftest* 10270 10271fi 10272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10273$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10274 10275if test yes = "$lt_cv_prog_compiler_pic_works"; then 10276 case $lt_prog_compiler_pic in 10277 "" | " "*) ;; 10278 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10279 esac 10280else 10281 lt_prog_compiler_pic= 10282 lt_prog_compiler_can_build_shared=no 10283fi 10284 10285fi 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297# 10298# Check to make sure the static flag actually works. 10299# 10300wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10302$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10303if ${lt_cv_prog_compiler_static_works+:} false; then : 10304 $as_echo_n "(cached) " >&6 10305else 10306 lt_cv_prog_compiler_static_works=no 10307 save_LDFLAGS=$LDFLAGS 10308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10309 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10311 # The linker can only warn and ignore the option if not recognized 10312 # So say no if there are warnings 10313 if test -s conftest.err; then 10314 # Append any errors to the config.log. 10315 cat conftest.err 1>&5 10316 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10318 if diff conftest.exp conftest.er2 >/dev/null; then 10319 lt_cv_prog_compiler_static_works=yes 10320 fi 10321 else 10322 lt_cv_prog_compiler_static_works=yes 10323 fi 10324 fi 10325 $RM -r conftest* 10326 LDFLAGS=$save_LDFLAGS 10327 10328fi 10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10330$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10331 10332if test yes = "$lt_cv_prog_compiler_static_works"; then 10333 : 10334else 10335 lt_prog_compiler_static= 10336fi 10337 10338 10339 10340 10341 10342 10343 10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10345$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10346if ${lt_cv_prog_compiler_c_o+:} false; then : 10347 $as_echo_n "(cached) " >&6 10348else 10349 lt_cv_prog_compiler_c_o=no 10350 $RM -r conftest 2>/dev/null 10351 mkdir conftest 10352 cd conftest 10353 mkdir out 10354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10355 10356 lt_compiler_flag="-o out/conftest2.$ac_objext" 10357 # Insert the option either (1) after the last *FLAGS variable, or 10358 # (2) before a word containing "conftest.", or (3) at the end. 10359 # Note that $ac_compile itself does not contain backslashes and begins 10360 # with a dollar sign (not a hyphen), so the echo should work correctly. 10361 lt_compile=`echo "$ac_compile" | $SED \ 10362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10364 -e 's:$: $lt_compiler_flag:'` 10365 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10366 (eval "$lt_compile" 2>out/conftest.err) 10367 ac_status=$? 10368 cat out/conftest.err >&5 10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10370 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10371 then 10372 # The compiler can only warn and ignore the option if not recognized 10373 # So say no if there are warnings 10374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10377 lt_cv_prog_compiler_c_o=yes 10378 fi 10379 fi 10380 chmod u+w . 2>&5 10381 $RM conftest* 10382 # SGI C++ compiler will create directory out/ii_files/ for 10383 # template instantiation 10384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10385 $RM out/* && rmdir out 10386 cd .. 10387 $RM -r conftest 10388 $RM conftest* 10389 10390fi 10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10392$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10393 10394 10395 10396 10397 10398 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10400$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10401if ${lt_cv_prog_compiler_c_o+:} false; then : 10402 $as_echo_n "(cached) " >&6 10403else 10404 lt_cv_prog_compiler_c_o=no 10405 $RM -r conftest 2>/dev/null 10406 mkdir conftest 10407 cd conftest 10408 mkdir out 10409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10410 10411 lt_compiler_flag="-o out/conftest2.$ac_objext" 10412 # Insert the option either (1) after the last *FLAGS variable, or 10413 # (2) before a word containing "conftest.", or (3) at the end. 10414 # Note that $ac_compile itself does not contain backslashes and begins 10415 # with a dollar sign (not a hyphen), so the echo should work correctly. 10416 lt_compile=`echo "$ac_compile" | $SED \ 10417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10419 -e 's:$: $lt_compiler_flag:'` 10420 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10421 (eval "$lt_compile" 2>out/conftest.err) 10422 ac_status=$? 10423 cat out/conftest.err >&5 10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10425 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10426 then 10427 # The compiler can only warn and ignore the option if not recognized 10428 # So say no if there are warnings 10429 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10432 lt_cv_prog_compiler_c_o=yes 10433 fi 10434 fi 10435 chmod u+w . 2>&5 10436 $RM conftest* 10437 # SGI C++ compiler will create directory out/ii_files/ for 10438 # template instantiation 10439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10440 $RM out/* && rmdir out 10441 cd .. 10442 $RM -r conftest 10443 $RM conftest* 10444 10445fi 10446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10447$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10448 10449 10450 10451 10452hard_links=nottested 10453if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10454 # do not overwrite the value of need_locks provided by the user 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10456$as_echo_n "checking if we can lock with hard links... " >&6; } 10457 hard_links=yes 10458 $RM conftest* 10459 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10460 touch conftest.a 10461 ln conftest.a conftest.b 2>&5 || hard_links=no 10462 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10464$as_echo "$hard_links" >&6; } 10465 if test no = "$hard_links"; then 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10467$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10468 need_locks=warn 10469 fi 10470else 10471 need_locks=no 10472fi 10473 10474 10475 10476 10477 10478 10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10480$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10481 10482 runpath_var= 10483 allow_undefined_flag= 10484 always_export_symbols=no 10485 archive_cmds= 10486 archive_expsym_cmds= 10487 compiler_needs_object=no 10488 enable_shared_with_static_runtimes=no 10489 export_dynamic_flag_spec= 10490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10491 hardcode_automatic=no 10492 hardcode_direct=no 10493 hardcode_direct_absolute=no 10494 hardcode_libdir_flag_spec= 10495 hardcode_libdir_separator= 10496 hardcode_minus_L=no 10497 hardcode_shlibpath_var=unsupported 10498 inherit_rpath=no 10499 link_all_deplibs=unknown 10500 module_cmds= 10501 module_expsym_cmds= 10502 old_archive_from_new_cmds= 10503 old_archive_from_expsyms_cmds= 10504 thread_safe_flag_spec= 10505 whole_archive_flag_spec= 10506 # include_expsyms should be a list of space-separated symbols to be *always* 10507 # included in the symbol list 10508 include_expsyms= 10509 # exclude_expsyms can be an extended regexp of symbols to exclude 10510 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10511 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10512 # as well as any symbol that contains 'd'. 10513 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10514 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10515 # platforms (ab)use it in PIC code, but their linkers get confused if 10516 # the symbol is explicitly referenced. Since portable code cannot 10517 # rely on this symbol name, it's probably fine to never include it in 10518 # preloaded symbol tables. 10519 # Exclude shared library initialization/finalization symbols. 10520 extract_expsyms_cmds= 10521 10522 case $host_os in 10523 cygwin* | mingw* | pw32* | cegcc*) 10524 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10525 # When not using gcc, we currently assume that we are using 10526 # Microsoft Visual C++. 10527 if test yes != "$GCC"; then 10528 with_gnu_ld=no 10529 fi 10530 ;; 10531 interix*) 10532 # we just hope/assume this is gcc and not c89 (= MSVC++) 10533 with_gnu_ld=yes 10534 ;; 10535 openbsd* | bitrig*) 10536 with_gnu_ld=no 10537 ;; 10538 esac 10539 10540 ld_shlibs=yes 10541 10542 # On some targets, GNU ld is compatible enough with the native linker 10543 # that we're better off using the native interface for both. 10544 lt_use_gnu_ld_interface=no 10545 if test yes = "$with_gnu_ld"; then 10546 case $host_os in 10547 aix*) 10548 # The AIX port of GNU ld has always aspired to compatibility 10549 # with the native linker. However, as the warning in the GNU ld 10550 # block says, versions before 2.19.5* couldn't really create working 10551 # shared libraries, regardless of the interface used. 10552 case `$LD -v 2>&1` in 10553 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10554 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10555 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10556 *) 10557 lt_use_gnu_ld_interface=yes 10558 ;; 10559 esac 10560 ;; 10561 *) 10562 lt_use_gnu_ld_interface=yes 10563 ;; 10564 esac 10565 fi 10566 10567 if test yes = "$lt_use_gnu_ld_interface"; then 10568 # If archive_cmds runs LD, not CC, wlarc should be empty 10569 wlarc='$wl' 10570 10571 # Set some defaults for GNU ld with shared library support. These 10572 # are reset later if shared libraries are not supported. Putting them 10573 # here allows them to be overridden if necessary. 10574 runpath_var=LD_RUN_PATH 10575 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10576 export_dynamic_flag_spec='$wl--export-dynamic' 10577 # ancient GNU ld didn't support --whole-archive et. al. 10578 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10579 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10580 else 10581 whole_archive_flag_spec= 10582 fi 10583 supports_anon_versioning=no 10584 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10585 *GNU\ gold*) supports_anon_versioning=yes ;; 10586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10589 *\ 2.11.*) ;; # other 2.11 versions 10590 *) supports_anon_versioning=yes ;; 10591 esac 10592 10593 # See if GNU ld supports shared libraries. 10594 case $host_os in 10595 aix[3-9]*) 10596 # On AIX/PPC, the GNU linker is very broken 10597 if test ia64 != "$host_cpu"; then 10598 ld_shlibs=no 10599 cat <<_LT_EOF 1>&2 10600 10601*** Warning: the GNU linker, at least up to release 2.19, is reported 10602*** to be unable to reliably create shared libraries on AIX. 10603*** Therefore, libtool is disabling shared libraries support. If you 10604*** really care for shared libraries, you may want to install binutils 10605*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10606*** You will then need to restart the configuration process. 10607 10608_LT_EOF 10609 fi 10610 ;; 10611 10612 amigaos*) 10613 case $host_cpu in 10614 powerpc) 10615 # see comment about AmigaOS4 .so support 10616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10617 archive_expsym_cmds='' 10618 ;; 10619 m68k) 10620 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)' 10621 hardcode_libdir_flag_spec='-L$libdir' 10622 hardcode_minus_L=yes 10623 ;; 10624 esac 10625 ;; 10626 10627 beos*) 10628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10629 allow_undefined_flag=unsupported 10630 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10631 # support --undefined. This deserves some investigation. FIXME 10632 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10633 else 10634 ld_shlibs=no 10635 fi 10636 ;; 10637 10638 cygwin* | mingw* | pw32* | cegcc*) 10639 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10640 # as there is no search path for DLLs. 10641 hardcode_libdir_flag_spec='-L$libdir' 10642 export_dynamic_flag_spec='$wl--export-all-symbols' 10643 allow_undefined_flag=unsupported 10644 always_export_symbols=no 10645 enable_shared_with_static_runtimes=yes 10646 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' 10647 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10648 10649 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10651 # If the export-symbols file already is a .def file, use it as 10652 # is; otherwise, prepend EXPORTS... 10653 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10654 cp $export_symbols $output_objdir/$soname.def; 10655 else 10656 echo EXPORTS > $output_objdir/$soname.def; 10657 cat $export_symbols >> $output_objdir/$soname.def; 10658 fi~ 10659 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10660 else 10661 ld_shlibs=no 10662 fi 10663 ;; 10664 10665 haiku*) 10666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10667 link_all_deplibs=yes 10668 ;; 10669 10670 interix[3-9]*) 10671 hardcode_direct=no 10672 hardcode_shlibpath_var=no 10673 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10674 export_dynamic_flag_spec='$wl-E' 10675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10676 # Instead, shared libraries are loaded at an image base (0x10000000 by 10677 # default) and relocated if they conflict, which is a slow very memory 10678 # consuming and fragmenting process. To avoid this, we pick a random, 10679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10680 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10682 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' 10683 ;; 10684 10685 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10686 tmp_diet=no 10687 if test linux-dietlibc = "$host_os"; then 10688 case $cc_basename in 10689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10690 esac 10691 fi 10692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10693 && test no = "$tmp_diet" 10694 then 10695 tmp_addflag=' $pic_flag' 10696 tmp_sharedflag='-shared' 10697 case $cc_basename,$host_cpu in 10698 pgcc*) # Portland Group C compiler 10699 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' 10700 tmp_addflag=' $pic_flag' 10701 ;; 10702 pgf77* | pgf90* | pgf95* | pgfortran*) 10703 # Portland Group f77 and f90 compilers 10704 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' 10705 tmp_addflag=' $pic_flag -Mnomain' ;; 10706 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10707 tmp_addflag=' -i_dynamic' ;; 10708 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10709 tmp_addflag=' -i_dynamic -nofor_main' ;; 10710 ifc* | ifort*) # Intel Fortran compiler 10711 tmp_addflag=' -nofor_main' ;; 10712 lf95*) # Lahey Fortran 8.1 10713 whole_archive_flag_spec= 10714 tmp_sharedflag='--shared' ;; 10715 nagfor*) # NAGFOR 5.3 10716 tmp_sharedflag='-Wl,-shared' ;; 10717 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10718 tmp_sharedflag='-qmkshrobj' 10719 tmp_addflag= ;; 10720 nvcc*) # Cuda Compiler Driver 2.2 10721 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' 10722 compiler_needs_object=yes 10723 ;; 10724 esac 10725 case `$CC -V 2>&1 | sed 5q` in 10726 *Sun\ C*) # Sun C 5.9 10727 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' 10728 compiler_needs_object=yes 10729 tmp_sharedflag='-G' ;; 10730 *Sun\ F*) # Sun Fortran 8.3 10731 tmp_sharedflag='-G' ;; 10732 esac 10733 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10734 10735 if test yes = "$supports_anon_versioning"; then 10736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10738 echo "local: *; };" >> $output_objdir/$libname.ver~ 10739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10740 fi 10741 10742 case $cc_basename in 10743 xlf* | bgf* | bgxlf* | mpixlf*) 10744 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10745 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10747 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10748 if test yes = "$supports_anon_versioning"; then 10749 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10751 echo "local: *; };" >> $output_objdir/$libname.ver~ 10752 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10753 fi 10754 ;; 10755 esac 10756 else 10757 ld_shlibs=no 10758 fi 10759 ;; 10760 10761 netbsd*) 10762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10763 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10764 wlarc= 10765 else 10766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10768 fi 10769 ;; 10770 10771 solaris*) 10772 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10773 ld_shlibs=no 10774 cat <<_LT_EOF 1>&2 10775 10776*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10777*** create shared libraries on Solaris systems. Therefore, libtool 10778*** is disabling shared libraries support. We urge you to upgrade GNU 10779*** binutils to release 2.9.1 or newer. Another option is to modify 10780*** your PATH or compiler configuration so that the native linker is 10781*** used, and then restart. 10782 10783_LT_EOF 10784 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10787 else 10788 ld_shlibs=no 10789 fi 10790 ;; 10791 10792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10793 case `$LD -v 2>&1` in 10794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10795 ld_shlibs=no 10796 cat <<_LT_EOF 1>&2 10797 10798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10799*** reliably create shared libraries on SCO systems. Therefore, libtool 10800*** is disabling shared libraries support. We urge you to upgrade GNU 10801*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10802*** your PATH or compiler configuration so that the native linker is 10803*** used, and then restart. 10804 10805_LT_EOF 10806 ;; 10807 *) 10808 # For security reasons, it is highly recommended that you always 10809 # use absolute paths for naming shared libraries, and exclude the 10810 # DT_RUNPATH tag from executables and libraries. But doing so 10811 # requires that you compile everything twice, which is a pain. 10812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10816 else 10817 ld_shlibs=no 10818 fi 10819 ;; 10820 esac 10821 ;; 10822 10823 sunos4*) 10824 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10825 wlarc= 10826 hardcode_direct=yes 10827 hardcode_shlibpath_var=no 10828 ;; 10829 10830 *) 10831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10832 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10833 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10834 else 10835 ld_shlibs=no 10836 fi 10837 ;; 10838 esac 10839 10840 if test no = "$ld_shlibs"; then 10841 runpath_var= 10842 hardcode_libdir_flag_spec= 10843 export_dynamic_flag_spec= 10844 whole_archive_flag_spec= 10845 fi 10846 else 10847 # PORTME fill in a description of your system's linker (not GNU ld) 10848 case $host_os in 10849 aix3*) 10850 allow_undefined_flag=unsupported 10851 always_export_symbols=yes 10852 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' 10853 # Note: this linker hardcodes the directories in LIBPATH if there 10854 # are no directories specified by -L. 10855 hardcode_minus_L=yes 10856 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10857 # Neither direct hardcoding nor static linking is supported with a 10858 # broken collect2. 10859 hardcode_direct=unsupported 10860 fi 10861 ;; 10862 10863 aix[4-9]*) 10864 if test ia64 = "$host_cpu"; then 10865 # On IA64, the linker does run time linking by default, so we don't 10866 # have to do anything special. 10867 aix_use_runtimelinking=no 10868 exp_sym_flag='-Bexport' 10869 no_entry_flag= 10870 else 10871 # If we're using GNU nm, then we don't want the "-C" option. 10872 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10873 # Also, AIX nm treats weak defined symbols like other global 10874 # defined symbols, whereas GNU nm marks them as "W". 10875 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10876 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10877 else 10878 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10879 fi 10880 aix_use_runtimelinking=no 10881 10882 # Test if we are trying to use run time linking or normal 10883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10884 # need to do runtime linking. 10885 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10886 for ld_flag in $LDFLAGS; do 10887 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10888 aix_use_runtimelinking=yes 10889 break 10890 fi 10891 done 10892 ;; 10893 esac 10894 10895 exp_sym_flag='-bexport' 10896 no_entry_flag='-bnoentry' 10897 fi 10898 10899 # When large executables or shared objects are built, AIX ld can 10900 # have problems creating the table of contents. If linking a library 10901 # or program results in "error TOC overflow" add -mminimal-toc to 10902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10904 10905 archive_cmds='' 10906 hardcode_direct=yes 10907 hardcode_direct_absolute=yes 10908 hardcode_libdir_separator=':' 10909 link_all_deplibs=yes 10910 file_list_spec='$wl-f,' 10911 10912 if test yes = "$GCC"; then 10913 case $host_os in aix4.[012]|aix4.[012].*) 10914 # We only want to do this on AIX 4.2 and lower, the check 10915 # below for broken collect2 doesn't work under 4.3+ 10916 collect2name=`$CC -print-prog-name=collect2` 10917 if test -f "$collect2name" && 10918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10919 then 10920 # We have reworked collect2 10921 : 10922 else 10923 # We have old collect2 10924 hardcode_direct=unsupported 10925 # It fails to find uninstalled libraries when the uninstalled 10926 # path is not listed in the libpath. Setting hardcode_minus_L 10927 # to unsupported forces relinking 10928 hardcode_minus_L=yes 10929 hardcode_libdir_flag_spec='-L$libdir' 10930 hardcode_libdir_separator= 10931 fi 10932 ;; 10933 esac 10934 shared_flag='-shared' 10935 if test yes = "$aix_use_runtimelinking"; then 10936 shared_flag="$shared_flag "'$wl-G' 10937 fi 10938 else 10939 # not using gcc 10940 if test ia64 = "$host_cpu"; then 10941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10942 # chokes on -Wl,-G. The following line is correct: 10943 shared_flag='-G' 10944 else 10945 if test yes = "$aix_use_runtimelinking"; then 10946 shared_flag='$wl-G' 10947 else 10948 shared_flag='$wl-bM:SRE' 10949 fi 10950 fi 10951 fi 10952 10953 export_dynamic_flag_spec='$wl-bexpall' 10954 # It seems that -bexpall does not export symbols beginning with 10955 # underscore (_), so it is better to generate a list of symbols to export. 10956 always_export_symbols=yes 10957 if test yes = "$aix_use_runtimelinking"; then 10958 # Warning - without using the other runtime loading flags (-brtl), 10959 # -berok will link without error, but may produce a broken library. 10960 allow_undefined_flag='-berok' 10961 # Determine the default libpath from the value encoded in an 10962 # empty executable. 10963 if test set = "${lt_cv_aix_libpath+set}"; then 10964 aix_libpath=$lt_cv_aix_libpath 10965else 10966 if ${lt_cv_aix_libpath_+:} false; then : 10967 $as_echo_n "(cached) " >&6 10968else 10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10970/* end confdefs.h. */ 10971 10972int 10973main () 10974{ 10975 10976 ; 10977 return 0; 10978} 10979_ACEOF 10980if ac_fn_c_try_link "$LINENO"; then : 10981 10982 lt_aix_libpath_sed=' 10983 /Import File Strings/,/^$/ { 10984 /^0/ { 10985 s/^0 *\([^ ]*\) *$/\1/ 10986 p 10987 } 10988 }' 10989 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10990 # Check for a 64-bit object if we didn't find anything. 10991 if test -z "$lt_cv_aix_libpath_"; then 10992 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10993 fi 10994fi 10995rm -f core conftest.err conftest.$ac_objext \ 10996 conftest$ac_exeext conftest.$ac_ext 10997 if test -z "$lt_cv_aix_libpath_"; then 10998 lt_cv_aix_libpath_=/usr/lib:/lib 10999 fi 11000 11001fi 11002 11003 aix_libpath=$lt_cv_aix_libpath_ 11004fi 11005 11006 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11007 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 11008 else 11009 if test ia64 = "$host_cpu"; then 11010 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11011 allow_undefined_flag="-z nodefs" 11012 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" 11013 else 11014 # Determine the default libpath from the value encoded in an 11015 # empty executable. 11016 if test set = "${lt_cv_aix_libpath+set}"; then 11017 aix_libpath=$lt_cv_aix_libpath 11018else 11019 if ${lt_cv_aix_libpath_+:} false; then : 11020 $as_echo_n "(cached) " >&6 11021else 11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023/* end confdefs.h. */ 11024 11025int 11026main () 11027{ 11028 11029 ; 11030 return 0; 11031} 11032_ACEOF 11033if ac_fn_c_try_link "$LINENO"; then : 11034 11035 lt_aix_libpath_sed=' 11036 /Import File Strings/,/^$/ { 11037 /^0/ { 11038 s/^0 *\([^ ]*\) *$/\1/ 11039 p 11040 } 11041 }' 11042 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11043 # Check for a 64-bit object if we didn't find anything. 11044 if test -z "$lt_cv_aix_libpath_"; then 11045 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11046 fi 11047fi 11048rm -f core conftest.err conftest.$ac_objext \ 11049 conftest$ac_exeext conftest.$ac_ext 11050 if test -z "$lt_cv_aix_libpath_"; then 11051 lt_cv_aix_libpath_=/usr/lib:/lib 11052 fi 11053 11054fi 11055 11056 aix_libpath=$lt_cv_aix_libpath_ 11057fi 11058 11059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11060 # Warning - without using the other run time loading flags, 11061 # -berok will link without error, but may produce a broken library. 11062 no_undefined_flag=' $wl-bernotok' 11063 allow_undefined_flag=' $wl-berok' 11064 if test yes = "$with_gnu_ld"; then 11065 # We only use this code for GNU lds that support --whole-archive. 11066 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11067 else 11068 # Exported symbols can be pulled into shared objects from archives 11069 whole_archive_flag_spec='$convenience' 11070 fi 11071 archive_cmds_need_lc=yes 11072 # This is similar to how AIX traditionally builds its shared libraries. 11073 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11074 fi 11075 fi 11076 ;; 11077 11078 amigaos*) 11079 case $host_cpu in 11080 powerpc) 11081 # see comment about AmigaOS4 .so support 11082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11083 archive_expsym_cmds='' 11084 ;; 11085 m68k) 11086 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)' 11087 hardcode_libdir_flag_spec='-L$libdir' 11088 hardcode_minus_L=yes 11089 ;; 11090 esac 11091 ;; 11092 11093 bsdi[45]*) 11094 export_dynamic_flag_spec=-rdynamic 11095 ;; 11096 11097 cygwin* | mingw* | pw32* | cegcc*) 11098 # When not using gcc, we currently assume that we are using 11099 # Microsoft Visual C++. 11100 # hardcode_libdir_flag_spec is actually meaningless, as there is 11101 # no search path for DLLs. 11102 case $cc_basename in 11103 cl*) 11104 # Native MSVC 11105 hardcode_libdir_flag_spec=' ' 11106 allow_undefined_flag=unsupported 11107 always_export_symbols=yes 11108 file_list_spec='@' 11109 # Tell ltmain to make .lib files, not .a files. 11110 libext=lib 11111 # Tell ltmain to make .dll files, not .so files. 11112 shrext_cmds=.dll 11113 # FIXME: Setting linknames here is a bad hack. 11114 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11115 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11116 cp "$export_symbols" "$output_objdir/$soname.def"; 11117 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11118 else 11119 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11120 fi~ 11121 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11122 linknames=' 11123 # The linker will not automatically build a static lib if we build a DLL. 11124 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11125 enable_shared_with_static_runtimes=yes 11126 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11128 # Don't use ranlib 11129 old_postinstall_cmds='chmod 644 $oldlib' 11130 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11131 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11132 case $lt_outputfile in 11133 *.exe|*.EXE) ;; 11134 *) 11135 lt_outputfile=$lt_outputfile.exe 11136 lt_tool_outputfile=$lt_tool_outputfile.exe 11137 ;; 11138 esac~ 11139 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11140 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11141 $RM "$lt_outputfile.manifest"; 11142 fi' 11143 ;; 11144 *) 11145 # Assume MSVC wrapper 11146 hardcode_libdir_flag_spec=' ' 11147 allow_undefined_flag=unsupported 11148 # Tell ltmain to make .lib files, not .a files. 11149 libext=lib 11150 # Tell ltmain to make .dll files, not .so files. 11151 shrext_cmds=.dll 11152 # FIXME: Setting linknames here is a bad hack. 11153 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11154 # The linker will automatically build a .lib file if we build a DLL. 11155 old_archive_from_new_cmds='true' 11156 # FIXME: Should let the user specify the lib program. 11157 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11158 enable_shared_with_static_runtimes=yes 11159 ;; 11160 esac 11161 ;; 11162 11163 darwin* | rhapsody*) 11164 11165 11166 archive_cmds_need_lc=no 11167 hardcode_direct=no 11168 hardcode_automatic=yes 11169 hardcode_shlibpath_var=unsupported 11170 if test yes = "$lt_cv_ld_force_load"; then 11171 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\"`' 11172 11173 else 11174 whole_archive_flag_spec='' 11175 fi 11176 link_all_deplibs=yes 11177 allow_undefined_flag=$_lt_dar_allow_undefined 11178 case $cc_basename in 11179 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11180 *) _lt_dar_can_shared=$GCC ;; 11181 esac 11182 if test yes = "$_lt_dar_can_shared"; then 11183 output_verbose_link_cmd=func_echo_all 11184 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11185 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11186 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" 11187 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" 11188 11189 else 11190 ld_shlibs=no 11191 fi 11192 11193 ;; 11194 11195 dgux*) 11196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11197 hardcode_libdir_flag_spec='-L$libdir' 11198 hardcode_shlibpath_var=no 11199 ;; 11200 11201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11202 # support. Future versions do this automatically, but an explicit c++rt0.o 11203 # does not break anything, and helps significantly (at the cost of a little 11204 # extra space). 11205 freebsd2.2*) 11206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11207 hardcode_libdir_flag_spec='-R$libdir' 11208 hardcode_direct=yes 11209 hardcode_shlibpath_var=no 11210 ;; 11211 11212 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11213 freebsd2.*) 11214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11215 hardcode_direct=yes 11216 hardcode_minus_L=yes 11217 hardcode_shlibpath_var=no 11218 ;; 11219 11220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11221 freebsd* | dragonfly*) 11222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11223 hardcode_libdir_flag_spec='-R$libdir' 11224 hardcode_direct=yes 11225 hardcode_shlibpath_var=no 11226 ;; 11227 11228 hpux9*) 11229 if test yes = "$GCC"; then 11230 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' 11231 else 11232 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' 11233 fi 11234 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11235 hardcode_libdir_separator=: 11236 hardcode_direct=yes 11237 11238 # hardcode_minus_L: Not really in the search PATH, 11239 # but as the default location of the library. 11240 hardcode_minus_L=yes 11241 export_dynamic_flag_spec='$wl-E' 11242 ;; 11243 11244 hpux10*) 11245 if test yes,no = "$GCC,$with_gnu_ld"; then 11246 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11247 else 11248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11249 fi 11250 if test no = "$with_gnu_ld"; then 11251 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11252 hardcode_libdir_separator=: 11253 hardcode_direct=yes 11254 hardcode_direct_absolute=yes 11255 export_dynamic_flag_spec='$wl-E' 11256 # hardcode_minus_L: Not really in the search PATH, 11257 # but as the default location of the library. 11258 hardcode_minus_L=yes 11259 fi 11260 ;; 11261 11262 hpux11*) 11263 if test yes,no = "$GCC,$with_gnu_ld"; then 11264 case $host_cpu in 11265 hppa*64*) 11266 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11267 ;; 11268 ia64*) 11269 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11270 ;; 11271 *) 11272 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11273 ;; 11274 esac 11275 else 11276 case $host_cpu in 11277 hppa*64*) 11278 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11279 ;; 11280 ia64*) 11281 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11282 ;; 11283 *) 11284 11285 # Older versions of the 11.00 compiler do not understand -b yet 11286 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11288$as_echo_n "checking if $CC understands -b... " >&6; } 11289if ${lt_cv_prog_compiler__b+:} false; then : 11290 $as_echo_n "(cached) " >&6 11291else 11292 lt_cv_prog_compiler__b=no 11293 save_LDFLAGS=$LDFLAGS 11294 LDFLAGS="$LDFLAGS -b" 11295 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11296 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11297 # The linker can only warn and ignore the option if not recognized 11298 # So say no if there are warnings 11299 if test -s conftest.err; then 11300 # Append any errors to the config.log. 11301 cat conftest.err 1>&5 11302 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11303 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11304 if diff conftest.exp conftest.er2 >/dev/null; then 11305 lt_cv_prog_compiler__b=yes 11306 fi 11307 else 11308 lt_cv_prog_compiler__b=yes 11309 fi 11310 fi 11311 $RM -r conftest* 11312 LDFLAGS=$save_LDFLAGS 11313 11314fi 11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11316$as_echo "$lt_cv_prog_compiler__b" >&6; } 11317 11318if test yes = "$lt_cv_prog_compiler__b"; then 11319 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11320else 11321 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11322fi 11323 11324 ;; 11325 esac 11326 fi 11327 if test no = "$with_gnu_ld"; then 11328 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11329 hardcode_libdir_separator=: 11330 11331 case $host_cpu in 11332 hppa*64*|ia64*) 11333 hardcode_direct=no 11334 hardcode_shlibpath_var=no 11335 ;; 11336 *) 11337 hardcode_direct=yes 11338 hardcode_direct_absolute=yes 11339 export_dynamic_flag_spec='$wl-E' 11340 11341 # hardcode_minus_L: Not really in the search PATH, 11342 # but as the default location of the library. 11343 hardcode_minus_L=yes 11344 ;; 11345 esac 11346 fi 11347 ;; 11348 11349 irix5* | irix6* | nonstopux*) 11350 if test yes = "$GCC"; then 11351 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' 11352 # Try to use the -exported_symbol ld option, if it does not 11353 # work, assume that -exports_file does not work either and 11354 # implicitly export all symbols. 11355 # This should be the same for all languages, so no per-tag cache variable. 11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11357$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11358if ${lt_cv_irix_exported_symbol+:} false; then : 11359 $as_echo_n "(cached) " >&6 11360else 11361 save_LDFLAGS=$LDFLAGS 11362 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11364/* end confdefs.h. */ 11365int foo (void) { return 0; } 11366_ACEOF 11367if ac_fn_c_try_link "$LINENO"; then : 11368 lt_cv_irix_exported_symbol=yes 11369else 11370 lt_cv_irix_exported_symbol=no 11371fi 11372rm -f core conftest.err conftest.$ac_objext \ 11373 conftest$ac_exeext conftest.$ac_ext 11374 LDFLAGS=$save_LDFLAGS 11375fi 11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11377$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11378 if test yes = "$lt_cv_irix_exported_symbol"; then 11379 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' 11380 fi 11381 else 11382 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' 11383 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' 11384 fi 11385 archive_cmds_need_lc='no' 11386 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11387 hardcode_libdir_separator=: 11388 inherit_rpath=yes 11389 link_all_deplibs=yes 11390 ;; 11391 11392 netbsd*) 11393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11395 else 11396 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11397 fi 11398 hardcode_libdir_flag_spec='-R$libdir' 11399 hardcode_direct=yes 11400 hardcode_shlibpath_var=no 11401 ;; 11402 11403 newsos6) 11404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11405 hardcode_direct=yes 11406 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11407 hardcode_libdir_separator=: 11408 hardcode_shlibpath_var=no 11409 ;; 11410 11411 *nto* | *qnx*) 11412 ;; 11413 11414 openbsd* | bitrig*) 11415 if test -f /usr/libexec/ld.so; then 11416 hardcode_direct=yes 11417 hardcode_shlibpath_var=no 11418 hardcode_direct_absolute=yes 11419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11421 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11422 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11423 export_dynamic_flag_spec='$wl-E' 11424 else 11425 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11426 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11427 fi 11428 else 11429 ld_shlibs=no 11430 fi 11431 ;; 11432 11433 os2*) 11434 hardcode_libdir_flag_spec='-L$libdir' 11435 hardcode_minus_L=yes 11436 allow_undefined_flag=unsupported 11437 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11438 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11439 ;; 11440 11441 osf3*) 11442 if test yes = "$GCC"; then 11443 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11444 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' 11445 else 11446 allow_undefined_flag=' -expect_unresolved \*' 11447 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' 11448 fi 11449 archive_cmds_need_lc='no' 11450 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11451 hardcode_libdir_separator=: 11452 ;; 11453 11454 osf4* | osf5*) # as osf3* with the addition of -msym flag 11455 if test yes = "$GCC"; then 11456 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11457 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' 11458 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11459 else 11460 allow_undefined_flag=' -expect_unresolved \*' 11461 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' 11462 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~ 11463 $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' 11464 11465 # Both c and cxx compiler support -rpath directly 11466 hardcode_libdir_flag_spec='-rpath $libdir' 11467 fi 11468 archive_cmds_need_lc='no' 11469 hardcode_libdir_separator=: 11470 ;; 11471 11472 solaris*) 11473 no_undefined_flag=' -z defs' 11474 if test yes = "$GCC"; then 11475 wlarc='$wl' 11476 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11478 $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' 11479 else 11480 case `$CC -V 2>&1` in 11481 *"Compilers 5.0"*) 11482 wlarc='' 11483 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11484 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11485 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11486 ;; 11487 *) 11488 wlarc='$wl' 11489 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11491 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11492 ;; 11493 esac 11494 fi 11495 hardcode_libdir_flag_spec='-R$libdir' 11496 hardcode_shlibpath_var=no 11497 case $host_os in 11498 solaris2.[0-5] | solaris2.[0-5].*) ;; 11499 *) 11500 # The compiler driver will combine and reorder linker options, 11501 # but understands '-z linker_flag'. GCC discards it without '$wl', 11502 # but is careful enough not to reorder. 11503 # Supported since Solaris 2.6 (maybe 2.5.1?) 11504 if test yes = "$GCC"; then 11505 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11506 else 11507 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11508 fi 11509 ;; 11510 esac 11511 link_all_deplibs=yes 11512 ;; 11513 11514 sunos4*) 11515 if test sequent = "$host_vendor"; then 11516 # Use $CC to link under sequent, because it throws in some extra .o 11517 # files that make .init and .fini sections work. 11518 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11519 else 11520 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11521 fi 11522 hardcode_libdir_flag_spec='-L$libdir' 11523 hardcode_direct=yes 11524 hardcode_minus_L=yes 11525 hardcode_shlibpath_var=no 11526 ;; 11527 11528 sysv4) 11529 case $host_vendor in 11530 sni) 11531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11532 hardcode_direct=yes # is this really true??? 11533 ;; 11534 siemens) 11535 ## LD is ld it makes a PLAMLIB 11536 ## CC just makes a GrossModule. 11537 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11538 reload_cmds='$CC -r -o $output$reload_objs' 11539 hardcode_direct=no 11540 ;; 11541 motorola) 11542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11543 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11544 ;; 11545 esac 11546 runpath_var='LD_RUN_PATH' 11547 hardcode_shlibpath_var=no 11548 ;; 11549 11550 sysv4.3*) 11551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11552 hardcode_shlibpath_var=no 11553 export_dynamic_flag_spec='-Bexport' 11554 ;; 11555 11556 sysv4*MP*) 11557 if test -d /usr/nec; then 11558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11559 hardcode_shlibpath_var=no 11560 runpath_var=LD_RUN_PATH 11561 hardcode_runpath_var=yes 11562 ld_shlibs=yes 11563 fi 11564 ;; 11565 11566 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11567 no_undefined_flag='$wl-z,text' 11568 archive_cmds_need_lc=no 11569 hardcode_shlibpath_var=no 11570 runpath_var='LD_RUN_PATH' 11571 11572 if test yes = "$GCC"; then 11573 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11574 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11575 else 11576 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11577 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11578 fi 11579 ;; 11580 11581 sysv5* | sco3.2v5* | sco5v6*) 11582 # Note: We CANNOT use -z defs as we might desire, because we do not 11583 # link with -lc, and that would cause any symbols used from libc to 11584 # always be unresolved, which means just about no library would 11585 # ever link correctly. If we're not using GNU ld we use -z text 11586 # though, which does catch some bad symbols but isn't as heavy-handed 11587 # as -z defs. 11588 no_undefined_flag='$wl-z,text' 11589 allow_undefined_flag='$wl-z,nodefs' 11590 archive_cmds_need_lc=no 11591 hardcode_shlibpath_var=no 11592 hardcode_libdir_flag_spec='$wl-R,$libdir' 11593 hardcode_libdir_separator=':' 11594 link_all_deplibs=yes 11595 export_dynamic_flag_spec='$wl-Bexport' 11596 runpath_var='LD_RUN_PATH' 11597 11598 if test yes = "$GCC"; then 11599 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11600 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11601 else 11602 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11603 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11604 fi 11605 ;; 11606 11607 uts4*) 11608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11609 hardcode_libdir_flag_spec='-L$libdir' 11610 hardcode_shlibpath_var=no 11611 ;; 11612 11613 *) 11614 ld_shlibs=no 11615 ;; 11616 esac 11617 11618 if test sni = "$host_vendor"; then 11619 case $host in 11620 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11621 export_dynamic_flag_spec='$wl-Blargedynsym' 11622 ;; 11623 esac 11624 fi 11625 fi 11626 11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11628$as_echo "$ld_shlibs" >&6; } 11629test no = "$ld_shlibs" && can_build_shared=no 11630 11631with_gnu_ld=$with_gnu_ld 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647# 11648# Do we need to explicitly link libc? 11649# 11650case "x$archive_cmds_need_lc" in 11651x|xyes) 11652 # Assume -lc should be added 11653 archive_cmds_need_lc=yes 11654 11655 if test yes,yes = "$GCC,$enable_shared"; then 11656 case $archive_cmds in 11657 *'~'*) 11658 # FIXME: we may have to deal with multi-command sequences. 11659 ;; 11660 '$CC '*) 11661 # Test whether the compiler implicitly links with -lc since on some 11662 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11663 # to ld, don't add -lc before -lgcc. 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11665$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11666if ${lt_cv_archive_cmds_need_lc+:} false; then : 11667 $as_echo_n "(cached) " >&6 11668else 11669 $RM conftest* 11670 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11671 11672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11673 (eval $ac_compile) 2>&5 11674 ac_status=$? 11675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11676 test $ac_status = 0; } 2>conftest.err; then 11677 soname=conftest 11678 lib=conftest 11679 libobjs=conftest.$ac_objext 11680 deplibs= 11681 wl=$lt_prog_compiler_wl 11682 pic_flag=$lt_prog_compiler_pic 11683 compiler_flags=-v 11684 linker_flags=-v 11685 verstring= 11686 output_objdir=. 11687 libname=conftest 11688 lt_save_allow_undefined_flag=$allow_undefined_flag 11689 allow_undefined_flag= 11690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11691 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11692 ac_status=$? 11693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11694 test $ac_status = 0; } 11695 then 11696 lt_cv_archive_cmds_need_lc=no 11697 else 11698 lt_cv_archive_cmds_need_lc=yes 11699 fi 11700 allow_undefined_flag=$lt_save_allow_undefined_flag 11701 else 11702 cat conftest.err 1>&5 11703 fi 11704 $RM conftest* 11705 11706fi 11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11708$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11709 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11710 ;; 11711 esac 11712 fi 11713 ;; 11714esac 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11868$as_echo_n "checking dynamic linker characteristics... " >&6; } 11869 11870if test yes = "$GCC"; then 11871 case $host_os in 11872 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11873 *) lt_awk_arg='/^libraries:/' ;; 11874 esac 11875 case $host_os in 11876 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11877 *) lt_sed_strip_eq='s|=/|/|g' ;; 11878 esac 11879 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11880 case $lt_search_path_spec in 11881 *\;*) 11882 # if the path contains ";" then we assume it to be the separator 11883 # otherwise default to the standard path separator (i.e. ":") - it is 11884 # assumed that no part of a normal pathname contains ";" but that should 11885 # okay in the real world where ";" in dirpaths is itself problematic. 11886 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11887 ;; 11888 *) 11889 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11890 ;; 11891 esac 11892 # Ok, now we have the path, separated by spaces, we can step through it 11893 # and add multilib dir if necessary... 11894 lt_tmp_lt_search_path_spec= 11895 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11896 # ...but if some path component already ends with the multilib dir we assume 11897 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11898 case "$lt_multi_os_dir; $lt_search_path_spec " in 11899 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11900 lt_multi_os_dir= 11901 ;; 11902 esac 11903 for lt_sys_path in $lt_search_path_spec; do 11904 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11906 elif test -n "$lt_multi_os_dir"; then 11907 test -d "$lt_sys_path" && \ 11908 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11909 fi 11910 done 11911 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11912BEGIN {RS = " "; FS = "/|\n";} { 11913 lt_foo = ""; 11914 lt_count = 0; 11915 for (lt_i = NF; lt_i > 0; lt_i--) { 11916 if ($lt_i != "" && $lt_i != ".") { 11917 if ($lt_i == "..") { 11918 lt_count++; 11919 } else { 11920 if (lt_count == 0) { 11921 lt_foo = "/" $lt_i lt_foo; 11922 } else { 11923 lt_count--; 11924 } 11925 } 11926 } 11927 } 11928 if (lt_foo != "") { lt_freq[lt_foo]++; } 11929 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11930}'` 11931 # AWK program above erroneously prepends '/' to C:/dos/paths 11932 # for these hosts. 11933 case $host_os in 11934 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11935 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11936 esac 11937 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11938else 11939 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11940fi 11941library_names_spec= 11942libname_spec='lib$name' 11943soname_spec= 11944shrext_cmds=.so 11945postinstall_cmds= 11946postuninstall_cmds= 11947finish_cmds= 11948finish_eval= 11949shlibpath_var= 11950shlibpath_overrides_runpath=unknown 11951version_type=none 11952dynamic_linker="$host_os ld.so" 11953sys_lib_dlsearch_path_spec="/lib /usr/lib" 11954need_lib_prefix=unknown 11955hardcode_into_libs=no 11956 11957# when you set need_version to no, make sure it does not cause -set_version 11958# flags to be left without arguments 11959need_version=unknown 11960 11961case $host_os in 11962aix3*) 11963 version_type=linux # correct to gnu/linux during the next big refactor 11964 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11965 shlibpath_var=LIBPATH 11966 11967 # AIX 3 has no versioning support, so we append a major version to the name. 11968 soname_spec='$libname$release$shared_ext$major' 11969 ;; 11970 11971aix[4-9]*) 11972 version_type=linux # correct to gnu/linux during the next big refactor 11973 need_lib_prefix=no 11974 need_version=no 11975 hardcode_into_libs=yes 11976 if test ia64 = "$host_cpu"; then 11977 # AIX 5 supports IA64 11978 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11979 shlibpath_var=LD_LIBRARY_PATH 11980 else 11981 # With GCC up to 2.95.x, collect2 would create an import file 11982 # for dependence libraries. The import file would start with 11983 # the line '#! .'. This would cause the generated library to 11984 # depend on '.', always an invalid library. This was fixed in 11985 # development snapshots of GCC prior to 3.0. 11986 case $host_os in 11987 aix4 | aix4.[01] | aix4.[01].*) 11988 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11989 echo ' yes ' 11990 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11991 : 11992 else 11993 can_build_shared=no 11994 fi 11995 ;; 11996 esac 11997 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11998 # soname into executable. Probably we can add versioning support to 11999 # collect2, so additional links can be useful in future. 12000 if test yes = "$aix_use_runtimelinking"; then 12001 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12002 # instead of lib<name>.a to let people know that these are not 12003 # typical AIX shared libraries. 12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12005 else 12006 # We preserve .a as extension for shared libraries through AIX4.2 12007 # and later when we are not doing run time linking. 12008 library_names_spec='$libname$release.a $libname.a' 12009 soname_spec='$libname$release$shared_ext$major' 12010 fi 12011 shlibpath_var=LIBPATH 12012 fi 12013 ;; 12014 12015amigaos*) 12016 case $host_cpu in 12017 powerpc) 12018 # Since July 2007 AmigaOS4 officially supports .so libraries. 12019 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12021 ;; 12022 m68k) 12023 library_names_spec='$libname.ixlibrary $libname.a' 12024 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12025 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' 12026 ;; 12027 esac 12028 ;; 12029 12030beos*) 12031 library_names_spec='$libname$shared_ext' 12032 dynamic_linker="$host_os ld.so" 12033 shlibpath_var=LIBRARY_PATH 12034 ;; 12035 12036bsdi[45]*) 12037 version_type=linux # correct to gnu/linux during the next big refactor 12038 need_version=no 12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12040 soname_spec='$libname$release$shared_ext$major' 12041 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12042 shlibpath_var=LD_LIBRARY_PATH 12043 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12044 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12045 # the default ld.so.conf also contains /usr/contrib/lib and 12046 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12047 # libtool to hard-code these into programs 12048 ;; 12049 12050cygwin* | mingw* | pw32* | cegcc*) 12051 version_type=windows 12052 shrext_cmds=.dll 12053 need_version=no 12054 need_lib_prefix=no 12055 12056 case $GCC,$cc_basename in 12057 yes,*) 12058 # gcc 12059 library_names_spec='$libname.dll.a' 12060 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12061 postinstall_cmds='base_file=`basename \$file`~ 12062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12063 dldir=$destdir/`dirname \$dlpath`~ 12064 test -d \$dldir || mkdir -p \$dldir~ 12065 $install_prog $dir/$dlname \$dldir/$dlname~ 12066 chmod a+x \$dldir/$dlname~ 12067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12069 fi' 12070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12071 dlpath=$dir/\$dldll~ 12072 $RM \$dlpath' 12073 shlibpath_overrides_runpath=yes 12074 12075 case $host_os in 12076 cygwin*) 12077 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12078 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12079 12080 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12081 ;; 12082 mingw* | cegcc*) 12083 # MinGW DLLs use traditional 'lib' prefix 12084 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12085 ;; 12086 pw32*) 12087 # pw32 DLLs use 'pw' prefix rather than 'lib' 12088 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12089 ;; 12090 esac 12091 dynamic_linker='Win32 ld.exe' 12092 ;; 12093 12094 *,cl*) 12095 # Native MSVC 12096 libname_spec='$name' 12097 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12098 library_names_spec='$libname.dll.lib' 12099 12100 case $build_os in 12101 mingw*) 12102 sys_lib_search_path_spec= 12103 lt_save_ifs=$IFS 12104 IFS=';' 12105 for lt_path in $LIB 12106 do 12107 IFS=$lt_save_ifs 12108 # Let DOS variable expansion print the short 8.3 style file name. 12109 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12110 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12111 done 12112 IFS=$lt_save_ifs 12113 # Convert to MSYS style. 12114 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12115 ;; 12116 cygwin*) 12117 # Convert to unix form, then to dos form, then back to unix form 12118 # but this time dos style (no spaces!) so that the unix form looks 12119 # like /cygdrive/c/PROGRA~1:/cygdr... 12120 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12121 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12122 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12123 ;; 12124 *) 12125 sys_lib_search_path_spec=$LIB 12126 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12127 # It is most probably a Windows format PATH. 12128 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12129 else 12130 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12131 fi 12132 # FIXME: find the short name or the path components, as spaces are 12133 # common. (e.g. "Program Files" -> "PROGRA~1") 12134 ;; 12135 esac 12136 12137 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12138 postinstall_cmds='base_file=`basename \$file`~ 12139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12140 dldir=$destdir/`dirname \$dlpath`~ 12141 test -d \$dldir || mkdir -p \$dldir~ 12142 $install_prog $dir/$dlname \$dldir/$dlname' 12143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12144 dlpath=$dir/\$dldll~ 12145 $RM \$dlpath' 12146 shlibpath_overrides_runpath=yes 12147 dynamic_linker='Win32 link.exe' 12148 ;; 12149 12150 *) 12151 # Assume MSVC wrapper 12152 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12153 dynamic_linker='Win32 ld.exe' 12154 ;; 12155 esac 12156 # FIXME: first we should search . and the directory the executable is in 12157 shlibpath_var=PATH 12158 ;; 12159 12160darwin* | rhapsody*) 12161 dynamic_linker="$host_os dyld" 12162 version_type=darwin 12163 need_lib_prefix=no 12164 need_version=no 12165 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12166 soname_spec='$libname$release$major$shared_ext' 12167 shlibpath_overrides_runpath=yes 12168 shlibpath_var=DYLD_LIBRARY_PATH 12169 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12170 12171 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12172 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12173 ;; 12174 12175dgux*) 12176 version_type=linux # correct to gnu/linux during the next big refactor 12177 need_lib_prefix=no 12178 need_version=no 12179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12180 soname_spec='$libname$release$shared_ext$major' 12181 shlibpath_var=LD_LIBRARY_PATH 12182 ;; 12183 12184freebsd* | dragonfly*) 12185 # DragonFly does not have aout. When/if they implement a new 12186 # versioning mechanism, adjust this. 12187 if test -x /usr/bin/objformat; then 12188 objformat=`/usr/bin/objformat` 12189 else 12190 case $host_os in 12191 freebsd[23].*) objformat=aout ;; 12192 *) objformat=elf ;; 12193 esac 12194 fi 12195 version_type=freebsd-$objformat 12196 case $version_type in 12197 freebsd-elf*) 12198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12199 need_version=no 12200 need_lib_prefix=no 12201 ;; 12202 freebsd-*) 12203 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12204 need_version=yes 12205 ;; 12206 esac 12207 shlibpath_var=LD_LIBRARY_PATH 12208 case $host_os in 12209 freebsd2.*) 12210 shlibpath_overrides_runpath=yes 12211 ;; 12212 freebsd3.[01]* | freebsdelf3.[01]*) 12213 shlibpath_overrides_runpath=yes 12214 hardcode_into_libs=yes 12215 ;; 12216 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12217 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12218 shlibpath_overrides_runpath=no 12219 hardcode_into_libs=yes 12220 ;; 12221 *) # from 4.6 on, and DragonFly 12222 shlibpath_overrides_runpath=yes 12223 hardcode_into_libs=yes 12224 ;; 12225 esac 12226 ;; 12227 12228haiku*) 12229 version_type=linux # correct to gnu/linux during the next big refactor 12230 need_lib_prefix=no 12231 need_version=no 12232 dynamic_linker="$host_os runtime_loader" 12233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12234 soname_spec='$libname$release$shared_ext$major' 12235 shlibpath_var=LIBRARY_PATH 12236 shlibpath_overrides_runpath=no 12237 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12238 hardcode_into_libs=yes 12239 ;; 12240 12241hpux9* | hpux10* | hpux11*) 12242 # Give a soname corresponding to the major version so that dld.sl refuses to 12243 # link against other versions. 12244 version_type=sunos 12245 need_lib_prefix=no 12246 need_version=no 12247 case $host_cpu in 12248 ia64*) 12249 shrext_cmds='.so' 12250 hardcode_into_libs=yes 12251 dynamic_linker="$host_os dld.so" 12252 shlibpath_var=LD_LIBRARY_PATH 12253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12255 soname_spec='$libname$release$shared_ext$major' 12256 if test 32 = "$HPUX_IA64_MODE"; then 12257 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12258 else 12259 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12260 fi 12261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12262 ;; 12263 hppa*64*) 12264 shrext_cmds='.sl' 12265 hardcode_into_libs=yes 12266 dynamic_linker="$host_os dld.sl" 12267 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12270 soname_spec='$libname$release$shared_ext$major' 12271 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12273 ;; 12274 *) 12275 shrext_cmds='.sl' 12276 dynamic_linker="$host_os dld.sl" 12277 shlibpath_var=SHLIB_PATH 12278 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12280 soname_spec='$libname$release$shared_ext$major' 12281 ;; 12282 esac 12283 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12284 postinstall_cmds='chmod 555 $lib' 12285 # or fails outright, so override atomically: 12286 install_override_mode=555 12287 ;; 12288 12289interix[3-9]*) 12290 version_type=linux # correct to gnu/linux during the next big refactor 12291 need_lib_prefix=no 12292 need_version=no 12293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12294 soname_spec='$libname$release$shared_ext$major' 12295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12296 shlibpath_var=LD_LIBRARY_PATH 12297 shlibpath_overrides_runpath=no 12298 hardcode_into_libs=yes 12299 ;; 12300 12301irix5* | irix6* | nonstopux*) 12302 case $host_os in 12303 nonstopux*) version_type=nonstopux ;; 12304 *) 12305 if test yes = "$lt_cv_prog_gnu_ld"; then 12306 version_type=linux # correct to gnu/linux during the next big refactor 12307 else 12308 version_type=irix 12309 fi ;; 12310 esac 12311 need_lib_prefix=no 12312 need_version=no 12313 soname_spec='$libname$release$shared_ext$major' 12314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12315 case $host_os in 12316 irix5* | nonstopux*) 12317 libsuff= shlibsuff= 12318 ;; 12319 *) 12320 case $LD in # libtool.m4 will add one of these switches to LD 12321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12322 libsuff= shlibsuff= libmagic=32-bit;; 12323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12324 libsuff=32 shlibsuff=N32 libmagic=N32;; 12325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12326 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12327 *) libsuff= shlibsuff= libmagic=never-match;; 12328 esac 12329 ;; 12330 esac 12331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12332 shlibpath_overrides_runpath=no 12333 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12334 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12335 hardcode_into_libs=yes 12336 ;; 12337 12338# No shared lib support for Linux oldld, aout, or coff. 12339linux*oldld* | linux*aout* | linux*coff*) 12340 dynamic_linker=no 12341 ;; 12342 12343linux*android*) 12344 version_type=none # Android doesn't support versioned libraries. 12345 need_lib_prefix=no 12346 need_version=no 12347 library_names_spec='$libname$release$shared_ext' 12348 soname_spec='$libname$release$shared_ext' 12349 finish_cmds= 12350 shlibpath_var=LD_LIBRARY_PATH 12351 shlibpath_overrides_runpath=yes 12352 12353 # This implies no fast_install, which is unacceptable. 12354 # Some rework will be needed to allow for fast_install 12355 # before this can be enabled. 12356 hardcode_into_libs=yes 12357 12358 dynamic_linker='Android linker' 12359 # Don't embed -rpath directories since the linker doesn't support them. 12360 hardcode_libdir_flag_spec='-L$libdir' 12361 ;; 12362 12363# This must be glibc/ELF. 12364linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12365 version_type=linux # correct to gnu/linux during the next big refactor 12366 need_lib_prefix=no 12367 need_version=no 12368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12369 soname_spec='$libname$release$shared_ext$major' 12370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12371 shlibpath_var=LD_LIBRARY_PATH 12372 shlibpath_overrides_runpath=no 12373 12374 # Some binutils ld are patched to set DT_RUNPATH 12375 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12376 $as_echo_n "(cached) " >&6 12377else 12378 lt_cv_shlibpath_overrides_runpath=no 12379 save_LDFLAGS=$LDFLAGS 12380 save_libdir=$libdir 12381 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12382 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12384/* end confdefs.h. */ 12385 12386int 12387main () 12388{ 12389 12390 ; 12391 return 0; 12392} 12393_ACEOF 12394if ac_fn_c_try_link "$LINENO"; then : 12395 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12396 lt_cv_shlibpath_overrides_runpath=yes 12397fi 12398fi 12399rm -f core conftest.err conftest.$ac_objext \ 12400 conftest$ac_exeext conftest.$ac_ext 12401 LDFLAGS=$save_LDFLAGS 12402 libdir=$save_libdir 12403 12404fi 12405 12406 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12407 12408 # This implies no fast_install, which is unacceptable. 12409 # Some rework will be needed to allow for fast_install 12410 # before this can be enabled. 12411 hardcode_into_libs=yes 12412 12413 # Append ld.so.conf contents to the search path 12414 if test -f /etc/ld.so.conf; then 12415 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' ' '` 12416 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12417 fi 12418 12419 # We used to test for /lib/ld.so.1 and disable shared libraries on 12420 # powerpc, because MkLinux only supported shared libraries with the 12421 # GNU dynamic linker. Since this was broken with cross compilers, 12422 # most powerpc-linux boxes support dynamic linking these days and 12423 # people can always --disable-shared, the test was removed, and we 12424 # assume the GNU/Linux dynamic linker is in use. 12425 dynamic_linker='GNU/Linux ld.so' 12426 ;; 12427 12428netbsd*) 12429 version_type=sunos 12430 need_lib_prefix=no 12431 need_version=no 12432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12433 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12435 dynamic_linker='NetBSD (a.out) ld.so' 12436 else 12437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12438 soname_spec='$libname$release$shared_ext$major' 12439 dynamic_linker='NetBSD ld.elf_so' 12440 fi 12441 shlibpath_var=LD_LIBRARY_PATH 12442 shlibpath_overrides_runpath=yes 12443 hardcode_into_libs=yes 12444 ;; 12445 12446newsos6) 12447 version_type=linux # correct to gnu/linux during the next big refactor 12448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12449 shlibpath_var=LD_LIBRARY_PATH 12450 shlibpath_overrides_runpath=yes 12451 ;; 12452 12453*nto* | *qnx*) 12454 version_type=qnx 12455 need_lib_prefix=no 12456 need_version=no 12457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12458 soname_spec='$libname$release$shared_ext$major' 12459 shlibpath_var=LD_LIBRARY_PATH 12460 shlibpath_overrides_runpath=no 12461 hardcode_into_libs=yes 12462 dynamic_linker='ldqnx.so' 12463 ;; 12464 12465openbsd* | bitrig*) 12466 version_type=sunos 12467 sys_lib_dlsearch_path_spec=/usr/lib 12468 need_lib_prefix=no 12469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12470 need_version=no 12471 else 12472 need_version=yes 12473 fi 12474 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12476 shlibpath_var=LD_LIBRARY_PATH 12477 shlibpath_overrides_runpath=yes 12478 ;; 12479 12480os2*) 12481 libname_spec='$name' 12482 shrext_cmds=.dll 12483 need_lib_prefix=no 12484 library_names_spec='$libname$shared_ext $libname.a' 12485 dynamic_linker='OS/2 ld.exe' 12486 shlibpath_var=LIBPATH 12487 ;; 12488 12489osf3* | osf4* | osf5*) 12490 version_type=osf 12491 need_lib_prefix=no 12492 need_version=no 12493 soname_spec='$libname$release$shared_ext$major' 12494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12495 shlibpath_var=LD_LIBRARY_PATH 12496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12498 ;; 12499 12500rdos*) 12501 dynamic_linker=no 12502 ;; 12503 12504solaris*) 12505 version_type=linux # correct to gnu/linux during the next big refactor 12506 need_lib_prefix=no 12507 need_version=no 12508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12509 soname_spec='$libname$release$shared_ext$major' 12510 shlibpath_var=LD_LIBRARY_PATH 12511 shlibpath_overrides_runpath=yes 12512 hardcode_into_libs=yes 12513 # ldd complains unless libraries are executable 12514 postinstall_cmds='chmod +x $lib' 12515 ;; 12516 12517sunos4*) 12518 version_type=sunos 12519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12521 shlibpath_var=LD_LIBRARY_PATH 12522 shlibpath_overrides_runpath=yes 12523 if test yes = "$with_gnu_ld"; then 12524 need_lib_prefix=no 12525 fi 12526 need_version=yes 12527 ;; 12528 12529sysv4 | sysv4.3*) 12530 version_type=linux # correct to gnu/linux during the next big refactor 12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12532 soname_spec='$libname$release$shared_ext$major' 12533 shlibpath_var=LD_LIBRARY_PATH 12534 case $host_vendor in 12535 sni) 12536 shlibpath_overrides_runpath=no 12537 need_lib_prefix=no 12538 runpath_var=LD_RUN_PATH 12539 ;; 12540 siemens) 12541 need_lib_prefix=no 12542 ;; 12543 motorola) 12544 need_lib_prefix=no 12545 need_version=no 12546 shlibpath_overrides_runpath=no 12547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12548 ;; 12549 esac 12550 ;; 12551 12552sysv4*MP*) 12553 if test -d /usr/nec; then 12554 version_type=linux # correct to gnu/linux during the next big refactor 12555 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12556 soname_spec='$libname$shared_ext.$major' 12557 shlibpath_var=LD_LIBRARY_PATH 12558 fi 12559 ;; 12560 12561sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12562 version_type=freebsd-elf 12563 need_lib_prefix=no 12564 need_version=no 12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12566 soname_spec='$libname$release$shared_ext$major' 12567 shlibpath_var=LD_LIBRARY_PATH 12568 shlibpath_overrides_runpath=yes 12569 hardcode_into_libs=yes 12570 if test yes = "$with_gnu_ld"; then 12571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12572 else 12573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12574 case $host_os in 12575 sco3.2v5*) 12576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12577 ;; 12578 esac 12579 fi 12580 sys_lib_dlsearch_path_spec='/usr/lib' 12581 ;; 12582 12583tpf*) 12584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12585 version_type=linux # correct to gnu/linux during the next big refactor 12586 need_lib_prefix=no 12587 need_version=no 12588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12589 shlibpath_var=LD_LIBRARY_PATH 12590 shlibpath_overrides_runpath=no 12591 hardcode_into_libs=yes 12592 ;; 12593 12594uts4*) 12595 version_type=linux # correct to gnu/linux during the next big refactor 12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12597 soname_spec='$libname$release$shared_ext$major' 12598 shlibpath_var=LD_LIBRARY_PATH 12599 ;; 12600 12601*) 12602 dynamic_linker=no 12603 ;; 12604esac 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12606$as_echo "$dynamic_linker" >&6; } 12607test no = "$dynamic_linker" && can_build_shared=no 12608 12609variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12610if test yes = "$GCC"; then 12611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12612fi 12613 12614if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12615 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12616fi 12617if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12618 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12619fi 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12713$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12714hardcode_action= 12715if test -n "$hardcode_libdir_flag_spec" || 12716 test -n "$runpath_var" || 12717 test yes = "$hardcode_automatic"; then 12718 12719 # We can hardcode non-existent directories. 12720 if test no != "$hardcode_direct" && 12721 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12722 # have to relink, otherwise we might link with an installed library 12723 # when we should be linking with a yet-to-be-installed one 12724 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12725 test no != "$hardcode_minus_L"; then 12726 # Linking always hardcodes the temporary library directory. 12727 hardcode_action=relink 12728 else 12729 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12730 hardcode_action=immediate 12731 fi 12732else 12733 # We cannot hardcode anything, or else we can only hardcode existing 12734 # directories. 12735 hardcode_action=unsupported 12736fi 12737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12738$as_echo "$hardcode_action" >&6; } 12739 12740if test relink = "$hardcode_action" || 12741 test yes = "$inherit_rpath"; then 12742 # Fast installation is not supported 12743 enable_fast_install=no 12744elif test yes = "$shlibpath_overrides_runpath" || 12745 test no = "$enable_shared"; then 12746 # Fast installation is not necessary 12747 enable_fast_install=needless 12748fi 12749 12750 12751 12752 12753 12754 12755 if test yes != "$enable_dlopen"; then 12756 enable_dlopen=unknown 12757 enable_dlopen_self=unknown 12758 enable_dlopen_self_static=unknown 12759else 12760 lt_cv_dlopen=no 12761 lt_cv_dlopen_libs= 12762 12763 case $host_os in 12764 beos*) 12765 lt_cv_dlopen=load_add_on 12766 lt_cv_dlopen_libs= 12767 lt_cv_dlopen_self=yes 12768 ;; 12769 12770 mingw* | pw32* | cegcc*) 12771 lt_cv_dlopen=LoadLibrary 12772 lt_cv_dlopen_libs= 12773 ;; 12774 12775 cygwin*) 12776 lt_cv_dlopen=dlopen 12777 lt_cv_dlopen_libs= 12778 ;; 12779 12780 darwin*) 12781 # if libdl is installed we need to link against it 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12783$as_echo_n "checking for dlopen in -ldl... " >&6; } 12784if ${ac_cv_lib_dl_dlopen+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 ac_check_lib_save_LIBS=$LIBS 12788LIBS="-ldl $LIBS" 12789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12790/* end confdefs.h. */ 12791 12792/* Override any GCC internal prototype to avoid an error. 12793 Use char because int might match the return type of a GCC 12794 builtin and then its argument prototype would still apply. */ 12795#ifdef __cplusplus 12796extern "C" 12797#endif 12798char dlopen (); 12799int 12800main () 12801{ 12802return dlopen (); 12803 ; 12804 return 0; 12805} 12806_ACEOF 12807if ac_fn_c_try_link "$LINENO"; then : 12808 ac_cv_lib_dl_dlopen=yes 12809else 12810 ac_cv_lib_dl_dlopen=no 12811fi 12812rm -f core conftest.err conftest.$ac_objext \ 12813 conftest$ac_exeext conftest.$ac_ext 12814LIBS=$ac_check_lib_save_LIBS 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12817$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12818if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12819 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12820else 12821 12822 lt_cv_dlopen=dyld 12823 lt_cv_dlopen_libs= 12824 lt_cv_dlopen_self=yes 12825 12826fi 12827 12828 ;; 12829 12830 tpf*) 12831 # Don't try to run any link tests for TPF. We know it's impossible 12832 # because TPF is a cross-compiler, and we know how we open DSOs. 12833 lt_cv_dlopen=dlopen 12834 lt_cv_dlopen_libs= 12835 lt_cv_dlopen_self=no 12836 ;; 12837 12838 *) 12839 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12840if test "x$ac_cv_func_shl_load" = xyes; then : 12841 lt_cv_dlopen=shl_load 12842else 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12844$as_echo_n "checking for shl_load in -ldld... " >&6; } 12845if ${ac_cv_lib_dld_shl_load+:} false; then : 12846 $as_echo_n "(cached) " >&6 12847else 12848 ac_check_lib_save_LIBS=$LIBS 12849LIBS="-ldld $LIBS" 12850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852 12853/* Override any GCC internal prototype to avoid an error. 12854 Use char because int might match the return type of a GCC 12855 builtin and then its argument prototype would still apply. */ 12856#ifdef __cplusplus 12857extern "C" 12858#endif 12859char shl_load (); 12860int 12861main () 12862{ 12863return shl_load (); 12864 ; 12865 return 0; 12866} 12867_ACEOF 12868if ac_fn_c_try_link "$LINENO"; then : 12869 ac_cv_lib_dld_shl_load=yes 12870else 12871 ac_cv_lib_dld_shl_load=no 12872fi 12873rm -f core conftest.err conftest.$ac_objext \ 12874 conftest$ac_exeext conftest.$ac_ext 12875LIBS=$ac_check_lib_save_LIBS 12876fi 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12878$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12879if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12880 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12881else 12882 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12883if test "x$ac_cv_func_dlopen" = xyes; then : 12884 lt_cv_dlopen=dlopen 12885else 12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12887$as_echo_n "checking for dlopen in -ldl... " >&6; } 12888if ${ac_cv_lib_dl_dlopen+:} false; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 ac_check_lib_save_LIBS=$LIBS 12892LIBS="-ldl $LIBS" 12893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12894/* end confdefs.h. */ 12895 12896/* Override any GCC internal prototype to avoid an error. 12897 Use char because int might match the return type of a GCC 12898 builtin and then its argument prototype would still apply. */ 12899#ifdef __cplusplus 12900extern "C" 12901#endif 12902char dlopen (); 12903int 12904main () 12905{ 12906return dlopen (); 12907 ; 12908 return 0; 12909} 12910_ACEOF 12911if ac_fn_c_try_link "$LINENO"; then : 12912 ac_cv_lib_dl_dlopen=yes 12913else 12914 ac_cv_lib_dl_dlopen=no 12915fi 12916rm -f core conftest.err conftest.$ac_objext \ 12917 conftest$ac_exeext conftest.$ac_ext 12918LIBS=$ac_check_lib_save_LIBS 12919fi 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12921$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12922if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12923 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12924else 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12926$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12927if ${ac_cv_lib_svld_dlopen+:} false; then : 12928 $as_echo_n "(cached) " >&6 12929else 12930 ac_check_lib_save_LIBS=$LIBS 12931LIBS="-lsvld $LIBS" 12932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12933/* end confdefs.h. */ 12934 12935/* Override any GCC internal prototype to avoid an error. 12936 Use char because int might match the return type of a GCC 12937 builtin and then its argument prototype would still apply. */ 12938#ifdef __cplusplus 12939extern "C" 12940#endif 12941char dlopen (); 12942int 12943main () 12944{ 12945return dlopen (); 12946 ; 12947 return 0; 12948} 12949_ACEOF 12950if ac_fn_c_try_link "$LINENO"; then : 12951 ac_cv_lib_svld_dlopen=yes 12952else 12953 ac_cv_lib_svld_dlopen=no 12954fi 12955rm -f core conftest.err conftest.$ac_objext \ 12956 conftest$ac_exeext conftest.$ac_ext 12957LIBS=$ac_check_lib_save_LIBS 12958fi 12959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12960$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12961if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12962 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12963else 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12965$as_echo_n "checking for dld_link in -ldld... " >&6; } 12966if ${ac_cv_lib_dld_dld_link+:} false; then : 12967 $as_echo_n "(cached) " >&6 12968else 12969 ac_check_lib_save_LIBS=$LIBS 12970LIBS="-ldld $LIBS" 12971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12972/* end confdefs.h. */ 12973 12974/* Override any GCC internal prototype to avoid an error. 12975 Use char because int might match the return type of a GCC 12976 builtin and then its argument prototype would still apply. */ 12977#ifdef __cplusplus 12978extern "C" 12979#endif 12980char dld_link (); 12981int 12982main () 12983{ 12984return dld_link (); 12985 ; 12986 return 0; 12987} 12988_ACEOF 12989if ac_fn_c_try_link "$LINENO"; then : 12990 ac_cv_lib_dld_dld_link=yes 12991else 12992 ac_cv_lib_dld_dld_link=no 12993fi 12994rm -f core conftest.err conftest.$ac_objext \ 12995 conftest$ac_exeext conftest.$ac_ext 12996LIBS=$ac_check_lib_save_LIBS 12997fi 12998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12999$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13000if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13001 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13002fi 13003 13004 13005fi 13006 13007 13008fi 13009 13010 13011fi 13012 13013 13014fi 13015 13016 13017fi 13018 13019 ;; 13020 esac 13021 13022 if test no = "$lt_cv_dlopen"; then 13023 enable_dlopen=no 13024 else 13025 enable_dlopen=yes 13026 fi 13027 13028 case $lt_cv_dlopen in 13029 dlopen) 13030 save_CPPFLAGS=$CPPFLAGS 13031 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13032 13033 save_LDFLAGS=$LDFLAGS 13034 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13035 13036 save_LIBS=$LIBS 13037 LIBS="$lt_cv_dlopen_libs $LIBS" 13038 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13040$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13041if ${lt_cv_dlopen_self+:} false; then : 13042 $as_echo_n "(cached) " >&6 13043else 13044 if test yes = "$cross_compiling"; then : 13045 lt_cv_dlopen_self=cross 13046else 13047 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13048 lt_status=$lt_dlunknown 13049 cat > conftest.$ac_ext <<_LT_EOF 13050#line $LINENO "configure" 13051#include "confdefs.h" 13052 13053#if HAVE_DLFCN_H 13054#include <dlfcn.h> 13055#endif 13056 13057#include <stdio.h> 13058 13059#ifdef RTLD_GLOBAL 13060# define LT_DLGLOBAL RTLD_GLOBAL 13061#else 13062# ifdef DL_GLOBAL 13063# define LT_DLGLOBAL DL_GLOBAL 13064# else 13065# define LT_DLGLOBAL 0 13066# endif 13067#endif 13068 13069/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13070 find out it does not work in some platform. */ 13071#ifndef LT_DLLAZY_OR_NOW 13072# ifdef RTLD_LAZY 13073# define LT_DLLAZY_OR_NOW RTLD_LAZY 13074# else 13075# ifdef DL_LAZY 13076# define LT_DLLAZY_OR_NOW DL_LAZY 13077# else 13078# ifdef RTLD_NOW 13079# define LT_DLLAZY_OR_NOW RTLD_NOW 13080# else 13081# ifdef DL_NOW 13082# define LT_DLLAZY_OR_NOW DL_NOW 13083# else 13084# define LT_DLLAZY_OR_NOW 0 13085# endif 13086# endif 13087# endif 13088# endif 13089#endif 13090 13091/* When -fvisbility=hidden is used, assume the code has been annotated 13092 correspondingly for the symbols needed. */ 13093#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13094int fnord () __attribute__((visibility("default"))); 13095#endif 13096 13097int fnord () { return 42; } 13098int main () 13099{ 13100 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13101 int status = $lt_dlunknown; 13102 13103 if (self) 13104 { 13105 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13106 else 13107 { 13108 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13109 else puts (dlerror ()); 13110 } 13111 /* dlclose (self); */ 13112 } 13113 else 13114 puts (dlerror ()); 13115 13116 return status; 13117} 13118_LT_EOF 13119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13120 (eval $ac_link) 2>&5 13121 ac_status=$? 13122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13123 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13124 (./conftest; exit; ) >&5 2>/dev/null 13125 lt_status=$? 13126 case x$lt_status in 13127 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13128 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13129 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13130 esac 13131 else : 13132 # compilation failed 13133 lt_cv_dlopen_self=no 13134 fi 13135fi 13136rm -fr conftest* 13137 13138 13139fi 13140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13141$as_echo "$lt_cv_dlopen_self" >&6; } 13142 13143 if test yes = "$lt_cv_dlopen_self"; then 13144 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13146$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13147if ${lt_cv_dlopen_self_static+:} false; then : 13148 $as_echo_n "(cached) " >&6 13149else 13150 if test yes = "$cross_compiling"; then : 13151 lt_cv_dlopen_self_static=cross 13152else 13153 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13154 lt_status=$lt_dlunknown 13155 cat > conftest.$ac_ext <<_LT_EOF 13156#line $LINENO "configure" 13157#include "confdefs.h" 13158 13159#if HAVE_DLFCN_H 13160#include <dlfcn.h> 13161#endif 13162 13163#include <stdio.h> 13164 13165#ifdef RTLD_GLOBAL 13166# define LT_DLGLOBAL RTLD_GLOBAL 13167#else 13168# ifdef DL_GLOBAL 13169# define LT_DLGLOBAL DL_GLOBAL 13170# else 13171# define LT_DLGLOBAL 0 13172# endif 13173#endif 13174 13175/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13176 find out it does not work in some platform. */ 13177#ifndef LT_DLLAZY_OR_NOW 13178# ifdef RTLD_LAZY 13179# define LT_DLLAZY_OR_NOW RTLD_LAZY 13180# else 13181# ifdef DL_LAZY 13182# define LT_DLLAZY_OR_NOW DL_LAZY 13183# else 13184# ifdef RTLD_NOW 13185# define LT_DLLAZY_OR_NOW RTLD_NOW 13186# else 13187# ifdef DL_NOW 13188# define LT_DLLAZY_OR_NOW DL_NOW 13189# else 13190# define LT_DLLAZY_OR_NOW 0 13191# endif 13192# endif 13193# endif 13194# endif 13195#endif 13196 13197/* When -fvisbility=hidden is used, assume the code has been annotated 13198 correspondingly for the symbols needed. */ 13199#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13200int fnord () __attribute__((visibility("default"))); 13201#endif 13202 13203int fnord () { return 42; } 13204int main () 13205{ 13206 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13207 int status = $lt_dlunknown; 13208 13209 if (self) 13210 { 13211 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13212 else 13213 { 13214 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13215 else puts (dlerror ()); 13216 } 13217 /* dlclose (self); */ 13218 } 13219 else 13220 puts (dlerror ()); 13221 13222 return status; 13223} 13224_LT_EOF 13225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13226 (eval $ac_link) 2>&5 13227 ac_status=$? 13228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13229 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13230 (./conftest; exit; ) >&5 2>/dev/null 13231 lt_status=$? 13232 case x$lt_status in 13233 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13234 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13235 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13236 esac 13237 else : 13238 # compilation failed 13239 lt_cv_dlopen_self_static=no 13240 fi 13241fi 13242rm -fr conftest* 13243 13244 13245fi 13246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13247$as_echo "$lt_cv_dlopen_self_static" >&6; } 13248 fi 13249 13250 CPPFLAGS=$save_CPPFLAGS 13251 LDFLAGS=$save_LDFLAGS 13252 LIBS=$save_LIBS 13253 ;; 13254 esac 13255 13256 case $lt_cv_dlopen_self in 13257 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13258 *) enable_dlopen_self=unknown ;; 13259 esac 13260 13261 case $lt_cv_dlopen_self_static in 13262 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13263 *) enable_dlopen_self_static=unknown ;; 13264 esac 13265fi 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283striplib= 13284old_striplib= 13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13286$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13287if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13288 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13289 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13291$as_echo "yes" >&6; } 13292else 13293# FIXME - insert some real tests, host_os isn't really good enough 13294 case $host_os in 13295 darwin*) 13296 if test -n "$STRIP"; then 13297 striplib="$STRIP -x" 13298 old_striplib="$STRIP -S" 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13300$as_echo "yes" >&6; } 13301 else 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13303$as_echo "no" >&6; } 13304 fi 13305 ;; 13306 *) 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13308$as_echo "no" >&6; } 13309 ;; 13310 esac 13311fi 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 # Report what library types will actually be built 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13326$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13328$as_echo "$can_build_shared" >&6; } 13329 13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13331$as_echo_n "checking whether to build shared libraries... " >&6; } 13332 test no = "$can_build_shared" && enable_shared=no 13333 13334 # On AIX, shared libraries and static libraries use the same namespace, and 13335 # are all built from PIC. 13336 case $host_os in 13337 aix3*) 13338 test yes = "$enable_shared" && enable_static=no 13339 if test -n "$RANLIB"; then 13340 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13341 postinstall_cmds='$RANLIB $lib' 13342 fi 13343 ;; 13344 13345 aix[4-9]*) 13346 if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then 13347 test yes = "$enable_shared" && enable_static=no 13348 fi 13349 ;; 13350 esac 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13352$as_echo "$enable_shared" >&6; } 13353 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13355$as_echo_n "checking whether to build static libraries... " >&6; } 13356 # Make sure either enable_shared or enable_static is yes. 13357 test yes = "$enable_shared" || enable_static=yes 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13359$as_echo "$enable_static" >&6; } 13360 13361 13362 13363 13364fi 13365ac_ext=c 13366ac_cpp='$CPP $CPPFLAGS' 13367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13369ac_compiler_gnu=$ac_cv_c_compiler_gnu 13370 13371CC=$lt_save_CC 13372 13373 if test -n "$CXX" && ( test no != "$CXX" && 13374 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13375 (test g++ != "$CXX"))); then 13376 ac_ext=cpp 13377ac_cpp='$CXXCPP $CPPFLAGS' 13378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13382$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13383if test -z "$CXXCPP"; then 13384 if ${ac_cv_prog_CXXCPP+:} false; then : 13385 $as_echo_n "(cached) " >&6 13386else 13387 # Double quotes because CXXCPP needs to be expanded 13388 for CXXCPP in "$CXX -E" "/lib/cpp" 13389 do 13390 ac_preproc_ok=false 13391for ac_cxx_preproc_warn_flag in '' yes 13392do 13393 # Use a header file that comes with gcc, so configuring glibc 13394 # with a fresh cross-compiler works. 13395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13396 # <limits.h> exists even on freestanding compilers. 13397 # On the NeXT, cc -E runs the code through the compiler's parser, 13398 # not just through cpp. "Syntax error" is here to catch this case. 13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13400/* end confdefs.h. */ 13401#ifdef __STDC__ 13402# include <limits.h> 13403#else 13404# include <assert.h> 13405#endif 13406 Syntax error 13407_ACEOF 13408if ac_fn_cxx_try_cpp "$LINENO"; then : 13409 13410else 13411 # Broken: fails on valid input. 13412continue 13413fi 13414rm -f conftest.err conftest.i conftest.$ac_ext 13415 13416 # OK, works on sane cases. Now check whether nonexistent headers 13417 # can be detected and how. 13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13419/* end confdefs.h. */ 13420#include <ac_nonexistent.h> 13421_ACEOF 13422if ac_fn_cxx_try_cpp "$LINENO"; then : 13423 # Broken: success on invalid input. 13424continue 13425else 13426 # Passes both tests. 13427ac_preproc_ok=: 13428break 13429fi 13430rm -f conftest.err conftest.i conftest.$ac_ext 13431 13432done 13433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13434rm -f conftest.i conftest.err conftest.$ac_ext 13435if $ac_preproc_ok; then : 13436 break 13437fi 13438 13439 done 13440 ac_cv_prog_CXXCPP=$CXXCPP 13441 13442fi 13443 CXXCPP=$ac_cv_prog_CXXCPP 13444else 13445 ac_cv_prog_CXXCPP=$CXXCPP 13446fi 13447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13448$as_echo "$CXXCPP" >&6; } 13449ac_preproc_ok=false 13450for ac_cxx_preproc_warn_flag in '' yes 13451do 13452 # Use a header file that comes with gcc, so configuring glibc 13453 # with a fresh cross-compiler works. 13454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13455 # <limits.h> exists even on freestanding compilers. 13456 # On the NeXT, cc -E runs the code through the compiler's parser, 13457 # not just through cpp. "Syntax error" is here to catch this case. 13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13459/* end confdefs.h. */ 13460#ifdef __STDC__ 13461# include <limits.h> 13462#else 13463# include <assert.h> 13464#endif 13465 Syntax error 13466_ACEOF 13467if ac_fn_cxx_try_cpp "$LINENO"; then : 13468 13469else 13470 # Broken: fails on valid input. 13471continue 13472fi 13473rm -f conftest.err conftest.i conftest.$ac_ext 13474 13475 # OK, works on sane cases. Now check whether nonexistent headers 13476 # can be detected and how. 13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13478/* end confdefs.h. */ 13479#include <ac_nonexistent.h> 13480_ACEOF 13481if ac_fn_cxx_try_cpp "$LINENO"; then : 13482 # Broken: success on invalid input. 13483continue 13484else 13485 # Passes both tests. 13486ac_preproc_ok=: 13487break 13488fi 13489rm -f conftest.err conftest.i conftest.$ac_ext 13490 13491done 13492# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13493rm -f conftest.i conftest.err conftest.$ac_ext 13494if $ac_preproc_ok; then : 13495 13496else 13497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13499as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13500See \`config.log' for more details" "$LINENO" 5; } 13501fi 13502 13503ac_ext=c 13504ac_cpp='$CPP $CPPFLAGS' 13505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13507ac_compiler_gnu=$ac_cv_c_compiler_gnu 13508 13509else 13510 _lt_caught_CXX_error=yes 13511fi 13512 13513ac_ext=cpp 13514ac_cpp='$CXXCPP $CPPFLAGS' 13515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13518 13519archive_cmds_need_lc_CXX=no 13520allow_undefined_flag_CXX= 13521always_export_symbols_CXX=no 13522archive_expsym_cmds_CXX= 13523compiler_needs_object_CXX=no 13524export_dynamic_flag_spec_CXX= 13525hardcode_direct_CXX=no 13526hardcode_direct_absolute_CXX=no 13527hardcode_libdir_flag_spec_CXX= 13528hardcode_libdir_separator_CXX= 13529hardcode_minus_L_CXX=no 13530hardcode_shlibpath_var_CXX=unsupported 13531hardcode_automatic_CXX=no 13532inherit_rpath_CXX=no 13533module_cmds_CXX= 13534module_expsym_cmds_CXX= 13535link_all_deplibs_CXX=unknown 13536old_archive_cmds_CXX=$old_archive_cmds 13537reload_flag_CXX=$reload_flag 13538reload_cmds_CXX=$reload_cmds 13539no_undefined_flag_CXX= 13540whole_archive_flag_spec_CXX= 13541enable_shared_with_static_runtimes_CXX=no 13542 13543# Source file extension for C++ test sources. 13544ac_ext=cpp 13545 13546# Object file extension for compiled C++ test sources. 13547objext=o 13548objext_CXX=$objext 13549 13550# No sense in running all these tests if we already determined that 13551# the CXX compiler isn't working. Some variables (like enable_shared) 13552# are currently assumed to apply to all compilers on this platform, 13553# and will be corrupted by setting them based on a non-working compiler. 13554if test yes != "$_lt_caught_CXX_error"; then 13555 # Code to be used in simple compile tests 13556 lt_simple_compile_test_code="int some_variable = 0;" 13557 13558 # Code to be used in simple link tests 13559 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13560 13561 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13562 13563 13564 13565 13566 13567 13568# If no C compiler was specified, use CC. 13569LTCC=${LTCC-"$CC"} 13570 13571# If no C compiler flags were specified, use CFLAGS. 13572LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13573 13574# Allow CC to be a program name with arguments. 13575compiler=$CC 13576 13577 13578 # save warnings/boilerplate of simple test code 13579 ac_outfile=conftest.$ac_objext 13580echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13581eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13582_lt_compiler_boilerplate=`cat conftest.err` 13583$RM conftest* 13584 13585 ac_outfile=conftest.$ac_objext 13586echo "$lt_simple_link_test_code" >conftest.$ac_ext 13587eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13588_lt_linker_boilerplate=`cat conftest.err` 13589$RM -r conftest* 13590 13591 13592 # Allow CC to be a program name with arguments. 13593 lt_save_CC=$CC 13594 lt_save_CFLAGS=$CFLAGS 13595 lt_save_LD=$LD 13596 lt_save_GCC=$GCC 13597 GCC=$GXX 13598 lt_save_with_gnu_ld=$with_gnu_ld 13599 lt_save_path_LD=$lt_cv_path_LD 13600 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13601 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13602 else 13603 $as_unset lt_cv_prog_gnu_ld 13604 fi 13605 if test -n "${lt_cv_path_LDCXX+set}"; then 13606 lt_cv_path_LD=$lt_cv_path_LDCXX 13607 else 13608 $as_unset lt_cv_path_LD 13609 fi 13610 test -z "${LDCXX+set}" || LD=$LDCXX 13611 CC=${CXX-"c++"} 13612 CFLAGS=$CXXFLAGS 13613 compiler=$CC 13614 compiler_CXX=$CC 13615 for cc_temp in $compiler""; do 13616 case $cc_temp in 13617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13619 \-*) ;; 13620 *) break;; 13621 esac 13622done 13623cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13624 13625 13626 if test -n "$compiler"; then 13627 # We don't want -fno-exception when compiling C++ code, so set the 13628 # no_builtin_flag separately 13629 if test yes = "$GXX"; then 13630 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13631 else 13632 lt_prog_compiler_no_builtin_flag_CXX= 13633 fi 13634 13635 if test yes = "$GXX"; then 13636 # Set up default GNU C++ configuration 13637 13638 13639 13640# Check whether --with-gnu-ld was given. 13641if test "${with_gnu_ld+set}" = set; then : 13642 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13643else 13644 with_gnu_ld=no 13645fi 13646 13647ac_prog=ld 13648if test yes = "$GCC"; then 13649 # Check if gcc -print-prog-name=ld gives a path. 13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13651$as_echo_n "checking for ld used by $CC... " >&6; } 13652 case $host in 13653 *-*-mingw*) 13654 # gcc leaves a trailing carriage return, which upsets mingw 13655 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13656 *) 13657 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13658 esac 13659 case $ac_prog in 13660 # Accept absolute paths. 13661 [\\/]* | ?:[\\/]*) 13662 re_direlt='/[^/][^/]*/\.\./' 13663 # Canonicalize the pathname of ld 13664 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13665 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13666 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13667 done 13668 test -z "$LD" && LD=$ac_prog 13669 ;; 13670 "") 13671 # If it fails, then pretend we aren't using GCC. 13672 ac_prog=ld 13673 ;; 13674 *) 13675 # If it is relative, then search for the first ld in PATH. 13676 with_gnu_ld=unknown 13677 ;; 13678 esac 13679elif test yes = "$with_gnu_ld"; then 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13681$as_echo_n "checking for GNU ld... " >&6; } 13682else 13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13684$as_echo_n "checking for non-GNU ld... " >&6; } 13685fi 13686if ${lt_cv_path_LD+:} false; then : 13687 $as_echo_n "(cached) " >&6 13688else 13689 if test -z "$LD"; then 13690 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13691 for ac_dir in $PATH; do 13692 IFS=$lt_save_ifs 13693 test -z "$ac_dir" && ac_dir=. 13694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13695 lt_cv_path_LD=$ac_dir/$ac_prog 13696 # Check to see if the program is GNU ld. I'd rather use --version, 13697 # but apparently some variants of GNU ld only accept -v. 13698 # Break only if it was the GNU/non-GNU ld that we prefer. 13699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13700 *GNU* | *'with BFD'*) 13701 test no != "$with_gnu_ld" && break 13702 ;; 13703 *) 13704 test yes != "$with_gnu_ld" && break 13705 ;; 13706 esac 13707 fi 13708 done 13709 IFS=$lt_save_ifs 13710else 13711 lt_cv_path_LD=$LD # Let the user override the test with a path. 13712fi 13713fi 13714 13715LD=$lt_cv_path_LD 13716if test -n "$LD"; then 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13718$as_echo "$LD" >&6; } 13719else 13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13721$as_echo "no" >&6; } 13722fi 13723test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13725$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13726if ${lt_cv_prog_gnu_ld+:} false; then : 13727 $as_echo_n "(cached) " >&6 13728else 13729 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13730case `$LD -v 2>&1 </dev/null` in 13731*GNU* | *'with BFD'*) 13732 lt_cv_prog_gnu_ld=yes 13733 ;; 13734*) 13735 lt_cv_prog_gnu_ld=no 13736 ;; 13737esac 13738fi 13739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13740$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13741with_gnu_ld=$lt_cv_prog_gnu_ld 13742 13743 13744 13745 13746 13747 13748 13749 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13750 # archiving commands below assume that GNU ld is being used. 13751 if test yes = "$with_gnu_ld"; then 13752 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13753 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' 13754 13755 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13756 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13757 13758 # If archive_cmds runs LD, not CC, wlarc should be empty 13759 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13760 # investigate it a little bit more. (MM) 13761 wlarc='$wl' 13762 13763 # ancient GNU ld didn't support --whole-archive et. al. 13764 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13765 $GREP 'no-whole-archive' > /dev/null; then 13766 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13767 else 13768 whole_archive_flag_spec_CXX= 13769 fi 13770 else 13771 with_gnu_ld=no 13772 wlarc= 13773 13774 # A generic and very simple default shared library creation 13775 # command for GNU C++ for the case where it uses the native 13776 # linker, instead of GNU ld. If possible, this setting should 13777 # overridden to take advantage of the native linker features on 13778 # the platform it is being used on. 13779 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13780 fi 13781 13782 # Commands to make compiler produce verbose output that lists 13783 # what "hidden" libraries, object files and flags are used when 13784 # linking a shared library. 13785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13786 13787 else 13788 GXX=no 13789 with_gnu_ld=no 13790 wlarc= 13791 fi 13792 13793 # PORTME: fill in a description of your system's C++ link characteristics 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13795$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13796 ld_shlibs_CXX=yes 13797 case $host_os in 13798 aix3*) 13799 # FIXME: insert proper C++ library support 13800 ld_shlibs_CXX=no 13801 ;; 13802 aix[4-9]*) 13803 if test ia64 = "$host_cpu"; then 13804 # On IA64, the linker does run time linking by default, so we don't 13805 # have to do anything special. 13806 aix_use_runtimelinking=no 13807 exp_sym_flag='-Bexport' 13808 no_entry_flag= 13809 else 13810 aix_use_runtimelinking=no 13811 13812 # Test if we are trying to use run time linking or normal 13813 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13814 # need to do runtime linking. 13815 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13816 for ld_flag in $LDFLAGS; do 13817 case $ld_flag in 13818 *-brtl*) 13819 aix_use_runtimelinking=yes 13820 break 13821 ;; 13822 esac 13823 done 13824 ;; 13825 esac 13826 13827 exp_sym_flag='-bexport' 13828 no_entry_flag='-bnoentry' 13829 fi 13830 13831 # When large executables or shared objects are built, AIX ld can 13832 # have problems creating the table of contents. If linking a library 13833 # or program results in "error TOC overflow" add -mminimal-toc to 13834 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13835 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13836 13837 archive_cmds_CXX='' 13838 hardcode_direct_CXX=yes 13839 hardcode_direct_absolute_CXX=yes 13840 hardcode_libdir_separator_CXX=':' 13841 link_all_deplibs_CXX=yes 13842 file_list_spec_CXX='$wl-f,' 13843 13844 if test yes = "$GXX"; then 13845 case $host_os in aix4.[012]|aix4.[012].*) 13846 # We only want to do this on AIX 4.2 and lower, the check 13847 # below for broken collect2 doesn't work under 4.3+ 13848 collect2name=`$CC -print-prog-name=collect2` 13849 if test -f "$collect2name" && 13850 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13851 then 13852 # We have reworked collect2 13853 : 13854 else 13855 # We have old collect2 13856 hardcode_direct_CXX=unsupported 13857 # It fails to find uninstalled libraries when the uninstalled 13858 # path is not listed in the libpath. Setting hardcode_minus_L 13859 # to unsupported forces relinking 13860 hardcode_minus_L_CXX=yes 13861 hardcode_libdir_flag_spec_CXX='-L$libdir' 13862 hardcode_libdir_separator_CXX= 13863 fi 13864 esac 13865 shared_flag='-shared' 13866 if test yes = "$aix_use_runtimelinking"; then 13867 shared_flag=$shared_flag' $wl-G' 13868 fi 13869 else 13870 # not using gcc 13871 if test ia64 = "$host_cpu"; then 13872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13873 # chokes on -Wl,-G. The following line is correct: 13874 shared_flag='-G' 13875 else 13876 if test yes = "$aix_use_runtimelinking"; then 13877 shared_flag='$wl-G' 13878 else 13879 shared_flag='$wl-bM:SRE' 13880 fi 13881 fi 13882 fi 13883 13884 export_dynamic_flag_spec_CXX='$wl-bexpall' 13885 # It seems that -bexpall does not export symbols beginning with 13886 # underscore (_), so it is better to generate a list of symbols to 13887 # export. 13888 always_export_symbols_CXX=yes 13889 if test yes = "$aix_use_runtimelinking"; then 13890 # Warning - without using the other runtime loading flags (-brtl), 13891 # -berok will link without error, but may produce a broken library. 13892 allow_undefined_flag_CXX='-berok' 13893 # Determine the default libpath from the value encoded in an empty 13894 # executable. 13895 if test set = "${lt_cv_aix_libpath+set}"; then 13896 aix_libpath=$lt_cv_aix_libpath 13897else 13898 if ${lt_cv_aix_libpath__CXX+:} false; then : 13899 $as_echo_n "(cached) " >&6 13900else 13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13902/* end confdefs.h. */ 13903 13904int 13905main () 13906{ 13907 13908 ; 13909 return 0; 13910} 13911_ACEOF 13912if ac_fn_cxx_try_link "$LINENO"; then : 13913 13914 lt_aix_libpath_sed=' 13915 /Import File Strings/,/^$/ { 13916 /^0/ { 13917 s/^0 *\([^ ]*\) *$/\1/ 13918 p 13919 } 13920 }' 13921 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13922 # Check for a 64-bit object if we didn't find anything. 13923 if test -z "$lt_cv_aix_libpath__CXX"; then 13924 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13925 fi 13926fi 13927rm -f core conftest.err conftest.$ac_objext \ 13928 conftest$ac_exeext conftest.$ac_ext 13929 if test -z "$lt_cv_aix_libpath__CXX"; then 13930 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13931 fi 13932 13933fi 13934 13935 aix_libpath=$lt_cv_aix_libpath__CXX 13936fi 13937 13938 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13939 13940 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 13941 else 13942 if test ia64 = "$host_cpu"; then 13943 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13944 allow_undefined_flag_CXX="-z nodefs" 13945 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" 13946 else 13947 # Determine the default libpath from the value encoded in an 13948 # empty executable. 13949 if test set = "${lt_cv_aix_libpath+set}"; then 13950 aix_libpath=$lt_cv_aix_libpath 13951else 13952 if ${lt_cv_aix_libpath__CXX+:} false; then : 13953 $as_echo_n "(cached) " >&6 13954else 13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13956/* end confdefs.h. */ 13957 13958int 13959main () 13960{ 13961 13962 ; 13963 return 0; 13964} 13965_ACEOF 13966if ac_fn_cxx_try_link "$LINENO"; then : 13967 13968 lt_aix_libpath_sed=' 13969 /Import File Strings/,/^$/ { 13970 /^0/ { 13971 s/^0 *\([^ ]*\) *$/\1/ 13972 p 13973 } 13974 }' 13975 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13976 # Check for a 64-bit object if we didn't find anything. 13977 if test -z "$lt_cv_aix_libpath__CXX"; then 13978 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13979 fi 13980fi 13981rm -f core conftest.err conftest.$ac_objext \ 13982 conftest$ac_exeext conftest.$ac_ext 13983 if test -z "$lt_cv_aix_libpath__CXX"; then 13984 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13985 fi 13986 13987fi 13988 13989 aix_libpath=$lt_cv_aix_libpath__CXX 13990fi 13991 13992 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13993 # Warning - without using the other run time loading flags, 13994 # -berok will link without error, but may produce a broken library. 13995 no_undefined_flag_CXX=' $wl-bernotok' 13996 allow_undefined_flag_CXX=' $wl-berok' 13997 if test yes = "$with_gnu_ld"; then 13998 # We only use this code for GNU lds that support --whole-archive. 13999 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14000 else 14001 # Exported symbols can be pulled into shared objects from archives 14002 whole_archive_flag_spec_CXX='$convenience' 14003 fi 14004 archive_cmds_need_lc_CXX=yes 14005 # This is similar to how AIX traditionally builds its shared 14006 # libraries. 14007 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14008 fi 14009 fi 14010 ;; 14011 14012 beos*) 14013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14014 allow_undefined_flag_CXX=unsupported 14015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14016 # support --undefined. This deserves some investigation. FIXME 14017 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14018 else 14019 ld_shlibs_CXX=no 14020 fi 14021 ;; 14022 14023 chorus*) 14024 case $cc_basename in 14025 *) 14026 # FIXME: insert proper C++ library support 14027 ld_shlibs_CXX=no 14028 ;; 14029 esac 14030 ;; 14031 14032 cygwin* | mingw* | pw32* | cegcc*) 14033 case $GXX,$cc_basename in 14034 ,cl* | no,cl*) 14035 # Native MSVC 14036 # hardcode_libdir_flag_spec is actually meaningless, as there is 14037 # no search path for DLLs. 14038 hardcode_libdir_flag_spec_CXX=' ' 14039 allow_undefined_flag_CXX=unsupported 14040 always_export_symbols_CXX=yes 14041 file_list_spec_CXX='@' 14042 # Tell ltmain to make .lib files, not .a files. 14043 libext=lib 14044 # Tell ltmain to make .dll files, not .so files. 14045 shrext_cmds=.dll 14046 # FIXME: Setting linknames here is a bad hack. 14047 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14048 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14049 cp "$export_symbols" "$output_objdir/$soname.def"; 14050 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14051 else 14052 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14053 fi~ 14054 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14055 linknames=' 14056 # The linker will not automatically build a static lib if we build a DLL. 14057 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14058 enable_shared_with_static_runtimes_CXX=yes 14059 # Don't use ranlib 14060 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14061 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14062 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14063 case $lt_outputfile in 14064 *.exe|*.EXE) ;; 14065 *) 14066 lt_outputfile=$lt_outputfile.exe 14067 lt_tool_outputfile=$lt_tool_outputfile.exe 14068 ;; 14069 esac~ 14070 func_to_tool_file "$lt_outputfile"~ 14071 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14072 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14073 $RM "$lt_outputfile.manifest"; 14074 fi' 14075 ;; 14076 *) 14077 # g++ 14078 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14079 # as there is no search path for DLLs. 14080 hardcode_libdir_flag_spec_CXX='-L$libdir' 14081 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14082 allow_undefined_flag_CXX=unsupported 14083 always_export_symbols_CXX=no 14084 enable_shared_with_static_runtimes_CXX=yes 14085 14086 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14087 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' 14088 # If the export-symbols file already is a .def file, use it as 14089 # is; otherwise, prepend EXPORTS... 14090 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14091 cp $export_symbols $output_objdir/$soname.def; 14092 else 14093 echo EXPORTS > $output_objdir/$soname.def; 14094 cat $export_symbols >> $output_objdir/$soname.def; 14095 fi~ 14096 $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' 14097 else 14098 ld_shlibs_CXX=no 14099 fi 14100 ;; 14101 esac 14102 ;; 14103 darwin* | rhapsody*) 14104 14105 14106 archive_cmds_need_lc_CXX=no 14107 hardcode_direct_CXX=no 14108 hardcode_automatic_CXX=yes 14109 hardcode_shlibpath_var_CXX=unsupported 14110 if test yes = "$lt_cv_ld_force_load"; then 14111 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\"`' 14112 14113 else 14114 whole_archive_flag_spec_CXX='' 14115 fi 14116 link_all_deplibs_CXX=yes 14117 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14118 case $cc_basename in 14119 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14120 *) _lt_dar_can_shared=$GCC ;; 14121 esac 14122 if test yes = "$_lt_dar_can_shared"; then 14123 output_verbose_link_cmd=func_echo_all 14124 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" 14125 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14126 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" 14127 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" 14128 if test yes != "$lt_cv_apple_cc_single_mod"; then 14129 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" 14130 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" 14131 fi 14132 14133 else 14134 ld_shlibs_CXX=no 14135 fi 14136 14137 ;; 14138 14139 dgux*) 14140 case $cc_basename in 14141 ec++*) 14142 # FIXME: insert proper C++ library support 14143 ld_shlibs_CXX=no 14144 ;; 14145 ghcx*) 14146 # Green Hills C++ Compiler 14147 # FIXME: insert proper C++ library support 14148 ld_shlibs_CXX=no 14149 ;; 14150 *) 14151 # FIXME: insert proper C++ library support 14152 ld_shlibs_CXX=no 14153 ;; 14154 esac 14155 ;; 14156 14157 freebsd2.*) 14158 # C++ shared libraries reported to be fairly broken before 14159 # switch to ELF 14160 ld_shlibs_CXX=no 14161 ;; 14162 14163 freebsd-elf*) 14164 archive_cmds_need_lc_CXX=no 14165 ;; 14166 14167 freebsd* | dragonfly*) 14168 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14169 # conventions 14170 ld_shlibs_CXX=yes 14171 ;; 14172 14173 haiku*) 14174 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14175 link_all_deplibs_CXX=yes 14176 ;; 14177 14178 hpux9*) 14179 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14180 hardcode_libdir_separator_CXX=: 14181 export_dynamic_flag_spec_CXX='$wl-E' 14182 hardcode_direct_CXX=yes 14183 hardcode_minus_L_CXX=yes # Not in the search PATH, 14184 # but as the default 14185 # location of the library. 14186 14187 case $cc_basename in 14188 CC*) 14189 # FIXME: insert proper C++ library support 14190 ld_shlibs_CXX=no 14191 ;; 14192 aCC*) 14193 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' 14194 # Commands to make compiler produce verbose output that lists 14195 # what "hidden" libraries, object files and flags are used when 14196 # linking a shared library. 14197 # 14198 # There doesn't appear to be a way to prevent this compiler from 14199 # explicitly linking system object files so we need to strip them 14200 # from the output so that they don't get included in the library 14201 # dependencies. 14202 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"' 14203 ;; 14204 *) 14205 if test yes = "$GXX"; then 14206 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' 14207 else 14208 # FIXME: insert proper C++ library support 14209 ld_shlibs_CXX=no 14210 fi 14211 ;; 14212 esac 14213 ;; 14214 14215 hpux10*|hpux11*) 14216 if test no = "$with_gnu_ld"; then 14217 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14218 hardcode_libdir_separator_CXX=: 14219 14220 case $host_cpu in 14221 hppa*64*|ia64*) 14222 ;; 14223 *) 14224 export_dynamic_flag_spec_CXX='$wl-E' 14225 ;; 14226 esac 14227 fi 14228 case $host_cpu in 14229 hppa*64*|ia64*) 14230 hardcode_direct_CXX=no 14231 hardcode_shlibpath_var_CXX=no 14232 ;; 14233 *) 14234 hardcode_direct_CXX=yes 14235 hardcode_direct_absolute_CXX=yes 14236 hardcode_minus_L_CXX=yes # Not in the search PATH, 14237 # but as the default 14238 # location of the library. 14239 ;; 14240 esac 14241 14242 case $cc_basename in 14243 CC*) 14244 # FIXME: insert proper C++ library support 14245 ld_shlibs_CXX=no 14246 ;; 14247 aCC*) 14248 case $host_cpu in 14249 hppa*64*) 14250 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14251 ;; 14252 ia64*) 14253 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14254 ;; 14255 *) 14256 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14257 ;; 14258 esac 14259 # Commands to make compiler produce verbose output that lists 14260 # what "hidden" libraries, object files and flags are used when 14261 # linking a shared library. 14262 # 14263 # There doesn't appear to be a way to prevent this compiler from 14264 # explicitly linking system object files so we need to strip them 14265 # from the output so that they don't get included in the library 14266 # dependencies. 14267 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"' 14268 ;; 14269 *) 14270 if test yes = "$GXX"; then 14271 if test no = "$with_gnu_ld"; then 14272 case $host_cpu in 14273 hppa*64*) 14274 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14275 ;; 14276 ia64*) 14277 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14278 ;; 14279 *) 14280 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' 14281 ;; 14282 esac 14283 fi 14284 else 14285 # FIXME: insert proper C++ library support 14286 ld_shlibs_CXX=no 14287 fi 14288 ;; 14289 esac 14290 ;; 14291 14292 interix[3-9]*) 14293 hardcode_direct_CXX=no 14294 hardcode_shlibpath_var_CXX=no 14295 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14296 export_dynamic_flag_spec_CXX='$wl-E' 14297 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14298 # Instead, shared libraries are loaded at an image base (0x10000000 by 14299 # default) and relocated if they conflict, which is a slow very memory 14300 # consuming and fragmenting process. To avoid this, we pick a random, 14301 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14302 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14303 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' 14304 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' 14305 ;; 14306 irix5* | irix6*) 14307 case $cc_basename in 14308 CC*) 14309 # SGI C++ 14310 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' 14311 14312 # Archives containing C++ object files must be created using 14313 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14314 # necessary to make sure instantiated templates are included 14315 # in the archive. 14316 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14317 ;; 14318 *) 14319 if test yes = "$GXX"; then 14320 if test no = "$with_gnu_ld"; then 14321 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' 14322 else 14323 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' 14324 fi 14325 fi 14326 link_all_deplibs_CXX=yes 14327 ;; 14328 esac 14329 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14330 hardcode_libdir_separator_CXX=: 14331 inherit_rpath_CXX=yes 14332 ;; 14333 14334 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14335 case $cc_basename in 14336 KCC*) 14337 # Kuck and Associates, Inc. (KAI) C++ Compiler 14338 14339 # KCC will only create a shared library if the output file 14340 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14341 # to its proper name (with version) after linking. 14342 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' 14343 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' 14344 # Commands to make compiler produce verbose output that lists 14345 # what "hidden" libraries, object files and flags are used when 14346 # linking a shared library. 14347 # 14348 # There doesn't appear to be a way to prevent this compiler from 14349 # explicitly linking system object files so we need to strip them 14350 # from the output so that they don't get included in the library 14351 # dependencies. 14352 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"' 14353 14354 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14355 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14356 14357 # Archives containing C++ object files must be created using 14358 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14359 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14360 ;; 14361 icpc* | ecpc* ) 14362 # Intel C++ 14363 with_gnu_ld=yes 14364 # version 8.0 and above of icpc choke on multiply defined symbols 14365 # if we add $predep_objects and $postdep_objects, however 7.1 and 14366 # earlier do not add the objects themselves. 14367 case `$CC -V 2>&1` in 14368 *"Version 7."*) 14369 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14370 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' 14371 ;; 14372 *) # Version 8.0 or newer 14373 tmp_idyn= 14374 case $host_cpu in 14375 ia64*) tmp_idyn=' -i_dynamic';; 14376 esac 14377 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14378 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' 14379 ;; 14380 esac 14381 archive_cmds_need_lc_CXX=no 14382 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14383 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14384 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14385 ;; 14386 pgCC* | pgcpp*) 14387 # Portland Group C++ compiler 14388 case `$CC -V` in 14389 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14390 prelink_cmds_CXX='tpldir=Template.dir~ 14391 rm -rf $tpldir~ 14392 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14393 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14394 old_archive_cmds_CXX='tpldir=Template.dir~ 14395 rm -rf $tpldir~ 14396 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14397 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14398 $RANLIB $oldlib' 14399 archive_cmds_CXX='tpldir=Template.dir~ 14400 rm -rf $tpldir~ 14401 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14402 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14403 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14404 rm -rf $tpldir~ 14405 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14406 $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' 14407 ;; 14408 *) # Version 6 and above use weak symbols 14409 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14410 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' 14411 ;; 14412 esac 14413 14414 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14415 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14416 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' 14417 ;; 14418 cxx*) 14419 # Compaq C++ 14420 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14421 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' 14422 14423 runpath_var=LD_RUN_PATH 14424 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14425 hardcode_libdir_separator_CXX=: 14426 14427 # Commands to make compiler produce verbose output that lists 14428 # what "hidden" libraries, object files and flags are used when 14429 # linking a shared library. 14430 # 14431 # There doesn't appear to be a way to prevent this compiler from 14432 # explicitly linking system object files so we need to strip them 14433 # from the output so that they don't get included in the library 14434 # dependencies. 14435 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' 14436 ;; 14437 xl* | mpixl* | bgxl*) 14438 # IBM XL 8.0 on PPC, with GNU ld 14439 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14440 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14441 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14442 if test yes = "$supports_anon_versioning"; then 14443 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14445 echo "local: *; };" >> $output_objdir/$libname.ver~ 14446 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14447 fi 14448 ;; 14449 *) 14450 case `$CC -V 2>&1 | sed 5q` in 14451 *Sun\ C*) 14452 # Sun C++ 5.9 14453 no_undefined_flag_CXX=' -zdefs' 14454 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14455 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' 14456 hardcode_libdir_flag_spec_CXX='-R$libdir' 14457 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' 14458 compiler_needs_object_CXX=yes 14459 14460 # Not sure whether something based on 14461 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14462 # would be better. 14463 output_verbose_link_cmd='func_echo_all' 14464 14465 # Archives containing C++ object files must be created using 14466 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14467 # necessary to make sure instantiated templates are included 14468 # in the archive. 14469 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14470 ;; 14471 esac 14472 ;; 14473 esac 14474 ;; 14475 14476 lynxos*) 14477 # FIXME: insert proper C++ library support 14478 ld_shlibs_CXX=no 14479 ;; 14480 14481 m88k*) 14482 # FIXME: insert proper C++ library support 14483 ld_shlibs_CXX=no 14484 ;; 14485 14486 mvs*) 14487 case $cc_basename in 14488 cxx*) 14489 # FIXME: insert proper C++ library support 14490 ld_shlibs_CXX=no 14491 ;; 14492 *) 14493 # FIXME: insert proper C++ library support 14494 ld_shlibs_CXX=no 14495 ;; 14496 esac 14497 ;; 14498 14499 netbsd*) 14500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14501 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14502 wlarc= 14503 hardcode_libdir_flag_spec_CXX='-R$libdir' 14504 hardcode_direct_CXX=yes 14505 hardcode_shlibpath_var_CXX=no 14506 fi 14507 # Workaround some broken pre-1.5 toolchains 14508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14509 ;; 14510 14511 *nto* | *qnx*) 14512 ld_shlibs_CXX=yes 14513 ;; 14514 14515 openbsd* | bitrig*) 14516 if test -f /usr/libexec/ld.so; then 14517 hardcode_direct_CXX=yes 14518 hardcode_shlibpath_var_CXX=no 14519 hardcode_direct_absolute_CXX=yes 14520 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14521 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14522 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14523 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14524 export_dynamic_flag_spec_CXX='$wl-E' 14525 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14526 fi 14527 output_verbose_link_cmd=func_echo_all 14528 else 14529 ld_shlibs_CXX=no 14530 fi 14531 ;; 14532 14533 osf3* | osf4* | osf5*) 14534 case $cc_basename in 14535 KCC*) 14536 # Kuck and Associates, Inc. (KAI) C++ Compiler 14537 14538 # KCC will only create a shared library if the output file 14539 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14540 # to its proper name (with version) after linking. 14541 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' 14542 14543 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14544 hardcode_libdir_separator_CXX=: 14545 14546 # Archives containing C++ object files must be created using 14547 # the KAI C++ compiler. 14548 case $host in 14549 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14550 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14551 esac 14552 ;; 14553 RCC*) 14554 # Rational C++ 2.4.1 14555 # FIXME: insert proper C++ library support 14556 ld_shlibs_CXX=no 14557 ;; 14558 cxx*) 14559 case $host in 14560 osf3*) 14561 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14562 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' 14563 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14564 ;; 14565 *) 14566 allow_undefined_flag_CXX=' -expect_unresolved \*' 14567 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' 14568 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14569 echo "-hidden">> $lib.exp~ 14570 $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~ 14571 $RM $lib.exp' 14572 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14573 ;; 14574 esac 14575 14576 hardcode_libdir_separator_CXX=: 14577 14578 # Commands to make compiler produce verbose output that lists 14579 # what "hidden" libraries, object files and flags are used when 14580 # linking a shared library. 14581 # 14582 # There doesn't appear to be a way to prevent this compiler from 14583 # explicitly linking system object files so we need to strip them 14584 # from the output so that they don't get included in the library 14585 # dependencies. 14586 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"' 14587 ;; 14588 *) 14589 if test yes,no = "$GXX,$with_gnu_ld"; then 14590 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14591 case $host in 14592 osf3*) 14593 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' 14594 ;; 14595 *) 14596 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' 14597 ;; 14598 esac 14599 14600 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14601 hardcode_libdir_separator_CXX=: 14602 14603 # Commands to make compiler produce verbose output that lists 14604 # what "hidden" libraries, object files and flags are used when 14605 # linking a shared library. 14606 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14607 14608 else 14609 # FIXME: insert proper C++ library support 14610 ld_shlibs_CXX=no 14611 fi 14612 ;; 14613 esac 14614 ;; 14615 14616 psos*) 14617 # FIXME: insert proper C++ library support 14618 ld_shlibs_CXX=no 14619 ;; 14620 14621 sunos4*) 14622 case $cc_basename in 14623 CC*) 14624 # Sun C++ 4.x 14625 # FIXME: insert proper C++ library support 14626 ld_shlibs_CXX=no 14627 ;; 14628 lcc*) 14629 # Lucid 14630 # FIXME: insert proper C++ library support 14631 ld_shlibs_CXX=no 14632 ;; 14633 *) 14634 # FIXME: insert proper C++ library support 14635 ld_shlibs_CXX=no 14636 ;; 14637 esac 14638 ;; 14639 14640 solaris*) 14641 case $cc_basename in 14642 CC* | sunCC*) 14643 # Sun C++ 4.2, 5.x and Centerline C++ 14644 archive_cmds_need_lc_CXX=yes 14645 no_undefined_flag_CXX=' -zdefs' 14646 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14647 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14648 $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' 14649 14650 hardcode_libdir_flag_spec_CXX='-R$libdir' 14651 hardcode_shlibpath_var_CXX=no 14652 case $host_os in 14653 solaris2.[0-5] | solaris2.[0-5].*) ;; 14654 *) 14655 # The compiler driver will combine and reorder linker options, 14656 # but understands '-z linker_flag'. 14657 # Supported since Solaris 2.6 (maybe 2.5.1?) 14658 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14659 ;; 14660 esac 14661 link_all_deplibs_CXX=yes 14662 14663 output_verbose_link_cmd='func_echo_all' 14664 14665 # Archives containing C++ object files must be created using 14666 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14667 # necessary to make sure instantiated templates are included 14668 # in the archive. 14669 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14670 ;; 14671 gcx*) 14672 # Green Hills C++ Compiler 14673 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14674 14675 # The C++ compiler must be used to create the archive. 14676 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14677 ;; 14678 *) 14679 # GNU C++ compiler with Solaris linker 14680 if test yes,no = "$GXX,$with_gnu_ld"; then 14681 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14682 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14683 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14684 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14685 $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' 14686 14687 # Commands to make compiler produce verbose output that lists 14688 # what "hidden" libraries, object files and flags are used when 14689 # linking a shared library. 14690 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14691 else 14692 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14693 # platform. 14694 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14695 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14696 $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' 14697 14698 # Commands to make compiler produce verbose output that lists 14699 # what "hidden" libraries, object files and flags are used when 14700 # linking a shared library. 14701 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14702 fi 14703 14704 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14705 case $host_os in 14706 solaris2.[0-5] | solaris2.[0-5].*) ;; 14707 *) 14708 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14709 ;; 14710 esac 14711 fi 14712 ;; 14713 esac 14714 ;; 14715 14716 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14717 no_undefined_flag_CXX='$wl-z,text' 14718 archive_cmds_need_lc_CXX=no 14719 hardcode_shlibpath_var_CXX=no 14720 runpath_var='LD_RUN_PATH' 14721 14722 case $cc_basename in 14723 CC*) 14724 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14725 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14726 ;; 14727 *) 14728 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14729 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14730 ;; 14731 esac 14732 ;; 14733 14734 sysv5* | sco3.2v5* | sco5v6*) 14735 # Note: We CANNOT use -z defs as we might desire, because we do not 14736 # link with -lc, and that would cause any symbols used from libc to 14737 # always be unresolved, which means just about no library would 14738 # ever link correctly. If we're not using GNU ld we use -z text 14739 # though, which does catch some bad symbols but isn't as heavy-handed 14740 # as -z defs. 14741 no_undefined_flag_CXX='$wl-z,text' 14742 allow_undefined_flag_CXX='$wl-z,nodefs' 14743 archive_cmds_need_lc_CXX=no 14744 hardcode_shlibpath_var_CXX=no 14745 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14746 hardcode_libdir_separator_CXX=':' 14747 link_all_deplibs_CXX=yes 14748 export_dynamic_flag_spec_CXX='$wl-Bexport' 14749 runpath_var='LD_RUN_PATH' 14750 14751 case $cc_basename in 14752 CC*) 14753 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14754 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14755 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14756 '"$old_archive_cmds_CXX" 14757 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14758 '"$reload_cmds_CXX" 14759 ;; 14760 *) 14761 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14762 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14763 ;; 14764 esac 14765 ;; 14766 14767 tandem*) 14768 case $cc_basename in 14769 NCC*) 14770 # NonStop-UX NCC 3.20 14771 # FIXME: insert proper C++ library support 14772 ld_shlibs_CXX=no 14773 ;; 14774 *) 14775 # FIXME: insert proper C++ library support 14776 ld_shlibs_CXX=no 14777 ;; 14778 esac 14779 ;; 14780 14781 vxworks*) 14782 # FIXME: insert proper C++ library support 14783 ld_shlibs_CXX=no 14784 ;; 14785 14786 *) 14787 # FIXME: insert proper C++ library support 14788 ld_shlibs_CXX=no 14789 ;; 14790 esac 14791 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14793$as_echo "$ld_shlibs_CXX" >&6; } 14794 test no = "$ld_shlibs_CXX" && can_build_shared=no 14795 14796 GCC_CXX=$GXX 14797 LD_CXX=$LD 14798 14799 ## CAVEAT EMPTOR: 14800 ## There is no encapsulation within the following macros, do not change 14801 ## the running order or otherwise move them around unless you know exactly 14802 ## what you are doing... 14803 # Dependencies to place before and after the object being linked: 14804predep_objects_CXX= 14805postdep_objects_CXX= 14806predeps_CXX= 14807postdeps_CXX= 14808compiler_lib_search_path_CXX= 14809 14810cat > conftest.$ac_ext <<_LT_EOF 14811class Foo 14812{ 14813public: 14814 Foo (void) { a = 0; } 14815private: 14816 int a; 14817}; 14818_LT_EOF 14819 14820 14821_lt_libdeps_save_CFLAGS=$CFLAGS 14822case "$CC $CFLAGS " in #( 14823*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14824*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14825*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14826esac 14827 14828if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14829 (eval $ac_compile) 2>&5 14830 ac_status=$? 14831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14832 test $ac_status = 0; }; then 14833 # Parse the compiler output and extract the necessary 14834 # objects, libraries and library flags. 14835 14836 # Sentinel used to keep track of whether or not we are before 14837 # the conftest object file. 14838 pre_test_object_deps_done=no 14839 14840 for p in `eval "$output_verbose_link_cmd"`; do 14841 case $prev$p in 14842 14843 -L* | -R* | -l*) 14844 # Some compilers place space between "-{L,R}" and the path. 14845 # Remove the space. 14846 if test x-L = "$p" || 14847 test x-R = "$p"; then 14848 prev=$p 14849 continue 14850 fi 14851 14852 # Expand the sysroot to ease extracting the directories later. 14853 if test -z "$prev"; then 14854 case $p in 14855 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14856 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14857 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14858 esac 14859 fi 14860 case $p in 14861 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14862 esac 14863 if test no = "$pre_test_object_deps_done"; then 14864 case $prev in 14865 -L | -R) 14866 # Internal compiler library paths should come after those 14867 # provided the user. The postdeps already come after the 14868 # user supplied libs so there is no need to process them. 14869 if test -z "$compiler_lib_search_path_CXX"; then 14870 compiler_lib_search_path_CXX=$prev$p 14871 else 14872 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14873 fi 14874 ;; 14875 # The "-l" case would never come before the object being 14876 # linked, so don't bother handling this case. 14877 esac 14878 else 14879 if test -z "$postdeps_CXX"; then 14880 postdeps_CXX=$prev$p 14881 else 14882 postdeps_CXX="${postdeps_CXX} $prev$p" 14883 fi 14884 fi 14885 prev= 14886 ;; 14887 14888 *.lto.$objext) ;; # Ignore GCC LTO objects 14889 *.$objext) 14890 # This assumes that the test object file only shows up 14891 # once in the compiler output. 14892 if test "$p" = "conftest.$objext"; then 14893 pre_test_object_deps_done=yes 14894 continue 14895 fi 14896 14897 if test no = "$pre_test_object_deps_done"; then 14898 if test -z "$predep_objects_CXX"; then 14899 predep_objects_CXX=$p 14900 else 14901 predep_objects_CXX="$predep_objects_CXX $p" 14902 fi 14903 else 14904 if test -z "$postdep_objects_CXX"; then 14905 postdep_objects_CXX=$p 14906 else 14907 postdep_objects_CXX="$postdep_objects_CXX $p" 14908 fi 14909 fi 14910 ;; 14911 14912 *) ;; # Ignore the rest. 14913 14914 esac 14915 done 14916 14917 # Clean up. 14918 rm -f a.out a.exe 14919else 14920 echo "libtool.m4: error: problem compiling CXX test program" 14921fi 14922 14923$RM -f confest.$objext 14924CFLAGS=$_lt_libdeps_save_CFLAGS 14925 14926# PORTME: override above test on systems where it is broken 14927case $host_os in 14928interix[3-9]*) 14929 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14930 # hack all around it, let's just trust "g++" to DTRT. 14931 predep_objects_CXX= 14932 postdep_objects_CXX= 14933 postdeps_CXX= 14934 ;; 14935 14936linux*) 14937 case `$CC -V 2>&1 | sed 5q` in 14938 *Sun\ C*) 14939 # Sun C++ 5.9 14940 14941 # The more standards-conforming stlport4 library is 14942 # incompatible with the Cstd library. Avoid specifying 14943 # it if it's in CXXFLAGS. Ignore libCrun as 14944 # -library=stlport4 depends on it. 14945 case " $CXX $CXXFLAGS " in 14946 *" -library=stlport4 "*) 14947 solaris_use_stlport4=yes 14948 ;; 14949 esac 14950 14951 if test yes != "$solaris_use_stlport4"; then 14952 postdeps_CXX='-library=Cstd -library=Crun' 14953 fi 14954 ;; 14955 esac 14956 ;; 14957 14958solaris*) 14959 case $cc_basename in 14960 CC* | sunCC*) 14961 # The more standards-conforming stlport4 library is 14962 # incompatible with the Cstd library. Avoid specifying 14963 # it if it's in CXXFLAGS. Ignore libCrun as 14964 # -library=stlport4 depends on it. 14965 case " $CXX $CXXFLAGS " in 14966 *" -library=stlport4 "*) 14967 solaris_use_stlport4=yes 14968 ;; 14969 esac 14970 14971 # Adding this requires a known-good setup of shared libraries for 14972 # Sun compiler versions before 5.6, else PIC objects from an old 14973 # archive will be linked into the output, leading to subtle bugs. 14974 if test yes != "$solaris_use_stlport4"; then 14975 postdeps_CXX='-library=Cstd -library=Crun' 14976 fi 14977 ;; 14978 esac 14979 ;; 14980esac 14981 14982 14983case " $postdeps_CXX " in 14984*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14985esac 14986 compiler_lib_search_dirs_CXX= 14987if test -n "${compiler_lib_search_path_CXX}"; then 14988 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14989fi 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 lt_prog_compiler_wl_CXX= 15022lt_prog_compiler_pic_CXX= 15023lt_prog_compiler_static_CXX= 15024 15025 15026 # C++ specific cases for pic, static, wl, etc. 15027 if test yes = "$GXX"; then 15028 lt_prog_compiler_wl_CXX='-Wl,' 15029 lt_prog_compiler_static_CXX='-static' 15030 15031 case $host_os in 15032 aix*) 15033 # All AIX code is PIC. 15034 if test ia64 = "$host_cpu"; then 15035 # AIX 5 now supports IA64 processor 15036 lt_prog_compiler_static_CXX='-Bstatic' 15037 fi 15038 lt_prog_compiler_pic_CXX='-fPIC' 15039 ;; 15040 15041 amigaos*) 15042 case $host_cpu in 15043 powerpc) 15044 # see comment about AmigaOS4 .so support 15045 lt_prog_compiler_pic_CXX='-fPIC' 15046 ;; 15047 m68k) 15048 # FIXME: we need at least 68020 code to build shared libraries, but 15049 # adding the '-m68020' flag to GCC prevents building anything better, 15050 # like '-m68040'. 15051 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15052 ;; 15053 esac 15054 ;; 15055 15056 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15057 # PIC is the default for these OSes. 15058 ;; 15059 mingw* | cygwin* | os2* | pw32* | cegcc*) 15060 # This hack is so that the source file can tell whether it is being 15061 # built for inclusion in a dll (and should export symbols for example). 15062 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15063 # (--disable-auto-import) libraries 15064 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15065 ;; 15066 darwin* | rhapsody*) 15067 # PIC is the default on this platform 15068 # Common symbols not allowed in MH_DYLIB files 15069 lt_prog_compiler_pic_CXX='-fno-common' 15070 ;; 15071 *djgpp*) 15072 # DJGPP does not support shared libraries at all 15073 lt_prog_compiler_pic_CXX= 15074 ;; 15075 haiku*) 15076 # PIC is the default for Haiku. 15077 # The "-static" flag exists, but is broken. 15078 lt_prog_compiler_static_CXX= 15079 ;; 15080 interix[3-9]*) 15081 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15082 # Instead, we relocate shared libraries at runtime. 15083 ;; 15084 sysv4*MP*) 15085 if test -d /usr/nec; then 15086 lt_prog_compiler_pic_CXX=-Kconform_pic 15087 fi 15088 ;; 15089 hpux*) 15090 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15091 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15092 # sets the default TLS model and affects inlining. 15093 case $host_cpu in 15094 hppa*64*) 15095 ;; 15096 *) 15097 lt_prog_compiler_pic_CXX='-fPIC' 15098 ;; 15099 esac 15100 ;; 15101 *qnx* | *nto*) 15102 # QNX uses GNU C++, but need to define -shared option too, otherwise 15103 # it will coredump. 15104 lt_prog_compiler_pic_CXX='-fPIC -shared' 15105 ;; 15106 *) 15107 lt_prog_compiler_pic_CXX='-fPIC' 15108 ;; 15109 esac 15110 else 15111 case $host_os in 15112 aix[4-9]*) 15113 # All AIX code is PIC. 15114 if test ia64 = "$host_cpu"; then 15115 # AIX 5 now supports IA64 processor 15116 lt_prog_compiler_static_CXX='-Bstatic' 15117 else 15118 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15119 fi 15120 ;; 15121 chorus*) 15122 case $cc_basename in 15123 cxch68*) 15124 # Green Hills C++ Compiler 15125 # _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" 15126 ;; 15127 esac 15128 ;; 15129 mingw* | cygwin* | os2* | pw32* | cegcc*) 15130 # This hack is so that the source file can tell whether it is being 15131 # built for inclusion in a dll (and should export symbols for example). 15132 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15133 ;; 15134 dgux*) 15135 case $cc_basename in 15136 ec++*) 15137 lt_prog_compiler_pic_CXX='-KPIC' 15138 ;; 15139 ghcx*) 15140 # Green Hills C++ Compiler 15141 lt_prog_compiler_pic_CXX='-pic' 15142 ;; 15143 *) 15144 ;; 15145 esac 15146 ;; 15147 freebsd* | dragonfly*) 15148 # FreeBSD uses GNU C++ 15149 ;; 15150 hpux9* | hpux10* | hpux11*) 15151 case $cc_basename in 15152 CC*) 15153 lt_prog_compiler_wl_CXX='-Wl,' 15154 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15155 if test ia64 != "$host_cpu"; then 15156 lt_prog_compiler_pic_CXX='+Z' 15157 fi 15158 ;; 15159 aCC*) 15160 lt_prog_compiler_wl_CXX='-Wl,' 15161 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15162 case $host_cpu in 15163 hppa*64*|ia64*) 15164 # +Z the default 15165 ;; 15166 *) 15167 lt_prog_compiler_pic_CXX='+Z' 15168 ;; 15169 esac 15170 ;; 15171 *) 15172 ;; 15173 esac 15174 ;; 15175 interix*) 15176 # This is c89, which is MS Visual C++ (no shared libs) 15177 # Anyone wants to do a port? 15178 ;; 15179 irix5* | irix6* | nonstopux*) 15180 case $cc_basename in 15181 CC*) 15182 lt_prog_compiler_wl_CXX='-Wl,' 15183 lt_prog_compiler_static_CXX='-non_shared' 15184 # CC pic flag -KPIC is the default. 15185 ;; 15186 *) 15187 ;; 15188 esac 15189 ;; 15190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15191 case $cc_basename in 15192 KCC*) 15193 # KAI C++ Compiler 15194 lt_prog_compiler_wl_CXX='--backend -Wl,' 15195 lt_prog_compiler_pic_CXX='-fPIC' 15196 ;; 15197 ecpc* ) 15198 # old Intel C++ for x86_64, which still supported -KPIC. 15199 lt_prog_compiler_wl_CXX='-Wl,' 15200 lt_prog_compiler_pic_CXX='-KPIC' 15201 lt_prog_compiler_static_CXX='-static' 15202 ;; 15203 icpc* ) 15204 # Intel C++, used to be incompatible with GCC. 15205 # ICC 10 doesn't accept -KPIC any more. 15206 lt_prog_compiler_wl_CXX='-Wl,' 15207 lt_prog_compiler_pic_CXX='-fPIC' 15208 lt_prog_compiler_static_CXX='-static' 15209 ;; 15210 pgCC* | pgcpp*) 15211 # Portland Group C++ compiler 15212 lt_prog_compiler_wl_CXX='-Wl,' 15213 lt_prog_compiler_pic_CXX='-fpic' 15214 lt_prog_compiler_static_CXX='-Bstatic' 15215 ;; 15216 cxx*) 15217 # Compaq C++ 15218 # Make sure the PIC flag is empty. It appears that all Alpha 15219 # Linux and Compaq Tru64 Unix objects are PIC. 15220 lt_prog_compiler_pic_CXX= 15221 lt_prog_compiler_static_CXX='-non_shared' 15222 ;; 15223 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15224 # IBM XL 8.0, 9.0 on PPC and BlueGene 15225 lt_prog_compiler_wl_CXX='-Wl,' 15226 lt_prog_compiler_pic_CXX='-qpic' 15227 lt_prog_compiler_static_CXX='-qstaticlink' 15228 ;; 15229 *) 15230 case `$CC -V 2>&1 | sed 5q` in 15231 *Sun\ C*) 15232 # Sun C++ 5.9 15233 lt_prog_compiler_pic_CXX='-KPIC' 15234 lt_prog_compiler_static_CXX='-Bstatic' 15235 lt_prog_compiler_wl_CXX='-Qoption ld ' 15236 ;; 15237 esac 15238 ;; 15239 esac 15240 ;; 15241 lynxos*) 15242 ;; 15243 m88k*) 15244 ;; 15245 mvs*) 15246 case $cc_basename in 15247 cxx*) 15248 lt_prog_compiler_pic_CXX='-W c,exportall' 15249 ;; 15250 *) 15251 ;; 15252 esac 15253 ;; 15254 netbsd*) 15255 ;; 15256 *qnx* | *nto*) 15257 # QNX uses GNU C++, but need to define -shared option too, otherwise 15258 # it will coredump. 15259 lt_prog_compiler_pic_CXX='-fPIC -shared' 15260 ;; 15261 osf3* | osf4* | osf5*) 15262 case $cc_basename in 15263 KCC*) 15264 lt_prog_compiler_wl_CXX='--backend -Wl,' 15265 ;; 15266 RCC*) 15267 # Rational C++ 2.4.1 15268 lt_prog_compiler_pic_CXX='-pic' 15269 ;; 15270 cxx*) 15271 # Digital/Compaq C++ 15272 lt_prog_compiler_wl_CXX='-Wl,' 15273 # Make sure the PIC flag is empty. It appears that all Alpha 15274 # Linux and Compaq Tru64 Unix objects are PIC. 15275 lt_prog_compiler_pic_CXX= 15276 lt_prog_compiler_static_CXX='-non_shared' 15277 ;; 15278 *) 15279 ;; 15280 esac 15281 ;; 15282 psos*) 15283 ;; 15284 solaris*) 15285 case $cc_basename in 15286 CC* | sunCC*) 15287 # Sun C++ 4.2, 5.x and Centerline C++ 15288 lt_prog_compiler_pic_CXX='-KPIC' 15289 lt_prog_compiler_static_CXX='-Bstatic' 15290 lt_prog_compiler_wl_CXX='-Qoption ld ' 15291 ;; 15292 gcx*) 15293 # Green Hills C++ Compiler 15294 lt_prog_compiler_pic_CXX='-PIC' 15295 ;; 15296 *) 15297 ;; 15298 esac 15299 ;; 15300 sunos4*) 15301 case $cc_basename in 15302 CC*) 15303 # Sun C++ 4.x 15304 lt_prog_compiler_pic_CXX='-pic' 15305 lt_prog_compiler_static_CXX='-Bstatic' 15306 ;; 15307 lcc*) 15308 # Lucid 15309 lt_prog_compiler_pic_CXX='-pic' 15310 ;; 15311 *) 15312 ;; 15313 esac 15314 ;; 15315 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15316 case $cc_basename in 15317 CC*) 15318 lt_prog_compiler_wl_CXX='-Wl,' 15319 lt_prog_compiler_pic_CXX='-KPIC' 15320 lt_prog_compiler_static_CXX='-Bstatic' 15321 ;; 15322 esac 15323 ;; 15324 tandem*) 15325 case $cc_basename in 15326 NCC*) 15327 # NonStop-UX NCC 3.20 15328 lt_prog_compiler_pic_CXX='-KPIC' 15329 ;; 15330 *) 15331 ;; 15332 esac 15333 ;; 15334 vxworks*) 15335 ;; 15336 *) 15337 lt_prog_compiler_can_build_shared_CXX=no 15338 ;; 15339 esac 15340 fi 15341 15342case $host_os in 15343 # For platforms that do not support PIC, -DPIC is meaningless: 15344 *djgpp*) 15345 lt_prog_compiler_pic_CXX= 15346 ;; 15347 *) 15348 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15349 ;; 15350esac 15351 15352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15353$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15354if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15355 $as_echo_n "(cached) " >&6 15356else 15357 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15358fi 15359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15360$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15361lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15362 15363# 15364# Check to make sure the PIC flag actually works. 15365# 15366if test -n "$lt_prog_compiler_pic_CXX"; then 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15368$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15369if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15370 $as_echo_n "(cached) " >&6 15371else 15372 lt_cv_prog_compiler_pic_works_CXX=no 15373 ac_outfile=conftest.$ac_objext 15374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15375 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15376 # Insert the option either (1) after the last *FLAGS variable, or 15377 # (2) before a word containing "conftest.", or (3) at the end. 15378 # Note that $ac_compile itself does not contain backslashes and begins 15379 # with a dollar sign (not a hyphen), so the echo should work correctly. 15380 # The option is referenced via a variable to avoid confusing sed. 15381 lt_compile=`echo "$ac_compile" | $SED \ 15382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15384 -e 's:$: $lt_compiler_flag:'` 15385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15386 (eval "$lt_compile" 2>conftest.err) 15387 ac_status=$? 15388 cat conftest.err >&5 15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15390 if (exit $ac_status) && test -s "$ac_outfile"; then 15391 # The compiler can only warn and ignore the option if not recognized 15392 # So say no if there are warnings other than the usual output. 15393 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15396 lt_cv_prog_compiler_pic_works_CXX=yes 15397 fi 15398 fi 15399 $RM conftest* 15400 15401fi 15402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15403$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15404 15405if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15406 case $lt_prog_compiler_pic_CXX in 15407 "" | " "*) ;; 15408 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15409 esac 15410else 15411 lt_prog_compiler_pic_CXX= 15412 lt_prog_compiler_can_build_shared_CXX=no 15413fi 15414 15415fi 15416 15417 15418 15419 15420 15421# 15422# Check to make sure the static flag actually works. 15423# 15424wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15426$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15427if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15428 $as_echo_n "(cached) " >&6 15429else 15430 lt_cv_prog_compiler_static_works_CXX=no 15431 save_LDFLAGS=$LDFLAGS 15432 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15433 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15435 # The linker can only warn and ignore the option if not recognized 15436 # So say no if there are warnings 15437 if test -s conftest.err; then 15438 # Append any errors to the config.log. 15439 cat conftest.err 1>&5 15440 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15442 if diff conftest.exp conftest.er2 >/dev/null; then 15443 lt_cv_prog_compiler_static_works_CXX=yes 15444 fi 15445 else 15446 lt_cv_prog_compiler_static_works_CXX=yes 15447 fi 15448 fi 15449 $RM -r conftest* 15450 LDFLAGS=$save_LDFLAGS 15451 15452fi 15453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15454$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15455 15456if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15457 : 15458else 15459 lt_prog_compiler_static_CXX= 15460fi 15461 15462 15463 15464 15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15466$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15467if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15468 $as_echo_n "(cached) " >&6 15469else 15470 lt_cv_prog_compiler_c_o_CXX=no 15471 $RM -r conftest 2>/dev/null 15472 mkdir conftest 15473 cd conftest 15474 mkdir out 15475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15476 15477 lt_compiler_flag="-o out/conftest2.$ac_objext" 15478 # Insert the option either (1) after the last *FLAGS variable, or 15479 # (2) before a word containing "conftest.", or (3) at the end. 15480 # Note that $ac_compile itself does not contain backslashes and begins 15481 # with a dollar sign (not a hyphen), so the echo should work correctly. 15482 lt_compile=`echo "$ac_compile" | $SED \ 15483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15485 -e 's:$: $lt_compiler_flag:'` 15486 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15487 (eval "$lt_compile" 2>out/conftest.err) 15488 ac_status=$? 15489 cat out/conftest.err >&5 15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15491 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15492 then 15493 # The compiler can only warn and ignore the option if not recognized 15494 # So say no if there are warnings 15495 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15498 lt_cv_prog_compiler_c_o_CXX=yes 15499 fi 15500 fi 15501 chmod u+w . 2>&5 15502 $RM conftest* 15503 # SGI C++ compiler will create directory out/ii_files/ for 15504 # template instantiation 15505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15506 $RM out/* && rmdir out 15507 cd .. 15508 $RM -r conftest 15509 $RM conftest* 15510 15511fi 15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15513$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15514 15515 15516 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15518$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15519if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15520 $as_echo_n "(cached) " >&6 15521else 15522 lt_cv_prog_compiler_c_o_CXX=no 15523 $RM -r conftest 2>/dev/null 15524 mkdir conftest 15525 cd conftest 15526 mkdir out 15527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15528 15529 lt_compiler_flag="-o out/conftest2.$ac_objext" 15530 # Insert the option either (1) after the last *FLAGS variable, or 15531 # (2) before a word containing "conftest.", or (3) at the end. 15532 # Note that $ac_compile itself does not contain backslashes and begins 15533 # with a dollar sign (not a hyphen), so the echo should work correctly. 15534 lt_compile=`echo "$ac_compile" | $SED \ 15535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15537 -e 's:$: $lt_compiler_flag:'` 15538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15539 (eval "$lt_compile" 2>out/conftest.err) 15540 ac_status=$? 15541 cat out/conftest.err >&5 15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15543 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15544 then 15545 # The compiler can only warn and ignore the option if not recognized 15546 # So say no if there are warnings 15547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15550 lt_cv_prog_compiler_c_o_CXX=yes 15551 fi 15552 fi 15553 chmod u+w . 2>&5 15554 $RM conftest* 15555 # SGI C++ compiler will create directory out/ii_files/ for 15556 # template instantiation 15557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15558 $RM out/* && rmdir out 15559 cd .. 15560 $RM -r conftest 15561 $RM conftest* 15562 15563fi 15564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15565$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15566 15567 15568 15569 15570hard_links=nottested 15571if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15572 # do not overwrite the value of need_locks provided by the user 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15574$as_echo_n "checking if we can lock with hard links... " >&6; } 15575 hard_links=yes 15576 $RM conftest* 15577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15578 touch conftest.a 15579 ln conftest.a conftest.b 2>&5 || hard_links=no 15580 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15582$as_echo "$hard_links" >&6; } 15583 if test no = "$hard_links"; then 15584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15585$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15586 need_locks=warn 15587 fi 15588else 15589 need_locks=no 15590fi 15591 15592 15593 15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15595$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15596 15597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15598 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15599 case $host_os in 15600 aix[4-9]*) 15601 # If we're using GNU nm, then we don't want the "-C" option. 15602 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15603 # Also, AIX nm treats weak defined symbols like other global defined 15604 # symbols, whereas GNU nm marks them as "W". 15605 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15606 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15607 else 15608 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15609 fi 15610 ;; 15611 pw32*) 15612 export_symbols_cmds_CXX=$ltdll_cmds 15613 ;; 15614 cygwin* | mingw* | cegcc*) 15615 case $cc_basename in 15616 cl*) 15617 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15618 ;; 15619 *) 15620 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' 15621 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15622 ;; 15623 esac 15624 ;; 15625 *) 15626 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15627 ;; 15628 esac 15629 15630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15631$as_echo "$ld_shlibs_CXX" >&6; } 15632test no = "$ld_shlibs_CXX" && can_build_shared=no 15633 15634with_gnu_ld_CXX=$with_gnu_ld 15635 15636 15637 15638 15639 15640 15641# 15642# Do we need to explicitly link libc? 15643# 15644case "x$archive_cmds_need_lc_CXX" in 15645x|xyes) 15646 # Assume -lc should be added 15647 archive_cmds_need_lc_CXX=yes 15648 15649 if test yes,yes = "$GCC,$enable_shared"; then 15650 case $archive_cmds_CXX in 15651 *'~'*) 15652 # FIXME: we may have to deal with multi-command sequences. 15653 ;; 15654 '$CC '*) 15655 # Test whether the compiler implicitly links with -lc since on some 15656 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15657 # to ld, don't add -lc before -lgcc. 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15659$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15660if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15661 $as_echo_n "(cached) " >&6 15662else 15663 $RM conftest* 15664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15665 15666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15667 (eval $ac_compile) 2>&5 15668 ac_status=$? 15669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15670 test $ac_status = 0; } 2>conftest.err; then 15671 soname=conftest 15672 lib=conftest 15673 libobjs=conftest.$ac_objext 15674 deplibs= 15675 wl=$lt_prog_compiler_wl_CXX 15676 pic_flag=$lt_prog_compiler_pic_CXX 15677 compiler_flags=-v 15678 linker_flags=-v 15679 verstring= 15680 output_objdir=. 15681 libname=conftest 15682 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15683 allow_undefined_flag_CXX= 15684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15685 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15686 ac_status=$? 15687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15688 test $ac_status = 0; } 15689 then 15690 lt_cv_archive_cmds_need_lc_CXX=no 15691 else 15692 lt_cv_archive_cmds_need_lc_CXX=yes 15693 fi 15694 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15695 else 15696 cat conftest.err 1>&5 15697 fi 15698 $RM conftest* 15699 15700fi 15701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15702$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15703 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15704 ;; 15705 esac 15706 fi 15707 ;; 15708esac 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15772$as_echo_n "checking dynamic linker characteristics... " >&6; } 15773 15774library_names_spec= 15775libname_spec='lib$name' 15776soname_spec= 15777shrext_cmds=.so 15778postinstall_cmds= 15779postuninstall_cmds= 15780finish_cmds= 15781finish_eval= 15782shlibpath_var= 15783shlibpath_overrides_runpath=unknown 15784version_type=none 15785dynamic_linker="$host_os ld.so" 15786sys_lib_dlsearch_path_spec="/lib /usr/lib" 15787need_lib_prefix=unknown 15788hardcode_into_libs=no 15789 15790# when you set need_version to no, make sure it does not cause -set_version 15791# flags to be left without arguments 15792need_version=unknown 15793 15794case $host_os in 15795aix3*) 15796 version_type=linux # correct to gnu/linux during the next big refactor 15797 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15798 shlibpath_var=LIBPATH 15799 15800 # AIX 3 has no versioning support, so we append a major version to the name. 15801 soname_spec='$libname$release$shared_ext$major' 15802 ;; 15803 15804aix[4-9]*) 15805 version_type=linux # correct to gnu/linux during the next big refactor 15806 need_lib_prefix=no 15807 need_version=no 15808 hardcode_into_libs=yes 15809 if test ia64 = "$host_cpu"; then 15810 # AIX 5 supports IA64 15811 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15812 shlibpath_var=LD_LIBRARY_PATH 15813 else 15814 # With GCC up to 2.95.x, collect2 would create an import file 15815 # for dependence libraries. The import file would start with 15816 # the line '#! .'. This would cause the generated library to 15817 # depend on '.', always an invalid library. This was fixed in 15818 # development snapshots of GCC prior to 3.0. 15819 case $host_os in 15820 aix4 | aix4.[01] | aix4.[01].*) 15821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15822 echo ' yes ' 15823 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15824 : 15825 else 15826 can_build_shared=no 15827 fi 15828 ;; 15829 esac 15830 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15831 # soname into executable. Probably we can add versioning support to 15832 # collect2, so additional links can be useful in future. 15833 if test yes = "$aix_use_runtimelinking"; then 15834 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15835 # instead of lib<name>.a to let people know that these are not 15836 # typical AIX shared libraries. 15837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15838 else 15839 # We preserve .a as extension for shared libraries through AIX4.2 15840 # and later when we are not doing run time linking. 15841 library_names_spec='$libname$release.a $libname.a' 15842 soname_spec='$libname$release$shared_ext$major' 15843 fi 15844 shlibpath_var=LIBPATH 15845 fi 15846 ;; 15847 15848amigaos*) 15849 case $host_cpu in 15850 powerpc) 15851 # Since July 2007 AmigaOS4 officially supports .so libraries. 15852 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15854 ;; 15855 m68k) 15856 library_names_spec='$libname.ixlibrary $libname.a' 15857 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15858 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' 15859 ;; 15860 esac 15861 ;; 15862 15863beos*) 15864 library_names_spec='$libname$shared_ext' 15865 dynamic_linker="$host_os ld.so" 15866 shlibpath_var=LIBRARY_PATH 15867 ;; 15868 15869bsdi[45]*) 15870 version_type=linux # correct to gnu/linux during the next big refactor 15871 need_version=no 15872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15873 soname_spec='$libname$release$shared_ext$major' 15874 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15875 shlibpath_var=LD_LIBRARY_PATH 15876 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15877 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15878 # the default ld.so.conf also contains /usr/contrib/lib and 15879 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15880 # libtool to hard-code these into programs 15881 ;; 15882 15883cygwin* | mingw* | pw32* | cegcc*) 15884 version_type=windows 15885 shrext_cmds=.dll 15886 need_version=no 15887 need_lib_prefix=no 15888 15889 case $GCC,$cc_basename in 15890 yes,*) 15891 # gcc 15892 library_names_spec='$libname.dll.a' 15893 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15894 postinstall_cmds='base_file=`basename \$file`~ 15895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15896 dldir=$destdir/`dirname \$dlpath`~ 15897 test -d \$dldir || mkdir -p \$dldir~ 15898 $install_prog $dir/$dlname \$dldir/$dlname~ 15899 chmod a+x \$dldir/$dlname~ 15900 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15901 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15902 fi' 15903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15904 dlpath=$dir/\$dldll~ 15905 $RM \$dlpath' 15906 shlibpath_overrides_runpath=yes 15907 15908 case $host_os in 15909 cygwin*) 15910 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15911 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15912 15913 ;; 15914 mingw* | cegcc*) 15915 # MinGW DLLs use traditional 'lib' prefix 15916 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15917 ;; 15918 pw32*) 15919 # pw32 DLLs use 'pw' prefix rather than 'lib' 15920 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15921 ;; 15922 esac 15923 dynamic_linker='Win32 ld.exe' 15924 ;; 15925 15926 *,cl*) 15927 # Native MSVC 15928 libname_spec='$name' 15929 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15930 library_names_spec='$libname.dll.lib' 15931 15932 case $build_os in 15933 mingw*) 15934 sys_lib_search_path_spec= 15935 lt_save_ifs=$IFS 15936 IFS=';' 15937 for lt_path in $LIB 15938 do 15939 IFS=$lt_save_ifs 15940 # Let DOS variable expansion print the short 8.3 style file name. 15941 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15942 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15943 done 15944 IFS=$lt_save_ifs 15945 # Convert to MSYS style. 15946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15947 ;; 15948 cygwin*) 15949 # Convert to unix form, then to dos form, then back to unix form 15950 # but this time dos style (no spaces!) so that the unix form looks 15951 # like /cygdrive/c/PROGRA~1:/cygdr... 15952 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15953 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15954 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15955 ;; 15956 *) 15957 sys_lib_search_path_spec=$LIB 15958 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15959 # It is most probably a Windows format PATH. 15960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15961 else 15962 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15963 fi 15964 # FIXME: find the short name or the path components, as spaces are 15965 # common. (e.g. "Program Files" -> "PROGRA~1") 15966 ;; 15967 esac 15968 15969 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15970 postinstall_cmds='base_file=`basename \$file`~ 15971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15972 dldir=$destdir/`dirname \$dlpath`~ 15973 test -d \$dldir || mkdir -p \$dldir~ 15974 $install_prog $dir/$dlname \$dldir/$dlname' 15975 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15976 dlpath=$dir/\$dldll~ 15977 $RM \$dlpath' 15978 shlibpath_overrides_runpath=yes 15979 dynamic_linker='Win32 link.exe' 15980 ;; 15981 15982 *) 15983 # Assume MSVC wrapper 15984 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15985 dynamic_linker='Win32 ld.exe' 15986 ;; 15987 esac 15988 # FIXME: first we should search . and the directory the executable is in 15989 shlibpath_var=PATH 15990 ;; 15991 15992darwin* | rhapsody*) 15993 dynamic_linker="$host_os dyld" 15994 version_type=darwin 15995 need_lib_prefix=no 15996 need_version=no 15997 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15998 soname_spec='$libname$release$major$shared_ext' 15999 shlibpath_overrides_runpath=yes 16000 shlibpath_var=DYLD_LIBRARY_PATH 16001 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16002 16003 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16004 ;; 16005 16006dgux*) 16007 version_type=linux # correct to gnu/linux during the next big refactor 16008 need_lib_prefix=no 16009 need_version=no 16010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16011 soname_spec='$libname$release$shared_ext$major' 16012 shlibpath_var=LD_LIBRARY_PATH 16013 ;; 16014 16015freebsd* | dragonfly*) 16016 # DragonFly does not have aout. When/if they implement a new 16017 # versioning mechanism, adjust this. 16018 if test -x /usr/bin/objformat; then 16019 objformat=`/usr/bin/objformat` 16020 else 16021 case $host_os in 16022 freebsd[23].*) objformat=aout ;; 16023 *) objformat=elf ;; 16024 esac 16025 fi 16026 version_type=freebsd-$objformat 16027 case $version_type in 16028 freebsd-elf*) 16029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16030 need_version=no 16031 need_lib_prefix=no 16032 ;; 16033 freebsd-*) 16034 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16035 need_version=yes 16036 ;; 16037 esac 16038 shlibpath_var=LD_LIBRARY_PATH 16039 case $host_os in 16040 freebsd2.*) 16041 shlibpath_overrides_runpath=yes 16042 ;; 16043 freebsd3.[01]* | freebsdelf3.[01]*) 16044 shlibpath_overrides_runpath=yes 16045 hardcode_into_libs=yes 16046 ;; 16047 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16048 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16049 shlibpath_overrides_runpath=no 16050 hardcode_into_libs=yes 16051 ;; 16052 *) # from 4.6 on, and DragonFly 16053 shlibpath_overrides_runpath=yes 16054 hardcode_into_libs=yes 16055 ;; 16056 esac 16057 ;; 16058 16059haiku*) 16060 version_type=linux # correct to gnu/linux during the next big refactor 16061 need_lib_prefix=no 16062 need_version=no 16063 dynamic_linker="$host_os runtime_loader" 16064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16065 soname_spec='$libname$release$shared_ext$major' 16066 shlibpath_var=LIBRARY_PATH 16067 shlibpath_overrides_runpath=no 16068 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16069 hardcode_into_libs=yes 16070 ;; 16071 16072hpux9* | hpux10* | hpux11*) 16073 # Give a soname corresponding to the major version so that dld.sl refuses to 16074 # link against other versions. 16075 version_type=sunos 16076 need_lib_prefix=no 16077 need_version=no 16078 case $host_cpu in 16079 ia64*) 16080 shrext_cmds='.so' 16081 hardcode_into_libs=yes 16082 dynamic_linker="$host_os dld.so" 16083 shlibpath_var=LD_LIBRARY_PATH 16084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16086 soname_spec='$libname$release$shared_ext$major' 16087 if test 32 = "$HPUX_IA64_MODE"; then 16088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16089 else 16090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16091 fi 16092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16093 ;; 16094 hppa*64*) 16095 shrext_cmds='.sl' 16096 hardcode_into_libs=yes 16097 dynamic_linker="$host_os dld.sl" 16098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16101 soname_spec='$libname$release$shared_ext$major' 16102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16104 ;; 16105 *) 16106 shrext_cmds='.sl' 16107 dynamic_linker="$host_os dld.sl" 16108 shlibpath_var=SHLIB_PATH 16109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16111 soname_spec='$libname$release$shared_ext$major' 16112 ;; 16113 esac 16114 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16115 postinstall_cmds='chmod 555 $lib' 16116 # or fails outright, so override atomically: 16117 install_override_mode=555 16118 ;; 16119 16120interix[3-9]*) 16121 version_type=linux # correct to gnu/linux during the next big refactor 16122 need_lib_prefix=no 16123 need_version=no 16124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16125 soname_spec='$libname$release$shared_ext$major' 16126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16127 shlibpath_var=LD_LIBRARY_PATH 16128 shlibpath_overrides_runpath=no 16129 hardcode_into_libs=yes 16130 ;; 16131 16132irix5* | irix6* | nonstopux*) 16133 case $host_os in 16134 nonstopux*) version_type=nonstopux ;; 16135 *) 16136 if test yes = "$lt_cv_prog_gnu_ld"; then 16137 version_type=linux # correct to gnu/linux during the next big refactor 16138 else 16139 version_type=irix 16140 fi ;; 16141 esac 16142 need_lib_prefix=no 16143 need_version=no 16144 soname_spec='$libname$release$shared_ext$major' 16145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16146 case $host_os in 16147 irix5* | nonstopux*) 16148 libsuff= shlibsuff= 16149 ;; 16150 *) 16151 case $LD in # libtool.m4 will add one of these switches to LD 16152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16153 libsuff= shlibsuff= libmagic=32-bit;; 16154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16155 libsuff=32 shlibsuff=N32 libmagic=N32;; 16156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16157 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16158 *) libsuff= shlibsuff= libmagic=never-match;; 16159 esac 16160 ;; 16161 esac 16162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16163 shlibpath_overrides_runpath=no 16164 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16165 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16166 hardcode_into_libs=yes 16167 ;; 16168 16169# No shared lib support for Linux oldld, aout, or coff. 16170linux*oldld* | linux*aout* | linux*coff*) 16171 dynamic_linker=no 16172 ;; 16173 16174linux*android*) 16175 version_type=none # Android doesn't support versioned libraries. 16176 need_lib_prefix=no 16177 need_version=no 16178 library_names_spec='$libname$release$shared_ext' 16179 soname_spec='$libname$release$shared_ext' 16180 finish_cmds= 16181 shlibpath_var=LD_LIBRARY_PATH 16182 shlibpath_overrides_runpath=yes 16183 16184 # This implies no fast_install, which is unacceptable. 16185 # Some rework will be needed to allow for fast_install 16186 # before this can be enabled. 16187 hardcode_into_libs=yes 16188 16189 dynamic_linker='Android linker' 16190 # Don't embed -rpath directories since the linker doesn't support them. 16191 hardcode_libdir_flag_spec_CXX='-L$libdir' 16192 ;; 16193 16194# This must be glibc/ELF. 16195linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16196 version_type=linux # correct to gnu/linux during the next big refactor 16197 need_lib_prefix=no 16198 need_version=no 16199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16200 soname_spec='$libname$release$shared_ext$major' 16201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16202 shlibpath_var=LD_LIBRARY_PATH 16203 shlibpath_overrides_runpath=no 16204 16205 # Some binutils ld are patched to set DT_RUNPATH 16206 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16207 $as_echo_n "(cached) " >&6 16208else 16209 lt_cv_shlibpath_overrides_runpath=no 16210 save_LDFLAGS=$LDFLAGS 16211 save_libdir=$libdir 16212 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16213 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16215/* end confdefs.h. */ 16216 16217int 16218main () 16219{ 16220 16221 ; 16222 return 0; 16223} 16224_ACEOF 16225if ac_fn_cxx_try_link "$LINENO"; then : 16226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16227 lt_cv_shlibpath_overrides_runpath=yes 16228fi 16229fi 16230rm -f core conftest.err conftest.$ac_objext \ 16231 conftest$ac_exeext conftest.$ac_ext 16232 LDFLAGS=$save_LDFLAGS 16233 libdir=$save_libdir 16234 16235fi 16236 16237 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16238 16239 # This implies no fast_install, which is unacceptable. 16240 # Some rework will be needed to allow for fast_install 16241 # before this can be enabled. 16242 hardcode_into_libs=yes 16243 16244 # Append ld.so.conf contents to the search path 16245 if test -f /etc/ld.so.conf; then 16246 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' ' '` 16247 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16248 fi 16249 16250 # We used to test for /lib/ld.so.1 and disable shared libraries on 16251 # powerpc, because MkLinux only supported shared libraries with the 16252 # GNU dynamic linker. Since this was broken with cross compilers, 16253 # most powerpc-linux boxes support dynamic linking these days and 16254 # people can always --disable-shared, the test was removed, and we 16255 # assume the GNU/Linux dynamic linker is in use. 16256 dynamic_linker='GNU/Linux ld.so' 16257 ;; 16258 16259netbsd*) 16260 version_type=sunos 16261 need_lib_prefix=no 16262 need_version=no 16263 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16264 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16266 dynamic_linker='NetBSD (a.out) ld.so' 16267 else 16268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16269 soname_spec='$libname$release$shared_ext$major' 16270 dynamic_linker='NetBSD ld.elf_so' 16271 fi 16272 shlibpath_var=LD_LIBRARY_PATH 16273 shlibpath_overrides_runpath=yes 16274 hardcode_into_libs=yes 16275 ;; 16276 16277newsos6) 16278 version_type=linux # correct to gnu/linux during the next big refactor 16279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16280 shlibpath_var=LD_LIBRARY_PATH 16281 shlibpath_overrides_runpath=yes 16282 ;; 16283 16284*nto* | *qnx*) 16285 version_type=qnx 16286 need_lib_prefix=no 16287 need_version=no 16288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16289 soname_spec='$libname$release$shared_ext$major' 16290 shlibpath_var=LD_LIBRARY_PATH 16291 shlibpath_overrides_runpath=no 16292 hardcode_into_libs=yes 16293 dynamic_linker='ldqnx.so' 16294 ;; 16295 16296openbsd* | bitrig*) 16297 version_type=sunos 16298 sys_lib_dlsearch_path_spec=/usr/lib 16299 need_lib_prefix=no 16300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16301 need_version=no 16302 else 16303 need_version=yes 16304 fi 16305 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16307 shlibpath_var=LD_LIBRARY_PATH 16308 shlibpath_overrides_runpath=yes 16309 ;; 16310 16311os2*) 16312 libname_spec='$name' 16313 shrext_cmds=.dll 16314 need_lib_prefix=no 16315 library_names_spec='$libname$shared_ext $libname.a' 16316 dynamic_linker='OS/2 ld.exe' 16317 shlibpath_var=LIBPATH 16318 ;; 16319 16320osf3* | osf4* | osf5*) 16321 version_type=osf 16322 need_lib_prefix=no 16323 need_version=no 16324 soname_spec='$libname$release$shared_ext$major' 16325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16326 shlibpath_var=LD_LIBRARY_PATH 16327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16329 ;; 16330 16331rdos*) 16332 dynamic_linker=no 16333 ;; 16334 16335solaris*) 16336 version_type=linux # correct to gnu/linux during the next big refactor 16337 need_lib_prefix=no 16338 need_version=no 16339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16340 soname_spec='$libname$release$shared_ext$major' 16341 shlibpath_var=LD_LIBRARY_PATH 16342 shlibpath_overrides_runpath=yes 16343 hardcode_into_libs=yes 16344 # ldd complains unless libraries are executable 16345 postinstall_cmds='chmod +x $lib' 16346 ;; 16347 16348sunos4*) 16349 version_type=sunos 16350 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16351 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16352 shlibpath_var=LD_LIBRARY_PATH 16353 shlibpath_overrides_runpath=yes 16354 if test yes = "$with_gnu_ld"; then 16355 need_lib_prefix=no 16356 fi 16357 need_version=yes 16358 ;; 16359 16360sysv4 | sysv4.3*) 16361 version_type=linux # correct to gnu/linux during the next big refactor 16362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16363 soname_spec='$libname$release$shared_ext$major' 16364 shlibpath_var=LD_LIBRARY_PATH 16365 case $host_vendor in 16366 sni) 16367 shlibpath_overrides_runpath=no 16368 need_lib_prefix=no 16369 runpath_var=LD_RUN_PATH 16370 ;; 16371 siemens) 16372 need_lib_prefix=no 16373 ;; 16374 motorola) 16375 need_lib_prefix=no 16376 need_version=no 16377 shlibpath_overrides_runpath=no 16378 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16379 ;; 16380 esac 16381 ;; 16382 16383sysv4*MP*) 16384 if test -d /usr/nec; then 16385 version_type=linux # correct to gnu/linux during the next big refactor 16386 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16387 soname_spec='$libname$shared_ext.$major' 16388 shlibpath_var=LD_LIBRARY_PATH 16389 fi 16390 ;; 16391 16392sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16393 version_type=freebsd-elf 16394 need_lib_prefix=no 16395 need_version=no 16396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16397 soname_spec='$libname$release$shared_ext$major' 16398 shlibpath_var=LD_LIBRARY_PATH 16399 shlibpath_overrides_runpath=yes 16400 hardcode_into_libs=yes 16401 if test yes = "$with_gnu_ld"; then 16402 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16403 else 16404 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16405 case $host_os in 16406 sco3.2v5*) 16407 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16408 ;; 16409 esac 16410 fi 16411 sys_lib_dlsearch_path_spec='/usr/lib' 16412 ;; 16413 16414tpf*) 16415 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16416 version_type=linux # correct to gnu/linux during the next big refactor 16417 need_lib_prefix=no 16418 need_version=no 16419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16420 shlibpath_var=LD_LIBRARY_PATH 16421 shlibpath_overrides_runpath=no 16422 hardcode_into_libs=yes 16423 ;; 16424 16425uts4*) 16426 version_type=linux # correct to gnu/linux during the next big refactor 16427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16428 soname_spec='$libname$release$shared_ext$major' 16429 shlibpath_var=LD_LIBRARY_PATH 16430 ;; 16431 16432*) 16433 dynamic_linker=no 16434 ;; 16435esac 16436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16437$as_echo "$dynamic_linker" >&6; } 16438test no = "$dynamic_linker" && can_build_shared=no 16439 16440variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16441if test yes = "$GCC"; then 16442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16443fi 16444 16445if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16446 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16447fi 16448if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16449 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16450fi 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16490$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16491hardcode_action_CXX= 16492if test -n "$hardcode_libdir_flag_spec_CXX" || 16493 test -n "$runpath_var_CXX" || 16494 test yes = "$hardcode_automatic_CXX"; then 16495 16496 # We can hardcode non-existent directories. 16497 if test no != "$hardcode_direct_CXX" && 16498 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16499 # have to relink, otherwise we might link with an installed library 16500 # when we should be linking with a yet-to-be-installed one 16501 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16502 test no != "$hardcode_minus_L_CXX"; then 16503 # Linking always hardcodes the temporary library directory. 16504 hardcode_action_CXX=relink 16505 else 16506 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16507 hardcode_action_CXX=immediate 16508 fi 16509else 16510 # We cannot hardcode anything, or else we can only hardcode existing 16511 # directories. 16512 hardcode_action_CXX=unsupported 16513fi 16514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16515$as_echo "$hardcode_action_CXX" >&6; } 16516 16517if test relink = "$hardcode_action_CXX" || 16518 test yes = "$inherit_rpath_CXX"; then 16519 # Fast installation is not supported 16520 enable_fast_install=no 16521elif test yes = "$shlibpath_overrides_runpath" || 16522 test no = "$enable_shared"; then 16523 # Fast installation is not necessary 16524 enable_fast_install=needless 16525fi 16526 16527 16528 16529 16530 16531 16532 16533 fi # test -n "$compiler" 16534 16535 CC=$lt_save_CC 16536 CFLAGS=$lt_save_CFLAGS 16537 LDCXX=$LD 16538 LD=$lt_save_LD 16539 GCC=$lt_save_GCC 16540 with_gnu_ld=$lt_save_with_gnu_ld 16541 lt_cv_path_LDCXX=$lt_cv_path_LD 16542 lt_cv_path_LD=$lt_save_path_LD 16543 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16544 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16545fi # test yes != "$_lt_caught_CXX_error" 16546 16547ac_ext=c 16548ac_cpp='$CPP $CPPFLAGS' 16549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16551ac_compiler_gnu=$ac_cv_c_compiler_gnu 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 ac_config_commands="$ac_config_commands libtool" 16568 16569 16570 16571 16572# Only expand once: 16573 16574 16575 16576# Extract the first word of "perl", so it can be a program name with args. 16577set dummy perl; ac_word=$2 16578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16579$as_echo_n "checking for $ac_word... " >&6; } 16580if ${ac_cv_prog_PERL+:} false; then : 16581 $as_echo_n "(cached) " >&6 16582else 16583 if test -n "$PERL"; then 16584 ac_cv_prog_PERL="$PERL" # Let the user override the test. 16585else 16586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16587for as_dir in $PATH 16588do 16589 IFS=$as_save_IFS 16590 test -z "$as_dir" && as_dir=. 16591 for ac_exec_ext in '' $ac_executable_extensions; do 16592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16593 ac_cv_prog_PERL="perl" 16594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16595 break 2 16596 fi 16597done 16598 done 16599IFS=$as_save_IFS 16600 16601fi 16602fi 16603PERL=$ac_cv_prog_PERL 16604if test -n "$PERL"; then 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 16606$as_echo "$PERL" >&6; } 16607else 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16609$as_echo "no" >&6; } 16610fi 16611 16612 16613# Extract the first word of "pdflatex", so it can be a program name with args. 16614set dummy pdflatex; ac_word=$2 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16616$as_echo_n "checking for $ac_word... " >&6; } 16617if ${ac_cv_prog_PDFLATEX+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 if test -n "$PDFLATEX"; then 16621 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test. 16622else 16623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16624for as_dir in $PATH 16625do 16626 IFS=$as_save_IFS 16627 test -z "$as_dir" && as_dir=. 16628 for ac_exec_ext in '' $ac_executable_extensions; do 16629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16630 ac_cv_prog_PDFLATEX="pdflatex" 16631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16632 break 2 16633 fi 16634done 16635 done 16636IFS=$as_save_IFS 16637 16638fi 16639fi 16640PDFLATEX=$ac_cv_prog_PDFLATEX 16641if test -n "$PDFLATEX"; then 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5 16643$as_echo "$PDFLATEX" >&6; } 16644else 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16646$as_echo "no" >&6; } 16647fi 16648 16649 16650# Extract the first word of "pod2html", so it can be a program name with args. 16651set dummy pod2html; ac_word=$2 16652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16653$as_echo_n "checking for $ac_word... " >&6; } 16654if ${ac_cv_prog_POD2HTML+:} false; then : 16655 $as_echo_n "(cached) " >&6 16656else 16657 if test -n "$POD2HTML"; then 16658 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test. 16659else 16660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16661for as_dir in $PATH 16662do 16663 IFS=$as_save_IFS 16664 test -z "$as_dir" && as_dir=. 16665 for ac_exec_ext in '' $ac_executable_extensions; do 16666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16667 ac_cv_prog_POD2HTML="pod2html" 16668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16669 break 2 16670 fi 16671done 16672 done 16673IFS=$as_save_IFS 16674 16675fi 16676fi 16677POD2HTML=$ac_cv_prog_POD2HTML 16678if test -n "$POD2HTML"; then 16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5 16680$as_echo "$POD2HTML" >&6; } 16681else 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16683$as_echo "no" >&6; } 16684fi 16685 16686 16687 16688 if test -n "$PERL" -a -n "$PDFLATEX" -a -n "$POD2HTML"; then 16689 GENERATE_DOC_TRUE= 16690 GENERATE_DOC_FALSE='#' 16691else 16692 GENERATE_DOC_TRUE='#' 16693 GENERATE_DOC_FALSE= 16694fi 16695 16696 16697# ------ AX CREATE STDINT H ------------------------------------- 16698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5 16699$as_echo_n "checking for stdint types... " >&6; } 16700ac_stdint_h=`echo include/isl/stdint.h` 16701# try to shortcircuit - if the default include path of the compiler 16702# can find a "stdint.h" header then we assume that all compilers can. 16703if ${ac_cv_header_stdint_t+:} false; then : 16704 $as_echo_n "(cached) " >&6 16705else 16706 16707old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS="" 16708old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="" 16709old_CFLAGS="$CFLAGS" ; CFLAGS="" 16710cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16711/* end confdefs.h. */ 16712#include <stdint.h> 16713int 16714main () 16715{ 16716int_least32_t v = 0; 16717 ; 16718 return 0; 16719} 16720_ACEOF 16721if ac_fn_c_try_compile "$LINENO"; then : 16722 ac_cv_stdint_result="(assuming C99 compatible system)" 16723 ac_cv_header_stdint_t="stdint.h"; 16724else 16725 ac_cv_header_stdint_t="" 16726fi 16727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16728if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then 16729CFLAGS="-std=c99" 16730cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16731/* end confdefs.h. */ 16732#include <stdint.h> 16733int 16734main () 16735{ 16736int_least32_t v = 0; 16737 ; 16738 return 0; 16739} 16740_ACEOF 16741if ac_fn_c_try_compile "$LINENO"; then : 16742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5 16743$as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;} 16744fi 16745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16746fi 16747CXXFLAGS="$old_CXXFLAGS" 16748CPPFLAGS="$old_CPPFLAGS" 16749CFLAGS="$old_CFLAGS" 16750fi 16751 16752 16753v="... $ac_cv_header_stdint_h" 16754if test "$ac_stdint_h" = "stdint.h" ; then 16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5 16756$as_echo "(are you sure you want them in ./stdint.h?)" >&6; } 16757elif test "$ac_stdint_h" = "inttypes.h" ; then 16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5 16759$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; } 16760elif test "_$ac_cv_header_stdint_t" = "_" ; then 16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5 16762$as_echo "(putting them into $ac_stdint_h)$v" >&6; } 16763else 16764 ac_cv_header_stdint="$ac_cv_header_stdint_t" 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5 16766$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; } 16767fi 16768 16769if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit.. 16770 16771 16772inttype_headers=`echo | sed -e 's/,/ /g'` 16773 16774ac_cv_stdint_result="(no helpful system typedefs seen)" 16775 16776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 16777$as_echo_n "checking for stdint uintptr_t... " >&6; } 16778if ${ac_cv_header_stdint_x+:} false; then : 16779 $as_echo_n "(cached) " >&6 16780else 16781 16782 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h) 16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 16784$as_echo "(..)" >&6; } 16785 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers 16786 do 16787 unset ac_cv_type_uintptr_t 16788 unset ac_cv_type_uint64_t 16789 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i> 16790" 16791if test "x$ac_cv_type_uintptr_t" = xyes; then : 16792 ac_cv_header_stdint_x=$i 16793else 16794 continue 16795fi 16796 16797 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 16798" 16799if test "x$ac_cv_type_uint64_t" = xyes; then : 16800 and64="/uint64_t" 16801else 16802 and64="" 16803fi 16804 16805 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)" 16806 break 16807 done 16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5 16809$as_echo_n "checking for stdint uintptr_t... " >&6; } 16810 16811fi 16812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5 16813$as_echo "$ac_cv_header_stdint_x" >&6; } 16814 16815 16816if test "_$ac_cv_header_stdint_x" = "_" ; then 16817 16818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 16819$as_echo_n "checking for stdint uint32_t... " >&6; } 16820if ${ac_cv_header_stdint_o+:} false; then : 16821 $as_echo_n "(cached) " >&6 16822else 16823 16824 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h) 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 16826$as_echo "(..)" >&6; } 16827 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers 16828 do 16829 unset ac_cv_type_uint32_t 16830 unset ac_cv_type_uint64_t 16831 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i> 16832" 16833if test "x$ac_cv_type_uint32_t" = xyes; then : 16834 ac_cv_header_stdint_o=$i 16835else 16836 continue 16837fi 16838 16839 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i> 16840" 16841if test "x$ac_cv_type_uint64_t" = xyes; then : 16842 and64="/uint64_t" 16843else 16844 and64="" 16845fi 16846 16847 ac_cv_stdint_result="(seen uint32_t$and64 in $i)" 16848 break 16849 break; 16850 done 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5 16852$as_echo_n "checking for stdint uint32_t... " >&6; } 16853 16854fi 16855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5 16856$as_echo "$ac_cv_header_stdint_o" >&6; } 16857 16858fi 16859 16860if test "_$ac_cv_header_stdint_x" = "_" ; then 16861if test "_$ac_cv_header_stdint_o" = "_" ; then 16862 16863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 16864$as_echo_n "checking for stdint u_int32_t... " >&6; } 16865if ${ac_cv_header_stdint_u+:} false; then : 16866 $as_echo_n "(cached) " >&6 16867else 16868 16869 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h) 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 16871$as_echo "(..)" >&6; } 16872 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do 16873 unset ac_cv_type_u_int32_t 16874 unset ac_cv_type_u_int64_t 16875 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i> 16876" 16877if test "x$ac_cv_type_u_int32_t" = xyes; then : 16878 ac_cv_header_stdint_u=$i 16879else 16880 continue 16881fi 16882 16883 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i> 16884" 16885if test "x$ac_cv_type_u_int64_t" = xyes; then : 16886 and64="/u_int64_t" 16887else 16888 and64="" 16889fi 16890 16891 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)" 16892 break 16893 break; 16894 done 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5 16896$as_echo_n "checking for stdint u_int32_t... " >&6; } 16897 16898fi 16899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5 16900$as_echo "$ac_cv_header_stdint_u" >&6; } 16901 16902fi fi 16903 16904if test "_$ac_cv_header_stdint_x" = "_" ; then 16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5 16906$as_echo_n "checking for stdint datatype model... " >&6; } 16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5 16908$as_echo "(..)" >&6; } 16909 16910 # The cast to long int works around a bug in the HP C Compiler 16911# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16912# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16913# This bug is HP SR number 8606223364. 16914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 16915$as_echo_n "checking size of char... " >&6; } 16916if ${ac_cv_sizeof_char+:} false; then : 16917 $as_echo_n "(cached) " >&6 16918else 16919 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 16920 16921else 16922 if test "$ac_cv_type_char" = yes; then 16923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16925as_fn_error 77 "cannot compute sizeof (char) 16926See \`config.log' for more details" "$LINENO" 5; } 16927 else 16928 ac_cv_sizeof_char=0 16929 fi 16930fi 16931 16932fi 16933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 16934$as_echo "$ac_cv_sizeof_char" >&6; } 16935 16936 16937 16938cat >>confdefs.h <<_ACEOF 16939#define SIZEOF_CHAR $ac_cv_sizeof_char 16940_ACEOF 16941 16942 16943 # The cast to long int works around a bug in the HP C Compiler 16944# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16945# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16946# This bug is HP SR number 8606223364. 16947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 16948$as_echo_n "checking size of short... " >&6; } 16949if ${ac_cv_sizeof_short+:} false; then : 16950 $as_echo_n "(cached) " >&6 16951else 16952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 16953 16954else 16955 if test "$ac_cv_type_short" = yes; then 16956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16958as_fn_error 77 "cannot compute sizeof (short) 16959See \`config.log' for more details" "$LINENO" 5; } 16960 else 16961 ac_cv_sizeof_short=0 16962 fi 16963fi 16964 16965fi 16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 16967$as_echo "$ac_cv_sizeof_short" >&6; } 16968 16969 16970 16971cat >>confdefs.h <<_ACEOF 16972#define SIZEOF_SHORT $ac_cv_sizeof_short 16973_ACEOF 16974 16975 16976 # The cast to long int works around a bug in the HP C Compiler 16977# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16978# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16979# This bug is HP SR number 8606223364. 16980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 16981$as_echo_n "checking size of int... " >&6; } 16982if ${ac_cv_sizeof_int+:} false; then : 16983 $as_echo_n "(cached) " >&6 16984else 16985 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 16986 16987else 16988 if test "$ac_cv_type_int" = yes; then 16989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16990$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16991as_fn_error 77 "cannot compute sizeof (int) 16992See \`config.log' for more details" "$LINENO" 5; } 16993 else 16994 ac_cv_sizeof_int=0 16995 fi 16996fi 16997 16998fi 16999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 17000$as_echo "$ac_cv_sizeof_int" >&6; } 17001 17002 17003 17004cat >>confdefs.h <<_ACEOF 17005#define SIZEOF_INT $ac_cv_sizeof_int 17006_ACEOF 17007 17008 17009 # The cast to long int works around a bug in the HP C Compiler 17010# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17011# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17012# This bug is HP SR number 8606223364. 17013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 17014$as_echo_n "checking size of long... " >&6; } 17015if ${ac_cv_sizeof_long+:} false; then : 17016 $as_echo_n "(cached) " >&6 17017else 17018 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 17019 17020else 17021 if test "$ac_cv_type_long" = yes; then 17022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17024as_fn_error 77 "cannot compute sizeof (long) 17025See \`config.log' for more details" "$LINENO" 5; } 17026 else 17027 ac_cv_sizeof_long=0 17028 fi 17029fi 17030 17031fi 17032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 17033$as_echo "$ac_cv_sizeof_long" >&6; } 17034 17035 17036 17037cat >>confdefs.h <<_ACEOF 17038#define SIZEOF_LONG $ac_cv_sizeof_long 17039_ACEOF 17040 17041 17042 # The cast to long int works around a bug in the HP C Compiler 17043# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17044# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17045# This bug is HP SR number 8606223364. 17046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 17047$as_echo_n "checking size of void*... " >&6; } 17048if ${ac_cv_sizeof_voidp+:} false; then : 17049 $as_echo_n "(cached) " >&6 17050else 17051 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then : 17052 17053else 17054 if test "$ac_cv_type_voidp" = yes; then 17055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17056$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17057as_fn_error 77 "cannot compute sizeof (void*) 17058See \`config.log' for more details" "$LINENO" 5; } 17059 else 17060 ac_cv_sizeof_voidp=0 17061 fi 17062fi 17063 17064fi 17065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 17066$as_echo "$ac_cv_sizeof_voidp" >&6; } 17067 17068 17069 17070cat >>confdefs.h <<_ACEOF 17071#define SIZEOF_VOIDP $ac_cv_sizeof_voidp 17072_ACEOF 17073 17074 17075 ac_cv_char_data_model="" 17076 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char" 17077 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short" 17078 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int" 17079 ac_cv_long_data_model="" 17080 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int" 17081 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long" 17082 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp" 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5 17084$as_echo_n "checking data model... " >&6; } 17085 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in 17086 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;; 17087 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;; 17088 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;; 17089 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;; 17090 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;; 17091 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;; 17092 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;; 17093 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;; 17094 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;; 17095 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;; 17096 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;; 17097 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;; 17098 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;; 17099 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;; 17100 222/*|333/*|444/*|666/*|888/*) : 17101 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;; 17102 *) ac_cv_data_model="none" ; n="very unusual model" ;; 17103 esac 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5 17105$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; } 17106 17107fi 17108 17109if test "_$ac_cv_header_stdint_x" != "_" ; then 17110 ac_cv_header_stdint="$ac_cv_header_stdint_x" 17111elif test "_$ac_cv_header_stdint_o" != "_" ; then 17112 ac_cv_header_stdint="$ac_cv_header_stdint_o" 17113elif test "_$ac_cv_header_stdint_u" != "_" ; then 17114 ac_cv_header_stdint="$ac_cv_header_stdint_u" 17115else 17116 ac_cv_header_stdint="stddef.h" 17117fi 17118 17119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5 17120$as_echo_n "checking for extra inttypes in chosen header... " >&6; } 17121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5 17122$as_echo "($ac_cv_header_stdint)" >&6; } 17123unset ac_cv_type_int_least32_t 17124unset ac_cv_type_int_fast32_t 17125ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint> 17126" 17127if test "x$ac_cv_type_int_least32_t" = xyes; then : 17128 17129fi 17130 17131ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint> 17132" 17133if test "x$ac_cv_type_int_fast32_t" = xyes; then : 17134 17135fi 17136 17137ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint> 17138" 17139if test "x$ac_cv_type_intmax_t" = xyes; then : 17140 17141fi 17142 17143 17144fi # shortcircut to system "stdint.h" 17145# ------------------ PREPARE VARIABLES ------------------------------ 17146if test "$GCC" = "yes" ; then 17147ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1` 17148else 17149ac_cv_stdint_message="using $CC" 17150fi 17151 17152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5 17153$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; } 17154 17155# ----------------- DONE inttypes.h checks START header ------------- 17156ac_config_commands="$ac_config_commands $ac_stdint_h" 17157 17158 17159 17160 17161 17162 17163# Check whether --with-gmp was given. 17164if test "${with_gmp+set}" = set; then : 17165 withval=$with_gmp; 17166fi 17167 17168case "system" in 17169system|build) 17170 17171# Check whether --with-gmp_prefix was given. 17172if test "${with_gmp_prefix+set}" = set; then : 17173 withval=$with_gmp_prefix; 17174fi 17175 17176 17177# Check whether --with-gmp_exec_prefix was given. 17178if test "${with_gmp_exec_prefix+set}" = set; then : 17179 withval=$with_gmp_exec_prefix; 17180fi 17181 17182esac 17183 17184# Check whether --with-gmp_builddir was given. 17185if test "${with_gmp_builddir+set}" = set; then : 17186 withval=$with_gmp_builddir; 17187fi 17188 17189if test "x$with_gmp_prefix" != "x" -a "x$with_gmp_exec_prefix" = "x"; then 17190 with_gmp_exec_prefix=$with_gmp_prefix 17191fi 17192if test "x$with_gmp_prefix" != "x" -o "x$with_gmp_exec_prefix" != "x"; then 17193 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xsystem"; then 17194 as_fn_error $? "Setting $with_gmp_prefix implies use of system gmp" "$LINENO" 5 17195 fi 17196 with_gmp="system" 17197fi 17198if test "x$with_gmp_builddir" != "x"; then 17199 if test "x$with_gmp" != "x" -a "x$with_gmp" != "xyes" -a "x$with_gmp" != "xbuild"; then 17200 as_fn_error $? "Setting $with_gmp_builddir implies use of build gmp" "$LINENO" 5 17201 fi 17202 with_gmp="build" 17203 gmp_srcdir=`echo @abs_srcdir@ | $with_gmp_builddir/config.status --file=-` 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: gmp sources in $gmp_srcdir" >&5 17205$as_echo "$as_me: gmp sources in $gmp_srcdir" >&6;} 17206fi 17207if test "x$with_gmp_exec_prefix" != "x"; then 17208 export PKG_CONFIG_PATH="$with_gmp_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 17209fi 17210case "$with_gmp" in 17211system|build) 17212 ;; 17213*) 17214 case "system" in 17215 bundled) 17216 if test -d $srcdir/.git -a \ 17217 -d $srcdir/gmp -a \ 17218 ! -d $srcdir/gmp/.git; then 17219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule gmp not initialized" >&5 17220$as_echo "$as_me: WARNING: git repo detected, but submodule gmp not initialized" >&2;} 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 17222$as_echo "$as_me: WARNING: You may want to run" >&2;} 17223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 17224$as_echo "$as_me: WARNING: git submodule init" >&2;} 17225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 17226$as_echo "$as_me: WARNING: git submodule update" >&2;} 17227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 17228$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 17229 fi 17230 if test -f $srcdir/gmp/configure; then 17231 with_gmp="bundled" 17232 else 17233 with_gmp="no" 17234 fi 17235 ;; 17236 *) 17237 with_gmp="system" 17238 ;; 17239 esac 17240 ;; 17241esac 17242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which gmp to use" >&5 17243$as_echo_n "checking which gmp to use... " >&6; } 17244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gmp" >&5 17245$as_echo "$with_gmp" >&6; } 17246 17247 17248 17249 17250 17251 17252case "$with_gmp" in 17253system) 17254 if test "x$with_gmp_prefix" != "x"; then 17255 isl_configure_args="$isl_configure_args --with-gmp=$with_gmp_prefix" 17256 GMP_CPPFLAGS="-I$with_gmp_prefix/include" 17257 GMP_LDFLAGS="-L$with_gmp_prefix/lib" 17258 fi 17259 GMP_LIBS=-lgmp 17260 SAVE_CPPFLAGS="$CPPFLAGS" 17261 SAVE_LDFLAGS="$LDFLAGS" 17262 SAVE_LIBS="$LIBS" 17263 CPPFLAGS="$GMP_CPPFLAGS $CPPFLAGS" 17264 LDFLAGS="$GMP_LDFLAGS $LDFLAGS" 17265 LIBS="$GMP_LIBS $LIBS" 17266 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" 17267if test "x$ac_cv_header_gmp_h" = xyes; then : 17268 17269else 17270 as_fn_error $? "gmp.h header not found" "$LINENO" 5 17271fi 17272 17273 17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgmp" >&5 17275$as_echo_n "checking for main in -lgmp... " >&6; } 17276if ${ac_cv_lib_gmp_main+:} false; then : 17277 $as_echo_n "(cached) " >&6 17278else 17279 ac_check_lib_save_LIBS=$LIBS 17280LIBS="-lgmp $LIBS" 17281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17282/* end confdefs.h. */ 17283 17284 17285int 17286main () 17287{ 17288return main (); 17289 ; 17290 return 0; 17291} 17292_ACEOF 17293if ac_fn_c_try_link "$LINENO"; then : 17294 ac_cv_lib_gmp_main=yes 17295else 17296 ac_cv_lib_gmp_main=no 17297fi 17298rm -f core conftest.err conftest.$ac_objext \ 17299 conftest$ac_exeext conftest.$ac_ext 17300LIBS=$ac_check_lib_save_LIBS 17301fi 17302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp_main" >&5 17303$as_echo "$ac_cv_lib_gmp_main" >&6; } 17304if test "x$ac_cv_lib_gmp_main" = xyes; then : 17305 cat >>confdefs.h <<_ACEOF 17306#define HAVE_LIBGMP 1 17307_ACEOF 17308 17309 LIBS="-lgmp $LIBS" 17310 17311else 17312 as_fn_error $? "gmp library not found" "$LINENO" 5 17313fi 17314 17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17316/* end confdefs.h. */ 17317#include <gmp.h> 17318int 17319main () 17320{ 17321 17322 mpz_t n, d; 17323 if (mpz_divisible_p(n, d)) 17324 mpz_divexact_ui(n, n, 4); 17325 17326 ; 17327 return 0; 17328} 17329_ACEOF 17330if ac_fn_c_try_link "$LINENO"; then : 17331 17332else 17333 as_fn_error $? "gmp library too old" "$LINENO" 5 17334fi 17335rm -f core conftest.err conftest.$ac_objext \ 17336 conftest$ac_exeext conftest.$ac_ext 17337 CPPFLAGS="$SAVE_CPPFLAGS" 17338 LDFLAGS="$SAVE_LDFLAGS" 17339 LIBS="$SAVE_LIBS" 17340 ;; 17341build) 17342 GMP_CPPFLAGS="-I$gmp_srcdir -I$with_gmp_builddir" 17343 GMP_LIBS="$with_gmp_builddir/libgmp.la" 17344 ;; 17345esac 17346SAVE_CPPFLAGS="$CPPFLAGS" 17347SAVE_LDFLAGS="$LDFLAGS" 17348SAVE_LIBS="$LIBS" 17349CPPFLAGS="$GMP_CPPFLAGS $CPPFLAGS" 17350LDFLAGS="$GMP_LDFLAGS $LDFLAGS" 17351LIBS="$GMP_LIBS $LIBS" 17352need_get_memory_functions=false 17353ac_fn_c_check_decl "$LINENO" "mp_get_memory_functions" "ac_cv_have_decl_mp_get_memory_functions" "#include <gmp.h> 17354" 17355if test "x$ac_cv_have_decl_mp_get_memory_functions" = xyes; then : 17356 ac_have_decl=1 17357else 17358 ac_have_decl=0 17359fi 17360 17361cat >>confdefs.h <<_ACEOF 17362#define HAVE_DECL_MP_GET_MEMORY_FUNCTIONS $ac_have_decl 17363_ACEOF 17364if test $ac_have_decl = 1; then : 17365 17366else 17367 17368 need_get_memory_functions=true 17369 17370fi 17371 17372if test "$cross_compiling" = yes; then : 17373 need_normalized_gcdext=true 17374else 17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17376/* end confdefs.h. */ 17377#include <gmp.h> 17378int 17379main () 17380{ 17381 17382 mpz_t x,y,g,a,b; 17383 mpz_init(x); 17384 mpz_init(y); 17385 mpz_init(g); 17386 mpz_init(a); 17387 mpz_init(b); 17388 mpz_set_si(x, -1); 17389 mpz_set_si(y, 9); 17390 mpz_gcdext(g, a, b, x, y); 17391 if (mpz_get_si(a) == -1 && mpz_get_si(b) == 0) 17392 return 0; 17393 else 17394 return 1; 17395 17396 ; 17397 return 0; 17398} 17399_ACEOF 17400if ac_fn_c_try_run "$LINENO"; then : 17401 need_normalized_gcdext=false 17402else 17403 need_normalized_gcdext=true 17404fi 17405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17406 conftest.$ac_objext conftest.beam conftest.$ac_ext 17407fi 17408 17409CPPFLAGS="$SAVE_CPPFLAGS" 17410LDFLAGS="$SAVE_LDFLAGS" 17411LIBS="$SAVE_LIBS" 17412 if test x$need_get_memory_functions = xtrue; then 17413 NEED_GET_MEMORY_FUNCTIONS_TRUE= 17414 NEED_GET_MEMORY_FUNCTIONS_FALSE='#' 17415else 17416 NEED_GET_MEMORY_FUNCTIONS_TRUE='#' 17417 NEED_GET_MEMORY_FUNCTIONS_FALSE= 17418fi 17419 17420if test $need_normalized_gcdext = true; then 17421 17422$as_echo "#define GMP_NORMALIZE_GCDEXT /**/" >>confdefs.h 17423 17424fi 17425ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "#include <strings.h> 17426" 17427if test "x$ac_cv_have_decl_ffs" = xyes; then : 17428 ac_have_decl=1 17429else 17430 ac_have_decl=0 17431fi 17432 17433cat >>confdefs.h <<_ACEOF 17434#define HAVE_DECL_FFS $ac_have_decl 17435_ACEOF 17436 17437ac_fn_c_check_decl "$LINENO" "__builtin_ffs" "ac_cv_have_decl___builtin_ffs" "$ac_includes_default" 17438if test "x$ac_cv_have_decl___builtin_ffs" = xyes; then : 17439 ac_have_decl=1 17440else 17441 ac_have_decl=0 17442fi 17443 17444cat >>confdefs.h <<_ACEOF 17445#define HAVE_DECL___BUILTIN_FFS $ac_have_decl 17446_ACEOF 17447 17448 17449 17450 17451 17452# Check whether --with-piplib was given. 17453if test "${with_piplib+set}" = set; then : 17454 withval=$with_piplib; 17455fi 17456 17457case "system" in 17458no|system|build) 17459 17460# Check whether --with-piplib_prefix was given. 17461if test "${with_piplib_prefix+set}" = set; then : 17462 withval=$with_piplib_prefix; 17463fi 17464 17465 17466# Check whether --with-piplib_exec_prefix was given. 17467if test "${with_piplib_exec_prefix+set}" = set; then : 17468 withval=$with_piplib_exec_prefix; 17469fi 17470 17471esac 17472 17473# Check whether --with-piplib_builddir was given. 17474if test "${with_piplib_builddir+set}" = set; then : 17475 withval=$with_piplib_builddir; 17476fi 17477 17478if test "x$with_piplib_prefix" != "x" -a "x$with_piplib_exec_prefix" = "x"; then 17479 with_piplib_exec_prefix=$with_piplib_prefix 17480fi 17481if test "x$with_piplib_prefix" != "x" -o "x$with_piplib_exec_prefix" != "x"; then 17482 if test "x$with_piplib" != "x" -a "x$with_piplib" != "xyes" -a "x$with_piplib" != "xsystem"; then 17483 as_fn_error $? "Setting $with_piplib_prefix implies use of system piplib" "$LINENO" 5 17484 fi 17485 with_piplib="system" 17486fi 17487if test "x$with_piplib_builddir" != "x"; then 17488 if test "x$with_piplib" != "x" -a "x$with_piplib" != "xyes" -a "x$with_piplib" != "xbuild"; then 17489 as_fn_error $? "Setting $with_piplib_builddir implies use of build piplib" "$LINENO" 5 17490 fi 17491 with_piplib="build" 17492 piplib_srcdir=`echo @abs_srcdir@ | $with_piplib_builddir/config.status --file=-` 17493 { $as_echo "$as_me:${as_lineno-$LINENO}: piplib sources in $piplib_srcdir" >&5 17494$as_echo "$as_me: piplib sources in $piplib_srcdir" >&6;} 17495fi 17496if test "x$with_piplib_exec_prefix" != "x"; then 17497 export PKG_CONFIG_PATH="$with_piplib_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 17498fi 17499case "$with_piplib" in 17500no|system|build) 17501 ;; 17502*) 17503 case "no" in 17504 bundled) 17505 if test -d $srcdir/.git -a \ 17506 -d $srcdir/piplib -a \ 17507 ! -d $srcdir/piplib/.git; then 17508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule piplib not initialized" >&5 17509$as_echo "$as_me: WARNING: git repo detected, but submodule piplib not initialized" >&2;} 17510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 17511$as_echo "$as_me: WARNING: You may want to run" >&2;} 17512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 17513$as_echo "$as_me: WARNING: git submodule init" >&2;} 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 17515$as_echo "$as_me: WARNING: git submodule update" >&2;} 17516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 17517$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 17518 fi 17519 if test -f $srcdir/piplib/configure; then 17520 with_piplib="bundled" 17521 else 17522 with_piplib="no" 17523 fi 17524 ;; 17525 *) 17526 with_piplib="no" 17527 ;; 17528 esac 17529 ;; 17530esac 17531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which piplib to use" >&5 17532$as_echo_n "checking which piplib to use... " >&6; } 17533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_piplib" >&5 17534$as_echo "$with_piplib" >&6; } 17535 17536 17537 17538have_piplib=false 17539 17540 17541 17542case "$with_piplib" in 17543 build) 17544 PIPLIB_CPPFLAGS="-I$piplib_srcdir/include" 17545 PIPLIB_LIBS="$with_piplib_builddir/libpiplibMP.la" 17546 ;; 17547 system) 17548 PIPLIB_LIBS="-lpiplibMP" 17549 if test "x$with_piplib_prefix" != "x"; then 17550 PIPLIB_CPPFLAGS="-I$with_piplib_prefix/include" 17551 PIPLIB_LDFLAGS="-L$with_piplib_prefix/lib" 17552 fi 17553 SAVE_CPPFLAGS="$CPPFLAGS" 17554 SAVE_LDFLAGS="$LDFLAGS" 17555 CPPFLAGS="$PIPLIB_CPPFLAGS $CPPFLAGS" 17556 LDFLAGS="$PIPLIB_LDFLAGS $LDFLAGS" 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pip_solve in -lpiplibMP" >&5 17558$as_echo_n "checking for pip_solve in -lpiplibMP... " >&6; } 17559if ${ac_cv_lib_piplibMP_pip_solve+:} false; then : 17560 $as_echo_n "(cached) " >&6 17561else 17562 ac_check_lib_save_LIBS=$LIBS 17563LIBS="-lpiplibMP $LIBS" 17564cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17565/* end confdefs.h. */ 17566 17567/* Override any GCC internal prototype to avoid an error. 17568 Use char because int might match the return type of a GCC 17569 builtin and then its argument prototype would still apply. */ 17570#ifdef __cplusplus 17571extern "C" 17572#endif 17573char pip_solve (); 17574int 17575main () 17576{ 17577return pip_solve (); 17578 ; 17579 return 0; 17580} 17581_ACEOF 17582if ac_fn_c_try_link "$LINENO"; then : 17583 ac_cv_lib_piplibMP_pip_solve=yes 17584else 17585 ac_cv_lib_piplibMP_pip_solve=no 17586fi 17587rm -f core conftest.err conftest.$ac_objext \ 17588 conftest$ac_exeext conftest.$ac_ext 17589LIBS=$ac_check_lib_save_LIBS 17590fi 17591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_piplibMP_pip_solve" >&5 17592$as_echo "$ac_cv_lib_piplibMP_pip_solve" >&6; } 17593if test "x$ac_cv_lib_piplibMP_pip_solve" = xyes; then : 17594 17595 ac_fn_c_check_member "$LINENO" "PipOptions" "Urs_parms" "ac_cv_member_PipOptions_Urs_parms" "#include <piplib/piplibMP.h> 17596" 17597if test "x$ac_cv_member_PipOptions_Urs_parms" = xyes; then : 17598 17599else 17600 17601 as_fn_error $? "Piplib too old; please install version 1.3.6 or newer" "$LINENO" 5 17602 17603fi 17604 17605 17606else 17607 17608 as_fn_error $? "Piplib not found" "$LINENO" 5 17609 17610fi 17611 17612 CPPFLAGS="$SAVE_CPPFLAGS" 17613 LDFLAGS="$SAVE_LDFLAGS" 17614 ;; 17615 no) 17616 ;; 17617 *) 17618 as_fn_error $? "unsupported" "$LINENO" 5 17619 ;; 17620esac 17621if test "$with_piplib" != "no"; then 17622 17623$as_echo "#define ISL_PIPLIB /**/" >>confdefs.h 17624 17625 have_piplib=true 17626fi 17627 if test x$have_piplib = xtrue; then 17628 HAVE_PIPLIB_TRUE= 17629 HAVE_PIPLIB_FALSE='#' 17630else 17631 HAVE_PIPLIB_TRUE='#' 17632 HAVE_PIPLIB_FALSE= 17633fi 17634 17635 17636 17637 17638 17639 17640 17641 17642# Check whether --with-clang was given. 17643if test "${with_clang+set}" = set; then : 17644 withval=$with_clang; 17645fi 17646 17647case "system" in 17648system|no) 17649 17650# Check whether --with-clang_prefix was given. 17651if test "${with_clang_prefix+set}" = set; then : 17652 withval=$with_clang_prefix; 17653fi 17654 17655 17656# Check whether --with-clang_exec_prefix was given. 17657if test "${with_clang_exec_prefix+set}" = set; then : 17658 withval=$with_clang_exec_prefix; 17659fi 17660 17661esac 17662 17663if test "x$with_clang_prefix" != "x" -a "x$with_clang_exec_prefix" = "x"; then 17664 with_clang_exec_prefix=$with_clang_prefix 17665fi 17666if test "x$with_clang_prefix" != "x" -o "x$with_clang_exec_prefix" != "x"; then 17667 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xsystem"; then 17668 as_fn_error $? "Setting $with_clang_prefix implies use of system clang" "$LINENO" 5 17669 fi 17670 with_clang="system" 17671fi 17672if test "x$with_clang_builddir" != "x"; then 17673 if test "x$with_clang" != "x" -a "x$with_clang" != "xyes" -a "x$with_clang" != "xbuild"; then 17674 as_fn_error $? "Setting $with_clang_builddir implies use of build clang" "$LINENO" 5 17675 fi 17676 with_clang="build" 17677 clang_srcdir=`echo @abs_srcdir@ | $with_clang_builddir/config.status --file=-` 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: clang sources in $clang_srcdir" >&5 17679$as_echo "$as_me: clang sources in $clang_srcdir" >&6;} 17680fi 17681if test "x$with_clang_exec_prefix" != "x"; then 17682 export PKG_CONFIG_PATH="$with_clang_exec_prefix/lib/pkgconfig${PKG_CONFIG_PATH+:$PKG_CONFIG_PATH}" 17683fi 17684case "$with_clang" in 17685system|no) 17686 ;; 17687*) 17688 case "no" in 17689 bundled) 17690 if test -d $srcdir/.git -a \ 17691 -d $srcdir/clang -a \ 17692 ! -d $srcdir/clang/.git; then 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule clang not initialized" >&5 17694$as_echo "$as_me: WARNING: git repo detected, but submodule clang not initialized" >&2;} 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5 17696$as_echo "$as_me: WARNING: You may want to run" >&2;} 17697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5 17698$as_echo "$as_me: WARNING: git submodule init" >&2;} 17699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5 17700$as_echo "$as_me: WARNING: git submodule update" >&2;} 17701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5 17702$as_echo "$as_me: WARNING: sh autogen.sh" >&2;} 17703 fi 17704 if test -f $srcdir/clang/configure; then 17705 with_clang="bundled" 17706 else 17707 with_clang="no" 17708 fi 17709 ;; 17710 *) 17711 with_clang="no" 17712 ;; 17713 esac 17714 ;; 17715esac 17716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which clang to use" >&5 17717$as_echo_n "checking which clang to use... " >&6; } 17718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_clang" >&5 17719$as_echo "$with_clang" >&6; } 17720 17721 17722case "$with_clang" in 17723system) 17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 17725$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 17726if ${ac_cv_path_GREP+:} false; then : 17727 $as_echo_n "(cached) " >&6 17728else 17729 if test -z "$GREP"; then 17730 ac_path_GREP_found=false 17731 # Loop through the user's path and test for each of PROGNAME-LIST 17732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 17734do 17735 IFS=$as_save_IFS 17736 test -z "$as_dir" && as_dir=. 17737 for ac_prog in grep ggrep; do 17738 for ac_exec_ext in '' $ac_executable_extensions; do 17739 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 17740 as_fn_executable_p "$ac_path_GREP" || continue 17741# Check for GNU ac_path_GREP and select it if it is found. 17742 # Check for GNU $ac_path_GREP 17743case `"$ac_path_GREP" --version 2>&1` in 17744*GNU*) 17745 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 17746*) 17747 ac_count=0 17748 $as_echo_n 0123456789 >"conftest.in" 17749 while : 17750 do 17751 cat "conftest.in" "conftest.in" >"conftest.tmp" 17752 mv "conftest.tmp" "conftest.in" 17753 cp "conftest.in" "conftest.nl" 17754 $as_echo 'GREP' >> "conftest.nl" 17755 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 17756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 17757 as_fn_arith $ac_count + 1 && ac_count=$as_val 17758 if test $ac_count -gt ${ac_path_GREP_max-0}; then 17759 # Best one so far, save it but keep looking for a better one 17760 ac_cv_path_GREP="$ac_path_GREP" 17761 ac_path_GREP_max=$ac_count 17762 fi 17763 # 10*(2^10) chars as input seems more than enough 17764 test $ac_count -gt 10 && break 17765 done 17766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 17767esac 17768 17769 $ac_path_GREP_found && break 3 17770 done 17771 done 17772 done 17773IFS=$as_save_IFS 17774 if test -z "$ac_cv_path_GREP"; then 17775 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 17776 fi 17777else 17778 ac_cv_path_GREP=$GREP 17779fi 17780 17781fi 17782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 17783$as_echo "$ac_cv_path_GREP" >&6; } 17784 GREP="$ac_cv_path_GREP" 17785 17786 17787 llvm_config="llvm-config" 17788 # Extract the first word of ""$llvm_config"", so it can be a program name with args. 17789set dummy "$llvm_config"; ac_word=$2 17790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17791$as_echo_n "checking for $ac_word... " >&6; } 17792if ${ac_cv_prog_llvm_config_found+:} false; then : 17793 $as_echo_n "(cached) " >&6 17794else 17795 if test -n "$llvm_config_found"; then 17796 ac_cv_prog_llvm_config_found="$llvm_config_found" # Let the user override the test. 17797else 17798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17799for as_dir in $PATH 17800do 17801 IFS=$as_save_IFS 17802 test -z "$as_dir" && as_dir=. 17803 for ac_exec_ext in '' $ac_executable_extensions; do 17804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17805 ac_cv_prog_llvm_config_found="yes" 17806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17807 break 2 17808 fi 17809done 17810 done 17811IFS=$as_save_IFS 17812 17813fi 17814fi 17815llvm_config_found=$ac_cv_prog_llvm_config_found 17816if test -n "$llvm_config_found"; then 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_config_found" >&5 17818$as_echo "$llvm_config_found" >&6; } 17819else 17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17821$as_echo "no" >&6; } 17822fi 17823 17824 17825 if test "x$with_clang_prefix" != "x"; then 17826 llvm_config="$with_clang_prefix/bin/llvm-config" 17827 if test -x "$llvm_config"; then 17828 llvm_config_found=yes 17829 fi 17830 fi 17831 if test "$llvm_config_found" != yes; then 17832 as_fn_error $? "llvm-config not found" "$LINENO" 5 17833 fi 17834 CLANG_CXXFLAGS=`$llvm_config --cxxflags` 17835 CLANG_LDFLAGS=`$llvm_config --ldflags` 17836 targets=`$llvm_config --targets-built` 17837 components="$targets asmparser bitreader support mc" 17838 $llvm_config --components | $GREP option > /dev/null 2> /dev/null 17839 if test $? -eq 0; then 17840 components="$components option" 17841 fi 17842 CLANG_LIBS=`$llvm_config --libs $components` 17843 CLANG_PREFIX=`$llvm_config --prefix` 17844 17845cat >>confdefs.h <<_ACEOF 17846#define CLANG_PREFIX "$CLANG_PREFIX" 17847_ACEOF 17848 17849 17850 SAVE_CPPFLAGS="$CPPFLAGS" 17851 CPPFLAGS="$CLANG_CXXFLAGS $CPPFLAGS" 17852 ac_ext=cpp 17853ac_cpp='$CXXCPP $CPPFLAGS' 17854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17857 17858 17859ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/SourceLocation.h" "ac_cv_header_clang_Basic_SourceLocation_h" "$ac_includes_default" 17860if test "x$ac_cv_header_clang_Basic_SourceLocation_h" = xyes; then : 17861 17862else 17863 as_fn_error $? "clang header file not found" "$LINENO" 5 17864fi 17865 17866 17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17868/* end confdefs.h. */ 17869#include <llvm/Support/Host.h> 17870 17871_ACEOF 17872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17873 $EGREP "getDefaultTargetTriple" >/dev/null 2>&1; then : 17874 17875else 17876 17877$as_echo "#define getDefaultTargetTriple getHostTriple" >>confdefs.h 17878 17879fi 17880rm -f conftest* 17881 17882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17883/* end confdefs.h. */ 17884#include <clang/Basic/SourceLocation.h> 17885 17886_ACEOF 17887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17888 $EGREP "getExpansionLineNumber" >/dev/null 2>&1; then : 17889 17890else 17891 17892$as_echo "#define getExpansionLineNumber getInstantiationLineNumber" >>confdefs.h 17893 17894fi 17895rm -f conftest* 17896 17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17898/* end confdefs.h. */ 17899#include <clang/Basic/Diagnostic.h> 17900 17901_ACEOF 17902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17903 $EGREP "DiagnosticsEngine" >/dev/null 2>&1; then : 17904 17905else 17906 17907$as_echo "#define DiagnosticsEngine Diagnostic" >>confdefs.h 17908 17909fi 17910rm -f conftest* 17911 17912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17913/* end confdefs.h. */ 17914#include <clang/Driver/Driver.h> 17915 17916_ACEOF 17917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17918 $EGREP "ArrayRef" >/dev/null 2>&1; then : 17919 17920$as_echo "#define USE_ARRAYREF /**/" >>confdefs.h 17921 17922fi 17923rm -f conftest* 17924 17925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17926/* end confdefs.h. */ 17927#include <clang/Driver/Driver.h> 17928 17929_ACEOF 17930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17931 $EGREP "CXXIsProduction" >/dev/null 2>&1; then : 17932 17933$as_echo "#define HAVE_CXXISPRODUCTION /**/" >>confdefs.h 17934 17935fi 17936rm -f conftest* 17937 17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17939/* end confdefs.h. */ 17940#include <clang/Driver/Driver.h> 17941 17942_ACEOF 17943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17944 $EGREP " IsProduction" >/dev/null 2>&1; then : 17945 17946$as_echo "#define HAVE_ISPRODUCTION /**/" >>confdefs.h 17947 17948fi 17949rm -f conftest* 17950 17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17952/* end confdefs.h. */ 17953#include <clang/AST/ASTConsumer.h> 17954 17955_ACEOF 17956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17957 $EGREP "void HandleTopLevelDecl\(" >/dev/null 2>&1; then : 17958 17959$as_echo "#define HandleTopLevelDeclReturn void" >>confdefs.h 17960 17961 17962$as_echo "#define HandleTopLevelDeclContinue /**/" >>confdefs.h 17963 17964else 17965 17966$as_echo "#define HandleTopLevelDeclReturn bool" >>confdefs.h 17967 17968 17969$as_echo "#define HandleTopLevelDeclContinue true" >>confdefs.h 17970 17971fi 17972rm -f conftest* 17973 17974 ac_fn_cxx_check_header_mongrel "$LINENO" "clang/Basic/DiagnosticOptions.h" "ac_cv_header_clang_Basic_DiagnosticOptions_h" "$ac_includes_default" 17975if test "x$ac_cv_header_clang_Basic_DiagnosticOptions_h" = xyes; then : 17976 17977$as_echo "#define HAVE_BASIC_DIAGNOSTICOPTIONS_H /**/" >>confdefs.h 17978 17979fi 17980 17981 17982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17983/* end confdefs.h. */ 17984#include <clang/Basic/TargetInfo.h> 17985int 17986main () 17987{ 17988 17989 using namespace clang; 17990 TargetOptions *TO; 17991 DiagnosticsEngine *Diags; 17992 TargetInfo::CreateTargetInfo(*Diags, TO); 17993 17994 ; 17995 return 0; 17996} 17997_ACEOF 17998if ac_fn_cxx_try_compile "$LINENO"; then : 17999 18000$as_echo "#define CREATETARGETINFO_TAKES_POINTER /**/" >>confdefs.h 18001 18002fi 18003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18005/* end confdefs.h. */ 18006#include <clang/Frontend/CompilerInstance.h> 18007int 18008main () 18009{ 18010 18011 using namespace clang; 18012 DiagnosticConsumer *client; 18013 CompilerInstance *Clang; 18014 Clang->createDiagnostics(client); 18015 18016 ; 18017 return 0; 18018} 18019_ACEOF 18020if ac_fn_cxx_try_compile "$LINENO"; then : 18021 18022else 18023 18024$as_echo "#define CREATEDIAGNOSTICS_TAKES_ARG /**/" >>confdefs.h 18025 18026fi 18027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18029/* end confdefs.h. */ 18030#include <clang/Lex/HeaderSearchOptions.h> 18031int 18032main () 18033{ 18034 18035 using namespace clang; 18036 HeaderSearchOptions HSO; 18037 HSO.AddPath("", frontend::Angled, false, false); 18038 18039 ; 18040 return 0; 18041} 18042_ACEOF 18043if ac_fn_cxx_try_compile "$LINENO"; then : 18044 18045$as_echo "#define ADDPATH_TAKES_4_ARGUMENTS /**/" >>confdefs.h 18046 18047fi 18048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18049 ac_ext=c 18050ac_cpp='$CPP $CPPFLAGS' 18051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18053ac_compiler_gnu=$ac_cv_c_compiler_gnu 18054 18055 CPPFLAGS="$SAVE_CPPFLAGS" 18056 18057 SAVE_LDFLAGS="$LDFLAGS" 18058 LDFLAGS="$CLANG_LDFLAGS $LDFLAGS" 18059 18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lclangEdit" >&5 18061$as_echo_n "checking for main in -lclangEdit... " >&6; } 18062if ${ac_cv_lib_clangEdit_main+:} false; then : 18063 $as_echo_n "(cached) " >&6 18064else 18065 ac_check_lib_save_LIBS=$LIBS 18066LIBS="-lclangEdit $LIBS" 18067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18068/* end confdefs.h. */ 18069 18070 18071int 18072main () 18073{ 18074return main (); 18075 ; 18076 return 0; 18077} 18078_ACEOF 18079if ac_fn_c_try_link "$LINENO"; then : 18080 ac_cv_lib_clangEdit_main=yes 18081else 18082 ac_cv_lib_clangEdit_main=no 18083fi 18084rm -f core conftest.err conftest.$ac_objext \ 18085 conftest$ac_exeext conftest.$ac_ext 18086LIBS=$ac_check_lib_save_LIBS 18087fi 18088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clangEdit_main" >&5 18089$as_echo "$ac_cv_lib_clangEdit_main" >&6; } 18090if test "x$ac_cv_lib_clangEdit_main" = xyes; then : 18091 LIB_CLANG_EDIT=-lclangEdit 18092fi 18093 18094 LDFLAGS="$SAVE_LDFLAGS" 18095 ;; 18096esac 18097 if test $with_clang = system; then 18098 HAVE_CLANG_TRUE= 18099 HAVE_CLANG_FALSE='#' 18100else 18101 HAVE_CLANG_TRUE='#' 18102 HAVE_CLANG_FALSE= 18103fi 18104 18105 18106 18107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 18108$as_echo_n "checking for C compiler vendor... " >&6; } 18109if ${ax_cv_c_compiler_vendor+:} false; then : 18110 $as_echo_n "(cached) " >&6 18111else 18112 ax_cv_c_compiler_vendor=unknown 18113 # note: don't check for gcc first since some other compilers define __GNUC__ 18114 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do 18115 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" 18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18117/* end confdefs.h. */ 18118 18119int 18120main () 18121{ 18122 18123#if !($vencpp) 18124 thisisanerror; 18125#endif 18126 18127 ; 18128 return 0; 18129} 18130_ACEOF 18131if ac_fn_c_try_compile "$LINENO"; then : 18132 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break 18133fi 18134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18135 done 18136 18137fi 18138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 18139$as_echo "$ax_cv_c_compiler_vendor" >&6; } 18140 18141 18142 WARNING_FLAGS="" 18143 18144 if test "${ax_cv_c_compiler_vendor}" = "clang"; then 18145 WARNING_FLAGS="-Wall" 18146 fi 18147 18148 18149 18150 18151PACKAGE_CFLAGS="$GMP_CPPFLAGS" 18152PACKAGE_LDFLAGS="$GMP_LDFLAGS" 18153PACKAGE_LIBS="-lisl -lgmp" 18154 18155# we need the expanded forms... 18156test "x$prefix" = xNONE && prefix=$ac_default_prefix 18157test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18158 18159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5 18160$as_echo_n "checking our pkgconfig libname... " >&6; } 18161test ".$ax_create_pkgconfig_libname" != "." || \ 18162ax_create_pkgconfig_libname="${PACKAGE_NAME}" 18163test ".$ax_create_pkgconfig_libname" != "." || \ 18164ax_create_pkgconfig_libname="$PACKAGE" 18165ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 18166ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"` 18167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5 18168$as_echo "$ax_create_pkgconfig_libname" >&6; } 18169 18170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5 18171$as_echo_n "checking our pkgconfig version... " >&6; } 18172test ".$ax_create_pkgconfig_version" != "." || \ 18173ax_create_pkgconfig_version="${PACKAGE_VERSION}" 18174test ".$ax_create_pkgconfig_version" != "." || \ 18175ax_create_pkgconfig_version="$VERSION" 18176ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 18177ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"` 18178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5 18179$as_echo "$ax_create_pkgconfig_version" >&6; } 18180 18181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5 18182$as_echo_n "checking our pkgconfig_libdir... " >&6; } 18183test ".$pkgconfig_libdir" = "." && \ 18184pkgconfig_libdir='${libdir}/pkgconfig' 18185ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"` 18186ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 18187ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"` 18188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5 18189$as_echo "$pkgconfig_libdir" >&6; } 18190test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && ( 18191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5 18192$as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; }) 18193 18194 18195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5 18196$as_echo_n "checking our pkgconfig_libfile... " >&6; } 18197test ".$pkgconfig_libfile" != "." || \ 18198pkgconfig_libfile="$ax_create_pkgconfig_libname.pc" 18199ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"` 18200ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"` 18201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5 18202$as_echo "$pkgconfig_libfile" >&6; } 18203test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && ( 18204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5 18205$as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; }) 18206 18207 18208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5 18209$as_echo_n "checking our package / suffix... " >&6; } 18210ax_create_pkgconfig_suffix="$program_suffix" 18211test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix="" 18212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5 18213$as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; } 18214 18215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5 18216$as_echo_n "checking our pkgconfig description... " >&6; } 18217ax_create_pkgconfig_description="$PACKAGE_SUMMARY" 18218test ".$ax_create_pkgconfig_description" != "." || \ 18219ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library" 18220ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 18221ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"` 18222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5 18223$as_echo "$ax_create_pkgconfig_description" >&6; } 18224 18225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5 18226$as_echo_n "checking our pkgconfig requires... " >&6; } 18227ax_create_pkgconfig_requires="$PACKAGE_REQUIRES" 18228ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 18229ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"` 18230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5 18231$as_echo "$ax_create_pkgconfig_requires" >&6; } 18232 18233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5 18234$as_echo_n "checking our pkgconfig ext libs... " >&6; } 18235ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS" 18236test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname" 18237ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS" 18238ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 18239ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"` 18240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5 18241$as_echo "$ax_create_pkgconfig_libs" >&6; } 18242 18243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5 18244$as_echo_n "checking our pkgconfig cppflags... " >&6; } 18245ax_create_pkgconfig_cppflags="$PACKAGE_CFLAGS" 18246ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 18247ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"` 18248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5 18249$as_echo "$ax_create_pkgconfig_cppflags" >&6; } 18250 18251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5 18252$as_echo_n "checking our pkgconfig ldflags... " >&6; } 18253ax_create_pkgconfig_ldflags="$PACKAGE_LDFLAGS" 18254ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 18255ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"` 18256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5 18257$as_echo "$ax_create_pkgconfig_ldflags" >&6; } 18258 18259test ".$ax_create_pkgconfig_generate" != "." || \ 18260ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc" 18261ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 18262ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"` 18263test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && ( 18264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5 18265$as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; }) 18266 18267if test ".$ax_create_pkgconfig_src_libdir" = "." ; then 18268ax_create_pkgconfig_src_libdir=`pwd` 18269ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" || 18270$as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18271 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \ 18272 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \ 18273 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null || 18274$as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" | 18275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18276 s//\1/ 18277 q 18278 } 18279 /^X\(\/\/\)[^/].*/{ 18280 s//\1/ 18281 q 18282 } 18283 /^X\(\/\/\)$/{ 18284 s//\1/ 18285 q 18286 } 18287 /^X\(\/\).*/{ 18288 s//\1/ 18289 q 18290 } 18291 s/.*/./; q'` 18292test ! -d $ax_create_pkgconfig_src_libdir/src || \ 18293ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src" 18294case ".$objdir" in 18295*libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac 18296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5 18297$as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; } 18298fi 18299 18300if test ".$ax_create_pkgconfig_src_headers" = "." ; then 18301ax_create_pkgconfig_src_headers=`pwd` 18302v="$ac_top_srcdir" ; 18303test ".$v" != "." || v="$ax_spec_dir" 18304test ".$v" != "." || v="$srcdir" 18305case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac 18306ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" || 18307$as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18308 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \ 18309 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \ 18310 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null || 18311$as_echo X"$ax_create_pkgconfig_src_headers/$v/x" | 18312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18313 s//\1/ 18314 q 18315 } 18316 /^X\(\/\/\)[^/].*/{ 18317 s//\1/ 18318 q 18319 } 18320 /^X\(\/\/\)$/{ 18321 s//\1/ 18322 q 18323 } 18324 /^X\(\/\).*/{ 18325 s//\1/ 18326 q 18327 } 18328 s/.*/./; q'` 18329test ! -d $ax_create_pkgconfig_src_headers/include || \ 18330ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include" 18331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5 18332$as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; } 18333fi 18334 18335 18336ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate" 18337 18338 18339 18340 18341 18342 18343 if test -f $srcdir/.git/HEAD; then 18344 GIT_HEAD="$srcdir/.git/index" 18345 GIT_REPO="$srcdir/.git" 18346 GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe` 18347 elif test -f $srcdir/GIT_HEAD_ID; then 18348 GIT_HEAD_ID=`cat $srcdir/GIT_HEAD_ID` 18349 else 18350 mysrcdir=`(cd $srcdir; pwd)` 18351 head=`basename $mysrcdir | sed -e 's/.*-//'` 18352 head2=`echo $head | sed -e 's/^0-9a-f//'` 18353 head3=`echo $head2 | sed -e 's/........................................//'` 18354 if test "x$head3" = "x" -a "x$head" = "x$head2"; then 18355 GIT_HEAD_ID="$head" 18356 else 18357 GIT_HEAD_ID="UNKNOWN" 18358 fi 18359 fi 18360 if test -z "$GIT_REPO" ; then 18361 GIT_HEAD_VERSION="$GIT_HEAD_ID" 18362 else 18363 GIT_HEAD_VERSION="\`GIT_DIR=$GIT_REPO git describe\`" 18364 fi 18365 18366echo '#define GIT_HEAD_ID "'$GIT_HEAD_ID'"' > gitversion.h 18367 18368 18369ac_config_headers="$ac_config_headers isl_config.h" 18370 18371ac_config_headers="$ac_config_headers include/isl/config.h" 18372 18373ac_config_files="$ac_config_files Makefile" 18374 18375ac_config_files="$ac_config_files doc/Makefile" 18376 18377if test $with_clang = system; then 18378 ac_config_files="$ac_config_files interface/Makefile" 18379 18380fi 18381ac_config_files="$ac_config_files bound_test.sh" 18382 18383ac_config_files="$ac_config_files codegen_test.sh" 18384 18385ac_config_files="$ac_config_files pip_test.sh" 18386 18387 18388cat >confcache <<\_ACEOF 18389# This file is a shell script that caches the results of configure 18390# tests run on this system so they can be shared between configure 18391# scripts and configure runs, see configure's option --config-cache. 18392# It is not useful on other systems. If it contains results you don't 18393# want to keep, you may remove or edit it. 18394# 18395# config.status only pays attention to the cache file if you give it 18396# the --recheck option to rerun configure. 18397# 18398# `ac_cv_env_foo' variables (set or unset) will be overridden when 18399# loading this file, other *unset* `ac_cv_foo' will be assigned the 18400# following values. 18401 18402_ACEOF 18403 18404# The following way of writing the cache mishandles newlines in values, 18405# but we know of no workaround that is simple, portable, and efficient. 18406# So, we kill variables containing newlines. 18407# Ultrix sh set writes to stderr and can't be redirected directly, 18408# and sets the high bit in the cache file unless we assign to the vars. 18409( 18410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18411 eval ac_val=\$$ac_var 18412 case $ac_val in #( 18413 *${as_nl}*) 18414 case $ac_var in #( 18415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18416$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18417 esac 18418 case $ac_var in #( 18419 _ | IFS | as_nl) ;; #( 18420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18421 *) { eval $ac_var=; unset $ac_var;} ;; 18422 esac ;; 18423 esac 18424 done 18425 18426 (set) 2>&1 | 18427 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18428 *${as_nl}ac_space=\ *) 18429 # `set' does not quote correctly, so add quotes: double-quote 18430 # substitution turns \\\\ into \\, and sed turns \\ into \. 18431 sed -n \ 18432 "s/'/'\\\\''/g; 18433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18434 ;; #( 18435 *) 18436 # `set' quotes correctly as required by POSIX, so do not add quotes. 18437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18438 ;; 18439 esac | 18440 sort 18441) | 18442 sed ' 18443 /^ac_cv_env_/b end 18444 t clear 18445 :clear 18446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18447 t end 18448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18449 :end' >>confcache 18450if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18451 if test -w "$cache_file"; then 18452 if test "x$cache_file" != "x/dev/null"; then 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18454$as_echo "$as_me: updating cache $cache_file" >&6;} 18455 if test ! -f "$cache_file" || test -h "$cache_file"; then 18456 cat confcache >"$cache_file" 18457 else 18458 case $cache_file in #( 18459 */* | ?:*) 18460 mv -f confcache "$cache_file"$$ && 18461 mv -f "$cache_file"$$ "$cache_file" ;; #( 18462 *) 18463 mv -f confcache "$cache_file" ;; 18464 esac 18465 fi 18466 fi 18467 else 18468 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18469$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18470 fi 18471fi 18472rm -f confcache 18473 18474test "x$prefix" = xNONE && prefix=$ac_default_prefix 18475# Let make expand exec_prefix. 18476test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18477 18478DEFS=-DHAVE_CONFIG_H 18479 18480ac_libobjs= 18481ac_ltlibobjs= 18482U= 18483for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18484 # 1. Remove the extension, and $U if already installed. 18485 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18486 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18487 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18488 # will be set to the directory where LIBOBJS objects are built. 18489 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18490 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18491done 18492LIBOBJS=$ac_libobjs 18493 18494LTLIBOBJS=$ac_ltlibobjs 18495 18496 18497 if test -n "$EXEEXT"; then 18498 am__EXEEXT_TRUE= 18499 am__EXEEXT_FALSE='#' 18500else 18501 am__EXEEXT_TRUE='#' 18502 am__EXEEXT_FALSE= 18503fi 18504 18505if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18506 as_fn_error $? "conditional \"AMDEP\" was never defined. 18507Usually this means the macro was only invoked conditionally." "$LINENO" 5 18508fi 18509if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18510 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18511Usually this means the macro was only invoked conditionally." "$LINENO" 5 18512fi 18513if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18514 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18515Usually this means the macro was only invoked conditionally." "$LINENO" 5 18516fi 18517if test -z "${GENERATE_DOC_TRUE}" && test -z "${GENERATE_DOC_FALSE}"; then 18518 as_fn_error $? "conditional \"GENERATE_DOC\" was never defined. 18519Usually this means the macro was only invoked conditionally." "$LINENO" 5 18520fi 18521if test -z "${NEED_GET_MEMORY_FUNCTIONS_TRUE}" && test -z "${NEED_GET_MEMORY_FUNCTIONS_FALSE}"; then 18522 as_fn_error $? "conditional \"NEED_GET_MEMORY_FUNCTIONS\" was never defined. 18523Usually this means the macro was only invoked conditionally." "$LINENO" 5 18524fi 18525if test -z "${HAVE_PIPLIB_TRUE}" && test -z "${HAVE_PIPLIB_FALSE}"; then 18526 as_fn_error $? "conditional \"HAVE_PIPLIB\" was never defined. 18527Usually this means the macro was only invoked conditionally." "$LINENO" 5 18528fi 18529if test -z "${HAVE_CLANG_TRUE}" && test -z "${HAVE_CLANG_FALSE}"; then 18530 as_fn_error $? "conditional \"HAVE_CLANG\" was never defined. 18531Usually this means the macro was only invoked conditionally." "$LINENO" 5 18532fi 18533 18534: "${CONFIG_STATUS=./config.status}" 18535ac_write_fail=0 18536ac_clean_files_save=$ac_clean_files 18537ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18538{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18539$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18540as_write_fail=0 18541cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18542#! $SHELL 18543# Generated by $as_me. 18544# Run this file to recreate the current configuration. 18545# Compiler output produced by configure, useful for debugging 18546# configure, is in config.log if it exists. 18547 18548debug=false 18549ac_cs_recheck=false 18550ac_cs_silent=false 18551 18552SHELL=\${CONFIG_SHELL-$SHELL} 18553export SHELL 18554_ASEOF 18555cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18556## -------------------- ## 18557## M4sh Initialization. ## 18558## -------------------- ## 18559 18560# Be more Bourne compatible 18561DUALCASE=1; export DUALCASE # for MKS sh 18562if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18563 emulate sh 18564 NULLCMD=: 18565 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18566 # is contrary to our usage. Disable this feature. 18567 alias -g '${1+"$@"}'='"$@"' 18568 setopt NO_GLOB_SUBST 18569else 18570 case `(set -o) 2>/dev/null` in #( 18571 *posix*) : 18572 set -o posix ;; #( 18573 *) : 18574 ;; 18575esac 18576fi 18577 18578 18579as_nl=' 18580' 18581export as_nl 18582# Printing a long string crashes Solaris 7 /usr/bin/printf. 18583as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18584as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18585as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18586# Prefer a ksh shell builtin over an external printf program on Solaris, 18587# but without wasting forks for bash or zsh. 18588if test -z "$BASH_VERSION$ZSH_VERSION" \ 18589 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18590 as_echo='print -r --' 18591 as_echo_n='print -rn --' 18592elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18593 as_echo='printf %s\n' 18594 as_echo_n='printf %s' 18595else 18596 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18597 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18598 as_echo_n='/usr/ucb/echo -n' 18599 else 18600 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18601 as_echo_n_body='eval 18602 arg=$1; 18603 case $arg in #( 18604 *"$as_nl"*) 18605 expr "X$arg" : "X\\(.*\\)$as_nl"; 18606 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18607 esac; 18608 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18609 ' 18610 export as_echo_n_body 18611 as_echo_n='sh -c $as_echo_n_body as_echo' 18612 fi 18613 export as_echo_body 18614 as_echo='sh -c $as_echo_body as_echo' 18615fi 18616 18617# The user is always right. 18618if test "${PATH_SEPARATOR+set}" != set; then 18619 PATH_SEPARATOR=: 18620 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18621 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18622 PATH_SEPARATOR=';' 18623 } 18624fi 18625 18626 18627# IFS 18628# We need space, tab and new line, in precisely that order. Quoting is 18629# there to prevent editors from complaining about space-tab. 18630# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18631# splitting by setting IFS to empty value.) 18632IFS=" "" $as_nl" 18633 18634# Find who we are. Look in the path if we contain no directory separator. 18635as_myself= 18636case $0 in #(( 18637 *[\\/]* ) as_myself=$0 ;; 18638 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18639for as_dir in $PATH 18640do 18641 IFS=$as_save_IFS 18642 test -z "$as_dir" && as_dir=. 18643 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18644 done 18645IFS=$as_save_IFS 18646 18647 ;; 18648esac 18649# We did not find ourselves, most probably we were run as `sh COMMAND' 18650# in which case we are not to be found in the path. 18651if test "x$as_myself" = x; then 18652 as_myself=$0 18653fi 18654if test ! -f "$as_myself"; then 18655 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18656 exit 1 18657fi 18658 18659# Unset variables that we do not need and which cause bugs (e.g. in 18660# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18661# suppresses any "Segmentation fault" message there. '((' could 18662# trigger a bug in pdksh 5.2.14. 18663for as_var in BASH_ENV ENV MAIL MAILPATH 18664do eval test x\${$as_var+set} = xset \ 18665 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18666done 18667PS1='$ ' 18668PS2='> ' 18669PS4='+ ' 18670 18671# NLS nuisances. 18672LC_ALL=C 18673export LC_ALL 18674LANGUAGE=C 18675export LANGUAGE 18676 18677# CDPATH. 18678(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18679 18680 18681# as_fn_error STATUS ERROR [LINENO LOG_FD] 18682# ---------------------------------------- 18683# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18684# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18685# script with STATUS, using 1 if that was 0. 18686as_fn_error () 18687{ 18688 as_status=$1; test $as_status -eq 0 && as_status=1 18689 if test "$4"; then 18690 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18691 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18692 fi 18693 $as_echo "$as_me: error: $2" >&2 18694 as_fn_exit $as_status 18695} # as_fn_error 18696 18697 18698# as_fn_set_status STATUS 18699# ----------------------- 18700# Set $? to STATUS, without forking. 18701as_fn_set_status () 18702{ 18703 return $1 18704} # as_fn_set_status 18705 18706# as_fn_exit STATUS 18707# ----------------- 18708# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18709as_fn_exit () 18710{ 18711 set +e 18712 as_fn_set_status $1 18713 exit $1 18714} # as_fn_exit 18715 18716# as_fn_unset VAR 18717# --------------- 18718# Portably unset VAR. 18719as_fn_unset () 18720{ 18721 { eval $1=; unset $1;} 18722} 18723as_unset=as_fn_unset 18724# as_fn_append VAR VALUE 18725# ---------------------- 18726# Append the text in VALUE to the end of the definition contained in VAR. Take 18727# advantage of any shell optimizations that allow amortized linear growth over 18728# repeated appends, instead of the typical quadratic growth present in naive 18729# implementations. 18730if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18731 eval 'as_fn_append () 18732 { 18733 eval $1+=\$2 18734 }' 18735else 18736 as_fn_append () 18737 { 18738 eval $1=\$$1\$2 18739 } 18740fi # as_fn_append 18741 18742# as_fn_arith ARG... 18743# ------------------ 18744# Perform arithmetic evaluation on the ARGs, and store the result in the 18745# global $as_val. Take advantage of shells that can avoid forks. The arguments 18746# must be portable across $(()) and expr. 18747if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18748 eval 'as_fn_arith () 18749 { 18750 as_val=$(( $* )) 18751 }' 18752else 18753 as_fn_arith () 18754 { 18755 as_val=`expr "$@" || test $? -eq 1` 18756 } 18757fi # as_fn_arith 18758 18759 18760if expr a : '\(a\)' >/dev/null 2>&1 && 18761 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18762 as_expr=expr 18763else 18764 as_expr=false 18765fi 18766 18767if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18768 as_basename=basename 18769else 18770 as_basename=false 18771fi 18772 18773if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18774 as_dirname=dirname 18775else 18776 as_dirname=false 18777fi 18778 18779as_me=`$as_basename -- "$0" || 18780$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18781 X"$0" : 'X\(//\)$' \| \ 18782 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18783$as_echo X/"$0" | 18784 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18785 s//\1/ 18786 q 18787 } 18788 /^X\/\(\/\/\)$/{ 18789 s//\1/ 18790 q 18791 } 18792 /^X\/\(\/\).*/{ 18793 s//\1/ 18794 q 18795 } 18796 s/.*/./; q'` 18797 18798# Avoid depending upon Character Ranges. 18799as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18800as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18801as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18802as_cr_digits='0123456789' 18803as_cr_alnum=$as_cr_Letters$as_cr_digits 18804 18805ECHO_C= ECHO_N= ECHO_T= 18806case `echo -n x` in #((((( 18807-n*) 18808 case `echo 'xy\c'` in 18809 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18810 xy) ECHO_C='\c';; 18811 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18812 ECHO_T=' ';; 18813 esac;; 18814*) 18815 ECHO_N='-n';; 18816esac 18817 18818rm -f conf$$ conf$$.exe conf$$.file 18819if test -d conf$$.dir; then 18820 rm -f conf$$.dir/conf$$.file 18821else 18822 rm -f conf$$.dir 18823 mkdir conf$$.dir 2>/dev/null 18824fi 18825if (echo >conf$$.file) 2>/dev/null; then 18826 if ln -s conf$$.file conf$$ 2>/dev/null; then 18827 as_ln_s='ln -s' 18828 # ... but there are two gotchas: 18829 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18830 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18831 # In both cases, we have to default to `cp -pR'. 18832 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18833 as_ln_s='cp -pR' 18834 elif ln conf$$.file conf$$ 2>/dev/null; then 18835 as_ln_s=ln 18836 else 18837 as_ln_s='cp -pR' 18838 fi 18839else 18840 as_ln_s='cp -pR' 18841fi 18842rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18843rmdir conf$$.dir 2>/dev/null 18844 18845 18846# as_fn_mkdir_p 18847# ------------- 18848# Create "$as_dir" as a directory, including parents if necessary. 18849as_fn_mkdir_p () 18850{ 18851 18852 case $as_dir in #( 18853 -*) as_dir=./$as_dir;; 18854 esac 18855 test -d "$as_dir" || eval $as_mkdir_p || { 18856 as_dirs= 18857 while :; do 18858 case $as_dir in #( 18859 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18860 *) as_qdir=$as_dir;; 18861 esac 18862 as_dirs="'$as_qdir' $as_dirs" 18863 as_dir=`$as_dirname -- "$as_dir" || 18864$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18865 X"$as_dir" : 'X\(//\)[^/]' \| \ 18866 X"$as_dir" : 'X\(//\)$' \| \ 18867 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18868$as_echo X"$as_dir" | 18869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18870 s//\1/ 18871 q 18872 } 18873 /^X\(\/\/\)[^/].*/{ 18874 s//\1/ 18875 q 18876 } 18877 /^X\(\/\/\)$/{ 18878 s//\1/ 18879 q 18880 } 18881 /^X\(\/\).*/{ 18882 s//\1/ 18883 q 18884 } 18885 s/.*/./; q'` 18886 test -d "$as_dir" && break 18887 done 18888 test -z "$as_dirs" || eval "mkdir $as_dirs" 18889 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18890 18891 18892} # as_fn_mkdir_p 18893if mkdir -p . 2>/dev/null; then 18894 as_mkdir_p='mkdir -p "$as_dir"' 18895else 18896 test -d ./-p && rmdir ./-p 18897 as_mkdir_p=false 18898fi 18899 18900 18901# as_fn_executable_p FILE 18902# ----------------------- 18903# Test if FILE is an executable regular file. 18904as_fn_executable_p () 18905{ 18906 test -f "$1" && test -x "$1" 18907} # as_fn_executable_p 18908as_test_x='test -x' 18909as_executable_p=as_fn_executable_p 18910 18911# Sed expression to map a string onto a valid CPP name. 18912as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18913 18914# Sed expression to map a string onto a valid variable name. 18915as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18916 18917 18918exec 6>&1 18919## ----------------------------------- ## 18920## Main body of $CONFIG_STATUS script. ## 18921## ----------------------------------- ## 18922_ASEOF 18923test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18924 18925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18926# Save the log message, to keep $0 and so on meaningful, and to 18927# report actual input values of CONFIG_FILES etc. instead of their 18928# values after options handling. 18929ac_log=" 18930This file was extended by isl $as_me 0.12.2, which was 18931generated by GNU Autoconf 2.69. Invocation command line was 18932 18933 CONFIG_FILES = $CONFIG_FILES 18934 CONFIG_HEADERS = $CONFIG_HEADERS 18935 CONFIG_LINKS = $CONFIG_LINKS 18936 CONFIG_COMMANDS = $CONFIG_COMMANDS 18937 $ $0 $@ 18938 18939on `(hostname || uname -n) 2>/dev/null | sed 1q` 18940" 18941 18942_ACEOF 18943 18944case $ac_config_files in *" 18945"*) set x $ac_config_files; shift; ac_config_files=$*;; 18946esac 18947 18948case $ac_config_headers in *" 18949"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18950esac 18951 18952 18953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18954# Files that config.status was made for. 18955config_files="$ac_config_files" 18956config_headers="$ac_config_headers" 18957config_commands="$ac_config_commands" 18958 18959_ACEOF 18960 18961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18962ac_cs_usage="\ 18963\`$as_me' instantiates files and other configuration actions 18964from templates according to the current configuration. Unless the files 18965and actions are specified as TAGs, all are instantiated by default. 18966 18967Usage: $0 [OPTION]... [TAG]... 18968 18969 -h, --help print this help, then exit 18970 -V, --version print version number and configuration settings, then exit 18971 --config print configuration, then exit 18972 -q, --quiet, --silent 18973 do not print progress messages 18974 -d, --debug don't remove temporary files 18975 --recheck update $as_me by reconfiguring in the same conditions 18976 --file=FILE[:TEMPLATE] 18977 instantiate the configuration file FILE 18978 --header=FILE[:TEMPLATE] 18979 instantiate the configuration header FILE 18980 18981Configuration files: 18982$config_files 18983 18984Configuration headers: 18985$config_headers 18986 18987Configuration commands: 18988$config_commands 18989 18990Report bugs to <isl-development@googlegroups.com>." 18991 18992_ACEOF 18993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18994ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18995ac_cs_version="\\ 18996isl config.status 0.12.2 18997configured by $0, generated by GNU Autoconf 2.69, 18998 with options \\"\$ac_cs_config\\" 18999 19000Copyright (C) 2012 Free Software Foundation, Inc. 19001This config.status script is free software; the Free Software Foundation 19002gives unlimited permission to copy, distribute and modify it." 19003 19004ac_pwd='$ac_pwd' 19005srcdir='$srcdir' 19006INSTALL='$INSTALL' 19007MKDIR_P='$MKDIR_P' 19008AWK='$AWK' 19009test -n "\$AWK" || AWK=awk 19010_ACEOF 19011 19012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19013# The default lists apply if the user does not specify any file. 19014ac_need_defaults=: 19015while test $# != 0 19016do 19017 case $1 in 19018 --*=?*) 19019 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19020 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19021 ac_shift=: 19022 ;; 19023 --*=) 19024 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19025 ac_optarg= 19026 ac_shift=: 19027 ;; 19028 *) 19029 ac_option=$1 19030 ac_optarg=$2 19031 ac_shift=shift 19032 ;; 19033 esac 19034 19035 case $ac_option in 19036 # Handling of the options. 19037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19038 ac_cs_recheck=: ;; 19039 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19040 $as_echo "$ac_cs_version"; exit ;; 19041 --config | --confi | --conf | --con | --co | --c ) 19042 $as_echo "$ac_cs_config"; exit ;; 19043 --debug | --debu | --deb | --de | --d | -d ) 19044 debug=: ;; 19045 --file | --fil | --fi | --f ) 19046 $ac_shift 19047 case $ac_optarg in 19048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19049 '') as_fn_error $? "missing file argument" ;; 19050 esac 19051 as_fn_append CONFIG_FILES " '$ac_optarg'" 19052 ac_need_defaults=false;; 19053 --header | --heade | --head | --hea ) 19054 $ac_shift 19055 case $ac_optarg in 19056 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19057 esac 19058 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19059 ac_need_defaults=false;; 19060 --he | --h) 19061 # Conflict between --help and --header 19062 as_fn_error $? "ambiguous option: \`$1' 19063Try \`$0 --help' for more information.";; 19064 --help | --hel | -h ) 19065 $as_echo "$ac_cs_usage"; exit ;; 19066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19067 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19068 ac_cs_silent=: ;; 19069 19070 # This is an error. 19071 -*) as_fn_error $? "unrecognized option: \`$1' 19072Try \`$0 --help' for more information." ;; 19073 19074 *) as_fn_append ac_config_targets " $1" 19075 ac_need_defaults=false ;; 19076 19077 esac 19078 shift 19079done 19080 19081ac_configure_extra_args= 19082 19083if $ac_cs_silent; then 19084 exec 6>/dev/null 19085 ac_configure_extra_args="$ac_configure_extra_args --silent" 19086fi 19087 19088_ACEOF 19089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19090if \$ac_cs_recheck; then 19091 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19092 shift 19093 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19094 CONFIG_SHELL='$SHELL' 19095 export CONFIG_SHELL 19096 exec "\$@" 19097fi 19098 19099_ACEOF 19100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19101exec 5>>config.log 19102{ 19103 echo 19104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19105## Running $as_me. ## 19106_ASBOX 19107 $as_echo "$ac_log" 19108} >&5 19109 19110_ACEOF 19111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19112# 19113# INIT-COMMANDS 19114# 19115AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19116 19117 19118# The HP-UX ksh and POSIX shell print the target directory to stdout 19119# if CDPATH is set. 19120(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19121 19122sed_quote_subst='$sed_quote_subst' 19123double_quote_subst='$double_quote_subst' 19124delay_variable_subst='$delay_variable_subst' 19125macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19126macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19127enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19128enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19129pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19130enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19131SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19132ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19133PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19134host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19135host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19136host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19137build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19138build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19139build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19140SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19141Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19142GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19143EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19144FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19145LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19146NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19147LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19148max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19149ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19150exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19151lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19152lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19153lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19154lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19155lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19156reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19157reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19158OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19159deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19160file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19161file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19162want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19163DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19164sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19165AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19166AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19167archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19168STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19169RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19170old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19171old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19172old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19173lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19174CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19175CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19176compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19177GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19178lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19179lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19180lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19181lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19182lt_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"`' 19183lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19184nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19185lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19186objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19187MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19188lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19189lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19190lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19191lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19192lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19193need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19194MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19195DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19196NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19197LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19198OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19199OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19200libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19201shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19202extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19203archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19204enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19205export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19206whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19207compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19208old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19209old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19210archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19211archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19212module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19213module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19214with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19215allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19216no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19217hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19218hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19219hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19220hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19221hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19222hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19223hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19224inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19225link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19226always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19227export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19228exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19229include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19230prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19231postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19232file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19233variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19234need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19235need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19236version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19237runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19238shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19239shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19240libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19241library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19242soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19243install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19244postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19245postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19246finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19247finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19248hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19249sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19250sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19251hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19252enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19253enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19254enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19255old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19256striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19257compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 19258predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 19259postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 19260predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 19261postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 19262compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 19263LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 19264reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 19265reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19266old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19267compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 19268GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 19269lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 19270lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 19271lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 19272lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 19273lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 19274archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 19275enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 19276export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19277whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19278compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 19279old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19280old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19281archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19282archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19283module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19284module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19285with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19286allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19287no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19288hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19289hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19290hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19291hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19292hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19293hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19294hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19295inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19296link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19297always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19298export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19299exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19300include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19301prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19302postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19303file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19304hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19305compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19306predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19307postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19308predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19309postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19310compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19311 19312LTCC='$LTCC' 19313LTCFLAGS='$LTCFLAGS' 19314compiler='$compiler_DEFAULT' 19315 19316# A function that is used when there is no print builtin or printf. 19317func_fallback_echo () 19318{ 19319 eval 'cat <<_LTECHO_EOF 19320\$1 19321_LTECHO_EOF' 19322} 19323 19324# Quote evaled strings. 19325for var in SHELL \ 19326ECHO \ 19327PATH_SEPARATOR \ 19328SED \ 19329GREP \ 19330EGREP \ 19331FGREP \ 19332LD \ 19333NM \ 19334LN_S \ 19335lt_SP2NL \ 19336lt_NL2SP \ 19337reload_flag \ 19338OBJDUMP \ 19339deplibs_check_method \ 19340file_magic_cmd \ 19341file_magic_glob \ 19342want_nocaseglob \ 19343DLLTOOL \ 19344sharedlib_from_linklib_cmd \ 19345AR \ 19346AR_FLAGS \ 19347archiver_list_spec \ 19348STRIP \ 19349RANLIB \ 19350CC \ 19351CFLAGS \ 19352compiler \ 19353lt_cv_sys_global_symbol_pipe \ 19354lt_cv_sys_global_symbol_to_cdecl \ 19355lt_cv_sys_global_symbol_to_import \ 19356lt_cv_sys_global_symbol_to_c_name_address \ 19357lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19358lt_cv_nm_interface \ 19359nm_file_list_spec \ 19360lt_prog_compiler_no_builtin_flag \ 19361lt_prog_compiler_pic \ 19362lt_prog_compiler_wl \ 19363lt_prog_compiler_static \ 19364lt_cv_prog_compiler_c_o \ 19365need_locks \ 19366MANIFEST_TOOL \ 19367DSYMUTIL \ 19368NMEDIT \ 19369LIPO \ 19370OTOOL \ 19371OTOOL64 \ 19372shrext_cmds \ 19373export_dynamic_flag_spec \ 19374whole_archive_flag_spec \ 19375compiler_needs_object \ 19376with_gnu_ld \ 19377allow_undefined_flag \ 19378no_undefined_flag \ 19379hardcode_libdir_flag_spec \ 19380hardcode_libdir_separator \ 19381exclude_expsyms \ 19382include_expsyms \ 19383file_list_spec \ 19384variables_saved_for_relink \ 19385libname_spec \ 19386library_names_spec \ 19387soname_spec \ 19388install_override_mode \ 19389finish_eval \ 19390old_striplib \ 19391striplib \ 19392compiler_lib_search_dirs \ 19393predep_objects \ 19394postdep_objects \ 19395predeps \ 19396postdeps \ 19397compiler_lib_search_path \ 19398LD_CXX \ 19399reload_flag_CXX \ 19400compiler_CXX \ 19401lt_prog_compiler_no_builtin_flag_CXX \ 19402lt_prog_compiler_pic_CXX \ 19403lt_prog_compiler_wl_CXX \ 19404lt_prog_compiler_static_CXX \ 19405lt_cv_prog_compiler_c_o_CXX \ 19406export_dynamic_flag_spec_CXX \ 19407whole_archive_flag_spec_CXX \ 19408compiler_needs_object_CXX \ 19409with_gnu_ld_CXX \ 19410allow_undefined_flag_CXX \ 19411no_undefined_flag_CXX \ 19412hardcode_libdir_flag_spec_CXX \ 19413hardcode_libdir_separator_CXX \ 19414exclude_expsyms_CXX \ 19415include_expsyms_CXX \ 19416file_list_spec_CXX \ 19417compiler_lib_search_dirs_CXX \ 19418predep_objects_CXX \ 19419postdep_objects_CXX \ 19420predeps_CXX \ 19421postdeps_CXX \ 19422compiler_lib_search_path_CXX; do 19423 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19424 *[\\\\\\\`\\"\\\$]*) 19425 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19426 ;; 19427 *) 19428 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19429 ;; 19430 esac 19431done 19432 19433# Double-quote double-evaled strings. 19434for var in reload_cmds \ 19435old_postinstall_cmds \ 19436old_postuninstall_cmds \ 19437old_archive_cmds \ 19438extract_expsyms_cmds \ 19439old_archive_from_new_cmds \ 19440old_archive_from_expsyms_cmds \ 19441archive_cmds \ 19442archive_expsym_cmds \ 19443module_cmds \ 19444module_expsym_cmds \ 19445export_symbols_cmds \ 19446prelink_cmds \ 19447postlink_cmds \ 19448postinstall_cmds \ 19449postuninstall_cmds \ 19450finish_cmds \ 19451sys_lib_search_path_spec \ 19452sys_lib_dlsearch_path_spec \ 19453reload_cmds_CXX \ 19454old_archive_cmds_CXX \ 19455old_archive_from_new_cmds_CXX \ 19456old_archive_from_expsyms_cmds_CXX \ 19457archive_cmds_CXX \ 19458archive_expsym_cmds_CXX \ 19459module_cmds_CXX \ 19460module_expsym_cmds_CXX \ 19461export_symbols_cmds_CXX \ 19462prelink_cmds_CXX \ 19463postlink_cmds_CXX; do 19464 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19465 *[\\\\\\\`\\"\\\$]*) 19466 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19467 ;; 19468 *) 19469 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19470 ;; 19471 esac 19472done 19473 19474ac_aux_dir='$ac_aux_dir' 19475 19476# See if we are running on zsh, and set the options that allow our 19477# commands through without removal of \ escapes INIT. 19478if test -n "\${ZSH_VERSION+set}"; then 19479 setopt NO_GLOB_SUBST 19480fi 19481 19482 19483 PACKAGE='$PACKAGE' 19484 VERSION='$VERSION' 19485 RM='$RM' 19486 ofile='$ofile' 19487 19488 19489 19490 19491 19492# variables for create stdint.h replacement 19493PACKAGE="$PACKAGE" 19494VERSION="$VERSION" 19495ac_stdint_h="$ac_stdint_h" 19496_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp` 19497ac_cv_stdint_message="$ac_cv_stdint_message" 19498ac_cv_header_stdint_t="$ac_cv_header_stdint_t" 19499ac_cv_header_stdint_x="$ac_cv_header_stdint_x" 19500ac_cv_header_stdint_o="$ac_cv_header_stdint_o" 19501ac_cv_header_stdint_u="$ac_cv_header_stdint_u" 19502ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 19503ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 19504ac_cv_char_data_model="$ac_cv_char_data_model" 19505ac_cv_long_data_model="$ac_cv_long_data_model" 19506ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 19507ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 19508ac_cv_type_intmax_t="$ac_cv_type_intmax_t" 19509 19510 19511ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate" 19512pkgconfig_prefix='$prefix' 19513pkgconfig_execprefix='$exec_prefix' 19514pkgconfig_bindir='$bindir' 19515pkgconfig_libdir='$libdir' 19516pkgconfig_includedir='$includedir' 19517pkgconfig_datarootdir='$datarootdir' 19518pkgconfig_datadir='$datadir' 19519pkgconfig_sysconfdir='$sysconfdir' 19520pkgconfig_suffix='$ax_create_pkgconfig_suffix' 19521pkgconfig_package='$PACKAGE_NAME' 19522pkgconfig_libname='$ax_create_pkgconfig_libname' 19523pkgconfig_description='$ax_create_pkgconfig_description' 19524pkgconfig_version='$ax_create_pkgconfig_version' 19525pkgconfig_requires='$ax_create_pkgconfig_requires' 19526pkgconfig_libs='$ax_create_pkgconfig_libs' 19527pkgconfig_ldflags='$ax_create_pkgconfig_ldflags' 19528pkgconfig_cppflags='$ax_create_pkgconfig_cppflags' 19529pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir' 19530pkgconfig_src_headers='$ax_create_pkgconfig_src_headers' 19531 19532 19533_ACEOF 19534 19535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19536 19537# Handling of arguments. 19538for ac_config_target in $ac_config_targets 19539do 19540 case $ac_config_target in 19541 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19542 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19543 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;; 19544 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;; 19545 "isl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS isl_config.h" ;; 19546 "include/isl/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/isl/config.h" ;; 19547 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19548 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 19549 "interface/Makefile") CONFIG_FILES="$CONFIG_FILES interface/Makefile" ;; 19550 "bound_test.sh") CONFIG_FILES="$CONFIG_FILES bound_test.sh" ;; 19551 "codegen_test.sh") CONFIG_FILES="$CONFIG_FILES codegen_test.sh" ;; 19552 "pip_test.sh") CONFIG_FILES="$CONFIG_FILES pip_test.sh" ;; 19553 19554 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19555 esac 19556done 19557 19558 19559# If the user did not use the arguments to specify the items to instantiate, 19560# then the envvar interface is used. Set only those that are not. 19561# We use the long form for the default assignment because of an extremely 19562# bizarre bug on SunOS 4.1.3. 19563if $ac_need_defaults; then 19564 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19565 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19566 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19567fi 19568 19569# Have a temporary directory for convenience. Make it in the build tree 19570# simply because there is no reason against having it here, and in addition, 19571# creating and moving files from /tmp can sometimes cause problems. 19572# Hook for its removal unless debugging. 19573# Note that there is a small window in which the directory will not be cleaned: 19574# after its creation but before its name has been assigned to `$tmp'. 19575$debug || 19576{ 19577 tmp= ac_tmp= 19578 trap 'exit_status=$? 19579 : "${ac_tmp:=$tmp}" 19580 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19581' 0 19582 trap 'as_fn_exit 1' 1 2 13 15 19583} 19584# Create a (secure) tmp directory for tmp files. 19585 19586{ 19587 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19588 test -d "$tmp" 19589} || 19590{ 19591 tmp=./conf$$-$RANDOM 19592 (umask 077 && mkdir "$tmp") 19593} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19594ac_tmp=$tmp 19595 19596# Set up the scripts for CONFIG_FILES section. 19597# No need to generate them if there are no CONFIG_FILES. 19598# This happens for instance with `./config.status config.h'. 19599if test -n "$CONFIG_FILES"; then 19600 19601 19602ac_cr=`echo X | tr X '\015'` 19603# On cygwin, bash can eat \r inside `` if the user requested igncr. 19604# But we know of no other shell where ac_cr would be empty at this 19605# point, so we can use a bashism as a fallback. 19606if test "x$ac_cr" = x; then 19607 eval ac_cr=\$\'\\r\' 19608fi 19609ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19610if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19611 ac_cs_awk_cr='\\r' 19612else 19613 ac_cs_awk_cr=$ac_cr 19614fi 19615 19616echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19617_ACEOF 19618 19619 19620{ 19621 echo "cat >conf$$subs.awk <<_ACEOF" && 19622 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19623 echo "_ACEOF" 19624} >conf$$subs.sh || 19625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19626ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19627ac_delim='%!_!# ' 19628for ac_last_try in false false false false false :; do 19629 . ./conf$$subs.sh || 19630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19631 19632 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19633 if test $ac_delim_n = $ac_delim_num; then 19634 break 19635 elif $ac_last_try; then 19636 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19637 else 19638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19639 fi 19640done 19641rm -f conf$$subs.sh 19642 19643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19644cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19645_ACEOF 19646sed -n ' 19647h 19648s/^/S["/; s/!.*/"]=/ 19649p 19650g 19651s/^[^!]*!// 19652:repl 19653t repl 19654s/'"$ac_delim"'$// 19655t delim 19656:nl 19657h 19658s/\(.\{148\}\)..*/\1/ 19659t more1 19660s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19661p 19662n 19663b repl 19664:more1 19665s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19666p 19667g 19668s/.\{148\}// 19669t nl 19670:delim 19671h 19672s/\(.\{148\}\)..*/\1/ 19673t more2 19674s/["\\]/\\&/g; s/^/"/; s/$/"/ 19675p 19676b 19677:more2 19678s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19679p 19680g 19681s/.\{148\}// 19682t delim 19683' <conf$$subs.awk | sed ' 19684/^[^""]/{ 19685 N 19686 s/\n// 19687} 19688' >>$CONFIG_STATUS || ac_write_fail=1 19689rm -f conf$$subs.awk 19690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19691_ACAWK 19692cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19693 for (key in S) S_is_set[key] = 1 19694 FS = "" 19695 19696} 19697{ 19698 line = $ 0 19699 nfields = split(line, field, "@") 19700 substed = 0 19701 len = length(field[1]) 19702 for (i = 2; i < nfields; i++) { 19703 key = field[i] 19704 keylen = length(key) 19705 if (S_is_set[key]) { 19706 value = S[key] 19707 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19708 len += length(value) + length(field[++i]) 19709 substed = 1 19710 } else 19711 len += 1 + keylen 19712 } 19713 19714 print line 19715} 19716 19717_ACAWK 19718_ACEOF 19719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19720if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19721 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19722else 19723 cat 19724fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19725 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19726_ACEOF 19727 19728# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19729# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19730# trailing colons and then remove the whole line if VPATH becomes empty 19731# (actually we leave an empty line to preserve line numbers). 19732if test "x$srcdir" = x.; then 19733 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19734h 19735s/// 19736s/^/:/ 19737s/[ ]*$/:/ 19738s/:\$(srcdir):/:/g 19739s/:\${srcdir}:/:/g 19740s/:@srcdir@:/:/g 19741s/^:*// 19742s/:*$// 19743x 19744s/\(=[ ]*\).*/\1/ 19745G 19746s/\n// 19747s/^[^=]*=[ ]*$// 19748}' 19749fi 19750 19751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19752fi # test -n "$CONFIG_FILES" 19753 19754# Set up the scripts for CONFIG_HEADERS section. 19755# No need to generate them if there are no CONFIG_HEADERS. 19756# This happens for instance with `./config.status Makefile'. 19757if test -n "$CONFIG_HEADERS"; then 19758cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19759BEGIN { 19760_ACEOF 19761 19762# Transform confdefs.h into an awk script `defines.awk', embedded as 19763# here-document in config.status, that substitutes the proper values into 19764# config.h.in to produce config.h. 19765 19766# Create a delimiter string that does not exist in confdefs.h, to ease 19767# handling of long lines. 19768ac_delim='%!_!# ' 19769for ac_last_try in false false :; do 19770 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19771 if test -z "$ac_tt"; then 19772 break 19773 elif $ac_last_try; then 19774 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19775 else 19776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19777 fi 19778done 19779 19780# For the awk script, D is an array of macro values keyed by name, 19781# likewise P contains macro parameters if any. Preserve backslash 19782# newline sequences. 19783 19784ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19785sed -n ' 19786s/.\{148\}/&'"$ac_delim"'/g 19787t rset 19788:rset 19789s/^[ ]*#[ ]*define[ ][ ]*/ / 19790t def 19791d 19792:def 19793s/\\$// 19794t bsnl 19795s/["\\]/\\&/g 19796s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19797D["\1"]=" \3"/p 19798s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19799d 19800:bsnl 19801s/["\\]/\\&/g 19802s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19803D["\1"]=" \3\\\\\\n"\\/p 19804t cont 19805s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19806t cont 19807d 19808:cont 19809n 19810s/.\{148\}/&'"$ac_delim"'/g 19811t clear 19812:clear 19813s/\\$// 19814t bsnlc 19815s/["\\]/\\&/g; s/^/"/; s/$/"/p 19816d 19817:bsnlc 19818s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19819b cont 19820' <confdefs.h | sed ' 19821s/'"$ac_delim"'/"\\\ 19822"/g' >>$CONFIG_STATUS || ac_write_fail=1 19823 19824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19825 for (key in D) D_is_set[key] = 1 19826 FS = "" 19827} 19828/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19829 line = \$ 0 19830 split(line, arg, " ") 19831 if (arg[1] == "#") { 19832 defundef = arg[2] 19833 mac1 = arg[3] 19834 } else { 19835 defundef = substr(arg[1], 2) 19836 mac1 = arg[2] 19837 } 19838 split(mac1, mac2, "(") #) 19839 macro = mac2[1] 19840 prefix = substr(line, 1, index(line, defundef) - 1) 19841 if (D_is_set[macro]) { 19842 # Preserve the white space surrounding the "#". 19843 print prefix "define", macro P[macro] D[macro] 19844 next 19845 } else { 19846 # Replace #undef with comments. This is necessary, for example, 19847 # in the case of _POSIX_SOURCE, which is predefined and required 19848 # on some systems where configure will not decide to define it. 19849 if (defundef == "undef") { 19850 print "/*", prefix defundef, macro, "*/" 19851 next 19852 } 19853 } 19854} 19855{ print } 19856_ACAWK 19857_ACEOF 19858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19859 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19860fi # test -n "$CONFIG_HEADERS" 19861 19862 19863eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19864shift 19865for ac_tag 19866do 19867 case $ac_tag in 19868 :[FHLC]) ac_mode=$ac_tag; continue;; 19869 esac 19870 case $ac_mode$ac_tag in 19871 :[FHL]*:*);; 19872 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19873 :[FH]-) ac_tag=-:-;; 19874 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19875 esac 19876 ac_save_IFS=$IFS 19877 IFS=: 19878 set x $ac_tag 19879 IFS=$ac_save_IFS 19880 shift 19881 ac_file=$1 19882 shift 19883 19884 case $ac_mode in 19885 :L) ac_source=$1;; 19886 :[FH]) 19887 ac_file_inputs= 19888 for ac_f 19889 do 19890 case $ac_f in 19891 -) ac_f="$ac_tmp/stdin";; 19892 *) # Look for the file first in the build tree, then in the source tree 19893 # (if the path is not absolute). The absolute path cannot be DOS-style, 19894 # because $ac_f cannot contain `:'. 19895 test -f "$ac_f" || 19896 case $ac_f in 19897 [\\/$]*) false;; 19898 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19899 esac || 19900 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19901 esac 19902 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19903 as_fn_append ac_file_inputs " '$ac_f'" 19904 done 19905 19906 # Let's still pretend it is `configure' which instantiates (i.e., don't 19907 # use $as_me), people would be surprised to read: 19908 # /* config.h. Generated by config.status. */ 19909 configure_input='Generated from '` 19910 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19911 `' by configure.' 19912 if test x"$ac_file" != x-; then 19913 configure_input="$ac_file. $configure_input" 19914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19915$as_echo "$as_me: creating $ac_file" >&6;} 19916 fi 19917 # Neutralize special characters interpreted by sed in replacement strings. 19918 case $configure_input in #( 19919 *\&* | *\|* | *\\* ) 19920 ac_sed_conf_input=`$as_echo "$configure_input" | 19921 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19922 *) ac_sed_conf_input=$configure_input;; 19923 esac 19924 19925 case $ac_tag in 19926 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19928 esac 19929 ;; 19930 esac 19931 19932 ac_dir=`$as_dirname -- "$ac_file" || 19933$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19934 X"$ac_file" : 'X\(//\)[^/]' \| \ 19935 X"$ac_file" : 'X\(//\)$' \| \ 19936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19937$as_echo X"$ac_file" | 19938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19939 s//\1/ 19940 q 19941 } 19942 /^X\(\/\/\)[^/].*/{ 19943 s//\1/ 19944 q 19945 } 19946 /^X\(\/\/\)$/{ 19947 s//\1/ 19948 q 19949 } 19950 /^X\(\/\).*/{ 19951 s//\1/ 19952 q 19953 } 19954 s/.*/./; q'` 19955 as_dir="$ac_dir"; as_fn_mkdir_p 19956 ac_builddir=. 19957 19958case "$ac_dir" in 19959.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19960*) 19961 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19962 # A ".." for each directory in $ac_dir_suffix. 19963 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19964 case $ac_top_builddir_sub in 19965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19967 esac ;; 19968esac 19969ac_abs_top_builddir=$ac_pwd 19970ac_abs_builddir=$ac_pwd$ac_dir_suffix 19971# for backward compatibility: 19972ac_top_builddir=$ac_top_build_prefix 19973 19974case $srcdir in 19975 .) # We are building in place. 19976 ac_srcdir=. 19977 ac_top_srcdir=$ac_top_builddir_sub 19978 ac_abs_top_srcdir=$ac_pwd ;; 19979 [\\/]* | ?:[\\/]* ) # Absolute name. 19980 ac_srcdir=$srcdir$ac_dir_suffix; 19981 ac_top_srcdir=$srcdir 19982 ac_abs_top_srcdir=$srcdir ;; 19983 *) # Relative name. 19984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19985 ac_top_srcdir=$ac_top_build_prefix$srcdir 19986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19987esac 19988ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19989 19990 19991 case $ac_mode in 19992 :F) 19993 # 19994 # CONFIG_FILE 19995 # 19996 19997 case $INSTALL in 19998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20000 esac 20001 ac_MKDIR_P=$MKDIR_P 20002 case $MKDIR_P in 20003 [\\/$]* | ?:[\\/]* ) ;; 20004 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20005 esac 20006_ACEOF 20007 20008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20009# If the template does not know about datarootdir, expand it. 20010# FIXME: This hack should be removed a few years after 2.60. 20011ac_datarootdir_hack=; ac_datarootdir_seen= 20012ac_sed_dataroot=' 20013/datarootdir/ { 20014 p 20015 q 20016} 20017/@datadir@/p 20018/@docdir@/p 20019/@infodir@/p 20020/@localedir@/p 20021/@mandir@/p' 20022case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20023*datarootdir*) ac_datarootdir_seen=yes;; 20024*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20026$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20027_ACEOF 20028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20029 ac_datarootdir_hack=' 20030 s&@datadir@&$datadir&g 20031 s&@docdir@&$docdir&g 20032 s&@infodir@&$infodir&g 20033 s&@localedir@&$localedir&g 20034 s&@mandir@&$mandir&g 20035 s&\\\${datarootdir}&$datarootdir&g' ;; 20036esac 20037_ACEOF 20038 20039# Neutralize VPATH when `$srcdir' = `.'. 20040# Shell code in configure.ac might set extrasub. 20041# FIXME: do we really want to maintain this feature? 20042cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20043ac_sed_extra="$ac_vpsub 20044$extrasub 20045_ACEOF 20046cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20047:t 20048/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20049s|@configure_input@|$ac_sed_conf_input|;t t 20050s&@top_builddir@&$ac_top_builddir_sub&;t t 20051s&@top_build_prefix@&$ac_top_build_prefix&;t t 20052s&@srcdir@&$ac_srcdir&;t t 20053s&@abs_srcdir@&$ac_abs_srcdir&;t t 20054s&@top_srcdir@&$ac_top_srcdir&;t t 20055s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20056s&@builddir@&$ac_builddir&;t t 20057s&@abs_builddir@&$ac_abs_builddir&;t t 20058s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20059s&@INSTALL@&$ac_INSTALL&;t t 20060s&@MKDIR_P@&$ac_MKDIR_P&;t t 20061$ac_datarootdir_hack 20062" 20063eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20064 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20065 20066test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20067 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20068 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20069 "$ac_tmp/out"`; test -z "$ac_out"; } && 20070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20071which seems to be undefined. Please make sure it is defined" >&5 20072$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20073which seems to be undefined. Please make sure it is defined" >&2;} 20074 20075 rm -f "$ac_tmp/stdin" 20076 case $ac_file in 20077 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20078 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20079 esac \ 20080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20081 ;; 20082 :H) 20083 # 20084 # CONFIG_HEADER 20085 # 20086 if test x"$ac_file" != x-; then 20087 { 20088 $as_echo "/* $configure_input */" \ 20089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20090 } >"$ac_tmp/config.h" \ 20091 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20092 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20093 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20094$as_echo "$as_me: $ac_file is unchanged" >&6;} 20095 else 20096 rm -f "$ac_file" 20097 mv "$ac_tmp/config.h" "$ac_file" \ 20098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20099 fi 20100 else 20101 $as_echo "/* $configure_input */" \ 20102 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20103 || as_fn_error $? "could not create -" "$LINENO" 5 20104 fi 20105# Compute "$ac_file"'s index in $config_headers. 20106_am_arg="$ac_file" 20107_am_stamp_count=1 20108for _am_header in $config_headers :; do 20109 case $_am_header in 20110 $_am_arg | $_am_arg:* ) 20111 break ;; 20112 * ) 20113 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20114 esac 20115done 20116echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20117$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20118 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20119 X"$_am_arg" : 'X\(//\)$' \| \ 20120 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20121$as_echo X"$_am_arg" | 20122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20123 s//\1/ 20124 q 20125 } 20126 /^X\(\/\/\)[^/].*/{ 20127 s//\1/ 20128 q 20129 } 20130 /^X\(\/\/\)$/{ 20131 s//\1/ 20132 q 20133 } 20134 /^X\(\/\).*/{ 20135 s//\1/ 20136 q 20137 } 20138 s/.*/./; q'`/stamp-h$_am_stamp_count 20139 ;; 20140 20141 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20142$as_echo "$as_me: executing $ac_file commands" >&6;} 20143 ;; 20144 esac 20145 20146 20147 case $ac_file$ac_mode in 20148 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20149 # Autoconf 2.62 quotes --file arguments for eval, but not when files 20150 # are listed without --file. Let's play safe and only enable the eval 20151 # if we detect the quoting. 20152 case $CONFIG_FILES in 20153 *\'*) eval set x "$CONFIG_FILES" ;; 20154 *) set x $CONFIG_FILES ;; 20155 esac 20156 shift 20157 for mf 20158 do 20159 # Strip MF so we end up with the name of the file. 20160 mf=`echo "$mf" | sed -e 's/:.*$//'` 20161 # Check whether this is an Automake generated Makefile or not. 20162 # We used to match only the files named `Makefile.in', but 20163 # some people rename them; so instead we look at the file content. 20164 # Grep'ing the first line is not enough: some people post-process 20165 # each Makefile.in and add a new line on top of each file to say so. 20166 # Grep'ing the whole file is not good either: AIX grep has a line 20167 # limit of 2048, but all sed's we know have understand at least 4000. 20168 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20169 dirpart=`$as_dirname -- "$mf" || 20170$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20171 X"$mf" : 'X\(//\)[^/]' \| \ 20172 X"$mf" : 'X\(//\)$' \| \ 20173 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20174$as_echo X"$mf" | 20175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20176 s//\1/ 20177 q 20178 } 20179 /^X\(\/\/\)[^/].*/{ 20180 s//\1/ 20181 q 20182 } 20183 /^X\(\/\/\)$/{ 20184 s//\1/ 20185 q 20186 } 20187 /^X\(\/\).*/{ 20188 s//\1/ 20189 q 20190 } 20191 s/.*/./; q'` 20192 else 20193 continue 20194 fi 20195 # Extract the definition of DEPDIR, am__include, and am__quote 20196 # from the Makefile without running `make'. 20197 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20198 test -z "$DEPDIR" && continue 20199 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20200 test -z "am__include" && continue 20201 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20202 # When using ansi2knr, U may be empty or an underscore; expand it 20203 U=`sed -n 's/^U = //p' < "$mf"` 20204 # Find all dependency output files, they are included files with 20205 # $(DEPDIR) in their names. We invoke sed twice because it is the 20206 # simplest approach to changing $(DEPDIR) to its actual value in the 20207 # expansion. 20208 for file in `sed -n " 20209 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20210 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 20211 # Make sure the directory exists. 20212 test -f "$dirpart/$file" && continue 20213 fdir=`$as_dirname -- "$file" || 20214$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20215 X"$file" : 'X\(//\)[^/]' \| \ 20216 X"$file" : 'X\(//\)$' \| \ 20217 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20218$as_echo X"$file" | 20219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20220 s//\1/ 20221 q 20222 } 20223 /^X\(\/\/\)[^/].*/{ 20224 s//\1/ 20225 q 20226 } 20227 /^X\(\/\/\)$/{ 20228 s//\1/ 20229 q 20230 } 20231 /^X\(\/\).*/{ 20232 s//\1/ 20233 q 20234 } 20235 s/.*/./; q'` 20236 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20237 # echo "creating $dirpart/$file" 20238 echo '# dummy' > "$dirpart/$file" 20239 done 20240 done 20241} 20242 ;; 20243 "libtool":C) 20244 20245 # See if we are running on zsh, and set the options that allow our 20246 # commands through without removal of \ escapes. 20247 if test -n "${ZSH_VERSION+set}"; then 20248 setopt NO_GLOB_SUBST 20249 fi 20250 20251 cfgfile=${ofile}T 20252 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20253 $RM "$cfgfile" 20254 20255 cat <<_LT_EOF >> "$cfgfile" 20256#! $SHELL 20257 20258# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 20259# Generated automatically by $as_me ($PACKAGE) $VERSION 20260# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20261# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20262# 20263# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20264# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 20265# Foundation, Inc. 20266# Written by Gordon Matzigkeit, 1996 20267# 20268# This file is part of GNU Libtool. 20269# 20270# GNU Libtool is free software; you can redistribute it and/or 20271# modify it under the terms of the GNU General Public License as 20272# published by the Free Software Foundation; either version 2 of 20273# the License, or (at your option) any later version. 20274# 20275# As a special exception to the GNU General Public License, 20276# if you distribute this file as part of a program or library that 20277# is built using GNU Libtool, you may include this file under the 20278# same distribution terms that you use for the rest of that program. 20279# 20280# GNU Libtool is distributed in the hope that it will be useful, 20281# but WITHOUT ANY WARRANTY; without even the implied warranty of 20282# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20283# GNU General Public License for more details. 20284# 20285# You should have received a copy of the GNU General Public License 20286# along with GNU Libtool; see the file COPYING. If not, a copy 20287# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20288# obtained by writing to the Free Software Foundation, Inc., 20289# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20290 20291 20292# The names of the tagged configurations supported by this script. 20293available_tags='CXX ' 20294 20295# ### BEGIN LIBTOOL CONFIG 20296 20297# Which release of libtool.m4 was used? 20298macro_version=$macro_version 20299macro_revision=$macro_revision 20300 20301# Whether or not to build shared libraries. 20302build_libtool_libs=$enable_shared 20303 20304# Whether or not to build static libraries. 20305build_old_libs=$enable_static 20306 20307# What type of objects to build. 20308pic_mode=$pic_mode 20309 20310# Whether or not to optimize for fast installation. 20311fast_install=$enable_fast_install 20312 20313# Shell to use when invoking shell scripts. 20314SHELL=$lt_SHELL 20315 20316# An echo program that protects backslashes. 20317ECHO=$lt_ECHO 20318 20319# The PATH separator for the build system. 20320PATH_SEPARATOR=$lt_PATH_SEPARATOR 20321 20322# The host system. 20323host_alias=$host_alias 20324host=$host 20325host_os=$host_os 20326 20327# The build system. 20328build_alias=$build_alias 20329build=$build 20330build_os=$build_os 20331 20332# A sed program that does not truncate output. 20333SED=$lt_SED 20334 20335# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20336Xsed="\$SED -e 1s/^X//" 20337 20338# A grep program that handles long lines. 20339GREP=$lt_GREP 20340 20341# An ERE matcher. 20342EGREP=$lt_EGREP 20343 20344# A literal string matcher. 20345FGREP=$lt_FGREP 20346 20347# A BSD- or MS-compatible name lister. 20348NM=$lt_NM 20349 20350# Whether we need soft or hard links. 20351LN_S=$lt_LN_S 20352 20353# What is the maximum length of a command? 20354max_cmd_len=$max_cmd_len 20355 20356# Object file suffix (normally "o"). 20357objext=$ac_objext 20358 20359# Executable file suffix (normally ""). 20360exeext=$exeext 20361 20362# whether the shell understands "unset". 20363lt_unset=$lt_unset 20364 20365# turn spaces into newlines. 20366SP2NL=$lt_lt_SP2NL 20367 20368# turn newlines into spaces. 20369NL2SP=$lt_lt_NL2SP 20370 20371# convert \$build file names to \$host format. 20372to_host_file_cmd=$lt_cv_to_host_file_cmd 20373 20374# convert \$build files to toolchain format. 20375to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20376 20377# An object symbol dumper. 20378OBJDUMP=$lt_OBJDUMP 20379 20380# Method to check whether dependent libraries are shared objects. 20381deplibs_check_method=$lt_deplibs_check_method 20382 20383# Command to use when deplibs_check_method = "file_magic". 20384file_magic_cmd=$lt_file_magic_cmd 20385 20386# How to find potential files when deplibs_check_method = "file_magic". 20387file_magic_glob=$lt_file_magic_glob 20388 20389# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20390want_nocaseglob=$lt_want_nocaseglob 20391 20392# DLL creation program. 20393DLLTOOL=$lt_DLLTOOL 20394 20395# Command to associate shared and link libraries. 20396sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20397 20398# The archiver. 20399AR=$lt_AR 20400 20401# Flags to create an archive. 20402AR_FLAGS=$lt_AR_FLAGS 20403 20404# How to feed a file listing to the archiver. 20405archiver_list_spec=$lt_archiver_list_spec 20406 20407# A symbol stripping program. 20408STRIP=$lt_STRIP 20409 20410# Commands used to install an old-style archive. 20411RANLIB=$lt_RANLIB 20412old_postinstall_cmds=$lt_old_postinstall_cmds 20413old_postuninstall_cmds=$lt_old_postuninstall_cmds 20414 20415# Whether to use a lock for old archive extraction. 20416lock_old_archive_extraction=$lock_old_archive_extraction 20417 20418# A C compiler. 20419LTCC=$lt_CC 20420 20421# LTCC compiler flags. 20422LTCFLAGS=$lt_CFLAGS 20423 20424# Take the output of nm and produce a listing of raw symbols and C names. 20425global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20426 20427# Transform the output of nm in a proper C declaration. 20428global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20429 20430# Transform the output of nm into a list of symbols to manually relocate. 20431global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20432 20433# Transform the output of nm in a C name address pair. 20434global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20435 20436# Transform the output of nm in a C name address pair when lib prefix is needed. 20437global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20438 20439# The name lister interface. 20440nm_interface=$lt_lt_cv_nm_interface 20441 20442# Specify filename containing input files for \$NM. 20443nm_file_list_spec=$lt_nm_file_list_spec 20444 20445# The root where to search for dependent libraries,and where our libraries should be installed. 20446lt_sysroot=$lt_sysroot 20447 20448# The name of the directory that contains temporary libtool files. 20449objdir=$objdir 20450 20451# Used to examine libraries when file_magic_cmd begins with "file". 20452MAGIC_CMD=$MAGIC_CMD 20453 20454# Must we lock files when doing compilation? 20455need_locks=$lt_need_locks 20456 20457# Manifest tool. 20458MANIFEST_TOOL=$lt_MANIFEST_TOOL 20459 20460# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20461DSYMUTIL=$lt_DSYMUTIL 20462 20463# Tool to change global to local symbols on Mac OS X. 20464NMEDIT=$lt_NMEDIT 20465 20466# Tool to manipulate fat objects and archives on Mac OS X. 20467LIPO=$lt_LIPO 20468 20469# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20470OTOOL=$lt_OTOOL 20471 20472# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20473OTOOL64=$lt_OTOOL64 20474 20475# Old archive suffix (normally "a"). 20476libext=$libext 20477 20478# Shared library suffix (normally ".so"). 20479shrext_cmds=$lt_shrext_cmds 20480 20481# The commands to extract the exported symbol list from a shared archive. 20482extract_expsyms_cmds=$lt_extract_expsyms_cmds 20483 20484# Variables whose values should be saved in libtool wrapper scripts and 20485# restored at link time. 20486variables_saved_for_relink=$lt_variables_saved_for_relink 20487 20488# Do we need the "lib" prefix for modules? 20489need_lib_prefix=$need_lib_prefix 20490 20491# Do we need a version for libraries? 20492need_version=$need_version 20493 20494# Library versioning type. 20495version_type=$version_type 20496 20497# Shared library runtime path variable. 20498runpath_var=$runpath_var 20499 20500# Shared library path variable. 20501shlibpath_var=$shlibpath_var 20502 20503# Is shlibpath searched before the hard-coded library search path? 20504shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20505 20506# Format of library name prefix. 20507libname_spec=$lt_libname_spec 20508 20509# List of archive names. First name is the real one, the rest are links. 20510# The last name is the one that the linker finds with -lNAME 20511library_names_spec=$lt_library_names_spec 20512 20513# The coded name of the library, if different from the real name. 20514soname_spec=$lt_soname_spec 20515 20516# Permission mode override for installation of shared libraries. 20517install_override_mode=$lt_install_override_mode 20518 20519# Command to use after installation of a shared archive. 20520postinstall_cmds=$lt_postinstall_cmds 20521 20522# Command to use after uninstallation of a shared archive. 20523postuninstall_cmds=$lt_postuninstall_cmds 20524 20525# Commands used to finish a libtool library installation in a directory. 20526finish_cmds=$lt_finish_cmds 20527 20528# As "finish_cmds", except a single script fragment to be evaled but 20529# not shown. 20530finish_eval=$lt_finish_eval 20531 20532# Whether we should hardcode library paths into libraries. 20533hardcode_into_libs=$hardcode_into_libs 20534 20535# Compile-time system search path for libraries. 20536sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20537 20538# Run-time system search path for libraries. 20539sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20540 20541# Whether dlopen is supported. 20542dlopen_support=$enable_dlopen 20543 20544# Whether dlopen of programs is supported. 20545dlopen_self=$enable_dlopen_self 20546 20547# Whether dlopen of statically linked programs is supported. 20548dlopen_self_static=$enable_dlopen_self_static 20549 20550# Commands to strip libraries. 20551old_striplib=$lt_old_striplib 20552striplib=$lt_striplib 20553 20554 20555# The linker used to build libraries. 20556LD=$lt_LD 20557 20558# How to create reloadable object files. 20559reload_flag=$lt_reload_flag 20560reload_cmds=$lt_reload_cmds 20561 20562# Commands used to build an old-style archive. 20563old_archive_cmds=$lt_old_archive_cmds 20564 20565# A language specific compiler. 20566CC=$lt_compiler 20567 20568# Is the compiler the GNU compiler? 20569with_gcc=$GCC 20570 20571# Compiler flag to turn off builtin functions. 20572no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20573 20574# Additional compiler flags for building library objects. 20575pic_flag=$lt_lt_prog_compiler_pic 20576 20577# How to pass a linker flag through the compiler. 20578wl=$lt_lt_prog_compiler_wl 20579 20580# Compiler flag to prevent dynamic linking. 20581link_static_flag=$lt_lt_prog_compiler_static 20582 20583# Does compiler simultaneously support -c and -o options? 20584compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20585 20586# Whether or not to add -lc for building shared libraries. 20587build_libtool_need_lc=$archive_cmds_need_lc 20588 20589# Whether or not to disallow shared libs when runtime libs are static. 20590allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20591 20592# Compiler flag to allow reflexive dlopens. 20593export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20594 20595# Compiler flag to generate shared objects directly from archives. 20596whole_archive_flag_spec=$lt_whole_archive_flag_spec 20597 20598# Whether the compiler copes with passing no objects directly. 20599compiler_needs_object=$lt_compiler_needs_object 20600 20601# Create an old-style archive from a shared archive. 20602old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20603 20604# Create a temporary old-style archive to link instead of a shared archive. 20605old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20606 20607# Commands used to build a shared archive. 20608archive_cmds=$lt_archive_cmds 20609archive_expsym_cmds=$lt_archive_expsym_cmds 20610 20611# Commands used to build a loadable module if different from building 20612# a shared archive. 20613module_cmds=$lt_module_cmds 20614module_expsym_cmds=$lt_module_expsym_cmds 20615 20616# Whether we are building with GNU ld or not. 20617with_gnu_ld=$lt_with_gnu_ld 20618 20619# Flag that allows shared libraries with undefined symbols to be built. 20620allow_undefined_flag=$lt_allow_undefined_flag 20621 20622# Flag that enforces no undefined symbols. 20623no_undefined_flag=$lt_no_undefined_flag 20624 20625# Flag to hardcode \$libdir into a binary during linking. 20626# This must work even if \$libdir does not exist 20627hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20628 20629# Whether we need a single "-rpath" flag with a separated argument. 20630hardcode_libdir_separator=$lt_hardcode_libdir_separator 20631 20632# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20633# DIR into the resulting binary. 20634hardcode_direct=$hardcode_direct 20635 20636# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20637# DIR into the resulting binary and the resulting library dependency is 20638# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20639# library is relocated. 20640hardcode_direct_absolute=$hardcode_direct_absolute 20641 20642# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20643# into the resulting binary. 20644hardcode_minus_L=$hardcode_minus_L 20645 20646# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20647# into the resulting binary. 20648hardcode_shlibpath_var=$hardcode_shlibpath_var 20649 20650# Set to "yes" if building a shared library automatically hardcodes DIR 20651# into the library and all subsequent libraries and executables linked 20652# against it. 20653hardcode_automatic=$hardcode_automatic 20654 20655# Set to yes if linker adds runtime paths of dependent libraries 20656# to runtime path list. 20657inherit_rpath=$inherit_rpath 20658 20659# Whether libtool must link a program against all its dependency libraries. 20660link_all_deplibs=$link_all_deplibs 20661 20662# Set to "yes" if exported symbols are required. 20663always_export_symbols=$always_export_symbols 20664 20665# The commands to list exported symbols. 20666export_symbols_cmds=$lt_export_symbols_cmds 20667 20668# Symbols that should not be listed in the preloaded symbols. 20669exclude_expsyms=$lt_exclude_expsyms 20670 20671# Symbols that must always be exported. 20672include_expsyms=$lt_include_expsyms 20673 20674# Commands necessary for linking programs (against libraries) with templates. 20675prelink_cmds=$lt_prelink_cmds 20676 20677# Commands necessary for finishing linking programs. 20678postlink_cmds=$lt_postlink_cmds 20679 20680# Specify filename containing input files. 20681file_list_spec=$lt_file_list_spec 20682 20683# How to hardcode a shared library path into an executable. 20684hardcode_action=$hardcode_action 20685 20686# The directories searched by this compiler when creating a shared library. 20687compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20688 20689# Dependencies to place before and after the objects being linked to 20690# create a shared library. 20691predep_objects=$lt_predep_objects 20692postdep_objects=$lt_postdep_objects 20693predeps=$lt_predeps 20694postdeps=$lt_postdeps 20695 20696# The library search path used internally by the compiler when linking 20697# a shared library. 20698compiler_lib_search_path=$lt_compiler_lib_search_path 20699 20700# ### END LIBTOOL CONFIG 20701 20702_LT_EOF 20703 20704 case $host_os in 20705 aix3*) 20706 cat <<\_LT_EOF >> "$cfgfile" 20707# AIX sometimes has problems with the GCC collect2 program. For some 20708# reason, if we set the COLLECT_NAMES environment variable, the problems 20709# vanish in a puff of smoke. 20710if test set != "${COLLECT_NAMES+set}"; then 20711 COLLECT_NAMES= 20712 export COLLECT_NAMES 20713fi 20714_LT_EOF 20715 ;; 20716 esac 20717 20718 20719ltmain=$ac_aux_dir/ltmain.sh 20720 20721 20722 # We use sed instead of cat because bash on DJGPP gets confused if 20723 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20724 # text mode, it properly converts lines to CR/LF. This bash problem 20725 # is reportedly fixed, but why not run on old versions too? 20726 sed '$q' "$ltmain" >> "$cfgfile" \ 20727 || (rm -f "$cfgfile"; exit 1) 20728 20729 mv -f "$cfgfile" "$ofile" || 20730 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20731 chmod +x "$ofile" 20732 20733 20734 cat <<_LT_EOF >> "$ofile" 20735 20736# ### BEGIN LIBTOOL TAG CONFIG: CXX 20737 20738# The linker used to build libraries. 20739LD=$lt_LD_CXX 20740 20741# How to create reloadable object files. 20742reload_flag=$lt_reload_flag_CXX 20743reload_cmds=$lt_reload_cmds_CXX 20744 20745# Commands used to build an old-style archive. 20746old_archive_cmds=$lt_old_archive_cmds_CXX 20747 20748# A language specific compiler. 20749CC=$lt_compiler_CXX 20750 20751# Is the compiler the GNU compiler? 20752with_gcc=$GCC_CXX 20753 20754# Compiler flag to turn off builtin functions. 20755no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20756 20757# Additional compiler flags for building library objects. 20758pic_flag=$lt_lt_prog_compiler_pic_CXX 20759 20760# How to pass a linker flag through the compiler. 20761wl=$lt_lt_prog_compiler_wl_CXX 20762 20763# Compiler flag to prevent dynamic linking. 20764link_static_flag=$lt_lt_prog_compiler_static_CXX 20765 20766# Does compiler simultaneously support -c and -o options? 20767compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20768 20769# Whether or not to add -lc for building shared libraries. 20770build_libtool_need_lc=$archive_cmds_need_lc_CXX 20771 20772# Whether or not to disallow shared libs when runtime libs are static. 20773allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20774 20775# Compiler flag to allow reflexive dlopens. 20776export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20777 20778# Compiler flag to generate shared objects directly from archives. 20779whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20780 20781# Whether the compiler copes with passing no objects directly. 20782compiler_needs_object=$lt_compiler_needs_object_CXX 20783 20784# Create an old-style archive from a shared archive. 20785old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20786 20787# Create a temporary old-style archive to link instead of a shared archive. 20788old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20789 20790# Commands used to build a shared archive. 20791archive_cmds=$lt_archive_cmds_CXX 20792archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20793 20794# Commands used to build a loadable module if different from building 20795# a shared archive. 20796module_cmds=$lt_module_cmds_CXX 20797module_expsym_cmds=$lt_module_expsym_cmds_CXX 20798 20799# Whether we are building with GNU ld or not. 20800with_gnu_ld=$lt_with_gnu_ld_CXX 20801 20802# Flag that allows shared libraries with undefined symbols to be built. 20803allow_undefined_flag=$lt_allow_undefined_flag_CXX 20804 20805# Flag that enforces no undefined symbols. 20806no_undefined_flag=$lt_no_undefined_flag_CXX 20807 20808# Flag to hardcode \$libdir into a binary during linking. 20809# This must work even if \$libdir does not exist 20810hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20811 20812# Whether we need a single "-rpath" flag with a separated argument. 20813hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20814 20815# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20816# DIR into the resulting binary. 20817hardcode_direct=$hardcode_direct_CXX 20818 20819# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20820# DIR into the resulting binary and the resulting library dependency is 20821# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20822# library is relocated. 20823hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20824 20825# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20826# into the resulting binary. 20827hardcode_minus_L=$hardcode_minus_L_CXX 20828 20829# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20830# into the resulting binary. 20831hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20832 20833# Set to "yes" if building a shared library automatically hardcodes DIR 20834# into the library and all subsequent libraries and executables linked 20835# against it. 20836hardcode_automatic=$hardcode_automatic_CXX 20837 20838# Set to yes if linker adds runtime paths of dependent libraries 20839# to runtime path list. 20840inherit_rpath=$inherit_rpath_CXX 20841 20842# Whether libtool must link a program against all its dependency libraries. 20843link_all_deplibs=$link_all_deplibs_CXX 20844 20845# Set to "yes" if exported symbols are required. 20846always_export_symbols=$always_export_symbols_CXX 20847 20848# The commands to list exported symbols. 20849export_symbols_cmds=$lt_export_symbols_cmds_CXX 20850 20851# Symbols that should not be listed in the preloaded symbols. 20852exclude_expsyms=$lt_exclude_expsyms_CXX 20853 20854# Symbols that must always be exported. 20855include_expsyms=$lt_include_expsyms_CXX 20856 20857# Commands necessary for linking programs (against libraries) with templates. 20858prelink_cmds=$lt_prelink_cmds_CXX 20859 20860# Commands necessary for finishing linking programs. 20861postlink_cmds=$lt_postlink_cmds_CXX 20862 20863# Specify filename containing input files. 20864file_list_spec=$lt_file_list_spec_CXX 20865 20866# How to hardcode a shared library path into an executable. 20867hardcode_action=$hardcode_action_CXX 20868 20869# The directories searched by this compiler when creating a shared library. 20870compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20871 20872# Dependencies to place before and after the objects being linked to 20873# create a shared library. 20874predep_objects=$lt_predep_objects_CXX 20875postdep_objects=$lt_postdep_objects_CXX 20876predeps=$lt_predeps_CXX 20877postdeps=$lt_postdeps_CXX 20878 20879# The library search path used internally by the compiler when linking 20880# a shared library. 20881compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20882 20883# ### END LIBTOOL TAG CONFIG: CXX 20884_LT_EOF 20885 20886 ;; 20887 "$ac_stdint_h":C) 20888{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5 20889$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;} 20890ac_stdint=$tmp/_stdint.h 20891 20892echo "#ifndef" $_ac_stdint_h >$ac_stdint 20893echo "#define" $_ac_stdint_h "1" >>$ac_stdint 20894echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint 20895echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint 20896echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint 20897if test "_$ac_cv_header_stdint_t" != "_" ; then 20898echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint 20899echo "#include <stdint.h>" >>$ac_stdint 20900echo "#endif" >>$ac_stdint 20901echo "#endif" >>$ac_stdint 20902else 20903 20904cat >>$ac_stdint <<STDINT_EOF 20905 20906/* ................... shortcircuit part ........................... */ 20907 20908#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H 20909#include <stdint.h> 20910#else 20911#include <stddef.h> 20912 20913/* .................... configured part ............................ */ 20914 20915STDINT_EOF 20916 20917echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint 20918if test "_$ac_cv_header_stdint_x" != "_" ; then 20919 ac_header="$ac_cv_header_stdint_x" 20920 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint 20921else 20922 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint 20923fi 20924 20925echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint 20926if test "_$ac_cv_header_stdint_o" != "_" ; then 20927 ac_header="$ac_cv_header_stdint_o" 20928 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint 20929else 20930 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint 20931fi 20932 20933echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint 20934if test "_$ac_cv_header_stdint_u" != "_" ; then 20935 ac_header="$ac_cv_header_stdint_u" 20936 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint 20937else 20938 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint 20939fi 20940 20941echo "" >>$ac_stdint 20942 20943if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then 20944 echo "#include <$ac_header>" >>$ac_stdint 20945 echo "" >>$ac_stdint 20946fi fi 20947 20948echo "/* which 64bit typedef has been found */" >>$ac_stdint 20949if test "$ac_cv_type_uint64_t" = "yes" ; then 20950echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint 20951else 20952echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint 20953fi 20954if test "$ac_cv_type_u_int64_t" = "yes" ; then 20955echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint 20956else 20957echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint 20958fi 20959echo "" >>$ac_stdint 20960 20961echo "/* which type model has been detected */" >>$ac_stdint 20962if test "_$ac_cv_char_data_model" != "_" ; then 20963echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint 20964echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint 20965else 20966echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint 20967echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint 20968fi 20969echo "" >>$ac_stdint 20970 20971echo "/* whether int_least types were detected */" >>$ac_stdint 20972if test "$ac_cv_type_int_least32_t" = "yes"; then 20973echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint 20974else 20975echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint 20976fi 20977echo "/* whether int_fast types were detected */" >>$ac_stdint 20978if test "$ac_cv_type_int_fast32_t" = "yes"; then 20979echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint 20980else 20981echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint 20982fi 20983echo "/* whether intmax_t type was detected */" >>$ac_stdint 20984if test "$ac_cv_type_intmax_t" = "yes"; then 20985echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint 20986else 20987echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint 20988fi 20989echo "" >>$ac_stdint 20990 20991 cat >>$ac_stdint <<STDINT_EOF 20992/* .................... detections part ............................ */ 20993 20994/* whether we need to define bitspecific types from compiler base types */ 20995#ifndef _STDINT_HEADER_INTPTR 20996#ifndef _STDINT_HEADER_UINT32 20997#ifndef _STDINT_HEADER_U_INT32 20998#define _STDINT_NEED_INT_MODEL_T 20999#else 21000#define _STDINT_HAVE_U_INT_TYPES 21001#endif 21002#endif 21003#endif 21004 21005#ifdef _STDINT_HAVE_U_INT_TYPES 21006#undef _STDINT_NEED_INT_MODEL_T 21007#endif 21008 21009#ifdef _STDINT_CHAR_MODEL 21010#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124 21011#ifndef _STDINT_BYTE_MODEL 21012#define _STDINT_BYTE_MODEL 12 21013#endif 21014#endif 21015#endif 21016 21017#ifndef _STDINT_HAVE_INT_LEAST32_T 21018#define _STDINT_NEED_INT_LEAST_T 21019#endif 21020 21021#ifndef _STDINT_HAVE_INT_FAST32_T 21022#define _STDINT_NEED_INT_FAST_T 21023#endif 21024 21025#ifndef _STDINT_HEADER_INTPTR 21026#define _STDINT_NEED_INTPTR_T 21027#ifndef _STDINT_HAVE_INTMAX_T 21028#define _STDINT_NEED_INTMAX_T 21029#endif 21030#endif 21031 21032 21033/* .................... definition part ............................ */ 21034 21035/* some system headers have good uint64_t */ 21036#ifndef _HAVE_UINT64_T 21037#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T 21038#define _HAVE_UINT64_T 21039#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T 21040#define _HAVE_UINT64_T 21041typedef u_int64_t uint64_t; 21042#endif 21043#endif 21044 21045#ifndef _HAVE_UINT64_T 21046/* .. here are some common heuristics using compiler runtime specifics */ 21047#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L 21048#define _HAVE_UINT64_T 21049#define _HAVE_LONGLONG_UINT64_T 21050typedef long long int64_t; 21051typedef unsigned long long uint64_t; 21052 21053#elif !defined __STRICT_ANSI__ 21054#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 21055#define _HAVE_UINT64_T 21056typedef __int64 int64_t; 21057typedef unsigned __int64 uint64_t; 21058 21059#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__ 21060/* note: all ELF-systems seem to have loff-support which needs 64-bit */ 21061#if !defined _NO_LONGLONG 21062#define _HAVE_UINT64_T 21063#define _HAVE_LONGLONG_UINT64_T 21064typedef long long int64_t; 21065typedef unsigned long long uint64_t; 21066#endif 21067 21068#elif defined __alpha || (defined __mips && defined _ABIN32) 21069#if !defined _NO_LONGLONG 21070typedef long int64_t; 21071typedef unsigned long uint64_t; 21072#endif 21073 /* compiler/cpu type to define int64_t */ 21074#endif 21075#endif 21076#endif 21077 21078#if defined _STDINT_HAVE_U_INT_TYPES 21079/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */ 21080typedef u_int8_t uint8_t; 21081typedef u_int16_t uint16_t; 21082typedef u_int32_t uint32_t; 21083 21084/* glibc compatibility */ 21085#ifndef __int8_t_defined 21086#define __int8_t_defined 21087#endif 21088#endif 21089 21090#ifdef _STDINT_NEED_INT_MODEL_T 21091/* we must guess all the basic types. Apart from byte-adressable system, */ 21092/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */ 21093/* (btw, those nibble-addressable systems are way off, or so we assume) */ 21094 21095 21096#if defined _STDINT_BYTE_MODEL 21097#if _STDINT_LONG_MODEL+0 == 242 21098/* 2:4:2 = IP16 = a normal 16-bit system */ 21099typedef unsigned char uint8_t; 21100typedef unsigned short uint16_t; 21101typedef unsigned long uint32_t; 21102#ifndef __int8_t_defined 21103#define __int8_t_defined 21104typedef char int8_t; 21105typedef short int16_t; 21106typedef long int32_t; 21107#endif 21108#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444 21109/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */ 21110/* 4:4:4 = ILP32 = a normal 32-bit system */ 21111typedef unsigned char uint8_t; 21112typedef unsigned short uint16_t; 21113typedef unsigned int uint32_t; 21114#ifndef __int8_t_defined 21115#define __int8_t_defined 21116typedef char int8_t; 21117typedef short int16_t; 21118typedef int int32_t; 21119#endif 21120#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488 21121/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */ 21122/* 4:8:8 = LP64 = a normal 64-bit system */ 21123typedef unsigned char uint8_t; 21124typedef unsigned short uint16_t; 21125typedef unsigned int uint32_t; 21126#ifndef __int8_t_defined 21127#define __int8_t_defined 21128typedef char int8_t; 21129typedef short int16_t; 21130typedef int int32_t; 21131#endif 21132/* this system has a "long" of 64bit */ 21133#ifndef _HAVE_UINT64_T 21134#define _HAVE_UINT64_T 21135typedef unsigned long uint64_t; 21136typedef long int64_t; 21137#endif 21138#elif _STDINT_LONG_MODEL+0 == 448 21139/* LLP64 a 64-bit system derived from a 32-bit system */ 21140typedef unsigned char uint8_t; 21141typedef unsigned short uint16_t; 21142typedef unsigned int uint32_t; 21143#ifndef __int8_t_defined 21144#define __int8_t_defined 21145typedef char int8_t; 21146typedef short int16_t; 21147typedef int int32_t; 21148#endif 21149/* assuming the system has a "long long" */ 21150#ifndef _HAVE_UINT64_T 21151#define _HAVE_UINT64_T 21152#define _HAVE_LONGLONG_UINT64_T 21153typedef unsigned long long uint64_t; 21154typedef long long int64_t; 21155#endif 21156#else 21157#define _STDINT_NO_INT32_T 21158#endif 21159#else 21160#define _STDINT_NO_INT8_T 21161#define _STDINT_NO_INT32_T 21162#endif 21163#endif 21164 21165/* 21166 * quote from SunOS-5.8 sys/inttypes.h: 21167 * Use at your own risk. As of February 1996, the committee is squarely 21168 * behind the fixed sized types; the "least" and "fast" types are still being 21169 * discussed. The probability that the "fast" types may be removed before 21170 * the standard is finalized is high enough that they are not currently 21171 * implemented. 21172 */ 21173 21174#if defined _STDINT_NEED_INT_LEAST_T 21175typedef int8_t int_least8_t; 21176typedef int16_t int_least16_t; 21177typedef int32_t int_least32_t; 21178#ifdef _HAVE_UINT64_T 21179typedef int64_t int_least64_t; 21180#endif 21181 21182typedef uint8_t uint_least8_t; 21183typedef uint16_t uint_least16_t; 21184typedef uint32_t uint_least32_t; 21185#ifdef _HAVE_UINT64_T 21186typedef uint64_t uint_least64_t; 21187#endif 21188 /* least types */ 21189#endif 21190 21191#if defined _STDINT_NEED_INT_FAST_T 21192typedef int8_t int_fast8_t; 21193typedef int int_fast16_t; 21194typedef int32_t int_fast32_t; 21195#ifdef _HAVE_UINT64_T 21196typedef int64_t int_fast64_t; 21197#endif 21198 21199typedef uint8_t uint_fast8_t; 21200typedef unsigned uint_fast16_t; 21201typedef uint32_t uint_fast32_t; 21202#ifdef _HAVE_UINT64_T 21203typedef uint64_t uint_fast64_t; 21204#endif 21205 /* fast types */ 21206#endif 21207 21208#ifdef _STDINT_NEED_INTMAX_T 21209#ifdef _HAVE_UINT64_T 21210typedef int64_t intmax_t; 21211typedef uint64_t uintmax_t; 21212#else 21213typedef long intmax_t; 21214typedef unsigned long uintmax_t; 21215#endif 21216#endif 21217 21218#ifdef _STDINT_NEED_INTPTR_T 21219#ifndef __intptr_t_defined 21220#define __intptr_t_defined 21221/* we encourage using "long" to store pointer values, never use "int" ! */ 21222#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484 21223typedef unsigned int uintptr_t; 21224typedef int intptr_t; 21225#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444 21226typedef unsigned long uintptr_t; 21227typedef long intptr_t; 21228#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T 21229typedef uint64_t uintptr_t; 21230typedef int64_t intptr_t; 21231#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */ 21232typedef unsigned long uintptr_t; 21233typedef long intptr_t; 21234#endif 21235#endif 21236#endif 21237 21238/* The ISO C99 standard specifies that in C++ implementations these 21239 should only be defined if explicitly requested. */ 21240#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS 21241#ifndef UINT32_C 21242 21243/* Signed. */ 21244# define INT8_C(c) c 21245# define INT16_C(c) c 21246# define INT32_C(c) c 21247# ifdef _HAVE_LONGLONG_UINT64_T 21248# define INT64_C(c) c ## L 21249# else 21250# define INT64_C(c) c ## LL 21251# endif 21252 21253/* Unsigned. */ 21254# define UINT8_C(c) c ## U 21255# define UINT16_C(c) c ## U 21256# define UINT32_C(c) c ## U 21257# ifdef _HAVE_LONGLONG_UINT64_T 21258# define UINT64_C(c) c ## UL 21259# else 21260# define UINT64_C(c) c ## ULL 21261# endif 21262 21263/* Maximal type. */ 21264# ifdef _HAVE_LONGLONG_UINT64_T 21265# define INTMAX_C(c) c ## L 21266# define UINTMAX_C(c) c ## UL 21267# else 21268# define INTMAX_C(c) c ## LL 21269# define UINTMAX_C(c) c ## ULL 21270# endif 21271 21272 /* literalnumbers */ 21273#endif 21274#endif 21275 21276/* These limits are merily those of a two complement byte-oriented system */ 21277 21278/* Minimum of signed integral types. */ 21279# define INT8_MIN (-128) 21280# define INT16_MIN (-32767-1) 21281# define INT32_MIN (-2147483647-1) 21282#ifndef INT64_MIN 21283# define INT64_MIN (-__INT64_C(9223372036854775807)-1) 21284#endif 21285/* Maximum of signed integral types. */ 21286# define INT8_MAX (127) 21287# define INT16_MAX (32767) 21288# define INT32_MAX (2147483647) 21289#ifndef INT64_MAX 21290# define INT64_MAX (__INT64_C(9223372036854775807)) 21291#endif 21292 21293/* Maximum of unsigned integral types. */ 21294#ifndef UINT8_MAX 21295# define UINT8_MAX (255) 21296#endif 21297#ifndef UINT16_MAX 21298# define UINT16_MAX (65535) 21299#endif 21300# define UINT32_MAX (4294967295U) 21301#ifndef UINT64_MAX 21302# define UINT64_MAX (__UINT64_C(18446744073709551615)) 21303#endif 21304 21305/* Minimum of signed integral types having a minimum size. */ 21306# define INT_LEAST8_MIN INT8_MIN 21307# define INT_LEAST16_MIN INT16_MIN 21308# define INT_LEAST32_MIN INT32_MIN 21309# define INT_LEAST64_MIN INT64_MIN 21310/* Maximum of signed integral types having a minimum size. */ 21311# define INT_LEAST8_MAX INT8_MAX 21312# define INT_LEAST16_MAX INT16_MAX 21313# define INT_LEAST32_MAX INT32_MAX 21314# define INT_LEAST64_MAX INT64_MAX 21315 21316/* Maximum of unsigned integral types having a minimum size. */ 21317# define UINT_LEAST8_MAX UINT8_MAX 21318# define UINT_LEAST16_MAX UINT16_MAX 21319# define UINT_LEAST32_MAX UINT32_MAX 21320# define UINT_LEAST64_MAX UINT64_MAX 21321 21322 /* shortcircuit*/ 21323#endif 21324 /* once */ 21325#endif 21326#endif 21327STDINT_EOF 21328fi 21329 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then 21330 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5 21331$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;} 21332 else 21333 ac_dir=`$as_dirname -- "$ac_stdint_h" || 21334$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21335 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \ 21336 X"$ac_stdint_h" : 'X\(//\)$' \| \ 21337 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null || 21338$as_echo X"$ac_stdint_h" | 21339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21340 s//\1/ 21341 q 21342 } 21343 /^X\(\/\/\)[^/].*/{ 21344 s//\1/ 21345 q 21346 } 21347 /^X\(\/\/\)$/{ 21348 s//\1/ 21349 q 21350 } 21351 /^X\(\/\).*/{ 21352 s//\1/ 21353 q 21354 } 21355 s/.*/./; q'` 21356 as_dir="$ac_dir"; as_fn_mkdir_p 21357 rm -f $ac_stdint_h 21358 mv $ac_stdint $ac_stdint_h 21359 fi 21360 ;; 21361 "$ax_create_pkgconfig_generate":C) 21362pkgconfig_generate="$ax_create_pkgconfig_generate" 21363if test ! -f "$pkgconfig_generate.in" 21364then generate="true" 21365elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null 21366then generate="true" 21367else generate="false"; 21368fi 21369if $generate ; then 21370{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5 21371$as_echo "$as_me: creating $pkgconfig_generate.in" >&6;} 21372cat > $pkgconfig_generate.in <<AXEOF 21373# generated by configure / remove this line to disable regeneration 21374prefix=@prefix@ 21375exec_prefix=@exec_prefix@ 21376bindir=@bindir@ 21377libdir=@libdir@ 21378datarootdir=@datarootdir@ 21379datadir=@datadir@ 21380sysconfdir=@sysconfdir@ 21381includedir=@includedir@ 21382package=@PACKAGE@ 21383suffix=@suffix@ 21384 21385Name: @PACKAGE_NAME@ 21386Description: @PACKAGE_DESCRIPTION@ 21387Version: @PACKAGE_VERSION@ 21388Requires: @PACKAGE_REQUIRES@ 21389Libs: -L\${libdir} @LDFLAGS@ @LIBS@ 21390Cflags: -I\${includedir} @CPPFLAGS@ 21391AXEOF 21392fi # DONE generate $pkgconfig_generate.in 21393{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5 21394$as_echo "$as_me: creating $pkgconfig_generate" >&6;} 21395cat >conftest.sed <<AXEOF 21396s|@prefix@|${pkgconfig_prefix}| 21397s|@exec_prefix@|${pkgconfig_execprefix}| 21398s|@bindir@|${pkgconfig_bindir}| 21399s|@libdir@|${pkgconfig_libdir}| 21400s|@datarootdir@|${pkgconfig_datarootdir}| 21401s|@datadir@|${pkgconfig_datadir}| 21402s|@sysconfdir@|${pkgconfig_sysconfdir}| 21403s|@includedir@|${pkgconfig_includedir}| 21404s|@suffix@|${pkgconfig_suffix}| 21405s|@PACKAGE@|${pkgconfig_package}| 21406s|@PACKAGE_NAME@|${pkgconfig_libname}| 21407s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 21408s|@PACKAGE_VERSION@|${pkgconfig_version}| 21409s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 21410s|@LIBS@|${pkgconfig_libs}| 21411s|@LDFLAGS@|${pkgconfig_ldflags}| 21412s|@CPPFLAGS@|${pkgconfig_cppflags}| 21413AXEOF 21414sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate 21415if test ! -s $pkgconfig_generate ; then 21416 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5 21417fi ; rm conftest.sed # DONE generate $pkgconfig_generate 21418pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'` 21419{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 21420$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} 21421cat >conftest.sed <<AXEOF 21422s|@prefix@|${pkgconfig_prefix}| 21423s|@exec_prefix@|${pkgconfig_execprefix}| 21424s|@bindir@|${pkgconfig_bindir}| 21425s|@libdir@|${pkgconfig_src_libdir}| 21426s|@datarootdir@|${pkgconfig_datarootdir}| 21427s|@datadir@|${pkgconfig_datadir}| 21428s|@sysconfdir@|${pkgconfig_sysconfdir}| 21429s|@includedir@|${pkgconfig_src_headers}| 21430s|@suffix@|${pkgconfig_suffix}| 21431s|@PACKAGE@|${pkgconfig_package}| 21432s|@PACKAGE_NAME@|${pkgconfig_libname}| 21433s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}| 21434s|@PACKAGE_VERSION@|${pkgconfig_version}| 21435s|@PACKAGE_REQUIRES@|${pkgconfig_requires}| 21436s|@LIBS@|${pkgconfig_libs}| 21437s|@LDFLAGS@|${pkgconfig_ldflags}| 21438s|@CPPFLAGS@|${pkgconfig_cppflags}| 21439AXEOF 21440sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 21441if test ! -s $pkgconfig_uninstalled ; then 21442 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 21443fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 21444 pkgconfig_requires_add=`echo ${pkgconfig_requires}` 21445if test ".$pkgconfig_requires_add" != "." ; then 21446 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add" 21447 else pkgconfig_requires_add=":" ; fi 21448pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'` 21449{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5 21450$as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;} 21451cat >conftest.sed <<AXEOF 21452s|@prefix@|\"${pkgconfig_prefix}\"| 21453s|@exec_prefix@|\"${pkgconfig_execprefix}\"| 21454s|@bindir@|\"${pkgconfig_bindir}\"| 21455s|@libdir@|\"${pkgconfig_src_libdir}\"| 21456s|@datarootdir@|\"${pkgconfig_datarootdir}\"| 21457s|@datadir@|\"${pkgconfig_datadir}\"| 21458s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"| 21459s|@includedir@|\"${pkgconfig_src_headers}\"| 21460s|@suffix@|\"${pkgconfig_suffix}\"| 21461s|@PACKAGE@|\"${pkgconfig_package}\"| 21462s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"| 21463s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"| 21464s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"| 21465s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"| 21466s|@LIBS@|\"${pkgconfig_libs}\"| 21467s|@LDFLAGS@|\"${pkgconfig_ldflags}\"| 21468s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"| 21469s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo > 21470s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of > 21471s>Version: *>\\;\\; --modversion|--version) echo > 21472s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add> 21473s>Libs: *>\\;\\; --libs) echo > 21474s>Cflags: *>\\;\\; --cflags) echo > 21475/--libs)/a\\ 21476 $pkgconfig_requires_add 21477/--cflags)/a\\ 21478 $pkgconfig_requires_add\\ 21479;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\ 21480;; --uninstalled) exit 0 \\ 21481;; *) ;; esac done 21482AXEOF 21483sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled 21484if test ! -s $pkgconfig_uninstalled ; then 21485 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5 21486fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled 21487 ;; 21488 "bound_test.sh":F) chmod +x bound_test.sh ;; 21489 "codegen_test.sh":F) chmod +x codegen_test.sh ;; 21490 "pip_test.sh":F) chmod +x pip_test.sh ;; 21491 21492 esac 21493done # for ac_tag 21494 21495 21496as_fn_exit 0 21497_ACEOF 21498ac_clean_files=$ac_clean_files_save 21499 21500test $ac_write_fail = 0 || 21501 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21502 21503 21504 ac_configure_args="$ac_configure_args $isl_configure_args" 21505 21506 21507# configure is writing to config.log, and then calls config.status. 21508# config.status does its own redirection, appending to config.log. 21509# Unfortunately, on DOS this fails, as config.log is still kept open 21510# by configure, so config.status won't be able to write to it; its 21511# output is simply discarded. So we exec the FD to /dev/null, 21512# effectively closing config.log, so it can be properly (re)opened and 21513# appended to by config.status. When coming back to configure, we 21514# need to make the FD available again. 21515if test "$no_create" != yes; then 21516 ac_cs_success=: 21517 ac_config_status_args= 21518 test "$silent" = yes && 21519 ac_config_status_args="$ac_config_status_args --quiet" 21520 exec 5>/dev/null 21521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21522 exec 5>>config.log 21523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21524 # would make configure fail if this is the last instruction. 21525 $ac_cs_success || as_fn_exit 1 21526fi 21527if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21529$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21530fi 21531 21532