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 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if 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 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_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. 43 if 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 --' 47 elif (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' 50 else 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' 70 fi 71 72 # The user is always right. 73 if 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 } 79 fi 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.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 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 100 IFS=$as_save_IFS 101 102 ;; 103 esac 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. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 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. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export 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. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $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 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if 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 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -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 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 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 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 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 242 fi; } 243 IFS=$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. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $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 265 exit 255 266 fi 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 (at] 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 281 fi 282 fi 283 fi 284 SHELL=${CONFIG_SHELL-/bin/sh} 285 export SHELL 286 # Unset more variables known to interfere with behavior of common tools. 287 CLICOLOR_FORCE= GREP_OPTIONS= 288 unset CLICOLOR_FORCE GREP_OPTIONS 289 290 ## --------------------- ## 291 ## M4sh Shell Functions. ## 292 ## --------------------- ## 293 # as_fn_unset VAR 294 # --------------- 295 # Portably unset VAR. 296 as_fn_unset () 297 { 298 { eval $1=; unset $1;} 299 } 300 as_unset=as_fn_unset 301 302 # as_fn_set_status STATUS 303 # ----------------------- 304 # Set $? to STATUS, without forking. 305 as_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. 313 as_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. 323 as_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. 371 as_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. 381 if (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 }' 386 else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391 fi # 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. 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403 else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408 fi # 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. 416 as_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 427 if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430 else 431 as_expr=false 432 fi 433 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436 else 437 as_basename=false 438 fi 439 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442 else 443 as_dirname=false 444 fi 445 446 as_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. 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469 as_cr_digits='0123456789' 470 as_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 508 ECHO_C= ECHO_N= ECHO_T= 509 case `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';; 519 esac 520 521 rm -f conf$$ conf$$.exe conf$$.file 522 if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524 else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527 fi 528 if (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 542 else 543 as_ln_s='cp -pR' 544 fi 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546 rmdir conf$$.dir 2>/dev/null 547 548 if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550 else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553 fi 554 555 as_test_x='test -x' 556 as_executable_p=as_fn_executable_p 557 558 # Sed expression to map a string onto a valid CPP name. 559 as_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. 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564 SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567 test -n "$DJDIR" || exec 7<&0 </dev/null 568 exec 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. 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575 # 576 # Initializations. 577 # 578 ac_default_prefix=/usr/local 579 ac_clean_files= 580 ac_config_libobj_dir=. 581 LIBOBJS= 582 cross_compiling=no 583 subdirs= 584 MFLAGS= 585 MAKEFLAGS= 586 587 # Identity of this package. 588 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library' 589 PACKAGE_TARNAME='libgomp' 590 PACKAGE_VERSION='1.0' 591 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0' 592 PACKAGE_BUGREPORT='' 593 PACKAGE_URL='http://www.gnu.org/software/libgomp/' 594 595 # Factoring default headers for most tests. 596 ac_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 631 ac_header_list= 632 ac_func_list= 633 ac_subst_vars='am__EXEEXT_FALSE 634 am__EXEEXT_TRUE 635 LTLIBOBJS 636 LIBOBJS 637 get_gcc_base_ver 638 OMP_DEPEND_KIND 639 OMP_NEST_LOCK_25_KIND 640 OMP_LOCK_25_KIND 641 OMP_NEST_LOCK_25_ALIGN 642 OMP_NEST_LOCK_25_SIZE 643 OMP_LOCK_25_ALIGN 644 OMP_LOCK_25_SIZE 645 OMP_NEST_LOCK_KIND 646 OMP_LOCK_KIND 647 OMP_NEST_LOCK_ALIGN 648 OMP_NEST_LOCK_SIZE 649 OMP_LOCK_ALIGN 650 OMP_LOCK_SIZE 651 INTPTR_T_KIND 652 USE_FORTRAN_FALSE 653 USE_FORTRAN_TRUE 654 link_gomp 655 tmake_file 656 XLDFLAGS 657 XCFLAGS 658 config_path 659 SYSROOT_CFLAGS_FOR_TARGET 660 FLOCK 661 CPU_COUNT 662 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE 663 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE 664 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE 665 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE 666 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE 667 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE 668 OPT_LDFLAGS 669 SECTION_LDFLAGS 670 PLUGIN_GCN_FALSE 671 PLUGIN_GCN_TRUE 672 PLUGIN_NVPTX_FALSE 673 PLUGIN_NVPTX_TRUE 674 offload_additional_lib_paths 675 offload_additional_options 676 offload_targets 677 offload_plugins 678 DL_LIBS 679 libtool_VERSION 680 ac_ct_FC 681 FCFLAGS 682 FC 683 MAINT 684 MAINTAINER_MODE_FALSE 685 MAINTAINER_MODE_TRUE 686 ENABLE_DARWIN_AT_RPATH_FALSE 687 ENABLE_DARWIN_AT_RPATH_TRUE 688 enable_static 689 enable_shared 690 lt_host_flags 691 CPP 692 OTOOL64 693 OTOOL 694 LIPO 695 NMEDIT 696 DSYMUTIL 697 OBJDUMP 698 LN_S 699 NM 700 ac_ct_DUMPBIN 701 DUMPBIN 702 LD 703 FGREP 704 EGREP 705 GREP 706 SED 707 LIBTOOL 708 BUILD_INFO_FALSE 709 BUILD_INFO_TRUE 710 RANLIB 711 AR 712 am__fastdepCC_FALSE 713 am__fastdepCC_TRUE 714 CCDEPMODE 715 am__nodep 716 AMDEPBACKSLASH 717 AMDEP_FALSE 718 AMDEP_TRUE 719 am__quote 720 am__include 721 DEPDIR 722 OBJEXT 723 EXEEXT 724 ac_ct_CC 725 CPPFLAGS 726 LDFLAGS 727 CFLAGS 728 CC 729 toolexeclibdir 730 toolexecdir 731 multi_basedir 732 AM_BACKSLASH 733 AM_DEFAULT_VERBOSITY 734 AM_DEFAULT_V 735 AM_V 736 am__untar 737 am__tar 738 AMTAR 739 am__leading_dot 740 SET_MAKE 741 AWK 742 mkdir_p 743 MKDIR_P 744 INSTALL_STRIP_PROGRAM 745 STRIP 746 install_sh 747 MAKEINFO 748 AUTOHEADER 749 AUTOMAKE 750 AUTOCONF 751 ACLOCAL 752 VERSION 753 PACKAGE 754 CYGPATH_W 755 am__isrc 756 INSTALL_DATA 757 INSTALL_SCRIPT 758 INSTALL_PROGRAM 759 target_os 760 target_vendor 761 target_cpu 762 target 763 host_os 764 host_vendor 765 host_cpu 766 host 767 build_os 768 build_vendor 769 build_cpu 770 build 771 GENINSRC_FALSE 772 GENINSRC_TRUE 773 target_alias 774 host_alias 775 build_alias 776 LIBS 777 ECHO_T 778 ECHO_N 779 ECHO_C 780 DEFS 781 mandir 782 localedir 783 libdir 784 psdir 785 pdfdir 786 dvidir 787 htmldir 788 infodir 789 docdir 790 oldincludedir 791 includedir 792 localstatedir 793 sharedstatedir 794 sysconfdir 795 datadir 796 datarootdir 797 libexecdir 798 sbindir 799 bindir 800 program_transform_name 801 prefix 802 exec_prefix 803 PACKAGE_URL 804 PACKAGE_BUGREPORT 805 PACKAGE_STRING 806 PACKAGE_VERSION 807 PACKAGE_TARNAME 808 PACKAGE_NAME 809 PATH_SEPARATOR 810 SHELL' 811 ac_subst_files='' 812 ac_user_opts=' 813 enable_option_checking 814 enable_version_specific_runtime_libs 815 enable_generated_files_in_srcdir 816 enable_silent_rules 817 enable_multilib 818 with_toolexeclibdir 819 enable_dependency_tracking 820 enable_werror 821 enable_shared 822 enable_static 823 with_pic 824 enable_fast_install 825 with_gnu_ld 826 enable_libtool_lock 827 enable_darwin_at_rpath 828 enable_maintainer_mode 829 enable_linux_futex 830 enable_tls 831 enable_symvers 832 enable_cet 833 with_gcc_major_version_only 834 ' 835 ac_precious_vars='build_alias 836 host_alias 837 target_alias 838 CPP 839 CPPFLAGS 840 FC 841 FCFLAGS 842 LDFLAGS 843 LIBS' 844 845 846 # Initialize some variables set by options. 847 ac_init_help= 848 ac_init_version=false 849 ac_unrecognized_opts= 850 ac_unrecognized_sep= 851 # The variables have the same names as the options, with 852 # dashes changed to underlines. 853 cache_file=/dev/null 854 exec_prefix=NONE 855 no_create= 856 no_recursion= 857 prefix=NONE 858 program_prefix=NONE 859 program_suffix=NONE 860 program_transform_name=s,x,x, 861 silent= 862 site= 863 srcdir= 864 verbose= 865 x_includes=NONE 866 x_libraries=NONE 867 868 # Installation directory options. 869 # These are left unexpanded so users can "make install exec_prefix=/foo" 870 # and all the variables that are supposed to be based on exec_prefix 871 # by default will actually change. 872 # Use braces instead of parens because sh, perl, etc. also accept them. 873 # (The list follows the same order as the GNU Coding Standards.) 874 bindir='${exec_prefix}/bin' 875 sbindir='${exec_prefix}/sbin' 876 libexecdir='${exec_prefix}/libexec' 877 datarootdir='${prefix}/share' 878 datadir='${datarootdir}' 879 sysconfdir='${prefix}/etc' 880 sharedstatedir='${prefix}/com' 881 localstatedir='${prefix}/var' 882 includedir='${prefix}/include' 883 oldincludedir='/usr/include' 884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 885 infodir='${datarootdir}/info' 886 htmldir='${docdir}' 887 dvidir='${docdir}' 888 pdfdir='${docdir}' 889 psdir='${docdir}' 890 libdir='${exec_prefix}/lib' 891 localedir='${datarootdir}/locale' 892 mandir='${datarootdir}/man' 893 894 ac_prev= 895 ac_dashdash= 896 for ac_option 897 do 898 # If the previous option needs an argument, assign it. 899 if test -n "$ac_prev"; then 900 eval $ac_prev=\$ac_option 901 ac_prev= 902 continue 903 fi 904 905 case $ac_option in 906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 907 *=) ac_optarg= ;; 908 *) ac_optarg=yes ;; 909 esac 910 911 # Accept the important Cygnus configure options, so we can diagnose typos. 912 913 case $ac_dashdash$ac_option in 914 --) 915 ac_dashdash=yes ;; 916 917 -bindir | --bindir | --bindi | --bind | --bin | --bi) 918 ac_prev=bindir ;; 919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 920 bindir=$ac_optarg ;; 921 922 -build | --build | --buil | --bui | --bu) 923 ac_prev=build_alias ;; 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 925 build_alias=$ac_optarg ;; 926 927 -cache-file | --cache-file | --cache-fil | --cache-fi \ 928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 929 ac_prev=cache_file ;; 930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 932 cache_file=$ac_optarg ;; 933 934 --config-cache | -C) 935 cache_file=config.cache ;; 936 937 -datadir | --datadir | --datadi | --datad) 938 ac_prev=datadir ;; 939 -datadir=* | --datadir=* | --datadi=* | --datad=*) 940 datadir=$ac_optarg ;; 941 942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 943 | --dataroo | --dataro | --datar) 944 ac_prev=datarootdir ;; 945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 947 datarootdir=$ac_optarg ;; 948 949 -disable-* | --disable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: $ac_useropt" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958 "enable_$ac_useropt" 959 "*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=no ;; 964 965 -docdir | --docdir | --docdi | --doc | --do) 966 ac_prev=docdir ;; 967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 968 docdir=$ac_optarg ;; 969 970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 971 ac_prev=dvidir ;; 972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 973 dvidir=$ac_optarg ;; 974 975 -enable-* | --enable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error $? "invalid feature name: $ac_useropt" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984 "enable_$ac_useropt" 985 "*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=\$ac_optarg ;; 990 991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 993 | --exec | --exe | --ex) 994 ac_prev=exec_prefix ;; 995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 997 | --exec=* | --exe=* | --ex=*) 998 exec_prefix=$ac_optarg ;; 999 1000 -gas | --gas | --ga | --g) 1001 # Obsolete; use --with-gas. 1002 with_gas=yes ;; 1003 1004 -help | --help | --hel | --he | -h) 1005 ac_init_help=long ;; 1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1007 ac_init_help=recursive ;; 1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1009 ac_init_help=short ;; 1010 1011 -host | --host | --hos | --ho) 1012 ac_prev=host_alias ;; 1013 -host=* | --host=* | --hos=* | --ho=*) 1014 host_alias=$ac_optarg ;; 1015 1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1017 ac_prev=htmldir ;; 1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1019 | --ht=*) 1020 htmldir=$ac_optarg ;; 1021 1022 -includedir | --includedir | --includedi | --included | --include \ 1023 | --includ | --inclu | --incl | --inc) 1024 ac_prev=includedir ;; 1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1026 | --includ=* | --inclu=* | --incl=* | --inc=*) 1027 includedir=$ac_optarg ;; 1028 1029 -infodir | --infodir | --infodi | --infod | --info | --inf) 1030 ac_prev=infodir ;; 1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1032 infodir=$ac_optarg ;; 1033 1034 -libdir | --libdir | --libdi | --libd) 1035 ac_prev=libdir ;; 1036 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1037 libdir=$ac_optarg ;; 1038 1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1040 | --libexe | --libex | --libe) 1041 ac_prev=libexecdir ;; 1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1043 | --libexe=* | --libex=* | --libe=*) 1044 libexecdir=$ac_optarg ;; 1045 1046 -localedir | --localedir | --localedi | --localed | --locale) 1047 ac_prev=localedir ;; 1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1049 localedir=$ac_optarg ;; 1050 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1052 | --localstate | --localstat | --localsta | --localst | --locals) 1053 ac_prev=localstatedir ;; 1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1056 localstatedir=$ac_optarg ;; 1057 1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1059 ac_prev=mandir ;; 1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1061 mandir=$ac_optarg ;; 1062 1063 -nfp | --nfp | --nf) 1064 # Obsolete; use --without-fp. 1065 with_fp=no ;; 1066 1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1068 | --no-cr | --no-c | -n) 1069 no_create=yes ;; 1070 1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1073 no_recursion=yes ;; 1074 1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1077 | --oldin | --oldi | --old | --ol | --o) 1078 ac_prev=oldincludedir ;; 1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1082 oldincludedir=$ac_optarg ;; 1083 1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1085 ac_prev=prefix ;; 1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1087 prefix=$ac_optarg ;; 1088 1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1090 | --program-pre | --program-pr | --program-p) 1091 ac_prev=program_prefix ;; 1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1094 program_prefix=$ac_optarg ;; 1095 1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1097 | --program-suf | --program-su | --program-s) 1098 ac_prev=program_suffix ;; 1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1101 program_suffix=$ac_optarg ;; 1102 1103 -program-transform-name | --program-transform-name \ 1104 | --program-transform-nam | --program-transform-na \ 1105 | --program-transform-n | --program-transform- \ 1106 | --program-transform | --program-transfor \ 1107 | --program-transfo | --program-transf \ 1108 | --program-trans | --program-tran \ 1109 | --progr-tra | --program-tr | --program-t) 1110 ac_prev=program_transform_name ;; 1111 -program-transform-name=* | --program-transform-name=* \ 1112 | --program-transform-nam=* | --program-transform-na=* \ 1113 | --program-transform-n=* | --program-transform-=* \ 1114 | --program-transform=* | --program-transfor=* \ 1115 | --program-transfo=* | --program-transf=* \ 1116 | --program-trans=* | --program-tran=* \ 1117 | --progr-tra=* | --program-tr=* | --program-t=*) 1118 program_transform_name=$ac_optarg ;; 1119 1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1121 ac_prev=pdfdir ;; 1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1123 pdfdir=$ac_optarg ;; 1124 1125 -psdir | --psdir | --psdi | --psd | --ps) 1126 ac_prev=psdir ;; 1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1128 psdir=$ac_optarg ;; 1129 1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1131 | -silent | --silent | --silen | --sile | --sil) 1132 silent=yes ;; 1133 1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1135 ac_prev=sbindir ;; 1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1137 | --sbi=* | --sb=*) 1138 sbindir=$ac_optarg ;; 1139 1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1142 | --sharedst | --shareds | --shared | --share | --shar \ 1143 | --sha | --sh) 1144 ac_prev=sharedstatedir ;; 1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1148 | --sha=* | --sh=*) 1149 sharedstatedir=$ac_optarg ;; 1150 1151 -site | --site | --sit) 1152 ac_prev=site ;; 1153 -site=* | --site=* | --sit=*) 1154 site=$ac_optarg ;; 1155 1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1157 ac_prev=srcdir ;; 1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1159 srcdir=$ac_optarg ;; 1160 1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1162 | --syscon | --sysco | --sysc | --sys | --sy) 1163 ac_prev=sysconfdir ;; 1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1166 sysconfdir=$ac_optarg ;; 1167 1168 -target | --target | --targe | --targ | --tar | --ta | --t) 1169 ac_prev=target_alias ;; 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1171 target_alias=$ac_optarg ;; 1172 1173 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1174 verbose=yes ;; 1175 1176 -version | --version | --versio | --versi | --vers | -V) 1177 ac_init_version=: ;; 1178 1179 -with-* | --with-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: $ac_useropt" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188 "with_$ac_useropt" 1189 "*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=\$ac_optarg ;; 1194 1195 -without-* | --without-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204 "with_$ac_useropt" 1205 "*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=no ;; 1210 1211 --x) 1212 # Obsolete; use --with-x. 1213 with_x=yes ;; 1214 1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1216 | --x-incl | --x-inc | --x-in | --x-i) 1217 ac_prev=x_includes ;; 1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1220 x_includes=$ac_optarg ;; 1221 1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1224 ac_prev=x_libraries ;; 1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1227 x_libraries=$ac_optarg ;; 1228 1229 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1230 Try \`$0 --help' for more information" 1231 ;; 1232 1233 *=*) 1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1235 # Reject names that are not valid shell variable names. 1236 case $ac_envvar in #( 1237 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1238 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1239 esac 1240 eval $ac_envvar=\$ac_optarg 1241 export $ac_envvar ;; 1242 1243 *) 1244 # FIXME: should be removed in autoconf 3.0. 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1248 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1249 ;; 1250 1251 esac 1252 done 1253 1254 if test -n "$ac_prev"; then 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1256 as_fn_error $? "missing argument to $ac_option" 1257 fi 1258 1259 if test -n "$ac_unrecognized_opts"; then 1260 case $enable_option_checking in 1261 no) ;; 1262 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1264 esac 1265 fi 1266 1267 # Check all directory arguments for consistency. 1268 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1269 datadir sysconfdir sharedstatedir localstatedir includedir \ 1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1271 libdir localedir mandir 1272 do 1273 eval ac_val=\$$ac_var 1274 # Remove trailing slashes. 1275 case $ac_val in 1276 */ ) 1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1278 eval $ac_var=\$ac_val;; 1279 esac 1280 # Be sure to have absolute directory names. 1281 case $ac_val in 1282 [\\/$]* | ?:[\\/]* ) continue;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1284 esac 1285 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1286 done 1287 1288 # There might be people who depend on the old broken behavior: `$host' 1289 # used to hold the argument of --host etc. 1290 # FIXME: To remove some day. 1291 build=$build_alias 1292 host=$host_alias 1293 target=$target_alias 1294 1295 # FIXME: To remove some day. 1296 if test "x$host_alias" != x; then 1297 if test "x$build_alias" = x; then 1298 cross_compiling=maybe 1299 elif test "x$build_alias" != "x$host_alias"; then 1300 cross_compiling=yes 1301 fi 1302 fi 1303 1304 ac_tool_prefix= 1305 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1306 1307 test "$silent" = yes && exec 6>/dev/null 1308 1309 1310 ac_pwd=`pwd` && test -n "$ac_pwd" && 1311 ac_ls_di=`ls -di .` && 1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1313 as_fn_error $? "working directory cannot be determined" 1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1315 as_fn_error $? "pwd does not report name of working directory" 1316 1317 1318 # Find the source files, if location was not specified. 1319 if test -z "$srcdir"; then 1320 ac_srcdir_defaulted=yes 1321 # Try the directory containing this script, then the parent directory. 1322 ac_confdir=`$as_dirname -- "$as_myself" || 1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1324 X"$as_myself" : 'X\(//\)[^/]' \| \ 1325 X"$as_myself" : 'X\(//\)$' \| \ 1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1327 $as_echo X"$as_myself" | 1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\/\)[^/].*/{ 1333 s//\1/ 1334 q 1335 } 1336 /^X\(\/\/\)$/{ 1337 s//\1/ 1338 q 1339 } 1340 /^X\(\/\).*/{ 1341 s//\1/ 1342 q 1343 } 1344 s/.*/./; q'` 1345 srcdir=$ac_confdir 1346 if test ! -r "$srcdir/$ac_unique_file"; then 1347 srcdir=.. 1348 fi 1349 else 1350 ac_srcdir_defaulted=no 1351 fi 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1354 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1355 fi 1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1357 ac_abs_confdir=`( 1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1359 pwd)` 1360 # When building in place, set srcdir=. 1361 if test "$ac_abs_confdir" = "$ac_pwd"; then 1362 srcdir=. 1363 fi 1364 # Remove unnecessary trailing slashes from srcdir. 1365 # Double slashes in file names in object file debugging info 1366 # mess up M-x gdb in Emacs. 1367 case $srcdir in 1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1369 esac 1370 for ac_var in $ac_precious_vars; do 1371 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1372 eval ac_env_${ac_var}_value=\$${ac_var} 1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1374 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1375 done 1376 1377 # 1378 # Report the --help message. 1379 # 1380 if test "$ac_init_help" = "long"; then 1381 # Omit some internal or obsolete options to make the list less imposing. 1382 # This message is too long to be a string in the A/UX 3.1 sh. 1383 cat <<_ACEOF 1384 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems. 1385 1386 Usage: $0 [OPTION]... [VAR=VALUE]... 1387 1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1389 VAR=VALUE. See below for descriptions of some of the useful variables. 1390 1391 Defaults for the options are specified in brackets. 1392 1393 Configuration: 1394 -h, --help display this help and exit 1395 --help=short display options specific to this package 1396 --help=recursive display the short help of all the included packages 1397 -V, --version display version information and exit 1398 -q, --quiet, --silent do not print \`checking ...' messages 1399 --cache-file=FILE cache test results in FILE [disabled] 1400 -C, --config-cache alias for \`--cache-file=config.cache' 1401 -n, --no-create do not create output files 1402 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1403 1404 Installation directories: 1405 --prefix=PREFIX install architecture-independent files in PREFIX 1406 [$ac_default_prefix] 1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1408 [PREFIX] 1409 1410 By default, \`make install' will install all the files in 1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1413 for instance \`--prefix=\$HOME'. 1414 1415 For better control, use the options below. 1416 1417 Fine tuning of the installation directories: 1418 --bindir=DIR user executables [EPREFIX/bin] 1419 --sbindir=DIR system admin executables [EPREFIX/sbin] 1420 --libexecdir=DIR program executables [EPREFIX/libexec] 1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1424 --libdir=DIR object code libraries [EPREFIX/lib] 1425 --includedir=DIR C header files [PREFIX/include] 1426 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1429 --infodir=DIR info documentation [DATAROOTDIR/info] 1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1431 --mandir=DIR man documentation [DATAROOTDIR/man] 1432 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp] 1433 --htmldir=DIR html documentation [DOCDIR] 1434 --dvidir=DIR dvi documentation [DOCDIR] 1435 --pdfdir=DIR pdf documentation [DOCDIR] 1436 --psdir=DIR ps documentation [DOCDIR] 1437 _ACEOF 1438 1439 cat <<\_ACEOF 1440 1441 Program names: 1442 --program-prefix=PREFIX prepend PREFIX to installed program names 1443 --program-suffix=SUFFIX append SUFFIX to installed program names 1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1445 1446 System types: 1447 --build=BUILD configure for building on BUILD [guessed] 1448 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1449 --target=TARGET configure for building compilers for TARGET [HOST] 1450 _ACEOF 1451 fi 1452 1453 if test -n "$ac_init_help"; then 1454 case $ac_init_help in 1455 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";; 1456 esac 1457 cat <<\_ACEOF 1458 1459 Optional Features: 1460 --disable-option-checking ignore unrecognized --enable/--with options 1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1463 --enable-version-specific-runtime-libs 1464 Specify that runtime libraries should be installed 1465 in a compiler-specific directory [default=no] 1466 --enable-generated-files-in-srcdir 1467 put copies of generated files in source dir intended 1468 for creating source tarballs for users without 1469 texinfo bison or flex. [default=no] 1470 --enable-silent-rules less verbose build output (undo: "make V=1") 1471 --disable-silent-rules verbose build output (undo: "make V=0") 1472 --enable-multilib build many library versions (default) 1473 --enable-dependency-tracking 1474 do not reject slow dependency extractors 1475 --disable-dependency-tracking 1476 speeds up one-time build 1477 --disable-werror disable building with -Werror 1478 --enable-shared[=PKGS] build shared libraries [default=yes] 1479 --enable-static[=PKGS] build static libraries [default=yes] 1480 --enable-fast-install[=PKGS] 1481 optimize for fast installation [default=yes] 1482 --disable-libtool-lock avoid locking (might break parallel builds) 1483 --enable-darwin-at-rpath 1484 install libraries with @rpath/library-name, requires 1485 rpaths to be added to executables 1486 --enable-maintainer-mode 1487 enable make rules and dependencies not useful (and 1488 sometimes confusing) to the casual installer 1489 --enable-linux-futex use the Linux futex system call [default=default] 1490 --enable-tls Use thread-local storage [default=yes] 1491 --enable-symvers=STYLE enables symbol versioning of the shared library 1492 [default=yes] 1493 --enable-cet enable Intel CET in target libraries [default=auto] 1494 1495 Optional Packages: 1496 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1497 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1498 --with-toolexeclibdir=DIR 1499 install libraries built with a cross compiler within 1500 DIR 1501 --with-pic try to use only PIC/non-PIC objects [default=use 1502 both] 1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1504 --with-gcc-major-version-only 1505 use only GCC major number in filesystem paths 1506 1507 Some influential environment variables: 1508 CC C compiler command 1509 CFLAGS C compiler flags 1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1511 nonstandard directory <lib dir> 1512 LIBS libraries to pass to the linker, e.g. -l<library> 1513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1514 you have headers in a nonstandard directory <include dir> 1515 CPP C preprocessor 1516 FC Fortran compiler command 1517 FCFLAGS Fortran compiler flags 1518 1519 Use these variables to override the choices made by `configure' or to help 1520 it to find libraries and programs with nonstandard names/locations. 1521 1522 Report bugs to the package provider. 1523 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. 1524 General help using GNU software: <http://www.gnu.org/gethelp/>. 1525 _ACEOF 1526 ac_status=$? 1527 fi 1528 1529 if test "$ac_init_help" = "recursive"; then 1530 # If there are subdirs, report their specific --help. 1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1532 test -d "$ac_dir" || 1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1534 continue 1535 ac_builddir=. 1536 1537 case "$ac_dir" in 1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1539 *) 1540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1541 # A ".." for each directory in $ac_dir_suffix. 1542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1543 case $ac_top_builddir_sub in 1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1546 esac ;; 1547 esac 1548 ac_abs_top_builddir=$ac_pwd 1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1550 # for backward compatibility: 1551 ac_top_builddir=$ac_top_build_prefix 1552 1553 case $srcdir in 1554 .) # We are building in place. 1555 ac_srcdir=. 1556 ac_top_srcdir=$ac_top_builddir_sub 1557 ac_abs_top_srcdir=$ac_pwd ;; 1558 [\\/]* | ?:[\\/]* ) # Absolute name. 1559 ac_srcdir=$srcdir$ac_dir_suffix; 1560 ac_top_srcdir=$srcdir 1561 ac_abs_top_srcdir=$srcdir ;; 1562 *) # Relative name. 1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1564 ac_top_srcdir=$ac_top_build_prefix$srcdir 1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1566 esac 1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1568 1569 cd "$ac_dir" || { ac_status=$?; continue; } 1570 # Check for guested configure. 1571 if test -f "$ac_srcdir/configure.gnu"; then 1572 echo && 1573 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1574 elif test -f "$ac_srcdir/configure"; then 1575 echo && 1576 $SHELL "$ac_srcdir/configure" --help=recursive 1577 else 1578 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1579 fi || ac_status=$? 1580 cd "$ac_pwd" || { ac_status=$?; break; } 1581 done 1582 fi 1583 1584 test -n "$ac_init_help" && exit $ac_status 1585 if $ac_init_version; then 1586 cat <<\_ACEOF 1587 GNU Offloading and Multi Processing Runtime Library configure 1.0 1588 generated by GNU Autoconf 2.69 1589 1590 Copyright (C) 2012 Free Software Foundation, Inc. 1591 This configure script is free software; the Free Software Foundation 1592 gives unlimited permission to copy, distribute and modify it. 1593 _ACEOF 1594 exit 1595 fi 1596 1597 ## ------------------------ ## 1598 ## Autoconf initialization. ## 1599 ## ------------------------ ## 1600 1601 # ac_fn_c_try_compile LINENO 1602 # -------------------------- 1603 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1604 ac_fn_c_try_compile () 1605 { 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 rm -f conftest.$ac_objext 1608 if { { ac_try="$ac_compile" 1609 case "(($ac_try" in 1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1611 *) ac_try_echo=$ac_try;; 1612 esac 1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1614 $as_echo "$ac_try_echo"; } >&5 1615 (eval "$ac_compile") 2>conftest.err 1616 ac_status=$? 1617 if test -s conftest.err; then 1618 grep -v '^ *+' conftest.err >conftest.er1 1619 cat conftest.er1 >&5 1620 mv -f conftest.er1 conftest.err 1621 fi 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { 1624 test -z "$ac_c_werror_flag" || 1625 test ! -s conftest.err 1626 } && test -s conftest.$ac_objext; then : 1627 ac_retval=0 1628 else 1629 $as_echo "$as_me: failed program was:" >&5 1630 sed 's/^/| /' conftest.$ac_ext >&5 1631 1632 ac_retval=1 1633 fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637 } # ac_fn_c_try_compile 1638 1639 # ac_fn_c_try_link LINENO 1640 # ----------------------- 1641 # Try to link conftest.$ac_ext, and return whether this succeeded. 1642 ac_fn_c_try_link () 1643 { 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext conftest$ac_exeext 1646 if { { ac_try="$ac_link" 1647 case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650 esac 1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652 $as_echo "$ac_try_echo"; } >&5 1653 (eval "$ac_link") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest$ac_exeext && { 1665 test "$cross_compiling" = yes || 1666 test -x conftest$ac_exeext 1667 }; then : 1668 ac_retval=0 1669 else 1670 $as_echo "$as_me: failed program was:" >&5 1671 sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674 fi 1675 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1676 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1677 # interfere with the next link command; also delete a directory that is 1678 # left behind by Apple's compiler. We do this before executing the actions. 1679 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683 } # ac_fn_c_try_link 1684 1685 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1686 # ------------------------------------------------------- 1687 # Tests whether HEADER exists and can be compiled using the include files in 1688 # INCLUDES, setting the cache variable VAR accordingly. 1689 ac_fn_c_check_header_compile () 1690 { 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1693 $as_echo_n "checking for $2... " >&6; } 1694 if eval \${$3+:} false; then : 1695 $as_echo_n "(cached) " >&6 1696 else 1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698 /* end confdefs.h. */ 1699 $4 1700 #include <$2> 1701 _ACEOF 1702 if ac_fn_c_try_compile "$LINENO"; then : 1703 eval "$3=yes" 1704 else 1705 eval "$3=no" 1706 fi 1707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1708 fi 1709 eval ac_res=\$$3 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1711 $as_echo "$ac_res" >&6; } 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 1714 } # ac_fn_c_check_header_compile 1715 1716 # ac_fn_c_try_cpp LINENO 1717 # ---------------------- 1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1719 ac_fn_c_try_cpp () 1720 { 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_cpp conftest.$ac_ext" 1723 case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726 esac 1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728 $as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1730 ac_status=$? 1731 if test -s conftest.err; then 1732 grep -v '^ *+' conftest.err >conftest.er1 1733 cat conftest.er1 >&5 1734 mv -f conftest.er1 conftest.err 1735 fi 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } > conftest.i && { 1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1739 test ! -s conftest.err 1740 }; then : 1741 ac_retval=0 1742 else 1743 $as_echo "$as_me: failed program was:" >&5 1744 sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=1 1747 fi 1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1749 as_fn_set_status $ac_retval 1750 1751 } # ac_fn_c_try_cpp 1752 1753 # ac_fn_c_try_run LINENO 1754 # ---------------------- 1755 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1756 # that executables *can* be run. 1757 ac_fn_c_try_run () 1758 { 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 if { { ac_try="$ac_link" 1761 case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764 esac 1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766 $as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_link") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1771 { { case "(($ac_try" in 1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1773 *) ac_try_echo=$ac_try;; 1774 esac 1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1776 $as_echo "$ac_try_echo"; } >&5 1777 (eval "$ac_try") 2>&5 1778 ac_status=$? 1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1780 test $ac_status = 0; }; }; then : 1781 ac_retval=0 1782 else 1783 $as_echo "$as_me: program exited with status $ac_status" >&5 1784 $as_echo "$as_me: failed program was:" >&5 1785 sed 's/^/| /' conftest.$ac_ext >&5 1786 1787 ac_retval=$ac_status 1788 fi 1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 as_fn_set_status $ac_retval 1792 1793 } # ac_fn_c_try_run 1794 1795 # ac_fn_c_check_func LINENO FUNC VAR 1796 # ---------------------------------- 1797 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1798 ac_fn_c_check_func () 1799 { 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1802 $as_echo_n "checking for $2... " >&6; } 1803 if eval \${$3+:} false; then : 1804 $as_echo_n "(cached) " >&6 1805 else 1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807 /* end confdefs.h. */ 1808 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1809 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1810 #define $2 innocuous_$2 1811 1812 /* System header to define __stub macros and hopefully few prototypes, 1813 which can conflict with char $2 (); below. 1814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1815 <limits.h> exists even on freestanding compilers. */ 1816 1817 #ifdef __STDC__ 1818 # include <limits.h> 1819 #else 1820 # include <assert.h> 1821 #endif 1822 1823 #undef $2 1824 1825 /* Override any GCC internal prototype to avoid an error. 1826 Use char because int might match the return type of a GCC 1827 builtin and then its argument prototype would still apply. */ 1828 #ifdef __cplusplus 1829 extern "C" 1830 #endif 1831 char $2 (); 1832 /* The GNU C library defines this for functions which it implements 1833 to always fail with ENOSYS. Some functions are actually named 1834 something starting with __ and the normal name is an alias. */ 1835 #if defined __stub_$2 || defined __stub___$2 1836 choke me 1837 #endif 1838 1839 int 1840 main () 1841 { 1842 return $2 (); 1843 ; 1844 return 0; 1845 } 1846 _ACEOF 1847 if ac_fn_c_try_link "$LINENO"; then : 1848 eval "$3=yes" 1849 else 1850 eval "$3=no" 1851 fi 1852 rm -f core conftest.err conftest.$ac_objext \ 1853 conftest$ac_exeext conftest.$ac_ext 1854 fi 1855 eval ac_res=\$$3 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1857 $as_echo "$ac_res" >&6; } 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 1860 } # ac_fn_c_check_func 1861 1862 # ac_fn_fc_try_compile LINENO 1863 # --------------------------- 1864 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1865 ac_fn_fc_try_compile () 1866 { 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 rm -f conftest.$ac_objext 1869 if { { ac_try="$ac_compile" 1870 case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873 esac 1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875 $as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_compile") 2>conftest.err 1877 ac_status=$? 1878 if test -s conftest.err; then 1879 grep -v '^ *+' conftest.err >conftest.er1 1880 cat conftest.er1 >&5 1881 mv -f conftest.er1 conftest.err 1882 fi 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } && { 1885 test -z "$ac_fc_werror_flag" || 1886 test ! -s conftest.err 1887 } && test -s conftest.$ac_objext; then : 1888 ac_retval=0 1889 else 1890 $as_echo "$as_me: failed program was:" >&5 1891 sed 's/^/| /' conftest.$ac_ext >&5 1892 1893 ac_retval=1 1894 fi 1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1896 as_fn_set_status $ac_retval 1897 1898 } # ac_fn_fc_try_compile 1899 1900 # ac_fn_fc_try_link LINENO 1901 # ------------------------ 1902 # Try to link conftest.$ac_ext, and return whether this succeeded. 1903 ac_fn_fc_try_link () 1904 { 1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1906 rm -f conftest.$ac_objext conftest$ac_exeext 1907 if { { ac_try="$ac_link" 1908 case "(($ac_try" in 1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1910 *) ac_try_echo=$ac_try;; 1911 esac 1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1913 $as_echo "$ac_try_echo"; } >&5 1914 (eval "$ac_link") 2>conftest.err 1915 ac_status=$? 1916 if test -s conftest.err; then 1917 grep -v '^ *+' conftest.err >conftest.er1 1918 cat conftest.er1 >&5 1919 mv -f conftest.er1 conftest.err 1920 fi 1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1922 test $ac_status = 0; } && { 1923 test -z "$ac_fc_werror_flag" || 1924 test ! -s conftest.err 1925 } && test -s conftest$ac_exeext && { 1926 test "$cross_compiling" = yes || 1927 test -x conftest$ac_exeext 1928 }; then : 1929 ac_retval=0 1930 else 1931 $as_echo "$as_me: failed program was:" >&5 1932 sed 's/^/| /' conftest.$ac_ext >&5 1933 1934 ac_retval=1 1935 fi 1936 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1937 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1938 # interfere with the next link command; also delete a directory that is 1939 # left behind by Apple's compiler. We do this before executing the actions. 1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1942 as_fn_set_status $ac_retval 1943 1944 } # ac_fn_fc_try_link 1945 1946 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1947 # ------------------------------------------------------- 1948 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1949 # the include files in INCLUDES and setting the cache variable VAR 1950 # accordingly. 1951 ac_fn_c_check_header_mongrel () 1952 { 1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1954 if eval \${$3+:} false; then : 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1956 $as_echo_n "checking for $2... " >&6; } 1957 if eval \${$3+:} false; then : 1958 $as_echo_n "(cached) " >&6 1959 fi 1960 eval ac_res=\$$3 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962 $as_echo "$ac_res" >&6; } 1963 else 1964 # Is the header compilable? 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1966 $as_echo_n "checking $2 usability... " >&6; } 1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968 /* end confdefs.h. */ 1969 $4 1970 #include <$2> 1971 _ACEOF 1972 if ac_fn_c_try_compile "$LINENO"; then : 1973 ac_header_compiler=yes 1974 else 1975 ac_header_compiler=no 1976 fi 1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1979 $as_echo "$ac_header_compiler" >&6; } 1980 1981 # Is the header present? 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1983 $as_echo_n "checking $2 presence... " >&6; } 1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985 /* end confdefs.h. */ 1986 #include <$2> 1987 _ACEOF 1988 if ac_fn_c_try_cpp "$LINENO"; then : 1989 ac_header_preproc=yes 1990 else 1991 ac_header_preproc=no 1992 fi 1993 rm -f conftest.err conftest.i conftest.$ac_ext 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1995 $as_echo "$ac_header_preproc" >&6; } 1996 1997 # So? What about this header? 1998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1999 yes:no: ) 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2001 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2003 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2004 ;; 2005 no:yes:* ) 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2007 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2009 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2011 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2013 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2015 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2016 ;; 2017 esac 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2019 $as_echo_n "checking for $2... " >&6; } 2020 if eval \${$3+:} false; then : 2021 $as_echo_n "(cached) " >&6 2022 else 2023 eval "$3=\$ac_header_compiler" 2024 fi 2025 eval ac_res=\$$3 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2027 $as_echo "$ac_res" >&6; } 2028 fi 2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2030 2031 } # ac_fn_c_check_header_mongrel 2032 2033 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2034 # -------------------------------------------- 2035 # Tries to find the compile-time value of EXPR in a program that includes 2036 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2037 # computed 2038 ac_fn_c_compute_int () 2039 { 2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2041 if test "$cross_compiling" = yes; then 2042 # Depending upon the size, compute the lo and hi bounds. 2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2044 /* end confdefs.h. */ 2045 $4 2046 int 2047 main () 2048 { 2049 static int test_array [1 - 2 * !(($2) >= 0)]; 2050 test_array [0] = 0; 2051 return test_array [0]; 2052 2053 ; 2054 return 0; 2055 } 2056 _ACEOF 2057 if ac_fn_c_try_compile "$LINENO"; then : 2058 ac_lo=0 ac_mid=0 2059 while :; do 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061 /* end confdefs.h. */ 2062 $4 2063 int 2064 main () 2065 { 2066 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2067 test_array [0] = 0; 2068 return test_array [0]; 2069 2070 ; 2071 return 0; 2072 } 2073 _ACEOF 2074 if ac_fn_c_try_compile "$LINENO"; then : 2075 ac_hi=$ac_mid; break 2076 else 2077 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2078 if test $ac_lo -le $ac_mid; then 2079 ac_lo= ac_hi= 2080 break 2081 fi 2082 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2083 fi 2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2085 done 2086 else 2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2088 /* end confdefs.h. */ 2089 $4 2090 int 2091 main () 2092 { 2093 static int test_array [1 - 2 * !(($2) < 0)]; 2094 test_array [0] = 0; 2095 return test_array [0]; 2096 2097 ; 2098 return 0; 2099 } 2100 _ACEOF 2101 if ac_fn_c_try_compile "$LINENO"; then : 2102 ac_hi=-1 ac_mid=-1 2103 while :; do 2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2105 /* end confdefs.h. */ 2106 $4 2107 int 2108 main () 2109 { 2110 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2111 test_array [0] = 0; 2112 return test_array [0]; 2113 2114 ; 2115 return 0; 2116 } 2117 _ACEOF 2118 if ac_fn_c_try_compile "$LINENO"; then : 2119 ac_lo=$ac_mid; break 2120 else 2121 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2122 if test $ac_mid -le $ac_hi; then 2123 ac_lo= ac_hi= 2124 break 2125 fi 2126 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2127 fi 2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2129 done 2130 else 2131 ac_lo= ac_hi= 2132 fi 2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2134 fi 2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2136 # Binary search between lo and hi bounds. 2137 while test "x$ac_lo" != "x$ac_hi"; do 2138 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2140 /* end confdefs.h. */ 2141 $4 2142 int 2143 main () 2144 { 2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2146 test_array [0] = 0; 2147 return test_array [0]; 2148 2149 ; 2150 return 0; 2151 } 2152 _ACEOF 2153 if ac_fn_c_try_compile "$LINENO"; then : 2154 ac_hi=$ac_mid 2155 else 2156 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2157 fi 2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2159 done 2160 case $ac_lo in #(( 2161 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2162 '') ac_retval=1 ;; 2163 esac 2164 else 2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2166 /* end confdefs.h. */ 2167 $4 2168 static long int longval () { return $2; } 2169 static unsigned long int ulongval () { return $2; } 2170 #include <stdio.h> 2171 #include <stdlib.h> 2172 int 2173 main () 2174 { 2175 2176 FILE *f = fopen ("conftest.val", "w"); 2177 if (! f) 2178 return 1; 2179 if (($2) < 0) 2180 { 2181 long int i = longval (); 2182 if (i != ($2)) 2183 return 1; 2184 fprintf (f, "%ld", i); 2185 } 2186 else 2187 { 2188 unsigned long int i = ulongval (); 2189 if (i != ($2)) 2190 return 1; 2191 fprintf (f, "%lu", i); 2192 } 2193 /* Do not output a trailing newline, as this causes \r\n confusion 2194 on some platforms. */ 2195 return ferror (f) || fclose (f) != 0; 2196 2197 ; 2198 return 0; 2199 } 2200 _ACEOF 2201 if ac_fn_c_try_run "$LINENO"; then : 2202 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2203 else 2204 ac_retval=1 2205 fi 2206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2207 conftest.$ac_objext conftest.beam conftest.$ac_ext 2208 rm -f conftest.val 2209 2210 fi 2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2212 as_fn_set_status $ac_retval 2213 2214 } # ac_fn_c_compute_int 2215 2216 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2217 # ------------------------------------------- 2218 # Tests whether TYPE exists after having included INCLUDES, setting cache 2219 # variable VAR accordingly. 2220 ac_fn_c_check_type () 2221 { 2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2224 $as_echo_n "checking for $2... " >&6; } 2225 if eval \${$3+:} false; then : 2226 $as_echo_n "(cached) " >&6 2227 else 2228 eval "$3=no" 2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2230 /* end confdefs.h. */ 2231 $4 2232 int 2233 main () 2234 { 2235 if (sizeof ($2)) 2236 return 0; 2237 ; 2238 return 0; 2239 } 2240 _ACEOF 2241 if ac_fn_c_try_compile "$LINENO"; then : 2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2243 /* end confdefs.h. */ 2244 $4 2245 int 2246 main () 2247 { 2248 if (sizeof (($2))) 2249 return 0; 2250 ; 2251 return 0; 2252 } 2253 _ACEOF 2254 if ac_fn_c_try_compile "$LINENO"; then : 2255 2256 else 2257 eval "$3=yes" 2258 fi 2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2260 fi 2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2262 fi 2263 eval ac_res=\$$3 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2265 $as_echo "$ac_res" >&6; } 2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2267 2268 } # ac_fn_c_check_type 2269 cat >config.log <<_ACEOF 2270 This file contains any messages produced by compilers while 2271 running configure, to aid debugging if configure makes a mistake. 2272 2273 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was 2274 generated by GNU Autoconf 2.69. Invocation command line was 2275 2276 $ $0 $@ 2277 2278 _ACEOF 2279 exec 5>>config.log 2280 { 2281 cat <<_ASUNAME 2282 ## --------- ## 2283 ## Platform. ## 2284 ## --------- ## 2285 2286 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2287 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2288 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2289 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2290 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2291 2292 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2293 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2294 2295 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2296 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2297 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2298 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2299 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2300 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2301 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2302 2303 _ASUNAME 2304 2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2306 for as_dir in $PATH 2307 do 2308 IFS=$as_save_IFS 2309 test -z "$as_dir" && as_dir=. 2310 $as_echo "PATH: $as_dir" 2311 done 2312 IFS=$as_save_IFS 2313 2314 } >&5 2315 2316 cat >&5 <<_ACEOF 2317 2318 2319 ## ----------- ## 2320 ## Core tests. ## 2321 ## ----------- ## 2322 2323 _ACEOF 2324 2325 2326 # Keep a trace of the command line. 2327 # Strip out --no-create and --no-recursion so they do not pile up. 2328 # Strip out --silent because we don't want to record it for future runs. 2329 # Also quote any args containing shell meta-characters. 2330 # Make two passes to allow for proper duplicate-argument suppression. 2331 ac_configure_args= 2332 ac_configure_args0= 2333 ac_configure_args1= 2334 ac_must_keep_next=false 2335 for ac_pass in 1 2 2336 do 2337 for ac_arg 2338 do 2339 case $ac_arg in 2340 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2342 | -silent | --silent | --silen | --sile | --sil) 2343 continue ;; 2344 *\'*) 2345 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2346 esac 2347 case $ac_pass in 2348 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2349 2) 2350 as_fn_append ac_configure_args1 " '$ac_arg'" 2351 if test $ac_must_keep_next = true; then 2352 ac_must_keep_next=false # Got value, back to normal. 2353 else 2354 case $ac_arg in 2355 *=* | --config-cache | -C | -disable-* | --disable-* \ 2356 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2357 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2358 | -with-* | --with-* | -without-* | --without-* | --x) 2359 case "$ac_configure_args0 " in 2360 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2361 esac 2362 ;; 2363 -* ) ac_must_keep_next=true ;; 2364 esac 2365 fi 2366 as_fn_append ac_configure_args " '$ac_arg'" 2367 ;; 2368 esac 2369 done 2370 done 2371 { ac_configure_args0=; unset ac_configure_args0;} 2372 { ac_configure_args1=; unset ac_configure_args1;} 2373 2374 # When interrupted or exit'd, cleanup temporary files, and complete 2375 # config.log. We remove comments because anyway the quotes in there 2376 # would cause problems or look ugly. 2377 # WARNING: Use '\'' to represent an apostrophe within the trap. 2378 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2379 trap 'exit_status=$? 2380 # Save into config.log some information that might help in debugging. 2381 { 2382 echo 2383 2384 $as_echo "## ---------------- ## 2385 ## Cache variables. ## 2386 ## ---------------- ##" 2387 echo 2388 # The following way of writing the cache mishandles newlines in values, 2389 ( 2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2391 eval ac_val=\$$ac_var 2392 case $ac_val in #( 2393 *${as_nl}*) 2394 case $ac_var in #( 2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2397 esac 2398 case $ac_var in #( 2399 _ | IFS | as_nl) ;; #( 2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2401 *) { eval $ac_var=; unset $ac_var;} ;; 2402 esac ;; 2403 esac 2404 done 2405 (set) 2>&1 | 2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2407 *${as_nl}ac_space=\ *) 2408 sed -n \ 2409 "s/'\''/'\''\\\\'\'''\''/g; 2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2411 ;; #( 2412 *) 2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2414 ;; 2415 esac | 2416 sort 2417 ) 2418 echo 2419 2420 $as_echo "## ----------------- ## 2421 ## Output variables. ## 2422 ## ----------------- ##" 2423 echo 2424 for ac_var in $ac_subst_vars 2425 do 2426 eval ac_val=\$$ac_var 2427 case $ac_val in 2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2429 esac 2430 $as_echo "$ac_var='\''$ac_val'\''" 2431 done | sort 2432 echo 2433 2434 if test -n "$ac_subst_files"; then 2435 $as_echo "## ------------------- ## 2436 ## File substitutions. ## 2437 ## ------------------- ##" 2438 echo 2439 for ac_var in $ac_subst_files 2440 do 2441 eval ac_val=\$$ac_var 2442 case $ac_val in 2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2444 esac 2445 $as_echo "$ac_var='\''$ac_val'\''" 2446 done | sort 2447 echo 2448 fi 2449 2450 if test -s confdefs.h; then 2451 $as_echo "## ----------- ## 2452 ## confdefs.h. ## 2453 ## ----------- ##" 2454 echo 2455 cat confdefs.h 2456 echo 2457 fi 2458 test "$ac_signal" != 0 && 2459 $as_echo "$as_me: caught signal $ac_signal" 2460 $as_echo "$as_me: exit $exit_status" 2461 } >&5 2462 rm -f core *.core core.conftest.* && 2463 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2464 exit $exit_status 2465 ' 0 2466 for ac_signal in 1 2 13 15; do 2467 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2468 done 2469 ac_signal=0 2470 2471 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2472 rm -f -r conftest* confdefs.h 2473 2474 $as_echo "/* confdefs.h */" > confdefs.h 2475 2476 # Predefined preprocessor variables. 2477 2478 cat >>confdefs.h <<_ACEOF 2479 #define PACKAGE_NAME "$PACKAGE_NAME" 2480 _ACEOF 2481 2482 cat >>confdefs.h <<_ACEOF 2483 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2484 _ACEOF 2485 2486 cat >>confdefs.h <<_ACEOF 2487 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2488 _ACEOF 2489 2490 cat >>confdefs.h <<_ACEOF 2491 #define PACKAGE_STRING "$PACKAGE_STRING" 2492 _ACEOF 2493 2494 cat >>confdefs.h <<_ACEOF 2495 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2496 _ACEOF 2497 2498 cat >>confdefs.h <<_ACEOF 2499 #define PACKAGE_URL "$PACKAGE_URL" 2500 _ACEOF 2501 2502 2503 # Let the site file select an alternate cache file if it wants to. 2504 # Prefer an explicitly selected file to automatically selected ones. 2505 ac_site_file1=NONE 2506 ac_site_file2=NONE 2507 if test -n "$CONFIG_SITE"; then 2508 # We do not want a PATH search for config.site. 2509 case $CONFIG_SITE in #(( 2510 -*) ac_site_file1=./$CONFIG_SITE;; 2511 */*) ac_site_file1=$CONFIG_SITE;; 2512 *) ac_site_file1=./$CONFIG_SITE;; 2513 esac 2514 elif test "x$prefix" != xNONE; then 2515 ac_site_file1=$prefix/share/config.site 2516 ac_site_file2=$prefix/etc/config.site 2517 else 2518 ac_site_file1=$ac_default_prefix/share/config.site 2519 ac_site_file2=$ac_default_prefix/etc/config.site 2520 fi 2521 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2522 do 2523 test "x$ac_site_file" = xNONE && continue 2524 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2526 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2527 sed 's/^/| /' "$ac_site_file" >&5 2528 . "$ac_site_file" \ 2529 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2531 as_fn_error $? "failed to load site script $ac_site_file 2532 See \`config.log' for more details" "$LINENO" 5; } 2533 fi 2534 done 2535 2536 if test -r "$cache_file"; then 2537 # Some versions of bash will fail to source /dev/null (special files 2538 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2539 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2541 $as_echo "$as_me: loading cache $cache_file" >&6;} 2542 case $cache_file in 2543 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2544 *) . "./$cache_file";; 2545 esac 2546 fi 2547 else 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2549 $as_echo "$as_me: creating cache $cache_file" >&6;} 2550 >$cache_file 2551 fi 2552 2553 as_fn_append ac_header_list " unistd.h" 2554 as_fn_append ac_func_list " secure_getenv" 2555 as_fn_append ac_func_list " __secure_getenv" 2556 as_fn_append ac_func_list " getuid" 2557 as_fn_append ac_func_list " geteuid" 2558 as_fn_append ac_func_list " getgid" 2559 as_fn_append ac_func_list " getegid" 2560 # Check that the precious variables saved in the cache have kept the same 2561 # value. 2562 ac_cache_corrupted=false 2563 for ac_var in $ac_precious_vars; do 2564 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2565 eval ac_new_set=\$ac_env_${ac_var}_set 2566 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2567 eval ac_new_val=\$ac_env_${ac_var}_value 2568 case $ac_old_set,$ac_new_set in 2569 set,) 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2571 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2572 ac_cache_corrupted=: ;; 2573 ,set) 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2575 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2576 ac_cache_corrupted=: ;; 2577 ,);; 2578 *) 2579 if test "x$ac_old_val" != "x$ac_new_val"; then 2580 # differences in whitespace do not lead to failure. 2581 ac_old_val_w=`echo x $ac_old_val` 2582 ac_new_val_w=`echo x $ac_new_val` 2583 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2585 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2586 ac_cache_corrupted=: 2587 else 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2589 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2590 eval $ac_var=\$ac_old_val 2591 fi 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2593 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2595 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2596 fi;; 2597 esac 2598 # Pass precious variables to config.status. 2599 if test "$ac_new_set" = set; then 2600 case $ac_new_val in 2601 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2602 *) ac_arg=$ac_var=$ac_new_val ;; 2603 esac 2604 case " $ac_configure_args " in 2605 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2606 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2607 esac 2608 fi 2609 done 2610 if $ac_cache_corrupted; then 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2614 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2615 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2616 fi 2617 ## -------------------- ## 2618 ## Main body of script. ## 2619 ## -------------------- ## 2620 2621 ac_ext=c 2622 ac_cpp='$CPP $CPPFLAGS' 2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2626 2627 2628 2629 2630 2631 ac_config_headers="$ac_config_headers config.h" 2632 2633 2634 # ------- 2635 # Options 2636 # ------- 2637 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2639 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2640 # Check whether --enable-version-specific-runtime-libs was given. 2641 if test "${enable_version_specific_runtime_libs+set}" = set; then : 2642 enableval=$enable_version_specific_runtime_libs; 2643 case "$enableval" in 2644 yes|no) ;; 2645 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; 2646 esac 2647 2648 else 2649 enable_version_specific_runtime_libs=no 2650 fi 2651 2652 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 2654 $as_echo "$enable_version_specific_runtime_libs" >&6; } 2655 2656 # We would like our source tree to be readonly. However when releases or 2657 # pre-releases are generated, the flex/bison generated files as well as the 2658 # various formats of manuals need to be included along with the rest of the 2659 # sources. Therefore we have --enable-generated-files-in-srcdir to do 2660 # just that. 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 2662 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } 2663 # Check whether --enable-generated-files-in-srcdir was given. 2664 if test "${enable_generated_files_in_srcdir+set}" = set; then : 2665 enableval=$enable_generated_files_in_srcdir; 2666 case "$enableval" in 2667 yes|no) ;; 2668 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; 2669 esac 2670 2671 else 2672 enable_generated_files_in_srcdir=no 2673 fi 2674 2675 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 2677 $as_echo "$enable_generated_files_in_srcdir" >&6; } 2678 if test "$enable_generated_files_in_srcdir" = yes; then 2679 GENINSRC_TRUE= 2680 GENINSRC_FALSE='#' 2681 else 2682 GENINSRC_TRUE='#' 2683 GENINSRC_FALSE= 2684 fi 2685 2686 2687 2688 # ------- 2689 # ------- 2690 2691 # Gets build, host, target, *_vendor, *_cpu, *_os, etc. 2692 # 2693 # You will slowly go insane if you do not grok the following fact: when 2694 # building this library, the top-level /target/ becomes the library's /host/. 2695 # 2696 # configure then causes --target to default to --host, exactly like any 2697 # other package using autoconf. Therefore, 'target' and 'host' will 2698 # always be the same. This makes sense both for native and cross compilers 2699 # just think about it for a little while. :-) 2700 # 2701 # Also, if this library is being configured as part of a cross compiler, the 2702 # top-level configure script will pass the "real" host as $with_cross_host. 2703 # 2704 # Do not delete or change the following two lines. For why, see 2705 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2706 ac_aux_dir= 2707 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2708 if test -f "$ac_dir/install-sh"; then 2709 ac_aux_dir=$ac_dir 2710 ac_install_sh="$SHELL $ac_aux_dir/install-sh -c" 2711 break 2712 elif test -f "$ac_dir/install.sh"; then 2713 ac_aux_dir=$ac_dir 2714 ac_install_sh="$SHELL $ac_aux_dir/install.sh -c" 2715 break 2716 elif test -f "$ac_dir/shtool"; then 2717 ac_aux_dir=$ac_dir 2718 ac_install_sh="$SHELL $ac_aux_dir/shtool install -c" 2719 break 2720 fi 2721 done 2722 if test -z "$ac_aux_dir"; then 2723 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2724 fi 2725 2726 # These three variables are undocumented and unsupported, 2727 # and are intended to be withdrawn in a future Autoconf release. 2728 # They can cause serious problems if a builder's source tree is in a directory 2729 # whose full name contains unusual characters. 2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2732 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2733 2734 2735 # Make sure we can run config.sub. 2736 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2737 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2738 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2740 $as_echo_n "checking build system type... " >&6; } 2741 if ${ac_cv_build+:} false; then : 2742 $as_echo_n "(cached) " >&6 2743 else 2744 ac_build_alias=$build_alias 2745 test "x$ac_build_alias" = x && 2746 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2747 test "x$ac_build_alias" = x && 2748 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2749 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2750 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2751 2752 fi 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2754 $as_echo "$ac_cv_build" >&6; } 2755 case $ac_cv_build in 2756 *-*-*) ;; 2757 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2758 esac 2759 build=$ac_cv_build 2760 ac_save_IFS=$IFS; IFS='-' 2761 set x $ac_cv_build 2762 shift 2763 build_cpu=$1 2764 build_vendor=$2 2765 shift; shift 2766 # Remember, the first character of IFS is used to create $*, 2767 # except with old shells: 2768 build_os=$* 2769 IFS=$ac_save_IFS 2770 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2771 2772 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2774 $as_echo_n "checking host system type... " >&6; } 2775 if ${ac_cv_host+:} false; then : 2776 $as_echo_n "(cached) " >&6 2777 else 2778 if test "x$host_alias" = x; then 2779 ac_cv_host=$ac_cv_build 2780 else 2781 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2782 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2783 fi 2784 2785 fi 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2787 $as_echo "$ac_cv_host" >&6; } 2788 case $ac_cv_host in 2789 *-*-*) ;; 2790 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2791 esac 2792 host=$ac_cv_host 2793 ac_save_IFS=$IFS; IFS='-' 2794 set x $ac_cv_host 2795 shift 2796 host_cpu=$1 2797 host_vendor=$2 2798 shift; shift 2799 # Remember, the first character of IFS is used to create $*, 2800 # except with old shells: 2801 host_os=$* 2802 IFS=$ac_save_IFS 2803 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2804 2805 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2807 $as_echo_n "checking target system type... " >&6; } 2808 if ${ac_cv_target+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810 else 2811 if test "x$target_alias" = x; then 2812 ac_cv_target=$ac_cv_host 2813 else 2814 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2816 fi 2817 2818 fi 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2820 $as_echo "$ac_cv_target" >&6; } 2821 case $ac_cv_target in 2822 *-*-*) ;; 2823 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2824 esac 2825 target=$ac_cv_target 2826 ac_save_IFS=$IFS; IFS='-' 2827 set x $ac_cv_target 2828 shift 2829 target_cpu=$1 2830 target_vendor=$2 2831 shift; shift 2832 # Remember, the first character of IFS is used to create $*, 2833 # except with old shells: 2834 target_os=$* 2835 IFS=$ac_save_IFS 2836 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2837 2838 2839 # The aliases save the names the user supplied, while $host etc. 2840 # will get canonicalized. 2841 test -n "$target_alias" && 2842 test "$program_prefix$program_suffix$program_transform_name" = \ 2843 NONENONEs,x,x, && 2844 program_prefix=${target_alias}- 2845 2846 target_alias=${target_alias-$host_alias} 2847 2848 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the 2849 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. 2850 # 1.9.0: minimum required version 2851 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch 2852 # of other PACKAGE_* variables will, however, and there's nothing 2853 # we can do about that; they come from AC_INIT). 2854 # foreign: we don't follow the normal rules for GNU packages (no COPYING 2855 # file in the top srcdir, etc, etc), so stop complaining. 2856 # no-dist: we don't want 'dist' and related rules. 2857 # -Wall: turns on all automake warnings... 2858 # -Wno-portability: ...except this one, since GNU make is required. 2859 # -Wno-override: ... and this one, since we do want this in testsuite. 2860 am__api_version='1.15' 2861 2862 # Find a good install program. We prefer a C program (faster), 2863 # so one script is as good as another. But avoid the broken or 2864 # incompatible versions: 2865 # SysV /etc/install, /usr/sbin/install 2866 # SunOS /usr/etc/install 2867 # IRIX /sbin/install 2868 # AIX /bin/install 2869 # AmigaOS /C/install, which installs bootblocks on floppy discs 2870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2873 # OS/2's system install, which has a completely different semantic 2874 # ./install, which can be erroneously created by make from ./install.sh. 2875 # Reject install programs that cannot install multiple files. 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2877 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2878 if test -z "$INSTALL"; then 2879 if ${ac_cv_path_install+:} false; then : 2880 $as_echo_n "(cached) " >&6 2881 else 2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2883 for as_dir in $PATH 2884 do 2885 IFS=$as_save_IFS 2886 test -z "$as_dir" && as_dir=. 2887 # Account for people who put trailing slashes in PATH elements. 2888 case $as_dir/ in #(( 2889 ./ | .// | /[cC]/* | \ 2890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2891 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2892 /usr/ucb/* ) ;; 2893 *) 2894 # OSF1 and SCO ODT 3.0 have their own names for install. 2895 # Don't use installbsd from OSF since it installs stuff as root 2896 # by default. 2897 for ac_prog in ginstall scoinst install; do 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2900 if test $ac_prog = install && 2901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2902 # AIX install. It has an incompatible calling convention. 2903 : 2904 elif test $ac_prog = install && 2905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2906 # program-specific install script used by HP pwplus--don't use. 2907 : 2908 else 2909 rm -rf conftest.one conftest.two conftest.dir 2910 echo one > conftest.one 2911 echo two > conftest.two 2912 mkdir conftest.dir 2913 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2914 test -s conftest.one && test -s conftest.two && 2915 test -s conftest.dir/conftest.one && 2916 test -s conftest.dir/conftest.two 2917 then 2918 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2919 break 3 2920 fi 2921 fi 2922 fi 2923 done 2924 done 2925 ;; 2926 esac 2927 2928 done 2929 IFS=$as_save_IFS 2930 2931 rm -rf conftest.one conftest.two conftest.dir 2932 2933 fi 2934 if test "${ac_cv_path_install+set}" = set; then 2935 INSTALL=$ac_cv_path_install 2936 else 2937 # As a last resort, use the slow shell script. Don't cache a 2938 # value for INSTALL within a source directory, because that will 2939 # break other packages using the cache if that directory is 2940 # removed, or if the value is a relative name. 2941 INSTALL=$ac_install_sh 2942 fi 2943 fi 2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2945 $as_echo "$INSTALL" >&6; } 2946 2947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2948 # It thinks the first close brace ends the variable substitution. 2949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2950 2951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2952 2953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2954 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2956 $as_echo_n "checking whether build environment is sane... " >&6; } 2957 # Reject unsafe characters in $srcdir or the absolute working directory 2958 # name. Accept space and tab only in the latter. 2959 am_lf=' 2960 ' 2961 case `pwd` in 2962 *[\\\"\#\$\&\'\`$am_lf]*) 2963 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2964 esac 2965 case $srcdir in 2966 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2967 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2968 esac 2969 2970 # Do 'set' in a subshell so we don't clobber the current shell's 2971 # arguments. Must try -L first in case configure is actually a 2972 # symlink; some systems play weird games with the mod time of symlinks 2973 # (eg FreeBSD returns the mod time of the symlink's containing 2974 # directory). 2975 if ( 2976 am_has_slept=no 2977 for am_try in 1 2; do 2978 echo "timestamp, slept: $am_has_slept" > conftest.file 2979 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2980 if test "$*" = "X"; then 2981 # -L didn't work. 2982 set X `ls -t "$srcdir/configure" conftest.file` 2983 fi 2984 if test "$*" != "X $srcdir/configure conftest.file" \ 2985 && test "$*" != "X conftest.file $srcdir/configure"; then 2986 2987 # If neither matched, then we have a broken ls. This can happen 2988 # if, for instance, CONFIG_SHELL is bash and it inherits a 2989 # broken ls alias from the environment. This has actually 2990 # happened. Such a system could not be considered "sane". 2991 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2992 alias in your environment" "$LINENO" 5 2993 fi 2994 if test "$2" = conftest.file || test $am_try -eq 2; then 2995 break 2996 fi 2997 # Just in case. 2998 sleep 1 2999 am_has_slept=yes 3000 done 3001 test "$2" = conftest.file 3002 ) 3003 then 3004 # Ok. 3005 : 3006 else 3007 as_fn_error $? "newly created file is older than distributed files! 3008 Check your system clock" "$LINENO" 5 3009 fi 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3011 $as_echo "yes" >&6; } 3012 # If we didn't sleep, we still need to ensure time stamps of config.status and 3013 # generated files are strictly newer. 3014 am_sleep_pid= 3015 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3016 ( sleep 1 ) & 3017 am_sleep_pid=$! 3018 fi 3019 3020 rm -f conftest.file 3021 3022 test "$program_prefix" != NONE && 3023 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3024 # Use a double $ so make ignores it. 3025 test "$program_suffix" != NONE && 3026 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3027 # Double any \ or $. 3028 # By default was `s,x,x', remove it if useless. 3029 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3030 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3031 3032 # Expand $ac_aux_dir to an absolute path. 3033 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3034 3035 if test x"${MISSING+set}" != xset; then 3036 case $am_aux_dir in 3037 *\ * | *\ *) 3038 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3039 *) 3040 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3041 esac 3042 fi 3043 # Use eval to expand $SHELL 3044 if eval "$MISSING --is-lightweight"; then 3045 am_missing_run="$MISSING " 3046 else 3047 am_missing_run= 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3049 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3050 fi 3051 3052 if test x"${install_sh+set}" != xset; then 3053 case $am_aux_dir in 3054 *\ * | *\ *) 3055 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3056 *) 3057 install_sh="\${SHELL} $am_aux_dir/install-sh" 3058 esac 3059 fi 3060 3061 # Installed binaries are usually stripped using 'strip' when the user 3062 # run "make install-strip". However 'strip' might not be the right 3063 # tool to use in cross-compilation environments, therefore Automake 3064 # will honor the 'STRIP' environment variable to overrule this program. 3065 if test "$cross_compiling" != no; then 3066 if test -n "$ac_tool_prefix"; then 3067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3068 set dummy ${ac_tool_prefix}strip; ac_word=$2 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3070 $as_echo_n "checking for $ac_word... " >&6; } 3071 if ${ac_cv_prog_STRIP+:} false; then : 3072 $as_echo_n "(cached) " >&6 3073 else 3074 if test -n "$STRIP"; then 3075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3076 else 3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3078 for as_dir in $PATH 3079 do 3080 IFS=$as_save_IFS 3081 test -z "$as_dir" && as_dir=. 3082 for ac_exec_ext in '' $ac_executable_extensions; do 3083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3084 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3086 break 2 3087 fi 3088 done 3089 done 3090 IFS=$as_save_IFS 3091 3092 fi 3093 fi 3094 STRIP=$ac_cv_prog_STRIP 3095 if test -n "$STRIP"; then 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3097 $as_echo "$STRIP" >&6; } 3098 else 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3100 $as_echo "no" >&6; } 3101 fi 3102 3103 3104 fi 3105 if test -z "$ac_cv_prog_STRIP"; then 3106 ac_ct_STRIP=$STRIP 3107 # Extract the first word of "strip", so it can be a program name with args. 3108 set dummy strip; ac_word=$2 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3110 $as_echo_n "checking for $ac_word... " >&6; } 3111 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3112 $as_echo_n "(cached) " >&6 3113 else 3114 if test -n "$ac_ct_STRIP"; then 3115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3116 else 3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3118 for as_dir in $PATH 3119 do 3120 IFS=$as_save_IFS 3121 test -z "$as_dir" && as_dir=. 3122 for ac_exec_ext in '' $ac_executable_extensions; do 3123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3124 ac_cv_prog_ac_ct_STRIP="strip" 3125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3126 break 2 3127 fi 3128 done 3129 done 3130 IFS=$as_save_IFS 3131 3132 fi 3133 fi 3134 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3135 if test -n "$ac_ct_STRIP"; then 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3137 $as_echo "$ac_ct_STRIP" >&6; } 3138 else 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3140 $as_echo "no" >&6; } 3141 fi 3142 3143 if test "x$ac_ct_STRIP" = x; then 3144 STRIP=":" 3145 else 3146 case $cross_compiling:$ac_tool_warned in 3147 yes:) 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3150 ac_tool_warned=yes ;; 3151 esac 3152 STRIP=$ac_ct_STRIP 3153 fi 3154 else 3155 STRIP="$ac_cv_prog_STRIP" 3156 fi 3157 3158 fi 3159 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3160 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3162 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3163 if test -z "$MKDIR_P"; then 3164 if ${ac_cv_path_mkdir+:} false; then : 3165 $as_echo_n "(cached) " >&6 3166 else 3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3168 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3169 do 3170 IFS=$as_save_IFS 3171 test -z "$as_dir" && as_dir=. 3172 for ac_prog in mkdir gmkdir; do 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3175 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3176 'mkdir (GNU coreutils) '* | \ 3177 'mkdir (coreutils) '* | \ 3178 'mkdir (fileutils) '4.1*) 3179 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3180 break 3;; 3181 esac 3182 done 3183 done 3184 done 3185 IFS=$as_save_IFS 3186 3187 fi 3188 3189 test -d ./--version && rmdir ./--version 3190 if test "${ac_cv_path_mkdir+set}" = set; then 3191 MKDIR_P="$ac_cv_path_mkdir -p" 3192 else 3193 # As a last resort, use the slow shell script. Don't cache a 3194 # value for MKDIR_P within a source directory, because that will 3195 # break other packages using the cache if that directory is 3196 # removed, or if the value is a relative name. 3197 MKDIR_P="$ac_install_sh -d" 3198 fi 3199 fi 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3201 $as_echo "$MKDIR_P" >&6; } 3202 3203 for ac_prog in gawk mawk nawk awk 3204 do 3205 # Extract the first word of "$ac_prog", so it can be a program name with args. 3206 set dummy $ac_prog; ac_word=$2 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3208 $as_echo_n "checking for $ac_word... " >&6; } 3209 if ${ac_cv_prog_AWK+:} false; then : 3210 $as_echo_n "(cached) " >&6 3211 else 3212 if test -n "$AWK"; then 3213 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3214 else 3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216 for as_dir in $PATH 3217 do 3218 IFS=$as_save_IFS 3219 test -z "$as_dir" && as_dir=. 3220 for ac_exec_ext in '' $ac_executable_extensions; do 3221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3222 ac_cv_prog_AWK="$ac_prog" 3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3224 break 2 3225 fi 3226 done 3227 done 3228 IFS=$as_save_IFS 3229 3230 fi 3231 fi 3232 AWK=$ac_cv_prog_AWK 3233 if test -n "$AWK"; then 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3235 $as_echo "$AWK" >&6; } 3236 else 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3238 $as_echo "no" >&6; } 3239 fi 3240 3241 3242 test -n "$AWK" && break 3243 done 3244 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3247 set x ${MAKE-make} 3248 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3249 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3250 $as_echo_n "(cached) " >&6 3251 else 3252 cat >conftest.make <<\_ACEOF 3253 SHELL = /bin/sh 3254 all: 3255 @echo '@@@%%%=$(MAKE)=@@@%%%' 3256 _ACEOF 3257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3258 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3259 *@@@%%%=?*=@@@%%%*) 3260 eval ac_cv_prog_make_${ac_make}_set=yes;; 3261 *) 3262 eval ac_cv_prog_make_${ac_make}_set=no;; 3263 esac 3264 rm -f conftest.make 3265 fi 3266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3268 $as_echo "yes" >&6; } 3269 SET_MAKE= 3270 else 3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3272 $as_echo "no" >&6; } 3273 SET_MAKE="MAKE=${MAKE-make}" 3274 fi 3275 3276 rm -rf .tst 2>/dev/null 3277 mkdir .tst 2>/dev/null 3278 if test -d .tst; then 3279 am__leading_dot=. 3280 else 3281 am__leading_dot=_ 3282 fi 3283 rmdir .tst 2>/dev/null 3284 3285 # Check whether --enable-silent-rules was given. 3286 if test "${enable_silent_rules+set}" = set; then : 3287 enableval=$enable_silent_rules; 3288 fi 3289 3290 case $enable_silent_rules in # ((( 3291 yes) AM_DEFAULT_VERBOSITY=0;; 3292 no) AM_DEFAULT_VERBOSITY=1;; 3293 *) AM_DEFAULT_VERBOSITY=1;; 3294 esac 3295 am_make=${MAKE-make} 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3297 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3298 if ${am_cv_make_support_nested_variables+:} false; then : 3299 $as_echo_n "(cached) " >&6 3300 else 3301 if $as_echo 'TRUE=$(BAR$(V)) 3302 BAR0=false 3303 BAR1=true 3304 V=1 3305 am__doit: 3306 @$(TRUE) 3307 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3308 am_cv_make_support_nested_variables=yes 3309 else 3310 am_cv_make_support_nested_variables=no 3311 fi 3312 fi 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3314 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3315 if test $am_cv_make_support_nested_variables = yes; then 3316 AM_V='$(V)' 3317 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3318 else 3319 AM_V=$AM_DEFAULT_VERBOSITY 3320 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3321 fi 3322 AM_BACKSLASH='\' 3323 3324 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3325 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3326 # is not polluted with repeated "-I." 3327 am__isrc=' -I$(srcdir)' 3328 # test to see if srcdir already configured 3329 if test -f $srcdir/config.status; then 3330 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3331 fi 3332 fi 3333 3334 # test whether we have cygpath 3335 if test -z "$CYGPATH_W"; then 3336 if (cygpath --version) >/dev/null 2>/dev/null; then 3337 CYGPATH_W='cygpath -w' 3338 else 3339 CYGPATH_W=echo 3340 fi 3341 fi 3342 3343 3344 # Define the identity of the package. 3345 PACKAGE='libgomp' 3346 VERSION='1.0' 3347 3348 3349 cat >>confdefs.h <<_ACEOF 3350 #define PACKAGE "$PACKAGE" 3351 _ACEOF 3352 3353 3354 cat >>confdefs.h <<_ACEOF 3355 #define VERSION "$VERSION" 3356 _ACEOF 3357 3358 # Some tools Automake needs. 3359 3360 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3361 3362 3363 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3364 3365 3366 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3367 3368 3369 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3370 3371 3372 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3373 3374 # For better backward compatibility. To be removed once Automake 1.9.x 3375 # dies out for good. For more background, see: 3376 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3377 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3378 mkdir_p='$(MKDIR_P)' 3379 3380 # We need awk for the "check" target (and possibly the TAP driver). The 3381 # system "awk" is bad on some platforms. 3382 # Always define AMTAR for backward compatibility. Yes, it's still used 3383 # in the wild :-( We should find a proper way to deprecate it ... 3384 AMTAR='$${TAR-tar}' 3385 3386 3387 # We'll loop over all known methods to create a tar archive until one works. 3388 _am_tools='gnutar pax cpio none' 3389 3390 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3391 3392 3393 3394 3395 3396 3397 # POSIX will say in a future version that running "rm -f" with no argument 3398 # is OK; and we want to be able to make that assumption in our Makefile 3399 # recipes. So use an aggressive probe to check that the usage we want is 3400 # actually supported "in the wild" to an acceptable degree. 3401 # See automake bug#10828. 3402 # To make any issue more visible, cause the running configure to be aborted 3403 # by default if the 'rm' program in use doesn't match our expectations; the 3404 # user can still override this though. 3405 if rm -f && rm -fr && rm -rf; then : OK; else 3406 cat >&2 <<'END' 3407 Oops! 3408 3409 Your 'rm' program seems unable to run without file operands specified 3410 on the command line, even when the '-f' option is present. This is contrary 3411 to the behaviour of most rm programs out there, and not conforming with 3412 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3413 3414 Please tell bug-automake@gnu.org about your system, including the value 3415 of your $PATH and any error possibly output before this message. This 3416 can help us improve future automake versions. 3417 3418 END 3419 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3420 echo 'Configuration will proceed anyway, since you have set the' >&2 3421 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3422 echo >&2 3423 else 3424 cat >&2 <<'END' 3425 Aborting the configuration process, to ensure you take notice of the issue. 3426 3427 You can download and install GNU coreutils to get an 'rm' implementation 3428 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3429 3430 If you want to complete the configuration process using your problematic 3431 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3432 to "yes", and re-run configure. 3433 3434 END 3435 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3436 fi 3437 fi 3438 3439 # Default to --enable-multilib 3440 # Check whether --enable-multilib was given. 3441 if test "${enable_multilib+set}" = set; then : 3442 enableval=$enable_multilib; case "$enableval" in 3443 yes) multilib=yes ;; 3444 no) multilib=no ;; 3445 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 3446 esac 3447 else 3448 multilib=yes 3449 fi 3450 3451 3452 # We may get other options which we leave undocumented: 3453 # --with-target-subdir, --with-multisrctop, --with-multisubdir 3454 # See config-ml.in if you want the gory details. 3455 3456 if test "$srcdir" = "."; then 3457 if test "$with_target_subdir" != "."; then 3458 multi_basedir="$srcdir/$with_multisrctop../.." 3459 else 3460 multi_basedir="$srcdir/$with_multisrctop.." 3461 fi 3462 else 3463 multi_basedir="$srcdir/.." 3464 fi 3465 3466 3467 # Even if the default multilib is not a cross compilation, 3468 # it may be that some of the other multilibs are. 3469 if test $cross_compiling = no && test $multilib = yes \ 3470 && test "x${with_multisubdir}" != x ; then 3471 cross_compiling=maybe 3472 fi 3473 3474 ac_config_commands="$ac_config_commands default-1" 3475 3476 3477 3478 # Check whether --with-toolexeclibdir was given. 3479 if test "${with_toolexeclibdir+set}" = set; then : 3480 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in 3481 /) 3482 ;; 3483 */) 3484 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` 3485 ;; 3486 esac 3487 else 3488 with_toolexeclibdir=no 3489 fi 3490 3491 3492 3493 # Calculate toolexeclibdir 3494 # Also toolexecdir, though it's only used in toolexeclibdir 3495 case ${enable_version_specific_runtime_libs} in 3496 yes) 3497 # Need the gcc compiler version to know where to install libraries 3498 # and header files if --enable-version-specific-runtime-libs option 3499 # is selected. 3500 toolexecdir='$(libdir)/gcc/$(target_alias)' 3501 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 3502 ;; 3503 no) 3504 if test -n "$with_cross_host" && 3505 test x"$with_cross_host" != x"no"; then 3506 # Install a library built with a cross compiler in tooldir, not libdir. 3507 toolexecdir='$(exec_prefix)/$(target_alias)' 3508 case ${with_toolexeclibdir} in 3509 no) 3510 toolexeclibdir='$(toolexecdir)/lib' 3511 ;; 3512 *) 3513 toolexeclibdir=${with_toolexeclibdir} 3514 ;; 3515 esac 3516 else 3517 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 3518 toolexeclibdir='$(libdir)' 3519 fi 3520 multi_os_directory=`$CC -print-multi-os-directory` 3521 case $multi_os_directory in 3522 .) ;; # Avoid trailing /. 3523 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 3524 esac 3525 ;; 3526 esac 3527 3528 3529 3530 # Check the compiler. 3531 # The same as in boehm-gc and libstdc++. Have to borrow it from there. 3532 # We must force CC to /not/ be precious variables; otherwise 3533 # the wrong, non-multilib-adjusted value will be used in multilibs. 3534 # As a side effect, we have to subst CFLAGS ourselves. 3535 3536 3537 3538 ac_ext=c 3539 ac_cpp='$CPP $CPPFLAGS' 3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3543 if test -n "$ac_tool_prefix"; then 3544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3545 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3547 $as_echo_n "checking for $ac_word... " >&6; } 3548 if ${ac_cv_prog_CC+:} false; then : 3549 $as_echo_n "(cached) " >&6 3550 else 3551 if test -n "$CC"; then 3552 ac_cv_prog_CC="$CC" # Let the user override the test. 3553 else 3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555 for as_dir in $PATH 3556 do 3557 IFS=$as_save_IFS 3558 test -z "$as_dir" && as_dir=. 3559 for ac_exec_ext in '' $ac_executable_extensions; do 3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3561 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3563 break 2 3564 fi 3565 done 3566 done 3567 IFS=$as_save_IFS 3568 3569 fi 3570 fi 3571 CC=$ac_cv_prog_CC 3572 if test -n "$CC"; then 3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3574 $as_echo "$CC" >&6; } 3575 else 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3577 $as_echo "no" >&6; } 3578 fi 3579 3580 3581 fi 3582 if test -z "$ac_cv_prog_CC"; then 3583 ac_ct_CC=$CC 3584 # Extract the first word of "gcc", so it can be a program name with args. 3585 set dummy gcc; ac_word=$2 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3587 $as_echo_n "checking for $ac_word... " >&6; } 3588 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3589 $as_echo_n "(cached) " >&6 3590 else 3591 if test -n "$ac_ct_CC"; then 3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3593 else 3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3595 for as_dir in $PATH 3596 do 3597 IFS=$as_save_IFS 3598 test -z "$as_dir" && as_dir=. 3599 for ac_exec_ext in '' $ac_executable_extensions; do 3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3601 ac_cv_prog_ac_ct_CC="gcc" 3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3603 break 2 3604 fi 3605 done 3606 done 3607 IFS=$as_save_IFS 3608 3609 fi 3610 fi 3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3612 if test -n "$ac_ct_CC"; then 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3614 $as_echo "$ac_ct_CC" >&6; } 3615 else 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3617 $as_echo "no" >&6; } 3618 fi 3619 3620 if test "x$ac_ct_CC" = x; then 3621 CC="" 3622 else 3623 case $cross_compiling:$ac_tool_warned in 3624 yes:) 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3627 ac_tool_warned=yes ;; 3628 esac 3629 CC=$ac_ct_CC 3630 fi 3631 else 3632 CC="$ac_cv_prog_CC" 3633 fi 3634 3635 if test -z "$CC"; then 3636 if test -n "$ac_tool_prefix"; then 3637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3638 set dummy ${ac_tool_prefix}cc; ac_word=$2 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3640 $as_echo_n "checking for $ac_word... " >&6; } 3641 if ${ac_cv_prog_CC+:} false; then : 3642 $as_echo_n "(cached) " >&6 3643 else 3644 if test -n "$CC"; then 3645 ac_cv_prog_CC="$CC" # Let the user override the test. 3646 else 3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3648 for as_dir in $PATH 3649 do 3650 IFS=$as_save_IFS 3651 test -z "$as_dir" && as_dir=. 3652 for ac_exec_ext in '' $ac_executable_extensions; do 3653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3654 ac_cv_prog_CC="${ac_tool_prefix}cc" 3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3656 break 2 3657 fi 3658 done 3659 done 3660 IFS=$as_save_IFS 3661 3662 fi 3663 fi 3664 CC=$ac_cv_prog_CC 3665 if test -n "$CC"; then 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3667 $as_echo "$CC" >&6; } 3668 else 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3670 $as_echo "no" >&6; } 3671 fi 3672 3673 3674 fi 3675 fi 3676 if test -z "$CC"; then 3677 # Extract the first word of "cc", so it can be a program name with args. 3678 set dummy cc; ac_word=$2 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3680 $as_echo_n "checking for $ac_word... " >&6; } 3681 if ${ac_cv_prog_CC+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683 else 3684 if test -n "$CC"; then 3685 ac_cv_prog_CC="$CC" # Let the user override the test. 3686 else 3687 ac_prog_rejected=no 3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3689 for as_dir in $PATH 3690 do 3691 IFS=$as_save_IFS 3692 test -z "$as_dir" && as_dir=. 3693 for ac_exec_ext in '' $ac_executable_extensions; do 3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3696 ac_prog_rejected=yes 3697 continue 3698 fi 3699 ac_cv_prog_CC="cc" 3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3701 break 2 3702 fi 3703 done 3704 done 3705 IFS=$as_save_IFS 3706 3707 if test $ac_prog_rejected = yes; then 3708 # We found a bogon in the path, so make sure we never use it. 3709 set dummy $ac_cv_prog_CC 3710 shift 3711 if test $# != 0; then 3712 # We chose a different compiler from the bogus one. 3713 # However, it has the same basename, so the bogon will be chosen 3714 # first if we set CC to just the basename; use the full file name. 3715 shift 3716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3717 fi 3718 fi 3719 fi 3720 fi 3721 CC=$ac_cv_prog_CC 3722 if test -n "$CC"; then 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3724 $as_echo "$CC" >&6; } 3725 else 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3727 $as_echo "no" >&6; } 3728 fi 3729 3730 3731 fi 3732 if test -z "$CC"; then 3733 if test -n "$ac_tool_prefix"; then 3734 for ac_prog in cl.exe 3735 do 3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3739 $as_echo_n "checking for $ac_word... " >&6; } 3740 if ${ac_cv_prog_CC+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742 else 3743 if test -n "$CC"; then 3744 ac_cv_prog_CC="$CC" # Let the user override the test. 3745 else 3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3747 for as_dir in $PATH 3748 do 3749 IFS=$as_save_IFS 3750 test -z "$as_dir" && as_dir=. 3751 for ac_exec_ext in '' $ac_executable_extensions; do 3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3755 break 2 3756 fi 3757 done 3758 done 3759 IFS=$as_save_IFS 3760 3761 fi 3762 fi 3763 CC=$ac_cv_prog_CC 3764 if test -n "$CC"; then 3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3766 $as_echo "$CC" >&6; } 3767 else 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3769 $as_echo "no" >&6; } 3770 fi 3771 3772 3773 test -n "$CC" && break 3774 done 3775 fi 3776 if test -z "$CC"; then 3777 ac_ct_CC=$CC 3778 for ac_prog in cl.exe 3779 do 3780 # Extract the first word of "$ac_prog", so it can be a program name with args. 3781 set dummy $ac_prog; ac_word=$2 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3783 $as_echo_n "checking for $ac_word... " >&6; } 3784 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3785 $as_echo_n "(cached) " >&6 3786 else 3787 if test -n "$ac_ct_CC"; then 3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3789 else 3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3791 for as_dir in $PATH 3792 do 3793 IFS=$as_save_IFS 3794 test -z "$as_dir" && as_dir=. 3795 for ac_exec_ext in '' $ac_executable_extensions; do 3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3797 ac_cv_prog_ac_ct_CC="$ac_prog" 3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3799 break 2 3800 fi 3801 done 3802 done 3803 IFS=$as_save_IFS 3804 3805 fi 3806 fi 3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3808 if test -n "$ac_ct_CC"; then 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3810 $as_echo "$ac_ct_CC" >&6; } 3811 else 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3813 $as_echo "no" >&6; } 3814 fi 3815 3816 3817 test -n "$ac_ct_CC" && break 3818 done 3819 3820 if test "x$ac_ct_CC" = x; then 3821 CC="" 3822 else 3823 case $cross_compiling:$ac_tool_warned in 3824 yes:) 3825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3827 ac_tool_warned=yes ;; 3828 esac 3829 CC=$ac_ct_CC 3830 fi 3831 fi 3832 3833 fi 3834 3835 3836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3838 as_fn_error $? "no acceptable C compiler found in \$PATH 3839 See \`config.log' for more details" "$LINENO" 5; } 3840 3841 # Provide some information about the compiler. 3842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3843 set X $ac_compile 3844 ac_compiler=$2 3845 for ac_option in --version -v -V -qversion; do 3846 { { ac_try="$ac_compiler $ac_option >&5" 3847 case "(($ac_try" in 3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3849 *) ac_try_echo=$ac_try;; 3850 esac 3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3852 $as_echo "$ac_try_echo"; } >&5 3853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3854 ac_status=$? 3855 if test -s conftest.err; then 3856 sed '10a\ 3857 ... rest of stderr output deleted ... 3858 10q' conftest.err >conftest.er1 3859 cat conftest.er1 >&5 3860 fi 3861 rm -f conftest.er1 conftest.err 3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3863 test $ac_status = 0; } 3864 done 3865 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867 /* end confdefs.h. */ 3868 3869 int 3870 main () 3871 { 3872 3873 ; 3874 return 0; 3875 } 3876 _ACEOF 3877 ac_clean_files_save=$ac_clean_files 3878 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3879 # Try to create an executable without -o first, disregard a.out. 3880 # It will help us diagnose broken compilers, and finding out an intuition 3881 # of exeext. 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3883 $as_echo_n "checking whether the C compiler works... " >&6; } 3884 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3885 3886 # The possible output files: 3887 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3888 3889 ac_rmfiles= 3890 for ac_file in $ac_files 3891 do 3892 case $ac_file in 3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3894 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3895 esac 3896 done 3897 rm -f $ac_rmfiles 3898 3899 if { { ac_try="$ac_link_default" 3900 case "(($ac_try" in 3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3902 *) ac_try_echo=$ac_try;; 3903 esac 3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3905 $as_echo "$ac_try_echo"; } >&5 3906 (eval "$ac_link_default") 2>&5 3907 ac_status=$? 3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3909 test $ac_status = 0; }; then : 3910 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3911 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3912 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3913 # so that the user can short-circuit this test for compilers unknown to 3914 # Autoconf. 3915 for ac_file in $ac_files '' 3916 do 3917 test -f "$ac_file" || continue 3918 case $ac_file in 3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3920 ;; 3921 [ab].out ) 3922 # We found the default executable, but exeext='' is most 3923 # certainly right. 3924 break;; 3925 *.* ) 3926 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3927 then :; else 3928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3929 fi 3930 # We set ac_cv_exeext here because the later test for it is not 3931 # safe: cross compilers may not add the suffix if given an `-o' 3932 # argument, so we may need to know it at that point already. 3933 # Even if this section looks crufty: it has the advantage of 3934 # actually working. 3935 break;; 3936 * ) 3937 break;; 3938 esac 3939 done 3940 test "$ac_cv_exeext" = no && ac_cv_exeext= 3941 3942 else 3943 ac_file='' 3944 fi 3945 if test -z "$ac_file"; then : 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3947 $as_echo "no" >&6; } 3948 $as_echo "$as_me: failed program was:" >&5 3949 sed 's/^/| /' conftest.$ac_ext >&5 3950 3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3953 as_fn_error 77 "C compiler cannot create executables 3954 See \`config.log' for more details" "$LINENO" 5; } 3955 else 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3957 $as_echo "yes" >&6; } 3958 fi 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3960 $as_echo_n "checking for C compiler default output file name... " >&6; } 3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3962 $as_echo "$ac_file" >&6; } 3963 ac_exeext=$ac_cv_exeext 3964 3965 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3966 ac_clean_files=$ac_clean_files_save 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3968 $as_echo_n "checking for suffix of executables... " >&6; } 3969 if { { ac_try="$ac_link" 3970 case "(($ac_try" in 3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3972 *) ac_try_echo=$ac_try;; 3973 esac 3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3975 $as_echo "$ac_try_echo"; } >&5 3976 (eval "$ac_link") 2>&5 3977 ac_status=$? 3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3979 test $ac_status = 0; }; then : 3980 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3982 # work properly (i.e., refer to `conftest.exe'), while it won't with 3983 # `rm'. 3984 for ac_file in conftest.exe conftest conftest.*; do 3985 test -f "$ac_file" || continue 3986 case $ac_file in 3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3989 break;; 3990 * ) break;; 3991 esac 3992 done 3993 else 3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3996 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3997 See \`config.log' for more details" "$LINENO" 5; } 3998 fi 3999 rm -f conftest conftest$ac_cv_exeext 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4001 $as_echo "$ac_cv_exeext" >&6; } 4002 4003 rm -f conftest.$ac_ext 4004 EXEEXT=$ac_cv_exeext 4005 ac_exeext=$EXEEXT 4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4007 /* end confdefs.h. */ 4008 #include <stdio.h> 4009 int 4010 main () 4011 { 4012 FILE *f = fopen ("conftest.out", "w"); 4013 return ferror (f) || fclose (f) != 0; 4014 4015 ; 4016 return 0; 4017 } 4018 _ACEOF 4019 ac_clean_files="$ac_clean_files conftest.out" 4020 # Check that the compiler produces executables we can run. If not, either 4021 # the compiler is broken, or we cross compile. 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4023 $as_echo_n "checking whether we are cross compiling... " >&6; } 4024 if test "$cross_compiling" != yes; then 4025 { { ac_try="$ac_link" 4026 case "(($ac_try" in 4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4028 *) ac_try_echo=$ac_try;; 4029 esac 4030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4031 $as_echo "$ac_try_echo"; } >&5 4032 (eval "$ac_link") 2>&5 4033 ac_status=$? 4034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4035 test $ac_status = 0; } 4036 if { ac_try='./conftest$ac_cv_exeext' 4037 { { case "(($ac_try" in 4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4039 *) ac_try_echo=$ac_try;; 4040 esac 4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4042 $as_echo "$ac_try_echo"; } >&5 4043 (eval "$ac_try") 2>&5 4044 ac_status=$? 4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4046 test $ac_status = 0; }; }; then 4047 cross_compiling=no 4048 else 4049 if test "$cross_compiling" = maybe; then 4050 cross_compiling=yes 4051 else 4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4054 as_fn_error $? "cannot run C compiled programs. 4055 If you meant to cross compile, use \`--host'. 4056 See \`config.log' for more details" "$LINENO" 5; } 4057 fi 4058 fi 4059 fi 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4061 $as_echo "$cross_compiling" >&6; } 4062 4063 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4064 ac_clean_files=$ac_clean_files_save 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4066 $as_echo_n "checking for suffix of object files... " >&6; } 4067 if ${ac_cv_objext+:} false; then : 4068 $as_echo_n "(cached) " >&6 4069 else 4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4071 /* end confdefs.h. */ 4072 4073 int 4074 main () 4075 { 4076 4077 ; 4078 return 0; 4079 } 4080 _ACEOF 4081 rm -f conftest.o conftest.obj 4082 if { { ac_try="$ac_compile" 4083 case "(($ac_try" in 4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4085 *) ac_try_echo=$ac_try;; 4086 esac 4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4088 $as_echo "$ac_try_echo"; } >&5 4089 (eval "$ac_compile") 2>&5 4090 ac_status=$? 4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4092 test $ac_status = 0; }; then : 4093 for ac_file in conftest.o conftest.obj conftest.*; do 4094 test -f "$ac_file" || continue; 4095 case $ac_file in 4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4098 break;; 4099 esac 4100 done 4101 else 4102 $as_echo "$as_me: failed program was:" >&5 4103 sed 's/^/| /' conftest.$ac_ext >&5 4104 4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4107 as_fn_error $? "cannot compute suffix of object files: cannot compile 4108 See \`config.log' for more details" "$LINENO" 5; } 4109 fi 4110 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4111 fi 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4113 $as_echo "$ac_cv_objext" >&6; } 4114 OBJEXT=$ac_cv_objext 4115 ac_objext=$OBJEXT 4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4117 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4118 if ${ac_cv_c_compiler_gnu+:} false; then : 4119 $as_echo_n "(cached) " >&6 4120 else 4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122 /* end confdefs.h. */ 4123 4124 int 4125 main () 4126 { 4127 #ifndef __GNUC__ 4128 choke me 4129 #endif 4130 4131 ; 4132 return 0; 4133 } 4134 _ACEOF 4135 if ac_fn_c_try_compile "$LINENO"; then : 4136 ac_compiler_gnu=yes 4137 else 4138 ac_compiler_gnu=no 4139 fi 4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4141 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4142 4143 fi 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4145 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4146 if test $ac_compiler_gnu = yes; then 4147 GCC=yes 4148 else 4149 GCC= 4150 fi 4151 ac_test_CFLAGS=${CFLAGS+set} 4152 ac_save_CFLAGS=$CFLAGS 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4154 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4155 if ${ac_cv_prog_cc_g+:} false; then : 4156 $as_echo_n "(cached) " >&6 4157 else 4158 ac_save_c_werror_flag=$ac_c_werror_flag 4159 ac_c_werror_flag=yes 4160 ac_cv_prog_cc_g=no 4161 CFLAGS="-g" 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163 /* end confdefs.h. */ 4164 4165 int 4166 main () 4167 { 4168 4169 ; 4170 return 0; 4171 } 4172 _ACEOF 4173 if ac_fn_c_try_compile "$LINENO"; then : 4174 ac_cv_prog_cc_g=yes 4175 else 4176 CFLAGS="" 4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178 /* end confdefs.h. */ 4179 4180 int 4181 main () 4182 { 4183 4184 ; 4185 return 0; 4186 } 4187 _ACEOF 4188 if ac_fn_c_try_compile "$LINENO"; then : 4189 4190 else 4191 ac_c_werror_flag=$ac_save_c_werror_flag 4192 CFLAGS="-g" 4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4194 /* end confdefs.h. */ 4195 4196 int 4197 main () 4198 { 4199 4200 ; 4201 return 0; 4202 } 4203 _ACEOF 4204 if ac_fn_c_try_compile "$LINENO"; then : 4205 ac_cv_prog_cc_g=yes 4206 fi 4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4208 fi 4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4210 fi 4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4212 ac_c_werror_flag=$ac_save_c_werror_flag 4213 fi 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4215 $as_echo "$ac_cv_prog_cc_g" >&6; } 4216 if test "$ac_test_CFLAGS" = set; then 4217 CFLAGS=$ac_save_CFLAGS 4218 elif test $ac_cv_prog_cc_g = yes; then 4219 if test "$GCC" = yes; then 4220 CFLAGS="-g -O2" 4221 else 4222 CFLAGS="-g" 4223 fi 4224 else 4225 if test "$GCC" = yes; then 4226 CFLAGS="-O2" 4227 else 4228 CFLAGS= 4229 fi 4230 fi 4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4232 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4233 if ${ac_cv_prog_cc_c89+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235 else 4236 ac_cv_prog_cc_c89=no 4237 ac_save_CC=$CC 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239 /* end confdefs.h. */ 4240 #include <stdarg.h> 4241 #include <stdio.h> 4242 struct stat; 4243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4244 struct buf { int x; }; 4245 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4246 static char *e (p, i) 4247 char **p; 4248 int i; 4249 { 4250 return p[i]; 4251 } 4252 static char *f (char * (*g) (char **, int), char **p, ...) 4253 { 4254 char *s; 4255 va_list v; 4256 va_start (v,p); 4257 s = g (p, va_arg (v,int)); 4258 va_end (v); 4259 return s; 4260 } 4261 4262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4263 function prototypes and stuff, but not '\xHH' hex character constants. 4264 These don't provoke an error unfortunately, instead are silently treated 4265 as 'x'. The following induces an error, until -std is added to get 4266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4267 array size at least. It's necessary to write '\x00'==0 to get something 4268 that's true only with -std. */ 4269 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4270 4271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4272 inside strings and character constants. */ 4273 #define FOO(x) 'x' 4274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4275 4276 int test (int i, double x); 4277 struct s1 {int (*f) (int a);}; 4278 struct s2 {int (*f) (double a);}; 4279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4280 int argc; 4281 char **argv; 4282 int 4283 main () 4284 { 4285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4286 ; 4287 return 0; 4288 } 4289 _ACEOF 4290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4292 do 4293 CC="$ac_save_CC $ac_arg" 4294 if ac_fn_c_try_compile "$LINENO"; then : 4295 ac_cv_prog_cc_c89=$ac_arg 4296 fi 4297 rm -f core conftest.err conftest.$ac_objext 4298 test "x$ac_cv_prog_cc_c89" != "xno" && break 4299 done 4300 rm -f conftest.$ac_ext 4301 CC=$ac_save_CC 4302 4303 fi 4304 # AC_CACHE_VAL 4305 case "x$ac_cv_prog_cc_c89" in 4306 x) 4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4308 $as_echo "none needed" >&6; } ;; 4309 xno) 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4311 $as_echo "unsupported" >&6; } ;; 4312 *) 4313 CC="$CC $ac_cv_prog_cc_c89" 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4315 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4316 esac 4317 if test "x$ac_cv_prog_cc_c89" != xno; then : 4318 4319 fi 4320 4321 ac_ext=c 4322 ac_cpp='$CPP $CPPFLAGS' 4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4326 4327 ac_ext=c 4328 ac_cpp='$CPP $CPPFLAGS' 4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4333 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4334 if ${am_cv_prog_cc_c_o+:} false; then : 4335 $as_echo_n "(cached) " >&6 4336 else 4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4338 /* end confdefs.h. */ 4339 4340 int 4341 main () 4342 { 4343 4344 ; 4345 return 0; 4346 } 4347 _ACEOF 4348 # Make sure it works both with $CC and with simple cc. 4349 # Following AC_PROG_CC_C_O, we do the test twice because some 4350 # compilers refuse to overwrite an existing .o file with -o, 4351 # though they will create one. 4352 am_cv_prog_cc_c_o=yes 4353 for am_i in 1 2; do 4354 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4355 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4356 ac_status=$? 4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4358 (exit $ac_status); } \ 4359 && test -f conftest2.$ac_objext; then 4360 : OK 4361 else 4362 am_cv_prog_cc_c_o=no 4363 break 4364 fi 4365 done 4366 rm -f core conftest* 4367 unset am_i 4368 fi 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4370 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4371 if test "$am_cv_prog_cc_c_o" != yes; then 4372 # Losing compiler, so override with the script. 4373 # FIXME: It is wrong to rewrite CC. 4374 # But if we don't then we get into trouble of one sort or another. 4375 # A longer-term fix would be to have automake use am__CC in this case, 4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4377 CC="$am_aux_dir/compile $CC" 4378 fi 4379 ac_ext=c 4380 ac_cpp='$CPP $CPPFLAGS' 4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4384 4385 DEPDIR="${am__leading_dot}deps" 4386 4387 ac_config_commands="$ac_config_commands depfiles" 4388 4389 4390 am_make=${MAKE-make} 4391 cat > confinc << 'END' 4392 am__doit: 4393 @echo this is the am__doit target 4394 .PHONY: am__doit 4395 END 4396 # If we don't find an include directive, just comment out the code. 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4398 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4399 am__include="#" 4400 am__quote= 4401 _am_result=none 4402 # First try GNU make style include. 4403 echo "include confinc" > confmf 4404 # Ignore all kinds of additional output from 'make'. 4405 case `$am_make -s -f confmf 2> /dev/null` in #( 4406 *the\ am__doit\ target*) 4407 am__include=include 4408 am__quote= 4409 _am_result=GNU 4410 ;; 4411 esac 4412 # Now try BSD make style include. 4413 if test "$am__include" = "#"; then 4414 echo '.include "confinc"' > confmf 4415 case `$am_make -s -f confmf 2> /dev/null` in #( 4416 *the\ am__doit\ target*) 4417 am__include=.include 4418 am__quote="\"" 4419 _am_result=BSD 4420 ;; 4421 esac 4422 fi 4423 4424 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4426 $as_echo "$_am_result" >&6; } 4427 rm -f confinc confmf 4428 4429 # Check whether --enable-dependency-tracking was given. 4430 if test "${enable_dependency_tracking+set}" = set; then : 4431 enableval=$enable_dependency_tracking; 4432 fi 4433 4434 if test "x$enable_dependency_tracking" != xno; then 4435 am_depcomp="$ac_aux_dir/depcomp" 4436 AMDEPBACKSLASH='\' 4437 am__nodep='_no' 4438 fi 4439 if test "x$enable_dependency_tracking" != xno; then 4440 AMDEP_TRUE= 4441 AMDEP_FALSE='#' 4442 else 4443 AMDEP_TRUE='#' 4444 AMDEP_FALSE= 4445 fi 4446 4447 4448 4449 depcc="$CC" am_compiler_list= 4450 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4452 $as_echo_n "checking dependency style of $depcc... " >&6; } 4453 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4454 $as_echo_n "(cached) " >&6 4455 else 4456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4457 # We make a subdir and do the tests there. Otherwise we can end up 4458 # making bogus files that we don't know about and never remove. For 4459 # instance it was reported that on HP-UX the gcc test will end up 4460 # making a dummy file named 'D' -- because '-MD' means "put the output 4461 # in D". 4462 rm -rf conftest.dir 4463 mkdir conftest.dir 4464 # Copy depcomp to subdir because otherwise we won't find it if we're 4465 # using a relative directory. 4466 cp "$am_depcomp" conftest.dir 4467 cd conftest.dir 4468 # We will build objects and dependencies in a subdirectory because 4469 # it helps to detect inapplicable dependency modes. For instance 4470 # both Tru64's cc and ICC support -MD to output dependencies as a 4471 # side effect of compilation, but ICC will put the dependencies in 4472 # the current directory while Tru64 will put them in the object 4473 # directory. 4474 mkdir sub 4475 4476 am_cv_CC_dependencies_compiler_type=none 4477 if test "$am_compiler_list" = ""; then 4478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4479 fi 4480 am__universal=false 4481 case " $depcc " in #( 4482 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4483 esac 4484 4485 for depmode in $am_compiler_list; do 4486 # Setup a source with many dependencies, because some compilers 4487 # like to wrap large dependency lists on column 80 (with \), and 4488 # we should not choose a depcomp mode which is confused by this. 4489 # 4490 # We need to recreate these files for each test, as the compiler may 4491 # overwrite some of them when testing with obscure command lines. 4492 # This happens at least with the AIX C compiler. 4493 : > sub/conftest.c 4494 for i in 1 2 3 4 5 6; do 4495 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4496 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4497 # Solaris 10 /bin/sh. 4498 echo '/* dummy */' > sub/conftst$i.h 4499 done 4500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4501 4502 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4503 # mode. It turns out that the SunPro C++ compiler does not properly 4504 # handle '-M -o', and we need to detect this. Also, some Intel 4505 # versions had trouble with output in subdirs. 4506 am__obj=sub/conftest.${OBJEXT-o} 4507 am__minus_obj="-o $am__obj" 4508 case $depmode in 4509 gcc) 4510 # This depmode causes a compiler race in universal mode. 4511 test "$am__universal" = false || continue 4512 ;; 4513 nosideeffect) 4514 # After this tag, mechanisms are not by side-effect, so they'll 4515 # only be used when explicitly requested. 4516 if test "x$enable_dependency_tracking" = xyes; then 4517 continue 4518 else 4519 break 4520 fi 4521 ;; 4522 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4523 # This compiler won't grok '-c -o', but also, the minuso test has 4524 # not run yet. These depmodes are late enough in the game, and 4525 # so weak that their functioning should not be impacted. 4526 am__obj=conftest.${OBJEXT-o} 4527 am__minus_obj= 4528 ;; 4529 none) break ;; 4530 esac 4531 if depmode=$depmode \ 4532 source=sub/conftest.c object=$am__obj \ 4533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4534 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4535 >/dev/null 2>conftest.err && 4536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4538 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4540 # icc doesn't choke on unknown options, it will just issue warnings 4541 # or remarks (even with -Werror). So we grep stderr for any message 4542 # that says an option was ignored or not supported. 4543 # When given -MP, icc 7.0 and 7.1 complain thusly: 4544 # icc: Command line warning: ignoring option '-M'; no argument required 4545 # The diagnosis changed in icc 8.0: 4546 # icc: Command line remark: option '-MP' not supported 4547 if (grep 'ignoring option' conftest.err || 4548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4549 am_cv_CC_dependencies_compiler_type=$depmode 4550 break 4551 fi 4552 fi 4553 done 4554 4555 cd .. 4556 rm -rf conftest.dir 4557 else 4558 am_cv_CC_dependencies_compiler_type=none 4559 fi 4560 4561 fi 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4563 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4564 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4565 4566 if 4567 test "x$enable_dependency_tracking" != xno \ 4568 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4569 am__fastdepCC_TRUE= 4570 am__fastdepCC_FALSE='#' 4571 else 4572 am__fastdepCC_TRUE='#' 4573 am__fastdepCC_FALSE= 4574 fi 4575 4576 4577 4578 4579 4580 4581 # In order to override CFLAGS_FOR_TARGET, all of our special flags go 4582 # in XCFLAGS. But we need them in CFLAGS during configury. So put them 4583 # in both places for now and restore CFLAGS at the end of config. 4584 save_CFLAGS="$CFLAGS" 4585 4586 # Check whether --enable-werror was given. 4587 if test "${enable_werror+set}" = set; then : 4588 enableval=$enable_werror; 4589 fi 4590 4591 # Add -Wall -Werror if we are using GCC. 4592 if test "x$GCC" = "xyes"; then : 4593 XCFLAGS="$XCFLAGS -Wall" 4594 fi 4595 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then : 4596 XCFLAGS="$XCFLAGS -Werror" 4597 fi 4598 4599 # Find other programs we need. 4600 if test -n "$ac_tool_prefix"; then 4601 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4602 set dummy ${ac_tool_prefix}ar; ac_word=$2 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4604 $as_echo_n "checking for $ac_word... " >&6; } 4605 if ${ac_cv_prog_AR+:} false; then : 4606 $as_echo_n "(cached) " >&6 4607 else 4608 if test -n "$AR"; then 4609 ac_cv_prog_AR="$AR" # Let the user override the test. 4610 else 4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4612 for as_dir in $PATH 4613 do 4614 IFS=$as_save_IFS 4615 test -z "$as_dir" && as_dir=. 4616 for ac_exec_ext in '' $ac_executable_extensions; do 4617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4618 ac_cv_prog_AR="${ac_tool_prefix}ar" 4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4620 break 2 4621 fi 4622 done 4623 done 4624 IFS=$as_save_IFS 4625 4626 fi 4627 fi 4628 AR=$ac_cv_prog_AR 4629 if test -n "$AR"; then 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4631 $as_echo "$AR" >&6; } 4632 else 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4634 $as_echo "no" >&6; } 4635 fi 4636 4637 4638 fi 4639 if test -z "$ac_cv_prog_AR"; then 4640 ac_ct_AR=$AR 4641 # Extract the first word of "ar", so it can be a program name with args. 4642 set dummy ar; ac_word=$2 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4644 $as_echo_n "checking for $ac_word... " >&6; } 4645 if ${ac_cv_prog_ac_ct_AR+:} false; then : 4646 $as_echo_n "(cached) " >&6 4647 else 4648 if test -n "$ac_ct_AR"; then 4649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4650 else 4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4652 for as_dir in $PATH 4653 do 4654 IFS=$as_save_IFS 4655 test -z "$as_dir" && as_dir=. 4656 for ac_exec_ext in '' $ac_executable_extensions; do 4657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4658 ac_cv_prog_ac_ct_AR="ar" 4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4660 break 2 4661 fi 4662 done 4663 done 4664 IFS=$as_save_IFS 4665 4666 fi 4667 fi 4668 ac_ct_AR=$ac_cv_prog_ac_ct_AR 4669 if test -n "$ac_ct_AR"; then 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4671 $as_echo "$ac_ct_AR" >&6; } 4672 else 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4674 $as_echo "no" >&6; } 4675 fi 4676 4677 if test "x$ac_ct_AR" = x; then 4678 AR="" 4679 else 4680 case $cross_compiling:$ac_tool_warned in 4681 yes:) 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4684 ac_tool_warned=yes ;; 4685 esac 4686 AR=$ac_ct_AR 4687 fi 4688 else 4689 AR="$ac_cv_prog_AR" 4690 fi 4691 4692 if test -n "$ac_tool_prefix"; then 4693 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4694 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4696 $as_echo_n "checking for $ac_word... " >&6; } 4697 if ${ac_cv_prog_RANLIB+:} false; then : 4698 $as_echo_n "(cached) " >&6 4699 else 4700 if test -n "$RANLIB"; then 4701 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4702 else 4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4704 for as_dir in $PATH 4705 do 4706 IFS=$as_save_IFS 4707 test -z "$as_dir" && as_dir=. 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4710 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4712 break 2 4713 fi 4714 done 4715 done 4716 IFS=$as_save_IFS 4717 4718 fi 4719 fi 4720 RANLIB=$ac_cv_prog_RANLIB 4721 if test -n "$RANLIB"; then 4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4723 $as_echo "$RANLIB" >&6; } 4724 else 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4726 $as_echo "no" >&6; } 4727 fi 4728 4729 4730 fi 4731 if test -z "$ac_cv_prog_RANLIB"; then 4732 ac_ct_RANLIB=$RANLIB 4733 # Extract the first word of "ranlib", so it can be a program name with args. 4734 set dummy ranlib; ac_word=$2 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4736 $as_echo_n "checking for $ac_word... " >&6; } 4737 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4738 $as_echo_n "(cached) " >&6 4739 else 4740 if test -n "$ac_ct_RANLIB"; then 4741 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4742 else 4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4744 for as_dir in $PATH 4745 do 4746 IFS=$as_save_IFS 4747 test -z "$as_dir" && as_dir=. 4748 for ac_exec_ext in '' $ac_executable_extensions; do 4749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4750 ac_cv_prog_ac_ct_RANLIB="ranlib" 4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4752 break 2 4753 fi 4754 done 4755 done 4756 IFS=$as_save_IFS 4757 4758 fi 4759 fi 4760 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4761 if test -n "$ac_ct_RANLIB"; then 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4763 $as_echo "$ac_ct_RANLIB" >&6; } 4764 else 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4766 $as_echo "no" >&6; } 4767 fi 4768 4769 if test "x$ac_ct_RANLIB" = x; then 4770 RANLIB="ranlib-not-found-in-path-error" 4771 else 4772 case $cross_compiling:$ac_tool_warned in 4773 yes:) 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4776 ac_tool_warned=yes ;; 4777 esac 4778 RANLIB=$ac_ct_RANLIB 4779 fi 4780 else 4781 RANLIB="$ac_cv_prog_RANLIB" 4782 fi 4783 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4785 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4786 set x ${MAKE-make} 4787 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4788 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4789 $as_echo_n "(cached) " >&6 4790 else 4791 cat >conftest.make <<\_ACEOF 4792 SHELL = /bin/sh 4793 all: 4794 @echo '@@@%%%=$(MAKE)=@@@%%%' 4795 _ACEOF 4796 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4797 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4798 *@@@%%%=?*=@@@%%%*) 4799 eval ac_cv_prog_make_${ac_make}_set=yes;; 4800 *) 4801 eval ac_cv_prog_make_${ac_make}_set=no;; 4802 esac 4803 rm -f conftest.make 4804 fi 4805 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4807 $as_echo "yes" >&6; } 4808 SET_MAKE= 4809 else 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4811 $as_echo "no" >&6; } 4812 SET_MAKE="MAKE=${MAKE-make}" 4813 fi 4814 4815 4816 4817 # See if makeinfo has been installed and is modern enough 4818 # that we can use it. 4819 4820 # Extract the first word of "makeinfo", so it can be a program name with args. 4821 set dummy makeinfo; ac_word=$2 4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4823 $as_echo_n "checking for $ac_word... " >&6; } 4824 if ${ac_cv_prog_MAKEINFO+:} false; then : 4825 $as_echo_n "(cached) " >&6 4826 else 4827 if test -n "$MAKEINFO"; then 4828 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 4829 else 4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4831 for as_dir in $PATH 4832 do 4833 IFS=$as_save_IFS 4834 test -z "$as_dir" && as_dir=. 4835 for ac_exec_ext in '' $ac_executable_extensions; do 4836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4837 ac_cv_prog_MAKEINFO="makeinfo" 4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4839 break 2 4840 fi 4841 done 4842 done 4843 IFS=$as_save_IFS 4844 4845 fi 4846 fi 4847 MAKEINFO=$ac_cv_prog_MAKEINFO 4848 if test -n "$MAKEINFO"; then 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 4850 $as_echo "$MAKEINFO" >&6; } 4851 else 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4853 $as_echo "no" >&6; } 4854 fi 4855 4856 4857 if test -n "$MAKEINFO"; then 4858 # Found it, now check the version. 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 4860 $as_echo_n "checking for modern makeinfo... " >&6; } 4861 if ${gcc_cv_prog_makeinfo_modern+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863 else 4864 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 4865 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 4866 4867 case $ac_prog_version in 4868 '') gcc_cv_prog_makeinfo_modern=no;; 4869 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 4870 *) gcc_cv_prog_makeinfo_modern=no;; 4871 esac 4872 4873 fi 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 4875 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 4876 else 4877 gcc_cv_prog_makeinfo_modern=no 4878 fi 4879 if test $gcc_cv_prog_makeinfo_modern = no; then 4880 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 4881 fi 4882 4883 if test $gcc_cv_prog_makeinfo_modern = "yes"; then 4884 BUILD_INFO_TRUE= 4885 BUILD_INFO_FALSE='#' 4886 else 4887 BUILD_INFO_TRUE='#' 4888 BUILD_INFO_FALSE= 4889 fi 4890 4891 4892 4893 # Configure libtool 4894 case `pwd` in 4895 *\ * | *\ *) 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4897 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4898 esac 4899 4900 4901 4902 macro_version='2.2.7a' 4903 macro_revision='1.3134' 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 ltmain="$ac_aux_dir/ltmain.sh" 4918 4919 # Backslashify metacharacters that are still active within 4920 # double-quoted strings. 4921 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4922 4923 # Same as above, but do not quote variable references. 4924 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4925 4926 # Sed substitution to delay expansion of an escaped shell variable in a 4927 # double_quote_subst'ed string. 4928 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4929 4930 # Sed substitution to delay expansion of an escaped single quote. 4931 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4932 4933 # Sed substitution to avoid accidental globbing in evaled expressions 4934 no_glob_subst='s/\*/\\\*/g' 4935 4936 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4937 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4938 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4939 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4941 $as_echo_n "checking how to print strings... " >&6; } 4942 # Test print first, because it will be a builtin if present. 4943 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4944 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4945 ECHO='print -r --' 4946 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4947 ECHO='printf %s\n' 4948 else 4949 # Use this function as a fallback that always works. 4950 func_fallback_echo () 4951 { 4952 eval 'cat <<_LTECHO_EOF 4953 $1 4954 _LTECHO_EOF' 4955 } 4956 ECHO='func_fallback_echo' 4957 fi 4958 4959 # func_echo_all arg... 4960 # Invoke $ECHO with all args, space-separated. 4961 func_echo_all () 4962 { 4963 $ECHO "" 4964 } 4965 4966 case "$ECHO" in 4967 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4968 $as_echo "printf" >&6; } ;; 4969 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4970 $as_echo "print -r" >&6; } ;; 4971 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4972 $as_echo "cat" >&6; } ;; 4973 esac 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4989 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4990 if ${ac_cv_path_SED+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992 else 4993 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4994 for ac_i in 1 2 3 4 5 6 7; do 4995 ac_script="$ac_script$as_nl$ac_script" 4996 done 4997 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4998 { ac_script=; unset ac_script;} 4999 if test -z "$SED"; then 5000 ac_path_SED_found=false 5001 # Loop through the user's path and test for each of PROGNAME-LIST 5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5003 for as_dir in $PATH 5004 do 5005 IFS=$as_save_IFS 5006 test -z "$as_dir" && as_dir=. 5007 for ac_prog in sed gsed; do 5008 for ac_exec_ext in '' $ac_executable_extensions; do 5009 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5010 as_fn_executable_p "$ac_path_SED" || continue 5011 # Check for GNU ac_path_SED and select it if it is found. 5012 # Check for GNU $ac_path_SED 5013 case `"$ac_path_SED" --version 2>&1` in 5014 *GNU*) 5015 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5016 *) 5017 ac_count=0 5018 $as_echo_n 0123456789 >"conftest.in" 5019 while : 5020 do 5021 cat "conftest.in" "conftest.in" >"conftest.tmp" 5022 mv "conftest.tmp" "conftest.in" 5023 cp "conftest.in" "conftest.nl" 5024 $as_echo '' >> "conftest.nl" 5025 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5027 as_fn_arith $ac_count + 1 && ac_count=$as_val 5028 if test $ac_count -gt ${ac_path_SED_max-0}; then 5029 # Best one so far, save it but keep looking for a better one 5030 ac_cv_path_SED="$ac_path_SED" 5031 ac_path_SED_max=$ac_count 5032 fi 5033 # 10*(2^10) chars as input seems more than enough 5034 test $ac_count -gt 10 && break 5035 done 5036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5037 esac 5038 5039 $ac_path_SED_found && break 3 5040 done 5041 done 5042 done 5043 IFS=$as_save_IFS 5044 if test -z "$ac_cv_path_SED"; then 5045 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5046 fi 5047 else 5048 ac_cv_path_SED=$SED 5049 fi 5050 5051 fi 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5053 $as_echo "$ac_cv_path_SED" >&6; } 5054 SED="$ac_cv_path_SED" 5055 rm -f conftest.sed 5056 5057 test -z "$SED" && SED=sed 5058 Xsed="$SED -e 1s/^X//" 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5071 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5072 if ${ac_cv_path_GREP+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074 else 5075 if test -z "$GREP"; then 5076 ac_path_GREP_found=false 5077 # Loop through the user's path and test for each of PROGNAME-LIST 5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5080 do 5081 IFS=$as_save_IFS 5082 test -z "$as_dir" && as_dir=. 5083 for ac_prog in grep ggrep; do 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5086 as_fn_executable_p "$ac_path_GREP" || continue 5087 # Check for GNU ac_path_GREP and select it if it is found. 5088 # Check for GNU $ac_path_GREP 5089 case `"$ac_path_GREP" --version 2>&1` in 5090 *GNU*) 5091 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5092 *) 5093 ac_count=0 5094 $as_echo_n 0123456789 >"conftest.in" 5095 while : 5096 do 5097 cat "conftest.in" "conftest.in" >"conftest.tmp" 5098 mv "conftest.tmp" "conftest.in" 5099 cp "conftest.in" "conftest.nl" 5100 $as_echo 'GREP' >> "conftest.nl" 5101 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5103 as_fn_arith $ac_count + 1 && ac_count=$as_val 5104 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5105 # Best one so far, save it but keep looking for a better one 5106 ac_cv_path_GREP="$ac_path_GREP" 5107 ac_path_GREP_max=$ac_count 5108 fi 5109 # 10*(2^10) chars as input seems more than enough 5110 test $ac_count -gt 10 && break 5111 done 5112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5113 esac 5114 5115 $ac_path_GREP_found && break 3 5116 done 5117 done 5118 done 5119 IFS=$as_save_IFS 5120 if test -z "$ac_cv_path_GREP"; then 5121 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5122 fi 5123 else 5124 ac_cv_path_GREP=$GREP 5125 fi 5126 5127 fi 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5129 $as_echo "$ac_cv_path_GREP" >&6; } 5130 GREP="$ac_cv_path_GREP" 5131 5132 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5134 $as_echo_n "checking for egrep... " >&6; } 5135 if ${ac_cv_path_EGREP+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137 else 5138 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5139 then ac_cv_path_EGREP="$GREP -E" 5140 else 5141 if test -z "$EGREP"; then 5142 ac_path_EGREP_found=false 5143 # Loop through the user's path and test for each of PROGNAME-LIST 5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5146 do 5147 IFS=$as_save_IFS 5148 test -z "$as_dir" && as_dir=. 5149 for ac_prog in egrep; do 5150 for ac_exec_ext in '' $ac_executable_extensions; do 5151 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5152 as_fn_executable_p "$ac_path_EGREP" || continue 5153 # Check for GNU ac_path_EGREP and select it if it is found. 5154 # Check for GNU $ac_path_EGREP 5155 case `"$ac_path_EGREP" --version 2>&1` in 5156 *GNU*) 5157 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5158 *) 5159 ac_count=0 5160 $as_echo_n 0123456789 >"conftest.in" 5161 while : 5162 do 5163 cat "conftest.in" "conftest.in" >"conftest.tmp" 5164 mv "conftest.tmp" "conftest.in" 5165 cp "conftest.in" "conftest.nl" 5166 $as_echo 'EGREP' >> "conftest.nl" 5167 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5169 as_fn_arith $ac_count + 1 && ac_count=$as_val 5170 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5171 # Best one so far, save it but keep looking for a better one 5172 ac_cv_path_EGREP="$ac_path_EGREP" 5173 ac_path_EGREP_max=$ac_count 5174 fi 5175 # 10*(2^10) chars as input seems more than enough 5176 test $ac_count -gt 10 && break 5177 done 5178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5179 esac 5180 5181 $ac_path_EGREP_found && break 3 5182 done 5183 done 5184 done 5185 IFS=$as_save_IFS 5186 if test -z "$ac_cv_path_EGREP"; then 5187 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5188 fi 5189 else 5190 ac_cv_path_EGREP=$EGREP 5191 fi 5192 5193 fi 5194 fi 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5196 $as_echo "$ac_cv_path_EGREP" >&6; } 5197 EGREP="$ac_cv_path_EGREP" 5198 5199 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5201 $as_echo_n "checking for fgrep... " >&6; } 5202 if ${ac_cv_path_FGREP+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204 else 5205 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5206 then ac_cv_path_FGREP="$GREP -F" 5207 else 5208 if test -z "$FGREP"; then 5209 ac_path_FGREP_found=false 5210 # Loop through the user's path and test for each of PROGNAME-LIST 5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5213 do 5214 IFS=$as_save_IFS 5215 test -z "$as_dir" && as_dir=. 5216 for ac_prog in fgrep; do 5217 for ac_exec_ext in '' $ac_executable_extensions; do 5218 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5219 as_fn_executable_p "$ac_path_FGREP" || continue 5220 # Check for GNU ac_path_FGREP and select it if it is found. 5221 # Check for GNU $ac_path_FGREP 5222 case `"$ac_path_FGREP" --version 2>&1` in 5223 *GNU*) 5224 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5225 *) 5226 ac_count=0 5227 $as_echo_n 0123456789 >"conftest.in" 5228 while : 5229 do 5230 cat "conftest.in" "conftest.in" >"conftest.tmp" 5231 mv "conftest.tmp" "conftest.in" 5232 cp "conftest.in" "conftest.nl" 5233 $as_echo 'FGREP' >> "conftest.nl" 5234 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5236 as_fn_arith $ac_count + 1 && ac_count=$as_val 5237 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5238 # Best one so far, save it but keep looking for a better one 5239 ac_cv_path_FGREP="$ac_path_FGREP" 5240 ac_path_FGREP_max=$ac_count 5241 fi 5242 # 10*(2^10) chars as input seems more than enough 5243 test $ac_count -gt 10 && break 5244 done 5245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5246 esac 5247 5248 $ac_path_FGREP_found && break 3 5249 done 5250 done 5251 done 5252 IFS=$as_save_IFS 5253 if test -z "$ac_cv_path_FGREP"; then 5254 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5255 fi 5256 else 5257 ac_cv_path_FGREP=$FGREP 5258 fi 5259 5260 fi 5261 fi 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5263 $as_echo "$ac_cv_path_FGREP" >&6; } 5264 FGREP="$ac_cv_path_FGREP" 5265 5266 5267 test -z "$GREP" && GREP=grep 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 # Check whether --with-gnu-ld was given. 5288 if test "${with_gnu_ld+set}" = set; then : 5289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5290 else 5291 with_gnu_ld=no 5292 fi 5293 5294 ac_prog=ld 5295 if test "$GCC" = yes; then 5296 # Check if gcc -print-prog-name=ld gives a path. 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5298 $as_echo_n "checking for ld used by $CC... " >&6; } 5299 case $host in 5300 *-*-mingw*) 5301 # gcc leaves a trailing carriage return which upsets mingw 5302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5303 *) 5304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5305 esac 5306 case $ac_prog in 5307 # Accept absolute paths. 5308 [\\/]* | ?:[\\/]*) 5309 re_direlt='/[^/][^/]*/\.\./' 5310 # Canonicalize the pathname of ld 5311 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5312 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5313 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5314 done 5315 test -z "$LD" && LD="$ac_prog" 5316 ;; 5317 "") 5318 # If it fails, then pretend we aren't using GCC. 5319 ac_prog=ld 5320 ;; 5321 *) 5322 # If it is relative, then search for the first ld in PATH. 5323 with_gnu_ld=unknown 5324 ;; 5325 esac 5326 elif test "$with_gnu_ld" = yes; then 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5328 $as_echo_n "checking for GNU ld... " >&6; } 5329 else 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5331 $as_echo_n "checking for non-GNU ld... " >&6; } 5332 fi 5333 if ${lt_cv_path_LD+:} false; then : 5334 $as_echo_n "(cached) " >&6 5335 else 5336 if test -z "$LD"; then 5337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5338 for ac_dir in $PATH; do 5339 IFS="$lt_save_ifs" 5340 test -z "$ac_dir" && ac_dir=. 5341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5342 lt_cv_path_LD="$ac_dir/$ac_prog" 5343 # Check to see if the program is GNU ld. I'd rather use --version, 5344 # but apparently some variants of GNU ld only accept -v. 5345 # Break only if it was the GNU/non-GNU ld that we prefer. 5346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5347 *GNU* | *'with BFD'*) 5348 test "$with_gnu_ld" != no && break 5349 ;; 5350 *) 5351 test "$with_gnu_ld" != yes && break 5352 ;; 5353 esac 5354 fi 5355 done 5356 IFS="$lt_save_ifs" 5357 else 5358 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5359 fi 5360 fi 5361 5362 LD="$lt_cv_path_LD" 5363 if test -n "$LD"; then 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5365 $as_echo "$LD" >&6; } 5366 else 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5368 $as_echo "no" >&6; } 5369 fi 5370 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5372 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5373 if ${lt_cv_prog_gnu_ld+:} false; then : 5374 $as_echo_n "(cached) " >&6 5375 else 5376 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5377 case `$LD -v 2>&1 </dev/null` in 5378 *GNU* | *'with BFD'*) 5379 lt_cv_prog_gnu_ld=yes 5380 ;; 5381 *) 5382 lt_cv_prog_gnu_ld=no 5383 ;; 5384 esac 5385 fi 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5387 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5388 with_gnu_ld=$lt_cv_prog_gnu_ld 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5399 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5400 if ${lt_cv_path_NM+:} false; then : 5401 $as_echo_n "(cached) " >&6 5402 else 5403 if test -n "$NM"; then 5404 # Let the user override the nm to test. 5405 lt_nm_to_check="$NM" 5406 else 5407 lt_nm_to_check="${ac_tool_prefix}nm" 5408 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5409 lt_nm_to_check="$lt_nm_to_check nm" 5410 fi 5411 fi 5412 for lt_tmp_nm in "$lt_nm_to_check"; do 5413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5414 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5415 IFS="$lt_save_ifs" 5416 test -z "$ac_dir" && ac_dir=. 5417 # Strip out any user-provided options from the nm to test twice, 5418 # the first time to test to see if nm (rather than its options) has 5419 # an explicit path, the second time to yield a file which can be 5420 # nm'ed itself. 5421 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5422 case "$tmp_nm_path" in 5423 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5424 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5425 esac 5426 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5427 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5428 # Check to see if the nm accepts a BSD-compat flag. 5429 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5430 # nm: unknown option "B" ignored 5431 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5432 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5433 break 5434 ;; 5435 *) 5436 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5437 *$tmp_nm*) 5438 lt_cv_path_NM="$tmp_nm -p" 5439 break 5440 ;; 5441 *) 5442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5443 continue # so that we can try to find one that supports BSD flags 5444 ;; 5445 esac 5446 ;; 5447 esac 5448 fi 5449 done 5450 IFS="$lt_save_ifs" 5451 done 5452 : ${lt_cv_path_NM=no} 5453 fi 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5455 $as_echo "$lt_cv_path_NM" >&6; } 5456 if test "$lt_cv_path_NM" != "no"; then 5457 NM="$lt_cv_path_NM" 5458 else 5459 # Didn't find any BSD compatible name lister, look for dumpbin. 5460 if test -n "$DUMPBIN"; then : 5461 # Let the user override the test. 5462 else 5463 if test -n "$ac_tool_prefix"; then 5464 for ac_prog in dumpbin "link -dump" 5465 do 5466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5469 $as_echo_n "checking for $ac_word... " >&6; } 5470 if ${ac_cv_prog_DUMPBIN+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472 else 5473 if test -n "$DUMPBIN"; then 5474 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5475 else 5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5477 for as_dir in $PATH 5478 do 5479 IFS=$as_save_IFS 5480 test -z "$as_dir" && as_dir=. 5481 for ac_exec_ext in '' $ac_executable_extensions; do 5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5483 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5485 break 2 5486 fi 5487 done 5488 done 5489 IFS=$as_save_IFS 5490 5491 fi 5492 fi 5493 DUMPBIN=$ac_cv_prog_DUMPBIN 5494 if test -n "$DUMPBIN"; then 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5496 $as_echo "$DUMPBIN" >&6; } 5497 else 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5499 $as_echo "no" >&6; } 5500 fi 5501 5502 5503 test -n "$DUMPBIN" && break 5504 done 5505 fi 5506 if test -z "$DUMPBIN"; then 5507 ac_ct_DUMPBIN=$DUMPBIN 5508 for ac_prog in dumpbin "link -dump" 5509 do 5510 # Extract the first word of "$ac_prog", so it can be a program name with args. 5511 set dummy $ac_prog; ac_word=$2 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5513 $as_echo_n "checking for $ac_word... " >&6; } 5514 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516 else 5517 if test -n "$ac_ct_DUMPBIN"; then 5518 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5519 else 5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521 for as_dir in $PATH 5522 do 5523 IFS=$as_save_IFS 5524 test -z "$as_dir" && as_dir=. 5525 for ac_exec_ext in '' $ac_executable_extensions; do 5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5527 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5529 break 2 5530 fi 5531 done 5532 done 5533 IFS=$as_save_IFS 5534 5535 fi 5536 fi 5537 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5538 if test -n "$ac_ct_DUMPBIN"; then 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5540 $as_echo "$ac_ct_DUMPBIN" >&6; } 5541 else 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5543 $as_echo "no" >&6; } 5544 fi 5545 5546 5547 test -n "$ac_ct_DUMPBIN" && break 5548 done 5549 5550 if test "x$ac_ct_DUMPBIN" = x; then 5551 DUMPBIN=":" 5552 else 5553 case $cross_compiling:$ac_tool_warned in 5554 yes:) 5555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5557 ac_tool_warned=yes ;; 5558 esac 5559 DUMPBIN=$ac_ct_DUMPBIN 5560 fi 5561 fi 5562 5563 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5564 *COFF*) 5565 DUMPBIN="$DUMPBIN -symbols" 5566 ;; 5567 *) 5568 DUMPBIN=: 5569 ;; 5570 esac 5571 fi 5572 5573 if test "$DUMPBIN" != ":"; then 5574 NM="$DUMPBIN" 5575 fi 5576 fi 5577 test -z "$NM" && NM=nm 5578 5579 5580 5581 5582 5583 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5585 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5586 if ${lt_cv_nm_interface+:} false; then : 5587 $as_echo_n "(cached) " >&6 5588 else 5589 lt_cv_nm_interface="BSD nm" 5590 echo "int some_variable = 0;" > conftest.$ac_ext 5591 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5592 (eval "$ac_compile" 2>conftest.err) 5593 cat conftest.err >&5 5594 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5595 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5596 cat conftest.err >&5 5597 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5598 cat conftest.out >&5 5599 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5600 lt_cv_nm_interface="MS dumpbin" 5601 fi 5602 rm -f conftest* 5603 fi 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5605 $as_echo "$lt_cv_nm_interface" >&6; } 5606 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5608 $as_echo_n "checking whether ln -s works... " >&6; } 5609 LN_S=$as_ln_s 5610 if test "$LN_S" = "ln -s"; then 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5612 $as_echo "yes" >&6; } 5613 else 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5615 $as_echo "no, using $LN_S" >&6; } 5616 fi 5617 5618 # find the maximum length of command line arguments 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5620 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5621 if ${lt_cv_sys_max_cmd_len+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623 else 5624 i=0 5625 teststring="ABCD" 5626 5627 case $build_os in 5628 msdosdjgpp*) 5629 # On DJGPP, this test can blow up pretty badly due to problems in libc 5630 # (any single argument exceeding 2000 bytes causes a buffer overrun 5631 # during glob expansion). Even if it were fixed, the result of this 5632 # check would be larger than it should be. 5633 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5634 ;; 5635 5636 gnu*) 5637 # Under GNU Hurd, this test is not required because there is 5638 # no limit to the length of command line arguments. 5639 # Libtool will interpret -1 as no limit whatsoever 5640 lt_cv_sys_max_cmd_len=-1; 5641 ;; 5642 5643 cygwin* | mingw* | cegcc*) 5644 # On Win9x/ME, this test blows up -- it succeeds, but takes 5645 # about 5 minutes as the teststring grows exponentially. 5646 # Worse, since 9x/ME are not pre-emptively multitasking, 5647 # you end up with a "frozen" computer, even though with patience 5648 # the test eventually succeeds (with a max line length of 256k). 5649 # Instead, let's just punt: use the minimum linelength reported by 5650 # all of the supported platforms: 8192 (on NT/2K/XP). 5651 lt_cv_sys_max_cmd_len=8192; 5652 ;; 5653 5654 mint*) 5655 # On MiNT this can take a long time and run out of memory. 5656 lt_cv_sys_max_cmd_len=8192; 5657 ;; 5658 5659 amigaos*) 5660 # On AmigaOS with pdksh, this test takes hours, literally. 5661 # So we just punt and use a minimum line length of 8192. 5662 lt_cv_sys_max_cmd_len=8192; 5663 ;; 5664 5665 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5666 # This has been around since 386BSD, at least. Likely further. 5667 if test -x /sbin/sysctl; then 5668 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5669 elif test -x /usr/sbin/sysctl; then 5670 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5671 else 5672 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5673 fi 5674 # And add a safety zone 5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5677 ;; 5678 5679 interix*) 5680 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5681 lt_cv_sys_max_cmd_len=196608 5682 ;; 5683 5684 osf*) 5685 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5686 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5687 # nice to cause kernel panics so lets avoid the loop below. 5688 # First set a reasonable default. 5689 lt_cv_sys_max_cmd_len=16384 5690 # 5691 if test -x /sbin/sysconfig; then 5692 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5693 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5694 esac 5695 fi 5696 ;; 5697 sco3.2v5*) 5698 lt_cv_sys_max_cmd_len=102400 5699 ;; 5700 sysv5* | sco5v6* | sysv4.2uw2*) 5701 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5702 if test -n "$kargmax"; then 5703 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5704 else 5705 lt_cv_sys_max_cmd_len=32768 5706 fi 5707 ;; 5708 *) 5709 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5710 if test -n "$lt_cv_sys_max_cmd_len"; then 5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5713 else 5714 # Make teststring a little bigger before we do anything with it. 5715 # a 1K string should be a reasonable start. 5716 for i in 1 2 3 4 5 6 7 8 ; do 5717 teststring=$teststring$teststring 5718 done 5719 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5720 # If test is not a shell built-in, we'll probably end up computing a 5721 # maximum length that is only half of the actual maximum length, but 5722 # we can't tell. 5723 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5724 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5725 test $i != 17 # 1/2 MB should be enough 5726 do 5727 i=`expr $i + 1` 5728 teststring=$teststring$teststring 5729 done 5730 # Only check the string length outside the loop. 5731 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5732 teststring= 5733 # Add a significant safety factor because C++ compilers can tack on 5734 # massive amounts of additional arguments before passing them to the 5735 # linker. It appears as though 1/2 is a usable value. 5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5737 fi 5738 ;; 5739 esac 5740 5741 fi 5742 5743 if test -n $lt_cv_sys_max_cmd_len ; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5745 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5746 else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5748 $as_echo "none" >&6; } 5749 fi 5750 max_cmd_len=$lt_cv_sys_max_cmd_len 5751 5752 5753 5754 5755 5756 5757 : ${CP="cp -f"} 5758 : ${MV="mv -f"} 5759 : ${RM="rm -f"} 5760 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5762 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5763 # Try some XSI features 5764 xsi_shell=no 5765 ( _lt_dummy="a/b/c" 5766 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5767 = c,a/b,, \ 5768 && eval 'test $(( 1 + 1 )) -eq 2 \ 5769 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5770 && xsi_shell=yes 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5772 $as_echo "$xsi_shell" >&6; } 5773 5774 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5776 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5777 lt_shell_append=no 5778 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5779 >/dev/null 2>&1 \ 5780 && lt_shell_append=yes 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5782 $as_echo "$lt_shell_append" >&6; } 5783 5784 5785 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5786 lt_unset=unset 5787 else 5788 lt_unset=false 5789 fi 5790 5791 5792 5793 5794 5795 # test EBCDIC or ASCII 5796 case `echo X|tr X '\101'` in 5797 A) # ASCII based system 5798 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5799 lt_SP2NL='tr \040 \012' 5800 lt_NL2SP='tr \015\012 \040\040' 5801 ;; 5802 *) # EBCDIC based system 5803 lt_SP2NL='tr \100 \n' 5804 lt_NL2SP='tr \r\n \100\100' 5805 ;; 5806 esac 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5817 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5818 if ${lt_cv_ld_reload_flag+:} false; then : 5819 $as_echo_n "(cached) " >&6 5820 else 5821 lt_cv_ld_reload_flag='-r' 5822 fi 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5824 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5825 reload_flag=$lt_cv_ld_reload_flag 5826 case $reload_flag in 5827 "" | " "*) ;; 5828 *) reload_flag=" $reload_flag" ;; 5829 esac 5830 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5831 case $host_os in 5832 darwin*) 5833 if test "$GCC" = yes; then 5834 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5835 else 5836 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5837 fi 5838 ;; 5839 esac 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 if test -n "$ac_tool_prefix"; then 5850 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5851 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5853 $as_echo_n "checking for $ac_word... " >&6; } 5854 if ${ac_cv_prog_OBJDUMP+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856 else 5857 if test -n "$OBJDUMP"; then 5858 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5859 else 5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861 for as_dir in $PATH 5862 do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 for ac_exec_ext in '' $ac_executable_extensions; do 5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5867 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 break 2 5870 fi 5871 done 5872 done 5873 IFS=$as_save_IFS 5874 5875 fi 5876 fi 5877 OBJDUMP=$ac_cv_prog_OBJDUMP 5878 if test -n "$OBJDUMP"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5880 $as_echo "$OBJDUMP" >&6; } 5881 else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883 $as_echo "no" >&6; } 5884 fi 5885 5886 5887 fi 5888 if test -z "$ac_cv_prog_OBJDUMP"; then 5889 ac_ct_OBJDUMP=$OBJDUMP 5890 # Extract the first word of "objdump", so it can be a program name with args. 5891 set dummy objdump; ac_word=$2 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5893 $as_echo_n "checking for $ac_word... " >&6; } 5894 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896 else 5897 if test -n "$ac_ct_OBJDUMP"; then 5898 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5899 else 5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901 for as_dir in $PATH 5902 do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5907 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911 done 5912 done 5913 IFS=$as_save_IFS 5914 5915 fi 5916 fi 5917 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5918 if test -n "$ac_ct_OBJDUMP"; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5920 $as_echo "$ac_ct_OBJDUMP" >&6; } 5921 else 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5923 $as_echo "no" >&6; } 5924 fi 5925 5926 if test "x$ac_ct_OBJDUMP" = x; then 5927 OBJDUMP="false" 5928 else 5929 case $cross_compiling:$ac_tool_warned in 5930 yes:) 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5933 ac_tool_warned=yes ;; 5934 esac 5935 OBJDUMP=$ac_ct_OBJDUMP 5936 fi 5937 else 5938 OBJDUMP="$ac_cv_prog_OBJDUMP" 5939 fi 5940 5941 test -z "$OBJDUMP" && OBJDUMP=objdump 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5952 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5953 if ${lt_cv_deplibs_check_method+:} false; then : 5954 $as_echo_n "(cached) " >&6 5955 else 5956 lt_cv_file_magic_cmd='$MAGIC_CMD' 5957 lt_cv_file_magic_test_file= 5958 lt_cv_deplibs_check_method='unknown' 5959 # Need to set the preceding variable on all platforms that support 5960 # interlibrary dependencies. 5961 # 'none' -- dependencies not supported. 5962 # `unknown' -- same as none, but documents that we really don't know. 5963 # 'pass_all' -- all dependencies passed with no checks. 5964 # 'test_compile' -- check by making test program. 5965 # 'file_magic [[regex]]' -- check by looking for files in library path 5966 # which responds to the $file_magic_cmd with a given extended regex. 5967 # If you have `file' or equivalent on your system and you're not sure 5968 # whether `pass_all' will *always* work, you probably want this one. 5969 5970 case $host_os in 5971 aix[4-9]*) 5972 lt_cv_deplibs_check_method=pass_all 5973 ;; 5974 5975 beos*) 5976 lt_cv_deplibs_check_method=pass_all 5977 ;; 5978 5979 bsdi[45]*) 5980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5981 lt_cv_file_magic_cmd='/usr/bin/file -L' 5982 lt_cv_file_magic_test_file=/shlib/libc.so 5983 ;; 5984 5985 cygwin*) 5986 # func_win32_libid is a shell function defined in ltmain.sh 5987 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5988 lt_cv_file_magic_cmd='func_win32_libid' 5989 ;; 5990 5991 mingw* | pw32*) 5992 # Base MSYS/MinGW do not provide the 'file' command needed by 5993 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5994 # unless we find 'file', for example because we are cross-compiling. 5995 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5996 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5998 lt_cv_file_magic_cmd='func_win32_libid' 5999 else 6000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6001 lt_cv_file_magic_cmd='$OBJDUMP -f' 6002 fi 6003 ;; 6004 6005 cegcc*) 6006 # use the weaker test based on 'objdump'. See mingw*. 6007 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6008 lt_cv_file_magic_cmd='$OBJDUMP -f' 6009 ;; 6010 6011 darwin* | rhapsody*) 6012 lt_cv_deplibs_check_method=pass_all 6013 ;; 6014 6015 freebsd* | dragonfly*) 6016 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6017 case $host_cpu in 6018 i*86 ) 6019 # Not sure whether the presence of OpenBSD here was a mistake. 6020 # Let's accept both of them until this is cleared up. 6021 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6022 lt_cv_file_magic_cmd=/usr/bin/file 6023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6024 ;; 6025 esac 6026 else 6027 lt_cv_deplibs_check_method=pass_all 6028 fi 6029 ;; 6030 6031 gnu*) 6032 lt_cv_deplibs_check_method=pass_all 6033 ;; 6034 6035 haiku*) 6036 lt_cv_deplibs_check_method=pass_all 6037 ;; 6038 6039 hpux10.20* | hpux11*) 6040 lt_cv_file_magic_cmd=/usr/bin/file 6041 case $host_cpu in 6042 ia64*) 6043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6045 ;; 6046 hppa*64*) 6047 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]' 6048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6049 ;; 6050 *) 6051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6052 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6053 ;; 6054 esac 6055 ;; 6056 6057 interix[3-9]*) 6058 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6060 ;; 6061 6062 irix5* | irix6* | nonstopux*) 6063 case $LD in 6064 *-32|*"-32 ") libmagic=32-bit;; 6065 *-n32|*"-n32 ") libmagic=N32;; 6066 *-64|*"-64 ") libmagic=64-bit;; 6067 *) libmagic=never-match;; 6068 esac 6069 lt_cv_deplibs_check_method=pass_all 6070 ;; 6071 6072 # This must be Linux ELF. 6073 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 6074 lt_cv_deplibs_check_method=pass_all 6075 ;; 6076 6077 netbsd*) 6078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6080 else 6081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6082 fi 6083 ;; 6084 6085 newos6*) 6086 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6087 lt_cv_file_magic_cmd=/usr/bin/file 6088 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6089 ;; 6090 6091 *nto* | *qnx*) 6092 lt_cv_deplibs_check_method=pass_all 6093 ;; 6094 6095 openbsd*) 6096 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6098 else 6099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6100 fi 6101 ;; 6102 6103 osf3* | osf4* | osf5*) 6104 lt_cv_deplibs_check_method=pass_all 6105 ;; 6106 6107 rdos*) 6108 lt_cv_deplibs_check_method=pass_all 6109 ;; 6110 6111 solaris*) 6112 lt_cv_deplibs_check_method=pass_all 6113 ;; 6114 6115 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6116 lt_cv_deplibs_check_method=pass_all 6117 ;; 6118 6119 sysv4 | sysv4.3*) 6120 case $host_vendor in 6121 motorola) 6122 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]' 6123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6124 ;; 6125 ncr) 6126 lt_cv_deplibs_check_method=pass_all 6127 ;; 6128 sequent) 6129 lt_cv_file_magic_cmd='/bin/file' 6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6131 ;; 6132 sni) 6133 lt_cv_file_magic_cmd='/bin/file' 6134 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6135 lt_cv_file_magic_test_file=/lib/libc.so 6136 ;; 6137 siemens) 6138 lt_cv_deplibs_check_method=pass_all 6139 ;; 6140 pc) 6141 lt_cv_deplibs_check_method=pass_all 6142 ;; 6143 esac 6144 ;; 6145 6146 tpf*) 6147 lt_cv_deplibs_check_method=pass_all 6148 ;; 6149 vxworks*) 6150 # Assume VxWorks cross toolchains are built on Linux, possibly 6151 # as canadian for Windows hosts. 6152 lt_cv_deplibs_check_method=pass_all 6153 ;; 6154 esac 6155 6156 fi 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6158 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6159 file_magic_cmd=$lt_cv_file_magic_cmd 6160 deplibs_check_method=$lt_cv_deplibs_check_method 6161 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 plugin_option= 6175 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 6176 for plugin in $plugin_names; do 6177 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 6178 if test x$plugin_so = x$plugin; then 6179 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 6180 fi 6181 if test x$plugin_so != x$plugin; then 6182 plugin_option="--plugin $plugin_so" 6183 break 6184 fi 6185 done 6186 6187 if test -n "$ac_tool_prefix"; then 6188 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6189 set dummy ${ac_tool_prefix}ar; ac_word=$2 6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6191 $as_echo_n "checking for $ac_word... " >&6; } 6192 if ${ac_cv_prog_AR+:} false; then : 6193 $as_echo_n "(cached) " >&6 6194 else 6195 if test -n "$AR"; then 6196 ac_cv_prog_AR="$AR" # Let the user override the test. 6197 else 6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6199 for as_dir in $PATH 6200 do 6201 IFS=$as_save_IFS 6202 test -z "$as_dir" && as_dir=. 6203 for ac_exec_ext in '' $ac_executable_extensions; do 6204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6205 ac_cv_prog_AR="${ac_tool_prefix}ar" 6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6207 break 2 6208 fi 6209 done 6210 done 6211 IFS=$as_save_IFS 6212 6213 fi 6214 fi 6215 AR=$ac_cv_prog_AR 6216 if test -n "$AR"; then 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6218 $as_echo "$AR" >&6; } 6219 else 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6221 $as_echo "no" >&6; } 6222 fi 6223 6224 6225 fi 6226 if test -z "$ac_cv_prog_AR"; then 6227 ac_ct_AR=$AR 6228 # Extract the first word of "ar", so it can be a program name with args. 6229 set dummy ar; ac_word=$2 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6231 $as_echo_n "checking for $ac_word... " >&6; } 6232 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6233 $as_echo_n "(cached) " >&6 6234 else 6235 if test -n "$ac_ct_AR"; then 6236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6237 else 6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6239 for as_dir in $PATH 6240 do 6241 IFS=$as_save_IFS 6242 test -z "$as_dir" && as_dir=. 6243 for ac_exec_ext in '' $ac_executable_extensions; do 6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6245 ac_cv_prog_ac_ct_AR="ar" 6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6247 break 2 6248 fi 6249 done 6250 done 6251 IFS=$as_save_IFS 6252 6253 fi 6254 fi 6255 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6256 if test -n "$ac_ct_AR"; then 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6258 $as_echo "$ac_ct_AR" >&6; } 6259 else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6261 $as_echo "no" >&6; } 6262 fi 6263 6264 if test "x$ac_ct_AR" = x; then 6265 AR="false" 6266 else 6267 case $cross_compiling:$ac_tool_warned in 6268 yes:) 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6271 ac_tool_warned=yes ;; 6272 esac 6273 AR=$ac_ct_AR 6274 fi 6275 else 6276 AR="$ac_cv_prog_AR" 6277 fi 6278 6279 test -z "$AR" && AR=ar 6280 if test -n "$plugin_option"; then 6281 if $AR --help 2>&1 | grep -q "\--plugin"; then 6282 touch conftest.c 6283 $AR $plugin_option rc conftest.a conftest.c 6284 if test "$?" != 0; then 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6286 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6287 else 6288 AR="$AR $plugin_option" 6289 fi 6290 rm -f conftest.* 6291 fi 6292 fi 6293 test -z "$AR_FLAGS" && AR_FLAGS=cru 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 if test -n "$ac_tool_prefix"; then 6306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6307 set dummy ${ac_tool_prefix}strip; ac_word=$2 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6309 $as_echo_n "checking for $ac_word... " >&6; } 6310 if ${ac_cv_prog_STRIP+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312 else 6313 if test -n "$STRIP"; then 6314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6315 else 6316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6317 for as_dir in $PATH 6318 do 6319 IFS=$as_save_IFS 6320 test -z "$as_dir" && as_dir=. 6321 for ac_exec_ext in '' $ac_executable_extensions; do 6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6323 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6325 break 2 6326 fi 6327 done 6328 done 6329 IFS=$as_save_IFS 6330 6331 fi 6332 fi 6333 STRIP=$ac_cv_prog_STRIP 6334 if test -n "$STRIP"; then 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6336 $as_echo "$STRIP" >&6; } 6337 else 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6339 $as_echo "no" >&6; } 6340 fi 6341 6342 6343 fi 6344 if test -z "$ac_cv_prog_STRIP"; then 6345 ac_ct_STRIP=$STRIP 6346 # Extract the first word of "strip", so it can be a program name with args. 6347 set dummy strip; ac_word=$2 6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6349 $as_echo_n "checking for $ac_word... " >&6; } 6350 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6351 $as_echo_n "(cached) " >&6 6352 else 6353 if test -n "$ac_ct_STRIP"; then 6354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6355 else 6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6357 for as_dir in $PATH 6358 do 6359 IFS=$as_save_IFS 6360 test -z "$as_dir" && as_dir=. 6361 for ac_exec_ext in '' $ac_executable_extensions; do 6362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6363 ac_cv_prog_ac_ct_STRIP="strip" 6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6365 break 2 6366 fi 6367 done 6368 done 6369 IFS=$as_save_IFS 6370 6371 fi 6372 fi 6373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6374 if test -n "$ac_ct_STRIP"; then 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6376 $as_echo "$ac_ct_STRIP" >&6; } 6377 else 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6379 $as_echo "no" >&6; } 6380 fi 6381 6382 if test "x$ac_ct_STRIP" = x; then 6383 STRIP=":" 6384 else 6385 case $cross_compiling:$ac_tool_warned in 6386 yes:) 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6389 ac_tool_warned=yes ;; 6390 esac 6391 STRIP=$ac_ct_STRIP 6392 fi 6393 else 6394 STRIP="$ac_cv_prog_STRIP" 6395 fi 6396 6397 test -z "$STRIP" && STRIP=: 6398 6399 6400 6401 6402 6403 6404 if test -n "$ac_tool_prefix"; then 6405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6406 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6408 $as_echo_n "checking for $ac_word... " >&6; } 6409 if ${ac_cv_prog_RANLIB+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411 else 6412 if test -n "$RANLIB"; then 6413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6414 else 6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6416 for as_dir in $PATH 6417 do 6418 IFS=$as_save_IFS 6419 test -z "$as_dir" && as_dir=. 6420 for ac_exec_ext in '' $ac_executable_extensions; do 6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6424 break 2 6425 fi 6426 done 6427 done 6428 IFS=$as_save_IFS 6429 6430 fi 6431 fi 6432 RANLIB=$ac_cv_prog_RANLIB 6433 if test -n "$RANLIB"; then 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6435 $as_echo "$RANLIB" >&6; } 6436 else 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6438 $as_echo "no" >&6; } 6439 fi 6440 6441 6442 fi 6443 if test -z "$ac_cv_prog_RANLIB"; then 6444 ac_ct_RANLIB=$RANLIB 6445 # Extract the first word of "ranlib", so it can be a program name with args. 6446 set dummy ranlib; ac_word=$2 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6448 $as_echo_n "checking for $ac_word... " >&6; } 6449 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6450 $as_echo_n "(cached) " >&6 6451 else 6452 if test -n "$ac_ct_RANLIB"; then 6453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6454 else 6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6456 for as_dir in $PATH 6457 do 6458 IFS=$as_save_IFS 6459 test -z "$as_dir" && as_dir=. 6460 for ac_exec_ext in '' $ac_executable_extensions; do 6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6462 ac_cv_prog_ac_ct_RANLIB="ranlib" 6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6464 break 2 6465 fi 6466 done 6467 done 6468 IFS=$as_save_IFS 6469 6470 fi 6471 fi 6472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6473 if test -n "$ac_ct_RANLIB"; then 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6475 $as_echo "$ac_ct_RANLIB" >&6; } 6476 else 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6478 $as_echo "no" >&6; } 6479 fi 6480 6481 if test "x$ac_ct_RANLIB" = x; then 6482 RANLIB=":" 6483 else 6484 case $cross_compiling:$ac_tool_warned in 6485 yes:) 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6488 ac_tool_warned=yes ;; 6489 esac 6490 RANLIB=$ac_ct_RANLIB 6491 fi 6492 else 6493 RANLIB="$ac_cv_prog_RANLIB" 6494 fi 6495 6496 test -z "$RANLIB" && RANLIB=: 6497 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6498 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6499 RANLIB="$RANLIB $plugin_option" 6500 fi 6501 fi 6502 6503 6504 6505 6506 6507 6508 # Determine commands to create old-style static archives. 6509 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6510 old_postinstall_cmds='chmod 644 $oldlib' 6511 old_postuninstall_cmds= 6512 6513 if test -n "$RANLIB"; then 6514 case $host_os in 6515 openbsd*) 6516 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6517 ;; 6518 *) 6519 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6520 ;; 6521 esac 6522 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6523 fi 6524 6525 case $host_os in 6526 darwin*) 6527 lock_old_archive_extraction=yes ;; 6528 *) 6529 lock_old_archive_extraction=no ;; 6530 esac 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 # If no C compiler was specified, use CC. 6571 LTCC=${LTCC-"$CC"} 6572 6573 # If no C compiler flags were specified, use CFLAGS. 6574 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6575 6576 # Allow CC to be a program name with arguments. 6577 compiler=$CC 6578 6579 6580 # Check for command to grab the raw symbol name followed by C symbol from nm. 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6582 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6583 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6584 $as_echo_n "(cached) " >&6 6585 else 6586 6587 # These are sane defaults that work on at least a few old systems. 6588 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6589 6590 # Character class describing NM global symbol codes. 6591 symcode='[BCDEGRST]' 6592 6593 # Regexp to match symbols that can be accessed directly from C. 6594 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6595 6596 # Define system-specific variables. 6597 case $host_os in 6598 aix*) 6599 symcode='[BCDT]' 6600 ;; 6601 cygwin* | mingw* | pw32* | cegcc*) 6602 symcode='[ABCDGISTW]' 6603 ;; 6604 hpux*) 6605 if test "$host_cpu" = ia64; then 6606 symcode='[ABCDEGRST]' 6607 fi 6608 ;; 6609 irix* | nonstopux*) 6610 symcode='[BCDEGRST]' 6611 ;; 6612 osf*) 6613 symcode='[BCDEGQRST]' 6614 ;; 6615 solaris*) 6616 symcode='[BCDRT]' 6617 ;; 6618 sco3.2v5*) 6619 symcode='[DT]' 6620 ;; 6621 sysv4.2uw2*) 6622 symcode='[DT]' 6623 ;; 6624 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6625 symcode='[ABDT]' 6626 ;; 6627 sysv4) 6628 symcode='[DFNSTU]' 6629 ;; 6630 esac 6631 6632 # If we're using GNU nm, then use its standard symbol codes. 6633 case `$NM -V 2>&1` in 6634 *GNU* | *'with BFD'*) 6635 symcode='[ABCDGIRSTW]' ;; 6636 esac 6637 6638 # Transform an extracted symbol line into a proper C declaration. 6639 # Some systems (esp. on ia64) link data and code symbols differently, 6640 # so use this general approach. 6641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6642 6643 # Transform an extracted symbol line into symbol name and symbol address 6644 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6645 lt_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'" 6646 6647 # Handle CRLF in mingw tool chain 6648 opt_cr= 6649 case $build_os in 6650 mingw*) 6651 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6652 ;; 6653 esac 6654 6655 # Try without a prefix underscore, then with it. 6656 for ac_symprfx in "" "_"; do 6657 6658 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6659 symxfrm="\\1 $ac_symprfx\\2 \\2" 6660 6661 # Write the raw and C identifiers. 6662 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6663 # Fake it for dumpbin and say T for any non-static function 6664 # and D for any global variable. 6665 # Also find C++ and __fastcall symbols from MSVC++, 6666 # which start with @ or ?. 6667 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6668 " {last_section=section; section=\$ 3};"\ 6669 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6670 " \$ 0!~/External *\|/{next};"\ 6671 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6672 " {if(hide[section]) next};"\ 6673 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6674 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6675 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6676 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6677 " ' prfx=^$ac_symprfx" 6678 else 6679 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6680 fi 6681 6682 # Check to see that the pipe works correctly. 6683 pipe_works=no 6684 6685 rm -f conftest* 6686 cat > conftest.$ac_ext <<_LT_EOF 6687 #ifdef __cplusplus 6688 extern "C" { 6689 #endif 6690 char nm_test_var; 6691 void nm_test_func(void); 6692 void nm_test_func(void){} 6693 #ifdef __cplusplus 6694 } 6695 #endif 6696 int main(){nm_test_var='a';nm_test_func();return(0);} 6697 _LT_EOF 6698 6699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6700 (eval $ac_compile) 2>&5 6701 ac_status=$? 6702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6703 test $ac_status = 0; }; then 6704 # Now try to grab the symbols. 6705 nlist=conftest.nm 6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6707 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; } && test -s "$nlist"; then 6711 # Try sorting and uniquifying the output. 6712 if sort "$nlist" | uniq > "$nlist"T; then 6713 mv -f "$nlist"T "$nlist" 6714 else 6715 rm -f "$nlist"T 6716 fi 6717 6718 # Make sure that we snagged all the symbols we need. 6719 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6720 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6721 cat <<_LT_EOF > conftest.$ac_ext 6722 #ifdef __cplusplus 6723 extern "C" { 6724 #endif 6725 6726 _LT_EOF 6727 # Now generate the symbol file. 6728 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6729 6730 cat <<_LT_EOF >> conftest.$ac_ext 6731 6732 /* The mapping between symbol names and symbols. */ 6733 const struct { 6734 const char *name; 6735 void *address; 6736 } 6737 lt__PROGRAM__LTX_preloaded_symbols[] = 6738 { 6739 { "@PROGRAM@", (void *) 0 }, 6740 _LT_EOF 6741 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6742 cat <<\_LT_EOF >> conftest.$ac_ext 6743 {0, (void *) 0} 6744 }; 6745 6746 /* This works around a problem in FreeBSD linker */ 6747 #ifdef FREEBSD_WORKAROUND 6748 static const void *lt_preloaded_setup() { 6749 return lt__PROGRAM__LTX_preloaded_symbols; 6750 } 6751 #endif 6752 6753 #ifdef __cplusplus 6754 } 6755 #endif 6756 _LT_EOF 6757 # Now try linking the two files. 6758 mv conftest.$ac_objext conftstm.$ac_objext 6759 lt_save_LIBS="$LIBS" 6760 lt_save_CFLAGS="$CFLAGS" 6761 LIBS="conftstm.$ac_objext" 6762 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6764 (eval $ac_link) 2>&5 6765 ac_status=$? 6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6767 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6768 pipe_works=yes 6769 fi 6770 LIBS="$lt_save_LIBS" 6771 CFLAGS="$lt_save_CFLAGS" 6772 else 6773 echo "cannot find nm_test_func in $nlist" >&5 6774 fi 6775 else 6776 echo "cannot find nm_test_var in $nlist" >&5 6777 fi 6778 else 6779 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6780 fi 6781 else 6782 echo "$progname: failed program was:" >&5 6783 cat conftest.$ac_ext >&5 6784 fi 6785 rm -rf conftest* conftst* 6786 6787 # Do not use the global_symbol_pipe unless it works. 6788 if test "$pipe_works" = yes; then 6789 break 6790 else 6791 lt_cv_sys_global_symbol_pipe= 6792 fi 6793 done 6794 6795 fi 6796 6797 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6798 lt_cv_sys_global_symbol_to_cdecl= 6799 fi 6800 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6802 $as_echo "failed" >&6; } 6803 else 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6805 $as_echo "ok" >&6; } 6806 fi 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 # Check whether --enable-libtool-lock was given. 6831 if test "${enable_libtool_lock+set}" = set; then : 6832 enableval=$enable_libtool_lock; 6833 fi 6834 6835 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6836 6837 # Some flags need to be propagated to the compiler or linker for good 6838 # libtool support. 6839 case $host in 6840 ia64-*-hpux*) 6841 # Find out which ABI we are using. 6842 echo 'int i;' > conftest.$ac_ext 6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6844 (eval $ac_compile) 2>&5 6845 ac_status=$? 6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6847 test $ac_status = 0; }; then 6848 case `/usr/bin/file conftest.$ac_objext` in 6849 *ELF-32*) 6850 HPUX_IA64_MODE="32" 6851 ;; 6852 *ELF-64*) 6853 HPUX_IA64_MODE="64" 6854 ;; 6855 esac 6856 fi 6857 rm -rf conftest* 6858 ;; 6859 *-*-irix6*) 6860 # Find out which ABI we are using. 6861 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6863 (eval $ac_compile) 2>&5 6864 ac_status=$? 6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6866 test $ac_status = 0; }; then 6867 if test "$lt_cv_prog_gnu_ld" = yes; then 6868 case `/usr/bin/file conftest.$ac_objext` in 6869 *32-bit*) 6870 LD="${LD-ld} -melf32bsmip" 6871 ;; 6872 *N32*) 6873 LD="${LD-ld} -melf32bmipn32" 6874 ;; 6875 *64-bit*) 6876 LD="${LD-ld} -melf64bmip" 6877 ;; 6878 esac 6879 else 6880 case `/usr/bin/file conftest.$ac_objext` in 6881 *32-bit*) 6882 LD="${LD-ld} -32" 6883 ;; 6884 *N32*) 6885 LD="${LD-ld} -n32" 6886 ;; 6887 *64-bit*) 6888 LD="${LD-ld} -64" 6889 ;; 6890 esac 6891 fi 6892 fi 6893 rm -rf conftest* 6894 ;; 6895 6896 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6897 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6898 # Find out which ABI we are using. 6899 echo 'int i;' > conftest.$ac_ext 6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6901 (eval $ac_compile) 2>&5 6902 ac_status=$? 6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6904 test $ac_status = 0; }; then 6905 case `/usr/bin/file conftest.o` in 6906 *32-bit*) 6907 case $host in 6908 x86_64-*kfreebsd*-gnu) 6909 LD="${LD-ld} -m elf_i386_fbsd" 6910 ;; 6911 x86_64-*linux*) 6912 case `/usr/bin/file conftest.o` in 6913 *x86-64*) 6914 LD="${LD-ld} -m elf32_x86_64" 6915 ;; 6916 *) 6917 LD="${LD-ld} -m elf_i386" 6918 ;; 6919 esac 6920 ;; 6921 powerpc64le-*linux*) 6922 LD="${LD-ld} -m elf32lppclinux" 6923 ;; 6924 powerpc64-*linux*) 6925 LD="${LD-ld} -m elf32ppclinux" 6926 ;; 6927 s390x-*linux*) 6928 LD="${LD-ld} -m elf_s390" 6929 ;; 6930 sparc64-*linux*) 6931 LD="${LD-ld} -m elf32_sparc" 6932 ;; 6933 esac 6934 ;; 6935 *64-bit*) 6936 case $host in 6937 x86_64-*kfreebsd*-gnu) 6938 LD="${LD-ld} -m elf_x86_64_fbsd" 6939 ;; 6940 x86_64-*linux*) 6941 LD="${LD-ld} -m elf_x86_64" 6942 ;; 6943 powerpcle-*linux*) 6944 LD="${LD-ld} -m elf64lppc" 6945 ;; 6946 powerpc-*linux*) 6947 LD="${LD-ld} -m elf64ppc" 6948 ;; 6949 s390*-*linux*|s390*-*tpf*) 6950 LD="${LD-ld} -m elf64_s390" 6951 ;; 6952 sparc*-*linux*) 6953 LD="${LD-ld} -m elf64_sparc" 6954 ;; 6955 esac 6956 ;; 6957 esac 6958 fi 6959 rm -rf conftest* 6960 ;; 6961 6962 *-*-sco3.2v5*) 6963 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6964 SAVE_CFLAGS="$CFLAGS" 6965 CFLAGS="$CFLAGS -belf" 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6967 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6968 if ${lt_cv_cc_needs_belf+:} false; then : 6969 $as_echo_n "(cached) " >&6 6970 else 6971 ac_ext=c 6972 ac_cpp='$CPP $CPPFLAGS' 6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6976 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978 /* end confdefs.h. */ 6979 6980 int 6981 main () 6982 { 6983 6984 ; 6985 return 0; 6986 } 6987 _ACEOF 6988 if ac_fn_c_try_link "$LINENO"; then : 6989 lt_cv_cc_needs_belf=yes 6990 else 6991 lt_cv_cc_needs_belf=no 6992 fi 6993 rm -f core conftest.err conftest.$ac_objext \ 6994 conftest$ac_exeext conftest.$ac_ext 6995 ac_ext=c 6996 ac_cpp='$CPP $CPPFLAGS' 6997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6999 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7000 7001 fi 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7003 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7004 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7005 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7006 CFLAGS="$SAVE_CFLAGS" 7007 fi 7008 ;; 7009 sparc*-*solaris*) 7010 # Find out which ABI we are using. 7011 echo 'int i;' > conftest.$ac_ext 7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7013 (eval $ac_compile) 2>&5 7014 ac_status=$? 7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7016 test $ac_status = 0; }; then 7017 case `/usr/bin/file conftest.o` in 7018 *64-bit*) 7019 case $lt_cv_prog_gnu_ld in 7020 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7021 *) 7022 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7023 LD="${LD-ld} -64" 7024 fi 7025 ;; 7026 esac 7027 ;; 7028 esac 7029 fi 7030 rm -rf conftest* 7031 ;; 7032 esac 7033 7034 need_locks="$enable_libtool_lock" 7035 7036 7037 case $host_os in 7038 rhapsody* | darwin*) 7039 if test -n "$ac_tool_prefix"; then 7040 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7041 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7043 $as_echo_n "checking for $ac_word... " >&6; } 7044 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046 else 7047 if test -n "$DSYMUTIL"; then 7048 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7049 else 7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7051 for as_dir in $PATH 7052 do 7053 IFS=$as_save_IFS 7054 test -z "$as_dir" && as_dir=. 7055 for ac_exec_ext in '' $ac_executable_extensions; do 7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7057 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7059 break 2 7060 fi 7061 done 7062 done 7063 IFS=$as_save_IFS 7064 7065 fi 7066 fi 7067 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7068 if test -n "$DSYMUTIL"; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7070 $as_echo "$DSYMUTIL" >&6; } 7071 else 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7073 $as_echo "no" >&6; } 7074 fi 7075 7076 7077 fi 7078 if test -z "$ac_cv_prog_DSYMUTIL"; then 7079 ac_ct_DSYMUTIL=$DSYMUTIL 7080 # Extract the first word of "dsymutil", so it can be a program name with args. 7081 set dummy dsymutil; ac_word=$2 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7083 $as_echo_n "checking for $ac_word... " >&6; } 7084 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086 else 7087 if test -n "$ac_ct_DSYMUTIL"; then 7088 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7089 else 7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7091 for as_dir in $PATH 7092 do 7093 IFS=$as_save_IFS 7094 test -z "$as_dir" && as_dir=. 7095 for ac_exec_ext in '' $ac_executable_extensions; do 7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7097 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7099 break 2 7100 fi 7101 done 7102 done 7103 IFS=$as_save_IFS 7104 7105 fi 7106 fi 7107 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7108 if test -n "$ac_ct_DSYMUTIL"; then 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7110 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7111 else 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7113 $as_echo "no" >&6; } 7114 fi 7115 7116 if test "x$ac_ct_DSYMUTIL" = x; then 7117 DSYMUTIL=":" 7118 else 7119 case $cross_compiling:$ac_tool_warned in 7120 yes:) 7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7123 ac_tool_warned=yes ;; 7124 esac 7125 DSYMUTIL=$ac_ct_DSYMUTIL 7126 fi 7127 else 7128 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7129 fi 7130 7131 if test -n "$ac_tool_prefix"; then 7132 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7133 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7135 $as_echo_n "checking for $ac_word... " >&6; } 7136 if ${ac_cv_prog_NMEDIT+:} false; then : 7137 $as_echo_n "(cached) " >&6 7138 else 7139 if test -n "$NMEDIT"; then 7140 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7141 else 7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7143 for as_dir in $PATH 7144 do 7145 IFS=$as_save_IFS 7146 test -z "$as_dir" && as_dir=. 7147 for ac_exec_ext in '' $ac_executable_extensions; do 7148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7149 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7151 break 2 7152 fi 7153 done 7154 done 7155 IFS=$as_save_IFS 7156 7157 fi 7158 fi 7159 NMEDIT=$ac_cv_prog_NMEDIT 7160 if test -n "$NMEDIT"; then 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7162 $as_echo "$NMEDIT" >&6; } 7163 else 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7165 $as_echo "no" >&6; } 7166 fi 7167 7168 7169 fi 7170 if test -z "$ac_cv_prog_NMEDIT"; then 7171 ac_ct_NMEDIT=$NMEDIT 7172 # Extract the first word of "nmedit", so it can be a program name with args. 7173 set dummy nmedit; ac_word=$2 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7175 $as_echo_n "checking for $ac_word... " >&6; } 7176 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7177 $as_echo_n "(cached) " >&6 7178 else 7179 if test -n "$ac_ct_NMEDIT"; then 7180 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7181 else 7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7183 for as_dir in $PATH 7184 do 7185 IFS=$as_save_IFS 7186 test -z "$as_dir" && as_dir=. 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7189 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193 done 7194 done 7195 IFS=$as_save_IFS 7196 7197 fi 7198 fi 7199 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7200 if test -n "$ac_ct_NMEDIT"; then 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7202 $as_echo "$ac_ct_NMEDIT" >&6; } 7203 else 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7205 $as_echo "no" >&6; } 7206 fi 7207 7208 if test "x$ac_ct_NMEDIT" = x; then 7209 NMEDIT=":" 7210 else 7211 case $cross_compiling:$ac_tool_warned in 7212 yes:) 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7215 ac_tool_warned=yes ;; 7216 esac 7217 NMEDIT=$ac_ct_NMEDIT 7218 fi 7219 else 7220 NMEDIT="$ac_cv_prog_NMEDIT" 7221 fi 7222 7223 if test -n "$ac_tool_prefix"; then 7224 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7225 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7227 $as_echo_n "checking for $ac_word... " >&6; } 7228 if ${ac_cv_prog_LIPO+:} false; then : 7229 $as_echo_n "(cached) " >&6 7230 else 7231 if test -n "$LIPO"; then 7232 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7233 else 7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7235 for as_dir in $PATH 7236 do 7237 IFS=$as_save_IFS 7238 test -z "$as_dir" && as_dir=. 7239 for ac_exec_ext in '' $ac_executable_extensions; do 7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7241 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7243 break 2 7244 fi 7245 done 7246 done 7247 IFS=$as_save_IFS 7248 7249 fi 7250 fi 7251 LIPO=$ac_cv_prog_LIPO 7252 if test -n "$LIPO"; then 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7254 $as_echo "$LIPO" >&6; } 7255 else 7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7257 $as_echo "no" >&6; } 7258 fi 7259 7260 7261 fi 7262 if test -z "$ac_cv_prog_LIPO"; then 7263 ac_ct_LIPO=$LIPO 7264 # Extract the first word of "lipo", so it can be a program name with args. 7265 set dummy lipo; ac_word=$2 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7267 $as_echo_n "checking for $ac_word... " >&6; } 7268 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270 else 7271 if test -n "$ac_ct_LIPO"; then 7272 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7273 else 7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7275 for as_dir in $PATH 7276 do 7277 IFS=$as_save_IFS 7278 test -z "$as_dir" && as_dir=. 7279 for ac_exec_ext in '' $ac_executable_extensions; do 7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7281 ac_cv_prog_ac_ct_LIPO="lipo" 7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7283 break 2 7284 fi 7285 done 7286 done 7287 IFS=$as_save_IFS 7288 7289 fi 7290 fi 7291 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7292 if test -n "$ac_ct_LIPO"; then 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7294 $as_echo "$ac_ct_LIPO" >&6; } 7295 else 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7297 $as_echo "no" >&6; } 7298 fi 7299 7300 if test "x$ac_ct_LIPO" = x; then 7301 LIPO=":" 7302 else 7303 case $cross_compiling:$ac_tool_warned in 7304 yes:) 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7307 ac_tool_warned=yes ;; 7308 esac 7309 LIPO=$ac_ct_LIPO 7310 fi 7311 else 7312 LIPO="$ac_cv_prog_LIPO" 7313 fi 7314 7315 if test -n "$ac_tool_prefix"; then 7316 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7317 set dummy ${ac_tool_prefix}otool; ac_word=$2 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7319 $as_echo_n "checking for $ac_word... " >&6; } 7320 if ${ac_cv_prog_OTOOL+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322 else 7323 if test -n "$OTOOL"; then 7324 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7325 else 7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7327 for as_dir in $PATH 7328 do 7329 IFS=$as_save_IFS 7330 test -z "$as_dir" && as_dir=. 7331 for ac_exec_ext in '' $ac_executable_extensions; do 7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7333 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7335 break 2 7336 fi 7337 done 7338 done 7339 IFS=$as_save_IFS 7340 7341 fi 7342 fi 7343 OTOOL=$ac_cv_prog_OTOOL 7344 if test -n "$OTOOL"; then 7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7346 $as_echo "$OTOOL" >&6; } 7347 else 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7349 $as_echo "no" >&6; } 7350 fi 7351 7352 7353 fi 7354 if test -z "$ac_cv_prog_OTOOL"; then 7355 ac_ct_OTOOL=$OTOOL 7356 # Extract the first word of "otool", so it can be a program name with args. 7357 set dummy otool; ac_word=$2 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7359 $as_echo_n "checking for $ac_word... " >&6; } 7360 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362 else 7363 if test -n "$ac_ct_OTOOL"; then 7364 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7365 else 7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367 for as_dir in $PATH 7368 do 7369 IFS=$as_save_IFS 7370 test -z "$as_dir" && as_dir=. 7371 for ac_exec_ext in '' $ac_executable_extensions; do 7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7373 ac_cv_prog_ac_ct_OTOOL="otool" 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7375 break 2 7376 fi 7377 done 7378 done 7379 IFS=$as_save_IFS 7380 7381 fi 7382 fi 7383 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7384 if test -n "$ac_ct_OTOOL"; then 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7386 $as_echo "$ac_ct_OTOOL" >&6; } 7387 else 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7389 $as_echo "no" >&6; } 7390 fi 7391 7392 if test "x$ac_ct_OTOOL" = x; then 7393 OTOOL=":" 7394 else 7395 case $cross_compiling:$ac_tool_warned in 7396 yes:) 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7399 ac_tool_warned=yes ;; 7400 esac 7401 OTOOL=$ac_ct_OTOOL 7402 fi 7403 else 7404 OTOOL="$ac_cv_prog_OTOOL" 7405 fi 7406 7407 if test -n "$ac_tool_prefix"; then 7408 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7409 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7411 $as_echo_n "checking for $ac_word... " >&6; } 7412 if ${ac_cv_prog_OTOOL64+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414 else 7415 if test -n "$OTOOL64"; then 7416 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7417 else 7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7419 for as_dir in $PATH 7420 do 7421 IFS=$as_save_IFS 7422 test -z "$as_dir" && as_dir=. 7423 for ac_exec_ext in '' $ac_executable_extensions; do 7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7425 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7427 break 2 7428 fi 7429 done 7430 done 7431 IFS=$as_save_IFS 7432 7433 fi 7434 fi 7435 OTOOL64=$ac_cv_prog_OTOOL64 7436 if test -n "$OTOOL64"; then 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7438 $as_echo "$OTOOL64" >&6; } 7439 else 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7441 $as_echo "no" >&6; } 7442 fi 7443 7444 7445 fi 7446 if test -z "$ac_cv_prog_OTOOL64"; then 7447 ac_ct_OTOOL64=$OTOOL64 7448 # Extract the first word of "otool64", so it can be a program name with args. 7449 set dummy otool64; ac_word=$2 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7451 $as_echo_n "checking for $ac_word... " >&6; } 7452 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7453 $as_echo_n "(cached) " >&6 7454 else 7455 if test -n "$ac_ct_OTOOL64"; then 7456 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7457 else 7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7459 for as_dir in $PATH 7460 do 7461 IFS=$as_save_IFS 7462 test -z "$as_dir" && as_dir=. 7463 for ac_exec_ext in '' $ac_executable_extensions; do 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7465 ac_cv_prog_ac_ct_OTOOL64="otool64" 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7467 break 2 7468 fi 7469 done 7470 done 7471 IFS=$as_save_IFS 7472 7473 fi 7474 fi 7475 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7476 if test -n "$ac_ct_OTOOL64"; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7478 $as_echo "$ac_ct_OTOOL64" >&6; } 7479 else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7481 $as_echo "no" >&6; } 7482 fi 7483 7484 if test "x$ac_ct_OTOOL64" = x; then 7485 OTOOL64=":" 7486 else 7487 case $cross_compiling:$ac_tool_warned in 7488 yes:) 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7491 ac_tool_warned=yes ;; 7492 esac 7493 OTOOL64=$ac_ct_OTOOL64 7494 fi 7495 else 7496 OTOOL64="$ac_cv_prog_OTOOL64" 7497 fi 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7526 $as_echo_n "checking for -single_module linker flag... " >&6; } 7527 if ${lt_cv_apple_cc_single_mod+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529 else 7530 lt_cv_apple_cc_single_mod=no 7531 if test -z "${LT_MULTI_MODULE}"; then 7532 # By default we will add the -single_module flag. You can override 7533 # by either setting the environment variable LT_MULTI_MODULE 7534 # non-empty at configure time, or by adding -multi_module to the 7535 # link flags. 7536 rm -rf libconftest.dylib* 7537 echo "int foo(void){return 1;}" > conftest.c 7538 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7539 -dynamiclib -Wl,-single_module conftest.c" >&5 7540 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7541 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7542 _lt_result=$? 7543 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7544 lt_cv_apple_cc_single_mod=yes 7545 else 7546 cat conftest.err >&5 7547 fi 7548 rm -rf libconftest.dylib* 7549 rm -f conftest.* 7550 fi 7551 fi 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7553 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7555 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7556 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558 else 7559 lt_cv_ld_exported_symbols_list=no 7560 save_LDFLAGS=$LDFLAGS 7561 echo "_main" > conftest.sym 7562 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564 /* end confdefs.h. */ 7565 7566 int 7567 main () 7568 { 7569 7570 ; 7571 return 0; 7572 } 7573 _ACEOF 7574 if ac_fn_c_try_link "$LINENO"; then : 7575 lt_cv_ld_exported_symbols_list=yes 7576 else 7577 lt_cv_ld_exported_symbols_list=no 7578 fi 7579 rm -f core conftest.err conftest.$ac_objext \ 7580 conftest$ac_exeext conftest.$ac_ext 7581 LDFLAGS="$save_LDFLAGS" 7582 7583 fi 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7585 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7587 $as_echo_n "checking for -force_load linker flag... " >&6; } 7588 if ${lt_cv_ld_force_load+:} false; then : 7589 $as_echo_n "(cached) " >&6 7590 else 7591 lt_cv_ld_force_load=no 7592 cat > conftest.c << _LT_EOF 7593 int forced_loaded() { return 2;} 7594 _LT_EOF 7595 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7596 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7597 echo "$AR cru libconftest.a conftest.o" >&5 7598 $AR cru libconftest.a conftest.o 2>&5 7599 cat > conftest.c << _LT_EOF 7600 int main() { return 0;} 7601 _LT_EOF 7602 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7603 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7604 _lt_result=$? 7605 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7606 lt_cv_ld_force_load=yes 7607 else 7608 cat conftest.err >&5 7609 fi 7610 rm -f conftest.err libconftest.a conftest conftest.c 7611 rm -rf conftest.dSYM 7612 7613 fi 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7615 $as_echo "$lt_cv_ld_force_load" >&6; } 7616 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7617 # build without first building modern cctools / linker. 7618 case $host_cpu-$host_os in 7619 *-rhapsody* | *-darwin1.[012]) 7620 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7621 *-darwin1.*) 7622 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7623 *-darwin*) 7624 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7625 # deployment target is forced to an earlier version. 7626 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7627 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*) 7628 ;; 7629 10.[012][,.]*) 7630 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7631 ;; 7632 *) 7633 ;; 7634 esac 7635 ;; 7636 esac 7637 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7638 _lt_dar_single_mod='$single_module' 7639 fi 7640 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7641 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7642 else 7643 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7644 fi 7645 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7646 _lt_dsymutil='~$DSYMUTIL $lib || :' 7647 else 7648 _lt_dsymutil= 7649 fi 7650 ;; 7651 esac 7652 7653 ac_ext=c 7654 ac_cpp='$CPP $CPPFLAGS' 7655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7657 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7659 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7660 # On Suns, sometimes $CPP names a directory. 7661 if test -n "$CPP" && test -d "$CPP"; then 7662 CPP= 7663 fi 7664 if test -z "$CPP"; then 7665 if ${ac_cv_prog_CPP+:} false; then : 7666 $as_echo_n "(cached) " >&6 7667 else 7668 # Double quotes because CPP needs to be expanded 7669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7670 do 7671 ac_preproc_ok=false 7672 for ac_c_preproc_warn_flag in '' yes 7673 do 7674 # Use a header file that comes with gcc, so configuring glibc 7675 # with a fresh cross-compiler works. 7676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7677 # <limits.h> exists even on freestanding compilers. 7678 # On the NeXT, cc -E runs the code through the compiler's parser, 7679 # not just through cpp. "Syntax error" is here to catch this case. 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681 /* end confdefs.h. */ 7682 #ifdef __STDC__ 7683 # include <limits.h> 7684 #else 7685 # include <assert.h> 7686 #endif 7687 Syntax error 7688 _ACEOF 7689 if ac_fn_c_try_cpp "$LINENO"; then : 7690 7691 else 7692 # Broken: fails on valid input. 7693 continue 7694 fi 7695 rm -f conftest.err conftest.i conftest.$ac_ext 7696 7697 # OK, works on sane cases. Now check whether nonexistent headers 7698 # can be detected and how. 7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700 /* end confdefs.h. */ 7701 #include <ac_nonexistent.h> 7702 _ACEOF 7703 if ac_fn_c_try_cpp "$LINENO"; then : 7704 # Broken: success on invalid input. 7705 continue 7706 else 7707 # Passes both tests. 7708 ac_preproc_ok=: 7709 break 7710 fi 7711 rm -f conftest.err conftest.i conftest.$ac_ext 7712 7713 done 7714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7715 rm -f conftest.i conftest.err conftest.$ac_ext 7716 if $ac_preproc_ok; then : 7717 break 7718 fi 7719 7720 done 7721 ac_cv_prog_CPP=$CPP 7722 7723 fi 7724 CPP=$ac_cv_prog_CPP 7725 else 7726 ac_cv_prog_CPP=$CPP 7727 fi 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7729 $as_echo "$CPP" >&6; } 7730 ac_preproc_ok=false 7731 for ac_c_preproc_warn_flag in '' yes 7732 do 7733 # Use a header file that comes with gcc, so configuring glibc 7734 # with a fresh cross-compiler works. 7735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7736 # <limits.h> exists even on freestanding compilers. 7737 # On the NeXT, cc -E runs the code through the compiler's parser, 7738 # not just through cpp. "Syntax error" is here to catch this case. 7739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7740 /* end confdefs.h. */ 7741 #ifdef __STDC__ 7742 # include <limits.h> 7743 #else 7744 # include <assert.h> 7745 #endif 7746 Syntax error 7747 _ACEOF 7748 if ac_fn_c_try_cpp "$LINENO"; then : 7749 7750 else 7751 # Broken: fails on valid input. 7752 continue 7753 fi 7754 rm -f conftest.err conftest.i conftest.$ac_ext 7755 7756 # OK, works on sane cases. Now check whether nonexistent headers 7757 # can be detected and how. 7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7759 /* end confdefs.h. */ 7760 #include <ac_nonexistent.h> 7761 _ACEOF 7762 if ac_fn_c_try_cpp "$LINENO"; then : 7763 # Broken: success on invalid input. 7764 continue 7765 else 7766 # Passes both tests. 7767 ac_preproc_ok=: 7768 break 7769 fi 7770 rm -f conftest.err conftest.i conftest.$ac_ext 7771 7772 done 7773 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7774 rm -f conftest.i conftest.err conftest.$ac_ext 7775 if $ac_preproc_ok; then : 7776 7777 else 7778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7780 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7781 See \`config.log' for more details" "$LINENO" 5; } 7782 fi 7783 7784 ac_ext=c 7785 ac_cpp='$CPP $CPPFLAGS' 7786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7788 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7789 7790 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7792 $as_echo_n "checking for ANSI C header files... " >&6; } 7793 if ${ac_cv_header_stdc+:} false; then : 7794 $as_echo_n "(cached) " >&6 7795 else 7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7797 /* end confdefs.h. */ 7798 #include <stdlib.h> 7799 #include <stdarg.h> 7800 #include <string.h> 7801 #include <float.h> 7802 7803 int 7804 main () 7805 { 7806 7807 ; 7808 return 0; 7809 } 7810 _ACEOF 7811 if ac_fn_c_try_compile "$LINENO"; then : 7812 ac_cv_header_stdc=yes 7813 else 7814 ac_cv_header_stdc=no 7815 fi 7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7817 7818 if test $ac_cv_header_stdc = yes; then 7819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821 /* end confdefs.h. */ 7822 #include <string.h> 7823 7824 _ACEOF 7825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7826 $EGREP "memchr" >/dev/null 2>&1; then : 7827 7828 else 7829 ac_cv_header_stdc=no 7830 fi 7831 rm -f conftest* 7832 7833 fi 7834 7835 if test $ac_cv_header_stdc = yes; then 7836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7838 /* end confdefs.h. */ 7839 #include <stdlib.h> 7840 7841 _ACEOF 7842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7843 $EGREP "free" >/dev/null 2>&1; then : 7844 7845 else 7846 ac_cv_header_stdc=no 7847 fi 7848 rm -f conftest* 7849 7850 fi 7851 7852 if test $ac_cv_header_stdc = yes; then 7853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7854 if test "$cross_compiling" = yes; then : 7855 : 7856 else 7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7858 /* end confdefs.h. */ 7859 #include <ctype.h> 7860 #include <stdlib.h> 7861 #if ((' ' & 0x0FF) == 0x020) 7862 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7863 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7864 #else 7865 # define ISLOWER(c) \ 7866 (('a' <= (c) && (c) <= 'i') \ 7867 || ('j' <= (c) && (c) <= 'r') \ 7868 || ('s' <= (c) && (c) <= 'z')) 7869 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7870 #endif 7871 7872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7873 int 7874 main () 7875 { 7876 int i; 7877 for (i = 0; i < 256; i++) 7878 if (XOR (islower (i), ISLOWER (i)) 7879 || toupper (i) != TOUPPER (i)) 7880 return 2; 7881 return 0; 7882 } 7883 _ACEOF 7884 if ac_fn_c_try_run "$LINENO"; then : 7885 7886 else 7887 ac_cv_header_stdc=no 7888 fi 7889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7890 conftest.$ac_objext conftest.beam conftest.$ac_ext 7891 fi 7892 7893 fi 7894 fi 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7896 $as_echo "$ac_cv_header_stdc" >&6; } 7897 if test $ac_cv_header_stdc = yes; then 7898 7899 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7900 7901 fi 7902 7903 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7904 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7905 inttypes.h stdint.h unistd.h 7906 do : 7907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7908 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7909 " 7910 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7911 cat >>confdefs.h <<_ACEOF 7912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7913 _ACEOF 7914 7915 fi 7916 7917 done 7918 7919 7920 for ac_header in dlfcn.h 7921 do : 7922 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7923 " 7924 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7925 cat >>confdefs.h <<_ACEOF 7926 #define HAVE_DLFCN_H 1 7927 _ACEOF 7928 7929 fi 7930 7931 done 7932 7933 7934 7935 7936 7937 # Set options 7938 7939 7940 7941 enable_dlopen=no 7942 7943 7944 enable_win32_dll=no 7945 7946 7947 # Check whether --enable-shared was given. 7948 if test "${enable_shared+set}" = set; then : 7949 enableval=$enable_shared; p=${PACKAGE-default} 7950 case $enableval in 7951 yes) enable_shared=yes ;; 7952 no) enable_shared=no ;; 7953 *) 7954 enable_shared=no 7955 # Look at the argument we got. We use all the common list separators. 7956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7957 for pkg in $enableval; do 7958 IFS="$lt_save_ifs" 7959 if test "X$pkg" = "X$p"; then 7960 enable_shared=yes 7961 fi 7962 done 7963 IFS="$lt_save_ifs" 7964 ;; 7965 esac 7966 else 7967 enable_shared=yes 7968 fi 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 # Check whether --enable-static was given. 7979 if test "${enable_static+set}" = set; then : 7980 enableval=$enable_static; p=${PACKAGE-default} 7981 case $enableval in 7982 yes) enable_static=yes ;; 7983 no) enable_static=no ;; 7984 *) 7985 enable_static=no 7986 # Look at the argument we got. We use all the common list separators. 7987 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7988 for pkg in $enableval; do 7989 IFS="$lt_save_ifs" 7990 if test "X$pkg" = "X$p"; then 7991 enable_static=yes 7992 fi 7993 done 7994 IFS="$lt_save_ifs" 7995 ;; 7996 esac 7997 else 7998 enable_static=yes 7999 fi 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 # Check whether --with-pic was given. 8011 if test "${with_pic+set}" = set; then : 8012 withval=$with_pic; pic_mode="$withval" 8013 else 8014 pic_mode=default 8015 fi 8016 8017 8018 test -z "$pic_mode" && pic_mode=default 8019 8020 8021 8022 8023 8024 8025 8026 # Check whether --enable-fast-install was given. 8027 if test "${enable_fast_install+set}" = set; then : 8028 enableval=$enable_fast_install; p=${PACKAGE-default} 8029 case $enableval in 8030 yes) enable_fast_install=yes ;; 8031 no) enable_fast_install=no ;; 8032 *) 8033 enable_fast_install=no 8034 # Look at the argument we got. We use all the common list separators. 8035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8036 for pkg in $enableval; do 8037 IFS="$lt_save_ifs" 8038 if test "X$pkg" = "X$p"; then 8039 enable_fast_install=yes 8040 fi 8041 done 8042 IFS="$lt_save_ifs" 8043 ;; 8044 esac 8045 else 8046 enable_fast_install=yes 8047 fi 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 # This can be used to rebuild libtool when needed 8060 LIBTOOL_DEPS="$ltmain" 8061 8062 # Always use our own libtool. 8063 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 test -z "$LN_S" && LN_S="ln -s" 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 if test -n "${ZSH_VERSION+set}" ; then 8106 setopt NO_GLOB_SUBST 8107 fi 8108 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8110 $as_echo_n "checking for objdir... " >&6; } 8111 if ${lt_cv_objdir+:} false; then : 8112 $as_echo_n "(cached) " >&6 8113 else 8114 rm -f .libs 2>/dev/null 8115 mkdir .libs 2>/dev/null 8116 if test -d .libs; then 8117 lt_cv_objdir=.libs 8118 else 8119 # MS-DOS does not allow filenames that begin with a dot. 8120 lt_cv_objdir=_libs 8121 fi 8122 rmdir .libs 2>/dev/null 8123 fi 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8125 $as_echo "$lt_cv_objdir" >&6; } 8126 objdir=$lt_cv_objdir 8127 8128 8129 8130 8131 8132 cat >>confdefs.h <<_ACEOF 8133 #define LT_OBJDIR "$lt_cv_objdir/" 8134 _ACEOF 8135 8136 8137 8138 8139 case $host_os in 8140 aix3*) 8141 # AIX sometimes has problems with the GCC collect2 program. For some 8142 # reason, if we set the COLLECT_NAMES environment variable, the problems 8143 # vanish in a puff of smoke. 8144 if test "X${COLLECT_NAMES+set}" != Xset; then 8145 COLLECT_NAMES= 8146 export COLLECT_NAMES 8147 fi 8148 ;; 8149 esac 8150 8151 # Global variables: 8152 ofile=libtool 8153 can_build_shared=yes 8154 8155 # All known linkers require a `.a' archive for static linking (except MSVC, 8156 # which needs '.lib'). 8157 libext=a 8158 8159 with_gnu_ld="$lt_cv_prog_gnu_ld" 8160 8161 old_CC="$CC" 8162 old_CFLAGS="$CFLAGS" 8163 8164 # Set sane defaults for various variables 8165 test -z "$CC" && CC=cc 8166 test -z "$LTCC" && LTCC=$CC 8167 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8168 test -z "$LD" && LD=ld 8169 test -z "$ac_objext" && ac_objext=o 8170 8171 for cc_temp in $compiler""; do 8172 case $cc_temp in 8173 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8174 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8175 \-*) ;; 8176 *) break;; 8177 esac 8178 done 8179 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8180 8181 8182 # Only perform the check for file, if the check method requires it 8183 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8184 case $deplibs_check_method in 8185 file_magic*) 8186 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8188 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8189 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8190 $as_echo_n "(cached) " >&6 8191 else 8192 case $MAGIC_CMD in 8193 [\\/*] | ?:[\\/]*) 8194 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8195 ;; 8196 *) 8197 lt_save_MAGIC_CMD="$MAGIC_CMD" 8198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8199 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8200 for ac_dir in $ac_dummy; do 8201 IFS="$lt_save_ifs" 8202 test -z "$ac_dir" && ac_dir=. 8203 if test -f $ac_dir/${ac_tool_prefix}file; then 8204 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8205 if test -n "$file_magic_test_file"; then 8206 case $deplibs_check_method in 8207 "file_magic "*) 8208 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8210 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8211 $EGREP "$file_magic_regex" > /dev/null; then 8212 : 8213 else 8214 cat <<_LT_EOF 1>&2 8215 8216 *** Warning: the command libtool uses to detect shared libraries, 8217 *** $file_magic_cmd, produces output that libtool cannot recognize. 8218 *** The result is that libtool may fail to recognize shared libraries 8219 *** as such. This will affect the creation of libtool libraries that 8220 *** depend on shared libraries, but programs linked with such libtool 8221 *** libraries will work regardless of this problem. Nevertheless, you 8222 *** may want to report the problem to your system manager and/or to 8223 *** bug-libtool@gnu.org 8224 8225 _LT_EOF 8226 fi ;; 8227 esac 8228 fi 8229 break 8230 fi 8231 done 8232 IFS="$lt_save_ifs" 8233 MAGIC_CMD="$lt_save_MAGIC_CMD" 8234 ;; 8235 esac 8236 fi 8237 8238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8239 if test -n "$MAGIC_CMD"; then 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8241 $as_echo "$MAGIC_CMD" >&6; } 8242 else 8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8244 $as_echo "no" >&6; } 8245 fi 8246 8247 8248 8249 8250 8251 if test -z "$lt_cv_path_MAGIC_CMD"; then 8252 if test -n "$ac_tool_prefix"; then 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8254 $as_echo_n "checking for file... " >&6; } 8255 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8256 $as_echo_n "(cached) " >&6 8257 else 8258 case $MAGIC_CMD in 8259 [\\/*] | ?:[\\/]*) 8260 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8261 ;; 8262 *) 8263 lt_save_MAGIC_CMD="$MAGIC_CMD" 8264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8265 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8266 for ac_dir in $ac_dummy; do 8267 IFS="$lt_save_ifs" 8268 test -z "$ac_dir" && ac_dir=. 8269 if test -f $ac_dir/file; then 8270 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8271 if test -n "$file_magic_test_file"; then 8272 case $deplibs_check_method in 8273 "file_magic "*) 8274 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8275 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8276 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8277 $EGREP "$file_magic_regex" > /dev/null; then 8278 : 8279 else 8280 cat <<_LT_EOF 1>&2 8281 8282 *** Warning: the command libtool uses to detect shared libraries, 8283 *** $file_magic_cmd, produces output that libtool cannot recognize. 8284 *** The result is that libtool may fail to recognize shared libraries 8285 *** as such. This will affect the creation of libtool libraries that 8286 *** depend on shared libraries, but programs linked with such libtool 8287 *** libraries will work regardless of this problem. Nevertheless, you 8288 *** may want to report the problem to your system manager and/or to 8289 *** bug-libtool@gnu.org 8290 8291 _LT_EOF 8292 fi ;; 8293 esac 8294 fi 8295 break 8296 fi 8297 done 8298 IFS="$lt_save_ifs" 8299 MAGIC_CMD="$lt_save_MAGIC_CMD" 8300 ;; 8301 esac 8302 fi 8303 8304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8305 if test -n "$MAGIC_CMD"; then 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8307 $as_echo "$MAGIC_CMD" >&6; } 8308 else 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8310 $as_echo "no" >&6; } 8311 fi 8312 8313 8314 else 8315 MAGIC_CMD=: 8316 fi 8317 fi 8318 8319 fi 8320 ;; 8321 esac 8322 8323 # Use C for the default configuration in the libtool script 8324 8325 lt_save_CC="$CC" 8326 ac_ext=c 8327 ac_cpp='$CPP $CPPFLAGS' 8328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8330 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8331 8332 8333 # Source file extension for C test sources. 8334 ac_ext=c 8335 8336 # Object file extension for compiled C test sources. 8337 objext=o 8338 objext=$objext 8339 8340 # Code to be used in simple compile tests 8341 lt_simple_compile_test_code="int some_variable = 0;" 8342 8343 # Code to be used in simple link tests 8344 lt_simple_link_test_code='int main(){return(0);}' 8345 8346 8347 8348 8349 8350 8351 8352 # If no C compiler was specified, use CC. 8353 LTCC=${LTCC-"$CC"} 8354 8355 # If no C compiler flags were specified, use CFLAGS. 8356 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8357 8358 # Allow CC to be a program name with arguments. 8359 compiler=$CC 8360 8361 # Save the default compiler, since it gets overwritten when the other 8362 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8363 compiler_DEFAULT=$CC 8364 8365 # save warnings/boilerplate of simple test code 8366 ac_outfile=conftest.$ac_objext 8367 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8369 _lt_compiler_boilerplate=`cat conftest.err` 8370 $RM conftest* 8371 8372 ac_outfile=conftest.$ac_objext 8373 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8375 _lt_linker_boilerplate=`cat conftest.err` 8376 $RM -r conftest* 8377 8378 8379 ## CAVEAT EMPTOR: 8380 ## There is no encapsulation within the following macros, do not change 8381 ## the running order or otherwise move them around unless you know exactly 8382 ## what you are doing... 8383 if test -n "$compiler"; then 8384 8385 lt_prog_compiler_no_builtin_flag= 8386 8387 if test "$GCC" = yes; then 8388 case $cc_basename in 8389 nvcc*) 8390 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8391 *) 8392 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8393 esac 8394 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8396 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8397 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399 else 8400 lt_cv_prog_compiler_rtti_exceptions=no 8401 ac_outfile=conftest.$ac_objext 8402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8403 lt_compiler_flag="-fno-rtti -fno-exceptions" 8404 # Insert the option either (1) after the last *FLAGS variable, or 8405 # (2) before a word containing "conftest.", or (3) at the end. 8406 # Note that $ac_compile itself does not contain backslashes and begins 8407 # with a dollar sign (not a hyphen), so the echo should work correctly. 8408 # The option is referenced via a variable to avoid confusing sed. 8409 lt_compile=`echo "$ac_compile" | $SED \ 8410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8412 -e 's:$: $lt_compiler_flag:'` 8413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8414 (eval "$lt_compile" 2>conftest.err) 8415 ac_status=$? 8416 cat conftest.err >&5 8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8418 if (exit $ac_status) && test -s "$ac_outfile"; then 8419 # The compiler can only warn and ignore the option if not recognized 8420 # So say no if there are warnings other than the usual output. 8421 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8424 lt_cv_prog_compiler_rtti_exceptions=yes 8425 fi 8426 fi 8427 $RM conftest* 8428 8429 fi 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8431 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8432 8433 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8434 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8435 else 8436 : 8437 fi 8438 8439 fi 8440 8441 8442 8443 8444 8445 8446 lt_prog_compiler_wl= 8447 lt_prog_compiler_pic= 8448 lt_prog_compiler_static= 8449 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8451 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8452 8453 if test "$GCC" = yes; then 8454 lt_prog_compiler_wl='-Wl,' 8455 lt_prog_compiler_static='-static' 8456 8457 case $host_os in 8458 aix*) 8459 # All AIX code is PIC. 8460 if test "$host_cpu" = ia64; then 8461 # AIX 5 now supports IA64 processor 8462 lt_prog_compiler_static='-Bstatic' 8463 fi 8464 lt_prog_compiler_pic='-fPIC' 8465 ;; 8466 8467 amigaos*) 8468 case $host_cpu in 8469 powerpc) 8470 # see comment about AmigaOS4 .so support 8471 lt_prog_compiler_pic='-fPIC' 8472 ;; 8473 m68k) 8474 # FIXME: we need at least 68020 code to build shared libraries, but 8475 # adding the `-m68020' flag to GCC prevents building anything better, 8476 # like `-m68040'. 8477 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8478 ;; 8479 esac 8480 ;; 8481 8482 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8483 # PIC is the default for these OSes. 8484 ;; 8485 8486 mingw* | cygwin* | pw32* | os2* | cegcc*) 8487 # This hack is so that the source file can tell whether it is being 8488 # built for inclusion in a dll (and should export symbols for example). 8489 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8490 # (--disable-auto-import) libraries 8491 lt_prog_compiler_pic='-DDLL_EXPORT' 8492 ;; 8493 8494 darwin* | rhapsody*) 8495 # PIC is the default on this platform 8496 # Common symbols not allowed in MH_DYLIB files 8497 lt_prog_compiler_pic='-fno-common' 8498 ;; 8499 8500 haiku*) 8501 # PIC is the default for Haiku. 8502 # The "-static" flag exists, but is broken. 8503 lt_prog_compiler_static= 8504 ;; 8505 8506 hpux*) 8507 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8508 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8509 # sets the default TLS model and affects inlining. 8510 case $host_cpu in 8511 hppa*64*) 8512 # +Z the default 8513 ;; 8514 *) 8515 lt_prog_compiler_pic='-fPIC' 8516 ;; 8517 esac 8518 ;; 8519 8520 interix[3-9]*) 8521 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8522 # Instead, we relocate shared libraries at runtime. 8523 ;; 8524 8525 msdosdjgpp*) 8526 # Just because we use GCC doesn't mean we suddenly get shared libraries 8527 # on systems that don't support them. 8528 lt_prog_compiler_can_build_shared=no 8529 enable_shared=no 8530 ;; 8531 8532 *nto* | *qnx*) 8533 # QNX uses GNU C++, but need to define -shared option too, otherwise 8534 # it will coredump. 8535 lt_prog_compiler_pic='-fPIC -shared' 8536 ;; 8537 8538 sysv4*MP*) 8539 if test -d /usr/nec; then 8540 lt_prog_compiler_pic=-Kconform_pic 8541 fi 8542 ;; 8543 8544 *) 8545 lt_prog_compiler_pic='-fPIC' 8546 ;; 8547 esac 8548 8549 case $cc_basename in 8550 nvcc*) # Cuda Compiler Driver 2.2 8551 lt_prog_compiler_wl='-Xlinker ' 8552 lt_prog_compiler_pic='-Xcompiler -fPIC' 8553 ;; 8554 esac 8555 else 8556 # PORTME Check for flag to pass linker flags through the system compiler. 8557 case $host_os in 8558 aix*) 8559 lt_prog_compiler_wl='-Wl,' 8560 if test "$host_cpu" = ia64; then 8561 # AIX 5 now supports IA64 processor 8562 lt_prog_compiler_static='-Bstatic' 8563 else 8564 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8565 fi 8566 ;; 8567 8568 mingw* | cygwin* | pw32* | os2* | cegcc*) 8569 # This hack is so that the source file can tell whether it is being 8570 # built for inclusion in a dll (and should export symbols for example). 8571 lt_prog_compiler_pic='-DDLL_EXPORT' 8572 ;; 8573 8574 hpux9* | hpux10* | hpux11*) 8575 lt_prog_compiler_wl='-Wl,' 8576 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8577 # not for PA HP-UX. 8578 case $host_cpu in 8579 hppa*64*|ia64*) 8580 # +Z the default 8581 ;; 8582 *) 8583 lt_prog_compiler_pic='+Z' 8584 ;; 8585 esac 8586 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8587 lt_prog_compiler_static='${wl}-a ${wl}archive' 8588 ;; 8589 8590 irix5* | irix6* | nonstopux*) 8591 lt_prog_compiler_wl='-Wl,' 8592 # PIC (with -KPIC) is the default. 8593 lt_prog_compiler_static='-non_shared' 8594 ;; 8595 8596 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8597 case $cc_basename in 8598 # old Intel for x86_64 which still supported -KPIC. 8599 ecc*) 8600 lt_prog_compiler_wl='-Wl,' 8601 lt_prog_compiler_pic='-KPIC' 8602 lt_prog_compiler_static='-static' 8603 ;; 8604 # icc used to be incompatible with GCC. 8605 # ICC 10 doesn't accept -KPIC any more. 8606 icc* | ifort*) 8607 lt_prog_compiler_wl='-Wl,' 8608 lt_prog_compiler_pic='-fPIC' 8609 lt_prog_compiler_static='-static' 8610 ;; 8611 # Lahey Fortran 8.1. 8612 lf95*) 8613 lt_prog_compiler_wl='-Wl,' 8614 lt_prog_compiler_pic='--shared' 8615 lt_prog_compiler_static='--static' 8616 ;; 8617 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8618 # Portland Group compilers (*not* the Pentium gcc compiler, 8619 # which looks to be a dead project) 8620 lt_prog_compiler_wl='-Wl,' 8621 lt_prog_compiler_pic='-fpic' 8622 lt_prog_compiler_static='-Bstatic' 8623 ;; 8624 ccc*) 8625 lt_prog_compiler_wl='-Wl,' 8626 # All Alpha code is PIC. 8627 lt_prog_compiler_static='-non_shared' 8628 ;; 8629 xl* | bgxl* | bgf* | mpixl*) 8630 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8631 lt_prog_compiler_wl='-Wl,' 8632 lt_prog_compiler_pic='-qpic' 8633 lt_prog_compiler_static='-qstaticlink' 8634 ;; 8635 *) 8636 case `$CC -V 2>&1 | sed 5q` in 8637 *Sun\ F* | *Sun*Fortran*) 8638 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8639 lt_prog_compiler_pic='-KPIC' 8640 lt_prog_compiler_static='-Bstatic' 8641 lt_prog_compiler_wl='' 8642 ;; 8643 *Sun\ C*) 8644 # Sun C 5.9 8645 lt_prog_compiler_pic='-KPIC' 8646 lt_prog_compiler_static='-Bstatic' 8647 lt_prog_compiler_wl='-Wl,' 8648 ;; 8649 esac 8650 ;; 8651 esac 8652 ;; 8653 8654 newsos6) 8655 lt_prog_compiler_pic='-KPIC' 8656 lt_prog_compiler_static='-Bstatic' 8657 ;; 8658 8659 *nto* | *qnx*) 8660 # QNX uses GNU C++, but need to define -shared option too, otherwise 8661 # it will coredump. 8662 lt_prog_compiler_pic='-fPIC -shared' 8663 ;; 8664 8665 osf3* | osf4* | osf5*) 8666 lt_prog_compiler_wl='-Wl,' 8667 # All OSF/1 code is PIC. 8668 lt_prog_compiler_static='-non_shared' 8669 ;; 8670 8671 rdos*) 8672 lt_prog_compiler_static='-non_shared' 8673 ;; 8674 8675 solaris*) 8676 lt_prog_compiler_pic='-KPIC' 8677 lt_prog_compiler_static='-Bstatic' 8678 case $cc_basename in 8679 f77* | f90* | f95*) 8680 lt_prog_compiler_wl='-Qoption ld ';; 8681 *) 8682 lt_prog_compiler_wl='-Wl,';; 8683 esac 8684 ;; 8685 8686 sunos4*) 8687 lt_prog_compiler_wl='-Qoption ld ' 8688 lt_prog_compiler_pic='-PIC' 8689 lt_prog_compiler_static='-Bstatic' 8690 ;; 8691 8692 sysv4 | sysv4.2uw2* | sysv4.3*) 8693 lt_prog_compiler_wl='-Wl,' 8694 lt_prog_compiler_pic='-KPIC' 8695 lt_prog_compiler_static='-Bstatic' 8696 ;; 8697 8698 sysv4*MP*) 8699 if test -d /usr/nec ;then 8700 lt_prog_compiler_pic='-Kconform_pic' 8701 lt_prog_compiler_static='-Bstatic' 8702 fi 8703 ;; 8704 8705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8706 lt_prog_compiler_wl='-Wl,' 8707 lt_prog_compiler_pic='-KPIC' 8708 lt_prog_compiler_static='-Bstatic' 8709 ;; 8710 8711 unicos*) 8712 lt_prog_compiler_wl='-Wl,' 8713 lt_prog_compiler_can_build_shared=no 8714 ;; 8715 8716 uts4*) 8717 lt_prog_compiler_pic='-pic' 8718 lt_prog_compiler_static='-Bstatic' 8719 ;; 8720 8721 *) 8722 lt_prog_compiler_can_build_shared=no 8723 ;; 8724 esac 8725 fi 8726 8727 case $host_os in 8728 # For platforms which do not support PIC, -DPIC is meaningless: 8729 *djgpp*) 8730 lt_prog_compiler_pic= 8731 ;; 8732 *) 8733 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8734 ;; 8735 esac 8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8737 $as_echo "$lt_prog_compiler_pic" >&6; } 8738 8739 8740 8741 8742 8743 8744 # 8745 # Check to make sure the PIC flag actually works. 8746 # 8747 if test -n "$lt_prog_compiler_pic"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8749 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8750 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8751 $as_echo_n "(cached) " >&6 8752 else 8753 lt_cv_prog_compiler_pic_works=no 8754 ac_outfile=conftest.$ac_objext 8755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8757 # Insert the option either (1) after the last *FLAGS variable, or 8758 # (2) before a word containing "conftest.", or (3) at the end. 8759 # Note that $ac_compile itself does not contain backslashes and begins 8760 # with a dollar sign (not a hyphen), so the echo should work correctly. 8761 # The option is referenced via a variable to avoid confusing sed. 8762 lt_compile=`echo "$ac_compile" | $SED \ 8763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8765 -e 's:$: $lt_compiler_flag:'` 8766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8767 (eval "$lt_compile" 2>conftest.err) 8768 ac_status=$? 8769 cat conftest.err >&5 8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8771 if (exit $ac_status) && test -s "$ac_outfile"; then 8772 # The compiler can only warn and ignore the option if not recognized 8773 # So say no if there are warnings other than the usual output. 8774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8777 lt_cv_prog_compiler_pic_works=yes 8778 fi 8779 fi 8780 $RM conftest* 8781 8782 fi 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8784 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8785 8786 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8787 case $lt_prog_compiler_pic in 8788 "" | " "*) ;; 8789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8790 esac 8791 else 8792 lt_prog_compiler_pic= 8793 lt_prog_compiler_can_build_shared=no 8794 fi 8795 8796 fi 8797 8798 8799 8800 8801 8802 8803 # 8804 # Check to make sure the static flag actually works. 8805 # 8806 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8808 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8809 if ${lt_cv_prog_compiler_static_works+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811 else 8812 lt_cv_prog_compiler_static_works=no 8813 save_LDFLAGS="$LDFLAGS" 8814 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8815 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8817 # The linker can only warn and ignore the option if not recognized 8818 # So say no if there are warnings 8819 if test -s conftest.err; then 8820 # Append any errors to the config.log. 8821 cat conftest.err 1>&5 8822 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8824 if diff conftest.exp conftest.er2 >/dev/null; then 8825 lt_cv_prog_compiler_static_works=yes 8826 fi 8827 else 8828 lt_cv_prog_compiler_static_works=yes 8829 fi 8830 fi 8831 $RM -r conftest* 8832 LDFLAGS="$save_LDFLAGS" 8833 8834 fi 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8836 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8837 8838 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8839 : 8840 else 8841 lt_prog_compiler_static= 8842 fi 8843 8844 8845 8846 8847 8848 8849 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8852 if ${lt_cv_prog_compiler_c_o+:} false; then : 8853 $as_echo_n "(cached) " >&6 8854 else 8855 lt_cv_prog_compiler_c_o=no 8856 $RM -r conftest 2>/dev/null 8857 mkdir conftest 8858 cd conftest 8859 mkdir out 8860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8861 8862 lt_compiler_flag="-o out/conftest2.$ac_objext" 8863 # Insert the option either (1) after the last *FLAGS variable, or 8864 # (2) before a word containing "conftest.", or (3) at the end. 8865 # Note that $ac_compile itself does not contain backslashes and begins 8866 # with a dollar sign (not a hyphen), so the echo should work correctly. 8867 lt_compile=`echo "$ac_compile" | $SED \ 8868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8870 -e 's:$: $lt_compiler_flag:'` 8871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8872 (eval "$lt_compile" 2>out/conftest.err) 8873 ac_status=$? 8874 cat out/conftest.err >&5 8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8876 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8877 then 8878 # The compiler can only warn and ignore the option if not recognized 8879 # So say no if there are warnings 8880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8883 lt_cv_prog_compiler_c_o=yes 8884 fi 8885 fi 8886 chmod u+w . 2>&5 8887 $RM conftest* 8888 # SGI C++ compiler will create directory out/ii_files/ for 8889 # template instantiation 8890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8891 $RM out/* && rmdir out 8892 cd .. 8893 $RM -r conftest 8894 $RM conftest* 8895 8896 fi 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8898 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8899 8900 8901 8902 8903 8904 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8906 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8907 if ${lt_cv_prog_compiler_c_o+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909 else 8910 lt_cv_prog_compiler_c_o=no 8911 $RM -r conftest 2>/dev/null 8912 mkdir conftest 8913 cd conftest 8914 mkdir out 8915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8916 8917 lt_compiler_flag="-o out/conftest2.$ac_objext" 8918 # Insert the option either (1) after the last *FLAGS variable, or 8919 # (2) before a word containing "conftest.", or (3) at the end. 8920 # Note that $ac_compile itself does not contain backslashes and begins 8921 # with a dollar sign (not a hyphen), so the echo should work correctly. 8922 lt_compile=`echo "$ac_compile" | $SED \ 8923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8925 -e 's:$: $lt_compiler_flag:'` 8926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8927 (eval "$lt_compile" 2>out/conftest.err) 8928 ac_status=$? 8929 cat out/conftest.err >&5 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8932 then 8933 # The compiler can only warn and ignore the option if not recognized 8934 # So say no if there are warnings 8935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8938 lt_cv_prog_compiler_c_o=yes 8939 fi 8940 fi 8941 chmod u+w . 2>&5 8942 $RM conftest* 8943 # SGI C++ compiler will create directory out/ii_files/ for 8944 # template instantiation 8945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8946 $RM out/* && rmdir out 8947 cd .. 8948 $RM -r conftest 8949 $RM conftest* 8950 8951 fi 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8953 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8954 8955 8956 8957 8958 hard_links="nottested" 8959 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8960 # do not overwrite the value of need_locks provided by the user 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8962 $as_echo_n "checking if we can lock with hard links... " >&6; } 8963 hard_links=yes 8964 $RM conftest* 8965 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8966 touch conftest.a 8967 ln conftest.a conftest.b 2>&5 || hard_links=no 8968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8970 $as_echo "$hard_links" >&6; } 8971 if test "$hard_links" = no; then 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8973 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8974 need_locks=warn 8975 fi 8976 else 8977 need_locks=no 8978 fi 8979 8980 8981 8982 8983 8984 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8986 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8987 8988 runpath_var= 8989 allow_undefined_flag= 8990 always_export_symbols=no 8991 archive_cmds= 8992 archive_expsym_cmds= 8993 compiler_needs_object=no 8994 enable_shared_with_static_runtimes=no 8995 export_dynamic_flag_spec= 8996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8997 hardcode_automatic=no 8998 hardcode_direct=no 8999 hardcode_direct_absolute=no 9000 hardcode_libdir_flag_spec= 9001 hardcode_libdir_flag_spec_ld= 9002 hardcode_libdir_separator= 9003 hardcode_minus_L=no 9004 hardcode_shlibpath_var=unsupported 9005 inherit_rpath=no 9006 link_all_deplibs=unknown 9007 module_cmds= 9008 module_expsym_cmds= 9009 old_archive_from_new_cmds= 9010 old_archive_from_expsyms_cmds= 9011 thread_safe_flag_spec= 9012 whole_archive_flag_spec= 9013 # include_expsyms should be a list of space-separated symbols to be *always* 9014 # included in the symbol list 9015 include_expsyms= 9016 # exclude_expsyms can be an extended regexp of symbols to exclude 9017 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9018 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9019 # as well as any symbol that contains `d'. 9020 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9022 # platforms (ab)use it in PIC code, but their linkers get confused if 9023 # the symbol is explicitly referenced. Since portable code cannot 9024 # rely on this symbol name, it's probably fine to never include it in 9025 # preloaded symbol tables. 9026 # Exclude shared library initialization/finalization symbols. 9027 extract_expsyms_cmds= 9028 9029 case $host_os in 9030 cygwin* | mingw* | pw32* | cegcc*) 9031 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9032 # When not using gcc, we currently assume that we are using 9033 # Microsoft Visual C++. 9034 if test "$GCC" != yes; then 9035 with_gnu_ld=no 9036 fi 9037 ;; 9038 interix*) 9039 # we just hope/assume this is gcc and not c89 (= MSVC++) 9040 with_gnu_ld=yes 9041 ;; 9042 openbsd*) 9043 with_gnu_ld=no 9044 ;; 9045 esac 9046 9047 ld_shlibs=yes 9048 9049 # On some targets, GNU ld is compatible enough with the native linker 9050 # that we're better off using the native interface for both. 9051 lt_use_gnu_ld_interface=no 9052 if test "$with_gnu_ld" = yes; then 9053 case $host_os in 9054 aix*) 9055 # The AIX port of GNU ld has always aspired to compatibility 9056 # with the native linker. However, as the warning in the GNU ld 9057 # block says, versions before 2.19.5* couldn't really create working 9058 # shared libraries, regardless of the interface used. 9059 case `$LD -v 2>&1` in 9060 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9061 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9062 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9063 *) 9064 lt_use_gnu_ld_interface=yes 9065 ;; 9066 esac 9067 ;; 9068 *) 9069 lt_use_gnu_ld_interface=yes 9070 ;; 9071 esac 9072 fi 9073 9074 if test "$lt_use_gnu_ld_interface" = yes; then 9075 # If archive_cmds runs LD, not CC, wlarc should be empty 9076 wlarc='${wl}' 9077 9078 # Set some defaults for GNU ld with shared library support. These 9079 # are reset later if shared libraries are not supported. Putting them 9080 # here allows them to be overridden if necessary. 9081 runpath_var=LD_RUN_PATH 9082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9083 export_dynamic_flag_spec='${wl}--export-dynamic' 9084 # ancient GNU ld didn't support --whole-archive et. al. 9085 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9086 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9087 else 9088 whole_archive_flag_spec= 9089 fi 9090 supports_anon_versioning=no 9091 case `$LD -v 2>&1` in 9092 *GNU\ gold*) supports_anon_versioning=yes ;; 9093 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9094 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9095 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9096 *\ 2.11.*) ;; # other 2.11 versions 9097 *) supports_anon_versioning=yes ;; 9098 esac 9099 9100 # See if GNU ld supports shared libraries. 9101 case $host_os in 9102 aix[3-9]*) 9103 # On AIX/PPC, the GNU linker is very broken 9104 if test "$host_cpu" != ia64; then 9105 ld_shlibs=no 9106 cat <<_LT_EOF 1>&2 9107 9108 *** Warning: the GNU linker, at least up to release 2.19, is reported 9109 *** to be unable to reliably create shared libraries on AIX. 9110 *** Therefore, libtool is disabling shared libraries support. If you 9111 *** really care for shared libraries, you may want to install binutils 9112 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9113 *** You will then need to restart the configuration process. 9114 9115 _LT_EOF 9116 fi 9117 ;; 9118 9119 amigaos*) 9120 case $host_cpu in 9121 powerpc) 9122 # see comment about AmigaOS4 .so support 9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9124 archive_expsym_cmds='' 9125 ;; 9126 m68k) 9127 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)' 9128 hardcode_libdir_flag_spec='-L$libdir' 9129 hardcode_minus_L=yes 9130 ;; 9131 esac 9132 ;; 9133 9134 beos*) 9135 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9136 allow_undefined_flag=unsupported 9137 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9138 # support --undefined. This deserves some investigation. FIXME 9139 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9140 else 9141 ld_shlibs=no 9142 fi 9143 ;; 9144 9145 cygwin* | mingw* | pw32* | cegcc*) 9146 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9147 # as there is no search path for DLLs. 9148 hardcode_libdir_flag_spec='-L$libdir' 9149 export_dynamic_flag_spec='${wl}--export-all-symbols' 9150 allow_undefined_flag=unsupported 9151 always_export_symbols=no 9152 enable_shared_with_static_runtimes=yes 9153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9154 9155 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9157 # If the export-symbols file already is a .def file (1st line 9158 # is EXPORTS), use it as is; otherwise, prepend... 9159 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9160 cp $export_symbols $output_objdir/$soname.def; 9161 else 9162 echo EXPORTS > $output_objdir/$soname.def; 9163 cat $export_symbols >> $output_objdir/$soname.def; 9164 fi~ 9165 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9166 else 9167 ld_shlibs=no 9168 fi 9169 ;; 9170 9171 haiku*) 9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9173 link_all_deplibs=yes 9174 ;; 9175 9176 interix[3-9]*) 9177 hardcode_direct=no 9178 hardcode_shlibpath_var=no 9179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9180 export_dynamic_flag_spec='${wl}-E' 9181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9182 # Instead, shared libraries are loaded at an image base (0x10000000 by 9183 # default) and relocated if they conflict, which is a slow very memory 9184 # consuming and fragmenting process. To avoid this, we pick a random, 9185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9186 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9187 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9188 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' 9189 ;; 9190 9191 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 9192 tmp_diet=no 9193 if test "$host_os" = linux-dietlibc; then 9194 case $cc_basename in 9195 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9196 esac 9197 fi 9198 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9199 && test "$tmp_diet" = no 9200 then 9201 tmp_addflag=' $pic_flag' 9202 tmp_sharedflag='-shared' 9203 case $cc_basename,$host_cpu in 9204 pgcc*) # Portland Group C compiler 9205 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' 9206 tmp_addflag=' $pic_flag' 9207 ;; 9208 pgf77* | pgf90* | pgf95* | pgfortran*) 9209 # Portland Group f77 and f90 compilers 9210 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' 9211 tmp_addflag=' $pic_flag -Mnomain' ;; 9212 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9213 tmp_addflag=' -i_dynamic' ;; 9214 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9215 tmp_addflag=' -i_dynamic -nofor_main' ;; 9216 ifc* | ifort*) # Intel Fortran compiler 9217 tmp_addflag=' -nofor_main' ;; 9218 lf95*) # Lahey Fortran 8.1 9219 whole_archive_flag_spec= 9220 tmp_sharedflag='--shared' ;; 9221 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9222 tmp_sharedflag='-qmkshrobj' 9223 tmp_addflag= ;; 9224 nvcc*) # Cuda Compiler Driver 2.2 9225 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' 9226 compiler_needs_object=yes 9227 ;; 9228 esac 9229 case `$CC -V 2>&1 | sed 5q` in 9230 *Sun\ C*) # Sun C 5.9 9231 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' 9232 compiler_needs_object=yes 9233 tmp_sharedflag='-G' ;; 9234 *Sun\ F*) # Sun Fortran 8.3 9235 tmp_sharedflag='-G' ;; 9236 esac 9237 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9238 9239 if test "x$supports_anon_versioning" = xyes; then 9240 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9242 echo "local: *; };" >> $output_objdir/$libname.ver~ 9243 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9244 fi 9245 9246 case $cc_basename in 9247 xlf* | bgf* | bgxlf* | mpixlf*) 9248 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9249 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9250 hardcode_libdir_flag_spec= 9251 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9252 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9253 if test "x$supports_anon_versioning" = xyes; then 9254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9256 echo "local: *; };" >> $output_objdir/$libname.ver~ 9257 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9258 fi 9259 ;; 9260 esac 9261 else 9262 ld_shlibs=no 9263 fi 9264 ;; 9265 9266 netbsd*) 9267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9269 wlarc= 9270 else 9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9272 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9273 fi 9274 ;; 9275 9276 solaris*) 9277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9278 ld_shlibs=no 9279 cat <<_LT_EOF 1>&2 9280 9281 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9282 *** create shared libraries on Solaris systems. Therefore, libtool 9283 *** is disabling shared libraries support. We urge you to upgrade GNU 9284 *** binutils to release 2.9.1 or newer. Another option is to modify 9285 *** your PATH or compiler configuration so that the native linker is 9286 *** used, and then restart. 9287 9288 _LT_EOF 9289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9292 else 9293 ld_shlibs=no 9294 fi 9295 ;; 9296 9297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9298 case `$LD -v 2>&1` in 9299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9300 ld_shlibs=no 9301 cat <<_LT_EOF 1>&2 9302 9303 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9304 *** reliably create shared libraries on SCO systems. Therefore, libtool 9305 *** is disabling shared libraries support. We urge you to upgrade GNU 9306 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9307 *** your PATH or compiler configuration so that the native linker is 9308 *** used, and then restart. 9309 9310 _LT_EOF 9311 ;; 9312 *) 9313 # For security reasons, it is highly recommended that you always 9314 # use absolute paths for naming shared libraries, and exclude the 9315 # DT_RUNPATH tag from executables and libraries. But doing so 9316 # requires that you compile everything twice, which is a pain. 9317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9321 else 9322 ld_shlibs=no 9323 fi 9324 ;; 9325 esac 9326 ;; 9327 9328 sunos4*) 9329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9330 wlarc= 9331 hardcode_direct=yes 9332 hardcode_shlibpath_var=no 9333 ;; 9334 9335 *) 9336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9338 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9339 else 9340 ld_shlibs=no 9341 fi 9342 ;; 9343 esac 9344 9345 if test "$ld_shlibs" = no; then 9346 runpath_var= 9347 hardcode_libdir_flag_spec= 9348 export_dynamic_flag_spec= 9349 whole_archive_flag_spec= 9350 fi 9351 else 9352 # PORTME fill in a description of your system's linker (not GNU ld) 9353 case $host_os in 9354 aix3*) 9355 allow_undefined_flag=unsupported 9356 always_export_symbols=yes 9357 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' 9358 # Note: this linker hardcodes the directories in LIBPATH if there 9359 # are no directories specified by -L. 9360 hardcode_minus_L=yes 9361 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9362 # Neither direct hardcoding nor static linking is supported with a 9363 # broken collect2. 9364 hardcode_direct=unsupported 9365 fi 9366 ;; 9367 9368 aix[4-9]*) 9369 if test "$host_cpu" = ia64; then 9370 # On IA64, the linker does run time linking by default, so we don't 9371 # have to do anything special. 9372 aix_use_runtimelinking=no 9373 exp_sym_flag='-Bexport' 9374 no_entry_flag="" 9375 else 9376 # If we're using GNU nm, then we don't want the "-C" option. 9377 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9378 # Also, AIX nm treats weak defined symbols like other global 9379 # defined symbols, whereas GNU nm marks them as "W". 9380 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9381 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' 9382 else 9383 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' 9384 fi 9385 aix_use_runtimelinking=no 9386 9387 # Test if we are trying to use run time linking or normal 9388 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9389 # need to do runtime linking. 9390 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9391 for ld_flag in $LDFLAGS; do 9392 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9393 aix_use_runtimelinking=yes 9394 break 9395 fi 9396 done 9397 ;; 9398 esac 9399 9400 exp_sym_flag='-bexport' 9401 no_entry_flag='-bnoentry' 9402 fi 9403 9404 # When large executables or shared objects are built, AIX ld can 9405 # have problems creating the table of contents. If linking a library 9406 # or program results in "error TOC overflow" add -mminimal-toc to 9407 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9408 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9409 9410 archive_cmds='' 9411 hardcode_direct=yes 9412 hardcode_direct_absolute=yes 9413 hardcode_libdir_separator=':' 9414 link_all_deplibs=yes 9415 file_list_spec='${wl}-f,' 9416 9417 if test "$GCC" = yes; then 9418 case $host_os in aix4.[012]|aix4.[012].*) 9419 # We only want to do this on AIX 4.2 and lower, the check 9420 # below for broken collect2 doesn't work under 4.3+ 9421 collect2name=`${CC} -print-prog-name=collect2` 9422 if test -f "$collect2name" && 9423 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9424 then 9425 # We have reworked collect2 9426 : 9427 else 9428 # We have old collect2 9429 hardcode_direct=unsupported 9430 # It fails to find uninstalled libraries when the uninstalled 9431 # path is not listed in the libpath. Setting hardcode_minus_L 9432 # to unsupported forces relinking 9433 hardcode_minus_L=yes 9434 hardcode_libdir_flag_spec='-L$libdir' 9435 hardcode_libdir_separator= 9436 fi 9437 ;; 9438 esac 9439 shared_flag='-shared' 9440 if test "$aix_use_runtimelinking" = yes; then 9441 shared_flag="$shared_flag "'${wl}-G' 9442 fi 9443 else 9444 # not using gcc 9445 if test "$host_cpu" = ia64; then 9446 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9447 # chokes on -Wl,-G. The following line is correct: 9448 shared_flag='-G' 9449 else 9450 if test "$aix_use_runtimelinking" = yes; then 9451 shared_flag='${wl}-G' 9452 else 9453 shared_flag='${wl}-bM:SRE' 9454 fi 9455 fi 9456 fi 9457 9458 export_dynamic_flag_spec='${wl}-bexpall' 9459 # It seems that -bexpall does not export symbols beginning with 9460 # underscore (_), so it is better to generate a list of symbols to export. 9461 always_export_symbols=yes 9462 if test "$aix_use_runtimelinking" = yes; then 9463 # Warning - without using the other runtime loading flags (-brtl), 9464 # -berok will link without error, but may produce a broken library. 9465 allow_undefined_flag='-berok' 9466 # Determine the default libpath from the value encoded in an 9467 # empty executable. 9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469 /* end confdefs.h. */ 9470 9471 int 9472 main () 9473 { 9474 9475 ; 9476 return 0; 9477 } 9478 _ACEOF 9479 if ac_fn_c_try_link "$LINENO"; then : 9480 9481 lt_aix_libpath_sed=' 9482 /Import File Strings/,/^$/ { 9483 /^0/ { 9484 s/^0 *\(.*\)$/\1/ 9485 p 9486 } 9487 }' 9488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9489 # Check for a 64-bit object if we didn't find anything. 9490 if test -z "$aix_libpath"; then 9491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9492 fi 9493 fi 9494 rm -f core conftest.err conftest.$ac_objext \ 9495 conftest$ac_exeext conftest.$ac_ext 9496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9497 9498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9499 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" 9500 else 9501 if test "$host_cpu" = ia64; then 9502 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9503 allow_undefined_flag="-z nodefs" 9504 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" 9505 else 9506 # Determine the default libpath from the value encoded in an 9507 # empty executable. 9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9509 /* end confdefs.h. */ 9510 9511 int 9512 main () 9513 { 9514 9515 ; 9516 return 0; 9517 } 9518 _ACEOF 9519 if ac_fn_c_try_link "$LINENO"; then : 9520 9521 lt_aix_libpath_sed=' 9522 /Import File Strings/,/^$/ { 9523 /^0/ { 9524 s/^0 *\(.*\)$/\1/ 9525 p 9526 } 9527 }' 9528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9529 # Check for a 64-bit object if we didn't find anything. 9530 if test -z "$aix_libpath"; then 9531 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9532 fi 9533 fi 9534 rm -f core conftest.err conftest.$ac_objext \ 9535 conftest$ac_exeext conftest.$ac_ext 9536 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9537 9538 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9539 # Warning - without using the other run time loading flags, 9540 # -berok will link without error, but may produce a broken library. 9541 no_undefined_flag=' ${wl}-bernotok' 9542 allow_undefined_flag=' ${wl}-berok' 9543 if test "$with_gnu_ld" = yes; then 9544 # We only use this code for GNU lds that support --whole-archive. 9545 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9546 else 9547 # Exported symbols can be pulled into shared objects from archives 9548 whole_archive_flag_spec='$convenience' 9549 fi 9550 archive_cmds_need_lc=yes 9551 # This is similar to how AIX traditionally builds its shared libraries. 9552 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' 9553 fi 9554 fi 9555 ;; 9556 9557 amigaos*) 9558 case $host_cpu in 9559 powerpc) 9560 # see comment about AmigaOS4 .so support 9561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9562 archive_expsym_cmds='' 9563 ;; 9564 m68k) 9565 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)' 9566 hardcode_libdir_flag_spec='-L$libdir' 9567 hardcode_minus_L=yes 9568 ;; 9569 esac 9570 ;; 9571 9572 bsdi[45]*) 9573 export_dynamic_flag_spec=-rdynamic 9574 ;; 9575 9576 cygwin* | mingw* | pw32* | cegcc*) 9577 # When not using gcc, we currently assume that we are using 9578 # Microsoft Visual C++. 9579 # hardcode_libdir_flag_spec is actually meaningless, as there is 9580 # no search path for DLLs. 9581 hardcode_libdir_flag_spec=' ' 9582 allow_undefined_flag=unsupported 9583 # Tell ltmain to make .lib files, not .a files. 9584 libext=lib 9585 # Tell ltmain to make .dll files, not .so files. 9586 shrext_cmds=".dll" 9587 # FIXME: Setting linknames here is a bad hack. 9588 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9589 # The linker will automatically build a .lib file if we build a DLL. 9590 old_archive_from_new_cmds='true' 9591 # FIXME: Should let the user specify the lib program. 9592 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9593 fix_srcfile_path='`cygpath -w "$srcfile"`' 9594 enable_shared_with_static_runtimes=yes 9595 ;; 9596 9597 darwin* | rhapsody*) 9598 9599 9600 9601 # Publish an arg to allow the user to select that Darwin host (and target) 9602 # libraries should be given install-names like @rpath/libfoo.dylib. This 9603 # requires that the user of the library then adds an 'rpath' to the DSO that 9604 # needs access. 9605 # NOTE: there are defaults below, for systems that support rpaths. The person 9606 # configuring can override the defaults for any system version that supports 9607 # them - they are, however, forced off for system versions without support. 9608 # Check whether --enable-darwin-at-rpath was given. 9609 if test "${enable_darwin_at_rpath+set}" = set; then : 9610 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then 9611 # This is not supported before macOS 10.5 / Darwin9. 9612 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in 9613 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5 9615 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;} 9616 enable_darwin_at_rpath=no 9617 ;; 9618 esac 9619 fi 9620 else 9621 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in 9622 # As above, before 10.5 / Darwin9 this does not work. 9623 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) 9624 enable_darwin_at_rpath=no 9625 ;; 9626 9627 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use 9628 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key 9629 # system executables (e.g. /bin/sh). Force rpaths on for these systems. 9630 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* ) 9631 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5 9632 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;} 9633 enable_darwin_at_rpath=yes 9634 ;; 9635 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can 9636 # work with either DYLD_LIBRARY_PATH or embedded rpaths. 9637 9638 esac 9639 9640 fi 9641 9642 9643 archive_cmds_need_lc=no 9644 hardcode_direct=no 9645 hardcode_automatic=yes 9646 hardcode_shlibpath_var=unsupported 9647 if test "$lt_cv_ld_force_load" = "yes"; then 9648 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\"`' 9649 else 9650 whole_archive_flag_spec='' 9651 fi 9652 link_all_deplibs=yes 9653 allow_undefined_flag="$_lt_dar_allow_undefined" 9654 case $cc_basename in 9655 ifort*) _lt_dar_can_shared=yes ;; 9656 *) _lt_dar_can_shared=$GCC ;; 9657 esac 9658 if test "$_lt_dar_can_shared" = "yes"; then 9659 output_verbose_link_cmd=func_echo_all 9660 _lt_install_name='\$rpath/\$soname' 9661 if test "x$enable_darwin_at_rpath" = "xyes"; then 9662 _lt_install_name='@rpath/\$soname' 9663 fi 9664 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}" 9665 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9666 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}" 9667 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}" 9668 9669 else 9670 ld_shlibs=no 9671 fi 9672 9673 ;; 9674 9675 dgux*) 9676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9677 hardcode_libdir_flag_spec='-L$libdir' 9678 hardcode_shlibpath_var=no 9679 ;; 9680 9681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9682 # support. Future versions do this automatically, but an explicit c++rt0.o 9683 # does not break anything, and helps significantly (at the cost of a little 9684 # extra space). 9685 freebsd2.2*) 9686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9687 hardcode_libdir_flag_spec='-R$libdir' 9688 hardcode_direct=yes 9689 hardcode_shlibpath_var=no 9690 ;; 9691 9692 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9693 freebsd2.*) 9694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9695 hardcode_direct=yes 9696 hardcode_minus_L=yes 9697 hardcode_shlibpath_var=no 9698 ;; 9699 9700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9701 freebsd* | dragonfly*) 9702 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9703 hardcode_libdir_flag_spec='-R$libdir' 9704 hardcode_direct=yes 9705 hardcode_shlibpath_var=no 9706 ;; 9707 9708 hpux9*) 9709 if test "$GCC" = yes; then 9710 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' 9711 else 9712 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' 9713 fi 9714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9715 hardcode_libdir_separator=: 9716 hardcode_direct=yes 9717 9718 # hardcode_minus_L: Not really in the search PATH, 9719 # but as the default location of the library. 9720 hardcode_minus_L=yes 9721 export_dynamic_flag_spec='${wl}-E' 9722 ;; 9723 9724 hpux10*) 9725 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9726 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9727 else 9728 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9729 fi 9730 if test "$with_gnu_ld" = no; then 9731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9732 hardcode_libdir_flag_spec_ld='+b $libdir' 9733 hardcode_libdir_separator=: 9734 hardcode_direct=yes 9735 hardcode_direct_absolute=yes 9736 export_dynamic_flag_spec='${wl}-E' 9737 # hardcode_minus_L: Not really in the search PATH, 9738 # but as the default location of the library. 9739 hardcode_minus_L=yes 9740 fi 9741 ;; 9742 9743 hpux11*) 9744 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9745 case $host_cpu in 9746 hppa*64*) 9747 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9748 ;; 9749 ia64*) 9750 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9751 ;; 9752 *) 9753 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9754 ;; 9755 esac 9756 else 9757 case $host_cpu in 9758 hppa*64*) 9759 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9760 ;; 9761 ia64*) 9762 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9763 ;; 9764 *) 9765 9766 # Older versions of the 11.00 compiler do not understand -b yet 9767 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9769 $as_echo_n "checking if $CC understands -b... " >&6; } 9770 if ${lt_cv_prog_compiler__b+:} false; then : 9771 $as_echo_n "(cached) " >&6 9772 else 9773 lt_cv_prog_compiler__b=no 9774 save_LDFLAGS="$LDFLAGS" 9775 LDFLAGS="$LDFLAGS -b" 9776 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9778 # The linker can only warn and ignore the option if not recognized 9779 # So say no if there are warnings 9780 if test -s conftest.err; then 9781 # Append any errors to the config.log. 9782 cat conftest.err 1>&5 9783 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9785 if diff conftest.exp conftest.er2 >/dev/null; then 9786 lt_cv_prog_compiler__b=yes 9787 fi 9788 else 9789 lt_cv_prog_compiler__b=yes 9790 fi 9791 fi 9792 $RM -r conftest* 9793 LDFLAGS="$save_LDFLAGS" 9794 9795 fi 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9797 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9798 9799 if test x"$lt_cv_prog_compiler__b" = xyes; then 9800 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9801 else 9802 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9803 fi 9804 9805 ;; 9806 esac 9807 fi 9808 if test "$with_gnu_ld" = no; then 9809 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9810 hardcode_libdir_separator=: 9811 9812 case $host_cpu in 9813 hppa*64*|ia64*) 9814 hardcode_direct=no 9815 hardcode_shlibpath_var=no 9816 ;; 9817 *) 9818 hardcode_direct=yes 9819 hardcode_direct_absolute=yes 9820 export_dynamic_flag_spec='${wl}-E' 9821 9822 # hardcode_minus_L: Not really in the search PATH, 9823 # but as the default location of the library. 9824 hardcode_minus_L=yes 9825 ;; 9826 esac 9827 fi 9828 ;; 9829 9830 irix5* | irix6* | nonstopux*) 9831 if test "$GCC" = yes; then 9832 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' 9833 # Try to use the -exported_symbol ld option, if it does not 9834 # work, assume that -exports_file does not work either and 9835 # implicitly export all symbols. 9836 save_LDFLAGS="$LDFLAGS" 9837 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9839 /* end confdefs.h. */ 9840 int foo(void) {} 9841 _ACEOF 9842 if ac_fn_c_try_link "$LINENO"; then : 9843 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' 9844 9845 fi 9846 rm -f core conftest.err conftest.$ac_objext \ 9847 conftest$ac_exeext conftest.$ac_ext 9848 LDFLAGS="$save_LDFLAGS" 9849 else 9850 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' 9851 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' 9852 fi 9853 archive_cmds_need_lc='no' 9854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9855 hardcode_libdir_separator=: 9856 inherit_rpath=yes 9857 link_all_deplibs=yes 9858 ;; 9859 9860 netbsd*) 9861 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9862 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9863 else 9864 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9865 fi 9866 hardcode_libdir_flag_spec='-R$libdir' 9867 hardcode_direct=yes 9868 hardcode_shlibpath_var=no 9869 ;; 9870 9871 newsos6) 9872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9873 hardcode_direct=yes 9874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9875 hardcode_libdir_separator=: 9876 hardcode_shlibpath_var=no 9877 ;; 9878 9879 *nto* | *qnx*) 9880 ;; 9881 9882 openbsd*) 9883 if test -f /usr/libexec/ld.so; then 9884 hardcode_direct=yes 9885 hardcode_shlibpath_var=no 9886 hardcode_direct_absolute=yes 9887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9888 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9889 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9890 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9891 export_dynamic_flag_spec='${wl}-E' 9892 else 9893 case $host_os in 9894 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9895 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9896 hardcode_libdir_flag_spec='-R$libdir' 9897 ;; 9898 *) 9899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9900 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9901 ;; 9902 esac 9903 fi 9904 else 9905 ld_shlibs=no 9906 fi 9907 ;; 9908 9909 os2*) 9910 hardcode_libdir_flag_spec='-L$libdir' 9911 hardcode_minus_L=yes 9912 allow_undefined_flag=unsupported 9913 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' 9914 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9915 ;; 9916 9917 osf3*) 9918 if test "$GCC" = yes; then 9919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9920 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' 9921 else 9922 allow_undefined_flag=' -expect_unresolved \*' 9923 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' 9924 fi 9925 archive_cmds_need_lc='no' 9926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9927 hardcode_libdir_separator=: 9928 ;; 9929 9930 osf4* | osf5*) # as osf3* with the addition of -msym flag 9931 if test "$GCC" = yes; then 9932 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9933 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' 9934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9935 else 9936 allow_undefined_flag=' -expect_unresolved \*' 9937 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' 9938 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~ 9939 $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' 9940 9941 # Both c and cxx compiler support -rpath directly 9942 hardcode_libdir_flag_spec='-rpath $libdir' 9943 fi 9944 archive_cmds_need_lc='no' 9945 hardcode_libdir_separator=: 9946 ;; 9947 9948 solaris*) 9949 no_undefined_flag=' -z defs' 9950 if test "$GCC" = yes; then 9951 wlarc='${wl}' 9952 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9953 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9954 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9955 else 9956 case `$CC -V 2>&1` in 9957 *"Compilers 5.0"*) 9958 wlarc='' 9959 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9961 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9962 ;; 9963 *) 9964 wlarc='${wl}' 9965 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9967 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9968 ;; 9969 esac 9970 fi 9971 hardcode_libdir_flag_spec='-R$libdir' 9972 hardcode_shlibpath_var=no 9973 case $host_os in 9974 solaris2.[0-5] | solaris2.[0-5].*) ;; 9975 *) 9976 # The compiler driver will combine and reorder linker options, 9977 # but understands `-z linker_flag'. GCC discards it without `$wl', 9978 # but is careful enough not to reorder. 9979 # Supported since Solaris 2.6 (maybe 2.5.1?) 9980 if test "$GCC" = yes; then 9981 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9982 else 9983 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9984 fi 9985 ;; 9986 esac 9987 link_all_deplibs=yes 9988 ;; 9989 9990 sunos4*) 9991 if test "x$host_vendor" = xsequent; then 9992 # Use $CC to link under sequent, because it throws in some extra .o 9993 # files that make .init and .fini sections work. 9994 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9995 else 9996 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9997 fi 9998 hardcode_libdir_flag_spec='-L$libdir' 9999 hardcode_direct=yes 10000 hardcode_minus_L=yes 10001 hardcode_shlibpath_var=no 10002 ;; 10003 10004 sysv4) 10005 case $host_vendor in 10006 sni) 10007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10008 hardcode_direct=yes # is this really true??? 10009 ;; 10010 siemens) 10011 ## LD is ld it makes a PLAMLIB 10012 ## CC just makes a GrossModule. 10013 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10014 reload_cmds='$CC -r -o $output$reload_objs' 10015 hardcode_direct=no 10016 ;; 10017 motorola) 10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10019 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10020 ;; 10021 esac 10022 runpath_var='LD_RUN_PATH' 10023 hardcode_shlibpath_var=no 10024 ;; 10025 10026 sysv4.3*) 10027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10028 hardcode_shlibpath_var=no 10029 export_dynamic_flag_spec='-Bexport' 10030 ;; 10031 10032 sysv4*MP*) 10033 if test -d /usr/nec; then 10034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10035 hardcode_shlibpath_var=no 10036 runpath_var=LD_RUN_PATH 10037 hardcode_runpath_var=yes 10038 ld_shlibs=yes 10039 fi 10040 ;; 10041 10042 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10043 no_undefined_flag='${wl}-z,text' 10044 archive_cmds_need_lc=no 10045 hardcode_shlibpath_var=no 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 sysv5* | sco3.2v5* | sco5v6*) 10058 # Note: We can NOT use -z defs as we might desire, because we do not 10059 # link with -lc, and that would cause any symbols used from libc to 10060 # always be unresolved, which means just about no library would 10061 # ever link correctly. If we're not using GNU ld we use -z text 10062 # though, which does catch some bad symbols but isn't as heavy-handed 10063 # as -z defs. 10064 no_undefined_flag='${wl}-z,text' 10065 allow_undefined_flag='${wl}-z,nodefs' 10066 archive_cmds_need_lc=no 10067 hardcode_shlibpath_var=no 10068 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10069 hardcode_libdir_separator=':' 10070 link_all_deplibs=yes 10071 export_dynamic_flag_spec='${wl}-Bexport' 10072 runpath_var='LD_RUN_PATH' 10073 10074 if test "$GCC" = yes; then 10075 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10076 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10077 else 10078 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10079 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10080 fi 10081 ;; 10082 10083 uts4*) 10084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10085 hardcode_libdir_flag_spec='-L$libdir' 10086 hardcode_shlibpath_var=no 10087 ;; 10088 10089 *) 10090 ld_shlibs=no 10091 ;; 10092 esac 10093 10094 if test x$host_vendor = xsni; then 10095 case $host in 10096 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10097 export_dynamic_flag_spec='${wl}-Blargedynsym' 10098 ;; 10099 esac 10100 fi 10101 fi 10102 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10104 $as_echo "$ld_shlibs" >&6; } 10105 test "$ld_shlibs" = no && can_build_shared=no 10106 10107 with_gnu_ld=$with_gnu_ld 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 # 10124 # Do we need to explicitly link libc? 10125 # 10126 case "x$archive_cmds_need_lc" in 10127 x|xyes) 10128 # Assume -lc should be added 10129 archive_cmds_need_lc=yes 10130 10131 if test "$enable_shared" = yes && test "$GCC" = yes; then 10132 case $archive_cmds in 10133 *'~'*) 10134 # FIXME: we may have to deal with multi-command sequences. 10135 ;; 10136 '$CC '*) 10137 # Test whether the compiler implicitly links with -lc since on some 10138 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10139 # to ld, don't add -lc before -lgcc. 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10141 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10142 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10143 $as_echo_n "(cached) " >&6 10144 else 10145 $RM conftest* 10146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10147 10148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10149 (eval $ac_compile) 2>&5 10150 ac_status=$? 10151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10152 test $ac_status = 0; } 2>conftest.err; then 10153 soname=conftest 10154 lib=conftest 10155 libobjs=conftest.$ac_objext 10156 deplibs= 10157 wl=$lt_prog_compiler_wl 10158 pic_flag=$lt_prog_compiler_pic 10159 compiler_flags=-v 10160 linker_flags=-v 10161 verstring= 10162 output_objdir=. 10163 libname=conftest 10164 lt_save_allow_undefined_flag=$allow_undefined_flag 10165 allow_undefined_flag= 10166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10167 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10168 ac_status=$? 10169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10170 test $ac_status = 0; } 10171 then 10172 lt_cv_archive_cmds_need_lc=no 10173 else 10174 lt_cv_archive_cmds_need_lc=yes 10175 fi 10176 allow_undefined_flag=$lt_save_allow_undefined_flag 10177 else 10178 cat conftest.err 1>&5 10179 fi 10180 $RM conftest* 10181 10182 fi 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10184 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10185 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10186 ;; 10187 esac 10188 fi 10189 ;; 10190 esac 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 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10349 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10350 10351 if test "$GCC" = yes; then 10352 case $host_os in 10353 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10354 *) lt_awk_arg="/^libraries:/" ;; 10355 esac 10356 case $host_os in 10357 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10358 *) lt_sed_strip_eq="s,=/,/,g" ;; 10359 esac 10360 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10361 case $lt_search_path_spec in 10362 *\;*) 10363 # if the path contains ";" then we assume it to be the separator 10364 # otherwise default to the standard path separator (i.e. ":") - it is 10365 # assumed that no part of a normal pathname contains ";" but that should 10366 # okay in the real world where ";" in dirpaths is itself problematic. 10367 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10368 ;; 10369 *) 10370 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10371 ;; 10372 esac 10373 # Ok, now we have the path, separated by spaces, we can step through it 10374 # and add multilib dir if necessary. 10375 lt_tmp_lt_search_path_spec= 10376 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10377 for lt_sys_path in $lt_search_path_spec; do 10378 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10379 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10380 else 10381 test -d "$lt_sys_path" && \ 10382 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10383 fi 10384 done 10385 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10386 BEGIN {RS=" "; FS="/|\n";} { 10387 lt_foo=""; 10388 lt_count=0; 10389 for (lt_i = NF; lt_i > 0; lt_i--) { 10390 if ($lt_i != "" && $lt_i != ".") { 10391 if ($lt_i == "..") { 10392 lt_count++; 10393 } else { 10394 if (lt_count == 0) { 10395 lt_foo="/" $lt_i lt_foo; 10396 } else { 10397 lt_count--; 10398 } 10399 } 10400 } 10401 } 10402 if (lt_foo != "") { lt_freq[lt_foo]++; } 10403 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10404 }'` 10405 # AWK program above erroneously prepends '/' to C:/dos/paths 10406 # for these hosts. 10407 case $host_os in 10408 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10409 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10410 esac 10411 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10412 else 10413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10414 fi 10415 library_names_spec= 10416 libname_spec='lib$name' 10417 soname_spec= 10418 shrext_cmds=".so" 10419 postinstall_cmds= 10420 postuninstall_cmds= 10421 finish_cmds= 10422 finish_eval= 10423 shlibpath_var= 10424 shlibpath_overrides_runpath=unknown 10425 version_type=none 10426 dynamic_linker="$host_os ld.so" 10427 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10428 need_lib_prefix=unknown 10429 hardcode_into_libs=no 10430 10431 # when you set need_version to no, make sure it does not cause -set_version 10432 # flags to be left without arguments 10433 need_version=unknown 10434 10435 case $host_os in 10436 aix3*) 10437 version_type=linux 10438 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10439 shlibpath_var=LIBPATH 10440 10441 # AIX 3 has no versioning support, so we append a major version to the name. 10442 soname_spec='${libname}${release}${shared_ext}$major' 10443 ;; 10444 10445 aix[4-9]*) 10446 version_type=linux 10447 need_lib_prefix=no 10448 need_version=no 10449 hardcode_into_libs=yes 10450 if test "$host_cpu" = ia64; then 10451 # AIX 5 supports IA64 10452 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10453 shlibpath_var=LD_LIBRARY_PATH 10454 else 10455 # With GCC up to 2.95.x, collect2 would create an import file 10456 # for dependence libraries. The import file would start with 10457 # the line `#! .'. This would cause the generated library to 10458 # depend on `.', always an invalid library. This was fixed in 10459 # development snapshots of GCC prior to 3.0. 10460 case $host_os in 10461 aix4 | aix4.[01] | aix4.[01].*) 10462 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10463 echo ' yes ' 10464 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10465 : 10466 else 10467 can_build_shared=no 10468 fi 10469 ;; 10470 esac 10471 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10472 # soname into executable. Probably we can add versioning support to 10473 # collect2, so additional links can be useful in future. 10474 if test "$aix_use_runtimelinking" = yes; then 10475 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10476 # instead of lib<name>.a to let people know that these are not 10477 # typical AIX shared libraries. 10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10479 else 10480 # We preserve .a as extension for shared libraries through AIX4.2 10481 # and later when we are not doing run time linking. 10482 library_names_spec='${libname}${release}.a $libname.a' 10483 soname_spec='${libname}${release}${shared_ext}$major' 10484 fi 10485 shlibpath_var=LIBPATH 10486 fi 10487 ;; 10488 10489 amigaos*) 10490 case $host_cpu in 10491 powerpc) 10492 # Since July 2007 AmigaOS4 officially supports .so libraries. 10493 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10495 ;; 10496 m68k) 10497 library_names_spec='$libname.ixlibrary $libname.a' 10498 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10499 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' 10500 ;; 10501 esac 10502 ;; 10503 10504 beos*) 10505 library_names_spec='${libname}${shared_ext}' 10506 dynamic_linker="$host_os ld.so" 10507 shlibpath_var=LIBRARY_PATH 10508 ;; 10509 10510 bsdi[45]*) 10511 version_type=linux 10512 need_version=no 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10516 shlibpath_var=LD_LIBRARY_PATH 10517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10519 # the default ld.so.conf also contains /usr/contrib/lib and 10520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10521 # libtool to hard-code these into programs 10522 ;; 10523 10524 cygwin* | mingw* | pw32* | cegcc*) 10525 version_type=windows 10526 shrext_cmds=".dll" 10527 need_version=no 10528 need_lib_prefix=no 10529 10530 case $GCC,$host_os in 10531 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10532 library_names_spec='$libname.dll.a' 10533 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10534 postinstall_cmds='base_file=`basename \${file}`~ 10535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10536 dldir=$destdir/`dirname \$dlpath`~ 10537 test -d \$dldir || mkdir -p \$dldir~ 10538 $install_prog $dir/$dlname \$dldir/$dlname~ 10539 chmod a+x \$dldir/$dlname~ 10540 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10541 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10542 fi' 10543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10544 dlpath=$dir/\$dldll~ 10545 $RM \$dlpath' 10546 shlibpath_overrides_runpath=yes 10547 10548 case $host_os in 10549 cygwin*) 10550 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10551 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10552 10553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10554 ;; 10555 mingw* | cegcc*) 10556 # MinGW DLLs use traditional 'lib' prefix 10557 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10558 ;; 10559 pw32*) 10560 # pw32 DLLs use 'pw' prefix rather than 'lib' 10561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10562 ;; 10563 esac 10564 ;; 10565 10566 *) 10567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10568 ;; 10569 esac 10570 dynamic_linker='Win32 ld.exe' 10571 # FIXME: first we should search . and the directory the executable is in 10572 shlibpath_var=PATH 10573 ;; 10574 10575 darwin* | rhapsody*) 10576 dynamic_linker="$host_os dyld" 10577 version_type=darwin 10578 need_lib_prefix=no 10579 need_version=no 10580 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10581 soname_spec='${libname}${release}${major}$shared_ext' 10582 shlibpath_overrides_runpath=yes 10583 shlibpath_var=DYLD_LIBRARY_PATH 10584 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10585 10586 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10588 ;; 10589 10590 dgux*) 10591 version_type=linux 10592 need_lib_prefix=no 10593 need_version=no 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10595 soname_spec='${libname}${release}${shared_ext}$major' 10596 shlibpath_var=LD_LIBRARY_PATH 10597 ;; 10598 10599 freebsd* | dragonfly*) 10600 # DragonFly does not have aout. When/if they implement a new 10601 # versioning mechanism, adjust this. 10602 if test -x /usr/bin/objformat; then 10603 objformat=`/usr/bin/objformat` 10604 else 10605 case $host_os in 10606 freebsd[23].*) objformat=aout ;; 10607 *) objformat=elf ;; 10608 esac 10609 fi 10610 version_type=freebsd-$objformat 10611 case $version_type in 10612 freebsd-elf*) 10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10614 need_version=no 10615 need_lib_prefix=no 10616 ;; 10617 freebsd-*) 10618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10619 need_version=yes 10620 ;; 10621 esac 10622 shlibpath_var=LD_LIBRARY_PATH 10623 case $host_os in 10624 freebsd2.*) 10625 shlibpath_overrides_runpath=yes 10626 ;; 10627 freebsd3.[01]* | freebsdelf3.[01]*) 10628 shlibpath_overrides_runpath=yes 10629 hardcode_into_libs=yes 10630 ;; 10631 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10632 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10633 shlibpath_overrides_runpath=no 10634 hardcode_into_libs=yes 10635 ;; 10636 *) # from 4.6 on, and DragonFly 10637 shlibpath_overrides_runpath=yes 10638 hardcode_into_libs=yes 10639 ;; 10640 esac 10641 ;; 10642 10643 haiku*) 10644 version_type=linux 10645 need_lib_prefix=no 10646 need_version=no 10647 dynamic_linker="$host_os runtime_loader" 10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10649 soname_spec='${libname}${release}${shared_ext}$major' 10650 shlibpath_var=LIBRARY_PATH 10651 shlibpath_overrides_runpath=yes 10652 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10653 hardcode_into_libs=yes 10654 ;; 10655 10656 hpux9* | hpux10* | hpux11*) 10657 # Give a soname corresponding to the major version so that dld.sl refuses to 10658 # link against other versions. 10659 version_type=sunos 10660 need_lib_prefix=no 10661 need_version=no 10662 case $host_cpu in 10663 ia64*) 10664 shrext_cmds='.so' 10665 hardcode_into_libs=yes 10666 dynamic_linker="$host_os dld.so" 10667 shlibpath_var=LD_LIBRARY_PATH 10668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10670 soname_spec='${libname}${release}${shared_ext}$major' 10671 if test "X$HPUX_IA64_MODE" = X32; then 10672 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10673 else 10674 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10675 fi 10676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10677 ;; 10678 hppa*64*) 10679 shrext_cmds='.sl' 10680 hardcode_into_libs=yes 10681 dynamic_linker="$host_os dld.sl" 10682 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10683 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10685 soname_spec='${libname}${release}${shared_ext}$major' 10686 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10688 ;; 10689 *) 10690 shrext_cmds='.sl' 10691 dynamic_linker="$host_os dld.sl" 10692 shlibpath_var=SHLIB_PATH 10693 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10695 soname_spec='${libname}${release}${shared_ext}$major' 10696 ;; 10697 esac 10698 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10699 postinstall_cmds='chmod 555 $lib' 10700 # or fails outright, so override atomically: 10701 install_override_mode=555 10702 ;; 10703 10704 interix[3-9]*) 10705 version_type=linux 10706 need_lib_prefix=no 10707 need_version=no 10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10709 soname_spec='${libname}${release}${shared_ext}$major' 10710 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10711 shlibpath_var=LD_LIBRARY_PATH 10712 shlibpath_overrides_runpath=no 10713 hardcode_into_libs=yes 10714 ;; 10715 10716 irix5* | irix6* | nonstopux*) 10717 case $host_os in 10718 nonstopux*) version_type=nonstopux ;; 10719 *) 10720 if test "$lt_cv_prog_gnu_ld" = yes; then 10721 version_type=linux 10722 else 10723 version_type=irix 10724 fi ;; 10725 esac 10726 need_lib_prefix=no 10727 need_version=no 10728 soname_spec='${libname}${release}${shared_ext}$major' 10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10730 case $host_os in 10731 irix5* | nonstopux*) 10732 libsuff= shlibsuff= 10733 ;; 10734 *) 10735 case $LD in # libtool.m4 will add one of these switches to LD 10736 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10737 libsuff= shlibsuff= libmagic=32-bit;; 10738 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10739 libsuff=32 shlibsuff=N32 libmagic=N32;; 10740 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10741 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10742 *) libsuff= shlibsuff= libmagic=never-match;; 10743 esac 10744 ;; 10745 esac 10746 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10747 shlibpath_overrides_runpath=no 10748 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10749 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10750 hardcode_into_libs=yes 10751 ;; 10752 10753 # No shared lib support for Linux oldld, aout, or coff. 10754 linux*oldld* | linux*aout* | linux*coff*) 10755 dynamic_linker=no 10756 ;; 10757 10758 # This must be Linux ELF. 10759 10760 # uclinux* changes (here and below) have been submitted to the libtool 10761 # project, but have not yet been accepted: they are GCC-local changes 10762 # for the time being. (See 10763 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10764 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10765 version_type=linux 10766 need_lib_prefix=no 10767 need_version=no 10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10769 soname_spec='${libname}${release}${shared_ext}$major' 10770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10771 shlibpath_var=LD_LIBRARY_PATH 10772 shlibpath_overrides_runpath=no 10773 10774 # Some binutils ld are patched to set DT_RUNPATH 10775 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10776 $as_echo_n "(cached) " >&6 10777 else 10778 lt_cv_shlibpath_overrides_runpath=no 10779 save_LDFLAGS=$LDFLAGS 10780 save_libdir=$libdir 10781 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10782 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10784 /* end confdefs.h. */ 10785 10786 int 10787 main () 10788 { 10789 10790 ; 10791 return 0; 10792 } 10793 _ACEOF 10794 if ac_fn_c_try_link "$LINENO"; then : 10795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10796 lt_cv_shlibpath_overrides_runpath=yes 10797 fi 10798 fi 10799 rm -f core conftest.err conftest.$ac_objext \ 10800 conftest$ac_exeext conftest.$ac_ext 10801 LDFLAGS=$save_LDFLAGS 10802 libdir=$save_libdir 10803 10804 fi 10805 10806 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10807 10808 # This implies no fast_install, which is unacceptable. 10809 # Some rework will be needed to allow for fast_install 10810 # before this can be enabled. 10811 hardcode_into_libs=yes 10812 10813 # Append ld.so.conf contents to the search path 10814 if test -f /etc/ld.so.conf; then 10815 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' ' '` 10816 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10817 fi 10818 10819 # We used to test for /lib/ld.so.1 and disable shared libraries on 10820 # powerpc, because MkLinux only supported shared libraries with the 10821 # GNU dynamic linker. Since this was broken with cross compilers, 10822 # most powerpc-linux boxes support dynamic linking these days and 10823 # people can always --disable-shared, the test was removed, and we 10824 # assume the GNU/Linux dynamic linker is in use. 10825 dynamic_linker='GNU/Linux ld.so' 10826 ;; 10827 10828 netbsd*) 10829 version_type=sunos 10830 need_lib_prefix=no 10831 need_version=no 10832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10835 dynamic_linker='NetBSD (a.out) ld.so' 10836 else 10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10838 soname_spec='${libname}${release}${shared_ext}$major' 10839 dynamic_linker='NetBSD ld.elf_so' 10840 fi 10841 shlibpath_var=LD_LIBRARY_PATH 10842 shlibpath_overrides_runpath=yes 10843 hardcode_into_libs=yes 10844 ;; 10845 10846 newsos6) 10847 version_type=linux 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10849 shlibpath_var=LD_LIBRARY_PATH 10850 shlibpath_overrides_runpath=yes 10851 ;; 10852 10853 *nto* | *qnx*) 10854 version_type=qnx 10855 need_lib_prefix=no 10856 need_version=no 10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10858 soname_spec='${libname}${release}${shared_ext}$major' 10859 shlibpath_var=LD_LIBRARY_PATH 10860 shlibpath_overrides_runpath=no 10861 hardcode_into_libs=yes 10862 dynamic_linker='ldqnx.so' 10863 ;; 10864 10865 openbsd*) 10866 version_type=sunos 10867 sys_lib_dlsearch_path_spec="/usr/lib" 10868 need_lib_prefix=no 10869 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10870 case $host_os in 10871 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10872 *) need_version=no ;; 10873 esac 10874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10876 shlibpath_var=LD_LIBRARY_PATH 10877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10878 case $host_os in 10879 openbsd2.[89] | openbsd2.[89].*) 10880 shlibpath_overrides_runpath=no 10881 ;; 10882 *) 10883 shlibpath_overrides_runpath=yes 10884 ;; 10885 esac 10886 else 10887 shlibpath_overrides_runpath=yes 10888 fi 10889 ;; 10890 10891 os2*) 10892 libname_spec='$name' 10893 shrext_cmds=".dll" 10894 need_lib_prefix=no 10895 library_names_spec='$libname${shared_ext} $libname.a' 10896 dynamic_linker='OS/2 ld.exe' 10897 shlibpath_var=LIBPATH 10898 ;; 10899 10900 osf3* | osf4* | osf5*) 10901 version_type=osf 10902 need_lib_prefix=no 10903 need_version=no 10904 soname_spec='${libname}${release}${shared_ext}$major' 10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10906 shlibpath_var=LD_LIBRARY_PATH 10907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10908 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10909 ;; 10910 10911 rdos*) 10912 dynamic_linker=no 10913 ;; 10914 10915 solaris*) 10916 version_type=linux 10917 need_lib_prefix=no 10918 need_version=no 10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10920 soname_spec='${libname}${release}${shared_ext}$major' 10921 shlibpath_var=LD_LIBRARY_PATH 10922 shlibpath_overrides_runpath=yes 10923 hardcode_into_libs=yes 10924 # ldd complains unless libraries are executable 10925 postinstall_cmds='chmod +x $lib' 10926 ;; 10927 10928 sunos4*) 10929 version_type=sunos 10930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10932 shlibpath_var=LD_LIBRARY_PATH 10933 shlibpath_overrides_runpath=yes 10934 if test "$with_gnu_ld" = yes; then 10935 need_lib_prefix=no 10936 fi 10937 need_version=yes 10938 ;; 10939 10940 sysv4 | sysv4.3*) 10941 version_type=linux 10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10943 soname_spec='${libname}${release}${shared_ext}$major' 10944 shlibpath_var=LD_LIBRARY_PATH 10945 case $host_vendor in 10946 sni) 10947 shlibpath_overrides_runpath=no 10948 need_lib_prefix=no 10949 runpath_var=LD_RUN_PATH 10950 ;; 10951 siemens) 10952 need_lib_prefix=no 10953 ;; 10954 motorola) 10955 need_lib_prefix=no 10956 need_version=no 10957 shlibpath_overrides_runpath=no 10958 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10959 ;; 10960 esac 10961 ;; 10962 10963 sysv4*MP*) 10964 if test -d /usr/nec ;then 10965 version_type=linux 10966 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10967 soname_spec='$libname${shared_ext}.$major' 10968 shlibpath_var=LD_LIBRARY_PATH 10969 fi 10970 ;; 10971 10972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10973 version_type=freebsd-elf 10974 need_lib_prefix=no 10975 need_version=no 10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10977 soname_spec='${libname}${release}${shared_ext}$major' 10978 shlibpath_var=LD_LIBRARY_PATH 10979 shlibpath_overrides_runpath=yes 10980 hardcode_into_libs=yes 10981 if test "$with_gnu_ld" = yes; then 10982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10983 else 10984 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10985 case $host_os in 10986 sco3.2v5*) 10987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10988 ;; 10989 esac 10990 fi 10991 sys_lib_dlsearch_path_spec='/usr/lib' 10992 ;; 10993 10994 tpf*) 10995 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10996 version_type=linux 10997 need_lib_prefix=no 10998 need_version=no 10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11000 shlibpath_var=LD_LIBRARY_PATH 11001 shlibpath_overrides_runpath=no 11002 hardcode_into_libs=yes 11003 ;; 11004 11005 uts4*) 11006 version_type=linux 11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11008 soname_spec='${libname}${release}${shared_ext}$major' 11009 shlibpath_var=LD_LIBRARY_PATH 11010 ;; 11011 11012 # Shared libraries for VwWorks, >= 7 only at this stage 11013 # and (fpic) still incompatible with "large" code models 11014 # in a few configurations. Only for RTP mode in any case, 11015 # and upon explicit request at configure time. 11016 vxworks7*) 11017 dynamic_linker=no 11018 case ${with_multisubdir}-${enable_shared} in 11019 *large*) 11020 ;; 11021 *mrtp*-yes) 11022 version_type=linux 11023 need_lib_prefix=no 11024 need_version=no 11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11026 soname_spec='${libname}${release}${shared_ext}$major' 11027 dynamic_linker="$host_os module_loader" 11028 ;; 11029 esac 11030 ;; 11031 *) 11032 dynamic_linker=no 11033 ;; 11034 esac 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11036 $as_echo "$dynamic_linker" >&6; } 11037 test "$dynamic_linker" = no && can_build_shared=no 11038 11039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11040 if test "$GCC" = yes; then 11041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11042 fi 11043 11044 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11045 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11046 fi 11047 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11048 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11049 fi 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 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11143 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11144 hardcode_action= 11145 if test -n "$hardcode_libdir_flag_spec" || 11146 test -n "$runpath_var" || 11147 test "X$hardcode_automatic" = "Xyes" ; then 11148 11149 # We can hardcode non-existent directories. 11150 if test "$hardcode_direct" != no && 11151 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11152 # have to relink, otherwise we might link with an installed library 11153 # when we should be linking with a yet-to-be-installed one 11154 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11155 test "$hardcode_minus_L" != no; then 11156 # Linking always hardcodes the temporary library directory. 11157 hardcode_action=relink 11158 else 11159 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11160 hardcode_action=immediate 11161 fi 11162 else 11163 # We cannot hardcode anything, or else we can only hardcode existing 11164 # directories. 11165 hardcode_action=unsupported 11166 fi 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11168 $as_echo "$hardcode_action" >&6; } 11169 11170 if test "$hardcode_action" = relink || 11171 test "$inherit_rpath" = yes; then 11172 # Fast installation is not supported 11173 enable_fast_install=no 11174 elif test "$shlibpath_overrides_runpath" = yes || 11175 test "$enable_shared" = no; then 11176 # Fast installation is not necessary 11177 enable_fast_install=needless 11178 fi 11179 11180 11181 11182 11183 11184 11185 if test "x$enable_dlopen" != xyes; then 11186 enable_dlopen=unknown 11187 enable_dlopen_self=unknown 11188 enable_dlopen_self_static=unknown 11189 else 11190 lt_cv_dlopen=no 11191 lt_cv_dlopen_libs= 11192 11193 case $host_os in 11194 beos*) 11195 lt_cv_dlopen="load_add_on" 11196 lt_cv_dlopen_libs= 11197 lt_cv_dlopen_self=yes 11198 ;; 11199 11200 mingw* | pw32* | cegcc*) 11201 lt_cv_dlopen="LoadLibrary" 11202 lt_cv_dlopen_libs= 11203 ;; 11204 11205 cygwin*) 11206 lt_cv_dlopen="dlopen" 11207 lt_cv_dlopen_libs= 11208 ;; 11209 11210 darwin*) 11211 # if libdl is installed we need to link against it 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11213 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11214 if ${ac_cv_lib_dl_dlopen+:} false; then : 11215 $as_echo_n "(cached) " >&6 11216 else 11217 ac_check_lib_save_LIBS=$LIBS 11218 LIBS="-ldl $LIBS" 11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11220 /* end confdefs.h. */ 11221 11222 /* Override any GCC internal prototype to avoid an error. 11223 Use char because int might match the return type of a GCC 11224 builtin and then its argument prototype would still apply. */ 11225 #ifdef __cplusplus 11226 extern "C" 11227 #endif 11228 char dlopen (); 11229 int 11230 main () 11231 { 11232 return dlopen (); 11233 ; 11234 return 0; 11235 } 11236 _ACEOF 11237 if ac_fn_c_try_link "$LINENO"; then : 11238 ac_cv_lib_dl_dlopen=yes 11239 else 11240 ac_cv_lib_dl_dlopen=no 11241 fi 11242 rm -f core conftest.err conftest.$ac_objext \ 11243 conftest$ac_exeext conftest.$ac_ext 11244 LIBS=$ac_check_lib_save_LIBS 11245 fi 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11247 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11248 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11250 else 11251 11252 lt_cv_dlopen="dyld" 11253 lt_cv_dlopen_libs= 11254 lt_cv_dlopen_self=yes 11255 11256 fi 11257 11258 ;; 11259 11260 *) 11261 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11262 if test "x$ac_cv_func_shl_load" = xyes; then : 11263 lt_cv_dlopen="shl_load" 11264 else 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11266 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11267 if ${ac_cv_lib_dld_shl_load+:} false; then : 11268 $as_echo_n "(cached) " >&6 11269 else 11270 ac_check_lib_save_LIBS=$LIBS 11271 LIBS="-ldld $LIBS" 11272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11273 /* end confdefs.h. */ 11274 11275 /* Override any GCC internal prototype to avoid an error. 11276 Use char because int might match the return type of a GCC 11277 builtin and then its argument prototype would still apply. */ 11278 #ifdef __cplusplus 11279 extern "C" 11280 #endif 11281 char shl_load (); 11282 int 11283 main () 11284 { 11285 return shl_load (); 11286 ; 11287 return 0; 11288 } 11289 _ACEOF 11290 if ac_fn_c_try_link "$LINENO"; then : 11291 ac_cv_lib_dld_shl_load=yes 11292 else 11293 ac_cv_lib_dld_shl_load=no 11294 fi 11295 rm -f core conftest.err conftest.$ac_objext \ 11296 conftest$ac_exeext conftest.$ac_ext 11297 LIBS=$ac_check_lib_save_LIBS 11298 fi 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11300 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11301 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11302 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11303 else 11304 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11305 if test "x$ac_cv_func_dlopen" = xyes; then : 11306 lt_cv_dlopen="dlopen" 11307 else 11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11309 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11310 if ${ac_cv_lib_dl_dlopen+:} false; then : 11311 $as_echo_n "(cached) " >&6 11312 else 11313 ac_check_lib_save_LIBS=$LIBS 11314 LIBS="-ldl $LIBS" 11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11316 /* end confdefs.h. */ 11317 11318 /* Override any GCC internal prototype to avoid an error. 11319 Use char because int might match the return type of a GCC 11320 builtin and then its argument prototype would still apply. */ 11321 #ifdef __cplusplus 11322 extern "C" 11323 #endif 11324 char dlopen (); 11325 int 11326 main () 11327 { 11328 return dlopen (); 11329 ; 11330 return 0; 11331 } 11332 _ACEOF 11333 if ac_fn_c_try_link "$LINENO"; then : 11334 ac_cv_lib_dl_dlopen=yes 11335 else 11336 ac_cv_lib_dl_dlopen=no 11337 fi 11338 rm -f core conftest.err conftest.$ac_objext \ 11339 conftest$ac_exeext conftest.$ac_ext 11340 LIBS=$ac_check_lib_save_LIBS 11341 fi 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11343 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11344 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11345 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11346 else 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11348 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11349 if ${ac_cv_lib_svld_dlopen+:} false; then : 11350 $as_echo_n "(cached) " >&6 11351 else 11352 ac_check_lib_save_LIBS=$LIBS 11353 LIBS="-lsvld $LIBS" 11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11355 /* end confdefs.h. */ 11356 11357 /* Override any GCC internal prototype to avoid an error. 11358 Use char because int might match the return type of a GCC 11359 builtin and then its argument prototype would still apply. */ 11360 #ifdef __cplusplus 11361 extern "C" 11362 #endif 11363 char dlopen (); 11364 int 11365 main () 11366 { 11367 return dlopen (); 11368 ; 11369 return 0; 11370 } 11371 _ACEOF 11372 if ac_fn_c_try_link "$LINENO"; then : 11373 ac_cv_lib_svld_dlopen=yes 11374 else 11375 ac_cv_lib_svld_dlopen=no 11376 fi 11377 rm -f core conftest.err conftest.$ac_objext \ 11378 conftest$ac_exeext conftest.$ac_ext 11379 LIBS=$ac_check_lib_save_LIBS 11380 fi 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11382 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11383 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11385 else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11387 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11388 if ${ac_cv_lib_dld_dld_link+:} false; then : 11389 $as_echo_n "(cached) " >&6 11390 else 11391 ac_check_lib_save_LIBS=$LIBS 11392 LIBS="-ldld $LIBS" 11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11394 /* end confdefs.h. */ 11395 11396 /* Override any GCC internal prototype to avoid an error. 11397 Use char because int might match the return type of a GCC 11398 builtin and then its argument prototype would still apply. */ 11399 #ifdef __cplusplus 11400 extern "C" 11401 #endif 11402 char dld_link (); 11403 int 11404 main () 11405 { 11406 return dld_link (); 11407 ; 11408 return 0; 11409 } 11410 _ACEOF 11411 if ac_fn_c_try_link "$LINENO"; then : 11412 ac_cv_lib_dld_dld_link=yes 11413 else 11414 ac_cv_lib_dld_dld_link=no 11415 fi 11416 rm -f core conftest.err conftest.$ac_objext \ 11417 conftest$ac_exeext conftest.$ac_ext 11418 LIBS=$ac_check_lib_save_LIBS 11419 fi 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11421 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11422 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11424 fi 11425 11426 11427 fi 11428 11429 11430 fi 11431 11432 11433 fi 11434 11435 11436 fi 11437 11438 11439 fi 11440 11441 ;; 11442 esac 11443 11444 if test "x$lt_cv_dlopen" != xno; then 11445 enable_dlopen=yes 11446 else 11447 enable_dlopen=no 11448 fi 11449 11450 case $lt_cv_dlopen in 11451 dlopen) 11452 save_CPPFLAGS="$CPPFLAGS" 11453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11454 11455 save_LDFLAGS="$LDFLAGS" 11456 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11457 11458 save_LIBS="$LIBS" 11459 LIBS="$lt_cv_dlopen_libs $LIBS" 11460 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11462 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11463 if ${lt_cv_dlopen_self+:} false; then : 11464 $as_echo_n "(cached) " >&6 11465 else 11466 if test "$cross_compiling" = yes; then : 11467 lt_cv_dlopen_self=cross 11468 else 11469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11470 lt_status=$lt_dlunknown 11471 cat > conftest.$ac_ext <<_LT_EOF 11472 #line 11472 "configure" 11473 #include "confdefs.h" 11474 11475 #if HAVE_DLFCN_H 11476 #include <dlfcn.h> 11477 #endif 11478 11479 #include <stdio.h> 11480 11481 #ifdef RTLD_GLOBAL 11482 # define LT_DLGLOBAL RTLD_GLOBAL 11483 #else 11484 # ifdef DL_GLOBAL 11485 # define LT_DLGLOBAL DL_GLOBAL 11486 # else 11487 # define LT_DLGLOBAL 0 11488 # endif 11489 #endif 11490 11491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11492 find out it does not work in some platform. */ 11493 #ifndef LT_DLLAZY_OR_NOW 11494 # ifdef RTLD_LAZY 11495 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11496 # else 11497 # ifdef DL_LAZY 11498 # define LT_DLLAZY_OR_NOW DL_LAZY 11499 # else 11500 # ifdef RTLD_NOW 11501 # define LT_DLLAZY_OR_NOW RTLD_NOW 11502 # else 11503 # ifdef DL_NOW 11504 # define LT_DLLAZY_OR_NOW DL_NOW 11505 # else 11506 # define LT_DLLAZY_OR_NOW 0 11507 # endif 11508 # endif 11509 # endif 11510 # endif 11511 #endif 11512 11513 /* When -fvisbility=hidden is used, assume the code has been annotated 11514 correspondingly for the symbols needed. */ 11515 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11516 void fnord () __attribute__((visibility("default"))); 11517 #endif 11518 11519 void fnord () { int i=42; } 11520 int main () 11521 { 11522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11523 int status = $lt_dlunknown; 11524 11525 if (self) 11526 { 11527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11528 else 11529 { 11530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11531 else puts (dlerror ()); 11532 } 11533 /* dlclose (self); */ 11534 } 11535 else 11536 puts (dlerror ()); 11537 11538 return status; 11539 } 11540 _LT_EOF 11541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11542 (eval $ac_link) 2>&5 11543 ac_status=$? 11544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11546 (./conftest; exit; ) >&5 2>/dev/null 11547 lt_status=$? 11548 case x$lt_status in 11549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11551 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11552 esac 11553 else : 11554 # compilation failed 11555 lt_cv_dlopen_self=no 11556 fi 11557 fi 11558 rm -fr conftest* 11559 11560 11561 fi 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11563 $as_echo "$lt_cv_dlopen_self" >&6; } 11564 11565 if test "x$lt_cv_dlopen_self" = xyes; then 11566 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11568 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11569 if ${lt_cv_dlopen_self_static+:} false; then : 11570 $as_echo_n "(cached) " >&6 11571 else 11572 if test "$cross_compiling" = yes; then : 11573 lt_cv_dlopen_self_static=cross 11574 else 11575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11576 lt_status=$lt_dlunknown 11577 cat > conftest.$ac_ext <<_LT_EOF 11578 #line 11578 "configure" 11579 #include "confdefs.h" 11580 11581 #if HAVE_DLFCN_H 11582 #include <dlfcn.h> 11583 #endif 11584 11585 #include <stdio.h> 11586 11587 #ifdef RTLD_GLOBAL 11588 # define LT_DLGLOBAL RTLD_GLOBAL 11589 #else 11590 # ifdef DL_GLOBAL 11591 # define LT_DLGLOBAL DL_GLOBAL 11592 # else 11593 # define LT_DLGLOBAL 0 11594 # endif 11595 #endif 11596 11597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11598 find out it does not work in some platform. */ 11599 #ifndef LT_DLLAZY_OR_NOW 11600 # ifdef RTLD_LAZY 11601 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11602 # else 11603 # ifdef DL_LAZY 11604 # define LT_DLLAZY_OR_NOW DL_LAZY 11605 # else 11606 # ifdef RTLD_NOW 11607 # define LT_DLLAZY_OR_NOW RTLD_NOW 11608 # else 11609 # ifdef DL_NOW 11610 # define LT_DLLAZY_OR_NOW DL_NOW 11611 # else 11612 # define LT_DLLAZY_OR_NOW 0 11613 # endif 11614 # endif 11615 # endif 11616 # endif 11617 #endif 11618 11619 /* When -fvisbility=hidden is used, assume the code has been annotated 11620 correspondingly for the symbols needed. */ 11621 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11622 void fnord () __attribute__((visibility("default"))); 11623 #endif 11624 11625 void fnord () { int i=42; } 11626 int main () 11627 { 11628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11629 int status = $lt_dlunknown; 11630 11631 if (self) 11632 { 11633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11634 else 11635 { 11636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11637 else puts (dlerror ()); 11638 } 11639 /* dlclose (self); */ 11640 } 11641 else 11642 puts (dlerror ()); 11643 11644 return status; 11645 } 11646 _LT_EOF 11647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11648 (eval $ac_link) 2>&5 11649 ac_status=$? 11650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11651 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11652 (./conftest; exit; ) >&5 2>/dev/null 11653 lt_status=$? 11654 case x$lt_status in 11655 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11656 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11657 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11658 esac 11659 else : 11660 # compilation failed 11661 lt_cv_dlopen_self_static=no 11662 fi 11663 fi 11664 rm -fr conftest* 11665 11666 11667 fi 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11669 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11670 fi 11671 11672 CPPFLAGS="$save_CPPFLAGS" 11673 LDFLAGS="$save_LDFLAGS" 11674 LIBS="$save_LIBS" 11675 ;; 11676 esac 11677 11678 case $lt_cv_dlopen_self in 11679 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11680 *) enable_dlopen_self=unknown ;; 11681 esac 11682 11683 case $lt_cv_dlopen_self_static in 11684 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11685 *) enable_dlopen_self_static=unknown ;; 11686 esac 11687 fi 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 striplib= 11706 old_striplib= 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11708 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11709 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11710 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11711 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11713 $as_echo "yes" >&6; } 11714 else 11715 # FIXME - insert some real tests, host_os isn't really good enough 11716 case $host_os in 11717 darwin*) 11718 if test -n "$STRIP" ; then 11719 striplib="$STRIP -x" 11720 old_striplib="$STRIP -S" 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11722 $as_echo "yes" >&6; } 11723 else 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11725 $as_echo "no" >&6; } 11726 fi 11727 ;; 11728 *) 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11730 $as_echo "no" >&6; } 11731 ;; 11732 esac 11733 fi 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 # Report which library types will actually be built 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11748 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11750 $as_echo "$can_build_shared" >&6; } 11751 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11753 $as_echo_n "checking whether to build shared libraries... " >&6; } 11754 test "$can_build_shared" = "no" && enable_shared=no 11755 11756 # On AIX, shared libraries and static libraries use the same namespace, and 11757 # are all built from PIC. 11758 case $host_os in 11759 aix3*) 11760 test "$enable_shared" = yes && enable_static=no 11761 if test -n "$RANLIB"; then 11762 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11763 postinstall_cmds='$RANLIB $lib' 11764 fi 11765 ;; 11766 11767 aix[4-9]*) 11768 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11769 test "$enable_shared" = yes && enable_static=no 11770 fi 11771 ;; 11772 esac 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11774 $as_echo "$enable_shared" >&6; } 11775 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11777 $as_echo_n "checking whether to build static libraries... " >&6; } 11778 # Make sure either enable_shared or enable_static is yes. 11779 test "$enable_shared" = yes || enable_static=yes 11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11781 $as_echo "$enable_static" >&6; } 11782 11783 11784 11785 11786 fi 11787 ac_ext=c 11788 ac_cpp='$CPP $CPPFLAGS' 11789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11791 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11792 11793 CC="$lt_save_CC" 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 ac_config_commands="$ac_config_commands libtool" 11808 11809 11810 11811 11812 # Only expand once: 11813 11814 11815 11816 11817 11818 case $host in 11819 *-cygwin* | *-mingw*) 11820 # 'host' will be top-level target in the case of a target lib, 11821 # we must compare to with_cross_host to decide if this is a native 11822 # or cross-compiler and select where to install dlls appropriately. 11823 if test -n "$with_cross_host" && 11824 test x"$with_cross_host" != x"no"; then 11825 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 11826 else 11827 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 11828 fi 11829 ;; 11830 *) 11831 lt_host_flags= 11832 ;; 11833 esac 11834 11835 11836 11837 11838 11839 if test x$enable_darwin_at_rpath = xyes; then 11840 ENABLE_DARWIN_AT_RPATH_TRUE= 11841 ENABLE_DARWIN_AT_RPATH_FALSE='#' 11842 else 11843 ENABLE_DARWIN_AT_RPATH_TRUE='#' 11844 ENABLE_DARWIN_AT_RPATH_FALSE= 11845 fi 11846 11847 11848 11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11850 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11851 # Check whether --enable-maintainer-mode was given. 11852 if test "${enable_maintainer_mode+set}" = set; then : 11853 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11854 else 11855 USE_MAINTAINER_MODE=no 11856 fi 11857 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11859 $as_echo "$USE_MAINTAINER_MODE" >&6; } 11860 if test $USE_MAINTAINER_MODE = yes; then 11861 MAINTAINER_MODE_TRUE= 11862 MAINTAINER_MODE_FALSE='#' 11863 else 11864 MAINTAINER_MODE_TRUE='#' 11865 MAINTAINER_MODE_FALSE= 11866 fi 11867 11868 MAINT=$MAINTAINER_MODE_TRUE 11869 11870 11871 11872 # Create a spec file, so that compile/link tests don't fail 11873 test -f libgfortran.spec || touch libgfortran.spec 11874 FCFLAGS="$FCFLAGS -L." 11875 11876 # We need gfortran to compile parts of the library 11877 # We can't use AC_PROG_FC because it expects a fully working gfortran. 11878 #AC_PROG_FC(gfortran) 11879 case `echo $GFORTRAN` in 11880 -* | no* ) 11881 FC=no ;; 11882 *) 11883 set dummy $GFORTRAN; ac_word=$2 11884 if test -x "$ac_word"; then 11885 FC="$GFORTRAN" 11886 else 11887 FC=no 11888 fi ;; 11889 esac 11890 ac_ext=${ac_fc_srcext-f} 11891 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 11892 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 11893 ac_compiler_gnu=$ac_cv_fc_compiler_gnu 11894 if test -n "$ac_tool_prefix"; then 11895 for ac_prog in gfortran 11896 do 11897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11898 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11900 $as_echo_n "checking for $ac_word... " >&6; } 11901 if ${ac_cv_prog_FC+:} false; then : 11902 $as_echo_n "(cached) " >&6 11903 else 11904 if test -n "$FC"; then 11905 ac_cv_prog_FC="$FC" # Let the user override the test. 11906 else 11907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11908 for as_dir in $PATH 11909 do 11910 IFS=$as_save_IFS 11911 test -z "$as_dir" && as_dir=. 11912 for ac_exec_ext in '' $ac_executable_extensions; do 11913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11914 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 11915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11916 break 2 11917 fi 11918 done 11919 done 11920 IFS=$as_save_IFS 11921 11922 fi 11923 fi 11924 FC=$ac_cv_prog_FC 11925 if test -n "$FC"; then 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 11927 $as_echo "$FC" >&6; } 11928 else 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11930 $as_echo "no" >&6; } 11931 fi 11932 11933 11934 test -n "$FC" && break 11935 done 11936 fi 11937 if test -z "$FC"; then 11938 ac_ct_FC=$FC 11939 for ac_prog in gfortran 11940 do 11941 # Extract the first word of "$ac_prog", so it can be a program name with args. 11942 set dummy $ac_prog; ac_word=$2 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11944 $as_echo_n "checking for $ac_word... " >&6; } 11945 if ${ac_cv_prog_ac_ct_FC+:} false; then : 11946 $as_echo_n "(cached) " >&6 11947 else 11948 if test -n "$ac_ct_FC"; then 11949 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 11950 else 11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11952 for as_dir in $PATH 11953 do 11954 IFS=$as_save_IFS 11955 test -z "$as_dir" && as_dir=. 11956 for ac_exec_ext in '' $ac_executable_extensions; do 11957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11958 ac_cv_prog_ac_ct_FC="$ac_prog" 11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11960 break 2 11961 fi 11962 done 11963 done 11964 IFS=$as_save_IFS 11965 11966 fi 11967 fi 11968 ac_ct_FC=$ac_cv_prog_ac_ct_FC 11969 if test -n "$ac_ct_FC"; then 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 11971 $as_echo "$ac_ct_FC" >&6; } 11972 else 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11974 $as_echo "no" >&6; } 11975 fi 11976 11977 11978 test -n "$ac_ct_FC" && break 11979 done 11980 11981 if test "x$ac_ct_FC" = x; then 11982 FC="" 11983 else 11984 case $cross_compiling:$ac_tool_warned in 11985 yes:) 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11988 ac_tool_warned=yes ;; 11989 esac 11990 FC=$ac_ct_FC 11991 fi 11992 fi 11993 11994 11995 # Provide some information about the compiler. 11996 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 11997 set X $ac_compile 11998 ac_compiler=$2 11999 for ac_option in --version -v -V -qversion; do 12000 { { ac_try="$ac_compiler $ac_option >&5" 12001 case "(($ac_try" in 12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12003 *) ac_try_echo=$ac_try;; 12004 esac 12005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12006 $as_echo "$ac_try_echo"; } >&5 12007 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12008 ac_status=$? 12009 if test -s conftest.err; then 12010 sed '10a\ 12011 ... rest of stderr output deleted ... 12012 10q' conftest.err >conftest.er1 12013 cat conftest.er1 >&5 12014 fi 12015 rm -f conftest.er1 conftest.err 12016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12017 test $ac_status = 0; } 12018 done 12019 rm -f a.out 12020 12021 # If we don't use `.F' as extension, the preprocessor is not run on the 12022 # input file. (Note that this only needs to work for GNU compilers.) 12023 ac_save_ext=$ac_ext 12024 ac_ext=F 12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 12026 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 12027 if ${ac_cv_fc_compiler_gnu+:} false; then : 12028 $as_echo_n "(cached) " >&6 12029 else 12030 cat > conftest.$ac_ext <<_ACEOF 12031 program main 12032 #ifndef __GNUC__ 12033 choke me 12034 #endif 12035 12036 end 12037 _ACEOF 12038 if ac_fn_fc_try_compile "$LINENO"; then : 12039 ac_compiler_gnu=yes 12040 else 12041 ac_compiler_gnu=no 12042 fi 12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12044 ac_cv_fc_compiler_gnu=$ac_compiler_gnu 12045 12046 fi 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 12048 $as_echo "$ac_cv_fc_compiler_gnu" >&6; } 12049 ac_ext=$ac_save_ext 12050 ac_test_FCFLAGS=${FCFLAGS+set} 12051 ac_save_FCFLAGS=$FCFLAGS 12052 FCFLAGS= 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 12054 $as_echo_n "checking whether $FC accepts -g... " >&6; } 12055 if ${ac_cv_prog_fc_g+:} false; then : 12056 $as_echo_n "(cached) " >&6 12057 else 12058 FCFLAGS=-g 12059 cat > conftest.$ac_ext <<_ACEOF 12060 program main 12061 12062 end 12063 _ACEOF 12064 if ac_fn_fc_try_compile "$LINENO"; then : 12065 ac_cv_prog_fc_g=yes 12066 else 12067 ac_cv_prog_fc_g=no 12068 fi 12069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12070 12071 fi 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 12073 $as_echo "$ac_cv_prog_fc_g" >&6; } 12074 if test "$ac_test_FCFLAGS" = set; then 12075 FCFLAGS=$ac_save_FCFLAGS 12076 elif test $ac_cv_prog_fc_g = yes; then 12077 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 12078 FCFLAGS="-g -O2" 12079 else 12080 FCFLAGS="-g" 12081 fi 12082 else 12083 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 12084 FCFLAGS="-O2" 12085 else 12086 FCFLAGS= 12087 fi 12088 fi 12089 12090 if test $ac_compiler_gnu = yes; then 12091 GFC=yes 12092 else 12093 GFC= 12094 fi 12095 ac_ext=c 12096 ac_cpp='$CPP $CPPFLAGS' 12097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12099 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12100 12101 ac_ext=${ac_fc_srcext-f} 12102 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 12103 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 12104 ac_compiler_gnu=$ac_cv_fc_compiler_gnu 12105 12106 12107 if test -z "$FC" || test "X$FC" = "Xno"; then 12108 _lt_disable_FC=yes 12109 fi 12110 12111 archive_cmds_need_lc_FC=no 12112 allow_undefined_flag_FC= 12113 always_export_symbols_FC=no 12114 archive_expsym_cmds_FC= 12115 export_dynamic_flag_spec_FC= 12116 hardcode_direct_FC=no 12117 hardcode_direct_absolute_FC=no 12118 hardcode_libdir_flag_spec_FC= 12119 hardcode_libdir_flag_spec_ld_FC= 12120 hardcode_libdir_separator_FC= 12121 hardcode_minus_L_FC=no 12122 hardcode_automatic_FC=no 12123 inherit_rpath_FC=no 12124 module_cmds_FC= 12125 module_expsym_cmds_FC= 12126 link_all_deplibs_FC=unknown 12127 old_archive_cmds_FC=$old_archive_cmds 12128 reload_flag_FC=$reload_flag 12129 reload_cmds_FC=$reload_cmds 12130 no_undefined_flag_FC= 12131 whole_archive_flag_spec_FC= 12132 enable_shared_with_static_runtimes_FC=no 12133 12134 # Source file extension for fc test sources. 12135 ac_ext=${ac_fc_srcext-f} 12136 12137 # Object file extension for compiled fc test sources. 12138 objext=o 12139 objext_FC=$objext 12140 12141 # No sense in running all these tests if we already determined that 12142 # the FC compiler isn't working. Some variables (like enable_shared) 12143 # are currently assumed to apply to all compilers on this platform, 12144 # and will be corrupted by setting them based on a non-working compiler. 12145 if test "$_lt_disable_FC" != yes; then 12146 # Code to be used in simple compile tests 12147 lt_simple_compile_test_code="\ 12148 subroutine t 12149 return 12150 end 12151 " 12152 12153 # Code to be used in simple link tests 12154 lt_simple_link_test_code="\ 12155 program t 12156 end 12157 " 12158 12159 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12160 12161 12162 12163 12164 12165 12166 # If no C compiler was specified, use CC. 12167 LTCC=${LTCC-"$CC"} 12168 12169 # If no C compiler flags were specified, use CFLAGS. 12170 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12171 12172 # Allow CC to be a program name with arguments. 12173 compiler=$CC 12174 12175 12176 # save warnings/boilerplate of simple test code 12177 ac_outfile=conftest.$ac_objext 12178 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12179 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12180 _lt_compiler_boilerplate=`cat conftest.err` 12181 $RM conftest* 12182 12183 ac_outfile=conftest.$ac_objext 12184 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12185 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12186 _lt_linker_boilerplate=`cat conftest.err` 12187 $RM -r conftest* 12188 12189 12190 # Allow CC to be a program name with arguments. 12191 lt_save_CC="$CC" 12192 lt_save_GCC=$GCC 12193 CC=${FC-"f95"} 12194 compiler=$CC 12195 GCC=$ac_cv_fc_compiler_gnu 12196 12197 compiler_FC=$CC 12198 for cc_temp in $compiler""; do 12199 case $cc_temp in 12200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12202 \-*) ;; 12203 *) break;; 12204 esac 12205 done 12206 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12207 12208 12209 if test -n "$compiler"; then 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12211 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12213 $as_echo "$can_build_shared" >&6; } 12214 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12216 $as_echo_n "checking whether to build shared libraries... " >&6; } 12217 test "$can_build_shared" = "no" && enable_shared=no 12218 12219 # On AIX, shared libraries and static libraries use the same namespace, and 12220 # are all built from PIC. 12221 case $host_os in 12222 aix3*) 12223 test "$enable_shared" = yes && enable_static=no 12224 if test -n "$RANLIB"; then 12225 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12226 postinstall_cmds='$RANLIB $lib' 12227 fi 12228 ;; 12229 aix[4-9]*) 12230 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12231 test "$enable_shared" = yes && enable_static=no 12232 fi 12233 ;; 12234 esac 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12236 $as_echo "$enable_shared" >&6; } 12237 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12239 $as_echo_n "checking whether to build static libraries... " >&6; } 12240 # Make sure either enable_shared or enable_static is yes. 12241 test "$enable_shared" = yes || enable_static=yes 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12243 $as_echo "$enable_static" >&6; } 12244 12245 GCC_FC="$ac_cv_fc_compiler_gnu" 12246 LD_FC="$LD" 12247 12248 ## CAVEAT EMPTOR: 12249 ## There is no encapsulation within the following macros, do not change 12250 ## the running order or otherwise move them around unless you know exactly 12251 ## what you are doing... 12252 # Dependencies to place before and after the object being linked: 12253 predep_objects_FC= 12254 postdep_objects_FC= 12255 predeps_FC= 12256 postdeps_FC= 12257 compiler_lib_search_path_FC= 12258 12259 cat > conftest.$ac_ext <<_LT_EOF 12260 subroutine foo 12261 implicit none 12262 integer a 12263 a=0 12264 return 12265 end 12266 _LT_EOF 12267 12268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12269 (eval $ac_compile) 2>&5 12270 ac_status=$? 12271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12272 test $ac_status = 0; }; then 12273 # Parse the compiler output and extract the necessary 12274 # objects, libraries and library flags. 12275 12276 # Sentinel used to keep track of whether or not we are before 12277 # the conftest object file. 12278 pre_test_object_deps_done=no 12279 12280 for p in `eval "$output_verbose_link_cmd"`; do 12281 case $p in 12282 12283 -L* | -R* | -l*) 12284 # Some compilers place space between "-{L,R}" and the path. 12285 # Remove the space. 12286 if test $p = "-L" || 12287 test $p = "-R"; then 12288 prev=$p 12289 continue 12290 else 12291 prev= 12292 fi 12293 12294 if test "$pre_test_object_deps_done" = no; then 12295 case $p in 12296 -L* | -R*) 12297 # Internal compiler library paths should come after those 12298 # provided the user. The postdeps already come after the 12299 # user supplied libs so there is no need to process them. 12300 if test -z "$compiler_lib_search_path_FC"; then 12301 compiler_lib_search_path_FC="${prev}${p}" 12302 else 12303 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" 12304 fi 12305 ;; 12306 # The "-l" case would never come before the object being 12307 # linked, so don't bother handling this case. 12308 esac 12309 else 12310 if test -z "$postdeps_FC"; then 12311 postdeps_FC="${prev}${p}" 12312 else 12313 postdeps_FC="${postdeps_FC} ${prev}${p}" 12314 fi 12315 fi 12316 ;; 12317 12318 *.$objext) 12319 # This assumes that the test object file only shows up 12320 # once in the compiler output. 12321 if test "$p" = "conftest.$objext"; then 12322 pre_test_object_deps_done=yes 12323 continue 12324 fi 12325 12326 if test "$pre_test_object_deps_done" = no; then 12327 if test -z "$predep_objects_FC"; then 12328 predep_objects_FC="$p" 12329 else 12330 predep_objects_FC="$predep_objects_FC $p" 12331 fi 12332 else 12333 if test -z "$postdep_objects_FC"; then 12334 postdep_objects_FC="$p" 12335 else 12336 postdep_objects_FC="$postdep_objects_FC $p" 12337 fi 12338 fi 12339 ;; 12340 12341 *) ;; # Ignore the rest. 12342 12343 esac 12344 done 12345 12346 # Clean up. 12347 rm -f a.out a.exe 12348 else 12349 echo "libtool.m4: error: problem compiling FC test program" 12350 fi 12351 12352 $RM -f confest.$objext 12353 12354 # PORTME: override above test on systems where it is broken 12355 12356 12357 case " $postdeps_FC " in 12358 *" -lc "*) archive_cmds_need_lc_FC=no ;; 12359 esac 12360 compiler_lib_search_dirs_FC= 12361 if test -n "${compiler_lib_search_path_FC}"; then 12362 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12363 fi 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 lt_prog_compiler_wl_FC= 12396 lt_prog_compiler_pic_FC= 12397 lt_prog_compiler_static_FC= 12398 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12400 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12401 12402 if test "$GCC" = yes; then 12403 lt_prog_compiler_wl_FC='-Wl,' 12404 lt_prog_compiler_static_FC='-static' 12405 12406 case $host_os in 12407 aix*) 12408 # All AIX code is PIC. 12409 if test "$host_cpu" = ia64; then 12410 # AIX 5 now supports IA64 processor 12411 lt_prog_compiler_static_FC='-Bstatic' 12412 fi 12413 lt_prog_compiler_pic_FC='-fPIC' 12414 ;; 12415 12416 amigaos*) 12417 case $host_cpu in 12418 powerpc) 12419 # see comment about AmigaOS4 .so support 12420 lt_prog_compiler_pic_FC='-fPIC' 12421 ;; 12422 m68k) 12423 # FIXME: we need at least 68020 code to build shared libraries, but 12424 # adding the `-m68020' flag to GCC prevents building anything better, 12425 # like `-m68040'. 12426 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 12427 ;; 12428 esac 12429 ;; 12430 12431 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12432 # PIC is the default for these OSes. 12433 ;; 12434 12435 mingw* | cygwin* | pw32* | os2* | cegcc*) 12436 # This hack is so that the source file can tell whether it is being 12437 # built for inclusion in a dll (and should export symbols for example). 12438 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12439 # (--disable-auto-import) libraries 12440 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 12441 ;; 12442 12443 darwin* | rhapsody*) 12444 # PIC is the default on this platform 12445 # Common symbols not allowed in MH_DYLIB files 12446 lt_prog_compiler_pic_FC='-fno-common' 12447 ;; 12448 12449 haiku*) 12450 # PIC is the default for Haiku. 12451 # The "-static" flag exists, but is broken. 12452 lt_prog_compiler_static_FC= 12453 ;; 12454 12455 hpux*) 12456 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12457 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12458 # sets the default TLS model and affects inlining. 12459 case $host_cpu in 12460 hppa*64*) 12461 # +Z the default 12462 ;; 12463 *) 12464 lt_prog_compiler_pic_FC='-fPIC' 12465 ;; 12466 esac 12467 ;; 12468 12469 interix[3-9]*) 12470 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12471 # Instead, we relocate shared libraries at runtime. 12472 ;; 12473 12474 msdosdjgpp*) 12475 # Just because we use GCC doesn't mean we suddenly get shared libraries 12476 # on systems that don't support them. 12477 lt_prog_compiler_can_build_shared_FC=no 12478 enable_shared=no 12479 ;; 12480 12481 *nto* | *qnx*) 12482 # QNX uses GNU C++, but need to define -shared option too, otherwise 12483 # it will coredump. 12484 lt_prog_compiler_pic_FC='-fPIC -shared' 12485 ;; 12486 12487 sysv4*MP*) 12488 if test -d /usr/nec; then 12489 lt_prog_compiler_pic_FC=-Kconform_pic 12490 fi 12491 ;; 12492 12493 *) 12494 lt_prog_compiler_pic_FC='-fPIC' 12495 ;; 12496 esac 12497 12498 case $cc_basename in 12499 nvcc*) # Cuda Compiler Driver 2.2 12500 lt_prog_compiler_wl_FC='-Xlinker ' 12501 lt_prog_compiler_pic_FC='-Xcompiler -fPIC' 12502 ;; 12503 esac 12504 else 12505 # PORTME Check for flag to pass linker flags through the system compiler. 12506 case $host_os in 12507 aix*) 12508 lt_prog_compiler_wl_FC='-Wl,' 12509 if test "$host_cpu" = ia64; then 12510 # AIX 5 now supports IA64 processor 12511 lt_prog_compiler_static_FC='-Bstatic' 12512 else 12513 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 12514 fi 12515 ;; 12516 12517 mingw* | cygwin* | pw32* | os2* | cegcc*) 12518 # This hack is so that the source file can tell whether it is being 12519 # built for inclusion in a dll (and should export symbols for example). 12520 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 12521 ;; 12522 12523 hpux9* | hpux10* | hpux11*) 12524 lt_prog_compiler_wl_FC='-Wl,' 12525 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12526 # not for PA HP-UX. 12527 case $host_cpu in 12528 hppa*64*|ia64*) 12529 # +Z the default 12530 ;; 12531 *) 12532 lt_prog_compiler_pic_FC='+Z' 12533 ;; 12534 esac 12535 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12536 lt_prog_compiler_static_FC='${wl}-a ${wl}archive' 12537 ;; 12538 12539 irix5* | irix6* | nonstopux*) 12540 lt_prog_compiler_wl_FC='-Wl,' 12541 # PIC (with -KPIC) is the default. 12542 lt_prog_compiler_static_FC='-non_shared' 12543 ;; 12544 12545 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12546 case $cc_basename in 12547 # old Intel for x86_64 which still supported -KPIC. 12548 ecc*) 12549 lt_prog_compiler_wl_FC='-Wl,' 12550 lt_prog_compiler_pic_FC='-KPIC' 12551 lt_prog_compiler_static_FC='-static' 12552 ;; 12553 # icc used to be incompatible with GCC. 12554 # ICC 10 doesn't accept -KPIC any more. 12555 icc* | ifort*) 12556 lt_prog_compiler_wl_FC='-Wl,' 12557 lt_prog_compiler_pic_FC='-fPIC' 12558 lt_prog_compiler_static_FC='-static' 12559 ;; 12560 # Lahey Fortran 8.1. 12561 lf95*) 12562 lt_prog_compiler_wl_FC='-Wl,' 12563 lt_prog_compiler_pic_FC='--shared' 12564 lt_prog_compiler_static_FC='--static' 12565 ;; 12566 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12567 # Portland Group compilers (*not* the Pentium gcc compiler, 12568 # which looks to be a dead project) 12569 lt_prog_compiler_wl_FC='-Wl,' 12570 lt_prog_compiler_pic_FC='-fpic' 12571 lt_prog_compiler_static_FC='-Bstatic' 12572 ;; 12573 ccc*) 12574 lt_prog_compiler_wl_FC='-Wl,' 12575 # All Alpha code is PIC. 12576 lt_prog_compiler_static_FC='-non_shared' 12577 ;; 12578 xl* | bgxl* | bgf* | mpixl*) 12579 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12580 lt_prog_compiler_wl_FC='-Wl,' 12581 lt_prog_compiler_pic_FC='-qpic' 12582 lt_prog_compiler_static_FC='-qstaticlink' 12583 ;; 12584 *) 12585 case `$CC -V 2>&1 | sed 5q` in 12586 *Sun\ F* | *Sun*Fortran*) 12587 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12588 lt_prog_compiler_pic_FC='-KPIC' 12589 lt_prog_compiler_static_FC='-Bstatic' 12590 lt_prog_compiler_wl_FC='' 12591 ;; 12592 *Sun\ C*) 12593 # Sun C 5.9 12594 lt_prog_compiler_pic_FC='-KPIC' 12595 lt_prog_compiler_static_FC='-Bstatic' 12596 lt_prog_compiler_wl_FC='-Wl,' 12597 ;; 12598 esac 12599 ;; 12600 esac 12601 ;; 12602 12603 newsos6) 12604 lt_prog_compiler_pic_FC='-KPIC' 12605 lt_prog_compiler_static_FC='-Bstatic' 12606 ;; 12607 12608 *nto* | *qnx*) 12609 # QNX uses GNU C++, but need to define -shared option too, otherwise 12610 # it will coredump. 12611 lt_prog_compiler_pic_FC='-fPIC -shared' 12612 ;; 12613 12614 osf3* | osf4* | osf5*) 12615 lt_prog_compiler_wl_FC='-Wl,' 12616 # All OSF/1 code is PIC. 12617 lt_prog_compiler_static_FC='-non_shared' 12618 ;; 12619 12620 rdos*) 12621 lt_prog_compiler_static_FC='-non_shared' 12622 ;; 12623 12624 solaris*) 12625 lt_prog_compiler_pic_FC='-KPIC' 12626 lt_prog_compiler_static_FC='-Bstatic' 12627 case $cc_basename in 12628 f77* | f90* | f95*) 12629 lt_prog_compiler_wl_FC='-Qoption ld ';; 12630 *) 12631 lt_prog_compiler_wl_FC='-Wl,';; 12632 esac 12633 ;; 12634 12635 sunos4*) 12636 lt_prog_compiler_wl_FC='-Qoption ld ' 12637 lt_prog_compiler_pic_FC='-PIC' 12638 lt_prog_compiler_static_FC='-Bstatic' 12639 ;; 12640 12641 sysv4 | sysv4.2uw2* | sysv4.3*) 12642 lt_prog_compiler_wl_FC='-Wl,' 12643 lt_prog_compiler_pic_FC='-KPIC' 12644 lt_prog_compiler_static_FC='-Bstatic' 12645 ;; 12646 12647 sysv4*MP*) 12648 if test -d /usr/nec ;then 12649 lt_prog_compiler_pic_FC='-Kconform_pic' 12650 lt_prog_compiler_static_FC='-Bstatic' 12651 fi 12652 ;; 12653 12654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12655 lt_prog_compiler_wl_FC='-Wl,' 12656 lt_prog_compiler_pic_FC='-KPIC' 12657 lt_prog_compiler_static_FC='-Bstatic' 12658 ;; 12659 12660 unicos*) 12661 lt_prog_compiler_wl_FC='-Wl,' 12662 lt_prog_compiler_can_build_shared_FC=no 12663 ;; 12664 12665 uts4*) 12666 lt_prog_compiler_pic_FC='-pic' 12667 lt_prog_compiler_static_FC='-Bstatic' 12668 ;; 12669 12670 *) 12671 lt_prog_compiler_can_build_shared_FC=no 12672 ;; 12673 esac 12674 fi 12675 12676 case $host_os in 12677 # For platforms which do not support PIC, -DPIC is meaningless: 12678 *djgpp*) 12679 lt_prog_compiler_pic_FC= 12680 ;; 12681 *) 12682 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 12683 ;; 12684 esac 12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 12686 $as_echo "$lt_prog_compiler_pic_FC" >&6; } 12687 12688 12689 12690 # 12691 # Check to make sure the PIC flag actually works. 12692 # 12693 if test -n "$lt_prog_compiler_pic_FC"; then 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 12695 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 12696 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 12697 $as_echo_n "(cached) " >&6 12698 else 12699 lt_cv_prog_compiler_pic_works_FC=no 12700 ac_outfile=conftest.$ac_objext 12701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12702 lt_compiler_flag="$lt_prog_compiler_pic_FC" 12703 # Insert the option either (1) after the last *FLAGS variable, or 12704 # (2) before a word containing "conftest.", or (3) at the end. 12705 # Note that $ac_compile itself does not contain backslashes and begins 12706 # with a dollar sign (not a hyphen), so the echo should work correctly. 12707 # The option is referenced via a variable to avoid confusing sed. 12708 lt_compile=`echo "$ac_compile" | $SED \ 12709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12711 -e 's:$: $lt_compiler_flag:'` 12712 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12713 (eval "$lt_compile" 2>conftest.err) 12714 ac_status=$? 12715 cat conftest.err >&5 12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12717 if (exit $ac_status) && test -s "$ac_outfile"; then 12718 # The compiler can only warn and ignore the option if not recognized 12719 # So say no if there are warnings other than the usual output. 12720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12722 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12723 lt_cv_prog_compiler_pic_works_FC=yes 12724 fi 12725 fi 12726 $RM conftest* 12727 12728 fi 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 12730 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 12731 12732 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then 12733 case $lt_prog_compiler_pic_FC in 12734 "" | " "*) ;; 12735 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 12736 esac 12737 else 12738 lt_prog_compiler_pic_FC= 12739 lt_prog_compiler_can_build_shared_FC=no 12740 fi 12741 12742 fi 12743 12744 12745 12746 # 12747 # Check to make sure the static flag actually works. 12748 # 12749 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12751 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12752 if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 12753 $as_echo_n "(cached) " >&6 12754 else 12755 lt_cv_prog_compiler_static_works_FC=no 12756 save_LDFLAGS="$LDFLAGS" 12757 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12758 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12759 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12760 # The linker can only warn and ignore the option if not recognized 12761 # So say no if there are warnings 12762 if test -s conftest.err; then 12763 # Append any errors to the config.log. 12764 cat conftest.err 1>&5 12765 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12767 if diff conftest.exp conftest.er2 >/dev/null; then 12768 lt_cv_prog_compiler_static_works_FC=yes 12769 fi 12770 else 12771 lt_cv_prog_compiler_static_works_FC=yes 12772 fi 12773 fi 12774 $RM -r conftest* 12775 LDFLAGS="$save_LDFLAGS" 12776 12777 fi 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 12779 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 12780 12781 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then 12782 : 12783 else 12784 lt_prog_compiler_static_FC= 12785 fi 12786 12787 12788 12789 12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12791 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12792 if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 12793 $as_echo_n "(cached) " >&6 12794 else 12795 lt_cv_prog_compiler_c_o_FC=no 12796 $RM -r conftest 2>/dev/null 12797 mkdir conftest 12798 cd conftest 12799 mkdir out 12800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12801 12802 lt_compiler_flag="-o out/conftest2.$ac_objext" 12803 # Insert the option either (1) after the last *FLAGS variable, or 12804 # (2) before a word containing "conftest.", or (3) at the end. 12805 # Note that $ac_compile itself does not contain backslashes and begins 12806 # with a dollar sign (not a hyphen), so the echo should work correctly. 12807 lt_compile=`echo "$ac_compile" | $SED \ 12808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12810 -e 's:$: $lt_compiler_flag:'` 12811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12812 (eval "$lt_compile" 2>out/conftest.err) 12813 ac_status=$? 12814 cat out/conftest.err >&5 12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12816 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12817 then 12818 # The compiler can only warn and ignore the option if not recognized 12819 # So say no if there are warnings 12820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12823 lt_cv_prog_compiler_c_o_FC=yes 12824 fi 12825 fi 12826 chmod u+w . 2>&5 12827 $RM conftest* 12828 # SGI C++ compiler will create directory out/ii_files/ for 12829 # template instantiation 12830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12831 $RM out/* && rmdir out 12832 cd .. 12833 $RM -r conftest 12834 $RM conftest* 12835 12836 fi 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 12838 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 12839 12840 12841 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12843 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12844 if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 12845 $as_echo_n "(cached) " >&6 12846 else 12847 lt_cv_prog_compiler_c_o_FC=no 12848 $RM -r conftest 2>/dev/null 12849 mkdir conftest 12850 cd conftest 12851 mkdir out 12852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12853 12854 lt_compiler_flag="-o out/conftest2.$ac_objext" 12855 # Insert the option either (1) after the last *FLAGS variable, or 12856 # (2) before a word containing "conftest.", or (3) at the end. 12857 # Note that $ac_compile itself does not contain backslashes and begins 12858 # with a dollar sign (not a hyphen), so the echo should work correctly. 12859 lt_compile=`echo "$ac_compile" | $SED \ 12860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12862 -e 's:$: $lt_compiler_flag:'` 12863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12864 (eval "$lt_compile" 2>out/conftest.err) 12865 ac_status=$? 12866 cat out/conftest.err >&5 12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12868 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12869 then 12870 # The compiler can only warn and ignore the option if not recognized 12871 # So say no if there are warnings 12872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12875 lt_cv_prog_compiler_c_o_FC=yes 12876 fi 12877 fi 12878 chmod u+w . 2>&5 12879 $RM conftest* 12880 # SGI C++ compiler will create directory out/ii_files/ for 12881 # template instantiation 12882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12883 $RM out/* && rmdir out 12884 cd .. 12885 $RM -r conftest 12886 $RM conftest* 12887 12888 fi 12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 12890 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 12891 12892 12893 12894 12895 hard_links="nottested" 12896 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then 12897 # do not overwrite the value of need_locks provided by the user 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12899 $as_echo_n "checking if we can lock with hard links... " >&6; } 12900 hard_links=yes 12901 $RM conftest* 12902 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12903 touch conftest.a 12904 ln conftest.a conftest.b 2>&5 || hard_links=no 12905 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12907 $as_echo "$hard_links" >&6; } 12908 if test "$hard_links" = no; then 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12910 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12911 need_locks=warn 12912 fi 12913 else 12914 need_locks=no 12915 fi 12916 12917 12918 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12920 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12921 12922 runpath_var= 12923 allow_undefined_flag_FC= 12924 always_export_symbols_FC=no 12925 archive_cmds_FC= 12926 archive_expsym_cmds_FC= 12927 compiler_needs_object_FC=no 12928 enable_shared_with_static_runtimes_FC=no 12929 export_dynamic_flag_spec_FC= 12930 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12931 hardcode_automatic_FC=no 12932 hardcode_direct_FC=no 12933 hardcode_direct_absolute_FC=no 12934 hardcode_libdir_flag_spec_FC= 12935 hardcode_libdir_flag_spec_ld_FC= 12936 hardcode_libdir_separator_FC= 12937 hardcode_minus_L_FC=no 12938 hardcode_shlibpath_var_FC=unsupported 12939 inherit_rpath_FC=no 12940 link_all_deplibs_FC=unknown 12941 module_cmds_FC= 12942 module_expsym_cmds_FC= 12943 old_archive_from_new_cmds_FC= 12944 old_archive_from_expsyms_cmds_FC= 12945 thread_safe_flag_spec_FC= 12946 whole_archive_flag_spec_FC= 12947 # include_expsyms should be a list of space-separated symbols to be *always* 12948 # included in the symbol list 12949 include_expsyms_FC= 12950 # exclude_expsyms can be an extended regexp of symbols to exclude 12951 # it will be wrapped by ` (' and `)$', so one must not match beginning or 12952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 12953 # as well as any symbol that contains `d'. 12954 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12956 # platforms (ab)use it in PIC code, but their linkers get confused if 12957 # the symbol is explicitly referenced. Since portable code cannot 12958 # rely on this symbol name, it's probably fine to never include it in 12959 # preloaded symbol tables. 12960 # Exclude shared library initialization/finalization symbols. 12961 extract_expsyms_cmds= 12962 12963 case $host_os in 12964 cygwin* | mingw* | pw32* | cegcc*) 12965 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12966 # When not using gcc, we currently assume that we are using 12967 # Microsoft Visual C++. 12968 if test "$GCC" != yes; then 12969 with_gnu_ld=no 12970 fi 12971 ;; 12972 interix*) 12973 # we just hope/assume this is gcc and not c89 (= MSVC++) 12974 with_gnu_ld=yes 12975 ;; 12976 openbsd*) 12977 with_gnu_ld=no 12978 ;; 12979 esac 12980 12981 ld_shlibs_FC=yes 12982 12983 # On some targets, GNU ld is compatible enough with the native linker 12984 # that we're better off using the native interface for both. 12985 lt_use_gnu_ld_interface=no 12986 if test "$with_gnu_ld" = yes; then 12987 case $host_os in 12988 aix*) 12989 # The AIX port of GNU ld has always aspired to compatibility 12990 # with the native linker. However, as the warning in the GNU ld 12991 # block says, versions before 2.19.5* couldn't really create working 12992 # shared libraries, regardless of the interface used. 12993 case `$LD -v 2>&1` in 12994 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12995 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12996 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12997 *) 12998 lt_use_gnu_ld_interface=yes 12999 ;; 13000 esac 13001 ;; 13002 *) 13003 lt_use_gnu_ld_interface=yes 13004 ;; 13005 esac 13006 fi 13007 13008 if test "$lt_use_gnu_ld_interface" = yes; then 13009 # If archive_cmds runs LD, not CC, wlarc should be empty 13010 wlarc='${wl}' 13011 13012 # Set some defaults for GNU ld with shared library support. These 13013 # are reset later if shared libraries are not supported. Putting them 13014 # here allows them to be overridden if necessary. 13015 runpath_var=LD_RUN_PATH 13016 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13017 export_dynamic_flag_spec_FC='${wl}--export-dynamic' 13018 # ancient GNU ld didn't support --whole-archive et. al. 13019 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13020 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13021 else 13022 whole_archive_flag_spec_FC= 13023 fi 13024 supports_anon_versioning=no 13025 case `$LD -v 2>&1` in 13026 *GNU\ gold*) supports_anon_versioning=yes ;; 13027 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13028 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13029 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13030 *\ 2.11.*) ;; # other 2.11 versions 13031 *) supports_anon_versioning=yes ;; 13032 esac 13033 13034 # See if GNU ld supports shared libraries. 13035 case $host_os in 13036 aix[3-9]*) 13037 # On AIX/PPC, the GNU linker is very broken 13038 if test "$host_cpu" != ia64; then 13039 ld_shlibs_FC=no 13040 cat <<_LT_EOF 1>&2 13041 13042 *** Warning: the GNU linker, at least up to release 2.19, is reported 13043 *** to be unable to reliably create shared libraries on AIX. 13044 *** Therefore, libtool is disabling shared libraries support. If you 13045 *** really care for shared libraries, you may want to install binutils 13046 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13047 *** You will then need to restart the configuration process. 13048 13049 _LT_EOF 13050 fi 13051 ;; 13052 13053 amigaos*) 13054 case $host_cpu in 13055 powerpc) 13056 # see comment about AmigaOS4 .so support 13057 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13058 archive_expsym_cmds_FC='' 13059 ;; 13060 m68k) 13061 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)' 13062 hardcode_libdir_flag_spec_FC='-L$libdir' 13063 hardcode_minus_L_FC=yes 13064 ;; 13065 esac 13066 ;; 13067 13068 beos*) 13069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13070 allow_undefined_flag_FC=unsupported 13071 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 13072 # support --undefined. This deserves some investigation. FIXME 13073 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13074 else 13075 ld_shlibs_FC=no 13076 fi 13077 ;; 13078 13079 cygwin* | mingw* | pw32* | cegcc*) 13080 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 13081 # as there is no search path for DLLs. 13082 hardcode_libdir_flag_spec_FC='-L$libdir' 13083 export_dynamic_flag_spec_FC='${wl}--export-all-symbols' 13084 allow_undefined_flag_FC=unsupported 13085 always_export_symbols_FC=no 13086 enable_shared_with_static_runtimes_FC=yes 13087 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13088 13089 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13090 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13091 # If the export-symbols file already is a .def file (1st line 13092 # is EXPORTS), use it as is; otherwise, prepend... 13093 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13094 cp $export_symbols $output_objdir/$soname.def; 13095 else 13096 echo EXPORTS > $output_objdir/$soname.def; 13097 cat $export_symbols >> $output_objdir/$soname.def; 13098 fi~ 13099 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13100 else 13101 ld_shlibs_FC=no 13102 fi 13103 ;; 13104 13105 haiku*) 13106 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13107 link_all_deplibs_FC=yes 13108 ;; 13109 13110 interix[3-9]*) 13111 hardcode_direct_FC=no 13112 hardcode_shlibpath_var_FC=no 13113 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13114 export_dynamic_flag_spec_FC='${wl}-E' 13115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13116 # Instead, shared libraries are loaded at an image base (0x10000000 by 13117 # default) and relocated if they conflict, which is a slow very memory 13118 # consuming and fragmenting process. To avoid this, we pick a random, 13119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13120 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13121 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' 13122 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' 13123 ;; 13124 13125 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 13126 tmp_diet=no 13127 if test "$host_os" = linux-dietlibc; then 13128 case $cc_basename in 13129 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13130 esac 13131 fi 13132 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13133 && test "$tmp_diet" = no 13134 then 13135 tmp_addflag=' $pic_flag' 13136 tmp_sharedflag='-shared' 13137 case $cc_basename,$host_cpu in 13138 pgcc*) # Portland Group C compiler 13139 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' 13140 tmp_addflag=' $pic_flag' 13141 ;; 13142 pgf77* | pgf90* | pgf95* | pgfortran*) 13143 # Portland Group f77 and f90 compilers 13144 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' 13145 tmp_addflag=' $pic_flag -Mnomain' ;; 13146 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13147 tmp_addflag=' -i_dynamic' ;; 13148 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13149 tmp_addflag=' -i_dynamic -nofor_main' ;; 13150 ifc* | ifort*) # Intel Fortran compiler 13151 tmp_addflag=' -nofor_main' ;; 13152 lf95*) # Lahey Fortran 8.1 13153 whole_archive_flag_spec_FC= 13154 tmp_sharedflag='--shared' ;; 13155 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13156 tmp_sharedflag='-qmkshrobj' 13157 tmp_addflag= ;; 13158 nvcc*) # Cuda Compiler Driver 2.2 13159 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' 13160 compiler_needs_object_FC=yes 13161 ;; 13162 esac 13163 case `$CC -V 2>&1 | sed 5q` in 13164 *Sun\ C*) # Sun C 5.9 13165 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' 13166 compiler_needs_object_FC=yes 13167 tmp_sharedflag='-G' ;; 13168 *Sun\ F*) # Sun Fortran 8.3 13169 tmp_sharedflag='-G' ;; 13170 esac 13171 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13172 13173 if test "x$supports_anon_versioning" = xyes; then 13174 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 13175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13176 echo "local: *; };" >> $output_objdir/$libname.ver~ 13177 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13178 fi 13179 13180 case $cc_basename in 13181 xlf* | bgf* | bgxlf* | mpixlf*) 13182 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13183 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 13184 hardcode_libdir_flag_spec_FC= 13185 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' 13186 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 13187 if test "x$supports_anon_versioning" = xyes; then 13188 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 13189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13190 echo "local: *; };" >> $output_objdir/$libname.ver~ 13191 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13192 fi 13193 ;; 13194 esac 13195 else 13196 ld_shlibs_FC=no 13197 fi 13198 ;; 13199 13200 netbsd*) 13201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13202 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13203 wlarc= 13204 else 13205 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13206 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13207 fi 13208 ;; 13209 13210 solaris*) 13211 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13212 ld_shlibs_FC=no 13213 cat <<_LT_EOF 1>&2 13214 13215 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 13216 *** create shared libraries on Solaris systems. Therefore, libtool 13217 *** is disabling shared libraries support. We urge you to upgrade GNU 13218 *** binutils to release 2.9.1 or newer. Another option is to modify 13219 *** your PATH or compiler configuration so that the native linker is 13220 *** used, and then restart. 13221 13222 _LT_EOF 13223 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13224 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13225 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13226 else 13227 ld_shlibs_FC=no 13228 fi 13229 ;; 13230 13231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13232 case `$LD -v 2>&1` in 13233 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13234 ld_shlibs_FC=no 13235 cat <<_LT_EOF 1>&2 13236 13237 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 13238 *** reliably create shared libraries on SCO systems. Therefore, libtool 13239 *** is disabling shared libraries support. We urge you to upgrade GNU 13240 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13241 *** your PATH or compiler configuration so that the native linker is 13242 *** used, and then restart. 13243 13244 _LT_EOF 13245 ;; 13246 *) 13247 # For security reasons, it is highly recommended that you always 13248 # use absolute paths for naming shared libraries, and exclude the 13249 # DT_RUNPATH tag from executables and libraries. But doing so 13250 # requires that you compile everything twice, which is a pain. 13251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13252 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13253 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13254 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13255 else 13256 ld_shlibs_FC=no 13257 fi 13258 ;; 13259 esac 13260 ;; 13261 13262 sunos4*) 13263 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13264 wlarc= 13265 hardcode_direct_FC=yes 13266 hardcode_shlibpath_var_FC=no 13267 ;; 13268 13269 *) 13270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13271 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13272 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13273 else 13274 ld_shlibs_FC=no 13275 fi 13276 ;; 13277 esac 13278 13279 if test "$ld_shlibs_FC" = no; then 13280 runpath_var= 13281 hardcode_libdir_flag_spec_FC= 13282 export_dynamic_flag_spec_FC= 13283 whole_archive_flag_spec_FC= 13284 fi 13285 else 13286 # PORTME fill in a description of your system's linker (not GNU ld) 13287 case $host_os in 13288 aix3*) 13289 allow_undefined_flag_FC=unsupported 13290 always_export_symbols_FC=yes 13291 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' 13292 # Note: this linker hardcodes the directories in LIBPATH if there 13293 # are no directories specified by -L. 13294 hardcode_minus_L_FC=yes 13295 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 13296 # Neither direct hardcoding nor static linking is supported with a 13297 # broken collect2. 13298 hardcode_direct_FC=unsupported 13299 fi 13300 ;; 13301 13302 aix[4-9]*) 13303 if test "$host_cpu" = ia64; then 13304 # On IA64, the linker does run time linking by default, so we don't 13305 # have to do anything special. 13306 aix_use_runtimelinking=no 13307 exp_sym_flag='-Bexport' 13308 no_entry_flag="" 13309 else 13310 # If we're using GNU nm, then we don't want the "-C" option. 13311 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13312 # Also, AIX nm treats weak defined symbols like other global 13313 # defined symbols, whereas GNU nm marks them as "W". 13314 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13315 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' 13316 else 13317 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' 13318 fi 13319 aix_use_runtimelinking=no 13320 13321 # Test if we are trying to use run time linking or normal 13322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13323 # need to do runtime linking. 13324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13325 for ld_flag in $LDFLAGS; do 13326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13327 aix_use_runtimelinking=yes 13328 break 13329 fi 13330 done 13331 ;; 13332 esac 13333 13334 exp_sym_flag='-bexport' 13335 no_entry_flag='-bnoentry' 13336 fi 13337 13338 # When large executables or shared objects are built, AIX ld can 13339 # have problems creating the table of contents. If linking a library 13340 # or program results in "error TOC overflow" add -mminimal-toc to 13341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13343 13344 archive_cmds_FC='' 13345 hardcode_direct_FC=yes 13346 hardcode_direct_absolute_FC=yes 13347 hardcode_libdir_separator_FC=':' 13348 link_all_deplibs_FC=yes 13349 file_list_spec_FC='${wl}-f,' 13350 13351 if test "$GCC" = yes; then 13352 case $host_os in aix4.[012]|aix4.[012].*) 13353 # We only want to do this on AIX 4.2 and lower, the check 13354 # below for broken collect2 doesn't work under 4.3+ 13355 collect2name=`${CC} -print-prog-name=collect2` 13356 if test -f "$collect2name" && 13357 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13358 then 13359 # We have reworked collect2 13360 : 13361 else 13362 # We have old collect2 13363 hardcode_direct_FC=unsupported 13364 # It fails to find uninstalled libraries when the uninstalled 13365 # path is not listed in the libpath. Setting hardcode_minus_L 13366 # to unsupported forces relinking 13367 hardcode_minus_L_FC=yes 13368 hardcode_libdir_flag_spec_FC='-L$libdir' 13369 hardcode_libdir_separator_FC= 13370 fi 13371 ;; 13372 esac 13373 shared_flag='-shared' 13374 if test "$aix_use_runtimelinking" = yes; then 13375 shared_flag="$shared_flag "'${wl}-G' 13376 fi 13377 else 13378 # not using gcc 13379 if test "$host_cpu" = ia64; then 13380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13381 # chokes on -Wl,-G. The following line is correct: 13382 shared_flag='-G' 13383 else 13384 if test "$aix_use_runtimelinking" = yes; then 13385 shared_flag='${wl}-G' 13386 else 13387 shared_flag='${wl}-bM:SRE' 13388 fi 13389 fi 13390 fi 13391 13392 export_dynamic_flag_spec_FC='${wl}-bexpall' 13393 # It seems that -bexpall does not export symbols beginning with 13394 # underscore (_), so it is better to generate a list of symbols to export. 13395 always_export_symbols_FC=yes 13396 if test "$aix_use_runtimelinking" = yes; then 13397 # Warning - without using the other runtime loading flags (-brtl), 13398 # -berok will link without error, but may produce a broken library. 13399 allow_undefined_flag_FC='-berok' 13400 # Determine the default libpath from the value encoded in an 13401 # empty executable. 13402 cat > conftest.$ac_ext <<_ACEOF 13403 program main 13404 13405 end 13406 _ACEOF 13407 if ac_fn_fc_try_link "$LINENO"; then : 13408 13409 lt_aix_libpath_sed=' 13410 /Import File Strings/,/^$/ { 13411 /^0/ { 13412 s/^0 *\(.*\)$/\1/ 13413 p 13414 } 13415 }' 13416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13417 # Check for a 64-bit object if we didn't find anything. 13418 if test -z "$aix_libpath"; then 13419 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13420 fi 13421 fi 13422 rm -f core conftest.err conftest.$ac_objext \ 13423 conftest$ac_exeext conftest.$ac_ext 13424 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13425 13426 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 13427 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" 13428 else 13429 if test "$host_cpu" = ia64; then 13430 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' 13431 allow_undefined_flag_FC="-z nodefs" 13432 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" 13433 else 13434 # Determine the default libpath from the value encoded in an 13435 # empty executable. 13436 cat > conftest.$ac_ext <<_ACEOF 13437 program main 13438 13439 end 13440 _ACEOF 13441 if ac_fn_fc_try_link "$LINENO"; then : 13442 13443 lt_aix_libpath_sed=' 13444 /Import File Strings/,/^$/ { 13445 /^0/ { 13446 s/^0 *\(.*\)$/\1/ 13447 p 13448 } 13449 }' 13450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13451 # Check for a 64-bit object if we didn't find anything. 13452 if test -z "$aix_libpath"; then 13453 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13454 fi 13455 fi 13456 rm -f core conftest.err conftest.$ac_objext \ 13457 conftest$ac_exeext conftest.$ac_ext 13458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13459 13460 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 13461 # Warning - without using the other run time loading flags, 13462 # -berok will link without error, but may produce a broken library. 13463 no_undefined_flag_FC=' ${wl}-bernotok' 13464 allow_undefined_flag_FC=' ${wl}-berok' 13465 if test "$with_gnu_ld" = yes; then 13466 # We only use this code for GNU lds that support --whole-archive. 13467 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13468 else 13469 # Exported symbols can be pulled into shared objects from archives 13470 whole_archive_flag_spec_FC='$convenience' 13471 fi 13472 archive_cmds_need_lc_FC=yes 13473 # This is similar to how AIX traditionally builds its shared libraries. 13474 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' 13475 fi 13476 fi 13477 ;; 13478 13479 amigaos*) 13480 case $host_cpu in 13481 powerpc) 13482 # see comment about AmigaOS4 .so support 13483 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13484 archive_expsym_cmds_FC='' 13485 ;; 13486 m68k) 13487 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)' 13488 hardcode_libdir_flag_spec_FC='-L$libdir' 13489 hardcode_minus_L_FC=yes 13490 ;; 13491 esac 13492 ;; 13493 13494 bsdi[45]*) 13495 export_dynamic_flag_spec_FC=-rdynamic 13496 ;; 13497 13498 cygwin* | mingw* | pw32* | cegcc*) 13499 # When not using gcc, we currently assume that we are using 13500 # Microsoft Visual C++. 13501 # hardcode_libdir_flag_spec is actually meaningless, as there is 13502 # no search path for DLLs. 13503 hardcode_libdir_flag_spec_FC=' ' 13504 allow_undefined_flag_FC=unsupported 13505 # Tell ltmain to make .lib files, not .a files. 13506 libext=lib 13507 # Tell ltmain to make .dll files, not .so files. 13508 shrext_cmds=".dll" 13509 # FIXME: Setting linknames here is a bad hack. 13510 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13511 # The linker will automatically build a .lib file if we build a DLL. 13512 old_archive_from_new_cmds_FC='true' 13513 # FIXME: Should let the user specify the lib program. 13514 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 13515 fix_srcfile_path_FC='`cygpath -w "$srcfile"`' 13516 enable_shared_with_static_runtimes_FC=yes 13517 ;; 13518 13519 darwin* | rhapsody*) 13520 13521 13522 13523 # Publish an arg to allow the user to select that Darwin host (and target) 13524 # libraries should be given install-names like @rpath/libfoo.dylib. This 13525 # requires that the user of the library then adds an 'rpath' to the DSO that 13526 # needs access. 13527 # NOTE: there are defaults below, for systems that support rpaths. The person 13528 # configuring can override the defaults for any system version that supports 13529 # them - they are, however, forced off for system versions without support. 13530 # Check whether --enable-darwin-at-rpath was given. 13531 if test "${enable_darwin_at_rpath+set}" = set; then : 13532 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then 13533 # This is not supported before macOS 10.5 / Darwin9. 13534 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in 13535 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5 13537 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;} 13538 enable_darwin_at_rpath=no 13539 ;; 13540 esac 13541 fi 13542 else 13543 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in 13544 # As above, before 10.5 / Darwin9 this does not work. 13545 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*) 13546 enable_darwin_at_rpath=no 13547 ;; 13548 13549 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use 13550 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key 13551 # system executables (e.g. /bin/sh). Force rpaths on for these systems. 13552 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* ) 13553 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5 13554 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;} 13555 enable_darwin_at_rpath=yes 13556 ;; 13557 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can 13558 # work with either DYLD_LIBRARY_PATH or embedded rpaths. 13559 13560 esac 13561 13562 fi 13563 13564 13565 archive_cmds_need_lc_FC=no 13566 hardcode_direct_FC=no 13567 hardcode_automatic_FC=yes 13568 hardcode_shlibpath_var_FC=unsupported 13569 if test "$lt_cv_ld_force_load" = "yes"; then 13570 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\"`' 13571 else 13572 whole_archive_flag_spec_FC='' 13573 fi 13574 link_all_deplibs_FC=yes 13575 allow_undefined_flag_FC="$_lt_dar_allow_undefined" 13576 case $cc_basename in 13577 ifort*) _lt_dar_can_shared=yes ;; 13578 *) _lt_dar_can_shared=$GCC ;; 13579 esac 13580 if test "$_lt_dar_can_shared" = "yes"; then 13581 output_verbose_link_cmd=func_echo_all 13582 _lt_install_name='\$rpath/\$soname' 13583 if test "x$enable_darwin_at_rpath" = "xyes"; then 13584 _lt_install_name='@rpath/\$soname' 13585 fi 13586 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}" 13587 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13588 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}" 13589 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}" 13590 13591 else 13592 ld_shlibs_FC=no 13593 fi 13594 13595 ;; 13596 13597 dgux*) 13598 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13599 hardcode_libdir_flag_spec_FC='-L$libdir' 13600 hardcode_shlibpath_var_FC=no 13601 ;; 13602 13603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13604 # support. Future versions do this automatically, but an explicit c++rt0.o 13605 # does not break anything, and helps significantly (at the cost of a little 13606 # extra space). 13607 freebsd2.2*) 13608 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13609 hardcode_libdir_flag_spec_FC='-R$libdir' 13610 hardcode_direct_FC=yes 13611 hardcode_shlibpath_var_FC=no 13612 ;; 13613 13614 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13615 freebsd2.*) 13616 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13617 hardcode_direct_FC=yes 13618 hardcode_minus_L_FC=yes 13619 hardcode_shlibpath_var_FC=no 13620 ;; 13621 13622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13623 freebsd* | dragonfly*) 13624 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13625 hardcode_libdir_flag_spec_FC='-R$libdir' 13626 hardcode_direct_FC=yes 13627 hardcode_shlibpath_var_FC=no 13628 ;; 13629 13630 hpux9*) 13631 if test "$GCC" = yes; then 13632 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' 13633 else 13634 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' 13635 fi 13636 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13637 hardcode_libdir_separator_FC=: 13638 hardcode_direct_FC=yes 13639 13640 # hardcode_minus_L: Not really in the search PATH, 13641 # but as the default location of the library. 13642 hardcode_minus_L_FC=yes 13643 export_dynamic_flag_spec_FC='${wl}-E' 13644 ;; 13645 13646 hpux10*) 13647 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13648 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13649 else 13650 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13651 fi 13652 if test "$with_gnu_ld" = no; then 13653 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13654 hardcode_libdir_flag_spec_ld_FC='+b $libdir' 13655 hardcode_libdir_separator_FC=: 13656 hardcode_direct_FC=yes 13657 hardcode_direct_absolute_FC=yes 13658 export_dynamic_flag_spec_FC='${wl}-E' 13659 # hardcode_minus_L: Not really in the search PATH, 13660 # but as the default location of the library. 13661 hardcode_minus_L_FC=yes 13662 fi 13663 ;; 13664 13665 hpux11*) 13666 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 13667 case $host_cpu in 13668 hppa*64*) 13669 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13670 ;; 13671 ia64*) 13672 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13673 ;; 13674 *) 13675 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13676 ;; 13677 esac 13678 else 13679 case $host_cpu in 13680 hppa*64*) 13681 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13682 ;; 13683 ia64*) 13684 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13685 ;; 13686 *) 13687 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13688 ;; 13689 esac 13690 fi 13691 if test "$with_gnu_ld" = no; then 13692 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 13693 hardcode_libdir_separator_FC=: 13694 13695 case $host_cpu in 13696 hppa*64*|ia64*) 13697 hardcode_direct_FC=no 13698 hardcode_shlibpath_var_FC=no 13699 ;; 13700 *) 13701 hardcode_direct_FC=yes 13702 hardcode_direct_absolute_FC=yes 13703 export_dynamic_flag_spec_FC='${wl}-E' 13704 13705 # hardcode_minus_L: Not really in the search PATH, 13706 # but as the default location of the library. 13707 hardcode_minus_L_FC=yes 13708 ;; 13709 esac 13710 fi 13711 ;; 13712 13713 irix5* | irix6* | nonstopux*) 13714 if test "$GCC" = yes; then 13715 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' 13716 # Try to use the -exported_symbol ld option, if it does not 13717 # work, assume that -exports_file does not work either and 13718 # implicitly export all symbols. 13719 save_LDFLAGS="$LDFLAGS" 13720 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 13721 cat > conftest.$ac_ext <<_ACEOF 13722 int foo(void) {} 13723 _ACEOF 13724 if ac_fn_fc_try_link "$LINENO"; then : 13725 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' 13726 13727 fi 13728 rm -f core conftest.err conftest.$ac_objext \ 13729 conftest$ac_exeext conftest.$ac_ext 13730 LDFLAGS="$save_LDFLAGS" 13731 else 13732 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' 13733 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' 13734 fi 13735 archive_cmds_need_lc_FC='no' 13736 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13737 hardcode_libdir_separator_FC=: 13738 inherit_rpath_FC=yes 13739 link_all_deplibs_FC=yes 13740 ;; 13741 13742 netbsd*) 13743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13744 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13745 else 13746 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13747 fi 13748 hardcode_libdir_flag_spec_FC='-R$libdir' 13749 hardcode_direct_FC=yes 13750 hardcode_shlibpath_var_FC=no 13751 ;; 13752 13753 newsos6) 13754 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13755 hardcode_direct_FC=yes 13756 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13757 hardcode_libdir_separator_FC=: 13758 hardcode_shlibpath_var_FC=no 13759 ;; 13760 13761 *nto* | *qnx*) 13762 ;; 13763 13764 openbsd*) 13765 if test -f /usr/libexec/ld.so; then 13766 hardcode_direct_FC=yes 13767 hardcode_shlibpath_var_FC=no 13768 hardcode_direct_absolute_FC=yes 13769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13770 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13771 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 13772 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13773 export_dynamic_flag_spec_FC='${wl}-E' 13774 else 13775 case $host_os in 13776 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13777 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13778 hardcode_libdir_flag_spec_FC='-R$libdir' 13779 ;; 13780 *) 13781 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13782 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 13783 ;; 13784 esac 13785 fi 13786 else 13787 ld_shlibs_FC=no 13788 fi 13789 ;; 13790 13791 os2*) 13792 hardcode_libdir_flag_spec_FC='-L$libdir' 13793 hardcode_minus_L_FC=yes 13794 allow_undefined_flag_FC=unsupported 13795 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' 13796 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13797 ;; 13798 13799 osf3*) 13800 if test "$GCC" = yes; then 13801 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 13802 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' 13803 else 13804 allow_undefined_flag_FC=' -expect_unresolved \*' 13805 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' 13806 fi 13807 archive_cmds_need_lc_FC='no' 13808 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13809 hardcode_libdir_separator_FC=: 13810 ;; 13811 13812 osf4* | osf5*) # as osf3* with the addition of -msym flag 13813 if test "$GCC" = yes; then 13814 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 13815 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' 13816 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 13817 else 13818 allow_undefined_flag_FC=' -expect_unresolved \*' 13819 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' 13820 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~ 13821 $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' 13822 13823 # Both c and cxx compiler support -rpath directly 13824 hardcode_libdir_flag_spec_FC='-rpath $libdir' 13825 fi 13826 archive_cmds_need_lc_FC='no' 13827 hardcode_libdir_separator_FC=: 13828 ;; 13829 13830 solaris*) 13831 no_undefined_flag_FC=' -z defs' 13832 if test "$GCC" = yes; then 13833 wlarc='${wl}' 13834 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13835 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13836 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13837 else 13838 case `$CC -V 2>&1` in 13839 *"Compilers 5.0"*) 13840 wlarc='' 13841 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13842 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13843 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13844 ;; 13845 *) 13846 wlarc='${wl}' 13847 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13848 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13849 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13850 ;; 13851 esac 13852 fi 13853 hardcode_libdir_flag_spec_FC='-R$libdir' 13854 hardcode_shlibpath_var_FC=no 13855 case $host_os in 13856 solaris2.[0-5] | solaris2.[0-5].*) ;; 13857 *) 13858 # The compiler driver will combine and reorder linker options, 13859 # but understands `-z linker_flag'. GCC discards it without `$wl', 13860 # but is careful enough not to reorder. 13861 # Supported since Solaris 2.6 (maybe 2.5.1?) 13862 if test "$GCC" = yes; then 13863 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13864 else 13865 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 13866 fi 13867 ;; 13868 esac 13869 link_all_deplibs_FC=yes 13870 ;; 13871 13872 sunos4*) 13873 if test "x$host_vendor" = xsequent; then 13874 # Use $CC to link under sequent, because it throws in some extra .o 13875 # files that make .init and .fini sections work. 13876 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13877 else 13878 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13879 fi 13880 hardcode_libdir_flag_spec_FC='-L$libdir' 13881 hardcode_direct_FC=yes 13882 hardcode_minus_L_FC=yes 13883 hardcode_shlibpath_var_FC=no 13884 ;; 13885 13886 sysv4) 13887 case $host_vendor in 13888 sni) 13889 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13890 hardcode_direct_FC=yes # is this really true??? 13891 ;; 13892 siemens) 13893 ## LD is ld it makes a PLAMLIB 13894 ## CC just makes a GrossModule. 13895 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13896 reload_cmds_FC='$CC -r -o $output$reload_objs' 13897 hardcode_direct_FC=no 13898 ;; 13899 motorola) 13900 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13901 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 13902 ;; 13903 esac 13904 runpath_var='LD_RUN_PATH' 13905 hardcode_shlibpath_var_FC=no 13906 ;; 13907 13908 sysv4.3*) 13909 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13910 hardcode_shlibpath_var_FC=no 13911 export_dynamic_flag_spec_FC='-Bexport' 13912 ;; 13913 13914 sysv4*MP*) 13915 if test -d /usr/nec; then 13916 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13917 hardcode_shlibpath_var_FC=no 13918 runpath_var=LD_RUN_PATH 13919 hardcode_runpath_var=yes 13920 ld_shlibs_FC=yes 13921 fi 13922 ;; 13923 13924 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13925 no_undefined_flag_FC='${wl}-z,text' 13926 archive_cmds_need_lc_FC=no 13927 hardcode_shlibpath_var_FC=no 13928 runpath_var='LD_RUN_PATH' 13929 13930 if test "$GCC" = yes; then 13931 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13932 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13933 else 13934 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13935 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13936 fi 13937 ;; 13938 13939 sysv5* | sco3.2v5* | sco5v6*) 13940 # Note: We can NOT use -z defs as we might desire, because we do not 13941 # link with -lc, and that would cause any symbols used from libc to 13942 # always be unresolved, which means just about no library would 13943 # ever link correctly. If we're not using GNU ld we use -z text 13944 # though, which does catch some bad symbols but isn't as heavy-handed 13945 # as -z defs. 13946 no_undefined_flag_FC='${wl}-z,text' 13947 allow_undefined_flag_FC='${wl}-z,nodefs' 13948 archive_cmds_need_lc_FC=no 13949 hardcode_shlibpath_var_FC=no 13950 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' 13951 hardcode_libdir_separator_FC=':' 13952 link_all_deplibs_FC=yes 13953 export_dynamic_flag_spec_FC='${wl}-Bexport' 13954 runpath_var='LD_RUN_PATH' 13955 13956 if test "$GCC" = yes; then 13957 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13958 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13959 else 13960 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13961 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13962 fi 13963 ;; 13964 13965 uts4*) 13966 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13967 hardcode_libdir_flag_spec_FC='-L$libdir' 13968 hardcode_shlibpath_var_FC=no 13969 ;; 13970 13971 *) 13972 ld_shlibs_FC=no 13973 ;; 13974 esac 13975 13976 if test x$host_vendor = xsni; then 13977 case $host in 13978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13979 export_dynamic_flag_spec_FC='${wl}-Blargedynsym' 13980 ;; 13981 esac 13982 fi 13983 fi 13984 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 13986 $as_echo "$ld_shlibs_FC" >&6; } 13987 test "$ld_shlibs_FC" = no && can_build_shared=no 13988 13989 with_gnu_ld_FC=$with_gnu_ld 13990 13991 13992 13993 13994 13995 13996 # 13997 # Do we need to explicitly link libc? 13998 # 13999 case "x$archive_cmds_need_lc_FC" in 14000 x|xyes) 14001 # Assume -lc should be added 14002 archive_cmds_need_lc_FC=yes 14003 14004 if test "$enable_shared" = yes && test "$GCC" = yes; then 14005 case $archive_cmds_FC in 14006 *'~'*) 14007 # FIXME: we may have to deal with multi-command sequences. 14008 ;; 14009 '$CC '*) 14010 # Test whether the compiler implicitly links with -lc since on some 14011 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14012 # to ld, don't add -lc before -lgcc. 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14014 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14015 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 14016 $as_echo_n "(cached) " >&6 14017 else 14018 $RM conftest* 14019 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14020 14021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14022 (eval $ac_compile) 2>&5 14023 ac_status=$? 14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14025 test $ac_status = 0; } 2>conftest.err; then 14026 soname=conftest 14027 lib=conftest 14028 libobjs=conftest.$ac_objext 14029 deplibs= 14030 wl=$lt_prog_compiler_wl_FC 14031 pic_flag=$lt_prog_compiler_pic_FC 14032 compiler_flags=-v 14033 linker_flags=-v 14034 verstring= 14035 output_objdir=. 14036 libname=conftest 14037 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 14038 allow_undefined_flag_FC= 14039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14040 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14041 ac_status=$? 14042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14043 test $ac_status = 0; } 14044 then 14045 lt_cv_archive_cmds_need_lc_FC=no 14046 else 14047 lt_cv_archive_cmds_need_lc_FC=yes 14048 fi 14049 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 14050 else 14051 cat conftest.err 1>&5 14052 fi 14053 $RM conftest* 14054 14055 fi 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 14057 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 14058 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 14059 ;; 14060 esac 14061 fi 14062 ;; 14063 esac 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14129 $as_echo_n "checking dynamic linker characteristics... " >&6; } 14130 14131 library_names_spec= 14132 libname_spec='lib$name' 14133 soname_spec= 14134 shrext_cmds=".so" 14135 postinstall_cmds= 14136 postuninstall_cmds= 14137 finish_cmds= 14138 finish_eval= 14139 shlibpath_var= 14140 shlibpath_overrides_runpath=unknown 14141 version_type=none 14142 dynamic_linker="$host_os ld.so" 14143 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14144 need_lib_prefix=unknown 14145 hardcode_into_libs=no 14146 14147 # when you set need_version to no, make sure it does not cause -set_version 14148 # flags to be left without arguments 14149 need_version=unknown 14150 14151 case $host_os in 14152 aix3*) 14153 version_type=linux 14154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14155 shlibpath_var=LIBPATH 14156 14157 # AIX 3 has no versioning support, so we append a major version to the name. 14158 soname_spec='${libname}${release}${shared_ext}$major' 14159 ;; 14160 14161 aix[4-9]*) 14162 version_type=linux 14163 need_lib_prefix=no 14164 need_version=no 14165 hardcode_into_libs=yes 14166 if test "$host_cpu" = ia64; then 14167 # AIX 5 supports IA64 14168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14169 shlibpath_var=LD_LIBRARY_PATH 14170 else 14171 # With GCC up to 2.95.x, collect2 would create an import file 14172 # for dependence libraries. The import file would start with 14173 # the line `#! .'. This would cause the generated library to 14174 # depend on `.', always an invalid library. This was fixed in 14175 # development snapshots of GCC prior to 3.0. 14176 case $host_os in 14177 aix4 | aix4.[01] | aix4.[01].*) 14178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14179 echo ' yes ' 14180 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14181 : 14182 else 14183 can_build_shared=no 14184 fi 14185 ;; 14186 esac 14187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14188 # soname into executable. Probably we can add versioning support to 14189 # collect2, so additional links can be useful in future. 14190 if test "$aix_use_runtimelinking" = yes; then 14191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14192 # instead of lib<name>.a to let people know that these are not 14193 # typical AIX shared libraries. 14194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14195 else 14196 # We preserve .a as extension for shared libraries through AIX4.2 14197 # and later when we are not doing run time linking. 14198 library_names_spec='${libname}${release}.a $libname.a' 14199 soname_spec='${libname}${release}${shared_ext}$major' 14200 fi 14201 shlibpath_var=LIBPATH 14202 fi 14203 ;; 14204 14205 amigaos*) 14206 case $host_cpu in 14207 powerpc) 14208 # Since July 2007 AmigaOS4 officially supports .so libraries. 14209 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14211 ;; 14212 m68k) 14213 library_names_spec='$libname.ixlibrary $libname.a' 14214 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14215 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' 14216 ;; 14217 esac 14218 ;; 14219 14220 beos*) 14221 library_names_spec='${libname}${shared_ext}' 14222 dynamic_linker="$host_os ld.so" 14223 shlibpath_var=LIBRARY_PATH 14224 ;; 14225 14226 bsdi[45]*) 14227 version_type=linux 14228 need_version=no 14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14230 soname_spec='${libname}${release}${shared_ext}$major' 14231 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14232 shlibpath_var=LD_LIBRARY_PATH 14233 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14234 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14235 # the default ld.so.conf also contains /usr/contrib/lib and 14236 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14237 # libtool to hard-code these into programs 14238 ;; 14239 14240 cygwin* | mingw* | pw32* | cegcc*) 14241 version_type=windows 14242 shrext_cmds=".dll" 14243 need_version=no 14244 need_lib_prefix=no 14245 14246 case $GCC,$host_os in 14247 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14248 library_names_spec='$libname.dll.a' 14249 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14250 postinstall_cmds='base_file=`basename \${file}`~ 14251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14252 dldir=$destdir/`dirname \$dlpath`~ 14253 test -d \$dldir || mkdir -p \$dldir~ 14254 $install_prog $dir/$dlname \$dldir/$dlname~ 14255 chmod a+x \$dldir/$dlname~ 14256 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14257 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14258 fi' 14259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14260 dlpath=$dir/\$dldll~ 14261 $RM \$dlpath' 14262 shlibpath_overrides_runpath=yes 14263 14264 case $host_os in 14265 cygwin*) 14266 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14267 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14268 14269 ;; 14270 mingw* | cegcc*) 14271 # MinGW DLLs use traditional 'lib' prefix 14272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14273 ;; 14274 pw32*) 14275 # pw32 DLLs use 'pw' prefix rather than 'lib' 14276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14277 ;; 14278 esac 14279 ;; 14280 14281 *) 14282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14283 ;; 14284 esac 14285 dynamic_linker='Win32 ld.exe' 14286 # FIXME: first we should search . and the directory the executable is in 14287 shlibpath_var=PATH 14288 ;; 14289 14290 darwin* | rhapsody*) 14291 dynamic_linker="$host_os dyld" 14292 version_type=darwin 14293 need_lib_prefix=no 14294 need_version=no 14295 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14296 soname_spec='${libname}${release}${major}$shared_ext' 14297 shlibpath_overrides_runpath=yes 14298 shlibpath_var=DYLD_LIBRARY_PATH 14299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14300 14301 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14302 ;; 14303 14304 dgux*) 14305 version_type=linux 14306 need_lib_prefix=no 14307 need_version=no 14308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14309 soname_spec='${libname}${release}${shared_ext}$major' 14310 shlibpath_var=LD_LIBRARY_PATH 14311 ;; 14312 14313 freebsd* | dragonfly*) 14314 # DragonFly does not have aout. When/if they implement a new 14315 # versioning mechanism, adjust this. 14316 if test -x /usr/bin/objformat; then 14317 objformat=`/usr/bin/objformat` 14318 else 14319 case $host_os in 14320 freebsd[23].*) objformat=aout ;; 14321 *) objformat=elf ;; 14322 esac 14323 fi 14324 version_type=freebsd-$objformat 14325 case $version_type in 14326 freebsd-elf*) 14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14328 need_version=no 14329 need_lib_prefix=no 14330 ;; 14331 freebsd-*) 14332 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14333 need_version=yes 14334 ;; 14335 esac 14336 shlibpath_var=LD_LIBRARY_PATH 14337 case $host_os in 14338 freebsd2.*) 14339 shlibpath_overrides_runpath=yes 14340 ;; 14341 freebsd3.[01]* | freebsdelf3.[01]*) 14342 shlibpath_overrides_runpath=yes 14343 hardcode_into_libs=yes 14344 ;; 14345 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14346 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14347 shlibpath_overrides_runpath=no 14348 hardcode_into_libs=yes 14349 ;; 14350 *) # from 4.6 on, and DragonFly 14351 shlibpath_overrides_runpath=yes 14352 hardcode_into_libs=yes 14353 ;; 14354 esac 14355 ;; 14356 14357 haiku*) 14358 version_type=linux 14359 need_lib_prefix=no 14360 need_version=no 14361 dynamic_linker="$host_os runtime_loader" 14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14363 soname_spec='${libname}${release}${shared_ext}$major' 14364 shlibpath_var=LIBRARY_PATH 14365 shlibpath_overrides_runpath=yes 14366 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14367 hardcode_into_libs=yes 14368 ;; 14369 14370 hpux9* | hpux10* | hpux11*) 14371 # Give a soname corresponding to the major version so that dld.sl refuses to 14372 # link against other versions. 14373 version_type=sunos 14374 need_lib_prefix=no 14375 need_version=no 14376 case $host_cpu in 14377 ia64*) 14378 shrext_cmds='.so' 14379 hardcode_into_libs=yes 14380 dynamic_linker="$host_os dld.so" 14381 shlibpath_var=LD_LIBRARY_PATH 14382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14384 soname_spec='${libname}${release}${shared_ext}$major' 14385 if test "X$HPUX_IA64_MODE" = X32; then 14386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14387 else 14388 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14389 fi 14390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14391 ;; 14392 hppa*64*) 14393 shrext_cmds='.sl' 14394 hardcode_into_libs=yes 14395 dynamic_linker="$host_os dld.sl" 14396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14399 soname_spec='${libname}${release}${shared_ext}$major' 14400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14402 ;; 14403 *) 14404 shrext_cmds='.sl' 14405 dynamic_linker="$host_os dld.sl" 14406 shlibpath_var=SHLIB_PATH 14407 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14409 soname_spec='${libname}${release}${shared_ext}$major' 14410 ;; 14411 esac 14412 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14413 postinstall_cmds='chmod 555 $lib' 14414 # or fails outright, so override atomically: 14415 install_override_mode=555 14416 ;; 14417 14418 interix[3-9]*) 14419 version_type=linux 14420 need_lib_prefix=no 14421 need_version=no 14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14423 soname_spec='${libname}${release}${shared_ext}$major' 14424 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14425 shlibpath_var=LD_LIBRARY_PATH 14426 shlibpath_overrides_runpath=no 14427 hardcode_into_libs=yes 14428 ;; 14429 14430 irix5* | irix6* | nonstopux*) 14431 case $host_os in 14432 nonstopux*) version_type=nonstopux ;; 14433 *) 14434 if test "$lt_cv_prog_gnu_ld" = yes; then 14435 version_type=linux 14436 else 14437 version_type=irix 14438 fi ;; 14439 esac 14440 need_lib_prefix=no 14441 need_version=no 14442 soname_spec='${libname}${release}${shared_ext}$major' 14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14444 case $host_os in 14445 irix5* | nonstopux*) 14446 libsuff= shlibsuff= 14447 ;; 14448 *) 14449 case $LD in # libtool.m4 will add one of these switches to LD 14450 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14451 libsuff= shlibsuff= libmagic=32-bit;; 14452 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14453 libsuff=32 shlibsuff=N32 libmagic=N32;; 14454 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14455 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14456 *) libsuff= shlibsuff= libmagic=never-match;; 14457 esac 14458 ;; 14459 esac 14460 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14461 shlibpath_overrides_runpath=no 14462 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14463 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14464 hardcode_into_libs=yes 14465 ;; 14466 14467 # No shared lib support for Linux oldld, aout, or coff. 14468 linux*oldld* | linux*aout* | linux*coff*) 14469 dynamic_linker=no 14470 ;; 14471 14472 # This must be Linux ELF. 14473 14474 # uclinux* changes (here and below) have been submitted to the libtool 14475 # project, but have not yet been accepted: they are GCC-local changes 14476 # for the time being. (See 14477 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 14478 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 14479 version_type=linux 14480 need_lib_prefix=no 14481 need_version=no 14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14483 soname_spec='${libname}${release}${shared_ext}$major' 14484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14485 shlibpath_var=LD_LIBRARY_PATH 14486 shlibpath_overrides_runpath=no 14487 14488 # Some binutils ld are patched to set DT_RUNPATH 14489 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14490 $as_echo_n "(cached) " >&6 14491 else 14492 lt_cv_shlibpath_overrides_runpath=no 14493 save_LDFLAGS=$LDFLAGS 14494 save_libdir=$libdir 14495 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 14496 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 14497 cat > conftest.$ac_ext <<_ACEOF 14498 program main 14499 14500 end 14501 _ACEOF 14502 if ac_fn_fc_try_link "$LINENO"; then : 14503 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14504 lt_cv_shlibpath_overrides_runpath=yes 14505 fi 14506 fi 14507 rm -f core conftest.err conftest.$ac_objext \ 14508 conftest$ac_exeext conftest.$ac_ext 14509 LDFLAGS=$save_LDFLAGS 14510 libdir=$save_libdir 14511 14512 fi 14513 14514 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14515 14516 # This implies no fast_install, which is unacceptable. 14517 # Some rework will be needed to allow for fast_install 14518 # before this can be enabled. 14519 hardcode_into_libs=yes 14520 14521 # Append ld.so.conf contents to the search path 14522 if test -f /etc/ld.so.conf; then 14523 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' ' '` 14524 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14525 fi 14526 14527 # We used to test for /lib/ld.so.1 and disable shared libraries on 14528 # powerpc, because MkLinux only supported shared libraries with the 14529 # GNU dynamic linker. Since this was broken with cross compilers, 14530 # most powerpc-linux boxes support dynamic linking these days and 14531 # people can always --disable-shared, the test was removed, and we 14532 # assume the GNU/Linux dynamic linker is in use. 14533 dynamic_linker='GNU/Linux ld.so' 14534 ;; 14535 14536 netbsd*) 14537 version_type=sunos 14538 need_lib_prefix=no 14539 need_version=no 14540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14543 dynamic_linker='NetBSD (a.out) ld.so' 14544 else 14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14546 soname_spec='${libname}${release}${shared_ext}$major' 14547 dynamic_linker='NetBSD ld.elf_so' 14548 fi 14549 shlibpath_var=LD_LIBRARY_PATH 14550 shlibpath_overrides_runpath=yes 14551 hardcode_into_libs=yes 14552 ;; 14553 14554 newsos6) 14555 version_type=linux 14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14557 shlibpath_var=LD_LIBRARY_PATH 14558 shlibpath_overrides_runpath=yes 14559 ;; 14560 14561 *nto* | *qnx*) 14562 version_type=qnx 14563 need_lib_prefix=no 14564 need_version=no 14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14566 soname_spec='${libname}${release}${shared_ext}$major' 14567 shlibpath_var=LD_LIBRARY_PATH 14568 shlibpath_overrides_runpath=no 14569 hardcode_into_libs=yes 14570 dynamic_linker='ldqnx.so' 14571 ;; 14572 14573 openbsd*) 14574 version_type=sunos 14575 sys_lib_dlsearch_path_spec="/usr/lib" 14576 need_lib_prefix=no 14577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14578 case $host_os in 14579 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14580 *) need_version=no ;; 14581 esac 14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14584 shlibpath_var=LD_LIBRARY_PATH 14585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14586 case $host_os in 14587 openbsd2.[89] | openbsd2.[89].*) 14588 shlibpath_overrides_runpath=no 14589 ;; 14590 *) 14591 shlibpath_overrides_runpath=yes 14592 ;; 14593 esac 14594 else 14595 shlibpath_overrides_runpath=yes 14596 fi 14597 ;; 14598 14599 os2*) 14600 libname_spec='$name' 14601 shrext_cmds=".dll" 14602 need_lib_prefix=no 14603 library_names_spec='$libname${shared_ext} $libname.a' 14604 dynamic_linker='OS/2 ld.exe' 14605 shlibpath_var=LIBPATH 14606 ;; 14607 14608 osf3* | osf4* | osf5*) 14609 version_type=osf 14610 need_lib_prefix=no 14611 need_version=no 14612 soname_spec='${libname}${release}${shared_ext}$major' 14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14614 shlibpath_var=LD_LIBRARY_PATH 14615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14617 ;; 14618 14619 rdos*) 14620 dynamic_linker=no 14621 ;; 14622 14623 solaris*) 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 soname_spec='${libname}${release}${shared_ext}$major' 14629 shlibpath_var=LD_LIBRARY_PATH 14630 shlibpath_overrides_runpath=yes 14631 hardcode_into_libs=yes 14632 # ldd complains unless libraries are executable 14633 postinstall_cmds='chmod +x $lib' 14634 ;; 14635 14636 sunos4*) 14637 version_type=sunos 14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14640 shlibpath_var=LD_LIBRARY_PATH 14641 shlibpath_overrides_runpath=yes 14642 if test "$with_gnu_ld" = yes; then 14643 need_lib_prefix=no 14644 fi 14645 need_version=yes 14646 ;; 14647 14648 sysv4 | sysv4.3*) 14649 version_type=linux 14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14651 soname_spec='${libname}${release}${shared_ext}$major' 14652 shlibpath_var=LD_LIBRARY_PATH 14653 case $host_vendor in 14654 sni) 14655 shlibpath_overrides_runpath=no 14656 need_lib_prefix=no 14657 runpath_var=LD_RUN_PATH 14658 ;; 14659 siemens) 14660 need_lib_prefix=no 14661 ;; 14662 motorola) 14663 need_lib_prefix=no 14664 need_version=no 14665 shlibpath_overrides_runpath=no 14666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14667 ;; 14668 esac 14669 ;; 14670 14671 sysv4*MP*) 14672 if test -d /usr/nec ;then 14673 version_type=linux 14674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14675 soname_spec='$libname${shared_ext}.$major' 14676 shlibpath_var=LD_LIBRARY_PATH 14677 fi 14678 ;; 14679 14680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14681 version_type=freebsd-elf 14682 need_lib_prefix=no 14683 need_version=no 14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14685 soname_spec='${libname}${release}${shared_ext}$major' 14686 shlibpath_var=LD_LIBRARY_PATH 14687 shlibpath_overrides_runpath=yes 14688 hardcode_into_libs=yes 14689 if test "$with_gnu_ld" = yes; then 14690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14691 else 14692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14693 case $host_os in 14694 sco3.2v5*) 14695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14696 ;; 14697 esac 14698 fi 14699 sys_lib_dlsearch_path_spec='/usr/lib' 14700 ;; 14701 14702 tpf*) 14703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14704 version_type=linux 14705 need_lib_prefix=no 14706 need_version=no 14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14708 shlibpath_var=LD_LIBRARY_PATH 14709 shlibpath_overrides_runpath=no 14710 hardcode_into_libs=yes 14711 ;; 14712 14713 uts4*) 14714 version_type=linux 14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14716 soname_spec='${libname}${release}${shared_ext}$major' 14717 shlibpath_var=LD_LIBRARY_PATH 14718 ;; 14719 14720 # Shared libraries for VwWorks, >= 7 only at this stage 14721 # and (fpic) still incompatible with "large" code models 14722 # in a few configurations. Only for RTP mode in any case, 14723 # and upon explicit request at configure time. 14724 vxworks7*) 14725 dynamic_linker=no 14726 case ${with_multisubdir}-${enable_shared} in 14727 *large*) 14728 ;; 14729 *mrtp*-yes) 14730 version_type=linux 14731 need_lib_prefix=no 14732 need_version=no 14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14734 soname_spec='${libname}${release}${shared_ext}$major' 14735 dynamic_linker="$host_os module_loader" 14736 ;; 14737 esac 14738 ;; 14739 *) 14740 dynamic_linker=no 14741 ;; 14742 esac 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14744 $as_echo "$dynamic_linker" >&6; } 14745 test "$dynamic_linker" = no && can_build_shared=no 14746 14747 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14748 if test "$GCC" = yes; then 14749 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14750 fi 14751 14752 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14753 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14754 fi 14755 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14756 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14757 fi 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14797 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14798 hardcode_action_FC= 14799 if test -n "$hardcode_libdir_flag_spec_FC" || 14800 test -n "$runpath_var_FC" || 14801 test "X$hardcode_automatic_FC" = "Xyes" ; then 14802 14803 # We can hardcode non-existent directories. 14804 if test "$hardcode_direct_FC" != no && 14805 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14806 # have to relink, otherwise we might link with an installed library 14807 # when we should be linking with a yet-to-be-installed one 14808 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && 14809 test "$hardcode_minus_L_FC" != no; then 14810 # Linking always hardcodes the temporary library directory. 14811 hardcode_action_FC=relink 14812 else 14813 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14814 hardcode_action_FC=immediate 14815 fi 14816 else 14817 # We cannot hardcode anything, or else we can only hardcode existing 14818 # directories. 14819 hardcode_action_FC=unsupported 14820 fi 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 14822 $as_echo "$hardcode_action_FC" >&6; } 14823 14824 if test "$hardcode_action_FC" = relink || 14825 test "$inherit_rpath_FC" = yes; then 14826 # Fast installation is not supported 14827 enable_fast_install=no 14828 elif test "$shlibpath_overrides_runpath" = yes || 14829 test "$enable_shared" = no; then 14830 # Fast installation is not necessary 14831 enable_fast_install=needless 14832 fi 14833 14834 14835 14836 14837 14838 14839 14840 fi # test -n "$compiler" 14841 14842 GCC=$lt_save_GCC 14843 CC="$lt_save_CC" 14844 fi # test "$_lt_disable_FC" != yes 14845 14846 ac_ext=c 14847 ac_cpp='$CPP $CPPFLAGS' 14848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14850 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14851 14852 14853 FCFLAGS="$FCFLAGS -Wall -L../libgfortran" 14854 14855 # For libtool versioning info, format is CURRENT:REVISION:AGE 14856 libtool_VERSION=1:0:0 14857 14858 14859 # Check header files. 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14861 $as_echo_n "checking for ANSI C header files... " >&6; } 14862 if ${ac_cv_header_stdc+:} false; then : 14863 $as_echo_n "(cached) " >&6 14864 else 14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14866 /* end confdefs.h. */ 14867 #include <stdlib.h> 14868 #include <stdarg.h> 14869 #include <string.h> 14870 #include <float.h> 14871 14872 int 14873 main () 14874 { 14875 14876 ; 14877 return 0; 14878 } 14879 _ACEOF 14880 if ac_fn_c_try_compile "$LINENO"; then : 14881 ac_cv_header_stdc=yes 14882 else 14883 ac_cv_header_stdc=no 14884 fi 14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14886 14887 if test $ac_cv_header_stdc = yes; then 14888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14890 /* end confdefs.h. */ 14891 #include <string.h> 14892 14893 _ACEOF 14894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14895 $EGREP "memchr" >/dev/null 2>&1; then : 14896 14897 else 14898 ac_cv_header_stdc=no 14899 fi 14900 rm -f conftest* 14901 14902 fi 14903 14904 if test $ac_cv_header_stdc = yes; then 14905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14907 /* end confdefs.h. */ 14908 #include <stdlib.h> 14909 14910 _ACEOF 14911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14912 $EGREP "free" >/dev/null 2>&1; then : 14913 14914 else 14915 ac_cv_header_stdc=no 14916 fi 14917 rm -f conftest* 14918 14919 fi 14920 14921 if test $ac_cv_header_stdc = yes; then 14922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14923 if test "$cross_compiling" = yes; then : 14924 : 14925 else 14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14927 /* end confdefs.h. */ 14928 #include <ctype.h> 14929 #include <stdlib.h> 14930 #if ((' ' & 0x0FF) == 0x020) 14931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14933 #else 14934 # define ISLOWER(c) \ 14935 (('a' <= (c) && (c) <= 'i') \ 14936 || ('j' <= (c) && (c) <= 'r') \ 14937 || ('s' <= (c) && (c) <= 'z')) 14938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14939 #endif 14940 14941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14942 int 14943 main () 14944 { 14945 int i; 14946 for (i = 0; i < 256; i++) 14947 if (XOR (islower (i), ISLOWER (i)) 14948 || toupper (i) != TOUPPER (i)) 14949 return 2; 14950 return 0; 14951 } 14952 _ACEOF 14953 if ac_fn_c_try_run "$LINENO"; then : 14954 14955 else 14956 ac_cv_header_stdc=no 14957 fi 14958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14959 conftest.$ac_objext conftest.beam conftest.$ac_ext 14960 fi 14961 14962 fi 14963 fi 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14965 $as_echo "$ac_cv_header_stdc" >&6; } 14966 if test $ac_cv_header_stdc = yes; then 14967 14968 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 14969 14970 fi 14971 14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14973 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14974 if ${ac_cv_header_time+:} false; then : 14975 $as_echo_n "(cached) " >&6 14976 else 14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14978 /* end confdefs.h. */ 14979 #include <sys/types.h> 14980 #include <sys/time.h> 14981 #include <time.h> 14982 14983 int 14984 main () 14985 { 14986 if ((struct tm *) 0) 14987 return 0; 14988 ; 14989 return 0; 14990 } 14991 _ACEOF 14992 if ac_fn_c_try_compile "$LINENO"; then : 14993 ac_cv_header_time=yes 14994 else 14995 ac_cv_header_time=no 14996 fi 14997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14998 fi 14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 15000 $as_echo "$ac_cv_header_time" >&6; } 15001 if test $ac_cv_header_time = yes; then 15002 15003 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 15004 15005 fi 15006 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 15008 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 15009 if ${gcc_cv_header_string+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011 else 15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013 /* end confdefs.h. */ 15014 #include <string.h> 15015 #include <strings.h> 15016 int 15017 main () 15018 { 15019 15020 ; 15021 return 0; 15022 } 15023 _ACEOF 15024 if ac_fn_c_try_compile "$LINENO"; then : 15025 gcc_cv_header_string=yes 15026 else 15027 gcc_cv_header_string=no 15028 fi 15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15030 fi 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 15032 $as_echo "$gcc_cv_header_string" >&6; } 15033 if test $gcc_cv_header_string = yes; then 15034 15035 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 15036 15037 fi 15038 15039 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h 15040 do : 15041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15044 cat >>confdefs.h <<_ACEOF 15045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15046 _ACEOF 15047 15048 fi 15049 15050 done 15051 15052 15053 XPCFLAGS="" 15054 case "$host" in 15055 *-*-rtems*) 15056 # RTEMS supports Pthreads, but the library is not available at GCC build time. 15057 ;; 15058 nvptx*-*-* | amdgcn*-*-*) 15059 # NVPTX does not support Pthreads, has its own code replacement. 15060 libgomp_use_pthreads=no 15061 # NVPTX is an accelerator-only target 15062 libgomp_offloaded_only=yes 15063 ;; 15064 *) 15065 # Check to see if -pthread or -lpthread is needed. Prefer the former. 15066 # In case the pthread.h system header is not found, this test will fail. 15067 CFLAGS="$CFLAGS -pthread" 15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15069 /* end confdefs.h. */ 15070 #include <pthread.h> 15071 void *g(void *d) { return NULL; } 15072 int 15073 main () 15074 { 15075 pthread_t t; pthread_create(&t,NULL,g,NULL); 15076 ; 15077 return 0; 15078 } 15079 _ACEOF 15080 if ac_fn_c_try_link "$LINENO"; then : 15081 XPCFLAGS=" -Wc,-pthread" 15082 else 15083 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" 15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15085 /* end confdefs.h. */ 15086 #include <pthread.h> 15087 void *g(void *d) { return NULL; } 15088 int 15089 main () 15090 { 15091 pthread_t t; pthread_create(&t,NULL,g,NULL); 15092 ; 15093 return 0; 15094 } 15095 _ACEOF 15096 if ac_fn_c_try_link "$LINENO"; then : 15097 15098 else 15099 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5 15100 fi 15101 rm -f core conftest.err conftest.$ac_objext \ 15102 conftest$ac_exeext conftest.$ac_ext 15103 fi 15104 rm -f core conftest.err conftest.$ac_objext \ 15105 conftest$ac_exeext conftest.$ac_ext 15106 esac 15107 15108 if test x$libgomp_use_pthreads != xno; then 15109 15110 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h 15111 15112 fi 15113 15114 if test x$libgomp_offloaded_only = xyes; then 15115 15116 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h 15117 15118 fi 15119 15120 if test "x$enable_offload_defaulted" = xyes; then 15121 15122 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h 15123 15124 fi 15125 15126 # The cast to long int works around a bug in the HP C Compiler 15127 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15128 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15129 # This bug is HP SR number 8606223364. 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 15131 $as_echo_n "checking size of void *... " >&6; } 15132 if ${ac_cv_sizeof_void_p+:} false; then : 15133 $as_echo_n "(cached) " >&6 15134 else 15135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 15136 15137 else 15138 if test "$ac_cv_type_void_p" = yes; then 15139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15141 as_fn_error 77 "cannot compute sizeof (void *) 15142 See \`config.log' for more details" "$LINENO" 5; } 15143 else 15144 ac_cv_sizeof_void_p=0 15145 fi 15146 fi 15147 15148 fi 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 15150 $as_echo "$ac_cv_sizeof_void_p" >&6; } 15151 15152 15153 15154 cat >>confdefs.h <<_ACEOF 15155 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 15156 _ACEOF 15157 15158 15159 15160 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*- 15161 # 15162 # Copyright (C) 2014-2024 Free Software Foundation, Inc. 15163 # 15164 # Contributed by Mentor Embedded. 15165 # 15166 # This file is part of the GNU Offloading and Multi Processing Library 15167 # (libgomp). 15168 # 15169 # Libgomp is free software; you can redistribute it and/or modify it 15170 # under the terms of the GNU General Public License as published by 15171 # the Free Software Foundation; either version 3, or (at your option) 15172 # any later version. 15173 # 15174 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY 15175 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 15176 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15177 # more details. 15178 # 15179 # Under Section 7 of GPL version 3, you are granted additional 15180 # permissions described in the GCC Runtime Library Exception, version 15181 # 3.1, as published by the Free Software Foundation. 15182 # 15183 # You should have received a copy of the GNU General Public License and 15184 # a copy of the GCC Runtime Library Exception along with this program; 15185 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 15186 # <http://www.gnu.org/licenses/>. 15187 15188 plugin_support=yes 15189 DL_LIBS= 15190 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 15192 $as_echo_n "checking for dlsym in -ldl... " >&6; } 15193 if ${ac_cv_lib_dl_dlsym+:} false; then : 15194 $as_echo_n "(cached) " >&6 15195 else 15196 ac_check_lib_save_LIBS=$LIBS 15197 LIBS="-ldl $LIBS" 15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199 /* end confdefs.h. */ 15200 15201 /* Override any GCC internal prototype to avoid an error. 15202 Use char because int might match the return type of a GCC 15203 builtin and then its argument prototype would still apply. */ 15204 #ifdef __cplusplus 15205 extern "C" 15206 #endif 15207 char dlsym (); 15208 int 15209 main () 15210 { 15211 return dlsym (); 15212 ; 15213 return 0; 15214 } 15215 _ACEOF 15216 if ac_fn_c_try_link "$LINENO"; then : 15217 ac_cv_lib_dl_dlsym=yes 15218 else 15219 ac_cv_lib_dl_dlsym=no 15220 fi 15221 rm -f core conftest.err conftest.$ac_objext \ 15222 conftest$ac_exeext conftest.$ac_ext 15223 LIBS=$ac_check_lib_save_LIBS 15224 fi 15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 15226 $as_echo "$ac_cv_lib_dl_dlsym" >&6; } 15227 if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 15228 DL_LIBS=-ldl 15229 else 15230 plugin_support=no 15231 fi 15232 15233 if test x"$plugin_support" = xyes; then 15234 15235 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h 15236 15237 elif test "x${enable_offload_targets-no}" != xno; then 15238 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5 15239 fi 15240 15241 15242 15243 for ac_header in $ac_header_list 15244 do : 15245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15246 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 15247 " 15248 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15249 cat >>confdefs.h <<_ACEOF 15250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15251 _ACEOF 15252 15253 fi 15254 15255 done 15256 15257 15258 15259 15260 15261 15262 15263 for ac_func in $ac_func_list 15264 do : 15265 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15266 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15267 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15268 cat >>confdefs.h <<_ACEOF 15269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15270 _ACEOF 15271 15272 fi 15273 done 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 PLUGIN_NVPTX=0 15291 PLUGIN_GCN=0 15292 # Parse '--enable-offload-targets', figure out the corresponding libgomp 15293 # plugins, and configure to find the corresponding offload compilers. 15294 # 'offload_plugins' and 'offload_targets' will be populated in the same order. 15295 offload_plugins= 15296 offload_targets= 15297 15298 15299 offload_additional_options= 15300 offload_additional_lib_paths= 15301 15302 15303 if test x"$enable_offload_targets" != x; then 15304 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do 15305 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'` 15306 tgt=`echo $tgt | sed 's/=.*//'` 15307 tgt_plugin= 15308 case $tgt in 15309 nvptx*) 15310 case "${target}" in 15311 aarch64*-*-* | powerpc64le-*-* | x86_64-*-*) 15312 case "$ac_cv_sizeof_void_p" in 15313 4) 15314 # PR libgomp/65099: Currently, we only support offloading in 15315 # 64-bit configurations. 15316 PLUGIN_NVPTX=0 15317 ;; 15318 *) 15319 tgt_plugin=nvptx 15320 PLUGIN_NVPTX=1 15321 ;; 15322 esac 15323 ;; 15324 *-*-*) 15325 # Target architecture not supported. 15326 PLUGIN_NVPTX=0 15327 ;; 15328 esac 15329 ;; 15330 amdgcn*) 15331 case "${target}" in 15332 x86_64-*-*) 15333 case "$ac_cv_sizeof_void_p" in 15334 4) 15335 PLUGIN_GCN=0 15336 ;; 15337 *) 15338 tgt_plugin=gcn 15339 PLUGIN_GCN=1 15340 ;; 15341 esac 15342 ;; 15343 *-*-*) 15344 PLUGIN_GCN=0 15345 ;; 15346 esac 15347 ;; 15348 *) 15349 as_fn_error $? "unknown offload target specified" "$LINENO" 5 15350 ;; 15351 esac 15352 if test x"$tgt_plugin" = x; then 15353 # Not configuring libgomp for this offload target if we're not building 15354 # the corresponding offload plugin. 15355 continue 15356 elif test x"$offload_plugins" = x; then 15357 offload_plugins=$tgt_plugin 15358 offload_targets=$tgt 15359 else 15360 offload_plugins=$offload_plugins,$tgt_plugin 15361 offload_targets=$offload_targets,$tgt 15362 fi 15363 # Configure additional search paths. 15364 if test x"$tgt_dir" != x; then 15365 offload_additional_options="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin" 15366 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32" 15367 else 15368 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)" 15369 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir" 15370 fi 15371 done 15372 fi 15373 15374 cat >>confdefs.h <<_ACEOF 15375 #define OFFLOAD_PLUGINS "$offload_plugins" 15376 _ACEOF 15377 15378 if test $PLUGIN_NVPTX = 1; then 15379 PLUGIN_NVPTX_TRUE= 15380 PLUGIN_NVPTX_FALSE='#' 15381 else 15382 PLUGIN_NVPTX_TRUE='#' 15383 PLUGIN_NVPTX_FALSE= 15384 fi 15385 15386 if test $PLUGIN_GCN = 1; then 15387 PLUGIN_GCN_TRUE= 15388 PLUGIN_GCN_FALSE='#' 15389 else 15390 PLUGIN_GCN_TRUE='#' 15391 PLUGIN_GCN_FALSE= 15392 fi 15393 15394 15395 15396 # Check for functions needed. 15397 for ac_func in getloadavg clock_gettime strtoull 15398 do : 15399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15402 cat >>confdefs.h <<_ACEOF 15403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15404 _ACEOF 15405 15406 fi 15407 done 15408 15409 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc 15410 do : 15411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15412 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15413 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15414 cat >>confdefs.h <<_ACEOF 15415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15416 _ACEOF 15417 15418 fi 15419 done 15420 15421 15422 # Check for broken semaphore implementation on darwin. 15423 # sem_init returns: sem_init error: Function not implemented. 15424 case "$host" in 15425 *-darwin*) 15426 15427 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 15428 15429 ;; 15430 esac 15431 15432 # RTEMS specific checks 15433 case "$host" in 15434 *-*-rtems*) 15435 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h> 15436 " 15437 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then : 15438 15439 cat >>confdefs.h <<_ACEOF 15440 #define HAVE_STRUCT__MUTEX_CONTROL 1 15441 _ACEOF 15442 15443 15444 fi 15445 15446 ;; 15447 esac 15448 15449 # Check whether --enable-linux-futex was given. 15450 if test "${enable_linux_futex+set}" = set; then : 15451 enableval=$enable_linux_futex; 15452 case "$enableval" in 15453 yes|no|default) ;; 15454 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;; 15455 esac 15456 15457 else 15458 enable_linux_futex=default 15459 fi 15460 15461 15462 case "$target" in 15463 *-linux* | *-uclinux*) 15464 case "$enable_linux_futex" in 15465 default) 15466 # If headers don't have gettid/futex syscalls definition, then 15467 # default to no, otherwise there will be compile time failures. 15468 # Otherwise, default to yes. If we don't detect we are 15469 # compiled/linked against NPTL and not cross-compiling, check 15470 # if programs are run by default against NPTL and if not, issue 15471 # a warning. 15472 enable_linux_futex=no 15473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15474 /* end confdefs.h. */ 15475 #include <sys/syscall.h> 15476 #include <unistd.h> 15477 int lk; 15478 int 15479 main () 15480 { 15481 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); 15482 ; 15483 return 0; 15484 } 15485 _ACEOF 15486 if ac_fn_c_try_link "$LINENO"; then : 15487 save_LIBS="$LIBS" 15488 LIBS="-lpthread $LIBS" 15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15490 /* end confdefs.h. */ 15491 #ifndef _GNU_SOURCE 15492 #define _GNU_SOURCE 1 15493 #endif 15494 #include <pthread.h> 15495 pthread_t th; void *status; 15496 int 15497 main () 15498 { 15499 pthread_tryjoin_np (th, &status); 15500 ; 15501 return 0; 15502 } 15503 _ACEOF 15504 if ac_fn_c_try_link "$LINENO"; then : 15505 enable_linux_futex=yes 15506 else 15507 if test x$cross_compiling = xno; then 15508 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ 15509 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls. 15511 If so, please configure with --disable-linux-futex" >&5 15512 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. 15513 If so, please configure with --disable-linux-futex" >&2;} 15514 fi 15515 fi 15516 enable_linux_futex=yes 15517 fi 15518 rm -f core conftest.err conftest.$ac_objext \ 15519 conftest$ac_exeext conftest.$ac_ext 15520 LIBS="$save_LIBS" 15521 fi 15522 rm -f core conftest.err conftest.$ac_objext \ 15523 conftest$ac_exeext conftest.$ac_ext 15524 ;; 15525 yes) 15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15527 /* end confdefs.h. */ 15528 #include <sys/syscall.h> 15529 #include <unistd.h> 15530 int lk; 15531 int 15532 main () 15533 { 15534 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); 15535 ; 15536 return 0; 15537 } 15538 _ACEOF 15539 if ac_fn_c_try_link "$LINENO"; then : 15540 15541 else 15542 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5 15543 fi 15544 rm -f core conftest.err conftest.$ac_objext \ 15545 conftest$ac_exeext conftest.$ac_ext 15546 ;; 15547 esac 15548 ;; 15549 *) 15550 enable_linux_futex=no 15551 ;; 15552 esac 15553 if test x$enable_linux_futex = xyes; then 15554 : 15555 fi 15556 15557 15558 # Check for pthread_{,attr_}[sg]etaffinity_np. 15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15560 /* end confdefs.h. */ 15561 #define _GNU_SOURCE 15562 #include <pthread.h> 15563 int 15564 main () 15565 { 15566 cpu_set_t cpuset; 15567 pthread_attr_t attr; 15568 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); 15569 if (CPU_ISSET (0, &cpuset)) 15570 CPU_SET (1, &cpuset); 15571 else 15572 CPU_ZERO (&cpuset); 15573 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); 15574 pthread_attr_init (&attr); 15575 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); 15576 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); 15577 ; 15578 return 0; 15579 } 15580 _ACEOF 15581 if ac_fn_c_try_link "$LINENO"; then : 15582 15583 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h 15584 15585 fi 15586 rm -f core conftest.err conftest.$ac_objext \ 15587 conftest$ac_exeext conftest.$ac_ext 15588 15589 # At least for glibc, clock_gettime is in librt. But don't pull that 15590 # in if it still doesn't give us the function we want. 15591 if test $ac_cv_func_clock_gettime = no; then 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 15593 $as_echo_n "checking for clock_gettime in -lrt... " >&6; } 15594 if ${ac_cv_lib_rt_clock_gettime+:} false; then : 15595 $as_echo_n "(cached) " >&6 15596 else 15597 ac_check_lib_save_LIBS=$LIBS 15598 LIBS="-lrt $LIBS" 15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15600 /* end confdefs.h. */ 15601 15602 /* Override any GCC internal prototype to avoid an error. 15603 Use char because int might match the return type of a GCC 15604 builtin and then its argument prototype would still apply. */ 15605 #ifdef __cplusplus 15606 extern "C" 15607 #endif 15608 char clock_gettime (); 15609 int 15610 main () 15611 { 15612 return clock_gettime (); 15613 ; 15614 return 0; 15615 } 15616 _ACEOF 15617 if ac_fn_c_try_link "$LINENO"; then : 15618 ac_cv_lib_rt_clock_gettime=yes 15619 else 15620 ac_cv_lib_rt_clock_gettime=no 15621 fi 15622 rm -f core conftest.err conftest.$ac_objext \ 15623 conftest$ac_exeext conftest.$ac_ext 15624 LIBS=$ac_check_lib_save_LIBS 15625 fi 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 15627 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 15628 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 15629 LIBS="-lrt $LIBS" 15630 15631 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 15632 15633 fi 15634 15635 fi 15636 15637 # Check for uname. 15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15639 /* end confdefs.h. */ 15640 #include <string.h> 15641 #include <stdlib.h> 15642 #include <sys/utsname.h> 15643 int 15644 main () 15645 { 15646 struct utsname buf; 15647 volatile size_t len = 0; 15648 if (!uname (buf)) 15649 len = strlen (buf.nodename); 15650 ; 15651 return 0; 15652 } 15653 _ACEOF 15654 if ac_fn_c_try_compile "$LINENO"; then : 15655 15656 $as_echo "#define HAVE_UNAME 1" >>confdefs.h 15657 15658 fi 15659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15660 15661 # Check for gethostname. 15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15663 /* end confdefs.h. */ 15664 #include <unistd.h> 15665 int 15666 main () 15667 { 15668 15669 char buf[256]; 15670 if (gethostname (buf, sizeof (buf) - 1) == 0) 15671 buf[255] = '\0'; 15672 15673 ; 15674 return 0; 15675 } 15676 _ACEOF 15677 if ac_fn_c_try_compile "$LINENO"; then : 15678 15679 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h 15680 15681 fi 15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15683 15684 # Check for getpid. 15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15686 /* end confdefs.h. */ 15687 #include <unistd.h> 15688 int 15689 main () 15690 { 15691 int pid = getpid (); 15692 ; 15693 return 0; 15694 } 15695 _ACEOF 15696 if ac_fn_c_try_compile "$LINENO"; then : 15697 15698 $as_echo "#define HAVE_GETPID 1" >>confdefs.h 15699 15700 fi 15701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15702 15703 # See if we support thread-local storage. 15704 15705 15706 # Check whether --enable-tls was given. 15707 if test "${enable_tls+set}" = set; then : 15708 enableval=$enable_tls; 15709 case "$enableval" in 15710 yes|no) ;; 15711 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;; 15712 esac 15713 15714 else 15715 enable_tls=yes 15716 fi 15717 15718 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5 15720 $as_echo_n "checking whether the target supports thread-local storage... " >&6; } 15721 if ${gcc_cv_have_tls+:} false; then : 15722 $as_echo_n "(cached) " >&6 15723 else 15724 15725 if test "$cross_compiling" = yes; then : 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727 /* end confdefs.h. */ 15728 __thread int a; int b; int main() { return a = b; } 15729 _ACEOF 15730 if ac_fn_c_try_link "$LINENO"; then : 15731 chktls_save_LDFLAGS="$LDFLAGS" 15732 case $host in 15733 *-*-linux* | -*-uclinuxfdpic*) 15734 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS" 15735 ;; 15736 esac 15737 chktls_save_CFLAGS="$CFLAGS" 15738 CFLAGS="-fPIC $CFLAGS" 15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15740 /* end confdefs.h. */ 15741 int f() { return 0; } 15742 _ACEOF 15743 if ac_fn_c_try_link "$LINENO"; then : 15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15745 /* end confdefs.h. */ 15746 __thread int a; int b; int f() { return a = b; } 15747 _ACEOF 15748 if ac_fn_c_try_link "$LINENO"; then : 15749 gcc_cv_have_tls=yes 15750 else 15751 gcc_cv_have_tls=no 15752 fi 15753 rm -f core conftest.err conftest.$ac_objext \ 15754 conftest$ac_exeext conftest.$ac_ext 15755 else 15756 gcc_cv_have_tls=yes 15757 fi 15758 rm -f core conftest.err conftest.$ac_objext \ 15759 conftest$ac_exeext conftest.$ac_ext 15760 CFLAGS="$chktls_save_CFLAGS" 15761 LDFLAGS="$chktls_save_LDFLAGS" 15762 else 15763 gcc_cv_have_tls=no 15764 fi 15765 rm -f core conftest.err conftest.$ac_objext \ 15766 conftest$ac_exeext conftest.$ac_ext 15767 15768 15769 else 15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15771 /* end confdefs.h. */ 15772 __thread int a; int b; int main() { return a = b; } 15773 _ACEOF 15774 if ac_fn_c_try_run "$LINENO"; then : 15775 chktls_save_LDFLAGS="$LDFLAGS" 15776 LDFLAGS="-static $LDFLAGS" 15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15778 /* end confdefs.h. */ 15779 int main() { return 0; } 15780 _ACEOF 15781 if ac_fn_c_try_link "$LINENO"; then : 15782 if test "$cross_compiling" = yes; then : 15783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15785 as_fn_error $? "cannot run test program while cross compiling 15786 See \`config.log' for more details" "$LINENO" 5; } 15787 else 15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15789 /* end confdefs.h. */ 15790 __thread int a; int b; int main() { return a = b; } 15791 _ACEOF 15792 if ac_fn_c_try_run "$LINENO"; then : 15793 gcc_cv_have_tls=yes 15794 else 15795 gcc_cv_have_tls=no 15796 fi 15797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15798 conftest.$ac_objext conftest.beam conftest.$ac_ext 15799 fi 15800 15801 else 15802 gcc_cv_have_tls=yes 15803 fi 15804 rm -f core conftest.err conftest.$ac_objext \ 15805 conftest$ac_exeext conftest.$ac_ext 15806 LDFLAGS="$chktls_save_LDFLAGS" 15807 if test $gcc_cv_have_tls = yes; then 15808 chktls_save_CFLAGS="$CFLAGS" 15809 thread_CFLAGS=failed 15810 for flag in '' '-pthread' '-lpthread'; do 15811 CFLAGS="$flag $chktls_save_CFLAGS" 15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15813 /* end confdefs.h. */ 15814 #include <pthread.h> 15815 void *g(void *d) { return NULL; } 15816 int 15817 main () 15818 { 15819 pthread_t t; pthread_create(&t,NULL,g,NULL); 15820 ; 15821 return 0; 15822 } 15823 _ACEOF 15824 if ac_fn_c_try_link "$LINENO"; then : 15825 thread_CFLAGS="$flag" 15826 fi 15827 rm -f core conftest.err conftest.$ac_objext \ 15828 conftest$ac_exeext conftest.$ac_ext 15829 if test "X$thread_CFLAGS" != Xfailed; then 15830 break 15831 fi 15832 done 15833 CFLAGS="$chktls_save_CFLAGS" 15834 if test "X$thread_CFLAGS" != Xfailed; then 15835 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" 15836 if test "$cross_compiling" = yes; then : 15837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15839 as_fn_error $? "cannot run test program while cross compiling 15840 See \`config.log' for more details" "$LINENO" 5; } 15841 else 15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15843 /* end confdefs.h. */ 15844 #include <pthread.h> 15845 __thread int a; 15846 static int *volatile a_in_other_thread; 15847 static void * 15848 thread_func (void *arg) 15849 { 15850 a_in_other_thread = &a; 15851 return (void *)0; 15852 } 15853 int 15854 main () 15855 { 15856 pthread_t thread; 15857 void *thread_retval; 15858 int *volatile a_in_main_thread; 15859 a_in_main_thread = &a; 15860 if (pthread_create (&thread, (pthread_attr_t *)0, 15861 thread_func, (void *)0)) 15862 return 0; 15863 if (pthread_join (thread, &thread_retval)) 15864 return 0; 15865 return (a_in_other_thread == a_in_main_thread); 15866 ; 15867 return 0; 15868 } 15869 _ACEOF 15870 if ac_fn_c_try_run "$LINENO"; then : 15871 gcc_cv_have_tls=yes 15872 else 15873 gcc_cv_have_tls=no 15874 fi 15875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15876 conftest.$ac_objext conftest.beam conftest.$ac_ext 15877 fi 15878 15879 CFLAGS="$chktls_save_CFLAGS" 15880 fi 15881 fi 15882 else 15883 gcc_cv_have_tls=no 15884 fi 15885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15886 conftest.$ac_objext conftest.beam conftest.$ac_ext 15887 fi 15888 15889 fi 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5 15891 $as_echo "$gcc_cv_have_tls" >&6; } 15892 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then 15893 15894 $as_echo "#define HAVE_TLS 1" >>confdefs.h 15895 15896 fi 15897 15898 # See if we have emulated thread-local storage. 15899 15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5 15901 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; } 15902 if ${gcc_cv_use_emutls+:} false; then : 15903 $as_echo_n "(cached) " >&6 15904 else 15905 15906 gcc_cv_use_emutls=no 15907 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c 15908 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5' 15909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 15910 (eval $ac_try) 2>&5 15911 ac_status=$? 15912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15913 test $ac_status = 0; }; }; then 15914 if grep __emutls_get_address conftest.s > /dev/null; then 15915 gcc_cv_use_emutls=yes 15916 fi 15917 fi 15918 rm -f conftest.* 15919 15920 fi 15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5 15922 $as_echo "$gcc_cv_use_emutls" >&6; } 15923 if test "$gcc_cv_use_emutls" = "yes" ; then 15924 15925 $as_echo "#define USE_EMUTLS 1" >>confdefs.h 15926 15927 fi 15928 15929 # See what sort of export controls are available. 15930 15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 15932 $as_echo_n "checking whether the target supports hidden visibility... " >&6; } 15933 if ${libgomp_cv_have_attribute_visibility+:} false; then : 15934 $as_echo_n "(cached) " >&6 15935 else 15936 15937 save_CFLAGS="$CFLAGS" 15938 CFLAGS="$CFLAGS -Werror" 15939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15940 /* end confdefs.h. */ 15941 void __attribute__((visibility("hidden"))) foo(void) { } 15942 int 15943 main () 15944 { 15945 15946 ; 15947 return 0; 15948 } 15949 _ACEOF 15950 if ac_fn_c_try_compile "$LINENO"; then : 15951 libgomp_cv_have_attribute_visibility=yes 15952 else 15953 libgomp_cv_have_attribute_visibility=no 15954 fi 15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15956 CFLAGS="$save_CFLAGS" 15957 fi 15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5 15959 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; } 15960 if test $libgomp_cv_have_attribute_visibility = yes; then 15961 15962 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h 15963 15964 fi 15965 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 15967 $as_echo_n "checking whether the target supports dllexport... " >&6; } 15968 if ${libgomp_cv_have_attribute_dllexport+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970 else 15971 15972 save_CFLAGS="$CFLAGS" 15973 CFLAGS="$CFLAGS -Werror" 15974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15975 /* end confdefs.h. */ 15976 void __attribute__((dllexport)) foo(void) { } 15977 int 15978 main () 15979 { 15980 15981 ; 15982 return 0; 15983 } 15984 _ACEOF 15985 if ac_fn_c_try_compile "$LINENO"; then : 15986 libgomp_cv_have_attribute_dllexport=yes 15987 else 15988 libgomp_cv_have_attribute_dllexport=no 15989 fi 15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15991 CFLAGS="$save_CFLAGS" 15992 fi 15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5 15994 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; } 15995 if test $libgomp_cv_have_attribute_dllexport = yes; then 15996 15997 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h 15998 15999 fi 16000 16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 16002 $as_echo_n "checking whether the target supports symbol aliases... " >&6; } 16003 if ${libgomp_cv_have_attribute_alias+:} false; then : 16004 $as_echo_n "(cached) " >&6 16005 else 16006 16007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16008 /* end confdefs.h. */ 16009 16010 void foo(void) { } 16011 extern void bar(void) __attribute__((alias("foo"))); 16012 int 16013 main () 16014 { 16015 bar(); 16016 ; 16017 return 0; 16018 } 16019 _ACEOF 16020 if ac_fn_c_try_link "$LINENO"; then : 16021 libgomp_cv_have_attribute_alias=yes 16022 else 16023 libgomp_cv_have_attribute_alias=no 16024 fi 16025 rm -f core conftest.err conftest.$ac_objext \ 16026 conftest$ac_exeext conftest.$ac_ext 16027 fi 16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5 16029 $as_echo "$libgomp_cv_have_attribute_alias" >&6; } 16030 if test $libgomp_cv_have_attribute_alias = yes; then 16031 16032 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h 16033 16034 fi 16035 16036 16037 # Check whether --with-gnu-ld was given. 16038 if test "${with_gnu_ld+set}" = set; then : 16039 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 16040 else 16041 with_gnu_ld=no 16042 fi 16043 16044 ac_prog=ld 16045 if test "$GCC" = yes; then 16046 # Check if gcc -print-prog-name=ld gives a path. 16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16048 $as_echo_n "checking for ld used by $CC... " >&6; } 16049 case $host in 16050 *-*-mingw*) 16051 # gcc leaves a trailing carriage return which upsets mingw 16052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16053 *) 16054 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 16055 esac 16056 case $ac_prog in 16057 # Accept absolute paths. 16058 [\\/]* | ?:[\\/]*) 16059 re_direlt='/[^/][^/]*/\.\./' 16060 # Canonicalize the pathname of ld 16061 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 16062 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 16063 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 16064 done 16065 test -z "$LD" && LD="$ac_prog" 16066 ;; 16067 "") 16068 # If it fails, then pretend we aren't using GCC. 16069 ac_prog=ld 16070 ;; 16071 *) 16072 # If it is relative, then search for the first ld in PATH. 16073 with_gnu_ld=unknown 16074 ;; 16075 esac 16076 elif test "$with_gnu_ld" = yes; then 16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16078 $as_echo_n "checking for GNU ld... " >&6; } 16079 else 16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16081 $as_echo_n "checking for non-GNU ld... " >&6; } 16082 fi 16083 if ${lt_cv_path_LD+:} false; then : 16084 $as_echo_n "(cached) " >&6 16085 else 16086 if test -z "$LD"; then 16087 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16088 for ac_dir in $PATH; do 16089 IFS="$lt_save_ifs" 16090 test -z "$ac_dir" && ac_dir=. 16091 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16092 lt_cv_path_LD="$ac_dir/$ac_prog" 16093 # Check to see if the program is GNU ld. I'd rather use --version, 16094 # but apparently some variants of GNU ld only accept -v. 16095 # Break only if it was the GNU/non-GNU ld that we prefer. 16096 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 16097 *GNU* | *'with BFD'*) 16098 test "$with_gnu_ld" != no && break 16099 ;; 16100 *) 16101 test "$with_gnu_ld" != yes && break 16102 ;; 16103 esac 16104 fi 16105 done 16106 IFS="$lt_save_ifs" 16107 else 16108 lt_cv_path_LD="$LD" # Let the user override the test with a path. 16109 fi 16110 fi 16111 16112 LD="$lt_cv_path_LD" 16113 if test -n "$LD"; then 16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16115 $as_echo "$LD" >&6; } 16116 else 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16118 $as_echo "no" >&6; } 16119 fi 16120 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16122 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 16123 if ${lt_cv_prog_gnu_ld+:} false; then : 16124 $as_echo_n "(cached) " >&6 16125 else 16126 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16127 case `$LD -v 2>&1 </dev/null` in 16128 *GNU* | *'with BFD'*) 16129 lt_cv_prog_gnu_ld=yes 16130 ;; 16131 *) 16132 lt_cv_prog_gnu_ld=no 16133 ;; 16134 esac 16135 fi 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 16137 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 16138 with_gnu_ld=$lt_cv_prog_gnu_ld 16139 16140 16141 16142 16143 16144 16145 16146 # If we're not using GNU ld, then there's no point in even trying these 16147 # tests. Check for that first. We should have already tested for gld 16148 # by now (in libtool), but require it now just to be safe... 16149 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' 16150 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' 16151 16152 16153 16154 # The name set by libtool depends on the version of libtool. Shame on us 16155 # for depending on an impl detail, but c'est la vie. Older versions used 16156 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on 16157 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually 16158 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't 16159 # set (hence we're using an older libtool), then set it. 16160 if test x${with_gnu_ld+set} != xset; then 16161 if test x${ac_cv_prog_gnu_ld+set} != xset; then 16162 # We got through "ac_require(ac_prog_ld)" and still not set? Huh? 16163 with_gnu_ld=no 16164 else 16165 with_gnu_ld=$ac_cv_prog_gnu_ld 16166 fi 16167 fi 16168 16169 # Start by getting the version number. I think the libtool test already 16170 # does some of this, but throws away the result. 16171 libgomp_ld_is_gold=no 16172 libgomp_ld_is_mold=no 16173 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then 16174 libgomp_ld_is_gold=yes 16175 elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then 16176 libgomp_ld_is_mold=yes 16177 fi 16178 16179 ldver=`$LD --version 2>/dev/null | 16180 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'` 16181 16182 libgomp_gnu_ld_version=`echo $ldver | \ 16183 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` 16184 16185 # Set --gc-sections. 16186 if test "$with_gnu_ld" = "notbroken"; then 16187 # GNU ld it is! Joy and bunny rabbits! 16188 16189 # All these tests are for C++; save the language and the compiler flags. 16190 # Need to do this so that g++ won't try to link in libstdc++ 16191 ac_test_CFLAGS="${CFLAGS+set}" 16192 ac_save_CFLAGS="$CFLAGS" 16193 CFLAGS='-x c++ -Wl,--gc-sections' 16194 16195 # Check for -Wl,--gc-sections 16196 # XXX This test is broken at the moment, as symbols required for linking 16197 # are now in libsupc++ (not built yet). In addition, this test has 16198 # cored on solaris in the past. In addition, --gc-sections doesn't 16199 # really work at the moment (keeps on discarding used sections, first 16200 # .eh_frame and now some of the glibc sections for iconv). 16201 # Bzzzzt. Thanks for playing, maybe next time. 16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 16203 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } 16204 if test "$cross_compiling" = yes; then : 16205 ac_sectionLDflags=yes 16206 else 16207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16208 /* end confdefs.h. */ 16209 16210 int main(void) 16211 { 16212 try { throw 1; } 16213 catch (...) { }; 16214 return 0; 16215 } 16216 16217 _ACEOF 16218 if ac_fn_c_try_run "$LINENO"; then : 16219 ac_sectionLDflags=yes 16220 else 16221 ac_sectionLDflags=no 16222 fi 16223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16224 conftest.$ac_objext conftest.beam conftest.$ac_ext 16225 fi 16226 16227 if test "$ac_test_CFLAGS" = set; then 16228 CFLAGS="$ac_save_CFLAGS" 16229 else 16230 # this is the suspicious part 16231 CFLAGS='' 16232 fi 16233 if test "$ac_sectionLDflags" = "yes"; then 16234 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" 16235 fi 16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 16237 $as_echo "$ac_sectionLDflags" >&6; } 16238 fi 16239 16240 # Set linker optimization flags. 16241 if test x"$with_gnu_ld" = x"yes"; then 16242 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" 16243 fi 16244 16245 16246 16247 16248 16249 16250 # Check whether --enable-symvers was given. 16251 if test "${enable_symvers+set}" = set; then : 16252 enableval=$enable_symvers; 16253 case "$enableval" in 16254 yes|no|gnu*|sun) ;; 16255 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; 16256 esac 16257 16258 else 16259 enable_symvers=yes 16260 fi 16261 16262 16263 16264 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we 16265 # don't know enough about $LD to do tricks... 16266 16267 16268 # Turn a 'yes' into a suitable default. 16269 if test x$enable_symvers = xyes ; then 16270 # FIXME The following test is too strict, in theory. 16271 if test $enable_shared = no || test "x$LD" = x; then 16272 enable_symvers=no 16273 else 16274 if test $with_gnu_ld = yes ; then 16275 enable_symvers=gnu 16276 else 16277 case ${target_os} in 16278 # Sun symbol versioning exists since Solaris 2.5. 16279 solaris2.[5-9]* | solaris2.1[0-9]*) 16280 enable_symvers=sun ;; 16281 *) 16282 enable_symvers=no ;; 16283 esac 16284 fi 16285 fi 16286 fi 16287 16288 # Check if 'sun' was requested on non-Solaris 2 platforms. 16289 if test x$enable_symvers = xsun ; then 16290 case ${target_os} in 16291 solaris2*) 16292 # All fine. 16293 ;; 16294 *) 16295 # Unlikely to work. 16296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 16297 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 16299 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16301 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16302 enable_symvers=no 16303 ;; 16304 esac 16305 fi 16306 16307 # Check to see if libgcc_s exists, indicating that shared libgcc is possible. 16308 if test $enable_symvers != no; then 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 16310 $as_echo_n "checking for shared libgcc... " >&6; } 16311 ac_save_CFLAGS="$CFLAGS" 16312 CFLAGS=' -lgcc_s' 16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16314 /* end confdefs.h. */ 16315 16316 int 16317 main () 16318 { 16319 return 0; 16320 ; 16321 return 0; 16322 } 16323 _ACEOF 16324 if ac_fn_c_try_link "$LINENO"; then : 16325 libgomp_shared_libgcc=yes 16326 else 16327 libgomp_shared_libgcc=no 16328 fi 16329 rm -f core conftest.err conftest.$ac_objext \ 16330 conftest$ac_exeext conftest.$ac_ext 16331 CFLAGS="$ac_save_CFLAGS" 16332 if test $libgomp_shared_libgcc = no; then 16333 cat > conftest.c <<EOF 16334 int main (void) { return 0; } 16335 EOF 16336 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ 16337 -shared -shared-libgcc -o conftest.so \ 16338 conftest.c -v 2>&1 >/dev/null \ 16339 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` 16340 rm -f conftest.c conftest.so 16341 if test x${libgomp_libgcc_s_suffix+set} = xset; then 16342 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" 16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16344 /* end confdefs.h. */ 16345 16346 int 16347 main () 16348 { 16349 return 0; 16350 ; 16351 return 0; 16352 } 16353 _ACEOF 16354 if ac_fn_c_try_link "$LINENO"; then : 16355 libgomp_shared_libgcc=yes 16356 fi 16357 rm -f core conftest.err conftest.$ac_objext \ 16358 conftest$ac_exeext conftest.$ac_ext 16359 CFLAGS="$ac_save_CFLAGS" 16360 fi 16361 fi 16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5 16363 $as_echo "$libgomp_shared_libgcc" >&6; } 16364 fi 16365 16366 # For GNU ld, we need at least this version. The format is described in 16367 # LIBGOMP_CHECK_LINKER_FEATURES above. 16368 libgomp_min_gnu_ld_version=21400 16369 # XXXXXXXXXXX libgomp_gnu_ld_version=21390 16370 16371 # Check to see if unspecified "yes" value can win, given results above. 16372 # Change "yes" into either "no" or a style name. 16373 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then 16374 if test $with_gnu_ld = yes; then 16375 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then 16376 enable_symvers=gnu 16377 elif test $libgomp_ld_is_gold = yes ; then 16378 enable_symvers=gnu 16379 elif test $libgomp_ld_is_mold = yes ; then 16380 enable_symvers=gnu 16381 else 16382 # The right tools, the right setup, but too old. Fallbacks? 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 16384 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} 16385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 16386 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} 16387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 16388 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 16390 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} 16391 if test $libgomp_gnu_ld_version -ge 21200 ; then 16392 # Globbing fix is present, proper block support is not. 16393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16394 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16395 enable_symvers=no 16396 else 16397 # 2.11 or older. 16398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16399 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16400 enable_symvers=no 16401 fi 16402 fi 16403 elif test $enable_symvers = sun; then 16404 : All interesting versions of Sun ld support sun style symbol versioning. 16405 else 16406 # just fail for now 16407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 16408 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 16410 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} 16411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 16412 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 16414 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 16415 enable_symvers=no 16416 fi 16417 fi 16418 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5 16420 $as_echo_n "checking whether the target supports .symver directive... " >&6; } 16421 if ${libgomp_cv_have_as_symver_directive+:} false; then : 16422 $as_echo_n "(cached) " >&6 16423 else 16424 16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16426 /* end confdefs.h. */ 16427 void foo (void); __asm (".symver foo, bar@SYMVER"); 16428 int 16429 main () 16430 { 16431 16432 ; 16433 return 0; 16434 } 16435 _ACEOF 16436 if ac_fn_c_try_compile "$LINENO"; then : 16437 libgomp_cv_have_as_symver_directive=yes 16438 else 16439 libgomp_cv_have_as_symver_directive=no 16440 fi 16441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16442 fi 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5 16444 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; } 16445 if test $libgomp_cv_have_as_symver_directive = yes; then 16446 16447 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h 16448 16449 fi 16450 16451 if test $enable_symvers != no; then 16452 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= 16453 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' 16454 else 16455 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' 16456 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= 16457 fi 16458 16459 if test $enable_symvers = gnu; then 16460 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE= 16461 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' 16462 else 16463 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' 16464 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE= 16465 fi 16466 16467 if test $enable_symvers = sun; then 16468 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE= 16469 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' 16470 else 16471 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' 16472 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE= 16473 fi 16474 16475 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 16476 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} 16477 16478 if test $enable_symvers != no ; then 16479 case ${target_os} in 16480 # The Solaris 2 runtime linker doesn't support the GNU extension of 16481 # binding the same symbol to different versions 16482 solaris2*) 16483 ;; 16484 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do. 16485 *) 16486 16487 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h 16488 16489 ;; 16490 esac 16491 fi 16492 16493 16494 if test $enable_symvers = gnu; then 16495 16496 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h 16497 16498 fi 16499 16500 # Determine cpu count to limit testsuite parallelism. 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5 16502 $as_echo_n "checking the number of available CPUs... " >&6; } 16503 CPU_COUNT="0" 16504 16505 # Try generic methods 16506 16507 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and 16508 # 'NPROCESSORS_ONLN' are platform-specific 16509 command -v getconf >/dev/null 2>&1 && \ 16510 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0" 16511 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then : 16512 : # empty 16513 else 16514 # 'nproc' is part of GNU Coreutils and is widely available 16515 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0" 16516 16517 fi 16518 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then : 16519 : # empty 16520 else 16521 # Try platform-specific preferred methods 16522 case $host_os in #( 16523 *linux*) : 16524 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #( 16525 *darwin*) : 16526 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #( 16527 freebsd*) : 16528 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #( 16529 netbsd*) : 16530 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #( 16531 solaris*) : 16532 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" ;; #( 16533 mingw*) : 16534 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( 16535 msys*) : 16536 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( 16537 cygwin*) : 16538 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( 16539 *) : 16540 ;; 16541 esac 16542 fi 16543 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then : 16544 : # empty 16545 else 16546 # Try less preferred generic method 16547 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux 16548 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0" 16549 16550 fi 16551 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then : 16552 : # empty 16553 else 16554 # Try platform-specific fallback methods 16555 # They can be less accurate and slower then preferred methods 16556 case $host_os in #( 16557 *linux*) : 16558 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #( 16559 *darwin*) : 16560 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #( 16561 freebsd*) : 16562 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( 16563 netbsd*) : 16564 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \ 16565 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( 16566 solaris*) : 16567 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \ 16568 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #( 16569 mingw*) : 16570 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then : 16571 : # empty 16572 else 16573 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" 16574 fi ;; #( 16575 msys*) : 16576 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( 16577 cygwin*) : 16578 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( 16579 *) : 16580 ;; 16581 esac 16582 fi 16583 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then : 16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5 16585 $as_echo "$CPU_COUNT" >&6; } 16586 16587 else 16588 CPU_COUNT="1" 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5 16590 $as_echo "unable to detect (assuming 1)" >&6; } 16591 16592 fi 16593 16594 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock implementation" >&5 16596 $as_echo "$as_me: checking for flock implementation" >&6;} 16597 for ac_prog in flock 16598 do 16599 # Extract the first word of "$ac_prog", so it can be a program name with args. 16600 set dummy $ac_prog; ac_word=$2 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16602 $as_echo_n "checking for $ac_word... " >&6; } 16603 if ${ac_cv_prog_FLOCK+:} false; then : 16604 $as_echo_n "(cached) " >&6 16605 else 16606 if test -n "$FLOCK"; then 16607 ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test. 16608 else 16609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16610 for as_dir in $PATH 16611 do 16612 IFS=$as_save_IFS 16613 test -z "$as_dir" && as_dir=. 16614 for ac_exec_ext in '' $ac_executable_extensions; do 16615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16616 ac_cv_prog_FLOCK="$ac_prog" 16617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16618 break 2 16619 fi 16620 done 16621 done 16622 IFS=$as_save_IFS 16623 16624 fi 16625 fi 16626 FLOCK=$ac_cv_prog_FLOCK 16627 if test -n "$FLOCK"; then 16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 16629 $as_echo "$FLOCK" >&6; } 16630 else 16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16632 $as_echo "no" >&6; } 16633 fi 16634 16635 16636 test -n "$FLOCK" && break 16637 done 16638 16639 # Fallback if 'perl' is available. 16640 if test -z "$FLOCK"; then 16641 # These need to be absolute paths, yet at the same time need to 16642 # canonicalize only relative paths, because then amd will not unmount 16643 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. 16644 case $srcdir in 16645 [\\/$]* | ?:[\\/]*) libgomp_abs_srcdir=${srcdir} ;; 16646 *) libgomp_abs_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; 16647 esac 16648 # Extract the first word of "perl", so it can be a program name with args. 16649 set dummy perl; ac_word=$2 16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16651 $as_echo_n "checking for $ac_word... " >&6; } 16652 if ${ac_cv_prog_FLOCK+:} false; then : 16653 $as_echo_n "(cached) " >&6 16654 else 16655 if test -n "$FLOCK"; then 16656 ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test. 16657 else 16658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16659 for as_dir in $PATH 16660 do 16661 IFS=$as_save_IFS 16662 test -z "$as_dir" && as_dir=. 16663 for ac_exec_ext in '' $ac_executable_extensions; do 16664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16665 ac_cv_prog_FLOCK="$libgomp_abs_srcdir/testsuite/flock" 16666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16667 break 2 16668 fi 16669 done 16670 done 16671 IFS=$as_save_IFS 16672 16673 fi 16674 fi 16675 FLOCK=$ac_cv_prog_FLOCK 16676 if test -n "$FLOCK"; then 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 16678 $as_echo "$FLOCK" >&6; } 16679 else 16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16681 $as_echo "no" >&6; } 16682 fi 16683 16684 16685 fi 16686 16687 16688 16689 # Get target configury. 16690 . ${srcdir}/configure.tgt 16691 CFLAGS="$save_CFLAGS $XCFLAGS" 16692 16693 # Check for __sync_val_compare_and_swap, but only after the target has 16694 # had a chance to set XCFLAGS. 16695 16696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5 16697 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; } 16698 if ${libgomp_cv_have_sync_builtins+:} false; then : 16699 $as_echo_n "(cached) " >&6 16700 else 16701 16702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16703 /* end confdefs.h. */ 16704 16705 int 16706 main () 16707 { 16708 int foo; __sync_val_compare_and_swap(&foo, 0, 1); 16709 ; 16710 return 0; 16711 } 16712 _ACEOF 16713 if ac_fn_c_try_link "$LINENO"; then : 16714 libgomp_cv_have_sync_builtins=yes 16715 else 16716 libgomp_cv_have_sync_builtins=no 16717 fi 16718 rm -f core conftest.err conftest.$ac_objext \ 16719 conftest$ac_exeext conftest.$ac_ext 16720 fi 16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5 16722 $as_echo "$libgomp_cv_have_sync_builtins" >&6; } 16723 if test $libgomp_cv_have_sync_builtins = yes; then 16724 16725 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h 16726 16727 fi 16728 16729 XCFLAGS="$XCFLAGS$XPCFLAGS" 16730 16731 # Add CET specific flags if CET is enabled 16732 # Check whether --enable-cet was given. 16733 if test "${enable_cet+set}" = set; then : 16734 enableval=$enable_cet; 16735 case "$enableval" in 16736 yes|no|auto) ;; 16737 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 16738 esac 16739 16740 else 16741 enable_cet=auto 16742 fi 16743 16744 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 16746 $as_echo_n "checking for CET support... " >&6; } 16747 16748 # NB: Avoid nested save_CFLAGS and save_LDFLAGS. 16749 case "$host" in 16750 i[34567]86-*-linux* | x86_64-*-linux*) 16751 case "$enable_cet" in 16752 auto) 16753 # Check if target supports multi-byte NOPs 16754 # and if compiler and assembler support CET insn. 16755 cet_save_CFLAGS="$CFLAGS" 16756 CFLAGS="$CFLAGS -fcf-protection" 16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16758 /* end confdefs.h. */ 16759 16760 int 16761 main () 16762 { 16763 16764 #if !defined(__SSE2__) 16765 #error target does not support multi-byte NOPs 16766 #else 16767 asm ("setssbsy"); 16768 #endif 16769 16770 ; 16771 return 0; 16772 } 16773 _ACEOF 16774 if ac_fn_c_try_compile "$LINENO"; then : 16775 enable_cet=yes 16776 else 16777 enable_cet=no 16778 fi 16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16780 CFLAGS="$cet_save_CFLAGS" 16781 ;; 16782 yes) 16783 # Check if assembler supports CET. 16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16785 /* end confdefs.h. */ 16786 16787 int 16788 main () 16789 { 16790 asm ("setssbsy"); 16791 ; 16792 return 0; 16793 } 16794 _ACEOF 16795 if ac_fn_c_try_compile "$LINENO"; then : 16796 16797 else 16798 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 16799 fi 16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16801 ;; 16802 esac 16803 ;; 16804 *) 16805 enable_cet=no 16806 ;; 16807 esac 16808 if test x$enable_cet = xyes; then 16809 CET_FLAGS="-fcf-protection -mshstk" 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16811 $as_echo "yes" >&6; } 16812 else 16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16814 $as_echo "no" >&6; } 16815 fi 16816 16817 XCFLAGS="$XCFLAGS $CET_FLAGS" 16818 FCFLAGS="$FCFLAGS $CET_FLAGS" 16819 16820 16821 16822 16823 16824 # Conditionalize the makefile for this target machine. 16825 tmake_file_= 16826 for f in ${tmake_file} 16827 do 16828 if test -f ${srcdir}/config/$f 16829 then 16830 tmake_file_="${tmake_file_} \$(srcdir)/config/$f" 16831 fi 16832 done 16833 tmake_file="${tmake_file_}" 16834 16835 16836 # Cleanup and exit. 16837 CFLAGS="$save_CFLAGS" 16838 cat >confcache <<\_ACEOF 16839 # This file is a shell script that caches the results of configure 16840 # tests run on this system so they can be shared between configure 16841 # scripts and configure runs, see configure's option --config-cache. 16842 # It is not useful on other systems. If it contains results you don't 16843 # want to keep, you may remove or edit it. 16844 # 16845 # config.status only pays attention to the cache file if you give it 16846 # the --recheck option to rerun configure. 16847 # 16848 # `ac_cv_env_foo' variables (set or unset) will be overridden when 16849 # loading this file, other *unset* `ac_cv_foo' will be assigned the 16850 # following values. 16851 16852 _ACEOF 16853 16854 # The following way of writing the cache mishandles newlines in values, 16855 # but we know of no workaround that is simple, portable, and efficient. 16856 # So, we kill variables containing newlines. 16857 # Ultrix sh set writes to stderr and can't be redirected directly, 16858 # and sets the high bit in the cache file unless we assign to the vars. 16859 ( 16860 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16861 eval ac_val=\$$ac_var 16862 case $ac_val in #( 16863 *${as_nl}*) 16864 case $ac_var in #( 16865 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16867 esac 16868 case $ac_var in #( 16869 _ | IFS | as_nl) ;; #( 16870 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16871 *) { eval $ac_var=; unset $ac_var;} ;; 16872 esac ;; 16873 esac 16874 done 16875 16876 (set) 2>&1 | 16877 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16878 *${as_nl}ac_space=\ *) 16879 # `set' does not quote correctly, so add quotes: double-quote 16880 # substitution turns \\\\ into \\, and sed turns \\ into \. 16881 sed -n \ 16882 "s/'/'\\\\''/g; 16883 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16884 ;; #( 16885 *) 16886 # `set' quotes correctly as required by POSIX, so do not add quotes. 16887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16888 ;; 16889 esac | 16890 sort 16891 ) | 16892 sed ' 16893 /^ac_cv_env_/b end 16894 t clear 16895 :clear 16896 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16897 t end 16898 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16899 :end' >>confcache 16900 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16901 if test -w "$cache_file"; then 16902 if test "x$cache_file" != "x/dev/null"; then 16903 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16904 $as_echo "$as_me: updating cache $cache_file" >&6;} 16905 if test ! -f "$cache_file" || test -h "$cache_file"; then 16906 cat confcache >"$cache_file" 16907 else 16908 case $cache_file in #( 16909 */* | ?:*) 16910 mv -f confcache "$cache_file"$$ && 16911 mv -f "$cache_file"$$ "$cache_file" ;; #( 16912 *) 16913 mv -f confcache "$cache_file" ;; 16914 esac 16915 fi 16916 fi 16917 else 16918 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16919 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16920 fi 16921 fi 16922 rm -f confcache 16923 16924 if test ${multilib} = yes; then 16925 multilib_arg="--enable-multilib" 16926 else 16927 multilib_arg= 16928 fi 16929 16930 # Set up the set of libraries that we need to link against for libgomp. 16931 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread, 16932 # which will force linkage against -lpthread (or equivalent for the system). 16933 # That's not 100% ideal, but about the best we can do easily. 16934 if test $enable_shared = yes; then 16935 link_gomp="-lgomp %{static: $LIBS${DL_LIBS:+ $DL_LIBS}}" 16936 else 16937 link_gomp="-lgomp $LIBS${DL_LIBS:+ $DL_LIBS}" 16938 fi 16939 16940 16941 if test "$ac_cv_fc_compiler_gnu" = yes; then 16942 USE_FORTRAN_TRUE= 16943 USE_FORTRAN_FALSE='#' 16944 else 16945 USE_FORTRAN_TRUE='#' 16946 USE_FORTRAN_FALSE= 16947 fi 16948 16949 16950 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document 16951 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove 16952 # the underscore here and update the PREREQ. If it doesn't, then we'll 16953 # need to copy this macro to our acinclude.m4. 16954 save_CFLAGS="$CFLAGS" 16955 for i in $config_path; do 16956 if test -f $srcdir/config/$i/omp-lock.h; then 16957 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h" 16958 break 16959 fi 16960 done 16961 16962 if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then : 16963 16964 fi 16965 16966 16967 if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then : 16968 16969 else 16970 OMP_INT128_SIZE=0 16971 fi 16972 16973 16974 if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then : 16975 16976 else 16977 OMP_DEPEND_KIND=0 16978 fi 16979 16980 16981 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then : 16982 16983 else 16984 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5 16985 fi 16986 16987 16988 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then : 16989 16990 fi 16991 16992 16993 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then : 16994 16995 fi 16996 16997 16998 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then : 16999 17000 fi 17001 17002 17003 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then : 17004 17005 else 17006 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5 17007 fi 17008 17009 17010 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then : 17011 17012 fi 17013 17014 17015 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then : 17016 17017 fi 17018 17019 17020 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then : 17021 17022 fi 17023 17024 17025 17026 # If the lock fits in an integer, then arrange for Fortran to use that 17027 # integer. If it doesn't, then arrange for Fortran to use a pointer. 17028 # Except that we don't have a way at present to multi-lib the installed 17029 # Fortran modules, so we assume 8 bytes for pointers, regardless of the 17030 # actual target. 17031 OMP_LOCK_KIND=$OMP_LOCK_SIZE 17032 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE 17033 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then 17034 OMP_LOCK_KIND=8 17035 fi 17036 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then 17037 OMP_NEST_LOCK_KIND=8 17038 fi 17039 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE 17040 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE 17041 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then 17042 OMP_LOCK_25_KIND=8 17043 fi 17044 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then 17045 OMP_NEST_LOCK_25_KIND=8 17046 fi 17047 if test "$ac_cv_fc_compiler_gnu" = yes; then 17048 if test $OMP_DEPEND_KIND -eq 16; then 17049 if test $OMP_INT128_SIZE -ne 16; then 17050 as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5 17051 fi 17052 else 17053 if test $OMP_DEPEND_KIND -ne 8; then 17054 as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5 17055 fi 17056 fi 17057 fi 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 CFLAGS="$save_CFLAGS" 17074 17075 # Determine what GCC version number to use in filesystem paths. 17076 17077 get_gcc_base_ver="cat" 17078 17079 # Check whether --with-gcc-major-version-only was given. 17080 if test "${with_gcc_major_version_only+set}" = set; then : 17081 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 17082 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 17083 fi 17084 17085 fi 17086 17087 17088 17089 17090 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" 17091 17092 ac_config_files="$ac_config_files Makefile libgomp.spec" 17093 17094 #ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" 17095 17096 #ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp" 17097 17098 cat >confcache <<\_ACEOF 17099 # This file is a shell script that caches the results of configure 17100 # tests run on this system so they can be shared between configure 17101 # scripts and configure runs, see configure's option --config-cache. 17102 # It is not useful on other systems. If it contains results you don't 17103 # want to keep, you may remove or edit it. 17104 # 17105 # config.status only pays attention to the cache file if you give it 17106 # the --recheck option to rerun configure. 17107 # 17108 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17109 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17110 # following values. 17111 17112 _ACEOF 17113 17114 # The following way of writing the cache mishandles newlines in values, 17115 # but we know of no workaround that is simple, portable, and efficient. 17116 # So, we kill variables containing newlines. 17117 # Ultrix sh set writes to stderr and can't be redirected directly, 17118 # and sets the high bit in the cache file unless we assign to the vars. 17119 ( 17120 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17121 eval ac_val=\$$ac_var 17122 case $ac_val in #( 17123 *${as_nl}*) 17124 case $ac_var in #( 17125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17126 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17127 esac 17128 case $ac_var in #( 17129 _ | IFS | as_nl) ;; #( 17130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17131 *) { eval $ac_var=; unset $ac_var;} ;; 17132 esac ;; 17133 esac 17134 done 17135 17136 (set) 2>&1 | 17137 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17138 *${as_nl}ac_space=\ *) 17139 # `set' does not quote correctly, so add quotes: double-quote 17140 # substitution turns \\\\ into \\, and sed turns \\ into \. 17141 sed -n \ 17142 "s/'/'\\\\''/g; 17143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17144 ;; #( 17145 *) 17146 # `set' quotes correctly as required by POSIX, so do not add quotes. 17147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17148 ;; 17149 esac | 17150 sort 17151 ) | 17152 sed ' 17153 /^ac_cv_env_/b end 17154 t clear 17155 :clear 17156 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17157 t end 17158 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17159 :end' >>confcache 17160 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17161 if test -w "$cache_file"; then 17162 if test "x$cache_file" != "x/dev/null"; then 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17164 $as_echo "$as_me: updating cache $cache_file" >&6;} 17165 if test ! -f "$cache_file" || test -h "$cache_file"; then 17166 cat confcache >"$cache_file" 17167 else 17168 case $cache_file in #( 17169 */* | ?:*) 17170 mv -f confcache "$cache_file"$$ && 17171 mv -f "$cache_file"$$ "$cache_file" ;; #( 17172 *) 17173 mv -f confcache "$cache_file" ;; 17174 esac 17175 fi 17176 fi 17177 else 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17179 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17180 fi 17181 fi 17182 rm -f confcache 17183 17184 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17185 # Let make expand exec_prefix. 17186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17187 17188 DEFS=-DHAVE_CONFIG_H 17189 17190 ac_libobjs= 17191 ac_ltlibobjs= 17192 U= 17193 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17194 # 1. Remove the extension, and $U if already installed. 17195 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17196 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17197 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17198 # will be set to the directory where LIBOBJS objects are built. 17199 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17200 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17201 done 17202 LIBOBJS=$ac_libobjs 17203 17204 LTLIBOBJS=$ac_ltlibobjs 17205 17206 17207 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 17208 as_fn_error $? "conditional \"GENINSRC\" was never defined. 17209 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17210 fi 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17212 $as_echo_n "checking that generated files are newer than configure... " >&6; } 17213 if test -n "$am_sleep_pid"; then 17214 # Hide warnings about reused PIDs. 17215 wait $am_sleep_pid 2>/dev/null 17216 fi 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17218 $as_echo "done" >&6; } 17219 if test -n "$EXEEXT"; then 17220 am__EXEEXT_TRUE= 17221 am__EXEEXT_FALSE='#' 17222 else 17223 am__EXEEXT_TRUE='#' 17224 am__EXEEXT_FALSE= 17225 fi 17226 17227 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17228 as_fn_error $? "conditional \"AMDEP\" was never defined. 17229 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17230 fi 17231 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17232 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17233 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17234 fi 17235 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 17236 as_fn_error $? "conditional \"BUILD_INFO\" was never defined. 17237 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17238 fi 17239 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then 17240 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined. 17241 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17242 fi 17243 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17244 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17245 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17246 fi 17247 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then 17248 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined. 17249 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17250 fi 17251 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then 17252 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined. 17253 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17254 fi 17255 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then 17256 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. 17257 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17258 fi 17259 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then 17260 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined. 17261 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17262 fi 17263 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then 17264 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined. 17265 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17266 fi 17267 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then 17268 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined. 17269 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17270 fi 17271 17272 : "${CONFIG_STATUS=./config.status}" 17273 ac_write_fail=0 17274 ac_clean_files_save=$ac_clean_files 17275 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17277 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17278 as_write_fail=0 17279 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17280 #! $SHELL 17281 # Generated by $as_me. 17282 # Run this file to recreate the current configuration. 17283 # Compiler output produced by configure, useful for debugging 17284 # configure, is in config.log if it exists. 17285 17286 debug=false 17287 ac_cs_recheck=false 17288 ac_cs_silent=false 17289 17290 SHELL=\${CONFIG_SHELL-$SHELL} 17291 export SHELL 17292 _ASEOF 17293 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17294 ## -------------------- ## 17295 ## M4sh Initialization. ## 17296 ## -------------------- ## 17297 17298 # Be more Bourne compatible 17299 DUALCASE=1; export DUALCASE # for MKS sh 17300 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17301 emulate sh 17302 NULLCMD=: 17303 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17304 # is contrary to our usage. Disable this feature. 17305 alias -g '${1+"$@"}'='"$@"' 17306 setopt NO_GLOB_SUBST 17307 else 17308 case `(set -o) 2>/dev/null` in #( 17309 *posix*) : 17310 set -o posix ;; #( 17311 *) : 17312 ;; 17313 esac 17314 fi 17315 17316 17317 as_nl=' 17318 ' 17319 export as_nl 17320 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17321 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17322 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17324 # Prefer a ksh shell builtin over an external printf program on Solaris, 17325 # but without wasting forks for bash or zsh. 17326 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17327 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17328 as_echo='print -r --' 17329 as_echo_n='print -rn --' 17330 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17331 as_echo='printf %s\n' 17332 as_echo_n='printf %s' 17333 else 17334 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17335 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17336 as_echo_n='/usr/ucb/echo -n' 17337 else 17338 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17339 as_echo_n_body='eval 17340 arg=$1; 17341 case $arg in #( 17342 *"$as_nl"*) 17343 expr "X$arg" : "X\\(.*\\)$as_nl"; 17344 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17345 esac; 17346 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17347 ' 17348 export as_echo_n_body 17349 as_echo_n='sh -c $as_echo_n_body as_echo' 17350 fi 17351 export as_echo_body 17352 as_echo='sh -c $as_echo_body as_echo' 17353 fi 17354 17355 # The user is always right. 17356 if test "${PATH_SEPARATOR+set}" != set; then 17357 PATH_SEPARATOR=: 17358 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17359 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17360 PATH_SEPARATOR=';' 17361 } 17362 fi 17363 17364 17365 # IFS 17366 # We need space, tab and new line, in precisely that order. Quoting is 17367 # there to prevent editors from complaining about space-tab. 17368 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17369 # splitting by setting IFS to empty value.) 17370 IFS=" "" $as_nl" 17371 17372 # Find who we are. Look in the path if we contain no directory separator. 17373 as_myself= 17374 case $0 in #(( 17375 *[\\/]* ) as_myself=$0 ;; 17376 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17377 for as_dir in $PATH 17378 do 17379 IFS=$as_save_IFS 17380 test -z "$as_dir" && as_dir=. 17381 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17382 done 17383 IFS=$as_save_IFS 17384 17385 ;; 17386 esac 17387 # We did not find ourselves, most probably we were run as `sh COMMAND' 17388 # in which case we are not to be found in the path. 17389 if test "x$as_myself" = x; then 17390 as_myself=$0 17391 fi 17392 if test ! -f "$as_myself"; then 17393 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17394 exit 1 17395 fi 17396 17397 # Unset variables that we do not need and which cause bugs (e.g. in 17398 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17399 # suppresses any "Segmentation fault" message there. '((' could 17400 # trigger a bug in pdksh 5.2.14. 17401 for as_var in BASH_ENV ENV MAIL MAILPATH 17402 do eval test x\${$as_var+set} = xset \ 17403 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17404 done 17405 PS1='$ ' 17406 PS2='> ' 17407 PS4='+ ' 17408 17409 # NLS nuisances. 17410 LC_ALL=C 17411 export LC_ALL 17412 LANGUAGE=C 17413 export LANGUAGE 17414 17415 # CDPATH. 17416 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17417 17418 17419 # as_fn_error STATUS ERROR [LINENO LOG_FD] 17420 # ---------------------------------------- 17421 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17422 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17423 # script with STATUS, using 1 if that was 0. 17424 as_fn_error () 17425 { 17426 as_status=$1; test $as_status -eq 0 && as_status=1 17427 if test "$4"; then 17428 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17429 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17430 fi 17431 $as_echo "$as_me: error: $2" >&2 17432 as_fn_exit $as_status 17433 } # as_fn_error 17434 17435 17436 # as_fn_set_status STATUS 17437 # ----------------------- 17438 # Set $? to STATUS, without forking. 17439 as_fn_set_status () 17440 { 17441 return $1 17442 } # as_fn_set_status 17443 17444 # as_fn_exit STATUS 17445 # ----------------- 17446 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17447 as_fn_exit () 17448 { 17449 set +e 17450 as_fn_set_status $1 17451 exit $1 17452 } # as_fn_exit 17453 17454 # as_fn_unset VAR 17455 # --------------- 17456 # Portably unset VAR. 17457 as_fn_unset () 17458 { 17459 { eval $1=; unset $1;} 17460 } 17461 as_unset=as_fn_unset 17462 # as_fn_append VAR VALUE 17463 # ---------------------- 17464 # Append the text in VALUE to the end of the definition contained in VAR. Take 17465 # advantage of any shell optimizations that allow amortized linear growth over 17466 # repeated appends, instead of the typical quadratic growth present in naive 17467 # implementations. 17468 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17469 eval 'as_fn_append () 17470 { 17471 eval $1+=\$2 17472 }' 17473 else 17474 as_fn_append () 17475 { 17476 eval $1=\$$1\$2 17477 } 17478 fi # as_fn_append 17479 17480 # as_fn_arith ARG... 17481 # ------------------ 17482 # Perform arithmetic evaluation on the ARGs, and store the result in the 17483 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17484 # must be portable across $(()) and expr. 17485 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17486 eval 'as_fn_arith () 17487 { 17488 as_val=$(( $* )) 17489 }' 17490 else 17491 as_fn_arith () 17492 { 17493 as_val=`expr "$@" || test $? -eq 1` 17494 } 17495 fi # as_fn_arith 17496 17497 17498 if expr a : '\(a\)' >/dev/null 2>&1 && 17499 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17500 as_expr=expr 17501 else 17502 as_expr=false 17503 fi 17504 17505 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17506 as_basename=basename 17507 else 17508 as_basename=false 17509 fi 17510 17511 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17512 as_dirname=dirname 17513 else 17514 as_dirname=false 17515 fi 17516 17517 as_me=`$as_basename -- "$0" || 17518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17519 X"$0" : 'X\(//\)$' \| \ 17520 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17521 $as_echo X/"$0" | 17522 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17523 s//\1/ 17524 q 17525 } 17526 /^X\/\(\/\/\)$/{ 17527 s//\1/ 17528 q 17529 } 17530 /^X\/\(\/\).*/{ 17531 s//\1/ 17532 q 17533 } 17534 s/.*/./; q'` 17535 17536 # Avoid depending upon Character Ranges. 17537 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17538 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17539 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17540 as_cr_digits='0123456789' 17541 as_cr_alnum=$as_cr_Letters$as_cr_digits 17542 17543 ECHO_C= ECHO_N= ECHO_T= 17544 case `echo -n x` in #((((( 17545 -n*) 17546 case `echo 'xy\c'` in 17547 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17548 xy) ECHO_C='\c';; 17549 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17550 ECHO_T=' ';; 17551 esac;; 17552 *) 17553 ECHO_N='-n';; 17554 esac 17555 17556 rm -f conf$$ conf$$.exe conf$$.file 17557 if test -d conf$$.dir; then 17558 rm -f conf$$.dir/conf$$.file 17559 else 17560 rm -f conf$$.dir 17561 mkdir conf$$.dir 2>/dev/null 17562 fi 17563 if (echo >conf$$.file) 2>/dev/null; then 17564 if ln -s conf$$.file conf$$ 2>/dev/null; then 17565 as_ln_s='ln -s' 17566 # ... but there are two gotchas: 17567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17569 # In both cases, we have to default to `cp -pR'. 17570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17571 as_ln_s='cp -pR' 17572 elif ln conf$$.file conf$$ 2>/dev/null; then 17573 as_ln_s=ln 17574 else 17575 as_ln_s='cp -pR' 17576 fi 17577 else 17578 as_ln_s='cp -pR' 17579 fi 17580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17581 rmdir conf$$.dir 2>/dev/null 17582 17583 17584 # as_fn_mkdir_p 17585 # ------------- 17586 # Create "$as_dir" as a directory, including parents if necessary. 17587 as_fn_mkdir_p () 17588 { 17589 17590 case $as_dir in #( 17591 -*) as_dir=./$as_dir;; 17592 esac 17593 test -d "$as_dir" || eval $as_mkdir_p || { 17594 as_dirs= 17595 while :; do 17596 case $as_dir in #( 17597 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17598 *) as_qdir=$as_dir;; 17599 esac 17600 as_dirs="'$as_qdir' $as_dirs" 17601 as_dir=`$as_dirname -- "$as_dir" || 17602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17603 X"$as_dir" : 'X\(//\)[^/]' \| \ 17604 X"$as_dir" : 'X\(//\)$' \| \ 17605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17606 $as_echo X"$as_dir" | 17607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17608 s//\1/ 17609 q 17610 } 17611 /^X\(\/\/\)[^/].*/{ 17612 s//\1/ 17613 q 17614 } 17615 /^X\(\/\/\)$/{ 17616 s//\1/ 17617 q 17618 } 17619 /^X\(\/\).*/{ 17620 s//\1/ 17621 q 17622 } 17623 s/.*/./; q'` 17624 test -d "$as_dir" && break 17625 done 17626 test -z "$as_dirs" || eval "mkdir $as_dirs" 17627 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17628 17629 17630 } # as_fn_mkdir_p 17631 if mkdir -p . 2>/dev/null; then 17632 as_mkdir_p='mkdir -p "$as_dir"' 17633 else 17634 test -d ./-p && rmdir ./-p 17635 as_mkdir_p=false 17636 fi 17637 17638 17639 # as_fn_executable_p FILE 17640 # ----------------------- 17641 # Test if FILE is an executable regular file. 17642 as_fn_executable_p () 17643 { 17644 test -f "$1" && test -x "$1" 17645 } # as_fn_executable_p 17646 as_test_x='test -x' 17647 as_executable_p=as_fn_executable_p 17648 17649 # Sed expression to map a string onto a valid CPP name. 17650 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17651 17652 # Sed expression to map a string onto a valid variable name. 17653 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17654 17655 17656 exec 6>&1 17657 ## ----------------------------------- ## 17658 ## Main body of $CONFIG_STATUS script. ## 17659 ## ----------------------------------- ## 17660 _ASEOF 17661 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17662 17663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17664 # Save the log message, to keep $0 and so on meaningful, and to 17665 # report actual input values of CONFIG_FILES etc. instead of their 17666 # values after options handling. 17667 ac_log=" 17668 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was 17669 generated by GNU Autoconf 2.69. Invocation command line was 17670 17671 CONFIG_FILES = $CONFIG_FILES 17672 CONFIG_HEADERS = $CONFIG_HEADERS 17673 CONFIG_LINKS = $CONFIG_LINKS 17674 CONFIG_COMMANDS = $CONFIG_COMMANDS 17675 $ $0 $@ 17676 17677 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17678 " 17679 17680 _ACEOF 17681 17682 case $ac_config_files in *" 17683 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17684 esac 17685 17686 case $ac_config_headers in *" 17687 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17688 esac 17689 17690 17691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17692 # Files that config.status was made for. 17693 config_files="$ac_config_files" 17694 config_headers="$ac_config_headers" 17695 config_commands="$ac_config_commands" 17696 17697 _ACEOF 17698 17699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17700 ac_cs_usage="\ 17701 \`$as_me' instantiates files and other configuration actions 17702 from templates according to the current configuration. Unless the files 17703 and actions are specified as TAGs, all are instantiated by default. 17704 17705 Usage: $0 [OPTION]... [TAG]... 17706 17707 -h, --help print this help, then exit 17708 -V, --version print version number and configuration settings, then exit 17709 --config print configuration, then exit 17710 -q, --quiet, --silent 17711 do not print progress messages 17712 -d, --debug don't remove temporary files 17713 --recheck update $as_me by reconfiguring in the same conditions 17714 --file=FILE[:TEMPLATE] 17715 instantiate the configuration file FILE 17716 --header=FILE[:TEMPLATE] 17717 instantiate the configuration header FILE 17718 17719 Configuration files: 17720 $config_files 17721 17722 Configuration headers: 17723 $config_headers 17724 17725 Configuration commands: 17726 $config_commands 17727 17728 Report bugs to the package provider. 17729 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>. 17730 General help using GNU software: <http://www.gnu.org/gethelp/>." 17731 17732 _ACEOF 17733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17734 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17735 ac_cs_version="\\ 17736 GNU Offloading and Multi Processing Runtime Library config.status 1.0 17737 configured by $0, generated by GNU Autoconf 2.69, 17738 with options \\"\$ac_cs_config\\" 17739 17740 Copyright (C) 2012 Free Software Foundation, Inc. 17741 This config.status script is free software; the Free Software Foundation 17742 gives unlimited permission to copy, distribute and modify it." 17743 17744 ac_pwd='$ac_pwd' 17745 srcdir='$srcdir' 17746 INSTALL='$INSTALL' 17747 MKDIR_P='$MKDIR_P' 17748 AWK='$AWK' 17749 test -n "\$AWK" || AWK=awk 17750 _ACEOF 17751 17752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17753 # The default lists apply if the user does not specify any file. 17754 ac_need_defaults=: 17755 while test $# != 0 17756 do 17757 case $1 in 17758 --*=?*) 17759 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17760 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17761 ac_shift=: 17762 ;; 17763 --*=) 17764 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17765 ac_optarg= 17766 ac_shift=: 17767 ;; 17768 *) 17769 ac_option=$1 17770 ac_optarg=$2 17771 ac_shift=shift 17772 ;; 17773 esac 17774 17775 case $ac_option in 17776 # Handling of the options. 17777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17778 ac_cs_recheck=: ;; 17779 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17780 $as_echo "$ac_cs_version"; exit ;; 17781 --config | --confi | --conf | --con | --co | --c ) 17782 $as_echo "$ac_cs_config"; exit ;; 17783 --debug | --debu | --deb | --de | --d | -d ) 17784 debug=: ;; 17785 --file | --fil | --fi | --f ) 17786 $ac_shift 17787 case $ac_optarg in 17788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17789 '') as_fn_error $? "missing file argument" ;; 17790 esac 17791 as_fn_append CONFIG_FILES " '$ac_optarg'" 17792 ac_need_defaults=false;; 17793 --header | --heade | --head | --hea ) 17794 $ac_shift 17795 case $ac_optarg in 17796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17797 esac 17798 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17799 ac_need_defaults=false;; 17800 --he | --h) 17801 # Conflict between --help and --header 17802 as_fn_error $? "ambiguous option: \`$1' 17803 Try \`$0 --help' for more information.";; 17804 --help | --hel | -h ) 17805 $as_echo "$ac_cs_usage"; exit ;; 17806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17807 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17808 ac_cs_silent=: ;; 17809 17810 # This is an error. 17811 -*) as_fn_error $? "unrecognized option: \`$1' 17812 Try \`$0 --help' for more information." ;; 17813 17814 *) as_fn_append ac_config_targets " $1" 17815 ac_need_defaults=false ;; 17816 17817 esac 17818 shift 17819 done 17820 17821 ac_configure_extra_args= 17822 17823 if $ac_cs_silent; then 17824 exec 6>/dev/null 17825 ac_configure_extra_args="$ac_configure_extra_args --silent" 17826 fi 17827 17828 _ACEOF 17829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17830 if \$ac_cs_recheck; then 17831 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17832 shift 17833 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17834 CONFIG_SHELL='$SHELL' 17835 export CONFIG_SHELL 17836 exec "\$@" 17837 fi 17838 17839 _ACEOF 17840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17841 exec 5>>config.log 17842 { 17843 echo 17844 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17845 ## Running $as_me. ## 17846 _ASBOX 17847 $as_echo "$ac_log" 17848 } >&5 17849 17850 _ACEOF 17851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17852 # 17853 # INIT-COMMANDS 17854 # 17855 17856 srcdir="$srcdir" 17857 host="$host" 17858 target="$target" 17859 with_multisubdir="$with_multisubdir" 17860 with_multisrctop="$with_multisrctop" 17861 with_target_subdir="$with_target_subdir" 17862 ac_configure_args="${multilib_arg} ${ac_configure_args}" 17863 multi_basedir="$multi_basedir" 17864 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 17865 CC="$CC" 17866 CXX="$CXX" 17867 GFORTRAN="$GFORTRAN" 17868 GDC="$GDC" 17869 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17870 17871 17872 # The HP-UX ksh and POSIX shell print the target directory to stdout 17873 # if CDPATH is set. 17874 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17875 17876 sed_quote_subst='$sed_quote_subst' 17877 double_quote_subst='$double_quote_subst' 17878 delay_variable_subst='$delay_variable_subst' 17879 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17880 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17881 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17882 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17883 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17884 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17885 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17886 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17887 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17888 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17889 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17890 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17891 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17892 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17893 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17894 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17895 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17896 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17897 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17898 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17899 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17900 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17901 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17902 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17903 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17904 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17905 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17906 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17907 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17908 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17909 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17910 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17911 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17912 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17913 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17914 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17915 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17916 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17917 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17918 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17919 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17920 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17921 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17922 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17923 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17924 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17925 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17926 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17927 lt_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"`' 17928 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17929 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17930 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17931 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17932 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17933 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17934 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17935 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17936 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17937 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17938 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17939 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17940 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17941 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17942 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17943 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17944 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17945 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17946 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17947 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17948 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17949 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17950 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17951 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17952 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17953 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17954 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17955 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17956 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17957 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17958 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17959 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 17960 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17961 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17962 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17963 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17964 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17965 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17966 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17967 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17968 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 17969 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17970 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17971 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17972 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17973 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17974 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17975 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17976 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17977 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17978 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17979 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17980 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17981 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17982 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17983 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17984 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17985 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17986 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17987 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17988 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17989 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17990 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17991 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17992 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17993 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17994 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17995 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17996 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17997 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17998 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17999 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18000 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18001 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18002 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18003 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18004 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18005 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 18006 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 18007 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 18008 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 18009 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 18010 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 18011 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 18012 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 18013 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 18014 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 18015 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 18016 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 18017 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 18018 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 18019 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 18020 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 18021 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 18022 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 18023 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 18024 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 18025 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 18026 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 18027 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 18028 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 18029 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 18030 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 18031 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' 18032 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 18033 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 18034 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 18035 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 18036 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 18037 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 18038 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 18039 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 18040 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' 18041 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 18042 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 18043 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 18044 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 18045 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 18046 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 18047 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 18048 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 18049 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 18050 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 18051 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 18052 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 18053 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 18054 18055 LTCC='$LTCC' 18056 LTCFLAGS='$LTCFLAGS' 18057 compiler='$compiler_DEFAULT' 18058 18059 # A function that is used when there is no print builtin or printf. 18060 func_fallback_echo () 18061 { 18062 eval 'cat <<_LTECHO_EOF 18063 \$1 18064 _LTECHO_EOF' 18065 } 18066 18067 # Quote evaled strings. 18068 for var in SHELL \ 18069 ECHO \ 18070 SED \ 18071 GREP \ 18072 EGREP \ 18073 FGREP \ 18074 LD \ 18075 NM \ 18076 LN_S \ 18077 lt_SP2NL \ 18078 lt_NL2SP \ 18079 reload_flag \ 18080 OBJDUMP \ 18081 deplibs_check_method \ 18082 file_magic_cmd \ 18083 AR \ 18084 AR_FLAGS \ 18085 STRIP \ 18086 RANLIB \ 18087 CC \ 18088 CFLAGS \ 18089 compiler \ 18090 lt_cv_sys_global_symbol_pipe \ 18091 lt_cv_sys_global_symbol_to_cdecl \ 18092 lt_cv_sys_global_symbol_to_c_name_address \ 18093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18094 lt_prog_compiler_no_builtin_flag \ 18095 lt_prog_compiler_wl \ 18096 lt_prog_compiler_pic \ 18097 lt_prog_compiler_static \ 18098 lt_cv_prog_compiler_c_o \ 18099 need_locks \ 18100 DSYMUTIL \ 18101 NMEDIT \ 18102 LIPO \ 18103 OTOOL \ 18104 OTOOL64 \ 18105 shrext_cmds \ 18106 export_dynamic_flag_spec \ 18107 whole_archive_flag_spec \ 18108 compiler_needs_object \ 18109 with_gnu_ld \ 18110 allow_undefined_flag \ 18111 no_undefined_flag \ 18112 hardcode_libdir_flag_spec \ 18113 hardcode_libdir_flag_spec_ld \ 18114 hardcode_libdir_separator \ 18115 fix_srcfile_path \ 18116 exclude_expsyms \ 18117 include_expsyms \ 18118 file_list_spec \ 18119 variables_saved_for_relink \ 18120 libname_spec \ 18121 library_names_spec \ 18122 soname_spec \ 18123 install_override_mode \ 18124 finish_eval \ 18125 old_striplib \ 18126 striplib \ 18127 compiler_lib_search_dirs \ 18128 predep_objects \ 18129 postdep_objects \ 18130 predeps \ 18131 postdeps \ 18132 compiler_lib_search_path \ 18133 LD_FC \ 18134 reload_flag_FC \ 18135 compiler_FC \ 18136 lt_prog_compiler_no_builtin_flag_FC \ 18137 lt_prog_compiler_wl_FC \ 18138 lt_prog_compiler_pic_FC \ 18139 lt_prog_compiler_static_FC \ 18140 lt_cv_prog_compiler_c_o_FC \ 18141 export_dynamic_flag_spec_FC \ 18142 whole_archive_flag_spec_FC \ 18143 compiler_needs_object_FC \ 18144 with_gnu_ld_FC \ 18145 allow_undefined_flag_FC \ 18146 no_undefined_flag_FC \ 18147 hardcode_libdir_flag_spec_FC \ 18148 hardcode_libdir_flag_spec_ld_FC \ 18149 hardcode_libdir_separator_FC \ 18150 fix_srcfile_path_FC \ 18151 exclude_expsyms_FC \ 18152 include_expsyms_FC \ 18153 file_list_spec_FC \ 18154 compiler_lib_search_dirs_FC \ 18155 predep_objects_FC \ 18156 postdep_objects_FC \ 18157 predeps_FC \ 18158 postdeps_FC \ 18159 compiler_lib_search_path_FC; do 18160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18161 *[\\\\\\\`\\"\\\$]*) 18162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18163 ;; 18164 *) 18165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18166 ;; 18167 esac 18168 done 18169 18170 # Double-quote double-evaled strings. 18171 for var in reload_cmds \ 18172 old_postinstall_cmds \ 18173 old_postuninstall_cmds \ 18174 old_archive_cmds \ 18175 extract_expsyms_cmds \ 18176 old_archive_from_new_cmds \ 18177 old_archive_from_expsyms_cmds \ 18178 archive_cmds \ 18179 archive_expsym_cmds \ 18180 module_cmds \ 18181 module_expsym_cmds \ 18182 export_symbols_cmds \ 18183 prelink_cmds \ 18184 postinstall_cmds \ 18185 postuninstall_cmds \ 18186 finish_cmds \ 18187 sys_lib_search_path_spec \ 18188 sys_lib_dlsearch_path_spec \ 18189 reload_cmds_FC \ 18190 old_archive_cmds_FC \ 18191 old_archive_from_new_cmds_FC \ 18192 old_archive_from_expsyms_cmds_FC \ 18193 archive_cmds_FC \ 18194 archive_expsym_cmds_FC \ 18195 module_cmds_FC \ 18196 module_expsym_cmds_FC \ 18197 export_symbols_cmds_FC \ 18198 prelink_cmds_FC; do 18199 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18200 *[\\\\\\\`\\"\\\$]*) 18201 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18202 ;; 18203 *) 18204 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18205 ;; 18206 esac 18207 done 18208 18209 ac_aux_dir='$ac_aux_dir' 18210 xsi_shell='$xsi_shell' 18211 lt_shell_append='$lt_shell_append' 18212 18213 # See if we are running on zsh, and set the options which allow our 18214 # commands through without removal of \ escapes INIT. 18215 if test -n "\${ZSH_VERSION+set}" ; then 18216 setopt NO_GLOB_SUBST 18217 fi 18218 18219 18220 PACKAGE='$PACKAGE' 18221 VERSION='$VERSION' 18222 TIMESTAMP='$TIMESTAMP' 18223 RM='$RM' 18224 ofile='$ofile' 18225 18226 18227 18228 18229 18230 18231 _ACEOF 18232 18233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18234 18235 # Handling of arguments. 18236 for ac_config_target in $ac_config_targets 18237 do 18238 case $ac_config_target in 18239 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18240 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18241 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18242 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18243 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;; 18244 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; 18245 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; 18246 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; 18247 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18248 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; 18249 #"testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;; 18250 #"testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;; 18251 18252 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18253 esac 18254 done 18255 18256 18257 # If the user did not use the arguments to specify the items to instantiate, 18258 # then the envvar interface is used. Set only those that are not. 18259 # We use the long form for the default assignment because of an extremely 18260 # bizarre bug on SunOS 4.1.3. 18261 if $ac_need_defaults; then 18262 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18263 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18264 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18265 fi 18266 18267 # Have a temporary directory for convenience. Make it in the build tree 18268 # simply because there is no reason against having it here, and in addition, 18269 # creating and moving files from /tmp can sometimes cause problems. 18270 # Hook for its removal unless debugging. 18271 # Note that there is a small window in which the directory will not be cleaned: 18272 # after its creation but before its name has been assigned to `$tmp'. 18273 $debug || 18274 { 18275 tmp= ac_tmp= 18276 trap 'exit_status=$? 18277 : "${ac_tmp:=$tmp}" 18278 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18279 ' 0 18280 trap 'as_fn_exit 1' 1 2 13 15 18281 } 18282 # Create a (secure) tmp directory for tmp files. 18283 18284 { 18285 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18286 test -d "$tmp" 18287 } || 18288 { 18289 tmp=./conf$$-$RANDOM 18290 (umask 077 && mkdir "$tmp") 18291 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18292 ac_tmp=$tmp 18293 18294 # Set up the scripts for CONFIG_FILES section. 18295 # No need to generate them if there are no CONFIG_FILES. 18296 # This happens for instance with `./config.status config.h'. 18297 if test -n "$CONFIG_FILES"; then 18298 18299 18300 ac_cr=`echo X | tr X '\015'` 18301 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18302 # But we know of no other shell where ac_cr would be empty at this 18303 # point, so we can use a bashism as a fallback. 18304 if test "x$ac_cr" = x; then 18305 eval ac_cr=\$\'\\r\' 18306 fi 18307 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18308 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18309 ac_cs_awk_cr='\\r' 18310 else 18311 ac_cs_awk_cr=$ac_cr 18312 fi 18313 18314 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18315 _ACEOF 18316 18317 18318 { 18319 echo "cat >conf$$subs.awk <<_ACEOF" && 18320 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18321 echo "_ACEOF" 18322 } >conf$$subs.sh || 18323 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18324 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18325 ac_delim='%!_!# ' 18326 for ac_last_try in false false false false false :; do 18327 . ./conf$$subs.sh || 18328 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18329 18330 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18331 if test $ac_delim_n = $ac_delim_num; then 18332 break 18333 elif $ac_last_try; then 18334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18335 else 18336 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18337 fi 18338 done 18339 rm -f conf$$subs.sh 18340 18341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18342 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18343 _ACEOF 18344 sed -n ' 18345 h 18346 s/^/S["/; s/!.*/"]=/ 18347 p 18348 g 18349 s/^[^!]*!// 18350 :repl 18351 t repl 18352 s/'"$ac_delim"'$// 18353 t delim 18354 :nl 18355 h 18356 s/\(.\{148\}\)..*/\1/ 18357 t more1 18358 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18359 p 18360 n 18361 b repl 18362 :more1 18363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18364 p 18365 g 18366 s/.\{148\}// 18367 t nl 18368 :delim 18369 h 18370 s/\(.\{148\}\)..*/\1/ 18371 t more2 18372 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18373 p 18374 b 18375 :more2 18376 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18377 p 18378 g 18379 s/.\{148\}// 18380 t delim 18381 ' <conf$$subs.awk | sed ' 18382 /^[^""]/{ 18383 N 18384 s/\n// 18385 } 18386 ' >>$CONFIG_STATUS || ac_write_fail=1 18387 rm -f conf$$subs.awk 18388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18389 _ACAWK 18390 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18391 for (key in S) S_is_set[key] = 1 18392 FS = "" 18393 18394 } 18395 { 18396 line = $ 0 18397 nfields = split(line, field, "@") 18398 substed = 0 18399 len = length(field[1]) 18400 for (i = 2; i < nfields; i++) { 18401 key = field[i] 18402 keylen = length(key) 18403 if (S_is_set[key]) { 18404 value = S[key] 18405 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18406 len += length(value) + length(field[++i]) 18407 substed = 1 18408 } else 18409 len += 1 + keylen 18410 } 18411 18412 print line 18413 } 18414 18415 _ACAWK 18416 _ACEOF 18417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18418 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18419 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18420 else 18421 cat 18422 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18423 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18424 _ACEOF 18425 18426 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18427 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18428 # trailing colons and then remove the whole line if VPATH becomes empty 18429 # (actually we leave an empty line to preserve line numbers). 18430 if test "x$srcdir" = x.; then 18431 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18432 h 18433 s/// 18434 s/^/:/ 18435 s/[ ]*$/:/ 18436 s/:\$(srcdir):/:/g 18437 s/:\${srcdir}:/:/g 18438 s/:@srcdir@:/:/g 18439 s/^:*// 18440 s/:*$// 18441 x 18442 s/\(=[ ]*\).*/\1/ 18443 G 18444 s/\n// 18445 s/^[^=]*=[ ]*$// 18446 }' 18447 fi 18448 18449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18450 fi # test -n "$CONFIG_FILES" 18451 18452 # Set up the scripts for CONFIG_HEADERS section. 18453 # No need to generate them if there are no CONFIG_HEADERS. 18454 # This happens for instance with `./config.status Makefile'. 18455 if test -n "$CONFIG_HEADERS"; then 18456 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18457 BEGIN { 18458 _ACEOF 18459 18460 # Transform confdefs.h into an awk script `defines.awk', embedded as 18461 # here-document in config.status, that substitutes the proper values into 18462 # config.h.in to produce config.h. 18463 18464 # Create a delimiter string that does not exist in confdefs.h, to ease 18465 # handling of long lines. 18466 ac_delim='%!_!# ' 18467 for ac_last_try in false false :; do 18468 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18469 if test -z "$ac_tt"; then 18470 break 18471 elif $ac_last_try; then 18472 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18473 else 18474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18475 fi 18476 done 18477 18478 # For the awk script, D is an array of macro values keyed by name, 18479 # likewise P contains macro parameters if any. Preserve backslash 18480 # newline sequences. 18481 18482 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18483 sed -n ' 18484 s/.\{148\}/&'"$ac_delim"'/g 18485 t rset 18486 :rset 18487 s/^[ ]*#[ ]*define[ ][ ]*/ / 18488 t def 18489 d 18490 :def 18491 s/\\$// 18492 t bsnl 18493 s/["\\]/\\&/g 18494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18495 D["\1"]=" \3"/p 18496 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18497 d 18498 :bsnl 18499 s/["\\]/\\&/g 18500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18501 D["\1"]=" \3\\\\\\n"\\/p 18502 t cont 18503 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18504 t cont 18505 d 18506 :cont 18507 n 18508 s/.\{148\}/&'"$ac_delim"'/g 18509 t clear 18510 :clear 18511 s/\\$// 18512 t bsnlc 18513 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18514 d 18515 :bsnlc 18516 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18517 b cont 18518 ' <confdefs.h | sed ' 18519 s/'"$ac_delim"'/"\\\ 18520 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18521 18522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18523 for (key in D) D_is_set[key] = 1 18524 FS = "" 18525 } 18526 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18527 line = \$ 0 18528 split(line, arg, " ") 18529 if (arg[1] == "#") { 18530 defundef = arg[2] 18531 mac1 = arg[3] 18532 } else { 18533 defundef = substr(arg[1], 2) 18534 mac1 = arg[2] 18535 } 18536 split(mac1, mac2, "(") #) 18537 macro = mac2[1] 18538 prefix = substr(line, 1, index(line, defundef) - 1) 18539 if (D_is_set[macro]) { 18540 # Preserve the white space surrounding the "#". 18541 print prefix "define", macro P[macro] D[macro] 18542 next 18543 } else { 18544 # Replace #undef with comments. This is necessary, for example, 18545 # in the case of _POSIX_SOURCE, which is predefined and required 18546 # on some systems where configure will not decide to define it. 18547 if (defundef == "undef") { 18548 print "/*", prefix defundef, macro, "*/" 18549 next 18550 } 18551 } 18552 } 18553 { print } 18554 _ACAWK 18555 _ACEOF 18556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18557 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18558 fi # test -n "$CONFIG_HEADERS" 18559 18560 18561 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18562 shift 18563 for ac_tag 18564 do 18565 case $ac_tag in 18566 :[FHLC]) ac_mode=$ac_tag; continue;; 18567 esac 18568 case $ac_mode$ac_tag in 18569 :[FHL]*:*);; 18570 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18571 :[FH]-) ac_tag=-:-;; 18572 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18573 esac 18574 ac_save_IFS=$IFS 18575 IFS=: 18576 set x $ac_tag 18577 IFS=$ac_save_IFS 18578 shift 18579 ac_file=$1 18580 shift 18581 18582 case $ac_mode in 18583 :L) ac_source=$1;; 18584 :[FH]) 18585 ac_file_inputs= 18586 for ac_f 18587 do 18588 case $ac_f in 18589 -) ac_f="$ac_tmp/stdin";; 18590 *) # Look for the file first in the build tree, then in the source tree 18591 # (if the path is not absolute). The absolute path cannot be DOS-style, 18592 # because $ac_f cannot contain `:'. 18593 test -f "$ac_f" || 18594 case $ac_f in 18595 [\\/$]*) false;; 18596 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18597 esac || 18598 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18599 esac 18600 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18601 as_fn_append ac_file_inputs " '$ac_f'" 18602 done 18603 18604 # Let's still pretend it is `configure' which instantiates (i.e., don't 18605 # use $as_me), people would be surprised to read: 18606 # /* config.h. Generated by config.status. */ 18607 configure_input='Generated from '` 18608 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18609 `' by configure.' 18610 if test x"$ac_file" != x-; then 18611 configure_input="$ac_file. $configure_input" 18612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18613 $as_echo "$as_me: creating $ac_file" >&6;} 18614 fi 18615 # Neutralize special characters interpreted by sed in replacement strings. 18616 case $configure_input in #( 18617 *\&* | *\|* | *\\* ) 18618 ac_sed_conf_input=`$as_echo "$configure_input" | 18619 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18620 *) ac_sed_conf_input=$configure_input;; 18621 esac 18622 18623 case $ac_tag in 18624 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18626 esac 18627 ;; 18628 esac 18629 18630 ac_dir=`$as_dirname -- "$ac_file" || 18631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18632 X"$ac_file" : 'X\(//\)[^/]' \| \ 18633 X"$ac_file" : 'X\(//\)$' \| \ 18634 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18635 $as_echo X"$ac_file" | 18636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18637 s//\1/ 18638 q 18639 } 18640 /^X\(\/\/\)[^/].*/{ 18641 s//\1/ 18642 q 18643 } 18644 /^X\(\/\/\)$/{ 18645 s//\1/ 18646 q 18647 } 18648 /^X\(\/\).*/{ 18649 s//\1/ 18650 q 18651 } 18652 s/.*/./; q'` 18653 as_dir="$ac_dir"; as_fn_mkdir_p 18654 ac_builddir=. 18655 18656 case "$ac_dir" in 18657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18658 *) 18659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18660 # A ".." for each directory in $ac_dir_suffix. 18661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18662 case $ac_top_builddir_sub in 18663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18665 esac ;; 18666 esac 18667 ac_abs_top_builddir=$ac_pwd 18668 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18669 # for backward compatibility: 18670 ac_top_builddir=$ac_top_build_prefix 18671 18672 case $srcdir in 18673 .) # We are building in place. 18674 ac_srcdir=. 18675 ac_top_srcdir=$ac_top_builddir_sub 18676 ac_abs_top_srcdir=$ac_pwd ;; 18677 [\\/]* | ?:[\\/]* ) # Absolute name. 18678 ac_srcdir=$srcdir$ac_dir_suffix; 18679 ac_top_srcdir=$srcdir 18680 ac_abs_top_srcdir=$srcdir ;; 18681 *) # Relative name. 18682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18683 ac_top_srcdir=$ac_top_build_prefix$srcdir 18684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18685 esac 18686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18687 18688 18689 case $ac_mode in 18690 :F) 18691 # 18692 # CONFIG_FILE 18693 # 18694 18695 case $INSTALL in 18696 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18697 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18698 esac 18699 ac_MKDIR_P=$MKDIR_P 18700 case $MKDIR_P in 18701 [\\/$]* | ?:[\\/]* ) ;; 18702 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18703 esac 18704 _ACEOF 18705 18706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18707 # If the template does not know about datarootdir, expand it. 18708 # FIXME: This hack should be removed a few years after 2.60. 18709 ac_datarootdir_hack=; ac_datarootdir_seen= 18710 ac_sed_dataroot=' 18711 /datarootdir/ { 18712 p 18713 q 18714 } 18715 /@datadir@/p 18716 /@docdir@/p 18717 /@infodir@/p 18718 /@localedir@/p 18719 /@mandir@/p' 18720 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18721 *datarootdir*) ac_datarootdir_seen=yes;; 18722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18724 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18725 _ACEOF 18726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18727 ac_datarootdir_hack=' 18728 s&@datadir@&$datadir&g 18729 s&@docdir@&$docdir&g 18730 s&@infodir@&$infodir&g 18731 s&@localedir@&$localedir&g 18732 s&@mandir@&$mandir&g 18733 s&\\\${datarootdir}&$datarootdir&g' ;; 18734 esac 18735 _ACEOF 18736 18737 # Neutralize VPATH when `$srcdir' = `.'. 18738 # Shell code in configure.ac might set extrasub. 18739 # FIXME: do we really want to maintain this feature? 18740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18741 ac_sed_extra="$ac_vpsub 18742 $extrasub 18743 _ACEOF 18744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18745 :t 18746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18747 s|@configure_input@|$ac_sed_conf_input|;t t 18748 s&@top_builddir@&$ac_top_builddir_sub&;t t 18749 s&@top_build_prefix@&$ac_top_build_prefix&;t t 18750 s&@srcdir@&$ac_srcdir&;t t 18751 s&@abs_srcdir@&$ac_abs_srcdir&;t t 18752 s&@top_srcdir@&$ac_top_srcdir&;t t 18753 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18754 s&@builddir@&$ac_builddir&;t t 18755 s&@abs_builddir@&$ac_abs_builddir&;t t 18756 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18757 s&@INSTALL@&$ac_INSTALL&;t t 18758 s&@MKDIR_P@&$ac_MKDIR_P&;t t 18759 $ac_datarootdir_hack 18760 " 18761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18762 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18763 18764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18765 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18767 "$ac_tmp/out"`; test -z "$ac_out"; } && 18768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18769 which seems to be undefined. Please make sure it is defined" >&5 18770 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18771 which seems to be undefined. Please make sure it is defined" >&2;} 18772 18773 rm -f "$ac_tmp/stdin" 18774 case $ac_file in 18775 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18776 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18777 esac \ 18778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18779 ;; 18780 :H) 18781 # 18782 # CONFIG_HEADER 18783 # 18784 if test x"$ac_file" != x-; then 18785 { 18786 $as_echo "/* $configure_input */" \ 18787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18788 } >"$ac_tmp/config.h" \ 18789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18790 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18791 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18792 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18793 else 18794 rm -f "$ac_file" 18795 mv "$ac_tmp/config.h" "$ac_file" \ 18796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18797 fi 18798 else 18799 $as_echo "/* $configure_input */" \ 18800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18801 || as_fn_error $? "could not create -" "$LINENO" 5 18802 fi 18803 # Compute "$ac_file"'s index in $config_headers. 18804 _am_arg="$ac_file" 18805 _am_stamp_count=1 18806 for _am_header in $config_headers :; do 18807 case $_am_header in 18808 $_am_arg | $_am_arg:* ) 18809 break ;; 18810 * ) 18811 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18812 esac 18813 done 18814 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18815 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18816 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18817 X"$_am_arg" : 'X\(//\)$' \| \ 18818 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18819 $as_echo X"$_am_arg" | 18820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18821 s//\1/ 18822 q 18823 } 18824 /^X\(\/\/\)[^/].*/{ 18825 s//\1/ 18826 q 18827 } 18828 /^X\(\/\/\)$/{ 18829 s//\1/ 18830 q 18831 } 18832 /^X\(\/\).*/{ 18833 s//\1/ 18834 q 18835 } 18836 s/.*/./; q'`/stamp-h$_am_stamp_count 18837 ;; 18838 18839 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18840 $as_echo "$as_me: executing $ac_file commands" >&6;} 18841 ;; 18842 esac 18843 18844 18845 case $ac_file$ac_mode in 18846 "default-1":C) 18847 # Only add multilib support code if we just rebuilt the top-level 18848 # Makefile. 18849 case " $CONFIG_FILES " in 18850 *" Makefile "*) 18851 ac_file=Makefile . ${multi_basedir}/config-ml.in 18852 ;; 18853 esac ;; 18854 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18855 # Older Autoconf quotes --file arguments for eval, but not when files 18856 # are listed without --file. Let's play safe and only enable the eval 18857 # if we detect the quoting. 18858 case $CONFIG_FILES in 18859 *\'*) eval set x "$CONFIG_FILES" ;; 18860 *) set x $CONFIG_FILES ;; 18861 esac 18862 shift 18863 for mf 18864 do 18865 # Strip MF so we end up with the name of the file. 18866 mf=`echo "$mf" | sed -e 's/:.*$//'` 18867 # Check whether this is an Automake generated Makefile or not. 18868 # We used to match only the files named 'Makefile.in', but 18869 # some people rename them; so instead we look at the file content. 18870 # Grep'ing the first line is not enough: some people post-process 18871 # each Makefile.in and add a new line on top of each file to say so. 18872 # Grep'ing the whole file is not good either: AIX grep has a line 18873 # limit of 2048, but all sed's we know have understand at least 4000. 18874 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18875 dirpart=`$as_dirname -- "$mf" || 18876 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18877 X"$mf" : 'X\(//\)[^/]' \| \ 18878 X"$mf" : 'X\(//\)$' \| \ 18879 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18880 $as_echo X"$mf" | 18881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18882 s//\1/ 18883 q 18884 } 18885 /^X\(\/\/\)[^/].*/{ 18886 s//\1/ 18887 q 18888 } 18889 /^X\(\/\/\)$/{ 18890 s//\1/ 18891 q 18892 } 18893 /^X\(\/\).*/{ 18894 s//\1/ 18895 q 18896 } 18897 s/.*/./; q'` 18898 else 18899 continue 18900 fi 18901 # Extract the definition of DEPDIR, am__include, and am__quote 18902 # from the Makefile without running 'make'. 18903 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18904 test -z "$DEPDIR" && continue 18905 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18906 test -z "$am__include" && continue 18907 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18908 # Find all dependency output files, they are included files with 18909 # $(DEPDIR) in their names. We invoke sed twice because it is the 18910 # simplest approach to changing $(DEPDIR) to its actual value in the 18911 # expansion. 18912 for file in `sed -n " 18913 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18914 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18915 # Make sure the directory exists. 18916 test -f "$dirpart/$file" && continue 18917 fdir=`$as_dirname -- "$file" || 18918 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18919 X"$file" : 'X\(//\)[^/]' \| \ 18920 X"$file" : 'X\(//\)$' \| \ 18921 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18922 $as_echo X"$file" | 18923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18924 s//\1/ 18925 q 18926 } 18927 /^X\(\/\/\)[^/].*/{ 18928 s//\1/ 18929 q 18930 } 18931 /^X\(\/\/\)$/{ 18932 s//\1/ 18933 q 18934 } 18935 /^X\(\/\).*/{ 18936 s//\1/ 18937 q 18938 } 18939 s/.*/./; q'` 18940 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18941 # echo "creating $dirpart/$file" 18942 echo '# dummy' > "$dirpart/$file" 18943 done 18944 done 18945 } 18946 ;; 18947 "libtool":C) 18948 18949 # See if we are running on zsh, and set the options which allow our 18950 # commands through without removal of \ escapes. 18951 if test -n "${ZSH_VERSION+set}" ; then 18952 setopt NO_GLOB_SUBST 18953 fi 18954 18955 cfgfile="${ofile}T" 18956 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18957 $RM "$cfgfile" 18958 18959 cat <<_LT_EOF >> "$cfgfile" 18960 #! $SHELL 18961 18962 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18963 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18964 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18965 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18966 # 18967 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18968 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 18969 # Written by Gordon Matzigkeit, 1996 18970 # 18971 # This file is part of GNU Libtool. 18972 # 18973 # GNU Libtool is free software; you can redistribute it and/or 18974 # modify it under the terms of the GNU General Public License as 18975 # published by the Free Software Foundation; either version 2 of 18976 # the License, or (at your option) any later version. 18977 # 18978 # As a special exception to the GNU General Public License, 18979 # if you distribute this file as part of a program or library that 18980 # is built using GNU Libtool, you may include this file under the 18981 # same distribution terms that you use for the rest of that program. 18982 # 18983 # GNU Libtool is distributed in the hope that it will be useful, 18984 # but WITHOUT ANY WARRANTY; without even the implied warranty of 18985 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18986 # GNU General Public License for more details. 18987 # 18988 # You should have received a copy of the GNU General Public License 18989 # along with GNU Libtool; see the file COPYING. If not, a copy 18990 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18991 # obtained by writing to the Free Software Foundation, Inc., 18992 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18993 18994 18995 # The names of the tagged configurations supported by this script. 18996 available_tags="FC " 18997 18998 # ### BEGIN LIBTOOL CONFIG 18999 19000 # Which release of libtool.m4 was used? 19001 macro_version=$macro_version 19002 macro_revision=$macro_revision 19003 19004 # Whether or not to build shared libraries. 19005 build_libtool_libs=$enable_shared 19006 19007 # Whether or not to build static libraries. 19008 build_old_libs=$enable_static 19009 19010 # What type of objects to build. 19011 pic_mode=$pic_mode 19012 19013 # Whether or not to optimize for fast installation. 19014 fast_install=$enable_fast_install 19015 19016 # Shell to use when invoking shell scripts. 19017 SHELL=$lt_SHELL 19018 19019 # An echo program that protects backslashes. 19020 ECHO=$lt_ECHO 19021 19022 # The host system. 19023 host_alias=$host_alias 19024 host=$host 19025 host_os=$host_os 19026 19027 # The build system. 19028 build_alias=$build_alias 19029 build=$build 19030 build_os=$build_os 19031 19032 # A sed program that does not truncate output. 19033 SED=$lt_SED 19034 19035 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 19036 Xsed="\$SED -e 1s/^X//" 19037 19038 # A grep program that handles long lines. 19039 GREP=$lt_GREP 19040 19041 # An ERE matcher. 19042 EGREP=$lt_EGREP 19043 19044 # A literal string matcher. 19045 FGREP=$lt_FGREP 19046 19047 # A BSD- or MS-compatible name lister. 19048 NM=$lt_NM 19049 19050 # Whether we need soft or hard links. 19051 LN_S=$lt_LN_S 19052 19053 # What is the maximum length of a command? 19054 max_cmd_len=$max_cmd_len 19055 19056 # Object file suffix (normally "o"). 19057 objext=$ac_objext 19058 19059 # Executable file suffix (normally ""). 19060 exeext=$exeext 19061 19062 # whether the shell understands "unset". 19063 lt_unset=$lt_unset 19064 19065 # turn spaces into newlines. 19066 SP2NL=$lt_lt_SP2NL 19067 19068 # turn newlines into spaces. 19069 NL2SP=$lt_lt_NL2SP 19070 19071 # An object symbol dumper. 19072 OBJDUMP=$lt_OBJDUMP 19073 19074 # Method to check whether dependent libraries are shared objects. 19075 deplibs_check_method=$lt_deplibs_check_method 19076 19077 # Command to use when deplibs_check_method == "file_magic". 19078 file_magic_cmd=$lt_file_magic_cmd 19079 19080 # The archiver. 19081 AR=$lt_AR 19082 AR_FLAGS=$lt_AR_FLAGS 19083 19084 # A symbol stripping program. 19085 STRIP=$lt_STRIP 19086 19087 # Commands used to install an old-style archive. 19088 RANLIB=$lt_RANLIB 19089 old_postinstall_cmds=$lt_old_postinstall_cmds 19090 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19091 19092 # Whether to use a lock for old archive extraction. 19093 lock_old_archive_extraction=$lock_old_archive_extraction 19094 19095 # A C compiler. 19096 LTCC=$lt_CC 19097 19098 # LTCC compiler flags. 19099 LTCFLAGS=$lt_CFLAGS 19100 19101 # Take the output of nm and produce a listing of raw symbols and C names. 19102 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19103 19104 # Transform the output of nm in a proper C declaration. 19105 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19106 19107 # Transform the output of nm in a C name address pair. 19108 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19109 19110 # Transform the output of nm in a C name address pair when lib prefix is needed. 19111 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19112 19113 # The name of the directory that contains temporary libtool files. 19114 objdir=$objdir 19115 19116 # Used to examine libraries when file_magic_cmd begins with "file". 19117 MAGIC_CMD=$MAGIC_CMD 19118 19119 # Must we lock files when doing compilation? 19120 need_locks=$lt_need_locks 19121 19122 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19123 DSYMUTIL=$lt_DSYMUTIL 19124 19125 # Tool to change global to local symbols on Mac OS X. 19126 NMEDIT=$lt_NMEDIT 19127 19128 # Tool to manipulate fat objects and archives on Mac OS X. 19129 LIPO=$lt_LIPO 19130 19131 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 19132 OTOOL=$lt_OTOOL 19133 19134 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19135 OTOOL64=$lt_OTOOL64 19136 19137 # Old archive suffix (normally "a"). 19138 libext=$libext 19139 19140 # Shared library suffix (normally ".so"). 19141 shrext_cmds=$lt_shrext_cmds 19142 19143 # The commands to extract the exported symbol list from a shared archive. 19144 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19145 19146 # Variables whose values should be saved in libtool wrapper scripts and 19147 # restored at link time. 19148 variables_saved_for_relink=$lt_variables_saved_for_relink 19149 19150 # Do we need the "lib" prefix for modules? 19151 need_lib_prefix=$need_lib_prefix 19152 19153 # Do we need a version for libraries? 19154 need_version=$need_version 19155 19156 # Library versioning type. 19157 version_type=$version_type 19158 19159 # Shared library runtime path variable. 19160 runpath_var=$runpath_var 19161 19162 # Shared library path variable. 19163 shlibpath_var=$shlibpath_var 19164 19165 # Is shlibpath searched before the hard-coded library search path? 19166 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19167 19168 # Format of library name prefix. 19169 libname_spec=$lt_libname_spec 19170 19171 # List of archive names. First name is the real one, the rest are links. 19172 # The last name is the one that the linker finds with -lNAME 19173 library_names_spec=$lt_library_names_spec 19174 19175 # The coded name of the library, if different from the real name. 19176 soname_spec=$lt_soname_spec 19177 19178 # Permission mode override for installation of shared libraries. 19179 install_override_mode=$lt_install_override_mode 19180 19181 # Command to use after installation of a shared archive. 19182 postinstall_cmds=$lt_postinstall_cmds 19183 19184 # Command to use after uninstallation of a shared archive. 19185 postuninstall_cmds=$lt_postuninstall_cmds 19186 19187 # Commands used to finish a libtool library installation in a directory. 19188 finish_cmds=$lt_finish_cmds 19189 19190 # As "finish_cmds", except a single script fragment to be evaled but 19191 # not shown. 19192 finish_eval=$lt_finish_eval 19193 19194 # Whether we should hardcode library paths into libraries. 19195 hardcode_into_libs=$hardcode_into_libs 19196 19197 # Compile-time system search path for libraries. 19198 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19199 19200 # Run-time system search path for libraries. 19201 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19202 19203 # Whether dlopen is supported. 19204 dlopen_support=$enable_dlopen 19205 19206 # Whether dlopen of programs is supported. 19207 dlopen_self=$enable_dlopen_self 19208 19209 # Whether dlopen of statically linked programs is supported. 19210 dlopen_self_static=$enable_dlopen_self_static 19211 19212 # Commands to strip libraries. 19213 old_striplib=$lt_old_striplib 19214 striplib=$lt_striplib 19215 19216 19217 # The linker used to build libraries. 19218 LD=$lt_LD 19219 19220 # How to create reloadable object files. 19221 reload_flag=$lt_reload_flag 19222 reload_cmds=$lt_reload_cmds 19223 19224 # Commands used to build an old-style archive. 19225 old_archive_cmds=$lt_old_archive_cmds 19226 19227 # A language specific compiler. 19228 CC=$lt_compiler 19229 19230 # Is the compiler the GNU compiler? 19231 with_gcc=$GCC 19232 19233 # Compiler flag to turn off builtin functions. 19234 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19235 19236 # How to pass a linker flag through the compiler. 19237 wl=$lt_lt_prog_compiler_wl 19238 19239 # Additional compiler flags for building library objects. 19240 pic_flag=$lt_lt_prog_compiler_pic 19241 19242 # Compiler flag to prevent dynamic linking. 19243 link_static_flag=$lt_lt_prog_compiler_static 19244 19245 # Does compiler simultaneously support -c and -o options? 19246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19247 19248 # Whether or not to add -lc for building shared libraries. 19249 build_libtool_need_lc=$archive_cmds_need_lc 19250 19251 # Whether or not to disallow shared libs when runtime libs are static. 19252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19253 19254 # Compiler flag to allow reflexive dlopens. 19255 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19256 19257 # Compiler flag to generate shared objects directly from archives. 19258 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19259 19260 # Whether the compiler copes with passing no objects directly. 19261 compiler_needs_object=$lt_compiler_needs_object 19262 19263 # Create an old-style archive from a shared archive. 19264 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19265 19266 # Create a temporary old-style archive to link instead of a shared archive. 19267 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19268 19269 # Commands used to build a shared archive. 19270 archive_cmds=$lt_archive_cmds 19271 archive_expsym_cmds=$lt_archive_expsym_cmds 19272 19273 # Commands used to build a loadable module if different from building 19274 # a shared archive. 19275 module_cmds=$lt_module_cmds 19276 module_expsym_cmds=$lt_module_expsym_cmds 19277 19278 # Whether we are building with GNU ld or not. 19279 with_gnu_ld=$lt_with_gnu_ld 19280 19281 # Flag that allows shared libraries with undefined symbols to be built. 19282 allow_undefined_flag=$lt_allow_undefined_flag 19283 19284 # Flag that enforces no undefined symbols. 19285 no_undefined_flag=$lt_no_undefined_flag 19286 19287 # Flag to hardcode \$libdir into a binary during linking. 19288 # This must work even if \$libdir does not exist 19289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19290 19291 # If ld is used when linking, flag to hardcode \$libdir into a binary 19292 # during linking. This must work even if \$libdir does not exist. 19293 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19294 19295 # Whether we need a single "-rpath" flag with a separated argument. 19296 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19297 19298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19299 # DIR into the resulting binary. 19300 hardcode_direct=$hardcode_direct 19301 19302 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19303 # DIR into the resulting binary and the resulting library dependency is 19304 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19305 # library is relocated. 19306 hardcode_direct_absolute=$hardcode_direct_absolute 19307 19308 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19309 # into the resulting binary. 19310 hardcode_minus_L=$hardcode_minus_L 19311 19312 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19313 # into the resulting binary. 19314 hardcode_shlibpath_var=$hardcode_shlibpath_var 19315 19316 # Set to "yes" if building a shared library automatically hardcodes DIR 19317 # into the library and all subsequent libraries and executables linked 19318 # against it. 19319 hardcode_automatic=$hardcode_automatic 19320 19321 # Set to yes if linker adds runtime paths of dependent libraries 19322 # to runtime path list. 19323 inherit_rpath=$inherit_rpath 19324 19325 # Whether libtool must link a program against all its dependency libraries. 19326 link_all_deplibs=$link_all_deplibs 19327 19328 # Fix the shell variable \$srcfile for the compiler. 19329 fix_srcfile_path=$lt_fix_srcfile_path 19330 19331 # Set to "yes" if exported symbols are required. 19332 always_export_symbols=$always_export_symbols 19333 19334 # The commands to list exported symbols. 19335 export_symbols_cmds=$lt_export_symbols_cmds 19336 19337 # Symbols that should not be listed in the preloaded symbols. 19338 exclude_expsyms=$lt_exclude_expsyms 19339 19340 # Symbols that must always be exported. 19341 include_expsyms=$lt_include_expsyms 19342 19343 # Commands necessary for linking programs (against libraries) with templates. 19344 prelink_cmds=$lt_prelink_cmds 19345 19346 # Specify filename containing input files. 19347 file_list_spec=$lt_file_list_spec 19348 19349 # How to hardcode a shared library path into an executable. 19350 hardcode_action=$hardcode_action 19351 19352 # The directories searched by this compiler when creating a shared library. 19353 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19354 19355 # Dependencies to place before and after the objects being linked to 19356 # create a shared library. 19357 predep_objects=$lt_predep_objects 19358 postdep_objects=$lt_postdep_objects 19359 predeps=$lt_predeps 19360 postdeps=$lt_postdeps 19361 19362 # The library search path used internally by the compiler when linking 19363 # a shared library. 19364 compiler_lib_search_path=$lt_compiler_lib_search_path 19365 19366 # ### END LIBTOOL CONFIG 19367 19368 _LT_EOF 19369 19370 case $host_os in 19371 aix3*) 19372 cat <<\_LT_EOF >> "$cfgfile" 19373 # AIX sometimes has problems with the GCC collect2 program. For some 19374 # reason, if we set the COLLECT_NAMES environment variable, the problems 19375 # vanish in a puff of smoke. 19376 if test "X${COLLECT_NAMES+set}" != Xset; then 19377 COLLECT_NAMES= 19378 export COLLECT_NAMES 19379 fi 19380 _LT_EOF 19381 ;; 19382 esac 19383 19384 19385 ltmain="$ac_aux_dir/ltmain.sh" 19386 19387 19388 # We use sed instead of cat because bash on DJGPP gets confused if 19389 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19390 # text mode, it properly converts lines to CR/LF. This bash problem 19391 # is reportedly fixed, but why not run on old versions too? 19392 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19393 || (rm -f "$cfgfile"; exit 1) 19394 19395 case $xsi_shell in 19396 yes) 19397 cat << \_LT_EOF >> "$cfgfile" 19398 19399 # func_dirname file append nondir_replacement 19400 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19401 # otherwise set result to NONDIR_REPLACEMENT. 19402 func_dirname () 19403 { 19404 case ${1} in 19405 */*) func_dirname_result="${1%/*}${2}" ;; 19406 * ) func_dirname_result="${3}" ;; 19407 esac 19408 } 19409 19410 # func_basename file 19411 func_basename () 19412 { 19413 func_basename_result="${1##*/}" 19414 } 19415 19416 # func_dirname_and_basename file append nondir_replacement 19417 # perform func_basename and func_dirname in a single function 19418 # call: 19419 # dirname: Compute the dirname of FILE. If nonempty, 19420 # add APPEND to the result, otherwise set result 19421 # to NONDIR_REPLACEMENT. 19422 # value returned in "$func_dirname_result" 19423 # basename: Compute filename of FILE. 19424 # value retuned in "$func_basename_result" 19425 # Implementation must be kept synchronized with func_dirname 19426 # and func_basename. For efficiency, we do not delegate to 19427 # those functions but instead duplicate the functionality here. 19428 func_dirname_and_basename () 19429 { 19430 case ${1} in 19431 */*) func_dirname_result="${1%/*}${2}" ;; 19432 * ) func_dirname_result="${3}" ;; 19433 esac 19434 func_basename_result="${1##*/}" 19435 } 19436 19437 # func_stripname prefix suffix name 19438 # strip PREFIX and SUFFIX off of NAME. 19439 # PREFIX and SUFFIX must not contain globbing or regex special 19440 # characters, hashes, percent signs, but SUFFIX may contain a leading 19441 # dot (in which case that matches only a dot). 19442 func_stripname () 19443 { 19444 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19445 # positional parameters, so assign one to ordinary parameter first. 19446 func_stripname_result=${3} 19447 func_stripname_result=${func_stripname_result#"${1}"} 19448 func_stripname_result=${func_stripname_result%"${2}"} 19449 } 19450 19451 # func_opt_split 19452 func_opt_split () 19453 { 19454 func_opt_split_opt=${1%%=*} 19455 func_opt_split_arg=${1#*=} 19456 } 19457 19458 # func_lo2o object 19459 func_lo2o () 19460 { 19461 case ${1} in 19462 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19463 *) func_lo2o_result=${1} ;; 19464 esac 19465 } 19466 19467 # func_xform libobj-or-source 19468 func_xform () 19469 { 19470 func_xform_result=${1%.*}.lo 19471 } 19472 19473 # func_arith arithmetic-term... 19474 func_arith () 19475 { 19476 func_arith_result=$(( $* )) 19477 } 19478 19479 # func_len string 19480 # STRING may not start with a hyphen. 19481 func_len () 19482 { 19483 func_len_result=${#1} 19484 } 19485 19486 _LT_EOF 19487 ;; 19488 *) # Bourne compatible functions. 19489 cat << \_LT_EOF >> "$cfgfile" 19490 19491 # func_dirname file append nondir_replacement 19492 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19493 # otherwise set result to NONDIR_REPLACEMENT. 19494 func_dirname () 19495 { 19496 # Extract subdirectory from the argument. 19497 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19498 if test "X$func_dirname_result" = "X${1}"; then 19499 func_dirname_result="${3}" 19500 else 19501 func_dirname_result="$func_dirname_result${2}" 19502 fi 19503 } 19504 19505 # func_basename file 19506 func_basename () 19507 { 19508 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19509 } 19510 19511 19512 # func_stripname prefix suffix name 19513 # strip PREFIX and SUFFIX off of NAME. 19514 # PREFIX and SUFFIX must not contain globbing or regex special 19515 # characters, hashes, percent signs, but SUFFIX may contain a leading 19516 # dot (in which case that matches only a dot). 19517 # func_strip_suffix prefix name 19518 func_stripname () 19519 { 19520 case ${2} in 19521 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19522 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19523 esac 19524 } 19525 19526 # sed scripts: 19527 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19528 my_sed_long_arg='1s/^-[^=]*=//' 19529 19530 # func_opt_split 19531 func_opt_split () 19532 { 19533 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19534 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19535 } 19536 19537 # func_lo2o object 19538 func_lo2o () 19539 { 19540 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19541 } 19542 19543 # func_xform libobj-or-source 19544 func_xform () 19545 { 19546 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19547 } 19548 19549 # func_arith arithmetic-term... 19550 func_arith () 19551 { 19552 func_arith_result=`expr "$@"` 19553 } 19554 19555 # func_len string 19556 # STRING may not start with a hyphen. 19557 func_len () 19558 { 19559 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19560 } 19561 19562 _LT_EOF 19563 esac 19564 19565 case $lt_shell_append in 19566 yes) 19567 cat << \_LT_EOF >> "$cfgfile" 19568 19569 # func_append var value 19570 # Append VALUE to the end of shell variable VAR. 19571 func_append () 19572 { 19573 eval "$1+=\$2" 19574 } 19575 _LT_EOF 19576 ;; 19577 *) 19578 cat << \_LT_EOF >> "$cfgfile" 19579 19580 # func_append var value 19581 # Append VALUE to the end of shell variable VAR. 19582 func_append () 19583 { 19584 eval "$1=\$$1\$2" 19585 } 19586 19587 _LT_EOF 19588 ;; 19589 esac 19590 19591 19592 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19593 || (rm -f "$cfgfile"; exit 1) 19594 19595 mv -f "$cfgfile" "$ofile" || 19596 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19597 chmod +x "$ofile" 19598 19599 19600 cat <<_LT_EOF >> "$ofile" 19601 19602 # ### BEGIN LIBTOOL TAG CONFIG: FC 19603 19604 # The linker used to build libraries. 19605 LD=$lt_LD_FC 19606 19607 # How to create reloadable object files. 19608 reload_flag=$lt_reload_flag_FC 19609 reload_cmds=$lt_reload_cmds_FC 19610 19611 # Commands used to build an old-style archive. 19612 old_archive_cmds=$lt_old_archive_cmds_FC 19613 19614 # A language specific compiler. 19615 CC=$lt_compiler_FC 19616 19617 # Is the compiler the GNU compiler? 19618 with_gcc=$GCC_FC 19619 19620 # Compiler flag to turn off builtin functions. 19621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 19622 19623 # How to pass a linker flag through the compiler. 19624 wl=$lt_lt_prog_compiler_wl_FC 19625 19626 # Additional compiler flags for building library objects. 19627 pic_flag=$lt_lt_prog_compiler_pic_FC 19628 19629 # Compiler flag to prevent dynamic linking. 19630 link_static_flag=$lt_lt_prog_compiler_static_FC 19631 19632 # Does compiler simultaneously support -c and -o options? 19633 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 19634 19635 # Whether or not to add -lc for building shared libraries. 19636 build_libtool_need_lc=$archive_cmds_need_lc_FC 19637 19638 # Whether or not to disallow shared libs when runtime libs are static. 19639 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 19640 19641 # Compiler flag to allow reflexive dlopens. 19642 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 19643 19644 # Compiler flag to generate shared objects directly from archives. 19645 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 19646 19647 # Whether the compiler copes with passing no objects directly. 19648 compiler_needs_object=$lt_compiler_needs_object_FC 19649 19650 # Create an old-style archive from a shared archive. 19651 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 19652 19653 # Create a temporary old-style archive to link instead of a shared archive. 19654 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 19655 19656 # Commands used to build a shared archive. 19657 archive_cmds=$lt_archive_cmds_FC 19658 archive_expsym_cmds=$lt_archive_expsym_cmds_FC 19659 19660 # Commands used to build a loadable module if different from building 19661 # a shared archive. 19662 module_cmds=$lt_module_cmds_FC 19663 module_expsym_cmds=$lt_module_expsym_cmds_FC 19664 19665 # Whether we are building with GNU ld or not. 19666 with_gnu_ld=$lt_with_gnu_ld_FC 19667 19668 # Flag that allows shared libraries with undefined symbols to be built. 19669 allow_undefined_flag=$lt_allow_undefined_flag_FC 19670 19671 # Flag that enforces no undefined symbols. 19672 no_undefined_flag=$lt_no_undefined_flag_FC 19673 19674 # Flag to hardcode \$libdir into a binary during linking. 19675 # This must work even if \$libdir does not exist 19676 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 19677 19678 # If ld is used when linking, flag to hardcode \$libdir into a binary 19679 # during linking. This must work even if \$libdir does not exist. 19680 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC 19681 19682 # Whether we need a single "-rpath" flag with a separated argument. 19683 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 19684 19685 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19686 # DIR into the resulting binary. 19687 hardcode_direct=$hardcode_direct_FC 19688 19689 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19690 # DIR into the resulting binary and the resulting library dependency is 19691 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19692 # library is relocated. 19693 hardcode_direct_absolute=$hardcode_direct_absolute_FC 19694 19695 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19696 # into the resulting binary. 19697 hardcode_minus_L=$hardcode_minus_L_FC 19698 19699 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19700 # into the resulting binary. 19701 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 19702 19703 # Set to "yes" if building a shared library automatically hardcodes DIR 19704 # into the library and all subsequent libraries and executables linked 19705 # against it. 19706 hardcode_automatic=$hardcode_automatic_FC 19707 19708 # Set to yes if linker adds runtime paths of dependent libraries 19709 # to runtime path list. 19710 inherit_rpath=$inherit_rpath_FC 19711 19712 # Whether libtool must link a program against all its dependency libraries. 19713 link_all_deplibs=$link_all_deplibs_FC 19714 19715 # Fix the shell variable \$srcfile for the compiler. 19716 fix_srcfile_path=$lt_fix_srcfile_path_FC 19717 19718 # Set to "yes" if exported symbols are required. 19719 always_export_symbols=$always_export_symbols_FC 19720 19721 # The commands to list exported symbols. 19722 export_symbols_cmds=$lt_export_symbols_cmds_FC 19723 19724 # Symbols that should not be listed in the preloaded symbols. 19725 exclude_expsyms=$lt_exclude_expsyms_FC 19726 19727 # Symbols that must always be exported. 19728 include_expsyms=$lt_include_expsyms_FC 19729 19730 # Commands necessary for linking programs (against libraries) with templates. 19731 prelink_cmds=$lt_prelink_cmds_FC 19732 19733 # Specify filename containing input files. 19734 file_list_spec=$lt_file_list_spec_FC 19735 19736 # How to hardcode a shared library path into an executable. 19737 hardcode_action=$hardcode_action_FC 19738 19739 # The directories searched by this compiler when creating a shared library. 19740 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 19741 19742 # Dependencies to place before and after the objects being linked to 19743 # create a shared library. 19744 predep_objects=$lt_predep_objects_FC 19745 postdep_objects=$lt_postdep_objects_FC 19746 predeps=$lt_predeps_FC 19747 postdeps=$lt_postdeps_FC 19748 19749 # The library search path used internally by the compiler when linking 19750 # a shared library. 19751 compiler_lib_search_path=$lt_compiler_lib_search_path_FC 19752 19753 # ### END LIBTOOL TAG CONFIG: FC 19754 _LT_EOF 19755 19756 ;; 19757 19758 esac 19759 done # for ac_tag 19760 19761 19762 as_fn_exit 0 19763 _ACEOF 19764 ac_clean_files=$ac_clean_files_save 19765 19766 test $ac_write_fail = 0 || 19767 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19768 19769 19770 # configure is writing to config.log, and then calls config.status. 19771 # config.status does its own redirection, appending to config.log. 19772 # Unfortunately, on DOS this fails, as config.log is still kept open 19773 # by configure, so config.status won't be able to write to it; its 19774 # output is simply discarded. So we exec the FD to /dev/null, 19775 # effectively closing config.log, so it can be properly (re)opened and 19776 # appended to by config.status. When coming back to configure, we 19777 # need to make the FD available again. 19778 if test "$no_create" != yes; then 19779 ac_cs_success=: 19780 ac_config_status_args= 19781 test "$silent" = yes && 19782 ac_config_status_args="$ac_config_status_args --quiet" 19783 exec 5>/dev/null 19784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19785 exec 5>>config.log 19786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19787 # would make configure fail if this is the last instruction. 19788 $ac_cs_success || as_fn_exit 1 19789 fi 19790 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19792 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19793 fi 19794 19795