1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library' 589PACKAGE_TARNAME='libgomp' 590PACKAGE_VERSION='1.0' 591PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='http://www.gnu.org/software/libgomp/' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_header_list= 632ac_func_list= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636LIBOBJS 637get_gcc_base_ver 638OMP_NEST_LOCK_25_KIND 639OMP_LOCK_25_KIND 640OMP_NEST_LOCK_25_ALIGN 641OMP_NEST_LOCK_25_SIZE 642OMP_LOCK_25_ALIGN 643OMP_LOCK_25_SIZE 644OMP_NEST_LOCK_KIND 645OMP_LOCK_KIND 646OMP_NEST_LOCK_ALIGN 647OMP_NEST_LOCK_SIZE 648OMP_LOCK_ALIGN 649OMP_LOCK_SIZE 650USE_FORTRAN_FALSE 651USE_FORTRAN_TRUE 652link_gomp 653XLDFLAGS 654XCFLAGS 655config_path 656CPU_COUNT 657LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE 658LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE 659LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE 660LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE 661LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE 662LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE 663OPT_LDFLAGS 664SECTION_LDFLAGS 665PLUGIN_GCN_FALSE 666PLUGIN_GCN_TRUE 667PLUGIN_HSA_FALSE 668PLUGIN_HSA_TRUE 669PLUGIN_NVPTX_FALSE 670PLUGIN_NVPTX_TRUE 671offload_additional_lib_paths 672offload_additional_options 673offload_targets 674offload_plugins 675PLUGIN_GCN_LIBS 676PLUGIN_GCN_LDFLAGS 677PLUGIN_GCN_CPPFLAGS 678PLUGIN_GCN 679PLUGIN_HSA_LIBS 680PLUGIN_HSA_LDFLAGS 681PLUGIN_HSA_CPPFLAGS 682PLUGIN_HSA 683HSA_RUNTIME_LIB 684HSA_RUNTIME_INCLUDE 685PLUGIN_NVPTX_LIBS 686PLUGIN_NVPTX_LDFLAGS 687PLUGIN_NVPTX_CPPFLAGS 688PLUGIN_NVPTX 689CUDA_DRIVER_LIB 690CUDA_DRIVER_INCLUDE 691libtool_VERSION 692ac_ct_FC 693FCFLAGS 694FC 695MAINT 696MAINTAINER_MODE_FALSE 697MAINTAINER_MODE_TRUE 698enable_static 699enable_shared 700lt_host_flags 701CPP 702OTOOL64 703OTOOL 704LIPO 705NMEDIT 706DSYMUTIL 707OBJDUMP 708LN_S 709NM 710ac_ct_DUMPBIN 711DUMPBIN 712LD 713FGREP 714EGREP 715GREP 716SED 717LIBTOOL 718BUILD_INFO_FALSE 719BUILD_INFO_TRUE 720PERL 721RANLIB 722AR 723am__fastdepCC_FALSE 724am__fastdepCC_TRUE 725CCDEPMODE 726am__nodep 727AMDEPBACKSLASH 728AMDEP_FALSE 729AMDEP_TRUE 730am__quote 731am__include 732DEPDIR 733OBJEXT 734EXEEXT 735ac_ct_CC 736CPPFLAGS 737LDFLAGS 738CFLAGS 739CC 740toolexeclibdir 741toolexecdir 742multi_basedir 743AM_BACKSLASH 744AM_DEFAULT_VERBOSITY 745AM_DEFAULT_V 746AM_V 747am__untar 748am__tar 749AMTAR 750am__leading_dot 751SET_MAKE 752AWK 753mkdir_p 754MKDIR_P 755INSTALL_STRIP_PROGRAM 756STRIP 757install_sh 758MAKEINFO 759AUTOHEADER 760AUTOMAKE 761AUTOCONF 762ACLOCAL 763VERSION 764PACKAGE 765CYGPATH_W 766am__isrc 767INSTALL_DATA 768INSTALL_SCRIPT 769INSTALL_PROGRAM 770target_os 771target_vendor 772target_cpu 773target 774host_os 775host_vendor 776host_cpu 777host 778build_os 779build_vendor 780build_cpu 781build 782GENINSRC_FALSE 783GENINSRC_TRUE 784target_alias 785host_alias 786build_alias 787LIBS 788ECHO_T 789ECHO_N 790ECHO_C 791DEFS 792mandir 793localedir 794libdir 795psdir 796pdfdir 797dvidir 798htmldir 799infodir 800docdir 801oldincludedir 802includedir 803localstatedir 804sharedstatedir 805sysconfdir 806datadir 807datarootdir 808libexecdir 809sbindir 810bindir 811program_transform_name 812prefix 813exec_prefix 814PACKAGE_URL 815PACKAGE_BUGREPORT 816PACKAGE_STRING 817PACKAGE_VERSION 818PACKAGE_TARNAME 819PACKAGE_NAME 820PATH_SEPARATOR 821SHELL' 822ac_subst_files='' 823ac_user_opts=' 824enable_option_checking 825enable_version_specific_runtime_libs 826enable_generated_files_in_srcdir 827enable_silent_rules 828enable_multilib 829with_toolexeclibdir 830enable_dependency_tracking 831enable_shared 832enable_static 833with_pic 834enable_fast_install 835with_gnu_ld 836enable_libtool_lock 837enable_maintainer_mode 838with_cuda_driver 839with_cuda_driver_include 840with_cuda_driver_lib 841with_hsa_runtime 842with_hsa_runtime_include 843with_hsa_runtime_lib 844enable_linux_futex 845enable_tls 846enable_symvers 847enable_cet 848with_gcc_major_version_only 849' 850 ac_precious_vars='build_alias 851host_alias 852target_alias 853CPP 854CPPFLAGS 855FC 856FCFLAGS 857LDFLAGS 858LIBS' 859 860 861# Initialize some variables set by options. 862ac_init_help= 863ac_init_version=false 864ac_unrecognized_opts= 865ac_unrecognized_sep= 866# The variables have the same names as the options, with 867# dashes changed to underlines. 868cache_file=/dev/null 869exec_prefix=NONE 870no_create= 871no_recursion= 872prefix=NONE 873program_prefix=NONE 874program_suffix=NONE 875program_transform_name=s,x,x, 876silent= 877site= 878srcdir= 879verbose= 880x_includes=NONE 881x_libraries=NONE 882 883# Installation directory options. 884# These are left unexpanded so users can "make install exec_prefix=/foo" 885# and all the variables that are supposed to be based on exec_prefix 886# by default will actually change. 887# Use braces instead of parens because sh, perl, etc. also accept them. 888# (The list follows the same order as the GNU Coding Standards.) 889bindir='${exec_prefix}/bin' 890sbindir='${exec_prefix}/sbin' 891libexecdir='${exec_prefix}/libexec' 892datarootdir='${prefix}/share' 893datadir='${datarootdir}' 894sysconfdir='${prefix}/etc' 895sharedstatedir='${prefix}/com' 896localstatedir='${prefix}/var' 897includedir='${prefix}/include' 898oldincludedir='/usr/include' 899docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 900infodir='${datarootdir}/info' 901htmldir='${docdir}' 902dvidir='${docdir}' 903pdfdir='${docdir}' 904psdir='${docdir}' 905libdir='${exec_prefix}/lib' 906localedir='${datarootdir}/locale' 907mandir='${datarootdir}/man' 908 909ac_prev= 910ac_dashdash= 911for ac_option 912do 913 # If the previous option needs an argument, assign it. 914 if test -n "$ac_prev"; then 915 eval $ac_prev=\$ac_option 916 ac_prev= 917 continue 918 fi 919 920 case $ac_option in 921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 922 *=) ac_optarg= ;; 923 *) ac_optarg=yes ;; 924 esac 925 926 # Accept the important Cygnus configure options, so we can diagnose typos. 927 928 case $ac_dashdash$ac_option in 929 --) 930 ac_dashdash=yes ;; 931 932 -bindir | --bindir | --bindi | --bind | --bin | --bi) 933 ac_prev=bindir ;; 934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 935 bindir=$ac_optarg ;; 936 937 -build | --build | --buil | --bui | --bu) 938 ac_prev=build_alias ;; 939 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 940 build_alias=$ac_optarg ;; 941 942 -cache-file | --cache-file | --cache-fil | --cache-fi \ 943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 944 ac_prev=cache_file ;; 945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 947 cache_file=$ac_optarg ;; 948 949 --config-cache | -C) 950 cache_file=config.cache ;; 951 952 -datadir | --datadir | --datadi | --datad) 953 ac_prev=datadir ;; 954 -datadir=* | --datadir=* | --datadi=* | --datad=*) 955 datadir=$ac_optarg ;; 956 957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 958 | --dataroo | --dataro | --datar) 959 ac_prev=datarootdir ;; 960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 962 datarootdir=$ac_optarg ;; 963 964 -disable-* | --disable-*) 965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 966 # Reject names that are not valid shell variable names. 967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 968 as_fn_error $? "invalid feature name: $ac_useropt" 969 ac_useropt_orig=$ac_useropt 970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 971 case $ac_user_opts in 972 *" 973"enable_$ac_useropt" 974"*) ;; 975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 976 ac_unrecognized_sep=', ';; 977 esac 978 eval enable_$ac_useropt=no ;; 979 980 -docdir | --docdir | --docdi | --doc | --do) 981 ac_prev=docdir ;; 982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 983 docdir=$ac_optarg ;; 984 985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 986 ac_prev=dvidir ;; 987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 988 dvidir=$ac_optarg ;; 989 990 -enable-* | --enable-*) 991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 992 # Reject names that are not valid shell variable names. 993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 994 as_fn_error $? "invalid feature name: $ac_useropt" 995 ac_useropt_orig=$ac_useropt 996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 997 case $ac_user_opts in 998 *" 999"enable_$ac_useropt" 1000"*) ;; 1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1002 ac_unrecognized_sep=', ';; 1003 esac 1004 eval enable_$ac_useropt=\$ac_optarg ;; 1005 1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1008 | --exec | --exe | --ex) 1009 ac_prev=exec_prefix ;; 1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1012 | --exec=* | --exe=* | --ex=*) 1013 exec_prefix=$ac_optarg ;; 1014 1015 -gas | --gas | --ga | --g) 1016 # Obsolete; use --with-gas. 1017 with_gas=yes ;; 1018 1019 -help | --help | --hel | --he | -h) 1020 ac_init_help=long ;; 1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1022 ac_init_help=recursive ;; 1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1024 ac_init_help=short ;; 1025 1026 -host | --host | --hos | --ho) 1027 ac_prev=host_alias ;; 1028 -host=* | --host=* | --hos=* | --ho=*) 1029 host_alias=$ac_optarg ;; 1030 1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1032 ac_prev=htmldir ;; 1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1034 | --ht=*) 1035 htmldir=$ac_optarg ;; 1036 1037 -includedir | --includedir | --includedi | --included | --include \ 1038 | --includ | --inclu | --incl | --inc) 1039 ac_prev=includedir ;; 1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1041 | --includ=* | --inclu=* | --incl=* | --inc=*) 1042 includedir=$ac_optarg ;; 1043 1044 -infodir | --infodir | --infodi | --infod | --info | --inf) 1045 ac_prev=infodir ;; 1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1047 infodir=$ac_optarg ;; 1048 1049 -libdir | --libdir | --libdi | --libd) 1050 ac_prev=libdir ;; 1051 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1052 libdir=$ac_optarg ;; 1053 1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1055 | --libexe | --libex | --libe) 1056 ac_prev=libexecdir ;; 1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1058 | --libexe=* | --libex=* | --libe=*) 1059 libexecdir=$ac_optarg ;; 1060 1061 -localedir | --localedir | --localedi | --localed | --locale) 1062 ac_prev=localedir ;; 1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1064 localedir=$ac_optarg ;; 1065 1066 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1067 | --localstate | --localstat | --localsta | --localst | --locals) 1068 ac_prev=localstatedir ;; 1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1071 localstatedir=$ac_optarg ;; 1072 1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1074 ac_prev=mandir ;; 1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1076 mandir=$ac_optarg ;; 1077 1078 -nfp | --nfp | --nf) 1079 # Obsolete; use --without-fp. 1080 with_fp=no ;; 1081 1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1083 | --no-cr | --no-c | -n) 1084 no_create=yes ;; 1085 1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1088 no_recursion=yes ;; 1089 1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1092 | --oldin | --oldi | --old | --ol | --o) 1093 ac_prev=oldincludedir ;; 1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1097 oldincludedir=$ac_optarg ;; 1098 1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1100 ac_prev=prefix ;; 1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1102 prefix=$ac_optarg ;; 1103 1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1105 | --program-pre | --program-pr | --program-p) 1106 ac_prev=program_prefix ;; 1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1109 program_prefix=$ac_optarg ;; 1110 1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1112 | --program-suf | --program-su | --program-s) 1113 ac_prev=program_suffix ;; 1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1116 program_suffix=$ac_optarg ;; 1117 1118 -program-transform-name | --program-transform-name \ 1119 | --program-transform-nam | --program-transform-na \ 1120 | --program-transform-n | --program-transform- \ 1121 | --program-transform | --program-transfor \ 1122 | --program-transfo | --program-transf \ 1123 | --program-trans | --program-tran \ 1124 | --progr-tra | --program-tr | --program-t) 1125 ac_prev=program_transform_name ;; 1126 -program-transform-name=* | --program-transform-name=* \ 1127 | --program-transform-nam=* | --program-transform-na=* \ 1128 | --program-transform-n=* | --program-transform-=* \ 1129 | --program-transform=* | --program-transfor=* \ 1130 | --program-transfo=* | --program-transf=* \ 1131 | --program-trans=* | --program-tran=* \ 1132 | --progr-tra=* | --program-tr=* | --program-t=*) 1133 program_transform_name=$ac_optarg ;; 1134 1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1136 ac_prev=pdfdir ;; 1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1138 pdfdir=$ac_optarg ;; 1139 1140 -psdir | --psdir | --psdi | --psd | --ps) 1141 ac_prev=psdir ;; 1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1143 psdir=$ac_optarg ;; 1144 1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1146 | -silent | --silent | --silen | --sile | --sil) 1147 silent=yes ;; 1148 1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1150 ac_prev=sbindir ;; 1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1152 | --sbi=* | --sb=*) 1153 sbindir=$ac_optarg ;; 1154 1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1157 | --sharedst | --shareds | --shared | --share | --shar \ 1158 | --sha | --sh) 1159 ac_prev=sharedstatedir ;; 1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1163 | --sha=* | --sh=*) 1164 sharedstatedir=$ac_optarg ;; 1165 1166 -site | --site | --sit) 1167 ac_prev=site ;; 1168 -site=* | --site=* | --sit=*) 1169 site=$ac_optarg ;; 1170 1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1172 ac_prev=srcdir ;; 1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1174 srcdir=$ac_optarg ;; 1175 1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1177 | --syscon | --sysco | --sysc | --sys | --sy) 1178 ac_prev=sysconfdir ;; 1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1181 sysconfdir=$ac_optarg ;; 1182 1183 -target | --target | --targe | --targ | --tar | --ta | --t) 1184 ac_prev=target_alias ;; 1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1186 target_alias=$ac_optarg ;; 1187 1188 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1189 verbose=yes ;; 1190 1191 -version | --version | --versio | --versi | --vers | -V) 1192 ac_init_version=: ;; 1193 1194 -with-* | --with-*) 1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198 as_fn_error $? "invalid package name: $ac_useropt" 1199 ac_useropt_orig=$ac_useropt 1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1201 case $ac_user_opts in 1202 *" 1203"with_$ac_useropt" 1204"*) ;; 1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1206 ac_unrecognized_sep=', ';; 1207 esac 1208 eval with_$ac_useropt=\$ac_optarg ;; 1209 1210 -without-* | --without-*) 1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1214 as_fn_error $? "invalid package name: $ac_useropt" 1215 ac_useropt_orig=$ac_useropt 1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1217 case $ac_user_opts in 1218 *" 1219"with_$ac_useropt" 1220"*) ;; 1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1222 ac_unrecognized_sep=', ';; 1223 esac 1224 eval with_$ac_useropt=no ;; 1225 1226 --x) 1227 # Obsolete; use --with-x. 1228 with_x=yes ;; 1229 1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1231 | --x-incl | --x-inc | --x-in | --x-i) 1232 ac_prev=x_includes ;; 1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1235 x_includes=$ac_optarg ;; 1236 1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1239 ac_prev=x_libraries ;; 1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1242 x_libraries=$ac_optarg ;; 1243 1244 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1245Try \`$0 --help' for more information" 1246 ;; 1247 1248 *=*) 1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1250 # Reject names that are not valid shell variable names. 1251 case $ac_envvar in #( 1252 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1254 esac 1255 eval $ac_envvar=\$ac_optarg 1256 export $ac_envvar ;; 1257 1258 *) 1259 # FIXME: should be removed in autoconf 3.0. 1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1264 ;; 1265 1266 esac 1267done 1268 1269if test -n "$ac_prev"; then 1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1271 as_fn_error $? "missing argument to $ac_option" 1272fi 1273 1274if test -n "$ac_unrecognized_opts"; then 1275 case $enable_option_checking in 1276 no) ;; 1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1279 esac 1280fi 1281 1282# Check all directory arguments for consistency. 1283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1284 datadir sysconfdir sharedstatedir localstatedir includedir \ 1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1286 libdir localedir mandir 1287do 1288 eval ac_val=\$$ac_var 1289 # Remove trailing slashes. 1290 case $ac_val in 1291 */ ) 1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1293 eval $ac_var=\$ac_val;; 1294 esac 1295 # Be sure to have absolute directory names. 1296 case $ac_val in 1297 [\\/$]* | ?:[\\/]* ) continue;; 1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1299 esac 1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1301done 1302 1303# There might be people who depend on the old broken behavior: `$host' 1304# used to hold the argument of --host etc. 1305# FIXME: To remove some day. 1306build=$build_alias 1307host=$host_alias 1308target=$target_alias 1309 1310# FIXME: To remove some day. 1311if test "x$host_alias" != x; then 1312 if test "x$build_alias" = x; then 1313 cross_compiling=maybe 1314 elif test "x$build_alias" != "x$host_alias"; then 1315 cross_compiling=yes 1316 fi 1317fi 1318 1319ac_tool_prefix= 1320test -n "$host_alias" && ac_tool_prefix=$host_alias- 1321 1322test "$silent" = yes && exec 6>/dev/null 1323 1324 1325ac_pwd=`pwd` && test -n "$ac_pwd" && 1326ac_ls_di=`ls -di .` && 1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1328 as_fn_error $? "working directory cannot be determined" 1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1330 as_fn_error $? "pwd does not report name of working directory" 1331 1332 1333# Find the source files, if location was not specified. 1334if test -z "$srcdir"; then 1335 ac_srcdir_defaulted=yes 1336 # Try the directory containing this script, then the parent directory. 1337 ac_confdir=`$as_dirname -- "$as_myself" || 1338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1339 X"$as_myself" : 'X\(//\)[^/]' \| \ 1340 X"$as_myself" : 'X\(//\)$' \| \ 1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1342$as_echo X"$as_myself" | 1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)[^/].*/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\).*/{ 1356 s//\1/ 1357 q 1358 } 1359 s/.*/./; q'` 1360 srcdir=$ac_confdir 1361 if test ! -r "$srcdir/$ac_unique_file"; then 1362 srcdir=.. 1363 fi 1364else 1365 ac_srcdir_defaulted=no 1366fi 1367if test ! -r "$srcdir/$ac_unique_file"; then 1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1370fi 1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1372ac_abs_confdir=`( 1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1374 pwd)` 1375# When building in place, set srcdir=. 1376if test "$ac_abs_confdir" = "$ac_pwd"; then 1377 srcdir=. 1378fi 1379# Remove unnecessary trailing slashes from srcdir. 1380# Double slashes in file names in object file debugging info 1381# mess up M-x gdb in Emacs. 1382case $srcdir in 1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1384esac 1385for ac_var in $ac_precious_vars; do 1386 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_env_${ac_var}_value=\$${ac_var} 1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1390done 1391 1392# 1393# Report the --help message. 1394# 1395if test "$ac_init_help" = "long"; then 1396 # Omit some internal or obsolete options to make the list less imposing. 1397 # This message is too long to be a string in the A/UX 3.1 sh. 1398 cat <<_ACEOF 1399\`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems. 1400 1401Usage: $0 [OPTION]... [VAR=VALUE]... 1402 1403To assign environment variables (e.g., CC, CFLAGS...), specify them as 1404VAR=VALUE. See below for descriptions of some of the useful variables. 1405 1406Defaults for the options are specified in brackets. 1407 1408Configuration: 1409 -h, --help display this help and exit 1410 --help=short display options specific to this package 1411 --help=recursive display the short help of all the included packages 1412 -V, --version display version information and exit 1413 -q, --quiet, --silent do not print \`checking ...' messages 1414 --cache-file=FILE cache test results in FILE [disabled] 1415 -C, --config-cache alias for \`--cache-file=config.cache' 1416 -n, --no-create do not create output files 1417 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1418 1419Installation directories: 1420 --prefix=PREFIX install architecture-independent files in PREFIX 1421 [$ac_default_prefix] 1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1423 [PREFIX] 1424 1425By default, \`make install' will install all the files in 1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1427an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1428for instance \`--prefix=\$HOME'. 1429 1430For better control, use the options below. 1431 1432Fine tuning of the installation directories: 1433 --bindir=DIR user executables [EPREFIX/bin] 1434 --sbindir=DIR system admin executables [EPREFIX/sbin] 1435 --libexecdir=DIR program executables [EPREFIX/libexec] 1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1439 --libdir=DIR object code libraries [EPREFIX/lib] 1440 --includedir=DIR C header files [PREFIX/include] 1441 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1444 --infodir=DIR info documentation [DATAROOTDIR/info] 1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1446 --mandir=DIR man documentation [DATAROOTDIR/man] 1447 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp] 1448 --htmldir=DIR html documentation [DOCDIR] 1449 --dvidir=DIR dvi documentation [DOCDIR] 1450 --pdfdir=DIR pdf documentation [DOCDIR] 1451 --psdir=DIR ps documentation [DOCDIR] 1452_ACEOF 1453 1454 cat <<\_ACEOF 1455 1456Program names: 1457 --program-prefix=PREFIX prepend PREFIX to installed program names 1458 --program-suffix=SUFFIX append SUFFIX to installed program names 1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1460 1461System types: 1462 --build=BUILD configure for building on BUILD [guessed] 1463 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1464 --target=TARGET configure for building compilers for TARGET [HOST] 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 case $ac_init_help in 1470 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";; 1471 esac 1472 cat <<\_ACEOF 1473 1474Optional Features: 1475 --disable-option-checking ignore unrecognized --enable/--with options 1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1478 --enable-version-specific-runtime-libs 1479 Specify that runtime libraries should be installed 1480 in a compiler-specific directory [default=no] 1481 --enable-generated-files-in-srcdir 1482 put copies of generated files in source dir intended 1483 for creating source tarballs for users without 1484 texinfo bison or flex. [default=no] 1485 --enable-silent-rules less verbose build output (undo: "make V=1") 1486 --disable-silent-rules verbose build output (undo: "make V=0") 1487 --enable-multilib build many library versions (default) 1488 --enable-dependency-tracking 1489 do not reject slow dependency extractors 1490 --disable-dependency-tracking 1491 speeds up one-time build 1492 --enable-shared[=PKGS] build shared libraries [default=yes] 1493 --enable-static[=PKGS] build static libraries [default=yes] 1494 --enable-fast-install[=PKGS] 1495 optimize for fast installation [default=yes] 1496 --disable-libtool-lock avoid locking (might break parallel builds) 1497 --enable-maintainer-mode 1498 enable make rules and dependencies not useful (and 1499 sometimes confusing) to the casual installer 1500 --enable-linux-futex use the Linux futex system call [default=default] 1501 --enable-tls Use thread-local storage [default=yes] 1502 --enable-symvers=STYLE enables symbol versioning of the shared library 1503 [default=yes] 1504 --enable-cet enable Intel CET in target libraries [default=no] 1505 1506Optional Packages: 1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1509 --with-toolexeclibdir=DIR 1510 install libraries built with a cross compiler within 1511 DIR 1512 --with-pic try to use only PIC/non-PIC objects [default=use 1513 both] 1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1515 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver 1516 package. Equivalent to 1517 --with-cuda-driver-include=PATH/include plus 1518 --with-cuda-driver-lib=PATH/lib 1519 --with-cuda-driver-include=PATH 1520 specify directory for installed CUDA driver include 1521 files 1522 --with-cuda-driver-lib=PATH 1523 specify directory for the installed CUDA driver 1524 library 1525 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time 1526 package. Equivalent to 1527 --with-hsa-runtime-include=PATH/include plus 1528 --with-hsa-runtime-lib=PATH/lib 1529 --with-hsa-runtime-include=PATH 1530 specify directory for installed HSA run-time include 1531 files 1532 --with-hsa-runtime-lib=PATH 1533 specify directory for the installed HSA run-time 1534 library 1535 --with-gcc-major-version-only 1536 use only GCC major number in filesystem paths 1537 1538Some influential environment variables: 1539 CC C compiler command 1540 CFLAGS C compiler flags 1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1542 nonstandard directory <lib dir> 1543 LIBS libraries to pass to the linker, e.g. -l<library> 1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1545 you have headers in a nonstandard directory <include dir> 1546 CPP C preprocessor 1547 FC Fortran compiler command 1548 FCFLAGS Fortran compiler flags 1549 1550Use these variables to override the choices made by `configure' or to help 1551it to find libraries and programs with nonstandard names/locations. 1552 1553Report bugs to the package provider. 1554GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. 1555General help using GNU software: <http://www.gnu.org/gethelp/>. 1556_ACEOF 1557ac_status=$? 1558fi 1559 1560if test "$ac_init_help" = "recursive"; then 1561 # If there are subdirs, report their specific --help. 1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1563 test -d "$ac_dir" || 1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1565 continue 1566 ac_builddir=. 1567 1568case "$ac_dir" in 1569.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1570*) 1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1572 # A ".." for each directory in $ac_dir_suffix. 1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1574 case $ac_top_builddir_sub in 1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1577 esac ;; 1578esac 1579ac_abs_top_builddir=$ac_pwd 1580ac_abs_builddir=$ac_pwd$ac_dir_suffix 1581# for backward compatibility: 1582ac_top_builddir=$ac_top_build_prefix 1583 1584case $srcdir in 1585 .) # We are building in place. 1586 ac_srcdir=. 1587 ac_top_srcdir=$ac_top_builddir_sub 1588 ac_abs_top_srcdir=$ac_pwd ;; 1589 [\\/]* | ?:[\\/]* ) # Absolute name. 1590 ac_srcdir=$srcdir$ac_dir_suffix; 1591 ac_top_srcdir=$srcdir 1592 ac_abs_top_srcdir=$srcdir ;; 1593 *) # Relative name. 1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1595 ac_top_srcdir=$ac_top_build_prefix$srcdir 1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1597esac 1598ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1599 1600 cd "$ac_dir" || { ac_status=$?; continue; } 1601 # Check for guested configure. 1602 if test -f "$ac_srcdir/configure.gnu"; then 1603 echo && 1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1605 elif test -f "$ac_srcdir/configure"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure" --help=recursive 1608 else 1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1610 fi || ac_status=$? 1611 cd "$ac_pwd" || { ac_status=$?; break; } 1612 done 1613fi 1614 1615test -n "$ac_init_help" && exit $ac_status 1616if $ac_init_version; then 1617 cat <<\_ACEOF 1618GNU Offloading and Multi Processing Runtime Library configure 1.0 1619generated by GNU Autoconf 2.69 1620 1621Copyright (C) 2012 Free Software Foundation, Inc. 1622This configure script is free software; the Free Software Foundation 1623gives unlimited permission to copy, distribute and modify it. 1624_ACEOF 1625 exit 1626fi 1627 1628## ------------------------ ## 1629## Autoconf initialization. ## 1630## ------------------------ ## 1631 1632# ac_fn_c_try_compile LINENO 1633# -------------------------- 1634# Try to compile conftest.$ac_ext, and return whether this succeeded. 1635ac_fn_c_try_compile () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 rm -f conftest.$ac_objext 1639 if { { ac_try="$ac_compile" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645$as_echo "$ac_try_echo"; } >&5 1646 (eval "$ac_compile") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } && { 1655 test -z "$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 } && test -s conftest.$ac_objext; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 as_fn_set_status $ac_retval 1667 1668} # ac_fn_c_try_compile 1669 1670# ac_fn_c_try_link LINENO 1671# ----------------------- 1672# Try to link conftest.$ac_ext, and return whether this succeeded. 1673ac_fn_c_try_link () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 rm -f conftest.$ac_objext conftest$ac_exeext 1677 if { { ac_try="$ac_link" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_link") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } && { 1693 test -z "$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 } && test -s conftest$ac_exeext && { 1696 test "$cross_compiling" = yes || 1697 test -x conftest$ac_exeext 1698 }; then : 1699 ac_retval=0 1700else 1701 $as_echo "$as_me: failed program was:" >&5 1702sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 1705fi 1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1708 # interfere with the next link command; also delete a directory that is 1709 # left behind by Apple's compiler. We do this before executing the actions. 1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 as_fn_set_status $ac_retval 1713 1714} # ac_fn_c_try_link 1715 1716# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1717# ------------------------------------------------------- 1718# Tests whether HEADER exists and can be compiled using the include files in 1719# INCLUDES, setting the cache variable VAR accordingly. 1720ac_fn_c_check_header_compile () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1724$as_echo_n "checking for $2... " >&6; } 1725if eval \${$3+:} false; then : 1726 $as_echo_n "(cached) " >&6 1727else 1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1729/* end confdefs.h. */ 1730$4 1731#include <$2> 1732_ACEOF 1733if ac_fn_c_try_compile "$LINENO"; then : 1734 eval "$3=yes" 1735else 1736 eval "$3=no" 1737fi 1738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1739fi 1740eval ac_res=\$$3 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1742$as_echo "$ac_res" >&6; } 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 1745} # ac_fn_c_check_header_compile 1746 1747# ac_fn_c_try_cpp LINENO 1748# ---------------------- 1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1750ac_fn_c_try_cpp () 1751{ 1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753 if { { ac_try="$ac_cpp conftest.$ac_ext" 1754case "(($ac_try" in 1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1756 *) ac_try_echo=$ac_try;; 1757esac 1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1759$as_echo "$ac_try_echo"; } >&5 1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1761 ac_status=$? 1762 if test -s conftest.err; then 1763 grep -v '^ *+' conftest.err >conftest.er1 1764 cat conftest.er1 >&5 1765 mv -f conftest.er1 conftest.err 1766 fi 1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1768 test $ac_status = 0; } > conftest.i && { 1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1770 test ! -s conftest.err 1771 }; then : 1772 ac_retval=0 1773else 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=1 1778fi 1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1780 as_fn_set_status $ac_retval 1781 1782} # ac_fn_c_try_cpp 1783 1784# ac_fn_c_try_run LINENO 1785# ---------------------- 1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1787# that executables *can* be run. 1788ac_fn_c_try_run () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 if { { ac_try="$ac_link" 1792case "(($ac_try" in 1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1794 *) ac_try_echo=$ac_try;; 1795esac 1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1797$as_echo "$ac_try_echo"; } >&5 1798 (eval "$ac_link") 2>&5 1799 ac_status=$? 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1802 { { case "(($ac_try" in 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1804 *) ac_try_echo=$ac_try;; 1805esac 1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1807$as_echo "$ac_try_echo"; } >&5 1808 (eval "$ac_try") 2>&5 1809 ac_status=$? 1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1811 test $ac_status = 0; }; }; then : 1812 ac_retval=0 1813else 1814 $as_echo "$as_me: program exited with status $ac_status" >&5 1815 $as_echo "$as_me: failed program was:" >&5 1816sed 's/^/| /' conftest.$ac_ext >&5 1817 1818 ac_retval=$ac_status 1819fi 1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 as_fn_set_status $ac_retval 1823 1824} # ac_fn_c_try_run 1825 1826# ac_fn_c_check_func LINENO FUNC VAR 1827# ---------------------------------- 1828# Tests whether FUNC exists, setting the cache variable VAR accordingly 1829ac_fn_c_check_func () 1830{ 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833$as_echo_n "checking for $2... " >&6; } 1834if eval \${$3+:} false; then : 1835 $as_echo_n "(cached) " >&6 1836else 1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838/* end confdefs.h. */ 1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1841#define $2 innocuous_$2 1842 1843/* System header to define __stub macros and hopefully few prototypes, 1844 which can conflict with char $2 (); below. 1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1846 <limits.h> exists even on freestanding compilers. */ 1847 1848#ifdef __STDC__ 1849# include <limits.h> 1850#else 1851# include <assert.h> 1852#endif 1853 1854#undef $2 1855 1856/* Override any GCC internal prototype to avoid an error. 1857 Use char because int might match the return type of a GCC 1858 builtin and then its argument prototype would still apply. */ 1859#ifdef __cplusplus 1860extern "C" 1861#endif 1862char $2 (); 1863/* The GNU C library defines this for functions which it implements 1864 to always fail with ENOSYS. Some functions are actually named 1865 something starting with __ and the normal name is an alias. */ 1866#if defined __stub_$2 || defined __stub___$2 1867choke me 1868#endif 1869 1870int 1871main () 1872{ 1873return $2 (); 1874 ; 1875 return 0; 1876} 1877_ACEOF 1878if ac_fn_c_try_link "$LINENO"; then : 1879 eval "$3=yes" 1880else 1881 eval "$3=no" 1882fi 1883rm -f core conftest.err conftest.$ac_objext \ 1884 conftest$ac_exeext conftest.$ac_ext 1885fi 1886eval ac_res=\$$3 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1888$as_echo "$ac_res" >&6; } 1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1890 1891} # ac_fn_c_check_func 1892 1893# ac_fn_fc_try_compile LINENO 1894# --------------------------- 1895# Try to compile conftest.$ac_ext, and return whether this succeeded. 1896ac_fn_fc_try_compile () 1897{ 1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1899 rm -f conftest.$ac_objext 1900 if { { ac_try="$ac_compile" 1901case "(($ac_try" in 1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1903 *) ac_try_echo=$ac_try;; 1904esac 1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1906$as_echo "$ac_try_echo"; } >&5 1907 (eval "$ac_compile") 2>conftest.err 1908 ac_status=$? 1909 if test -s conftest.err; then 1910 grep -v '^ *+' conftest.err >conftest.er1 1911 cat conftest.er1 >&5 1912 mv -f conftest.er1 conftest.err 1913 fi 1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1915 test $ac_status = 0; } && { 1916 test -z "$ac_fc_werror_flag" || 1917 test ! -s conftest.err 1918 } && test -s conftest.$ac_objext; then : 1919 ac_retval=0 1920else 1921 $as_echo "$as_me: failed program was:" >&5 1922sed 's/^/| /' conftest.$ac_ext >&5 1923 1924 ac_retval=1 1925fi 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 as_fn_set_status $ac_retval 1928 1929} # ac_fn_fc_try_compile 1930 1931# ac_fn_fc_try_link LINENO 1932# ------------------------ 1933# Try to link conftest.$ac_ext, and return whether this succeeded. 1934ac_fn_fc_try_link () 1935{ 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 rm -f conftest.$ac_objext conftest$ac_exeext 1938 if { { ac_try="$ac_link" 1939case "(($ac_try" in 1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1941 *) ac_try_echo=$ac_try;; 1942esac 1943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1944$as_echo "$ac_try_echo"; } >&5 1945 (eval "$ac_link") 2>conftest.err 1946 ac_status=$? 1947 if test -s conftest.err; then 1948 grep -v '^ *+' conftest.err >conftest.er1 1949 cat conftest.er1 >&5 1950 mv -f conftest.er1 conftest.err 1951 fi 1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1953 test $ac_status = 0; } && { 1954 test -z "$ac_fc_werror_flag" || 1955 test ! -s conftest.err 1956 } && test -s conftest$ac_exeext && { 1957 test "$cross_compiling" = yes || 1958 test -x conftest$ac_exeext 1959 }; then : 1960 ac_retval=0 1961else 1962 $as_echo "$as_me: failed program was:" >&5 1963sed 's/^/| /' conftest.$ac_ext >&5 1964 1965 ac_retval=1 1966fi 1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1969 # interfere with the next link command; also delete a directory that is 1970 # left behind by Apple's compiler. We do this before executing the actions. 1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 as_fn_set_status $ac_retval 1974 1975} # ac_fn_fc_try_link 1976 1977# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1978# ------------------------------------------------------- 1979# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1980# the include files in INCLUDES and setting the cache variable VAR 1981# accordingly. 1982ac_fn_c_check_header_mongrel () 1983{ 1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1985 if eval \${$3+:} false; then : 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1987$as_echo_n "checking for $2... " >&6; } 1988if eval \${$3+:} false; then : 1989 $as_echo_n "(cached) " >&6 1990fi 1991eval ac_res=\$$3 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1993$as_echo "$ac_res" >&6; } 1994else 1995 # Is the header compilable? 1996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1997$as_echo_n "checking $2 usability... " >&6; } 1998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1999/* end confdefs.h. */ 2000$4 2001#include <$2> 2002_ACEOF 2003if ac_fn_c_try_compile "$LINENO"; then : 2004 ac_header_compiler=yes 2005else 2006 ac_header_compiler=no 2007fi 2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2010$as_echo "$ac_header_compiler" >&6; } 2011 2012# Is the header present? 2013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2014$as_echo_n "checking $2 presence... " >&6; } 2015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2016/* end confdefs.h. */ 2017#include <$2> 2018_ACEOF 2019if ac_fn_c_try_cpp "$LINENO"; then : 2020 ac_header_preproc=yes 2021else 2022 ac_header_preproc=no 2023fi 2024rm -f conftest.err conftest.i conftest.$ac_ext 2025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2026$as_echo "$ac_header_preproc" >&6; } 2027 2028# So? What about this header? 2029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2030 yes:no: ) 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2032$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2034$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2035 ;; 2036 no:yes:* ) 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2038$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2040$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2042$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2044$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2046$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2047 ;; 2048esac 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2050$as_echo_n "checking for $2... " >&6; } 2051if eval \${$3+:} false; then : 2052 $as_echo_n "(cached) " >&6 2053else 2054 eval "$3=\$ac_header_compiler" 2055fi 2056eval ac_res=\$$3 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2058$as_echo "$ac_res" >&6; } 2059fi 2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2061 2062} # ac_fn_c_check_header_mongrel 2063 2064# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2065# ------------------------------------------- 2066# Tests whether TYPE exists after having included INCLUDES, setting cache 2067# variable VAR accordingly. 2068ac_fn_c_check_type () 2069{ 2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2072$as_echo_n "checking for $2... " >&6; } 2073if eval \${$3+:} false; then : 2074 $as_echo_n "(cached) " >&6 2075else 2076 eval "$3=no" 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2078/* end confdefs.h. */ 2079$4 2080int 2081main () 2082{ 2083if (sizeof ($2)) 2084 return 0; 2085 ; 2086 return 0; 2087} 2088_ACEOF 2089if ac_fn_c_try_compile "$LINENO"; then : 2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2091/* end confdefs.h. */ 2092$4 2093int 2094main () 2095{ 2096if (sizeof (($2))) 2097 return 0; 2098 ; 2099 return 0; 2100} 2101_ACEOF 2102if ac_fn_c_try_compile "$LINENO"; then : 2103 2104else 2105 eval "$3=yes" 2106fi 2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2108fi 2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2110fi 2111eval ac_res=\$$3 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2113$as_echo "$ac_res" >&6; } 2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2115 2116} # ac_fn_c_check_type 2117 2118# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2119# -------------------------------------------- 2120# Tries to find the compile-time value of EXPR in a program that includes 2121# INCLUDES, setting VAR accordingly. Returns whether the value could be 2122# computed 2123ac_fn_c_compute_int () 2124{ 2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2126 if test "$cross_compiling" = yes; then 2127 # Depending upon the size, compute the lo and hi bounds. 2128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2129/* end confdefs.h. */ 2130$4 2131int 2132main () 2133{ 2134static int test_array [1 - 2 * !(($2) >= 0)]; 2135test_array [0] = 0; 2136return test_array [0]; 2137 2138 ; 2139 return 0; 2140} 2141_ACEOF 2142if ac_fn_c_try_compile "$LINENO"; then : 2143 ac_lo=0 ac_mid=0 2144 while :; do 2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2146/* end confdefs.h. */ 2147$4 2148int 2149main () 2150{ 2151static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2152test_array [0] = 0; 2153return test_array [0]; 2154 2155 ; 2156 return 0; 2157} 2158_ACEOF 2159if ac_fn_c_try_compile "$LINENO"; then : 2160 ac_hi=$ac_mid; break 2161else 2162 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2163 if test $ac_lo -le $ac_mid; then 2164 ac_lo= ac_hi= 2165 break 2166 fi 2167 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2168fi 2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2170 done 2171else 2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2173/* end confdefs.h. */ 2174$4 2175int 2176main () 2177{ 2178static int test_array [1 - 2 * !(($2) < 0)]; 2179test_array [0] = 0; 2180return test_array [0]; 2181 2182 ; 2183 return 0; 2184} 2185_ACEOF 2186if ac_fn_c_try_compile "$LINENO"; then : 2187 ac_hi=-1 ac_mid=-1 2188 while :; do 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190/* end confdefs.h. */ 2191$4 2192int 2193main () 2194{ 2195static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2196test_array [0] = 0; 2197return test_array [0]; 2198 2199 ; 2200 return 0; 2201} 2202_ACEOF 2203if ac_fn_c_try_compile "$LINENO"; then : 2204 ac_lo=$ac_mid; break 2205else 2206 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2207 if test $ac_mid -le $ac_hi; then 2208 ac_lo= ac_hi= 2209 break 2210 fi 2211 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214 done 2215else 2216 ac_lo= ac_hi= 2217fi 2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2219fi 2220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2221# Binary search between lo and hi bounds. 2222while test "x$ac_lo" != "x$ac_hi"; do 2223 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2225/* end confdefs.h. */ 2226$4 2227int 2228main () 2229{ 2230static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2231test_array [0] = 0; 2232return test_array [0]; 2233 2234 ; 2235 return 0; 2236} 2237_ACEOF 2238if ac_fn_c_try_compile "$LINENO"; then : 2239 ac_hi=$ac_mid 2240else 2241 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2242fi 2243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2244done 2245case $ac_lo in #(( 2246?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2247'') ac_retval=1 ;; 2248esac 2249 else 2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2251/* end confdefs.h. */ 2252$4 2253static long int longval () { return $2; } 2254static unsigned long int ulongval () { return $2; } 2255#include <stdio.h> 2256#include <stdlib.h> 2257int 2258main () 2259{ 2260 2261 FILE *f = fopen ("conftest.val", "w"); 2262 if (! f) 2263 return 1; 2264 if (($2) < 0) 2265 { 2266 long int i = longval (); 2267 if (i != ($2)) 2268 return 1; 2269 fprintf (f, "%ld", i); 2270 } 2271 else 2272 { 2273 unsigned long int i = ulongval (); 2274 if (i != ($2)) 2275 return 1; 2276 fprintf (f, "%lu", i); 2277 } 2278 /* Do not output a trailing newline, as this causes \r\n confusion 2279 on some platforms. */ 2280 return ferror (f) || fclose (f) != 0; 2281 2282 ; 2283 return 0; 2284} 2285_ACEOF 2286if ac_fn_c_try_run "$LINENO"; then : 2287 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2288else 2289 ac_retval=1 2290fi 2291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2292 conftest.$ac_objext conftest.beam conftest.$ac_ext 2293rm -f conftest.val 2294 2295 fi 2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2297 as_fn_set_status $ac_retval 2298 2299} # ac_fn_c_compute_int 2300cat >config.log <<_ACEOF 2301This file contains any messages produced by compilers while 2302running configure, to aid debugging if configure makes a mistake. 2303 2304It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was 2305generated by GNU Autoconf 2.69. Invocation command line was 2306 2307 $ $0 $@ 2308 2309_ACEOF 2310exec 5>>config.log 2311{ 2312cat <<_ASUNAME 2313## --------- ## 2314## Platform. ## 2315## --------- ## 2316 2317hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2318uname -m = `(uname -m) 2>/dev/null || echo unknown` 2319uname -r = `(uname -r) 2>/dev/null || echo unknown` 2320uname -s = `(uname -s) 2>/dev/null || echo unknown` 2321uname -v = `(uname -v) 2>/dev/null || echo unknown` 2322 2323/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2324/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2325 2326/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2327/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2328/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2329/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2330/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2331/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2332/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2333 2334_ASUNAME 2335 2336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2337for as_dir in $PATH 2338do 2339 IFS=$as_save_IFS 2340 test -z "$as_dir" && as_dir=. 2341 $as_echo "PATH: $as_dir" 2342 done 2343IFS=$as_save_IFS 2344 2345} >&5 2346 2347cat >&5 <<_ACEOF 2348 2349 2350## ----------- ## 2351## Core tests. ## 2352## ----------- ## 2353 2354_ACEOF 2355 2356 2357# Keep a trace of the command line. 2358# Strip out --no-create and --no-recursion so they do not pile up. 2359# Strip out --silent because we don't want to record it for future runs. 2360# Also quote any args containing shell meta-characters. 2361# Make two passes to allow for proper duplicate-argument suppression. 2362ac_configure_args= 2363ac_configure_args0= 2364ac_configure_args1= 2365ac_must_keep_next=false 2366for ac_pass in 1 2 2367do 2368 for ac_arg 2369 do 2370 case $ac_arg in 2371 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2373 | -silent | --silent | --silen | --sile | --sil) 2374 continue ;; 2375 *\'*) 2376 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2377 esac 2378 case $ac_pass in 2379 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2380 2) 2381 as_fn_append ac_configure_args1 " '$ac_arg'" 2382 if test $ac_must_keep_next = true; then 2383 ac_must_keep_next=false # Got value, back to normal. 2384 else 2385 case $ac_arg in 2386 *=* | --config-cache | -C | -disable-* | --disable-* \ 2387 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2388 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2389 | -with-* | --with-* | -without-* | --without-* | --x) 2390 case "$ac_configure_args0 " in 2391 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2392 esac 2393 ;; 2394 -* ) ac_must_keep_next=true ;; 2395 esac 2396 fi 2397 as_fn_append ac_configure_args " '$ac_arg'" 2398 ;; 2399 esac 2400 done 2401done 2402{ ac_configure_args0=; unset ac_configure_args0;} 2403{ ac_configure_args1=; unset ac_configure_args1;} 2404 2405# When interrupted or exit'd, cleanup temporary files, and complete 2406# config.log. We remove comments because anyway the quotes in there 2407# would cause problems or look ugly. 2408# WARNING: Use '\'' to represent an apostrophe within the trap. 2409# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2410trap 'exit_status=$? 2411 # Save into config.log some information that might help in debugging. 2412 { 2413 echo 2414 2415 $as_echo "## ---------------- ## 2416## Cache variables. ## 2417## ---------------- ##" 2418 echo 2419 # The following way of writing the cache mishandles newlines in values, 2420( 2421 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2422 eval ac_val=\$$ac_var 2423 case $ac_val in #( 2424 *${as_nl}*) 2425 case $ac_var in #( 2426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2427$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2428 esac 2429 case $ac_var in #( 2430 _ | IFS | as_nl) ;; #( 2431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2432 *) { eval $ac_var=; unset $ac_var;} ;; 2433 esac ;; 2434 esac 2435 done 2436 (set) 2>&1 | 2437 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2438 *${as_nl}ac_space=\ *) 2439 sed -n \ 2440 "s/'\''/'\''\\\\'\'''\''/g; 2441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2442 ;; #( 2443 *) 2444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2445 ;; 2446 esac | 2447 sort 2448) 2449 echo 2450 2451 $as_echo "## ----------------- ## 2452## Output variables. ## 2453## ----------------- ##" 2454 echo 2455 for ac_var in $ac_subst_vars 2456 do 2457 eval ac_val=\$$ac_var 2458 case $ac_val in 2459 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2460 esac 2461 $as_echo "$ac_var='\''$ac_val'\''" 2462 done | sort 2463 echo 2464 2465 if test -n "$ac_subst_files"; then 2466 $as_echo "## ------------------- ## 2467## File substitutions. ## 2468## ------------------- ##" 2469 echo 2470 for ac_var in $ac_subst_files 2471 do 2472 eval ac_val=\$$ac_var 2473 case $ac_val in 2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2475 esac 2476 $as_echo "$ac_var='\''$ac_val'\''" 2477 done | sort 2478 echo 2479 fi 2480 2481 if test -s confdefs.h; then 2482 $as_echo "## ----------- ## 2483## confdefs.h. ## 2484## ----------- ##" 2485 echo 2486 cat confdefs.h 2487 echo 2488 fi 2489 test "$ac_signal" != 0 && 2490 $as_echo "$as_me: caught signal $ac_signal" 2491 $as_echo "$as_me: exit $exit_status" 2492 } >&5 2493 rm -f core *.core core.conftest.* && 2494 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2495 exit $exit_status 2496' 0 2497for ac_signal in 1 2 13 15; do 2498 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2499done 2500ac_signal=0 2501 2502# confdefs.h avoids OS command line length limits that DEFS can exceed. 2503rm -f -r conftest* confdefs.h 2504 2505$as_echo "/* confdefs.h */" > confdefs.h 2506 2507# Predefined preprocessor variables. 2508 2509cat >>confdefs.h <<_ACEOF 2510#define PACKAGE_NAME "$PACKAGE_NAME" 2511_ACEOF 2512 2513cat >>confdefs.h <<_ACEOF 2514#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2515_ACEOF 2516 2517cat >>confdefs.h <<_ACEOF 2518#define PACKAGE_VERSION "$PACKAGE_VERSION" 2519_ACEOF 2520 2521cat >>confdefs.h <<_ACEOF 2522#define PACKAGE_STRING "$PACKAGE_STRING" 2523_ACEOF 2524 2525cat >>confdefs.h <<_ACEOF 2526#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2527_ACEOF 2528 2529cat >>confdefs.h <<_ACEOF 2530#define PACKAGE_URL "$PACKAGE_URL" 2531_ACEOF 2532 2533 2534# Let the site file select an alternate cache file if it wants to. 2535# Prefer an explicitly selected file to automatically selected ones. 2536ac_site_file1=NONE 2537ac_site_file2=NONE 2538if test -n "$CONFIG_SITE"; then 2539 # We do not want a PATH search for config.site. 2540 case $CONFIG_SITE in #(( 2541 -*) ac_site_file1=./$CONFIG_SITE;; 2542 */*) ac_site_file1=$CONFIG_SITE;; 2543 *) ac_site_file1=./$CONFIG_SITE;; 2544 esac 2545elif test "x$prefix" != xNONE; then 2546 ac_site_file1=$prefix/share/config.site 2547 ac_site_file2=$prefix/etc/config.site 2548else 2549 ac_site_file1=$ac_default_prefix/share/config.site 2550 ac_site_file2=$ac_default_prefix/etc/config.site 2551fi 2552for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2553do 2554 test "x$ac_site_file" = xNONE && continue 2555 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2557$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2558 sed 's/^/| /' "$ac_site_file" >&5 2559 . "$ac_site_file" \ 2560 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2562as_fn_error $? "failed to load site script $ac_site_file 2563See \`config.log' for more details" "$LINENO" 5; } 2564 fi 2565done 2566 2567if test -r "$cache_file"; then 2568 # Some versions of bash will fail to source /dev/null (special files 2569 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2570 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2572$as_echo "$as_me: loading cache $cache_file" >&6;} 2573 case $cache_file in 2574 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2575 *) . "./$cache_file";; 2576 esac 2577 fi 2578else 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2580$as_echo "$as_me: creating cache $cache_file" >&6;} 2581 >$cache_file 2582fi 2583 2584as_fn_append ac_header_list " unistd.h" 2585as_fn_append ac_func_list " secure_getenv" 2586as_fn_append ac_func_list " __secure_getenv" 2587as_fn_append ac_func_list " getuid" 2588as_fn_append ac_func_list " geteuid" 2589as_fn_append ac_func_list " getgid" 2590as_fn_append ac_func_list " getegid" 2591# Check that the precious variables saved in the cache have kept the same 2592# value. 2593ac_cache_corrupted=false 2594for ac_var in $ac_precious_vars; do 2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2596 eval ac_new_set=\$ac_env_${ac_var}_set 2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2598 eval ac_new_val=\$ac_env_${ac_var}_value 2599 case $ac_old_set,$ac_new_set in 2600 set,) 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2602$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2603 ac_cache_corrupted=: ;; 2604 ,set) 2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2606$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2607 ac_cache_corrupted=: ;; 2608 ,);; 2609 *) 2610 if test "x$ac_old_val" != "x$ac_new_val"; then 2611 # differences in whitespace do not lead to failure. 2612 ac_old_val_w=`echo x $ac_old_val` 2613 ac_new_val_w=`echo x $ac_new_val` 2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2616$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2617 ac_cache_corrupted=: 2618 else 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2620$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2621 eval $ac_var=\$ac_old_val 2622 fi 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2624$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2626$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2627 fi;; 2628 esac 2629 # Pass precious variables to config.status. 2630 if test "$ac_new_set" = set; then 2631 case $ac_new_val in 2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2633 *) ac_arg=$ac_var=$ac_new_val ;; 2634 esac 2635 case " $ac_configure_args " in 2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2638 esac 2639 fi 2640done 2641if $ac_cache_corrupted; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2645$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2647fi 2648## -------------------- ## 2649## Main body of script. ## 2650## -------------------- ## 2651 2652ac_ext=c 2653ac_cpp='$CPP $CPPFLAGS' 2654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2656ac_compiler_gnu=$ac_cv_c_compiler_gnu 2657 2658 2659 2660 2661 2662ac_config_headers="$ac_config_headers config.h" 2663 2664 2665# ------- 2666# Options 2667# ------- 2668 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2670$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2671 # Check whether --enable-version-specific-runtime-libs was given. 2672if test "${enable_version_specific_runtime_libs+set}" = set; then : 2673 enableval=$enable_version_specific_runtime_libs; 2674 case "$enableval" in 2675 yes|no) ;; 2676 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; 2677 esac 2678 2679else 2680 enable_version_specific_runtime_libs=no 2681fi 2682 2683 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 2685$as_echo "$enable_version_specific_runtime_libs" >&6; } 2686 2687# We would like our source tree to be readonly. However when releases or 2688# pre-releases are generated, the flex/bison generated files as well as the 2689# various formats of manuals need to be included along with the rest of the 2690# sources. Therefore we have --enable-generated-files-in-srcdir to do 2691# just that. 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 2693$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } 2694 # Check whether --enable-generated-files-in-srcdir was given. 2695if test "${enable_generated_files_in_srcdir+set}" = set; then : 2696 enableval=$enable_generated_files_in_srcdir; 2697 case "$enableval" in 2698 yes|no) ;; 2699 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; 2700 esac 2701 2702else 2703 enable_generated_files_in_srcdir=no 2704fi 2705 2706 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 2708$as_echo "$enable_generated_files_in_srcdir" >&6; } 2709 if test "$enable_generated_files_in_srcdir" = yes; then 2710 GENINSRC_TRUE= 2711 GENINSRC_FALSE='#' 2712else 2713 GENINSRC_TRUE='#' 2714 GENINSRC_FALSE= 2715fi 2716 2717 2718 2719# ------- 2720# ------- 2721 2722# Gets build, host, target, *_vendor, *_cpu, *_os, etc. 2723# 2724# You will slowly go insane if you do not grok the following fact: when 2725# building this library, the top-level /target/ becomes the library's /host/. 2726# 2727# configure then causes --target to default to --host, exactly like any 2728# other package using autoconf. Therefore, 'target' and 'host' will 2729# always be the same. This makes sense both for native and cross compilers 2730# just think about it for a little while. :-) 2731# 2732# Also, if this library is being configured as part of a cross compiler, the 2733# top-level configure script will pass the "real" host as $with_cross_host. 2734# 2735# Do not delete or change the following two lines. For why, see 2736# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2737ac_aux_dir= 2738for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2739 if test -f "$ac_dir/install-sh"; then 2740 ac_aux_dir=$ac_dir 2741 ac_install_sh="$ac_aux_dir/install-sh -c" 2742 break 2743 elif test -f "$ac_dir/install.sh"; then 2744 ac_aux_dir=$ac_dir 2745 ac_install_sh="$ac_aux_dir/install.sh -c" 2746 break 2747 elif test -f "$ac_dir/shtool"; then 2748 ac_aux_dir=$ac_dir 2749 ac_install_sh="$ac_aux_dir/shtool install -c" 2750 break 2751 fi 2752done 2753if test -z "$ac_aux_dir"; then 2754 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2755fi 2756 2757# These three variables are undocumented and unsupported, 2758# and are intended to be withdrawn in a future Autoconf release. 2759# They can cause serious problems if a builder's source tree is in a directory 2760# whose full name contains unusual characters. 2761ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2762ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2763ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2764 2765 2766# Make sure we can run config.sub. 2767$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2768 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2769 2770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2771$as_echo_n "checking build system type... " >&6; } 2772if ${ac_cv_build+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774else 2775 ac_build_alias=$build_alias 2776test "x$ac_build_alias" = x && 2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2778test "x$ac_build_alias" = x && 2779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2780ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2782 2783fi 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2785$as_echo "$ac_cv_build" >&6; } 2786case $ac_cv_build in 2787*-*-*) ;; 2788*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2789esac 2790build=$ac_cv_build 2791ac_save_IFS=$IFS; IFS='-' 2792set x $ac_cv_build 2793shift 2794build_cpu=$1 2795build_vendor=$2 2796shift; shift 2797# Remember, the first character of IFS is used to create $*, 2798# except with old shells: 2799build_os=$* 2800IFS=$ac_save_IFS 2801case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2802 2803 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2805$as_echo_n "checking host system type... " >&6; } 2806if ${ac_cv_host+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 if test "x$host_alias" = x; then 2810 ac_cv_host=$ac_cv_build 2811else 2812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2813 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2814fi 2815 2816fi 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2818$as_echo "$ac_cv_host" >&6; } 2819case $ac_cv_host in 2820*-*-*) ;; 2821*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2822esac 2823host=$ac_cv_host 2824ac_save_IFS=$IFS; IFS='-' 2825set x $ac_cv_host 2826shift 2827host_cpu=$1 2828host_vendor=$2 2829shift; shift 2830# Remember, the first character of IFS is used to create $*, 2831# except with old shells: 2832host_os=$* 2833IFS=$ac_save_IFS 2834case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2835 2836 2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2838$as_echo_n "checking target system type... " >&6; } 2839if ${ac_cv_target+:} false; then : 2840 $as_echo_n "(cached) " >&6 2841else 2842 if test "x$target_alias" = x; then 2843 ac_cv_target=$ac_cv_host 2844else 2845 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2847fi 2848 2849fi 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2851$as_echo "$ac_cv_target" >&6; } 2852case $ac_cv_target in 2853*-*-*) ;; 2854*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2855esac 2856target=$ac_cv_target 2857ac_save_IFS=$IFS; IFS='-' 2858set x $ac_cv_target 2859shift 2860target_cpu=$1 2861target_vendor=$2 2862shift; shift 2863# Remember, the first character of IFS is used to create $*, 2864# except with old shells: 2865target_os=$* 2866IFS=$ac_save_IFS 2867case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2868 2869 2870# The aliases save the names the user supplied, while $host etc. 2871# will get canonicalized. 2872test -n "$target_alias" && 2873 test "$program_prefix$program_suffix$program_transform_name" = \ 2874 NONENONEs,x,x, && 2875 program_prefix=${target_alias}- 2876 2877target_alias=${target_alias-$host_alias} 2878 2879# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the 2880# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. 2881# 1.9.0: minimum required version 2882# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch 2883# of other PACKAGE_* variables will, however, and there's nothing 2884# we can do about that; they come from AC_INIT). 2885# foreign: we don't follow the normal rules for GNU packages (no COPYING 2886# file in the top srcdir, etc, etc), so stop complaining. 2887# no-dist: we don't want 'dist' and related rules. 2888# -Wall: turns on all automake warnings... 2889# -Wno-portability: ...except this one, since GNU make is required. 2890# -Wno-override: ... and this one, since we do want this in testsuite. 2891am__api_version='1.15' 2892 2893# Find a good install program. We prefer a C program (faster), 2894# so one script is as good as another. But avoid the broken or 2895# incompatible versions: 2896# SysV /etc/install, /usr/sbin/install 2897# SunOS /usr/etc/install 2898# IRIX /sbin/install 2899# AIX /bin/install 2900# AmigaOS /C/install, which installs bootblocks on floppy discs 2901# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2902# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2903# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2904# OS/2's system install, which has a completely different semantic 2905# ./install, which can be erroneously created by make from ./install.sh. 2906# Reject install programs that cannot install multiple files. 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2908$as_echo_n "checking for a BSD-compatible install... " >&6; } 2909if test -z "$INSTALL"; then 2910if ${ac_cv_path_install+:} false; then : 2911 $as_echo_n "(cached) " >&6 2912else 2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 # Account for people who put trailing slashes in PATH elements. 2919case $as_dir/ in #(( 2920 ./ | .// | /[cC]/* | \ 2921 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2922 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2923 /usr/ucb/* ) ;; 2924 *) 2925 # OSF1 and SCO ODT 3.0 have their own names for install. 2926 # Don't use installbsd from OSF since it installs stuff as root 2927 # by default. 2928 for ac_prog in ginstall scoinst install; do 2929 for ac_exec_ext in '' $ac_executable_extensions; do 2930 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2931 if test $ac_prog = install && 2932 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2933 # AIX install. It has an incompatible calling convention. 2934 : 2935 elif test $ac_prog = install && 2936 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2937 # program-specific install script used by HP pwplus--don't use. 2938 : 2939 else 2940 rm -rf conftest.one conftest.two conftest.dir 2941 echo one > conftest.one 2942 echo two > conftest.two 2943 mkdir conftest.dir 2944 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2945 test -s conftest.one && test -s conftest.two && 2946 test -s conftest.dir/conftest.one && 2947 test -s conftest.dir/conftest.two 2948 then 2949 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2950 break 3 2951 fi 2952 fi 2953 fi 2954 done 2955 done 2956 ;; 2957esac 2958 2959 done 2960IFS=$as_save_IFS 2961 2962rm -rf conftest.one conftest.two conftest.dir 2963 2964fi 2965 if test "${ac_cv_path_install+set}" = set; then 2966 INSTALL=$ac_cv_path_install 2967 else 2968 # As a last resort, use the slow shell script. Don't cache a 2969 # value for INSTALL within a source directory, because that will 2970 # break other packages using the cache if that directory is 2971 # removed, or if the value is a relative name. 2972 INSTALL=$ac_install_sh 2973 fi 2974fi 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2976$as_echo "$INSTALL" >&6; } 2977 2978# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2979# It thinks the first close brace ends the variable substitution. 2980test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2981 2982test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2983 2984test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2985 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2987$as_echo_n "checking whether build environment is sane... " >&6; } 2988# Reject unsafe characters in $srcdir or the absolute working directory 2989# name. Accept space and tab only in the latter. 2990am_lf=' 2991' 2992case `pwd` in 2993 *[\\\"\#\$\&\'\`$am_lf]*) 2994 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2995esac 2996case $srcdir in 2997 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2998 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2999esac 3000 3001# Do 'set' in a subshell so we don't clobber the current shell's 3002# arguments. Must try -L first in case configure is actually a 3003# symlink; some systems play weird games with the mod time of symlinks 3004# (eg FreeBSD returns the mod time of the symlink's containing 3005# directory). 3006if ( 3007 am_has_slept=no 3008 for am_try in 1 2; do 3009 echo "timestamp, slept: $am_has_slept" > conftest.file 3010 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3011 if test "$*" = "X"; then 3012 # -L didn't work. 3013 set X `ls -t "$srcdir/configure" conftest.file` 3014 fi 3015 if test "$*" != "X $srcdir/configure conftest.file" \ 3016 && test "$*" != "X conftest.file $srcdir/configure"; then 3017 3018 # If neither matched, then we have a broken ls. This can happen 3019 # if, for instance, CONFIG_SHELL is bash and it inherits a 3020 # broken ls alias from the environment. This has actually 3021 # happened. Such a system could not be considered "sane". 3022 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3023 alias in your environment" "$LINENO" 5 3024 fi 3025 if test "$2" = conftest.file || test $am_try -eq 2; then 3026 break 3027 fi 3028 # Just in case. 3029 sleep 1 3030 am_has_slept=yes 3031 done 3032 test "$2" = conftest.file 3033 ) 3034then 3035 # Ok. 3036 : 3037else 3038 as_fn_error $? "newly created file is older than distributed files! 3039Check your system clock" "$LINENO" 5 3040fi 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3042$as_echo "yes" >&6; } 3043# If we didn't sleep, we still need to ensure time stamps of config.status and 3044# generated files are strictly newer. 3045am_sleep_pid= 3046if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3047 ( sleep 1 ) & 3048 am_sleep_pid=$! 3049fi 3050 3051rm -f conftest.file 3052 3053test "$program_prefix" != NONE && 3054 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3055# Use a double $ so make ignores it. 3056test "$program_suffix" != NONE && 3057 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3058# Double any \ or $. 3059# By default was `s,x,x', remove it if useless. 3060ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3061program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3062 3063# Expand $ac_aux_dir to an absolute path. 3064am_aux_dir=`cd "$ac_aux_dir" && pwd` 3065 3066if test x"${MISSING+set}" != xset; then 3067 case $am_aux_dir in 3068 *\ * | *\ *) 3069 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3070 *) 3071 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3072 esac 3073fi 3074# Use eval to expand $SHELL 3075if eval "$MISSING --is-lightweight"; then 3076 am_missing_run="$MISSING " 3077else 3078 am_missing_run= 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3080$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3081fi 3082 3083if test x"${install_sh+set}" != xset; then 3084 case $am_aux_dir in 3085 *\ * | *\ *) 3086 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3087 *) 3088 install_sh="\${SHELL} $am_aux_dir/install-sh" 3089 esac 3090fi 3091 3092# Installed binaries are usually stripped using 'strip' when the user 3093# run "make install-strip". However 'strip' might not be the right 3094# tool to use in cross-compilation environments, therefore Automake 3095# will honor the 'STRIP' environment variable to overrule this program. 3096if test "$cross_compiling" != no; then 3097 if test -n "$ac_tool_prefix"; then 3098 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3099set dummy ${ac_tool_prefix}strip; ac_word=$2 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3101$as_echo_n "checking for $ac_word... " >&6; } 3102if ${ac_cv_prog_STRIP+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104else 3105 if test -n "$STRIP"; then 3106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3107else 3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3109for as_dir in $PATH 3110do 3111 IFS=$as_save_IFS 3112 test -z "$as_dir" && as_dir=. 3113 for ac_exec_ext in '' $ac_executable_extensions; do 3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3115 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3117 break 2 3118 fi 3119done 3120 done 3121IFS=$as_save_IFS 3122 3123fi 3124fi 3125STRIP=$ac_cv_prog_STRIP 3126if test -n "$STRIP"; then 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3128$as_echo "$STRIP" >&6; } 3129else 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3131$as_echo "no" >&6; } 3132fi 3133 3134 3135fi 3136if test -z "$ac_cv_prog_STRIP"; then 3137 ac_ct_STRIP=$STRIP 3138 # Extract the first word of "strip", so it can be a program name with args. 3139set dummy strip; ac_word=$2 3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3141$as_echo_n "checking for $ac_word... " >&6; } 3142if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3143 $as_echo_n "(cached) " >&6 3144else 3145 if test -n "$ac_ct_STRIP"; then 3146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3147else 3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3149for as_dir in $PATH 3150do 3151 IFS=$as_save_IFS 3152 test -z "$as_dir" && as_dir=. 3153 for ac_exec_ext in '' $ac_executable_extensions; do 3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3155 ac_cv_prog_ac_ct_STRIP="strip" 3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3157 break 2 3158 fi 3159done 3160 done 3161IFS=$as_save_IFS 3162 3163fi 3164fi 3165ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3166if test -n "$ac_ct_STRIP"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3168$as_echo "$ac_ct_STRIP" >&6; } 3169else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3171$as_echo "no" >&6; } 3172fi 3173 3174 if test "x$ac_ct_STRIP" = x; then 3175 STRIP=":" 3176 else 3177 case $cross_compiling:$ac_tool_warned in 3178yes:) 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3181ac_tool_warned=yes ;; 3182esac 3183 STRIP=$ac_ct_STRIP 3184 fi 3185else 3186 STRIP="$ac_cv_prog_STRIP" 3187fi 3188 3189fi 3190INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3191 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3193$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3194if test -z "$MKDIR_P"; then 3195 if ${ac_cv_path_mkdir+:} false; then : 3196 $as_echo_n "(cached) " >&6 3197else 3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3199for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3200do 3201 IFS=$as_save_IFS 3202 test -z "$as_dir" && as_dir=. 3203 for ac_prog in mkdir gmkdir; do 3204 for ac_exec_ext in '' $ac_executable_extensions; do 3205 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3206 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3207 'mkdir (GNU coreutils) '* | \ 3208 'mkdir (coreutils) '* | \ 3209 'mkdir (fileutils) '4.1*) 3210 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3211 break 3;; 3212 esac 3213 done 3214 done 3215 done 3216IFS=$as_save_IFS 3217 3218fi 3219 3220 test -d ./--version && rmdir ./--version 3221 if test "${ac_cv_path_mkdir+set}" = set; then 3222 MKDIR_P="$ac_cv_path_mkdir -p" 3223 else 3224 # As a last resort, use the slow shell script. Don't cache a 3225 # value for MKDIR_P within a source directory, because that will 3226 # break other packages using the cache if that directory is 3227 # removed, or if the value is a relative name. 3228 MKDIR_P="$ac_install_sh -d" 3229 fi 3230fi 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3232$as_echo "$MKDIR_P" >&6; } 3233 3234for ac_prog in gawk mawk nawk awk 3235do 3236 # Extract the first word of "$ac_prog", so it can be a program name with args. 3237set dummy $ac_prog; ac_word=$2 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3239$as_echo_n "checking for $ac_word... " >&6; } 3240if ${ac_cv_prog_AWK+:} false; then : 3241 $as_echo_n "(cached) " >&6 3242else 3243 if test -n "$AWK"; then 3244 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3245else 3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3247for as_dir in $PATH 3248do 3249 IFS=$as_save_IFS 3250 test -z "$as_dir" && as_dir=. 3251 for ac_exec_ext in '' $ac_executable_extensions; do 3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3253 ac_cv_prog_AWK="$ac_prog" 3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3255 break 2 3256 fi 3257done 3258 done 3259IFS=$as_save_IFS 3260 3261fi 3262fi 3263AWK=$ac_cv_prog_AWK 3264if test -n "$AWK"; then 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3266$as_echo "$AWK" >&6; } 3267else 3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3269$as_echo "no" >&6; } 3270fi 3271 3272 3273 test -n "$AWK" && break 3274done 3275 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3277$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3278set x ${MAKE-make} 3279ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3280if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3281 $as_echo_n "(cached) " >&6 3282else 3283 cat >conftest.make <<\_ACEOF 3284SHELL = /bin/sh 3285all: 3286 @echo '@@@%%%=$(MAKE)=@@@%%%' 3287_ACEOF 3288# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3289case `${MAKE-make} -f conftest.make 2>/dev/null` in 3290 *@@@%%%=?*=@@@%%%*) 3291 eval ac_cv_prog_make_${ac_make}_set=yes;; 3292 *) 3293 eval ac_cv_prog_make_${ac_make}_set=no;; 3294esac 3295rm -f conftest.make 3296fi 3297if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3299$as_echo "yes" >&6; } 3300 SET_MAKE= 3301else 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3303$as_echo "no" >&6; } 3304 SET_MAKE="MAKE=${MAKE-make}" 3305fi 3306 3307rm -rf .tst 2>/dev/null 3308mkdir .tst 2>/dev/null 3309if test -d .tst; then 3310 am__leading_dot=. 3311else 3312 am__leading_dot=_ 3313fi 3314rmdir .tst 2>/dev/null 3315 3316# Check whether --enable-silent-rules was given. 3317if test "${enable_silent_rules+set}" = set; then : 3318 enableval=$enable_silent_rules; 3319fi 3320 3321case $enable_silent_rules in # ((( 3322 yes) AM_DEFAULT_VERBOSITY=0;; 3323 no) AM_DEFAULT_VERBOSITY=1;; 3324 *) AM_DEFAULT_VERBOSITY=1;; 3325esac 3326am_make=${MAKE-make} 3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3328$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3329if ${am_cv_make_support_nested_variables+:} false; then : 3330 $as_echo_n "(cached) " >&6 3331else 3332 if $as_echo 'TRUE=$(BAR$(V)) 3333BAR0=false 3334BAR1=true 3335V=1 3336am__doit: 3337 @$(TRUE) 3338.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3339 am_cv_make_support_nested_variables=yes 3340else 3341 am_cv_make_support_nested_variables=no 3342fi 3343fi 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3345$as_echo "$am_cv_make_support_nested_variables" >&6; } 3346if test $am_cv_make_support_nested_variables = yes; then 3347 AM_V='$(V)' 3348 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3349else 3350 AM_V=$AM_DEFAULT_VERBOSITY 3351 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3352fi 3353AM_BACKSLASH='\' 3354 3355if test "`cd $srcdir && pwd`" != "`pwd`"; then 3356 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3357 # is not polluted with repeated "-I." 3358 am__isrc=' -I$(srcdir)' 3359 # test to see if srcdir already configured 3360 if test -f $srcdir/config.status; then 3361 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3362 fi 3363fi 3364 3365# test whether we have cygpath 3366if test -z "$CYGPATH_W"; then 3367 if (cygpath --version) >/dev/null 2>/dev/null; then 3368 CYGPATH_W='cygpath -w' 3369 else 3370 CYGPATH_W=echo 3371 fi 3372fi 3373 3374 3375# Define the identity of the package. 3376 PACKAGE='libgomp' 3377 VERSION='1.0' 3378 3379 3380cat >>confdefs.h <<_ACEOF 3381#define PACKAGE "$PACKAGE" 3382_ACEOF 3383 3384 3385cat >>confdefs.h <<_ACEOF 3386#define VERSION "$VERSION" 3387_ACEOF 3388 3389# Some tools Automake needs. 3390 3391ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3392 3393 3394AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3395 3396 3397AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3398 3399 3400AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3401 3402 3403MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3404 3405# For better backward compatibility. To be removed once Automake 1.9.x 3406# dies out for good. For more background, see: 3407# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3408# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3409mkdir_p='$(MKDIR_P)' 3410 3411# We need awk for the "check" target (and possibly the TAP driver). The 3412# system "awk" is bad on some platforms. 3413# Always define AMTAR for backward compatibility. Yes, it's still used 3414# in the wild :-( We should find a proper way to deprecate it ... 3415AMTAR='$${TAR-tar}' 3416 3417 3418# We'll loop over all known methods to create a tar archive until one works. 3419_am_tools='gnutar pax cpio none' 3420 3421am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3422 3423 3424 3425 3426 3427 3428# POSIX will say in a future version that running "rm -f" with no argument 3429# is OK; and we want to be able to make that assumption in our Makefile 3430# recipes. So use an aggressive probe to check that the usage we want is 3431# actually supported "in the wild" to an acceptable degree. 3432# See automake bug#10828. 3433# To make any issue more visible, cause the running configure to be aborted 3434# by default if the 'rm' program in use doesn't match our expectations; the 3435# user can still override this though. 3436if rm -f && rm -fr && rm -rf; then : OK; else 3437 cat >&2 <<'END' 3438Oops! 3439 3440Your 'rm' program seems unable to run without file operands specified 3441on the command line, even when the '-f' option is present. This is contrary 3442to the behaviour of most rm programs out there, and not conforming with 3443the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3444 3445Please tell bug-automake@gnu.org about your system, including the value 3446of your $PATH and any error possibly output before this message. This 3447can help us improve future automake versions. 3448 3449END 3450 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3451 echo 'Configuration will proceed anyway, since you have set the' >&2 3452 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3453 echo >&2 3454 else 3455 cat >&2 <<'END' 3456Aborting the configuration process, to ensure you take notice of the issue. 3457 3458You can download and install GNU coreutils to get an 'rm' implementation 3459that behaves properly: <http://www.gnu.org/software/coreutils/>. 3460 3461If you want to complete the configuration process using your problematic 3462'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3463to "yes", and re-run configure. 3464 3465END 3466 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3467 fi 3468fi 3469 3470# Default to --enable-multilib 3471# Check whether --enable-multilib was given. 3472if test "${enable_multilib+set}" = set; then : 3473 enableval=$enable_multilib; case "$enableval" in 3474 yes) multilib=yes ;; 3475 no) multilib=no ;; 3476 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 3477 esac 3478else 3479 multilib=yes 3480fi 3481 3482 3483# We may get other options which we leave undocumented: 3484# --with-target-subdir, --with-multisrctop, --with-multisubdir 3485# See config-ml.in if you want the gory details. 3486 3487if test "$srcdir" = "."; then 3488 if test "$with_target_subdir" != "."; then 3489 multi_basedir="$srcdir/$with_multisrctop../.." 3490 else 3491 multi_basedir="$srcdir/$with_multisrctop.." 3492 fi 3493else 3494 multi_basedir="$srcdir/.." 3495fi 3496 3497 3498# Even if the default multilib is not a cross compilation, 3499# it may be that some of the other multilibs are. 3500if test $cross_compiling = no && test $multilib = yes \ 3501 && test "x${with_multisubdir}" != x ; then 3502 cross_compiling=maybe 3503fi 3504 3505ac_config_commands="$ac_config_commands default-1" 3506 3507 3508 3509# Check whether --with-toolexeclibdir was given. 3510if test "${with_toolexeclibdir+set}" = set; then : 3511 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in 3512 /) 3513 ;; 3514 */) 3515 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` 3516 ;; 3517esac 3518else 3519 with_toolexeclibdir=no 3520fi 3521 3522 3523 3524# Calculate toolexeclibdir 3525# Also toolexecdir, though it's only used in toolexeclibdir 3526case ${enable_version_specific_runtime_libs} in 3527 yes) 3528 # Need the gcc compiler version to know where to install libraries 3529 # and header files if --enable-version-specific-runtime-libs option 3530 # is selected. 3531 toolexecdir='$(libdir)/gcc/$(target_alias)' 3532 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 3533 ;; 3534 no) 3535 if test -n "$with_cross_host" && 3536 test x"$with_cross_host" != x"no"; then 3537 # Install a library built with a cross compiler in tooldir, not libdir. 3538 toolexecdir='$(exec_prefix)/$(target_alias)' 3539 case ${with_toolexeclibdir} in 3540 no) 3541 toolexeclibdir='$(toolexecdir)/lib' 3542 ;; 3543 *) 3544 toolexeclibdir=${with_toolexeclibdir} 3545 ;; 3546 esac 3547 else 3548 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 3549 toolexeclibdir='$(libdir)' 3550 fi 3551 multi_os_directory=`$CC -print-multi-os-directory` 3552 case $multi_os_directory in 3553 .) ;; # Avoid trailing /. 3554 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 3555 esac 3556 ;; 3557esac 3558 3559 3560 3561# Check the compiler. 3562# The same as in boehm-gc and libstdc++. Have to borrow it from there. 3563# We must force CC to /not/ be precious variables; otherwise 3564# the wrong, non-multilib-adjusted value will be used in multilibs. 3565# As a side effect, we have to subst CFLAGS ourselves. 3566 3567 3568 3569ac_ext=c 3570ac_cpp='$CPP $CPPFLAGS' 3571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3573ac_compiler_gnu=$ac_cv_c_compiler_gnu 3574if test -n "$ac_tool_prefix"; then 3575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3576set dummy ${ac_tool_prefix}gcc; ac_word=$2 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3578$as_echo_n "checking for $ac_word... " >&6; } 3579if ${ac_cv_prog_CC+:} false; then : 3580 $as_echo_n "(cached) " >&6 3581else 3582 if test -n "$CC"; then 3583 ac_cv_prog_CC="$CC" # Let the user override the test. 3584else 3585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3586for as_dir in $PATH 3587do 3588 IFS=$as_save_IFS 3589 test -z "$as_dir" && as_dir=. 3590 for ac_exec_ext in '' $ac_executable_extensions; do 3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3592 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3594 break 2 3595 fi 3596done 3597 done 3598IFS=$as_save_IFS 3599 3600fi 3601fi 3602CC=$ac_cv_prog_CC 3603if test -n "$CC"; then 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3605$as_echo "$CC" >&6; } 3606else 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3608$as_echo "no" >&6; } 3609fi 3610 3611 3612fi 3613if test -z "$ac_cv_prog_CC"; then 3614 ac_ct_CC=$CC 3615 # Extract the first word of "gcc", so it can be a program name with args. 3616set dummy gcc; ac_word=$2 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3618$as_echo_n "checking for $ac_word... " >&6; } 3619if ${ac_cv_prog_ac_ct_CC+:} false; then : 3620 $as_echo_n "(cached) " >&6 3621else 3622 if test -n "$ac_ct_CC"; then 3623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3624else 3625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3626for as_dir in $PATH 3627do 3628 IFS=$as_save_IFS 3629 test -z "$as_dir" && as_dir=. 3630 for ac_exec_ext in '' $ac_executable_extensions; do 3631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3632 ac_cv_prog_ac_ct_CC="gcc" 3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3634 break 2 3635 fi 3636done 3637 done 3638IFS=$as_save_IFS 3639 3640fi 3641fi 3642ac_ct_CC=$ac_cv_prog_ac_ct_CC 3643if test -n "$ac_ct_CC"; then 3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3645$as_echo "$ac_ct_CC" >&6; } 3646else 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3648$as_echo "no" >&6; } 3649fi 3650 3651 if test "x$ac_ct_CC" = x; then 3652 CC="" 3653 else 3654 case $cross_compiling:$ac_tool_warned in 3655yes:) 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3658ac_tool_warned=yes ;; 3659esac 3660 CC=$ac_ct_CC 3661 fi 3662else 3663 CC="$ac_cv_prog_CC" 3664fi 3665 3666if test -z "$CC"; then 3667 if test -n "$ac_tool_prefix"; then 3668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3669set dummy ${ac_tool_prefix}cc; ac_word=$2 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3671$as_echo_n "checking for $ac_word... " >&6; } 3672if ${ac_cv_prog_CC+:} false; then : 3673 $as_echo_n "(cached) " >&6 3674else 3675 if test -n "$CC"; then 3676 ac_cv_prog_CC="$CC" # Let the user override the test. 3677else 3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3679for as_dir in $PATH 3680do 3681 IFS=$as_save_IFS 3682 test -z "$as_dir" && as_dir=. 3683 for ac_exec_ext in '' $ac_executable_extensions; do 3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3685 ac_cv_prog_CC="${ac_tool_prefix}cc" 3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3687 break 2 3688 fi 3689done 3690 done 3691IFS=$as_save_IFS 3692 3693fi 3694fi 3695CC=$ac_cv_prog_CC 3696if test -n "$CC"; then 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3698$as_echo "$CC" >&6; } 3699else 3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701$as_echo "no" >&6; } 3702fi 3703 3704 3705 fi 3706fi 3707if test -z "$CC"; then 3708 # Extract the first word of "cc", so it can be a program name with args. 3709set dummy cc; ac_word=$2 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3711$as_echo_n "checking for $ac_word... " >&6; } 3712if ${ac_cv_prog_CC+:} false; then : 3713 $as_echo_n "(cached) " >&6 3714else 3715 if test -n "$CC"; then 3716 ac_cv_prog_CC="$CC" # Let the user override the test. 3717else 3718 ac_prog_rejected=no 3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3720for as_dir in $PATH 3721do 3722 IFS=$as_save_IFS 3723 test -z "$as_dir" && as_dir=. 3724 for ac_exec_ext in '' $ac_executable_extensions; do 3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3727 ac_prog_rejected=yes 3728 continue 3729 fi 3730 ac_cv_prog_CC="cc" 3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3732 break 2 3733 fi 3734done 3735 done 3736IFS=$as_save_IFS 3737 3738if test $ac_prog_rejected = yes; then 3739 # We found a bogon in the path, so make sure we never use it. 3740 set dummy $ac_cv_prog_CC 3741 shift 3742 if test $# != 0; then 3743 # We chose a different compiler from the bogus one. 3744 # However, it has the same basename, so the bogon will be chosen 3745 # first if we set CC to just the basename; use the full file name. 3746 shift 3747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3748 fi 3749fi 3750fi 3751fi 3752CC=$ac_cv_prog_CC 3753if test -n "$CC"; then 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3755$as_echo "$CC" >&6; } 3756else 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3758$as_echo "no" >&6; } 3759fi 3760 3761 3762fi 3763if test -z "$CC"; then 3764 if test -n "$ac_tool_prefix"; then 3765 for ac_prog in cl.exe 3766 do 3767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3768set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3770$as_echo_n "checking for $ac_word... " >&6; } 3771if ${ac_cv_prog_CC+:} false; then : 3772 $as_echo_n "(cached) " >&6 3773else 3774 if test -n "$CC"; then 3775 ac_cv_prog_CC="$CC" # Let the user override the test. 3776else 3777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3778for as_dir in $PATH 3779do 3780 IFS=$as_save_IFS 3781 test -z "$as_dir" && as_dir=. 3782 for ac_exec_ext in '' $ac_executable_extensions; do 3783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3786 break 2 3787 fi 3788done 3789 done 3790IFS=$as_save_IFS 3791 3792fi 3793fi 3794CC=$ac_cv_prog_CC 3795if test -n "$CC"; then 3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3797$as_echo "$CC" >&6; } 3798else 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3800$as_echo "no" >&6; } 3801fi 3802 3803 3804 test -n "$CC" && break 3805 done 3806fi 3807if test -z "$CC"; then 3808 ac_ct_CC=$CC 3809 for ac_prog in cl.exe 3810do 3811 # Extract the first word of "$ac_prog", so it can be a program name with args. 3812set dummy $ac_prog; ac_word=$2 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3814$as_echo_n "checking for $ac_word... " >&6; } 3815if ${ac_cv_prog_ac_ct_CC+:} false; then : 3816 $as_echo_n "(cached) " >&6 3817else 3818 if test -n "$ac_ct_CC"; then 3819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3820else 3821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3822for as_dir in $PATH 3823do 3824 IFS=$as_save_IFS 3825 test -z "$as_dir" && as_dir=. 3826 for ac_exec_ext in '' $ac_executable_extensions; do 3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3828 ac_cv_prog_ac_ct_CC="$ac_prog" 3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3830 break 2 3831 fi 3832done 3833 done 3834IFS=$as_save_IFS 3835 3836fi 3837fi 3838ac_ct_CC=$ac_cv_prog_ac_ct_CC 3839if test -n "$ac_ct_CC"; then 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3841$as_echo "$ac_ct_CC" >&6; } 3842else 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3844$as_echo "no" >&6; } 3845fi 3846 3847 3848 test -n "$ac_ct_CC" && break 3849done 3850 3851 if test "x$ac_ct_CC" = x; then 3852 CC="" 3853 else 3854 case $cross_compiling:$ac_tool_warned in 3855yes:) 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3858ac_tool_warned=yes ;; 3859esac 3860 CC=$ac_ct_CC 3861 fi 3862fi 3863 3864fi 3865 3866 3867test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3868$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3869as_fn_error $? "no acceptable C compiler found in \$PATH 3870See \`config.log' for more details" "$LINENO" 5; } 3871 3872# Provide some information about the compiler. 3873$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3874set X $ac_compile 3875ac_compiler=$2 3876for ac_option in --version -v -V -qversion; do 3877 { { ac_try="$ac_compiler $ac_option >&5" 3878case "(($ac_try" in 3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3880 *) ac_try_echo=$ac_try;; 3881esac 3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3883$as_echo "$ac_try_echo"; } >&5 3884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3885 ac_status=$? 3886 if test -s conftest.err; then 3887 sed '10a\ 3888... rest of stderr output deleted ... 3889 10q' conftest.err >conftest.er1 3890 cat conftest.er1 >&5 3891 fi 3892 rm -f conftest.er1 conftest.err 3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3894 test $ac_status = 0; } 3895done 3896 3897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899 3900int 3901main () 3902{ 3903 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908ac_clean_files_save=$ac_clean_files 3909ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3910# Try to create an executable without -o first, disregard a.out. 3911# It will help us diagnose broken compilers, and finding out an intuition 3912# of exeext. 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3914$as_echo_n "checking whether the C compiler works... " >&6; } 3915ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3916 3917# The possible output files: 3918ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3919 3920ac_rmfiles= 3921for ac_file in $ac_files 3922do 3923 case $ac_file in 3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3925 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3926 esac 3927done 3928rm -f $ac_rmfiles 3929 3930if { { ac_try="$ac_link_default" 3931case "(($ac_try" in 3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933 *) ac_try_echo=$ac_try;; 3934esac 3935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3936$as_echo "$ac_try_echo"; } >&5 3937 (eval "$ac_link_default") 2>&5 3938 ac_status=$? 3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3940 test $ac_status = 0; }; then : 3941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3942# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3943# in a Makefile. We should not override ac_cv_exeext if it was cached, 3944# so that the user can short-circuit this test for compilers unknown to 3945# Autoconf. 3946for ac_file in $ac_files '' 3947do 3948 test -f "$ac_file" || continue 3949 case $ac_file in 3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3951 ;; 3952 [ab].out ) 3953 # We found the default executable, but exeext='' is most 3954 # certainly right. 3955 break;; 3956 *.* ) 3957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3958 then :; else 3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3960 fi 3961 # We set ac_cv_exeext here because the later test for it is not 3962 # safe: cross compilers may not add the suffix if given an `-o' 3963 # argument, so we may need to know it at that point already. 3964 # Even if this section looks crufty: it has the advantage of 3965 # actually working. 3966 break;; 3967 * ) 3968 break;; 3969 esac 3970done 3971test "$ac_cv_exeext" = no && ac_cv_exeext= 3972 3973else 3974 ac_file='' 3975fi 3976if test -z "$ac_file"; then : 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3978$as_echo "no" >&6; } 3979$as_echo "$as_me: failed program was:" >&5 3980sed 's/^/| /' conftest.$ac_ext >&5 3981 3982{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3984as_fn_error 77 "C compiler cannot create executables 3985See \`config.log' for more details" "$LINENO" 5; } 3986else 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3988$as_echo "yes" >&6; } 3989fi 3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3991$as_echo_n "checking for C compiler default output file name... " >&6; } 3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3993$as_echo "$ac_file" >&6; } 3994ac_exeext=$ac_cv_exeext 3995 3996rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3997ac_clean_files=$ac_clean_files_save 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3999$as_echo_n "checking for suffix of executables... " >&6; } 4000if { { ac_try="$ac_link" 4001case "(($ac_try" in 4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4003 *) ac_try_echo=$ac_try;; 4004esac 4005eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4006$as_echo "$ac_try_echo"; } >&5 4007 (eval "$ac_link") 2>&5 4008 ac_status=$? 4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4010 test $ac_status = 0; }; then : 4011 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4013# work properly (i.e., refer to `conftest.exe'), while it won't with 4014# `rm'. 4015for ac_file in conftest.exe conftest conftest.*; do 4016 test -f "$ac_file" || continue 4017 case $ac_file in 4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4020 break;; 4021 * ) break;; 4022 esac 4023done 4024else 4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4027as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4028See \`config.log' for more details" "$LINENO" 5; } 4029fi 4030rm -f conftest conftest$ac_cv_exeext 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4032$as_echo "$ac_cv_exeext" >&6; } 4033 4034rm -f conftest.$ac_ext 4035EXEEXT=$ac_cv_exeext 4036ac_exeext=$EXEEXT 4037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039#include <stdio.h> 4040int 4041main () 4042{ 4043FILE *f = fopen ("conftest.out", "w"); 4044 return ferror (f) || fclose (f) != 0; 4045 4046 ; 4047 return 0; 4048} 4049_ACEOF 4050ac_clean_files="$ac_clean_files conftest.out" 4051# Check that the compiler produces executables we can run. If not, either 4052# the compiler is broken, or we cross compile. 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4054$as_echo_n "checking whether we are cross compiling... " >&6; } 4055if test "$cross_compiling" != yes; then 4056 { { ac_try="$ac_link" 4057case "(($ac_try" in 4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4059 *) ac_try_echo=$ac_try;; 4060esac 4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4062$as_echo "$ac_try_echo"; } >&5 4063 (eval "$ac_link") 2>&5 4064 ac_status=$? 4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4066 test $ac_status = 0; } 4067 if { ac_try='./conftest$ac_cv_exeext' 4068 { { case "(($ac_try" in 4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4070 *) ac_try_echo=$ac_try;; 4071esac 4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4073$as_echo "$ac_try_echo"; } >&5 4074 (eval "$ac_try") 2>&5 4075 ac_status=$? 4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4077 test $ac_status = 0; }; }; then 4078 cross_compiling=no 4079 else 4080 if test "$cross_compiling" = maybe; then 4081 cross_compiling=yes 4082 else 4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4085as_fn_error $? "cannot run C compiled programs. 4086If you meant to cross compile, use \`--host'. 4087See \`config.log' for more details" "$LINENO" 5; } 4088 fi 4089 fi 4090fi 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4092$as_echo "$cross_compiling" >&6; } 4093 4094rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4095ac_clean_files=$ac_clean_files_save 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4097$as_echo_n "checking for suffix of object files... " >&6; } 4098if ${ac_cv_objext+:} false; then : 4099 $as_echo_n "(cached) " >&6 4100else 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103 4104int 4105main () 4106{ 4107 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112rm -f conftest.o conftest.obj 4113if { { ac_try="$ac_compile" 4114case "(($ac_try" in 4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4116 *) ac_try_echo=$ac_try;; 4117esac 4118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4119$as_echo "$ac_try_echo"; } >&5 4120 (eval "$ac_compile") 2>&5 4121 ac_status=$? 4122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4123 test $ac_status = 0; }; then : 4124 for ac_file in conftest.o conftest.obj conftest.*; do 4125 test -f "$ac_file" || continue; 4126 case $ac_file in 4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4129 break;; 4130 esac 4131done 4132else 4133 $as_echo "$as_me: failed program was:" >&5 4134sed 's/^/| /' conftest.$ac_ext >&5 4135 4136{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4138as_fn_error $? "cannot compute suffix of object files: cannot compile 4139See \`config.log' for more details" "$LINENO" 5; } 4140fi 4141rm -f conftest.$ac_cv_objext conftest.$ac_ext 4142fi 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4144$as_echo "$ac_cv_objext" >&6; } 4145OBJEXT=$ac_cv_objext 4146ac_objext=$OBJEXT 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4148$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4149if ${ac_cv_c_compiler_gnu+:} false; then : 4150 $as_echo_n "(cached) " >&6 4151else 4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4153/* end confdefs.h. */ 4154 4155int 4156main () 4157{ 4158#ifndef __GNUC__ 4159 choke me 4160#endif 4161 4162 ; 4163 return 0; 4164} 4165_ACEOF 4166if ac_fn_c_try_compile "$LINENO"; then : 4167 ac_compiler_gnu=yes 4168else 4169 ac_compiler_gnu=no 4170fi 4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4172ac_cv_c_compiler_gnu=$ac_compiler_gnu 4173 4174fi 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4176$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4177if test $ac_compiler_gnu = yes; then 4178 GCC=yes 4179else 4180 GCC= 4181fi 4182ac_test_CFLAGS=${CFLAGS+set} 4183ac_save_CFLAGS=$CFLAGS 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4185$as_echo_n "checking whether $CC accepts -g... " >&6; } 4186if ${ac_cv_prog_cc_g+:} false; then : 4187 $as_echo_n "(cached) " >&6 4188else 4189 ac_save_c_werror_flag=$ac_c_werror_flag 4190 ac_c_werror_flag=yes 4191 ac_cv_prog_cc_g=no 4192 CFLAGS="-g" 4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4194/* end confdefs.h. */ 4195 4196int 4197main () 4198{ 4199 4200 ; 4201 return 0; 4202} 4203_ACEOF 4204if ac_fn_c_try_compile "$LINENO"; then : 4205 ac_cv_prog_cc_g=yes 4206else 4207 CFLAGS="" 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4209/* end confdefs.h. */ 4210 4211int 4212main () 4213{ 4214 4215 ; 4216 return 0; 4217} 4218_ACEOF 4219if ac_fn_c_try_compile "$LINENO"; then : 4220 4221else 4222 ac_c_werror_flag=$ac_save_c_werror_flag 4223 CFLAGS="-g" 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225/* end confdefs.h. */ 4226 4227int 4228main () 4229{ 4230 4231 ; 4232 return 0; 4233} 4234_ACEOF 4235if ac_fn_c_try_compile "$LINENO"; then : 4236 ac_cv_prog_cc_g=yes 4237fi 4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4239fi 4240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4241fi 4242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4243 ac_c_werror_flag=$ac_save_c_werror_flag 4244fi 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4246$as_echo "$ac_cv_prog_cc_g" >&6; } 4247if test "$ac_test_CFLAGS" = set; then 4248 CFLAGS=$ac_save_CFLAGS 4249elif test $ac_cv_prog_cc_g = yes; then 4250 if test "$GCC" = yes; then 4251 CFLAGS="-g -O2" 4252 else 4253 CFLAGS="-g" 4254 fi 4255else 4256 if test "$GCC" = yes; then 4257 CFLAGS="-O2" 4258 else 4259 CFLAGS= 4260 fi 4261fi 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4263$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4264if ${ac_cv_prog_cc_c89+:} false; then : 4265 $as_echo_n "(cached) " >&6 4266else 4267 ac_cv_prog_cc_c89=no 4268ac_save_CC=$CC 4269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271#include <stdarg.h> 4272#include <stdio.h> 4273struct stat; 4274/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4275struct buf { int x; }; 4276FILE * (*rcsopen) (struct buf *, struct stat *, int); 4277static char *e (p, i) 4278 char **p; 4279 int i; 4280{ 4281 return p[i]; 4282} 4283static char *f (char * (*g) (char **, int), char **p, ...) 4284{ 4285 char *s; 4286 va_list v; 4287 va_start (v,p); 4288 s = g (p, va_arg (v,int)); 4289 va_end (v); 4290 return s; 4291} 4292 4293/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4294 function prototypes and stuff, but not '\xHH' hex character constants. 4295 These don't provoke an error unfortunately, instead are silently treated 4296 as 'x'. The following induces an error, until -std is added to get 4297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4298 array size at least. It's necessary to write '\x00'==0 to get something 4299 that's true only with -std. */ 4300int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4301 4302/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4303 inside strings and character constants. */ 4304#define FOO(x) 'x' 4305int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4306 4307int test (int i, double x); 4308struct s1 {int (*f) (int a);}; 4309struct s2 {int (*f) (double a);}; 4310int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4311int argc; 4312char **argv; 4313int 4314main () 4315{ 4316return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4323do 4324 CC="$ac_save_CC $ac_arg" 4325 if ac_fn_c_try_compile "$LINENO"; then : 4326 ac_cv_prog_cc_c89=$ac_arg 4327fi 4328rm -f core conftest.err conftest.$ac_objext 4329 test "x$ac_cv_prog_cc_c89" != "xno" && break 4330done 4331rm -f conftest.$ac_ext 4332CC=$ac_save_CC 4333 4334fi 4335# AC_CACHE_VAL 4336case "x$ac_cv_prog_cc_c89" in 4337 x) 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4339$as_echo "none needed" >&6; } ;; 4340 xno) 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4342$as_echo "unsupported" >&6; } ;; 4343 *) 4344 CC="$CC $ac_cv_prog_cc_c89" 4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4346$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4347esac 4348if test "x$ac_cv_prog_cc_c89" != xno; then : 4349 4350fi 4351 4352ac_ext=c 4353ac_cpp='$CPP $CPPFLAGS' 4354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4356ac_compiler_gnu=$ac_cv_c_compiler_gnu 4357 4358ac_ext=c 4359ac_cpp='$CPP $CPPFLAGS' 4360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4362ac_compiler_gnu=$ac_cv_c_compiler_gnu 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4364$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4365if ${am_cv_prog_cc_c_o+:} false; then : 4366 $as_echo_n "(cached) " >&6 4367else 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369/* end confdefs.h. */ 4370 4371int 4372main () 4373{ 4374 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379 # Make sure it works both with $CC and with simple cc. 4380 # Following AC_PROG_CC_C_O, we do the test twice because some 4381 # compilers refuse to overwrite an existing .o file with -o, 4382 # though they will create one. 4383 am_cv_prog_cc_c_o=yes 4384 for am_i in 1 2; do 4385 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4386 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4387 ac_status=$? 4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4389 (exit $ac_status); } \ 4390 && test -f conftest2.$ac_objext; then 4391 : OK 4392 else 4393 am_cv_prog_cc_c_o=no 4394 break 4395 fi 4396 done 4397 rm -f core conftest* 4398 unset am_i 4399fi 4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4401$as_echo "$am_cv_prog_cc_c_o" >&6; } 4402if test "$am_cv_prog_cc_c_o" != yes; then 4403 # Losing compiler, so override with the script. 4404 # FIXME: It is wrong to rewrite CC. 4405 # But if we don't then we get into trouble of one sort or another. 4406 # A longer-term fix would be to have automake use am__CC in this case, 4407 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4408 CC="$am_aux_dir/compile $CC" 4409fi 4410ac_ext=c 4411ac_cpp='$CPP $CPPFLAGS' 4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4414ac_compiler_gnu=$ac_cv_c_compiler_gnu 4415 4416DEPDIR="${am__leading_dot}deps" 4417 4418ac_config_commands="$ac_config_commands depfiles" 4419 4420 4421am_make=${MAKE-make} 4422cat > confinc << 'END' 4423am__doit: 4424 @echo this is the am__doit target 4425.PHONY: am__doit 4426END 4427# If we don't find an include directive, just comment out the code. 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4429$as_echo_n "checking for style of include used by $am_make... " >&6; } 4430am__include="#" 4431am__quote= 4432_am_result=none 4433# First try GNU make style include. 4434echo "include confinc" > confmf 4435# Ignore all kinds of additional output from 'make'. 4436case `$am_make -s -f confmf 2> /dev/null` in #( 4437*the\ am__doit\ target*) 4438 am__include=include 4439 am__quote= 4440 _am_result=GNU 4441 ;; 4442esac 4443# Now try BSD make style include. 4444if test "$am__include" = "#"; then 4445 echo '.include "confinc"' > confmf 4446 case `$am_make -s -f confmf 2> /dev/null` in #( 4447 *the\ am__doit\ target*) 4448 am__include=.include 4449 am__quote="\"" 4450 _am_result=BSD 4451 ;; 4452 esac 4453fi 4454 4455 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4457$as_echo "$_am_result" >&6; } 4458rm -f confinc confmf 4459 4460# Check whether --enable-dependency-tracking was given. 4461if test "${enable_dependency_tracking+set}" = set; then : 4462 enableval=$enable_dependency_tracking; 4463fi 4464 4465if test "x$enable_dependency_tracking" != xno; then 4466 am_depcomp="$ac_aux_dir/depcomp" 4467 AMDEPBACKSLASH='\' 4468 am__nodep='_no' 4469fi 4470 if test "x$enable_dependency_tracking" != xno; then 4471 AMDEP_TRUE= 4472 AMDEP_FALSE='#' 4473else 4474 AMDEP_TRUE='#' 4475 AMDEP_FALSE= 4476fi 4477 4478 4479 4480depcc="$CC" am_compiler_list= 4481 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4483$as_echo_n "checking dependency style of $depcc... " >&6; } 4484if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4488 # We make a subdir and do the tests there. Otherwise we can end up 4489 # making bogus files that we don't know about and never remove. For 4490 # instance it was reported that on HP-UX the gcc test will end up 4491 # making a dummy file named 'D' -- because '-MD' means "put the output 4492 # in D". 4493 rm -rf conftest.dir 4494 mkdir conftest.dir 4495 # Copy depcomp to subdir because otherwise we won't find it if we're 4496 # using a relative directory. 4497 cp "$am_depcomp" conftest.dir 4498 cd conftest.dir 4499 # We will build objects and dependencies in a subdirectory because 4500 # it helps to detect inapplicable dependency modes. For instance 4501 # both Tru64's cc and ICC support -MD to output dependencies as a 4502 # side effect of compilation, but ICC will put the dependencies in 4503 # the current directory while Tru64 will put them in the object 4504 # directory. 4505 mkdir sub 4506 4507 am_cv_CC_dependencies_compiler_type=none 4508 if test "$am_compiler_list" = ""; then 4509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4510 fi 4511 am__universal=false 4512 case " $depcc " in #( 4513 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4514 esac 4515 4516 for depmode in $am_compiler_list; do 4517 # Setup a source with many dependencies, because some compilers 4518 # like to wrap large dependency lists on column 80 (with \), and 4519 # we should not choose a depcomp mode which is confused by this. 4520 # 4521 # We need to recreate these files for each test, as the compiler may 4522 # overwrite some of them when testing with obscure command lines. 4523 # This happens at least with the AIX C compiler. 4524 : > sub/conftest.c 4525 for i in 1 2 3 4 5 6; do 4526 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4527 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4528 # Solaris 10 /bin/sh. 4529 echo '/* dummy */' > sub/conftst$i.h 4530 done 4531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4532 4533 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4534 # mode. It turns out that the SunPro C++ compiler does not properly 4535 # handle '-M -o', and we need to detect this. Also, some Intel 4536 # versions had trouble with output in subdirs. 4537 am__obj=sub/conftest.${OBJEXT-o} 4538 am__minus_obj="-o $am__obj" 4539 case $depmode in 4540 gcc) 4541 # This depmode causes a compiler race in universal mode. 4542 test "$am__universal" = false || continue 4543 ;; 4544 nosideeffect) 4545 # After this tag, mechanisms are not by side-effect, so they'll 4546 # only be used when explicitly requested. 4547 if test "x$enable_dependency_tracking" = xyes; then 4548 continue 4549 else 4550 break 4551 fi 4552 ;; 4553 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4554 # This compiler won't grok '-c -o', but also, the minuso test has 4555 # not run yet. These depmodes are late enough in the game, and 4556 # so weak that their functioning should not be impacted. 4557 am__obj=conftest.${OBJEXT-o} 4558 am__minus_obj= 4559 ;; 4560 none) break ;; 4561 esac 4562 if depmode=$depmode \ 4563 source=sub/conftest.c object=$am__obj \ 4564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4566 >/dev/null 2>conftest.err && 4567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4571 # icc doesn't choke on unknown options, it will just issue warnings 4572 # or remarks (even with -Werror). So we grep stderr for any message 4573 # that says an option was ignored or not supported. 4574 # When given -MP, icc 7.0 and 7.1 complain thusly: 4575 # icc: Command line warning: ignoring option '-M'; no argument required 4576 # The diagnosis changed in icc 8.0: 4577 # icc: Command line remark: option '-MP' not supported 4578 if (grep 'ignoring option' conftest.err || 4579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4580 am_cv_CC_dependencies_compiler_type=$depmode 4581 break 4582 fi 4583 fi 4584 done 4585 4586 cd .. 4587 rm -rf conftest.dir 4588else 4589 am_cv_CC_dependencies_compiler_type=none 4590fi 4591 4592fi 4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4594$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4595CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4596 4597 if 4598 test "x$enable_dependency_tracking" != xno \ 4599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4600 am__fastdepCC_TRUE= 4601 am__fastdepCC_FALSE='#' 4602else 4603 am__fastdepCC_TRUE='#' 4604 am__fastdepCC_FALSE= 4605fi 4606 4607 4608 4609 4610 4611 4612# In order to override CFLAGS_FOR_TARGET, all of our special flags go 4613# in XCFLAGS. But we need them in CFLAGS during configury. So put them 4614# in both places for now and restore CFLAGS at the end of config. 4615save_CFLAGS="$CFLAGS" 4616 4617# Add -Wall -Werror if we are using GCC. 4618if test "x$GCC" = "xyes"; then 4619 XCFLAGS="$XCFLAGS -Wall -Werror" 4620fi 4621 4622# Find other programs we need. 4623if test -n "$ac_tool_prefix"; then 4624 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4625set dummy ${ac_tool_prefix}ar; ac_word=$2 4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4627$as_echo_n "checking for $ac_word... " >&6; } 4628if ${ac_cv_prog_AR+:} false; then : 4629 $as_echo_n "(cached) " >&6 4630else 4631 if test -n "$AR"; then 4632 ac_cv_prog_AR="$AR" # Let the user override the test. 4633else 4634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4635for as_dir in $PATH 4636do 4637 IFS=$as_save_IFS 4638 test -z "$as_dir" && as_dir=. 4639 for ac_exec_ext in '' $ac_executable_extensions; do 4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4641 ac_cv_prog_AR="${ac_tool_prefix}ar" 4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4643 break 2 4644 fi 4645done 4646 done 4647IFS=$as_save_IFS 4648 4649fi 4650fi 4651AR=$ac_cv_prog_AR 4652if test -n "$AR"; then 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4654$as_echo "$AR" >&6; } 4655else 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4657$as_echo "no" >&6; } 4658fi 4659 4660 4661fi 4662if test -z "$ac_cv_prog_AR"; then 4663 ac_ct_AR=$AR 4664 # Extract the first word of "ar", so it can be a program name with args. 4665set dummy ar; ac_word=$2 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4667$as_echo_n "checking for $ac_word... " >&6; } 4668if ${ac_cv_prog_ac_ct_AR+:} false; then : 4669 $as_echo_n "(cached) " >&6 4670else 4671 if test -n "$ac_ct_AR"; then 4672 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4673else 4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4675for as_dir in $PATH 4676do 4677 IFS=$as_save_IFS 4678 test -z "$as_dir" && as_dir=. 4679 for ac_exec_ext in '' $ac_executable_extensions; do 4680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4681 ac_cv_prog_ac_ct_AR="ar" 4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4683 break 2 4684 fi 4685done 4686 done 4687IFS=$as_save_IFS 4688 4689fi 4690fi 4691ac_ct_AR=$ac_cv_prog_ac_ct_AR 4692if test -n "$ac_ct_AR"; then 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4694$as_echo "$ac_ct_AR" >&6; } 4695else 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4697$as_echo "no" >&6; } 4698fi 4699 4700 if test "x$ac_ct_AR" = x; then 4701 AR="" 4702 else 4703 case $cross_compiling:$ac_tool_warned in 4704yes:) 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4707ac_tool_warned=yes ;; 4708esac 4709 AR=$ac_ct_AR 4710 fi 4711else 4712 AR="$ac_cv_prog_AR" 4713fi 4714 4715if test -n "$ac_tool_prefix"; then 4716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4717set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4719$as_echo_n "checking for $ac_word... " >&6; } 4720if ${ac_cv_prog_RANLIB+:} false; then : 4721 $as_echo_n "(cached) " >&6 4722else 4723 if test -n "$RANLIB"; then 4724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4725else 4726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4727for as_dir in $PATH 4728do 4729 IFS=$as_save_IFS 4730 test -z "$as_dir" && as_dir=. 4731 for ac_exec_ext in '' $ac_executable_extensions; do 4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4735 break 2 4736 fi 4737done 4738 done 4739IFS=$as_save_IFS 4740 4741fi 4742fi 4743RANLIB=$ac_cv_prog_RANLIB 4744if test -n "$RANLIB"; then 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4746$as_echo "$RANLIB" >&6; } 4747else 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4749$as_echo "no" >&6; } 4750fi 4751 4752 4753fi 4754if test -z "$ac_cv_prog_RANLIB"; then 4755 ac_ct_RANLIB=$RANLIB 4756 # Extract the first word of "ranlib", so it can be a program name with args. 4757set dummy ranlib; ac_word=$2 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4759$as_echo_n "checking for $ac_word... " >&6; } 4760if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4761 $as_echo_n "(cached) " >&6 4762else 4763 if test -n "$ac_ct_RANLIB"; then 4764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4765else 4766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4767for as_dir in $PATH 4768do 4769 IFS=$as_save_IFS 4770 test -z "$as_dir" && as_dir=. 4771 for ac_exec_ext in '' $ac_executable_extensions; do 4772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4773 ac_cv_prog_ac_ct_RANLIB="ranlib" 4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4775 break 2 4776 fi 4777done 4778 done 4779IFS=$as_save_IFS 4780 4781fi 4782fi 4783ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4784if test -n "$ac_ct_RANLIB"; then 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4786$as_echo "$ac_ct_RANLIB" >&6; } 4787else 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4789$as_echo "no" >&6; } 4790fi 4791 4792 if test "x$ac_ct_RANLIB" = x; then 4793 RANLIB="ranlib-not-found-in-path-error" 4794 else 4795 case $cross_compiling:$ac_tool_warned in 4796yes:) 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4798$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4799ac_tool_warned=yes ;; 4800esac 4801 RANLIB=$ac_ct_RANLIB 4802 fi 4803else 4804 RANLIB="$ac_cv_prog_RANLIB" 4805fi 4806 4807# Extract the first word of "perl", so it can be a program name with args. 4808set dummy perl; ac_word=$2 4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4810$as_echo_n "checking for $ac_word... " >&6; } 4811if ${ac_cv_path_PERL+:} false; then : 4812 $as_echo_n "(cached) " >&6 4813else 4814 case $PERL in 4815 [\\/]* | ?:[\\/]*) 4816 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4817 ;; 4818 *) 4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_exec_ext in '' $ac_executable_extensions; do 4825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4826 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4828 break 2 4829 fi 4830done 4831 done 4832IFS=$as_save_IFS 4833 4834 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" 4835 ;; 4836esac 4837fi 4838PERL=$ac_cv_path_PERL 4839if test -n "$PERL"; then 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4841$as_echo "$PERL" >&6; } 4842else 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4844$as_echo "no" >&6; } 4845fi 4846 4847 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4849$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4850set x ${MAKE-make} 4851ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4852if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 cat >conftest.make <<\_ACEOF 4856SHELL = /bin/sh 4857all: 4858 @echo '@@@%%%=$(MAKE)=@@@%%%' 4859_ACEOF 4860# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4861case `${MAKE-make} -f conftest.make 2>/dev/null` in 4862 *@@@%%%=?*=@@@%%%*) 4863 eval ac_cv_prog_make_${ac_make}_set=yes;; 4864 *) 4865 eval ac_cv_prog_make_${ac_make}_set=no;; 4866esac 4867rm -f conftest.make 4868fi 4869if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4871$as_echo "yes" >&6; } 4872 SET_MAKE= 4873else 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4875$as_echo "no" >&6; } 4876 SET_MAKE="MAKE=${MAKE-make}" 4877fi 4878 4879 4880 4881# See if makeinfo has been installed and is modern enough 4882# that we can use it. 4883 4884 # Extract the first word of "makeinfo", so it can be a program name with args. 4885set dummy makeinfo; ac_word=$2 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4887$as_echo_n "checking for $ac_word... " >&6; } 4888if ${ac_cv_prog_MAKEINFO+:} false; then : 4889 $as_echo_n "(cached) " >&6 4890else 4891 if test -n "$MAKEINFO"; then 4892 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 4893else 4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4895for as_dir in $PATH 4896do 4897 IFS=$as_save_IFS 4898 test -z "$as_dir" && as_dir=. 4899 for ac_exec_ext in '' $ac_executable_extensions; do 4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4901 ac_cv_prog_MAKEINFO="makeinfo" 4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4903 break 2 4904 fi 4905done 4906 done 4907IFS=$as_save_IFS 4908 4909fi 4910fi 4911MAKEINFO=$ac_cv_prog_MAKEINFO 4912if test -n "$MAKEINFO"; then 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 4914$as_echo "$MAKEINFO" >&6; } 4915else 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4917$as_echo "no" >&6; } 4918fi 4919 4920 4921 if test -n "$MAKEINFO"; then 4922 # Found it, now check the version. 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 4924$as_echo_n "checking for modern makeinfo... " >&6; } 4925if ${gcc_cv_prog_makeinfo_modern+:} false; then : 4926 $as_echo_n "(cached) " >&6 4927else 4928 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 4929 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 4930 4931 case $ac_prog_version in 4932 '') gcc_cv_prog_makeinfo_modern=no;; 4933 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 4934 *) gcc_cv_prog_makeinfo_modern=no;; 4935 esac 4936 4937fi 4938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 4939$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 4940 else 4941 gcc_cv_prog_makeinfo_modern=no 4942 fi 4943 if test $gcc_cv_prog_makeinfo_modern = no; then 4944 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 4945 fi 4946 4947 if test $gcc_cv_prog_makeinfo_modern = "yes"; then 4948 BUILD_INFO_TRUE= 4949 BUILD_INFO_FALSE='#' 4950else 4951 BUILD_INFO_TRUE='#' 4952 BUILD_INFO_FALSE= 4953fi 4954 4955 4956 4957# Configure libtool 4958case `pwd` in 4959 *\ * | *\ *) 4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4961$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4962esac 4963 4964 4965 4966macro_version='2.2.7a' 4967macro_revision='1.3134' 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981ltmain="$ac_aux_dir/ltmain.sh" 4982 4983# Backslashify metacharacters that are still active within 4984# double-quoted strings. 4985sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4986 4987# Same as above, but do not quote variable references. 4988double_quote_subst='s/\(["`\\]\)/\\\1/g' 4989 4990# Sed substitution to delay expansion of an escaped shell variable in a 4991# double_quote_subst'ed string. 4992delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4993 4994# Sed substitution to delay expansion of an escaped single quote. 4995delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4996 4997# Sed substitution to avoid accidental globbing in evaled expressions 4998no_glob_subst='s/\*/\\\*/g' 4999 5000ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5001ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5003 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5005$as_echo_n "checking how to print strings... " >&6; } 5006# Test print first, because it will be a builtin if present. 5007if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5008 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5009 ECHO='print -r --' 5010elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5011 ECHO='printf %s\n' 5012else 5013 # Use this function as a fallback that always works. 5014 func_fallback_echo () 5015 { 5016 eval 'cat <<_LTECHO_EOF 5017$1 5018_LTECHO_EOF' 5019 } 5020 ECHO='func_fallback_echo' 5021fi 5022 5023# func_echo_all arg... 5024# Invoke $ECHO with all args, space-separated. 5025func_echo_all () 5026{ 5027 $ECHO "" 5028} 5029 5030case "$ECHO" in 5031 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5032$as_echo "printf" >&6; } ;; 5033 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5034$as_echo "print -r" >&6; } ;; 5035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5036$as_echo "cat" >&6; } ;; 5037esac 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5053$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5054if ${ac_cv_path_SED+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5058 for ac_i in 1 2 3 4 5 6 7; do 5059 ac_script="$ac_script$as_nl$ac_script" 5060 done 5061 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5062 { ac_script=; unset ac_script;} 5063 if test -z "$SED"; then 5064 ac_path_SED_found=false 5065 # Loop through the user's path and test for each of PROGNAME-LIST 5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5067for as_dir in $PATH 5068do 5069 IFS=$as_save_IFS 5070 test -z "$as_dir" && as_dir=. 5071 for ac_prog in sed gsed; do 5072 for ac_exec_ext in '' $ac_executable_extensions; do 5073 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5074 as_fn_executable_p "$ac_path_SED" || continue 5075# Check for GNU ac_path_SED and select it if it is found. 5076 # Check for GNU $ac_path_SED 5077case `"$ac_path_SED" --version 2>&1` in 5078*GNU*) 5079 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5080*) 5081 ac_count=0 5082 $as_echo_n 0123456789 >"conftest.in" 5083 while : 5084 do 5085 cat "conftest.in" "conftest.in" >"conftest.tmp" 5086 mv "conftest.tmp" "conftest.in" 5087 cp "conftest.in" "conftest.nl" 5088 $as_echo '' >> "conftest.nl" 5089 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5091 as_fn_arith $ac_count + 1 && ac_count=$as_val 5092 if test $ac_count -gt ${ac_path_SED_max-0}; then 5093 # Best one so far, save it but keep looking for a better one 5094 ac_cv_path_SED="$ac_path_SED" 5095 ac_path_SED_max=$ac_count 5096 fi 5097 # 10*(2^10) chars as input seems more than enough 5098 test $ac_count -gt 10 && break 5099 done 5100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5101esac 5102 5103 $ac_path_SED_found && break 3 5104 done 5105 done 5106 done 5107IFS=$as_save_IFS 5108 if test -z "$ac_cv_path_SED"; then 5109 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5110 fi 5111else 5112 ac_cv_path_SED=$SED 5113fi 5114 5115fi 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5117$as_echo "$ac_cv_path_SED" >&6; } 5118 SED="$ac_cv_path_SED" 5119 rm -f conftest.sed 5120 5121test -z "$SED" && SED=sed 5122Xsed="$SED -e 1s/^X//" 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5135$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5136if ${ac_cv_path_GREP+:} false; then : 5137 $as_echo_n "(cached) " >&6 5138else 5139 if test -z "$GREP"; then 5140 ac_path_GREP_found=false 5141 # Loop through the user's path and test for each of PROGNAME-LIST 5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5143for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5144do 5145 IFS=$as_save_IFS 5146 test -z "$as_dir" && as_dir=. 5147 for ac_prog in grep ggrep; do 5148 for ac_exec_ext in '' $ac_executable_extensions; do 5149 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5150 as_fn_executable_p "$ac_path_GREP" || continue 5151# Check for GNU ac_path_GREP and select it if it is found. 5152 # Check for GNU $ac_path_GREP 5153case `"$ac_path_GREP" --version 2>&1` in 5154*GNU*) 5155 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5156*) 5157 ac_count=0 5158 $as_echo_n 0123456789 >"conftest.in" 5159 while : 5160 do 5161 cat "conftest.in" "conftest.in" >"conftest.tmp" 5162 mv "conftest.tmp" "conftest.in" 5163 cp "conftest.in" "conftest.nl" 5164 $as_echo 'GREP' >> "conftest.nl" 5165 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5167 as_fn_arith $ac_count + 1 && ac_count=$as_val 5168 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5169 # Best one so far, save it but keep looking for a better one 5170 ac_cv_path_GREP="$ac_path_GREP" 5171 ac_path_GREP_max=$ac_count 5172 fi 5173 # 10*(2^10) chars as input seems more than enough 5174 test $ac_count -gt 10 && break 5175 done 5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5177esac 5178 5179 $ac_path_GREP_found && break 3 5180 done 5181 done 5182 done 5183IFS=$as_save_IFS 5184 if test -z "$ac_cv_path_GREP"; then 5185 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5186 fi 5187else 5188 ac_cv_path_GREP=$GREP 5189fi 5190 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5193$as_echo "$ac_cv_path_GREP" >&6; } 5194 GREP="$ac_cv_path_GREP" 5195 5196 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5198$as_echo_n "checking for egrep... " >&6; } 5199if ${ac_cv_path_EGREP+:} false; then : 5200 $as_echo_n "(cached) " >&6 5201else 5202 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5203 then ac_cv_path_EGREP="$GREP -E" 5204 else 5205 if test -z "$EGREP"; then 5206 ac_path_EGREP_found=false 5207 # Loop through the user's path and test for each of PROGNAME-LIST 5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5209for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5210do 5211 IFS=$as_save_IFS 5212 test -z "$as_dir" && as_dir=. 5213 for ac_prog in egrep; do 5214 for ac_exec_ext in '' $ac_executable_extensions; do 5215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5216 as_fn_executable_p "$ac_path_EGREP" || continue 5217# Check for GNU ac_path_EGREP and select it if it is found. 5218 # Check for GNU $ac_path_EGREP 5219case `"$ac_path_EGREP" --version 2>&1` in 5220*GNU*) 5221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5222*) 5223 ac_count=0 5224 $as_echo_n 0123456789 >"conftest.in" 5225 while : 5226 do 5227 cat "conftest.in" "conftest.in" >"conftest.tmp" 5228 mv "conftest.tmp" "conftest.in" 5229 cp "conftest.in" "conftest.nl" 5230 $as_echo 'EGREP' >> "conftest.nl" 5231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5233 as_fn_arith $ac_count + 1 && ac_count=$as_val 5234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5235 # Best one so far, save it but keep looking for a better one 5236 ac_cv_path_EGREP="$ac_path_EGREP" 5237 ac_path_EGREP_max=$ac_count 5238 fi 5239 # 10*(2^10) chars as input seems more than enough 5240 test $ac_count -gt 10 && break 5241 done 5242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5243esac 5244 5245 $ac_path_EGREP_found && break 3 5246 done 5247 done 5248 done 5249IFS=$as_save_IFS 5250 if test -z "$ac_cv_path_EGREP"; then 5251 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5252 fi 5253else 5254 ac_cv_path_EGREP=$EGREP 5255fi 5256 5257 fi 5258fi 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5260$as_echo "$ac_cv_path_EGREP" >&6; } 5261 EGREP="$ac_cv_path_EGREP" 5262 5263 5264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5265$as_echo_n "checking for fgrep... " >&6; } 5266if ${ac_cv_path_FGREP+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268else 5269 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5270 then ac_cv_path_FGREP="$GREP -F" 5271 else 5272 if test -z "$FGREP"; then 5273 ac_path_FGREP_found=false 5274 # Loop through the user's path and test for each of PROGNAME-LIST 5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5276for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5277do 5278 IFS=$as_save_IFS 5279 test -z "$as_dir" && as_dir=. 5280 for ac_prog in fgrep; do 5281 for ac_exec_ext in '' $ac_executable_extensions; do 5282 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5283 as_fn_executable_p "$ac_path_FGREP" || continue 5284# Check for GNU ac_path_FGREP and select it if it is found. 5285 # Check for GNU $ac_path_FGREP 5286case `"$ac_path_FGREP" --version 2>&1` in 5287*GNU*) 5288 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5289*) 5290 ac_count=0 5291 $as_echo_n 0123456789 >"conftest.in" 5292 while : 5293 do 5294 cat "conftest.in" "conftest.in" >"conftest.tmp" 5295 mv "conftest.tmp" "conftest.in" 5296 cp "conftest.in" "conftest.nl" 5297 $as_echo 'FGREP' >> "conftest.nl" 5298 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5300 as_fn_arith $ac_count + 1 && ac_count=$as_val 5301 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5302 # Best one so far, save it but keep looking for a better one 5303 ac_cv_path_FGREP="$ac_path_FGREP" 5304 ac_path_FGREP_max=$ac_count 5305 fi 5306 # 10*(2^10) chars as input seems more than enough 5307 test $ac_count -gt 10 && break 5308 done 5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5310esac 5311 5312 $ac_path_FGREP_found && break 3 5313 done 5314 done 5315 done 5316IFS=$as_save_IFS 5317 if test -z "$ac_cv_path_FGREP"; then 5318 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5319 fi 5320else 5321 ac_cv_path_FGREP=$FGREP 5322fi 5323 5324 fi 5325fi 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5327$as_echo "$ac_cv_path_FGREP" >&6; } 5328 FGREP="$ac_cv_path_FGREP" 5329 5330 5331test -z "$GREP" && GREP=grep 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351# Check whether --with-gnu-ld was given. 5352if test "${with_gnu_ld+set}" = set; then : 5353 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5354else 5355 with_gnu_ld=no 5356fi 5357 5358ac_prog=ld 5359if test "$GCC" = yes; then 5360 # Check if gcc -print-prog-name=ld gives a path. 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5362$as_echo_n "checking for ld used by $CC... " >&6; } 5363 case $host in 5364 *-*-mingw*) 5365 # gcc leaves a trailing carriage return which upsets mingw 5366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5367 *) 5368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5369 esac 5370 case $ac_prog in 5371 # Accept absolute paths. 5372 [\\/]* | ?:[\\/]*) 5373 re_direlt='/[^/][^/]*/\.\./' 5374 # Canonicalize the pathname of ld 5375 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5376 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5377 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5378 done 5379 test -z "$LD" && LD="$ac_prog" 5380 ;; 5381 "") 5382 # If it fails, then pretend we aren't using GCC. 5383 ac_prog=ld 5384 ;; 5385 *) 5386 # If it is relative, then search for the first ld in PATH. 5387 with_gnu_ld=unknown 5388 ;; 5389 esac 5390elif test "$with_gnu_ld" = yes; then 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5392$as_echo_n "checking for GNU ld... " >&6; } 5393else 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5395$as_echo_n "checking for non-GNU ld... " >&6; } 5396fi 5397if ${lt_cv_path_LD+:} false; then : 5398 $as_echo_n "(cached) " >&6 5399else 5400 if test -z "$LD"; then 5401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5402 for ac_dir in $PATH; do 5403 IFS="$lt_save_ifs" 5404 test -z "$ac_dir" && ac_dir=. 5405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5406 lt_cv_path_LD="$ac_dir/$ac_prog" 5407 # Check to see if the program is GNU ld. I'd rather use --version, 5408 # but apparently some variants of GNU ld only accept -v. 5409 # Break only if it was the GNU/non-GNU ld that we prefer. 5410 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5411 *GNU* | *'with BFD'*) 5412 test "$with_gnu_ld" != no && break 5413 ;; 5414 *) 5415 test "$with_gnu_ld" != yes && break 5416 ;; 5417 esac 5418 fi 5419 done 5420 IFS="$lt_save_ifs" 5421else 5422 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5423fi 5424fi 5425 5426LD="$lt_cv_path_LD" 5427if test -n "$LD"; then 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5429$as_echo "$LD" >&6; } 5430else 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5432$as_echo "no" >&6; } 5433fi 5434test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5436$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5437if ${lt_cv_prog_gnu_ld+:} false; then : 5438 $as_echo_n "(cached) " >&6 5439else 5440 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5441case `$LD -v 2>&1 </dev/null` in 5442*GNU* | *'with BFD'*) 5443 lt_cv_prog_gnu_ld=yes 5444 ;; 5445*) 5446 lt_cv_prog_gnu_ld=no 5447 ;; 5448esac 5449fi 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5451$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5452with_gnu_ld=$lt_cv_prog_gnu_ld 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5463$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5464if ${lt_cv_path_NM+:} false; then : 5465 $as_echo_n "(cached) " >&6 5466else 5467 if test -n "$NM"; then 5468 # Let the user override the test. 5469 lt_cv_path_NM="$NM" 5470else 5471 lt_nm_to_check="${ac_tool_prefix}nm" 5472 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5473 lt_nm_to_check="$lt_nm_to_check nm" 5474 fi 5475 for lt_tmp_nm in $lt_nm_to_check; do 5476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5477 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5478 IFS="$lt_save_ifs" 5479 test -z "$ac_dir" && ac_dir=. 5480 tmp_nm="$ac_dir/$lt_tmp_nm" 5481 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5482 # Check to see if the nm accepts a BSD-compat flag. 5483 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5484 # nm: unknown option "B" ignored 5485 # Tru64's nm complains that /dev/null is an invalid object file 5486 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5487 */dev/null* | *'Invalid file or object type'*) 5488 lt_cv_path_NM="$tmp_nm -B" 5489 break 5490 ;; 5491 *) 5492 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5493 */dev/null*) 5494 lt_cv_path_NM="$tmp_nm -p" 5495 break 5496 ;; 5497 *) 5498 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5499 continue # so that we can try to find one that supports BSD flags 5500 ;; 5501 esac 5502 ;; 5503 esac 5504 fi 5505 done 5506 IFS="$lt_save_ifs" 5507 done 5508 : ${lt_cv_path_NM=no} 5509fi 5510fi 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5512$as_echo "$lt_cv_path_NM" >&6; } 5513if test "$lt_cv_path_NM" != "no"; then 5514 NM="$lt_cv_path_NM" 5515else 5516 # Didn't find any BSD compatible name lister, look for dumpbin. 5517 if test -n "$DUMPBIN"; then : 5518 # Let the user override the test. 5519 else 5520 if test -n "$ac_tool_prefix"; then 5521 for ac_prog in dumpbin "link -dump" 5522 do 5523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5524set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5526$as_echo_n "checking for $ac_word... " >&6; } 5527if ${ac_cv_prog_DUMPBIN+:} false; then : 5528 $as_echo_n "(cached) " >&6 5529else 5530 if test -n "$DUMPBIN"; then 5531 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5532else 5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5534for as_dir in $PATH 5535do 5536 IFS=$as_save_IFS 5537 test -z "$as_dir" && as_dir=. 5538 for ac_exec_ext in '' $ac_executable_extensions; do 5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5540 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5542 break 2 5543 fi 5544done 5545 done 5546IFS=$as_save_IFS 5547 5548fi 5549fi 5550DUMPBIN=$ac_cv_prog_DUMPBIN 5551if test -n "$DUMPBIN"; then 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5553$as_echo "$DUMPBIN" >&6; } 5554else 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5556$as_echo "no" >&6; } 5557fi 5558 5559 5560 test -n "$DUMPBIN" && break 5561 done 5562fi 5563if test -z "$DUMPBIN"; then 5564 ac_ct_DUMPBIN=$DUMPBIN 5565 for ac_prog in dumpbin "link -dump" 5566do 5567 # Extract the first word of "$ac_prog", so it can be a program name with args. 5568set dummy $ac_prog; ac_word=$2 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5570$as_echo_n "checking for $ac_word... " >&6; } 5571if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 if test -n "$ac_ct_DUMPBIN"; then 5575 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5576else 5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5578for as_dir in $PATH 5579do 5580 IFS=$as_save_IFS 5581 test -z "$as_dir" && as_dir=. 5582 for ac_exec_ext in '' $ac_executable_extensions; do 5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5584 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5586 break 2 5587 fi 5588done 5589 done 5590IFS=$as_save_IFS 5591 5592fi 5593fi 5594ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5595if test -n "$ac_ct_DUMPBIN"; then 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5597$as_echo "$ac_ct_DUMPBIN" >&6; } 5598else 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5600$as_echo "no" >&6; } 5601fi 5602 5603 5604 test -n "$ac_ct_DUMPBIN" && break 5605done 5606 5607 if test "x$ac_ct_DUMPBIN" = x; then 5608 DUMPBIN=":" 5609 else 5610 case $cross_compiling:$ac_tool_warned in 5611yes:) 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5614ac_tool_warned=yes ;; 5615esac 5616 DUMPBIN=$ac_ct_DUMPBIN 5617 fi 5618fi 5619 5620 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5621 *COFF*) 5622 DUMPBIN="$DUMPBIN -symbols" 5623 ;; 5624 *) 5625 DUMPBIN=: 5626 ;; 5627 esac 5628 fi 5629 5630 if test "$DUMPBIN" != ":"; then 5631 NM="$DUMPBIN" 5632 fi 5633fi 5634test -z "$NM" && NM=nm 5635 5636 5637 5638 5639 5640 5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5642$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5643if ${lt_cv_nm_interface+:} false; then : 5644 $as_echo_n "(cached) " >&6 5645else 5646 lt_cv_nm_interface="BSD nm" 5647 echo "int some_variable = 0;" > conftest.$ac_ext 5648 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5649 (eval "$ac_compile" 2>conftest.err) 5650 cat conftest.err >&5 5651 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5652 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5653 cat conftest.err >&5 5654 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5655 cat conftest.out >&5 5656 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5657 lt_cv_nm_interface="MS dumpbin" 5658 fi 5659 rm -f conftest* 5660fi 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5662$as_echo "$lt_cv_nm_interface" >&6; } 5663 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5665$as_echo_n "checking whether ln -s works... " >&6; } 5666LN_S=$as_ln_s 5667if test "$LN_S" = "ln -s"; then 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5669$as_echo "yes" >&6; } 5670else 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5672$as_echo "no, using $LN_S" >&6; } 5673fi 5674 5675# find the maximum length of command line arguments 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5677$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5678if ${lt_cv_sys_max_cmd_len+:} false; then : 5679 $as_echo_n "(cached) " >&6 5680else 5681 i=0 5682 teststring="ABCD" 5683 5684 case $build_os in 5685 msdosdjgpp*) 5686 # On DJGPP, this test can blow up pretty badly due to problems in libc 5687 # (any single argument exceeding 2000 bytes causes a buffer overrun 5688 # during glob expansion). Even if it were fixed, the result of this 5689 # check would be larger than it should be. 5690 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5691 ;; 5692 5693 gnu*) 5694 # Under GNU Hurd, this test is not required because there is 5695 # no limit to the length of command line arguments. 5696 # Libtool will interpret -1 as no limit whatsoever 5697 lt_cv_sys_max_cmd_len=-1; 5698 ;; 5699 5700 cygwin* | mingw* | cegcc*) 5701 # On Win9x/ME, this test blows up -- it succeeds, but takes 5702 # about 5 minutes as the teststring grows exponentially. 5703 # Worse, since 9x/ME are not pre-emptively multitasking, 5704 # you end up with a "frozen" computer, even though with patience 5705 # the test eventually succeeds (with a max line length of 256k). 5706 # Instead, let's just punt: use the minimum linelength reported by 5707 # all of the supported platforms: 8192 (on NT/2K/XP). 5708 lt_cv_sys_max_cmd_len=8192; 5709 ;; 5710 5711 mint*) 5712 # On MiNT this can take a long time and run out of memory. 5713 lt_cv_sys_max_cmd_len=8192; 5714 ;; 5715 5716 amigaos*) 5717 # On AmigaOS with pdksh, this test takes hours, literally. 5718 # So we just punt and use a minimum line length of 8192. 5719 lt_cv_sys_max_cmd_len=8192; 5720 ;; 5721 5722 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5723 # This has been around since 386BSD, at least. Likely further. 5724 if test -x /sbin/sysctl; then 5725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5726 elif test -x /usr/sbin/sysctl; then 5727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5728 else 5729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5730 fi 5731 # And add a safety zone 5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5734 ;; 5735 5736 interix*) 5737 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5738 lt_cv_sys_max_cmd_len=196608 5739 ;; 5740 5741 osf*) 5742 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5743 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5744 # nice to cause kernel panics so lets avoid the loop below. 5745 # First set a reasonable default. 5746 lt_cv_sys_max_cmd_len=16384 5747 # 5748 if test -x /sbin/sysconfig; then 5749 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5750 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5751 esac 5752 fi 5753 ;; 5754 sco3.2v5*) 5755 lt_cv_sys_max_cmd_len=102400 5756 ;; 5757 sysv5* | sco5v6* | sysv4.2uw2*) 5758 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5759 if test -n "$kargmax"; then 5760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5761 else 5762 lt_cv_sys_max_cmd_len=32768 5763 fi 5764 ;; 5765 *) 5766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5767 if test -n "$lt_cv_sys_max_cmd_len"; then 5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5770 else 5771 # Make teststring a little bigger before we do anything with it. 5772 # a 1K string should be a reasonable start. 5773 for i in 1 2 3 4 5 6 7 8 ; do 5774 teststring=$teststring$teststring 5775 done 5776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5777 # If test is not a shell built-in, we'll probably end up computing a 5778 # maximum length that is only half of the actual maximum length, but 5779 # we can't tell. 5780 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5781 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5782 test $i != 17 # 1/2 MB should be enough 5783 do 5784 i=`expr $i + 1` 5785 teststring=$teststring$teststring 5786 done 5787 # Only check the string length outside the loop. 5788 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5789 teststring= 5790 # Add a significant safety factor because C++ compilers can tack on 5791 # massive amounts of additional arguments before passing them to the 5792 # linker. It appears as though 1/2 is a usable value. 5793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5794 fi 5795 ;; 5796 esac 5797 5798fi 5799 5800if test -n $lt_cv_sys_max_cmd_len ; then 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5802$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5803else 5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5805$as_echo "none" >&6; } 5806fi 5807max_cmd_len=$lt_cv_sys_max_cmd_len 5808 5809 5810 5811 5812 5813 5814: ${CP="cp -f"} 5815: ${MV="mv -f"} 5816: ${RM="rm -f"} 5817 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5819$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5820# Try some XSI features 5821xsi_shell=no 5822( _lt_dummy="a/b/c" 5823 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5824 = c,a/b,, \ 5825 && eval 'test $(( 1 + 1 )) -eq 2 \ 5826 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5827 && xsi_shell=yes 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5829$as_echo "$xsi_shell" >&6; } 5830 5831 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5833$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5834lt_shell_append=no 5835( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5836 >/dev/null 2>&1 \ 5837 && lt_shell_append=yes 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5839$as_echo "$lt_shell_append" >&6; } 5840 5841 5842if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5843 lt_unset=unset 5844else 5845 lt_unset=false 5846fi 5847 5848 5849 5850 5851 5852# test EBCDIC or ASCII 5853case `echo X|tr X '\101'` in 5854 A) # ASCII based system 5855 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5856 lt_SP2NL='tr \040 \012' 5857 lt_NL2SP='tr \015\012 \040\040' 5858 ;; 5859 *) # EBCDIC based system 5860 lt_SP2NL='tr \100 \n' 5861 lt_NL2SP='tr \r\n \100\100' 5862 ;; 5863esac 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5874$as_echo_n "checking for $LD option to reload object files... " >&6; } 5875if ${lt_cv_ld_reload_flag+:} false; then : 5876 $as_echo_n "(cached) " >&6 5877else 5878 lt_cv_ld_reload_flag='-r' 5879fi 5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5881$as_echo "$lt_cv_ld_reload_flag" >&6; } 5882reload_flag=$lt_cv_ld_reload_flag 5883case $reload_flag in 5884"" | " "*) ;; 5885*) reload_flag=" $reload_flag" ;; 5886esac 5887reload_cmds='$LD$reload_flag -o $output$reload_objs' 5888case $host_os in 5889 darwin*) 5890 if test "$GCC" = yes; then 5891 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5892 else 5893 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5894 fi 5895 ;; 5896esac 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906if test -n "$ac_tool_prefix"; then 5907 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5908set dummy ${ac_tool_prefix}objdump; ac_word=$2 5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5910$as_echo_n "checking for $ac_word... " >&6; } 5911if ${ac_cv_prog_OBJDUMP+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913else 5914 if test -n "$OBJDUMP"; then 5915 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5916else 5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5918for as_dir in $PATH 5919do 5920 IFS=$as_save_IFS 5921 test -z "$as_dir" && as_dir=. 5922 for ac_exec_ext in '' $ac_executable_extensions; do 5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5924 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5926 break 2 5927 fi 5928done 5929 done 5930IFS=$as_save_IFS 5931 5932fi 5933fi 5934OBJDUMP=$ac_cv_prog_OBJDUMP 5935if test -n "$OBJDUMP"; then 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5937$as_echo "$OBJDUMP" >&6; } 5938else 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5940$as_echo "no" >&6; } 5941fi 5942 5943 5944fi 5945if test -z "$ac_cv_prog_OBJDUMP"; then 5946 ac_ct_OBJDUMP=$OBJDUMP 5947 # Extract the first word of "objdump", so it can be a program name with args. 5948set dummy objdump; ac_word=$2 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5950$as_echo_n "checking for $ac_word... " >&6; } 5951if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5952 $as_echo_n "(cached) " >&6 5953else 5954 if test -n "$ac_ct_OBJDUMP"; then 5955 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5956else 5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5958for as_dir in $PATH 5959do 5960 IFS=$as_save_IFS 5961 test -z "$as_dir" && as_dir=. 5962 for ac_exec_ext in '' $ac_executable_extensions; do 5963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5964 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5966 break 2 5967 fi 5968done 5969 done 5970IFS=$as_save_IFS 5971 5972fi 5973fi 5974ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5975if test -n "$ac_ct_OBJDUMP"; then 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5977$as_echo "$ac_ct_OBJDUMP" >&6; } 5978else 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5980$as_echo "no" >&6; } 5981fi 5982 5983 if test "x$ac_ct_OBJDUMP" = x; then 5984 OBJDUMP="false" 5985 else 5986 case $cross_compiling:$ac_tool_warned in 5987yes:) 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5990ac_tool_warned=yes ;; 5991esac 5992 OBJDUMP=$ac_ct_OBJDUMP 5993 fi 5994else 5995 OBJDUMP="$ac_cv_prog_OBJDUMP" 5996fi 5997 5998test -z "$OBJDUMP" && OBJDUMP=objdump 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6009$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6010if ${lt_cv_deplibs_check_method+:} false; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 lt_cv_file_magic_cmd='$MAGIC_CMD' 6014lt_cv_file_magic_test_file= 6015lt_cv_deplibs_check_method='unknown' 6016# Need to set the preceding variable on all platforms that support 6017# interlibrary dependencies. 6018# 'none' -- dependencies not supported. 6019# `unknown' -- same as none, but documents that we really don't know. 6020# 'pass_all' -- all dependencies passed with no checks. 6021# 'test_compile' -- check by making test program. 6022# 'file_magic [[regex]]' -- check by looking for files in library path 6023# which responds to the $file_magic_cmd with a given extended regex. 6024# If you have `file' or equivalent on your system and you're not sure 6025# whether `pass_all' will *always* work, you probably want this one. 6026 6027case $host_os in 6028aix[4-9]*) 6029 lt_cv_deplibs_check_method=pass_all 6030 ;; 6031 6032beos*) 6033 lt_cv_deplibs_check_method=pass_all 6034 ;; 6035 6036bsdi[45]*) 6037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6038 lt_cv_file_magic_cmd='/usr/bin/file -L' 6039 lt_cv_file_magic_test_file=/shlib/libc.so 6040 ;; 6041 6042cygwin*) 6043 # func_win32_libid is a shell function defined in ltmain.sh 6044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6045 lt_cv_file_magic_cmd='func_win32_libid' 6046 ;; 6047 6048mingw* | pw32*) 6049 # Base MSYS/MinGW do not provide the 'file' command needed by 6050 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6051 # unless we find 'file', for example because we are cross-compiling. 6052 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6053 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6055 lt_cv_file_magic_cmd='func_win32_libid' 6056 else 6057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6058 lt_cv_file_magic_cmd='$OBJDUMP -f' 6059 fi 6060 ;; 6061 6062cegcc*) 6063 # use the weaker test based on 'objdump'. See mingw*. 6064 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6065 lt_cv_file_magic_cmd='$OBJDUMP -f' 6066 ;; 6067 6068darwin* | rhapsody*) 6069 lt_cv_deplibs_check_method=pass_all 6070 ;; 6071 6072freebsd* | dragonfly*) 6073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6074 case $host_cpu in 6075 i*86 ) 6076 # Not sure whether the presence of OpenBSD here was a mistake. 6077 # Let's accept both of them until this is cleared up. 6078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6079 lt_cv_file_magic_cmd=/usr/bin/file 6080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6081 ;; 6082 esac 6083 else 6084 lt_cv_deplibs_check_method=pass_all 6085 fi 6086 ;; 6087 6088gnu*) 6089 lt_cv_deplibs_check_method=pass_all 6090 ;; 6091 6092haiku*) 6093 lt_cv_deplibs_check_method=pass_all 6094 ;; 6095 6096hpux10.20* | hpux11*) 6097 lt_cv_file_magic_cmd=/usr/bin/file 6098 case $host_cpu in 6099 ia64*) 6100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6101 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6102 ;; 6103 hppa*64*) 6104 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]' 6105 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6106 ;; 6107 *) 6108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6109 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6110 ;; 6111 esac 6112 ;; 6113 6114interix[3-9]*) 6115 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6117 ;; 6118 6119irix5* | irix6* | nonstopux*) 6120 case $LD in 6121 *-32|*"-32 ") libmagic=32-bit;; 6122 *-n32|*"-n32 ") libmagic=N32;; 6123 *-64|*"-64 ") libmagic=64-bit;; 6124 *) libmagic=never-match;; 6125 esac 6126 lt_cv_deplibs_check_method=pass_all 6127 ;; 6128 6129# This must be Linux ELF. 6130linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 6131 lt_cv_deplibs_check_method=pass_all 6132 ;; 6133 6134netbsd*) 6135 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6137 else 6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6139 fi 6140 ;; 6141 6142newos6*) 6143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6144 lt_cv_file_magic_cmd=/usr/bin/file 6145 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6146 ;; 6147 6148*nto* | *qnx*) 6149 lt_cv_deplibs_check_method=pass_all 6150 ;; 6151 6152openbsd*) 6153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6155 else 6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6157 fi 6158 ;; 6159 6160osf3* | osf4* | osf5*) 6161 lt_cv_deplibs_check_method=pass_all 6162 ;; 6163 6164rdos*) 6165 lt_cv_deplibs_check_method=pass_all 6166 ;; 6167 6168solaris*) 6169 lt_cv_deplibs_check_method=pass_all 6170 ;; 6171 6172sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6173 lt_cv_deplibs_check_method=pass_all 6174 ;; 6175 6176sysv4 | sysv4.3*) 6177 case $host_vendor in 6178 motorola) 6179 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]' 6180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6181 ;; 6182 ncr) 6183 lt_cv_deplibs_check_method=pass_all 6184 ;; 6185 sequent) 6186 lt_cv_file_magic_cmd='/bin/file' 6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6188 ;; 6189 sni) 6190 lt_cv_file_magic_cmd='/bin/file' 6191 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6192 lt_cv_file_magic_test_file=/lib/libc.so 6193 ;; 6194 siemens) 6195 lt_cv_deplibs_check_method=pass_all 6196 ;; 6197 pc) 6198 lt_cv_deplibs_check_method=pass_all 6199 ;; 6200 esac 6201 ;; 6202 6203tpf*) 6204 lt_cv_deplibs_check_method=pass_all 6205 ;; 6206esac 6207 6208fi 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6210$as_echo "$lt_cv_deplibs_check_method" >&6; } 6211file_magic_cmd=$lt_cv_file_magic_cmd 6212deplibs_check_method=$lt_cv_deplibs_check_method 6213test -z "$deplibs_check_method" && deplibs_check_method=unknown 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226if test -n "$ac_tool_prefix"; then 6227 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6228set dummy ${ac_tool_prefix}ar; ac_word=$2 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6230$as_echo_n "checking for $ac_word... " >&6; } 6231if ${ac_cv_prog_AR+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 if test -n "$AR"; then 6235 ac_cv_prog_AR="$AR" # Let the user override the test. 6236else 6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238for as_dir in $PATH 6239do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6244 ac_cv_prog_AR="${ac_tool_prefix}ar" 6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248done 6249 done 6250IFS=$as_save_IFS 6251 6252fi 6253fi 6254AR=$ac_cv_prog_AR 6255if test -n "$AR"; then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6257$as_echo "$AR" >&6; } 6258else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260$as_echo "no" >&6; } 6261fi 6262 6263 6264fi 6265if test -z "$ac_cv_prog_AR"; then 6266 ac_ct_AR=$AR 6267 # Extract the first word of "ar", so it can be a program name with args. 6268set dummy ar; ac_word=$2 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6270$as_echo_n "checking for $ac_word... " >&6; } 6271if ${ac_cv_prog_ac_ct_AR+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 if test -n "$ac_ct_AR"; then 6275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6276else 6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278for as_dir in $PATH 6279do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6284 ac_cv_prog_ac_ct_AR="ar" 6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288done 6289 done 6290IFS=$as_save_IFS 6291 6292fi 6293fi 6294ac_ct_AR=$ac_cv_prog_ac_ct_AR 6295if test -n "$ac_ct_AR"; then 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6297$as_echo "$ac_ct_AR" >&6; } 6298else 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6300$as_echo "no" >&6; } 6301fi 6302 6303 if test "x$ac_ct_AR" = x; then 6304 AR="false" 6305 else 6306 case $cross_compiling:$ac_tool_warned in 6307yes:) 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6310ac_tool_warned=yes ;; 6311esac 6312 AR=$ac_ct_AR 6313 fi 6314else 6315 AR="$ac_cv_prog_AR" 6316fi 6317 6318test -z "$AR" && AR=ar 6319test -z "$AR_FLAGS" && AR_FLAGS=cru 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331if test -n "$ac_tool_prefix"; then 6332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6333set dummy ${ac_tool_prefix}strip; ac_word=$2 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6335$as_echo_n "checking for $ac_word... " >&6; } 6336if ${ac_cv_prog_STRIP+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 if test -n "$STRIP"; then 6340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6341else 6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6343for as_dir in $PATH 6344do 6345 IFS=$as_save_IFS 6346 test -z "$as_dir" && as_dir=. 6347 for ac_exec_ext in '' $ac_executable_extensions; do 6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6349 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6351 break 2 6352 fi 6353done 6354 done 6355IFS=$as_save_IFS 6356 6357fi 6358fi 6359STRIP=$ac_cv_prog_STRIP 6360if test -n "$STRIP"; then 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6362$as_echo "$STRIP" >&6; } 6363else 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6365$as_echo "no" >&6; } 6366fi 6367 6368 6369fi 6370if test -z "$ac_cv_prog_STRIP"; then 6371 ac_ct_STRIP=$STRIP 6372 # Extract the first word of "strip", so it can be a program name with args. 6373set dummy strip; ac_word=$2 6374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6375$as_echo_n "checking for $ac_word... " >&6; } 6376if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6377 $as_echo_n "(cached) " >&6 6378else 6379 if test -n "$ac_ct_STRIP"; then 6380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6381else 6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6383for as_dir in $PATH 6384do 6385 IFS=$as_save_IFS 6386 test -z "$as_dir" && as_dir=. 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6389 ac_cv_prog_ac_ct_STRIP="strip" 6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6391 break 2 6392 fi 6393done 6394 done 6395IFS=$as_save_IFS 6396 6397fi 6398fi 6399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6400if test -n "$ac_ct_STRIP"; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6402$as_echo "$ac_ct_STRIP" >&6; } 6403else 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405$as_echo "no" >&6; } 6406fi 6407 6408 if test "x$ac_ct_STRIP" = x; then 6409 STRIP=":" 6410 else 6411 case $cross_compiling:$ac_tool_warned in 6412yes:) 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6415ac_tool_warned=yes ;; 6416esac 6417 STRIP=$ac_ct_STRIP 6418 fi 6419else 6420 STRIP="$ac_cv_prog_STRIP" 6421fi 6422 6423test -z "$STRIP" && STRIP=: 6424 6425 6426 6427 6428 6429 6430if test -n "$ac_tool_prefix"; then 6431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6432set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6434$as_echo_n "checking for $ac_word... " >&6; } 6435if ${ac_cv_prog_RANLIB+:} false; then : 6436 $as_echo_n "(cached) " >&6 6437else 6438 if test -n "$RANLIB"; then 6439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6440else 6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6442for as_dir in $PATH 6443do 6444 IFS=$as_save_IFS 6445 test -z "$as_dir" && as_dir=. 6446 for ac_exec_ext in '' $ac_executable_extensions; do 6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6450 break 2 6451 fi 6452done 6453 done 6454IFS=$as_save_IFS 6455 6456fi 6457fi 6458RANLIB=$ac_cv_prog_RANLIB 6459if test -n "$RANLIB"; then 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6461$as_echo "$RANLIB" >&6; } 6462else 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6464$as_echo "no" >&6; } 6465fi 6466 6467 6468fi 6469if test -z "$ac_cv_prog_RANLIB"; then 6470 ac_ct_RANLIB=$RANLIB 6471 # Extract the first word of "ranlib", so it can be a program name with args. 6472set dummy ranlib; ac_word=$2 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6474$as_echo_n "checking for $ac_word... " >&6; } 6475if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477else 6478 if test -n "$ac_ct_RANLIB"; then 6479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6480else 6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in $PATH 6483do 6484 IFS=$as_save_IFS 6485 test -z "$as_dir" && as_dir=. 6486 for ac_exec_ext in '' $ac_executable_extensions; do 6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6488 ac_cv_prog_ac_ct_RANLIB="ranlib" 6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6490 break 2 6491 fi 6492done 6493 done 6494IFS=$as_save_IFS 6495 6496fi 6497fi 6498ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6499if test -n "$ac_ct_RANLIB"; then 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6501$as_echo "$ac_ct_RANLIB" >&6; } 6502else 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6504$as_echo "no" >&6; } 6505fi 6506 6507 if test "x$ac_ct_RANLIB" = x; then 6508 RANLIB=":" 6509 else 6510 case $cross_compiling:$ac_tool_warned in 6511yes:) 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6514ac_tool_warned=yes ;; 6515esac 6516 RANLIB=$ac_ct_RANLIB 6517 fi 6518else 6519 RANLIB="$ac_cv_prog_RANLIB" 6520fi 6521 6522test -z "$RANLIB" && RANLIB=: 6523 6524 6525 6526 6527 6528 6529# Determine commands to create old-style static archives. 6530old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6531old_postinstall_cmds='chmod 644 $oldlib' 6532old_postuninstall_cmds= 6533 6534if test -n "$RANLIB"; then 6535 case $host_os in 6536 openbsd*) 6537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6538 ;; 6539 *) 6540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6541 ;; 6542 esac 6543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6544fi 6545 6546case $host_os in 6547 darwin*) 6548 lock_old_archive_extraction=yes ;; 6549 *) 6550 lock_old_archive_extraction=no ;; 6551esac 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591# If no C compiler was specified, use CC. 6592LTCC=${LTCC-"$CC"} 6593 6594# If no C compiler flags were specified, use CFLAGS. 6595LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6596 6597# Allow CC to be a program name with arguments. 6598compiler=$CC 6599 6600 6601# Check for command to grab the raw symbol name followed by C symbol from nm. 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6603$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6604if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6605 $as_echo_n "(cached) " >&6 6606else 6607 6608# These are sane defaults that work on at least a few old systems. 6609# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6610 6611# Character class describing NM global symbol codes. 6612symcode='[BCDEGRST]' 6613 6614# Regexp to match symbols that can be accessed directly from C. 6615sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6616 6617# Define system-specific variables. 6618case $host_os in 6619aix*) 6620 symcode='[BCDT]' 6621 ;; 6622cygwin* | mingw* | pw32* | cegcc*) 6623 symcode='[ABCDGISTW]' 6624 ;; 6625hpux*) 6626 if test "$host_cpu" = ia64; then 6627 symcode='[ABCDEGRST]' 6628 fi 6629 ;; 6630irix* | nonstopux*) 6631 symcode='[BCDEGRST]' 6632 ;; 6633osf*) 6634 symcode='[BCDEGQRST]' 6635 ;; 6636solaris*) 6637 symcode='[BDRT]' 6638 ;; 6639sco3.2v5*) 6640 symcode='[DT]' 6641 ;; 6642sysv4.2uw2*) 6643 symcode='[DT]' 6644 ;; 6645sysv5* | sco5v6* | unixware* | OpenUNIX*) 6646 symcode='[ABDT]' 6647 ;; 6648sysv4) 6649 symcode='[DFNSTU]' 6650 ;; 6651esac 6652 6653# If we're using GNU nm, then use its standard symbol codes. 6654case `$NM -V 2>&1` in 6655*GNU* | *'with BFD'*) 6656 symcode='[ABCDGIRSTW]' ;; 6657esac 6658 6659# Transform an extracted symbol line into a proper C declaration. 6660# Some systems (esp. on ia64) link data and code symbols differently, 6661# so use this general approach. 6662lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6663 6664# Transform an extracted symbol line into symbol name and symbol address 6665lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6666lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6667 6668# Handle CRLF in mingw tool chain 6669opt_cr= 6670case $build_os in 6671mingw*) 6672 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6673 ;; 6674esac 6675 6676# Try without a prefix underscore, then with it. 6677for ac_symprfx in "" "_"; do 6678 6679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6680 symxfrm="\\1 $ac_symprfx\\2 \\2" 6681 6682 # Write the raw and C identifiers. 6683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6684 # Fake it for dumpbin and say T for any non-static function 6685 # and D for any global variable. 6686 # Also find C++ and __fastcall symbols from MSVC++, 6687 # which start with @ or ?. 6688 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6689" {last_section=section; section=\$ 3};"\ 6690" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6691" \$ 0!~/External *\|/{next};"\ 6692" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6693" {if(hide[section]) next};"\ 6694" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6695" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6696" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6697" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6698" ' prfx=^$ac_symprfx" 6699 else 6700 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6701 fi 6702 6703 # Check to see that the pipe works correctly. 6704 pipe_works=no 6705 6706 rm -f conftest* 6707 cat > conftest.$ac_ext <<_LT_EOF 6708#ifdef __cplusplus 6709extern "C" { 6710#endif 6711char nm_test_var; 6712void nm_test_func(void); 6713void nm_test_func(void){} 6714#ifdef __cplusplus 6715} 6716#endif 6717int main(){nm_test_var='a';nm_test_func();return(0);} 6718_LT_EOF 6719 6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6721 (eval $ac_compile) 2>&5 6722 ac_status=$? 6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6724 test $ac_status = 0; }; then 6725 # Now try to grab the symbols. 6726 nlist=conftest.nm 6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6728 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6729 ac_status=$? 6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6731 test $ac_status = 0; } && test -s "$nlist"; then 6732 # Try sorting and uniquifying the output. 6733 if sort "$nlist" | uniq > "$nlist"T; then 6734 mv -f "$nlist"T "$nlist" 6735 else 6736 rm -f "$nlist"T 6737 fi 6738 6739 # Make sure that we snagged all the symbols we need. 6740 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6741 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6742 cat <<_LT_EOF > conftest.$ac_ext 6743#ifdef __cplusplus 6744extern "C" { 6745#endif 6746 6747_LT_EOF 6748 # Now generate the symbol file. 6749 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6750 6751 cat <<_LT_EOF >> conftest.$ac_ext 6752 6753/* The mapping between symbol names and symbols. */ 6754const struct { 6755 const char *name; 6756 void *address; 6757} 6758lt__PROGRAM__LTX_preloaded_symbols[] = 6759{ 6760 { "@PROGRAM@", (void *) 0 }, 6761_LT_EOF 6762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6763 cat <<\_LT_EOF >> conftest.$ac_ext 6764 {0, (void *) 0} 6765}; 6766 6767/* This works around a problem in FreeBSD linker */ 6768#ifdef FREEBSD_WORKAROUND 6769static const void *lt_preloaded_setup() { 6770 return lt__PROGRAM__LTX_preloaded_symbols; 6771} 6772#endif 6773 6774#ifdef __cplusplus 6775} 6776#endif 6777_LT_EOF 6778 # Now try linking the two files. 6779 mv conftest.$ac_objext conftstm.$ac_objext 6780 lt_save_LIBS="$LIBS" 6781 lt_save_CFLAGS="$CFLAGS" 6782 LIBS="conftstm.$ac_objext" 6783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6785 (eval $ac_link) 2>&5 6786 ac_status=$? 6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6788 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6789 pipe_works=yes 6790 fi 6791 LIBS="$lt_save_LIBS" 6792 CFLAGS="$lt_save_CFLAGS" 6793 else 6794 echo "cannot find nm_test_func in $nlist" >&5 6795 fi 6796 else 6797 echo "cannot find nm_test_var in $nlist" >&5 6798 fi 6799 else 6800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6801 fi 6802 else 6803 echo "$progname: failed program was:" >&5 6804 cat conftest.$ac_ext >&5 6805 fi 6806 rm -rf conftest* conftst* 6807 6808 # Do not use the global_symbol_pipe unless it works. 6809 if test "$pipe_works" = yes; then 6810 break 6811 else 6812 lt_cv_sys_global_symbol_pipe= 6813 fi 6814done 6815 6816fi 6817 6818if test -z "$lt_cv_sys_global_symbol_pipe"; then 6819 lt_cv_sys_global_symbol_to_cdecl= 6820fi 6821if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6823$as_echo "failed" >&6; } 6824else 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6826$as_echo "ok" >&6; } 6827fi 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851# Check whether --enable-libtool-lock was given. 6852if test "${enable_libtool_lock+set}" = set; then : 6853 enableval=$enable_libtool_lock; 6854fi 6855 6856test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6857 6858# Some flags need to be propagated to the compiler or linker for good 6859# libtool support. 6860case $host in 6861ia64-*-hpux*) 6862 # Find out which ABI we are using. 6863 echo 'int i;' > conftest.$ac_ext 6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6865 (eval $ac_compile) 2>&5 6866 ac_status=$? 6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6868 test $ac_status = 0; }; then 6869 case `/usr/bin/file conftest.$ac_objext` in 6870 *ELF-32*) 6871 HPUX_IA64_MODE="32" 6872 ;; 6873 *ELF-64*) 6874 HPUX_IA64_MODE="64" 6875 ;; 6876 esac 6877 fi 6878 rm -rf conftest* 6879 ;; 6880*-*-irix6*) 6881 # Find out which ABI we are using. 6882 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6884 (eval $ac_compile) 2>&5 6885 ac_status=$? 6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6887 test $ac_status = 0; }; then 6888 if test "$lt_cv_prog_gnu_ld" = yes; then 6889 case `/usr/bin/file conftest.$ac_objext` in 6890 *32-bit*) 6891 LD="${LD-ld} -melf32bsmip" 6892 ;; 6893 *N32*) 6894 LD="${LD-ld} -melf32bmipn32" 6895 ;; 6896 *64-bit*) 6897 LD="${LD-ld} -melf64bmip" 6898 ;; 6899 esac 6900 else 6901 case `/usr/bin/file conftest.$ac_objext` in 6902 *32-bit*) 6903 LD="${LD-ld} -32" 6904 ;; 6905 *N32*) 6906 LD="${LD-ld} -n32" 6907 ;; 6908 *64-bit*) 6909 LD="${LD-ld} -64" 6910 ;; 6911 esac 6912 fi 6913 fi 6914 rm -rf conftest* 6915 ;; 6916 6917x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6918s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6919 # Find out which ABI we are using. 6920 echo 'int i;' > conftest.$ac_ext 6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6922 (eval $ac_compile) 2>&5 6923 ac_status=$? 6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6925 test $ac_status = 0; }; then 6926 case `/usr/bin/file conftest.o` in 6927 *32-bit*) 6928 case $host in 6929 x86_64-*kfreebsd*-gnu) 6930 LD="${LD-ld} -m elf_i386_fbsd" 6931 ;; 6932 x86_64-*linux*) 6933 case `/usr/bin/file conftest.o` in 6934 *x86-64*) 6935 LD="${LD-ld} -m elf32_x86_64" 6936 ;; 6937 *) 6938 LD="${LD-ld} -m elf_i386" 6939 ;; 6940 esac 6941 ;; 6942 powerpc64le-*linux*) 6943 LD="${LD-ld} -m elf32lppclinux" 6944 ;; 6945 powerpc64-*linux*) 6946 LD="${LD-ld} -m elf32ppclinux" 6947 ;; 6948 s390x-*linux*) 6949 LD="${LD-ld} -m elf_s390" 6950 ;; 6951 sparc64-*linux*) 6952 LD="${LD-ld} -m elf32_sparc" 6953 ;; 6954 esac 6955 ;; 6956 *64-bit*) 6957 case $host in 6958 x86_64-*kfreebsd*-gnu) 6959 LD="${LD-ld} -m elf_x86_64_fbsd" 6960 ;; 6961 x86_64-*linux*) 6962 LD="${LD-ld} -m elf_x86_64" 6963 ;; 6964 powerpcle-*linux*) 6965 LD="${LD-ld} -m elf64lppc" 6966 ;; 6967 powerpc-*linux*) 6968 LD="${LD-ld} -m elf64ppc" 6969 ;; 6970 s390*-*linux*|s390*-*tpf*) 6971 LD="${LD-ld} -m elf64_s390" 6972 ;; 6973 sparc*-*linux*) 6974 LD="${LD-ld} -m elf64_sparc" 6975 ;; 6976 esac 6977 ;; 6978 esac 6979 fi 6980 rm -rf conftest* 6981 ;; 6982 6983*-*-sco3.2v5*) 6984 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6985 SAVE_CFLAGS="$CFLAGS" 6986 CFLAGS="$CFLAGS -belf" 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6988$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6989if ${lt_cv_cc_needs_belf+:} false; then : 6990 $as_echo_n "(cached) " >&6 6991else 6992 ac_ext=c 6993ac_cpp='$CPP $CPPFLAGS' 6994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6996ac_compiler_gnu=$ac_cv_c_compiler_gnu 6997 6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999/* end confdefs.h. */ 7000 7001int 7002main () 7003{ 7004 7005 ; 7006 return 0; 7007} 7008_ACEOF 7009if ac_fn_c_try_link "$LINENO"; then : 7010 lt_cv_cc_needs_belf=yes 7011else 7012 lt_cv_cc_needs_belf=no 7013fi 7014rm -f core conftest.err conftest.$ac_objext \ 7015 conftest$ac_exeext conftest.$ac_ext 7016 ac_ext=c 7017ac_cpp='$CPP $CPPFLAGS' 7018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7020ac_compiler_gnu=$ac_cv_c_compiler_gnu 7021 7022fi 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7024$as_echo "$lt_cv_cc_needs_belf" >&6; } 7025 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7027 CFLAGS="$SAVE_CFLAGS" 7028 fi 7029 ;; 7030sparc*-*solaris*) 7031 # Find out which ABI we are using. 7032 echo 'int i;' > conftest.$ac_ext 7033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7034 (eval $ac_compile) 2>&5 7035 ac_status=$? 7036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7037 test $ac_status = 0; }; then 7038 case `/usr/bin/file conftest.o` in 7039 *64-bit*) 7040 case $lt_cv_prog_gnu_ld in 7041 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7042 *) 7043 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7044 LD="${LD-ld} -64" 7045 fi 7046 ;; 7047 esac 7048 ;; 7049 esac 7050 fi 7051 rm -rf conftest* 7052 ;; 7053esac 7054 7055need_locks="$enable_libtool_lock" 7056 7057 7058 case $host_os in 7059 rhapsody* | darwin*) 7060 if test -n "$ac_tool_prefix"; then 7061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7062set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7064$as_echo_n "checking for $ac_word... " >&6; } 7065if ${ac_cv_prog_DSYMUTIL+:} false; then : 7066 $as_echo_n "(cached) " >&6 7067else 7068 if test -n "$DSYMUTIL"; then 7069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7070else 7071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7072for as_dir in $PATH 7073do 7074 IFS=$as_save_IFS 7075 test -z "$as_dir" && as_dir=. 7076 for ac_exec_ext in '' $ac_executable_extensions; do 7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7080 break 2 7081 fi 7082done 7083 done 7084IFS=$as_save_IFS 7085 7086fi 7087fi 7088DSYMUTIL=$ac_cv_prog_DSYMUTIL 7089if test -n "$DSYMUTIL"; then 7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7091$as_echo "$DSYMUTIL" >&6; } 7092else 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7094$as_echo "no" >&6; } 7095fi 7096 7097 7098fi 7099if test -z "$ac_cv_prog_DSYMUTIL"; then 7100 ac_ct_DSYMUTIL=$DSYMUTIL 7101 # Extract the first word of "dsymutil", so it can be a program name with args. 7102set dummy dsymutil; ac_word=$2 7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7104$as_echo_n "checking for $ac_word... " >&6; } 7105if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7106 $as_echo_n "(cached) " >&6 7107else 7108 if test -n "$ac_ct_DSYMUTIL"; then 7109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7110else 7111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7112for as_dir in $PATH 7113do 7114 IFS=$as_save_IFS 7115 test -z "$as_dir" && as_dir=. 7116 for ac_exec_ext in '' $ac_executable_extensions; do 7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7120 break 2 7121 fi 7122done 7123 done 7124IFS=$as_save_IFS 7125 7126fi 7127fi 7128ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7129if test -n "$ac_ct_DSYMUTIL"; then 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7131$as_echo "$ac_ct_DSYMUTIL" >&6; } 7132else 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7134$as_echo "no" >&6; } 7135fi 7136 7137 if test "x$ac_ct_DSYMUTIL" = x; then 7138 DSYMUTIL=":" 7139 else 7140 case $cross_compiling:$ac_tool_warned in 7141yes:) 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7144ac_tool_warned=yes ;; 7145esac 7146 DSYMUTIL=$ac_ct_DSYMUTIL 7147 fi 7148else 7149 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7150fi 7151 7152 if test -n "$ac_tool_prefix"; then 7153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7154set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156$as_echo_n "checking for $ac_word... " >&6; } 7157if ${ac_cv_prog_NMEDIT+:} false; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 if test -n "$NMEDIT"; then 7161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7162else 7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7164for as_dir in $PATH 7165do 7166 IFS=$as_save_IFS 7167 test -z "$as_dir" && as_dir=. 7168 for ac_exec_ext in '' $ac_executable_extensions; do 7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7172 break 2 7173 fi 7174done 7175 done 7176IFS=$as_save_IFS 7177 7178fi 7179fi 7180NMEDIT=$ac_cv_prog_NMEDIT 7181if test -n "$NMEDIT"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7183$as_echo "$NMEDIT" >&6; } 7184else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186$as_echo "no" >&6; } 7187fi 7188 7189 7190fi 7191if test -z "$ac_cv_prog_NMEDIT"; then 7192 ac_ct_NMEDIT=$NMEDIT 7193 # Extract the first word of "nmedit", so it can be a program name with args. 7194set dummy nmedit; ac_word=$2 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7196$as_echo_n "checking for $ac_word... " >&6; } 7197if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 if test -n "$ac_ct_NMEDIT"; then 7201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7202else 7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7204for as_dir in $PATH 7205do 7206 IFS=$as_save_IFS 7207 test -z "$as_dir" && as_dir=. 7208 for ac_exec_ext in '' $ac_executable_extensions; do 7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7210 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7212 break 2 7213 fi 7214done 7215 done 7216IFS=$as_save_IFS 7217 7218fi 7219fi 7220ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7221if test -n "$ac_ct_NMEDIT"; then 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7223$as_echo "$ac_ct_NMEDIT" >&6; } 7224else 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7226$as_echo "no" >&6; } 7227fi 7228 7229 if test "x$ac_ct_NMEDIT" = x; then 7230 NMEDIT=":" 7231 else 7232 case $cross_compiling:$ac_tool_warned in 7233yes:) 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7236ac_tool_warned=yes ;; 7237esac 7238 NMEDIT=$ac_ct_NMEDIT 7239 fi 7240else 7241 NMEDIT="$ac_cv_prog_NMEDIT" 7242fi 7243 7244 if test -n "$ac_tool_prefix"; then 7245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7246set dummy ${ac_tool_prefix}lipo; ac_word=$2 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7248$as_echo_n "checking for $ac_word... " >&6; } 7249if ${ac_cv_prog_LIPO+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 if test -n "$LIPO"; then 7253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7254else 7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7256for as_dir in $PATH 7257do 7258 IFS=$as_save_IFS 7259 test -z "$as_dir" && as_dir=. 7260 for ac_exec_ext in '' $ac_executable_extensions; do 7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7264 break 2 7265 fi 7266done 7267 done 7268IFS=$as_save_IFS 7269 7270fi 7271fi 7272LIPO=$ac_cv_prog_LIPO 7273if test -n "$LIPO"; then 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7275$as_echo "$LIPO" >&6; } 7276else 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7278$as_echo "no" >&6; } 7279fi 7280 7281 7282fi 7283if test -z "$ac_cv_prog_LIPO"; then 7284 ac_ct_LIPO=$LIPO 7285 # Extract the first word of "lipo", so it can be a program name with args. 7286set dummy lipo; ac_word=$2 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7288$as_echo_n "checking for $ac_word... " >&6; } 7289if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 if test -n "$ac_ct_LIPO"; then 7293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7294else 7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH 7297do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_exec_ext in '' $ac_executable_extensions; do 7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7302 ac_cv_prog_ac_ct_LIPO="lipo" 7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7304 break 2 7305 fi 7306done 7307 done 7308IFS=$as_save_IFS 7309 7310fi 7311fi 7312ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7313if test -n "$ac_ct_LIPO"; then 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7315$as_echo "$ac_ct_LIPO" >&6; } 7316else 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7318$as_echo "no" >&6; } 7319fi 7320 7321 if test "x$ac_ct_LIPO" = x; then 7322 LIPO=":" 7323 else 7324 case $cross_compiling:$ac_tool_warned in 7325yes:) 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7328ac_tool_warned=yes ;; 7329esac 7330 LIPO=$ac_ct_LIPO 7331 fi 7332else 7333 LIPO="$ac_cv_prog_LIPO" 7334fi 7335 7336 if test -n "$ac_tool_prefix"; then 7337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7338set dummy ${ac_tool_prefix}otool; ac_word=$2 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7340$as_echo_n "checking for $ac_word... " >&6; } 7341if ${ac_cv_prog_OTOOL+:} false; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 if test -n "$OTOOL"; then 7345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7346else 7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7356 break 2 7357 fi 7358done 7359 done 7360IFS=$as_save_IFS 7361 7362fi 7363fi 7364OTOOL=$ac_cv_prog_OTOOL 7365if test -n "$OTOOL"; then 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7367$as_echo "$OTOOL" >&6; } 7368else 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7370$as_echo "no" >&6; } 7371fi 7372 7373 7374fi 7375if test -z "$ac_cv_prog_OTOOL"; then 7376 ac_ct_OTOOL=$OTOOL 7377 # Extract the first word of "otool", so it can be a program name with args. 7378set dummy otool; ac_word=$2 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7380$as_echo_n "checking for $ac_word... " >&6; } 7381if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 if test -n "$ac_ct_OTOOL"; then 7385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7386else 7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7388for as_dir in $PATH 7389do 7390 IFS=$as_save_IFS 7391 test -z "$as_dir" && as_dir=. 7392 for ac_exec_ext in '' $ac_executable_extensions; do 7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7394 ac_cv_prog_ac_ct_OTOOL="otool" 7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7396 break 2 7397 fi 7398done 7399 done 7400IFS=$as_save_IFS 7401 7402fi 7403fi 7404ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7405if test -n "$ac_ct_OTOOL"; then 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7407$as_echo "$ac_ct_OTOOL" >&6; } 7408else 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410$as_echo "no" >&6; } 7411fi 7412 7413 if test "x$ac_ct_OTOOL" = x; then 7414 OTOOL=":" 7415 else 7416 case $cross_compiling:$ac_tool_warned in 7417yes:) 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7420ac_tool_warned=yes ;; 7421esac 7422 OTOOL=$ac_ct_OTOOL 7423 fi 7424else 7425 OTOOL="$ac_cv_prog_OTOOL" 7426fi 7427 7428 if test -n "$ac_tool_prefix"; then 7429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7430set dummy ${ac_tool_prefix}otool64; ac_word=$2 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7432$as_echo_n "checking for $ac_word... " >&6; } 7433if ${ac_cv_prog_OTOOL64+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 if test -n "$OTOOL64"; then 7437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7438else 7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7440for as_dir in $PATH 7441do 7442 IFS=$as_save_IFS 7443 test -z "$as_dir" && as_dir=. 7444 for ac_exec_ext in '' $ac_executable_extensions; do 7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7448 break 2 7449 fi 7450done 7451 done 7452IFS=$as_save_IFS 7453 7454fi 7455fi 7456OTOOL64=$ac_cv_prog_OTOOL64 7457if test -n "$OTOOL64"; then 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7459$as_echo "$OTOOL64" >&6; } 7460else 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7462$as_echo "no" >&6; } 7463fi 7464 7465 7466fi 7467if test -z "$ac_cv_prog_OTOOL64"; then 7468 ac_ct_OTOOL64=$OTOOL64 7469 # Extract the first word of "otool64", so it can be a program name with args. 7470set dummy otool64; ac_word=$2 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7472$as_echo_n "checking for $ac_word... " >&6; } 7473if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 if test -n "$ac_ct_OTOOL64"; then 7477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7478else 7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7486 ac_cv_prog_ac_ct_OTOOL64="otool64" 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491 done 7492IFS=$as_save_IFS 7493 7494fi 7495fi 7496ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7497if test -n "$ac_ct_OTOOL64"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7499$as_echo "$ac_ct_OTOOL64" >&6; } 7500else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502$as_echo "no" >&6; } 7503fi 7504 7505 if test "x$ac_ct_OTOOL64" = x; then 7506 OTOOL64=":" 7507 else 7508 case $cross_compiling:$ac_tool_warned in 7509yes:) 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7512ac_tool_warned=yes ;; 7513esac 7514 OTOOL64=$ac_ct_OTOOL64 7515 fi 7516else 7517 OTOOL64="$ac_cv_prog_OTOOL64" 7518fi 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7547$as_echo_n "checking for -single_module linker flag... " >&6; } 7548if ${lt_cv_apple_cc_single_mod+:} false; then : 7549 $as_echo_n "(cached) " >&6 7550else 7551 lt_cv_apple_cc_single_mod=no 7552 if test -z "${LT_MULTI_MODULE}"; then 7553 # By default we will add the -single_module flag. You can override 7554 # by either setting the environment variable LT_MULTI_MODULE 7555 # non-empty at configure time, or by adding -multi_module to the 7556 # link flags. 7557 rm -rf libconftest.dylib* 7558 echo "int foo(void){return 1;}" > conftest.c 7559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7560-dynamiclib -Wl,-single_module conftest.c" >&5 7561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7563 _lt_result=$? 7564 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7565 lt_cv_apple_cc_single_mod=yes 7566 else 7567 cat conftest.err >&5 7568 fi 7569 rm -rf libconftest.dylib* 7570 rm -f conftest.* 7571 fi 7572fi 7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7574$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7576$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7577if ${lt_cv_ld_exported_symbols_list+:} false; then : 7578 $as_echo_n "(cached) " >&6 7579else 7580 lt_cv_ld_exported_symbols_list=no 7581 save_LDFLAGS=$LDFLAGS 7582 echo "_main" > conftest.sym 7583 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585/* end confdefs.h. */ 7586 7587int 7588main () 7589{ 7590 7591 ; 7592 return 0; 7593} 7594_ACEOF 7595if ac_fn_c_try_link "$LINENO"; then : 7596 lt_cv_ld_exported_symbols_list=yes 7597else 7598 lt_cv_ld_exported_symbols_list=no 7599fi 7600rm -f core conftest.err conftest.$ac_objext \ 7601 conftest$ac_exeext conftest.$ac_ext 7602 LDFLAGS="$save_LDFLAGS" 7603 7604fi 7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7606$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7608$as_echo_n "checking for -force_load linker flag... " >&6; } 7609if ${lt_cv_ld_force_load+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 lt_cv_ld_force_load=no 7613 cat > conftest.c << _LT_EOF 7614int forced_loaded() { return 2;} 7615_LT_EOF 7616 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7617 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7618 echo "$AR cru libconftest.a conftest.o" >&5 7619 $AR cru libconftest.a conftest.o 2>&5 7620 cat > conftest.c << _LT_EOF 7621int main() { return 0;} 7622_LT_EOF 7623 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7624 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7625 _lt_result=$? 7626 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7627 lt_cv_ld_force_load=yes 7628 else 7629 cat conftest.err >&5 7630 fi 7631 rm -f conftest.err libconftest.a conftest conftest.c 7632 rm -rf conftest.dSYM 7633 7634fi 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7636$as_echo "$lt_cv_ld_force_load" >&6; } 7637 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7638 # build without first building modern cctools / linker. 7639 case $host_cpu-$host_os in 7640 *-rhapsody* | *-darwin1.[012]) 7641 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7642 *-darwin1.*) 7643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7644 *-darwin*) 7645 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7646 # deployment target is forced to an earlier version. 7647 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7648 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7649 ;; 7650 10.[012][,.]*) 7651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7652 ;; 7653 *) 7654 ;; 7655 esac 7656 ;; 7657 esac 7658 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7659 _lt_dar_single_mod='$single_module' 7660 fi 7661 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7662 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7663 else 7664 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7665 fi 7666 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7667 _lt_dsymutil='~$DSYMUTIL $lib || :' 7668 else 7669 _lt_dsymutil= 7670 fi 7671 ;; 7672 esac 7673 7674ac_ext=c 7675ac_cpp='$CPP $CPPFLAGS' 7676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7678ac_compiler_gnu=$ac_cv_c_compiler_gnu 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7680$as_echo_n "checking how to run the C preprocessor... " >&6; } 7681# On Suns, sometimes $CPP names a directory. 7682if test -n "$CPP" && test -d "$CPP"; then 7683 CPP= 7684fi 7685if test -z "$CPP"; then 7686 if ${ac_cv_prog_CPP+:} false; then : 7687 $as_echo_n "(cached) " >&6 7688else 7689 # Double quotes because CPP needs to be expanded 7690 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7691 do 7692 ac_preproc_ok=false 7693for ac_c_preproc_warn_flag in '' yes 7694do 7695 # Use a header file that comes with gcc, so configuring glibc 7696 # with a fresh cross-compiler works. 7697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7698 # <limits.h> exists even on freestanding compilers. 7699 # On the NeXT, cc -E runs the code through the compiler's parser, 7700 # not just through cpp. "Syntax error" is here to catch this case. 7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7702/* end confdefs.h. */ 7703#ifdef __STDC__ 7704# include <limits.h> 7705#else 7706# include <assert.h> 7707#endif 7708 Syntax error 7709_ACEOF 7710if ac_fn_c_try_cpp "$LINENO"; then : 7711 7712else 7713 # Broken: fails on valid input. 7714continue 7715fi 7716rm -f conftest.err conftest.i conftest.$ac_ext 7717 7718 # OK, works on sane cases. Now check whether nonexistent headers 7719 # can be detected and how. 7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7721/* end confdefs.h. */ 7722#include <ac_nonexistent.h> 7723_ACEOF 7724if ac_fn_c_try_cpp "$LINENO"; then : 7725 # Broken: success on invalid input. 7726continue 7727else 7728 # Passes both tests. 7729ac_preproc_ok=: 7730break 7731fi 7732rm -f conftest.err conftest.i conftest.$ac_ext 7733 7734done 7735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7736rm -f conftest.i conftest.err conftest.$ac_ext 7737if $ac_preproc_ok; then : 7738 break 7739fi 7740 7741 done 7742 ac_cv_prog_CPP=$CPP 7743 7744fi 7745 CPP=$ac_cv_prog_CPP 7746else 7747 ac_cv_prog_CPP=$CPP 7748fi 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7750$as_echo "$CPP" >&6; } 7751ac_preproc_ok=false 7752for ac_c_preproc_warn_flag in '' yes 7753do 7754 # Use a header file that comes with gcc, so configuring glibc 7755 # with a fresh cross-compiler works. 7756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7757 # <limits.h> exists even on freestanding compilers. 7758 # On the NeXT, cc -E runs the code through the compiler's parser, 7759 # not just through cpp. "Syntax error" is here to catch this case. 7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761/* end confdefs.h. */ 7762#ifdef __STDC__ 7763# include <limits.h> 7764#else 7765# include <assert.h> 7766#endif 7767 Syntax error 7768_ACEOF 7769if ac_fn_c_try_cpp "$LINENO"; then : 7770 7771else 7772 # Broken: fails on valid input. 7773continue 7774fi 7775rm -f conftest.err conftest.i conftest.$ac_ext 7776 7777 # OK, works on sane cases. Now check whether nonexistent headers 7778 # can be detected and how. 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780/* end confdefs.h. */ 7781#include <ac_nonexistent.h> 7782_ACEOF 7783if ac_fn_c_try_cpp "$LINENO"; then : 7784 # Broken: success on invalid input. 7785continue 7786else 7787 # Passes both tests. 7788ac_preproc_ok=: 7789break 7790fi 7791rm -f conftest.err conftest.i conftest.$ac_ext 7792 7793done 7794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7795rm -f conftest.i conftest.err conftest.$ac_ext 7796if $ac_preproc_ok; then : 7797 7798else 7799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7801as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7802See \`config.log' for more details" "$LINENO" 5; } 7803fi 7804 7805ac_ext=c 7806ac_cpp='$CPP $CPPFLAGS' 7807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7809ac_compiler_gnu=$ac_cv_c_compiler_gnu 7810 7811 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7813$as_echo_n "checking for ANSI C header files... " >&6; } 7814if ${ac_cv_header_stdc+:} false; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818/* end confdefs.h. */ 7819#include <stdlib.h> 7820#include <stdarg.h> 7821#include <string.h> 7822#include <float.h> 7823 7824int 7825main () 7826{ 7827 7828 ; 7829 return 0; 7830} 7831_ACEOF 7832if ac_fn_c_try_compile "$LINENO"; then : 7833 ac_cv_header_stdc=yes 7834else 7835 ac_cv_header_stdc=no 7836fi 7837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7838 7839if test $ac_cv_header_stdc = yes; then 7840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7842/* end confdefs.h. */ 7843#include <string.h> 7844 7845_ACEOF 7846if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7847 $EGREP "memchr" >/dev/null 2>&1; then : 7848 7849else 7850 ac_cv_header_stdc=no 7851fi 7852rm -f conftest* 7853 7854fi 7855 7856if test $ac_cv_header_stdc = yes; then 7857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7859/* end confdefs.h. */ 7860#include <stdlib.h> 7861 7862_ACEOF 7863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7864 $EGREP "free" >/dev/null 2>&1; then : 7865 7866else 7867 ac_cv_header_stdc=no 7868fi 7869rm -f conftest* 7870 7871fi 7872 7873if test $ac_cv_header_stdc = yes; then 7874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7875 if test "$cross_compiling" = yes; then : 7876 : 7877else 7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7879/* end confdefs.h. */ 7880#include <ctype.h> 7881#include <stdlib.h> 7882#if ((' ' & 0x0FF) == 0x020) 7883# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7884# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7885#else 7886# define ISLOWER(c) \ 7887 (('a' <= (c) && (c) <= 'i') \ 7888 || ('j' <= (c) && (c) <= 'r') \ 7889 || ('s' <= (c) && (c) <= 'z')) 7890# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7891#endif 7892 7893#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7894int 7895main () 7896{ 7897 int i; 7898 for (i = 0; i < 256; i++) 7899 if (XOR (islower (i), ISLOWER (i)) 7900 || toupper (i) != TOUPPER (i)) 7901 return 2; 7902 return 0; 7903} 7904_ACEOF 7905if ac_fn_c_try_run "$LINENO"; then : 7906 7907else 7908 ac_cv_header_stdc=no 7909fi 7910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7911 conftest.$ac_objext conftest.beam conftest.$ac_ext 7912fi 7913 7914fi 7915fi 7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7917$as_echo "$ac_cv_header_stdc" >&6; } 7918if test $ac_cv_header_stdc = yes; then 7919 7920$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7921 7922fi 7923 7924# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7925for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7926 inttypes.h stdint.h unistd.h 7927do : 7928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7929ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7930" 7931if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7932 cat >>confdefs.h <<_ACEOF 7933#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7934_ACEOF 7935 7936fi 7937 7938done 7939 7940 7941for ac_header in dlfcn.h 7942do : 7943 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7944" 7945if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7946 cat >>confdefs.h <<_ACEOF 7947#define HAVE_DLFCN_H 1 7948_ACEOF 7949 7950fi 7951 7952done 7953 7954 7955 7956 7957 7958# Set options 7959 7960 7961 7962 enable_dlopen=no 7963 7964 7965 enable_win32_dll=no 7966 7967 7968 # Check whether --enable-shared was given. 7969if test "${enable_shared+set}" = set; then : 7970 enableval=$enable_shared; p=${PACKAGE-default} 7971 case $enableval in 7972 yes) enable_shared=yes ;; 7973 no) enable_shared=no ;; 7974 *) 7975 enable_shared=no 7976 # Look at the argument we got. We use all the common list separators. 7977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7978 for pkg in $enableval; do 7979 IFS="$lt_save_ifs" 7980 if test "X$pkg" = "X$p"; then 7981 enable_shared=yes 7982 fi 7983 done 7984 IFS="$lt_save_ifs" 7985 ;; 7986 esac 7987else 7988 enable_shared=yes 7989fi 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 # Check whether --enable-static was given. 8000if test "${enable_static+set}" = set; then : 8001 enableval=$enable_static; p=${PACKAGE-default} 8002 case $enableval in 8003 yes) enable_static=yes ;; 8004 no) enable_static=no ;; 8005 *) 8006 enable_static=no 8007 # Look at the argument we got. We use all the common list separators. 8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8009 for pkg in $enableval; do 8010 IFS="$lt_save_ifs" 8011 if test "X$pkg" = "X$p"; then 8012 enable_static=yes 8013 fi 8014 done 8015 IFS="$lt_save_ifs" 8016 ;; 8017 esac 8018else 8019 enable_static=yes 8020fi 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031# Check whether --with-pic was given. 8032if test "${with_pic+set}" = set; then : 8033 withval=$with_pic; pic_mode="$withval" 8034else 8035 pic_mode=default 8036fi 8037 8038 8039test -z "$pic_mode" && pic_mode=default 8040 8041 8042 8043 8044 8045 8046 8047 # Check whether --enable-fast-install was given. 8048if test "${enable_fast_install+set}" = set; then : 8049 enableval=$enable_fast_install; p=${PACKAGE-default} 8050 case $enableval in 8051 yes) enable_fast_install=yes ;; 8052 no) enable_fast_install=no ;; 8053 *) 8054 enable_fast_install=no 8055 # Look at the argument we got. We use all the common list separators. 8056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8057 for pkg in $enableval; do 8058 IFS="$lt_save_ifs" 8059 if test "X$pkg" = "X$p"; then 8060 enable_fast_install=yes 8061 fi 8062 done 8063 IFS="$lt_save_ifs" 8064 ;; 8065 esac 8066else 8067 enable_fast_install=yes 8068fi 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080# This can be used to rebuild libtool when needed 8081LIBTOOL_DEPS="$ltmain" 8082 8083# Always use our own libtool. 8084LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111test -z "$LN_S" && LN_S="ln -s" 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126if test -n "${ZSH_VERSION+set}" ; then 8127 setopt NO_GLOB_SUBST 8128fi 8129 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8131$as_echo_n "checking for objdir... " >&6; } 8132if ${lt_cv_objdir+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 rm -f .libs 2>/dev/null 8136mkdir .libs 2>/dev/null 8137if test -d .libs; then 8138 lt_cv_objdir=.libs 8139else 8140 # MS-DOS does not allow filenames that begin with a dot. 8141 lt_cv_objdir=_libs 8142fi 8143rmdir .libs 2>/dev/null 8144fi 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8146$as_echo "$lt_cv_objdir" >&6; } 8147objdir=$lt_cv_objdir 8148 8149 8150 8151 8152 8153cat >>confdefs.h <<_ACEOF 8154#define LT_OBJDIR "$lt_cv_objdir/" 8155_ACEOF 8156 8157 8158 8159 8160case $host_os in 8161aix3*) 8162 # AIX sometimes has problems with the GCC collect2 program. For some 8163 # reason, if we set the COLLECT_NAMES environment variable, the problems 8164 # vanish in a puff of smoke. 8165 if test "X${COLLECT_NAMES+set}" != Xset; then 8166 COLLECT_NAMES= 8167 export COLLECT_NAMES 8168 fi 8169 ;; 8170esac 8171 8172# Global variables: 8173ofile=libtool 8174can_build_shared=yes 8175 8176# All known linkers require a `.a' archive for static linking (except MSVC, 8177# which needs '.lib'). 8178libext=a 8179 8180with_gnu_ld="$lt_cv_prog_gnu_ld" 8181 8182old_CC="$CC" 8183old_CFLAGS="$CFLAGS" 8184 8185# Set sane defaults for various variables 8186test -z "$CC" && CC=cc 8187test -z "$LTCC" && LTCC=$CC 8188test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8189test -z "$LD" && LD=ld 8190test -z "$ac_objext" && ac_objext=o 8191 8192for cc_temp in $compiler""; do 8193 case $cc_temp in 8194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8196 \-*) ;; 8197 *) break;; 8198 esac 8199done 8200cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8201 8202 8203# Only perform the check for file, if the check method requires it 8204test -z "$MAGIC_CMD" && MAGIC_CMD=file 8205case $deplibs_check_method in 8206file_magic*) 8207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8209$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8210if ${lt_cv_path_MAGIC_CMD+:} false; then : 8211 $as_echo_n "(cached) " >&6 8212else 8213 case $MAGIC_CMD in 8214[\\/*] | ?:[\\/]*) 8215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8216 ;; 8217*) 8218 lt_save_MAGIC_CMD="$MAGIC_CMD" 8219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8221 for ac_dir in $ac_dummy; do 8222 IFS="$lt_save_ifs" 8223 test -z "$ac_dir" && ac_dir=. 8224 if test -f $ac_dir/${ac_tool_prefix}file; then 8225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8226 if test -n "$file_magic_test_file"; then 8227 case $deplibs_check_method in 8228 "file_magic "*) 8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8232 $EGREP "$file_magic_regex" > /dev/null; then 8233 : 8234 else 8235 cat <<_LT_EOF 1>&2 8236 8237*** Warning: the command libtool uses to detect shared libraries, 8238*** $file_magic_cmd, produces output that libtool cannot recognize. 8239*** The result is that libtool may fail to recognize shared libraries 8240*** as such. This will affect the creation of libtool libraries that 8241*** depend on shared libraries, but programs linked with such libtool 8242*** libraries will work regardless of this problem. Nevertheless, you 8243*** may want to report the problem to your system manager and/or to 8244*** bug-libtool@gnu.org 8245 8246_LT_EOF 8247 fi ;; 8248 esac 8249 fi 8250 break 8251 fi 8252 done 8253 IFS="$lt_save_ifs" 8254 MAGIC_CMD="$lt_save_MAGIC_CMD" 8255 ;; 8256esac 8257fi 8258 8259MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8260if test -n "$MAGIC_CMD"; then 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8262$as_echo "$MAGIC_CMD" >&6; } 8263else 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8265$as_echo "no" >&6; } 8266fi 8267 8268 8269 8270 8271 8272if test -z "$lt_cv_path_MAGIC_CMD"; then 8273 if test -n "$ac_tool_prefix"; then 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8275$as_echo_n "checking for file... " >&6; } 8276if ${lt_cv_path_MAGIC_CMD+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278else 8279 case $MAGIC_CMD in 8280[\\/*] | ?:[\\/]*) 8281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8282 ;; 8283*) 8284 lt_save_MAGIC_CMD="$MAGIC_CMD" 8285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8287 for ac_dir in $ac_dummy; do 8288 IFS="$lt_save_ifs" 8289 test -z "$ac_dir" && ac_dir=. 8290 if test -f $ac_dir/file; then 8291 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8292 if test -n "$file_magic_test_file"; then 8293 case $deplibs_check_method in 8294 "file_magic "*) 8295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8298 $EGREP "$file_magic_regex" > /dev/null; then 8299 : 8300 else 8301 cat <<_LT_EOF 1>&2 8302 8303*** Warning: the command libtool uses to detect shared libraries, 8304*** $file_magic_cmd, produces output that libtool cannot recognize. 8305*** The result is that libtool may fail to recognize shared libraries 8306*** as such. This will affect the creation of libtool libraries that 8307*** depend on shared libraries, but programs linked with such libtool 8308*** libraries will work regardless of this problem. Nevertheless, you 8309*** may want to report the problem to your system manager and/or to 8310*** bug-libtool@gnu.org 8311 8312_LT_EOF 8313 fi ;; 8314 esac 8315 fi 8316 break 8317 fi 8318 done 8319 IFS="$lt_save_ifs" 8320 MAGIC_CMD="$lt_save_MAGIC_CMD" 8321 ;; 8322esac 8323fi 8324 8325MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8326if test -n "$MAGIC_CMD"; then 8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8328$as_echo "$MAGIC_CMD" >&6; } 8329else 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8331$as_echo "no" >&6; } 8332fi 8333 8334 8335 else 8336 MAGIC_CMD=: 8337 fi 8338fi 8339 8340 fi 8341 ;; 8342esac 8343 8344# Use C for the default configuration in the libtool script 8345 8346lt_save_CC="$CC" 8347ac_ext=c 8348ac_cpp='$CPP $CPPFLAGS' 8349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8351ac_compiler_gnu=$ac_cv_c_compiler_gnu 8352 8353 8354# Source file extension for C test sources. 8355ac_ext=c 8356 8357# Object file extension for compiled C test sources. 8358objext=o 8359objext=$objext 8360 8361# Code to be used in simple compile tests 8362lt_simple_compile_test_code="int some_variable = 0;" 8363 8364# Code to be used in simple link tests 8365lt_simple_link_test_code='int main(){return(0);}' 8366 8367 8368 8369 8370 8371 8372 8373# If no C compiler was specified, use CC. 8374LTCC=${LTCC-"$CC"} 8375 8376# If no C compiler flags were specified, use CFLAGS. 8377LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8378 8379# Allow CC to be a program name with arguments. 8380compiler=$CC 8381 8382# Save the default compiler, since it gets overwritten when the other 8383# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8384compiler_DEFAULT=$CC 8385 8386# save warnings/boilerplate of simple test code 8387ac_outfile=conftest.$ac_objext 8388echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8389eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8390_lt_compiler_boilerplate=`cat conftest.err` 8391$RM conftest* 8392 8393ac_outfile=conftest.$ac_objext 8394echo "$lt_simple_link_test_code" >conftest.$ac_ext 8395eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8396_lt_linker_boilerplate=`cat conftest.err` 8397$RM -r conftest* 8398 8399 8400## CAVEAT EMPTOR: 8401## There is no encapsulation within the following macros, do not change 8402## the running order or otherwise move them around unless you know exactly 8403## what you are doing... 8404if test -n "$compiler"; then 8405 8406lt_prog_compiler_no_builtin_flag= 8407 8408if test "$GCC" = yes; then 8409 case $cc_basename in 8410 nvcc*) 8411 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8412 *) 8413 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8414 esac 8415 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8417$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8418if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8419 $as_echo_n "(cached) " >&6 8420else 8421 lt_cv_prog_compiler_rtti_exceptions=no 8422 ac_outfile=conftest.$ac_objext 8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8424 lt_compiler_flag="-fno-rtti -fno-exceptions" 8425 # Insert the option either (1) after the last *FLAGS variable, or 8426 # (2) before a word containing "conftest.", or (3) at the end. 8427 # Note that $ac_compile itself does not contain backslashes and begins 8428 # with a dollar sign (not a hyphen), so the echo should work correctly. 8429 # The option is referenced via a variable to avoid confusing sed. 8430 lt_compile=`echo "$ac_compile" | $SED \ 8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8433 -e 's:$: $lt_compiler_flag:'` 8434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8435 (eval "$lt_compile" 2>conftest.err) 8436 ac_status=$? 8437 cat conftest.err >&5 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8439 if (exit $ac_status) && test -s "$ac_outfile"; then 8440 # The compiler can only warn and ignore the option if not recognized 8441 # So say no if there are warnings other than the usual output. 8442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8445 lt_cv_prog_compiler_rtti_exceptions=yes 8446 fi 8447 fi 8448 $RM conftest* 8449 8450fi 8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8452$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8453 8454if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8456else 8457 : 8458fi 8459 8460fi 8461 8462 8463 8464 8465 8466 8467 lt_prog_compiler_wl= 8468lt_prog_compiler_pic= 8469lt_prog_compiler_static= 8470 8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8472$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8473 8474 if test "$GCC" = yes; then 8475 lt_prog_compiler_wl='-Wl,' 8476 lt_prog_compiler_static='-static' 8477 8478 case $host_os in 8479 aix*) 8480 # All AIX code is PIC. 8481 if test "$host_cpu" = ia64; then 8482 # AIX 5 now supports IA64 processor 8483 lt_prog_compiler_static='-Bstatic' 8484 fi 8485 lt_prog_compiler_pic='-fPIC' 8486 ;; 8487 8488 amigaos*) 8489 case $host_cpu in 8490 powerpc) 8491 # see comment about AmigaOS4 .so support 8492 lt_prog_compiler_pic='-fPIC' 8493 ;; 8494 m68k) 8495 # FIXME: we need at least 68020 code to build shared libraries, but 8496 # adding the `-m68020' flag to GCC prevents building anything better, 8497 # like `-m68040'. 8498 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8499 ;; 8500 esac 8501 ;; 8502 8503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8504 # PIC is the default for these OSes. 8505 ;; 8506 8507 mingw* | cygwin* | pw32* | os2* | cegcc*) 8508 # This hack is so that the source file can tell whether it is being 8509 # built for inclusion in a dll (and should export symbols for example). 8510 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8511 # (--disable-auto-import) libraries 8512 lt_prog_compiler_pic='-DDLL_EXPORT' 8513 ;; 8514 8515 darwin* | rhapsody*) 8516 # PIC is the default on this platform 8517 # Common symbols not allowed in MH_DYLIB files 8518 lt_prog_compiler_pic='-fno-common' 8519 ;; 8520 8521 haiku*) 8522 # PIC is the default for Haiku. 8523 # The "-static" flag exists, but is broken. 8524 lt_prog_compiler_static= 8525 ;; 8526 8527 hpux*) 8528 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8529 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8530 # sets the default TLS model and affects inlining. 8531 case $host_cpu in 8532 hppa*64*) 8533 # +Z the default 8534 ;; 8535 *) 8536 lt_prog_compiler_pic='-fPIC' 8537 ;; 8538 esac 8539 ;; 8540 8541 interix[3-9]*) 8542 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8543 # Instead, we relocate shared libraries at runtime. 8544 ;; 8545 8546 msdosdjgpp*) 8547 # Just because we use GCC doesn't mean we suddenly get shared libraries 8548 # on systems that don't support them. 8549 lt_prog_compiler_can_build_shared=no 8550 enable_shared=no 8551 ;; 8552 8553 *nto* | *qnx*) 8554 # QNX uses GNU C++, but need to define -shared option too, otherwise 8555 # it will coredump. 8556 lt_prog_compiler_pic='-fPIC -shared' 8557 ;; 8558 8559 sysv4*MP*) 8560 if test -d /usr/nec; then 8561 lt_prog_compiler_pic=-Kconform_pic 8562 fi 8563 ;; 8564 8565 *) 8566 lt_prog_compiler_pic='-fPIC' 8567 ;; 8568 esac 8569 8570 case $cc_basename in 8571 nvcc*) # Cuda Compiler Driver 2.2 8572 lt_prog_compiler_wl='-Xlinker ' 8573 lt_prog_compiler_pic='-Xcompiler -fPIC' 8574 ;; 8575 esac 8576 else 8577 # PORTME Check for flag to pass linker flags through the system compiler. 8578 case $host_os in 8579 aix*) 8580 lt_prog_compiler_wl='-Wl,' 8581 if test "$host_cpu" = ia64; then 8582 # AIX 5 now supports IA64 processor 8583 lt_prog_compiler_static='-Bstatic' 8584 else 8585 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8586 fi 8587 ;; 8588 8589 mingw* | cygwin* | pw32* | os2* | cegcc*) 8590 # This hack is so that the source file can tell whether it is being 8591 # built for inclusion in a dll (and should export symbols for example). 8592 lt_prog_compiler_pic='-DDLL_EXPORT' 8593 ;; 8594 8595 hpux9* | hpux10* | hpux11*) 8596 lt_prog_compiler_wl='-Wl,' 8597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8598 # not for PA HP-UX. 8599 case $host_cpu in 8600 hppa*64*|ia64*) 8601 # +Z the default 8602 ;; 8603 *) 8604 lt_prog_compiler_pic='+Z' 8605 ;; 8606 esac 8607 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8608 lt_prog_compiler_static='${wl}-a ${wl}archive' 8609 ;; 8610 8611 irix5* | irix6* | nonstopux*) 8612 lt_prog_compiler_wl='-Wl,' 8613 # PIC (with -KPIC) is the default. 8614 lt_prog_compiler_static='-non_shared' 8615 ;; 8616 8617 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8618 case $cc_basename in 8619 # old Intel for x86_64 which still supported -KPIC. 8620 ecc*) 8621 lt_prog_compiler_wl='-Wl,' 8622 lt_prog_compiler_pic='-KPIC' 8623 lt_prog_compiler_static='-static' 8624 ;; 8625 # icc used to be incompatible with GCC. 8626 # ICC 10 doesn't accept -KPIC any more. 8627 icc* | ifort*) 8628 lt_prog_compiler_wl='-Wl,' 8629 lt_prog_compiler_pic='-fPIC' 8630 lt_prog_compiler_static='-static' 8631 ;; 8632 # Lahey Fortran 8.1. 8633 lf95*) 8634 lt_prog_compiler_wl='-Wl,' 8635 lt_prog_compiler_pic='--shared' 8636 lt_prog_compiler_static='--static' 8637 ;; 8638 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8639 # Portland Group compilers (*not* the Pentium gcc compiler, 8640 # which looks to be a dead project) 8641 lt_prog_compiler_wl='-Wl,' 8642 lt_prog_compiler_pic='-fpic' 8643 lt_prog_compiler_static='-Bstatic' 8644 ;; 8645 ccc*) 8646 lt_prog_compiler_wl='-Wl,' 8647 # All Alpha code is PIC. 8648 lt_prog_compiler_static='-non_shared' 8649 ;; 8650 xl* | bgxl* | bgf* | mpixl*) 8651 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8652 lt_prog_compiler_wl='-Wl,' 8653 lt_prog_compiler_pic='-qpic' 8654 lt_prog_compiler_static='-qstaticlink' 8655 ;; 8656 *) 8657 case `$CC -V 2>&1 | sed 5q` in 8658 *Sun\ F* | *Sun*Fortran*) 8659 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8660 lt_prog_compiler_pic='-KPIC' 8661 lt_prog_compiler_static='-Bstatic' 8662 lt_prog_compiler_wl='' 8663 ;; 8664 *Sun\ C*) 8665 # Sun C 5.9 8666 lt_prog_compiler_pic='-KPIC' 8667 lt_prog_compiler_static='-Bstatic' 8668 lt_prog_compiler_wl='-Wl,' 8669 ;; 8670 esac 8671 ;; 8672 esac 8673 ;; 8674 8675 newsos6) 8676 lt_prog_compiler_pic='-KPIC' 8677 lt_prog_compiler_static='-Bstatic' 8678 ;; 8679 8680 *nto* | *qnx*) 8681 # QNX uses GNU C++, but need to define -shared option too, otherwise 8682 # it will coredump. 8683 lt_prog_compiler_pic='-fPIC -shared' 8684 ;; 8685 8686 osf3* | osf4* | osf5*) 8687 lt_prog_compiler_wl='-Wl,' 8688 # All OSF/1 code is PIC. 8689 lt_prog_compiler_static='-non_shared' 8690 ;; 8691 8692 rdos*) 8693 lt_prog_compiler_static='-non_shared' 8694 ;; 8695 8696 solaris*) 8697 lt_prog_compiler_pic='-KPIC' 8698 lt_prog_compiler_static='-Bstatic' 8699 case $cc_basename in 8700 f77* | f90* | f95*) 8701 lt_prog_compiler_wl='-Qoption ld ';; 8702 *) 8703 lt_prog_compiler_wl='-Wl,';; 8704 esac 8705 ;; 8706 8707 sunos4*) 8708 lt_prog_compiler_wl='-Qoption ld ' 8709 lt_prog_compiler_pic='-PIC' 8710 lt_prog_compiler_static='-Bstatic' 8711 ;; 8712 8713 sysv4 | sysv4.2uw2* | sysv4.3*) 8714 lt_prog_compiler_wl='-Wl,' 8715 lt_prog_compiler_pic='-KPIC' 8716 lt_prog_compiler_static='-Bstatic' 8717 ;; 8718 8719 sysv4*MP*) 8720 if test -d /usr/nec ;then 8721 lt_prog_compiler_pic='-Kconform_pic' 8722 lt_prog_compiler_static='-Bstatic' 8723 fi 8724 ;; 8725 8726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8727 lt_prog_compiler_wl='-Wl,' 8728 lt_prog_compiler_pic='-KPIC' 8729 lt_prog_compiler_static='-Bstatic' 8730 ;; 8731 8732 unicos*) 8733 lt_prog_compiler_wl='-Wl,' 8734 lt_prog_compiler_can_build_shared=no 8735 ;; 8736 8737 uts4*) 8738 lt_prog_compiler_pic='-pic' 8739 lt_prog_compiler_static='-Bstatic' 8740 ;; 8741 8742 *) 8743 lt_prog_compiler_can_build_shared=no 8744 ;; 8745 esac 8746 fi 8747 8748case $host_os in 8749 # For platforms which do not support PIC, -DPIC is meaningless: 8750 *djgpp*) 8751 lt_prog_compiler_pic= 8752 ;; 8753 *) 8754 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8755 ;; 8756esac 8757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8758$as_echo "$lt_prog_compiler_pic" >&6; } 8759 8760 8761 8762 8763 8764 8765# 8766# Check to make sure the PIC flag actually works. 8767# 8768if test -n "$lt_prog_compiler_pic"; then 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8770$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8771if ${lt_cv_prog_compiler_pic_works+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773else 8774 lt_cv_prog_compiler_pic_works=no 8775 ac_outfile=conftest.$ac_objext 8776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8777 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8778 # Insert the option either (1) after the last *FLAGS variable, or 8779 # (2) before a word containing "conftest.", or (3) at the end. 8780 # Note that $ac_compile itself does not contain backslashes and begins 8781 # with a dollar sign (not a hyphen), so the echo should work correctly. 8782 # The option is referenced via a variable to avoid confusing sed. 8783 lt_compile=`echo "$ac_compile" | $SED \ 8784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8786 -e 's:$: $lt_compiler_flag:'` 8787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8788 (eval "$lt_compile" 2>conftest.err) 8789 ac_status=$? 8790 cat conftest.err >&5 8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8792 if (exit $ac_status) && test -s "$ac_outfile"; then 8793 # The compiler can only warn and ignore the option if not recognized 8794 # So say no if there are warnings other than the usual output. 8795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8798 lt_cv_prog_compiler_pic_works=yes 8799 fi 8800 fi 8801 $RM conftest* 8802 8803fi 8804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8805$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8806 8807if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8808 case $lt_prog_compiler_pic in 8809 "" | " "*) ;; 8810 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8811 esac 8812else 8813 lt_prog_compiler_pic= 8814 lt_prog_compiler_can_build_shared=no 8815fi 8816 8817fi 8818 8819 8820 8821 8822 8823 8824# 8825# Check to make sure the static flag actually works. 8826# 8827wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8829$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8830if ${lt_cv_prog_compiler_static_works+:} false; then : 8831 $as_echo_n "(cached) " >&6 8832else 8833 lt_cv_prog_compiler_static_works=no 8834 save_LDFLAGS="$LDFLAGS" 8835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8836 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8838 # The linker can only warn and ignore the option if not recognized 8839 # So say no if there are warnings 8840 if test -s conftest.err; then 8841 # Append any errors to the config.log. 8842 cat conftest.err 1>&5 8843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8845 if diff conftest.exp conftest.er2 >/dev/null; then 8846 lt_cv_prog_compiler_static_works=yes 8847 fi 8848 else 8849 lt_cv_prog_compiler_static_works=yes 8850 fi 8851 fi 8852 $RM -r conftest* 8853 LDFLAGS="$save_LDFLAGS" 8854 8855fi 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8857$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8858 8859if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8860 : 8861else 8862 lt_prog_compiler_static= 8863fi 8864 8865 8866 8867 8868 8869 8870 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8872$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8873if ${lt_cv_prog_compiler_c_o+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875else 8876 lt_cv_prog_compiler_c_o=no 8877 $RM -r conftest 2>/dev/null 8878 mkdir conftest 8879 cd conftest 8880 mkdir out 8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8882 8883 lt_compiler_flag="-o out/conftest2.$ac_objext" 8884 # Insert the option either (1) after the last *FLAGS variable, or 8885 # (2) before a word containing "conftest.", or (3) at the end. 8886 # Note that $ac_compile itself does not contain backslashes and begins 8887 # with a dollar sign (not a hyphen), so the echo should work correctly. 8888 lt_compile=`echo "$ac_compile" | $SED \ 8889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8891 -e 's:$: $lt_compiler_flag:'` 8892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8893 (eval "$lt_compile" 2>out/conftest.err) 8894 ac_status=$? 8895 cat out/conftest.err >&5 8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8897 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8898 then 8899 # The compiler can only warn and ignore the option if not recognized 8900 # So say no if there are warnings 8901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8904 lt_cv_prog_compiler_c_o=yes 8905 fi 8906 fi 8907 chmod u+w . 2>&5 8908 $RM conftest* 8909 # SGI C++ compiler will create directory out/ii_files/ for 8910 # template instantiation 8911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8912 $RM out/* && rmdir out 8913 cd .. 8914 $RM -r conftest 8915 $RM conftest* 8916 8917fi 8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8919$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8920 8921 8922 8923 8924 8925 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8927$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8928if ${lt_cv_prog_compiler_c_o+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 lt_cv_prog_compiler_c_o=no 8932 $RM -r conftest 2>/dev/null 8933 mkdir conftest 8934 cd conftest 8935 mkdir out 8936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8937 8938 lt_compiler_flag="-o out/conftest2.$ac_objext" 8939 # Insert the option either (1) after the last *FLAGS variable, or 8940 # (2) before a word containing "conftest.", or (3) at the end. 8941 # Note that $ac_compile itself does not contain backslashes and begins 8942 # with a dollar sign (not a hyphen), so the echo should work correctly. 8943 lt_compile=`echo "$ac_compile" | $SED \ 8944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8946 -e 's:$: $lt_compiler_flag:'` 8947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8948 (eval "$lt_compile" 2>out/conftest.err) 8949 ac_status=$? 8950 cat out/conftest.err >&5 8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8952 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8953 then 8954 # The compiler can only warn and ignore the option if not recognized 8955 # So say no if there are warnings 8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8959 lt_cv_prog_compiler_c_o=yes 8960 fi 8961 fi 8962 chmod u+w . 2>&5 8963 $RM conftest* 8964 # SGI C++ compiler will create directory out/ii_files/ for 8965 # template instantiation 8966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8967 $RM out/* && rmdir out 8968 cd .. 8969 $RM -r conftest 8970 $RM conftest* 8971 8972fi 8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8974$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8975 8976 8977 8978 8979hard_links="nottested" 8980if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8981 # do not overwrite the value of need_locks provided by the user 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8983$as_echo_n "checking if we can lock with hard links... " >&6; } 8984 hard_links=yes 8985 $RM conftest* 8986 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8987 touch conftest.a 8988 ln conftest.a conftest.b 2>&5 || hard_links=no 8989 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8991$as_echo "$hard_links" >&6; } 8992 if test "$hard_links" = no; then 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8994$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8995 need_locks=warn 8996 fi 8997else 8998 need_locks=no 8999fi 9000 9001 9002 9003 9004 9005 9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9007$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9008 9009 runpath_var= 9010 allow_undefined_flag= 9011 always_export_symbols=no 9012 archive_cmds= 9013 archive_expsym_cmds= 9014 compiler_needs_object=no 9015 enable_shared_with_static_runtimes=no 9016 export_dynamic_flag_spec= 9017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9018 hardcode_automatic=no 9019 hardcode_direct=no 9020 hardcode_direct_absolute=no 9021 hardcode_libdir_flag_spec= 9022 hardcode_libdir_flag_spec_ld= 9023 hardcode_libdir_separator= 9024 hardcode_minus_L=no 9025 hardcode_shlibpath_var=unsupported 9026 inherit_rpath=no 9027 link_all_deplibs=unknown 9028 module_cmds= 9029 module_expsym_cmds= 9030 old_archive_from_new_cmds= 9031 old_archive_from_expsyms_cmds= 9032 thread_safe_flag_spec= 9033 whole_archive_flag_spec= 9034 # include_expsyms should be a list of space-separated symbols to be *always* 9035 # included in the symbol list 9036 include_expsyms= 9037 # exclude_expsyms can be an extended regexp of symbols to exclude 9038 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9040 # as well as any symbol that contains `d'. 9041 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9043 # platforms (ab)use it in PIC code, but their linkers get confused if 9044 # the symbol is explicitly referenced. Since portable code cannot 9045 # rely on this symbol name, it's probably fine to never include it in 9046 # preloaded symbol tables. 9047 # Exclude shared library initialization/finalization symbols. 9048 extract_expsyms_cmds= 9049 9050 case $host_os in 9051 cygwin* | mingw* | pw32* | cegcc*) 9052 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9053 # When not using gcc, we currently assume that we are using 9054 # Microsoft Visual C++. 9055 if test "$GCC" != yes; then 9056 with_gnu_ld=no 9057 fi 9058 ;; 9059 interix*) 9060 # we just hope/assume this is gcc and not c89 (= MSVC++) 9061 with_gnu_ld=yes 9062 ;; 9063 openbsd*) 9064 with_gnu_ld=no 9065 ;; 9066 esac 9067 9068 ld_shlibs=yes 9069 9070 # On some targets, GNU ld is compatible enough with the native linker 9071 # that we're better off using the native interface for both. 9072 lt_use_gnu_ld_interface=no 9073 if test "$with_gnu_ld" = yes; then 9074 case $host_os in 9075 aix*) 9076 # The AIX port of GNU ld has always aspired to compatibility 9077 # with the native linker. However, as the warning in the GNU ld 9078 # block says, versions before 2.19.5* couldn't really create working 9079 # shared libraries, regardless of the interface used. 9080 case `$LD -v 2>&1` in 9081 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9082 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9083 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9084 *) 9085 lt_use_gnu_ld_interface=yes 9086 ;; 9087 esac 9088 ;; 9089 *) 9090 lt_use_gnu_ld_interface=yes 9091 ;; 9092 esac 9093 fi 9094 9095 if test "$lt_use_gnu_ld_interface" = yes; then 9096 # If archive_cmds runs LD, not CC, wlarc should be empty 9097 wlarc='${wl}' 9098 9099 # Set some defaults for GNU ld with shared library support. These 9100 # are reset later if shared libraries are not supported. Putting them 9101 # here allows them to be overridden if necessary. 9102 runpath_var=LD_RUN_PATH 9103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9104 export_dynamic_flag_spec='${wl}--export-dynamic' 9105 # ancient GNU ld didn't support --whole-archive et. al. 9106 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9107 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9108 else 9109 whole_archive_flag_spec= 9110 fi 9111 supports_anon_versioning=no 9112 case `$LD -v 2>&1` in 9113 *GNU\ gold*) supports_anon_versioning=yes ;; 9114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9117 *\ 2.11.*) ;; # other 2.11 versions 9118 *) supports_anon_versioning=yes ;; 9119 esac 9120 9121 # See if GNU ld supports shared libraries. 9122 case $host_os in 9123 aix[3-9]*) 9124 # On AIX/PPC, the GNU linker is very broken 9125 if test "$host_cpu" != ia64; then 9126 ld_shlibs=no 9127 cat <<_LT_EOF 1>&2 9128 9129*** Warning: the GNU linker, at least up to release 2.19, is reported 9130*** to be unable to reliably create shared libraries on AIX. 9131*** Therefore, libtool is disabling shared libraries support. If you 9132*** really care for shared libraries, you may want to install binutils 9133*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9134*** You will then need to restart the configuration process. 9135 9136_LT_EOF 9137 fi 9138 ;; 9139 9140 amigaos*) 9141 case $host_cpu in 9142 powerpc) 9143 # see comment about AmigaOS4 .so support 9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9145 archive_expsym_cmds='' 9146 ;; 9147 m68k) 9148 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)' 9149 hardcode_libdir_flag_spec='-L$libdir' 9150 hardcode_minus_L=yes 9151 ;; 9152 esac 9153 ;; 9154 9155 beos*) 9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9157 allow_undefined_flag=unsupported 9158 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9159 # support --undefined. This deserves some investigation. FIXME 9160 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9161 else 9162 ld_shlibs=no 9163 fi 9164 ;; 9165 9166 cygwin* | mingw* | pw32* | cegcc*) 9167 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9168 # as there is no search path for DLLs. 9169 hardcode_libdir_flag_spec='-L$libdir' 9170 export_dynamic_flag_spec='${wl}--export-all-symbols' 9171 allow_undefined_flag=unsupported 9172 always_export_symbols=no 9173 enable_shared_with_static_runtimes=yes 9174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9175 9176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9178 # If the export-symbols file already is a .def file (1st line 9179 # is EXPORTS), use it as is; otherwise, prepend... 9180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9181 cp $export_symbols $output_objdir/$soname.def; 9182 else 9183 echo EXPORTS > $output_objdir/$soname.def; 9184 cat $export_symbols >> $output_objdir/$soname.def; 9185 fi~ 9186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9187 else 9188 ld_shlibs=no 9189 fi 9190 ;; 9191 9192 haiku*) 9193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9194 link_all_deplibs=yes 9195 ;; 9196 9197 interix[3-9]*) 9198 hardcode_direct=no 9199 hardcode_shlibpath_var=no 9200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9201 export_dynamic_flag_spec='${wl}-E' 9202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9203 # Instead, shared libraries are loaded at an image base (0x10000000 by 9204 # default) and relocated if they conflict, which is a slow very memory 9205 # consuming and fragmenting process. To avoid this, we pick a random, 9206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9207 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9209 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' 9210 ;; 9211 9212 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 9213 tmp_diet=no 9214 if test "$host_os" = linux-dietlibc; then 9215 case $cc_basename in 9216 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9217 esac 9218 fi 9219 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9220 && test "$tmp_diet" = no 9221 then 9222 tmp_addflag=' $pic_flag' 9223 tmp_sharedflag='-shared' 9224 case $cc_basename,$host_cpu in 9225 pgcc*) # Portland Group C compiler 9226 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' 9227 tmp_addflag=' $pic_flag' 9228 ;; 9229 pgf77* | pgf90* | pgf95* | pgfortran*) 9230 # Portland Group f77 and f90 compilers 9231 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' 9232 tmp_addflag=' $pic_flag -Mnomain' ;; 9233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9234 tmp_addflag=' -i_dynamic' ;; 9235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9236 tmp_addflag=' -i_dynamic -nofor_main' ;; 9237 ifc* | ifort*) # Intel Fortran compiler 9238 tmp_addflag=' -nofor_main' ;; 9239 lf95*) # Lahey Fortran 8.1 9240 whole_archive_flag_spec= 9241 tmp_sharedflag='--shared' ;; 9242 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9243 tmp_sharedflag='-qmkshrobj' 9244 tmp_addflag= ;; 9245 nvcc*) # Cuda Compiler Driver 2.2 9246 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' 9247 compiler_needs_object=yes 9248 ;; 9249 esac 9250 case `$CC -V 2>&1 | sed 5q` in 9251 *Sun\ C*) # Sun C 5.9 9252 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' 9253 compiler_needs_object=yes 9254 tmp_sharedflag='-G' ;; 9255 *Sun\ F*) # Sun Fortran 8.3 9256 tmp_sharedflag='-G' ;; 9257 esac 9258 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9259 9260 if test "x$supports_anon_versioning" = xyes; then 9261 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9263 echo "local: *; };" >> $output_objdir/$libname.ver~ 9264 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9265 fi 9266 9267 case $cc_basename in 9268 xlf* | bgf* | bgxlf* | mpixlf*) 9269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9271 hardcode_libdir_flag_spec= 9272 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9273 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9274 if test "x$supports_anon_versioning" = xyes; then 9275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9277 echo "local: *; };" >> $output_objdir/$libname.ver~ 9278 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9279 fi 9280 ;; 9281 esac 9282 else 9283 ld_shlibs=no 9284 fi 9285 ;; 9286 9287 netbsd*) 9288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9290 wlarc= 9291 else 9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9294 fi 9295 ;; 9296 9297 solaris*) 9298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9299 ld_shlibs=no 9300 cat <<_LT_EOF 1>&2 9301 9302*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9303*** create shared libraries on Solaris systems. Therefore, libtool 9304*** is disabling shared libraries support. We urge you to upgrade GNU 9305*** binutils to release 2.9.1 or newer. Another option is to modify 9306*** your PATH or compiler configuration so that the native linker is 9307*** used, and then restart. 9308 9309_LT_EOF 9310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9313 else 9314 ld_shlibs=no 9315 fi 9316 ;; 9317 9318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9319 case `$LD -v 2>&1` in 9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9321 ld_shlibs=no 9322 cat <<_LT_EOF 1>&2 9323 9324*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9325*** reliably create shared libraries on SCO systems. Therefore, libtool 9326*** is disabling shared libraries support. We urge you to upgrade GNU 9327*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9328*** your PATH or compiler configuration so that the native linker is 9329*** used, and then restart. 9330 9331_LT_EOF 9332 ;; 9333 *) 9334 # For security reasons, it is highly recommended that you always 9335 # use absolute paths for naming shared libraries, and exclude the 9336 # DT_RUNPATH tag from executables and libraries. But doing so 9337 # requires that you compile everything twice, which is a pain. 9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9342 else 9343 ld_shlibs=no 9344 fi 9345 ;; 9346 esac 9347 ;; 9348 9349 sunos4*) 9350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9351 wlarc= 9352 hardcode_direct=yes 9353 hardcode_shlibpath_var=no 9354 ;; 9355 9356 *) 9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9360 else 9361 ld_shlibs=no 9362 fi 9363 ;; 9364 esac 9365 9366 if test "$ld_shlibs" = no; then 9367 runpath_var= 9368 hardcode_libdir_flag_spec= 9369 export_dynamic_flag_spec= 9370 whole_archive_flag_spec= 9371 fi 9372 else 9373 # PORTME fill in a description of your system's linker (not GNU ld) 9374 case $host_os in 9375 aix3*) 9376 allow_undefined_flag=unsupported 9377 always_export_symbols=yes 9378 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' 9379 # Note: this linker hardcodes the directories in LIBPATH if there 9380 # are no directories specified by -L. 9381 hardcode_minus_L=yes 9382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9383 # Neither direct hardcoding nor static linking is supported with a 9384 # broken collect2. 9385 hardcode_direct=unsupported 9386 fi 9387 ;; 9388 9389 aix[4-9]*) 9390 if test "$host_cpu" = ia64; then 9391 # On IA64, the linker does run time linking by default, so we don't 9392 # have to do anything special. 9393 aix_use_runtimelinking=no 9394 exp_sym_flag='-Bexport' 9395 no_entry_flag="" 9396 else 9397 # If we're using GNU nm, then we don't want the "-C" option. 9398 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9399 # Also, AIX nm treats weak defined symbols like other global 9400 # defined symbols, whereas GNU nm marks them as "W". 9401 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9402 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' 9403 else 9404 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9405 fi 9406 aix_use_runtimelinking=no 9407 9408 # Test if we are trying to use run time linking or normal 9409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9410 # need to do runtime linking. 9411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9412 for ld_flag in $LDFLAGS; do 9413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9414 aix_use_runtimelinking=yes 9415 break 9416 fi 9417 done 9418 ;; 9419 esac 9420 9421 exp_sym_flag='-bexport' 9422 no_entry_flag='-bnoentry' 9423 fi 9424 9425 # When large executables or shared objects are built, AIX ld can 9426 # have problems creating the table of contents. If linking a library 9427 # or program results in "error TOC overflow" add -mminimal-toc to 9428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9430 9431 archive_cmds='' 9432 hardcode_direct=yes 9433 hardcode_direct_absolute=yes 9434 hardcode_libdir_separator=':' 9435 link_all_deplibs=yes 9436 file_list_spec='${wl}-f,' 9437 9438 if test "$GCC" = yes; then 9439 case $host_os in aix4.[012]|aix4.[012].*) 9440 # We only want to do this on AIX 4.2 and lower, the check 9441 # below for broken collect2 doesn't work under 4.3+ 9442 collect2name=`${CC} -print-prog-name=collect2` 9443 if test -f "$collect2name" && 9444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9445 then 9446 # We have reworked collect2 9447 : 9448 else 9449 # We have old collect2 9450 hardcode_direct=unsupported 9451 # It fails to find uninstalled libraries when the uninstalled 9452 # path is not listed in the libpath. Setting hardcode_minus_L 9453 # to unsupported forces relinking 9454 hardcode_minus_L=yes 9455 hardcode_libdir_flag_spec='-L$libdir' 9456 hardcode_libdir_separator= 9457 fi 9458 ;; 9459 esac 9460 shared_flag='-shared' 9461 if test "$aix_use_runtimelinking" = yes; then 9462 shared_flag="$shared_flag "'${wl}-G' 9463 fi 9464 else 9465 # not using gcc 9466 if test "$host_cpu" = ia64; then 9467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9468 # chokes on -Wl,-G. The following line is correct: 9469 shared_flag='-G' 9470 else 9471 if test "$aix_use_runtimelinking" = yes; then 9472 shared_flag='${wl}-G' 9473 else 9474 shared_flag='${wl}-bM:SRE' 9475 fi 9476 fi 9477 fi 9478 9479 export_dynamic_flag_spec='${wl}-bexpall' 9480 # It seems that -bexpall does not export symbols beginning with 9481 # underscore (_), so it is better to generate a list of symbols to export. 9482 always_export_symbols=yes 9483 if test "$aix_use_runtimelinking" = yes; then 9484 # Warning - without using the other runtime loading flags (-brtl), 9485 # -berok will link without error, but may produce a broken library. 9486 allow_undefined_flag='-berok' 9487 # Determine the default libpath from the value encoded in an 9488 # empty executable. 9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9490/* end confdefs.h. */ 9491 9492int 9493main () 9494{ 9495 9496 ; 9497 return 0; 9498} 9499_ACEOF 9500if ac_fn_c_try_link "$LINENO"; then : 9501 9502lt_aix_libpath_sed=' 9503 /Import File Strings/,/^$/ { 9504 /^0/ { 9505 s/^0 *\(.*\)$/\1/ 9506 p 9507 } 9508 }' 9509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9510# Check for a 64-bit object if we didn't find anything. 9511if test -z "$aix_libpath"; then 9512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9513fi 9514fi 9515rm -f core conftest.err conftest.$ac_objext \ 9516 conftest$ac_exeext conftest.$ac_ext 9517if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9518 9519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9520 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9521 else 9522 if test "$host_cpu" = ia64; then 9523 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9524 allow_undefined_flag="-z nodefs" 9525 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" 9526 else 9527 # Determine the default libpath from the value encoded in an 9528 # empty executable. 9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9530/* end confdefs.h. */ 9531 9532int 9533main () 9534{ 9535 9536 ; 9537 return 0; 9538} 9539_ACEOF 9540if ac_fn_c_try_link "$LINENO"; then : 9541 9542lt_aix_libpath_sed=' 9543 /Import File Strings/,/^$/ { 9544 /^0/ { 9545 s/^0 *\(.*\)$/\1/ 9546 p 9547 } 9548 }' 9549aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9550# Check for a 64-bit object if we didn't find anything. 9551if test -z "$aix_libpath"; then 9552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9553fi 9554fi 9555rm -f core conftest.err conftest.$ac_objext \ 9556 conftest$ac_exeext conftest.$ac_ext 9557if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9558 9559 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9560 # Warning - without using the other run time loading flags, 9561 # -berok will link without error, but may produce a broken library. 9562 no_undefined_flag=' ${wl}-bernotok' 9563 allow_undefined_flag=' ${wl}-berok' 9564 if test "$with_gnu_ld" = yes; then 9565 # We only use this code for GNU lds that support --whole-archive. 9566 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9567 else 9568 # Exported symbols can be pulled into shared objects from archives 9569 whole_archive_flag_spec='$convenience' 9570 fi 9571 archive_cmds_need_lc=yes 9572 # This is similar to how AIX traditionally builds its shared libraries. 9573 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' 9574 fi 9575 fi 9576 ;; 9577 9578 amigaos*) 9579 case $host_cpu in 9580 powerpc) 9581 # see comment about AmigaOS4 .so support 9582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9583 archive_expsym_cmds='' 9584 ;; 9585 m68k) 9586 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)' 9587 hardcode_libdir_flag_spec='-L$libdir' 9588 hardcode_minus_L=yes 9589 ;; 9590 esac 9591 ;; 9592 9593 bsdi[45]*) 9594 export_dynamic_flag_spec=-rdynamic 9595 ;; 9596 9597 cygwin* | mingw* | pw32* | cegcc*) 9598 # When not using gcc, we currently assume that we are using 9599 # Microsoft Visual C++. 9600 # hardcode_libdir_flag_spec is actually meaningless, as there is 9601 # no search path for DLLs. 9602 hardcode_libdir_flag_spec=' ' 9603 allow_undefined_flag=unsupported 9604 # Tell ltmain to make .lib files, not .a files. 9605 libext=lib 9606 # Tell ltmain to make .dll files, not .so files. 9607 shrext_cmds=".dll" 9608 # FIXME: Setting linknames here is a bad hack. 9609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9610 # The linker will automatically build a .lib file if we build a DLL. 9611 old_archive_from_new_cmds='true' 9612 # FIXME: Should let the user specify the lib program. 9613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9614 fix_srcfile_path='`cygpath -w "$srcfile"`' 9615 enable_shared_with_static_runtimes=yes 9616 ;; 9617 9618 darwin* | rhapsody*) 9619 9620 9621 archive_cmds_need_lc=no 9622 hardcode_direct=no 9623 hardcode_automatic=yes 9624 hardcode_shlibpath_var=unsupported 9625 if test "$lt_cv_ld_force_load" = "yes"; then 9626 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\"`' 9627 else 9628 whole_archive_flag_spec='' 9629 fi 9630 link_all_deplibs=yes 9631 allow_undefined_flag="$_lt_dar_allow_undefined" 9632 case $cc_basename in 9633 ifort*) _lt_dar_can_shared=yes ;; 9634 *) _lt_dar_can_shared=$GCC ;; 9635 esac 9636 if test "$_lt_dar_can_shared" = "yes"; then 9637 output_verbose_link_cmd=func_echo_all 9638 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9639 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9640 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}" 9641 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}" 9642 9643 else 9644 ld_shlibs=no 9645 fi 9646 9647 ;; 9648 9649 dgux*) 9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9651 hardcode_libdir_flag_spec='-L$libdir' 9652 hardcode_shlibpath_var=no 9653 ;; 9654 9655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9656 # support. Future versions do this automatically, but an explicit c++rt0.o 9657 # does not break anything, and helps significantly (at the cost of a little 9658 # extra space). 9659 freebsd2.2*) 9660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9661 hardcode_libdir_flag_spec='-R$libdir' 9662 hardcode_direct=yes 9663 hardcode_shlibpath_var=no 9664 ;; 9665 9666 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9667 freebsd2.*) 9668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9669 hardcode_direct=yes 9670 hardcode_minus_L=yes 9671 hardcode_shlibpath_var=no 9672 ;; 9673 9674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9675 freebsd* | dragonfly*) 9676 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9677 hardcode_libdir_flag_spec='-R$libdir' 9678 hardcode_direct=yes 9679 hardcode_shlibpath_var=no 9680 ;; 9681 9682 hpux9*) 9683 if test "$GCC" = yes; then 9684 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9685 else 9686 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9687 fi 9688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9689 hardcode_libdir_separator=: 9690 hardcode_direct=yes 9691 9692 # hardcode_minus_L: Not really in the search PATH, 9693 # but as the default location of the library. 9694 hardcode_minus_L=yes 9695 export_dynamic_flag_spec='${wl}-E' 9696 ;; 9697 9698 hpux10*) 9699 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9700 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9701 else 9702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9703 fi 9704 if test "$with_gnu_ld" = no; then 9705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9706 hardcode_libdir_flag_spec_ld='+b $libdir' 9707 hardcode_libdir_separator=: 9708 hardcode_direct=yes 9709 hardcode_direct_absolute=yes 9710 export_dynamic_flag_spec='${wl}-E' 9711 # hardcode_minus_L: Not really in the search PATH, 9712 # but as the default location of the library. 9713 hardcode_minus_L=yes 9714 fi 9715 ;; 9716 9717 hpux11*) 9718 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9719 case $host_cpu in 9720 hppa*64*) 9721 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9722 ;; 9723 ia64*) 9724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9725 ;; 9726 *) 9727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9728 ;; 9729 esac 9730 else 9731 case $host_cpu in 9732 hppa*64*) 9733 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9734 ;; 9735 ia64*) 9736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9737 ;; 9738 *) 9739 9740 # Older versions of the 11.00 compiler do not understand -b yet 9741 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9743$as_echo_n "checking if $CC understands -b... " >&6; } 9744if ${lt_cv_prog_compiler__b+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 lt_cv_prog_compiler__b=no 9748 save_LDFLAGS="$LDFLAGS" 9749 LDFLAGS="$LDFLAGS -b" 9750 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9752 # The linker can only warn and ignore the option if not recognized 9753 # So say no if there are warnings 9754 if test -s conftest.err; then 9755 # Append any errors to the config.log. 9756 cat conftest.err 1>&5 9757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9759 if diff conftest.exp conftest.er2 >/dev/null; then 9760 lt_cv_prog_compiler__b=yes 9761 fi 9762 else 9763 lt_cv_prog_compiler__b=yes 9764 fi 9765 fi 9766 $RM -r conftest* 9767 LDFLAGS="$save_LDFLAGS" 9768 9769fi 9770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9771$as_echo "$lt_cv_prog_compiler__b" >&6; } 9772 9773if test x"$lt_cv_prog_compiler__b" = xyes; then 9774 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9775else 9776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9777fi 9778 9779 ;; 9780 esac 9781 fi 9782 if test "$with_gnu_ld" = no; then 9783 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9784 hardcode_libdir_separator=: 9785 9786 case $host_cpu in 9787 hppa*64*|ia64*) 9788 hardcode_direct=no 9789 hardcode_shlibpath_var=no 9790 ;; 9791 *) 9792 hardcode_direct=yes 9793 hardcode_direct_absolute=yes 9794 export_dynamic_flag_spec='${wl}-E' 9795 9796 # hardcode_minus_L: Not really in the search PATH, 9797 # but as the default location of the library. 9798 hardcode_minus_L=yes 9799 ;; 9800 esac 9801 fi 9802 ;; 9803 9804 irix5* | irix6* | nonstopux*) 9805 if test "$GCC" = yes; then 9806 archive_cmds='$CC -shared $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' 9807 # Try to use the -exported_symbol ld option, if it does not 9808 # work, assume that -exports_file does not work either and 9809 # implicitly export all symbols. 9810 save_LDFLAGS="$LDFLAGS" 9811 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9813/* end confdefs.h. */ 9814int foo(void) {} 9815_ACEOF 9816if ac_fn_c_try_link "$LINENO"; then : 9817 archive_expsym_cmds='$CC -shared $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' 9818 9819fi 9820rm -f core conftest.err conftest.$ac_objext \ 9821 conftest$ac_exeext conftest.$ac_ext 9822 LDFLAGS="$save_LDFLAGS" 9823 else 9824 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' 9825 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' 9826 fi 9827 archive_cmds_need_lc='no' 9828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9829 hardcode_libdir_separator=: 9830 inherit_rpath=yes 9831 link_all_deplibs=yes 9832 ;; 9833 9834 netbsd*) 9835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9837 else 9838 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9839 fi 9840 hardcode_libdir_flag_spec='-R$libdir' 9841 hardcode_direct=yes 9842 hardcode_shlibpath_var=no 9843 ;; 9844 9845 newsos6) 9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9847 hardcode_direct=yes 9848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9849 hardcode_libdir_separator=: 9850 hardcode_shlibpath_var=no 9851 ;; 9852 9853 *nto* | *qnx*) 9854 ;; 9855 9856 openbsd*) 9857 if test -f /usr/libexec/ld.so; then 9858 hardcode_direct=yes 9859 hardcode_shlibpath_var=no 9860 hardcode_direct_absolute=yes 9861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9863 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9864 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9865 export_dynamic_flag_spec='${wl}-E' 9866 else 9867 case $host_os in 9868 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9870 hardcode_libdir_flag_spec='-R$libdir' 9871 ;; 9872 *) 9873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9875 ;; 9876 esac 9877 fi 9878 else 9879 ld_shlibs=no 9880 fi 9881 ;; 9882 9883 os2*) 9884 hardcode_libdir_flag_spec='-L$libdir' 9885 hardcode_minus_L=yes 9886 allow_undefined_flag=unsupported 9887 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' 9888 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9889 ;; 9890 9891 osf3*) 9892 if test "$GCC" = yes; then 9893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9894 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' 9895 else 9896 allow_undefined_flag=' -expect_unresolved \*' 9897 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' 9898 fi 9899 archive_cmds_need_lc='no' 9900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9901 hardcode_libdir_separator=: 9902 ;; 9903 9904 osf4* | osf5*) # as osf3* with the addition of -msym flag 9905 if test "$GCC" = yes; then 9906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9907 archive_cmds='$CC -shared${allow_undefined_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' 9908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9909 else 9910 allow_undefined_flag=' -expect_unresolved \*' 9911 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' 9912 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~ 9913 $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' 9914 9915 # Both c and cxx compiler support -rpath directly 9916 hardcode_libdir_flag_spec='-rpath $libdir' 9917 fi 9918 archive_cmds_need_lc='no' 9919 hardcode_libdir_separator=: 9920 ;; 9921 9922 solaris*) 9923 no_undefined_flag=' -z defs' 9924 if test "$GCC" = yes; then 9925 wlarc='${wl}' 9926 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9928 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9929 else 9930 case `$CC -V 2>&1` in 9931 *"Compilers 5.0"*) 9932 wlarc='' 9933 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9935 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9936 ;; 9937 *) 9938 wlarc='${wl}' 9939 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9941 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9942 ;; 9943 esac 9944 fi 9945 hardcode_libdir_flag_spec='-R$libdir' 9946 hardcode_shlibpath_var=no 9947 case $host_os in 9948 solaris2.[0-5] | solaris2.[0-5].*) ;; 9949 *) 9950 # The compiler driver will combine and reorder linker options, 9951 # but understands `-z linker_flag'. GCC discards it without `$wl', 9952 # but is careful enough not to reorder. 9953 # Supported since Solaris 2.6 (maybe 2.5.1?) 9954 if test "$GCC" = yes; then 9955 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9956 else 9957 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9958 fi 9959 ;; 9960 esac 9961 link_all_deplibs=yes 9962 ;; 9963 9964 sunos4*) 9965 if test "x$host_vendor" = xsequent; then 9966 # Use $CC to link under sequent, because it throws in some extra .o 9967 # files that make .init and .fini sections work. 9968 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9969 else 9970 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9971 fi 9972 hardcode_libdir_flag_spec='-L$libdir' 9973 hardcode_direct=yes 9974 hardcode_minus_L=yes 9975 hardcode_shlibpath_var=no 9976 ;; 9977 9978 sysv4) 9979 case $host_vendor in 9980 sni) 9981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9982 hardcode_direct=yes # is this really true??? 9983 ;; 9984 siemens) 9985 ## LD is ld it makes a PLAMLIB 9986 ## CC just makes a GrossModule. 9987 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9988 reload_cmds='$CC -r -o $output$reload_objs' 9989 hardcode_direct=no 9990 ;; 9991 motorola) 9992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9993 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9994 ;; 9995 esac 9996 runpath_var='LD_RUN_PATH' 9997 hardcode_shlibpath_var=no 9998 ;; 9999 10000 sysv4.3*) 10001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10002 hardcode_shlibpath_var=no 10003 export_dynamic_flag_spec='-Bexport' 10004 ;; 10005 10006 sysv4*MP*) 10007 if test -d /usr/nec; then 10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10009 hardcode_shlibpath_var=no 10010 runpath_var=LD_RUN_PATH 10011 hardcode_runpath_var=yes 10012 ld_shlibs=yes 10013 fi 10014 ;; 10015 10016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10017 no_undefined_flag='${wl}-z,text' 10018 archive_cmds_need_lc=no 10019 hardcode_shlibpath_var=no 10020 runpath_var='LD_RUN_PATH' 10021 10022 if test "$GCC" = yes; then 10023 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10024 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10025 else 10026 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10027 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10028 fi 10029 ;; 10030 10031 sysv5* | sco3.2v5* | sco5v6*) 10032 # Note: We can NOT use -z defs as we might desire, because we do not 10033 # link with -lc, and that would cause any symbols used from libc to 10034 # always be unresolved, which means just about no library would 10035 # ever link correctly. If we're not using GNU ld we use -z text 10036 # though, which does catch some bad symbols but isn't as heavy-handed 10037 # as -z defs. 10038 no_undefined_flag='${wl}-z,text' 10039 allow_undefined_flag='${wl}-z,nodefs' 10040 archive_cmds_need_lc=no 10041 hardcode_shlibpath_var=no 10042 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10043 hardcode_libdir_separator=':' 10044 link_all_deplibs=yes 10045 export_dynamic_flag_spec='${wl}-Bexport' 10046 runpath_var='LD_RUN_PATH' 10047 10048 if test "$GCC" = yes; then 10049 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10050 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10051 else 10052 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10053 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10054 fi 10055 ;; 10056 10057 uts4*) 10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10059 hardcode_libdir_flag_spec='-L$libdir' 10060 hardcode_shlibpath_var=no 10061 ;; 10062 10063 *) 10064 ld_shlibs=no 10065 ;; 10066 esac 10067 10068 if test x$host_vendor = xsni; then 10069 case $host in 10070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10071 export_dynamic_flag_spec='${wl}-Blargedynsym' 10072 ;; 10073 esac 10074 fi 10075 fi 10076 10077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10078$as_echo "$ld_shlibs" >&6; } 10079test "$ld_shlibs" = no && can_build_shared=no 10080 10081with_gnu_ld=$with_gnu_ld 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097# 10098# Do we need to explicitly link libc? 10099# 10100case "x$archive_cmds_need_lc" in 10101x|xyes) 10102 # Assume -lc should be added 10103 archive_cmds_need_lc=yes 10104 10105 if test "$enable_shared" = yes && test "$GCC" = yes; then 10106 case $archive_cmds in 10107 *'~'*) 10108 # FIXME: we may have to deal with multi-command sequences. 10109 ;; 10110 '$CC '*) 10111 # Test whether the compiler implicitly links with -lc since on some 10112 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10113 # to ld, don't add -lc before -lgcc. 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10115$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10116if ${lt_cv_archive_cmds_need_lc+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 $RM conftest* 10120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10121 10122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10123 (eval $ac_compile) 2>&5 10124 ac_status=$? 10125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10126 test $ac_status = 0; } 2>conftest.err; then 10127 soname=conftest 10128 lib=conftest 10129 libobjs=conftest.$ac_objext 10130 deplibs= 10131 wl=$lt_prog_compiler_wl 10132 pic_flag=$lt_prog_compiler_pic 10133 compiler_flags=-v 10134 linker_flags=-v 10135 verstring= 10136 output_objdir=. 10137 libname=conftest 10138 lt_save_allow_undefined_flag=$allow_undefined_flag 10139 allow_undefined_flag= 10140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10141 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10142 ac_status=$? 10143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10144 test $ac_status = 0; } 10145 then 10146 lt_cv_archive_cmds_need_lc=no 10147 else 10148 lt_cv_archive_cmds_need_lc=yes 10149 fi 10150 allow_undefined_flag=$lt_save_allow_undefined_flag 10151 else 10152 cat conftest.err 1>&5 10153 fi 10154 $RM conftest* 10155 10156fi 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10158$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10159 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10160 ;; 10161 esac 10162 fi 10163 ;; 10164esac 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10323$as_echo_n "checking dynamic linker characteristics... " >&6; } 10324 10325if test "$GCC" = yes; then 10326 case $host_os in 10327 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10328 *) lt_awk_arg="/^libraries:/" ;; 10329 esac 10330 case $host_os in 10331 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10332 *) lt_sed_strip_eq="s,=/,/,g" ;; 10333 esac 10334 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10335 case $lt_search_path_spec in 10336 *\;*) 10337 # if the path contains ";" then we assume it to be the separator 10338 # otherwise default to the standard path separator (i.e. ":") - it is 10339 # assumed that no part of a normal pathname contains ";" but that should 10340 # okay in the real world where ";" in dirpaths is itself problematic. 10341 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10342 ;; 10343 *) 10344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10345 ;; 10346 esac 10347 # Ok, now we have the path, separated by spaces, we can step through it 10348 # and add multilib dir if necessary. 10349 lt_tmp_lt_search_path_spec= 10350 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10351 for lt_sys_path in $lt_search_path_spec; do 10352 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10354 else 10355 test -d "$lt_sys_path" && \ 10356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10357 fi 10358 done 10359 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10360BEGIN {RS=" "; FS="/|\n";} { 10361 lt_foo=""; 10362 lt_count=0; 10363 for (lt_i = NF; lt_i > 0; lt_i--) { 10364 if ($lt_i != "" && $lt_i != ".") { 10365 if ($lt_i == "..") { 10366 lt_count++; 10367 } else { 10368 if (lt_count == 0) { 10369 lt_foo="/" $lt_i lt_foo; 10370 } else { 10371 lt_count--; 10372 } 10373 } 10374 } 10375 } 10376 if (lt_foo != "") { lt_freq[lt_foo]++; } 10377 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10378}'` 10379 # AWK program above erroneously prepends '/' to C:/dos/paths 10380 # for these hosts. 10381 case $host_os in 10382 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10383 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10384 esac 10385 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10386else 10387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10388fi 10389library_names_spec= 10390libname_spec='lib$name' 10391soname_spec= 10392shrext_cmds=".so" 10393postinstall_cmds= 10394postuninstall_cmds= 10395finish_cmds= 10396finish_eval= 10397shlibpath_var= 10398shlibpath_overrides_runpath=unknown 10399version_type=none 10400dynamic_linker="$host_os ld.so" 10401sys_lib_dlsearch_path_spec="/lib /usr/lib" 10402need_lib_prefix=unknown 10403hardcode_into_libs=no 10404 10405# when you set need_version to no, make sure it does not cause -set_version 10406# flags to be left without arguments 10407need_version=unknown 10408 10409case $host_os in 10410aix3*) 10411 version_type=linux 10412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10413 shlibpath_var=LIBPATH 10414 10415 # AIX 3 has no versioning support, so we append a major version to the name. 10416 soname_spec='${libname}${release}${shared_ext}$major' 10417 ;; 10418 10419aix[4-9]*) 10420 version_type=linux 10421 need_lib_prefix=no 10422 need_version=no 10423 hardcode_into_libs=yes 10424 if test "$host_cpu" = ia64; then 10425 # AIX 5 supports IA64 10426 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10427 shlibpath_var=LD_LIBRARY_PATH 10428 else 10429 # With GCC up to 2.95.x, collect2 would create an import file 10430 # for dependence libraries. The import file would start with 10431 # the line `#! .'. This would cause the generated library to 10432 # depend on `.', always an invalid library. This was fixed in 10433 # development snapshots of GCC prior to 3.0. 10434 case $host_os in 10435 aix4 | aix4.[01] | aix4.[01].*) 10436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10437 echo ' yes ' 10438 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10439 : 10440 else 10441 can_build_shared=no 10442 fi 10443 ;; 10444 esac 10445 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10446 # soname into executable. Probably we can add versioning support to 10447 # collect2, so additional links can be useful in future. 10448 if test "$aix_use_runtimelinking" = yes; then 10449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10450 # instead of lib<name>.a to let people know that these are not 10451 # typical AIX shared libraries. 10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10453 else 10454 # We preserve .a as extension for shared libraries through AIX4.2 10455 # and later when we are not doing run time linking. 10456 library_names_spec='${libname}${release}.a $libname.a' 10457 soname_spec='${libname}${release}${shared_ext}$major' 10458 fi 10459 shlibpath_var=LIBPATH 10460 fi 10461 ;; 10462 10463amigaos*) 10464 case $host_cpu in 10465 powerpc) 10466 # Since July 2007 AmigaOS4 officially supports .so libraries. 10467 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10469 ;; 10470 m68k) 10471 library_names_spec='$libname.ixlibrary $libname.a' 10472 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10473 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10474 ;; 10475 esac 10476 ;; 10477 10478beos*) 10479 library_names_spec='${libname}${shared_ext}' 10480 dynamic_linker="$host_os ld.so" 10481 shlibpath_var=LIBRARY_PATH 10482 ;; 10483 10484bsdi[45]*) 10485 version_type=linux 10486 need_version=no 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10488 soname_spec='${libname}${release}${shared_ext}$major' 10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10490 shlibpath_var=LD_LIBRARY_PATH 10491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10493 # the default ld.so.conf also contains /usr/contrib/lib and 10494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10495 # libtool to hard-code these into programs 10496 ;; 10497 10498cygwin* | mingw* | pw32* | cegcc*) 10499 version_type=windows 10500 shrext_cmds=".dll" 10501 need_version=no 10502 need_lib_prefix=no 10503 10504 case $GCC,$host_os in 10505 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10506 library_names_spec='$libname.dll.a' 10507 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10508 postinstall_cmds='base_file=`basename \${file}`~ 10509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10510 dldir=$destdir/`dirname \$dlpath`~ 10511 test -d \$dldir || mkdir -p \$dldir~ 10512 $install_prog $dir/$dlname \$dldir/$dlname~ 10513 chmod a+x \$dldir/$dlname~ 10514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10516 fi' 10517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10518 dlpath=$dir/\$dldll~ 10519 $RM \$dlpath' 10520 shlibpath_overrides_runpath=yes 10521 10522 case $host_os in 10523 cygwin*) 10524 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10525 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10526 10527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10528 ;; 10529 mingw* | cegcc*) 10530 # MinGW DLLs use traditional 'lib' prefix 10531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10532 ;; 10533 pw32*) 10534 # pw32 DLLs use 'pw' prefix rather than 'lib' 10535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10536 ;; 10537 esac 10538 ;; 10539 10540 *) 10541 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10542 ;; 10543 esac 10544 dynamic_linker='Win32 ld.exe' 10545 # FIXME: first we should search . and the directory the executable is in 10546 shlibpath_var=PATH 10547 ;; 10548 10549darwin* | rhapsody*) 10550 dynamic_linker="$host_os dyld" 10551 version_type=darwin 10552 need_lib_prefix=no 10553 need_version=no 10554 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10555 soname_spec='${libname}${release}${major}$shared_ext' 10556 shlibpath_overrides_runpath=yes 10557 shlibpath_var=DYLD_LIBRARY_PATH 10558 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10559 10560 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10562 ;; 10563 10564dgux*) 10565 version_type=linux 10566 need_lib_prefix=no 10567 need_version=no 10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10569 soname_spec='${libname}${release}${shared_ext}$major' 10570 shlibpath_var=LD_LIBRARY_PATH 10571 ;; 10572 10573freebsd* | dragonfly*) 10574 # DragonFly does not have aout. When/if they implement a new 10575 # versioning mechanism, adjust this. 10576 if test -x /usr/bin/objformat; then 10577 objformat=`/usr/bin/objformat` 10578 else 10579 case $host_os in 10580 freebsd[23].*) objformat=aout ;; 10581 *) objformat=elf ;; 10582 esac 10583 fi 10584 version_type=freebsd-$objformat 10585 case $version_type in 10586 freebsd-elf*) 10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10588 need_version=no 10589 need_lib_prefix=no 10590 ;; 10591 freebsd-*) 10592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10593 need_version=yes 10594 ;; 10595 esac 10596 shlibpath_var=LD_LIBRARY_PATH 10597 case $host_os in 10598 freebsd2.*) 10599 shlibpath_overrides_runpath=yes 10600 ;; 10601 freebsd3.[01]* | freebsdelf3.[01]*) 10602 shlibpath_overrides_runpath=yes 10603 hardcode_into_libs=yes 10604 ;; 10605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10607 shlibpath_overrides_runpath=no 10608 hardcode_into_libs=yes 10609 ;; 10610 *) # from 4.6 on, and DragonFly 10611 shlibpath_overrides_runpath=yes 10612 hardcode_into_libs=yes 10613 ;; 10614 esac 10615 ;; 10616 10617gnu*) 10618 version_type=linux 10619 need_lib_prefix=no 10620 need_version=no 10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10622 soname_spec='${libname}${release}${shared_ext}$major' 10623 shlibpath_var=LD_LIBRARY_PATH 10624 hardcode_into_libs=yes 10625 ;; 10626 10627haiku*) 10628 version_type=linux 10629 need_lib_prefix=no 10630 need_version=no 10631 dynamic_linker="$host_os runtime_loader" 10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10633 soname_spec='${libname}${release}${shared_ext}$major' 10634 shlibpath_var=LIBRARY_PATH 10635 shlibpath_overrides_runpath=yes 10636 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10637 hardcode_into_libs=yes 10638 ;; 10639 10640hpux9* | hpux10* | hpux11*) 10641 # Give a soname corresponding to the major version so that dld.sl refuses to 10642 # link against other versions. 10643 version_type=sunos 10644 need_lib_prefix=no 10645 need_version=no 10646 case $host_cpu in 10647 ia64*) 10648 shrext_cmds='.so' 10649 hardcode_into_libs=yes 10650 dynamic_linker="$host_os dld.so" 10651 shlibpath_var=LD_LIBRARY_PATH 10652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10654 soname_spec='${libname}${release}${shared_ext}$major' 10655 if test "X$HPUX_IA64_MODE" = X32; then 10656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10657 else 10658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10659 fi 10660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10661 ;; 10662 hppa*64*) 10663 shrext_cmds='.sl' 10664 hardcode_into_libs=yes 10665 dynamic_linker="$host_os dld.sl" 10666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10669 soname_spec='${libname}${release}${shared_ext}$major' 10670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10672 ;; 10673 *) 10674 shrext_cmds='.sl' 10675 dynamic_linker="$host_os dld.sl" 10676 shlibpath_var=SHLIB_PATH 10677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10679 soname_spec='${libname}${release}${shared_ext}$major' 10680 ;; 10681 esac 10682 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10683 postinstall_cmds='chmod 555 $lib' 10684 # or fails outright, so override atomically: 10685 install_override_mode=555 10686 ;; 10687 10688interix[3-9]*) 10689 version_type=linux 10690 need_lib_prefix=no 10691 need_version=no 10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10693 soname_spec='${libname}${release}${shared_ext}$major' 10694 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 shlibpath_overrides_runpath=no 10697 hardcode_into_libs=yes 10698 ;; 10699 10700irix5* | irix6* | nonstopux*) 10701 case $host_os in 10702 nonstopux*) version_type=nonstopux ;; 10703 *) 10704 if test "$lt_cv_prog_gnu_ld" = yes; then 10705 version_type=linux 10706 else 10707 version_type=irix 10708 fi ;; 10709 esac 10710 need_lib_prefix=no 10711 need_version=no 10712 soname_spec='${libname}${release}${shared_ext}$major' 10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10714 case $host_os in 10715 irix5* | nonstopux*) 10716 libsuff= shlibsuff= 10717 ;; 10718 *) 10719 case $LD in # libtool.m4 will add one of these switches to LD 10720 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10721 libsuff= shlibsuff= libmagic=32-bit;; 10722 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10723 libsuff=32 shlibsuff=N32 libmagic=N32;; 10724 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10725 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10726 *) libsuff= shlibsuff= libmagic=never-match;; 10727 esac 10728 ;; 10729 esac 10730 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10731 shlibpath_overrides_runpath=no 10732 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10733 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10734 hardcode_into_libs=yes 10735 ;; 10736 10737# No shared lib support for Linux oldld, aout, or coff. 10738linux*oldld* | linux*aout* | linux*coff*) 10739 dynamic_linker=no 10740 ;; 10741 10742# This must be Linux ELF. 10743 10744# uclinux* changes (here and below) have been submitted to the libtool 10745# project, but have not yet been accepted: they are GCC-local changes 10746# for the time being. (See 10747# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10748linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 10749 version_type=linux 10750 need_lib_prefix=no 10751 need_version=no 10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10753 soname_spec='${libname}${release}${shared_ext}$major' 10754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10755 shlibpath_var=LD_LIBRARY_PATH 10756 shlibpath_overrides_runpath=no 10757 10758 # Some binutils ld are patched to set DT_RUNPATH 10759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10760 $as_echo_n "(cached) " >&6 10761else 10762 lt_cv_shlibpath_overrides_runpath=no 10763 save_LDFLAGS=$LDFLAGS 10764 save_libdir=$libdir 10765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10768/* end confdefs.h. */ 10769 10770int 10771main () 10772{ 10773 10774 ; 10775 return 0; 10776} 10777_ACEOF 10778if ac_fn_c_try_link "$LINENO"; then : 10779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10780 lt_cv_shlibpath_overrides_runpath=yes 10781fi 10782fi 10783rm -f core conftest.err conftest.$ac_objext \ 10784 conftest$ac_exeext conftest.$ac_ext 10785 LDFLAGS=$save_LDFLAGS 10786 libdir=$save_libdir 10787 10788fi 10789 10790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10791 10792 # This implies no fast_install, which is unacceptable. 10793 # Some rework will be needed to allow for fast_install 10794 # before this can be enabled. 10795 hardcode_into_libs=yes 10796 10797 # Append ld.so.conf contents to the search path 10798 if test -f /etc/ld.so.conf; then 10799 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' ' '` 10800 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10801 fi 10802 10803 # We used to test for /lib/ld.so.1 and disable shared libraries on 10804 # powerpc, because MkLinux only supported shared libraries with the 10805 # GNU dynamic linker. Since this was broken with cross compilers, 10806 # most powerpc-linux boxes support dynamic linking these days and 10807 # people can always --disable-shared, the test was removed, and we 10808 # assume the GNU/Linux dynamic linker is in use. 10809 dynamic_linker='GNU/Linux ld.so' 10810 ;; 10811 10812netbsd*) 10813 version_type=sunos 10814 need_lib_prefix=no 10815 need_version=no 10816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10819 dynamic_linker='NetBSD (a.out) ld.so' 10820 else 10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10822 soname_spec='${libname}${release}${shared_ext}$major' 10823 dynamic_linker='NetBSD ld.elf_so' 10824 fi 10825 shlibpath_var=LD_LIBRARY_PATH 10826 shlibpath_overrides_runpath=yes 10827 hardcode_into_libs=yes 10828 ;; 10829 10830newsos6) 10831 version_type=linux 10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10833 shlibpath_var=LD_LIBRARY_PATH 10834 shlibpath_overrides_runpath=yes 10835 ;; 10836 10837*nto* | *qnx*) 10838 version_type=qnx 10839 need_lib_prefix=no 10840 need_version=no 10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10842 soname_spec='${libname}${release}${shared_ext}$major' 10843 shlibpath_var=LD_LIBRARY_PATH 10844 shlibpath_overrides_runpath=no 10845 hardcode_into_libs=yes 10846 dynamic_linker='ldqnx.so' 10847 ;; 10848 10849openbsd*) 10850 version_type=sunos 10851 sys_lib_dlsearch_path_spec="/usr/lib" 10852 need_lib_prefix=no 10853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10854 case $host_os in 10855 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10856 *) need_version=no ;; 10857 esac 10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10860 shlibpath_var=LD_LIBRARY_PATH 10861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10862 case $host_os in 10863 openbsd2.[89] | openbsd2.[89].*) 10864 shlibpath_overrides_runpath=no 10865 ;; 10866 *) 10867 shlibpath_overrides_runpath=yes 10868 ;; 10869 esac 10870 else 10871 shlibpath_overrides_runpath=yes 10872 fi 10873 ;; 10874 10875os2*) 10876 libname_spec='$name' 10877 shrext_cmds=".dll" 10878 need_lib_prefix=no 10879 library_names_spec='$libname${shared_ext} $libname.a' 10880 dynamic_linker='OS/2 ld.exe' 10881 shlibpath_var=LIBPATH 10882 ;; 10883 10884osf3* | osf4* | osf5*) 10885 version_type=osf 10886 need_lib_prefix=no 10887 need_version=no 10888 soname_spec='${libname}${release}${shared_ext}$major' 10889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10890 shlibpath_var=LD_LIBRARY_PATH 10891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10893 ;; 10894 10895rdos*) 10896 dynamic_linker=no 10897 ;; 10898 10899solaris*) 10900 version_type=linux 10901 need_lib_prefix=no 10902 need_version=no 10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10904 soname_spec='${libname}${release}${shared_ext}$major' 10905 shlibpath_var=LD_LIBRARY_PATH 10906 shlibpath_overrides_runpath=yes 10907 hardcode_into_libs=yes 10908 # ldd complains unless libraries are executable 10909 postinstall_cmds='chmod +x $lib' 10910 ;; 10911 10912sunos4*) 10913 version_type=sunos 10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10916 shlibpath_var=LD_LIBRARY_PATH 10917 shlibpath_overrides_runpath=yes 10918 if test "$with_gnu_ld" = yes; then 10919 need_lib_prefix=no 10920 fi 10921 need_version=yes 10922 ;; 10923 10924sysv4 | sysv4.3*) 10925 version_type=linux 10926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10927 soname_spec='${libname}${release}${shared_ext}$major' 10928 shlibpath_var=LD_LIBRARY_PATH 10929 case $host_vendor in 10930 sni) 10931 shlibpath_overrides_runpath=no 10932 need_lib_prefix=no 10933 runpath_var=LD_RUN_PATH 10934 ;; 10935 siemens) 10936 need_lib_prefix=no 10937 ;; 10938 motorola) 10939 need_lib_prefix=no 10940 need_version=no 10941 shlibpath_overrides_runpath=no 10942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10943 ;; 10944 esac 10945 ;; 10946 10947sysv4*MP*) 10948 if test -d /usr/nec ;then 10949 version_type=linux 10950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10951 soname_spec='$libname${shared_ext}.$major' 10952 shlibpath_var=LD_LIBRARY_PATH 10953 fi 10954 ;; 10955 10956sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10957 version_type=freebsd-elf 10958 need_lib_prefix=no 10959 need_version=no 10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10961 soname_spec='${libname}${release}${shared_ext}$major' 10962 shlibpath_var=LD_LIBRARY_PATH 10963 shlibpath_overrides_runpath=yes 10964 hardcode_into_libs=yes 10965 if test "$with_gnu_ld" = yes; then 10966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10967 else 10968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10969 case $host_os in 10970 sco3.2v5*) 10971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10972 ;; 10973 esac 10974 fi 10975 sys_lib_dlsearch_path_spec='/usr/lib' 10976 ;; 10977 10978tpf*) 10979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10980 version_type=linux 10981 need_lib_prefix=no 10982 need_version=no 10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10984 shlibpath_var=LD_LIBRARY_PATH 10985 shlibpath_overrides_runpath=no 10986 hardcode_into_libs=yes 10987 ;; 10988 10989uts4*) 10990 version_type=linux 10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10992 soname_spec='${libname}${release}${shared_ext}$major' 10993 shlibpath_var=LD_LIBRARY_PATH 10994 ;; 10995 10996*) 10997 dynamic_linker=no 10998 ;; 10999esac 11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11001$as_echo "$dynamic_linker" >&6; } 11002test "$dynamic_linker" = no && can_build_shared=no 11003 11004variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11005if test "$GCC" = yes; then 11006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11007fi 11008 11009if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11011fi 11012if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11014fi 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11108$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11109hardcode_action= 11110if test -n "$hardcode_libdir_flag_spec" || 11111 test -n "$runpath_var" || 11112 test "X$hardcode_automatic" = "Xyes" ; then 11113 11114 # We can hardcode non-existent directories. 11115 if test "$hardcode_direct" != no && 11116 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11117 # have to relink, otherwise we might link with an installed library 11118 # when we should be linking with a yet-to-be-installed one 11119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11120 test "$hardcode_minus_L" != no; then 11121 # Linking always hardcodes the temporary library directory. 11122 hardcode_action=relink 11123 else 11124 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11125 hardcode_action=immediate 11126 fi 11127else 11128 # We cannot hardcode anything, or else we can only hardcode existing 11129 # directories. 11130 hardcode_action=unsupported 11131fi 11132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11133$as_echo "$hardcode_action" >&6; } 11134 11135if test "$hardcode_action" = relink || 11136 test "$inherit_rpath" = yes; then 11137 # Fast installation is not supported 11138 enable_fast_install=no 11139elif test "$shlibpath_overrides_runpath" = yes || 11140 test "$enable_shared" = no; then 11141 # Fast installation is not necessary 11142 enable_fast_install=needless 11143fi 11144 11145 11146 11147 11148 11149 11150 if test "x$enable_dlopen" != xyes; then 11151 enable_dlopen=unknown 11152 enable_dlopen_self=unknown 11153 enable_dlopen_self_static=unknown 11154else 11155 lt_cv_dlopen=no 11156 lt_cv_dlopen_libs= 11157 11158 case $host_os in 11159 beos*) 11160 lt_cv_dlopen="load_add_on" 11161 lt_cv_dlopen_libs= 11162 lt_cv_dlopen_self=yes 11163 ;; 11164 11165 mingw* | pw32* | cegcc*) 11166 lt_cv_dlopen="LoadLibrary" 11167 lt_cv_dlopen_libs= 11168 ;; 11169 11170 cygwin*) 11171 lt_cv_dlopen="dlopen" 11172 lt_cv_dlopen_libs= 11173 ;; 11174 11175 darwin*) 11176 # if libdl is installed we need to link against it 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11178$as_echo_n "checking for dlopen in -ldl... " >&6; } 11179if ${ac_cv_lib_dl_dlopen+:} false; then : 11180 $as_echo_n "(cached) " >&6 11181else 11182 ac_check_lib_save_LIBS=$LIBS 11183LIBS="-ldl $LIBS" 11184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11185/* end confdefs.h. */ 11186 11187/* Override any GCC internal prototype to avoid an error. 11188 Use char because int might match the return type of a GCC 11189 builtin and then its argument prototype would still apply. */ 11190#ifdef __cplusplus 11191extern "C" 11192#endif 11193char dlopen (); 11194int 11195main () 11196{ 11197return dlopen (); 11198 ; 11199 return 0; 11200} 11201_ACEOF 11202if ac_fn_c_try_link "$LINENO"; then : 11203 ac_cv_lib_dl_dlopen=yes 11204else 11205 ac_cv_lib_dl_dlopen=no 11206fi 11207rm -f core conftest.err conftest.$ac_objext \ 11208 conftest$ac_exeext conftest.$ac_ext 11209LIBS=$ac_check_lib_save_LIBS 11210fi 11211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11212$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11213if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11215else 11216 11217 lt_cv_dlopen="dyld" 11218 lt_cv_dlopen_libs= 11219 lt_cv_dlopen_self=yes 11220 11221fi 11222 11223 ;; 11224 11225 *) 11226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11227if test "x$ac_cv_func_shl_load" = xyes; then : 11228 lt_cv_dlopen="shl_load" 11229else 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11231$as_echo_n "checking for shl_load in -ldld... " >&6; } 11232if ${ac_cv_lib_dld_shl_load+:} false; then : 11233 $as_echo_n "(cached) " >&6 11234else 11235 ac_check_lib_save_LIBS=$LIBS 11236LIBS="-ldld $LIBS" 11237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11238/* end confdefs.h. */ 11239 11240/* Override any GCC internal prototype to avoid an error. 11241 Use char because int might match the return type of a GCC 11242 builtin and then its argument prototype would still apply. */ 11243#ifdef __cplusplus 11244extern "C" 11245#endif 11246char shl_load (); 11247int 11248main () 11249{ 11250return shl_load (); 11251 ; 11252 return 0; 11253} 11254_ACEOF 11255if ac_fn_c_try_link "$LINENO"; then : 11256 ac_cv_lib_dld_shl_load=yes 11257else 11258 ac_cv_lib_dld_shl_load=no 11259fi 11260rm -f core conftest.err conftest.$ac_objext \ 11261 conftest$ac_exeext conftest.$ac_ext 11262LIBS=$ac_check_lib_save_LIBS 11263fi 11264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11265$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11266if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11268else 11269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11270if test "x$ac_cv_func_dlopen" = xyes; then : 11271 lt_cv_dlopen="dlopen" 11272else 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11274$as_echo_n "checking for dlopen in -ldl... " >&6; } 11275if ${ac_cv_lib_dl_dlopen+:} false; then : 11276 $as_echo_n "(cached) " >&6 11277else 11278 ac_check_lib_save_LIBS=$LIBS 11279LIBS="-ldl $LIBS" 11280cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11281/* end confdefs.h. */ 11282 11283/* Override any GCC internal prototype to avoid an error. 11284 Use char because int might match the return type of a GCC 11285 builtin and then its argument prototype would still apply. */ 11286#ifdef __cplusplus 11287extern "C" 11288#endif 11289char dlopen (); 11290int 11291main () 11292{ 11293return dlopen (); 11294 ; 11295 return 0; 11296} 11297_ACEOF 11298if ac_fn_c_try_link "$LINENO"; then : 11299 ac_cv_lib_dl_dlopen=yes 11300else 11301 ac_cv_lib_dl_dlopen=no 11302fi 11303rm -f core conftest.err conftest.$ac_objext \ 11304 conftest$ac_exeext conftest.$ac_ext 11305LIBS=$ac_check_lib_save_LIBS 11306fi 11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11308$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11309if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11311else 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11313$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11314if ${ac_cv_lib_svld_dlopen+:} false; then : 11315 $as_echo_n "(cached) " >&6 11316else 11317 ac_check_lib_save_LIBS=$LIBS 11318LIBS="-lsvld $LIBS" 11319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11320/* end confdefs.h. */ 11321 11322/* Override any GCC internal prototype to avoid an error. 11323 Use char because int might match the return type of a GCC 11324 builtin and then its argument prototype would still apply. */ 11325#ifdef __cplusplus 11326extern "C" 11327#endif 11328char dlopen (); 11329int 11330main () 11331{ 11332return dlopen (); 11333 ; 11334 return 0; 11335} 11336_ACEOF 11337if ac_fn_c_try_link "$LINENO"; then : 11338 ac_cv_lib_svld_dlopen=yes 11339else 11340 ac_cv_lib_svld_dlopen=no 11341fi 11342rm -f core conftest.err conftest.$ac_objext \ 11343 conftest$ac_exeext conftest.$ac_ext 11344LIBS=$ac_check_lib_save_LIBS 11345fi 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11347$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11348if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11350else 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11352$as_echo_n "checking for dld_link in -ldld... " >&6; } 11353if ${ac_cv_lib_dld_dld_link+:} false; then : 11354 $as_echo_n "(cached) " >&6 11355else 11356 ac_check_lib_save_LIBS=$LIBS 11357LIBS="-ldld $LIBS" 11358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11359/* end confdefs.h. */ 11360 11361/* Override any GCC internal prototype to avoid an error. 11362 Use char because int might match the return type of a GCC 11363 builtin and then its argument prototype would still apply. */ 11364#ifdef __cplusplus 11365extern "C" 11366#endif 11367char dld_link (); 11368int 11369main () 11370{ 11371return dld_link (); 11372 ; 11373 return 0; 11374} 11375_ACEOF 11376if ac_fn_c_try_link "$LINENO"; then : 11377 ac_cv_lib_dld_dld_link=yes 11378else 11379 ac_cv_lib_dld_dld_link=no 11380fi 11381rm -f core conftest.err conftest.$ac_objext \ 11382 conftest$ac_exeext conftest.$ac_ext 11383LIBS=$ac_check_lib_save_LIBS 11384fi 11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11386$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11387if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11389fi 11390 11391 11392fi 11393 11394 11395fi 11396 11397 11398fi 11399 11400 11401fi 11402 11403 11404fi 11405 11406 ;; 11407 esac 11408 11409 if test "x$lt_cv_dlopen" != xno; then 11410 enable_dlopen=yes 11411 else 11412 enable_dlopen=no 11413 fi 11414 11415 case $lt_cv_dlopen in 11416 dlopen) 11417 save_CPPFLAGS="$CPPFLAGS" 11418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11419 11420 save_LDFLAGS="$LDFLAGS" 11421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11422 11423 save_LIBS="$LIBS" 11424 LIBS="$lt_cv_dlopen_libs $LIBS" 11425 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11427$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11428if ${lt_cv_dlopen_self+:} false; then : 11429 $as_echo_n "(cached) " >&6 11430else 11431 if test "$cross_compiling" = yes; then : 11432 lt_cv_dlopen_self=cross 11433else 11434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11435 lt_status=$lt_dlunknown 11436 cat > conftest.$ac_ext <<_LT_EOF 11437#line 11437 "configure" 11438#include "confdefs.h" 11439 11440#if HAVE_DLFCN_H 11441#include <dlfcn.h> 11442#endif 11443 11444#include <stdio.h> 11445 11446#ifdef RTLD_GLOBAL 11447# define LT_DLGLOBAL RTLD_GLOBAL 11448#else 11449# ifdef DL_GLOBAL 11450# define LT_DLGLOBAL DL_GLOBAL 11451# else 11452# define LT_DLGLOBAL 0 11453# endif 11454#endif 11455 11456/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11457 find out it does not work in some platform. */ 11458#ifndef LT_DLLAZY_OR_NOW 11459# ifdef RTLD_LAZY 11460# define LT_DLLAZY_OR_NOW RTLD_LAZY 11461# else 11462# ifdef DL_LAZY 11463# define LT_DLLAZY_OR_NOW DL_LAZY 11464# else 11465# ifdef RTLD_NOW 11466# define LT_DLLAZY_OR_NOW RTLD_NOW 11467# else 11468# ifdef DL_NOW 11469# define LT_DLLAZY_OR_NOW DL_NOW 11470# else 11471# define LT_DLLAZY_OR_NOW 0 11472# endif 11473# endif 11474# endif 11475# endif 11476#endif 11477 11478/* When -fvisbility=hidden is used, assume the code has been annotated 11479 correspondingly for the symbols needed. */ 11480#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11481void fnord () __attribute__((visibility("default"))); 11482#endif 11483 11484void fnord () { int i=42; } 11485int main () 11486{ 11487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11488 int status = $lt_dlunknown; 11489 11490 if (self) 11491 { 11492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11493 else 11494 { 11495 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11496 else puts (dlerror ()); 11497 } 11498 /* dlclose (self); */ 11499 } 11500 else 11501 puts (dlerror ()); 11502 11503 return status; 11504} 11505_LT_EOF 11506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11507 (eval $ac_link) 2>&5 11508 ac_status=$? 11509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11510 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11511 (./conftest; exit; ) >&5 2>/dev/null 11512 lt_status=$? 11513 case x$lt_status in 11514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11517 esac 11518 else : 11519 # compilation failed 11520 lt_cv_dlopen_self=no 11521 fi 11522fi 11523rm -fr conftest* 11524 11525 11526fi 11527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11528$as_echo "$lt_cv_dlopen_self" >&6; } 11529 11530 if test "x$lt_cv_dlopen_self" = xyes; then 11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11533$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11534if ${lt_cv_dlopen_self_static+:} false; then : 11535 $as_echo_n "(cached) " >&6 11536else 11537 if test "$cross_compiling" = yes; then : 11538 lt_cv_dlopen_self_static=cross 11539else 11540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11541 lt_status=$lt_dlunknown 11542 cat > conftest.$ac_ext <<_LT_EOF 11543#line 11543 "configure" 11544#include "confdefs.h" 11545 11546#if HAVE_DLFCN_H 11547#include <dlfcn.h> 11548#endif 11549 11550#include <stdio.h> 11551 11552#ifdef RTLD_GLOBAL 11553# define LT_DLGLOBAL RTLD_GLOBAL 11554#else 11555# ifdef DL_GLOBAL 11556# define LT_DLGLOBAL DL_GLOBAL 11557# else 11558# define LT_DLGLOBAL 0 11559# endif 11560#endif 11561 11562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11563 find out it does not work in some platform. */ 11564#ifndef LT_DLLAZY_OR_NOW 11565# ifdef RTLD_LAZY 11566# define LT_DLLAZY_OR_NOW RTLD_LAZY 11567# else 11568# ifdef DL_LAZY 11569# define LT_DLLAZY_OR_NOW DL_LAZY 11570# else 11571# ifdef RTLD_NOW 11572# define LT_DLLAZY_OR_NOW RTLD_NOW 11573# else 11574# ifdef DL_NOW 11575# define LT_DLLAZY_OR_NOW DL_NOW 11576# else 11577# define LT_DLLAZY_OR_NOW 0 11578# endif 11579# endif 11580# endif 11581# endif 11582#endif 11583 11584/* When -fvisbility=hidden is used, assume the code has been annotated 11585 correspondingly for the symbols needed. */ 11586#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11587void fnord () __attribute__((visibility("default"))); 11588#endif 11589 11590void fnord () { int i=42; } 11591int main () 11592{ 11593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11594 int status = $lt_dlunknown; 11595 11596 if (self) 11597 { 11598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11599 else 11600 { 11601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11602 else puts (dlerror ()); 11603 } 11604 /* dlclose (self); */ 11605 } 11606 else 11607 puts (dlerror ()); 11608 11609 return status; 11610} 11611_LT_EOF 11612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11613 (eval $ac_link) 2>&5 11614 ac_status=$? 11615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11617 (./conftest; exit; ) >&5 2>/dev/null 11618 lt_status=$? 11619 case x$lt_status in 11620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11622 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11623 esac 11624 else : 11625 # compilation failed 11626 lt_cv_dlopen_self_static=no 11627 fi 11628fi 11629rm -fr conftest* 11630 11631 11632fi 11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11634$as_echo "$lt_cv_dlopen_self_static" >&6; } 11635 fi 11636 11637 CPPFLAGS="$save_CPPFLAGS" 11638 LDFLAGS="$save_LDFLAGS" 11639 LIBS="$save_LIBS" 11640 ;; 11641 esac 11642 11643 case $lt_cv_dlopen_self in 11644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11645 *) enable_dlopen_self=unknown ;; 11646 esac 11647 11648 case $lt_cv_dlopen_self_static in 11649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11650 *) enable_dlopen_self_static=unknown ;; 11651 esac 11652fi 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670striplib= 11671old_striplib= 11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11673$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11674if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11676 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11678$as_echo "yes" >&6; } 11679else 11680# FIXME - insert some real tests, host_os isn't really good enough 11681 case $host_os in 11682 darwin*) 11683 if test -n "$STRIP" ; then 11684 striplib="$STRIP -x" 11685 old_striplib="$STRIP -S" 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11687$as_echo "yes" >&6; } 11688 else 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11690$as_echo "no" >&6; } 11691 fi 11692 ;; 11693 *) 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11695$as_echo "no" >&6; } 11696 ;; 11697 esac 11698fi 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 # Report which library types will actually be built 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11713$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11715$as_echo "$can_build_shared" >&6; } 11716 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11718$as_echo_n "checking whether to build shared libraries... " >&6; } 11719 test "$can_build_shared" = "no" && enable_shared=no 11720 11721 # On AIX, shared libraries and static libraries use the same namespace, and 11722 # are all built from PIC. 11723 case $host_os in 11724 aix3*) 11725 test "$enable_shared" = yes && enable_static=no 11726 if test -n "$RANLIB"; then 11727 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11728 postinstall_cmds='$RANLIB $lib' 11729 fi 11730 ;; 11731 11732 aix[4-9]*) 11733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11734 test "$enable_shared" = yes && enable_static=no 11735 fi 11736 ;; 11737 esac 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11739$as_echo "$enable_shared" >&6; } 11740 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11742$as_echo_n "checking whether to build static libraries... " >&6; } 11743 # Make sure either enable_shared or enable_static is yes. 11744 test "$enable_shared" = yes || enable_static=yes 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11746$as_echo "$enable_static" >&6; } 11747 11748 11749 11750 11751fi 11752ac_ext=c 11753ac_cpp='$CPP $CPPFLAGS' 11754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11756ac_compiler_gnu=$ac_cv_c_compiler_gnu 11757 11758CC="$lt_save_CC" 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 ac_config_commands="$ac_config_commands libtool" 11773 11774 11775 11776 11777# Only expand once: 11778 11779 11780 11781 11782 11783case $host in 11784 *-cygwin* | *-mingw*) 11785 # 'host' will be top-level target in the case of a target lib, 11786 # we must compare to with_cross_host to decide if this is a native 11787 # or cross-compiler and select where to install dlls appropriately. 11788 if test -n "$with_cross_host" && 11789 test x"$with_cross_host" != x"no"; then 11790 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 11791 else 11792 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 11793 fi 11794 ;; 11795 *) 11796 lt_host_flags= 11797 ;; 11798esac 11799 11800 11801 11802 11803 11804 11805 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11807$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11808 # Check whether --enable-maintainer-mode was given. 11809if test "${enable_maintainer_mode+set}" = set; then : 11810 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11811else 11812 USE_MAINTAINER_MODE=no 11813fi 11814 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11816$as_echo "$USE_MAINTAINER_MODE" >&6; } 11817 if test $USE_MAINTAINER_MODE = yes; then 11818 MAINTAINER_MODE_TRUE= 11819 MAINTAINER_MODE_FALSE='#' 11820else 11821 MAINTAINER_MODE_TRUE='#' 11822 MAINTAINER_MODE_FALSE= 11823fi 11824 11825 MAINT=$MAINTAINER_MODE_TRUE 11826 11827 11828 11829# Create a spec file, so that compile/link tests don't fail 11830test -f libgfortran.spec || touch libgfortran.spec 11831FCFLAGS="$FCFLAGS -L." 11832 11833# We need gfortran to compile parts of the library 11834# We can't use AC_PROG_FC because it expects a fully working gfortran. 11835#AC_PROG_FC(gfortran) 11836case `echo $GFORTRAN` in 11837 -* | no* ) 11838 FC=no ;; 11839 *) 11840 set dummy $GFORTRAN; ac_word=$2 11841 if test -x "$ac_word"; then 11842 FC="$GFORTRAN" 11843 else 11844 FC=no 11845 fi ;; 11846esac 11847ac_ext=${ac_fc_srcext-f} 11848ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 11849ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 11850ac_compiler_gnu=$ac_cv_fc_compiler_gnu 11851if test -n "$ac_tool_prefix"; then 11852 for ac_prog in gfortran 11853 do 11854 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11855set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11857$as_echo_n "checking for $ac_word... " >&6; } 11858if ${ac_cv_prog_FC+:} false; then : 11859 $as_echo_n "(cached) " >&6 11860else 11861 if test -n "$FC"; then 11862 ac_cv_prog_FC="$FC" # Let the user override the test. 11863else 11864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11865for as_dir in $PATH 11866do 11867 IFS=$as_save_IFS 11868 test -z "$as_dir" && as_dir=. 11869 for ac_exec_ext in '' $ac_executable_extensions; do 11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11871 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11873 break 2 11874 fi 11875done 11876 done 11877IFS=$as_save_IFS 11878 11879fi 11880fi 11881FC=$ac_cv_prog_FC 11882if test -n "$FC"; then 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 11884$as_echo "$FC" >&6; } 11885else 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11887$as_echo "no" >&6; } 11888fi 11889 11890 11891 test -n "$FC" && break 11892 done 11893fi 11894if test -z "$FC"; then 11895 ac_ct_FC=$FC 11896 for ac_prog in gfortran 11897do 11898 # Extract the first word of "$ac_prog", so it can be a program name with args. 11899set dummy $ac_prog; ac_word=$2 11900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11901$as_echo_n "checking for $ac_word... " >&6; } 11902if ${ac_cv_prog_ac_ct_FC+:} false; then : 11903 $as_echo_n "(cached) " >&6 11904else 11905 if test -n "$ac_ct_FC"; then 11906 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 11907else 11908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11909for as_dir in $PATH 11910do 11911 IFS=$as_save_IFS 11912 test -z "$as_dir" && as_dir=. 11913 for ac_exec_ext in '' $ac_executable_extensions; do 11914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11915 ac_cv_prog_ac_ct_FC="$ac_prog" 11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11917 break 2 11918 fi 11919done 11920 done 11921IFS=$as_save_IFS 11922 11923fi 11924fi 11925ac_ct_FC=$ac_cv_prog_ac_ct_FC 11926if test -n "$ac_ct_FC"; then 11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 11928$as_echo "$ac_ct_FC" >&6; } 11929else 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11931$as_echo "no" >&6; } 11932fi 11933 11934 11935 test -n "$ac_ct_FC" && break 11936done 11937 11938 if test "x$ac_ct_FC" = x; then 11939 FC="" 11940 else 11941 case $cross_compiling:$ac_tool_warned in 11942yes:) 11943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11945ac_tool_warned=yes ;; 11946esac 11947 FC=$ac_ct_FC 11948 fi 11949fi 11950 11951 11952# Provide some information about the compiler. 11953$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 11954set X $ac_compile 11955ac_compiler=$2 11956for ac_option in --version -v -V -qversion; do 11957 { { ac_try="$ac_compiler $ac_option >&5" 11958case "(($ac_try" in 11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11960 *) ac_try_echo=$ac_try;; 11961esac 11962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11963$as_echo "$ac_try_echo"; } >&5 11964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11965 ac_status=$? 11966 if test -s conftest.err; then 11967 sed '10a\ 11968... rest of stderr output deleted ... 11969 10q' conftest.err >conftest.er1 11970 cat conftest.er1 >&5 11971 fi 11972 rm -f conftest.er1 conftest.err 11973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11974 test $ac_status = 0; } 11975done 11976rm -f a.out 11977 11978# If we don't use `.F' as extension, the preprocessor is not run on the 11979# input file. (Note that this only needs to work for GNU compilers.) 11980ac_save_ext=$ac_ext 11981ac_ext=F 11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 11983$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 11984if ${ac_cv_fc_compiler_gnu+:} false; then : 11985 $as_echo_n "(cached) " >&6 11986else 11987 cat > conftest.$ac_ext <<_ACEOF 11988 program main 11989#ifndef __GNUC__ 11990 choke me 11991#endif 11992 11993 end 11994_ACEOF 11995if ac_fn_fc_try_compile "$LINENO"; then : 11996 ac_compiler_gnu=yes 11997else 11998 ac_compiler_gnu=no 11999fi 12000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12001ac_cv_fc_compiler_gnu=$ac_compiler_gnu 12002 12003fi 12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 12005$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 12006ac_ext=$ac_save_ext 12007ac_test_FCFLAGS=${FCFLAGS+set} 12008ac_save_FCFLAGS=$FCFLAGS 12009FCFLAGS= 12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 12011$as_echo_n "checking whether $FC accepts -g... " >&6; } 12012if ${ac_cv_prog_fc_g+:} false; then : 12013 $as_echo_n "(cached) " >&6 12014else 12015 FCFLAGS=-g 12016cat > conftest.$ac_ext <<_ACEOF 12017 program main 12018 12019 end 12020_ACEOF 12021if ac_fn_fc_try_compile "$LINENO"; then : 12022 ac_cv_prog_fc_g=yes 12023else 12024 ac_cv_prog_fc_g=no 12025fi 12026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12027 12028fi 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 12030$as_echo "$ac_cv_prog_fc_g" >&6; } 12031if test "$ac_test_FCFLAGS" = set; then 12032 FCFLAGS=$ac_save_FCFLAGS 12033elif test $ac_cv_prog_fc_g = yes; then 12034 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 12035 FCFLAGS="-g -O2" 12036 else 12037 FCFLAGS="-g" 12038 fi 12039else 12040 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 12041 FCFLAGS="-O2" 12042 else 12043 FCFLAGS= 12044 fi 12045fi 12046 12047if test $ac_compiler_gnu = yes; then 12048 GFC=yes 12049else 12050 GFC= 12051fi 12052ac_ext=c 12053ac_cpp='$CPP $CPPFLAGS' 12054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12056ac_compiler_gnu=$ac_cv_c_compiler_gnu 12057 12058 ac_ext=${ac_fc_srcext-f} 12059ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 12060ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 12061ac_compiler_gnu=$ac_cv_fc_compiler_gnu 12062 12063 12064if test -z "$FC" || test "X$FC" = "Xno"; then 12065 _lt_disable_FC=yes 12066fi 12067 12068archive_cmds_need_lc_FC=no 12069allow_undefined_flag_FC= 12070always_export_symbols_FC=no 12071archive_expsym_cmds_FC= 12072export_dynamic_flag_spec_FC= 12073hardcode_direct_FC=no 12074hardcode_direct_absolute_FC=no 12075hardcode_libdir_flag_spec_FC= 12076hardcode_libdir_flag_spec_ld_FC= 12077hardcode_libdir_separator_FC= 12078hardcode_minus_L_FC=no 12079hardcode_automatic_FC=no 12080inherit_rpath_FC=no 12081module_cmds_FC= 12082module_expsym_cmds_FC= 12083link_all_deplibs_FC=unknown 12084old_archive_cmds_FC=$old_archive_cmds 12085reload_flag_FC=$reload_flag 12086reload_cmds_FC=$reload_cmds 12087no_undefined_flag_FC= 12088whole_archive_flag_spec_FC= 12089enable_shared_with_static_runtimes_FC=no 12090 12091# Source file extension for fc test sources. 12092ac_ext=${ac_fc_srcext-f} 12093 12094# Object file extension for compiled fc test sources. 12095objext=o 12096objext_FC=$objext 12097 12098# No sense in running all these tests if we already determined that 12099# the FC compiler isn't working. Some variables (like enable_shared) 12100# are currently assumed to apply to all compilers on this platform, 12101# and will be corrupted by setting them based on a non-working compiler. 12102if test "$_lt_disable_FC" != yes; then 12103 # Code to be used in simple compile tests 12104 lt_simple_compile_test_code="\ 12105 subroutine t 12106 return 12107 end 12108" 12109 12110 # Code to be used in simple link tests 12111 lt_simple_link_test_code="\ 12112 program t 12113 end 12114" 12115 12116 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12117 12118 12119 12120 12121 12122 12123# If no C compiler was specified, use CC. 12124LTCC=${LTCC-"$CC"} 12125 12126# If no C compiler flags were specified, use CFLAGS. 12127LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12128 12129# Allow CC to be a program name with arguments. 12130compiler=$CC 12131 12132 12133 # save warnings/boilerplate of simple test code 12134 ac_outfile=conftest.$ac_objext 12135echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12136eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12137_lt_compiler_boilerplate=`cat conftest.err` 12138$RM conftest* 12139 12140 ac_outfile=conftest.$ac_objext 12141echo "$lt_simple_link_test_code" >conftest.$ac_ext 12142eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12143_lt_linker_boilerplate=`cat conftest.err` 12144$RM -r conftest* 12145 12146 12147 # Allow CC to be a program name with arguments. 12148 lt_save_CC="$CC" 12149 lt_save_GCC=$GCC 12150 CC=${FC-"f95"} 12151 compiler=$CC 12152 GCC=$ac_cv_fc_compiler_gnu 12153 12154 compiler_FC=$CC 12155 for cc_temp in $compiler""; do 12156 case $cc_temp in 12157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12159 \-*) ;; 12160 *) break;; 12161 esac 12162done 12163cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12164 12165 12166 if test -n "$compiler"; then 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12168$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12170$as_echo "$can_build_shared" >&6; } 12171 12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12173$as_echo_n "checking whether to build shared libraries... " >&6; } 12174 test "$can_build_shared" = "no" && enable_shared=no 12175 12176 # On AIX, shared libraries and static libraries use the same namespace, and 12177 # are all built from PIC. 12178 case $host_os in 12179 aix3*) 12180 test "$enable_shared" = yes && enable_static=no 12181 if test -n "$RANLIB"; then 12182 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12183 postinstall_cmds='$RANLIB $lib' 12184 fi 12185 ;; 12186 aix[4-9]*) 12187 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12188 test "$enable_shared" = yes && enable_static=no 12189 fi 12190 ;; 12191 esac 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12193$as_echo "$enable_shared" >&6; } 12194 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12196$as_echo_n "checking whether to build static libraries... " >&6; } 12197 # Make sure either enable_shared or enable_static is yes. 12198 test "$enable_shared" = yes || enable_static=yes 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12200$as_echo "$enable_static" >&6; } 12201 12202 GCC_FC="$ac_cv_fc_compiler_gnu" 12203 LD_FC="$LD" 12204 12205 ## CAVEAT EMPTOR: 12206 ## There is no encapsulation within the following macros, do not change 12207 ## the running order or otherwise move them around unless you know exactly 12208 ## what you are doing... 12209 # Dependencies to place before and after the object being linked: 12210predep_objects_FC= 12211postdep_objects_FC= 12212predeps_FC= 12213postdeps_FC= 12214compiler_lib_search_path_FC= 12215 12216cat > conftest.$ac_ext <<_LT_EOF 12217 subroutine foo 12218 implicit none 12219 integer a 12220 a=0 12221 return 12222 end 12223_LT_EOF 12224 12225if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12226 (eval $ac_compile) 2>&5 12227 ac_status=$? 12228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12229 test $ac_status = 0; }; then 12230 # Parse the compiler output and extract the necessary 12231 # objects, libraries and library flags. 12232 12233 # Sentinel used to keep track of whether or not we are before 12234 # the conftest object file. 12235 pre_test_object_deps_done=no 12236 12237 for p in `eval "$output_verbose_link_cmd"`; do 12238 case $p in 12239 12240 -L* | -R* | -l*) 12241 # Some compilers place space between "-{L,R}" and the path. 12242 # Remove the space. 12243 if test $p = "-L" || 12244 test $p = "-R"; then 12245 prev=$p 12246 continue 12247 else 12248 prev= 12249 fi 12250 12251 if test "$pre_test_object_deps_done" = no; then 12252 case $p in 12253 -L* | -R*) 12254 # Internal compiler library paths should come after those 12255 # provided the user. The postdeps already come after the 12256 # user supplied libs so there is no need to process them. 12257 if test -z "$compiler_lib_search_path_FC"; then 12258 compiler_lib_search_path_FC="${prev}${p}" 12259 else 12260 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" 12261 fi 12262 ;; 12263 # The "-l" case would never come before the object being 12264 # linked, so don't bother handling this case. 12265 esac 12266 else 12267 if test -z "$postdeps_FC"; then 12268 postdeps_FC="${prev}${p}" 12269 else 12270 postdeps_FC="${postdeps_FC} ${prev}${p}" 12271 fi 12272 fi 12273 ;; 12274 12275 *.$objext) 12276 # This assumes that the test object file only shows up 12277 # once in the compiler output. 12278 if test "$p" = "conftest.$objext"; then 12279 pre_test_object_deps_done=yes 12280 continue 12281 fi 12282 12283 if test "$pre_test_object_deps_done" = no; then 12284 if test -z "$predep_objects_FC"; then 12285 predep_objects_FC="$p" 12286 else 12287 predep_objects_FC="$predep_objects_FC $p" 12288 fi 12289 else 12290 if test -z "$postdep_objects_FC"; then 12291 postdep_objects_FC="$p" 12292 else 12293 postdep_objects_FC="$postdep_objects_FC $p" 12294 fi 12295 fi 12296 ;; 12297 12298 *) ;; # Ignore the rest. 12299 12300 esac 12301 done 12302 12303 # Clean up. 12304 rm -f a.out a.exe 12305else 12306 echo "libtool.m4: error: problem compiling FC test program" 12307fi 12308 12309$RM -f confest.$objext 12310 12311# PORTME: override above test on systems where it is broken 12312 12313 12314case " $postdeps_FC " in 12315*" -lc "*) archive_cmds_need_lc_FC=no ;; 12316esac 12317 compiler_lib_search_dirs_FC= 12318if test -n "${compiler_lib_search_path_FC}"; then 12319 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12320fi 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 lt_prog_compiler_wl_FC= 12353lt_prog_compiler_pic_FC= 12354lt_prog_compiler_static_FC= 12355 12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12357$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12358 12359 if test "$GCC" = yes; then 12360 lt_prog_compiler_wl_FC='-Wl,' 12361 lt_prog_compiler_static_FC='-static' 12362 12363 case $host_os in 12364 aix*) 12365 # All AIX code is PIC. 12366 if test "$host_cpu" = ia64; then 12367 # AIX 5 now supports IA64 processor 12368 lt_prog_compiler_static_FC='-Bstatic' 12369 fi 12370 lt_prog_compiler_pic_FC='-fPIC' 12371 ;; 12372 12373 amigaos*) 12374 case $host_cpu in 12375 powerpc) 12376 # see comment about AmigaOS4 .so support 12377 lt_prog_compiler_pic_FC='-fPIC' 12378 ;; 12379 m68k) 12380 # FIXME: we need at least 68020 code to build shared libraries, but 12381 # adding the `-m68020' flag to GCC prevents building anything better, 12382 # like `-m68040'. 12383 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 12384 ;; 12385 esac 12386 ;; 12387 12388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12389 # PIC is the default for these OSes. 12390 ;; 12391 12392 mingw* | cygwin* | pw32* | os2* | cegcc*) 12393 # This hack is so that the source file can tell whether it is being 12394 # built for inclusion in a dll (and should export symbols for example). 12395 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12396 # (--disable-auto-import) libraries 12397 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 12398 ;; 12399 12400 darwin* | rhapsody*) 12401 # PIC is the default on this platform 12402 # Common symbols not allowed in MH_DYLIB files 12403 lt_prog_compiler_pic_FC='-fno-common' 12404 ;; 12405 12406 haiku*) 12407 # PIC is the default for Haiku. 12408 # The "-static" flag exists, but is broken. 12409 lt_prog_compiler_static_FC= 12410 ;; 12411 12412 hpux*) 12413 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12414 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12415 # sets the default TLS model and affects inlining. 12416 case $host_cpu in 12417 hppa*64*) 12418 # +Z the default 12419 ;; 12420 *) 12421 lt_prog_compiler_pic_FC='-fPIC' 12422 ;; 12423 esac 12424 ;; 12425 12426 interix[3-9]*) 12427 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12428 # Instead, we relocate shared libraries at runtime. 12429 ;; 12430 12431 msdosdjgpp*) 12432 # Just because we use GCC doesn't mean we suddenly get shared libraries 12433 # on systems that don't support them. 12434 lt_prog_compiler_can_build_shared_FC=no 12435 enable_shared=no 12436 ;; 12437 12438 *nto* | *qnx*) 12439 # QNX uses GNU C++, but need to define -shared option too, otherwise 12440 # it will coredump. 12441 lt_prog_compiler_pic_FC='-fPIC -shared' 12442 ;; 12443 12444 sysv4*MP*) 12445 if test -d /usr/nec; then 12446 lt_prog_compiler_pic_FC=-Kconform_pic 12447 fi 12448 ;; 12449 12450 *) 12451 lt_prog_compiler_pic_FC='-fPIC' 12452 ;; 12453 esac 12454 12455 case $cc_basename in 12456 nvcc*) # Cuda Compiler Driver 2.2 12457 lt_prog_compiler_wl_FC='-Xlinker ' 12458 lt_prog_compiler_pic_FC='-Xcompiler -fPIC' 12459 ;; 12460 esac 12461 else 12462 # PORTME Check for flag to pass linker flags through the system compiler. 12463 case $host_os in 12464 aix*) 12465 lt_prog_compiler_wl_FC='-Wl,' 12466 if test "$host_cpu" = ia64; then 12467 # AIX 5 now supports IA64 processor 12468 lt_prog_compiler_static_FC='-Bstatic' 12469 else 12470 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 12471 fi 12472 ;; 12473 12474 mingw* | cygwin* | pw32* | os2* | cegcc*) 12475 # This hack is so that the source file can tell whether it is being 12476 # built for inclusion in a dll (and should export symbols for example). 12477 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 12478 ;; 12479 12480 hpux9* | hpux10* | hpux11*) 12481 lt_prog_compiler_wl_FC='-Wl,' 12482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12483 # not for PA HP-UX. 12484 case $host_cpu in 12485 hppa*64*|ia64*) 12486 # +Z the default 12487 ;; 12488 *) 12489 lt_prog_compiler_pic_FC='+Z' 12490 ;; 12491 esac 12492 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12493 lt_prog_compiler_static_FC='${wl}-a ${wl}archive' 12494 ;; 12495 12496 irix5* | irix6* | nonstopux*) 12497 lt_prog_compiler_wl_FC='-Wl,' 12498 # PIC (with -KPIC) is the default. 12499 lt_prog_compiler_static_FC='-non_shared' 12500 ;; 12501 12502 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12503 case $cc_basename in 12504 # old Intel for x86_64 which still supported -KPIC. 12505 ecc*) 12506 lt_prog_compiler_wl_FC='-Wl,' 12507 lt_prog_compiler_pic_FC='-KPIC' 12508 lt_prog_compiler_static_FC='-static' 12509 ;; 12510 # icc used to be incompatible with GCC. 12511 # ICC 10 doesn't accept -KPIC any more. 12512 icc* | ifort*) 12513 lt_prog_compiler_wl_FC='-Wl,' 12514 lt_prog_compiler_pic_FC='-fPIC' 12515 lt_prog_compiler_static_FC='-static' 12516 ;; 12517 # Lahey Fortran 8.1. 12518 lf95*) 12519 lt_prog_compiler_wl_FC='-Wl,' 12520 lt_prog_compiler_pic_FC='--shared' 12521 lt_prog_compiler_static_FC='--static' 12522 ;; 12523 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12524 # Portland Group compilers (*not* the Pentium gcc compiler, 12525 # which looks to be a dead project) 12526 lt_prog_compiler_wl_FC='-Wl,' 12527 lt_prog_compiler_pic_FC='-fpic' 12528 lt_prog_compiler_static_FC='-Bstatic' 12529 ;; 12530 ccc*) 12531 lt_prog_compiler_wl_FC='-Wl,' 12532 # All Alpha code is PIC. 12533 lt_prog_compiler_static_FC='-non_shared' 12534 ;; 12535 xl* | bgxl* | bgf* | mpixl*) 12536 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12537 lt_prog_compiler_wl_FC='-Wl,' 12538 lt_prog_compiler_pic_FC='-qpic' 12539 lt_prog_compiler_static_FC='-qstaticlink' 12540 ;; 12541 *) 12542 case `$CC -V 2>&1 | sed 5q` in 12543 *Sun\ F* | *Sun*Fortran*) 12544 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12545 lt_prog_compiler_pic_FC='-KPIC' 12546 lt_prog_compiler_static_FC='-Bstatic' 12547 lt_prog_compiler_wl_FC='' 12548 ;; 12549 *Sun\ C*) 12550 # Sun C 5.9 12551 lt_prog_compiler_pic_FC='-KPIC' 12552 lt_prog_compiler_static_FC='-Bstatic' 12553 lt_prog_compiler_wl_FC='-Wl,' 12554 ;; 12555 esac 12556 ;; 12557 esac 12558 ;; 12559 12560 newsos6) 12561 lt_prog_compiler_pic_FC='-KPIC' 12562 lt_prog_compiler_static_FC='-Bstatic' 12563 ;; 12564 12565 *nto* | *qnx*) 12566 # QNX uses GNU C++, but need to define -shared option too, otherwise 12567 # it will coredump. 12568 lt_prog_compiler_pic_FC='-fPIC -shared' 12569 ;; 12570 12571 osf3* | osf4* | osf5*) 12572 lt_prog_compiler_wl_FC='-Wl,' 12573 # All OSF/1 code is PIC. 12574 lt_prog_compiler_static_FC='-non_shared' 12575 ;; 12576 12577 rdos*) 12578 lt_prog_compiler_static_FC='-non_shared' 12579 ;; 12580 12581 solaris*) 12582 lt_prog_compiler_pic_FC='-KPIC' 12583 lt_prog_compiler_static_FC='-Bstatic' 12584 case $cc_basename in 12585 f77* | f90* | f95*) 12586 lt_prog_compiler_wl_FC='-Qoption ld ';; 12587 *) 12588 lt_prog_compiler_wl_FC='-Wl,';; 12589 esac 12590 ;; 12591 12592 sunos4*) 12593 lt_prog_compiler_wl_FC='-Qoption ld ' 12594 lt_prog_compiler_pic_FC='-PIC' 12595 lt_prog_compiler_static_FC='-Bstatic' 12596 ;; 12597 12598 sysv4 | sysv4.2uw2* | sysv4.3*) 12599 lt_prog_compiler_wl_FC='-Wl,' 12600 lt_prog_compiler_pic_FC='-KPIC' 12601 lt_prog_compiler_static_FC='-Bstatic' 12602 ;; 12603 12604 sysv4*MP*) 12605 if test -d /usr/nec ;then 12606 lt_prog_compiler_pic_FC='-Kconform_pic' 12607 lt_prog_compiler_static_FC='-Bstatic' 12608 fi 12609 ;; 12610 12611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12612 lt_prog_compiler_wl_FC='-Wl,' 12613 lt_prog_compiler_pic_FC='-KPIC' 12614 lt_prog_compiler_static_FC='-Bstatic' 12615 ;; 12616 12617 unicos*) 12618 lt_prog_compiler_wl_FC='-Wl,' 12619 lt_prog_compiler_can_build_shared_FC=no 12620 ;; 12621 12622 uts4*) 12623 lt_prog_compiler_pic_FC='-pic' 12624 lt_prog_compiler_static_FC='-Bstatic' 12625 ;; 12626 12627 *) 12628 lt_prog_compiler_can_build_shared_FC=no 12629 ;; 12630 esac 12631 fi 12632 12633case $host_os in 12634 # For platforms which do not support PIC, -DPIC is meaningless: 12635 *djgpp*) 12636 lt_prog_compiler_pic_FC= 12637 ;; 12638 *) 12639 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 12640 ;; 12641esac 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 12643$as_echo "$lt_prog_compiler_pic_FC" >&6; } 12644 12645 12646 12647# 12648# Check to make sure the PIC flag actually works. 12649# 12650if test -n "$lt_prog_compiler_pic_FC"; then 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 12652$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 12653if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 lt_cv_prog_compiler_pic_works_FC=no 12657 ac_outfile=conftest.$ac_objext 12658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12659 lt_compiler_flag="$lt_prog_compiler_pic_FC" 12660 # Insert the option either (1) after the last *FLAGS variable, or 12661 # (2) before a word containing "conftest.", or (3) at the end. 12662 # Note that $ac_compile itself does not contain backslashes and begins 12663 # with a dollar sign (not a hyphen), so the echo should work correctly. 12664 # The option is referenced via a variable to avoid confusing sed. 12665 lt_compile=`echo "$ac_compile" | $SED \ 12666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12668 -e 's:$: $lt_compiler_flag:'` 12669 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12670 (eval "$lt_compile" 2>conftest.err) 12671 ac_status=$? 12672 cat conftest.err >&5 12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12674 if (exit $ac_status) && test -s "$ac_outfile"; then 12675 # The compiler can only warn and ignore the option if not recognized 12676 # So say no if there are warnings other than the usual output. 12677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12680 lt_cv_prog_compiler_pic_works_FC=yes 12681 fi 12682 fi 12683 $RM conftest* 12684 12685fi 12686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 12687$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 12688 12689if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then 12690 case $lt_prog_compiler_pic_FC in 12691 "" | " "*) ;; 12692 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 12693 esac 12694else 12695 lt_prog_compiler_pic_FC= 12696 lt_prog_compiler_can_build_shared_FC=no 12697fi 12698 12699fi 12700 12701 12702 12703# 12704# Check to make sure the static flag actually works. 12705# 12706wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12708$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12709if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 12710 $as_echo_n "(cached) " >&6 12711else 12712 lt_cv_prog_compiler_static_works_FC=no 12713 save_LDFLAGS="$LDFLAGS" 12714 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12715 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12717 # The linker can only warn and ignore the option if not recognized 12718 # So say no if there are warnings 12719 if test -s conftest.err; then 12720 # Append any errors to the config.log. 12721 cat conftest.err 1>&5 12722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12724 if diff conftest.exp conftest.er2 >/dev/null; then 12725 lt_cv_prog_compiler_static_works_FC=yes 12726 fi 12727 else 12728 lt_cv_prog_compiler_static_works_FC=yes 12729 fi 12730 fi 12731 $RM -r conftest* 12732 LDFLAGS="$save_LDFLAGS" 12733 12734fi 12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 12736$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 12737 12738if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then 12739 : 12740else 12741 lt_prog_compiler_static_FC= 12742fi 12743 12744 12745 12746 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12748$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12749if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 12750 $as_echo_n "(cached) " >&6 12751else 12752 lt_cv_prog_compiler_c_o_FC=no 12753 $RM -r conftest 2>/dev/null 12754 mkdir conftest 12755 cd conftest 12756 mkdir out 12757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12758 12759 lt_compiler_flag="-o out/conftest2.$ac_objext" 12760 # Insert the option either (1) after the last *FLAGS variable, or 12761 # (2) before a word containing "conftest.", or (3) at the end. 12762 # Note that $ac_compile itself does not contain backslashes and begins 12763 # with a dollar sign (not a hyphen), so the echo should work correctly. 12764 lt_compile=`echo "$ac_compile" | $SED \ 12765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12767 -e 's:$: $lt_compiler_flag:'` 12768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12769 (eval "$lt_compile" 2>out/conftest.err) 12770 ac_status=$? 12771 cat out/conftest.err >&5 12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12774 then 12775 # The compiler can only warn and ignore the option if not recognized 12776 # So say no if there are warnings 12777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12780 lt_cv_prog_compiler_c_o_FC=yes 12781 fi 12782 fi 12783 chmod u+w . 2>&5 12784 $RM conftest* 12785 # SGI C++ compiler will create directory out/ii_files/ for 12786 # template instantiation 12787 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12788 $RM out/* && rmdir out 12789 cd .. 12790 $RM -r conftest 12791 $RM conftest* 12792 12793fi 12794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 12795$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 12796 12797 12798 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12800$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12801if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 12802 $as_echo_n "(cached) " >&6 12803else 12804 lt_cv_prog_compiler_c_o_FC=no 12805 $RM -r conftest 2>/dev/null 12806 mkdir conftest 12807 cd conftest 12808 mkdir out 12809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12810 12811 lt_compiler_flag="-o out/conftest2.$ac_objext" 12812 # Insert the option either (1) after the last *FLAGS variable, or 12813 # (2) before a word containing "conftest.", or (3) at the end. 12814 # Note that $ac_compile itself does not contain backslashes and begins 12815 # with a dollar sign (not a hyphen), so the echo should work correctly. 12816 lt_compile=`echo "$ac_compile" | $SED \ 12817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12819 -e 's:$: $lt_compiler_flag:'` 12820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12821 (eval "$lt_compile" 2>out/conftest.err) 12822 ac_status=$? 12823 cat out/conftest.err >&5 12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12825 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12826 then 12827 # The compiler can only warn and ignore the option if not recognized 12828 # So say no if there are warnings 12829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12832 lt_cv_prog_compiler_c_o_FC=yes 12833 fi 12834 fi 12835 chmod u+w . 2>&5 12836 $RM conftest* 12837 # SGI C++ compiler will create directory out/ii_files/ for 12838 # template instantiation 12839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12840 $RM out/* && rmdir out 12841 cd .. 12842 $RM -r conftest 12843 $RM conftest* 12844 12845fi 12846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 12847$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 12848 12849 12850 12851 12852hard_links="nottested" 12853if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then 12854 # do not overwrite the value of need_locks provided by the user 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12856$as_echo_n "checking if we can lock with hard links... " >&6; } 12857 hard_links=yes 12858 $RM conftest* 12859 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12860 touch conftest.a 12861 ln conftest.a conftest.b 2>&5 || hard_links=no 12862 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12864$as_echo "$hard_links" >&6; } 12865 if test "$hard_links" = no; then 12866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12867$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12868 need_locks=warn 12869 fi 12870else 12871 need_locks=no 12872fi 12873 12874 12875 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12877$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12878 12879 runpath_var= 12880 allow_undefined_flag_FC= 12881 always_export_symbols_FC=no 12882 archive_cmds_FC= 12883 archive_expsym_cmds_FC= 12884 compiler_needs_object_FC=no 12885 enable_shared_with_static_runtimes_FC=no 12886 export_dynamic_flag_spec_FC= 12887 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12888 hardcode_automatic_FC=no 12889 hardcode_direct_FC=no 12890 hardcode_direct_absolute_FC=no 12891 hardcode_libdir_flag_spec_FC= 12892 hardcode_libdir_flag_spec_ld_FC= 12893 hardcode_libdir_separator_FC= 12894 hardcode_minus_L_FC=no 12895 hardcode_shlibpath_var_FC=unsupported 12896 inherit_rpath_FC=no 12897 link_all_deplibs_FC=unknown 12898 module_cmds_FC= 12899 module_expsym_cmds_FC= 12900 old_archive_from_new_cmds_FC= 12901 old_archive_from_expsyms_cmds_FC= 12902 thread_safe_flag_spec_FC= 12903 whole_archive_flag_spec_FC= 12904 # include_expsyms should be a list of space-separated symbols to be *always* 12905 # included in the symbol list 12906 include_expsyms_FC= 12907 # exclude_expsyms can be an extended regexp of symbols to exclude 12908 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12909 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12910 # as well as any symbol that contains `d'. 12911 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12913 # platforms (ab)use it in PIC code, but their linkers get confused if 12914 # the symbol is explicitly referenced. Since portable code cannot 12915 # rely on this symbol name, it's probably fine to never include it in 12916 # preloaded symbol tables. 12917 # Exclude shared library initialization/finalization symbols. 12918 extract_expsyms_cmds= 12919 12920 case $host_os in 12921 cygwin* | mingw* | pw32* | cegcc*) 12922 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12923 # When not using gcc, we currently assume that we are using 12924 # Microsoft Visual C++. 12925 if test "$GCC" != yes; then 12926 with_gnu_ld=no 12927 fi 12928 ;; 12929 interix*) 12930 # we just hope/assume this is gcc and not c89 (= MSVC++) 12931 with_gnu_ld=yes 12932 ;; 12933 openbsd*) 12934 with_gnu_ld=no 12935 ;; 12936 esac 12937 12938 ld_shlibs_FC=yes 12939 12940 # On some targets, GNU ld is compatible enough with the native linker 12941 # that we're better off using the native interface for both. 12942 lt_use_gnu_ld_interface=no 12943 if test "$with_gnu_ld" = yes; then 12944 case $host_os in 12945 aix*) 12946 # The AIX port of GNU ld has always aspired to compatibility 12947 # with the native linker. However, as the warning in the GNU ld 12948 # block says, versions before 2.19.5* couldn't really create working 12949 # shared libraries, regardless of the interface used. 12950 case `$LD -v 2>&1` in 12951 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12952 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12953 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12954 *) 12955 lt_use_gnu_ld_interface=yes 12956 ;; 12957 esac 12958 ;; 12959 *) 12960 lt_use_gnu_ld_interface=yes 12961 ;; 12962 esac 12963 fi 12964 12965 if test "$lt_use_gnu_ld_interface" = yes; then 12966 # If archive_cmds runs LD, not CC, wlarc should be empty 12967 wlarc='${wl}' 12968 12969 # Set some defaults for GNU ld with shared library support. These 12970 # are reset later if shared libraries are not supported. Putting them 12971 # here allows them to be overridden if necessary. 12972 runpath_var=LD_RUN_PATH 12973 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 12974 export_dynamic_flag_spec_FC='${wl}--export-dynamic' 12975 # ancient GNU ld didn't support --whole-archive et. al. 12976 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12977 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12978 else 12979 whole_archive_flag_spec_FC= 12980 fi 12981 supports_anon_versioning=no 12982 case `$LD -v 2>&1` in 12983 *GNU\ gold*) supports_anon_versioning=yes ;; 12984 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12985 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12986 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12987 *\ 2.11.*) ;; # other 2.11 versions 12988 *) supports_anon_versioning=yes ;; 12989 esac 12990 12991 # See if GNU ld supports shared libraries. 12992 case $host_os in 12993 aix[3-9]*) 12994 # On AIX/PPC, the GNU linker is very broken 12995 if test "$host_cpu" != ia64; then 12996 ld_shlibs_FC=no 12997 cat <<_LT_EOF 1>&2 12998 12999*** Warning: the GNU linker, at least up to release 2.19, is reported 13000*** to be unable to reliably create shared libraries on AIX. 13001*** Therefore, libtool is disabling shared libraries support. If you 13002*** really care for shared libraries, you may want to install binutils 13003*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13004*** You will then need to restart the configuration process. 13005 13006_LT_EOF 13007 fi 13008 ;; 13009 13010 amigaos*) 13011 case $host_cpu in 13012 powerpc) 13013 # see comment about AmigaOS4 .so support 13014 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13015 archive_expsym_cmds_FC='' 13016 ;; 13017 m68k) 13018 archive_cmds_FC='$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)' 13019 hardcode_libdir_flag_spec_FC='-L$libdir' 13020 hardcode_minus_L_FC=yes 13021 ;; 13022 esac 13023 ;; 13024 13025 beos*) 13026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13027 allow_undefined_flag_FC=unsupported 13028 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13029 # support --undefined. This deserves some investigation. FIXME 13030 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13031 else 13032 ld_shlibs_FC=no 13033 fi 13034 ;; 13035 13036 cygwin* | mingw* | pw32* | cegcc*) 13037 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 13038 # as there is no search path for DLLs. 13039 hardcode_libdir_flag_spec_FC='-L$libdir' 13040 export_dynamic_flag_spec_FC='${wl}--export-all-symbols' 13041 allow_undefined_flag_FC=unsupported 13042 always_export_symbols_FC=no 13043 enable_shared_with_static_runtimes_FC=yes 13044 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13045 13046 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13047 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13048 # If the export-symbols file already is a .def file (1st line 13049 # is EXPORTS), use it as is; otherwise, prepend... 13050 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13051 cp $export_symbols $output_objdir/$soname.def; 13052 else 13053 echo EXPORTS > $output_objdir/$soname.def; 13054 cat $export_symbols >> $output_objdir/$soname.def; 13055 fi~ 13056 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13057 else 13058 ld_shlibs_FC=no 13059 fi 13060 ;; 13061 13062 haiku*) 13063 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13064 link_all_deplibs_FC=yes 13065 ;; 13066 13067 interix[3-9]*) 13068 hardcode_direct_FC=no 13069 hardcode_shlibpath_var_FC=no 13070 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13071 export_dynamic_flag_spec_FC='${wl}-E' 13072 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13073 # Instead, shared libraries are loaded at an image base (0x10000000 by 13074 # default) and relocated if they conflict, which is a slow very memory 13075 # consuming and fragmenting process. To avoid this, we pick a random, 13076 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13077 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13078 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13079 archive_expsym_cmds_FC='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' 13080 ;; 13081 13082 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 13083 tmp_diet=no 13084 if test "$host_os" = linux-dietlibc; then 13085 case $cc_basename in 13086 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13087 esac 13088 fi 13089 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13090 && test "$tmp_diet" = no 13091 then 13092 tmp_addflag=' $pic_flag' 13093 tmp_sharedflag='-shared' 13094 case $cc_basename,$host_cpu in 13095 pgcc*) # Portland Group C compiler 13096 whole_archive_flag_spec_FC='${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' 13097 tmp_addflag=' $pic_flag' 13098 ;; 13099 pgf77* | pgf90* | pgf95* | pgfortran*) 13100 # Portland Group f77 and f90 compilers 13101 whole_archive_flag_spec_FC='${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' 13102 tmp_addflag=' $pic_flag -Mnomain' ;; 13103 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13104 tmp_addflag=' -i_dynamic' ;; 13105 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13106 tmp_addflag=' -i_dynamic -nofor_main' ;; 13107 ifc* | ifort*) # Intel Fortran compiler 13108 tmp_addflag=' -nofor_main' ;; 13109 lf95*) # Lahey Fortran 8.1 13110 whole_archive_flag_spec_FC= 13111 tmp_sharedflag='--shared' ;; 13112 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13113 tmp_sharedflag='-qmkshrobj' 13114 tmp_addflag= ;; 13115 nvcc*) # Cuda Compiler Driver 2.2 13116 whole_archive_flag_spec_FC='${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' 13117 compiler_needs_object_FC=yes 13118 ;; 13119 esac 13120 case `$CC -V 2>&1 | sed 5q` in 13121 *Sun\ C*) # Sun C 5.9 13122 whole_archive_flag_spec_FC='${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' 13123 compiler_needs_object_FC=yes 13124 tmp_sharedflag='-G' ;; 13125 *Sun\ F*) # Sun Fortran 8.3 13126 tmp_sharedflag='-G' ;; 13127 esac 13128 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13129 13130 if test "x$supports_anon_versioning" = xyes; then 13131 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 13132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13133 echo "local: *; };" >> $output_objdir/$libname.ver~ 13134 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13135 fi 13136 13137 case $cc_basename in 13138 xlf* | bgf* | bgxlf* | mpixlf*) 13139 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13140 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 13141 hardcode_libdir_flag_spec_FC= 13142 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' 13143 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 13144 if test "x$supports_anon_versioning" = xyes; then 13145 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 13146 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13147 echo "local: *; };" >> $output_objdir/$libname.ver~ 13148 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13149 fi 13150 ;; 13151 esac 13152 else 13153 ld_shlibs_FC=no 13154 fi 13155 ;; 13156 13157 netbsd*) 13158 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13159 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13160 wlarc= 13161 else 13162 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13163 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13164 fi 13165 ;; 13166 13167 solaris*) 13168 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13169 ld_shlibs_FC=no 13170 cat <<_LT_EOF 1>&2 13171 13172*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13173*** create shared libraries on Solaris systems. Therefore, libtool 13174*** is disabling shared libraries support. We urge you to upgrade GNU 13175*** binutils to release 2.9.1 or newer. Another option is to modify 13176*** your PATH or compiler configuration so that the native linker is 13177*** used, and then restart. 13178 13179_LT_EOF 13180 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13181 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13182 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13183 else 13184 ld_shlibs_FC=no 13185 fi 13186 ;; 13187 13188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13189 case `$LD -v 2>&1` in 13190 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13191 ld_shlibs_FC=no 13192 cat <<_LT_EOF 1>&2 13193 13194*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13195*** reliably create shared libraries on SCO systems. Therefore, libtool 13196*** is disabling shared libraries support. We urge you to upgrade GNU 13197*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13198*** your PATH or compiler configuration so that the native linker is 13199*** used, and then restart. 13200 13201_LT_EOF 13202 ;; 13203 *) 13204 # For security reasons, it is highly recommended that you always 13205 # use absolute paths for naming shared libraries, and exclude the 13206 # DT_RUNPATH tag from executables and libraries. But doing so 13207 # requires that you compile everything twice, which is a pain. 13208 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13209 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13210 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13211 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13212 else 13213 ld_shlibs_FC=no 13214 fi 13215 ;; 13216 esac 13217 ;; 13218 13219 sunos4*) 13220 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13221 wlarc= 13222 hardcode_direct_FC=yes 13223 hardcode_shlibpath_var_FC=no 13224 ;; 13225 13226 *) 13227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13228 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13229 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13230 else 13231 ld_shlibs_FC=no 13232 fi 13233 ;; 13234 esac 13235 13236 if test "$ld_shlibs_FC" = no; then 13237 runpath_var= 13238 hardcode_libdir_flag_spec_FC= 13239 export_dynamic_flag_spec_FC= 13240 whole_archive_flag_spec_FC= 13241 fi 13242 else 13243 # PORTME fill in a description of your system's linker (not GNU ld) 13244 case $host_os in 13245 aix3*) 13246 allow_undefined_flag_FC=unsupported 13247 always_export_symbols_FC=yes 13248 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 13249 # Note: this linker hardcodes the directories in LIBPATH if there 13250 # are no directories specified by -L. 13251 hardcode_minus_L_FC=yes 13252 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13253 # Neither direct hardcoding nor static linking is supported with a 13254 # broken collect2. 13255 hardcode_direct_FC=unsupported 13256 fi 13257 ;; 13258 13259 aix[4-9]*) 13260 if test "$host_cpu" = ia64; then 13261 # On IA64, the linker does run time linking by default, so we don't 13262 # have to do anything special. 13263 aix_use_runtimelinking=no 13264 exp_sym_flag='-Bexport' 13265 no_entry_flag="" 13266 else 13267 # If we're using GNU nm, then we don't want the "-C" option. 13268 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13269 # Also, AIX nm treats weak defined symbols like other global 13270 # defined symbols, whereas GNU nm marks them as "W". 13271 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13272 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13273 else 13274 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13275 fi 13276 aix_use_runtimelinking=no 13277 13278 # Test if we are trying to use run time linking or normal 13279 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13280 # need to do runtime linking. 13281 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13282 for ld_flag in $LDFLAGS; do 13283 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13284 aix_use_runtimelinking=yes 13285 break 13286 fi 13287 done 13288 ;; 13289 esac 13290 13291 exp_sym_flag='-bexport' 13292 no_entry_flag='-bnoentry' 13293 fi 13294 13295 # When large executables or shared objects are built, AIX ld can 13296 # have problems creating the table of contents. If linking a library 13297 # or program results in "error TOC overflow" add -mminimal-toc to 13298 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13299 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13300 13301 archive_cmds_FC='' 13302 hardcode_direct_FC=yes 13303 hardcode_direct_absolute_FC=yes 13304 hardcode_libdir_separator_FC=':' 13305 link_all_deplibs_FC=yes 13306 file_list_spec_FC='${wl}-f,' 13307 13308 if test "$GCC" = yes; then 13309 case $host_os in aix4.[012]|aix4.[012].*) 13310 # We only want to do this on AIX 4.2 and lower, the check 13311 # below for broken collect2 doesn't work under 4.3+ 13312 collect2name=`${CC} -print-prog-name=collect2` 13313 if test -f "$collect2name" && 13314 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13315 then 13316 # We have reworked collect2 13317 : 13318 else 13319 # We have old collect2 13320 hardcode_direct_FC=unsupported 13321 # It fails to find uninstalled libraries when the uninstalled 13322 # path is not listed in the libpath. Setting hardcode_minus_L 13323 # to unsupported forces relinking 13324 hardcode_minus_L_FC=yes 13325 hardcode_libdir_flag_spec_FC='-L$libdir' 13326 hardcode_libdir_separator_FC= 13327 fi 13328 ;; 13329 esac 13330 shared_flag='-shared' 13331 if test "$aix_use_runtimelinking" = yes; then 13332 shared_flag="$shared_flag "'${wl}-G' 13333 fi 13334 else 13335 # not using gcc 13336 if test "$host_cpu" = ia64; then 13337 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13338 # chokes on -Wl,-G. The following line is correct: 13339 shared_flag='-G' 13340 else 13341 if test "$aix_use_runtimelinking" = yes; then 13342 shared_flag='${wl}-G' 13343 else 13344 shared_flag='${wl}-bM:SRE' 13345 fi 13346 fi 13347 fi 13348 13349 export_dynamic_flag_spec_FC='${wl}-bexpall' 13350 # It seems that -bexpall does not export symbols beginning with 13351 # underscore (_), so it is better to generate a list of symbols to export. 13352 always_export_symbols_FC=yes 13353 if test "$aix_use_runtimelinking" = yes; then 13354 # Warning - without using the other runtime loading flags (-brtl), 13355 # -berok will link without error, but may produce a broken library. 13356 allow_undefined_flag_FC='-berok' 13357 # Determine the default libpath from the value encoded in an 13358 # empty executable. 13359 cat > conftest.$ac_ext <<_ACEOF 13360 program main 13361 13362 end 13363_ACEOF 13364if ac_fn_fc_try_link "$LINENO"; then : 13365 13366lt_aix_libpath_sed=' 13367 /Import File Strings/,/^$/ { 13368 /^0/ { 13369 s/^0 *\(.*\)$/\1/ 13370 p 13371 } 13372 }' 13373aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13374# Check for a 64-bit object if we didn't find anything. 13375if test -z "$aix_libpath"; then 13376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13377fi 13378fi 13379rm -f core conftest.err conftest.$ac_objext \ 13380 conftest$ac_exeext conftest.$ac_ext 13381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13382 13383 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 13384 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13385 else 13386 if test "$host_cpu" = ia64; then 13387 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' 13388 allow_undefined_flag_FC="-z nodefs" 13389 archive_expsym_cmds_FC="\$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" 13390 else 13391 # Determine the default libpath from the value encoded in an 13392 # empty executable. 13393 cat > conftest.$ac_ext <<_ACEOF 13394 program main 13395 13396 end 13397_ACEOF 13398if ac_fn_fc_try_link "$LINENO"; then : 13399 13400lt_aix_libpath_sed=' 13401 /Import File Strings/,/^$/ { 13402 /^0/ { 13403 s/^0 *\(.*\)$/\1/ 13404 p 13405 } 13406 }' 13407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13408# Check for a 64-bit object if we didn't find anything. 13409if test -z "$aix_libpath"; then 13410 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13411fi 13412fi 13413rm -f core conftest.err conftest.$ac_objext \ 13414 conftest$ac_exeext conftest.$ac_ext 13415if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13416 13417 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 13418 # Warning - without using the other run time loading flags, 13419 # -berok will link without error, but may produce a broken library. 13420 no_undefined_flag_FC=' ${wl}-bernotok' 13421 allow_undefined_flag_FC=' ${wl}-berok' 13422 if test "$with_gnu_ld" = yes; then 13423 # We only use this code for GNU lds that support --whole-archive. 13424 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13425 else 13426 # Exported symbols can be pulled into shared objects from archives 13427 whole_archive_flag_spec_FC='$convenience' 13428 fi 13429 archive_cmds_need_lc_FC=yes 13430 # This is similar to how AIX traditionally builds its shared libraries. 13431 archive_expsym_cmds_FC="\$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' 13432 fi 13433 fi 13434 ;; 13435 13436 amigaos*) 13437 case $host_cpu in 13438 powerpc) 13439 # see comment about AmigaOS4 .so support 13440 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13441 archive_expsym_cmds_FC='' 13442 ;; 13443 m68k) 13444 archive_cmds_FC='$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)' 13445 hardcode_libdir_flag_spec_FC='-L$libdir' 13446 hardcode_minus_L_FC=yes 13447 ;; 13448 esac 13449 ;; 13450 13451 bsdi[45]*) 13452 export_dynamic_flag_spec_FC=-rdynamic 13453 ;; 13454 13455 cygwin* | mingw* | pw32* | cegcc*) 13456 # When not using gcc, we currently assume that we are using 13457 # Microsoft Visual C++. 13458 # hardcode_libdir_flag_spec is actually meaningless, as there is 13459 # no search path for DLLs. 13460 hardcode_libdir_flag_spec_FC=' ' 13461 allow_undefined_flag_FC=unsupported 13462 # Tell ltmain to make .lib files, not .a files. 13463 libext=lib 13464 # Tell ltmain to make .dll files, not .so files. 13465 shrext_cmds=".dll" 13466 # FIXME: Setting linknames here is a bad hack. 13467 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13468 # The linker will automatically build a .lib file if we build a DLL. 13469 old_archive_from_new_cmds_FC='true' 13470 # FIXME: Should let the user specify the lib program. 13471 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 13472 fix_srcfile_path_FC='`cygpath -w "$srcfile"`' 13473 enable_shared_with_static_runtimes_FC=yes 13474 ;; 13475 13476 darwin* | rhapsody*) 13477 13478 13479 archive_cmds_need_lc_FC=no 13480 hardcode_direct_FC=no 13481 hardcode_automatic_FC=yes 13482 hardcode_shlibpath_var_FC=unsupported 13483 if test "$lt_cv_ld_force_load" = "yes"; then 13484 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13485 else 13486 whole_archive_flag_spec_FC='' 13487 fi 13488 link_all_deplibs_FC=yes 13489 allow_undefined_flag_FC="$_lt_dar_allow_undefined" 13490 case $cc_basename in 13491 ifort*) _lt_dar_can_shared=yes ;; 13492 *) _lt_dar_can_shared=$GCC ;; 13493 esac 13494 if test "$_lt_dar_can_shared" = "yes"; then 13495 output_verbose_link_cmd=func_echo_all 13496 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 13497 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13498 archive_expsym_cmds_FC="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}" 13499 module_expsym_cmds_FC="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}" 13500 13501 else 13502 ld_shlibs_FC=no 13503 fi 13504 13505 ;; 13506 13507 dgux*) 13508 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13509 hardcode_libdir_flag_spec_FC='-L$libdir' 13510 hardcode_shlibpath_var_FC=no 13511 ;; 13512 13513 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13514 # support. Future versions do this automatically, but an explicit c++rt0.o 13515 # does not break anything, and helps significantly (at the cost of a little 13516 # extra space). 13517 freebsd2.2*) 13518 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13519 hardcode_libdir_flag_spec_FC='-R$libdir' 13520 hardcode_direct_FC=yes 13521 hardcode_shlibpath_var_FC=no 13522 ;; 13523 13524 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13525 freebsd2.*) 13526 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13527 hardcode_direct_FC=yes 13528 hardcode_minus_L_FC=yes 13529 hardcode_shlibpath_var_FC=no 13530 ;; 13531 13532 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13533 freebsd* | dragonfly*) 13534 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13535 hardcode_libdir_flag_spec_FC='-R$libdir' 13536 hardcode_direct_FC=yes 13537 hardcode_shlibpath_var_FC=no 13538 ;; 13539 13540 hpux9*) 13541 if test "$GCC" = yes; then 13542 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13543 else 13544 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13545 fi 13546 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13547 hardcode_libdir_separator_FC=: 13548 hardcode_direct_FC=yes 13549 13550 # hardcode_minus_L: Not really in the search PATH, 13551 # but as the default location of the library. 13552 hardcode_minus_L_FC=yes 13553 export_dynamic_flag_spec_FC='${wl}-E' 13554 ;; 13555 13556 hpux10*) 13557 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13558 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13559 else 13560 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13561 fi 13562 if test "$with_gnu_ld" = no; then 13563 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13564 hardcode_libdir_flag_spec_ld_FC='+b $libdir' 13565 hardcode_libdir_separator_FC=: 13566 hardcode_direct_FC=yes 13567 hardcode_direct_absolute_FC=yes 13568 export_dynamic_flag_spec_FC='${wl}-E' 13569 # hardcode_minus_L: Not really in the search PATH, 13570 # but as the default location of the library. 13571 hardcode_minus_L_FC=yes 13572 fi 13573 ;; 13574 13575 hpux11*) 13576 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13577 case $host_cpu in 13578 hppa*64*) 13579 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13580 ;; 13581 ia64*) 13582 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13583 ;; 13584 *) 13585 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13586 ;; 13587 esac 13588 else 13589 case $host_cpu in 13590 hppa*64*) 13591 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13592 ;; 13593 ia64*) 13594 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13595 ;; 13596 *) 13597 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13598 ;; 13599 esac 13600 fi 13601 if test "$with_gnu_ld" = no; then 13602 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13603 hardcode_libdir_separator_FC=: 13604 13605 case $host_cpu in 13606 hppa*64*|ia64*) 13607 hardcode_direct_FC=no 13608 hardcode_shlibpath_var_FC=no 13609 ;; 13610 *) 13611 hardcode_direct_FC=yes 13612 hardcode_direct_absolute_FC=yes 13613 export_dynamic_flag_spec_FC='${wl}-E' 13614 13615 # hardcode_minus_L: Not really in the search PATH, 13616 # but as the default location of the library. 13617 hardcode_minus_L_FC=yes 13618 ;; 13619 esac 13620 fi 13621 ;; 13622 13623 irix5* | irix6* | nonstopux*) 13624 if test "$GCC" = yes; then 13625 archive_cmds_FC='$CC -shared $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' 13626 # Try to use the -exported_symbol ld option, if it does not 13627 # work, assume that -exports_file does not work either and 13628 # implicitly export all symbols. 13629 save_LDFLAGS="$LDFLAGS" 13630 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 13631 cat > conftest.$ac_ext <<_ACEOF 13632int foo(void) {} 13633_ACEOF 13634if ac_fn_fc_try_link "$LINENO"; then : 13635 archive_expsym_cmds_FC='$CC -shared $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' 13636 13637fi 13638rm -f core conftest.err conftest.$ac_objext \ 13639 conftest$ac_exeext conftest.$ac_ext 13640 LDFLAGS="$save_LDFLAGS" 13641 else 13642 archive_cmds_FC='$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' 13643 archive_expsym_cmds_FC='$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' 13644 fi 13645 archive_cmds_need_lc_FC='no' 13646 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13647 hardcode_libdir_separator_FC=: 13648 inherit_rpath_FC=yes 13649 link_all_deplibs_FC=yes 13650 ;; 13651 13652 netbsd*) 13653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13654 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13655 else 13656 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13657 fi 13658 hardcode_libdir_flag_spec_FC='-R$libdir' 13659 hardcode_direct_FC=yes 13660 hardcode_shlibpath_var_FC=no 13661 ;; 13662 13663 newsos6) 13664 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13665 hardcode_direct_FC=yes 13666 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13667 hardcode_libdir_separator_FC=: 13668 hardcode_shlibpath_var_FC=no 13669 ;; 13670 13671 *nto* | *qnx*) 13672 ;; 13673 13674 openbsd*) 13675 if test -f /usr/libexec/ld.so; then 13676 hardcode_direct_FC=yes 13677 hardcode_shlibpath_var_FC=no 13678 hardcode_direct_absolute_FC=yes 13679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13680 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13681 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13682 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13683 export_dynamic_flag_spec_FC='${wl}-E' 13684 else 13685 case $host_os in 13686 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13687 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13688 hardcode_libdir_flag_spec_FC='-R$libdir' 13689 ;; 13690 *) 13691 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13692 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13693 ;; 13694 esac 13695 fi 13696 else 13697 ld_shlibs_FC=no 13698 fi 13699 ;; 13700 13701 os2*) 13702 hardcode_libdir_flag_spec_FC='-L$libdir' 13703 hardcode_minus_L_FC=yes 13704 allow_undefined_flag_FC=unsupported 13705 archive_cmds_FC='$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' 13706 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13707 ;; 13708 13709 osf3*) 13710 if test "$GCC" = yes; then 13711 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 13712 archive_cmds_FC='$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' 13713 else 13714 allow_undefined_flag_FC=' -expect_unresolved \*' 13715 archive_cmds_FC='$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' 13716 fi 13717 archive_cmds_need_lc_FC='no' 13718 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13719 hardcode_libdir_separator_FC=: 13720 ;; 13721 13722 osf4* | osf5*) # as osf3* with the addition of -msym flag 13723 if test "$GCC" = yes; then 13724 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 13725 archive_cmds_FC='$CC -shared${allow_undefined_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' 13726 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13727 else 13728 allow_undefined_flag_FC=' -expect_unresolved \*' 13729 archive_cmds_FC='$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' 13730 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 13731 $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' 13732 13733 # Both c and cxx compiler support -rpath directly 13734 hardcode_libdir_flag_spec_FC='-rpath $libdir' 13735 fi 13736 archive_cmds_need_lc_FC='no' 13737 hardcode_libdir_separator_FC=: 13738 ;; 13739 13740 solaris*) 13741 no_undefined_flag_FC=' -z defs' 13742 if test "$GCC" = yes; then 13743 wlarc='${wl}' 13744 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13745 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13746 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13747 else 13748 case `$CC -V 2>&1` in 13749 *"Compilers 5.0"*) 13750 wlarc='' 13751 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13752 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13753 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13754 ;; 13755 *) 13756 wlarc='${wl}' 13757 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13758 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13759 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13760 ;; 13761 esac 13762 fi 13763 hardcode_libdir_flag_spec_FC='-R$libdir' 13764 hardcode_shlibpath_var_FC=no 13765 case $host_os in 13766 solaris2.[0-5] | solaris2.[0-5].*) ;; 13767 *) 13768 # The compiler driver will combine and reorder linker options, 13769 # but understands `-z linker_flag'. GCC discards it without `$wl', 13770 # but is careful enough not to reorder. 13771 # Supported since Solaris 2.6 (maybe 2.5.1?) 13772 if test "$GCC" = yes; then 13773 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13774 else 13775 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 13776 fi 13777 ;; 13778 esac 13779 link_all_deplibs_FC=yes 13780 ;; 13781 13782 sunos4*) 13783 if test "x$host_vendor" = xsequent; then 13784 # Use $CC to link under sequent, because it throws in some extra .o 13785 # files that make .init and .fini sections work. 13786 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13787 else 13788 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13789 fi 13790 hardcode_libdir_flag_spec_FC='-L$libdir' 13791 hardcode_direct_FC=yes 13792 hardcode_minus_L_FC=yes 13793 hardcode_shlibpath_var_FC=no 13794 ;; 13795 13796 sysv4) 13797 case $host_vendor in 13798 sni) 13799 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13800 hardcode_direct_FC=yes # is this really true??? 13801 ;; 13802 siemens) 13803 ## LD is ld it makes a PLAMLIB 13804 ## CC just makes a GrossModule. 13805 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13806 reload_cmds_FC='$CC -r -o $output$reload_objs' 13807 hardcode_direct_FC=no 13808 ;; 13809 motorola) 13810 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13811 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 13812 ;; 13813 esac 13814 runpath_var='LD_RUN_PATH' 13815 hardcode_shlibpath_var_FC=no 13816 ;; 13817 13818 sysv4.3*) 13819 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13820 hardcode_shlibpath_var_FC=no 13821 export_dynamic_flag_spec_FC='-Bexport' 13822 ;; 13823 13824 sysv4*MP*) 13825 if test -d /usr/nec; then 13826 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13827 hardcode_shlibpath_var_FC=no 13828 runpath_var=LD_RUN_PATH 13829 hardcode_runpath_var=yes 13830 ld_shlibs_FC=yes 13831 fi 13832 ;; 13833 13834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13835 no_undefined_flag_FC='${wl}-z,text' 13836 archive_cmds_need_lc_FC=no 13837 hardcode_shlibpath_var_FC=no 13838 runpath_var='LD_RUN_PATH' 13839 13840 if test "$GCC" = yes; then 13841 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13842 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13843 else 13844 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13845 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13846 fi 13847 ;; 13848 13849 sysv5* | sco3.2v5* | sco5v6*) 13850 # Note: We can NOT use -z defs as we might desire, because we do not 13851 # link with -lc, and that would cause any symbols used from libc to 13852 # always be unresolved, which means just about no library would 13853 # ever link correctly. If we're not using GNU ld we use -z text 13854 # though, which does catch some bad symbols but isn't as heavy-handed 13855 # as -z defs. 13856 no_undefined_flag_FC='${wl}-z,text' 13857 allow_undefined_flag_FC='${wl}-z,nodefs' 13858 archive_cmds_need_lc_FC=no 13859 hardcode_shlibpath_var_FC=no 13860 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' 13861 hardcode_libdir_separator_FC=':' 13862 link_all_deplibs_FC=yes 13863 export_dynamic_flag_spec_FC='${wl}-Bexport' 13864 runpath_var='LD_RUN_PATH' 13865 13866 if test "$GCC" = yes; then 13867 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13868 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13869 else 13870 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13871 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13872 fi 13873 ;; 13874 13875 uts4*) 13876 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13877 hardcode_libdir_flag_spec_FC='-L$libdir' 13878 hardcode_shlibpath_var_FC=no 13879 ;; 13880 13881 *) 13882 ld_shlibs_FC=no 13883 ;; 13884 esac 13885 13886 if test x$host_vendor = xsni; then 13887 case $host in 13888 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13889 export_dynamic_flag_spec_FC='${wl}-Blargedynsym' 13890 ;; 13891 esac 13892 fi 13893 fi 13894 13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 13896$as_echo "$ld_shlibs_FC" >&6; } 13897test "$ld_shlibs_FC" = no && can_build_shared=no 13898 13899with_gnu_ld_FC=$with_gnu_ld 13900 13901 13902 13903 13904 13905 13906# 13907# Do we need to explicitly link libc? 13908# 13909case "x$archive_cmds_need_lc_FC" in 13910x|xyes) 13911 # Assume -lc should be added 13912 archive_cmds_need_lc_FC=yes 13913 13914 if test "$enable_shared" = yes && test "$GCC" = yes; then 13915 case $archive_cmds_FC in 13916 *'~'*) 13917 # FIXME: we may have to deal with multi-command sequences. 13918 ;; 13919 '$CC '*) 13920 # Test whether the compiler implicitly links with -lc since on some 13921 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13922 # to ld, don't add -lc before -lgcc. 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13924$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13925if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 13926 $as_echo_n "(cached) " >&6 13927else 13928 $RM conftest* 13929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13930 13931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13932 (eval $ac_compile) 2>&5 13933 ac_status=$? 13934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13935 test $ac_status = 0; } 2>conftest.err; then 13936 soname=conftest 13937 lib=conftest 13938 libobjs=conftest.$ac_objext 13939 deplibs= 13940 wl=$lt_prog_compiler_wl_FC 13941 pic_flag=$lt_prog_compiler_pic_FC 13942 compiler_flags=-v 13943 linker_flags=-v 13944 verstring= 13945 output_objdir=. 13946 libname=conftest 13947 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 13948 allow_undefined_flag_FC= 13949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13950 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13951 ac_status=$? 13952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13953 test $ac_status = 0; } 13954 then 13955 lt_cv_archive_cmds_need_lc_FC=no 13956 else 13957 lt_cv_archive_cmds_need_lc_FC=yes 13958 fi 13959 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 13960 else 13961 cat conftest.err 1>&5 13962 fi 13963 $RM conftest* 13964 13965fi 13966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 13967$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 13968 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 13969 ;; 13970 esac 13971 fi 13972 ;; 13973esac 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14039$as_echo_n "checking dynamic linker characteristics... " >&6; } 14040 14041library_names_spec= 14042libname_spec='lib$name' 14043soname_spec= 14044shrext_cmds=".so" 14045postinstall_cmds= 14046postuninstall_cmds= 14047finish_cmds= 14048finish_eval= 14049shlibpath_var= 14050shlibpath_overrides_runpath=unknown 14051version_type=none 14052dynamic_linker="$host_os ld.so" 14053sys_lib_dlsearch_path_spec="/lib /usr/lib" 14054need_lib_prefix=unknown 14055hardcode_into_libs=no 14056 14057# when you set need_version to no, make sure it does not cause -set_version 14058# flags to be left without arguments 14059need_version=unknown 14060 14061case $host_os in 14062aix3*) 14063 version_type=linux 14064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14065 shlibpath_var=LIBPATH 14066 14067 # AIX 3 has no versioning support, so we append a major version to the name. 14068 soname_spec='${libname}${release}${shared_ext}$major' 14069 ;; 14070 14071aix[4-9]*) 14072 version_type=linux 14073 need_lib_prefix=no 14074 need_version=no 14075 hardcode_into_libs=yes 14076 if test "$host_cpu" = ia64; then 14077 # AIX 5 supports IA64 14078 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14079 shlibpath_var=LD_LIBRARY_PATH 14080 else 14081 # With GCC up to 2.95.x, collect2 would create an import file 14082 # for dependence libraries. The import file would start with 14083 # the line `#! .'. This would cause the generated library to 14084 # depend on `.', always an invalid library. This was fixed in 14085 # development snapshots of GCC prior to 3.0. 14086 case $host_os in 14087 aix4 | aix4.[01] | aix4.[01].*) 14088 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14089 echo ' yes ' 14090 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14091 : 14092 else 14093 can_build_shared=no 14094 fi 14095 ;; 14096 esac 14097 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14098 # soname into executable. Probably we can add versioning support to 14099 # collect2, so additional links can be useful in future. 14100 if test "$aix_use_runtimelinking" = yes; then 14101 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14102 # instead of lib<name>.a to let people know that these are not 14103 # typical AIX shared libraries. 14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14105 else 14106 # We preserve .a as extension for shared libraries through AIX4.2 14107 # and later when we are not doing run time linking. 14108 library_names_spec='${libname}${release}.a $libname.a' 14109 soname_spec='${libname}${release}${shared_ext}$major' 14110 fi 14111 shlibpath_var=LIBPATH 14112 fi 14113 ;; 14114 14115amigaos*) 14116 case $host_cpu in 14117 powerpc) 14118 # Since July 2007 AmigaOS4 officially supports .so libraries. 14119 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14121 ;; 14122 m68k) 14123 library_names_spec='$libname.ixlibrary $libname.a' 14124 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14125 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 14126 ;; 14127 esac 14128 ;; 14129 14130beos*) 14131 library_names_spec='${libname}${shared_ext}' 14132 dynamic_linker="$host_os ld.so" 14133 shlibpath_var=LIBRARY_PATH 14134 ;; 14135 14136bsdi[45]*) 14137 version_type=linux 14138 need_version=no 14139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14140 soname_spec='${libname}${release}${shared_ext}$major' 14141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14142 shlibpath_var=LD_LIBRARY_PATH 14143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14145 # the default ld.so.conf also contains /usr/contrib/lib and 14146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14147 # libtool to hard-code these into programs 14148 ;; 14149 14150cygwin* | mingw* | pw32* | cegcc*) 14151 version_type=windows 14152 shrext_cmds=".dll" 14153 need_version=no 14154 need_lib_prefix=no 14155 14156 case $GCC,$host_os in 14157 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14158 library_names_spec='$libname.dll.a' 14159 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14160 postinstall_cmds='base_file=`basename \${file}`~ 14161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14162 dldir=$destdir/`dirname \$dlpath`~ 14163 test -d \$dldir || mkdir -p \$dldir~ 14164 $install_prog $dir/$dlname \$dldir/$dlname~ 14165 chmod a+x \$dldir/$dlname~ 14166 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14167 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14168 fi' 14169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14170 dlpath=$dir/\$dldll~ 14171 $RM \$dlpath' 14172 shlibpath_overrides_runpath=yes 14173 14174 case $host_os in 14175 cygwin*) 14176 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14178 14179 ;; 14180 mingw* | cegcc*) 14181 # MinGW DLLs use traditional 'lib' prefix 14182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14183 ;; 14184 pw32*) 14185 # pw32 DLLs use 'pw' prefix rather than 'lib' 14186 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14187 ;; 14188 esac 14189 ;; 14190 14191 *) 14192 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14193 ;; 14194 esac 14195 dynamic_linker='Win32 ld.exe' 14196 # FIXME: first we should search . and the directory the executable is in 14197 shlibpath_var=PATH 14198 ;; 14199 14200darwin* | rhapsody*) 14201 dynamic_linker="$host_os dyld" 14202 version_type=darwin 14203 need_lib_prefix=no 14204 need_version=no 14205 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14206 soname_spec='${libname}${release}${major}$shared_ext' 14207 shlibpath_overrides_runpath=yes 14208 shlibpath_var=DYLD_LIBRARY_PATH 14209 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14210 14211 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14212 ;; 14213 14214dgux*) 14215 version_type=linux 14216 need_lib_prefix=no 14217 need_version=no 14218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14219 soname_spec='${libname}${release}${shared_ext}$major' 14220 shlibpath_var=LD_LIBRARY_PATH 14221 ;; 14222 14223freebsd* | dragonfly*) 14224 # DragonFly does not have aout. When/if they implement a new 14225 # versioning mechanism, adjust this. 14226 if test -x /usr/bin/objformat; then 14227 objformat=`/usr/bin/objformat` 14228 else 14229 case $host_os in 14230 freebsd[23].*) objformat=aout ;; 14231 *) objformat=elf ;; 14232 esac 14233 fi 14234 version_type=freebsd-$objformat 14235 case $version_type in 14236 freebsd-elf*) 14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14238 need_version=no 14239 need_lib_prefix=no 14240 ;; 14241 freebsd-*) 14242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14243 need_version=yes 14244 ;; 14245 esac 14246 shlibpath_var=LD_LIBRARY_PATH 14247 case $host_os in 14248 freebsd2.*) 14249 shlibpath_overrides_runpath=yes 14250 ;; 14251 freebsd3.[01]* | freebsdelf3.[01]*) 14252 shlibpath_overrides_runpath=yes 14253 hardcode_into_libs=yes 14254 ;; 14255 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14256 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14257 shlibpath_overrides_runpath=no 14258 hardcode_into_libs=yes 14259 ;; 14260 *) # from 4.6 on, and DragonFly 14261 shlibpath_overrides_runpath=yes 14262 hardcode_into_libs=yes 14263 ;; 14264 esac 14265 ;; 14266 14267gnu*) 14268 version_type=linux 14269 need_lib_prefix=no 14270 need_version=no 14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14272 soname_spec='${libname}${release}${shared_ext}$major' 14273 shlibpath_var=LD_LIBRARY_PATH 14274 hardcode_into_libs=yes 14275 ;; 14276 14277haiku*) 14278 version_type=linux 14279 need_lib_prefix=no 14280 need_version=no 14281 dynamic_linker="$host_os runtime_loader" 14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14283 soname_spec='${libname}${release}${shared_ext}$major' 14284 shlibpath_var=LIBRARY_PATH 14285 shlibpath_overrides_runpath=yes 14286 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 14287 hardcode_into_libs=yes 14288 ;; 14289 14290hpux9* | hpux10* | hpux11*) 14291 # Give a soname corresponding to the major version so that dld.sl refuses to 14292 # link against other versions. 14293 version_type=sunos 14294 need_lib_prefix=no 14295 need_version=no 14296 case $host_cpu in 14297 ia64*) 14298 shrext_cmds='.so' 14299 hardcode_into_libs=yes 14300 dynamic_linker="$host_os dld.so" 14301 shlibpath_var=LD_LIBRARY_PATH 14302 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14304 soname_spec='${libname}${release}${shared_ext}$major' 14305 if test "X$HPUX_IA64_MODE" = X32; then 14306 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14307 else 14308 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14309 fi 14310 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14311 ;; 14312 hppa*64*) 14313 shrext_cmds='.sl' 14314 hardcode_into_libs=yes 14315 dynamic_linker="$host_os dld.sl" 14316 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14319 soname_spec='${libname}${release}${shared_ext}$major' 14320 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14321 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14322 ;; 14323 *) 14324 shrext_cmds='.sl' 14325 dynamic_linker="$host_os dld.sl" 14326 shlibpath_var=SHLIB_PATH 14327 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14329 soname_spec='${libname}${release}${shared_ext}$major' 14330 ;; 14331 esac 14332 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14333 postinstall_cmds='chmod 555 $lib' 14334 # or fails outright, so override atomically: 14335 install_override_mode=555 14336 ;; 14337 14338interix[3-9]*) 14339 version_type=linux 14340 need_lib_prefix=no 14341 need_version=no 14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14343 soname_spec='${libname}${release}${shared_ext}$major' 14344 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14345 shlibpath_var=LD_LIBRARY_PATH 14346 shlibpath_overrides_runpath=no 14347 hardcode_into_libs=yes 14348 ;; 14349 14350irix5* | irix6* | nonstopux*) 14351 case $host_os in 14352 nonstopux*) version_type=nonstopux ;; 14353 *) 14354 if test "$lt_cv_prog_gnu_ld" = yes; then 14355 version_type=linux 14356 else 14357 version_type=irix 14358 fi ;; 14359 esac 14360 need_lib_prefix=no 14361 need_version=no 14362 soname_spec='${libname}${release}${shared_ext}$major' 14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14364 case $host_os in 14365 irix5* | nonstopux*) 14366 libsuff= shlibsuff= 14367 ;; 14368 *) 14369 case $LD in # libtool.m4 will add one of these switches to LD 14370 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14371 libsuff= shlibsuff= libmagic=32-bit;; 14372 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14373 libsuff=32 shlibsuff=N32 libmagic=N32;; 14374 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14375 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14376 *) libsuff= shlibsuff= libmagic=never-match;; 14377 esac 14378 ;; 14379 esac 14380 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14381 shlibpath_overrides_runpath=no 14382 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14383 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14384 hardcode_into_libs=yes 14385 ;; 14386 14387# No shared lib support for Linux oldld, aout, or coff. 14388linux*oldld* | linux*aout* | linux*coff*) 14389 dynamic_linker=no 14390 ;; 14391 14392# This must be Linux ELF. 14393 14394# uclinux* changes (here and below) have been submitted to the libtool 14395# project, but have not yet been accepted: they are GCC-local changes 14396# for the time being. (See 14397# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 14398linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 14399 version_type=linux 14400 need_lib_prefix=no 14401 need_version=no 14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14403 soname_spec='${libname}${release}${shared_ext}$major' 14404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14405 shlibpath_var=LD_LIBRARY_PATH 14406 shlibpath_overrides_runpath=no 14407 14408 # Some binutils ld are patched to set DT_RUNPATH 14409 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14410 $as_echo_n "(cached) " >&6 14411else 14412 lt_cv_shlibpath_overrides_runpath=no 14413 save_LDFLAGS=$LDFLAGS 14414 save_libdir=$libdir 14415 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 14416 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 14417 cat > conftest.$ac_ext <<_ACEOF 14418 program main 14419 14420 end 14421_ACEOF 14422if ac_fn_fc_try_link "$LINENO"; then : 14423 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14424 lt_cv_shlibpath_overrides_runpath=yes 14425fi 14426fi 14427rm -f core conftest.err conftest.$ac_objext \ 14428 conftest$ac_exeext conftest.$ac_ext 14429 LDFLAGS=$save_LDFLAGS 14430 libdir=$save_libdir 14431 14432fi 14433 14434 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14435 14436 # This implies no fast_install, which is unacceptable. 14437 # Some rework will be needed to allow for fast_install 14438 # before this can be enabled. 14439 hardcode_into_libs=yes 14440 14441 # Append ld.so.conf contents to the search path 14442 if test -f /etc/ld.so.conf; then 14443 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' ' '` 14444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14445 fi 14446 14447 # We used to test for /lib/ld.so.1 and disable shared libraries on 14448 # powerpc, because MkLinux only supported shared libraries with the 14449 # GNU dynamic linker. Since this was broken with cross compilers, 14450 # most powerpc-linux boxes support dynamic linking these days and 14451 # people can always --disable-shared, the test was removed, and we 14452 # assume the GNU/Linux dynamic linker is in use. 14453 dynamic_linker='GNU/Linux ld.so' 14454 ;; 14455 14456netbsd*) 14457 version_type=sunos 14458 need_lib_prefix=no 14459 need_version=no 14460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14463 dynamic_linker='NetBSD (a.out) ld.so' 14464 else 14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14466 soname_spec='${libname}${release}${shared_ext}$major' 14467 dynamic_linker='NetBSD ld.elf_so' 14468 fi 14469 shlibpath_var=LD_LIBRARY_PATH 14470 shlibpath_overrides_runpath=yes 14471 hardcode_into_libs=yes 14472 ;; 14473 14474newsos6) 14475 version_type=linux 14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14477 shlibpath_var=LD_LIBRARY_PATH 14478 shlibpath_overrides_runpath=yes 14479 ;; 14480 14481*nto* | *qnx*) 14482 version_type=qnx 14483 need_lib_prefix=no 14484 need_version=no 14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14486 soname_spec='${libname}${release}${shared_ext}$major' 14487 shlibpath_var=LD_LIBRARY_PATH 14488 shlibpath_overrides_runpath=no 14489 hardcode_into_libs=yes 14490 dynamic_linker='ldqnx.so' 14491 ;; 14492 14493openbsd*) 14494 version_type=sunos 14495 sys_lib_dlsearch_path_spec="/usr/lib" 14496 need_lib_prefix=no 14497 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14498 case $host_os in 14499 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14500 *) need_version=no ;; 14501 esac 14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14504 shlibpath_var=LD_LIBRARY_PATH 14505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14506 case $host_os in 14507 openbsd2.[89] | openbsd2.[89].*) 14508 shlibpath_overrides_runpath=no 14509 ;; 14510 *) 14511 shlibpath_overrides_runpath=yes 14512 ;; 14513 esac 14514 else 14515 shlibpath_overrides_runpath=yes 14516 fi 14517 ;; 14518 14519os2*) 14520 libname_spec='$name' 14521 shrext_cmds=".dll" 14522 need_lib_prefix=no 14523 library_names_spec='$libname${shared_ext} $libname.a' 14524 dynamic_linker='OS/2 ld.exe' 14525 shlibpath_var=LIBPATH 14526 ;; 14527 14528osf3* | osf4* | osf5*) 14529 version_type=osf 14530 need_lib_prefix=no 14531 need_version=no 14532 soname_spec='${libname}${release}${shared_ext}$major' 14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14534 shlibpath_var=LD_LIBRARY_PATH 14535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14537 ;; 14538 14539rdos*) 14540 dynamic_linker=no 14541 ;; 14542 14543solaris*) 14544 version_type=linux 14545 need_lib_prefix=no 14546 need_version=no 14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14548 soname_spec='${libname}${release}${shared_ext}$major' 14549 shlibpath_var=LD_LIBRARY_PATH 14550 shlibpath_overrides_runpath=yes 14551 hardcode_into_libs=yes 14552 # ldd complains unless libraries are executable 14553 postinstall_cmds='chmod +x $lib' 14554 ;; 14555 14556sunos4*) 14557 version_type=sunos 14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14560 shlibpath_var=LD_LIBRARY_PATH 14561 shlibpath_overrides_runpath=yes 14562 if test "$with_gnu_ld" = yes; then 14563 need_lib_prefix=no 14564 fi 14565 need_version=yes 14566 ;; 14567 14568sysv4 | sysv4.3*) 14569 version_type=linux 14570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14571 soname_spec='${libname}${release}${shared_ext}$major' 14572 shlibpath_var=LD_LIBRARY_PATH 14573 case $host_vendor in 14574 sni) 14575 shlibpath_overrides_runpath=no 14576 need_lib_prefix=no 14577 runpath_var=LD_RUN_PATH 14578 ;; 14579 siemens) 14580 need_lib_prefix=no 14581 ;; 14582 motorola) 14583 need_lib_prefix=no 14584 need_version=no 14585 shlibpath_overrides_runpath=no 14586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14587 ;; 14588 esac 14589 ;; 14590 14591sysv4*MP*) 14592 if test -d /usr/nec ;then 14593 version_type=linux 14594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14595 soname_spec='$libname${shared_ext}.$major' 14596 shlibpath_var=LD_LIBRARY_PATH 14597 fi 14598 ;; 14599 14600sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14601 version_type=freebsd-elf 14602 need_lib_prefix=no 14603 need_version=no 14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14605 soname_spec='${libname}${release}${shared_ext}$major' 14606 shlibpath_var=LD_LIBRARY_PATH 14607 shlibpath_overrides_runpath=yes 14608 hardcode_into_libs=yes 14609 if test "$with_gnu_ld" = yes; then 14610 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14611 else 14612 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14613 case $host_os in 14614 sco3.2v5*) 14615 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14616 ;; 14617 esac 14618 fi 14619 sys_lib_dlsearch_path_spec='/usr/lib' 14620 ;; 14621 14622tpf*) 14623 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14624 version_type=linux 14625 need_lib_prefix=no 14626 need_version=no 14627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14628 shlibpath_var=LD_LIBRARY_PATH 14629 shlibpath_overrides_runpath=no 14630 hardcode_into_libs=yes 14631 ;; 14632 14633uts4*) 14634 version_type=linux 14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14636 soname_spec='${libname}${release}${shared_ext}$major' 14637 shlibpath_var=LD_LIBRARY_PATH 14638 ;; 14639 14640*) 14641 dynamic_linker=no 14642 ;; 14643esac 14644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14645$as_echo "$dynamic_linker" >&6; } 14646test "$dynamic_linker" = no && can_build_shared=no 14647 14648variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14649if test "$GCC" = yes; then 14650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14651fi 14652 14653if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14654 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14655fi 14656if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14657 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14658fi 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14698$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14699hardcode_action_FC= 14700if test -n "$hardcode_libdir_flag_spec_FC" || 14701 test -n "$runpath_var_FC" || 14702 test "X$hardcode_automatic_FC" = "Xyes" ; then 14703 14704 # We can hardcode non-existent directories. 14705 if test "$hardcode_direct_FC" != no && 14706 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14707 # have to relink, otherwise we might link with an installed library 14708 # when we should be linking with a yet-to-be-installed one 14709 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && 14710 test "$hardcode_minus_L_FC" != no; then 14711 # Linking always hardcodes the temporary library directory. 14712 hardcode_action_FC=relink 14713 else 14714 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14715 hardcode_action_FC=immediate 14716 fi 14717else 14718 # We cannot hardcode anything, or else we can only hardcode existing 14719 # directories. 14720 hardcode_action_FC=unsupported 14721fi 14722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 14723$as_echo "$hardcode_action_FC" >&6; } 14724 14725if test "$hardcode_action_FC" = relink || 14726 test "$inherit_rpath_FC" = yes; then 14727 # Fast installation is not supported 14728 enable_fast_install=no 14729elif test "$shlibpath_overrides_runpath" = yes || 14730 test "$enable_shared" = no; then 14731 # Fast installation is not necessary 14732 enable_fast_install=needless 14733fi 14734 14735 14736 14737 14738 14739 14740 14741 fi # test -n "$compiler" 14742 14743 GCC=$lt_save_GCC 14744 CC="$lt_save_CC" 14745fi # test "$_lt_disable_FC" != yes 14746 14747ac_ext=c 14748ac_cpp='$CPP $CPPFLAGS' 14749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14751ac_compiler_gnu=$ac_cv_c_compiler_gnu 14752 14753 14754FCFLAGS="$FCFLAGS -Wall -L../libgfortran" 14755 14756# For libtool versioning info, format is CURRENT:REVISION:AGE 14757libtool_VERSION=1:0:0 14758 14759 14760# Check header files. 14761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14762$as_echo_n "checking for ANSI C header files... " >&6; } 14763if ${ac_cv_header_stdc+:} false; then : 14764 $as_echo_n "(cached) " >&6 14765else 14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14767/* end confdefs.h. */ 14768#include <stdlib.h> 14769#include <stdarg.h> 14770#include <string.h> 14771#include <float.h> 14772 14773int 14774main () 14775{ 14776 14777 ; 14778 return 0; 14779} 14780_ACEOF 14781if ac_fn_c_try_compile "$LINENO"; then : 14782 ac_cv_header_stdc=yes 14783else 14784 ac_cv_header_stdc=no 14785fi 14786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14787 14788if test $ac_cv_header_stdc = yes; then 14789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14791/* end confdefs.h. */ 14792#include <string.h> 14793 14794_ACEOF 14795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14796 $EGREP "memchr" >/dev/null 2>&1; then : 14797 14798else 14799 ac_cv_header_stdc=no 14800fi 14801rm -f conftest* 14802 14803fi 14804 14805if test $ac_cv_header_stdc = yes; then 14806 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14808/* end confdefs.h. */ 14809#include <stdlib.h> 14810 14811_ACEOF 14812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14813 $EGREP "free" >/dev/null 2>&1; then : 14814 14815else 14816 ac_cv_header_stdc=no 14817fi 14818rm -f conftest* 14819 14820fi 14821 14822if test $ac_cv_header_stdc = yes; then 14823 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14824 if test "$cross_compiling" = yes; then : 14825 : 14826else 14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14828/* end confdefs.h. */ 14829#include <ctype.h> 14830#include <stdlib.h> 14831#if ((' ' & 0x0FF) == 0x020) 14832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14834#else 14835# define ISLOWER(c) \ 14836 (('a' <= (c) && (c) <= 'i') \ 14837 || ('j' <= (c) && (c) <= 'r') \ 14838 || ('s' <= (c) && (c) <= 'z')) 14839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14840#endif 14841 14842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14843int 14844main () 14845{ 14846 int i; 14847 for (i = 0; i < 256; i++) 14848 if (XOR (islower (i), ISLOWER (i)) 14849 || toupper (i) != TOUPPER (i)) 14850 return 2; 14851 return 0; 14852} 14853_ACEOF 14854if ac_fn_c_try_run "$LINENO"; then : 14855 14856else 14857 ac_cv_header_stdc=no 14858fi 14859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14860 conftest.$ac_objext conftest.beam conftest.$ac_ext 14861fi 14862 14863fi 14864fi 14865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14866$as_echo "$ac_cv_header_stdc" >&6; } 14867if test $ac_cv_header_stdc = yes; then 14868 14869$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14870 14871fi 14872 14873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14874$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14875if ${ac_cv_header_time+:} false; then : 14876 $as_echo_n "(cached) " >&6 14877else 14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14879/* end confdefs.h. */ 14880#include <sys/types.h> 14881#include <sys/time.h> 14882#include <time.h> 14883 14884int 14885main () 14886{ 14887if ((struct tm *) 0) 14888return 0; 14889 ; 14890 return 0; 14891} 14892_ACEOF 14893if ac_fn_c_try_compile "$LINENO"; then : 14894 ac_cv_header_time=yes 14895else 14896 ac_cv_header_time=no 14897fi 14898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14899fi 14900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14901$as_echo "$ac_cv_header_time" >&6; } 14902if test $ac_cv_header_time = yes; then 14903 14904$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14905 14906fi 14907 14908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 14909$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 14910if ${gcc_cv_header_string+:} false; then : 14911 $as_echo_n "(cached) " >&6 14912else 14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14914/* end confdefs.h. */ 14915#include <string.h> 14916#include <strings.h> 14917int 14918main () 14919{ 14920 14921 ; 14922 return 0; 14923} 14924_ACEOF 14925if ac_fn_c_try_compile "$LINENO"; then : 14926 gcc_cv_header_string=yes 14927else 14928 gcc_cv_header_string=no 14929fi 14930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14931fi 14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 14933$as_echo "$gcc_cv_header_string" >&6; } 14934if test $gcc_cv_header_string = yes; then 14935 14936$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 14937 14938fi 14939 14940for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h 14941do : 14942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14943ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14945 cat >>confdefs.h <<_ACEOF 14946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14947_ACEOF 14948 14949fi 14950 14951done 14952 14953 14954XPCFLAGS="" 14955case "$host" in 14956 *-*-rtems*) 14957 # RTEMS supports Pthreads, but the library is not available at GCC build time. 14958 ;; 14959 nvptx*-*-* | amdgcn*-*-*) 14960 # NVPTX does not support Pthreads, has its own code replacement. 14961 libgomp_use_pthreads=no 14962 # NVPTX is an accelerator-only target 14963 libgomp_offloaded_only=yes 14964 ;; 14965 *) 14966 # Check to see if -pthread or -lpthread is needed. Prefer the former. 14967 # In case the pthread.h system header is not found, this test will fail. 14968 CFLAGS="$CFLAGS -pthread" 14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14970/* end confdefs.h. */ 14971#include <pthread.h> 14972 void *g(void *d) { return NULL; } 14973int 14974main () 14975{ 14976pthread_t t; pthread_create(&t,NULL,g,NULL); 14977 ; 14978 return 0; 14979} 14980_ACEOF 14981if ac_fn_c_try_link "$LINENO"; then : 14982 XPCFLAGS=" -Wc,-pthread" 14983else 14984 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" 14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14986/* end confdefs.h. */ 14987#include <pthread.h> 14988 void *g(void *d) { return NULL; } 14989int 14990main () 14991{ 14992pthread_t t; pthread_create(&t,NULL,g,NULL); 14993 ; 14994 return 0; 14995} 14996_ACEOF 14997if ac_fn_c_try_link "$LINENO"; then : 14998 14999else 15000 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5 15001fi 15002rm -f core conftest.err conftest.$ac_objext \ 15003 conftest$ac_exeext conftest.$ac_ext 15004fi 15005rm -f core conftest.err conftest.$ac_objext \ 15006 conftest$ac_exeext conftest.$ac_ext 15007esac 15008 15009if test x$libgomp_use_pthreads != xno; then 15010 15011$as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h 15012 15013fi 15014 15015if test x$libgomp_offloaded_only = xyes; then 15016 15017$as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h 15018 15019fi 15020 15021# Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*- 15022# 15023# Copyright (C) 2014-2020 Free Software Foundation, Inc. 15024# 15025# Contributed by Mentor Embedded. 15026# 15027# This file is part of the GNU Offloading and Multi Processing Library 15028# (libgomp). 15029# 15030# Libgomp is free software; you can redistribute it and/or modify it 15031# under the terms of the GNU General Public License as published by 15032# the Free Software Foundation; either version 3, or (at your option) 15033# any later version. 15034# 15035# Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY 15036# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 15037# FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15038# more details. 15039# 15040# Under Section 7 of GPL version 3, you are granted additional 15041# permissions described in the GCC Runtime Library Exception, version 15042# 3.1, as published by the Free Software Foundation. 15043# 15044# You should have received a copy of the GNU General Public License and 15045# a copy of the GCC Runtime Library Exception along with this program; 15046# see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 15047# <http://www.gnu.org/licenses/>. 15048 15049plugin_support=yes 15050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 15051$as_echo_n "checking for dlsym in -ldl... " >&6; } 15052if ${ac_cv_lib_dl_dlsym+:} false; then : 15053 $as_echo_n "(cached) " >&6 15054else 15055 ac_check_lib_save_LIBS=$LIBS 15056LIBS="-ldl $LIBS" 15057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15058/* end confdefs.h. */ 15059 15060/* Override any GCC internal prototype to avoid an error. 15061 Use char because int might match the return type of a GCC 15062 builtin and then its argument prototype would still apply. */ 15063#ifdef __cplusplus 15064extern "C" 15065#endif 15066char dlsym (); 15067int 15068main () 15069{ 15070return dlsym (); 15071 ; 15072 return 0; 15073} 15074_ACEOF 15075if ac_fn_c_try_link "$LINENO"; then : 15076 ac_cv_lib_dl_dlsym=yes 15077else 15078 ac_cv_lib_dl_dlsym=no 15079fi 15080rm -f core conftest.err conftest.$ac_objext \ 15081 conftest$ac_exeext conftest.$ac_ext 15082LIBS=$ac_check_lib_save_LIBS 15083fi 15084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 15085$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 15086if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 15087 cat >>confdefs.h <<_ACEOF 15088#define HAVE_LIBDL 1 15089_ACEOF 15090 15091 LIBS="-ldl $LIBS" 15092 15093else 15094 plugin_support=no 15095fi 15096 15097if test x"$plugin_support" = xyes; then 15098 15099$as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h 15100 15101elif test "x${enable_offload_targets-no}" != xno; then 15102 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5 15103fi 15104 15105 15106 15107 for ac_header in $ac_header_list 15108do : 15109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15111" 15112if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15113 cat >>confdefs.h <<_ACEOF 15114#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15115_ACEOF 15116 15117fi 15118 15119done 15120 15121 15122 15123 15124 15125 15126 15127 for ac_func in $ac_func_list 15128do : 15129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15130ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15131if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15132 cat >>confdefs.h <<_ACEOF 15133#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15134_ACEOF 15135 15136fi 15137done 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154# Look for the CUDA driver package. 15155CUDA_DRIVER_INCLUDE= 15156CUDA_DRIVER_LIB= 15157 15158 15159CUDA_DRIVER_CPPFLAGS= 15160CUDA_DRIVER_LDFLAGS= 15161 15162# Check whether --with-cuda-driver was given. 15163if test "${with_cuda_driver+set}" = set; then : 15164 withval=$with_cuda_driver; 15165fi 15166 15167 15168# Check whether --with-cuda-driver-include was given. 15169if test "${with_cuda_driver_include+set}" = set; then : 15170 withval=$with_cuda_driver_include; 15171fi 15172 15173 15174# Check whether --with-cuda-driver-lib was given. 15175if test "${with_cuda_driver_lib+set}" = set; then : 15176 withval=$with_cuda_driver_lib; 15177fi 15178 15179case "x$with_cuda_driver" in 15180 x) ;; 15181 xno) 15182 CUDA_DRIVER_INCLUDE=no 15183 CUDA_DRIVER_LIB=no 15184 ;; 15185 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include 15186 CUDA_DRIVER_LIB=$with_cuda_driver/lib 15187 ;; 15188esac 15189if test "x$with_cuda_driver_include" != x; then 15190 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include 15191fi 15192if test "x$with_cuda_driver_lib" != x; then 15193 CUDA_DRIVER_LIB=$with_cuda_driver_lib 15194fi 15195if test "x$CUDA_DRIVER_INCLUDE" != x \ 15196 && test "x$CUDA_DRIVER_INCLUDE" != xno; then 15197 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE 15198fi 15199if test "x$CUDA_DRIVER_LIB" != x \ 15200 && test "x$CUDA_DRIVER_LIB" != xno; then 15201 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB 15202fi 15203 15204PLUGIN_NVPTX=0 15205PLUGIN_NVPTX_CPPFLAGS= 15206PLUGIN_NVPTX_LDFLAGS= 15207PLUGIN_NVPTX_LIBS= 15208PLUGIN_NVPTX_DYNAMIC=0 15209 15210 15211 15212 15213 15214# Look for HSA run-time, its includes and libraries 15215 15216HSA_RUNTIME_INCLUDE= 15217HSA_RUNTIME_LIB= 15218 15219 15220HSA_RUNTIME_CPPFLAGS= 15221HSA_RUNTIME_LDFLAGS= 15222 15223 15224# Check whether --with-hsa-runtime was given. 15225if test "${with_hsa_runtime+set}" = set; then : 15226 withval=$with_hsa_runtime; 15227fi 15228 15229 15230# Check whether --with-hsa-runtime-include was given. 15231if test "${with_hsa_runtime_include+set}" = set; then : 15232 withval=$with_hsa_runtime_include; 15233fi 15234 15235 15236# Check whether --with-hsa-runtime-lib was given. 15237if test "${with_hsa_runtime_lib+set}" = set; then : 15238 withval=$with_hsa_runtime_lib; 15239fi 15240 15241if test "x$with_hsa_runtime" != x; then 15242 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include 15243 HSA_RUNTIME_LIB=$with_hsa_runtime/lib 15244fi 15245if test "x$with_hsa_runtime_include" != x; then 15246 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include 15247fi 15248if test "x$with_hsa_runtime_lib" != x; then 15249 HSA_RUNTIME_LIB=$with_hsa_runtime_lib 15250fi 15251if test "x$HSA_RUNTIME_INCLUDE" != x; then 15252 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE 15253fi 15254if test "x$HSA_RUNTIME_LIB" != x; then 15255 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB 15256fi 15257 15258PLUGIN_HSA=0 15259PLUGIN_HSA_CPPFLAGS= 15260PLUGIN_HSA_LDFLAGS= 15261PLUGIN_HSA_LIBS= 15262 15263 15264 15265 15266 15267PLUGIN_GCN=0 15268PLUGIN_GCN_CPPFLAGS= 15269PLUGIN_GCN_LDFLAGS= 15270PLUGIN_GCN_LIBS= 15271 15272 15273 15274 15275 15276# Parse '--enable-offload-targets', figure out the corresponding libgomp 15277# plugins, and configure to find the corresponding offload compilers. 15278# 'offload_plugins' and 'offload_targets' will be populated in the same order. 15279offload_plugins= 15280offload_targets= 15281 15282 15283offload_additional_options= 15284offload_additional_lib_paths= 15285 15286 15287if test x"$enable_offload_targets" != x; then 15288 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do 15289 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'` 15290 tgt=`echo $tgt | sed 's/=.*//'` 15291 tgt_plugin= 15292 case $tgt in 15293 *-intelmic-* | *-intelmicemul-*) 15294 tgt_plugin=intelmic 15295 ;; 15296 nvptx*) 15297 case "${target}" in 15298 aarch64*-*-* | powerpc64le-*-* | x86_64-*-*) 15299 case " ${CC} ${CFLAGS} " in 15300 *" -m32 "* | *" -mx32 "*) 15301 # PR libgomp/65099: Currently, we only support offloading in 15302 # 64-bit configurations. 15303 PLUGIN_NVPTX=0 15304 ;; 15305 *) 15306 tgt_plugin=nvptx 15307 PLUGIN_NVPTX=$tgt 15308 if test "x$CUDA_DRIVER_LIB" != xno \ 15309 && test "x$CUDA_DRIVER_LIB" != xno; then 15310 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS 15311 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS 15312 PLUGIN_NVPTX_LIBS='-lcuda' 15313 15314 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS 15315 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS" 15316 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS 15317 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS" 15318 PLUGIN_NVPTX_save_LIBS=$LIBS 15319 LIBS="$PLUGIN_NVPTX_LIBS $LIBS" 15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15321/* end confdefs.h. */ 15322#include "cuda.h" 15323int 15324main () 15325{ 15326CUresult r = cuCtxPushCurrent (NULL); 15327 ; 15328 return 0; 15329} 15330_ACEOF 15331if ac_fn_c_try_link "$LINENO"; then : 15332 PLUGIN_NVPTX=1 15333fi 15334rm -f core conftest.err conftest.$ac_objext \ 15335 conftest$ac_exeext conftest.$ac_ext 15336 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS 15337 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS 15338 LIBS=$PLUGIN_NVPTX_save_LIBS 15339 fi 15340 case $PLUGIN_NVPTX in 15341 nvptx*) 15342 if (test "x$CUDA_DRIVER_INCLUDE" = x \ 15343 || test "x$CUDA_DRIVER_INCLUDE" = xno) \ 15344 && (test "x$CUDA_DRIVER_LIB" = x \ 15345 || test "x$CUDA_DRIVER_LIB" = xno); then 15346 PLUGIN_NVPTX=1 15347 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda' 15348 PLUGIN_NVPTX_LIBS='-ldl' 15349 PLUGIN_NVPTX_DYNAMIC=1 15350 else 15351 PLUGIN_NVPTX=0 15352 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5 15353 fi 15354 ;; 15355 esac 15356 ;; 15357 esac 15358 ;; 15359 *-*-*) 15360 # Target architecture not supported. 15361 PLUGIN_NVPTX=0 15362 ;; 15363 esac 15364 ;; 15365 hsa*) 15366 case "${target}" in 15367 x86_64-*-*) 15368 case " ${CC} ${CFLAGS} " in 15369 *" -m32 "*|*" -mx32 "*) 15370 PLUGIN_HSA=0 15371 ;; 15372 *) 15373 tgt_plugin=hsa 15374 PLUGIN_HSA=$tgt 15375 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS 15376 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS" 15377 PLUGIN_HSA_LIBS="-ldl" 15378 15379 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS 15380 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS" 15381 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS 15382 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS" 15383 PLUGIN_HSA_save_LIBS=$LIBS 15384 LIBS="$PLUGIN_HSA_LIBS $LIBS" 15385 15386 PLUGIN_HSA=1 15387 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS 15388 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS 15389 LIBS=$PLUGIN_HSA_save_LIBS 15390 case $PLUGIN_HSA in 15391 hsa*) 15392 HSA_PLUGIN=0 15393 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5 15394 ;; 15395 esac 15396 ;; 15397 esac 15398 ;; 15399 *-*-*) 15400 PLUGIN_HSA=0 15401 ;; 15402 esac 15403 ;; 15404 15405 amdgcn*) 15406 case "${target}" in 15407 x86_64-*-*) 15408 case " ${CC} ${CFLAGS} " in 15409 *" -m32 "*|*" -mx32 "*) 15410 PLUGIN_GCN=0 15411 ;; 15412 *) 15413 tgt_plugin=gcn 15414 PLUGIN_GCN=$tgt 15415 PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS 15416 PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS" 15417 PLUGIN_GCN_LIBS="-ldl" 15418 PLUGIN_GCN=1 15419 ;; 15420 esac 15421 ;; 15422 *-*-*) 15423 PLUGIN_GCN=0 15424 ;; 15425 esac 15426 ;; 15427 *) 15428 as_fn_error $? "unknown offload target specified" "$LINENO" 5 15429 ;; 15430 esac 15431 if test x"$tgt_plugin" = x; then 15432 # Not configuring libgomp for this offload target if we're not building 15433 # the corresponding offload plugin. 15434 continue 15435 elif test x"$offload_plugins" = x; then 15436 offload_plugins=$tgt_plugin 15437 offload_targets=$tgt 15438 else 15439 offload_plugins=$offload_plugins,$tgt_plugin 15440 offload_targets=$offload_targets,$tgt 15441 fi 15442 # Configure additional search paths. 15443 if test "$tgt_plugin" = hsa; then 15444 # Offloading compilation is all handled by the target compiler. 15445 : 15446 elif test x"$tgt_dir" != x; then 15447 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin" 15448 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32" 15449 else 15450 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)" 15451 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir" 15452 fi 15453 done 15454fi 15455 15456cat >>confdefs.h <<_ACEOF 15457#define OFFLOAD_PLUGINS "$offload_plugins" 15458_ACEOF 15459 15460 if test $PLUGIN_NVPTX = 1; then 15461 PLUGIN_NVPTX_TRUE= 15462 PLUGIN_NVPTX_FALSE='#' 15463else 15464 PLUGIN_NVPTX_TRUE='#' 15465 PLUGIN_NVPTX_FALSE= 15466fi 15467 15468 15469cat >>confdefs.h <<_ACEOF 15470#define PLUGIN_NVPTX $PLUGIN_NVPTX 15471_ACEOF 15472 15473 15474cat >>confdefs.h <<_ACEOF 15475#define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC 15476_ACEOF 15477 15478 if test $PLUGIN_HSA = 1; then 15479 PLUGIN_HSA_TRUE= 15480 PLUGIN_HSA_FALSE='#' 15481else 15482 PLUGIN_HSA_TRUE='#' 15483 PLUGIN_HSA_FALSE= 15484fi 15485 15486 15487cat >>confdefs.h <<_ACEOF 15488#define PLUGIN_HSA $PLUGIN_HSA 15489_ACEOF 15490 15491 if test $PLUGIN_GCN = 1; then 15492 PLUGIN_GCN_TRUE= 15493 PLUGIN_GCN_FALSE='#' 15494else 15495 PLUGIN_GCN_TRUE='#' 15496 PLUGIN_GCN_FALSE= 15497fi 15498 15499 15500cat >>confdefs.h <<_ACEOF 15501#define PLUGIN_GCN $PLUGIN_GCN 15502_ACEOF 15503 15504 15505 15506# Check for functions needed. 15507for ac_func in getloadavg clock_gettime strtoull 15508do : 15509 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15510ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15511if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15512 cat >>confdefs.h <<_ACEOF 15513#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15514_ACEOF 15515 15516fi 15517done 15518 15519for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc 15520do : 15521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15522ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15523if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15524 cat >>confdefs.h <<_ACEOF 15525#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15526_ACEOF 15527 15528fi 15529done 15530 15531 15532# Check for broken semaphore implementation on darwin. 15533# sem_init returns: sem_init error: Function not implemented. 15534case "$host" in 15535 *-darwin*) 15536 15537$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 15538 15539 ;; 15540esac 15541 15542# RTEMS specific checks 15543case "$host" in 15544 *-*-rtems*) 15545 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h> 15546" 15547if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then : 15548 15549cat >>confdefs.h <<_ACEOF 15550#define HAVE_STRUCT__MUTEX_CONTROL 1 15551_ACEOF 15552 15553 15554fi 15555 15556 ;; 15557esac 15558 15559 # Check whether --enable-linux-futex was given. 15560if test "${enable_linux_futex+set}" = set; then : 15561 enableval=$enable_linux_futex; 15562 case "$enableval" in 15563 yes|no|default) ;; 15564 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;; 15565 esac 15566 15567else 15568 enable_linux_futex=default 15569fi 15570 15571 15572case "$target" in 15573 *-linux* | *-uclinux*) 15574 case "$enable_linux_futex" in 15575 default) 15576 # If headers don't have gettid/futex syscalls definition, then 15577 # default to no, otherwise there will be compile time failures. 15578 # Otherwise, default to yes. If we don't detect we are 15579 # compiled/linked against NPTL and not cross-compiling, check 15580 # if programs are run by default against NPTL and if not, issue 15581 # a warning. 15582 enable_linux_futex=no 15583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15584/* end confdefs.h. */ 15585#include <sys/syscall.h> 15586 #include <unistd.h> 15587 int lk; 15588int 15589main () 15590{ 15591syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); 15592 ; 15593 return 0; 15594} 15595_ACEOF 15596if ac_fn_c_try_link "$LINENO"; then : 15597 save_LIBS="$LIBS" 15598 LIBS="-lpthread $LIBS" 15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15600/* end confdefs.h. */ 15601#ifndef _GNU_SOURCE 15602 #define _GNU_SOURCE 1 15603 #endif 15604 #include <pthread.h> 15605 pthread_t th; void *status; 15606int 15607main () 15608{ 15609pthread_tryjoin_np (th, &status); 15610 ; 15611 return 0; 15612} 15613_ACEOF 15614if ac_fn_c_try_link "$LINENO"; then : 15615 enable_linux_futex=yes 15616else 15617 if test x$cross_compiling = xno; then 15618 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ 15619 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else 15620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls. 15621If so, please configure with --disable-linux-futex" >&5 15622$as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. 15623If so, please configure with --disable-linux-futex" >&2;} 15624 fi 15625 fi 15626 enable_linux_futex=yes 15627fi 15628rm -f core conftest.err conftest.$ac_objext \ 15629 conftest$ac_exeext conftest.$ac_ext 15630 LIBS="$save_LIBS" 15631fi 15632rm -f core conftest.err conftest.$ac_objext \ 15633 conftest$ac_exeext conftest.$ac_ext 15634 ;; 15635 yes) 15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15637/* end confdefs.h. */ 15638#include <sys/syscall.h> 15639 #include <unistd.h> 15640 int lk; 15641int 15642main () 15643{ 15644syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); 15645 ; 15646 return 0; 15647} 15648_ACEOF 15649if ac_fn_c_try_link "$LINENO"; then : 15650 15651else 15652 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5 15653fi 15654rm -f core conftest.err conftest.$ac_objext \ 15655 conftest$ac_exeext conftest.$ac_ext 15656 ;; 15657 esac 15658 ;; 15659 *) 15660 enable_linux_futex=no 15661 ;; 15662esac 15663if test x$enable_linux_futex = xyes; then 15664 : 15665fi 15666 15667 15668# Check for pthread_{,attr_}[sg]etaffinity_np. 15669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15670/* end confdefs.h. */ 15671#define _GNU_SOURCE 15672 #include <pthread.h> 15673int 15674main () 15675{ 15676cpu_set_t cpuset; 15677 pthread_attr_t attr; 15678 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); 15679 if (CPU_ISSET (0, &cpuset)) 15680 CPU_SET (1, &cpuset); 15681 else 15682 CPU_ZERO (&cpuset); 15683 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); 15684 pthread_attr_init (&attr); 15685 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); 15686 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); 15687 ; 15688 return 0; 15689} 15690_ACEOF 15691if ac_fn_c_try_link "$LINENO"; then : 15692 15693$as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h 15694 15695fi 15696rm -f core conftest.err conftest.$ac_objext \ 15697 conftest$ac_exeext conftest.$ac_ext 15698 15699# At least for glibc, clock_gettime is in librt. But don't pull that 15700# in if it still doesn't give us the function we want. 15701if test $ac_cv_func_clock_gettime = no; then 15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 15703$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 15704if ${ac_cv_lib_rt_clock_gettime+:} false; then : 15705 $as_echo_n "(cached) " >&6 15706else 15707 ac_check_lib_save_LIBS=$LIBS 15708LIBS="-lrt $LIBS" 15709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15710/* end confdefs.h. */ 15711 15712/* Override any GCC internal prototype to avoid an error. 15713 Use char because int might match the return type of a GCC 15714 builtin and then its argument prototype would still apply. */ 15715#ifdef __cplusplus 15716extern "C" 15717#endif 15718char clock_gettime (); 15719int 15720main () 15721{ 15722return clock_gettime (); 15723 ; 15724 return 0; 15725} 15726_ACEOF 15727if ac_fn_c_try_link "$LINENO"; then : 15728 ac_cv_lib_rt_clock_gettime=yes 15729else 15730 ac_cv_lib_rt_clock_gettime=no 15731fi 15732rm -f core conftest.err conftest.$ac_objext \ 15733 conftest$ac_exeext conftest.$ac_ext 15734LIBS=$ac_check_lib_save_LIBS 15735fi 15736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 15737$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 15738if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 15739 LIBS="-lrt $LIBS" 15740 15741$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 15742 15743fi 15744 15745fi 15746 15747# Check for uname. 15748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15749/* end confdefs.h. */ 15750#include <string.h> 15751 #include <stdlib.h> 15752 #include <sys/utsname.h> 15753int 15754main () 15755{ 15756struct utsname buf; 15757 volatile size_t len = 0; 15758 if (!uname (buf)) 15759 len = strlen (buf.nodename); 15760 ; 15761 return 0; 15762} 15763_ACEOF 15764if ac_fn_c_try_compile "$LINENO"; then : 15765 15766$as_echo "#define HAVE_UNAME 1" >>confdefs.h 15767 15768fi 15769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15770 15771# Check for gethostname. 15772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15773/* end confdefs.h. */ 15774#include <unistd.h> 15775int 15776main () 15777{ 15778 15779 char buf[256]; 15780 if (gethostname (buf, sizeof (buf) - 1) == 0) 15781 buf[255] = '\0'; 15782 15783 ; 15784 return 0; 15785} 15786_ACEOF 15787if ac_fn_c_try_compile "$LINENO"; then : 15788 15789$as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h 15790 15791fi 15792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15793 15794# Check for getpid. 15795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15796/* end confdefs.h. */ 15797#include <unistd.h> 15798int 15799main () 15800{ 15801int pid = getpid (); 15802 ; 15803 return 0; 15804} 15805_ACEOF 15806if ac_fn_c_try_compile "$LINENO"; then : 15807 15808$as_echo "#define HAVE_GETPID 1" >>confdefs.h 15809 15810fi 15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15812 15813# See if we support thread-local storage. 15814 15815 15816 # Check whether --enable-tls was given. 15817if test "${enable_tls+set}" = set; then : 15818 enableval=$enable_tls; 15819 case "$enableval" in 15820 yes|no) ;; 15821 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; 15822 esac 15823 15824else 15825 enable_tls=yes 15826fi 15827 15828 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 15830$as_echo_n "checking whether the target supports thread-local storage... " >&6; } 15831if ${gcc_cv_have_tls+:} false; then : 15832 $as_echo_n "(cached) " >&6 15833else 15834 15835 if test "$cross_compiling" = yes; then : 15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15837/* end confdefs.h. */ 15838__thread int a; int b; int main() { return a = b; } 15839_ACEOF 15840if ac_fn_c_try_link "$LINENO"; then : 15841 chktls_save_LDFLAGS="$LDFLAGS" 15842 case $host in 15843 *-*-linux* | -*-uclinuxfdpic*) 15844 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" 15845 ;; 15846 esac 15847 chktls_save_CFLAGS="$CFLAGS" 15848 CFLAGS="-fPIC $CFLAGS" 15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15850/* end confdefs.h. */ 15851int f() { return 0; } 15852_ACEOF 15853if ac_fn_c_try_link "$LINENO"; then : 15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15855/* end confdefs.h. */ 15856__thread int a; int b; int f() { return a = b; } 15857_ACEOF 15858if ac_fn_c_try_link "$LINENO"; then : 15859 gcc_cv_have_tls=yes 15860else 15861 gcc_cv_have_tls=no 15862fi 15863rm -f core conftest.err conftest.$ac_objext \ 15864 conftest$ac_exeext conftest.$ac_ext 15865else 15866 gcc_cv_have_tls=yes 15867fi 15868rm -f core conftest.err conftest.$ac_objext \ 15869 conftest$ac_exeext conftest.$ac_ext 15870 CFLAGS="$chktls_save_CFLAGS" 15871 LDFLAGS="$chktls_save_LDFLAGS" 15872else 15873 gcc_cv_have_tls=no 15874fi 15875rm -f core conftest.err conftest.$ac_objext \ 15876 conftest$ac_exeext conftest.$ac_ext 15877 15878 15879else 15880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15881/* end confdefs.h. */ 15882__thread int a; int b; int main() { return a = b; } 15883_ACEOF 15884if ac_fn_c_try_run "$LINENO"; then : 15885 chktls_save_LDFLAGS="$LDFLAGS" 15886 LDFLAGS="-static $LDFLAGS" 15887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15888/* end confdefs.h. */ 15889int main() { return 0; } 15890_ACEOF 15891if ac_fn_c_try_link "$LINENO"; then : 15892 if test "$cross_compiling" = yes; then : 15893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15895as_fn_error $? "cannot run test program while cross compiling 15896See \`config.log' for more details" "$LINENO" 5; } 15897else 15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15899/* end confdefs.h. */ 15900__thread int a; int b; int main() { return a = b; } 15901_ACEOF 15902if ac_fn_c_try_run "$LINENO"; then : 15903 gcc_cv_have_tls=yes 15904else 15905 gcc_cv_have_tls=no 15906fi 15907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15908 conftest.$ac_objext conftest.beam conftest.$ac_ext 15909fi 15910 15911else 15912 gcc_cv_have_tls=yes 15913fi 15914rm -f core conftest.err conftest.$ac_objext \ 15915 conftest$ac_exeext conftest.$ac_ext 15916 LDFLAGS="$chktls_save_LDFLAGS" 15917 if test $gcc_cv_have_tls = yes; then 15918 chktls_save_CFLAGS="$CFLAGS" 15919 thread_CFLAGS=failed 15920 for flag in '' '-pthread' '-lpthread'; do 15921 CFLAGS="$flag $chktls_save_CFLAGS" 15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15923/* end confdefs.h. */ 15924#include <pthread.h> 15925 void *g(void *d) { return NULL; } 15926int 15927main () 15928{ 15929pthread_t t; pthread_create(&t,NULL,g,NULL); 15930 ; 15931 return 0; 15932} 15933_ACEOF 15934if ac_fn_c_try_link "$LINENO"; then : 15935 thread_CFLAGS="$flag" 15936fi 15937rm -f core conftest.err conftest.$ac_objext \ 15938 conftest$ac_exeext conftest.$ac_ext 15939 if test "X$thread_CFLAGS" != Xfailed; then 15940 break 15941 fi 15942 done 15943 CFLAGS="$chktls_save_CFLAGS" 15944 if test "X$thread_CFLAGS" != Xfailed; then 15945 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" 15946 if test "$cross_compiling" = yes; then : 15947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15949as_fn_error $? "cannot run test program while cross compiling 15950See \`config.log' for more details" "$LINENO" 5; } 15951else 15952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15953/* end confdefs.h. */ 15954#include <pthread.h> 15955 __thread int a; 15956 static int *volatile a_in_other_thread; 15957 static void * 15958 thread_func (void *arg) 15959 { 15960 a_in_other_thread = &a; 15961 return (void *)0; 15962 } 15963int 15964main () 15965{ 15966pthread_t thread; 15967 void *thread_retval; 15968 int *volatile a_in_main_thread; 15969 a_in_main_thread = &a; 15970 if (pthread_create (&thread, (pthread_attr_t *)0, 15971 thread_func, (void *)0)) 15972 return 0; 15973 if (pthread_join (thread, &thread_retval)) 15974 return 0; 15975 return (a_in_other_thread == a_in_main_thread); 15976 ; 15977 return 0; 15978} 15979_ACEOF 15980if ac_fn_c_try_run "$LINENO"; then : 15981 gcc_cv_have_tls=yes 15982else 15983 gcc_cv_have_tls=no 15984fi 15985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15986 conftest.$ac_objext conftest.beam conftest.$ac_ext 15987fi 15988 15989 CFLAGS="$chktls_save_CFLAGS" 15990 fi 15991 fi 15992else 15993 gcc_cv_have_tls=no 15994fi 15995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15996 conftest.$ac_objext conftest.beam conftest.$ac_ext 15997fi 15998 15999fi 16000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 16001$as_echo "$gcc_cv_have_tls" >&6; } 16002 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then 16003 16004$as_echo "#define HAVE_TLS 1" >>confdefs.h 16005 16006 fi 16007 16008# See if we have emulated thread-local storage. 16009 16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 16011$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } 16012if ${gcc_cv_use_emutls+:} false; then : 16013 $as_echo_n "(cached) " >&6 16014else 16015 16016 gcc_cv_use_emutls=no 16017 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c 16018 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' 16019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 16020 (eval $ac_try) 2>&5 16021 ac_status=$? 16022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16023 test $ac_status = 0; }; }; then 16024 if grep __emutls_get_address conftest.s > /dev/null; then 16025 gcc_cv_use_emutls=yes 16026 fi 16027 fi 16028 rm -f conftest.* 16029 16030fi 16031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 16032$as_echo "$gcc_cv_use_emutls" >&6; } 16033 if test "$gcc_cv_use_emutls" = "yes" ; then 16034 16035$as_echo "#define USE_EMUTLS 1" >>confdefs.h 16036 16037 fi 16038 16039# See what sort of export controls are available. 16040 16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 16042$as_echo_n "checking whether the target supports hidden visibility... " >&6; } 16043if ${libgomp_cv_have_attribute_visibility+:} false; then : 16044 $as_echo_n "(cached) " >&6 16045else 16046 16047 save_CFLAGS="$CFLAGS" 16048 CFLAGS="$CFLAGS -Werror" 16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16050/* end confdefs.h. */ 16051void __attribute__((visibility("hidden"))) foo(void) { } 16052int 16053main () 16054{ 16055 16056 ; 16057 return 0; 16058} 16059_ACEOF 16060if ac_fn_c_try_compile "$LINENO"; then : 16061 libgomp_cv_have_attribute_visibility=yes 16062else 16063 libgomp_cv_have_attribute_visibility=no 16064fi 16065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16066 CFLAGS="$save_CFLAGS" 16067fi 16068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5 16069$as_echo "$libgomp_cv_have_attribute_visibility" >&6; } 16070 if test $libgomp_cv_have_attribute_visibility = yes; then 16071 16072$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h 16073 16074 fi 16075 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 16077$as_echo_n "checking whether the target supports dllexport... " >&6; } 16078if ${libgomp_cv_have_attribute_dllexport+:} false; then : 16079 $as_echo_n "(cached) " >&6 16080else 16081 16082 save_CFLAGS="$CFLAGS" 16083 CFLAGS="$CFLAGS -Werror" 16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16085/* end confdefs.h. */ 16086void __attribute__((dllexport)) foo(void) { } 16087int 16088main () 16089{ 16090 16091 ; 16092 return 0; 16093} 16094_ACEOF 16095if ac_fn_c_try_compile "$LINENO"; then : 16096 libgomp_cv_have_attribute_dllexport=yes 16097else 16098 libgomp_cv_have_attribute_dllexport=no 16099fi 16100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16101 CFLAGS="$save_CFLAGS" 16102fi 16103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5 16104$as_echo "$libgomp_cv_have_attribute_dllexport" >&6; } 16105 if test $libgomp_cv_have_attribute_dllexport = yes; then 16106 16107$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h 16108 16109 fi 16110 16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 16112$as_echo_n "checking whether the target supports symbol aliases... " >&6; } 16113if ${libgomp_cv_have_attribute_alias+:} false; then : 16114 $as_echo_n "(cached) " >&6 16115else 16116 16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16118/* end confdefs.h. */ 16119 16120void foo(void) { } 16121extern void bar(void) __attribute__((alias("foo"))); 16122int 16123main () 16124{ 16125bar(); 16126 ; 16127 return 0; 16128} 16129_ACEOF 16130if ac_fn_c_try_link "$LINENO"; then : 16131 libgomp_cv_have_attribute_alias=yes 16132else 16133 libgomp_cv_have_attribute_alias=no 16134fi 16135rm -f core conftest.err conftest.$ac_objext \ 16136 conftest$ac_exeext conftest.$ac_ext 16137fi 16138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5 16139$as_echo "$libgomp_cv_have_attribute_alias" >&6; } 16140 if test $libgomp_cv_have_attribute_alias = yes; then 16141 16142$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h 16143 16144 fi 16145 16146 16147# Check whether --with-gnu-ld was given. 16148if test "${with_gnu_ld+set}" = set; then : 16149 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 16150else 16151 with_gnu_ld=no 16152fi 16153 16154ac_prog=ld 16155if test "$GCC" = yes; then 16156 # Check if gcc -print-prog-name=ld gives a path. 16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16158$as_echo_n "checking for ld used by $CC... " >&6; } 16159 case $host in 16160 *-*-mingw*) 16161 # gcc leaves a trailing carriage return which upsets mingw 16162 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16163 *) 16164 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16165 esac 16166 case $ac_prog in 16167 # Accept absolute paths. 16168 [\\/]* | ?:[\\/]*) 16169 re_direlt='/[^/][^/]*/\.\./' 16170 # Canonicalize the pathname of ld 16171 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 16172 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 16173 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 16174 done 16175 test -z "$LD" && LD="$ac_prog" 16176 ;; 16177 "") 16178 # If it fails, then pretend we aren't using GCC. 16179 ac_prog=ld 16180 ;; 16181 *) 16182 # If it is relative, then search for the first ld in PATH. 16183 with_gnu_ld=unknown 16184 ;; 16185 esac 16186elif test "$with_gnu_ld" = yes; then 16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16188$as_echo_n "checking for GNU ld... " >&6; } 16189else 16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16191$as_echo_n "checking for non-GNU ld... " >&6; } 16192fi 16193if ${lt_cv_path_LD+:} false; then : 16194 $as_echo_n "(cached) " >&6 16195else 16196 if test -z "$LD"; then 16197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16198 for ac_dir in $PATH; do 16199 IFS="$lt_save_ifs" 16200 test -z "$ac_dir" && ac_dir=. 16201 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16202 lt_cv_path_LD="$ac_dir/$ac_prog" 16203 # Check to see if the program is GNU ld. I'd rather use --version, 16204 # but apparently some variants of GNU ld only accept -v. 16205 # Break only if it was the GNU/non-GNU ld that we prefer. 16206 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 16207 *GNU* | *'with BFD'*) 16208 test "$with_gnu_ld" != no && break 16209 ;; 16210 *) 16211 test "$with_gnu_ld" != yes && break 16212 ;; 16213 esac 16214 fi 16215 done 16216 IFS="$lt_save_ifs" 16217else 16218 lt_cv_path_LD="$LD" # Let the user override the test with a path. 16219fi 16220fi 16221 16222LD="$lt_cv_path_LD" 16223if test -n "$LD"; then 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16225$as_echo "$LD" >&6; } 16226else 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16228$as_echo "no" >&6; } 16229fi 16230test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16232$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16233if ${lt_cv_prog_gnu_ld+:} false; then : 16234 $as_echo_n "(cached) " >&6 16235else 16236 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16237case `$LD -v 2>&1 </dev/null` in 16238*GNU* | *'with BFD'*) 16239 lt_cv_prog_gnu_ld=yes 16240 ;; 16241*) 16242 lt_cv_prog_gnu_ld=no 16243 ;; 16244esac 16245fi 16246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16247$as_echo "$lt_cv_prog_gnu_ld" >&6; } 16248with_gnu_ld=$lt_cv_prog_gnu_ld 16249 16250 16251 16252 16253 16254 16255 16256 # If we're not using GNU ld, then there's no point in even trying these 16257 # tests. Check for that first. We should have already tested for gld 16258 # by now (in libtool), but require it now just to be safe... 16259 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' 16260 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' 16261 16262 16263 16264 # The name set by libtool depends on the version of libtool. Shame on us 16265 # for depending on an impl detail, but c'est la vie. Older versions used 16266 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on 16267 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually 16268 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't 16269 # set (hence we're using an older libtool), then set it. 16270 if test x${with_gnu_ld+set} != xset; then 16271 if test x${ac_cv_prog_gnu_ld+set} != xset; then 16272 # We got through "ac_require(ac_prog_ld)" and still not set? Huh? 16273 with_gnu_ld=no 16274 else 16275 with_gnu_ld=$ac_cv_prog_gnu_ld 16276 fi 16277 fi 16278 16279 # Start by getting the version number. I think the libtool test already 16280 # does some of this, but throws away the result. 16281 libgomp_ld_is_gold=no 16282 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then 16283 libgomp_ld_is_gold=yes 16284 fi 16285 16286 ldver=`$LD --version 2>/dev/null | 16287 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'` 16288 16289 libgomp_gnu_ld_version=`echo $ldver | \ 16290 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` 16291 16292 # Set --gc-sections. 16293 if test "$with_gnu_ld" = "notbroken"; then 16294 # GNU ld it is! Joy and bunny rabbits! 16295 16296 # All these tests are for C++; save the language and the compiler flags. 16297 # Need to do this so that g++ won't try to link in libstdc++ 16298 ac_test_CFLAGS="${CFLAGS+set}" 16299 ac_save_CFLAGS="$CFLAGS" 16300 CFLAGS='-x c++ -Wl,--gc-sections' 16301 16302 # Check for -Wl,--gc-sections 16303 # XXX This test is broken at the moment, as symbols required for linking 16304 # are now in libsupc++ (not built yet). In addition, this test has 16305 # cored on solaris in the past. In addition, --gc-sections doesn't 16306 # really work at the moment (keeps on discarding used sections, first 16307 # .eh_frame and now some of the glibc sections for iconv). 16308 # Bzzzzt. Thanks for playing, maybe next time. 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 16310$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } 16311 if test "$cross_compiling" = yes; then : 16312 ac_sectionLDflags=yes 16313else 16314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16315/* end confdefs.h. */ 16316 16317 int main(void) 16318 { 16319 try { throw 1; } 16320 catch (...) { }; 16321 return 0; 16322 } 16323 16324_ACEOF 16325if ac_fn_c_try_run "$LINENO"; then : 16326 ac_sectionLDflags=yes 16327else 16328 ac_sectionLDflags=no 16329fi 16330rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16331 conftest.$ac_objext conftest.beam conftest.$ac_ext 16332fi 16333 16334 if test "$ac_test_CFLAGS" = set; then 16335 CFLAGS="$ac_save_CFLAGS" 16336 else 16337 # this is the suspicious part 16338 CFLAGS='' 16339 fi 16340 if test "$ac_sectionLDflags" = "yes"; then 16341 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" 16342 fi 16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 16344$as_echo "$ac_sectionLDflags" >&6; } 16345 fi 16346 16347 # Set linker optimization flags. 16348 if test x"$with_gnu_ld" = x"yes"; then 16349 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" 16350 fi 16351 16352 16353 16354 16355 16356 16357 # Check whether --enable-symvers was given. 16358if test "${enable_symvers+set}" = set; then : 16359 enableval=$enable_symvers; 16360 case "$enableval" in 16361 yes|no|gnu*|sun) ;; 16362 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; 16363 esac 16364 16365else 16366 enable_symvers=yes 16367fi 16368 16369 16370 16371# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we 16372# don't know enough about $LD to do tricks... 16373 16374 16375# Turn a 'yes' into a suitable default. 16376if test x$enable_symvers = xyes ; then 16377 # FIXME The following test is too strict, in theory. 16378 if test $enable_shared = no || test "x$LD" = x; then 16379 enable_symvers=no 16380 else 16381 if test $with_gnu_ld = yes ; then 16382 enable_symvers=gnu 16383 else 16384 case ${target_os} in 16385 # Sun symbol versioning exists since Solaris 2.5. 16386 solaris2.[5-9]* | solaris2.1[0-9]*) 16387 enable_symvers=sun ;; 16388 *) 16389 enable_symvers=no ;; 16390 esac 16391 fi 16392 fi 16393fi 16394 16395# Check if 'sun' was requested on non-Solaris 2 platforms. 16396if test x$enable_symvers = xsun ; then 16397 case ${target_os} in 16398 solaris2*) 16399 # All fine. 16400 ;; 16401 *) 16402 # Unlikely to work. 16403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 16404$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} 16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 16406$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} 16407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16408$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16409 enable_symvers=no 16410 ;; 16411 esac 16412fi 16413 16414# Check to see if libgcc_s exists, indicating that shared libgcc is possible. 16415if test $enable_symvers != no; then 16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 16417$as_echo_n "checking for shared libgcc... " >&6; } 16418 ac_save_CFLAGS="$CFLAGS" 16419 CFLAGS=' -lgcc_s' 16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16421/* end confdefs.h. */ 16422 16423int 16424main () 16425{ 16426return 0; 16427 ; 16428 return 0; 16429} 16430_ACEOF 16431if ac_fn_c_try_link "$LINENO"; then : 16432 libgomp_shared_libgcc=yes 16433else 16434 libgomp_shared_libgcc=no 16435fi 16436rm -f core conftest.err conftest.$ac_objext \ 16437 conftest$ac_exeext conftest.$ac_ext 16438 CFLAGS="$ac_save_CFLAGS" 16439 if test $libgomp_shared_libgcc = no; then 16440 cat > conftest.c <<EOF 16441int main (void) { return 0; } 16442EOF 16443 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ 16444 -shared -shared-libgcc -o conftest.so \ 16445 conftest.c -v 2>&1 >/dev/null \ 16446 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` 16447 rm -f conftest.c conftest.so 16448 if test x${libgomp_libgcc_s_suffix+set} = xset; then 16449 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" 16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16451/* end confdefs.h. */ 16452 16453int 16454main () 16455{ 16456return 0; 16457 ; 16458 return 0; 16459} 16460_ACEOF 16461if ac_fn_c_try_link "$LINENO"; then : 16462 libgomp_shared_libgcc=yes 16463fi 16464rm -f core conftest.err conftest.$ac_objext \ 16465 conftest$ac_exeext conftest.$ac_ext 16466 CFLAGS="$ac_save_CFLAGS" 16467 fi 16468 fi 16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5 16470$as_echo "$libgomp_shared_libgcc" >&6; } 16471fi 16472 16473# For GNU ld, we need at least this version. The format is described in 16474# LIBGOMP_CHECK_LINKER_FEATURES above. 16475libgomp_min_gnu_ld_version=21400 16476# XXXXXXXXXXX libgomp_gnu_ld_version=21390 16477 16478# Check to see if unspecified "yes" value can win, given results above. 16479# Change "yes" into either "no" or a style name. 16480if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then 16481 if test $with_gnu_ld = yes; then 16482 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then 16483 enable_symvers=gnu 16484 elif test $libgomp_ld_is_gold = yes ; then 16485 enable_symvers=gnu 16486 else 16487 # The right tools, the right setup, but too old. Fallbacks? 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 16489$as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 16491$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} 16492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 16493$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 16495$as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} 16496 if test $libgomp_gnu_ld_version -ge 21200 ; then 16497 # Globbing fix is present, proper block support is not. 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16499$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16500 enable_symvers=no 16501 else 16502 # 2.11 or older. 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16504$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16505 enable_symvers=no 16506 fi 16507 fi 16508 elif test $enable_symvers = sun; then 16509 : All interesting versions of Sun ld support sun style symbol versioning. 16510 else 16511 # just fail for now 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 16513$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} 16514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 16515$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} 16516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 16517$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16519$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16520 enable_symvers=no 16521 fi 16522fi 16523 16524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5 16525$as_echo_n "checking whether the target supports .symver directive... " >&6; } 16526if ${libgomp_cv_have_as_symver_directive+:} false; then : 16527 $as_echo_n "(cached) " >&6 16528else 16529 16530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16531/* end confdefs.h. */ 16532void foo (void); __asm (".symver foo, bar@SYMVER"); 16533int 16534main () 16535{ 16536 16537 ; 16538 return 0; 16539} 16540_ACEOF 16541if ac_fn_c_try_compile "$LINENO"; then : 16542 libgomp_cv_have_as_symver_directive=yes 16543else 16544 libgomp_cv_have_as_symver_directive=no 16545fi 16546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16547fi 16548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5 16549$as_echo "$libgomp_cv_have_as_symver_directive" >&6; } 16550if test $libgomp_cv_have_as_symver_directive = yes; then 16551 16552$as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h 16553 16554fi 16555 16556 if test $enable_symvers != no; then 16557 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= 16558 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' 16559else 16560 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' 16561 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= 16562fi 16563 16564 if test $enable_symvers = gnu; then 16565 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE= 16566 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' 16567else 16568 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' 16569 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE= 16570fi 16571 16572 if test $enable_symvers = sun; then 16573 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE= 16574 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' 16575else 16576 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' 16577 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE= 16578fi 16579 16580{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 16581$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} 16582 16583if test $enable_symvers != no ; then 16584 case ${target_os} in 16585 # The Solaris 2 runtime linker doesn't support the GNU extension of 16586 # binding the same symbol to different versions 16587 solaris2*) 16588 ;; 16589 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do. 16590 *) 16591 16592$as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h 16593 16594 ;; 16595 esac 16596fi 16597 16598 16599if test $enable_symvers = gnu; then 16600 16601$as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h 16602 16603fi 16604 16605# Determine cpu count to limit testsuite parallelism. 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5 16607$as_echo_n "checking the number of available CPUs... " >&6; } 16608 CPU_COUNT="0" 16609 16610 # Try generic methods 16611 16612 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and 16613 # 'NPROCESSORS_ONLN' are platform-specific 16614 command -v getconf >/dev/null 2>&1 && \ 16615 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0" 16616 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then : 16617 : # empty 16618else 16619 # 'nproc' is part of GNU Coreutils and is widely available 16620 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0" 16621 16622fi 16623 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then : 16624 : # empty 16625else 16626 # Try platform-specific preferred methods 16627 case $host_os in #( 16628 *linux*) : 16629 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #( 16630 *darwin*) : 16631 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #( 16632 freebsd*) : 16633 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #( 16634 netbsd*) : 16635 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #( 16636 solaris*) : 16637 command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #( 16638 mingw*) : 16639 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( 16640 msys*) : 16641 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( 16642 cygwin*) : 16643 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( 16644 *) : 16645 ;; 16646esac 16647fi 16648 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then : 16649 : # empty 16650else 16651 # Try less preferred generic method 16652 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux 16653 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0" 16654 16655fi 16656 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then : 16657 : # empty 16658else 16659 # Try platform-specific fallback methods 16660 # They can be less accurate and slower then preferred methods 16661 case $host_os in #( 16662 *linux*) : 16663 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #( 16664 *darwin*) : 16665 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #( 16666 freebsd*) : 16667 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( 16668 netbsd*) : 16669 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \ 16670 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( 16671 solaris*) : 16672 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \ 16673 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #( 16674 mingw*) : 16675 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then : 16676 : # empty 16677else 16678 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" 16679fi ;; #( 16680 msys*) : 16681 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( 16682 cygwin*) : 16683 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( 16684 *) : 16685 ;; 16686esac 16687fi 16688 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then : 16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5 16690$as_echo "$CPU_COUNT" >&6; } 16691 16692else 16693 CPU_COUNT="1" 16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5 16695$as_echo "unable to detect (assuming 1)" >&6; } 16696 16697fi 16698 16699 16700# Get target configury. 16701. ${srcdir}/configure.tgt 16702CFLAGS="$save_CFLAGS $XCFLAGS" 16703 16704# Check for __sync_val_compare_and_swap, but only after the target has 16705# had a chance to set XCFLAGS. 16706 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 16708$as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } 16709if ${libgomp_cv_have_sync_builtins+:} false; then : 16710 $as_echo_n "(cached) " >&6 16711else 16712 16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16714/* end confdefs.h. */ 16715 16716int 16717main () 16718{ 16719int foo; __sync_val_compare_and_swap(&foo, 0, 1); 16720 ; 16721 return 0; 16722} 16723_ACEOF 16724if ac_fn_c_try_link "$LINENO"; then : 16725 libgomp_cv_have_sync_builtins=yes 16726else 16727 libgomp_cv_have_sync_builtins=no 16728fi 16729rm -f core conftest.err conftest.$ac_objext \ 16730 conftest$ac_exeext conftest.$ac_ext 16731fi 16732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5 16733$as_echo "$libgomp_cv_have_sync_builtins" >&6; } 16734 if test $libgomp_cv_have_sync_builtins = yes; then 16735 16736$as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h 16737 16738 fi 16739 16740XCFLAGS="$XCFLAGS$XPCFLAGS" 16741 16742# Add CET specific flags if CET is enabled 16743 # Check whether --enable-cet was given. 16744if test "${enable_cet+set}" = set; then : 16745 enableval=$enable_cet; 16746 case "$enableval" in 16747 yes|no|auto) ;; 16748 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 16749 esac 16750 16751else 16752 enable_cet=no 16753fi 16754 16755 16756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 16757$as_echo_n "checking for CET support... " >&6; } 16758 16759case "$host" in 16760 i[34567]86-*-linux* | x86_64-*-linux*) 16761 case "$enable_cet" in 16762 auto) 16763 # Check if target supports multi-byte NOPs 16764 # and if assembler supports CET insn. 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766/* end confdefs.h. */ 16767 16768int 16769main () 16770{ 16771 16772#if !defined(__SSE2__) 16773#error target does not support multi-byte NOPs 16774#else 16775asm ("setssbsy"); 16776#endif 16777 16778 ; 16779 return 0; 16780} 16781_ACEOF 16782if ac_fn_c_try_compile "$LINENO"; then : 16783 enable_cet=yes 16784else 16785 enable_cet=no 16786fi 16787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16788 ;; 16789 yes) 16790 # Check if assembler supports CET. 16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16792/* end confdefs.h. */ 16793 16794int 16795main () 16796{ 16797asm ("setssbsy"); 16798 ; 16799 return 0; 16800} 16801_ACEOF 16802if ac_fn_c_try_compile "$LINENO"; then : 16803 16804else 16805 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 16806fi 16807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16808 ;; 16809 esac 16810 ;; 16811 *) 16812 enable_cet=no 16813 ;; 16814esac 16815if test x$enable_cet = xyes; then 16816 CET_FLAGS="-fcf-protection -mshstk" 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16818$as_echo "yes" >&6; } 16819else 16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16821$as_echo "no" >&6; } 16822fi 16823 16824XCFLAGS="$XCFLAGS $CET_FLAGS" 16825FCFLAGS="$FCFLAGS $CET_FLAGS" 16826 16827 16828 16829 16830 16831# Cleanup and exit. 16832CFLAGS="$save_CFLAGS" 16833cat >confcache <<\_ACEOF 16834# This file is a shell script that caches the results of configure 16835# tests run on this system so they can be shared between configure 16836# scripts and configure runs, see configure's option --config-cache. 16837# It is not useful on other systems. If it contains results you don't 16838# want to keep, you may remove or edit it. 16839# 16840# config.status only pays attention to the cache file if you give it 16841# the --recheck option to rerun configure. 16842# 16843# `ac_cv_env_foo' variables (set or unset) will be overridden when 16844# loading this file, other *unset* `ac_cv_foo' will be assigned the 16845# following values. 16846 16847_ACEOF 16848 16849# The following way of writing the cache mishandles newlines in values, 16850# but we know of no workaround that is simple, portable, and efficient. 16851# So, we kill variables containing newlines. 16852# Ultrix sh set writes to stderr and can't be redirected directly, 16853# and sets the high bit in the cache file unless we assign to the vars. 16854( 16855 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16856 eval ac_val=\$$ac_var 16857 case $ac_val in #( 16858 *${as_nl}*) 16859 case $ac_var in #( 16860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16862 esac 16863 case $ac_var in #( 16864 _ | IFS | as_nl) ;; #( 16865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16866 *) { eval $ac_var=; unset $ac_var;} ;; 16867 esac ;; 16868 esac 16869 done 16870 16871 (set) 2>&1 | 16872 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16873 *${as_nl}ac_space=\ *) 16874 # `set' does not quote correctly, so add quotes: double-quote 16875 # substitution turns \\\\ into \\, and sed turns \\ into \. 16876 sed -n \ 16877 "s/'/'\\\\''/g; 16878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16879 ;; #( 16880 *) 16881 # `set' quotes correctly as required by POSIX, so do not add quotes. 16882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16883 ;; 16884 esac | 16885 sort 16886) | 16887 sed ' 16888 /^ac_cv_env_/b end 16889 t clear 16890 :clear 16891 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16892 t end 16893 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16894 :end' >>confcache 16895if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16896 if test -w "$cache_file"; then 16897 if test "x$cache_file" != "x/dev/null"; then 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16899$as_echo "$as_me: updating cache $cache_file" >&6;} 16900 if test ! -f "$cache_file" || test -h "$cache_file"; then 16901 cat confcache >"$cache_file" 16902 else 16903 case $cache_file in #( 16904 */* | ?:*) 16905 mv -f confcache "$cache_file"$$ && 16906 mv -f "$cache_file"$$ "$cache_file" ;; #( 16907 *) 16908 mv -f confcache "$cache_file" ;; 16909 esac 16910 fi 16911 fi 16912 else 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16914$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16915 fi 16916fi 16917rm -f confcache 16918 16919if test ${multilib} = yes; then 16920 multilib_arg="--enable-multilib" 16921else 16922 multilib_arg= 16923fi 16924 16925# Set up the set of libraries that we need to link against for libgomp. 16926# Note that the GOMP_SELF_SPEC in gcc.c may force -pthread, 16927# which will force linkage against -lpthread (or equivalent for the system). 16928# That's not 100% ideal, but about the best we can do easily. 16929if test $enable_shared = yes; then 16930 link_gomp="-lgomp %{static: $LIBS}" 16931else 16932 link_gomp="-lgomp $LIBS" 16933fi 16934 16935 16936 if test "$ac_cv_fc_compiler_gnu" = yes; then 16937 USE_FORTRAN_TRUE= 16938 USE_FORTRAN_FALSE='#' 16939else 16940 USE_FORTRAN_TRUE='#' 16941 USE_FORTRAN_FALSE= 16942fi 16943 16944 16945# ??? 2006-01-24: Paulo committed to asking autoconf folk to document 16946# and export AC_COMPUTE_INT. If that happens, then we'll need to remove 16947# the underscore here and update the PREREQ. If it doesn't, then we'll 16948# need to copy this macro to our acinclude.m4. 16949save_CFLAGS="$CFLAGS" 16950for i in $config_path; do 16951 if test -f $srcdir/config/$i/omp-lock.h; then 16952 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h" 16953 break 16954 fi 16955done 16956 16957if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then : 16958 16959else 16960 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5 16961fi 16962 16963 16964if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then : 16965 16966fi 16967 16968 16969if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then : 16970 16971fi 16972 16973 16974if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then : 16975 16976fi 16977 16978 16979if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then : 16980 16981else 16982 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5 16983fi 16984 16985 16986if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then : 16987 16988fi 16989 16990 16991if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then : 16992 16993fi 16994 16995 16996if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then : 16997 16998fi 16999 17000 17001 17002# If the lock fits in an integer, then arrange for Fortran to use that 17003# integer. If it doesn't, then arrange for Fortran to use a pointer. 17004# Except that we don't have a way at present to multi-lib the installed 17005# Fortran modules, so we assume 8 bytes for pointers, regardless of the 17006# actual target. 17007OMP_LOCK_KIND=$OMP_LOCK_SIZE 17008OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE 17009if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then 17010 OMP_LOCK_KIND=8 17011fi 17012if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then 17013 OMP_NEST_LOCK_KIND=8 17014fi 17015OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE 17016OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE 17017if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then 17018 OMP_LOCK_25_KIND=8 17019fi 17020if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then 17021 OMP_NEST_LOCK_25_KIND=8 17022fi 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036CFLAGS="$save_CFLAGS" 17037 17038# Determine what GCC version number to use in filesystem paths. 17039 17040 get_gcc_base_ver="cat" 17041 17042# Check whether --with-gcc-major-version-only was given. 17043if test "${with_gcc_major_version_only+set}" = set; then : 17044 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 17045 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 17046 fi 17047 17048fi 17049 17050 17051 17052 17053ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" 17054 17055ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" 17056 17057ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" 17058 17059ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp" 17060 17061cat >confcache <<\_ACEOF 17062# This file is a shell script that caches the results of configure 17063# tests run on this system so they can be shared between configure 17064# scripts and configure runs, see configure's option --config-cache. 17065# It is not useful on other systems. If it contains results you don't 17066# want to keep, you may remove or edit it. 17067# 17068# config.status only pays attention to the cache file if you give it 17069# the --recheck option to rerun configure. 17070# 17071# `ac_cv_env_foo' variables (set or unset) will be overridden when 17072# loading this file, other *unset* `ac_cv_foo' will be assigned the 17073# following values. 17074 17075_ACEOF 17076 17077# The following way of writing the cache mishandles newlines in values, 17078# but we know of no workaround that is simple, portable, and efficient. 17079# So, we kill variables containing newlines. 17080# Ultrix sh set writes to stderr and can't be redirected directly, 17081# and sets the high bit in the cache file unless we assign to the vars. 17082( 17083 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17084 eval ac_val=\$$ac_var 17085 case $ac_val in #( 17086 *${as_nl}*) 17087 case $ac_var in #( 17088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17090 esac 17091 case $ac_var in #( 17092 _ | IFS | as_nl) ;; #( 17093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17094 *) { eval $ac_var=; unset $ac_var;} ;; 17095 esac ;; 17096 esac 17097 done 17098 17099 (set) 2>&1 | 17100 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17101 *${as_nl}ac_space=\ *) 17102 # `set' does not quote correctly, so add quotes: double-quote 17103 # substitution turns \\\\ into \\, and sed turns \\ into \. 17104 sed -n \ 17105 "s/'/'\\\\''/g; 17106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17107 ;; #( 17108 *) 17109 # `set' quotes correctly as required by POSIX, so do not add quotes. 17110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17111 ;; 17112 esac | 17113 sort 17114) | 17115 sed ' 17116 /^ac_cv_env_/b end 17117 t clear 17118 :clear 17119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17120 t end 17121 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17122 :end' >>confcache 17123if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17124 if test -w "$cache_file"; then 17125 if test "x$cache_file" != "x/dev/null"; then 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17127$as_echo "$as_me: updating cache $cache_file" >&6;} 17128 if test ! -f "$cache_file" || test -h "$cache_file"; then 17129 cat confcache >"$cache_file" 17130 else 17131 case $cache_file in #( 17132 */* | ?:*) 17133 mv -f confcache "$cache_file"$$ && 17134 mv -f "$cache_file"$$ "$cache_file" ;; #( 17135 *) 17136 mv -f confcache "$cache_file" ;; 17137 esac 17138 fi 17139 fi 17140 else 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17142$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17143 fi 17144fi 17145rm -f confcache 17146 17147test "x$prefix" = xNONE && prefix=$ac_default_prefix 17148# Let make expand exec_prefix. 17149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17150 17151DEFS=-DHAVE_CONFIG_H 17152 17153ac_libobjs= 17154ac_ltlibobjs= 17155U= 17156for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17157 # 1. Remove the extension, and $U if already installed. 17158 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17159 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17160 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17161 # will be set to the directory where LIBOBJS objects are built. 17162 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17163 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17164done 17165LIBOBJS=$ac_libobjs 17166 17167LTLIBOBJS=$ac_ltlibobjs 17168 17169 17170if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 17171 as_fn_error $? "conditional \"GENINSRC\" was never defined. 17172Usually this means the macro was only invoked conditionally." "$LINENO" 5 17173fi 17174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17175$as_echo_n "checking that generated files are newer than configure... " >&6; } 17176 if test -n "$am_sleep_pid"; then 17177 # Hide warnings about reused PIDs. 17178 wait $am_sleep_pid 2>/dev/null 17179 fi 17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17181$as_echo "done" >&6; } 17182 if test -n "$EXEEXT"; then 17183 am__EXEEXT_TRUE= 17184 am__EXEEXT_FALSE='#' 17185else 17186 am__EXEEXT_TRUE='#' 17187 am__EXEEXT_FALSE= 17188fi 17189 17190if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17191 as_fn_error $? "conditional \"AMDEP\" was never defined. 17192Usually this means the macro was only invoked conditionally." "$LINENO" 5 17193fi 17194if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17195 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17196Usually this means the macro was only invoked conditionally." "$LINENO" 5 17197fi 17198if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 17199 as_fn_error $? "conditional \"BUILD_INFO\" was never defined. 17200Usually this means the macro was only invoked conditionally." "$LINENO" 5 17201fi 17202if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17203 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17204Usually this means the macro was only invoked conditionally." "$LINENO" 5 17205fi 17206if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then 17207 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined. 17208Usually this means the macro was only invoked conditionally." "$LINENO" 5 17209fi 17210if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then 17211 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined. 17212Usually this means the macro was only invoked conditionally." "$LINENO" 5 17213fi 17214if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then 17215 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined. 17216Usually this means the macro was only invoked conditionally." "$LINENO" 5 17217fi 17218if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then 17219 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. 17220Usually this means the macro was only invoked conditionally." "$LINENO" 5 17221fi 17222if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then 17223 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined. 17224Usually this means the macro was only invoked conditionally." "$LINENO" 5 17225fi 17226if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then 17227 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined. 17228Usually this means the macro was only invoked conditionally." "$LINENO" 5 17229fi 17230if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then 17231 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined. 17232Usually this means the macro was only invoked conditionally." "$LINENO" 5 17233fi 17234 17235: "${CONFIG_STATUS=./config.status}" 17236ac_write_fail=0 17237ac_clean_files_save=$ac_clean_files 17238ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17239{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17240$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17241as_write_fail=0 17242cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17243#! $SHELL 17244# Generated by $as_me. 17245# Run this file to recreate the current configuration. 17246# Compiler output produced by configure, useful for debugging 17247# configure, is in config.log if it exists. 17248 17249debug=false 17250ac_cs_recheck=false 17251ac_cs_silent=false 17252 17253SHELL=\${CONFIG_SHELL-$SHELL} 17254export SHELL 17255_ASEOF 17256cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17257## -------------------- ## 17258## M4sh Initialization. ## 17259## -------------------- ## 17260 17261# Be more Bourne compatible 17262DUALCASE=1; export DUALCASE # for MKS sh 17263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17264 emulate sh 17265 NULLCMD=: 17266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17267 # is contrary to our usage. Disable this feature. 17268 alias -g '${1+"$@"}'='"$@"' 17269 setopt NO_GLOB_SUBST 17270else 17271 case `(set -o) 2>/dev/null` in #( 17272 *posix*) : 17273 set -o posix ;; #( 17274 *) : 17275 ;; 17276esac 17277fi 17278 17279 17280as_nl=' 17281' 17282export as_nl 17283# Printing a long string crashes Solaris 7 /usr/bin/printf. 17284as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17285as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17286as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17287# Prefer a ksh shell builtin over an external printf program on Solaris, 17288# but without wasting forks for bash or zsh. 17289if test -z "$BASH_VERSION$ZSH_VERSION" \ 17290 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17291 as_echo='print -r --' 17292 as_echo_n='print -rn --' 17293elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17294 as_echo='printf %s\n' 17295 as_echo_n='printf %s' 17296else 17297 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17298 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17299 as_echo_n='/usr/ucb/echo -n' 17300 else 17301 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17302 as_echo_n_body='eval 17303 arg=$1; 17304 case $arg in #( 17305 *"$as_nl"*) 17306 expr "X$arg" : "X\\(.*\\)$as_nl"; 17307 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17308 esac; 17309 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17310 ' 17311 export as_echo_n_body 17312 as_echo_n='sh -c $as_echo_n_body as_echo' 17313 fi 17314 export as_echo_body 17315 as_echo='sh -c $as_echo_body as_echo' 17316fi 17317 17318# The user is always right. 17319if test "${PATH_SEPARATOR+set}" != set; then 17320 PATH_SEPARATOR=: 17321 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17322 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17323 PATH_SEPARATOR=';' 17324 } 17325fi 17326 17327 17328# IFS 17329# We need space, tab and new line, in precisely that order. Quoting is 17330# there to prevent editors from complaining about space-tab. 17331# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17332# splitting by setting IFS to empty value.) 17333IFS=" "" $as_nl" 17334 17335# Find who we are. Look in the path if we contain no directory separator. 17336as_myself= 17337case $0 in #(( 17338 *[\\/]* ) as_myself=$0 ;; 17339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17340for as_dir in $PATH 17341do 17342 IFS=$as_save_IFS 17343 test -z "$as_dir" && as_dir=. 17344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17345 done 17346IFS=$as_save_IFS 17347 17348 ;; 17349esac 17350# We did not find ourselves, most probably we were run as `sh COMMAND' 17351# in which case we are not to be found in the path. 17352if test "x$as_myself" = x; then 17353 as_myself=$0 17354fi 17355if test ! -f "$as_myself"; then 17356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17357 exit 1 17358fi 17359 17360# Unset variables that we do not need and which cause bugs (e.g. in 17361# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17362# suppresses any "Segmentation fault" message there. '((' could 17363# trigger a bug in pdksh 5.2.14. 17364for as_var in BASH_ENV ENV MAIL MAILPATH 17365do eval test x\${$as_var+set} = xset \ 17366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17367done 17368PS1='$ ' 17369PS2='> ' 17370PS4='+ ' 17371 17372# NLS nuisances. 17373LC_ALL=C 17374export LC_ALL 17375LANGUAGE=C 17376export LANGUAGE 17377 17378# CDPATH. 17379(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17380 17381 17382# as_fn_error STATUS ERROR [LINENO LOG_FD] 17383# ---------------------------------------- 17384# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17385# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17386# script with STATUS, using 1 if that was 0. 17387as_fn_error () 17388{ 17389 as_status=$1; test $as_status -eq 0 && as_status=1 17390 if test "$4"; then 17391 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17393 fi 17394 $as_echo "$as_me: error: $2" >&2 17395 as_fn_exit $as_status 17396} # as_fn_error 17397 17398 17399# as_fn_set_status STATUS 17400# ----------------------- 17401# Set $? to STATUS, without forking. 17402as_fn_set_status () 17403{ 17404 return $1 17405} # as_fn_set_status 17406 17407# as_fn_exit STATUS 17408# ----------------- 17409# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17410as_fn_exit () 17411{ 17412 set +e 17413 as_fn_set_status $1 17414 exit $1 17415} # as_fn_exit 17416 17417# as_fn_unset VAR 17418# --------------- 17419# Portably unset VAR. 17420as_fn_unset () 17421{ 17422 { eval $1=; unset $1;} 17423} 17424as_unset=as_fn_unset 17425# as_fn_append VAR VALUE 17426# ---------------------- 17427# Append the text in VALUE to the end of the definition contained in VAR. Take 17428# advantage of any shell optimizations that allow amortized linear growth over 17429# repeated appends, instead of the typical quadratic growth present in naive 17430# implementations. 17431if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17432 eval 'as_fn_append () 17433 { 17434 eval $1+=\$2 17435 }' 17436else 17437 as_fn_append () 17438 { 17439 eval $1=\$$1\$2 17440 } 17441fi # as_fn_append 17442 17443# as_fn_arith ARG... 17444# ------------------ 17445# Perform arithmetic evaluation on the ARGs, and store the result in the 17446# global $as_val. Take advantage of shells that can avoid forks. The arguments 17447# must be portable across $(()) and expr. 17448if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17449 eval 'as_fn_arith () 17450 { 17451 as_val=$(( $* )) 17452 }' 17453else 17454 as_fn_arith () 17455 { 17456 as_val=`expr "$@" || test $? -eq 1` 17457 } 17458fi # as_fn_arith 17459 17460 17461if expr a : '\(a\)' >/dev/null 2>&1 && 17462 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17463 as_expr=expr 17464else 17465 as_expr=false 17466fi 17467 17468if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17469 as_basename=basename 17470else 17471 as_basename=false 17472fi 17473 17474if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17475 as_dirname=dirname 17476else 17477 as_dirname=false 17478fi 17479 17480as_me=`$as_basename -- "$0" || 17481$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17482 X"$0" : 'X\(//\)$' \| \ 17483 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17484$as_echo X/"$0" | 17485 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17486 s//\1/ 17487 q 17488 } 17489 /^X\/\(\/\/\)$/{ 17490 s//\1/ 17491 q 17492 } 17493 /^X\/\(\/\).*/{ 17494 s//\1/ 17495 q 17496 } 17497 s/.*/./; q'` 17498 17499# Avoid depending upon Character Ranges. 17500as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17501as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17502as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17503as_cr_digits='0123456789' 17504as_cr_alnum=$as_cr_Letters$as_cr_digits 17505 17506ECHO_C= ECHO_N= ECHO_T= 17507case `echo -n x` in #((((( 17508-n*) 17509 case `echo 'xy\c'` in 17510 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17511 xy) ECHO_C='\c';; 17512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17513 ECHO_T=' ';; 17514 esac;; 17515*) 17516 ECHO_N='-n';; 17517esac 17518 17519rm -f conf$$ conf$$.exe conf$$.file 17520if test -d conf$$.dir; then 17521 rm -f conf$$.dir/conf$$.file 17522else 17523 rm -f conf$$.dir 17524 mkdir conf$$.dir 2>/dev/null 17525fi 17526if (echo >conf$$.file) 2>/dev/null; then 17527 if ln -s conf$$.file conf$$ 2>/dev/null; then 17528 as_ln_s='ln -s' 17529 # ... but there are two gotchas: 17530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17532 # In both cases, we have to default to `cp -pR'. 17533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17534 as_ln_s='cp -pR' 17535 elif ln conf$$.file conf$$ 2>/dev/null; then 17536 as_ln_s=ln 17537 else 17538 as_ln_s='cp -pR' 17539 fi 17540else 17541 as_ln_s='cp -pR' 17542fi 17543rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17544rmdir conf$$.dir 2>/dev/null 17545 17546 17547# as_fn_mkdir_p 17548# ------------- 17549# Create "$as_dir" as a directory, including parents if necessary. 17550as_fn_mkdir_p () 17551{ 17552 17553 case $as_dir in #( 17554 -*) as_dir=./$as_dir;; 17555 esac 17556 test -d "$as_dir" || eval $as_mkdir_p || { 17557 as_dirs= 17558 while :; do 17559 case $as_dir in #( 17560 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17561 *) as_qdir=$as_dir;; 17562 esac 17563 as_dirs="'$as_qdir' $as_dirs" 17564 as_dir=`$as_dirname -- "$as_dir" || 17565$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17566 X"$as_dir" : 'X\(//\)[^/]' \| \ 17567 X"$as_dir" : 'X\(//\)$' \| \ 17568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17569$as_echo X"$as_dir" | 17570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17571 s//\1/ 17572 q 17573 } 17574 /^X\(\/\/\)[^/].*/{ 17575 s//\1/ 17576 q 17577 } 17578 /^X\(\/\/\)$/{ 17579 s//\1/ 17580 q 17581 } 17582 /^X\(\/\).*/{ 17583 s//\1/ 17584 q 17585 } 17586 s/.*/./; q'` 17587 test -d "$as_dir" && break 17588 done 17589 test -z "$as_dirs" || eval "mkdir $as_dirs" 17590 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17591 17592 17593} # as_fn_mkdir_p 17594if mkdir -p . 2>/dev/null; then 17595 as_mkdir_p='mkdir -p "$as_dir"' 17596else 17597 test -d ./-p && rmdir ./-p 17598 as_mkdir_p=false 17599fi 17600 17601 17602# as_fn_executable_p FILE 17603# ----------------------- 17604# Test if FILE is an executable regular file. 17605as_fn_executable_p () 17606{ 17607 test -f "$1" && test -x "$1" 17608} # as_fn_executable_p 17609as_test_x='test -x' 17610as_executable_p=as_fn_executable_p 17611 17612# Sed expression to map a string onto a valid CPP name. 17613as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17614 17615# Sed expression to map a string onto a valid variable name. 17616as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17617 17618 17619exec 6>&1 17620## ----------------------------------- ## 17621## Main body of $CONFIG_STATUS script. ## 17622## ----------------------------------- ## 17623_ASEOF 17624test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17625 17626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17627# Save the log message, to keep $0 and so on meaningful, and to 17628# report actual input values of CONFIG_FILES etc. instead of their 17629# values after options handling. 17630ac_log=" 17631This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was 17632generated by GNU Autoconf 2.69. Invocation command line was 17633 17634 CONFIG_FILES = $CONFIG_FILES 17635 CONFIG_HEADERS = $CONFIG_HEADERS 17636 CONFIG_LINKS = $CONFIG_LINKS 17637 CONFIG_COMMANDS = $CONFIG_COMMANDS 17638 $ $0 $@ 17639 17640on `(hostname || uname -n) 2>/dev/null | sed 1q` 17641" 17642 17643_ACEOF 17644 17645case $ac_config_files in *" 17646"*) set x $ac_config_files; shift; ac_config_files=$*;; 17647esac 17648 17649case $ac_config_headers in *" 17650"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17651esac 17652 17653 17654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17655# Files that config.status was made for. 17656config_files="$ac_config_files" 17657config_headers="$ac_config_headers" 17658config_commands="$ac_config_commands" 17659 17660_ACEOF 17661 17662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17663ac_cs_usage="\ 17664\`$as_me' instantiates files and other configuration actions 17665from templates according to the current configuration. Unless the files 17666and actions are specified as TAGs, all are instantiated by default. 17667 17668Usage: $0 [OPTION]... [TAG]... 17669 17670 -h, --help print this help, then exit 17671 -V, --version print version number and configuration settings, then exit 17672 --config print configuration, then exit 17673 -q, --quiet, --silent 17674 do not print progress messages 17675 -d, --debug don't remove temporary files 17676 --recheck update $as_me by reconfiguring in the same conditions 17677 --file=FILE[:TEMPLATE] 17678 instantiate the configuration file FILE 17679 --header=FILE[:TEMPLATE] 17680 instantiate the configuration header FILE 17681 17682Configuration files: 17683$config_files 17684 17685Configuration headers: 17686$config_headers 17687 17688Configuration commands: 17689$config_commands 17690 17691Report bugs to the package provider. 17692GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. 17693General help using GNU software: <http://www.gnu.org/gethelp/>." 17694 17695_ACEOF 17696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17697ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17698ac_cs_version="\\ 17699GNU Offloading and Multi Processing Runtime Library config.status 1.0 17700configured by $0, generated by GNU Autoconf 2.69, 17701 with options \\"\$ac_cs_config\\" 17702 17703Copyright (C) 2012 Free Software Foundation, Inc. 17704This config.status script is free software; the Free Software Foundation 17705gives unlimited permission to copy, distribute and modify it." 17706 17707ac_pwd='$ac_pwd' 17708srcdir='$srcdir' 17709INSTALL='$INSTALL' 17710MKDIR_P='$MKDIR_P' 17711AWK='$AWK' 17712test -n "\$AWK" || AWK=awk 17713_ACEOF 17714 17715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17716# The default lists apply if the user does not specify any file. 17717ac_need_defaults=: 17718while test $# != 0 17719do 17720 case $1 in 17721 --*=?*) 17722 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17723 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17724 ac_shift=: 17725 ;; 17726 --*=) 17727 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17728 ac_optarg= 17729 ac_shift=: 17730 ;; 17731 *) 17732 ac_option=$1 17733 ac_optarg=$2 17734 ac_shift=shift 17735 ;; 17736 esac 17737 17738 case $ac_option in 17739 # Handling of the options. 17740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17741 ac_cs_recheck=: ;; 17742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17743 $as_echo "$ac_cs_version"; exit ;; 17744 --config | --confi | --conf | --con | --co | --c ) 17745 $as_echo "$ac_cs_config"; exit ;; 17746 --debug | --debu | --deb | --de | --d | -d ) 17747 debug=: ;; 17748 --file | --fil | --fi | --f ) 17749 $ac_shift 17750 case $ac_optarg in 17751 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17752 '') as_fn_error $? "missing file argument" ;; 17753 esac 17754 as_fn_append CONFIG_FILES " '$ac_optarg'" 17755 ac_need_defaults=false;; 17756 --header | --heade | --head | --hea ) 17757 $ac_shift 17758 case $ac_optarg in 17759 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17760 esac 17761 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17762 ac_need_defaults=false;; 17763 --he | --h) 17764 # Conflict between --help and --header 17765 as_fn_error $? "ambiguous option: \`$1' 17766Try \`$0 --help' for more information.";; 17767 --help | --hel | -h ) 17768 $as_echo "$ac_cs_usage"; exit ;; 17769 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17770 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17771 ac_cs_silent=: ;; 17772 17773 # This is an error. 17774 -*) as_fn_error $? "unrecognized option: \`$1' 17775Try \`$0 --help' for more information." ;; 17776 17777 *) as_fn_append ac_config_targets " $1" 17778 ac_need_defaults=false ;; 17779 17780 esac 17781 shift 17782done 17783 17784ac_configure_extra_args= 17785 17786if $ac_cs_silent; then 17787 exec 6>/dev/null 17788 ac_configure_extra_args="$ac_configure_extra_args --silent" 17789fi 17790 17791_ACEOF 17792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17793if \$ac_cs_recheck; then 17794 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17795 shift 17796 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17797 CONFIG_SHELL='$SHELL' 17798 export CONFIG_SHELL 17799 exec "\$@" 17800fi 17801 17802_ACEOF 17803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17804exec 5>>config.log 17805{ 17806 echo 17807 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17808## Running $as_me. ## 17809_ASBOX 17810 $as_echo "$ac_log" 17811} >&5 17812 17813_ACEOF 17814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17815# 17816# INIT-COMMANDS 17817# 17818 17819srcdir="$srcdir" 17820host="$host" 17821target="$target" 17822with_multisubdir="$with_multisubdir" 17823with_multisrctop="$with_multisrctop" 17824with_target_subdir="$with_target_subdir" 17825ac_configure_args="${multilib_arg} ${ac_configure_args}" 17826multi_basedir="$multi_basedir" 17827CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 17828CC="$CC" 17829CXX="$CXX" 17830GFORTRAN="$GFORTRAN" 17831GDC="$GDC" 17832AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17833 17834 17835# The HP-UX ksh and POSIX shell print the target directory to stdout 17836# if CDPATH is set. 17837(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17838 17839sed_quote_subst='$sed_quote_subst' 17840double_quote_subst='$double_quote_subst' 17841delay_variable_subst='$delay_variable_subst' 17842macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17843macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17844enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17845enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17846pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17847enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17848SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17849ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17850host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17851host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17852host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17853build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17854build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17855build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17856SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17857Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17858GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17859EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17860FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17861LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17862NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17863LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17864max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17865ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17866exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17867lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17868lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17869lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17870reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17871reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17872OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17873deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17874file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17875AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17876AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17877STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17878RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17879old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17880old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17881old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17882lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17883CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17884CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17885compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17886GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17887lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17888lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17889lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17890lt_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"`' 17891objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17892MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17893lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17894lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17895lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17896lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17897lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17898need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17899DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17900NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17901LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17902OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17903OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17904libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17905shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17906extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17907archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17908enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17909export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17910whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17911compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17912old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17913old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17914archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17915archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17916module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17917module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17918with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17919allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17920no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17921hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17922hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 17923hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17924hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17925hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17926hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17927hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17928hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17929inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17930link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17931fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 17932always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17933export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17934exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17935include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17936prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17937file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17938variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17939need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17940need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17941version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17942runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17943shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17944shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17945libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17946library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17947soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17948install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17949postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17950postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17951finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17952finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17953hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17954sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17955sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17956hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17957enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17958enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17959enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17960old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17961striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17962compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17963predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17964postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17965predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17966postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17967compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17968LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 17969reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 17970reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 17971old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 17972compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 17973GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 17974lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 17975lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 17976lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 17977lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 17978lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 17979archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 17980enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 17981export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 17982whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 17983compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 17984old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 17985old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 17986archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 17987archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 17988module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 17989module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 17990with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 17991allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 17992no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 17993hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 17994hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' 17995hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 17996hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 17997hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 17998hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 17999hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 18000hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 18001inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 18002link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 18003fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' 18004always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 18005export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 18006exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 18007include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 18008prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 18009file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 18010hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 18011compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 18012predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 18013postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 18014predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 18015postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 18016compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 18017 18018LTCC='$LTCC' 18019LTCFLAGS='$LTCFLAGS' 18020compiler='$compiler_DEFAULT' 18021 18022# A function that is used when there is no print builtin or printf. 18023func_fallback_echo () 18024{ 18025 eval 'cat <<_LTECHO_EOF 18026\$1 18027_LTECHO_EOF' 18028} 18029 18030# Quote evaled strings. 18031for var in SHELL \ 18032ECHO \ 18033SED \ 18034GREP \ 18035EGREP \ 18036FGREP \ 18037LD \ 18038NM \ 18039LN_S \ 18040lt_SP2NL \ 18041lt_NL2SP \ 18042reload_flag \ 18043OBJDUMP \ 18044deplibs_check_method \ 18045file_magic_cmd \ 18046AR \ 18047AR_FLAGS \ 18048STRIP \ 18049RANLIB \ 18050CC \ 18051CFLAGS \ 18052compiler \ 18053lt_cv_sys_global_symbol_pipe \ 18054lt_cv_sys_global_symbol_to_cdecl \ 18055lt_cv_sys_global_symbol_to_c_name_address \ 18056lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18057lt_prog_compiler_no_builtin_flag \ 18058lt_prog_compiler_wl \ 18059lt_prog_compiler_pic \ 18060lt_prog_compiler_static \ 18061lt_cv_prog_compiler_c_o \ 18062need_locks \ 18063DSYMUTIL \ 18064NMEDIT \ 18065LIPO \ 18066OTOOL \ 18067OTOOL64 \ 18068shrext_cmds \ 18069export_dynamic_flag_spec \ 18070whole_archive_flag_spec \ 18071compiler_needs_object \ 18072with_gnu_ld \ 18073allow_undefined_flag \ 18074no_undefined_flag \ 18075hardcode_libdir_flag_spec \ 18076hardcode_libdir_flag_spec_ld \ 18077hardcode_libdir_separator \ 18078fix_srcfile_path \ 18079exclude_expsyms \ 18080include_expsyms \ 18081file_list_spec \ 18082variables_saved_for_relink \ 18083libname_spec \ 18084library_names_spec \ 18085soname_spec \ 18086install_override_mode \ 18087finish_eval \ 18088old_striplib \ 18089striplib \ 18090compiler_lib_search_dirs \ 18091predep_objects \ 18092postdep_objects \ 18093predeps \ 18094postdeps \ 18095compiler_lib_search_path \ 18096LD_FC \ 18097reload_flag_FC \ 18098compiler_FC \ 18099lt_prog_compiler_no_builtin_flag_FC \ 18100lt_prog_compiler_wl_FC \ 18101lt_prog_compiler_pic_FC \ 18102lt_prog_compiler_static_FC \ 18103lt_cv_prog_compiler_c_o_FC \ 18104export_dynamic_flag_spec_FC \ 18105whole_archive_flag_spec_FC \ 18106compiler_needs_object_FC \ 18107with_gnu_ld_FC \ 18108allow_undefined_flag_FC \ 18109no_undefined_flag_FC \ 18110hardcode_libdir_flag_spec_FC \ 18111hardcode_libdir_flag_spec_ld_FC \ 18112hardcode_libdir_separator_FC \ 18113fix_srcfile_path_FC \ 18114exclude_expsyms_FC \ 18115include_expsyms_FC \ 18116file_list_spec_FC \ 18117compiler_lib_search_dirs_FC \ 18118predep_objects_FC \ 18119postdep_objects_FC \ 18120predeps_FC \ 18121postdeps_FC \ 18122compiler_lib_search_path_FC; do 18123 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18124 *[\\\\\\\`\\"\\\$]*) 18125 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18126 ;; 18127 *) 18128 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18129 ;; 18130 esac 18131done 18132 18133# Double-quote double-evaled strings. 18134for var in reload_cmds \ 18135old_postinstall_cmds \ 18136old_postuninstall_cmds \ 18137old_archive_cmds \ 18138extract_expsyms_cmds \ 18139old_archive_from_new_cmds \ 18140old_archive_from_expsyms_cmds \ 18141archive_cmds \ 18142archive_expsym_cmds \ 18143module_cmds \ 18144module_expsym_cmds \ 18145export_symbols_cmds \ 18146prelink_cmds \ 18147postinstall_cmds \ 18148postuninstall_cmds \ 18149finish_cmds \ 18150sys_lib_search_path_spec \ 18151sys_lib_dlsearch_path_spec \ 18152reload_cmds_FC \ 18153old_archive_cmds_FC \ 18154old_archive_from_new_cmds_FC \ 18155old_archive_from_expsyms_cmds_FC \ 18156archive_cmds_FC \ 18157archive_expsym_cmds_FC \ 18158module_cmds_FC \ 18159module_expsym_cmds_FC \ 18160export_symbols_cmds_FC \ 18161prelink_cmds_FC; do 18162 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18163 *[\\\\\\\`\\"\\\$]*) 18164 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18165 ;; 18166 *) 18167 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18168 ;; 18169 esac 18170done 18171 18172ac_aux_dir='$ac_aux_dir' 18173xsi_shell='$xsi_shell' 18174lt_shell_append='$lt_shell_append' 18175 18176# See if we are running on zsh, and set the options which allow our 18177# commands through without removal of \ escapes INIT. 18178if test -n "\${ZSH_VERSION+set}" ; then 18179 setopt NO_GLOB_SUBST 18180fi 18181 18182 18183 PACKAGE='$PACKAGE' 18184 VERSION='$VERSION' 18185 TIMESTAMP='$TIMESTAMP' 18186 RM='$RM' 18187 ofile='$ofile' 18188 18189 18190 18191 18192 18193 18194_ACEOF 18195 18196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18197 18198# Handling of arguments. 18199for ac_config_target in $ac_config_targets 18200do 18201 case $ac_config_target in 18202 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18203 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18204 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18205 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18206 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;; 18207 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; 18208 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; 18209 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; 18210 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18211 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 18212 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; 18213 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;; 18214 "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;; 18215 18216 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18217 esac 18218done 18219 18220 18221# If the user did not use the arguments to specify the items to instantiate, 18222# then the envvar interface is used. Set only those that are not. 18223# We use the long form for the default assignment because of an extremely 18224# bizarre bug on SunOS 4.1.3. 18225if $ac_need_defaults; then 18226 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18227 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18229fi 18230 18231# Have a temporary directory for convenience. Make it in the build tree 18232# simply because there is no reason against having it here, and in addition, 18233# creating and moving files from /tmp can sometimes cause problems. 18234# Hook for its removal unless debugging. 18235# Note that there is a small window in which the directory will not be cleaned: 18236# after its creation but before its name has been assigned to `$tmp'. 18237$debug || 18238{ 18239 tmp= ac_tmp= 18240 trap 'exit_status=$? 18241 : "${ac_tmp:=$tmp}" 18242 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18243' 0 18244 trap 'as_fn_exit 1' 1 2 13 15 18245} 18246# Create a (secure) tmp directory for tmp files. 18247 18248{ 18249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18250 test -d "$tmp" 18251} || 18252{ 18253 tmp=./conf$$-$RANDOM 18254 (umask 077 && mkdir "$tmp") 18255} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18256ac_tmp=$tmp 18257 18258# Set up the scripts for CONFIG_FILES section. 18259# No need to generate them if there are no CONFIG_FILES. 18260# This happens for instance with `./config.status config.h'. 18261if test -n "$CONFIG_FILES"; then 18262 18263 18264ac_cr=`echo X | tr X '\015'` 18265# On cygwin, bash can eat \r inside `` if the user requested igncr. 18266# But we know of no other shell where ac_cr would be empty at this 18267# point, so we can use a bashism as a fallback. 18268if test "x$ac_cr" = x; then 18269 eval ac_cr=\$\'\\r\' 18270fi 18271ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18272if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18273 ac_cs_awk_cr='\\r' 18274else 18275 ac_cs_awk_cr=$ac_cr 18276fi 18277 18278echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18279_ACEOF 18280 18281 18282{ 18283 echo "cat >conf$$subs.awk <<_ACEOF" && 18284 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18285 echo "_ACEOF" 18286} >conf$$subs.sh || 18287 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18288ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18289ac_delim='%!_!# ' 18290for ac_last_try in false false false false false :; do 18291 . ./conf$$subs.sh || 18292 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18293 18294 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18295 if test $ac_delim_n = $ac_delim_num; then 18296 break 18297 elif $ac_last_try; then 18298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18299 else 18300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18301 fi 18302done 18303rm -f conf$$subs.sh 18304 18305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18306cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18307_ACEOF 18308sed -n ' 18309h 18310s/^/S["/; s/!.*/"]=/ 18311p 18312g 18313s/^[^!]*!// 18314:repl 18315t repl 18316s/'"$ac_delim"'$// 18317t delim 18318:nl 18319h 18320s/\(.\{148\}\)..*/\1/ 18321t more1 18322s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18323p 18324n 18325b repl 18326:more1 18327s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18328p 18329g 18330s/.\{148\}// 18331t nl 18332:delim 18333h 18334s/\(.\{148\}\)..*/\1/ 18335t more2 18336s/["\\]/\\&/g; s/^/"/; s/$/"/ 18337p 18338b 18339:more2 18340s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18341p 18342g 18343s/.\{148\}// 18344t delim 18345' <conf$$subs.awk | sed ' 18346/^[^""]/{ 18347 N 18348 s/\n// 18349} 18350' >>$CONFIG_STATUS || ac_write_fail=1 18351rm -f conf$$subs.awk 18352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18353_ACAWK 18354cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18355 for (key in S) S_is_set[key] = 1 18356 FS = "" 18357 18358} 18359{ 18360 line = $ 0 18361 nfields = split(line, field, "@") 18362 substed = 0 18363 len = length(field[1]) 18364 for (i = 2; i < nfields; i++) { 18365 key = field[i] 18366 keylen = length(key) 18367 if (S_is_set[key]) { 18368 value = S[key] 18369 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18370 len += length(value) + length(field[++i]) 18371 substed = 1 18372 } else 18373 len += 1 + keylen 18374 } 18375 18376 print line 18377} 18378 18379_ACAWK 18380_ACEOF 18381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18382if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18383 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18384else 18385 cat 18386fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18387 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18388_ACEOF 18389 18390# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18391# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18392# trailing colons and then remove the whole line if VPATH becomes empty 18393# (actually we leave an empty line to preserve line numbers). 18394if test "x$srcdir" = x.; then 18395 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18396h 18397s/// 18398s/^/:/ 18399s/[ ]*$/:/ 18400s/:\$(srcdir):/:/g 18401s/:\${srcdir}:/:/g 18402s/:@srcdir@:/:/g 18403s/^:*// 18404s/:*$// 18405x 18406s/\(=[ ]*\).*/\1/ 18407G 18408s/\n// 18409s/^[^=]*=[ ]*$// 18410}' 18411fi 18412 18413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18414fi # test -n "$CONFIG_FILES" 18415 18416# Set up the scripts for CONFIG_HEADERS section. 18417# No need to generate them if there are no CONFIG_HEADERS. 18418# This happens for instance with `./config.status Makefile'. 18419if test -n "$CONFIG_HEADERS"; then 18420cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18421BEGIN { 18422_ACEOF 18423 18424# Transform confdefs.h into an awk script `defines.awk', embedded as 18425# here-document in config.status, that substitutes the proper values into 18426# config.h.in to produce config.h. 18427 18428# Create a delimiter string that does not exist in confdefs.h, to ease 18429# handling of long lines. 18430ac_delim='%!_!# ' 18431for ac_last_try in false false :; do 18432 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18433 if test -z "$ac_tt"; then 18434 break 18435 elif $ac_last_try; then 18436 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18437 else 18438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18439 fi 18440done 18441 18442# For the awk script, D is an array of macro values keyed by name, 18443# likewise P contains macro parameters if any. Preserve backslash 18444# newline sequences. 18445 18446ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18447sed -n ' 18448s/.\{148\}/&'"$ac_delim"'/g 18449t rset 18450:rset 18451s/^[ ]*#[ ]*define[ ][ ]*/ / 18452t def 18453d 18454:def 18455s/\\$// 18456t bsnl 18457s/["\\]/\\&/g 18458s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18459D["\1"]=" \3"/p 18460s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18461d 18462:bsnl 18463s/["\\]/\\&/g 18464s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18465D["\1"]=" \3\\\\\\n"\\/p 18466t cont 18467s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18468t cont 18469d 18470:cont 18471n 18472s/.\{148\}/&'"$ac_delim"'/g 18473t clear 18474:clear 18475s/\\$// 18476t bsnlc 18477s/["\\]/\\&/g; s/^/"/; s/$/"/p 18478d 18479:bsnlc 18480s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18481b cont 18482' <confdefs.h | sed ' 18483s/'"$ac_delim"'/"\\\ 18484"/g' >>$CONFIG_STATUS || ac_write_fail=1 18485 18486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18487 for (key in D) D_is_set[key] = 1 18488 FS = "" 18489} 18490/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18491 line = \$ 0 18492 split(line, arg, " ") 18493 if (arg[1] == "#") { 18494 defundef = arg[2] 18495 mac1 = arg[3] 18496 } else { 18497 defundef = substr(arg[1], 2) 18498 mac1 = arg[2] 18499 } 18500 split(mac1, mac2, "(") #) 18501 macro = mac2[1] 18502 prefix = substr(line, 1, index(line, defundef) - 1) 18503 if (D_is_set[macro]) { 18504 # Preserve the white space surrounding the "#". 18505 print prefix "define", macro P[macro] D[macro] 18506 next 18507 } else { 18508 # Replace #undef with comments. This is necessary, for example, 18509 # in the case of _POSIX_SOURCE, which is predefined and required 18510 # on some systems where configure will not decide to define it. 18511 if (defundef == "undef") { 18512 print "/*", prefix defundef, macro, "*/" 18513 next 18514 } 18515 } 18516} 18517{ print } 18518_ACAWK 18519_ACEOF 18520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18521 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18522fi # test -n "$CONFIG_HEADERS" 18523 18524 18525eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18526shift 18527for ac_tag 18528do 18529 case $ac_tag in 18530 :[FHLC]) ac_mode=$ac_tag; continue;; 18531 esac 18532 case $ac_mode$ac_tag in 18533 :[FHL]*:*);; 18534 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18535 :[FH]-) ac_tag=-:-;; 18536 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18537 esac 18538 ac_save_IFS=$IFS 18539 IFS=: 18540 set x $ac_tag 18541 IFS=$ac_save_IFS 18542 shift 18543 ac_file=$1 18544 shift 18545 18546 case $ac_mode in 18547 :L) ac_source=$1;; 18548 :[FH]) 18549 ac_file_inputs= 18550 for ac_f 18551 do 18552 case $ac_f in 18553 -) ac_f="$ac_tmp/stdin";; 18554 *) # Look for the file first in the build tree, then in the source tree 18555 # (if the path is not absolute). The absolute path cannot be DOS-style, 18556 # because $ac_f cannot contain `:'. 18557 test -f "$ac_f" || 18558 case $ac_f in 18559 [\\/$]*) false;; 18560 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18561 esac || 18562 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18563 esac 18564 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18565 as_fn_append ac_file_inputs " '$ac_f'" 18566 done 18567 18568 # Let's still pretend it is `configure' which instantiates (i.e., don't 18569 # use $as_me), people would be surprised to read: 18570 # /* config.h. Generated by config.status. */ 18571 configure_input='Generated from '` 18572 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18573 `' by configure.' 18574 if test x"$ac_file" != x-; then 18575 configure_input="$ac_file. $configure_input" 18576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18577$as_echo "$as_me: creating $ac_file" >&6;} 18578 fi 18579 # Neutralize special characters interpreted by sed in replacement strings. 18580 case $configure_input in #( 18581 *\&* | *\|* | *\\* ) 18582 ac_sed_conf_input=`$as_echo "$configure_input" | 18583 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18584 *) ac_sed_conf_input=$configure_input;; 18585 esac 18586 18587 case $ac_tag in 18588 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18590 esac 18591 ;; 18592 esac 18593 18594 ac_dir=`$as_dirname -- "$ac_file" || 18595$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18596 X"$ac_file" : 'X\(//\)[^/]' \| \ 18597 X"$ac_file" : 'X\(//\)$' \| \ 18598 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18599$as_echo X"$ac_file" | 18600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18601 s//\1/ 18602 q 18603 } 18604 /^X\(\/\/\)[^/].*/{ 18605 s//\1/ 18606 q 18607 } 18608 /^X\(\/\/\)$/{ 18609 s//\1/ 18610 q 18611 } 18612 /^X\(\/\).*/{ 18613 s//\1/ 18614 q 18615 } 18616 s/.*/./; q'` 18617 as_dir="$ac_dir"; as_fn_mkdir_p 18618 ac_builddir=. 18619 18620case "$ac_dir" in 18621.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18622*) 18623 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18624 # A ".." for each directory in $ac_dir_suffix. 18625 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18626 case $ac_top_builddir_sub in 18627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18629 esac ;; 18630esac 18631ac_abs_top_builddir=$ac_pwd 18632ac_abs_builddir=$ac_pwd$ac_dir_suffix 18633# for backward compatibility: 18634ac_top_builddir=$ac_top_build_prefix 18635 18636case $srcdir in 18637 .) # We are building in place. 18638 ac_srcdir=. 18639 ac_top_srcdir=$ac_top_builddir_sub 18640 ac_abs_top_srcdir=$ac_pwd ;; 18641 [\\/]* | ?:[\\/]* ) # Absolute name. 18642 ac_srcdir=$srcdir$ac_dir_suffix; 18643 ac_top_srcdir=$srcdir 18644 ac_abs_top_srcdir=$srcdir ;; 18645 *) # Relative name. 18646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18647 ac_top_srcdir=$ac_top_build_prefix$srcdir 18648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18649esac 18650ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18651 18652 18653 case $ac_mode in 18654 :F) 18655 # 18656 # CONFIG_FILE 18657 # 18658 18659 case $INSTALL in 18660 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18661 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18662 esac 18663 ac_MKDIR_P=$MKDIR_P 18664 case $MKDIR_P in 18665 [\\/$]* | ?:[\\/]* ) ;; 18666 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18667 esac 18668_ACEOF 18669 18670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18671# If the template does not know about datarootdir, expand it. 18672# FIXME: This hack should be removed a few years after 2.60. 18673ac_datarootdir_hack=; ac_datarootdir_seen= 18674ac_sed_dataroot=' 18675/datarootdir/ { 18676 p 18677 q 18678} 18679/@datadir@/p 18680/@docdir@/p 18681/@infodir@/p 18682/@localedir@/p 18683/@mandir@/p' 18684case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18685*datarootdir*) ac_datarootdir_seen=yes;; 18686*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18688$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18689_ACEOF 18690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18691 ac_datarootdir_hack=' 18692 s&@datadir@&$datadir&g 18693 s&@docdir@&$docdir&g 18694 s&@infodir@&$infodir&g 18695 s&@localedir@&$localedir&g 18696 s&@mandir@&$mandir&g 18697 s&\\\${datarootdir}&$datarootdir&g' ;; 18698esac 18699_ACEOF 18700 18701# Neutralize VPATH when `$srcdir' = `.'. 18702# Shell code in configure.ac might set extrasub. 18703# FIXME: do we really want to maintain this feature? 18704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18705ac_sed_extra="$ac_vpsub 18706$extrasub 18707_ACEOF 18708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18709:t 18710/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18711s|@configure_input@|$ac_sed_conf_input|;t t 18712s&@top_builddir@&$ac_top_builddir_sub&;t t 18713s&@top_build_prefix@&$ac_top_build_prefix&;t t 18714s&@srcdir@&$ac_srcdir&;t t 18715s&@abs_srcdir@&$ac_abs_srcdir&;t t 18716s&@top_srcdir@&$ac_top_srcdir&;t t 18717s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18718s&@builddir@&$ac_builddir&;t t 18719s&@abs_builddir@&$ac_abs_builddir&;t t 18720s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18721s&@INSTALL@&$ac_INSTALL&;t t 18722s&@MKDIR_P@&$ac_MKDIR_P&;t t 18723$ac_datarootdir_hack 18724" 18725eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18726 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18727 18728test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18729 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18730 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18731 "$ac_tmp/out"`; test -z "$ac_out"; } && 18732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18733which seems to be undefined. Please make sure it is defined" >&5 18734$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18735which seems to be undefined. Please make sure it is defined" >&2;} 18736 18737 rm -f "$ac_tmp/stdin" 18738 case $ac_file in 18739 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18740 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18741 esac \ 18742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18743 ;; 18744 :H) 18745 # 18746 # CONFIG_HEADER 18747 # 18748 if test x"$ac_file" != x-; then 18749 { 18750 $as_echo "/* $configure_input */" \ 18751 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18752 } >"$ac_tmp/config.h" \ 18753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18754 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18755 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18756$as_echo "$as_me: $ac_file is unchanged" >&6;} 18757 else 18758 rm -f "$ac_file" 18759 mv "$ac_tmp/config.h" "$ac_file" \ 18760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18761 fi 18762 else 18763 $as_echo "/* $configure_input */" \ 18764 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18765 || as_fn_error $? "could not create -" "$LINENO" 5 18766 fi 18767# Compute "$ac_file"'s index in $config_headers. 18768_am_arg="$ac_file" 18769_am_stamp_count=1 18770for _am_header in $config_headers :; do 18771 case $_am_header in 18772 $_am_arg | $_am_arg:* ) 18773 break ;; 18774 * ) 18775 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18776 esac 18777done 18778echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18779$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18780 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18781 X"$_am_arg" : 'X\(//\)$' \| \ 18782 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18783$as_echo X"$_am_arg" | 18784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18785 s//\1/ 18786 q 18787 } 18788 /^X\(\/\/\)[^/].*/{ 18789 s//\1/ 18790 q 18791 } 18792 /^X\(\/\/\)$/{ 18793 s//\1/ 18794 q 18795 } 18796 /^X\(\/\).*/{ 18797 s//\1/ 18798 q 18799 } 18800 s/.*/./; q'`/stamp-h$_am_stamp_count 18801 ;; 18802 18803 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18804$as_echo "$as_me: executing $ac_file commands" >&6;} 18805 ;; 18806 esac 18807 18808 18809 case $ac_file$ac_mode in 18810 "default-1":C) 18811# Only add multilib support code if we just rebuilt the top-level 18812# Makefile. 18813case " $CONFIG_FILES " in 18814 *" Makefile "*) 18815 ac_file=Makefile . ${multi_basedir}/config-ml.in 18816 ;; 18817esac ;; 18818 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18819 # Older Autoconf quotes --file arguments for eval, but not when files 18820 # are listed without --file. Let's play safe and only enable the eval 18821 # if we detect the quoting. 18822 case $CONFIG_FILES in 18823 *\'*) eval set x "$CONFIG_FILES" ;; 18824 *) set x $CONFIG_FILES ;; 18825 esac 18826 shift 18827 for mf 18828 do 18829 # Strip MF so we end up with the name of the file. 18830 mf=`echo "$mf" | sed -e 's/:.*$//'` 18831 # Check whether this is an Automake generated Makefile or not. 18832 # We used to match only the files named 'Makefile.in', but 18833 # some people rename them; so instead we look at the file content. 18834 # Grep'ing the first line is not enough: some people post-process 18835 # each Makefile.in and add a new line on top of each file to say so. 18836 # Grep'ing the whole file is not good either: AIX grep has a line 18837 # limit of 2048, but all sed's we know have understand at least 4000. 18838 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18839 dirpart=`$as_dirname -- "$mf" || 18840$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18841 X"$mf" : 'X\(//\)[^/]' \| \ 18842 X"$mf" : 'X\(//\)$' \| \ 18843 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18844$as_echo X"$mf" | 18845 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18846 s//\1/ 18847 q 18848 } 18849 /^X\(\/\/\)[^/].*/{ 18850 s//\1/ 18851 q 18852 } 18853 /^X\(\/\/\)$/{ 18854 s//\1/ 18855 q 18856 } 18857 /^X\(\/\).*/{ 18858 s//\1/ 18859 q 18860 } 18861 s/.*/./; q'` 18862 else 18863 continue 18864 fi 18865 # Extract the definition of DEPDIR, am__include, and am__quote 18866 # from the Makefile without running 'make'. 18867 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18868 test -z "$DEPDIR" && continue 18869 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18870 test -z "$am__include" && continue 18871 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18872 # Find all dependency output files, they are included files with 18873 # $(DEPDIR) in their names. We invoke sed twice because it is the 18874 # simplest approach to changing $(DEPDIR) to its actual value in the 18875 # expansion. 18876 for file in `sed -n " 18877 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18878 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18879 # Make sure the directory exists. 18880 test -f "$dirpart/$file" && continue 18881 fdir=`$as_dirname -- "$file" || 18882$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18883 X"$file" : 'X\(//\)[^/]' \| \ 18884 X"$file" : 'X\(//\)$' \| \ 18885 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18886$as_echo X"$file" | 18887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18888 s//\1/ 18889 q 18890 } 18891 /^X\(\/\/\)[^/].*/{ 18892 s//\1/ 18893 q 18894 } 18895 /^X\(\/\/\)$/{ 18896 s//\1/ 18897 q 18898 } 18899 /^X\(\/\).*/{ 18900 s//\1/ 18901 q 18902 } 18903 s/.*/./; q'` 18904 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18905 # echo "creating $dirpart/$file" 18906 echo '# dummy' > "$dirpart/$file" 18907 done 18908 done 18909} 18910 ;; 18911 "libtool":C) 18912 18913 # See if we are running on zsh, and set the options which allow our 18914 # commands through without removal of \ escapes. 18915 if test -n "${ZSH_VERSION+set}" ; then 18916 setopt NO_GLOB_SUBST 18917 fi 18918 18919 cfgfile="${ofile}T" 18920 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18921 $RM "$cfgfile" 18922 18923 cat <<_LT_EOF >> "$cfgfile" 18924#! $SHELL 18925 18926# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18927# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18928# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18929# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18930# 18931# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18932# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 18933# Written by Gordon Matzigkeit, 1996 18934# 18935# This file is part of GNU Libtool. 18936# 18937# GNU Libtool is free software; you can redistribute it and/or 18938# modify it under the terms of the GNU General Public License as 18939# published by the Free Software Foundation; either version 2 of 18940# the License, or (at your option) any later version. 18941# 18942# As a special exception to the GNU General Public License, 18943# if you distribute this file as part of a program or library that 18944# is built using GNU Libtool, you may include this file under the 18945# same distribution terms that you use for the rest of that program. 18946# 18947# GNU Libtool is distributed in the hope that it will be useful, 18948# but WITHOUT ANY WARRANTY; without even the implied warranty of 18949# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18950# GNU General Public License for more details. 18951# 18952# You should have received a copy of the GNU General Public License 18953# along with GNU Libtool; see the file COPYING. If not, a copy 18954# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18955# obtained by writing to the Free Software Foundation, Inc., 18956# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18957 18958 18959# The names of the tagged configurations supported by this script. 18960available_tags="FC " 18961 18962# ### BEGIN LIBTOOL CONFIG 18963 18964# Which release of libtool.m4 was used? 18965macro_version=$macro_version 18966macro_revision=$macro_revision 18967 18968# Whether or not to build shared libraries. 18969build_libtool_libs=$enable_shared 18970 18971# Whether or not to build static libraries. 18972build_old_libs=$enable_static 18973 18974# What type of objects to build. 18975pic_mode=$pic_mode 18976 18977# Whether or not to optimize for fast installation. 18978fast_install=$enable_fast_install 18979 18980# Shell to use when invoking shell scripts. 18981SHELL=$lt_SHELL 18982 18983# An echo program that protects backslashes. 18984ECHO=$lt_ECHO 18985 18986# The host system. 18987host_alias=$host_alias 18988host=$host 18989host_os=$host_os 18990 18991# The build system. 18992build_alias=$build_alias 18993build=$build 18994build_os=$build_os 18995 18996# A sed program that does not truncate output. 18997SED=$lt_SED 18998 18999# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19000Xsed="\$SED -e 1s/^X//" 19001 19002# A grep program that handles long lines. 19003GREP=$lt_GREP 19004 19005# An ERE matcher. 19006EGREP=$lt_EGREP 19007 19008# A literal string matcher. 19009FGREP=$lt_FGREP 19010 19011# A BSD- or MS-compatible name lister. 19012NM=$lt_NM 19013 19014# Whether we need soft or hard links. 19015LN_S=$lt_LN_S 19016 19017# What is the maximum length of a command? 19018max_cmd_len=$max_cmd_len 19019 19020# Object file suffix (normally "o"). 19021objext=$ac_objext 19022 19023# Executable file suffix (normally ""). 19024exeext=$exeext 19025 19026# whether the shell understands "unset". 19027lt_unset=$lt_unset 19028 19029# turn spaces into newlines. 19030SP2NL=$lt_lt_SP2NL 19031 19032# turn newlines into spaces. 19033NL2SP=$lt_lt_NL2SP 19034 19035# An object symbol dumper. 19036OBJDUMP=$lt_OBJDUMP 19037 19038# Method to check whether dependent libraries are shared objects. 19039deplibs_check_method=$lt_deplibs_check_method 19040 19041# Command to use when deplibs_check_method == "file_magic". 19042file_magic_cmd=$lt_file_magic_cmd 19043 19044# The archiver. 19045AR=$lt_AR 19046AR_FLAGS=$lt_AR_FLAGS 19047 19048# A symbol stripping program. 19049STRIP=$lt_STRIP 19050 19051# Commands used to install an old-style archive. 19052RANLIB=$lt_RANLIB 19053old_postinstall_cmds=$lt_old_postinstall_cmds 19054old_postuninstall_cmds=$lt_old_postuninstall_cmds 19055 19056# Whether to use a lock for old archive extraction. 19057lock_old_archive_extraction=$lock_old_archive_extraction 19058 19059# A C compiler. 19060LTCC=$lt_CC 19061 19062# LTCC compiler flags. 19063LTCFLAGS=$lt_CFLAGS 19064 19065# Take the output of nm and produce a listing of raw symbols and C names. 19066global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19067 19068# Transform the output of nm in a proper C declaration. 19069global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19070 19071# Transform the output of nm in a C name address pair. 19072global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19073 19074# Transform the output of nm in a C name address pair when lib prefix is needed. 19075global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19076 19077# The name of the directory that contains temporary libtool files. 19078objdir=$objdir 19079 19080# Used to examine libraries when file_magic_cmd begins with "file". 19081MAGIC_CMD=$MAGIC_CMD 19082 19083# Must we lock files when doing compilation? 19084need_locks=$lt_need_locks 19085 19086# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19087DSYMUTIL=$lt_DSYMUTIL 19088 19089# Tool to change global to local symbols on Mac OS X. 19090NMEDIT=$lt_NMEDIT 19091 19092# Tool to manipulate fat objects and archives on Mac OS X. 19093LIPO=$lt_LIPO 19094 19095# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19096OTOOL=$lt_OTOOL 19097 19098# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19099OTOOL64=$lt_OTOOL64 19100 19101# Old archive suffix (normally "a"). 19102libext=$libext 19103 19104# Shared library suffix (normally ".so"). 19105shrext_cmds=$lt_shrext_cmds 19106 19107# The commands to extract the exported symbol list from a shared archive. 19108extract_expsyms_cmds=$lt_extract_expsyms_cmds 19109 19110# Variables whose values should be saved in libtool wrapper scripts and 19111# restored at link time. 19112variables_saved_for_relink=$lt_variables_saved_for_relink 19113 19114# Do we need the "lib" prefix for modules? 19115need_lib_prefix=$need_lib_prefix 19116 19117# Do we need a version for libraries? 19118need_version=$need_version 19119 19120# Library versioning type. 19121version_type=$version_type 19122 19123# Shared library runtime path variable. 19124runpath_var=$runpath_var 19125 19126# Shared library path variable. 19127shlibpath_var=$shlibpath_var 19128 19129# Is shlibpath searched before the hard-coded library search path? 19130shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19131 19132# Format of library name prefix. 19133libname_spec=$lt_libname_spec 19134 19135# List of archive names. First name is the real one, the rest are links. 19136# The last name is the one that the linker finds with -lNAME 19137library_names_spec=$lt_library_names_spec 19138 19139# The coded name of the library, if different from the real name. 19140soname_spec=$lt_soname_spec 19141 19142# Permission mode override for installation of shared libraries. 19143install_override_mode=$lt_install_override_mode 19144 19145# Command to use after installation of a shared archive. 19146postinstall_cmds=$lt_postinstall_cmds 19147 19148# Command to use after uninstallation of a shared archive. 19149postuninstall_cmds=$lt_postuninstall_cmds 19150 19151# Commands used to finish a libtool library installation in a directory. 19152finish_cmds=$lt_finish_cmds 19153 19154# As "finish_cmds", except a single script fragment to be evaled but 19155# not shown. 19156finish_eval=$lt_finish_eval 19157 19158# Whether we should hardcode library paths into libraries. 19159hardcode_into_libs=$hardcode_into_libs 19160 19161# Compile-time system search path for libraries. 19162sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19163 19164# Run-time system search path for libraries. 19165sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19166 19167# Whether dlopen is supported. 19168dlopen_support=$enable_dlopen 19169 19170# Whether dlopen of programs is supported. 19171dlopen_self=$enable_dlopen_self 19172 19173# Whether dlopen of statically linked programs is supported. 19174dlopen_self_static=$enable_dlopen_self_static 19175 19176# Commands to strip libraries. 19177old_striplib=$lt_old_striplib 19178striplib=$lt_striplib 19179 19180 19181# The linker used to build libraries. 19182LD=$lt_LD 19183 19184# How to create reloadable object files. 19185reload_flag=$lt_reload_flag 19186reload_cmds=$lt_reload_cmds 19187 19188# Commands used to build an old-style archive. 19189old_archive_cmds=$lt_old_archive_cmds 19190 19191# A language specific compiler. 19192CC=$lt_compiler 19193 19194# Is the compiler the GNU compiler? 19195with_gcc=$GCC 19196 19197# Compiler flag to turn off builtin functions. 19198no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19199 19200# How to pass a linker flag through the compiler. 19201wl=$lt_lt_prog_compiler_wl 19202 19203# Additional compiler flags for building library objects. 19204pic_flag=$lt_lt_prog_compiler_pic 19205 19206# Compiler flag to prevent dynamic linking. 19207link_static_flag=$lt_lt_prog_compiler_static 19208 19209# Does compiler simultaneously support -c and -o options? 19210compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19211 19212# Whether or not to add -lc for building shared libraries. 19213build_libtool_need_lc=$archive_cmds_need_lc 19214 19215# Whether or not to disallow shared libs when runtime libs are static. 19216allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19217 19218# Compiler flag to allow reflexive dlopens. 19219export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19220 19221# Compiler flag to generate shared objects directly from archives. 19222whole_archive_flag_spec=$lt_whole_archive_flag_spec 19223 19224# Whether the compiler copes with passing no objects directly. 19225compiler_needs_object=$lt_compiler_needs_object 19226 19227# Create an old-style archive from a shared archive. 19228old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19229 19230# Create a temporary old-style archive to link instead of a shared archive. 19231old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19232 19233# Commands used to build a shared archive. 19234archive_cmds=$lt_archive_cmds 19235archive_expsym_cmds=$lt_archive_expsym_cmds 19236 19237# Commands used to build a loadable module if different from building 19238# a shared archive. 19239module_cmds=$lt_module_cmds 19240module_expsym_cmds=$lt_module_expsym_cmds 19241 19242# Whether we are building with GNU ld or not. 19243with_gnu_ld=$lt_with_gnu_ld 19244 19245# Flag that allows shared libraries with undefined symbols to be built. 19246allow_undefined_flag=$lt_allow_undefined_flag 19247 19248# Flag that enforces no undefined symbols. 19249no_undefined_flag=$lt_no_undefined_flag 19250 19251# Flag to hardcode \$libdir into a binary during linking. 19252# This must work even if \$libdir does not exist 19253hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19254 19255# If ld is used when linking, flag to hardcode \$libdir into a binary 19256# during linking. This must work even if \$libdir does not exist. 19257hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19258 19259# Whether we need a single "-rpath" flag with a separated argument. 19260hardcode_libdir_separator=$lt_hardcode_libdir_separator 19261 19262# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19263# DIR into the resulting binary. 19264hardcode_direct=$hardcode_direct 19265 19266# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19267# DIR into the resulting binary and the resulting library dependency is 19268# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19269# library is relocated. 19270hardcode_direct_absolute=$hardcode_direct_absolute 19271 19272# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19273# into the resulting binary. 19274hardcode_minus_L=$hardcode_minus_L 19275 19276# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19277# into the resulting binary. 19278hardcode_shlibpath_var=$hardcode_shlibpath_var 19279 19280# Set to "yes" if building a shared library automatically hardcodes DIR 19281# into the library and all subsequent libraries and executables linked 19282# against it. 19283hardcode_automatic=$hardcode_automatic 19284 19285# Set to yes if linker adds runtime paths of dependent libraries 19286# to runtime path list. 19287inherit_rpath=$inherit_rpath 19288 19289# Whether libtool must link a program against all its dependency libraries. 19290link_all_deplibs=$link_all_deplibs 19291 19292# Fix the shell variable \$srcfile for the compiler. 19293fix_srcfile_path=$lt_fix_srcfile_path 19294 19295# Set to "yes" if exported symbols are required. 19296always_export_symbols=$always_export_symbols 19297 19298# The commands to list exported symbols. 19299export_symbols_cmds=$lt_export_symbols_cmds 19300 19301# Symbols that should not be listed in the preloaded symbols. 19302exclude_expsyms=$lt_exclude_expsyms 19303 19304# Symbols that must always be exported. 19305include_expsyms=$lt_include_expsyms 19306 19307# Commands necessary for linking programs (against libraries) with templates. 19308prelink_cmds=$lt_prelink_cmds 19309 19310# Specify filename containing input files. 19311file_list_spec=$lt_file_list_spec 19312 19313# How to hardcode a shared library path into an executable. 19314hardcode_action=$hardcode_action 19315 19316# The directories searched by this compiler when creating a shared library. 19317compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19318 19319# Dependencies to place before and after the objects being linked to 19320# create a shared library. 19321predep_objects=$lt_predep_objects 19322postdep_objects=$lt_postdep_objects 19323predeps=$lt_predeps 19324postdeps=$lt_postdeps 19325 19326# The library search path used internally by the compiler when linking 19327# a shared library. 19328compiler_lib_search_path=$lt_compiler_lib_search_path 19329 19330# ### END LIBTOOL CONFIG 19331 19332_LT_EOF 19333 19334 case $host_os in 19335 aix3*) 19336 cat <<\_LT_EOF >> "$cfgfile" 19337# AIX sometimes has problems with the GCC collect2 program. For some 19338# reason, if we set the COLLECT_NAMES environment variable, the problems 19339# vanish in a puff of smoke. 19340if test "X${COLLECT_NAMES+set}" != Xset; then 19341 COLLECT_NAMES= 19342 export COLLECT_NAMES 19343fi 19344_LT_EOF 19345 ;; 19346 esac 19347 19348 19349ltmain="$ac_aux_dir/ltmain.sh" 19350 19351 19352 # We use sed instead of cat because bash on DJGPP gets confused if 19353 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19354 # text mode, it properly converts lines to CR/LF. This bash problem 19355 # is reportedly fixed, but why not run on old versions too? 19356 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19357 || (rm -f "$cfgfile"; exit 1) 19358 19359 case $xsi_shell in 19360 yes) 19361 cat << \_LT_EOF >> "$cfgfile" 19362 19363# func_dirname file append nondir_replacement 19364# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19365# otherwise set result to NONDIR_REPLACEMENT. 19366func_dirname () 19367{ 19368 case ${1} in 19369 */*) func_dirname_result="${1%/*}${2}" ;; 19370 * ) func_dirname_result="${3}" ;; 19371 esac 19372} 19373 19374# func_basename file 19375func_basename () 19376{ 19377 func_basename_result="${1##*/}" 19378} 19379 19380# func_dirname_and_basename file append nondir_replacement 19381# perform func_basename and func_dirname in a single function 19382# call: 19383# dirname: Compute the dirname of FILE. If nonempty, 19384# add APPEND to the result, otherwise set result 19385# to NONDIR_REPLACEMENT. 19386# value returned in "$func_dirname_result" 19387# basename: Compute filename of FILE. 19388# value retuned in "$func_basename_result" 19389# Implementation must be kept synchronized with func_dirname 19390# and func_basename. For efficiency, we do not delegate to 19391# those functions but instead duplicate the functionality here. 19392func_dirname_and_basename () 19393{ 19394 case ${1} in 19395 */*) func_dirname_result="${1%/*}${2}" ;; 19396 * ) func_dirname_result="${3}" ;; 19397 esac 19398 func_basename_result="${1##*/}" 19399} 19400 19401# func_stripname prefix suffix name 19402# strip PREFIX and SUFFIX off of NAME. 19403# PREFIX and SUFFIX must not contain globbing or regex special 19404# characters, hashes, percent signs, but SUFFIX may contain a leading 19405# dot (in which case that matches only a dot). 19406func_stripname () 19407{ 19408 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19409 # positional parameters, so assign one to ordinary parameter first. 19410 func_stripname_result=${3} 19411 func_stripname_result=${func_stripname_result#"${1}"} 19412 func_stripname_result=${func_stripname_result%"${2}"} 19413} 19414 19415# func_opt_split 19416func_opt_split () 19417{ 19418 func_opt_split_opt=${1%%=*} 19419 func_opt_split_arg=${1#*=} 19420} 19421 19422# func_lo2o object 19423func_lo2o () 19424{ 19425 case ${1} in 19426 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19427 *) func_lo2o_result=${1} ;; 19428 esac 19429} 19430 19431# func_xform libobj-or-source 19432func_xform () 19433{ 19434 func_xform_result=${1%.*}.lo 19435} 19436 19437# func_arith arithmetic-term... 19438func_arith () 19439{ 19440 func_arith_result=$(( $* )) 19441} 19442 19443# func_len string 19444# STRING may not start with a hyphen. 19445func_len () 19446{ 19447 func_len_result=${#1} 19448} 19449 19450_LT_EOF 19451 ;; 19452 *) # Bourne compatible functions. 19453 cat << \_LT_EOF >> "$cfgfile" 19454 19455# func_dirname file append nondir_replacement 19456# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19457# otherwise set result to NONDIR_REPLACEMENT. 19458func_dirname () 19459{ 19460 # Extract subdirectory from the argument. 19461 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19462 if test "X$func_dirname_result" = "X${1}"; then 19463 func_dirname_result="${3}" 19464 else 19465 func_dirname_result="$func_dirname_result${2}" 19466 fi 19467} 19468 19469# func_basename file 19470func_basename () 19471{ 19472 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19473} 19474 19475 19476# func_stripname prefix suffix name 19477# strip PREFIX and SUFFIX off of NAME. 19478# PREFIX and SUFFIX must not contain globbing or regex special 19479# characters, hashes, percent signs, but SUFFIX may contain a leading 19480# dot (in which case that matches only a dot). 19481# func_strip_suffix prefix name 19482func_stripname () 19483{ 19484 case ${2} in 19485 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19486 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19487 esac 19488} 19489 19490# sed scripts: 19491my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19492my_sed_long_arg='1s/^-[^=]*=//' 19493 19494# func_opt_split 19495func_opt_split () 19496{ 19497 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19498 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19499} 19500 19501# func_lo2o object 19502func_lo2o () 19503{ 19504 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19505} 19506 19507# func_xform libobj-or-source 19508func_xform () 19509{ 19510 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19511} 19512 19513# func_arith arithmetic-term... 19514func_arith () 19515{ 19516 func_arith_result=`expr "$@"` 19517} 19518 19519# func_len string 19520# STRING may not start with a hyphen. 19521func_len () 19522{ 19523 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19524} 19525 19526_LT_EOF 19527esac 19528 19529case $lt_shell_append in 19530 yes) 19531 cat << \_LT_EOF >> "$cfgfile" 19532 19533# func_append var value 19534# Append VALUE to the end of shell variable VAR. 19535func_append () 19536{ 19537 eval "$1+=\$2" 19538} 19539_LT_EOF 19540 ;; 19541 *) 19542 cat << \_LT_EOF >> "$cfgfile" 19543 19544# func_append var value 19545# Append VALUE to the end of shell variable VAR. 19546func_append () 19547{ 19548 eval "$1=\$$1\$2" 19549} 19550 19551_LT_EOF 19552 ;; 19553 esac 19554 19555 19556 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19557 || (rm -f "$cfgfile"; exit 1) 19558 19559 mv -f "$cfgfile" "$ofile" || 19560 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19561 chmod +x "$ofile" 19562 19563 19564 cat <<_LT_EOF >> "$ofile" 19565 19566# ### BEGIN LIBTOOL TAG CONFIG: FC 19567 19568# The linker used to build libraries. 19569LD=$lt_LD_FC 19570 19571# How to create reloadable object files. 19572reload_flag=$lt_reload_flag_FC 19573reload_cmds=$lt_reload_cmds_FC 19574 19575# Commands used to build an old-style archive. 19576old_archive_cmds=$lt_old_archive_cmds_FC 19577 19578# A language specific compiler. 19579CC=$lt_compiler_FC 19580 19581# Is the compiler the GNU compiler? 19582with_gcc=$GCC_FC 19583 19584# Compiler flag to turn off builtin functions. 19585no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 19586 19587# How to pass a linker flag through the compiler. 19588wl=$lt_lt_prog_compiler_wl_FC 19589 19590# Additional compiler flags for building library objects. 19591pic_flag=$lt_lt_prog_compiler_pic_FC 19592 19593# Compiler flag to prevent dynamic linking. 19594link_static_flag=$lt_lt_prog_compiler_static_FC 19595 19596# Does compiler simultaneously support -c and -o options? 19597compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 19598 19599# Whether or not to add -lc for building shared libraries. 19600build_libtool_need_lc=$archive_cmds_need_lc_FC 19601 19602# Whether or not to disallow shared libs when runtime libs are static. 19603allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 19604 19605# Compiler flag to allow reflexive dlopens. 19606export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 19607 19608# Compiler flag to generate shared objects directly from archives. 19609whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 19610 19611# Whether the compiler copes with passing no objects directly. 19612compiler_needs_object=$lt_compiler_needs_object_FC 19613 19614# Create an old-style archive from a shared archive. 19615old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 19616 19617# Create a temporary old-style archive to link instead of a shared archive. 19618old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 19619 19620# Commands used to build a shared archive. 19621archive_cmds=$lt_archive_cmds_FC 19622archive_expsym_cmds=$lt_archive_expsym_cmds_FC 19623 19624# Commands used to build a loadable module if different from building 19625# a shared archive. 19626module_cmds=$lt_module_cmds_FC 19627module_expsym_cmds=$lt_module_expsym_cmds_FC 19628 19629# Whether we are building with GNU ld or not. 19630with_gnu_ld=$lt_with_gnu_ld_FC 19631 19632# Flag that allows shared libraries with undefined symbols to be built. 19633allow_undefined_flag=$lt_allow_undefined_flag_FC 19634 19635# Flag that enforces no undefined symbols. 19636no_undefined_flag=$lt_no_undefined_flag_FC 19637 19638# Flag to hardcode \$libdir into a binary during linking. 19639# This must work even if \$libdir does not exist 19640hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 19641 19642# If ld is used when linking, flag to hardcode \$libdir into a binary 19643# during linking. This must work even if \$libdir does not exist. 19644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC 19645 19646# Whether we need a single "-rpath" flag with a separated argument. 19647hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 19648 19649# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19650# DIR into the resulting binary. 19651hardcode_direct=$hardcode_direct_FC 19652 19653# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19654# DIR into the resulting binary and the resulting library dependency is 19655# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19656# library is relocated. 19657hardcode_direct_absolute=$hardcode_direct_absolute_FC 19658 19659# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19660# into the resulting binary. 19661hardcode_minus_L=$hardcode_minus_L_FC 19662 19663# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19664# into the resulting binary. 19665hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 19666 19667# Set to "yes" if building a shared library automatically hardcodes DIR 19668# into the library and all subsequent libraries and executables linked 19669# against it. 19670hardcode_automatic=$hardcode_automatic_FC 19671 19672# Set to yes if linker adds runtime paths of dependent libraries 19673# to runtime path list. 19674inherit_rpath=$inherit_rpath_FC 19675 19676# Whether libtool must link a program against all its dependency libraries. 19677link_all_deplibs=$link_all_deplibs_FC 19678 19679# Fix the shell variable \$srcfile for the compiler. 19680fix_srcfile_path=$lt_fix_srcfile_path_FC 19681 19682# Set to "yes" if exported symbols are required. 19683always_export_symbols=$always_export_symbols_FC 19684 19685# The commands to list exported symbols. 19686export_symbols_cmds=$lt_export_symbols_cmds_FC 19687 19688# Symbols that should not be listed in the preloaded symbols. 19689exclude_expsyms=$lt_exclude_expsyms_FC 19690 19691# Symbols that must always be exported. 19692include_expsyms=$lt_include_expsyms_FC 19693 19694# Commands necessary for linking programs (against libraries) with templates. 19695prelink_cmds=$lt_prelink_cmds_FC 19696 19697# Specify filename containing input files. 19698file_list_spec=$lt_file_list_spec_FC 19699 19700# How to hardcode a shared library path into an executable. 19701hardcode_action=$hardcode_action_FC 19702 19703# The directories searched by this compiler when creating a shared library. 19704compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 19705 19706# Dependencies to place before and after the objects being linked to 19707# create a shared library. 19708predep_objects=$lt_predep_objects_FC 19709postdep_objects=$lt_postdep_objects_FC 19710predeps=$lt_predeps_FC 19711postdeps=$lt_postdeps_FC 19712 19713# The library search path used internally by the compiler when linking 19714# a shared library. 19715compiler_lib_search_path=$lt_compiler_lib_search_path_FC 19716 19717# ### END LIBTOOL TAG CONFIG: FC 19718_LT_EOF 19719 19720 ;; 19721 19722 esac 19723done # for ac_tag 19724 19725 19726as_fn_exit 0 19727_ACEOF 19728ac_clean_files=$ac_clean_files_save 19729 19730test $ac_write_fail = 0 || 19731 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19732 19733 19734# configure is writing to config.log, and then calls config.status. 19735# config.status does its own redirection, appending to config.log. 19736# Unfortunately, on DOS this fails, as config.log is still kept open 19737# by configure, so config.status won't be able to write to it; its 19738# output is simply discarded. So we exec the FD to /dev/null, 19739# effectively closing config.log, so it can be properly (re)opened and 19740# appended to by config.status. When coming back to configure, we 19741# need to make the FD available again. 19742if test "$no_create" != yes; then 19743 ac_cs_success=: 19744 ac_config_status_args= 19745 test "$silent" = yes && 19746 ac_config_status_args="$ac_config_status_args --quiet" 19747 exec 5>/dev/null 19748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19749 exec 5>>config.log 19750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19751 # would make configure fail if this is the last instruction. 19752 $ac_cs_success || as_fn_exit 1 19753fi 19754if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19756$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19757fi 19758 19759