1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for UDUNITS 2.2.28. 4# 5# Report bugs to <support-udunits@unidata.ucar.edu>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: support-udunits@unidata.ucar.edu about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='UDUNITS' 592PACKAGE_TARNAME='udunits' 593PACKAGE_VERSION='2.2.28' 594PACKAGE_STRING='UDUNITS 2.2.28' 595PACKAGE_BUGREPORT='support-udunits@unidata.ucar.edu' 596PACKAGE_URL='' 597 598ac_unique_file="lib/converter.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639HAVE_CUNIT_FALSE 640HAVE_CUNIT_TRUE 641LD_CUNIT 642ac_ct_FC 643FCFLAGS 644FC 645LEXLIB 646LEX_OUTPUT_ROOT 647LEX 648YFLAGS 649YACC 650ENABLE_UDUNITS_1_FALSE 651ENABLE_UDUNITS_1_TRUE 652DEBUG_FALSE 653DEBUG_TRUE 654LIBS_COVERAGE 655CFLAGS_COVERAGE 656CPP 657OTOOL64 658OTOOL 659LIPO 660NMEDIT 661DSYMUTIL 662MANIFEST_TOOL 663RANLIB 664ac_ct_AR 665AR 666LN_S 667NM 668ac_ct_DUMPBIN 669DUMPBIN 670LD 671FGREP 672EGREP 673GREP 674SED 675am__fastdepCC_FALSE 676am__fastdepCC_TRUE 677CCDEPMODE 678am__nodep 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__quote 683am__include 684DEPDIR 685OBJEXT 686EXEEXT 687ac_ct_CC 688CPPFLAGS 689LDFLAGS 690CFLAGS 691CC 692host_os 693host_vendor 694host_cpu 695host 696build_os 697build_vendor 698build_cpu 699build 700LIBTOOL 701OBJDUMP 702DLLTOOL 703AS 704AM_BACKSLASH 705AM_DEFAULT_VERBOSITY 706AM_DEFAULT_V 707AM_V 708am__untar 709am__tar 710AMTAR 711am__leading_dot 712SET_MAKE 713AWK 714mkdir_p 715MKDIR_P 716INSTALL_STRIP_PROGRAM 717STRIP 718install_sh 719MAKEINFO 720AUTOHEADER 721AUTOMAKE 722AUTOCONF 723ACLOCAL 724VERSION 725PACKAGE 726CYGPATH_W 727am__isrc 728INSTALL_DATA 729INSTALL_SCRIPT 730INSTALL_PROGRAM 731target_alias 732host_alias 733build_alias 734LIBS 735ECHO_T 736ECHO_N 737ECHO_C 738DEFS 739mandir 740localedir 741libdir 742psdir 743pdfdir 744dvidir 745htmldir 746infodir 747docdir 748oldincludedir 749includedir 750localstatedir 751sharedstatedir 752sysconfdir 753datadir 754datarootdir 755libexecdir 756sbindir 757bindir 758program_transform_name 759prefix 760exec_prefix 761PACKAGE_URL 762PACKAGE_BUGREPORT 763PACKAGE_STRING 764PACKAGE_VERSION 765PACKAGE_TARNAME 766PACKAGE_NAME 767PATH_SEPARATOR 768SHELL' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_silent_rules 773enable_shared 774enable_static 775with_pic 776enable_fast_install 777enable_dependency_tracking 778with_gnu_ld 779with_sysroot 780enable_libtool_lock 781enable_coverage 782enable_debug 783enable_udunits_1 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793CPP 794YACC 795YFLAGS 796FC 797FCFLAGS' 798 799 800# Initialize some variables set by options. 801ac_init_help= 802ac_init_version=false 803ac_unrecognized_opts= 804ac_unrecognized_sep= 805# The variables have the same names as the options, with 806# dashes changed to underlines. 807cache_file=/dev/null 808exec_prefix=NONE 809no_create= 810no_recursion= 811prefix=NONE 812program_prefix=NONE 813program_suffix=NONE 814program_transform_name=s,x,x, 815silent= 816site= 817srcdir= 818verbose= 819x_includes=NONE 820x_libraries=NONE 821 822# Installation directory options. 823# These are left unexpanded so users can "make install exec_prefix=/foo" 824# and all the variables that are supposed to be based on exec_prefix 825# by default will actually change. 826# Use braces instead of parens because sh, perl, etc. also accept them. 827# (The list follows the same order as the GNU Coding Standards.) 828bindir='${exec_prefix}/bin' 829sbindir='${exec_prefix}/sbin' 830libexecdir='${exec_prefix}/libexec' 831datarootdir='${prefix}/share' 832datadir='${datarootdir}' 833sysconfdir='${prefix}/etc' 834sharedstatedir='${prefix}/com' 835localstatedir='${prefix}/var' 836includedir='${prefix}/include' 837oldincludedir='/usr/include' 838docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 839infodir='${datarootdir}/info' 840htmldir='${docdir}' 841dvidir='${docdir}' 842pdfdir='${docdir}' 843psdir='${docdir}' 844libdir='${exec_prefix}/lib' 845localedir='${datarootdir}/locale' 846mandir='${datarootdir}/man' 847 848ac_prev= 849ac_dashdash= 850for ac_option 851do 852 # If the previous option needs an argument, assign it. 853 if test -n "$ac_prev"; then 854 eval $ac_prev=\$ac_option 855 ac_prev= 856 continue 857 fi 858 859 case $ac_option in 860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 861 *=) ac_optarg= ;; 862 *) ac_optarg=yes ;; 863 esac 864 865 # Accept the important Cygnus configure options, so we can diagnose typos. 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: $ac_useropt" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: $ac_useropt" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1089 ac_prev=sbindir ;; 1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1091 | --sbi=* | --sb=*) 1092 sbindir=$ac_optarg ;; 1093 1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1096 | --sharedst | --shareds | --shared | --share | --shar \ 1097 | --sha | --sh) 1098 ac_prev=sharedstatedir ;; 1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1102 | --sha=* | --sh=*) 1103 sharedstatedir=$ac_optarg ;; 1104 1105 -site | --site | --sit) 1106 ac_prev=site ;; 1107 -site=* | --site=* | --sit=*) 1108 site=$ac_optarg ;; 1109 1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1111 ac_prev=srcdir ;; 1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1113 srcdir=$ac_optarg ;; 1114 1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1116 | --syscon | --sysco | --sysc | --sys | --sy) 1117 ac_prev=sysconfdir ;; 1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1120 sysconfdir=$ac_optarg ;; 1121 1122 -target | --target | --targe | --targ | --tar | --ta | --t) 1123 ac_prev=target_alias ;; 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1125 target_alias=$ac_optarg ;; 1126 1127 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1128 verbose=yes ;; 1129 1130 -version | --version | --versio | --versi | --vers | -V) 1131 ac_init_version=: ;; 1132 1133 -with-* | --with-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: $ac_useropt" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=\$ac_optarg ;; 1148 1149 -without-* | --without-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: $ac_useropt" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=no ;; 1164 1165 --x) 1166 # Obsolete; use --with-x. 1167 with_x=yes ;; 1168 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170 | --x-incl | --x-inc | --x-in | --x-i) 1171 ac_prev=x_includes ;; 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174 x_includes=$ac_optarg ;; 1175 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178 ac_prev=x_libraries ;; 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181 x_libraries=$ac_optarg ;; 1182 1183 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1184Try \`$0 --help' for more information" 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 case $ac_envvar in #( 1191 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1193 esac 1194 eval $ac_envvar=\$ac_optarg 1195 export $ac_envvar ;; 1196 1197 *) 1198 # FIXME: should be removed in autoconf 3.0. 1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1203 ;; 1204 1205 esac 1206done 1207 1208if test -n "$ac_prev"; then 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210 as_fn_error $? "missing argument to $ac_option" 1211fi 1212 1213if test -n "$ac_unrecognized_opts"; then 1214 case $enable_option_checking in 1215 no) ;; 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1218 esac 1219fi 1220 1221# Check all directory arguments for consistency. 1222for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1223 datadir sysconfdir sharedstatedir localstatedir includedir \ 1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1225 libdir localedir mandir 1226do 1227 eval ac_val=\$$ac_var 1228 # Remove trailing slashes. 1229 case $ac_val in 1230 */ ) 1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1232 eval $ac_var=\$ac_val;; 1233 esac 1234 # Be sure to have absolute directory names. 1235 case $ac_val in 1236 [\\/$]* | ?:[\\/]* ) continue;; 1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1238 esac 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1240done 1241 1242# There might be people who depend on the old broken behavior: `$host' 1243# used to hold the argument of --host etc. 1244# FIXME: To remove some day. 1245build=$build_alias 1246host=$host_alias 1247target=$target_alias 1248 1249# FIXME: To remove some day. 1250if test "x$host_alias" != x; then 1251 if test "x$build_alias" = x; then 1252 cross_compiling=maybe 1253 elif test "x$build_alias" != "x$host_alias"; then 1254 cross_compiling=yes 1255 fi 1256fi 1257 1258ac_tool_prefix= 1259test -n "$host_alias" && ac_tool_prefix=$host_alias- 1260 1261test "$silent" = yes && exec 6>/dev/null 1262 1263 1264ac_pwd=`pwd` && test -n "$ac_pwd" && 1265ac_ls_di=`ls -di .` && 1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267 as_fn_error $? "working directory cannot be determined" 1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269 as_fn_error $? "pwd does not report name of working directory" 1270 1271 1272# Find the source files, if location was not specified. 1273if test -z "$srcdir"; then 1274 ac_srcdir_defaulted=yes 1275 # Try the directory containing this script, then the parent directory. 1276 ac_confdir=`$as_dirname -- "$as_myself" || 1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278 X"$as_myself" : 'X\(//\)[^/]' \| \ 1279 X"$as_myself" : 'X\(//\)$' \| \ 1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281$as_echo X"$as_myself" | 1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)[^/].*/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\).*/{ 1295 s//\1/ 1296 q 1297 } 1298 s/.*/./; q'` 1299 srcdir=$ac_confdir 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 srcdir=.. 1302 fi 1303else 1304 ac_srcdir_defaulted=no 1305fi 1306if test ! -r "$srcdir/$ac_unique_file"; then 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309fi 1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1311ac_abs_confdir=`( 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313 pwd)` 1314# When building in place, set srcdir=. 1315if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317fi 1318# Remove unnecessary trailing slashes from srcdir. 1319# Double slashes in file names in object file debugging info 1320# mess up M-x gdb in Emacs. 1321case $srcdir in 1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323esac 1324for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329done 1330 1331# 1332# Report the --help message. 1333# 1334if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338\`configure' configures UDUNITS 2.2.28 to adapt to many kinds of systems. 1339 1340Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345Defaults for the options are specified in brackets. 1346 1347Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print \`checking ...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for \`--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1357 1358Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364By default, \`make install' will install all the files in 1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1366an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1367for instance \`--prefix=\$HOME'. 1368 1369For better control, use the options below. 1370 1371Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --libdir=DIR object code libraries [EPREFIX/lib] 1379 --includedir=DIR C header files [PREFIX/include] 1380 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1383 --infodir=DIR info documentation [DATAROOTDIR/info] 1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1385 --mandir=DIR man documentation [DATAROOTDIR/man] 1386 --docdir=DIR documentation root [DATAROOTDIR/doc/udunits] 1387 --htmldir=DIR html documentation [DOCDIR] 1388 --dvidir=DIR dvi documentation [DOCDIR] 1389 --pdfdir=DIR pdf documentation [DOCDIR] 1390 --psdir=DIR ps documentation [DOCDIR] 1391_ACEOF 1392 1393 cat <<\_ACEOF 1394 1395Program names: 1396 --program-prefix=PREFIX prepend PREFIX to installed program names 1397 --program-suffix=SUFFIX append SUFFIX to installed program names 1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1399 1400System types: 1401 --build=BUILD configure for building on BUILD [guessed] 1402 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1403_ACEOF 1404fi 1405 1406if test -n "$ac_init_help"; then 1407 case $ac_init_help in 1408 short | recursive ) echo "Configuration of UDUNITS 2.2.28:";; 1409 esac 1410 cat <<\_ACEOF 1411 1412Optional Features: 1413 --disable-option-checking ignore unrecognized --enable/--with options 1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1416 --enable-silent-rules less verbose build output (undo: "make V=1") 1417 --disable-silent-rules verbose build output (undo: "make V=0") 1418 --enable-shared[=PKGS] build shared libraries [default=yes] 1419 --enable-static[=PKGS] build static libraries [default=yes] 1420 --enable-fast-install[=PKGS] 1421 optimize for fast installation [default=yes] 1422 --enable-dependency-tracking 1423 do not reject slow dependency extractors 1424 --disable-dependency-tracking 1425 speeds up one-time build 1426 --disable-libtool-lock avoid locking (might break parallel builds) 1427 --enable-coverage Turn on code-coverage support 1428 --enable-debug Turn on debugging support 1429 --disable-udunits-1 Turn off support for the UDUNITS-1 API 1430 [default=enabled] 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1436 both] 1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1438 --with-sysroot=DIR Search for dependent libraries within DIR 1439 (or the compiler's sysroot if not specified). 1440 1441Some influential environment variables: 1442 CC C compiler command 1443 CFLAGS C compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 LIBS libraries to pass to the linker, e.g. -l<library> 1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1448 you have headers in a nonstandard directory <include dir> 1449 CPP C preprocessor 1450 YACC The `Yet Another Compiler Compiler' implementation to use. 1451 Defaults to the first program found out of: `bison -y', `byacc', 1452 `yacc'. 1453 YFLAGS The list of arguments that will be passed by default to $YACC. 1454 This script will default YFLAGS to the empty string to avoid a 1455 default value of `-d' given by some make applications. 1456 FC Fortran compiler command 1457 FCFLAGS Fortran compiler flags 1458 1459Use these variables to override the choices made by `configure' or to help 1460it to find libraries and programs with nonstandard names/locations. 1461 1462Report bugs to <support-udunits@unidata.ucar.edu>. 1463_ACEOF 1464ac_status=$? 1465fi 1466 1467if test "$ac_init_help" = "recursive"; then 1468 # If there are subdirs, report their specific --help. 1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1470 test -d "$ac_dir" || 1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1472 continue 1473 ac_builddir=. 1474 1475case "$ac_dir" in 1476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1477*) 1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1479 # A ".." for each directory in $ac_dir_suffix. 1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1481 case $ac_top_builddir_sub in 1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1484 esac ;; 1485esac 1486ac_abs_top_builddir=$ac_pwd 1487ac_abs_builddir=$ac_pwd$ac_dir_suffix 1488# for backward compatibility: 1489ac_top_builddir=$ac_top_build_prefix 1490 1491case $srcdir in 1492 .) # We are building in place. 1493 ac_srcdir=. 1494 ac_top_srcdir=$ac_top_builddir_sub 1495 ac_abs_top_srcdir=$ac_pwd ;; 1496 [\\/]* | ?:[\\/]* ) # Absolute name. 1497 ac_srcdir=$srcdir$ac_dir_suffix; 1498 ac_top_srcdir=$srcdir 1499 ac_abs_top_srcdir=$srcdir ;; 1500 *) # Relative name. 1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1502 ac_top_srcdir=$ac_top_build_prefix$srcdir 1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1504esac 1505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1506 1507 cd "$ac_dir" || { ac_status=$?; continue; } 1508 # Check for guested configure. 1509 if test -f "$ac_srcdir/configure.gnu"; then 1510 echo && 1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1512 elif test -f "$ac_srcdir/configure"; then 1513 echo && 1514 $SHELL "$ac_srcdir/configure" --help=recursive 1515 else 1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1517 fi || ac_status=$? 1518 cd "$ac_pwd" || { ac_status=$?; break; } 1519 done 1520fi 1521 1522test -n "$ac_init_help" && exit $ac_status 1523if $ac_init_version; then 1524 cat <<\_ACEOF 1525UDUNITS configure 2.2.28 1526generated by GNU Autoconf 2.69 1527 1528Copyright (C) 2012 Free Software Foundation, Inc. 1529This configure script is free software; the Free Software Foundation 1530gives unlimited permission to copy, distribute and modify it. 1531_ACEOF 1532 exit 1533fi 1534 1535## ------------------------ ## 1536## Autoconf initialization. ## 1537## ------------------------ ## 1538 1539# ac_fn_c_try_compile LINENO 1540# -------------------------- 1541# Try to compile conftest.$ac_ext, and return whether this succeeded. 1542ac_fn_c_try_compile () 1543{ 1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1545 rm -f conftest.$ac_objext 1546 if { { ac_try="$ac_compile" 1547case "(($ac_try" in 1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1549 *) ac_try_echo=$ac_try;; 1550esac 1551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1552$as_echo "$ac_try_echo"; } >&5 1553 (eval "$ac_compile") 2>conftest.err 1554 ac_status=$? 1555 if test -s conftest.err; then 1556 grep -v '^ *+' conftest.err >conftest.er1 1557 cat conftest.er1 >&5 1558 mv -f conftest.er1 conftest.err 1559 fi 1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1561 test $ac_status = 0; } && { 1562 test -z "$ac_c_werror_flag" || 1563 test ! -s conftest.err 1564 } && test -s conftest.$ac_objext; then : 1565 ac_retval=0 1566else 1567 $as_echo "$as_me: failed program was:" >&5 1568sed 's/^/| /' conftest.$ac_ext >&5 1569 1570 ac_retval=1 1571fi 1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1573 as_fn_set_status $ac_retval 1574 1575} # ac_fn_c_try_compile 1576 1577# ac_fn_c_try_link LINENO 1578# ----------------------- 1579# Try to link conftest.$ac_ext, and return whether this succeeded. 1580ac_fn_c_try_link () 1581{ 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1583 rm -f conftest.$ac_objext conftest$ac_exeext 1584 if { { ac_try="$ac_link" 1585case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588esac 1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590$as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_link") 2>conftest.err 1592 ac_status=$? 1593 if test -s conftest.err; then 1594 grep -v '^ *+' conftest.err >conftest.er1 1595 cat conftest.er1 >&5 1596 mv -f conftest.er1 conftest.err 1597 fi 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } && { 1600 test -z "$ac_c_werror_flag" || 1601 test ! -s conftest.err 1602 } && test -s conftest$ac_exeext && { 1603 test "$cross_compiling" = yes || 1604 test -x conftest$ac_exeext 1605 }; then : 1606 ac_retval=0 1607else 1608 $as_echo "$as_me: failed program was:" >&5 1609sed 's/^/| /' conftest.$ac_ext >&5 1610 1611 ac_retval=1 1612fi 1613 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1614 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1615 # interfere with the next link command; also delete a directory that is 1616 # left behind by Apple's compiler. We do this before executing the actions. 1617 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 as_fn_set_status $ac_retval 1620 1621} # ac_fn_c_try_link 1622 1623# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1624# ------------------------------------------------------- 1625# Tests whether HEADER exists and can be compiled using the include files in 1626# INCLUDES, setting the cache variable VAR accordingly. 1627ac_fn_c_check_header_compile () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1631$as_echo_n "checking for $2... " >&6; } 1632if eval \${$3+:} false; then : 1633 $as_echo_n "(cached) " >&6 1634else 1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1636/* end confdefs.h. */ 1637$4 1638#include <$2> 1639_ACEOF 1640if ac_fn_c_try_compile "$LINENO"; then : 1641 eval "$3=yes" 1642else 1643 eval "$3=no" 1644fi 1645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1646fi 1647eval ac_res=\$$3 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1649$as_echo "$ac_res" >&6; } 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 1652} # ac_fn_c_check_header_compile 1653 1654# ac_fn_c_try_cpp LINENO 1655# ---------------------- 1656# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1657ac_fn_c_try_cpp () 1658{ 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 if { { ac_try="$ac_cpp conftest.$ac_ext" 1661case "(($ac_try" in 1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1663 *) ac_try_echo=$ac_try;; 1664esac 1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1666$as_echo "$ac_try_echo"; } >&5 1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1668 ac_status=$? 1669 if test -s conftest.err; then 1670 grep -v '^ *+' conftest.err >conftest.er1 1671 cat conftest.er1 >&5 1672 mv -f conftest.er1 conftest.err 1673 fi 1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1675 test $ac_status = 0; } > conftest.i && { 1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1677 test ! -s conftest.err 1678 }; then : 1679 ac_retval=0 1680else 1681 $as_echo "$as_me: failed program was:" >&5 1682sed 's/^/| /' conftest.$ac_ext >&5 1683 1684 ac_retval=1 1685fi 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687 as_fn_set_status $ac_retval 1688 1689} # ac_fn_c_try_cpp 1690 1691# ac_fn_c_try_run LINENO 1692# ---------------------- 1693# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1694# that executables *can* be run. 1695ac_fn_c_try_run () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 if { { ac_try="$ac_link" 1699case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_link") 2>&5 1706 ac_status=$? 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1709 { { case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714$as_echo "$ac_try_echo"; } >&5 1715 (eval "$ac_try") 2>&5 1716 ac_status=$? 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; }; }; then : 1719 ac_retval=0 1720else 1721 $as_echo "$as_me: program exited with status $ac_status" >&5 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=$ac_status 1726fi 1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 as_fn_set_status $ac_retval 1730 1731} # ac_fn_c_try_run 1732 1733# ac_fn_c_check_func LINENO FUNC VAR 1734# ---------------------------------- 1735# Tests whether FUNC exists, setting the cache variable VAR accordingly 1736ac_fn_c_check_func () 1737{ 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1740$as_echo_n "checking for $2... " >&6; } 1741if eval \${$3+:} false; then : 1742 $as_echo_n "(cached) " >&6 1743else 1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1748#define $2 innocuous_$2 1749 1750/* System header to define __stub macros and hopefully few prototypes, 1751 which can conflict with char $2 (); below. 1752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1753 <limits.h> exists even on freestanding compilers. */ 1754 1755#ifdef __STDC__ 1756# include <limits.h> 1757#else 1758# include <assert.h> 1759#endif 1760 1761#undef $2 1762 1763/* Override any GCC internal prototype to avoid an error. 1764 Use char because int might match the return type of a GCC 1765 builtin and then its argument prototype would still apply. */ 1766#ifdef __cplusplus 1767extern "C" 1768#endif 1769char $2 (); 1770/* The GNU C library defines this for functions which it implements 1771 to always fail with ENOSYS. Some functions are actually named 1772 something starting with __ and the normal name is an alias. */ 1773#if defined __stub_$2 || defined __stub___$2 1774choke me 1775#endif 1776 1777int 1778main () 1779{ 1780return $2 (); 1781 ; 1782 return 0; 1783} 1784_ACEOF 1785if ac_fn_c_try_link "$LINENO"; then : 1786 eval "$3=yes" 1787else 1788 eval "$3=no" 1789fi 1790rm -f core conftest.err conftest.$ac_objext \ 1791 conftest$ac_exeext conftest.$ac_ext 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1797 1798} # ac_fn_c_check_func 1799 1800# ac_fn_fc_try_compile LINENO 1801# --------------------------- 1802# Try to compile conftest.$ac_ext, and return whether this succeeded. 1803ac_fn_fc_try_compile () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 rm -f conftest.$ac_objext 1807 if { { ac_try="$ac_compile" 1808case "(($ac_try" in 1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1810 *) ac_try_echo=$ac_try;; 1811esac 1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1813$as_echo "$ac_try_echo"; } >&5 1814 (eval "$ac_compile") 2>conftest.err 1815 ac_status=$? 1816 if test -s conftest.err; then 1817 grep -v '^ *+' conftest.err >conftest.er1 1818 cat conftest.er1 >&5 1819 mv -f conftest.er1 conftest.err 1820 fi 1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1822 test $ac_status = 0; } && { 1823 test -z "$ac_fc_werror_flag" || 1824 test ! -s conftest.err 1825 } && test -s conftest.$ac_objext; then : 1826 ac_retval=0 1827else 1828 $as_echo "$as_me: failed program was:" >&5 1829sed 's/^/| /' conftest.$ac_ext >&5 1830 1831 ac_retval=1 1832fi 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 as_fn_set_status $ac_retval 1835 1836} # ac_fn_fc_try_compile 1837 1838# ac_fn_fc_try_link LINENO 1839# ------------------------ 1840# Try to link conftest.$ac_ext, and return whether this succeeded. 1841ac_fn_fc_try_link () 1842{ 1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1844 rm -f conftest.$ac_objext conftest$ac_exeext 1845 if { { ac_try="$ac_link" 1846case "(($ac_try" in 1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1848 *) ac_try_echo=$ac_try;; 1849esac 1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1851$as_echo "$ac_try_echo"; } >&5 1852 (eval "$ac_link") 2>conftest.err 1853 ac_status=$? 1854 if test -s conftest.err; then 1855 grep -v '^ *+' conftest.err >conftest.er1 1856 cat conftest.er1 >&5 1857 mv -f conftest.er1 conftest.err 1858 fi 1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1860 test $ac_status = 0; } && { 1861 test -z "$ac_fc_werror_flag" || 1862 test ! -s conftest.err 1863 } && test -s conftest$ac_exeext && { 1864 test "$cross_compiling" = yes || 1865 test -x conftest$ac_exeext 1866 }; then : 1867 ac_retval=0 1868else 1869 $as_echo "$as_me: failed program was:" >&5 1870sed 's/^/| /' conftest.$ac_ext >&5 1871 1872 ac_retval=1 1873fi 1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1876 # interfere with the next link command; also delete a directory that is 1877 # left behind by Apple's compiler. We do this before executing the actions. 1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 as_fn_set_status $ac_retval 1881 1882} # ac_fn_fc_try_link 1883 1884# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1885# ------------------------------------------------------- 1886# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1887# the include files in INCLUDES and setting the cache variable VAR 1888# accordingly. 1889ac_fn_c_check_header_mongrel () 1890{ 1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1892 if eval \${$3+:} false; then : 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1894$as_echo_n "checking for $2... " >&6; } 1895if eval \${$3+:} false; then : 1896 $as_echo_n "(cached) " >&6 1897fi 1898eval ac_res=\$$3 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1900$as_echo "$ac_res" >&6; } 1901else 1902 # Is the header compilable? 1903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1904$as_echo_n "checking $2 usability... " >&6; } 1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907$4 1908#include <$2> 1909_ACEOF 1910if ac_fn_c_try_compile "$LINENO"; then : 1911 ac_header_compiler=yes 1912else 1913 ac_header_compiler=no 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1917$as_echo "$ac_header_compiler" >&6; } 1918 1919# Is the header present? 1920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1921$as_echo_n "checking $2 presence... " >&6; } 1922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924#include <$2> 1925_ACEOF 1926if ac_fn_c_try_cpp "$LINENO"; then : 1927 ac_header_preproc=yes 1928else 1929 ac_header_preproc=no 1930fi 1931rm -f conftest.err conftest.i conftest.$ac_ext 1932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1933$as_echo "$ac_header_preproc" >&6; } 1934 1935# So? What about this header? 1936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1937 yes:no: ) 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1939$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1941$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1942 ;; 1943 no:yes:* ) 1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1945$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1947$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1949$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1951$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1953$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1954( $as_echo "## ----------------------------------------------- ## 1955## Report this to support-udunits@unidata.ucar.edu ## 1956## ----------------------------------------------- ##" 1957 ) | sed "s/^/$as_me: WARNING: /" >&2 1958 ;; 1959esac 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1961$as_echo_n "checking for $2... " >&6; } 1962if eval \${$3+:} false; then : 1963 $as_echo_n "(cached) " >&6 1964else 1965 eval "$3=\$ac_header_compiler" 1966fi 1967eval ac_res=\$$3 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1969$as_echo "$ac_res" >&6; } 1970fi 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 1973} # ac_fn_c_check_header_mongrel 1974 1975# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1976# ------------------------------------------- 1977# Tests whether TYPE exists after having included INCLUDES, setting cache 1978# variable VAR accordingly. 1979ac_fn_c_check_type () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1983$as_echo_n "checking for $2... " >&6; } 1984if eval \${$3+:} false; then : 1985 $as_echo_n "(cached) " >&6 1986else 1987 eval "$3=no" 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1989/* end confdefs.h. */ 1990$4 1991int 1992main () 1993{ 1994if (sizeof ($2)) 1995 return 0; 1996 ; 1997 return 0; 1998} 1999_ACEOF 2000if ac_fn_c_try_compile "$LINENO"; then : 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004int 2005main () 2006{ 2007if (sizeof (($2))) 2008 return 0; 2009 ; 2010 return 0; 2011} 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 2015else 2016 eval "$3=yes" 2017fi 2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2019fi 2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2021fi 2022eval ac_res=\$$3 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2024$as_echo "$ac_res" >&6; } 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2026 2027} # ac_fn_c_check_type 2028cat >config.log <<_ACEOF 2029This file contains any messages produced by compilers while 2030running configure, to aid debugging if configure makes a mistake. 2031 2032It was created by UDUNITS $as_me 2.2.28, which was 2033generated by GNU Autoconf 2.69. Invocation command line was 2034 2035 $ $0 $@ 2036 2037_ACEOF 2038exec 5>>config.log 2039{ 2040cat <<_ASUNAME 2041## --------- ## 2042## Platform. ## 2043## --------- ## 2044 2045hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2046uname -m = `(uname -m) 2>/dev/null || echo unknown` 2047uname -r = `(uname -r) 2>/dev/null || echo unknown` 2048uname -s = `(uname -s) 2>/dev/null || echo unknown` 2049uname -v = `(uname -v) 2>/dev/null || echo unknown` 2050 2051/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2052/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2053 2054/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2055/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2056/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2057/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2058/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2059/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2060/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2061 2062_ASUNAME 2063 2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2065for as_dir in $PATH 2066do 2067 IFS=$as_save_IFS 2068 test -z "$as_dir" && as_dir=. 2069 $as_echo "PATH: $as_dir" 2070 done 2071IFS=$as_save_IFS 2072 2073} >&5 2074 2075cat >&5 <<_ACEOF 2076 2077 2078## ----------- ## 2079## Core tests. ## 2080## ----------- ## 2081 2082_ACEOF 2083 2084 2085# Keep a trace of the command line. 2086# Strip out --no-create and --no-recursion so they do not pile up. 2087# Strip out --silent because we don't want to record it for future runs. 2088# Also quote any args containing shell meta-characters. 2089# Make two passes to allow for proper duplicate-argument suppression. 2090ac_configure_args= 2091ac_configure_args0= 2092ac_configure_args1= 2093ac_must_keep_next=false 2094for ac_pass in 1 2 2095do 2096 for ac_arg 2097 do 2098 case $ac_arg in 2099 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2101 | -silent | --silent | --silen | --sile | --sil) 2102 continue ;; 2103 *\'*) 2104 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2105 esac 2106 case $ac_pass in 2107 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2108 2) 2109 as_fn_append ac_configure_args1 " '$ac_arg'" 2110 if test $ac_must_keep_next = true; then 2111 ac_must_keep_next=false # Got value, back to normal. 2112 else 2113 case $ac_arg in 2114 *=* | --config-cache | -C | -disable-* | --disable-* \ 2115 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2116 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2117 | -with-* | --with-* | -without-* | --without-* | --x) 2118 case "$ac_configure_args0 " in 2119 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2120 esac 2121 ;; 2122 -* ) ac_must_keep_next=true ;; 2123 esac 2124 fi 2125 as_fn_append ac_configure_args " '$ac_arg'" 2126 ;; 2127 esac 2128 done 2129done 2130{ ac_configure_args0=; unset ac_configure_args0;} 2131{ ac_configure_args1=; unset ac_configure_args1;} 2132 2133# When interrupted or exit'd, cleanup temporary files, and complete 2134# config.log. We remove comments because anyway the quotes in there 2135# would cause problems or look ugly. 2136# WARNING: Use '\'' to represent an apostrophe within the trap. 2137# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2138trap 'exit_status=$? 2139 # Save into config.log some information that might help in debugging. 2140 { 2141 echo 2142 2143 $as_echo "## ---------------- ## 2144## Cache variables. ## 2145## ---------------- ##" 2146 echo 2147 # The following way of writing the cache mishandles newlines in values, 2148( 2149 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2150 eval ac_val=\$$ac_var 2151 case $ac_val in #( 2152 *${as_nl}*) 2153 case $ac_var in #( 2154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2155$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2156 esac 2157 case $ac_var in #( 2158 _ | IFS | as_nl) ;; #( 2159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2160 *) { eval $ac_var=; unset $ac_var;} ;; 2161 esac ;; 2162 esac 2163 done 2164 (set) 2>&1 | 2165 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2166 *${as_nl}ac_space=\ *) 2167 sed -n \ 2168 "s/'\''/'\''\\\\'\'''\''/g; 2169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2170 ;; #( 2171 *) 2172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2173 ;; 2174 esac | 2175 sort 2176) 2177 echo 2178 2179 $as_echo "## ----------------- ## 2180## Output variables. ## 2181## ----------------- ##" 2182 echo 2183 for ac_var in $ac_subst_vars 2184 do 2185 eval ac_val=\$$ac_var 2186 case $ac_val in 2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2188 esac 2189 $as_echo "$ac_var='\''$ac_val'\''" 2190 done | sort 2191 echo 2192 2193 if test -n "$ac_subst_files"; then 2194 $as_echo "## ------------------- ## 2195## File substitutions. ## 2196## ------------------- ##" 2197 echo 2198 for ac_var in $ac_subst_files 2199 do 2200 eval ac_val=\$$ac_var 2201 case $ac_val in 2202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2203 esac 2204 $as_echo "$ac_var='\''$ac_val'\''" 2205 done | sort 2206 echo 2207 fi 2208 2209 if test -s confdefs.h; then 2210 $as_echo "## ----------- ## 2211## confdefs.h. ## 2212## ----------- ##" 2213 echo 2214 cat confdefs.h 2215 echo 2216 fi 2217 test "$ac_signal" != 0 && 2218 $as_echo "$as_me: caught signal $ac_signal" 2219 $as_echo "$as_me: exit $exit_status" 2220 } >&5 2221 rm -f core *.core core.conftest.* && 2222 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2223 exit $exit_status 2224' 0 2225for ac_signal in 1 2 13 15; do 2226 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2227done 2228ac_signal=0 2229 2230# confdefs.h avoids OS command line length limits that DEFS can exceed. 2231rm -f -r conftest* confdefs.h 2232 2233$as_echo "/* confdefs.h */" > confdefs.h 2234 2235# Predefined preprocessor variables. 2236 2237cat >>confdefs.h <<_ACEOF 2238#define PACKAGE_NAME "$PACKAGE_NAME" 2239_ACEOF 2240 2241cat >>confdefs.h <<_ACEOF 2242#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2243_ACEOF 2244 2245cat >>confdefs.h <<_ACEOF 2246#define PACKAGE_VERSION "$PACKAGE_VERSION" 2247_ACEOF 2248 2249cat >>confdefs.h <<_ACEOF 2250#define PACKAGE_STRING "$PACKAGE_STRING" 2251_ACEOF 2252 2253cat >>confdefs.h <<_ACEOF 2254#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2255_ACEOF 2256 2257cat >>confdefs.h <<_ACEOF 2258#define PACKAGE_URL "$PACKAGE_URL" 2259_ACEOF 2260 2261 2262# Let the site file select an alternate cache file if it wants to. 2263# Prefer an explicitly selected file to automatically selected ones. 2264ac_site_file1=NONE 2265ac_site_file2=NONE 2266if test -n "$CONFIG_SITE"; then 2267 # We do not want a PATH search for config.site. 2268 case $CONFIG_SITE in #(( 2269 -*) ac_site_file1=./$CONFIG_SITE;; 2270 */*) ac_site_file1=$CONFIG_SITE;; 2271 *) ac_site_file1=./$CONFIG_SITE;; 2272 esac 2273elif test "x$prefix" != xNONE; then 2274 ac_site_file1=$prefix/share/config.site 2275 ac_site_file2=$prefix/etc/config.site 2276else 2277 ac_site_file1=$ac_default_prefix/share/config.site 2278 ac_site_file2=$ac_default_prefix/etc/config.site 2279fi 2280for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2281do 2282 test "x$ac_site_file" = xNONE && continue 2283 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2285$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2286 sed 's/^/| /' "$ac_site_file" >&5 2287 . "$ac_site_file" \ 2288 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2290as_fn_error $? "failed to load site script $ac_site_file 2291See \`config.log' for more details" "$LINENO" 5; } 2292 fi 2293done 2294 2295if test -r "$cache_file"; then 2296 # Some versions of bash will fail to source /dev/null (special files 2297 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2298 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2300$as_echo "$as_me: loading cache $cache_file" >&6;} 2301 case $cache_file in 2302 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2303 *) . "./$cache_file";; 2304 esac 2305 fi 2306else 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2308$as_echo "$as_me: creating cache $cache_file" >&6;} 2309 >$cache_file 2310fi 2311 2312# Check that the precious variables saved in the cache have kept the same 2313# value. 2314ac_cache_corrupted=false 2315for ac_var in $ac_precious_vars; do 2316 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2317 eval ac_new_set=\$ac_env_${ac_var}_set 2318 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2319 eval ac_new_val=\$ac_env_${ac_var}_value 2320 case $ac_old_set,$ac_new_set in 2321 set,) 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2323$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2324 ac_cache_corrupted=: ;; 2325 ,set) 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2327$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2328 ac_cache_corrupted=: ;; 2329 ,);; 2330 *) 2331 if test "x$ac_old_val" != "x$ac_new_val"; then 2332 # differences in whitespace do not lead to failure. 2333 ac_old_val_w=`echo x $ac_old_val` 2334 ac_new_val_w=`echo x $ac_new_val` 2335 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2337$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2338 ac_cache_corrupted=: 2339 else 2340 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2341$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2342 eval $ac_var=\$ac_old_val 2343 fi 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2345$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2347$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2348 fi;; 2349 esac 2350 # Pass precious variables to config.status. 2351 if test "$ac_new_set" = set; then 2352 case $ac_new_val in 2353 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2354 *) ac_arg=$ac_var=$ac_new_val ;; 2355 esac 2356 case " $ac_configure_args " in 2357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2358 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2359 esac 2360 fi 2361done 2362if $ac_cache_corrupted; then 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2366$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2367 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2368fi 2369## -------------------- ## 2370## Main body of script. ## 2371## -------------------- ## 2372 2373ac_ext=c 2374ac_cpp='$CPP $CPPFLAGS' 2375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2377ac_compiler_gnu=$ac_cv_c_compiler_gnu 2378 2379 2380 2381ac_aux_dir= 2382for ac_dir in build-aux "$srcdir"/build-aux; do 2383 if test -f "$ac_dir/install-sh"; then 2384 ac_aux_dir=$ac_dir 2385 ac_install_sh="$ac_aux_dir/install-sh -c" 2386 break 2387 elif test -f "$ac_dir/install.sh"; then 2388 ac_aux_dir=$ac_dir 2389 ac_install_sh="$ac_aux_dir/install.sh -c" 2390 break 2391 elif test -f "$ac_dir/shtool"; then 2392 ac_aux_dir=$ac_dir 2393 ac_install_sh="$ac_aux_dir/shtool install -c" 2394 break 2395 fi 2396done 2397if test -z "$ac_aux_dir"; then 2398 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2399fi 2400 2401# These three variables are undocumented and unsupported, 2402# and are intended to be withdrawn in a future Autoconf release. 2403# They can cause serious problems if a builder's source tree is in a directory 2404# whose full name contains unusual characters. 2405ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2406ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2407ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2408 2409 2410 2411am__api_version='1.13' 2412 2413# Find a good install program. We prefer a C program (faster), 2414# so one script is as good as another. But avoid the broken or 2415# incompatible versions: 2416# SysV /etc/install, /usr/sbin/install 2417# SunOS /usr/etc/install 2418# IRIX /sbin/install 2419# AIX /bin/install 2420# AmigaOS /C/install, which installs bootblocks on floppy discs 2421# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2422# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2423# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2424# OS/2's system install, which has a completely different semantic 2425# ./install, which can be erroneously created by make from ./install.sh. 2426# Reject install programs that cannot install multiple files. 2427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2428$as_echo_n "checking for a BSD-compatible install... " >&6; } 2429if test -z "$INSTALL"; then 2430if ${ac_cv_path_install+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432else 2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2434for as_dir in $PATH 2435do 2436 IFS=$as_save_IFS 2437 test -z "$as_dir" && as_dir=. 2438 # Account for people who put trailing slashes in PATH elements. 2439case $as_dir/ in #(( 2440 ./ | .// | /[cC]/* | \ 2441 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2442 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2443 /usr/ucb/* ) ;; 2444 *) 2445 # OSF1 and SCO ODT 3.0 have their own names for install. 2446 # Don't use installbsd from OSF since it installs stuff as root 2447 # by default. 2448 for ac_prog in ginstall scoinst install; do 2449 for ac_exec_ext in '' $ac_executable_extensions; do 2450 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2451 if test $ac_prog = install && 2452 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2453 # AIX install. It has an incompatible calling convention. 2454 : 2455 elif test $ac_prog = install && 2456 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2457 # program-specific install script used by HP pwplus--don't use. 2458 : 2459 else 2460 rm -rf conftest.one conftest.two conftest.dir 2461 echo one > conftest.one 2462 echo two > conftest.two 2463 mkdir conftest.dir 2464 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2465 test -s conftest.one && test -s conftest.two && 2466 test -s conftest.dir/conftest.one && 2467 test -s conftest.dir/conftest.two 2468 then 2469 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2470 break 3 2471 fi 2472 fi 2473 fi 2474 done 2475 done 2476 ;; 2477esac 2478 2479 done 2480IFS=$as_save_IFS 2481 2482rm -rf conftest.one conftest.two conftest.dir 2483 2484fi 2485 if test "${ac_cv_path_install+set}" = set; then 2486 INSTALL=$ac_cv_path_install 2487 else 2488 # As a last resort, use the slow shell script. Don't cache a 2489 # value for INSTALL within a source directory, because that will 2490 # break other packages using the cache if that directory is 2491 # removed, or if the value is a relative name. 2492 INSTALL=$ac_install_sh 2493 fi 2494fi 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2496$as_echo "$INSTALL" >&6; } 2497 2498# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2499# It thinks the first close brace ends the variable substitution. 2500test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2501 2502test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2503 2504test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2505 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2507$as_echo_n "checking whether build environment is sane... " >&6; } 2508# Reject unsafe characters in $srcdir or the absolute working directory 2509# name. Accept space and tab only in the latter. 2510am_lf=' 2511' 2512case `pwd` in 2513 *[\\\"\#\$\&\'\`$am_lf]*) 2514 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2515esac 2516case $srcdir in 2517 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2518 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2519esac 2520 2521# Do 'set' in a subshell so we don't clobber the current shell's 2522# arguments. Must try -L first in case configure is actually a 2523# symlink; some systems play weird games with the mod time of symlinks 2524# (eg FreeBSD returns the mod time of the symlink's containing 2525# directory). 2526if ( 2527 am_has_slept=no 2528 for am_try in 1 2; do 2529 echo "timestamp, slept: $am_has_slept" > conftest.file 2530 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2531 if test "$*" = "X"; then 2532 # -L didn't work. 2533 set X `ls -t "$srcdir/configure" conftest.file` 2534 fi 2535 if test "$*" != "X $srcdir/configure conftest.file" \ 2536 && test "$*" != "X conftest.file $srcdir/configure"; then 2537 2538 # If neither matched, then we have a broken ls. This can happen 2539 # if, for instance, CONFIG_SHELL is bash and it inherits a 2540 # broken ls alias from the environment. This has actually 2541 # happened. Such a system could not be considered "sane". 2542 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2543 alias in your environment" "$LINENO" 5 2544 fi 2545 if test "$2" = conftest.file || test $am_try -eq 2; then 2546 break 2547 fi 2548 # Just in case. 2549 sleep 1 2550 am_has_slept=yes 2551 done 2552 test "$2" = conftest.file 2553 ) 2554then 2555 # Ok. 2556 : 2557else 2558 as_fn_error $? "newly created file is older than distributed files! 2559Check your system clock" "$LINENO" 5 2560fi 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2562$as_echo "yes" >&6; } 2563# If we didn't sleep, we still need to ensure time stamps of config.status and 2564# generated files are strictly newer. 2565am_sleep_pid= 2566if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2567 ( sleep 1 ) & 2568 am_sleep_pid=$! 2569fi 2570 2571rm -f conftest.file 2572 2573test "$program_prefix" != NONE && 2574 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2575# Use a double $ so make ignores it. 2576test "$program_suffix" != NONE && 2577 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2578# Double any \ or $. 2579# By default was `s,x,x', remove it if useless. 2580ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2581program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2582 2583# expand $ac_aux_dir to an absolute path 2584am_aux_dir=`cd $ac_aux_dir && pwd` 2585 2586if test x"${MISSING+set}" != xset; then 2587 case $am_aux_dir in 2588 *\ * | *\ *) 2589 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2590 *) 2591 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2592 esac 2593fi 2594# Use eval to expand $SHELL 2595if eval "$MISSING --is-lightweight"; then 2596 am_missing_run="$MISSING " 2597else 2598 am_missing_run= 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2600$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2601fi 2602 2603if test x"${install_sh}" != xset; then 2604 case $am_aux_dir in 2605 *\ * | *\ *) 2606 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2607 *) 2608 install_sh="\${SHELL} $am_aux_dir/install-sh" 2609 esac 2610fi 2611 2612# Installed binaries are usually stripped using 'strip' when the user 2613# run "make install-strip". However 'strip' might not be the right 2614# tool to use in cross-compilation environments, therefore Automake 2615# will honor the 'STRIP' environment variable to overrule this program. 2616if test "$cross_compiling" != no; then 2617 if test -n "$ac_tool_prefix"; then 2618 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2619set dummy ${ac_tool_prefix}strip; ac_word=$2 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2621$as_echo_n "checking for $ac_word... " >&6; } 2622if ${ac_cv_prog_STRIP+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 if test -n "$STRIP"; then 2626 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2635 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640 done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645STRIP=$ac_cv_prog_STRIP 2646if test -n "$STRIP"; then 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2648$as_echo "$STRIP" >&6; } 2649else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2651$as_echo "no" >&6; } 2652fi 2653 2654 2655fi 2656if test -z "$ac_cv_prog_STRIP"; then 2657 ac_ct_STRIP=$STRIP 2658 # Extract the first word of "strip", so it can be a program name with args. 2659set dummy strip; ac_word=$2 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2661$as_echo_n "checking for $ac_word... " >&6; } 2662if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2663 $as_echo_n "(cached) " >&6 2664else 2665 if test -n "$ac_ct_STRIP"; then 2666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2667else 2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2669for as_dir in $PATH 2670do 2671 IFS=$as_save_IFS 2672 test -z "$as_dir" && as_dir=. 2673 for ac_exec_ext in '' $ac_executable_extensions; do 2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2675 ac_cv_prog_ac_ct_STRIP="strip" 2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2677 break 2 2678 fi 2679done 2680 done 2681IFS=$as_save_IFS 2682 2683fi 2684fi 2685ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2686if test -n "$ac_ct_STRIP"; then 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2688$as_echo "$ac_ct_STRIP" >&6; } 2689else 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2691$as_echo "no" >&6; } 2692fi 2693 2694 if test "x$ac_ct_STRIP" = x; then 2695 STRIP=":" 2696 else 2697 case $cross_compiling:$ac_tool_warned in 2698yes:) 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2701ac_tool_warned=yes ;; 2702esac 2703 STRIP=$ac_ct_STRIP 2704 fi 2705else 2706 STRIP="$ac_cv_prog_STRIP" 2707fi 2708 2709fi 2710INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2711 2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2713$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2714if test -z "$MKDIR_P"; then 2715 if ${ac_cv_path_mkdir+:} false; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2719for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2720do 2721 IFS=$as_save_IFS 2722 test -z "$as_dir" && as_dir=. 2723 for ac_prog in mkdir gmkdir; do 2724 for ac_exec_ext in '' $ac_executable_extensions; do 2725 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2726 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2727 'mkdir (GNU coreutils) '* | \ 2728 'mkdir (coreutils) '* | \ 2729 'mkdir (fileutils) '4.1*) 2730 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2731 break 3;; 2732 esac 2733 done 2734 done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739 2740 test -d ./--version && rmdir ./--version 2741 if test "${ac_cv_path_mkdir+set}" = set; then 2742 MKDIR_P="$ac_cv_path_mkdir -p" 2743 else 2744 # As a last resort, use the slow shell script. Don't cache a 2745 # value for MKDIR_P within a source directory, because that will 2746 # break other packages using the cache if that directory is 2747 # removed, or if the value is a relative name. 2748 MKDIR_P="$ac_install_sh -d" 2749 fi 2750fi 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2752$as_echo "$MKDIR_P" >&6; } 2753 2754for ac_prog in gawk mawk nawk awk 2755do 2756 # Extract the first word of "$ac_prog", so it can be a program name with args. 2757set dummy $ac_prog; ac_word=$2 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2759$as_echo_n "checking for $ac_word... " >&6; } 2760if ${ac_cv_prog_AWK+:} false; then : 2761 $as_echo_n "(cached) " >&6 2762else 2763 if test -n "$AWK"; then 2764 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2765else 2766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767for as_dir in $PATH 2768do 2769 IFS=$as_save_IFS 2770 test -z "$as_dir" && as_dir=. 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2773 ac_cv_prog_AWK="$ac_prog" 2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2775 break 2 2776 fi 2777done 2778 done 2779IFS=$as_save_IFS 2780 2781fi 2782fi 2783AWK=$ac_cv_prog_AWK 2784if test -n "$AWK"; then 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2786$as_echo "$AWK" >&6; } 2787else 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2789$as_echo "no" >&6; } 2790fi 2791 2792 2793 test -n "$AWK" && break 2794done 2795 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2797$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2798set x ${MAKE-make} 2799ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2800if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2801 $as_echo_n "(cached) " >&6 2802else 2803 cat >conftest.make <<\_ACEOF 2804SHELL = /bin/sh 2805all: 2806 @echo '@@@%%%=$(MAKE)=@@@%%%' 2807_ACEOF 2808# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2809case `${MAKE-make} -f conftest.make 2>/dev/null` in 2810 *@@@%%%=?*=@@@%%%*) 2811 eval ac_cv_prog_make_${ac_make}_set=yes;; 2812 *) 2813 eval ac_cv_prog_make_${ac_make}_set=no;; 2814esac 2815rm -f conftest.make 2816fi 2817if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2819$as_echo "yes" >&6; } 2820 SET_MAKE= 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823$as_echo "no" >&6; } 2824 SET_MAKE="MAKE=${MAKE-make}" 2825fi 2826 2827rm -rf .tst 2>/dev/null 2828mkdir .tst 2>/dev/null 2829if test -d .tst; then 2830 am__leading_dot=. 2831else 2832 am__leading_dot=_ 2833fi 2834rmdir .tst 2>/dev/null 2835 2836# Check whether --enable-silent-rules was given. 2837if test "${enable_silent_rules+set}" = set; then : 2838 enableval=$enable_silent_rules; 2839fi 2840 2841case $enable_silent_rules in # ((( 2842 yes) AM_DEFAULT_VERBOSITY=0;; 2843 no) AM_DEFAULT_VERBOSITY=1;; 2844 *) AM_DEFAULT_VERBOSITY=1;; 2845esac 2846am_make=${MAKE-make} 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2848$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2849if ${am_cv_make_support_nested_variables+:} false; then : 2850 $as_echo_n "(cached) " >&6 2851else 2852 if $as_echo 'TRUE=$(BAR$(V)) 2853BAR0=false 2854BAR1=true 2855V=1 2856am__doit: 2857 @$(TRUE) 2858.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2859 am_cv_make_support_nested_variables=yes 2860else 2861 am_cv_make_support_nested_variables=no 2862fi 2863fi 2864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2865$as_echo "$am_cv_make_support_nested_variables" >&6; } 2866if test $am_cv_make_support_nested_variables = yes; then 2867 AM_V='$(V)' 2868 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2869else 2870 AM_V=$AM_DEFAULT_VERBOSITY 2871 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2872fi 2873AM_BACKSLASH='\' 2874 2875if test "`cd $srcdir && pwd`" != "`pwd`"; then 2876 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2877 # is not polluted with repeated "-I." 2878 am__isrc=' -I$(srcdir)' 2879 # test to see if srcdir already configured 2880 if test -f $srcdir/config.status; then 2881 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2882 fi 2883fi 2884 2885# test whether we have cygpath 2886if test -z "$CYGPATH_W"; then 2887 if (cygpath --version) >/dev/null 2>/dev/null; then 2888 CYGPATH_W='cygpath -w' 2889 else 2890 CYGPATH_W=echo 2891 fi 2892fi 2893 2894 2895# Define the identity of the package. 2896 PACKAGE='udunits' 2897 VERSION='2.2.28' 2898 2899 2900cat >>confdefs.h <<_ACEOF 2901#define PACKAGE "$PACKAGE" 2902_ACEOF 2903 2904 2905cat >>confdefs.h <<_ACEOF 2906#define VERSION "$VERSION" 2907_ACEOF 2908 2909# Some tools Automake needs. 2910 2911ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2912 2913 2914AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2915 2916 2917AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2918 2919 2920AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2921 2922 2923MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2924 2925# For better backward compatibility. To be removed once Automake 1.9.x 2926# dies out for good. For more background, see: 2927# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2928# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2929mkdir_p='$(MKDIR_P)' 2930 2931# We need awk for the "check" target. The system "awk" is bad on 2932# some platforms. 2933# Always define AMTAR for backward compatibility. Yes, it's still used 2934# in the wild :-( We should find a proper way to deprecate it ... 2935AMTAR='$${TAR-tar}' 2936 2937 2938# We'll loop over all known methods to create a tar archive until one works. 2939_am_tools='gnutar pax cpio none' 2940 2941am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2942 2943 2944 2945 2946 2947 2948ac_config_headers="$ac_config_headers config.h" 2949 2950case `pwd` in 2951 *\ * | *\ *) 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2953$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2954esac 2955 2956 2957 2958macro_version='2.4.2' 2959macro_revision='1.3337' 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973ltmain="$ac_aux_dir/ltmain.sh" 2974 2975# Make sure we can run config.sub. 2976$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2977 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2978 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2980$as_echo_n "checking build system type... " >&6; } 2981if ${ac_cv_build+:} false; then : 2982 $as_echo_n "(cached) " >&6 2983else 2984 ac_build_alias=$build_alias 2985test "x$ac_build_alias" = x && 2986 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2987test "x$ac_build_alias" = x && 2988 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2989ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2990 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2991 2992fi 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2994$as_echo "$ac_cv_build" >&6; } 2995case $ac_cv_build in 2996*-*-*) ;; 2997*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2998esac 2999build=$ac_cv_build 3000ac_save_IFS=$IFS; IFS='-' 3001set x $ac_cv_build 3002shift 3003build_cpu=$1 3004build_vendor=$2 3005shift; shift 3006# Remember, the first character of IFS is used to create $*, 3007# except with old shells: 3008build_os=$* 3009IFS=$ac_save_IFS 3010case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3011 3012 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3014$as_echo_n "checking host system type... " >&6; } 3015if ${ac_cv_host+:} false; then : 3016 $as_echo_n "(cached) " >&6 3017else 3018 if test "x$host_alias" = x; then 3019 ac_cv_host=$ac_cv_build 3020else 3021 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3022 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3023fi 3024 3025fi 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3027$as_echo "$ac_cv_host" >&6; } 3028case $ac_cv_host in 3029*-*-*) ;; 3030*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3031esac 3032host=$ac_cv_host 3033ac_save_IFS=$IFS; IFS='-' 3034set x $ac_cv_host 3035shift 3036host_cpu=$1 3037host_vendor=$2 3038shift; shift 3039# Remember, the first character of IFS is used to create $*, 3040# except with old shells: 3041host_os=$* 3042IFS=$ac_save_IFS 3043case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3044 3045 3046# Backslashify metacharacters that are still active within 3047# double-quoted strings. 3048sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3049 3050# Same as above, but do not quote variable references. 3051double_quote_subst='s/\(["`\\]\)/\\\1/g' 3052 3053# Sed substitution to delay expansion of an escaped shell variable in a 3054# double_quote_subst'ed string. 3055delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3056 3057# Sed substitution to delay expansion of an escaped single quote. 3058delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3059 3060# Sed substitution to avoid accidental globbing in evaled expressions 3061no_glob_subst='s/\*/\\\*/g' 3062 3063ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3064ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3065ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3066 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3068$as_echo_n "checking how to print strings... " >&6; } 3069# Test print first, because it will be a builtin if present. 3070if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3071 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3072 ECHO='print -r --' 3073elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3074 ECHO='printf %s\n' 3075else 3076 # Use this function as a fallback that always works. 3077 func_fallback_echo () 3078 { 3079 eval 'cat <<_LTECHO_EOF 3080$1 3081_LTECHO_EOF' 3082 } 3083 ECHO='func_fallback_echo' 3084fi 3085 3086# func_echo_all arg... 3087# Invoke $ECHO with all args, space-separated. 3088func_echo_all () 3089{ 3090 $ECHO "" 3091} 3092 3093case "$ECHO" in 3094 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3095$as_echo "printf" >&6; } ;; 3096 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3097$as_echo "print -r" >&6; } ;; 3098 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3099$as_echo "cat" >&6; } ;; 3100esac 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115DEPDIR="${am__leading_dot}deps" 3116 3117ac_config_commands="$ac_config_commands depfiles" 3118 3119 3120am_make=${MAKE-make} 3121cat > confinc << 'END' 3122am__doit: 3123 @echo this is the am__doit target 3124.PHONY: am__doit 3125END 3126# If we don't find an include directive, just comment out the code. 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3128$as_echo_n "checking for style of include used by $am_make... " >&6; } 3129am__include="#" 3130am__quote= 3131_am_result=none 3132# First try GNU make style include. 3133echo "include confinc" > confmf 3134# Ignore all kinds of additional output from 'make'. 3135case `$am_make -s -f confmf 2> /dev/null` in #( 3136*the\ am__doit\ target*) 3137 am__include=include 3138 am__quote= 3139 _am_result=GNU 3140 ;; 3141esac 3142# Now try BSD make style include. 3143if test "$am__include" = "#"; then 3144 echo '.include "confinc"' > confmf 3145 case `$am_make -s -f confmf 2> /dev/null` in #( 3146 *the\ am__doit\ target*) 3147 am__include=.include 3148 am__quote="\"" 3149 _am_result=BSD 3150 ;; 3151 esac 3152fi 3153 3154 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3156$as_echo "$_am_result" >&6; } 3157rm -f confinc confmf 3158 3159# Check whether --enable-dependency-tracking was given. 3160if test "${enable_dependency_tracking+set}" = set; then : 3161 enableval=$enable_dependency_tracking; 3162fi 3163 3164if test "x$enable_dependency_tracking" != xno; then 3165 am_depcomp="$ac_aux_dir/depcomp" 3166 AMDEPBACKSLASH='\' 3167 am__nodep='_no' 3168fi 3169 if test "x$enable_dependency_tracking" != xno; then 3170 AMDEP_TRUE= 3171 AMDEP_FALSE='#' 3172else 3173 AMDEP_TRUE='#' 3174 AMDEP_FALSE= 3175fi 3176 3177 3178ac_ext=c 3179ac_cpp='$CPP $CPPFLAGS' 3180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3182ac_compiler_gnu=$ac_cv_c_compiler_gnu 3183if test -n "$ac_tool_prefix"; then 3184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3185set dummy ${ac_tool_prefix}gcc; ac_word=$2 3186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3187$as_echo_n "checking for $ac_word... " >&6; } 3188if ${ac_cv_prog_CC+:} false; then : 3189 $as_echo_n "(cached) " >&6 3190else 3191 if test -n "$CC"; then 3192 ac_cv_prog_CC="$CC" # Let the user override the test. 3193else 3194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195for as_dir in $PATH 3196do 3197 IFS=$as_save_IFS 3198 test -z "$as_dir" && as_dir=. 3199 for ac_exec_ext in '' $ac_executable_extensions; do 3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3201 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3203 break 2 3204 fi 3205done 3206 done 3207IFS=$as_save_IFS 3208 3209fi 3210fi 3211CC=$ac_cv_prog_CC 3212if test -n "$CC"; then 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3214$as_echo "$CC" >&6; } 3215else 3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3217$as_echo "no" >&6; } 3218fi 3219 3220 3221fi 3222if test -z "$ac_cv_prog_CC"; then 3223 ac_ct_CC=$CC 3224 # Extract the first word of "gcc", so it can be a program name with args. 3225set dummy gcc; ac_word=$2 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3227$as_echo_n "checking for $ac_word... " >&6; } 3228if ${ac_cv_prog_ac_ct_CC+:} false; then : 3229 $as_echo_n "(cached) " >&6 3230else 3231 if test -n "$ac_ct_CC"; then 3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3233else 3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235for as_dir in $PATH 3236do 3237 IFS=$as_save_IFS 3238 test -z "$as_dir" && as_dir=. 3239 for ac_exec_ext in '' $ac_executable_extensions; do 3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3241 ac_cv_prog_ac_ct_CC="gcc" 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3243 break 2 3244 fi 3245done 3246 done 3247IFS=$as_save_IFS 3248 3249fi 3250fi 3251ac_ct_CC=$ac_cv_prog_ac_ct_CC 3252if test -n "$ac_ct_CC"; then 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3254$as_echo "$ac_ct_CC" >&6; } 3255else 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257$as_echo "no" >&6; } 3258fi 3259 3260 if test "x$ac_ct_CC" = x; then 3261 CC="" 3262 else 3263 case $cross_compiling:$ac_tool_warned in 3264yes:) 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3267ac_tool_warned=yes ;; 3268esac 3269 CC=$ac_ct_CC 3270 fi 3271else 3272 CC="$ac_cv_prog_CC" 3273fi 3274 3275if test -z "$CC"; then 3276 if test -n "$ac_tool_prefix"; then 3277 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3278set dummy ${ac_tool_prefix}cc; ac_word=$2 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3280$as_echo_n "checking for $ac_word... " >&6; } 3281if ${ac_cv_prog_CC+:} false; then : 3282 $as_echo_n "(cached) " >&6 3283else 3284 if test -n "$CC"; then 3285 ac_cv_prog_CC="$CC" # Let the user override the test. 3286else 3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3288for as_dir in $PATH 3289do 3290 IFS=$as_save_IFS 3291 test -z "$as_dir" && as_dir=. 3292 for ac_exec_ext in '' $ac_executable_extensions; do 3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3294 ac_cv_prog_CC="${ac_tool_prefix}cc" 3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3296 break 2 3297 fi 3298done 3299 done 3300IFS=$as_save_IFS 3301 3302fi 3303fi 3304CC=$ac_cv_prog_CC 3305if test -n "$CC"; then 3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3307$as_echo "$CC" >&6; } 3308else 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3310$as_echo "no" >&6; } 3311fi 3312 3313 3314 fi 3315fi 3316if test -z "$CC"; then 3317 # Extract the first word of "cc", so it can be a program name with args. 3318set dummy cc; ac_word=$2 3319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3320$as_echo_n "checking for $ac_word... " >&6; } 3321if ${ac_cv_prog_CC+:} false; then : 3322 $as_echo_n "(cached) " >&6 3323else 3324 if test -n "$CC"; then 3325 ac_cv_prog_CC="$CC" # Let the user override the test. 3326else 3327 ac_prog_rejected=no 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3336 ac_prog_rejected=yes 3337 continue 3338 fi 3339 ac_cv_prog_CC="cc" 3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3341 break 2 3342 fi 3343done 3344 done 3345IFS=$as_save_IFS 3346 3347if test $ac_prog_rejected = yes; then 3348 # We found a bogon in the path, so make sure we never use it. 3349 set dummy $ac_cv_prog_CC 3350 shift 3351 if test $# != 0; then 3352 # We chose a different compiler from the bogus one. 3353 # However, it has the same basename, so the bogon will be chosen 3354 # first if we set CC to just the basename; use the full file name. 3355 shift 3356 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3357 fi 3358fi 3359fi 3360fi 3361CC=$ac_cv_prog_CC 3362if test -n "$CC"; then 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3364$as_echo "$CC" >&6; } 3365else 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3367$as_echo "no" >&6; } 3368fi 3369 3370 3371fi 3372if test -z "$CC"; then 3373 if test -n "$ac_tool_prefix"; then 3374 for ac_prog in cl.exe 3375 do 3376 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3377set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3379$as_echo_n "checking for $ac_word... " >&6; } 3380if ${ac_cv_prog_CC+:} false; then : 3381 $as_echo_n "(cached) " >&6 3382else 3383 if test -n "$CC"; then 3384 ac_cv_prog_CC="$CC" # Let the user override the test. 3385else 3386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3387for as_dir in $PATH 3388do 3389 IFS=$as_save_IFS 3390 test -z "$as_dir" && as_dir=. 3391 for ac_exec_ext in '' $ac_executable_extensions; do 3392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3393 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3395 break 2 3396 fi 3397done 3398 done 3399IFS=$as_save_IFS 3400 3401fi 3402fi 3403CC=$ac_cv_prog_CC 3404if test -n "$CC"; then 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3406$as_echo "$CC" >&6; } 3407else 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3409$as_echo "no" >&6; } 3410fi 3411 3412 3413 test -n "$CC" && break 3414 done 3415fi 3416if test -z "$CC"; then 3417 ac_ct_CC=$CC 3418 for ac_prog in cl.exe 3419do 3420 # Extract the first word of "$ac_prog", so it can be a program name with args. 3421set dummy $ac_prog; ac_word=$2 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3423$as_echo_n "checking for $ac_word... " >&6; } 3424if ${ac_cv_prog_ac_ct_CC+:} false; then : 3425 $as_echo_n "(cached) " >&6 3426else 3427 if test -n "$ac_ct_CC"; then 3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3429else 3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3431for as_dir in $PATH 3432do 3433 IFS=$as_save_IFS 3434 test -z "$as_dir" && as_dir=. 3435 for ac_exec_ext in '' $ac_executable_extensions; do 3436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3437 ac_cv_prog_ac_ct_CC="$ac_prog" 3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3439 break 2 3440 fi 3441done 3442 done 3443IFS=$as_save_IFS 3444 3445fi 3446fi 3447ac_ct_CC=$ac_cv_prog_ac_ct_CC 3448if test -n "$ac_ct_CC"; then 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3450$as_echo "$ac_ct_CC" >&6; } 3451else 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453$as_echo "no" >&6; } 3454fi 3455 3456 3457 test -n "$ac_ct_CC" && break 3458done 3459 3460 if test "x$ac_ct_CC" = x; then 3461 CC="" 3462 else 3463 case $cross_compiling:$ac_tool_warned in 3464yes:) 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3467ac_tool_warned=yes ;; 3468esac 3469 CC=$ac_ct_CC 3470 fi 3471fi 3472 3473fi 3474 3475 3476test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3478as_fn_error $? "no acceptable C compiler found in \$PATH 3479See \`config.log' for more details" "$LINENO" 5; } 3480 3481# Provide some information about the compiler. 3482$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3483set X $ac_compile 3484ac_compiler=$2 3485for ac_option in --version -v -V -qversion; do 3486 { { ac_try="$ac_compiler $ac_option >&5" 3487case "(($ac_try" in 3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3489 *) ac_try_echo=$ac_try;; 3490esac 3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3492$as_echo "$ac_try_echo"; } >&5 3493 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3494 ac_status=$? 3495 if test -s conftest.err; then 3496 sed '10a\ 3497... rest of stderr output deleted ... 3498 10q' conftest.err >conftest.er1 3499 cat conftest.er1 >&5 3500 fi 3501 rm -f conftest.er1 conftest.err 3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3503 test $ac_status = 0; } 3504done 3505 3506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517ac_clean_files_save=$ac_clean_files 3518ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3519# Try to create an executable without -o first, disregard a.out. 3520# It will help us diagnose broken compilers, and finding out an intuition 3521# of exeext. 3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3523$as_echo_n "checking whether the C compiler works... " >&6; } 3524ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3525 3526# The possible output files: 3527ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3528 3529ac_rmfiles= 3530for ac_file in $ac_files 3531do 3532 case $ac_file in 3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3534 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3535 esac 3536done 3537rm -f $ac_rmfiles 3538 3539if { { ac_try="$ac_link_default" 3540case "(($ac_try" in 3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3542 *) ac_try_echo=$ac_try;; 3543esac 3544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3545$as_echo "$ac_try_echo"; } >&5 3546 (eval "$ac_link_default") 2>&5 3547 ac_status=$? 3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3549 test $ac_status = 0; }; then : 3550 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3551# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3552# in a Makefile. We should not override ac_cv_exeext if it was cached, 3553# so that the user can short-circuit this test for compilers unknown to 3554# Autoconf. 3555for ac_file in $ac_files '' 3556do 3557 test -f "$ac_file" || continue 3558 case $ac_file in 3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3560 ;; 3561 [ab].out ) 3562 # We found the default executable, but exeext='' is most 3563 # certainly right. 3564 break;; 3565 *.* ) 3566 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3567 then :; else 3568 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3569 fi 3570 # We set ac_cv_exeext here because the later test for it is not 3571 # safe: cross compilers may not add the suffix if given an `-o' 3572 # argument, so we may need to know it at that point already. 3573 # Even if this section looks crufty: it has the advantage of 3574 # actually working. 3575 break;; 3576 * ) 3577 break;; 3578 esac 3579done 3580test "$ac_cv_exeext" = no && ac_cv_exeext= 3581 3582else 3583 ac_file='' 3584fi 3585if test -z "$ac_file"; then : 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587$as_echo "no" >&6; } 3588$as_echo "$as_me: failed program was:" >&5 3589sed 's/^/| /' conftest.$ac_ext >&5 3590 3591{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3593as_fn_error 77 "C compiler cannot create executables 3594See \`config.log' for more details" "$LINENO" 5; } 3595else 3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3597$as_echo "yes" >&6; } 3598fi 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3600$as_echo_n "checking for C compiler default output file name... " >&6; } 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3602$as_echo "$ac_file" >&6; } 3603ac_exeext=$ac_cv_exeext 3604 3605rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3606ac_clean_files=$ac_clean_files_save 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3608$as_echo_n "checking for suffix of executables... " >&6; } 3609if { { ac_try="$ac_link" 3610case "(($ac_try" in 3611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3612 *) ac_try_echo=$ac_try;; 3613esac 3614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3615$as_echo "$ac_try_echo"; } >&5 3616 (eval "$ac_link") 2>&5 3617 ac_status=$? 3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3619 test $ac_status = 0; }; then : 3620 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3621# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3622# work properly (i.e., refer to `conftest.exe'), while it won't with 3623# `rm'. 3624for ac_file in conftest.exe conftest conftest.*; do 3625 test -f "$ac_file" || continue 3626 case $ac_file in 3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3628 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3629 break;; 3630 * ) break;; 3631 esac 3632done 3633else 3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3636as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3637See \`config.log' for more details" "$LINENO" 5; } 3638fi 3639rm -f conftest conftest$ac_cv_exeext 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3641$as_echo "$ac_cv_exeext" >&6; } 3642 3643rm -f conftest.$ac_ext 3644EXEEXT=$ac_cv_exeext 3645ac_exeext=$EXEEXT 3646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3647/* end confdefs.h. */ 3648#include <stdio.h> 3649int 3650main () 3651{ 3652FILE *f = fopen ("conftest.out", "w"); 3653 return ferror (f) || fclose (f) != 0; 3654 3655 ; 3656 return 0; 3657} 3658_ACEOF 3659ac_clean_files="$ac_clean_files conftest.out" 3660# Check that the compiler produces executables we can run. If not, either 3661# the compiler is broken, or we cross compile. 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3663$as_echo_n "checking whether we are cross compiling... " >&6; } 3664if test "$cross_compiling" != yes; then 3665 { { ac_try="$ac_link" 3666case "(($ac_try" in 3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3668 *) ac_try_echo=$ac_try;; 3669esac 3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3671$as_echo "$ac_try_echo"; } >&5 3672 (eval "$ac_link") 2>&5 3673 ac_status=$? 3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3675 test $ac_status = 0; } 3676 if { ac_try='./conftest$ac_cv_exeext' 3677 { { case "(($ac_try" in 3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3679 *) ac_try_echo=$ac_try;; 3680esac 3681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3682$as_echo "$ac_try_echo"; } >&5 3683 (eval "$ac_try") 2>&5 3684 ac_status=$? 3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3686 test $ac_status = 0; }; }; then 3687 cross_compiling=no 3688 else 3689 if test "$cross_compiling" = maybe; then 3690 cross_compiling=yes 3691 else 3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3694as_fn_error $? "cannot run C compiled programs. 3695If you meant to cross compile, use \`--host'. 3696See \`config.log' for more details" "$LINENO" 5; } 3697 fi 3698 fi 3699fi 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3701$as_echo "$cross_compiling" >&6; } 3702 3703rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3704ac_clean_files=$ac_clean_files_save 3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3706$as_echo_n "checking for suffix of object files... " >&6; } 3707if ${ac_cv_objext+:} false; then : 3708 $as_echo_n "(cached) " >&6 3709else 3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3711/* end confdefs.h. */ 3712 3713int 3714main () 3715{ 3716 3717 ; 3718 return 0; 3719} 3720_ACEOF 3721rm -f conftest.o conftest.obj 3722if { { ac_try="$ac_compile" 3723case "(($ac_try" in 3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3725 *) ac_try_echo=$ac_try;; 3726esac 3727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3728$as_echo "$ac_try_echo"; } >&5 3729 (eval "$ac_compile") 2>&5 3730 ac_status=$? 3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3732 test $ac_status = 0; }; then : 3733 for ac_file in conftest.o conftest.obj conftest.*; do 3734 test -f "$ac_file" || continue; 3735 case $ac_file in 3736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3737 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3738 break;; 3739 esac 3740done 3741else 3742 $as_echo "$as_me: failed program was:" >&5 3743sed 's/^/| /' conftest.$ac_ext >&5 3744 3745{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3747as_fn_error $? "cannot compute suffix of object files: cannot compile 3748See \`config.log' for more details" "$LINENO" 5; } 3749fi 3750rm -f conftest.$ac_cv_objext conftest.$ac_ext 3751fi 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3753$as_echo "$ac_cv_objext" >&6; } 3754OBJEXT=$ac_cv_objext 3755ac_objext=$OBJEXT 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3757$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3758if ${ac_cv_c_compiler_gnu+:} false; then : 3759 $as_echo_n "(cached) " >&6 3760else 3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763 3764int 3765main () 3766{ 3767#ifndef __GNUC__ 3768 choke me 3769#endif 3770 3771 ; 3772 return 0; 3773} 3774_ACEOF 3775if ac_fn_c_try_compile "$LINENO"; then : 3776 ac_compiler_gnu=yes 3777else 3778 ac_compiler_gnu=no 3779fi 3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3781ac_cv_c_compiler_gnu=$ac_compiler_gnu 3782 3783fi 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3785$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3786if test $ac_compiler_gnu = yes; then 3787 GCC=yes 3788else 3789 GCC= 3790fi 3791ac_test_CFLAGS=${CFLAGS+set} 3792ac_save_CFLAGS=$CFLAGS 3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3794$as_echo_n "checking whether $CC accepts -g... " >&6; } 3795if ${ac_cv_prog_cc_g+:} false; then : 3796 $as_echo_n "(cached) " >&6 3797else 3798 ac_save_c_werror_flag=$ac_c_werror_flag 3799 ac_c_werror_flag=yes 3800 ac_cv_prog_cc_g=no 3801 CFLAGS="-g" 3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804 3805int 3806main () 3807{ 3808 3809 ; 3810 return 0; 3811} 3812_ACEOF 3813if ac_fn_c_try_compile "$LINENO"; then : 3814 ac_cv_prog_cc_g=yes 3815else 3816 CFLAGS="" 3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3818/* end confdefs.h. */ 3819 3820int 3821main () 3822{ 3823 3824 ; 3825 return 0; 3826} 3827_ACEOF 3828if ac_fn_c_try_compile "$LINENO"; then : 3829 3830else 3831 ac_c_werror_flag=$ac_save_c_werror_flag 3832 CFLAGS="-g" 3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834/* end confdefs.h. */ 3835 3836int 3837main () 3838{ 3839 3840 ; 3841 return 0; 3842} 3843_ACEOF 3844if ac_fn_c_try_compile "$LINENO"; then : 3845 ac_cv_prog_cc_g=yes 3846fi 3847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3848fi 3849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3850fi 3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3852 ac_c_werror_flag=$ac_save_c_werror_flag 3853fi 3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3855$as_echo "$ac_cv_prog_cc_g" >&6; } 3856if test "$ac_test_CFLAGS" = set; then 3857 CFLAGS=$ac_save_CFLAGS 3858elif test $ac_cv_prog_cc_g = yes; then 3859 if test "$GCC" = yes; then 3860 CFLAGS="-g -O2" 3861 else 3862 CFLAGS="-g" 3863 fi 3864else 3865 if test "$GCC" = yes; then 3866 CFLAGS="-O2" 3867 else 3868 CFLAGS= 3869 fi 3870fi 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3872$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3873if ${ac_cv_prog_cc_c89+:} false; then : 3874 $as_echo_n "(cached) " >&6 3875else 3876 ac_cv_prog_cc_c89=no 3877ac_save_CC=$CC 3878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879/* end confdefs.h. */ 3880#include <stdarg.h> 3881#include <stdio.h> 3882struct stat; 3883/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3884struct buf { int x; }; 3885FILE * (*rcsopen) (struct buf *, struct stat *, int); 3886static char *e (p, i) 3887 char **p; 3888 int i; 3889{ 3890 return p[i]; 3891} 3892static char *f (char * (*g) (char **, int), char **p, ...) 3893{ 3894 char *s; 3895 va_list v; 3896 va_start (v,p); 3897 s = g (p, va_arg (v,int)); 3898 va_end (v); 3899 return s; 3900} 3901 3902/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3903 function prototypes and stuff, but not '\xHH' hex character constants. 3904 These don't provoke an error unfortunately, instead are silently treated 3905 as 'x'. The following induces an error, until -std is added to get 3906 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3907 array size at least. It's necessary to write '\x00'==0 to get something 3908 that's true only with -std. */ 3909int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3910 3911/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3912 inside strings and character constants. */ 3913#define FOO(x) 'x' 3914int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3915 3916int test (int i, double x); 3917struct s1 {int (*f) (int a);}; 3918struct s2 {int (*f) (double a);}; 3919int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3920int argc; 3921char **argv; 3922int 3923main () 3924{ 3925return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3926 ; 3927 return 0; 3928} 3929_ACEOF 3930for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3931 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3932do 3933 CC="$ac_save_CC $ac_arg" 3934 if ac_fn_c_try_compile "$LINENO"; then : 3935 ac_cv_prog_cc_c89=$ac_arg 3936fi 3937rm -f core conftest.err conftest.$ac_objext 3938 test "x$ac_cv_prog_cc_c89" != "xno" && break 3939done 3940rm -f conftest.$ac_ext 3941CC=$ac_save_CC 3942 3943fi 3944# AC_CACHE_VAL 3945case "x$ac_cv_prog_cc_c89" in 3946 x) 3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3948$as_echo "none needed" >&6; } ;; 3949 xno) 3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3951$as_echo "unsupported" >&6; } ;; 3952 *) 3953 CC="$CC $ac_cv_prog_cc_c89" 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3955$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3956esac 3957if test "x$ac_cv_prog_cc_c89" != xno; then : 3958 3959fi 3960 3961ac_ext=c 3962ac_cpp='$CPP $CPPFLAGS' 3963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3965ac_compiler_gnu=$ac_cv_c_compiler_gnu 3966 3967depcc="$CC" am_compiler_list= 3968 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3970$as_echo_n "checking dependency style of $depcc... " >&6; } 3971if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3972 $as_echo_n "(cached) " >&6 3973else 3974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3975 # We make a subdir and do the tests there. Otherwise we can end up 3976 # making bogus files that we don't know about and never remove. For 3977 # instance it was reported that on HP-UX the gcc test will end up 3978 # making a dummy file named 'D' -- because '-MD' means "put the output 3979 # in D". 3980 rm -rf conftest.dir 3981 mkdir conftest.dir 3982 # Copy depcomp to subdir because otherwise we won't find it if we're 3983 # using a relative directory. 3984 cp "$am_depcomp" conftest.dir 3985 cd conftest.dir 3986 # We will build objects and dependencies in a subdirectory because 3987 # it helps to detect inapplicable dependency modes. For instance 3988 # both Tru64's cc and ICC support -MD to output dependencies as a 3989 # side effect of compilation, but ICC will put the dependencies in 3990 # the current directory while Tru64 will put them in the object 3991 # directory. 3992 mkdir sub 3993 3994 am_cv_CC_dependencies_compiler_type=none 3995 if test "$am_compiler_list" = ""; then 3996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3997 fi 3998 am__universal=false 3999 case " $depcc " in #( 4000 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4001 esac 4002 4003 for depmode in $am_compiler_list; do 4004 # Setup a source with many dependencies, because some compilers 4005 # like to wrap large dependency lists on column 80 (with \), and 4006 # we should not choose a depcomp mode which is confused by this. 4007 # 4008 # We need to recreate these files for each test, as the compiler may 4009 # overwrite some of them when testing with obscure command lines. 4010 # This happens at least with the AIX C compiler. 4011 : > sub/conftest.c 4012 for i in 1 2 3 4 5 6; do 4013 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4014 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4015 # Solaris 10 /bin/sh. 4016 echo '/* dummy */' > sub/conftst$i.h 4017 done 4018 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4019 4020 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4021 # mode. It turns out that the SunPro C++ compiler does not properly 4022 # handle '-M -o', and we need to detect this. Also, some Intel 4023 # versions had trouble with output in subdirs. 4024 am__obj=sub/conftest.${OBJEXT-o} 4025 am__minus_obj="-o $am__obj" 4026 case $depmode in 4027 gcc) 4028 # This depmode causes a compiler race in universal mode. 4029 test "$am__universal" = false || continue 4030 ;; 4031 nosideeffect) 4032 # After this tag, mechanisms are not by side-effect, so they'll 4033 # only be used when explicitly requested. 4034 if test "x$enable_dependency_tracking" = xyes; then 4035 continue 4036 else 4037 break 4038 fi 4039 ;; 4040 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4041 # This compiler won't grok '-c -o', but also, the minuso test has 4042 # not run yet. These depmodes are late enough in the game, and 4043 # so weak that their functioning should not be impacted. 4044 am__obj=conftest.${OBJEXT-o} 4045 am__minus_obj= 4046 ;; 4047 none) break ;; 4048 esac 4049 if depmode=$depmode \ 4050 source=sub/conftest.c object=$am__obj \ 4051 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4052 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4053 >/dev/null 2>conftest.err && 4054 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4055 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4056 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4057 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4058 # icc doesn't choke on unknown options, it will just issue warnings 4059 # or remarks (even with -Werror). So we grep stderr for any message 4060 # that says an option was ignored or not supported. 4061 # When given -MP, icc 7.0 and 7.1 complain thusly: 4062 # icc: Command line warning: ignoring option '-M'; no argument required 4063 # The diagnosis changed in icc 8.0: 4064 # icc: Command line remark: option '-MP' not supported 4065 if (grep 'ignoring option' conftest.err || 4066 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4067 am_cv_CC_dependencies_compiler_type=$depmode 4068 break 4069 fi 4070 fi 4071 done 4072 4073 cd .. 4074 rm -rf conftest.dir 4075else 4076 am_cv_CC_dependencies_compiler_type=none 4077fi 4078 4079fi 4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4081$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4082CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4083 4084 if 4085 test "x$enable_dependency_tracking" != xno \ 4086 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4087 am__fastdepCC_TRUE= 4088 am__fastdepCC_FALSE='#' 4089else 4090 am__fastdepCC_TRUE='#' 4091 am__fastdepCC_FALSE= 4092fi 4093 4094 4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4096$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4097if ${ac_cv_path_SED+:} false; then : 4098 $as_echo_n "(cached) " >&6 4099else 4100 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4101 for ac_i in 1 2 3 4 5 6 7; do 4102 ac_script="$ac_script$as_nl$ac_script" 4103 done 4104 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4105 { ac_script=; unset ac_script;} 4106 if test -z "$SED"; then 4107 ac_path_SED_found=false 4108 # Loop through the user's path and test for each of PROGNAME-LIST 4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4110for as_dir in $PATH 4111do 4112 IFS=$as_save_IFS 4113 test -z "$as_dir" && as_dir=. 4114 for ac_prog in sed gsed; do 4115 for ac_exec_ext in '' $ac_executable_extensions; do 4116 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4117 as_fn_executable_p "$ac_path_SED" || continue 4118# Check for GNU ac_path_SED and select it if it is found. 4119 # Check for GNU $ac_path_SED 4120case `"$ac_path_SED" --version 2>&1` in 4121*GNU*) 4122 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4123*) 4124 ac_count=0 4125 $as_echo_n 0123456789 >"conftest.in" 4126 while : 4127 do 4128 cat "conftest.in" "conftest.in" >"conftest.tmp" 4129 mv "conftest.tmp" "conftest.in" 4130 cp "conftest.in" "conftest.nl" 4131 $as_echo '' >> "conftest.nl" 4132 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4133 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4134 as_fn_arith $ac_count + 1 && ac_count=$as_val 4135 if test $ac_count -gt ${ac_path_SED_max-0}; then 4136 # Best one so far, save it but keep looking for a better one 4137 ac_cv_path_SED="$ac_path_SED" 4138 ac_path_SED_max=$ac_count 4139 fi 4140 # 10*(2^10) chars as input seems more than enough 4141 test $ac_count -gt 10 && break 4142 done 4143 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4144esac 4145 4146 $ac_path_SED_found && break 3 4147 done 4148 done 4149 done 4150IFS=$as_save_IFS 4151 if test -z "$ac_cv_path_SED"; then 4152 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4153 fi 4154else 4155 ac_cv_path_SED=$SED 4156fi 4157 4158fi 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4160$as_echo "$ac_cv_path_SED" >&6; } 4161 SED="$ac_cv_path_SED" 4162 rm -f conftest.sed 4163 4164test -z "$SED" && SED=sed 4165Xsed="$SED -e 1s/^X//" 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4178$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4179if ${ac_cv_path_GREP+:} false; then : 4180 $as_echo_n "(cached) " >&6 4181else 4182 if test -z "$GREP"; then 4183 ac_path_GREP_found=false 4184 # Loop through the user's path and test for each of PROGNAME-LIST 4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4186for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4187do 4188 IFS=$as_save_IFS 4189 test -z "$as_dir" && as_dir=. 4190 for ac_prog in grep ggrep; do 4191 for ac_exec_ext in '' $ac_executable_extensions; do 4192 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4193 as_fn_executable_p "$ac_path_GREP" || continue 4194# Check for GNU ac_path_GREP and select it if it is found. 4195 # Check for GNU $ac_path_GREP 4196case `"$ac_path_GREP" --version 2>&1` in 4197*GNU*) 4198 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4199*) 4200 ac_count=0 4201 $as_echo_n 0123456789 >"conftest.in" 4202 while : 4203 do 4204 cat "conftest.in" "conftest.in" >"conftest.tmp" 4205 mv "conftest.tmp" "conftest.in" 4206 cp "conftest.in" "conftest.nl" 4207 $as_echo 'GREP' >> "conftest.nl" 4208 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4209 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4210 as_fn_arith $ac_count + 1 && ac_count=$as_val 4211 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4212 # Best one so far, save it but keep looking for a better one 4213 ac_cv_path_GREP="$ac_path_GREP" 4214 ac_path_GREP_max=$ac_count 4215 fi 4216 # 10*(2^10) chars as input seems more than enough 4217 test $ac_count -gt 10 && break 4218 done 4219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4220esac 4221 4222 $ac_path_GREP_found && break 3 4223 done 4224 done 4225 done 4226IFS=$as_save_IFS 4227 if test -z "$ac_cv_path_GREP"; then 4228 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4229 fi 4230else 4231 ac_cv_path_GREP=$GREP 4232fi 4233 4234fi 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4236$as_echo "$ac_cv_path_GREP" >&6; } 4237 GREP="$ac_cv_path_GREP" 4238 4239 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4241$as_echo_n "checking for egrep... " >&6; } 4242if ${ac_cv_path_EGREP+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244else 4245 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4246 then ac_cv_path_EGREP="$GREP -E" 4247 else 4248 if test -z "$EGREP"; then 4249 ac_path_EGREP_found=false 4250 # Loop through the user's path and test for each of PROGNAME-LIST 4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4253do 4254 IFS=$as_save_IFS 4255 test -z "$as_dir" && as_dir=. 4256 for ac_prog in egrep; do 4257 for ac_exec_ext in '' $ac_executable_extensions; do 4258 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4259 as_fn_executable_p "$ac_path_EGREP" || continue 4260# Check for GNU ac_path_EGREP and select it if it is found. 4261 # Check for GNU $ac_path_EGREP 4262case `"$ac_path_EGREP" --version 2>&1` in 4263*GNU*) 4264 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4265*) 4266 ac_count=0 4267 $as_echo_n 0123456789 >"conftest.in" 4268 while : 4269 do 4270 cat "conftest.in" "conftest.in" >"conftest.tmp" 4271 mv "conftest.tmp" "conftest.in" 4272 cp "conftest.in" "conftest.nl" 4273 $as_echo 'EGREP' >> "conftest.nl" 4274 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4276 as_fn_arith $ac_count + 1 && ac_count=$as_val 4277 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4278 # Best one so far, save it but keep looking for a better one 4279 ac_cv_path_EGREP="$ac_path_EGREP" 4280 ac_path_EGREP_max=$ac_count 4281 fi 4282 # 10*(2^10) chars as input seems more than enough 4283 test $ac_count -gt 10 && break 4284 done 4285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4286esac 4287 4288 $ac_path_EGREP_found && break 3 4289 done 4290 done 4291 done 4292IFS=$as_save_IFS 4293 if test -z "$ac_cv_path_EGREP"; then 4294 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4295 fi 4296else 4297 ac_cv_path_EGREP=$EGREP 4298fi 4299 4300 fi 4301fi 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4303$as_echo "$ac_cv_path_EGREP" >&6; } 4304 EGREP="$ac_cv_path_EGREP" 4305 4306 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4308$as_echo_n "checking for fgrep... " >&6; } 4309if ${ac_cv_path_FGREP+:} false; then : 4310 $as_echo_n "(cached) " >&6 4311else 4312 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4313 then ac_cv_path_FGREP="$GREP -F" 4314 else 4315 if test -z "$FGREP"; then 4316 ac_path_FGREP_found=false 4317 # Loop through the user's path and test for each of PROGNAME-LIST 4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4320do 4321 IFS=$as_save_IFS 4322 test -z "$as_dir" && as_dir=. 4323 for ac_prog in fgrep; do 4324 for ac_exec_ext in '' $ac_executable_extensions; do 4325 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4326 as_fn_executable_p "$ac_path_FGREP" || continue 4327# Check for GNU ac_path_FGREP and select it if it is found. 4328 # Check for GNU $ac_path_FGREP 4329case `"$ac_path_FGREP" --version 2>&1` in 4330*GNU*) 4331 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4332*) 4333 ac_count=0 4334 $as_echo_n 0123456789 >"conftest.in" 4335 while : 4336 do 4337 cat "conftest.in" "conftest.in" >"conftest.tmp" 4338 mv "conftest.tmp" "conftest.in" 4339 cp "conftest.in" "conftest.nl" 4340 $as_echo 'FGREP' >> "conftest.nl" 4341 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4343 as_fn_arith $ac_count + 1 && ac_count=$as_val 4344 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4345 # Best one so far, save it but keep looking for a better one 4346 ac_cv_path_FGREP="$ac_path_FGREP" 4347 ac_path_FGREP_max=$ac_count 4348 fi 4349 # 10*(2^10) chars as input seems more than enough 4350 test $ac_count -gt 10 && break 4351 done 4352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4353esac 4354 4355 $ac_path_FGREP_found && break 3 4356 done 4357 done 4358 done 4359IFS=$as_save_IFS 4360 if test -z "$ac_cv_path_FGREP"; then 4361 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4362 fi 4363else 4364 ac_cv_path_FGREP=$FGREP 4365fi 4366 4367 fi 4368fi 4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4370$as_echo "$ac_cv_path_FGREP" >&6; } 4371 FGREP="$ac_cv_path_FGREP" 4372 4373 4374test -z "$GREP" && GREP=grep 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394# Check whether --with-gnu-ld was given. 4395if test "${with_gnu_ld+set}" = set; then : 4396 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4397else 4398 with_gnu_ld=no 4399fi 4400 4401ac_prog=ld 4402if test "$GCC" = yes; then 4403 # Check if gcc -print-prog-name=ld gives a path. 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4405$as_echo_n "checking for ld used by $CC... " >&6; } 4406 case $host in 4407 *-*-mingw*) 4408 # gcc leaves a trailing carriage return which upsets mingw 4409 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4410 *) 4411 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4412 esac 4413 case $ac_prog in 4414 # Accept absolute paths. 4415 [\\/]* | ?:[\\/]*) 4416 re_direlt='/[^/][^/]*/\.\./' 4417 # Canonicalize the pathname of ld 4418 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4419 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4420 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4421 done 4422 test -z "$LD" && LD="$ac_prog" 4423 ;; 4424 "") 4425 # If it fails, then pretend we aren't using GCC. 4426 ac_prog=ld 4427 ;; 4428 *) 4429 # If it is relative, then search for the first ld in PATH. 4430 with_gnu_ld=unknown 4431 ;; 4432 esac 4433elif test "$with_gnu_ld" = yes; then 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4435$as_echo_n "checking for GNU ld... " >&6; } 4436else 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4438$as_echo_n "checking for non-GNU ld... " >&6; } 4439fi 4440if ${lt_cv_path_LD+:} false; then : 4441 $as_echo_n "(cached) " >&6 4442else 4443 if test -z "$LD"; then 4444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4445 for ac_dir in $PATH; do 4446 IFS="$lt_save_ifs" 4447 test -z "$ac_dir" && ac_dir=. 4448 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4449 lt_cv_path_LD="$ac_dir/$ac_prog" 4450 # Check to see if the program is GNU ld. I'd rather use --version, 4451 # but apparently some variants of GNU ld only accept -v. 4452 # Break only if it was the GNU/non-GNU ld that we prefer. 4453 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4454 *GNU* | *'with BFD'*) 4455 test "$with_gnu_ld" != no && break 4456 ;; 4457 *) 4458 test "$with_gnu_ld" != yes && break 4459 ;; 4460 esac 4461 fi 4462 done 4463 IFS="$lt_save_ifs" 4464else 4465 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4466fi 4467fi 4468 4469LD="$lt_cv_path_LD" 4470if test -n "$LD"; then 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4472$as_echo "$LD" >&6; } 4473else 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4475$as_echo "no" >&6; } 4476fi 4477test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4479$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4480if ${lt_cv_prog_gnu_ld+:} false; then : 4481 $as_echo_n "(cached) " >&6 4482else 4483 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4484case `$LD -v 2>&1 </dev/null` in 4485*GNU* | *'with BFD'*) 4486 lt_cv_prog_gnu_ld=yes 4487 ;; 4488*) 4489 lt_cv_prog_gnu_ld=no 4490 ;; 4491esac 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4494$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4495with_gnu_ld=$lt_cv_prog_gnu_ld 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4506$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4507if ${lt_cv_path_NM+:} false; then : 4508 $as_echo_n "(cached) " >&6 4509else 4510 if test -n "$NM"; then 4511 # Let the user override the test. 4512 lt_cv_path_NM="$NM" 4513else 4514 lt_nm_to_check="${ac_tool_prefix}nm" 4515 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4516 lt_nm_to_check="$lt_nm_to_check nm" 4517 fi 4518 for lt_tmp_nm in $lt_nm_to_check; do 4519 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4520 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4521 IFS="$lt_save_ifs" 4522 test -z "$ac_dir" && ac_dir=. 4523 tmp_nm="$ac_dir/$lt_tmp_nm" 4524 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4525 # Check to see if the nm accepts a BSD-compat flag. 4526 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4527 # nm: unknown option "B" ignored 4528 # Tru64's nm complains that /dev/null is an invalid object file 4529 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4530 */dev/null* | *'Invalid file or object type'*) 4531 lt_cv_path_NM="$tmp_nm -B" 4532 break 4533 ;; 4534 *) 4535 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4536 */dev/null*) 4537 lt_cv_path_NM="$tmp_nm -p" 4538 break 4539 ;; 4540 *) 4541 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4542 continue # so that we can try to find one that supports BSD flags 4543 ;; 4544 esac 4545 ;; 4546 esac 4547 fi 4548 done 4549 IFS="$lt_save_ifs" 4550 done 4551 : ${lt_cv_path_NM=no} 4552fi 4553fi 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4555$as_echo "$lt_cv_path_NM" >&6; } 4556if test "$lt_cv_path_NM" != "no"; then 4557 NM="$lt_cv_path_NM" 4558else 4559 # Didn't find any BSD compatible name lister, look for dumpbin. 4560 if test -n "$DUMPBIN"; then : 4561 # Let the user override the test. 4562 else 4563 if test -n "$ac_tool_prefix"; then 4564 for ac_prog in dumpbin "link -dump" 4565 do 4566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4567set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4569$as_echo_n "checking for $ac_word... " >&6; } 4570if ${ac_cv_prog_DUMPBIN+:} false; then : 4571 $as_echo_n "(cached) " >&6 4572else 4573 if test -n "$DUMPBIN"; then 4574 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4575else 4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4577for as_dir in $PATH 4578do 4579 IFS=$as_save_IFS 4580 test -z "$as_dir" && as_dir=. 4581 for ac_exec_ext in '' $ac_executable_extensions; do 4582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4583 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4585 break 2 4586 fi 4587done 4588 done 4589IFS=$as_save_IFS 4590 4591fi 4592fi 4593DUMPBIN=$ac_cv_prog_DUMPBIN 4594if test -n "$DUMPBIN"; then 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4596$as_echo "$DUMPBIN" >&6; } 4597else 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4599$as_echo "no" >&6; } 4600fi 4601 4602 4603 test -n "$DUMPBIN" && break 4604 done 4605fi 4606if test -z "$DUMPBIN"; then 4607 ac_ct_DUMPBIN=$DUMPBIN 4608 for ac_prog in dumpbin "link -dump" 4609do 4610 # Extract the first word of "$ac_prog", so it can be a program name with args. 4611set dummy $ac_prog; ac_word=$2 4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4613$as_echo_n "checking for $ac_word... " >&6; } 4614if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 if test -n "$ac_ct_DUMPBIN"; then 4618 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4619else 4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4621for as_dir in $PATH 4622do 4623 IFS=$as_save_IFS 4624 test -z "$as_dir" && as_dir=. 4625 for ac_exec_ext in '' $ac_executable_extensions; do 4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4627 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4629 break 2 4630 fi 4631done 4632 done 4633IFS=$as_save_IFS 4634 4635fi 4636fi 4637ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4638if test -n "$ac_ct_DUMPBIN"; then 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4640$as_echo "$ac_ct_DUMPBIN" >&6; } 4641else 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4643$as_echo "no" >&6; } 4644fi 4645 4646 4647 test -n "$ac_ct_DUMPBIN" && break 4648done 4649 4650 if test "x$ac_ct_DUMPBIN" = x; then 4651 DUMPBIN=":" 4652 else 4653 case $cross_compiling:$ac_tool_warned in 4654yes:) 4655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4657ac_tool_warned=yes ;; 4658esac 4659 DUMPBIN=$ac_ct_DUMPBIN 4660 fi 4661fi 4662 4663 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4664 *COFF*) 4665 DUMPBIN="$DUMPBIN -symbols" 4666 ;; 4667 *) 4668 DUMPBIN=: 4669 ;; 4670 esac 4671 fi 4672 4673 if test "$DUMPBIN" != ":"; then 4674 NM="$DUMPBIN" 4675 fi 4676fi 4677test -z "$NM" && NM=nm 4678 4679 4680 4681 4682 4683 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4685$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4686if ${lt_cv_nm_interface+:} false; then : 4687 $as_echo_n "(cached) " >&6 4688else 4689 lt_cv_nm_interface="BSD nm" 4690 echo "int some_variable = 0;" > conftest.$ac_ext 4691 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4692 (eval "$ac_compile" 2>conftest.err) 4693 cat conftest.err >&5 4694 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4695 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4696 cat conftest.err >&5 4697 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4698 cat conftest.out >&5 4699 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4700 lt_cv_nm_interface="MS dumpbin" 4701 fi 4702 rm -f conftest* 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4705$as_echo "$lt_cv_nm_interface" >&6; } 4706 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4708$as_echo_n "checking whether ln -s works... " >&6; } 4709LN_S=$as_ln_s 4710if test "$LN_S" = "ln -s"; then 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4712$as_echo "yes" >&6; } 4713else 4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4715$as_echo "no, using $LN_S" >&6; } 4716fi 4717 4718# find the maximum length of command line arguments 4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4720$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4721if ${lt_cv_sys_max_cmd_len+:} false; then : 4722 $as_echo_n "(cached) " >&6 4723else 4724 i=0 4725 teststring="ABCD" 4726 4727 case $build_os in 4728 msdosdjgpp*) 4729 # On DJGPP, this test can blow up pretty badly due to problems in libc 4730 # (any single argument exceeding 2000 bytes causes a buffer overrun 4731 # during glob expansion). Even if it were fixed, the result of this 4732 # check would be larger than it should be. 4733 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4734 ;; 4735 4736 gnu*) 4737 # Under GNU Hurd, this test is not required because there is 4738 # no limit to the length of command line arguments. 4739 # Libtool will interpret -1 as no limit whatsoever 4740 lt_cv_sys_max_cmd_len=-1; 4741 ;; 4742 4743 cygwin* | mingw* | cegcc*) 4744 # On Win9x/ME, this test blows up -- it succeeds, but takes 4745 # about 5 minutes as the teststring grows exponentially. 4746 # Worse, since 9x/ME are not pre-emptively multitasking, 4747 # you end up with a "frozen" computer, even though with patience 4748 # the test eventually succeeds (with a max line length of 256k). 4749 # Instead, let's just punt: use the minimum linelength reported by 4750 # all of the supported platforms: 8192 (on NT/2K/XP). 4751 lt_cv_sys_max_cmd_len=8192; 4752 ;; 4753 4754 mint*) 4755 # On MiNT this can take a long time and run out of memory. 4756 lt_cv_sys_max_cmd_len=8192; 4757 ;; 4758 4759 amigaos*) 4760 # On AmigaOS with pdksh, this test takes hours, literally. 4761 # So we just punt and use a minimum line length of 8192. 4762 lt_cv_sys_max_cmd_len=8192; 4763 ;; 4764 4765 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4766 # This has been around since 386BSD, at least. Likely further. 4767 if test -x /sbin/sysctl; then 4768 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4769 elif test -x /usr/sbin/sysctl; then 4770 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4771 else 4772 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4773 fi 4774 # And add a safety zone 4775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4777 ;; 4778 4779 interix*) 4780 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4781 lt_cv_sys_max_cmd_len=196608 4782 ;; 4783 4784 os2*) 4785 # The test takes a long time on OS/2. 4786 lt_cv_sys_max_cmd_len=8192 4787 ;; 4788 4789 osf*) 4790 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4791 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4792 # nice to cause kernel panics so lets avoid the loop below. 4793 # First set a reasonable default. 4794 lt_cv_sys_max_cmd_len=16384 4795 # 4796 if test -x /sbin/sysconfig; then 4797 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4798 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4799 esac 4800 fi 4801 ;; 4802 sco3.2v5*) 4803 lt_cv_sys_max_cmd_len=102400 4804 ;; 4805 sysv5* | sco5v6* | sysv4.2uw2*) 4806 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4807 if test -n "$kargmax"; then 4808 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4809 else 4810 lt_cv_sys_max_cmd_len=32768 4811 fi 4812 ;; 4813 *) 4814 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4815 if test -n "$lt_cv_sys_max_cmd_len"; then 4816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4818 else 4819 # Make teststring a little bigger before we do anything with it. 4820 # a 1K string should be a reasonable start. 4821 for i in 1 2 3 4 5 6 7 8 ; do 4822 teststring=$teststring$teststring 4823 done 4824 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4825 # If test is not a shell built-in, we'll probably end up computing a 4826 # maximum length that is only half of the actual maximum length, but 4827 # we can't tell. 4828 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4829 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4830 test $i != 17 # 1/2 MB should be enough 4831 do 4832 i=`expr $i + 1` 4833 teststring=$teststring$teststring 4834 done 4835 # Only check the string length outside the loop. 4836 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4837 teststring= 4838 # Add a significant safety factor because C++ compilers can tack on 4839 # massive amounts of additional arguments before passing them to the 4840 # linker. It appears as though 1/2 is a usable value. 4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4842 fi 4843 ;; 4844 esac 4845 4846fi 4847 4848if test -n $lt_cv_sys_max_cmd_len ; then 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4850$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4851else 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4853$as_echo "none" >&6; } 4854fi 4855max_cmd_len=$lt_cv_sys_max_cmd_len 4856 4857 4858 4859 4860 4861 4862: ${CP="cp -f"} 4863: ${MV="mv -f"} 4864: ${RM="rm -f"} 4865 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4867$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4868# Try some XSI features 4869xsi_shell=no 4870( _lt_dummy="a/b/c" 4871 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4872 = c,a/b,b/c, \ 4873 && eval 'test $(( 1 + 1 )) -eq 2 \ 4874 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4875 && xsi_shell=yes 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4877$as_echo "$xsi_shell" >&6; } 4878 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4881$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4882lt_shell_append=no 4883( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4884 >/dev/null 2>&1 \ 4885 && lt_shell_append=yes 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4887$as_echo "$lt_shell_append" >&6; } 4888 4889 4890if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4891 lt_unset=unset 4892else 4893 lt_unset=false 4894fi 4895 4896 4897 4898 4899 4900# test EBCDIC or ASCII 4901case `echo X|tr X '\101'` in 4902 A) # ASCII based system 4903 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4904 lt_SP2NL='tr \040 \012' 4905 lt_NL2SP='tr \015\012 \040\040' 4906 ;; 4907 *) # EBCDIC based system 4908 lt_SP2NL='tr \100 \n' 4909 lt_NL2SP='tr \r\n \100\100' 4910 ;; 4911esac 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4922$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4923if ${lt_cv_to_host_file_cmd+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 case $host in 4927 *-*-mingw* ) 4928 case $build in 4929 *-*-mingw* ) # actually msys 4930 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4931 ;; 4932 *-*-cygwin* ) 4933 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4934 ;; 4935 * ) # otherwise, assume *nix 4936 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4937 ;; 4938 esac 4939 ;; 4940 *-*-cygwin* ) 4941 case $build in 4942 *-*-mingw* ) # actually msys 4943 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4944 ;; 4945 *-*-cygwin* ) 4946 lt_cv_to_host_file_cmd=func_convert_file_noop 4947 ;; 4948 * ) # otherwise, assume *nix 4949 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4950 ;; 4951 esac 4952 ;; 4953 * ) # unhandled hosts (and "normal" native builds) 4954 lt_cv_to_host_file_cmd=func_convert_file_noop 4955 ;; 4956esac 4957 4958fi 4959 4960to_host_file_cmd=$lt_cv_to_host_file_cmd 4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4962$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4963 4964 4965 4966 4967 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4969$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4970if ${lt_cv_to_tool_file_cmd+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 #assume ordinary cross tools, or native build. 4974lt_cv_to_tool_file_cmd=func_convert_file_noop 4975case $host in 4976 *-*-mingw* ) 4977 case $build in 4978 *-*-mingw* ) # actually msys 4979 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4980 ;; 4981 esac 4982 ;; 4983esac 4984 4985fi 4986 4987to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4989$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4990 4991 4992 4993 4994 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4996$as_echo_n "checking for $LD option to reload object files... " >&6; } 4997if ${lt_cv_ld_reload_flag+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 lt_cv_ld_reload_flag='-r' 5001fi 5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5003$as_echo "$lt_cv_ld_reload_flag" >&6; } 5004reload_flag=$lt_cv_ld_reload_flag 5005case $reload_flag in 5006"" | " "*) ;; 5007*) reload_flag=" $reload_flag" ;; 5008esac 5009reload_cmds='$LD$reload_flag -o $output$reload_objs' 5010case $host_os in 5011 cygwin* | mingw* | pw32* | cegcc*) 5012 if test "$GCC" != yes; then 5013 reload_cmds=false 5014 fi 5015 ;; 5016 darwin*) 5017 if test "$GCC" = yes; then 5018 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5019 else 5020 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5021 fi 5022 ;; 5023esac 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033if test -n "$ac_tool_prefix"; then 5034 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5035set dummy ${ac_tool_prefix}objdump; ac_word=$2 5036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5037$as_echo_n "checking for $ac_word... " >&6; } 5038if ${ac_cv_prog_OBJDUMP+:} false; then : 5039 $as_echo_n "(cached) " >&6 5040else 5041 if test -n "$OBJDUMP"; then 5042 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5043else 5044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5045for as_dir in $PATH 5046do 5047 IFS=$as_save_IFS 5048 test -z "$as_dir" && as_dir=. 5049 for ac_exec_ext in '' $ac_executable_extensions; do 5050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5051 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5053 break 2 5054 fi 5055done 5056 done 5057IFS=$as_save_IFS 5058 5059fi 5060fi 5061OBJDUMP=$ac_cv_prog_OBJDUMP 5062if test -n "$OBJDUMP"; then 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5064$as_echo "$OBJDUMP" >&6; } 5065else 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5067$as_echo "no" >&6; } 5068fi 5069 5070 5071fi 5072if test -z "$ac_cv_prog_OBJDUMP"; then 5073 ac_ct_OBJDUMP=$OBJDUMP 5074 # Extract the first word of "objdump", so it can be a program name with args. 5075set dummy objdump; ac_word=$2 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5077$as_echo_n "checking for $ac_word... " >&6; } 5078if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5079 $as_echo_n "(cached) " >&6 5080else 5081 if test -n "$ac_ct_OBJDUMP"; then 5082 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5083else 5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5085for as_dir in $PATH 5086do 5087 IFS=$as_save_IFS 5088 test -z "$as_dir" && as_dir=. 5089 for ac_exec_ext in '' $ac_executable_extensions; do 5090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5091 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5093 break 2 5094 fi 5095done 5096 done 5097IFS=$as_save_IFS 5098 5099fi 5100fi 5101ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5102if test -n "$ac_ct_OBJDUMP"; then 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5104$as_echo "$ac_ct_OBJDUMP" >&6; } 5105else 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5107$as_echo "no" >&6; } 5108fi 5109 5110 if test "x$ac_ct_OBJDUMP" = x; then 5111 OBJDUMP="false" 5112 else 5113 case $cross_compiling:$ac_tool_warned in 5114yes:) 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5117ac_tool_warned=yes ;; 5118esac 5119 OBJDUMP=$ac_ct_OBJDUMP 5120 fi 5121else 5122 OBJDUMP="$ac_cv_prog_OBJDUMP" 5123fi 5124 5125test -z "$OBJDUMP" && OBJDUMP=objdump 5126 5127 5128 5129 5130 5131 5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5133$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5134if ${lt_cv_deplibs_check_method+:} false; then : 5135 $as_echo_n "(cached) " >&6 5136else 5137 lt_cv_file_magic_cmd='$MAGIC_CMD' 5138lt_cv_file_magic_test_file= 5139lt_cv_deplibs_check_method='unknown' 5140# Need to set the preceding variable on all platforms that support 5141# interlibrary dependencies. 5142# 'none' -- dependencies not supported. 5143# `unknown' -- same as none, but documents that we really don't know. 5144# 'pass_all' -- all dependencies passed with no checks. 5145# 'test_compile' -- check by making test program. 5146# 'file_magic [[regex]]' -- check by looking for files in library path 5147# which responds to the $file_magic_cmd with a given extended regex. 5148# If you have `file' or equivalent on your system and you're not sure 5149# whether `pass_all' will *always* work, you probably want this one. 5150 5151case $host_os in 5152aix[4-9]*) 5153 lt_cv_deplibs_check_method=pass_all 5154 ;; 5155 5156beos*) 5157 lt_cv_deplibs_check_method=pass_all 5158 ;; 5159 5160bsdi[45]*) 5161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5162 lt_cv_file_magic_cmd='/usr/bin/file -L' 5163 lt_cv_file_magic_test_file=/shlib/libc.so 5164 ;; 5165 5166cygwin*) 5167 # func_win32_libid is a shell function defined in ltmain.sh 5168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5169 lt_cv_file_magic_cmd='func_win32_libid' 5170 ;; 5171 5172mingw* | pw32*) 5173 # Base MSYS/MinGW do not provide the 'file' command needed by 5174 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5175 # unless we find 'file', for example because we are cross-compiling. 5176 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5177 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5179 lt_cv_file_magic_cmd='func_win32_libid' 5180 else 5181 # Keep this pattern in sync with the one in func_win32_libid. 5182 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5183 lt_cv_file_magic_cmd='$OBJDUMP -f' 5184 fi 5185 ;; 5186 5187cegcc*) 5188 # use the weaker test based on 'objdump'. See mingw*. 5189 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5190 lt_cv_file_magic_cmd='$OBJDUMP -f' 5191 ;; 5192 5193darwin* | rhapsody*) 5194 lt_cv_deplibs_check_method=pass_all 5195 ;; 5196 5197freebsd* | dragonfly*) 5198 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5199 case $host_cpu in 5200 i*86 ) 5201 # Not sure whether the presence of OpenBSD here was a mistake. 5202 # Let's accept both of them until this is cleared up. 5203 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5204 lt_cv_file_magic_cmd=/usr/bin/file 5205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5206 ;; 5207 esac 5208 else 5209 lt_cv_deplibs_check_method=pass_all 5210 fi 5211 ;; 5212 5213gnu*) 5214 lt_cv_deplibs_check_method=pass_all 5215 ;; 5216 5217haiku*) 5218 lt_cv_deplibs_check_method=pass_all 5219 ;; 5220 5221hpux10.20* | hpux11*) 5222 lt_cv_file_magic_cmd=/usr/bin/file 5223 case $host_cpu in 5224 ia64*) 5225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5226 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5227 ;; 5228 hppa*64*) 5229 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]' 5230 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5231 ;; 5232 *) 5233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5234 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5235 ;; 5236 esac 5237 ;; 5238 5239interix[3-9]*) 5240 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5242 ;; 5243 5244irix5* | irix6* | nonstopux*) 5245 case $LD in 5246 *-32|*"-32 ") libmagic=32-bit;; 5247 *-n32|*"-n32 ") libmagic=N32;; 5248 *-64|*"-64 ") libmagic=64-bit;; 5249 *) libmagic=never-match;; 5250 esac 5251 lt_cv_deplibs_check_method=pass_all 5252 ;; 5253 5254# This must be glibc/ELF. 5255linux* | k*bsd*-gnu | kopensolaris*-gnu) 5256 lt_cv_deplibs_check_method=pass_all 5257 ;; 5258 5259netbsd*) 5260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5262 else 5263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5264 fi 5265 ;; 5266 5267newos6*) 5268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5269 lt_cv_file_magic_cmd=/usr/bin/file 5270 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5271 ;; 5272 5273*nto* | *qnx*) 5274 lt_cv_deplibs_check_method=pass_all 5275 ;; 5276 5277openbsd*) 5278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5280 else 5281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5282 fi 5283 ;; 5284 5285osf3* | osf4* | osf5*) 5286 lt_cv_deplibs_check_method=pass_all 5287 ;; 5288 5289rdos*) 5290 lt_cv_deplibs_check_method=pass_all 5291 ;; 5292 5293solaris*) 5294 lt_cv_deplibs_check_method=pass_all 5295 ;; 5296 5297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5298 lt_cv_deplibs_check_method=pass_all 5299 ;; 5300 5301sysv4 | sysv4.3*) 5302 case $host_vendor in 5303 motorola) 5304 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]' 5305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5306 ;; 5307 ncr) 5308 lt_cv_deplibs_check_method=pass_all 5309 ;; 5310 sequent) 5311 lt_cv_file_magic_cmd='/bin/file' 5312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5313 ;; 5314 sni) 5315 lt_cv_file_magic_cmd='/bin/file' 5316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5317 lt_cv_file_magic_test_file=/lib/libc.so 5318 ;; 5319 siemens) 5320 lt_cv_deplibs_check_method=pass_all 5321 ;; 5322 pc) 5323 lt_cv_deplibs_check_method=pass_all 5324 ;; 5325 esac 5326 ;; 5327 5328tpf*) 5329 lt_cv_deplibs_check_method=pass_all 5330 ;; 5331esac 5332 5333fi 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5335$as_echo "$lt_cv_deplibs_check_method" >&6; } 5336 5337file_magic_glob= 5338want_nocaseglob=no 5339if test "$build" = "$host"; then 5340 case $host_os in 5341 mingw* | pw32*) 5342 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5343 want_nocaseglob=yes 5344 else 5345 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5346 fi 5347 ;; 5348 esac 5349fi 5350 5351file_magic_cmd=$lt_cv_file_magic_cmd 5352deplibs_check_method=$lt_cv_deplibs_check_method 5353test -z "$deplibs_check_method" && deplibs_check_method=unknown 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376if test -n "$ac_tool_prefix"; then 5377 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5378set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5380$as_echo_n "checking for $ac_word... " >&6; } 5381if ${ac_cv_prog_DLLTOOL+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 if test -n "$DLLTOOL"; then 5385 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5386else 5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5388for as_dir in $PATH 5389do 5390 IFS=$as_save_IFS 5391 test -z "$as_dir" && as_dir=. 5392 for ac_exec_ext in '' $ac_executable_extensions; do 5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5394 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5396 break 2 5397 fi 5398done 5399 done 5400IFS=$as_save_IFS 5401 5402fi 5403fi 5404DLLTOOL=$ac_cv_prog_DLLTOOL 5405if test -n "$DLLTOOL"; then 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5407$as_echo "$DLLTOOL" >&6; } 5408else 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5410$as_echo "no" >&6; } 5411fi 5412 5413 5414fi 5415if test -z "$ac_cv_prog_DLLTOOL"; then 5416 ac_ct_DLLTOOL=$DLLTOOL 5417 # Extract the first word of "dlltool", so it can be a program name with args. 5418set dummy dlltool; ac_word=$2 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5420$as_echo_n "checking for $ac_word... " >&6; } 5421if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5422 $as_echo_n "(cached) " >&6 5423else 5424 if test -n "$ac_ct_DLLTOOL"; then 5425 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5426else 5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5428for as_dir in $PATH 5429do 5430 IFS=$as_save_IFS 5431 test -z "$as_dir" && as_dir=. 5432 for ac_exec_ext in '' $ac_executable_extensions; do 5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5434 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5436 break 2 5437 fi 5438done 5439 done 5440IFS=$as_save_IFS 5441 5442fi 5443fi 5444ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5445if test -n "$ac_ct_DLLTOOL"; then 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5447$as_echo "$ac_ct_DLLTOOL" >&6; } 5448else 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5450$as_echo "no" >&6; } 5451fi 5452 5453 if test "x$ac_ct_DLLTOOL" = x; then 5454 DLLTOOL="false" 5455 else 5456 case $cross_compiling:$ac_tool_warned in 5457yes:) 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5460ac_tool_warned=yes ;; 5461esac 5462 DLLTOOL=$ac_ct_DLLTOOL 5463 fi 5464else 5465 DLLTOOL="$ac_cv_prog_DLLTOOL" 5466fi 5467 5468test -z "$DLLTOOL" && DLLTOOL=dlltool 5469 5470 5471 5472 5473 5474 5475 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5477$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5478if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 lt_cv_sharedlib_from_linklib_cmd='unknown' 5482 5483case $host_os in 5484cygwin* | mingw* | pw32* | cegcc*) 5485 # two different shell functions defined in ltmain.sh 5486 # decide which to use based on capabilities of $DLLTOOL 5487 case `$DLLTOOL --help 2>&1` in 5488 *--identify-strict*) 5489 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5490 ;; 5491 *) 5492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5493 ;; 5494 esac 5495 ;; 5496*) 5497 # fallback: assume linklib IS sharedlib 5498 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5499 ;; 5500esac 5501 5502fi 5503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5504$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5505sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5506test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5507 5508 5509 5510 5511 5512 5513 5514 5515if test -n "$ac_tool_prefix"; then 5516 for ac_prog in ar 5517 do 5518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5519set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5521$as_echo_n "checking for $ac_word... " >&6; } 5522if ${ac_cv_prog_AR+:} false; then : 5523 $as_echo_n "(cached) " >&6 5524else 5525 if test -n "$AR"; then 5526 ac_cv_prog_AR="$AR" # Let the user override the test. 5527else 5528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5529for as_dir in $PATH 5530do 5531 IFS=$as_save_IFS 5532 test -z "$as_dir" && as_dir=. 5533 for ac_exec_ext in '' $ac_executable_extensions; do 5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5535 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5537 break 2 5538 fi 5539done 5540 done 5541IFS=$as_save_IFS 5542 5543fi 5544fi 5545AR=$ac_cv_prog_AR 5546if test -n "$AR"; then 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5548$as_echo "$AR" >&6; } 5549else 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5551$as_echo "no" >&6; } 5552fi 5553 5554 5555 test -n "$AR" && break 5556 done 5557fi 5558if test -z "$AR"; then 5559 ac_ct_AR=$AR 5560 for ac_prog in ar 5561do 5562 # Extract the first word of "$ac_prog", so it can be a program name with args. 5563set dummy $ac_prog; ac_word=$2 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5565$as_echo_n "checking for $ac_word... " >&6; } 5566if ${ac_cv_prog_ac_ct_AR+:} false; then : 5567 $as_echo_n "(cached) " >&6 5568else 5569 if test -n "$ac_ct_AR"; then 5570 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5571else 5572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5573for as_dir in $PATH 5574do 5575 IFS=$as_save_IFS 5576 test -z "$as_dir" && as_dir=. 5577 for ac_exec_ext in '' $ac_executable_extensions; do 5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5579 ac_cv_prog_ac_ct_AR="$ac_prog" 5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5581 break 2 5582 fi 5583done 5584 done 5585IFS=$as_save_IFS 5586 5587fi 5588fi 5589ac_ct_AR=$ac_cv_prog_ac_ct_AR 5590if test -n "$ac_ct_AR"; then 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5592$as_echo "$ac_ct_AR" >&6; } 5593else 5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5595$as_echo "no" >&6; } 5596fi 5597 5598 5599 test -n "$ac_ct_AR" && break 5600done 5601 5602 if test "x$ac_ct_AR" = x; then 5603 AR="false" 5604 else 5605 case $cross_compiling:$ac_tool_warned in 5606yes:) 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5609ac_tool_warned=yes ;; 5610esac 5611 AR=$ac_ct_AR 5612 fi 5613fi 5614 5615: ${AR=ar} 5616: ${AR_FLAGS=cru} 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5629$as_echo_n "checking for archiver @FILE support... " >&6; } 5630if ${lt_cv_ar_at_file+:} false; then : 5631 $as_echo_n "(cached) " >&6 5632else 5633 lt_cv_ar_at_file=no 5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635/* end confdefs.h. */ 5636 5637int 5638main () 5639{ 5640 5641 ; 5642 return 0; 5643} 5644_ACEOF 5645if ac_fn_c_try_compile "$LINENO"; then : 5646 echo conftest.$ac_objext > conftest.lst 5647 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5649 (eval $lt_ar_try) 2>&5 5650 ac_status=$? 5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5652 test $ac_status = 0; } 5653 if test "$ac_status" -eq 0; then 5654 # Ensure the archiver fails upon bogus file names. 5655 rm -f conftest.$ac_objext libconftest.a 5656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5657 (eval $lt_ar_try) 2>&5 5658 ac_status=$? 5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5660 test $ac_status = 0; } 5661 if test "$ac_status" -ne 0; then 5662 lt_cv_ar_at_file=@ 5663 fi 5664 fi 5665 rm -f conftest.* libconftest.a 5666 5667fi 5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5669 5670fi 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5672$as_echo "$lt_cv_ar_at_file" >&6; } 5673 5674if test "x$lt_cv_ar_at_file" = xno; then 5675 archiver_list_spec= 5676else 5677 archiver_list_spec=$lt_cv_ar_at_file 5678fi 5679 5680 5681 5682 5683 5684 5685 5686if test -n "$ac_tool_prefix"; then 5687 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5688set dummy ${ac_tool_prefix}strip; ac_word=$2 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5690$as_echo_n "checking for $ac_word... " >&6; } 5691if ${ac_cv_prog_STRIP+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 if test -n "$STRIP"; then 5695 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5696else 5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5698for as_dir in $PATH 5699do 5700 IFS=$as_save_IFS 5701 test -z "$as_dir" && as_dir=. 5702 for ac_exec_ext in '' $ac_executable_extensions; do 5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5704 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5706 break 2 5707 fi 5708done 5709 done 5710IFS=$as_save_IFS 5711 5712fi 5713fi 5714STRIP=$ac_cv_prog_STRIP 5715if test -n "$STRIP"; then 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5717$as_echo "$STRIP" >&6; } 5718else 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5720$as_echo "no" >&6; } 5721fi 5722 5723 5724fi 5725if test -z "$ac_cv_prog_STRIP"; then 5726 ac_ct_STRIP=$STRIP 5727 # Extract the first word of "strip", so it can be a program name with args. 5728set dummy strip; ac_word=$2 5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5730$as_echo_n "checking for $ac_word... " >&6; } 5731if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5732 $as_echo_n "(cached) " >&6 5733else 5734 if test -n "$ac_ct_STRIP"; then 5735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5736else 5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5738for as_dir in $PATH 5739do 5740 IFS=$as_save_IFS 5741 test -z "$as_dir" && as_dir=. 5742 for ac_exec_ext in '' $ac_executable_extensions; do 5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5744 ac_cv_prog_ac_ct_STRIP="strip" 5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5746 break 2 5747 fi 5748done 5749 done 5750IFS=$as_save_IFS 5751 5752fi 5753fi 5754ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5755if test -n "$ac_ct_STRIP"; then 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5757$as_echo "$ac_ct_STRIP" >&6; } 5758else 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5760$as_echo "no" >&6; } 5761fi 5762 5763 if test "x$ac_ct_STRIP" = x; then 5764 STRIP=":" 5765 else 5766 case $cross_compiling:$ac_tool_warned in 5767yes:) 5768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5770ac_tool_warned=yes ;; 5771esac 5772 STRIP=$ac_ct_STRIP 5773 fi 5774else 5775 STRIP="$ac_cv_prog_STRIP" 5776fi 5777 5778test -z "$STRIP" && STRIP=: 5779 5780 5781 5782 5783 5784 5785if test -n "$ac_tool_prefix"; then 5786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5787set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5789$as_echo_n "checking for $ac_word... " >&6; } 5790if ${ac_cv_prog_RANLIB+:} false; then : 5791 $as_echo_n "(cached) " >&6 5792else 5793 if test -n "$RANLIB"; then 5794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5795else 5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5797for as_dir in $PATH 5798do 5799 IFS=$as_save_IFS 5800 test -z "$as_dir" && as_dir=. 5801 for ac_exec_ext in '' $ac_executable_extensions; do 5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5805 break 2 5806 fi 5807done 5808 done 5809IFS=$as_save_IFS 5810 5811fi 5812fi 5813RANLIB=$ac_cv_prog_RANLIB 5814if test -n "$RANLIB"; then 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5816$as_echo "$RANLIB" >&6; } 5817else 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5819$as_echo "no" >&6; } 5820fi 5821 5822 5823fi 5824if test -z "$ac_cv_prog_RANLIB"; then 5825 ac_ct_RANLIB=$RANLIB 5826 # Extract the first word of "ranlib", so it can be a program name with args. 5827set dummy ranlib; ac_word=$2 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5829$as_echo_n "checking for $ac_word... " >&6; } 5830if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 if test -n "$ac_ct_RANLIB"; then 5834 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5835else 5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5837for as_dir in $PATH 5838do 5839 IFS=$as_save_IFS 5840 test -z "$as_dir" && as_dir=. 5841 for ac_exec_ext in '' $ac_executable_extensions; do 5842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5843 ac_cv_prog_ac_ct_RANLIB="ranlib" 5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5845 break 2 5846 fi 5847done 5848 done 5849IFS=$as_save_IFS 5850 5851fi 5852fi 5853ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5854if test -n "$ac_ct_RANLIB"; then 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5856$as_echo "$ac_ct_RANLIB" >&6; } 5857else 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5859$as_echo "no" >&6; } 5860fi 5861 5862 if test "x$ac_ct_RANLIB" = x; then 5863 RANLIB=":" 5864 else 5865 case $cross_compiling:$ac_tool_warned in 5866yes:) 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5869ac_tool_warned=yes ;; 5870esac 5871 RANLIB=$ac_ct_RANLIB 5872 fi 5873else 5874 RANLIB="$ac_cv_prog_RANLIB" 5875fi 5876 5877test -z "$RANLIB" && RANLIB=: 5878 5879 5880 5881 5882 5883 5884# Determine commands to create old-style static archives. 5885old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5886old_postinstall_cmds='chmod 644 $oldlib' 5887old_postuninstall_cmds= 5888 5889if test -n "$RANLIB"; then 5890 case $host_os in 5891 openbsd*) 5892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5893 ;; 5894 *) 5895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5896 ;; 5897 esac 5898 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5899fi 5900 5901case $host_os in 5902 darwin*) 5903 lock_old_archive_extraction=yes ;; 5904 *) 5905 lock_old_archive_extraction=no ;; 5906esac 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946# If no C compiler was specified, use CC. 5947LTCC=${LTCC-"$CC"} 5948 5949# If no C compiler flags were specified, use CFLAGS. 5950LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5951 5952# Allow CC to be a program name with arguments. 5953compiler=$CC 5954 5955 5956# Check for command to grab the raw symbol name followed by C symbol from nm. 5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5958$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5959if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961else 5962 5963# These are sane defaults that work on at least a few old systems. 5964# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5965 5966# Character class describing NM global symbol codes. 5967symcode='[BCDEGRST]' 5968 5969# Regexp to match symbols that can be accessed directly from C. 5970sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5971 5972# Define system-specific variables. 5973case $host_os in 5974aix*) 5975 symcode='[BCDT]' 5976 ;; 5977cygwin* | mingw* | pw32* | cegcc*) 5978 symcode='[ABCDGISTW]' 5979 ;; 5980hpux*) 5981 if test "$host_cpu" = ia64; then 5982 symcode='[ABCDEGRST]' 5983 fi 5984 ;; 5985irix* | nonstopux*) 5986 symcode='[BCDEGRST]' 5987 ;; 5988osf*) 5989 symcode='[BCDEGQRST]' 5990 ;; 5991solaris*) 5992 symcode='[BDRT]' 5993 ;; 5994sco3.2v5*) 5995 symcode='[DT]' 5996 ;; 5997sysv4.2uw2*) 5998 symcode='[DT]' 5999 ;; 6000sysv5* | sco5v6* | unixware* | OpenUNIX*) 6001 symcode='[ABDT]' 6002 ;; 6003sysv4) 6004 symcode='[DFNSTU]' 6005 ;; 6006esac 6007 6008# If we're using GNU nm, then use its standard symbol codes. 6009case `$NM -V 2>&1` in 6010*GNU* | *'with BFD'*) 6011 symcode='[ABCDGIRSTW]' ;; 6012esac 6013 6014# Transform an extracted symbol line into a proper C declaration. 6015# Some systems (esp. on ia64) link data and code symbols differently, 6016# so use this general approach. 6017lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6018 6019# Transform an extracted symbol line into symbol name and symbol address 6020lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6021lt_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'" 6022 6023# Handle CRLF in mingw tool chain 6024opt_cr= 6025case $build_os in 6026mingw*) 6027 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6028 ;; 6029esac 6030 6031# Try without a prefix underscore, then with it. 6032for ac_symprfx in "" "_"; do 6033 6034 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6035 symxfrm="\\1 $ac_symprfx\\2 \\2" 6036 6037 # Write the raw and C identifiers. 6038 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6039 # Fake it for dumpbin and say T for any non-static function 6040 # and D for any global variable. 6041 # Also find C++ and __fastcall symbols from MSVC++, 6042 # which start with @ or ?. 6043 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6044" {last_section=section; section=\$ 3};"\ 6045" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6046" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6047" \$ 0!~/External *\|/{next};"\ 6048" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6049" {if(hide[section]) next};"\ 6050" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6051" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6052" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6053" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6054" ' prfx=^$ac_symprfx" 6055 else 6056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6057 fi 6058 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6059 6060 # Check to see that the pipe works correctly. 6061 pipe_works=no 6062 6063 rm -f conftest* 6064 cat > conftest.$ac_ext <<_LT_EOF 6065#ifdef __cplusplus 6066extern "C" { 6067#endif 6068char nm_test_var; 6069void nm_test_func(void); 6070void nm_test_func(void){} 6071#ifdef __cplusplus 6072} 6073#endif 6074int main(){nm_test_var='a';nm_test_func();return(0);} 6075_LT_EOF 6076 6077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6078 (eval $ac_compile) 2>&5 6079 ac_status=$? 6080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6081 test $ac_status = 0; }; then 6082 # Now try to grab the symbols. 6083 nlist=conftest.nm 6084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6085 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6086 ac_status=$? 6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6088 test $ac_status = 0; } && test -s "$nlist"; then 6089 # Try sorting and uniquifying the output. 6090 if sort "$nlist" | uniq > "$nlist"T; then 6091 mv -f "$nlist"T "$nlist" 6092 else 6093 rm -f "$nlist"T 6094 fi 6095 6096 # Make sure that we snagged all the symbols we need. 6097 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6098 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6099 cat <<_LT_EOF > conftest.$ac_ext 6100/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6101#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6102/* DATA imports from DLLs on WIN32 con't be const, because runtime 6103 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6104# define LT_DLSYM_CONST 6105#elif defined(__osf__) 6106/* This system does not cope well with relocations in const data. */ 6107# define LT_DLSYM_CONST 6108#else 6109# define LT_DLSYM_CONST const 6110#endif 6111 6112#ifdef __cplusplus 6113extern "C" { 6114#endif 6115 6116_LT_EOF 6117 # Now generate the symbol file. 6118 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6119 6120 cat <<_LT_EOF >> conftest.$ac_ext 6121 6122/* The mapping between symbol names and symbols. */ 6123LT_DLSYM_CONST struct { 6124 const char *name; 6125 void *address; 6126} 6127lt__PROGRAM__LTX_preloaded_symbols[] = 6128{ 6129 { "@PROGRAM@", (void *) 0 }, 6130_LT_EOF 6131 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6132 cat <<\_LT_EOF >> conftest.$ac_ext 6133 {0, (void *) 0} 6134}; 6135 6136/* This works around a problem in FreeBSD linker */ 6137#ifdef FREEBSD_WORKAROUND 6138static const void *lt_preloaded_setup() { 6139 return lt__PROGRAM__LTX_preloaded_symbols; 6140} 6141#endif 6142 6143#ifdef __cplusplus 6144} 6145#endif 6146_LT_EOF 6147 # Now try linking the two files. 6148 mv conftest.$ac_objext conftstm.$ac_objext 6149 lt_globsym_save_LIBS=$LIBS 6150 lt_globsym_save_CFLAGS=$CFLAGS 6151 LIBS="conftstm.$ac_objext" 6152 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6154 (eval $ac_link) 2>&5 6155 ac_status=$? 6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6157 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6158 pipe_works=yes 6159 fi 6160 LIBS=$lt_globsym_save_LIBS 6161 CFLAGS=$lt_globsym_save_CFLAGS 6162 else 6163 echo "cannot find nm_test_func in $nlist" >&5 6164 fi 6165 else 6166 echo "cannot find nm_test_var in $nlist" >&5 6167 fi 6168 else 6169 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6170 fi 6171 else 6172 echo "$progname: failed program was:" >&5 6173 cat conftest.$ac_ext >&5 6174 fi 6175 rm -rf conftest* conftst* 6176 6177 # Do not use the global_symbol_pipe unless it works. 6178 if test "$pipe_works" = yes; then 6179 break 6180 else 6181 lt_cv_sys_global_symbol_pipe= 6182 fi 6183done 6184 6185fi 6186 6187if test -z "$lt_cv_sys_global_symbol_pipe"; then 6188 lt_cv_sys_global_symbol_to_cdecl= 6189fi 6190if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6192$as_echo "failed" >&6; } 6193else 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6195$as_echo "ok" >&6; } 6196fi 6197 6198# Response file support. 6199if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6200 nm_file_list_spec='@' 6201elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6202 nm_file_list_spec='@' 6203fi 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6232$as_echo_n "checking for sysroot... " >&6; } 6233 6234# Check whether --with-sysroot was given. 6235if test "${with_sysroot+set}" = set; then : 6236 withval=$with_sysroot; 6237else 6238 with_sysroot=no 6239fi 6240 6241 6242lt_sysroot= 6243case ${with_sysroot} in #( 6244 yes) 6245 if test "$GCC" = yes; then 6246 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6247 fi 6248 ;; #( 6249 /*) 6250 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6251 ;; #( 6252 no|'') 6253 ;; #( 6254 *) 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6256$as_echo "${with_sysroot}" >&6; } 6257 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6258 ;; 6259esac 6260 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6262$as_echo "${lt_sysroot:-no}" >&6; } 6263 6264 6265 6266 6267 6268# Check whether --enable-libtool-lock was given. 6269if test "${enable_libtool_lock+set}" = set; then : 6270 enableval=$enable_libtool_lock; 6271fi 6272 6273test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6274 6275# Some flags need to be propagated to the compiler or linker for good 6276# libtool support. 6277case $host in 6278ia64-*-hpux*) 6279 # Find out which ABI we are using. 6280 echo 'int i;' > conftest.$ac_ext 6281 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6282 (eval $ac_compile) 2>&5 6283 ac_status=$? 6284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6285 test $ac_status = 0; }; then 6286 case `/usr/bin/file conftest.$ac_objext` in 6287 *ELF-32*) 6288 HPUX_IA64_MODE="32" 6289 ;; 6290 *ELF-64*) 6291 HPUX_IA64_MODE="64" 6292 ;; 6293 esac 6294 fi 6295 rm -rf conftest* 6296 ;; 6297*-*-irix6*) 6298 # Find out which ABI we are using. 6299 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6301 (eval $ac_compile) 2>&5 6302 ac_status=$? 6303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6304 test $ac_status = 0; }; then 6305 if test "$lt_cv_prog_gnu_ld" = yes; then 6306 case `/usr/bin/file conftest.$ac_objext` in 6307 *32-bit*) 6308 LD="${LD-ld} -melf32bsmip" 6309 ;; 6310 *N32*) 6311 LD="${LD-ld} -melf32bmipn32" 6312 ;; 6313 *64-bit*) 6314 LD="${LD-ld} -melf64bmip" 6315 ;; 6316 esac 6317 else 6318 case `/usr/bin/file conftest.$ac_objext` in 6319 *32-bit*) 6320 LD="${LD-ld} -32" 6321 ;; 6322 *N32*) 6323 LD="${LD-ld} -n32" 6324 ;; 6325 *64-bit*) 6326 LD="${LD-ld} -64" 6327 ;; 6328 esac 6329 fi 6330 fi 6331 rm -rf conftest* 6332 ;; 6333 6334x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6335s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6336 # Find out which ABI we are using. 6337 echo 'int i;' > conftest.$ac_ext 6338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6339 (eval $ac_compile) 2>&5 6340 ac_status=$? 6341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6342 test $ac_status = 0; }; then 6343 case `/usr/bin/file conftest.o` in 6344 *32-bit*) 6345 case $host in 6346 x86_64-*kfreebsd*-gnu) 6347 LD="${LD-ld} -m elf_i386_fbsd" 6348 ;; 6349 x86_64-*linux*) 6350 LD="${LD-ld} -m elf_i386" 6351 ;; 6352 ppc64-*linux*|powerpc64-*linux*) 6353 LD="${LD-ld} -m elf32ppclinux" 6354 ;; 6355 s390x-*linux*) 6356 LD="${LD-ld} -m elf_s390" 6357 ;; 6358 sparc64-*linux*) 6359 LD="${LD-ld} -m elf32_sparc" 6360 ;; 6361 esac 6362 ;; 6363 *64-bit*) 6364 case $host in 6365 x86_64-*kfreebsd*-gnu) 6366 LD="${LD-ld} -m elf_x86_64_fbsd" 6367 ;; 6368 x86_64-*linux*) 6369 LD="${LD-ld} -m elf_x86_64" 6370 ;; 6371 ppc*-*linux*|powerpc*-*linux*) 6372 LD="${LD-ld} -m elf64ppc" 6373 ;; 6374 s390*-*linux*|s390*-*tpf*) 6375 LD="${LD-ld} -m elf64_s390" 6376 ;; 6377 sparc*-*linux*) 6378 LD="${LD-ld} -m elf64_sparc" 6379 ;; 6380 esac 6381 ;; 6382 esac 6383 fi 6384 rm -rf conftest* 6385 ;; 6386 6387*-*-sco3.2v5*) 6388 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6389 SAVE_CFLAGS="$CFLAGS" 6390 CFLAGS="$CFLAGS -belf" 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6392$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6393if ${lt_cv_cc_needs_belf+:} false; then : 6394 $as_echo_n "(cached) " >&6 6395else 6396 ac_ext=c 6397ac_cpp='$CPP $CPPFLAGS' 6398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6400ac_compiler_gnu=$ac_cv_c_compiler_gnu 6401 6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404 6405int 6406main () 6407{ 6408 6409 ; 6410 return 0; 6411} 6412_ACEOF 6413if ac_fn_c_try_link "$LINENO"; then : 6414 lt_cv_cc_needs_belf=yes 6415else 6416 lt_cv_cc_needs_belf=no 6417fi 6418rm -f core conftest.err conftest.$ac_objext \ 6419 conftest$ac_exeext conftest.$ac_ext 6420 ac_ext=c 6421ac_cpp='$CPP $CPPFLAGS' 6422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6424ac_compiler_gnu=$ac_cv_c_compiler_gnu 6425 6426fi 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6428$as_echo "$lt_cv_cc_needs_belf" >&6; } 6429 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6430 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6431 CFLAGS="$SAVE_CFLAGS" 6432 fi 6433 ;; 6434*-*solaris*) 6435 # Find out which ABI we are using. 6436 echo 'int i;' > conftest.$ac_ext 6437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6438 (eval $ac_compile) 2>&5 6439 ac_status=$? 6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6441 test $ac_status = 0; }; then 6442 case `/usr/bin/file conftest.o` in 6443 *64-bit*) 6444 case $lt_cv_prog_gnu_ld in 6445 yes*) 6446 case $host in 6447 i?86-*-solaris*) 6448 LD="${LD-ld} -m elf_x86_64" 6449 ;; 6450 sparc*-*-solaris*) 6451 LD="${LD-ld} -m elf64_sparc" 6452 ;; 6453 esac 6454 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6455 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6456 LD="${LD-ld}_sol2" 6457 fi 6458 ;; 6459 *) 6460 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6461 LD="${LD-ld} -64" 6462 fi 6463 ;; 6464 esac 6465 ;; 6466 esac 6467 fi 6468 rm -rf conftest* 6469 ;; 6470esac 6471 6472need_locks="$enable_libtool_lock" 6473 6474if test -n "$ac_tool_prefix"; then 6475 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6476set dummy ${ac_tool_prefix}mt; ac_word=$2 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6478$as_echo_n "checking for $ac_word... " >&6; } 6479if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481else 6482 if test -n "$MANIFEST_TOOL"; then 6483 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6484else 6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6486for as_dir in $PATH 6487do 6488 IFS=$as_save_IFS 6489 test -z "$as_dir" && as_dir=. 6490 for ac_exec_ext in '' $ac_executable_extensions; do 6491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6492 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6494 break 2 6495 fi 6496done 6497 done 6498IFS=$as_save_IFS 6499 6500fi 6501fi 6502MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6503if test -n "$MANIFEST_TOOL"; then 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6505$as_echo "$MANIFEST_TOOL" >&6; } 6506else 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6508$as_echo "no" >&6; } 6509fi 6510 6511 6512fi 6513if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6514 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6515 # Extract the first word of "mt", so it can be a program name with args. 6516set dummy mt; ac_word=$2 6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6518$as_echo_n "checking for $ac_word... " >&6; } 6519if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6520 $as_echo_n "(cached) " >&6 6521else 6522 if test -n "$ac_ct_MANIFEST_TOOL"; then 6523 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6524else 6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6526for as_dir in $PATH 6527do 6528 IFS=$as_save_IFS 6529 test -z "$as_dir" && as_dir=. 6530 for ac_exec_ext in '' $ac_executable_extensions; do 6531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6532 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6534 break 2 6535 fi 6536done 6537 done 6538IFS=$as_save_IFS 6539 6540fi 6541fi 6542ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6543if test -n "$ac_ct_MANIFEST_TOOL"; then 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6545$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6546else 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6548$as_echo "no" >&6; } 6549fi 6550 6551 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6552 MANIFEST_TOOL=":" 6553 else 6554 case $cross_compiling:$ac_tool_warned in 6555yes:) 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6558ac_tool_warned=yes ;; 6559esac 6560 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6561 fi 6562else 6563 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6564fi 6565 6566test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6568$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6569if ${lt_cv_path_mainfest_tool+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 lt_cv_path_mainfest_tool=no 6573 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6574 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6575 cat conftest.err >&5 6576 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6577 lt_cv_path_mainfest_tool=yes 6578 fi 6579 rm -f conftest* 6580fi 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6582$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6583if test "x$lt_cv_path_mainfest_tool" != xyes; then 6584 MANIFEST_TOOL=: 6585fi 6586 6587 6588 6589 6590 6591 6592 case $host_os in 6593 rhapsody* | darwin*) 6594 if test -n "$ac_tool_prefix"; then 6595 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6596set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6598$as_echo_n "checking for $ac_word... " >&6; } 6599if ${ac_cv_prog_DSYMUTIL+:} false; then : 6600 $as_echo_n "(cached) " >&6 6601else 6602 if test -n "$DSYMUTIL"; then 6603 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6604else 6605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in $PATH 6607do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6612 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617 done 6618IFS=$as_save_IFS 6619 6620fi 6621fi 6622DSYMUTIL=$ac_cv_prog_DSYMUTIL 6623if test -n "$DSYMUTIL"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6625$as_echo "$DSYMUTIL" >&6; } 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628$as_echo "no" >&6; } 6629fi 6630 6631 6632fi 6633if test -z "$ac_cv_prog_DSYMUTIL"; then 6634 ac_ct_DSYMUTIL=$DSYMUTIL 6635 # Extract the first word of "dsymutil", so it can be a program name with args. 6636set dummy dsymutil; ac_word=$2 6637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6638$as_echo_n "checking for $ac_word... " >&6; } 6639if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6640 $as_echo_n "(cached) " >&6 6641else 6642 if test -n "$ac_ct_DSYMUTIL"; then 6643 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6644else 6645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6646for as_dir in $PATH 6647do 6648 IFS=$as_save_IFS 6649 test -z "$as_dir" && as_dir=. 6650 for ac_exec_ext in '' $ac_executable_extensions; do 6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6652 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6654 break 2 6655 fi 6656done 6657 done 6658IFS=$as_save_IFS 6659 6660fi 6661fi 6662ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6663if test -n "$ac_ct_DSYMUTIL"; then 6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6665$as_echo "$ac_ct_DSYMUTIL" >&6; } 6666else 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6668$as_echo "no" >&6; } 6669fi 6670 6671 if test "x$ac_ct_DSYMUTIL" = x; then 6672 DSYMUTIL=":" 6673 else 6674 case $cross_compiling:$ac_tool_warned in 6675yes:) 6676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6678ac_tool_warned=yes ;; 6679esac 6680 DSYMUTIL=$ac_ct_DSYMUTIL 6681 fi 6682else 6683 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6684fi 6685 6686 if test -n "$ac_tool_prefix"; then 6687 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6688set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6690$as_echo_n "checking for $ac_word... " >&6; } 6691if ${ac_cv_prog_NMEDIT+:} false; then : 6692 $as_echo_n "(cached) " >&6 6693else 6694 if test -n "$NMEDIT"; then 6695 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6696else 6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6698for as_dir in $PATH 6699do 6700 IFS=$as_save_IFS 6701 test -z "$as_dir" && as_dir=. 6702 for ac_exec_ext in '' $ac_executable_extensions; do 6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6704 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6706 break 2 6707 fi 6708done 6709 done 6710IFS=$as_save_IFS 6711 6712fi 6713fi 6714NMEDIT=$ac_cv_prog_NMEDIT 6715if test -n "$NMEDIT"; then 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6717$as_echo "$NMEDIT" >&6; } 6718else 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6720$as_echo "no" >&6; } 6721fi 6722 6723 6724fi 6725if test -z "$ac_cv_prog_NMEDIT"; then 6726 ac_ct_NMEDIT=$NMEDIT 6727 # Extract the first word of "nmedit", so it can be a program name with args. 6728set dummy nmedit; ac_word=$2 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6730$as_echo_n "checking for $ac_word... " >&6; } 6731if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6732 $as_echo_n "(cached) " >&6 6733else 6734 if test -n "$ac_ct_NMEDIT"; then 6735 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6736else 6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6738for as_dir in $PATH 6739do 6740 IFS=$as_save_IFS 6741 test -z "$as_dir" && as_dir=. 6742 for ac_exec_ext in '' $ac_executable_extensions; do 6743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6744 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6746 break 2 6747 fi 6748done 6749 done 6750IFS=$as_save_IFS 6751 6752fi 6753fi 6754ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6755if test -n "$ac_ct_NMEDIT"; then 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6757$as_echo "$ac_ct_NMEDIT" >&6; } 6758else 6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6760$as_echo "no" >&6; } 6761fi 6762 6763 if test "x$ac_ct_NMEDIT" = x; then 6764 NMEDIT=":" 6765 else 6766 case $cross_compiling:$ac_tool_warned in 6767yes:) 6768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6770ac_tool_warned=yes ;; 6771esac 6772 NMEDIT=$ac_ct_NMEDIT 6773 fi 6774else 6775 NMEDIT="$ac_cv_prog_NMEDIT" 6776fi 6777 6778 if test -n "$ac_tool_prefix"; then 6779 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6780set dummy ${ac_tool_prefix}lipo; ac_word=$2 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6782$as_echo_n "checking for $ac_word... " >&6; } 6783if ${ac_cv_prog_LIPO+:} false; then : 6784 $as_echo_n "(cached) " >&6 6785else 6786 if test -n "$LIPO"; then 6787 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6788else 6789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6790for as_dir in $PATH 6791do 6792 IFS=$as_save_IFS 6793 test -z "$as_dir" && as_dir=. 6794 for ac_exec_ext in '' $ac_executable_extensions; do 6795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6796 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6798 break 2 6799 fi 6800done 6801 done 6802IFS=$as_save_IFS 6803 6804fi 6805fi 6806LIPO=$ac_cv_prog_LIPO 6807if test -n "$LIPO"; then 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6809$as_echo "$LIPO" >&6; } 6810else 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6812$as_echo "no" >&6; } 6813fi 6814 6815 6816fi 6817if test -z "$ac_cv_prog_LIPO"; then 6818 ac_ct_LIPO=$LIPO 6819 # Extract the first word of "lipo", so it can be a program name with args. 6820set dummy lipo; ac_word=$2 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6822$as_echo_n "checking for $ac_word... " >&6; } 6823if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6824 $as_echo_n "(cached) " >&6 6825else 6826 if test -n "$ac_ct_LIPO"; then 6827 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6828else 6829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6830for as_dir in $PATH 6831do 6832 IFS=$as_save_IFS 6833 test -z "$as_dir" && as_dir=. 6834 for ac_exec_ext in '' $ac_executable_extensions; do 6835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6836 ac_cv_prog_ac_ct_LIPO="lipo" 6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6838 break 2 6839 fi 6840done 6841 done 6842IFS=$as_save_IFS 6843 6844fi 6845fi 6846ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6847if test -n "$ac_ct_LIPO"; then 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6849$as_echo "$ac_ct_LIPO" >&6; } 6850else 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6852$as_echo "no" >&6; } 6853fi 6854 6855 if test "x$ac_ct_LIPO" = x; then 6856 LIPO=":" 6857 else 6858 case $cross_compiling:$ac_tool_warned in 6859yes:) 6860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6862ac_tool_warned=yes ;; 6863esac 6864 LIPO=$ac_ct_LIPO 6865 fi 6866else 6867 LIPO="$ac_cv_prog_LIPO" 6868fi 6869 6870 if test -n "$ac_tool_prefix"; then 6871 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6872set dummy ${ac_tool_prefix}otool; ac_word=$2 6873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6874$as_echo_n "checking for $ac_word... " >&6; } 6875if ${ac_cv_prog_OTOOL+:} false; then : 6876 $as_echo_n "(cached) " >&6 6877else 6878 if test -n "$OTOOL"; then 6879 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6880else 6881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6882for as_dir in $PATH 6883do 6884 IFS=$as_save_IFS 6885 test -z "$as_dir" && as_dir=. 6886 for ac_exec_ext in '' $ac_executable_extensions; do 6887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6888 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6890 break 2 6891 fi 6892done 6893 done 6894IFS=$as_save_IFS 6895 6896fi 6897fi 6898OTOOL=$ac_cv_prog_OTOOL 6899if test -n "$OTOOL"; then 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6901$as_echo "$OTOOL" >&6; } 6902else 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6904$as_echo "no" >&6; } 6905fi 6906 6907 6908fi 6909if test -z "$ac_cv_prog_OTOOL"; then 6910 ac_ct_OTOOL=$OTOOL 6911 # Extract the first word of "otool", so it can be a program name with args. 6912set dummy otool; ac_word=$2 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6914$as_echo_n "checking for $ac_word... " >&6; } 6915if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6916 $as_echo_n "(cached) " >&6 6917else 6918 if test -n "$ac_ct_OTOOL"; then 6919 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6920else 6921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6922for as_dir in $PATH 6923do 6924 IFS=$as_save_IFS 6925 test -z "$as_dir" && as_dir=. 6926 for ac_exec_ext in '' $ac_executable_extensions; do 6927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6928 ac_cv_prog_ac_ct_OTOOL="otool" 6929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6930 break 2 6931 fi 6932done 6933 done 6934IFS=$as_save_IFS 6935 6936fi 6937fi 6938ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6939if test -n "$ac_ct_OTOOL"; then 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6941$as_echo "$ac_ct_OTOOL" >&6; } 6942else 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6944$as_echo "no" >&6; } 6945fi 6946 6947 if test "x$ac_ct_OTOOL" = x; then 6948 OTOOL=":" 6949 else 6950 case $cross_compiling:$ac_tool_warned in 6951yes:) 6952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6954ac_tool_warned=yes ;; 6955esac 6956 OTOOL=$ac_ct_OTOOL 6957 fi 6958else 6959 OTOOL="$ac_cv_prog_OTOOL" 6960fi 6961 6962 if test -n "$ac_tool_prefix"; then 6963 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6964set dummy ${ac_tool_prefix}otool64; ac_word=$2 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6966$as_echo_n "checking for $ac_word... " >&6; } 6967if ${ac_cv_prog_OTOOL64+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 if test -n "$OTOOL64"; then 6971 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6972else 6973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6974for as_dir in $PATH 6975do 6976 IFS=$as_save_IFS 6977 test -z "$as_dir" && as_dir=. 6978 for ac_exec_ext in '' $ac_executable_extensions; do 6979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6980 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6982 break 2 6983 fi 6984done 6985 done 6986IFS=$as_save_IFS 6987 6988fi 6989fi 6990OTOOL64=$ac_cv_prog_OTOOL64 6991if test -n "$OTOOL64"; then 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6993$as_echo "$OTOOL64" >&6; } 6994else 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6996$as_echo "no" >&6; } 6997fi 6998 6999 7000fi 7001if test -z "$ac_cv_prog_OTOOL64"; then 7002 ac_ct_OTOOL64=$OTOOL64 7003 # Extract the first word of "otool64", so it can be a program name with args. 7004set dummy otool64; ac_word=$2 7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7006$as_echo_n "checking for $ac_word... " >&6; } 7007if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7008 $as_echo_n "(cached) " >&6 7009else 7010 if test -n "$ac_ct_OTOOL64"; then 7011 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7012else 7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7014for as_dir in $PATH 7015do 7016 IFS=$as_save_IFS 7017 test -z "$as_dir" && as_dir=. 7018 for ac_exec_ext in '' $ac_executable_extensions; do 7019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7020 ac_cv_prog_ac_ct_OTOOL64="otool64" 7021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7022 break 2 7023 fi 7024done 7025 done 7026IFS=$as_save_IFS 7027 7028fi 7029fi 7030ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7031if test -n "$ac_ct_OTOOL64"; then 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7033$as_echo "$ac_ct_OTOOL64" >&6; } 7034else 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7036$as_echo "no" >&6; } 7037fi 7038 7039 if test "x$ac_ct_OTOOL64" = x; then 7040 OTOOL64=":" 7041 else 7042 case $cross_compiling:$ac_tool_warned in 7043yes:) 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7046ac_tool_warned=yes ;; 7047esac 7048 OTOOL64=$ac_ct_OTOOL64 7049 fi 7050else 7051 OTOOL64="$ac_cv_prog_OTOOL64" 7052fi 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7081$as_echo_n "checking for -single_module linker flag... " >&6; } 7082if ${lt_cv_apple_cc_single_mod+:} false; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 lt_cv_apple_cc_single_mod=no 7086 if test -z "${LT_MULTI_MODULE}"; then 7087 # By default we will add the -single_module flag. You can override 7088 # by either setting the environment variable LT_MULTI_MODULE 7089 # non-empty at configure time, or by adding -multi_module to the 7090 # link flags. 7091 rm -rf libconftest.dylib* 7092 echo "int foo(void){return 1;}" > conftest.c 7093 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7094-dynamiclib -Wl,-single_module conftest.c" >&5 7095 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7096 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7097 _lt_result=$? 7098 # If there is a non-empty error log, and "single_module" 7099 # appears in it, assume the flag caused a linker warning 7100 if test -s conftest.err && $GREP single_module conftest.err; then 7101 cat conftest.err >&5 7102 # Otherwise, if the output was created with a 0 exit code from 7103 # the compiler, it worked. 7104 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7105 lt_cv_apple_cc_single_mod=yes 7106 else 7107 cat conftest.err >&5 7108 fi 7109 rm -rf libconftest.dylib* 7110 rm -f conftest.* 7111 fi 7112fi 7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7114$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7115 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7117$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7118if ${lt_cv_ld_exported_symbols_list+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120else 7121 lt_cv_ld_exported_symbols_list=no 7122 save_LDFLAGS=$LDFLAGS 7123 echo "_main" > conftest.sym 7124 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7126/* end confdefs.h. */ 7127 7128int 7129main () 7130{ 7131 7132 ; 7133 return 0; 7134} 7135_ACEOF 7136if ac_fn_c_try_link "$LINENO"; then : 7137 lt_cv_ld_exported_symbols_list=yes 7138else 7139 lt_cv_ld_exported_symbols_list=no 7140fi 7141rm -f core conftest.err conftest.$ac_objext \ 7142 conftest$ac_exeext conftest.$ac_ext 7143 LDFLAGS="$save_LDFLAGS" 7144 7145fi 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7147$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7148 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7150$as_echo_n "checking for -force_load linker flag... " >&6; } 7151if ${lt_cv_ld_force_load+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 lt_cv_ld_force_load=no 7155 cat > conftest.c << _LT_EOF 7156int forced_loaded() { return 2;} 7157_LT_EOF 7158 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7159 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7160 echo "$AR cru libconftest.a conftest.o" >&5 7161 $AR cru libconftest.a conftest.o 2>&5 7162 echo "$RANLIB libconftest.a" >&5 7163 $RANLIB libconftest.a 2>&5 7164 cat > conftest.c << _LT_EOF 7165int main() { return 0;} 7166_LT_EOF 7167 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7168 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7169 _lt_result=$? 7170 if test -s conftest.err && $GREP force_load conftest.err; then 7171 cat conftest.err >&5 7172 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7173 lt_cv_ld_force_load=yes 7174 else 7175 cat conftest.err >&5 7176 fi 7177 rm -f conftest.err libconftest.a conftest conftest.c 7178 rm -rf conftest.dSYM 7179 7180fi 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7182$as_echo "$lt_cv_ld_force_load" >&6; } 7183 case $host_os in 7184 rhapsody* | darwin1.[012]) 7185 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7186 darwin1.*) 7187 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7188 darwin*) # darwin 5.x on 7189 # if running on 10.5 or later, the deployment target defaults 7190 # to the OS version, if on x86, and 10.4, the deployment 7191 # target defaults to 10.4. Don't you love it? 7192 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7193 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7194 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7195 10.[012]*) 7196 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7197 10.*) 7198 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7199 esac 7200 ;; 7201 esac 7202 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7203 _lt_dar_single_mod='$single_module' 7204 fi 7205 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7206 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7207 else 7208 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7209 fi 7210 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7211 _lt_dsymutil='~$DSYMUTIL $lib || :' 7212 else 7213 _lt_dsymutil= 7214 fi 7215 ;; 7216 esac 7217 7218ac_ext=c 7219ac_cpp='$CPP $CPPFLAGS' 7220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7222ac_compiler_gnu=$ac_cv_c_compiler_gnu 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7224$as_echo_n "checking how to run the C preprocessor... " >&6; } 7225# On Suns, sometimes $CPP names a directory. 7226if test -n "$CPP" && test -d "$CPP"; then 7227 CPP= 7228fi 7229if test -z "$CPP"; then 7230 if ${ac_cv_prog_CPP+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 # Double quotes because CPP needs to be expanded 7234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7235 do 7236 ac_preproc_ok=false 7237for ac_c_preproc_warn_flag in '' yes 7238do 7239 # Use a header file that comes with gcc, so configuring glibc 7240 # with a fresh cross-compiler works. 7241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7242 # <limits.h> exists even on freestanding compilers. 7243 # On the NeXT, cc -E runs the code through the compiler's parser, 7244 # not just through cpp. "Syntax error" is here to catch this case. 7245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7246/* end confdefs.h. */ 7247#ifdef __STDC__ 7248# include <limits.h> 7249#else 7250# include <assert.h> 7251#endif 7252 Syntax error 7253_ACEOF 7254if ac_fn_c_try_cpp "$LINENO"; then : 7255 7256else 7257 # Broken: fails on valid input. 7258continue 7259fi 7260rm -f conftest.err conftest.i conftest.$ac_ext 7261 7262 # OK, works on sane cases. Now check whether nonexistent headers 7263 # can be detected and how. 7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7265/* end confdefs.h. */ 7266#include <ac_nonexistent.h> 7267_ACEOF 7268if ac_fn_c_try_cpp "$LINENO"; then : 7269 # Broken: success on invalid input. 7270continue 7271else 7272 # Passes both tests. 7273ac_preproc_ok=: 7274break 7275fi 7276rm -f conftest.err conftest.i conftest.$ac_ext 7277 7278done 7279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7280rm -f conftest.i conftest.err conftest.$ac_ext 7281if $ac_preproc_ok; then : 7282 break 7283fi 7284 7285 done 7286 ac_cv_prog_CPP=$CPP 7287 7288fi 7289 CPP=$ac_cv_prog_CPP 7290else 7291 ac_cv_prog_CPP=$CPP 7292fi 7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7294$as_echo "$CPP" >&6; } 7295ac_preproc_ok=false 7296for ac_c_preproc_warn_flag in '' yes 7297do 7298 # Use a header file that comes with gcc, so configuring glibc 7299 # with a fresh cross-compiler works. 7300 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7301 # <limits.h> exists even on freestanding compilers. 7302 # On the NeXT, cc -E runs the code through the compiler's parser, 7303 # not just through cpp. "Syntax error" is here to catch this case. 7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7305/* end confdefs.h. */ 7306#ifdef __STDC__ 7307# include <limits.h> 7308#else 7309# include <assert.h> 7310#endif 7311 Syntax error 7312_ACEOF 7313if ac_fn_c_try_cpp "$LINENO"; then : 7314 7315else 7316 # Broken: fails on valid input. 7317continue 7318fi 7319rm -f conftest.err conftest.i conftest.$ac_ext 7320 7321 # OK, works on sane cases. Now check whether nonexistent headers 7322 # can be detected and how. 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325#include <ac_nonexistent.h> 7326_ACEOF 7327if ac_fn_c_try_cpp "$LINENO"; then : 7328 # Broken: success on invalid input. 7329continue 7330else 7331 # Passes both tests. 7332ac_preproc_ok=: 7333break 7334fi 7335rm -f conftest.err conftest.i conftest.$ac_ext 7336 7337done 7338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7339rm -f conftest.i conftest.err conftest.$ac_ext 7340if $ac_preproc_ok; then : 7341 7342else 7343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7345as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7346See \`config.log' for more details" "$LINENO" 5; } 7347fi 7348 7349ac_ext=c 7350ac_cpp='$CPP $CPPFLAGS' 7351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7353ac_compiler_gnu=$ac_cv_c_compiler_gnu 7354 7355 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7357$as_echo_n "checking for ANSI C header files... " >&6; } 7358if ${ac_cv_header_stdc+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7362/* end confdefs.h. */ 7363#include <stdlib.h> 7364#include <stdarg.h> 7365#include <string.h> 7366#include <float.h> 7367 7368int 7369main () 7370{ 7371 7372 ; 7373 return 0; 7374} 7375_ACEOF 7376if ac_fn_c_try_compile "$LINENO"; then : 7377 ac_cv_header_stdc=yes 7378else 7379 ac_cv_header_stdc=no 7380fi 7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7382 7383if test $ac_cv_header_stdc = yes; then 7384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387#include <string.h> 7388 7389_ACEOF 7390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7391 $EGREP "memchr" >/dev/null 2>&1; then : 7392 7393else 7394 ac_cv_header_stdc=no 7395fi 7396rm -f conftest* 7397 7398fi 7399 7400if test $ac_cv_header_stdc = yes; then 7401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403/* end confdefs.h. */ 7404#include <stdlib.h> 7405 7406_ACEOF 7407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7408 $EGREP "free" >/dev/null 2>&1; then : 7409 7410else 7411 ac_cv_header_stdc=no 7412fi 7413rm -f conftest* 7414 7415fi 7416 7417if test $ac_cv_header_stdc = yes; then 7418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7419 if test "$cross_compiling" = yes; then : 7420 : 7421else 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424#include <ctype.h> 7425#include <stdlib.h> 7426#if ((' ' & 0x0FF) == 0x020) 7427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7429#else 7430# define ISLOWER(c) \ 7431 (('a' <= (c) && (c) <= 'i') \ 7432 || ('j' <= (c) && (c) <= 'r') \ 7433 || ('s' <= (c) && (c) <= 'z')) 7434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7435#endif 7436 7437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7438int 7439main () 7440{ 7441 int i; 7442 for (i = 0; i < 256; i++) 7443 if (XOR (islower (i), ISLOWER (i)) 7444 || toupper (i) != TOUPPER (i)) 7445 return 2; 7446 return 0; 7447} 7448_ACEOF 7449if ac_fn_c_try_run "$LINENO"; then : 7450 7451else 7452 ac_cv_header_stdc=no 7453fi 7454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7455 conftest.$ac_objext conftest.beam conftest.$ac_ext 7456fi 7457 7458fi 7459fi 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7461$as_echo "$ac_cv_header_stdc" >&6; } 7462if test $ac_cv_header_stdc = yes; then 7463 7464$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7465 7466fi 7467 7468# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7469for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7470 inttypes.h stdint.h unistd.h 7471do : 7472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7473ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7474" 7475if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7476 cat >>confdefs.h <<_ACEOF 7477#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7478_ACEOF 7479 7480fi 7481 7482done 7483 7484 7485for ac_header in dlfcn.h 7486do : 7487 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7488" 7489if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7490 cat >>confdefs.h <<_ACEOF 7491#define HAVE_DLFCN_H 1 7492_ACEOF 7493 7494fi 7495 7496done 7497 7498 7499 7500 7501 7502# Set options 7503enable_win32_dll=yes 7504 7505case $host in 7506*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 7507 if test -n "$ac_tool_prefix"; then 7508 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 7509set dummy ${ac_tool_prefix}as; ac_word=$2 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7511$as_echo_n "checking for $ac_word... " >&6; } 7512if ${ac_cv_prog_AS+:} false; then : 7513 $as_echo_n "(cached) " >&6 7514else 7515 if test -n "$AS"; then 7516 ac_cv_prog_AS="$AS" # Let the user override the test. 7517else 7518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7519for as_dir in $PATH 7520do 7521 IFS=$as_save_IFS 7522 test -z "$as_dir" && as_dir=. 7523 for ac_exec_ext in '' $ac_executable_extensions; do 7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7525 ac_cv_prog_AS="${ac_tool_prefix}as" 7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7527 break 2 7528 fi 7529done 7530 done 7531IFS=$as_save_IFS 7532 7533fi 7534fi 7535AS=$ac_cv_prog_AS 7536if test -n "$AS"; then 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 7538$as_echo "$AS" >&6; } 7539else 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7541$as_echo "no" >&6; } 7542fi 7543 7544 7545fi 7546if test -z "$ac_cv_prog_AS"; then 7547 ac_ct_AS=$AS 7548 # Extract the first word of "as", so it can be a program name with args. 7549set dummy as; ac_word=$2 7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7551$as_echo_n "checking for $ac_word... " >&6; } 7552if ${ac_cv_prog_ac_ct_AS+:} false; then : 7553 $as_echo_n "(cached) " >&6 7554else 7555 if test -n "$ac_ct_AS"; then 7556 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 7557else 7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7559for as_dir in $PATH 7560do 7561 IFS=$as_save_IFS 7562 test -z "$as_dir" && as_dir=. 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7565 ac_cv_prog_ac_ct_AS="as" 7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7567 break 2 7568 fi 7569done 7570 done 7571IFS=$as_save_IFS 7572 7573fi 7574fi 7575ac_ct_AS=$ac_cv_prog_ac_ct_AS 7576if test -n "$ac_ct_AS"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 7578$as_echo "$ac_ct_AS" >&6; } 7579else 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581$as_echo "no" >&6; } 7582fi 7583 7584 if test "x$ac_ct_AS" = x; then 7585 AS="false" 7586 else 7587 case $cross_compiling:$ac_tool_warned in 7588yes:) 7589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7591ac_tool_warned=yes ;; 7592esac 7593 AS=$ac_ct_AS 7594 fi 7595else 7596 AS="$ac_cv_prog_AS" 7597fi 7598 7599 if test -n "$ac_tool_prefix"; then 7600 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7601set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7603$as_echo_n "checking for $ac_word... " >&6; } 7604if ${ac_cv_prog_DLLTOOL+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606else 7607 if test -n "$DLLTOOL"; then 7608 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7609else 7610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7611for as_dir in $PATH 7612do 7613 IFS=$as_save_IFS 7614 test -z "$as_dir" && as_dir=. 7615 for ac_exec_ext in '' $ac_executable_extensions; do 7616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7617 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7619 break 2 7620 fi 7621done 7622 done 7623IFS=$as_save_IFS 7624 7625fi 7626fi 7627DLLTOOL=$ac_cv_prog_DLLTOOL 7628if test -n "$DLLTOOL"; then 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7630$as_echo "$DLLTOOL" >&6; } 7631else 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7633$as_echo "no" >&6; } 7634fi 7635 7636 7637fi 7638if test -z "$ac_cv_prog_DLLTOOL"; then 7639 ac_ct_DLLTOOL=$DLLTOOL 7640 # Extract the first word of "dlltool", so it can be a program name with args. 7641set dummy dlltool; ac_word=$2 7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7643$as_echo_n "checking for $ac_word... " >&6; } 7644if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7645 $as_echo_n "(cached) " >&6 7646else 7647 if test -n "$ac_ct_DLLTOOL"; then 7648 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7649else 7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7651for as_dir in $PATH 7652do 7653 IFS=$as_save_IFS 7654 test -z "$as_dir" && as_dir=. 7655 for ac_exec_ext in '' $ac_executable_extensions; do 7656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7657 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7659 break 2 7660 fi 7661done 7662 done 7663IFS=$as_save_IFS 7664 7665fi 7666fi 7667ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7668if test -n "$ac_ct_DLLTOOL"; then 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7670$as_echo "$ac_ct_DLLTOOL" >&6; } 7671else 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7673$as_echo "no" >&6; } 7674fi 7675 7676 if test "x$ac_ct_DLLTOOL" = x; then 7677 DLLTOOL="false" 7678 else 7679 case $cross_compiling:$ac_tool_warned in 7680yes:) 7681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7683ac_tool_warned=yes ;; 7684esac 7685 DLLTOOL=$ac_ct_DLLTOOL 7686 fi 7687else 7688 DLLTOOL="$ac_cv_prog_DLLTOOL" 7689fi 7690 7691 if test -n "$ac_tool_prefix"; then 7692 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7693set dummy ${ac_tool_prefix}objdump; ac_word=$2 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7695$as_echo_n "checking for $ac_word... " >&6; } 7696if ${ac_cv_prog_OBJDUMP+:} false; then : 7697 $as_echo_n "(cached) " >&6 7698else 7699 if test -n "$OBJDUMP"; then 7700 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7701else 7702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7703for as_dir in $PATH 7704do 7705 IFS=$as_save_IFS 7706 test -z "$as_dir" && as_dir=. 7707 for ac_exec_ext in '' $ac_executable_extensions; do 7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7709 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7711 break 2 7712 fi 7713done 7714 done 7715IFS=$as_save_IFS 7716 7717fi 7718fi 7719OBJDUMP=$ac_cv_prog_OBJDUMP 7720if test -n "$OBJDUMP"; then 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7722$as_echo "$OBJDUMP" >&6; } 7723else 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7725$as_echo "no" >&6; } 7726fi 7727 7728 7729fi 7730if test -z "$ac_cv_prog_OBJDUMP"; then 7731 ac_ct_OBJDUMP=$OBJDUMP 7732 # Extract the first word of "objdump", so it can be a program name with args. 7733set dummy objdump; ac_word=$2 7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7735$as_echo_n "checking for $ac_word... " >&6; } 7736if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738else 7739 if test -n "$ac_ct_OBJDUMP"; then 7740 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7741else 7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7743for as_dir in $PATH 7744do 7745 IFS=$as_save_IFS 7746 test -z "$as_dir" && as_dir=. 7747 for ac_exec_ext in '' $ac_executable_extensions; do 7748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7749 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7751 break 2 7752 fi 7753done 7754 done 7755IFS=$as_save_IFS 7756 7757fi 7758fi 7759ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7760if test -n "$ac_ct_OBJDUMP"; then 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7762$as_echo "$ac_ct_OBJDUMP" >&6; } 7763else 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7765$as_echo "no" >&6; } 7766fi 7767 7768 if test "x$ac_ct_OBJDUMP" = x; then 7769 OBJDUMP="false" 7770 else 7771 case $cross_compiling:$ac_tool_warned in 7772yes:) 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7775ac_tool_warned=yes ;; 7776esac 7777 OBJDUMP=$ac_ct_OBJDUMP 7778 fi 7779else 7780 OBJDUMP="$ac_cv_prog_OBJDUMP" 7781fi 7782 7783 ;; 7784esac 7785 7786test -z "$AS" && AS=as 7787 7788 7789 7790 7791 7792test -z "$DLLTOOL" && DLLTOOL=dlltool 7793 7794 7795 7796 7797 7798test -z "$OBJDUMP" && OBJDUMP=objdump 7799 7800 7801 7802 7803 7804 7805 7806 enable_dlopen=no 7807 7808 7809 7810 # Check whether --enable-shared was given. 7811if test "${enable_shared+set}" = set; then : 7812 enableval=$enable_shared; p=${PACKAGE-default} 7813 case $enableval in 7814 yes) enable_shared=yes ;; 7815 no) enable_shared=no ;; 7816 *) 7817 enable_shared=no 7818 # Look at the argument we got. We use all the common list separators. 7819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7820 for pkg in $enableval; do 7821 IFS="$lt_save_ifs" 7822 if test "X$pkg" = "X$p"; then 7823 enable_shared=yes 7824 fi 7825 done 7826 IFS="$lt_save_ifs" 7827 ;; 7828 esac 7829else 7830 enable_shared=yes 7831fi 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 # Check whether --enable-static was given. 7842if test "${enable_static+set}" = set; then : 7843 enableval=$enable_static; p=${PACKAGE-default} 7844 case $enableval in 7845 yes) enable_static=yes ;; 7846 no) enable_static=no ;; 7847 *) 7848 enable_static=no 7849 # Look at the argument we got. We use all the common list separators. 7850 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7851 for pkg in $enableval; do 7852 IFS="$lt_save_ifs" 7853 if test "X$pkg" = "X$p"; then 7854 enable_static=yes 7855 fi 7856 done 7857 IFS="$lt_save_ifs" 7858 ;; 7859 esac 7860else 7861 enable_static=yes 7862fi 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873# Check whether --with-pic was given. 7874if test "${with_pic+set}" = set; then : 7875 withval=$with_pic; lt_p=${PACKAGE-default} 7876 case $withval in 7877 yes|no) pic_mode=$withval ;; 7878 *) 7879 pic_mode=default 7880 # Look at the argument we got. We use all the common list separators. 7881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7882 for lt_pkg in $withval; do 7883 IFS="$lt_save_ifs" 7884 if test "X$lt_pkg" = "X$lt_p"; then 7885 pic_mode=yes 7886 fi 7887 done 7888 IFS="$lt_save_ifs" 7889 ;; 7890 esac 7891else 7892 pic_mode=default 7893fi 7894 7895 7896test -z "$pic_mode" && pic_mode=default 7897 7898 7899 7900 7901 7902 7903 7904 # Check whether --enable-fast-install was given. 7905if test "${enable_fast_install+set}" = set; then : 7906 enableval=$enable_fast_install; p=${PACKAGE-default} 7907 case $enableval in 7908 yes) enable_fast_install=yes ;; 7909 no) enable_fast_install=no ;; 7910 *) 7911 enable_fast_install=no 7912 # Look at the argument we got. We use all the common list separators. 7913 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7914 for pkg in $enableval; do 7915 IFS="$lt_save_ifs" 7916 if test "X$pkg" = "X$p"; then 7917 enable_fast_install=yes 7918 fi 7919 done 7920 IFS="$lt_save_ifs" 7921 ;; 7922 esac 7923else 7924 enable_fast_install=yes 7925fi 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937# This can be used to rebuild libtool when needed 7938LIBTOOL_DEPS="$ltmain" 7939 7940# Always use our own libtool. 7941LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972test -z "$LN_S" && LN_S="ln -s" 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987if test -n "${ZSH_VERSION+set}" ; then 7988 setopt NO_GLOB_SUBST 7989fi 7990 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7992$as_echo_n "checking for objdir... " >&6; } 7993if ${lt_cv_objdir+:} false; then : 7994 $as_echo_n "(cached) " >&6 7995else 7996 rm -f .libs 2>/dev/null 7997mkdir .libs 2>/dev/null 7998if test -d .libs; then 7999 lt_cv_objdir=.libs 8000else 8001 # MS-DOS does not allow filenames that begin with a dot. 8002 lt_cv_objdir=_libs 8003fi 8004rmdir .libs 2>/dev/null 8005fi 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8007$as_echo "$lt_cv_objdir" >&6; } 8008objdir=$lt_cv_objdir 8009 8010 8011 8012 8013 8014cat >>confdefs.h <<_ACEOF 8015#define LT_OBJDIR "$lt_cv_objdir/" 8016_ACEOF 8017 8018 8019 8020 8021case $host_os in 8022aix3*) 8023 # AIX sometimes has problems with the GCC collect2 program. For some 8024 # reason, if we set the COLLECT_NAMES environment variable, the problems 8025 # vanish in a puff of smoke. 8026 if test "X${COLLECT_NAMES+set}" != Xset; then 8027 COLLECT_NAMES= 8028 export COLLECT_NAMES 8029 fi 8030 ;; 8031esac 8032 8033# Global variables: 8034ofile=libtool 8035can_build_shared=yes 8036 8037# All known linkers require a `.a' archive for static linking (except MSVC, 8038# which needs '.lib'). 8039libext=a 8040 8041with_gnu_ld="$lt_cv_prog_gnu_ld" 8042 8043old_CC="$CC" 8044old_CFLAGS="$CFLAGS" 8045 8046# Set sane defaults for various variables 8047test -z "$CC" && CC=cc 8048test -z "$LTCC" && LTCC=$CC 8049test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8050test -z "$LD" && LD=ld 8051test -z "$ac_objext" && ac_objext=o 8052 8053for cc_temp in $compiler""; do 8054 case $cc_temp in 8055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8057 \-*) ;; 8058 *) break;; 8059 esac 8060done 8061cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8062 8063 8064# Only perform the check for file, if the check method requires it 8065test -z "$MAGIC_CMD" && MAGIC_CMD=file 8066case $deplibs_check_method in 8067file_magic*) 8068 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8070$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8071if ${lt_cv_path_MAGIC_CMD+:} false; then : 8072 $as_echo_n "(cached) " >&6 8073else 8074 case $MAGIC_CMD in 8075[\\/*] | ?:[\\/]*) 8076 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8077 ;; 8078*) 8079 lt_save_MAGIC_CMD="$MAGIC_CMD" 8080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8081 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8082 for ac_dir in $ac_dummy; do 8083 IFS="$lt_save_ifs" 8084 test -z "$ac_dir" && ac_dir=. 8085 if test -f $ac_dir/${ac_tool_prefix}file; then 8086 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8087 if test -n "$file_magic_test_file"; then 8088 case $deplibs_check_method in 8089 "file_magic "*) 8090 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8092 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8093 $EGREP "$file_magic_regex" > /dev/null; then 8094 : 8095 else 8096 cat <<_LT_EOF 1>&2 8097 8098*** Warning: the command libtool uses to detect shared libraries, 8099*** $file_magic_cmd, produces output that libtool cannot recognize. 8100*** The result is that libtool may fail to recognize shared libraries 8101*** as such. This will affect the creation of libtool libraries that 8102*** depend on shared libraries, but programs linked with such libtool 8103*** libraries will work regardless of this problem. Nevertheless, you 8104*** may want to report the problem to your system manager and/or to 8105*** bug-libtool@gnu.org 8106 8107_LT_EOF 8108 fi ;; 8109 esac 8110 fi 8111 break 8112 fi 8113 done 8114 IFS="$lt_save_ifs" 8115 MAGIC_CMD="$lt_save_MAGIC_CMD" 8116 ;; 8117esac 8118fi 8119 8120MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8121if test -n "$MAGIC_CMD"; then 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8123$as_echo "$MAGIC_CMD" >&6; } 8124else 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8126$as_echo "no" >&6; } 8127fi 8128 8129 8130 8131 8132 8133if test -z "$lt_cv_path_MAGIC_CMD"; then 8134 if test -n "$ac_tool_prefix"; then 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8136$as_echo_n "checking for file... " >&6; } 8137if ${lt_cv_path_MAGIC_CMD+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 case $MAGIC_CMD in 8141[\\/*] | ?:[\\/]*) 8142 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8143 ;; 8144*) 8145 lt_save_MAGIC_CMD="$MAGIC_CMD" 8146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8147 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8148 for ac_dir in $ac_dummy; do 8149 IFS="$lt_save_ifs" 8150 test -z "$ac_dir" && ac_dir=. 8151 if test -f $ac_dir/file; then 8152 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8153 if test -n "$file_magic_test_file"; then 8154 case $deplibs_check_method in 8155 "file_magic "*) 8156 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8157 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8158 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8159 $EGREP "$file_magic_regex" > /dev/null; then 8160 : 8161 else 8162 cat <<_LT_EOF 1>&2 8163 8164*** Warning: the command libtool uses to detect shared libraries, 8165*** $file_magic_cmd, produces output that libtool cannot recognize. 8166*** The result is that libtool may fail to recognize shared libraries 8167*** as such. This will affect the creation of libtool libraries that 8168*** depend on shared libraries, but programs linked with such libtool 8169*** libraries will work regardless of this problem. Nevertheless, you 8170*** may want to report the problem to your system manager and/or to 8171*** bug-libtool@gnu.org 8172 8173_LT_EOF 8174 fi ;; 8175 esac 8176 fi 8177 break 8178 fi 8179 done 8180 IFS="$lt_save_ifs" 8181 MAGIC_CMD="$lt_save_MAGIC_CMD" 8182 ;; 8183esac 8184fi 8185 8186MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8187if test -n "$MAGIC_CMD"; then 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8189$as_echo "$MAGIC_CMD" >&6; } 8190else 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8192$as_echo "no" >&6; } 8193fi 8194 8195 8196 else 8197 MAGIC_CMD=: 8198 fi 8199fi 8200 8201 fi 8202 ;; 8203esac 8204 8205# Use C for the default configuration in the libtool script 8206 8207lt_save_CC="$CC" 8208ac_ext=c 8209ac_cpp='$CPP $CPPFLAGS' 8210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8212ac_compiler_gnu=$ac_cv_c_compiler_gnu 8213 8214 8215# Source file extension for C test sources. 8216ac_ext=c 8217 8218# Object file extension for compiled C test sources. 8219objext=o 8220objext=$objext 8221 8222# Code to be used in simple compile tests 8223lt_simple_compile_test_code="int some_variable = 0;" 8224 8225# Code to be used in simple link tests 8226lt_simple_link_test_code='int main(){return(0);}' 8227 8228 8229 8230 8231 8232 8233 8234# If no C compiler was specified, use CC. 8235LTCC=${LTCC-"$CC"} 8236 8237# If no C compiler flags were specified, use CFLAGS. 8238LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8239 8240# Allow CC to be a program name with arguments. 8241compiler=$CC 8242 8243# Save the default compiler, since it gets overwritten when the other 8244# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8245compiler_DEFAULT=$CC 8246 8247# save warnings/boilerplate of simple test code 8248ac_outfile=conftest.$ac_objext 8249echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8250eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8251_lt_compiler_boilerplate=`cat conftest.err` 8252$RM conftest* 8253 8254ac_outfile=conftest.$ac_objext 8255echo "$lt_simple_link_test_code" >conftest.$ac_ext 8256eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8257_lt_linker_boilerplate=`cat conftest.err` 8258$RM -r conftest* 8259 8260 8261## CAVEAT EMPTOR: 8262## There is no encapsulation within the following macros, do not change 8263## the running order or otherwise move them around unless you know exactly 8264## what you are doing... 8265if test -n "$compiler"; then 8266 8267lt_prog_compiler_no_builtin_flag= 8268 8269if test "$GCC" = yes; then 8270 case $cc_basename in 8271 nvcc*) 8272 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8273 *) 8274 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8275 esac 8276 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8278$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8279if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8280 $as_echo_n "(cached) " >&6 8281else 8282 lt_cv_prog_compiler_rtti_exceptions=no 8283 ac_outfile=conftest.$ac_objext 8284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8285 lt_compiler_flag="-fno-rtti -fno-exceptions" 8286 # Insert the option either (1) after the last *FLAGS variable, or 8287 # (2) before a word containing "conftest.", or (3) at the end. 8288 # Note that $ac_compile itself does not contain backslashes and begins 8289 # with a dollar sign (not a hyphen), so the echo should work correctly. 8290 # The option is referenced via a variable to avoid confusing sed. 8291 lt_compile=`echo "$ac_compile" | $SED \ 8292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8294 -e 's:$: $lt_compiler_flag:'` 8295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8296 (eval "$lt_compile" 2>conftest.err) 8297 ac_status=$? 8298 cat conftest.err >&5 8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8300 if (exit $ac_status) && test -s "$ac_outfile"; then 8301 # The compiler can only warn and ignore the option if not recognized 8302 # So say no if there are warnings other than the usual output. 8303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8306 lt_cv_prog_compiler_rtti_exceptions=yes 8307 fi 8308 fi 8309 $RM conftest* 8310 8311fi 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8313$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8314 8315if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8316 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8317else 8318 : 8319fi 8320 8321fi 8322 8323 8324 8325 8326 8327 8328 lt_prog_compiler_wl= 8329lt_prog_compiler_pic= 8330lt_prog_compiler_static= 8331 8332 8333 if test "$GCC" = yes; then 8334 lt_prog_compiler_wl='-Wl,' 8335 lt_prog_compiler_static='-static' 8336 8337 case $host_os in 8338 aix*) 8339 # All AIX code is PIC. 8340 if test "$host_cpu" = ia64; then 8341 # AIX 5 now supports IA64 processor 8342 lt_prog_compiler_static='-Bstatic' 8343 fi 8344 ;; 8345 8346 amigaos*) 8347 case $host_cpu in 8348 powerpc) 8349 # see comment about AmigaOS4 .so support 8350 lt_prog_compiler_pic='-fPIC' 8351 ;; 8352 m68k) 8353 # FIXME: we need at least 68020 code to build shared libraries, but 8354 # adding the `-m68020' flag to GCC prevents building anything better, 8355 # like `-m68040'. 8356 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8357 ;; 8358 esac 8359 ;; 8360 8361 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8362 # PIC is the default for these OSes. 8363 ;; 8364 8365 mingw* | cygwin* | pw32* | os2* | cegcc*) 8366 # This hack is so that the source file can tell whether it is being 8367 # built for inclusion in a dll (and should export symbols for example). 8368 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8369 # (--disable-auto-import) libraries 8370 lt_prog_compiler_pic='-DDLL_EXPORT' 8371 ;; 8372 8373 darwin* | rhapsody*) 8374 # PIC is the default on this platform 8375 # Common symbols not allowed in MH_DYLIB files 8376 lt_prog_compiler_pic='-fno-common' 8377 ;; 8378 8379 haiku*) 8380 # PIC is the default for Haiku. 8381 # The "-static" flag exists, but is broken. 8382 lt_prog_compiler_static= 8383 ;; 8384 8385 hpux*) 8386 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8387 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8388 # sets the default TLS model and affects inlining. 8389 case $host_cpu in 8390 hppa*64*) 8391 # +Z the default 8392 ;; 8393 *) 8394 lt_prog_compiler_pic='-fPIC' 8395 ;; 8396 esac 8397 ;; 8398 8399 interix[3-9]*) 8400 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8401 # Instead, we relocate shared libraries at runtime. 8402 ;; 8403 8404 msdosdjgpp*) 8405 # Just because we use GCC doesn't mean we suddenly get shared libraries 8406 # on systems that don't support them. 8407 lt_prog_compiler_can_build_shared=no 8408 enable_shared=no 8409 ;; 8410 8411 *nto* | *qnx*) 8412 # QNX uses GNU C++, but need to define -shared option too, otherwise 8413 # it will coredump. 8414 lt_prog_compiler_pic='-fPIC -shared' 8415 ;; 8416 8417 sysv4*MP*) 8418 if test -d /usr/nec; then 8419 lt_prog_compiler_pic=-Kconform_pic 8420 fi 8421 ;; 8422 8423 *) 8424 lt_prog_compiler_pic='-fPIC' 8425 ;; 8426 esac 8427 8428 case $cc_basename in 8429 nvcc*) # Cuda Compiler Driver 2.2 8430 lt_prog_compiler_wl='-Xlinker ' 8431 if test -n "$lt_prog_compiler_pic"; then 8432 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8433 fi 8434 ;; 8435 esac 8436 else 8437 # PORTME Check for flag to pass linker flags through the system compiler. 8438 case $host_os in 8439 aix*) 8440 lt_prog_compiler_wl='-Wl,' 8441 if test "$host_cpu" = ia64; then 8442 # AIX 5 now supports IA64 processor 8443 lt_prog_compiler_static='-Bstatic' 8444 else 8445 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8446 fi 8447 ;; 8448 8449 mingw* | cygwin* | pw32* | os2* | cegcc*) 8450 # This hack is so that the source file can tell whether it is being 8451 # built for inclusion in a dll (and should export symbols for example). 8452 lt_prog_compiler_pic='-DDLL_EXPORT' 8453 ;; 8454 8455 hpux9* | hpux10* | hpux11*) 8456 lt_prog_compiler_wl='-Wl,' 8457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8458 # not for PA HP-UX. 8459 case $host_cpu in 8460 hppa*64*|ia64*) 8461 # +Z the default 8462 ;; 8463 *) 8464 lt_prog_compiler_pic='+Z' 8465 ;; 8466 esac 8467 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8468 lt_prog_compiler_static='${wl}-a ${wl}archive' 8469 ;; 8470 8471 irix5* | irix6* | nonstopux*) 8472 lt_prog_compiler_wl='-Wl,' 8473 # PIC (with -KPIC) is the default. 8474 lt_prog_compiler_static='-non_shared' 8475 ;; 8476 8477 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8478 case $cc_basename in 8479 # old Intel for x86_64 which still supported -KPIC. 8480 ecc*) 8481 lt_prog_compiler_wl='-Wl,' 8482 lt_prog_compiler_pic='-KPIC' 8483 lt_prog_compiler_static='-static' 8484 ;; 8485 # icc used to be incompatible with GCC. 8486 # ICC 10 doesn't accept -KPIC any more. 8487 icc* | ifort*) 8488 lt_prog_compiler_wl='-Wl,' 8489 lt_prog_compiler_pic='-fPIC' 8490 lt_prog_compiler_static='-static' 8491 ;; 8492 # Lahey Fortran 8.1. 8493 lf95*) 8494 lt_prog_compiler_wl='-Wl,' 8495 lt_prog_compiler_pic='--shared' 8496 lt_prog_compiler_static='--static' 8497 ;; 8498 nagfor*) 8499 # NAG Fortran compiler 8500 lt_prog_compiler_wl='-Wl,-Wl,,' 8501 lt_prog_compiler_pic='-PIC' 8502 lt_prog_compiler_static='-Bstatic' 8503 ;; 8504 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8505 # Portland Group compilers (*not* the Pentium gcc compiler, 8506 # which looks to be a dead project) 8507 lt_prog_compiler_wl='-Wl,' 8508 lt_prog_compiler_pic='-fpic' 8509 lt_prog_compiler_static='-Bstatic' 8510 ;; 8511 ccc*) 8512 lt_prog_compiler_wl='-Wl,' 8513 # All Alpha code is PIC. 8514 lt_prog_compiler_static='-non_shared' 8515 ;; 8516 xl* | bgxl* | bgf* | mpixl*) 8517 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8518 lt_prog_compiler_wl='-Wl,' 8519 lt_prog_compiler_pic='-qpic' 8520 lt_prog_compiler_static='-qstaticlink' 8521 ;; 8522 *) 8523 case `$CC -V 2>&1 | sed 5q` in 8524 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8525 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8526 lt_prog_compiler_pic='-KPIC' 8527 lt_prog_compiler_static='-Bstatic' 8528 lt_prog_compiler_wl='' 8529 ;; 8530 *Sun\ F* | *Sun*Fortran*) 8531 lt_prog_compiler_pic='-KPIC' 8532 lt_prog_compiler_static='-Bstatic' 8533 lt_prog_compiler_wl='-Qoption ld ' 8534 ;; 8535 *Sun\ C*) 8536 # Sun C 5.9 8537 lt_prog_compiler_pic='-KPIC' 8538 lt_prog_compiler_static='-Bstatic' 8539 lt_prog_compiler_wl='-Wl,' 8540 ;; 8541 *Intel*\ [CF]*Compiler*) 8542 lt_prog_compiler_wl='-Wl,' 8543 lt_prog_compiler_pic='-fPIC' 8544 lt_prog_compiler_static='-static' 8545 ;; 8546 *Portland\ Group*) 8547 lt_prog_compiler_wl='-Wl,' 8548 lt_prog_compiler_pic='-fpic' 8549 lt_prog_compiler_static='-Bstatic' 8550 ;; 8551 esac 8552 ;; 8553 esac 8554 ;; 8555 8556 newsos6) 8557 lt_prog_compiler_pic='-KPIC' 8558 lt_prog_compiler_static='-Bstatic' 8559 ;; 8560 8561 *nto* | *qnx*) 8562 # QNX uses GNU C++, but need to define -shared option too, otherwise 8563 # it will coredump. 8564 lt_prog_compiler_pic='-fPIC -shared' 8565 ;; 8566 8567 osf3* | osf4* | osf5*) 8568 lt_prog_compiler_wl='-Wl,' 8569 # All OSF/1 code is PIC. 8570 lt_prog_compiler_static='-non_shared' 8571 ;; 8572 8573 rdos*) 8574 lt_prog_compiler_static='-non_shared' 8575 ;; 8576 8577 solaris*) 8578 lt_prog_compiler_pic='-KPIC' 8579 lt_prog_compiler_static='-Bstatic' 8580 case $cc_basename in 8581 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8582 lt_prog_compiler_wl='-Qoption ld ';; 8583 *) 8584 lt_prog_compiler_wl='-Wl,';; 8585 esac 8586 ;; 8587 8588 sunos4*) 8589 lt_prog_compiler_wl='-Qoption ld ' 8590 lt_prog_compiler_pic='-PIC' 8591 lt_prog_compiler_static='-Bstatic' 8592 ;; 8593 8594 sysv4 | sysv4.2uw2* | sysv4.3*) 8595 lt_prog_compiler_wl='-Wl,' 8596 lt_prog_compiler_pic='-KPIC' 8597 lt_prog_compiler_static='-Bstatic' 8598 ;; 8599 8600 sysv4*MP*) 8601 if test -d /usr/nec ;then 8602 lt_prog_compiler_pic='-Kconform_pic' 8603 lt_prog_compiler_static='-Bstatic' 8604 fi 8605 ;; 8606 8607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8608 lt_prog_compiler_wl='-Wl,' 8609 lt_prog_compiler_pic='-KPIC' 8610 lt_prog_compiler_static='-Bstatic' 8611 ;; 8612 8613 unicos*) 8614 lt_prog_compiler_wl='-Wl,' 8615 lt_prog_compiler_can_build_shared=no 8616 ;; 8617 8618 uts4*) 8619 lt_prog_compiler_pic='-pic' 8620 lt_prog_compiler_static='-Bstatic' 8621 ;; 8622 8623 *) 8624 lt_prog_compiler_can_build_shared=no 8625 ;; 8626 esac 8627 fi 8628 8629case $host_os in 8630 # For platforms which do not support PIC, -DPIC is meaningless: 8631 *djgpp*) 8632 lt_prog_compiler_pic= 8633 ;; 8634 *) 8635 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8636 ;; 8637esac 8638 8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8640$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8641if ${lt_cv_prog_compiler_pic+:} false; then : 8642 $as_echo_n "(cached) " >&6 8643else 8644 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8645fi 8646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8647$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8648lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8649 8650# 8651# Check to make sure the PIC flag actually works. 8652# 8653if test -n "$lt_prog_compiler_pic"; then 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8655$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8656if ${lt_cv_prog_compiler_pic_works+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 lt_cv_prog_compiler_pic_works=no 8660 ac_outfile=conftest.$ac_objext 8661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8662 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8663 # Insert the option either (1) after the last *FLAGS variable, or 8664 # (2) before a word containing "conftest.", or (3) at the end. 8665 # Note that $ac_compile itself does not contain backslashes and begins 8666 # with a dollar sign (not a hyphen), so the echo should work correctly. 8667 # The option is referenced via a variable to avoid confusing sed. 8668 lt_compile=`echo "$ac_compile" | $SED \ 8669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8671 -e 's:$: $lt_compiler_flag:'` 8672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8673 (eval "$lt_compile" 2>conftest.err) 8674 ac_status=$? 8675 cat conftest.err >&5 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 if (exit $ac_status) && test -s "$ac_outfile"; then 8678 # The compiler can only warn and ignore the option if not recognized 8679 # So say no if there are warnings other than the usual output. 8680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8683 lt_cv_prog_compiler_pic_works=yes 8684 fi 8685 fi 8686 $RM conftest* 8687 8688fi 8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8690$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8691 8692if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8693 case $lt_prog_compiler_pic in 8694 "" | " "*) ;; 8695 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8696 esac 8697else 8698 lt_prog_compiler_pic= 8699 lt_prog_compiler_can_build_shared=no 8700fi 8701 8702fi 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714# 8715# Check to make sure the static flag actually works. 8716# 8717wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8719$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8720if ${lt_cv_prog_compiler_static_works+:} false; then : 8721 $as_echo_n "(cached) " >&6 8722else 8723 lt_cv_prog_compiler_static_works=no 8724 save_LDFLAGS="$LDFLAGS" 8725 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8726 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8727 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8728 # The linker can only warn and ignore the option if not recognized 8729 # So say no if there are warnings 8730 if test -s conftest.err; then 8731 # Append any errors to the config.log. 8732 cat conftest.err 1>&5 8733 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8735 if diff conftest.exp conftest.er2 >/dev/null; then 8736 lt_cv_prog_compiler_static_works=yes 8737 fi 8738 else 8739 lt_cv_prog_compiler_static_works=yes 8740 fi 8741 fi 8742 $RM -r conftest* 8743 LDFLAGS="$save_LDFLAGS" 8744 8745fi 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8747$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8748 8749if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8750 : 8751else 8752 lt_prog_compiler_static= 8753fi 8754 8755 8756 8757 8758 8759 8760 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8762$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8763if ${lt_cv_prog_compiler_c_o+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 lt_cv_prog_compiler_c_o=no 8767 $RM -r conftest 2>/dev/null 8768 mkdir conftest 8769 cd conftest 8770 mkdir out 8771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8772 8773 lt_compiler_flag="-o out/conftest2.$ac_objext" 8774 # Insert the option either (1) after the last *FLAGS variable, or 8775 # (2) before a word containing "conftest.", or (3) at the end. 8776 # Note that $ac_compile itself does not contain backslashes and begins 8777 # with a dollar sign (not a hyphen), so the echo should work correctly. 8778 lt_compile=`echo "$ac_compile" | $SED \ 8779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8781 -e 's:$: $lt_compiler_flag:'` 8782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8783 (eval "$lt_compile" 2>out/conftest.err) 8784 ac_status=$? 8785 cat out/conftest.err >&5 8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8787 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8788 then 8789 # The compiler can only warn and ignore the option if not recognized 8790 # So say no if there are warnings 8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8794 lt_cv_prog_compiler_c_o=yes 8795 fi 8796 fi 8797 chmod u+w . 2>&5 8798 $RM conftest* 8799 # SGI C++ compiler will create directory out/ii_files/ for 8800 # template instantiation 8801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8802 $RM out/* && rmdir out 8803 cd .. 8804 $RM -r conftest 8805 $RM conftest* 8806 8807fi 8808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8809$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8810 8811 8812 8813 8814 8815 8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8817$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8818if ${lt_cv_prog_compiler_c_o+:} false; then : 8819 $as_echo_n "(cached) " >&6 8820else 8821 lt_cv_prog_compiler_c_o=no 8822 $RM -r conftest 2>/dev/null 8823 mkdir conftest 8824 cd conftest 8825 mkdir out 8826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8827 8828 lt_compiler_flag="-o out/conftest2.$ac_objext" 8829 # Insert the option either (1) after the last *FLAGS variable, or 8830 # (2) before a word containing "conftest.", or (3) at the end. 8831 # Note that $ac_compile itself does not contain backslashes and begins 8832 # with a dollar sign (not a hyphen), so the echo should work correctly. 8833 lt_compile=`echo "$ac_compile" | $SED \ 8834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8836 -e 's:$: $lt_compiler_flag:'` 8837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8838 (eval "$lt_compile" 2>out/conftest.err) 8839 ac_status=$? 8840 cat out/conftest.err >&5 8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8842 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8843 then 8844 # The compiler can only warn and ignore the option if not recognized 8845 # So say no if there are warnings 8846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8849 lt_cv_prog_compiler_c_o=yes 8850 fi 8851 fi 8852 chmod u+w . 2>&5 8853 $RM conftest* 8854 # SGI C++ compiler will create directory out/ii_files/ for 8855 # template instantiation 8856 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8857 $RM out/* && rmdir out 8858 cd .. 8859 $RM -r conftest 8860 $RM conftest* 8861 8862fi 8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8864$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8865 8866 8867 8868 8869hard_links="nottested" 8870if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8871 # do not overwrite the value of need_locks provided by the user 8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8873$as_echo_n "checking if we can lock with hard links... " >&6; } 8874 hard_links=yes 8875 $RM conftest* 8876 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8877 touch conftest.a 8878 ln conftest.a conftest.b 2>&5 || hard_links=no 8879 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8881$as_echo "$hard_links" >&6; } 8882 if test "$hard_links" = no; then 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8884$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8885 need_locks=warn 8886 fi 8887else 8888 need_locks=no 8889fi 8890 8891 8892 8893 8894 8895 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8897$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8898 8899 runpath_var= 8900 allow_undefined_flag= 8901 always_export_symbols=no 8902 archive_cmds= 8903 archive_expsym_cmds= 8904 compiler_needs_object=no 8905 enable_shared_with_static_runtimes=no 8906 export_dynamic_flag_spec= 8907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8908 hardcode_automatic=no 8909 hardcode_direct=no 8910 hardcode_direct_absolute=no 8911 hardcode_libdir_flag_spec= 8912 hardcode_libdir_separator= 8913 hardcode_minus_L=no 8914 hardcode_shlibpath_var=unsupported 8915 inherit_rpath=no 8916 link_all_deplibs=unknown 8917 module_cmds= 8918 module_expsym_cmds= 8919 old_archive_from_new_cmds= 8920 old_archive_from_expsyms_cmds= 8921 thread_safe_flag_spec= 8922 whole_archive_flag_spec= 8923 # include_expsyms should be a list of space-separated symbols to be *always* 8924 # included in the symbol list 8925 include_expsyms= 8926 # exclude_expsyms can be an extended regexp of symbols to exclude 8927 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8928 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8929 # as well as any symbol that contains `d'. 8930 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8932 # platforms (ab)use it in PIC code, but their linkers get confused if 8933 # the symbol is explicitly referenced. Since portable code cannot 8934 # rely on this symbol name, it's probably fine to never include it in 8935 # preloaded symbol tables. 8936 # Exclude shared library initialization/finalization symbols. 8937 extract_expsyms_cmds= 8938 8939 case $host_os in 8940 cygwin* | mingw* | pw32* | cegcc*) 8941 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8942 # When not using gcc, we currently assume that we are using 8943 # Microsoft Visual C++. 8944 if test "$GCC" != yes; then 8945 with_gnu_ld=no 8946 fi 8947 ;; 8948 interix*) 8949 # we just hope/assume this is gcc and not c89 (= MSVC++) 8950 with_gnu_ld=yes 8951 ;; 8952 openbsd*) 8953 with_gnu_ld=no 8954 ;; 8955 esac 8956 8957 ld_shlibs=yes 8958 8959 # On some targets, GNU ld is compatible enough with the native linker 8960 # that we're better off using the native interface for both. 8961 lt_use_gnu_ld_interface=no 8962 if test "$with_gnu_ld" = yes; then 8963 case $host_os in 8964 aix*) 8965 # The AIX port of GNU ld has always aspired to compatibility 8966 # with the native linker. However, as the warning in the GNU ld 8967 # block says, versions before 2.19.5* couldn't really create working 8968 # shared libraries, regardless of the interface used. 8969 case `$LD -v 2>&1` in 8970 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8971 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8972 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8973 *) 8974 lt_use_gnu_ld_interface=yes 8975 ;; 8976 esac 8977 ;; 8978 *) 8979 lt_use_gnu_ld_interface=yes 8980 ;; 8981 esac 8982 fi 8983 8984 if test "$lt_use_gnu_ld_interface" = yes; then 8985 # If archive_cmds runs LD, not CC, wlarc should be empty 8986 wlarc='${wl}' 8987 8988 # Set some defaults for GNU ld with shared library support. These 8989 # are reset later if shared libraries are not supported. Putting them 8990 # here allows them to be overridden if necessary. 8991 runpath_var=LD_RUN_PATH 8992 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8993 export_dynamic_flag_spec='${wl}--export-dynamic' 8994 # ancient GNU ld didn't support --whole-archive et. al. 8995 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8996 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8997 else 8998 whole_archive_flag_spec= 8999 fi 9000 supports_anon_versioning=no 9001 case `$LD -v 2>&1` in 9002 *GNU\ gold*) supports_anon_versioning=yes ;; 9003 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9004 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9005 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9006 *\ 2.11.*) ;; # other 2.11 versions 9007 *) supports_anon_versioning=yes ;; 9008 esac 9009 9010 # See if GNU ld supports shared libraries. 9011 case $host_os in 9012 aix[3-9]*) 9013 # On AIX/PPC, the GNU linker is very broken 9014 if test "$host_cpu" != ia64; then 9015 ld_shlibs=no 9016 cat <<_LT_EOF 1>&2 9017 9018*** Warning: the GNU linker, at least up to release 2.19, is reported 9019*** to be unable to reliably create shared libraries on AIX. 9020*** Therefore, libtool is disabling shared libraries support. If you 9021*** really care for shared libraries, you may want to install binutils 9022*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9023*** You will then need to restart the configuration process. 9024 9025_LT_EOF 9026 fi 9027 ;; 9028 9029 amigaos*) 9030 case $host_cpu in 9031 powerpc) 9032 # see comment about AmigaOS4 .so support 9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9034 archive_expsym_cmds='' 9035 ;; 9036 m68k) 9037 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)' 9038 hardcode_libdir_flag_spec='-L$libdir' 9039 hardcode_minus_L=yes 9040 ;; 9041 esac 9042 ;; 9043 9044 beos*) 9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9046 allow_undefined_flag=unsupported 9047 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9048 # support --undefined. This deserves some investigation. FIXME 9049 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9050 else 9051 ld_shlibs=no 9052 fi 9053 ;; 9054 9055 cygwin* | mingw* | pw32* | cegcc*) 9056 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9057 # as there is no search path for DLLs. 9058 hardcode_libdir_flag_spec='-L$libdir' 9059 export_dynamic_flag_spec='${wl}--export-all-symbols' 9060 allow_undefined_flag=unsupported 9061 always_export_symbols=no 9062 enable_shared_with_static_runtimes=yes 9063 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9064 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9065 9066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9068 # If the export-symbols file already is a .def file (1st line 9069 # is EXPORTS), use it as is; otherwise, prepend... 9070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9071 cp $export_symbols $output_objdir/$soname.def; 9072 else 9073 echo EXPORTS > $output_objdir/$soname.def; 9074 cat $export_symbols >> $output_objdir/$soname.def; 9075 fi~ 9076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9077 else 9078 ld_shlibs=no 9079 fi 9080 ;; 9081 9082 haiku*) 9083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9084 link_all_deplibs=yes 9085 ;; 9086 9087 interix[3-9]*) 9088 hardcode_direct=no 9089 hardcode_shlibpath_var=no 9090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9091 export_dynamic_flag_spec='${wl}-E' 9092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9093 # Instead, shared libraries are loaded at an image base (0x10000000 by 9094 # default) and relocated if they conflict, which is a slow very memory 9095 # consuming and fragmenting process. To avoid this, we pick a random, 9096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9097 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9099 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' 9100 ;; 9101 9102 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9103 tmp_diet=no 9104 if test "$host_os" = linux-dietlibc; then 9105 case $cc_basename in 9106 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9107 esac 9108 fi 9109 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9110 && test "$tmp_diet" = no 9111 then 9112 tmp_addflag=' $pic_flag' 9113 tmp_sharedflag='-shared' 9114 case $cc_basename,$host_cpu in 9115 pgcc*) # Portland Group C compiler 9116 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' 9117 tmp_addflag=' $pic_flag' 9118 ;; 9119 pgf77* | pgf90* | pgf95* | pgfortran*) 9120 # Portland Group f77 and f90 compilers 9121 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' 9122 tmp_addflag=' $pic_flag -Mnomain' ;; 9123 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9124 tmp_addflag=' -i_dynamic' ;; 9125 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9126 tmp_addflag=' -i_dynamic -nofor_main' ;; 9127 ifc* | ifort*) # Intel Fortran compiler 9128 tmp_addflag=' -nofor_main' ;; 9129 lf95*) # Lahey Fortran 8.1 9130 whole_archive_flag_spec= 9131 tmp_sharedflag='--shared' ;; 9132 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9133 tmp_sharedflag='-qmkshrobj' 9134 tmp_addflag= ;; 9135 nvcc*) # Cuda Compiler Driver 2.2 9136 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' 9137 compiler_needs_object=yes 9138 ;; 9139 esac 9140 case `$CC -V 2>&1 | sed 5q` in 9141 *Sun\ C*) # Sun C 5.9 9142 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' 9143 compiler_needs_object=yes 9144 tmp_sharedflag='-G' ;; 9145 *Sun\ F*) # Sun Fortran 8.3 9146 tmp_sharedflag='-G' ;; 9147 esac 9148 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9149 9150 if test "x$supports_anon_versioning" = xyes; then 9151 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9153 echo "local: *; };" >> $output_objdir/$libname.ver~ 9154 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9155 fi 9156 9157 case $cc_basename in 9158 xlf* | bgf* | bgxlf* | mpixlf*) 9159 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9160 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9162 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9163 if test "x$supports_anon_versioning" = xyes; then 9164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9166 echo "local: *; };" >> $output_objdir/$libname.ver~ 9167 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9168 fi 9169 ;; 9170 esac 9171 else 9172 ld_shlibs=no 9173 fi 9174 ;; 9175 9176 netbsd*) 9177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9179 wlarc= 9180 else 9181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9182 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9183 fi 9184 ;; 9185 9186 solaris*) 9187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9188 ld_shlibs=no 9189 cat <<_LT_EOF 1>&2 9190 9191*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9192*** create shared libraries on Solaris systems. Therefore, libtool 9193*** is disabling shared libraries support. We urge you to upgrade GNU 9194*** binutils to release 2.9.1 or newer. Another option is to modify 9195*** your PATH or compiler configuration so that the native linker is 9196*** used, and then restart. 9197 9198_LT_EOF 9199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9201 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9202 else 9203 ld_shlibs=no 9204 fi 9205 ;; 9206 9207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9208 case `$LD -v 2>&1` in 9209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9210 ld_shlibs=no 9211 cat <<_LT_EOF 1>&2 9212 9213*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9214*** reliably create shared libraries on SCO systems. Therefore, libtool 9215*** is disabling shared libraries support. We urge you to upgrade GNU 9216*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9217*** your PATH or compiler configuration so that the native linker is 9218*** used, and then restart. 9219 9220_LT_EOF 9221 ;; 9222 *) 9223 # For security reasons, it is highly recommended that you always 9224 # use absolute paths for naming shared libraries, and exclude the 9225 # DT_RUNPATH tag from executables and libraries. But doing so 9226 # requires that you compile everything twice, which is a pain. 9227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9231 else 9232 ld_shlibs=no 9233 fi 9234 ;; 9235 esac 9236 ;; 9237 9238 sunos4*) 9239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9240 wlarc= 9241 hardcode_direct=yes 9242 hardcode_shlibpath_var=no 9243 ;; 9244 9245 *) 9246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9247 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9248 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9249 else 9250 ld_shlibs=no 9251 fi 9252 ;; 9253 esac 9254 9255 if test "$ld_shlibs" = no; then 9256 runpath_var= 9257 hardcode_libdir_flag_spec= 9258 export_dynamic_flag_spec= 9259 whole_archive_flag_spec= 9260 fi 9261 else 9262 # PORTME fill in a description of your system's linker (not GNU ld) 9263 case $host_os in 9264 aix3*) 9265 allow_undefined_flag=unsupported 9266 always_export_symbols=yes 9267 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' 9268 # Note: this linker hardcodes the directories in LIBPATH if there 9269 # are no directories specified by -L. 9270 hardcode_minus_L=yes 9271 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9272 # Neither direct hardcoding nor static linking is supported with a 9273 # broken collect2. 9274 hardcode_direct=unsupported 9275 fi 9276 ;; 9277 9278 aix[4-9]*) 9279 if test "$host_cpu" = ia64; then 9280 # On IA64, the linker does run time linking by default, so we don't 9281 # have to do anything special. 9282 aix_use_runtimelinking=no 9283 exp_sym_flag='-Bexport' 9284 no_entry_flag="" 9285 else 9286 # If we're using GNU nm, then we don't want the "-C" option. 9287 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9288 # Also, AIX nm treats weak defined symbols like other global 9289 # defined symbols, whereas GNU nm marks them as "W". 9290 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9291 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' 9292 else 9293 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9294 fi 9295 aix_use_runtimelinking=no 9296 9297 # Test if we are trying to use run time linking or normal 9298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9299 # need to do runtime linking. 9300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9301 for ld_flag in $LDFLAGS; do 9302 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9303 aix_use_runtimelinking=yes 9304 break 9305 fi 9306 done 9307 ;; 9308 esac 9309 9310 exp_sym_flag='-bexport' 9311 no_entry_flag='-bnoentry' 9312 fi 9313 9314 # When large executables or shared objects are built, AIX ld can 9315 # have problems creating the table of contents. If linking a library 9316 # or program results in "error TOC overflow" add -mminimal-toc to 9317 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9318 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9319 9320 archive_cmds='' 9321 hardcode_direct=yes 9322 hardcode_direct_absolute=yes 9323 hardcode_libdir_separator=':' 9324 link_all_deplibs=yes 9325 file_list_spec='${wl}-f,' 9326 9327 if test "$GCC" = yes; then 9328 case $host_os in aix4.[012]|aix4.[012].*) 9329 # We only want to do this on AIX 4.2 and lower, the check 9330 # below for broken collect2 doesn't work under 4.3+ 9331 collect2name=`${CC} -print-prog-name=collect2` 9332 if test -f "$collect2name" && 9333 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9334 then 9335 # We have reworked collect2 9336 : 9337 else 9338 # We have old collect2 9339 hardcode_direct=unsupported 9340 # It fails to find uninstalled libraries when the uninstalled 9341 # path is not listed in the libpath. Setting hardcode_minus_L 9342 # to unsupported forces relinking 9343 hardcode_minus_L=yes 9344 hardcode_libdir_flag_spec='-L$libdir' 9345 hardcode_libdir_separator= 9346 fi 9347 ;; 9348 esac 9349 shared_flag='-shared' 9350 if test "$aix_use_runtimelinking" = yes; then 9351 shared_flag="$shared_flag "'${wl}-G' 9352 fi 9353 else 9354 # not using gcc 9355 if test "$host_cpu" = ia64; then 9356 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9357 # chokes on -Wl,-G. The following line is correct: 9358 shared_flag='-G' 9359 else 9360 if test "$aix_use_runtimelinking" = yes; then 9361 shared_flag='${wl}-G' 9362 else 9363 shared_flag='${wl}-bM:SRE' 9364 fi 9365 fi 9366 fi 9367 9368 export_dynamic_flag_spec='${wl}-bexpall' 9369 # It seems that -bexpall does not export symbols beginning with 9370 # underscore (_), so it is better to generate a list of symbols to export. 9371 always_export_symbols=yes 9372 if test "$aix_use_runtimelinking" = yes; then 9373 # Warning - without using the other runtime loading flags (-brtl), 9374 # -berok will link without error, but may produce a broken library. 9375 allow_undefined_flag='-berok' 9376 # Determine the default libpath from the value encoded in an 9377 # empty executable. 9378 if test "${lt_cv_aix_libpath+set}" = set; then 9379 aix_libpath=$lt_cv_aix_libpath 9380else 9381 if ${lt_cv_aix_libpath_+:} false; then : 9382 $as_echo_n "(cached) " >&6 9383else 9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9385/* end confdefs.h. */ 9386 9387int 9388main () 9389{ 9390 9391 ; 9392 return 0; 9393} 9394_ACEOF 9395if ac_fn_c_try_link "$LINENO"; then : 9396 9397 lt_aix_libpath_sed=' 9398 /Import File Strings/,/^$/ { 9399 /^0/ { 9400 s/^0 *\([^ ]*\) *$/\1/ 9401 p 9402 } 9403 }' 9404 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9405 # Check for a 64-bit object if we didn't find anything. 9406 if test -z "$lt_cv_aix_libpath_"; then 9407 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9408 fi 9409fi 9410rm -f core conftest.err conftest.$ac_objext \ 9411 conftest$ac_exeext conftest.$ac_ext 9412 if test -z "$lt_cv_aix_libpath_"; then 9413 lt_cv_aix_libpath_="/usr/lib:/lib" 9414 fi 9415 9416fi 9417 9418 aix_libpath=$lt_cv_aix_libpath_ 9419fi 9420 9421 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9422 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" 9423 else 9424 if test "$host_cpu" = ia64; then 9425 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9426 allow_undefined_flag="-z nodefs" 9427 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" 9428 else 9429 # Determine the default libpath from the value encoded in an 9430 # empty executable. 9431 if test "${lt_cv_aix_libpath+set}" = set; then 9432 aix_libpath=$lt_cv_aix_libpath 9433else 9434 if ${lt_cv_aix_libpath_+:} false; then : 9435 $as_echo_n "(cached) " >&6 9436else 9437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9438/* end confdefs.h. */ 9439 9440int 9441main () 9442{ 9443 9444 ; 9445 return 0; 9446} 9447_ACEOF 9448if ac_fn_c_try_link "$LINENO"; then : 9449 9450 lt_aix_libpath_sed=' 9451 /Import File Strings/,/^$/ { 9452 /^0/ { 9453 s/^0 *\([^ ]*\) *$/\1/ 9454 p 9455 } 9456 }' 9457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9458 # Check for a 64-bit object if we didn't find anything. 9459 if test -z "$lt_cv_aix_libpath_"; then 9460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9461 fi 9462fi 9463rm -f core conftest.err conftest.$ac_objext \ 9464 conftest$ac_exeext conftest.$ac_ext 9465 if test -z "$lt_cv_aix_libpath_"; then 9466 lt_cv_aix_libpath_="/usr/lib:/lib" 9467 fi 9468 9469fi 9470 9471 aix_libpath=$lt_cv_aix_libpath_ 9472fi 9473 9474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9475 # Warning - without using the other run time loading flags, 9476 # -berok will link without error, but may produce a broken library. 9477 no_undefined_flag=' ${wl}-bernotok' 9478 allow_undefined_flag=' ${wl}-berok' 9479 if test "$with_gnu_ld" = yes; then 9480 # We only use this code for GNU lds that support --whole-archive. 9481 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9482 else 9483 # Exported symbols can be pulled into shared objects from archives 9484 whole_archive_flag_spec='$convenience' 9485 fi 9486 archive_cmds_need_lc=yes 9487 # This is similar to how AIX traditionally builds its shared libraries. 9488 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' 9489 fi 9490 fi 9491 ;; 9492 9493 amigaos*) 9494 case $host_cpu in 9495 powerpc) 9496 # see comment about AmigaOS4 .so support 9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9498 archive_expsym_cmds='' 9499 ;; 9500 m68k) 9501 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)' 9502 hardcode_libdir_flag_spec='-L$libdir' 9503 hardcode_minus_L=yes 9504 ;; 9505 esac 9506 ;; 9507 9508 bsdi[45]*) 9509 export_dynamic_flag_spec=-rdynamic 9510 ;; 9511 9512 cygwin* | mingw* | pw32* | cegcc*) 9513 # When not using gcc, we currently assume that we are using 9514 # Microsoft Visual C++. 9515 # hardcode_libdir_flag_spec is actually meaningless, as there is 9516 # no search path for DLLs. 9517 case $cc_basename in 9518 cl*) 9519 # Native MSVC 9520 hardcode_libdir_flag_spec=' ' 9521 allow_undefined_flag=unsupported 9522 always_export_symbols=yes 9523 file_list_spec='@' 9524 # Tell ltmain to make .lib files, not .a files. 9525 libext=lib 9526 # Tell ltmain to make .dll files, not .so files. 9527 shrext_cmds=".dll" 9528 # FIXME: Setting linknames here is a bad hack. 9529 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9530 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9531 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9532 else 9533 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9534 fi~ 9535 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9536 linknames=' 9537 # The linker will not automatically build a static lib if we build a DLL. 9538 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9539 enable_shared_with_static_runtimes=yes 9540 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9541 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9542 # Don't use ranlib 9543 old_postinstall_cmds='chmod 644 $oldlib' 9544 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9545 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9546 case $lt_outputfile in 9547 *.exe|*.EXE) ;; 9548 *) 9549 lt_outputfile="$lt_outputfile.exe" 9550 lt_tool_outputfile="$lt_tool_outputfile.exe" 9551 ;; 9552 esac~ 9553 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9554 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9555 $RM "$lt_outputfile.manifest"; 9556 fi' 9557 ;; 9558 *) 9559 # Assume MSVC wrapper 9560 hardcode_libdir_flag_spec=' ' 9561 allow_undefined_flag=unsupported 9562 # Tell ltmain to make .lib files, not .a files. 9563 libext=lib 9564 # Tell ltmain to make .dll files, not .so files. 9565 shrext_cmds=".dll" 9566 # FIXME: Setting linknames here is a bad hack. 9567 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9568 # The linker will automatically build a .lib file if we build a DLL. 9569 old_archive_from_new_cmds='true' 9570 # FIXME: Should let the user specify the lib program. 9571 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9572 enable_shared_with_static_runtimes=yes 9573 ;; 9574 esac 9575 ;; 9576 9577 darwin* | rhapsody*) 9578 9579 9580 archive_cmds_need_lc=no 9581 hardcode_direct=no 9582 hardcode_automatic=yes 9583 hardcode_shlibpath_var=unsupported 9584 if test "$lt_cv_ld_force_load" = "yes"; then 9585 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\"`' 9586 9587 else 9588 whole_archive_flag_spec='' 9589 fi 9590 link_all_deplibs=yes 9591 allow_undefined_flag="$_lt_dar_allow_undefined" 9592 case $cc_basename in 9593 ifort*) _lt_dar_can_shared=yes ;; 9594 *) _lt_dar_can_shared=$GCC ;; 9595 esac 9596 if test "$_lt_dar_can_shared" = "yes"; then 9597 output_verbose_link_cmd=func_echo_all 9598 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9599 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9600 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9601 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}" 9602 9603 else 9604 ld_shlibs=no 9605 fi 9606 9607 ;; 9608 9609 dgux*) 9610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9611 hardcode_libdir_flag_spec='-L$libdir' 9612 hardcode_shlibpath_var=no 9613 ;; 9614 9615 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9616 # support. Future versions do this automatically, but an explicit c++rt0.o 9617 # does not break anything, and helps significantly (at the cost of a little 9618 # extra space). 9619 freebsd2.2*) 9620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9621 hardcode_libdir_flag_spec='-R$libdir' 9622 hardcode_direct=yes 9623 hardcode_shlibpath_var=no 9624 ;; 9625 9626 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9627 freebsd2.*) 9628 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9629 hardcode_direct=yes 9630 hardcode_minus_L=yes 9631 hardcode_shlibpath_var=no 9632 ;; 9633 9634 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9635 freebsd* | dragonfly*) 9636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9637 hardcode_libdir_flag_spec='-R$libdir' 9638 hardcode_direct=yes 9639 hardcode_shlibpath_var=no 9640 ;; 9641 9642 hpux9*) 9643 if test "$GCC" = yes; then 9644 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9645 else 9646 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' 9647 fi 9648 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9649 hardcode_libdir_separator=: 9650 hardcode_direct=yes 9651 9652 # hardcode_minus_L: Not really in the search PATH, 9653 # but as the default location of the library. 9654 hardcode_minus_L=yes 9655 export_dynamic_flag_spec='${wl}-E' 9656 ;; 9657 9658 hpux10*) 9659 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9660 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9661 else 9662 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9663 fi 9664 if test "$with_gnu_ld" = no; then 9665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9666 hardcode_libdir_separator=: 9667 hardcode_direct=yes 9668 hardcode_direct_absolute=yes 9669 export_dynamic_flag_spec='${wl}-E' 9670 # hardcode_minus_L: Not really in the search PATH, 9671 # but as the default location of the library. 9672 hardcode_minus_L=yes 9673 fi 9674 ;; 9675 9676 hpux11*) 9677 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9678 case $host_cpu in 9679 hppa*64*) 9680 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9681 ;; 9682 ia64*) 9683 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9684 ;; 9685 *) 9686 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9687 ;; 9688 esac 9689 else 9690 case $host_cpu in 9691 hppa*64*) 9692 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9693 ;; 9694 ia64*) 9695 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9696 ;; 9697 *) 9698 9699 # Older versions of the 11.00 compiler do not understand -b yet 9700 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9702$as_echo_n "checking if $CC understands -b... " >&6; } 9703if ${lt_cv_prog_compiler__b+:} false; then : 9704 $as_echo_n "(cached) " >&6 9705else 9706 lt_cv_prog_compiler__b=no 9707 save_LDFLAGS="$LDFLAGS" 9708 LDFLAGS="$LDFLAGS -b" 9709 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9711 # The linker can only warn and ignore the option if not recognized 9712 # So say no if there are warnings 9713 if test -s conftest.err; then 9714 # Append any errors to the config.log. 9715 cat conftest.err 1>&5 9716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9718 if diff conftest.exp conftest.er2 >/dev/null; then 9719 lt_cv_prog_compiler__b=yes 9720 fi 9721 else 9722 lt_cv_prog_compiler__b=yes 9723 fi 9724 fi 9725 $RM -r conftest* 9726 LDFLAGS="$save_LDFLAGS" 9727 9728fi 9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9730$as_echo "$lt_cv_prog_compiler__b" >&6; } 9731 9732if test x"$lt_cv_prog_compiler__b" = xyes; then 9733 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9734else 9735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9736fi 9737 9738 ;; 9739 esac 9740 fi 9741 if test "$with_gnu_ld" = no; then 9742 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9743 hardcode_libdir_separator=: 9744 9745 case $host_cpu in 9746 hppa*64*|ia64*) 9747 hardcode_direct=no 9748 hardcode_shlibpath_var=no 9749 ;; 9750 *) 9751 hardcode_direct=yes 9752 hardcode_direct_absolute=yes 9753 export_dynamic_flag_spec='${wl}-E' 9754 9755 # hardcode_minus_L: Not really in the search PATH, 9756 # but as the default location of the library. 9757 hardcode_minus_L=yes 9758 ;; 9759 esac 9760 fi 9761 ;; 9762 9763 irix5* | irix6* | nonstopux*) 9764 if test "$GCC" = yes; then 9765 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9766 # Try to use the -exported_symbol ld option, if it does not 9767 # work, assume that -exports_file does not work either and 9768 # implicitly export all symbols. 9769 # This should be the same for all languages, so no per-tag cache variable. 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9771$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9772if ${lt_cv_irix_exported_symbol+:} false; then : 9773 $as_echo_n "(cached) " >&6 9774else 9775 save_LDFLAGS="$LDFLAGS" 9776 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778/* end confdefs.h. */ 9779int foo (void) { return 0; } 9780_ACEOF 9781if ac_fn_c_try_link "$LINENO"; then : 9782 lt_cv_irix_exported_symbol=yes 9783else 9784 lt_cv_irix_exported_symbol=no 9785fi 9786rm -f core conftest.err conftest.$ac_objext \ 9787 conftest$ac_exeext conftest.$ac_ext 9788 LDFLAGS="$save_LDFLAGS" 9789fi 9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9791$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9792 if test "$lt_cv_irix_exported_symbol" = yes; then 9793 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9794 fi 9795 else 9796 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' 9797 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' 9798 fi 9799 archive_cmds_need_lc='no' 9800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9801 hardcode_libdir_separator=: 9802 inherit_rpath=yes 9803 link_all_deplibs=yes 9804 ;; 9805 9806 netbsd*) 9807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9809 else 9810 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9811 fi 9812 hardcode_libdir_flag_spec='-R$libdir' 9813 hardcode_direct=yes 9814 hardcode_shlibpath_var=no 9815 ;; 9816 9817 newsos6) 9818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9819 hardcode_direct=yes 9820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9821 hardcode_libdir_separator=: 9822 hardcode_shlibpath_var=no 9823 ;; 9824 9825 *nto* | *qnx*) 9826 ;; 9827 9828 openbsd*) 9829 if test -f /usr/libexec/ld.so; then 9830 hardcode_direct=yes 9831 hardcode_shlibpath_var=no 9832 hardcode_direct_absolute=yes 9833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9835 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9836 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9837 export_dynamic_flag_spec='${wl}-E' 9838 else 9839 case $host_os in 9840 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9842 hardcode_libdir_flag_spec='-R$libdir' 9843 ;; 9844 *) 9845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9846 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9847 ;; 9848 esac 9849 fi 9850 else 9851 ld_shlibs=no 9852 fi 9853 ;; 9854 9855 os2*) 9856 hardcode_libdir_flag_spec='-L$libdir' 9857 hardcode_minus_L=yes 9858 allow_undefined_flag=unsupported 9859 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' 9860 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9861 ;; 9862 9863 osf3*) 9864 if test "$GCC" = yes; then 9865 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9866 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' 9867 else 9868 allow_undefined_flag=' -expect_unresolved \*' 9869 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' 9870 fi 9871 archive_cmds_need_lc='no' 9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9873 hardcode_libdir_separator=: 9874 ;; 9875 9876 osf4* | osf5*) # as osf3* with the addition of -msym flag 9877 if test "$GCC" = yes; then 9878 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9879 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9880 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9881 else 9882 allow_undefined_flag=' -expect_unresolved \*' 9883 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' 9884 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~ 9885 $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' 9886 9887 # Both c and cxx compiler support -rpath directly 9888 hardcode_libdir_flag_spec='-rpath $libdir' 9889 fi 9890 archive_cmds_need_lc='no' 9891 hardcode_libdir_separator=: 9892 ;; 9893 9894 solaris*) 9895 no_undefined_flag=' -z defs' 9896 if test "$GCC" = yes; then 9897 wlarc='${wl}' 9898 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9899 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9900 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9901 else 9902 case `$CC -V 2>&1` in 9903 *"Compilers 5.0"*) 9904 wlarc='' 9905 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9908 ;; 9909 *) 9910 wlarc='${wl}' 9911 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9912 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9913 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9914 ;; 9915 esac 9916 fi 9917 hardcode_libdir_flag_spec='-R$libdir' 9918 hardcode_shlibpath_var=no 9919 case $host_os in 9920 solaris2.[0-5] | solaris2.[0-5].*) ;; 9921 *) 9922 # The compiler driver will combine and reorder linker options, 9923 # but understands `-z linker_flag'. GCC discards it without `$wl', 9924 # but is careful enough not to reorder. 9925 # Supported since Solaris 2.6 (maybe 2.5.1?) 9926 if test "$GCC" = yes; then 9927 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9928 else 9929 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9930 fi 9931 ;; 9932 esac 9933 link_all_deplibs=yes 9934 ;; 9935 9936 sunos4*) 9937 if test "x$host_vendor" = xsequent; then 9938 # Use $CC to link under sequent, because it throws in some extra .o 9939 # files that make .init and .fini sections work. 9940 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9941 else 9942 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9943 fi 9944 hardcode_libdir_flag_spec='-L$libdir' 9945 hardcode_direct=yes 9946 hardcode_minus_L=yes 9947 hardcode_shlibpath_var=no 9948 ;; 9949 9950 sysv4) 9951 case $host_vendor in 9952 sni) 9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9954 hardcode_direct=yes # is this really true??? 9955 ;; 9956 siemens) 9957 ## LD is ld it makes a PLAMLIB 9958 ## CC just makes a GrossModule. 9959 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9960 reload_cmds='$CC -r -o $output$reload_objs' 9961 hardcode_direct=no 9962 ;; 9963 motorola) 9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9965 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9966 ;; 9967 esac 9968 runpath_var='LD_RUN_PATH' 9969 hardcode_shlibpath_var=no 9970 ;; 9971 9972 sysv4.3*) 9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9974 hardcode_shlibpath_var=no 9975 export_dynamic_flag_spec='-Bexport' 9976 ;; 9977 9978 sysv4*MP*) 9979 if test -d /usr/nec; then 9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9981 hardcode_shlibpath_var=no 9982 runpath_var=LD_RUN_PATH 9983 hardcode_runpath_var=yes 9984 ld_shlibs=yes 9985 fi 9986 ;; 9987 9988 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9989 no_undefined_flag='${wl}-z,text' 9990 archive_cmds_need_lc=no 9991 hardcode_shlibpath_var=no 9992 runpath_var='LD_RUN_PATH' 9993 9994 if test "$GCC" = yes; then 9995 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9996 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9997 else 9998 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9999 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10000 fi 10001 ;; 10002 10003 sysv5* | sco3.2v5* | sco5v6*) 10004 # Note: We can NOT use -z defs as we might desire, because we do not 10005 # link with -lc, and that would cause any symbols used from libc to 10006 # always be unresolved, which means just about no library would 10007 # ever link correctly. If we're not using GNU ld we use -z text 10008 # though, which does catch some bad symbols but isn't as heavy-handed 10009 # as -z defs. 10010 no_undefined_flag='${wl}-z,text' 10011 allow_undefined_flag='${wl}-z,nodefs' 10012 archive_cmds_need_lc=no 10013 hardcode_shlibpath_var=no 10014 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10015 hardcode_libdir_separator=':' 10016 link_all_deplibs=yes 10017 export_dynamic_flag_spec='${wl}-Bexport' 10018 runpath_var='LD_RUN_PATH' 10019 10020 if test "$GCC" = yes; then 10021 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10022 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10023 else 10024 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10025 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10026 fi 10027 ;; 10028 10029 uts4*) 10030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10031 hardcode_libdir_flag_spec='-L$libdir' 10032 hardcode_shlibpath_var=no 10033 ;; 10034 10035 *) 10036 ld_shlibs=no 10037 ;; 10038 esac 10039 10040 if test x$host_vendor = xsni; then 10041 case $host in 10042 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10043 export_dynamic_flag_spec='${wl}-Blargedynsym' 10044 ;; 10045 esac 10046 fi 10047 fi 10048 10049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10050$as_echo "$ld_shlibs" >&6; } 10051test "$ld_shlibs" = no && can_build_shared=no 10052 10053with_gnu_ld=$with_gnu_ld 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069# 10070# Do we need to explicitly link libc? 10071# 10072case "x$archive_cmds_need_lc" in 10073x|xyes) 10074 # Assume -lc should be added 10075 archive_cmds_need_lc=yes 10076 10077 if test "$enable_shared" = yes && test "$GCC" = yes; then 10078 case $archive_cmds in 10079 *'~'*) 10080 # FIXME: we may have to deal with multi-command sequences. 10081 ;; 10082 '$CC '*) 10083 # Test whether the compiler implicitly links with -lc since on some 10084 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10085 # to ld, don't add -lc before -lgcc. 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10087$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10088if ${lt_cv_archive_cmds_need_lc+:} false; then : 10089 $as_echo_n "(cached) " >&6 10090else 10091 $RM conftest* 10092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10093 10094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10095 (eval $ac_compile) 2>&5 10096 ac_status=$? 10097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10098 test $ac_status = 0; } 2>conftest.err; then 10099 soname=conftest 10100 lib=conftest 10101 libobjs=conftest.$ac_objext 10102 deplibs= 10103 wl=$lt_prog_compiler_wl 10104 pic_flag=$lt_prog_compiler_pic 10105 compiler_flags=-v 10106 linker_flags=-v 10107 verstring= 10108 output_objdir=. 10109 libname=conftest 10110 lt_save_allow_undefined_flag=$allow_undefined_flag 10111 allow_undefined_flag= 10112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10113 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10114 ac_status=$? 10115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10116 test $ac_status = 0; } 10117 then 10118 lt_cv_archive_cmds_need_lc=no 10119 else 10120 lt_cv_archive_cmds_need_lc=yes 10121 fi 10122 allow_undefined_flag=$lt_save_allow_undefined_flag 10123 else 10124 cat conftest.err 1>&5 10125 fi 10126 $RM conftest* 10127 10128fi 10129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10130$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10131 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10132 ;; 10133 esac 10134 fi 10135 ;; 10136esac 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10290$as_echo_n "checking dynamic linker characteristics... " >&6; } 10291 10292if test "$GCC" = yes; then 10293 case $host_os in 10294 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10295 *) lt_awk_arg="/^libraries:/" ;; 10296 esac 10297 case $host_os in 10298 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10299 *) lt_sed_strip_eq="s,=/,/,g" ;; 10300 esac 10301 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10302 case $lt_search_path_spec in 10303 *\;*) 10304 # if the path contains ";" then we assume it to be the separator 10305 # otherwise default to the standard path separator (i.e. ":") - it is 10306 # assumed that no part of a normal pathname contains ";" but that should 10307 # okay in the real world where ";" in dirpaths is itself problematic. 10308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10309 ;; 10310 *) 10311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10312 ;; 10313 esac 10314 # Ok, now we have the path, separated by spaces, we can step through it 10315 # and add multilib dir if necessary. 10316 lt_tmp_lt_search_path_spec= 10317 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10318 for lt_sys_path in $lt_search_path_spec; do 10319 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10320 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10321 else 10322 test -d "$lt_sys_path" && \ 10323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10324 fi 10325 done 10326 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10327BEGIN {RS=" "; FS="/|\n";} { 10328 lt_foo=""; 10329 lt_count=0; 10330 for (lt_i = NF; lt_i > 0; lt_i--) { 10331 if ($lt_i != "" && $lt_i != ".") { 10332 if ($lt_i == "..") { 10333 lt_count++; 10334 } else { 10335 if (lt_count == 0) { 10336 lt_foo="/" $lt_i lt_foo; 10337 } else { 10338 lt_count--; 10339 } 10340 } 10341 } 10342 } 10343 if (lt_foo != "") { lt_freq[lt_foo]++; } 10344 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10345}'` 10346 # AWK program above erroneously prepends '/' to C:/dos/paths 10347 # for these hosts. 10348 case $host_os in 10349 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10350 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10351 esac 10352 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10353else 10354 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10355fi 10356library_names_spec= 10357libname_spec='lib$name' 10358soname_spec= 10359shrext_cmds=".so" 10360postinstall_cmds= 10361postuninstall_cmds= 10362finish_cmds= 10363finish_eval= 10364shlibpath_var= 10365shlibpath_overrides_runpath=unknown 10366version_type=none 10367dynamic_linker="$host_os ld.so" 10368sys_lib_dlsearch_path_spec="/lib /usr/lib" 10369need_lib_prefix=unknown 10370hardcode_into_libs=no 10371 10372# when you set need_version to no, make sure it does not cause -set_version 10373# flags to be left without arguments 10374need_version=unknown 10375 10376case $host_os in 10377aix3*) 10378 version_type=linux # correct to gnu/linux during the next big refactor 10379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10380 shlibpath_var=LIBPATH 10381 10382 # AIX 3 has no versioning support, so we append a major version to the name. 10383 soname_spec='${libname}${release}${shared_ext}$major' 10384 ;; 10385 10386aix[4-9]*) 10387 version_type=linux # correct to gnu/linux during the next big refactor 10388 need_lib_prefix=no 10389 need_version=no 10390 hardcode_into_libs=yes 10391 if test "$host_cpu" = ia64; then 10392 # AIX 5 supports IA64 10393 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10394 shlibpath_var=LD_LIBRARY_PATH 10395 else 10396 # With GCC up to 2.95.x, collect2 would create an import file 10397 # for dependence libraries. The import file would start with 10398 # the line `#! .'. This would cause the generated library to 10399 # depend on `.', always an invalid library. This was fixed in 10400 # development snapshots of GCC prior to 3.0. 10401 case $host_os in 10402 aix4 | aix4.[01] | aix4.[01].*) 10403 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10404 echo ' yes ' 10405 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10406 : 10407 else 10408 can_build_shared=no 10409 fi 10410 ;; 10411 esac 10412 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10413 # soname into executable. Probably we can add versioning support to 10414 # collect2, so additional links can be useful in future. 10415 if test "$aix_use_runtimelinking" = yes; then 10416 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10417 # instead of lib<name>.a to let people know that these are not 10418 # typical AIX shared libraries. 10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10420 else 10421 # We preserve .a as extension for shared libraries through AIX4.2 10422 # and later when we are not doing run time linking. 10423 library_names_spec='${libname}${release}.a $libname.a' 10424 soname_spec='${libname}${release}${shared_ext}$major' 10425 fi 10426 shlibpath_var=LIBPATH 10427 fi 10428 ;; 10429 10430amigaos*) 10431 case $host_cpu in 10432 powerpc) 10433 # Since July 2007 AmigaOS4 officially supports .so libraries. 10434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10436 ;; 10437 m68k) 10438 library_names_spec='$libname.ixlibrary $libname.a' 10439 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10440 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' 10441 ;; 10442 esac 10443 ;; 10444 10445beos*) 10446 library_names_spec='${libname}${shared_ext}' 10447 dynamic_linker="$host_os ld.so" 10448 shlibpath_var=LIBRARY_PATH 10449 ;; 10450 10451bsdi[45]*) 10452 version_type=linux # correct to gnu/linux during the next big refactor 10453 need_version=no 10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10455 soname_spec='${libname}${release}${shared_ext}$major' 10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10457 shlibpath_var=LD_LIBRARY_PATH 10458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10460 # the default ld.so.conf also contains /usr/contrib/lib and 10461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10462 # libtool to hard-code these into programs 10463 ;; 10464 10465cygwin* | mingw* | pw32* | cegcc*) 10466 version_type=windows 10467 shrext_cmds=".dll" 10468 need_version=no 10469 need_lib_prefix=no 10470 10471 case $GCC,$cc_basename in 10472 yes,*) 10473 # gcc 10474 library_names_spec='$libname.dll.a' 10475 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10476 postinstall_cmds='base_file=`basename \${file}`~ 10477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10478 dldir=$destdir/`dirname \$dlpath`~ 10479 test -d \$dldir || mkdir -p \$dldir~ 10480 $install_prog $dir/$dlname \$dldir/$dlname~ 10481 chmod a+x \$dldir/$dlname~ 10482 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10483 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10484 fi' 10485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10486 dlpath=$dir/\$dldll~ 10487 $RM \$dlpath' 10488 shlibpath_overrides_runpath=yes 10489 10490 case $host_os in 10491 cygwin*) 10492 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10493 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10494 10495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10496 ;; 10497 mingw* | cegcc*) 10498 # MinGW DLLs use traditional 'lib' prefix 10499 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10500 ;; 10501 pw32*) 10502 # pw32 DLLs use 'pw' prefix rather than 'lib' 10503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10504 ;; 10505 esac 10506 dynamic_linker='Win32 ld.exe' 10507 ;; 10508 10509 *,cl*) 10510 # Native MSVC 10511 libname_spec='$name' 10512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10513 library_names_spec='${libname}.dll.lib' 10514 10515 case $build_os in 10516 mingw*) 10517 sys_lib_search_path_spec= 10518 lt_save_ifs=$IFS 10519 IFS=';' 10520 for lt_path in $LIB 10521 do 10522 IFS=$lt_save_ifs 10523 # Let DOS variable expansion print the short 8.3 style file name. 10524 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10525 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10526 done 10527 IFS=$lt_save_ifs 10528 # Convert to MSYS style. 10529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10530 ;; 10531 cygwin*) 10532 # Convert to unix form, then to dos form, then back to unix form 10533 # but this time dos style (no spaces!) so that the unix form looks 10534 # like /cygdrive/c/PROGRA~1:/cygdr... 10535 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10536 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10537 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10538 ;; 10539 *) 10540 sys_lib_search_path_spec="$LIB" 10541 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10542 # It is most probably a Windows format PATH. 10543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10544 else 10545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10546 fi 10547 # FIXME: find the short name or the path components, as spaces are 10548 # common. (e.g. "Program Files" -> "PROGRA~1") 10549 ;; 10550 esac 10551 10552 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10553 postinstall_cmds='base_file=`basename \${file}`~ 10554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10555 dldir=$destdir/`dirname \$dlpath`~ 10556 test -d \$dldir || mkdir -p \$dldir~ 10557 $install_prog $dir/$dlname \$dldir/$dlname' 10558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10559 dlpath=$dir/\$dldll~ 10560 $RM \$dlpath' 10561 shlibpath_overrides_runpath=yes 10562 dynamic_linker='Win32 link.exe' 10563 ;; 10564 10565 *) 10566 # Assume MSVC wrapper 10567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10568 dynamic_linker='Win32 ld.exe' 10569 ;; 10570 esac 10571 # FIXME: first we should search . and the directory the executable is in 10572 shlibpath_var=PATH 10573 ;; 10574 10575darwin* | 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 10590dgux*) 10591 version_type=linux # correct to gnu/linux during the next big refactor 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 10599freebsd* | 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 10643gnu*) 10644 version_type=linux # correct to gnu/linux during the next big refactor 10645 need_lib_prefix=no 10646 need_version=no 10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10648 soname_spec='${libname}${release}${shared_ext}$major' 10649 shlibpath_var=LD_LIBRARY_PATH 10650 shlibpath_overrides_runpath=no 10651 hardcode_into_libs=yes 10652 ;; 10653 10654haiku*) 10655 version_type=linux # correct to gnu/linux during the next big refactor 10656 need_lib_prefix=no 10657 need_version=no 10658 dynamic_linker="$host_os runtime_loader" 10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10660 soname_spec='${libname}${release}${shared_ext}$major' 10661 shlibpath_var=LIBRARY_PATH 10662 shlibpath_overrides_runpath=yes 10663 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10664 hardcode_into_libs=yes 10665 ;; 10666 10667hpux9* | hpux10* | hpux11*) 10668 # Give a soname corresponding to the major version so that dld.sl refuses to 10669 # link against other versions. 10670 version_type=sunos 10671 need_lib_prefix=no 10672 need_version=no 10673 case $host_cpu in 10674 ia64*) 10675 shrext_cmds='.so' 10676 hardcode_into_libs=yes 10677 dynamic_linker="$host_os dld.so" 10678 shlibpath_var=LD_LIBRARY_PATH 10679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10681 soname_spec='${libname}${release}${shared_ext}$major' 10682 if test "X$HPUX_IA64_MODE" = X32; then 10683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10684 else 10685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10686 fi 10687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10688 ;; 10689 hppa*64*) 10690 shrext_cmds='.sl' 10691 hardcode_into_libs=yes 10692 dynamic_linker="$host_os dld.sl" 10693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10696 soname_spec='${libname}${release}${shared_ext}$major' 10697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10699 ;; 10700 *) 10701 shrext_cmds='.sl' 10702 dynamic_linker="$host_os dld.sl" 10703 shlibpath_var=SHLIB_PATH 10704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10706 soname_spec='${libname}${release}${shared_ext}$major' 10707 ;; 10708 esac 10709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10710 postinstall_cmds='chmod 555 $lib' 10711 # or fails outright, so override atomically: 10712 install_override_mode=555 10713 ;; 10714 10715interix[3-9]*) 10716 version_type=linux # correct to gnu/linux during the next big refactor 10717 need_lib_prefix=no 10718 need_version=no 10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10720 soname_spec='${libname}${release}${shared_ext}$major' 10721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10722 shlibpath_var=LD_LIBRARY_PATH 10723 shlibpath_overrides_runpath=no 10724 hardcode_into_libs=yes 10725 ;; 10726 10727irix5* | irix6* | nonstopux*) 10728 case $host_os in 10729 nonstopux*) version_type=nonstopux ;; 10730 *) 10731 if test "$lt_cv_prog_gnu_ld" = yes; then 10732 version_type=linux # correct to gnu/linux during the next big refactor 10733 else 10734 version_type=irix 10735 fi ;; 10736 esac 10737 need_lib_prefix=no 10738 need_version=no 10739 soname_spec='${libname}${release}${shared_ext}$major' 10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10741 case $host_os in 10742 irix5* | nonstopux*) 10743 libsuff= shlibsuff= 10744 ;; 10745 *) 10746 case $LD in # libtool.m4 will add one of these switches to LD 10747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10748 libsuff= shlibsuff= libmagic=32-bit;; 10749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10750 libsuff=32 shlibsuff=N32 libmagic=N32;; 10751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10752 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10753 *) libsuff= shlibsuff= libmagic=never-match;; 10754 esac 10755 ;; 10756 esac 10757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10758 shlibpath_overrides_runpath=no 10759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10761 hardcode_into_libs=yes 10762 ;; 10763 10764# No shared lib support for Linux oldld, aout, or coff. 10765linux*oldld* | linux*aout* | linux*coff*) 10766 dynamic_linker=no 10767 ;; 10768 10769# This must be glibc/ELF. 10770linux* | k*bsd*-gnu | kopensolaris*-gnu) 10771 version_type=linux # correct to gnu/linux during the next big refactor 10772 need_lib_prefix=no 10773 need_version=no 10774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10775 soname_spec='${libname}${release}${shared_ext}$major' 10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10777 shlibpath_var=LD_LIBRARY_PATH 10778 shlibpath_overrides_runpath=no 10779 10780 # Some binutils ld are patched to set DT_RUNPATH 10781 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10782 $as_echo_n "(cached) " >&6 10783else 10784 lt_cv_shlibpath_overrides_runpath=no 10785 save_LDFLAGS=$LDFLAGS 10786 save_libdir=$libdir 10787 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10788 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10790/* end confdefs.h. */ 10791 10792int 10793main () 10794{ 10795 10796 ; 10797 return 0; 10798} 10799_ACEOF 10800if ac_fn_c_try_link "$LINENO"; then : 10801 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10802 lt_cv_shlibpath_overrides_runpath=yes 10803fi 10804fi 10805rm -f core conftest.err conftest.$ac_objext \ 10806 conftest$ac_exeext conftest.$ac_ext 10807 LDFLAGS=$save_LDFLAGS 10808 libdir=$save_libdir 10809 10810fi 10811 10812 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10813 10814 # This implies no fast_install, which is unacceptable. 10815 # Some rework will be needed to allow for fast_install 10816 # before this can be enabled. 10817 hardcode_into_libs=yes 10818 10819 # Add ABI-specific directories to the system library path. 10820 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10821 10822 # Append ld.so.conf contents to the search path 10823 if test -f /etc/ld.so.conf; then 10824 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' ' '` 10825 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10826 10827 fi 10828 10829 # We used to test for /lib/ld.so.1 and disable shared libraries on 10830 # powerpc, because MkLinux only supported shared libraries with the 10831 # GNU dynamic linker. Since this was broken with cross compilers, 10832 # most powerpc-linux boxes support dynamic linking these days and 10833 # people can always --disable-shared, the test was removed, and we 10834 # assume the GNU/Linux dynamic linker is in use. 10835 dynamic_linker='GNU/Linux ld.so' 10836 ;; 10837 10838netbsd*) 10839 version_type=sunos 10840 need_lib_prefix=no 10841 need_version=no 10842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10845 dynamic_linker='NetBSD (a.out) ld.so' 10846 else 10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10848 soname_spec='${libname}${release}${shared_ext}$major' 10849 dynamic_linker='NetBSD ld.elf_so' 10850 fi 10851 shlibpath_var=LD_LIBRARY_PATH 10852 shlibpath_overrides_runpath=yes 10853 hardcode_into_libs=yes 10854 ;; 10855 10856newsos6) 10857 version_type=linux # correct to gnu/linux during the next big refactor 10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10859 shlibpath_var=LD_LIBRARY_PATH 10860 shlibpath_overrides_runpath=yes 10861 ;; 10862 10863*nto* | *qnx*) 10864 version_type=qnx 10865 need_lib_prefix=no 10866 need_version=no 10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10868 soname_spec='${libname}${release}${shared_ext}$major' 10869 shlibpath_var=LD_LIBRARY_PATH 10870 shlibpath_overrides_runpath=no 10871 hardcode_into_libs=yes 10872 dynamic_linker='ldqnx.so' 10873 ;; 10874 10875openbsd*) 10876 version_type=sunos 10877 sys_lib_dlsearch_path_spec="/usr/lib" 10878 need_lib_prefix=no 10879 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10880 case $host_os in 10881 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10882 *) need_version=no ;; 10883 esac 10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10886 shlibpath_var=LD_LIBRARY_PATH 10887 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10888 case $host_os in 10889 openbsd2.[89] | openbsd2.[89].*) 10890 shlibpath_overrides_runpath=no 10891 ;; 10892 *) 10893 shlibpath_overrides_runpath=yes 10894 ;; 10895 esac 10896 else 10897 shlibpath_overrides_runpath=yes 10898 fi 10899 ;; 10900 10901os2*) 10902 libname_spec='$name' 10903 shrext_cmds=".dll" 10904 need_lib_prefix=no 10905 library_names_spec='$libname${shared_ext} $libname.a' 10906 dynamic_linker='OS/2 ld.exe' 10907 shlibpath_var=LIBPATH 10908 ;; 10909 10910osf3* | osf4* | osf5*) 10911 version_type=osf 10912 need_lib_prefix=no 10913 need_version=no 10914 soname_spec='${libname}${release}${shared_ext}$major' 10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10916 shlibpath_var=LD_LIBRARY_PATH 10917 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10918 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10919 ;; 10920 10921rdos*) 10922 dynamic_linker=no 10923 ;; 10924 10925solaris*) 10926 version_type=linux # correct to gnu/linux during the next big refactor 10927 need_lib_prefix=no 10928 need_version=no 10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10930 soname_spec='${libname}${release}${shared_ext}$major' 10931 shlibpath_var=LD_LIBRARY_PATH 10932 shlibpath_overrides_runpath=yes 10933 hardcode_into_libs=yes 10934 # ldd complains unless libraries are executable 10935 postinstall_cmds='chmod +x $lib' 10936 ;; 10937 10938sunos4*) 10939 version_type=sunos 10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10942 shlibpath_var=LD_LIBRARY_PATH 10943 shlibpath_overrides_runpath=yes 10944 if test "$with_gnu_ld" = yes; then 10945 need_lib_prefix=no 10946 fi 10947 need_version=yes 10948 ;; 10949 10950sysv4 | sysv4.3*) 10951 version_type=linux # correct to gnu/linux during the next big refactor 10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10953 soname_spec='${libname}${release}${shared_ext}$major' 10954 shlibpath_var=LD_LIBRARY_PATH 10955 case $host_vendor in 10956 sni) 10957 shlibpath_overrides_runpath=no 10958 need_lib_prefix=no 10959 runpath_var=LD_RUN_PATH 10960 ;; 10961 siemens) 10962 need_lib_prefix=no 10963 ;; 10964 motorola) 10965 need_lib_prefix=no 10966 need_version=no 10967 shlibpath_overrides_runpath=no 10968 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10969 ;; 10970 esac 10971 ;; 10972 10973sysv4*MP*) 10974 if test -d /usr/nec ;then 10975 version_type=linux # correct to gnu/linux during the next big refactor 10976 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10977 soname_spec='$libname${shared_ext}.$major' 10978 shlibpath_var=LD_LIBRARY_PATH 10979 fi 10980 ;; 10981 10982sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10983 version_type=freebsd-elf 10984 need_lib_prefix=no 10985 need_version=no 10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10987 soname_spec='${libname}${release}${shared_ext}$major' 10988 shlibpath_var=LD_LIBRARY_PATH 10989 shlibpath_overrides_runpath=yes 10990 hardcode_into_libs=yes 10991 if test "$with_gnu_ld" = yes; then 10992 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10993 else 10994 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10995 case $host_os in 10996 sco3.2v5*) 10997 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10998 ;; 10999 esac 11000 fi 11001 sys_lib_dlsearch_path_spec='/usr/lib' 11002 ;; 11003 11004tpf*) 11005 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11006 version_type=linux # correct to gnu/linux during the next big refactor 11007 need_lib_prefix=no 11008 need_version=no 11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11010 shlibpath_var=LD_LIBRARY_PATH 11011 shlibpath_overrides_runpath=no 11012 hardcode_into_libs=yes 11013 ;; 11014 11015uts4*) 11016 version_type=linux # correct to gnu/linux during the next big refactor 11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11018 soname_spec='${libname}${release}${shared_ext}$major' 11019 shlibpath_var=LD_LIBRARY_PATH 11020 ;; 11021 11022*) 11023 dynamic_linker=no 11024 ;; 11025esac 11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11027$as_echo "$dynamic_linker" >&6; } 11028test "$dynamic_linker" = no && can_build_shared=no 11029 11030variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11031if test "$GCC" = yes; then 11032 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11033fi 11034 11035if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11036 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11037fi 11038if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11039 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11040fi 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11134$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11135hardcode_action= 11136if test -n "$hardcode_libdir_flag_spec" || 11137 test -n "$runpath_var" || 11138 test "X$hardcode_automatic" = "Xyes" ; then 11139 11140 # We can hardcode non-existent directories. 11141 if test "$hardcode_direct" != no && 11142 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11143 # have to relink, otherwise we might link with an installed library 11144 # when we should be linking with a yet-to-be-installed one 11145 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11146 test "$hardcode_minus_L" != no; then 11147 # Linking always hardcodes the temporary library directory. 11148 hardcode_action=relink 11149 else 11150 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11151 hardcode_action=immediate 11152 fi 11153else 11154 # We cannot hardcode anything, or else we can only hardcode existing 11155 # directories. 11156 hardcode_action=unsupported 11157fi 11158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11159$as_echo "$hardcode_action" >&6; } 11160 11161if test "$hardcode_action" = relink || 11162 test "$inherit_rpath" = yes; then 11163 # Fast installation is not supported 11164 enable_fast_install=no 11165elif test "$shlibpath_overrides_runpath" = yes || 11166 test "$enable_shared" = no; then 11167 # Fast installation is not necessary 11168 enable_fast_install=needless 11169fi 11170 11171 11172 11173 11174 11175 11176 if test "x$enable_dlopen" != xyes; then 11177 enable_dlopen=unknown 11178 enable_dlopen_self=unknown 11179 enable_dlopen_self_static=unknown 11180else 11181 lt_cv_dlopen=no 11182 lt_cv_dlopen_libs= 11183 11184 case $host_os in 11185 beos*) 11186 lt_cv_dlopen="load_add_on" 11187 lt_cv_dlopen_libs= 11188 lt_cv_dlopen_self=yes 11189 ;; 11190 11191 mingw* | pw32* | cegcc*) 11192 lt_cv_dlopen="LoadLibrary" 11193 lt_cv_dlopen_libs= 11194 ;; 11195 11196 cygwin*) 11197 lt_cv_dlopen="dlopen" 11198 lt_cv_dlopen_libs= 11199 ;; 11200 11201 darwin*) 11202 # if libdl is installed we need to link against it 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11204$as_echo_n "checking for dlopen in -ldl... " >&6; } 11205if ${ac_cv_lib_dl_dlopen+:} false; then : 11206 $as_echo_n "(cached) " >&6 11207else 11208 ac_check_lib_save_LIBS=$LIBS 11209LIBS="-ldl $LIBS" 11210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11211/* end confdefs.h. */ 11212 11213/* Override any GCC internal prototype to avoid an error. 11214 Use char because int might match the return type of a GCC 11215 builtin and then its argument prototype would still apply. */ 11216#ifdef __cplusplus 11217extern "C" 11218#endif 11219char dlopen (); 11220int 11221main () 11222{ 11223return dlopen (); 11224 ; 11225 return 0; 11226} 11227_ACEOF 11228if ac_fn_c_try_link "$LINENO"; then : 11229 ac_cv_lib_dl_dlopen=yes 11230else 11231 ac_cv_lib_dl_dlopen=no 11232fi 11233rm -f core conftest.err conftest.$ac_objext \ 11234 conftest$ac_exeext conftest.$ac_ext 11235LIBS=$ac_check_lib_save_LIBS 11236fi 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11238$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11239if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11241else 11242 11243 lt_cv_dlopen="dyld" 11244 lt_cv_dlopen_libs= 11245 lt_cv_dlopen_self=yes 11246 11247fi 11248 11249 ;; 11250 11251 *) 11252 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11253if test "x$ac_cv_func_shl_load" = xyes; then : 11254 lt_cv_dlopen="shl_load" 11255else 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11257$as_echo_n "checking for shl_load in -ldld... " >&6; } 11258if ${ac_cv_lib_dld_shl_load+:} false; then : 11259 $as_echo_n "(cached) " >&6 11260else 11261 ac_check_lib_save_LIBS=$LIBS 11262LIBS="-ldld $LIBS" 11263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264/* end confdefs.h. */ 11265 11266/* Override any GCC internal prototype to avoid an error. 11267 Use char because int might match the return type of a GCC 11268 builtin and then its argument prototype would still apply. */ 11269#ifdef __cplusplus 11270extern "C" 11271#endif 11272char shl_load (); 11273int 11274main () 11275{ 11276return shl_load (); 11277 ; 11278 return 0; 11279} 11280_ACEOF 11281if ac_fn_c_try_link "$LINENO"; then : 11282 ac_cv_lib_dld_shl_load=yes 11283else 11284 ac_cv_lib_dld_shl_load=no 11285fi 11286rm -f core conftest.err conftest.$ac_objext \ 11287 conftest$ac_exeext conftest.$ac_ext 11288LIBS=$ac_check_lib_save_LIBS 11289fi 11290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11291$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11292if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11293 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11294else 11295 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11296if test "x$ac_cv_func_dlopen" = xyes; then : 11297 lt_cv_dlopen="dlopen" 11298else 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11300$as_echo_n "checking for dlopen in -ldl... " >&6; } 11301if ${ac_cv_lib_dl_dlopen+:} false; then : 11302 $as_echo_n "(cached) " >&6 11303else 11304 ac_check_lib_save_LIBS=$LIBS 11305LIBS="-ldl $LIBS" 11306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11307/* end confdefs.h. */ 11308 11309/* Override any GCC internal prototype to avoid an error. 11310 Use char because int might match the return type of a GCC 11311 builtin and then its argument prototype would still apply. */ 11312#ifdef __cplusplus 11313extern "C" 11314#endif 11315char dlopen (); 11316int 11317main () 11318{ 11319return dlopen (); 11320 ; 11321 return 0; 11322} 11323_ACEOF 11324if ac_fn_c_try_link "$LINENO"; then : 11325 ac_cv_lib_dl_dlopen=yes 11326else 11327 ac_cv_lib_dl_dlopen=no 11328fi 11329rm -f core conftest.err conftest.$ac_objext \ 11330 conftest$ac_exeext conftest.$ac_ext 11331LIBS=$ac_check_lib_save_LIBS 11332fi 11333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11334$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11335if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11337else 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11339$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11340if ${ac_cv_lib_svld_dlopen+:} false; then : 11341 $as_echo_n "(cached) " >&6 11342else 11343 ac_check_lib_save_LIBS=$LIBS 11344LIBS="-lsvld $LIBS" 11345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11346/* end confdefs.h. */ 11347 11348/* Override any GCC internal prototype to avoid an error. 11349 Use char because int might match the return type of a GCC 11350 builtin and then its argument prototype would still apply. */ 11351#ifdef __cplusplus 11352extern "C" 11353#endif 11354char dlopen (); 11355int 11356main () 11357{ 11358return dlopen (); 11359 ; 11360 return 0; 11361} 11362_ACEOF 11363if ac_fn_c_try_link "$LINENO"; then : 11364 ac_cv_lib_svld_dlopen=yes 11365else 11366 ac_cv_lib_svld_dlopen=no 11367fi 11368rm -f core conftest.err conftest.$ac_objext \ 11369 conftest$ac_exeext conftest.$ac_ext 11370LIBS=$ac_check_lib_save_LIBS 11371fi 11372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11373$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11374if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11376else 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11378$as_echo_n "checking for dld_link in -ldld... " >&6; } 11379if ${ac_cv_lib_dld_dld_link+:} false; then : 11380 $as_echo_n "(cached) " >&6 11381else 11382 ac_check_lib_save_LIBS=$LIBS 11383LIBS="-ldld $LIBS" 11384cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11385/* end confdefs.h. */ 11386 11387/* Override any GCC internal prototype to avoid an error. 11388 Use char because int might match the return type of a GCC 11389 builtin and then its argument prototype would still apply. */ 11390#ifdef __cplusplus 11391extern "C" 11392#endif 11393char dld_link (); 11394int 11395main () 11396{ 11397return dld_link (); 11398 ; 11399 return 0; 11400} 11401_ACEOF 11402if ac_fn_c_try_link "$LINENO"; then : 11403 ac_cv_lib_dld_dld_link=yes 11404else 11405 ac_cv_lib_dld_dld_link=no 11406fi 11407rm -f core conftest.err conftest.$ac_objext \ 11408 conftest$ac_exeext conftest.$ac_ext 11409LIBS=$ac_check_lib_save_LIBS 11410fi 11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11412$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11413if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11414 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11415fi 11416 11417 11418fi 11419 11420 11421fi 11422 11423 11424fi 11425 11426 11427fi 11428 11429 11430fi 11431 11432 ;; 11433 esac 11434 11435 if test "x$lt_cv_dlopen" != xno; then 11436 enable_dlopen=yes 11437 else 11438 enable_dlopen=no 11439 fi 11440 11441 case $lt_cv_dlopen in 11442 dlopen) 11443 save_CPPFLAGS="$CPPFLAGS" 11444 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11445 11446 save_LDFLAGS="$LDFLAGS" 11447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11448 11449 save_LIBS="$LIBS" 11450 LIBS="$lt_cv_dlopen_libs $LIBS" 11451 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11453$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11454if ${lt_cv_dlopen_self+:} false; then : 11455 $as_echo_n "(cached) " >&6 11456else 11457 if test "$cross_compiling" = yes; then : 11458 lt_cv_dlopen_self=cross 11459else 11460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11461 lt_status=$lt_dlunknown 11462 cat > conftest.$ac_ext <<_LT_EOF 11463#line $LINENO "configure" 11464#include "confdefs.h" 11465 11466#if HAVE_DLFCN_H 11467#include <dlfcn.h> 11468#endif 11469 11470#include <stdio.h> 11471 11472#ifdef RTLD_GLOBAL 11473# define LT_DLGLOBAL RTLD_GLOBAL 11474#else 11475# ifdef DL_GLOBAL 11476# define LT_DLGLOBAL DL_GLOBAL 11477# else 11478# define LT_DLGLOBAL 0 11479# endif 11480#endif 11481 11482/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11483 find out it does not work in some platform. */ 11484#ifndef LT_DLLAZY_OR_NOW 11485# ifdef RTLD_LAZY 11486# define LT_DLLAZY_OR_NOW RTLD_LAZY 11487# else 11488# ifdef DL_LAZY 11489# define LT_DLLAZY_OR_NOW DL_LAZY 11490# else 11491# ifdef RTLD_NOW 11492# define LT_DLLAZY_OR_NOW RTLD_NOW 11493# else 11494# ifdef DL_NOW 11495# define LT_DLLAZY_OR_NOW DL_NOW 11496# else 11497# define LT_DLLAZY_OR_NOW 0 11498# endif 11499# endif 11500# endif 11501# endif 11502#endif 11503 11504/* When -fvisbility=hidden is used, assume the code has been annotated 11505 correspondingly for the symbols needed. */ 11506#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11507int fnord () __attribute__((visibility("default"))); 11508#endif 11509 11510int fnord () { return 42; } 11511int main () 11512{ 11513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11514 int status = $lt_dlunknown; 11515 11516 if (self) 11517 { 11518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11519 else 11520 { 11521 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11522 else puts (dlerror ()); 11523 } 11524 /* dlclose (self); */ 11525 } 11526 else 11527 puts (dlerror ()); 11528 11529 return status; 11530} 11531_LT_EOF 11532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11533 (eval $ac_link) 2>&5 11534 ac_status=$? 11535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11536 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11537 (./conftest; exit; ) >&5 2>/dev/null 11538 lt_status=$? 11539 case x$lt_status in 11540 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11541 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11542 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11543 esac 11544 else : 11545 # compilation failed 11546 lt_cv_dlopen_self=no 11547 fi 11548fi 11549rm -fr conftest* 11550 11551 11552fi 11553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11554$as_echo "$lt_cv_dlopen_self" >&6; } 11555 11556 if test "x$lt_cv_dlopen_self" = xyes; then 11557 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11559$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11560if ${lt_cv_dlopen_self_static+:} false; then : 11561 $as_echo_n "(cached) " >&6 11562else 11563 if test "$cross_compiling" = yes; then : 11564 lt_cv_dlopen_self_static=cross 11565else 11566 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11567 lt_status=$lt_dlunknown 11568 cat > conftest.$ac_ext <<_LT_EOF 11569#line $LINENO "configure" 11570#include "confdefs.h" 11571 11572#if HAVE_DLFCN_H 11573#include <dlfcn.h> 11574#endif 11575 11576#include <stdio.h> 11577 11578#ifdef RTLD_GLOBAL 11579# define LT_DLGLOBAL RTLD_GLOBAL 11580#else 11581# ifdef DL_GLOBAL 11582# define LT_DLGLOBAL DL_GLOBAL 11583# else 11584# define LT_DLGLOBAL 0 11585# endif 11586#endif 11587 11588/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11589 find out it does not work in some platform. */ 11590#ifndef LT_DLLAZY_OR_NOW 11591# ifdef RTLD_LAZY 11592# define LT_DLLAZY_OR_NOW RTLD_LAZY 11593# else 11594# ifdef DL_LAZY 11595# define LT_DLLAZY_OR_NOW DL_LAZY 11596# else 11597# ifdef RTLD_NOW 11598# define LT_DLLAZY_OR_NOW RTLD_NOW 11599# else 11600# ifdef DL_NOW 11601# define LT_DLLAZY_OR_NOW DL_NOW 11602# else 11603# define LT_DLLAZY_OR_NOW 0 11604# endif 11605# endif 11606# endif 11607# endif 11608#endif 11609 11610/* When -fvisbility=hidden is used, assume the code has been annotated 11611 correspondingly for the symbols needed. */ 11612#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11613int fnord () __attribute__((visibility("default"))); 11614#endif 11615 11616int fnord () { return 42; } 11617int main () 11618{ 11619 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11620 int status = $lt_dlunknown; 11621 11622 if (self) 11623 { 11624 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11625 else 11626 { 11627 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11628 else puts (dlerror ()); 11629 } 11630 /* dlclose (self); */ 11631 } 11632 else 11633 puts (dlerror ()); 11634 11635 return status; 11636} 11637_LT_EOF 11638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11639 (eval $ac_link) 2>&5 11640 ac_status=$? 11641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11642 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11643 (./conftest; exit; ) >&5 2>/dev/null 11644 lt_status=$? 11645 case x$lt_status in 11646 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11647 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11648 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11649 esac 11650 else : 11651 # compilation failed 11652 lt_cv_dlopen_self_static=no 11653 fi 11654fi 11655rm -fr conftest* 11656 11657 11658fi 11659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11660$as_echo "$lt_cv_dlopen_self_static" >&6; } 11661 fi 11662 11663 CPPFLAGS="$save_CPPFLAGS" 11664 LDFLAGS="$save_LDFLAGS" 11665 LIBS="$save_LIBS" 11666 ;; 11667 esac 11668 11669 case $lt_cv_dlopen_self in 11670 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11671 *) enable_dlopen_self=unknown ;; 11672 esac 11673 11674 case $lt_cv_dlopen_self_static in 11675 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11676 *) enable_dlopen_self_static=unknown ;; 11677 esac 11678fi 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696striplib= 11697old_striplib= 11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11699$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11700if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11701 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11702 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11704$as_echo "yes" >&6; } 11705else 11706# FIXME - insert some real tests, host_os isn't really good enough 11707 case $host_os in 11708 darwin*) 11709 if test -n "$STRIP" ; then 11710 striplib="$STRIP -x" 11711 old_striplib="$STRIP -S" 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11713$as_echo "yes" >&6; } 11714 else 11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11716$as_echo "no" >&6; } 11717 fi 11718 ;; 11719 *) 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11721$as_echo "no" >&6; } 11722 ;; 11723 esac 11724fi 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 # Report which library types will actually be built 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11739$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11741$as_echo "$can_build_shared" >&6; } 11742 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11744$as_echo_n "checking whether to build shared libraries... " >&6; } 11745 test "$can_build_shared" = "no" && enable_shared=no 11746 11747 # On AIX, shared libraries and static libraries use the same namespace, and 11748 # are all built from PIC. 11749 case $host_os in 11750 aix3*) 11751 test "$enable_shared" = yes && enable_static=no 11752 if test -n "$RANLIB"; then 11753 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11754 postinstall_cmds='$RANLIB $lib' 11755 fi 11756 ;; 11757 11758 aix[4-9]*) 11759 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11760 test "$enable_shared" = yes && enable_static=no 11761 fi 11762 ;; 11763 esac 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11765$as_echo "$enable_shared" >&6; } 11766 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11768$as_echo_n "checking whether to build static libraries... " >&6; } 11769 # Make sure either enable_shared or enable_static is yes. 11770 test "$enable_shared" = yes || enable_static=yes 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11772$as_echo "$enable_static" >&6; } 11773 11774 11775 11776 11777fi 11778ac_ext=c 11779ac_cpp='$CPP $CPPFLAGS' 11780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11782ac_compiler_gnu=$ac_cv_c_compiler_gnu 11783 11784CC="$lt_save_CC" 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 ac_config_commands="$ac_config_commands libtool" 11801 11802 11803 11804 11805# Only expand once: 11806 11807 11808 11809test -z "$prefix" -o "$prefix" = NONE && prefix=`(cd .. && pwd)` 11810 11811CFLAGS_COVERAGE='' 11812LIBS_COVERAGE='' 11813 11814# Check whether --enable-coverage was given. 11815if test "${enable_coverage+set}" = set; then : 11816 enableval=$enable_coverage; case "${enableval}" in 11817 yes) CFLAGS_COVERAGE='--coverage' 11818 LIBS_COVERAGE=-lgcov 11819 coverage_enabled=true;; 11820 no) ;; 11821 *) as_fn_error $? "bad value ${enableval} for --enable-coverage" "$LINENO" 5 ;; 11822esac 11823fi 11824 11825 11826 11827 11828# Check whether --enable-debug was given. 11829if test "${enable_debug+set}" = set; then : 11830 enableval=$enable_debug; case "${enableval}" in 11831 yes) 11832 CFLAGS="${CFLAGS:+$CFLAGS }-g -O0" 11833 debug=true ;; 11834 no) 11835 CFLAGS="-O${CFLAGS:+ $CFLAGS}" 11836 debug=false ;; 11837 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;; 11838esac 11839else 11840 if test "$coverage_enabled" = true; then 11841 CFLAGS="-g${CFLAGS:+ $CFLAGS}" 11842 debug=true 11843else 11844 debug=false 11845fi 11846 11847fi 11848 11849 if test x$debug = xtrue; then 11850 DEBUG_TRUE= 11851 DEBUG_FALSE='#' 11852else 11853 DEBUG_TRUE='#' 11854 DEBUG_FALSE= 11855fi 11856 11857 11858 if true; then 11859 ENABLE_UDUNITS_1_TRUE= 11860 ENABLE_UDUNITS_1_FALSE='#' 11861else 11862 ENABLE_UDUNITS_1_TRUE='#' 11863 ENABLE_UDUNITS_1_FALSE= 11864fi 11865 11866# Check whether --enable-udunits-1 was given. 11867if test "${enable_udunits_1+set}" = set; then : 11868 enableval=$enable_udunits_1; case "${enableval}" in 11869 no) if false; then 11870 ENABLE_UDUNITS_1_TRUE= 11871 ENABLE_UDUNITS_1_FALSE='#' 11872else 11873 ENABLE_UDUNITS_1_TRUE='#' 11874 ENABLE_UDUNITS_1_FALSE= 11875fi 11876 ;; 11877 yes) ;; 11878 *) as_fn_error $? "bad value ${enableval} for --enable-udunits-1" "$LINENO" 5 ;; 11879 esac 11880fi 11881 11882 11883# Ensure that compilation is optimized and with assertions disabled by default. 11884CFLAGS=${CFLAGS:--O} 11885CPPFLAGS=${CPPFLAGS:--DNDEBUG} 11886 11887# The default absolute pathname of the installed units database. "pkgdatadir" 11888# isn't a configure-variable in the normal sense: it doesn't appear in 11889# "config.status" yet appears in "Makefile"; consequently, the following 11890# nonsense just to avoid defining the pathname in the makefile so that Eclipse 11891# is happy. 11892pkgdatadir=$(eval echo $(eval echo `echo ${datadir}`/${PACKAGE})) 11893 11894cat >>confdefs.h <<_ACEOF 11895#define DEFAULT_UDUNITS2_XML_PATH "${pkgdatadir}/udunits2.xml" 11896_ACEOF 11897 11898 11899# Checks for programs. 11900ac_ext=c 11901ac_cpp='$CPP $CPPFLAGS' 11902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11904ac_compiler_gnu=$ac_cv_c_compiler_gnu 11905if test -n "$ac_tool_prefix"; then 11906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 11907set dummy ${ac_tool_prefix}gcc; ac_word=$2 11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11909$as_echo_n "checking for $ac_word... " >&6; } 11910if ${ac_cv_prog_CC+:} false; then : 11911 $as_echo_n "(cached) " >&6 11912else 11913 if test -n "$CC"; then 11914 ac_cv_prog_CC="$CC" # Let the user override the test. 11915else 11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11917for as_dir in $PATH 11918do 11919 IFS=$as_save_IFS 11920 test -z "$as_dir" && as_dir=. 11921 for ac_exec_ext in '' $ac_executable_extensions; do 11922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11923 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11925 break 2 11926 fi 11927done 11928 done 11929IFS=$as_save_IFS 11930 11931fi 11932fi 11933CC=$ac_cv_prog_CC 11934if test -n "$CC"; then 11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11936$as_echo "$CC" >&6; } 11937else 11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11939$as_echo "no" >&6; } 11940fi 11941 11942 11943fi 11944if test -z "$ac_cv_prog_CC"; then 11945 ac_ct_CC=$CC 11946 # Extract the first word of "gcc", so it can be a program name with args. 11947set dummy gcc; ac_word=$2 11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11949$as_echo_n "checking for $ac_word... " >&6; } 11950if ${ac_cv_prog_ac_ct_CC+:} false; then : 11951 $as_echo_n "(cached) " >&6 11952else 11953 if test -n "$ac_ct_CC"; then 11954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11955else 11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11957for as_dir in $PATH 11958do 11959 IFS=$as_save_IFS 11960 test -z "$as_dir" && as_dir=. 11961 for ac_exec_ext in '' $ac_executable_extensions; do 11962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11963 ac_cv_prog_ac_ct_CC="gcc" 11964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11965 break 2 11966 fi 11967done 11968 done 11969IFS=$as_save_IFS 11970 11971fi 11972fi 11973ac_ct_CC=$ac_cv_prog_ac_ct_CC 11974if test -n "$ac_ct_CC"; then 11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11976$as_echo "$ac_ct_CC" >&6; } 11977else 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11979$as_echo "no" >&6; } 11980fi 11981 11982 if test "x$ac_ct_CC" = x; then 11983 CC="" 11984 else 11985 case $cross_compiling:$ac_tool_warned in 11986yes:) 11987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11989ac_tool_warned=yes ;; 11990esac 11991 CC=$ac_ct_CC 11992 fi 11993else 11994 CC="$ac_cv_prog_CC" 11995fi 11996 11997if test -z "$CC"; then 11998 if test -n "$ac_tool_prefix"; then 11999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12000set dummy ${ac_tool_prefix}cc; ac_word=$2 12001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12002$as_echo_n "checking for $ac_word... " >&6; } 12003if ${ac_cv_prog_CC+:} false; then : 12004 $as_echo_n "(cached) " >&6 12005else 12006 if test -n "$CC"; then 12007 ac_cv_prog_CC="$CC" # Let the user override the test. 12008else 12009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12010for as_dir in $PATH 12011do 12012 IFS=$as_save_IFS 12013 test -z "$as_dir" && as_dir=. 12014 for ac_exec_ext in '' $ac_executable_extensions; do 12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12016 ac_cv_prog_CC="${ac_tool_prefix}cc" 12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12018 break 2 12019 fi 12020done 12021 done 12022IFS=$as_save_IFS 12023 12024fi 12025fi 12026CC=$ac_cv_prog_CC 12027if test -n "$CC"; then 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12029$as_echo "$CC" >&6; } 12030else 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12032$as_echo "no" >&6; } 12033fi 12034 12035 12036 fi 12037fi 12038if test -z "$CC"; then 12039 # Extract the first word of "cc", so it can be a program name with args. 12040set dummy cc; ac_word=$2 12041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12042$as_echo_n "checking for $ac_word... " >&6; } 12043if ${ac_cv_prog_CC+:} false; then : 12044 $as_echo_n "(cached) " >&6 12045else 12046 if test -n "$CC"; then 12047 ac_cv_prog_CC="$CC" # Let the user override the test. 12048else 12049 ac_prog_rejected=no 12050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12051for as_dir in $PATH 12052do 12053 IFS=$as_save_IFS 12054 test -z "$as_dir" && as_dir=. 12055 for ac_exec_ext in '' $ac_executable_extensions; do 12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12058 ac_prog_rejected=yes 12059 continue 12060 fi 12061 ac_cv_prog_CC="cc" 12062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12063 break 2 12064 fi 12065done 12066 done 12067IFS=$as_save_IFS 12068 12069if test $ac_prog_rejected = yes; then 12070 # We found a bogon in the path, so make sure we never use it. 12071 set dummy $ac_cv_prog_CC 12072 shift 12073 if test $# != 0; then 12074 # We chose a different compiler from the bogus one. 12075 # However, it has the same basename, so the bogon will be chosen 12076 # first if we set CC to just the basename; use the full file name. 12077 shift 12078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12079 fi 12080fi 12081fi 12082fi 12083CC=$ac_cv_prog_CC 12084if test -n "$CC"; then 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12086$as_echo "$CC" >&6; } 12087else 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12089$as_echo "no" >&6; } 12090fi 12091 12092 12093fi 12094if test -z "$CC"; then 12095 if test -n "$ac_tool_prefix"; then 12096 for ac_prog in cl.exe 12097 do 12098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12099set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12101$as_echo_n "checking for $ac_word... " >&6; } 12102if ${ac_cv_prog_CC+:} false; then : 12103 $as_echo_n "(cached) " >&6 12104else 12105 if test -n "$CC"; then 12106 ac_cv_prog_CC="$CC" # Let the user override the test. 12107else 12108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12109for as_dir in $PATH 12110do 12111 IFS=$as_save_IFS 12112 test -z "$as_dir" && as_dir=. 12113 for ac_exec_ext in '' $ac_executable_extensions; do 12114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12117 break 2 12118 fi 12119done 12120 done 12121IFS=$as_save_IFS 12122 12123fi 12124fi 12125CC=$ac_cv_prog_CC 12126if test -n "$CC"; then 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12128$as_echo "$CC" >&6; } 12129else 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12131$as_echo "no" >&6; } 12132fi 12133 12134 12135 test -n "$CC" && break 12136 done 12137fi 12138if test -z "$CC"; then 12139 ac_ct_CC=$CC 12140 for ac_prog in cl.exe 12141do 12142 # Extract the first word of "$ac_prog", so it can be a program name with args. 12143set dummy $ac_prog; ac_word=$2 12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12145$as_echo_n "checking for $ac_word... " >&6; } 12146if ${ac_cv_prog_ac_ct_CC+:} false; then : 12147 $as_echo_n "(cached) " >&6 12148else 12149 if test -n "$ac_ct_CC"; then 12150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12151else 12152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12153for as_dir in $PATH 12154do 12155 IFS=$as_save_IFS 12156 test -z "$as_dir" && as_dir=. 12157 for ac_exec_ext in '' $ac_executable_extensions; do 12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12159 ac_cv_prog_ac_ct_CC="$ac_prog" 12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12161 break 2 12162 fi 12163done 12164 done 12165IFS=$as_save_IFS 12166 12167fi 12168fi 12169ac_ct_CC=$ac_cv_prog_ac_ct_CC 12170if test -n "$ac_ct_CC"; then 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12172$as_echo "$ac_ct_CC" >&6; } 12173else 12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12175$as_echo "no" >&6; } 12176fi 12177 12178 12179 test -n "$ac_ct_CC" && break 12180done 12181 12182 if test "x$ac_ct_CC" = x; then 12183 CC="" 12184 else 12185 case $cross_compiling:$ac_tool_warned in 12186yes:) 12187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12189ac_tool_warned=yes ;; 12190esac 12191 CC=$ac_ct_CC 12192 fi 12193fi 12194 12195fi 12196 12197 12198test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12200as_fn_error $? "no acceptable C compiler found in \$PATH 12201See \`config.log' for more details" "$LINENO" 5; } 12202 12203# Provide some information about the compiler. 12204$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12205set X $ac_compile 12206ac_compiler=$2 12207for ac_option in --version -v -V -qversion; do 12208 { { ac_try="$ac_compiler $ac_option >&5" 12209case "(($ac_try" in 12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12211 *) ac_try_echo=$ac_try;; 12212esac 12213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12214$as_echo "$ac_try_echo"; } >&5 12215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12216 ac_status=$? 12217 if test -s conftest.err; then 12218 sed '10a\ 12219... rest of stderr output deleted ... 12220 10q' conftest.err >conftest.er1 12221 cat conftest.er1 >&5 12222 fi 12223 rm -f conftest.er1 conftest.err 12224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12225 test $ac_status = 0; } 12226done 12227 12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12229$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12230if ${ac_cv_c_compiler_gnu+:} false; then : 12231 $as_echo_n "(cached) " >&6 12232else 12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12234/* end confdefs.h. */ 12235 12236int 12237main () 12238{ 12239#ifndef __GNUC__ 12240 choke me 12241#endif 12242 12243 ; 12244 return 0; 12245} 12246_ACEOF 12247if ac_fn_c_try_compile "$LINENO"; then : 12248 ac_compiler_gnu=yes 12249else 12250 ac_compiler_gnu=no 12251fi 12252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12253ac_cv_c_compiler_gnu=$ac_compiler_gnu 12254 12255fi 12256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12257$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12258if test $ac_compiler_gnu = yes; then 12259 GCC=yes 12260else 12261 GCC= 12262fi 12263ac_test_CFLAGS=${CFLAGS+set} 12264ac_save_CFLAGS=$CFLAGS 12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12266$as_echo_n "checking whether $CC accepts -g... " >&6; } 12267if ${ac_cv_prog_cc_g+:} false; then : 12268 $as_echo_n "(cached) " >&6 12269else 12270 ac_save_c_werror_flag=$ac_c_werror_flag 12271 ac_c_werror_flag=yes 12272 ac_cv_prog_cc_g=no 12273 CFLAGS="-g" 12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12275/* end confdefs.h. */ 12276 12277int 12278main () 12279{ 12280 12281 ; 12282 return 0; 12283} 12284_ACEOF 12285if ac_fn_c_try_compile "$LINENO"; then : 12286 ac_cv_prog_cc_g=yes 12287else 12288 CFLAGS="" 12289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12290/* end confdefs.h. */ 12291 12292int 12293main () 12294{ 12295 12296 ; 12297 return 0; 12298} 12299_ACEOF 12300if ac_fn_c_try_compile "$LINENO"; then : 12301 12302else 12303 ac_c_werror_flag=$ac_save_c_werror_flag 12304 CFLAGS="-g" 12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12306/* end confdefs.h. */ 12307 12308int 12309main () 12310{ 12311 12312 ; 12313 return 0; 12314} 12315_ACEOF 12316if ac_fn_c_try_compile "$LINENO"; then : 12317 ac_cv_prog_cc_g=yes 12318fi 12319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12320fi 12321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12322fi 12323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12324 ac_c_werror_flag=$ac_save_c_werror_flag 12325fi 12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12327$as_echo "$ac_cv_prog_cc_g" >&6; } 12328if test "$ac_test_CFLAGS" = set; then 12329 CFLAGS=$ac_save_CFLAGS 12330elif test $ac_cv_prog_cc_g = yes; then 12331 if test "$GCC" = yes; then 12332 CFLAGS="-g -O2" 12333 else 12334 CFLAGS="-g" 12335 fi 12336else 12337 if test "$GCC" = yes; then 12338 CFLAGS="-O2" 12339 else 12340 CFLAGS= 12341 fi 12342fi 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12344$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12345if ${ac_cv_prog_cc_c89+:} false; then : 12346 $as_echo_n "(cached) " >&6 12347else 12348 ac_cv_prog_cc_c89=no 12349ac_save_CC=$CC 12350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12351/* end confdefs.h. */ 12352#include <stdarg.h> 12353#include <stdio.h> 12354struct stat; 12355/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12356struct buf { int x; }; 12357FILE * (*rcsopen) (struct buf *, struct stat *, int); 12358static char *e (p, i) 12359 char **p; 12360 int i; 12361{ 12362 return p[i]; 12363} 12364static char *f (char * (*g) (char **, int), char **p, ...) 12365{ 12366 char *s; 12367 va_list v; 12368 va_start (v,p); 12369 s = g (p, va_arg (v,int)); 12370 va_end (v); 12371 return s; 12372} 12373 12374/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12375 function prototypes and stuff, but not '\xHH' hex character constants. 12376 These don't provoke an error unfortunately, instead are silently treated 12377 as 'x'. The following induces an error, until -std is added to get 12378 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12379 array size at least. It's necessary to write '\x00'==0 to get something 12380 that's true only with -std. */ 12381int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12382 12383/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12384 inside strings and character constants. */ 12385#define FOO(x) 'x' 12386int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12387 12388int test (int i, double x); 12389struct s1 {int (*f) (int a);}; 12390struct s2 {int (*f) (double a);}; 12391int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12392int argc; 12393char **argv; 12394int 12395main () 12396{ 12397return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12398 ; 12399 return 0; 12400} 12401_ACEOF 12402for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12403 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12404do 12405 CC="$ac_save_CC $ac_arg" 12406 if ac_fn_c_try_compile "$LINENO"; then : 12407 ac_cv_prog_cc_c89=$ac_arg 12408fi 12409rm -f core conftest.err conftest.$ac_objext 12410 test "x$ac_cv_prog_cc_c89" != "xno" && break 12411done 12412rm -f conftest.$ac_ext 12413CC=$ac_save_CC 12414 12415fi 12416# AC_CACHE_VAL 12417case "x$ac_cv_prog_cc_c89" in 12418 x) 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12420$as_echo "none needed" >&6; } ;; 12421 xno) 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12423$as_echo "unsupported" >&6; } ;; 12424 *) 12425 CC="$CC $ac_cv_prog_cc_c89" 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12427$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12428esac 12429if test "x$ac_cv_prog_cc_c89" != xno; then : 12430 12431fi 12432 12433ac_ext=c 12434ac_cpp='$CPP $CPPFLAGS' 12435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12437ac_compiler_gnu=$ac_cv_c_compiler_gnu 12438 12439depcc="$CC" am_compiler_list= 12440 12441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12442$as_echo_n "checking dependency style of $depcc... " >&6; } 12443if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12444 $as_echo_n "(cached) " >&6 12445else 12446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12447 # We make a subdir and do the tests there. Otherwise we can end up 12448 # making bogus files that we don't know about and never remove. For 12449 # instance it was reported that on HP-UX the gcc test will end up 12450 # making a dummy file named 'D' -- because '-MD' means "put the output 12451 # in D". 12452 rm -rf conftest.dir 12453 mkdir conftest.dir 12454 # Copy depcomp to subdir because otherwise we won't find it if we're 12455 # using a relative directory. 12456 cp "$am_depcomp" conftest.dir 12457 cd conftest.dir 12458 # We will build objects and dependencies in a subdirectory because 12459 # it helps to detect inapplicable dependency modes. For instance 12460 # both Tru64's cc and ICC support -MD to output dependencies as a 12461 # side effect of compilation, but ICC will put the dependencies in 12462 # the current directory while Tru64 will put them in the object 12463 # directory. 12464 mkdir sub 12465 12466 am_cv_CC_dependencies_compiler_type=none 12467 if test "$am_compiler_list" = ""; then 12468 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12469 fi 12470 am__universal=false 12471 case " $depcc " in #( 12472 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12473 esac 12474 12475 for depmode in $am_compiler_list; do 12476 # Setup a source with many dependencies, because some compilers 12477 # like to wrap large dependency lists on column 80 (with \), and 12478 # we should not choose a depcomp mode which is confused by this. 12479 # 12480 # We need to recreate these files for each test, as the compiler may 12481 # overwrite some of them when testing with obscure command lines. 12482 # This happens at least with the AIX C compiler. 12483 : > sub/conftest.c 12484 for i in 1 2 3 4 5 6; do 12485 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12486 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12487 # Solaris 10 /bin/sh. 12488 echo '/* dummy */' > sub/conftst$i.h 12489 done 12490 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12491 12492 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12493 # mode. It turns out that the SunPro C++ compiler does not properly 12494 # handle '-M -o', and we need to detect this. Also, some Intel 12495 # versions had trouble with output in subdirs. 12496 am__obj=sub/conftest.${OBJEXT-o} 12497 am__minus_obj="-o $am__obj" 12498 case $depmode in 12499 gcc) 12500 # This depmode causes a compiler race in universal mode. 12501 test "$am__universal" = false || continue 12502 ;; 12503 nosideeffect) 12504 # After this tag, mechanisms are not by side-effect, so they'll 12505 # only be used when explicitly requested. 12506 if test "x$enable_dependency_tracking" = xyes; then 12507 continue 12508 else 12509 break 12510 fi 12511 ;; 12512 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12513 # This compiler won't grok '-c -o', but also, the minuso test has 12514 # not run yet. These depmodes are late enough in the game, and 12515 # so weak that their functioning should not be impacted. 12516 am__obj=conftest.${OBJEXT-o} 12517 am__minus_obj= 12518 ;; 12519 none) break ;; 12520 esac 12521 if depmode=$depmode \ 12522 source=sub/conftest.c object=$am__obj \ 12523 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12524 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12525 >/dev/null 2>conftest.err && 12526 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12527 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12528 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12529 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12530 # icc doesn't choke on unknown options, it will just issue warnings 12531 # or remarks (even with -Werror). So we grep stderr for any message 12532 # that says an option was ignored or not supported. 12533 # When given -MP, icc 7.0 and 7.1 complain thusly: 12534 # icc: Command line warning: ignoring option '-M'; no argument required 12535 # The diagnosis changed in icc 8.0: 12536 # icc: Command line remark: option '-MP' not supported 12537 if (grep 'ignoring option' conftest.err || 12538 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12539 am_cv_CC_dependencies_compiler_type=$depmode 12540 break 12541 fi 12542 fi 12543 done 12544 12545 cd .. 12546 rm -rf conftest.dir 12547else 12548 am_cv_CC_dependencies_compiler_type=none 12549fi 12550 12551fi 12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12553$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12554CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12555 12556 if 12557 test "x$enable_dependency_tracking" != xno \ 12558 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12559 am__fastdepCC_TRUE= 12560 am__fastdepCC_FALSE='#' 12561else 12562 am__fastdepCC_TRUE='#' 12563 am__fastdepCC_FALSE= 12564fi 12565 12566 12567if test "x$CC" != xcc; then 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 12569$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 12570else 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 12572$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 12573fi 12574set dummy $CC; ac_cc=`$as_echo "$2" | 12575 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 12576if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then : 12577 $as_echo_n "(cached) " >&6 12578else 12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12580/* end confdefs.h. */ 12581 12582int 12583main () 12584{ 12585 12586 ; 12587 return 0; 12588} 12589_ACEOF 12590# Make sure it works both with $CC and with simple cc. 12591# We do the test twice because some compilers refuse to overwrite an 12592# existing .o file with -o, though they will create one. 12593ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 12594rm -f conftest2.* 12595if { { case "(($ac_try" in 12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12597 *) ac_try_echo=$ac_try;; 12598esac 12599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12600$as_echo "$ac_try_echo"; } >&5 12601 (eval "$ac_try") 2>&5 12602 ac_status=$? 12603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12604 test $ac_status = 0; } && 12605 test -f conftest2.$ac_objext && { { case "(($ac_try" in 12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12607 *) ac_try_echo=$ac_try;; 12608esac 12609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12610$as_echo "$ac_try_echo"; } >&5 12611 (eval "$ac_try") 2>&5 12612 ac_status=$? 12613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12614 test $ac_status = 0; }; 12615then 12616 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 12617 if test "x$CC" != xcc; then 12618 # Test first that cc exists at all. 12619 if { ac_try='cc -c conftest.$ac_ext >&5' 12620 { { case "(($ac_try" in 12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12622 *) ac_try_echo=$ac_try;; 12623esac 12624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12625$as_echo "$ac_try_echo"; } >&5 12626 (eval "$ac_try") 2>&5 12627 ac_status=$? 12628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12629 test $ac_status = 0; }; }; then 12630 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 12631 rm -f conftest2.* 12632 if { { case "(($ac_try" in 12633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12634 *) ac_try_echo=$ac_try;; 12635esac 12636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12637$as_echo "$ac_try_echo"; } >&5 12638 (eval "$ac_try") 2>&5 12639 ac_status=$? 12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12641 test $ac_status = 0; } && 12642 test -f conftest2.$ac_objext && { { case "(($ac_try" in 12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12644 *) ac_try_echo=$ac_try;; 12645esac 12646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12647$as_echo "$ac_try_echo"; } >&5 12648 (eval "$ac_try") 2>&5 12649 ac_status=$? 12650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12651 test $ac_status = 0; }; 12652 then 12653 # cc works too. 12654 : 12655 else 12656 # cc exists but doesn't like -o. 12657 eval ac_cv_prog_cc_${ac_cc}_c_o=no 12658 fi 12659 fi 12660 fi 12661else 12662 eval ac_cv_prog_cc_${ac_cc}_c_o=no 12663fi 12664rm -f core conftest* 12665 12666fi 12667if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12669$as_echo "yes" >&6; } 12670else 12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12672$as_echo "no" >&6; } 12673 12674$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 12675 12676fi 12677 12678# FIXME: we rely on the cache variable name because 12679# there is no other way. 12680set dummy $CC 12681am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 12682eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 12683if test "$am_t" != yes; then 12684 # Losing compiler, so override with the script. 12685 # FIXME: It is wrong to rewrite CC. 12686 # But if we don't then we get into trouble of one sort or another. 12687 # A longer-term fix would be to have automake use am__CC in this case, 12688 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12689 CC="$am_aux_dir/compile $CC" 12690fi 12691 12692 12693#if test "$ac_cv_prog_cc_${ac_cc}_c_o" = yes; then 12694# case "$AM_CFLAGS" in 12695# "-g") ;; 12696# *) AM_CFLAGS="${AM_CFLAGS:+$AM_CFLAGS }-g";; 12697# esac 12698#fi 12699ac_ext=c 12700ac_cpp='$CPP $CPPFLAGS' 12701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12703ac_compiler_gnu=$ac_cv_c_compiler_gnu 12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 12705$as_echo_n "checking how to run the C preprocessor... " >&6; } 12706# On Suns, sometimes $CPP names a directory. 12707if test -n "$CPP" && test -d "$CPP"; then 12708 CPP= 12709fi 12710if test -z "$CPP"; then 12711 if ${ac_cv_prog_CPP+:} false; then : 12712 $as_echo_n "(cached) " >&6 12713else 12714 # Double quotes because CPP needs to be expanded 12715 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 12716 do 12717 ac_preproc_ok=false 12718for ac_c_preproc_warn_flag in '' yes 12719do 12720 # Use a header file that comes with gcc, so configuring glibc 12721 # with a fresh cross-compiler works. 12722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12723 # <limits.h> exists even on freestanding compilers. 12724 # On the NeXT, cc -E runs the code through the compiler's parser, 12725 # not just through cpp. "Syntax error" is here to catch this case. 12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12727/* end confdefs.h. */ 12728#ifdef __STDC__ 12729# include <limits.h> 12730#else 12731# include <assert.h> 12732#endif 12733 Syntax error 12734_ACEOF 12735if ac_fn_c_try_cpp "$LINENO"; then : 12736 12737else 12738 # Broken: fails on valid input. 12739continue 12740fi 12741rm -f conftest.err conftest.i conftest.$ac_ext 12742 12743 # OK, works on sane cases. Now check whether nonexistent headers 12744 # can be detected and how. 12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12746/* end confdefs.h. */ 12747#include <ac_nonexistent.h> 12748_ACEOF 12749if ac_fn_c_try_cpp "$LINENO"; then : 12750 # Broken: success on invalid input. 12751continue 12752else 12753 # Passes both tests. 12754ac_preproc_ok=: 12755break 12756fi 12757rm -f conftest.err conftest.i conftest.$ac_ext 12758 12759done 12760# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12761rm -f conftest.i conftest.err conftest.$ac_ext 12762if $ac_preproc_ok; then : 12763 break 12764fi 12765 12766 done 12767 ac_cv_prog_CPP=$CPP 12768 12769fi 12770 CPP=$ac_cv_prog_CPP 12771else 12772 ac_cv_prog_CPP=$CPP 12773fi 12774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 12775$as_echo "$CPP" >&6; } 12776ac_preproc_ok=false 12777for ac_c_preproc_warn_flag in '' yes 12778do 12779 # Use a header file that comes with gcc, so configuring glibc 12780 # with a fresh cross-compiler works. 12781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12782 # <limits.h> exists even on freestanding compilers. 12783 # On the NeXT, cc -E runs the code through the compiler's parser, 12784 # not just through cpp. "Syntax error" is here to catch this case. 12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12786/* end confdefs.h. */ 12787#ifdef __STDC__ 12788# include <limits.h> 12789#else 12790# include <assert.h> 12791#endif 12792 Syntax error 12793_ACEOF 12794if ac_fn_c_try_cpp "$LINENO"; then : 12795 12796else 12797 # Broken: fails on valid input. 12798continue 12799fi 12800rm -f conftest.err conftest.i conftest.$ac_ext 12801 12802 # OK, works on sane cases. Now check whether nonexistent headers 12803 # can be detected and how. 12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12805/* end confdefs.h. */ 12806#include <ac_nonexistent.h> 12807_ACEOF 12808if ac_fn_c_try_cpp "$LINENO"; then : 12809 # Broken: success on invalid input. 12810continue 12811else 12812 # Passes both tests. 12813ac_preproc_ok=: 12814break 12815fi 12816rm -f conftest.err conftest.i conftest.$ac_ext 12817 12818done 12819# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12820rm -f conftest.i conftest.err conftest.$ac_ext 12821if $ac_preproc_ok; then : 12822 12823else 12824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12825$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12826as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 12827See \`config.log' for more details" "$LINENO" 5; } 12828fi 12829 12830ac_ext=c 12831ac_cpp='$CPP $CPPFLAGS' 12832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12834ac_compiler_gnu=$ac_cv_c_compiler_gnu 12835 12836 12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12838$as_echo_n "checking whether ln -s works... " >&6; } 12839LN_S=$as_ln_s 12840if test "$LN_S" = "ln -s"; then 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12842$as_echo "yes" >&6; } 12843else 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12845$as_echo "no, using $LN_S" >&6; } 12846fi 12847 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 12849$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 12850set x ${MAKE-make} 12851ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 12852if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 12853 $as_echo_n "(cached) " >&6 12854else 12855 cat >conftest.make <<\_ACEOF 12856SHELL = /bin/sh 12857all: 12858 @echo '@@@%%%=$(MAKE)=@@@%%%' 12859_ACEOF 12860# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 12861case `${MAKE-make} -f conftest.make 2>/dev/null` in 12862 *@@@%%%=?*=@@@%%%*) 12863 eval ac_cv_prog_make_${ac_make}_set=yes;; 12864 *) 12865 eval ac_cv_prog_make_${ac_make}_set=no;; 12866esac 12867rm -f conftest.make 12868fi 12869if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12871$as_echo "yes" >&6; } 12872 SET_MAKE= 12873else 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12875$as_echo "no" >&6; } 12876 SET_MAKE="MAKE=${MAKE-make}" 12877fi 12878 12879for ac_prog in 'bison -y' byacc 12880do 12881 # Extract the first word of "$ac_prog", so it can be a program name with args. 12882set dummy $ac_prog; ac_word=$2 12883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12884$as_echo_n "checking for $ac_word... " >&6; } 12885if ${ac_cv_prog_YACC+:} false; then : 12886 $as_echo_n "(cached) " >&6 12887else 12888 if test -n "$YACC"; then 12889 ac_cv_prog_YACC="$YACC" # Let the user override the test. 12890else 12891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12892for as_dir in $PATH 12893do 12894 IFS=$as_save_IFS 12895 test -z "$as_dir" && as_dir=. 12896 for ac_exec_ext in '' $ac_executable_extensions; do 12897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12898 ac_cv_prog_YACC="$ac_prog" 12899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12900 break 2 12901 fi 12902done 12903 done 12904IFS=$as_save_IFS 12905 12906fi 12907fi 12908YACC=$ac_cv_prog_YACC 12909if test -n "$YACC"; then 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 12911$as_echo "$YACC" >&6; } 12912else 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12914$as_echo "no" >&6; } 12915fi 12916 12917 12918 test -n "$YACC" && break 12919done 12920test -n "$YACC" || YACC="yacc" 12921 12922for ac_prog in flex lex 12923do 12924 # Extract the first word of "$ac_prog", so it can be a program name with args. 12925set dummy $ac_prog; ac_word=$2 12926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12927$as_echo_n "checking for $ac_word... " >&6; } 12928if ${ac_cv_prog_LEX+:} false; then : 12929 $as_echo_n "(cached) " >&6 12930else 12931 if test -n "$LEX"; then 12932 ac_cv_prog_LEX="$LEX" # Let the user override the test. 12933else 12934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12935for as_dir in $PATH 12936do 12937 IFS=$as_save_IFS 12938 test -z "$as_dir" && as_dir=. 12939 for ac_exec_ext in '' $ac_executable_extensions; do 12940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12941 ac_cv_prog_LEX="$ac_prog" 12942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12943 break 2 12944 fi 12945done 12946 done 12947IFS=$as_save_IFS 12948 12949fi 12950fi 12951LEX=$ac_cv_prog_LEX 12952if test -n "$LEX"; then 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 12954$as_echo "$LEX" >&6; } 12955else 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12957$as_echo "no" >&6; } 12958fi 12959 12960 12961 test -n "$LEX" && break 12962done 12963test -n "$LEX" || LEX=":" 12964 12965if test "x$LEX" != "x:"; then 12966 cat >conftest.l <<_ACEOF 12967%% 12968a { ECHO; } 12969b { REJECT; } 12970c { yymore (); } 12971d { yyless (1); } 12972e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 12973 yyless ((input () != 0)); } 12974f { unput (yytext[0]); } 12975. { BEGIN INITIAL; } 12976%% 12977#ifdef YYTEXT_POINTER 12978extern char *yytext; 12979#endif 12980int 12981main (void) 12982{ 12983 return ! yylex () + ! yywrap (); 12984} 12985_ACEOF 12986{ { ac_try="$LEX conftest.l" 12987case "(($ac_try" in 12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12989 *) ac_try_echo=$ac_try;; 12990esac 12991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12992$as_echo "$ac_try_echo"; } >&5 12993 (eval "$LEX conftest.l") 2>&5 12994 ac_status=$? 12995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12996 test $ac_status = 0; } 12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 12998$as_echo_n "checking lex output file root... " >&6; } 12999if ${ac_cv_prog_lex_root+:} false; then : 13000 $as_echo_n "(cached) " >&6 13001else 13002 13003if test -f lex.yy.c; then 13004 ac_cv_prog_lex_root=lex.yy 13005elif test -f lexyy.c; then 13006 ac_cv_prog_lex_root=lexyy 13007else 13008 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 13009fi 13010fi 13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 13012$as_echo "$ac_cv_prog_lex_root" >&6; } 13013LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 13014 13015if test -z "${LEXLIB+set}"; then 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 13017$as_echo_n "checking lex library... " >&6; } 13018if ${ac_cv_lib_lex+:} false; then : 13019 $as_echo_n "(cached) " >&6 13020else 13021 13022 ac_save_LIBS=$LIBS 13023 ac_cv_lib_lex='none needed' 13024 for ac_lib in '' -lfl -ll; do 13025 LIBS="$ac_lib $ac_save_LIBS" 13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13027/* end confdefs.h. */ 13028`cat $LEX_OUTPUT_ROOT.c` 13029_ACEOF 13030if ac_fn_c_try_link "$LINENO"; then : 13031 ac_cv_lib_lex=$ac_lib 13032fi 13033rm -f core conftest.err conftest.$ac_objext \ 13034 conftest$ac_exeext conftest.$ac_ext 13035 test "$ac_cv_lib_lex" != 'none needed' && break 13036 done 13037 LIBS=$ac_save_LIBS 13038 13039fi 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 13041$as_echo "$ac_cv_lib_lex" >&6; } 13042 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 13043fi 13044 13045 13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 13047$as_echo_n "checking whether yytext is a pointer... " >&6; } 13048if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 13049 $as_echo_n "(cached) " >&6 13050else 13051 # POSIX says lex can declare yytext either as a pointer or an array; the 13052# default is implementation-dependent. Figure out which it is, since 13053# not all implementations provide the %pointer and %array declarations. 13054ac_cv_prog_lex_yytext_pointer=no 13055ac_save_LIBS=$LIBS 13056LIBS="$LEXLIB $ac_save_LIBS" 13057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13058/* end confdefs.h. */ 13059 13060 #define YYTEXT_POINTER 1 13061`cat $LEX_OUTPUT_ROOT.c` 13062_ACEOF 13063if ac_fn_c_try_link "$LINENO"; then : 13064 ac_cv_prog_lex_yytext_pointer=yes 13065fi 13066rm -f core conftest.err conftest.$ac_objext \ 13067 conftest$ac_exeext conftest.$ac_ext 13068LIBS=$ac_save_LIBS 13069 13070fi 13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 13072$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 13073if test $ac_cv_prog_lex_yytext_pointer = yes; then 13074 13075$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 13076 13077fi 13078rm -f conftest.l $LEX_OUTPUT_ROOT.c 13079 13080fi 13081if test "$LEX" = :; then 13082 LEX=${am_missing_run}flex 13083fi 13084ac_ext=${ac_fc_srcext-f} 13085ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 13086ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 13087ac_compiler_gnu=$ac_cv_fc_compiler_gnu 13088if test -n "$ac_tool_prefix"; then 13089 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 13090 do 13091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13092set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13094$as_echo_n "checking for $ac_word... " >&6; } 13095if ${ac_cv_prog_FC+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097else 13098 if test -n "$FC"; then 13099 ac_cv_prog_FC="$FC" # Let the user override the test. 13100else 13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13102for as_dir in $PATH 13103do 13104 IFS=$as_save_IFS 13105 test -z "$as_dir" && as_dir=. 13106 for ac_exec_ext in '' $ac_executable_extensions; do 13107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13108 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 13109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13110 break 2 13111 fi 13112done 13113 done 13114IFS=$as_save_IFS 13115 13116fi 13117fi 13118FC=$ac_cv_prog_FC 13119if test -n "$FC"; then 13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 13121$as_echo "$FC" >&6; } 13122else 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13124$as_echo "no" >&6; } 13125fi 13126 13127 13128 test -n "$FC" && break 13129 done 13130fi 13131if test -z "$FC"; then 13132 ac_ct_FC=$FC 13133 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 13134do 13135 # Extract the first word of "$ac_prog", so it can be a program name with args. 13136set dummy $ac_prog; ac_word=$2 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13138$as_echo_n "checking for $ac_word... " >&6; } 13139if ${ac_cv_prog_ac_ct_FC+:} false; then : 13140 $as_echo_n "(cached) " >&6 13141else 13142 if test -n "$ac_ct_FC"; then 13143 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 13144else 13145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13146for as_dir in $PATH 13147do 13148 IFS=$as_save_IFS 13149 test -z "$as_dir" && as_dir=. 13150 for ac_exec_ext in '' $ac_executable_extensions; do 13151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13152 ac_cv_prog_ac_ct_FC="$ac_prog" 13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13154 break 2 13155 fi 13156done 13157 done 13158IFS=$as_save_IFS 13159 13160fi 13161fi 13162ac_ct_FC=$ac_cv_prog_ac_ct_FC 13163if test -n "$ac_ct_FC"; then 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 13165$as_echo "$ac_ct_FC" >&6; } 13166else 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13168$as_echo "no" >&6; } 13169fi 13170 13171 13172 test -n "$ac_ct_FC" && break 13173done 13174 13175 if test "x$ac_ct_FC" = x; then 13176 FC="" 13177 else 13178 case $cross_compiling:$ac_tool_warned in 13179yes:) 13180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13182ac_tool_warned=yes ;; 13183esac 13184 FC=$ac_ct_FC 13185 fi 13186fi 13187 13188 13189# Provide some information about the compiler. 13190$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 13191set X $ac_compile 13192ac_compiler=$2 13193for ac_option in --version -v -V -qversion; do 13194 { { ac_try="$ac_compiler $ac_option >&5" 13195case "(($ac_try" in 13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13197 *) ac_try_echo=$ac_try;; 13198esac 13199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13200$as_echo "$ac_try_echo"; } >&5 13201 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13202 ac_status=$? 13203 if test -s conftest.err; then 13204 sed '10a\ 13205... rest of stderr output deleted ... 13206 10q' conftest.err >conftest.er1 13207 cat conftest.er1 >&5 13208 fi 13209 rm -f conftest.er1 conftest.err 13210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13211 test $ac_status = 0; } 13212done 13213rm -f a.out 13214 13215# If we don't use `.F' as extension, the preprocessor is not run on the 13216# input file. (Note that this only needs to work for GNU compilers.) 13217ac_save_ext=$ac_ext 13218ac_ext=F 13219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 13220$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 13221if ${ac_cv_fc_compiler_gnu+:} false; then : 13222 $as_echo_n "(cached) " >&6 13223else 13224 cat > conftest.$ac_ext <<_ACEOF 13225 program main 13226#ifndef __GNUC__ 13227 choke me 13228#endif 13229 13230 end 13231_ACEOF 13232if ac_fn_fc_try_compile "$LINENO"; then : 13233 ac_compiler_gnu=yes 13234else 13235 ac_compiler_gnu=no 13236fi 13237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13238ac_cv_fc_compiler_gnu=$ac_compiler_gnu 13239 13240fi 13241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 13242$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 13243ac_ext=$ac_save_ext 13244ac_test_FCFLAGS=${FCFLAGS+set} 13245ac_save_FCFLAGS=$FCFLAGS 13246FCFLAGS= 13247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 13248$as_echo_n "checking whether $FC accepts -g... " >&6; } 13249if ${ac_cv_prog_fc_g+:} false; then : 13250 $as_echo_n "(cached) " >&6 13251else 13252 FCFLAGS=-g 13253cat > conftest.$ac_ext <<_ACEOF 13254 program main 13255 13256 end 13257_ACEOF 13258if ac_fn_fc_try_compile "$LINENO"; then : 13259 ac_cv_prog_fc_g=yes 13260else 13261 ac_cv_prog_fc_g=no 13262fi 13263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13264 13265fi 13266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 13267$as_echo "$ac_cv_prog_fc_g" >&6; } 13268if test "$ac_test_FCFLAGS" = set; then 13269 FCFLAGS=$ac_save_FCFLAGS 13270elif test $ac_cv_prog_fc_g = yes; then 13271 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 13272 FCFLAGS="-g -O2" 13273 else 13274 FCFLAGS="-g" 13275 fi 13276else 13277 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 13278 FCFLAGS="-O2" 13279 else 13280 FCFLAGS= 13281 fi 13282fi 13283 13284if test $ac_compiler_gnu = yes; then 13285 GFC=yes 13286else 13287 GFC= 13288fi 13289ac_ext=c 13290ac_cpp='$CPP $CPPFLAGS' 13291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13293ac_compiler_gnu=$ac_cv_c_compiler_gnu 13294 13295 13296func_stripname_cnf () 13297{ 13298 case ${2} in 13299 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13300 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13301 esac 13302} # func_stripname_cnf 13303 13304 13305 ac_ext=${ac_fc_srcext-f} 13306ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 13307ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 13308ac_compiler_gnu=$ac_cv_fc_compiler_gnu 13309 13310 13311if test -z "$FC" || test "X$FC" = "Xno"; then 13312 _lt_disable_FC=yes 13313fi 13314 13315archive_cmds_need_lc_FC=no 13316allow_undefined_flag_FC= 13317always_export_symbols_FC=no 13318archive_expsym_cmds_FC= 13319export_dynamic_flag_spec_FC= 13320hardcode_direct_FC=no 13321hardcode_direct_absolute_FC=no 13322hardcode_libdir_flag_spec_FC= 13323hardcode_libdir_separator_FC= 13324hardcode_minus_L_FC=no 13325hardcode_automatic_FC=no 13326inherit_rpath_FC=no 13327module_cmds_FC= 13328module_expsym_cmds_FC= 13329link_all_deplibs_FC=unknown 13330old_archive_cmds_FC=$old_archive_cmds 13331reload_flag_FC=$reload_flag 13332reload_cmds_FC=$reload_cmds 13333no_undefined_flag_FC= 13334whole_archive_flag_spec_FC= 13335enable_shared_with_static_runtimes_FC=no 13336 13337# Source file extension for fc test sources. 13338ac_ext=${ac_fc_srcext-f} 13339 13340# Object file extension for compiled fc test sources. 13341objext=o 13342objext_FC=$objext 13343 13344# No sense in running all these tests if we already determined that 13345# the FC compiler isn't working. Some variables (like enable_shared) 13346# are currently assumed to apply to all compilers on this platform, 13347# and will be corrupted by setting them based on a non-working compiler. 13348if test "$_lt_disable_FC" != yes; then 13349 # Code to be used in simple compile tests 13350 lt_simple_compile_test_code="\ 13351 subroutine t 13352 return 13353 end 13354" 13355 13356 # Code to be used in simple link tests 13357 lt_simple_link_test_code="\ 13358 program t 13359 end 13360" 13361 13362 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13363 13364 13365 13366 13367 13368 13369# If no C compiler was specified, use CC. 13370LTCC=${LTCC-"$CC"} 13371 13372# If no C compiler flags were specified, use CFLAGS. 13373LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13374 13375# Allow CC to be a program name with arguments. 13376compiler=$CC 13377 13378 13379 # save warnings/boilerplate of simple test code 13380 ac_outfile=conftest.$ac_objext 13381echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13382eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13383_lt_compiler_boilerplate=`cat conftest.err` 13384$RM conftest* 13385 13386 ac_outfile=conftest.$ac_objext 13387echo "$lt_simple_link_test_code" >conftest.$ac_ext 13388eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13389_lt_linker_boilerplate=`cat conftest.err` 13390$RM -r conftest* 13391 13392 13393 # Allow CC to be a program name with arguments. 13394 lt_save_CC="$CC" 13395 lt_save_GCC=$GCC 13396 lt_save_CFLAGS=$CFLAGS 13397 CC=${FC-"f95"} 13398 CFLAGS=$FCFLAGS 13399 compiler=$CC 13400 GCC=$ac_cv_fc_compiler_gnu 13401 13402 compiler_FC=$CC 13403 for cc_temp in $compiler""; do 13404 case $cc_temp in 13405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13407 \-*) ;; 13408 *) break;; 13409 esac 13410done 13411cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13412 13413 13414 if test -n "$compiler"; then 13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13416$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13418$as_echo "$can_build_shared" >&6; } 13419 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13421$as_echo_n "checking whether to build shared libraries... " >&6; } 13422 test "$can_build_shared" = "no" && enable_shared=no 13423 13424 # On AIX, shared libraries and static libraries use the same namespace, and 13425 # are all built from PIC. 13426 case $host_os in 13427 aix3*) 13428 test "$enable_shared" = yes && enable_static=no 13429 if test -n "$RANLIB"; then 13430 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13431 postinstall_cmds='$RANLIB $lib' 13432 fi 13433 ;; 13434 aix[4-9]*) 13435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13436 test "$enable_shared" = yes && enable_static=no 13437 fi 13438 ;; 13439 esac 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13441$as_echo "$enable_shared" >&6; } 13442 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13444$as_echo_n "checking whether to build static libraries... " >&6; } 13445 # Make sure either enable_shared or enable_static is yes. 13446 test "$enable_shared" = yes || enable_static=yes 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13448$as_echo "$enable_static" >&6; } 13449 13450 GCC_FC="$ac_cv_fc_compiler_gnu" 13451 LD_FC="$LD" 13452 13453 ## CAVEAT EMPTOR: 13454 ## There is no encapsulation within the following macros, do not change 13455 ## the running order or otherwise move them around unless you know exactly 13456 ## what you are doing... 13457 # Dependencies to place before and after the object being linked: 13458predep_objects_FC= 13459postdep_objects_FC= 13460predeps_FC= 13461postdeps_FC= 13462compiler_lib_search_path_FC= 13463 13464cat > conftest.$ac_ext <<_LT_EOF 13465 subroutine foo 13466 implicit none 13467 integer a 13468 a=0 13469 return 13470 end 13471_LT_EOF 13472 13473 13474_lt_libdeps_save_CFLAGS=$CFLAGS 13475case "$CC $CFLAGS " in #( 13476*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13477*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13478*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13479esac 13480 13481if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13482 (eval $ac_compile) 2>&5 13483 ac_status=$? 13484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13485 test $ac_status = 0; }; then 13486 # Parse the compiler output and extract the necessary 13487 # objects, libraries and library flags. 13488 13489 # Sentinel used to keep track of whether or not we are before 13490 # the conftest object file. 13491 pre_test_object_deps_done=no 13492 13493 for p in `eval "$output_verbose_link_cmd"`; do 13494 case ${prev}${p} in 13495 13496 -L* | -R* | -l*) 13497 # Some compilers place space between "-{L,R}" and the path. 13498 # Remove the space. 13499 if test $p = "-L" || 13500 test $p = "-R"; then 13501 prev=$p 13502 continue 13503 fi 13504 13505 # Expand the sysroot to ease extracting the directories later. 13506 if test -z "$prev"; then 13507 case $p in 13508 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13509 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13510 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13511 esac 13512 fi 13513 case $p in 13514 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13515 esac 13516 if test "$pre_test_object_deps_done" = no; then 13517 case ${prev} in 13518 -L | -R) 13519 # Internal compiler library paths should come after those 13520 # provided the user. The postdeps already come after the 13521 # user supplied libs so there is no need to process them. 13522 if test -z "$compiler_lib_search_path_FC"; then 13523 compiler_lib_search_path_FC="${prev}${p}" 13524 else 13525 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" 13526 fi 13527 ;; 13528 # The "-l" case would never come before the object being 13529 # linked, so don't bother handling this case. 13530 esac 13531 else 13532 if test -z "$postdeps_FC"; then 13533 postdeps_FC="${prev}${p}" 13534 else 13535 postdeps_FC="${postdeps_FC} ${prev}${p}" 13536 fi 13537 fi 13538 prev= 13539 ;; 13540 13541 *.lto.$objext) ;; # Ignore GCC LTO objects 13542 *.$objext) 13543 # This assumes that the test object file only shows up 13544 # once in the compiler output. 13545 if test "$p" = "conftest.$objext"; then 13546 pre_test_object_deps_done=yes 13547 continue 13548 fi 13549 13550 if test "$pre_test_object_deps_done" = no; then 13551 if test -z "$predep_objects_FC"; then 13552 predep_objects_FC="$p" 13553 else 13554 predep_objects_FC="$predep_objects_FC $p" 13555 fi 13556 else 13557 if test -z "$postdep_objects_FC"; then 13558 postdep_objects_FC="$p" 13559 else 13560 postdep_objects_FC="$postdep_objects_FC $p" 13561 fi 13562 fi 13563 ;; 13564 13565 *) ;; # Ignore the rest. 13566 13567 esac 13568 done 13569 13570 # Clean up. 13571 rm -f a.out a.exe 13572else 13573 echo "libtool.m4: error: problem compiling FC test program" 13574fi 13575 13576$RM -f confest.$objext 13577CFLAGS=$_lt_libdeps_save_CFLAGS 13578 13579# PORTME: override above test on systems where it is broken 13580 13581 13582case " $postdeps_FC " in 13583*" -lc "*) archive_cmds_need_lc_FC=no ;; 13584esac 13585 compiler_lib_search_dirs_FC= 13586if test -n "${compiler_lib_search_path_FC}"; then 13587 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13588fi 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 lt_prog_compiler_wl_FC= 13621lt_prog_compiler_pic_FC= 13622lt_prog_compiler_static_FC= 13623 13624 13625 if test "$GCC" = yes; then 13626 lt_prog_compiler_wl_FC='-Wl,' 13627 lt_prog_compiler_static_FC='-static' 13628 13629 case $host_os in 13630 aix*) 13631 # All AIX code is PIC. 13632 if test "$host_cpu" = ia64; then 13633 # AIX 5 now supports IA64 processor 13634 lt_prog_compiler_static_FC='-Bstatic' 13635 fi 13636 ;; 13637 13638 amigaos*) 13639 case $host_cpu in 13640 powerpc) 13641 # see comment about AmigaOS4 .so support 13642 lt_prog_compiler_pic_FC='-fPIC' 13643 ;; 13644 m68k) 13645 # FIXME: we need at least 68020 code to build shared libraries, but 13646 # adding the `-m68020' flag to GCC prevents building anything better, 13647 # like `-m68040'. 13648 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 13649 ;; 13650 esac 13651 ;; 13652 13653 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13654 # PIC is the default for these OSes. 13655 ;; 13656 13657 mingw* | cygwin* | pw32* | os2* | cegcc*) 13658 # This hack is so that the source file can tell whether it is being 13659 # built for inclusion in a dll (and should export symbols for example). 13660 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13661 # (--disable-auto-import) libraries 13662 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 13663 ;; 13664 13665 darwin* | rhapsody*) 13666 # PIC is the default on this platform 13667 # Common symbols not allowed in MH_DYLIB files 13668 lt_prog_compiler_pic_FC='-fno-common' 13669 ;; 13670 13671 haiku*) 13672 # PIC is the default for Haiku. 13673 # The "-static" flag exists, but is broken. 13674 lt_prog_compiler_static_FC= 13675 ;; 13676 13677 hpux*) 13678 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13679 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13680 # sets the default TLS model and affects inlining. 13681 case $host_cpu in 13682 hppa*64*) 13683 # +Z the default 13684 ;; 13685 *) 13686 lt_prog_compiler_pic_FC='-fPIC' 13687 ;; 13688 esac 13689 ;; 13690 13691 interix[3-9]*) 13692 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13693 # Instead, we relocate shared libraries at runtime. 13694 ;; 13695 13696 msdosdjgpp*) 13697 # Just because we use GCC doesn't mean we suddenly get shared libraries 13698 # on systems that don't support them. 13699 lt_prog_compiler_can_build_shared_FC=no 13700 enable_shared=no 13701 ;; 13702 13703 *nto* | *qnx*) 13704 # QNX uses GNU C++, but need to define -shared option too, otherwise 13705 # it will coredump. 13706 lt_prog_compiler_pic_FC='-fPIC -shared' 13707 ;; 13708 13709 sysv4*MP*) 13710 if test -d /usr/nec; then 13711 lt_prog_compiler_pic_FC=-Kconform_pic 13712 fi 13713 ;; 13714 13715 *) 13716 lt_prog_compiler_pic_FC='-fPIC' 13717 ;; 13718 esac 13719 13720 case $cc_basename in 13721 nvcc*) # Cuda Compiler Driver 2.2 13722 lt_prog_compiler_wl_FC='-Xlinker ' 13723 if test -n "$lt_prog_compiler_pic_FC"; then 13724 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC" 13725 fi 13726 ;; 13727 esac 13728 else 13729 # PORTME Check for flag to pass linker flags through the system compiler. 13730 case $host_os in 13731 aix*) 13732 lt_prog_compiler_wl_FC='-Wl,' 13733 if test "$host_cpu" = ia64; then 13734 # AIX 5 now supports IA64 processor 13735 lt_prog_compiler_static_FC='-Bstatic' 13736 else 13737 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 13738 fi 13739 ;; 13740 13741 mingw* | cygwin* | pw32* | os2* | cegcc*) 13742 # This hack is so that the source file can tell whether it is being 13743 # built for inclusion in a dll (and should export symbols for example). 13744 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 13745 ;; 13746 13747 hpux9* | hpux10* | hpux11*) 13748 lt_prog_compiler_wl_FC='-Wl,' 13749 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13750 # not for PA HP-UX. 13751 case $host_cpu in 13752 hppa*64*|ia64*) 13753 # +Z the default 13754 ;; 13755 *) 13756 lt_prog_compiler_pic_FC='+Z' 13757 ;; 13758 esac 13759 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13760 lt_prog_compiler_static_FC='${wl}-a ${wl}archive' 13761 ;; 13762 13763 irix5* | irix6* | nonstopux*) 13764 lt_prog_compiler_wl_FC='-Wl,' 13765 # PIC (with -KPIC) is the default. 13766 lt_prog_compiler_static_FC='-non_shared' 13767 ;; 13768 13769 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13770 case $cc_basename in 13771 # old Intel for x86_64 which still supported -KPIC. 13772 ecc*) 13773 lt_prog_compiler_wl_FC='-Wl,' 13774 lt_prog_compiler_pic_FC='-KPIC' 13775 lt_prog_compiler_static_FC='-static' 13776 ;; 13777 # icc used to be incompatible with GCC. 13778 # ICC 10 doesn't accept -KPIC any more. 13779 icc* | ifort*) 13780 lt_prog_compiler_wl_FC='-Wl,' 13781 lt_prog_compiler_pic_FC='-fPIC' 13782 lt_prog_compiler_static_FC='-static' 13783 ;; 13784 # Lahey Fortran 8.1. 13785 lf95*) 13786 lt_prog_compiler_wl_FC='-Wl,' 13787 lt_prog_compiler_pic_FC='--shared' 13788 lt_prog_compiler_static_FC='--static' 13789 ;; 13790 nagfor*) 13791 # NAG Fortran compiler 13792 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 13793 lt_prog_compiler_pic_FC='-PIC' 13794 lt_prog_compiler_static_FC='-Bstatic' 13795 ;; 13796 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13797 # Portland Group compilers (*not* the Pentium gcc compiler, 13798 # which looks to be a dead project) 13799 lt_prog_compiler_wl_FC='-Wl,' 13800 lt_prog_compiler_pic_FC='-fpic' 13801 lt_prog_compiler_static_FC='-Bstatic' 13802 ;; 13803 ccc*) 13804 lt_prog_compiler_wl_FC='-Wl,' 13805 # All Alpha code is PIC. 13806 lt_prog_compiler_static_FC='-non_shared' 13807 ;; 13808 xl* | bgxl* | bgf* | mpixl*) 13809 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13810 lt_prog_compiler_wl_FC='-Wl,' 13811 lt_prog_compiler_pic_FC='-qpic' 13812 lt_prog_compiler_static_FC='-qstaticlink' 13813 ;; 13814 *) 13815 case `$CC -V 2>&1 | sed 5q` in 13816 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 13817 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13818 lt_prog_compiler_pic_FC='-KPIC' 13819 lt_prog_compiler_static_FC='-Bstatic' 13820 lt_prog_compiler_wl_FC='' 13821 ;; 13822 *Sun\ F* | *Sun*Fortran*) 13823 lt_prog_compiler_pic_FC='-KPIC' 13824 lt_prog_compiler_static_FC='-Bstatic' 13825 lt_prog_compiler_wl_FC='-Qoption ld ' 13826 ;; 13827 *Sun\ C*) 13828 # Sun C 5.9 13829 lt_prog_compiler_pic_FC='-KPIC' 13830 lt_prog_compiler_static_FC='-Bstatic' 13831 lt_prog_compiler_wl_FC='-Wl,' 13832 ;; 13833 *Intel*\ [CF]*Compiler*) 13834 lt_prog_compiler_wl_FC='-Wl,' 13835 lt_prog_compiler_pic_FC='-fPIC' 13836 lt_prog_compiler_static_FC='-static' 13837 ;; 13838 *Portland\ Group*) 13839 lt_prog_compiler_wl_FC='-Wl,' 13840 lt_prog_compiler_pic_FC='-fpic' 13841 lt_prog_compiler_static_FC='-Bstatic' 13842 ;; 13843 esac 13844 ;; 13845 esac 13846 ;; 13847 13848 newsos6) 13849 lt_prog_compiler_pic_FC='-KPIC' 13850 lt_prog_compiler_static_FC='-Bstatic' 13851 ;; 13852 13853 *nto* | *qnx*) 13854 # QNX uses GNU C++, but need to define -shared option too, otherwise 13855 # it will coredump. 13856 lt_prog_compiler_pic_FC='-fPIC -shared' 13857 ;; 13858 13859 osf3* | osf4* | osf5*) 13860 lt_prog_compiler_wl_FC='-Wl,' 13861 # All OSF/1 code is PIC. 13862 lt_prog_compiler_static_FC='-non_shared' 13863 ;; 13864 13865 rdos*) 13866 lt_prog_compiler_static_FC='-non_shared' 13867 ;; 13868 13869 solaris*) 13870 lt_prog_compiler_pic_FC='-KPIC' 13871 lt_prog_compiler_static_FC='-Bstatic' 13872 case $cc_basename in 13873 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 13874 lt_prog_compiler_wl_FC='-Qoption ld ';; 13875 *) 13876 lt_prog_compiler_wl_FC='-Wl,';; 13877 esac 13878 ;; 13879 13880 sunos4*) 13881 lt_prog_compiler_wl_FC='-Qoption ld ' 13882 lt_prog_compiler_pic_FC='-PIC' 13883 lt_prog_compiler_static_FC='-Bstatic' 13884 ;; 13885 13886 sysv4 | sysv4.2uw2* | sysv4.3*) 13887 lt_prog_compiler_wl_FC='-Wl,' 13888 lt_prog_compiler_pic_FC='-KPIC' 13889 lt_prog_compiler_static_FC='-Bstatic' 13890 ;; 13891 13892 sysv4*MP*) 13893 if test -d /usr/nec ;then 13894 lt_prog_compiler_pic_FC='-Kconform_pic' 13895 lt_prog_compiler_static_FC='-Bstatic' 13896 fi 13897 ;; 13898 13899 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13900 lt_prog_compiler_wl_FC='-Wl,' 13901 lt_prog_compiler_pic_FC='-KPIC' 13902 lt_prog_compiler_static_FC='-Bstatic' 13903 ;; 13904 13905 unicos*) 13906 lt_prog_compiler_wl_FC='-Wl,' 13907 lt_prog_compiler_can_build_shared_FC=no 13908 ;; 13909 13910 uts4*) 13911 lt_prog_compiler_pic_FC='-pic' 13912 lt_prog_compiler_static_FC='-Bstatic' 13913 ;; 13914 13915 *) 13916 lt_prog_compiler_can_build_shared_FC=no 13917 ;; 13918 esac 13919 fi 13920 13921case $host_os in 13922 # For platforms which do not support PIC, -DPIC is meaningless: 13923 *djgpp*) 13924 lt_prog_compiler_pic_FC= 13925 ;; 13926 *) 13927 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 13928 ;; 13929esac 13930 13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13932$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13933if ${lt_cv_prog_compiler_pic_FC+:} false; then : 13934 $as_echo_n "(cached) " >&6 13935else 13936 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC 13937fi 13938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 13939$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; } 13940lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC 13941 13942# 13943# Check to make sure the PIC flag actually works. 13944# 13945if test -n "$lt_prog_compiler_pic_FC"; then 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 13947$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 13948if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 13949 $as_echo_n "(cached) " >&6 13950else 13951 lt_cv_prog_compiler_pic_works_FC=no 13952 ac_outfile=conftest.$ac_objext 13953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13954 lt_compiler_flag="$lt_prog_compiler_pic_FC" 13955 # Insert the option either (1) after the last *FLAGS variable, or 13956 # (2) before a word containing "conftest.", or (3) at the end. 13957 # Note that $ac_compile itself does not contain backslashes and begins 13958 # with a dollar sign (not a hyphen), so the echo should work correctly. 13959 # The option is referenced via a variable to avoid confusing sed. 13960 lt_compile=`echo "$ac_compile" | $SED \ 13961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13963 -e 's:$: $lt_compiler_flag:'` 13964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13965 (eval "$lt_compile" 2>conftest.err) 13966 ac_status=$? 13967 cat conftest.err >&5 13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13969 if (exit $ac_status) && test -s "$ac_outfile"; then 13970 # The compiler can only warn and ignore the option if not recognized 13971 # So say no if there are warnings other than the usual output. 13972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13974 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13975 lt_cv_prog_compiler_pic_works_FC=yes 13976 fi 13977 fi 13978 $RM conftest* 13979 13980fi 13981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 13982$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 13983 13984if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then 13985 case $lt_prog_compiler_pic_FC in 13986 "" | " "*) ;; 13987 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 13988 esac 13989else 13990 lt_prog_compiler_pic_FC= 13991 lt_prog_compiler_can_build_shared_FC=no 13992fi 13993 13994fi 13995 13996 13997 13998 13999 14000# 14001# Check to make sure the static flag actually works. 14002# 14003wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 14004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14005$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14006if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 14007 $as_echo_n "(cached) " >&6 14008else 14009 lt_cv_prog_compiler_static_works_FC=no 14010 save_LDFLAGS="$LDFLAGS" 14011 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14012 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14013 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14014 # The linker can only warn and ignore the option if not recognized 14015 # So say no if there are warnings 14016 if test -s conftest.err; then 14017 # Append any errors to the config.log. 14018 cat conftest.err 1>&5 14019 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14021 if diff conftest.exp conftest.er2 >/dev/null; then 14022 lt_cv_prog_compiler_static_works_FC=yes 14023 fi 14024 else 14025 lt_cv_prog_compiler_static_works_FC=yes 14026 fi 14027 fi 14028 $RM -r conftest* 14029 LDFLAGS="$save_LDFLAGS" 14030 14031fi 14032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 14033$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 14034 14035if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then 14036 : 14037else 14038 lt_prog_compiler_static_FC= 14039fi 14040 14041 14042 14043 14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14046if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 14047 $as_echo_n "(cached) " >&6 14048else 14049 lt_cv_prog_compiler_c_o_FC=no 14050 $RM -r conftest 2>/dev/null 14051 mkdir conftest 14052 cd conftest 14053 mkdir out 14054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14055 14056 lt_compiler_flag="-o out/conftest2.$ac_objext" 14057 # Insert the option either (1) after the last *FLAGS variable, or 14058 # (2) before a word containing "conftest.", or (3) at the end. 14059 # Note that $ac_compile itself does not contain backslashes and begins 14060 # with a dollar sign (not a hyphen), so the echo should work correctly. 14061 lt_compile=`echo "$ac_compile" | $SED \ 14062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14064 -e 's:$: $lt_compiler_flag:'` 14065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14066 (eval "$lt_compile" 2>out/conftest.err) 14067 ac_status=$? 14068 cat out/conftest.err >&5 14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14070 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14071 then 14072 # The compiler can only warn and ignore the option if not recognized 14073 # So say no if there are warnings 14074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14075 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14076 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14077 lt_cv_prog_compiler_c_o_FC=yes 14078 fi 14079 fi 14080 chmod u+w . 2>&5 14081 $RM conftest* 14082 # SGI C++ compiler will create directory out/ii_files/ for 14083 # template instantiation 14084 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14085 $RM out/* && rmdir out 14086 cd .. 14087 $RM -r conftest 14088 $RM conftest* 14089 14090fi 14091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 14092$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 14093 14094 14095 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14097$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14098if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 14099 $as_echo_n "(cached) " >&6 14100else 14101 lt_cv_prog_compiler_c_o_FC=no 14102 $RM -r conftest 2>/dev/null 14103 mkdir conftest 14104 cd conftest 14105 mkdir out 14106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14107 14108 lt_compiler_flag="-o out/conftest2.$ac_objext" 14109 # Insert the option either (1) after the last *FLAGS variable, or 14110 # (2) before a word containing "conftest.", or (3) at the end. 14111 # Note that $ac_compile itself does not contain backslashes and begins 14112 # with a dollar sign (not a hyphen), so the echo should work correctly. 14113 lt_compile=`echo "$ac_compile" | $SED \ 14114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14116 -e 's:$: $lt_compiler_flag:'` 14117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14118 (eval "$lt_compile" 2>out/conftest.err) 14119 ac_status=$? 14120 cat out/conftest.err >&5 14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14122 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14123 then 14124 # The compiler can only warn and ignore the option if not recognized 14125 # So say no if there are warnings 14126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14129 lt_cv_prog_compiler_c_o_FC=yes 14130 fi 14131 fi 14132 chmod u+w . 2>&5 14133 $RM conftest* 14134 # SGI C++ compiler will create directory out/ii_files/ for 14135 # template instantiation 14136 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14137 $RM out/* && rmdir out 14138 cd .. 14139 $RM -r conftest 14140 $RM conftest* 14141 14142fi 14143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 14144$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 14145 14146 14147 14148 14149hard_links="nottested" 14150if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then 14151 # do not overwrite the value of need_locks provided by the user 14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14153$as_echo_n "checking if we can lock with hard links... " >&6; } 14154 hard_links=yes 14155 $RM conftest* 14156 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14157 touch conftest.a 14158 ln conftest.a conftest.b 2>&5 || hard_links=no 14159 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14161$as_echo "$hard_links" >&6; } 14162 if test "$hard_links" = no; then 14163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14164$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14165 need_locks=warn 14166 fi 14167else 14168 need_locks=no 14169fi 14170 14171 14172 14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14174$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14175 14176 runpath_var= 14177 allow_undefined_flag_FC= 14178 always_export_symbols_FC=no 14179 archive_cmds_FC= 14180 archive_expsym_cmds_FC= 14181 compiler_needs_object_FC=no 14182 enable_shared_with_static_runtimes_FC=no 14183 export_dynamic_flag_spec_FC= 14184 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14185 hardcode_automatic_FC=no 14186 hardcode_direct_FC=no 14187 hardcode_direct_absolute_FC=no 14188 hardcode_libdir_flag_spec_FC= 14189 hardcode_libdir_separator_FC= 14190 hardcode_minus_L_FC=no 14191 hardcode_shlibpath_var_FC=unsupported 14192 inherit_rpath_FC=no 14193 link_all_deplibs_FC=unknown 14194 module_cmds_FC= 14195 module_expsym_cmds_FC= 14196 old_archive_from_new_cmds_FC= 14197 old_archive_from_expsyms_cmds_FC= 14198 thread_safe_flag_spec_FC= 14199 whole_archive_flag_spec_FC= 14200 # include_expsyms should be a list of space-separated symbols to be *always* 14201 # included in the symbol list 14202 include_expsyms_FC= 14203 # exclude_expsyms can be an extended regexp of symbols to exclude 14204 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14205 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14206 # as well as any symbol that contains `d'. 14207 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14208 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14209 # platforms (ab)use it in PIC code, but their linkers get confused if 14210 # the symbol is explicitly referenced. Since portable code cannot 14211 # rely on this symbol name, it's probably fine to never include it in 14212 # preloaded symbol tables. 14213 # Exclude shared library initialization/finalization symbols. 14214 extract_expsyms_cmds= 14215 14216 case $host_os in 14217 cygwin* | mingw* | pw32* | cegcc*) 14218 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14219 # When not using gcc, we currently assume that we are using 14220 # Microsoft Visual C++. 14221 if test "$GCC" != yes; then 14222 with_gnu_ld=no 14223 fi 14224 ;; 14225 interix*) 14226 # we just hope/assume this is gcc and not c89 (= MSVC++) 14227 with_gnu_ld=yes 14228 ;; 14229 openbsd*) 14230 with_gnu_ld=no 14231 ;; 14232 esac 14233 14234 ld_shlibs_FC=yes 14235 14236 # On some targets, GNU ld is compatible enough with the native linker 14237 # that we're better off using the native interface for both. 14238 lt_use_gnu_ld_interface=no 14239 if test "$with_gnu_ld" = yes; then 14240 case $host_os in 14241 aix*) 14242 # The AIX port of GNU ld has always aspired to compatibility 14243 # with the native linker. However, as the warning in the GNU ld 14244 # block says, versions before 2.19.5* couldn't really create working 14245 # shared libraries, regardless of the interface used. 14246 case `$LD -v 2>&1` in 14247 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14248 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14249 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14250 *) 14251 lt_use_gnu_ld_interface=yes 14252 ;; 14253 esac 14254 ;; 14255 *) 14256 lt_use_gnu_ld_interface=yes 14257 ;; 14258 esac 14259 fi 14260 14261 if test "$lt_use_gnu_ld_interface" = yes; then 14262 # If archive_cmds runs LD, not CC, wlarc should be empty 14263 wlarc='${wl}' 14264 14265 # Set some defaults for GNU ld with shared library support. These 14266 # are reset later if shared libraries are not supported. Putting them 14267 # here allows them to be overridden if necessary. 14268 runpath_var=LD_RUN_PATH 14269 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14270 export_dynamic_flag_spec_FC='${wl}--export-dynamic' 14271 # ancient GNU ld didn't support --whole-archive et. al. 14272 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14273 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14274 else 14275 whole_archive_flag_spec_FC= 14276 fi 14277 supports_anon_versioning=no 14278 case `$LD -v 2>&1` in 14279 *GNU\ gold*) supports_anon_versioning=yes ;; 14280 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14281 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14282 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14283 *\ 2.11.*) ;; # other 2.11 versions 14284 *) supports_anon_versioning=yes ;; 14285 esac 14286 14287 # See if GNU ld supports shared libraries. 14288 case $host_os in 14289 aix[3-9]*) 14290 # On AIX/PPC, the GNU linker is very broken 14291 if test "$host_cpu" != ia64; then 14292 ld_shlibs_FC=no 14293 cat <<_LT_EOF 1>&2 14294 14295*** Warning: the GNU linker, at least up to release 2.19, is reported 14296*** to be unable to reliably create shared libraries on AIX. 14297*** Therefore, libtool is disabling shared libraries support. If you 14298*** really care for shared libraries, you may want to install binutils 14299*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14300*** You will then need to restart the configuration process. 14301 14302_LT_EOF 14303 fi 14304 ;; 14305 14306 amigaos*) 14307 case $host_cpu in 14308 powerpc) 14309 # see comment about AmigaOS4 .so support 14310 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14311 archive_expsym_cmds_FC='' 14312 ;; 14313 m68k) 14314 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)' 14315 hardcode_libdir_flag_spec_FC='-L$libdir' 14316 hardcode_minus_L_FC=yes 14317 ;; 14318 esac 14319 ;; 14320 14321 beos*) 14322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14323 allow_undefined_flag_FC=unsupported 14324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14325 # support --undefined. This deserves some investigation. FIXME 14326 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14327 else 14328 ld_shlibs_FC=no 14329 fi 14330 ;; 14331 14332 cygwin* | mingw* | pw32* | cegcc*) 14333 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 14334 # as there is no search path for DLLs. 14335 hardcode_libdir_flag_spec_FC='-L$libdir' 14336 export_dynamic_flag_spec_FC='${wl}--export-all-symbols' 14337 allow_undefined_flag_FC=unsupported 14338 always_export_symbols_FC=no 14339 enable_shared_with_static_runtimes_FC=yes 14340 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14341 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14342 14343 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14344 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14345 # If the export-symbols file already is a .def file (1st line 14346 # is EXPORTS), use it as is; otherwise, prepend... 14347 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14348 cp $export_symbols $output_objdir/$soname.def; 14349 else 14350 echo EXPORTS > $output_objdir/$soname.def; 14351 cat $export_symbols >> $output_objdir/$soname.def; 14352 fi~ 14353 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14354 else 14355 ld_shlibs_FC=no 14356 fi 14357 ;; 14358 14359 haiku*) 14360 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14361 link_all_deplibs_FC=yes 14362 ;; 14363 14364 interix[3-9]*) 14365 hardcode_direct_FC=no 14366 hardcode_shlibpath_var_FC=no 14367 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 14368 export_dynamic_flag_spec_FC='${wl}-E' 14369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14370 # Instead, shared libraries are loaded at an image base (0x10000000 by 14371 # default) and relocated if they conflict, which is a slow very memory 14372 # consuming and fragmenting process. To avoid this, we pick a random, 14373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14374 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14375 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' 14376 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' 14377 ;; 14378 14379 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14380 tmp_diet=no 14381 if test "$host_os" = linux-dietlibc; then 14382 case $cc_basename in 14383 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14384 esac 14385 fi 14386 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14387 && test "$tmp_diet" = no 14388 then 14389 tmp_addflag=' $pic_flag' 14390 tmp_sharedflag='-shared' 14391 case $cc_basename,$host_cpu in 14392 pgcc*) # Portland Group C compiler 14393 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' 14394 tmp_addflag=' $pic_flag' 14395 ;; 14396 pgf77* | pgf90* | pgf95* | pgfortran*) 14397 # Portland Group f77 and f90 compilers 14398 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' 14399 tmp_addflag=' $pic_flag -Mnomain' ;; 14400 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14401 tmp_addflag=' -i_dynamic' ;; 14402 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14403 tmp_addflag=' -i_dynamic -nofor_main' ;; 14404 ifc* | ifort*) # Intel Fortran compiler 14405 tmp_addflag=' -nofor_main' ;; 14406 lf95*) # Lahey Fortran 8.1 14407 whole_archive_flag_spec_FC= 14408 tmp_sharedflag='--shared' ;; 14409 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14410 tmp_sharedflag='-qmkshrobj' 14411 tmp_addflag= ;; 14412 nvcc*) # Cuda Compiler Driver 2.2 14413 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' 14414 compiler_needs_object_FC=yes 14415 ;; 14416 esac 14417 case `$CC -V 2>&1 | sed 5q` in 14418 *Sun\ C*) # Sun C 5.9 14419 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' 14420 compiler_needs_object_FC=yes 14421 tmp_sharedflag='-G' ;; 14422 *Sun\ F*) # Sun Fortran 8.3 14423 tmp_sharedflag='-G' ;; 14424 esac 14425 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14426 14427 if test "x$supports_anon_versioning" = xyes; then 14428 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 14429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14430 echo "local: *; };" >> $output_objdir/$libname.ver~ 14431 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14432 fi 14433 14434 case $cc_basename in 14435 xlf* | bgf* | bgxlf* | mpixlf*) 14436 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14437 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 14438 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14439 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 14440 if test "x$supports_anon_versioning" = xyes; then 14441 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 14442 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14443 echo "local: *; };" >> $output_objdir/$libname.ver~ 14444 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14445 fi 14446 ;; 14447 esac 14448 else 14449 ld_shlibs_FC=no 14450 fi 14451 ;; 14452 14453 netbsd*) 14454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14455 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14456 wlarc= 14457 else 14458 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14459 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14460 fi 14461 ;; 14462 14463 solaris*) 14464 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14465 ld_shlibs_FC=no 14466 cat <<_LT_EOF 1>&2 14467 14468*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14469*** create shared libraries on Solaris systems. Therefore, libtool 14470*** is disabling shared libraries support. We urge you to upgrade GNU 14471*** binutils to release 2.9.1 or newer. Another option is to modify 14472*** your PATH or compiler configuration so that the native linker is 14473*** used, and then restart. 14474 14475_LT_EOF 14476 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14477 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14478 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14479 else 14480 ld_shlibs_FC=no 14481 fi 14482 ;; 14483 14484 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14485 case `$LD -v 2>&1` in 14486 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14487 ld_shlibs_FC=no 14488 cat <<_LT_EOF 1>&2 14489 14490*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14491*** reliably create shared libraries on SCO systems. Therefore, libtool 14492*** is disabling shared libraries support. We urge you to upgrade GNU 14493*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14494*** your PATH or compiler configuration so that the native linker is 14495*** used, and then restart. 14496 14497_LT_EOF 14498 ;; 14499 *) 14500 # For security reasons, it is highly recommended that you always 14501 # use absolute paths for naming shared libraries, and exclude the 14502 # DT_RUNPATH tag from executables and libraries. But doing so 14503 # requires that you compile everything twice, which is a pain. 14504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14505 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14506 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14507 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14508 else 14509 ld_shlibs_FC=no 14510 fi 14511 ;; 14512 esac 14513 ;; 14514 14515 sunos4*) 14516 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14517 wlarc= 14518 hardcode_direct_FC=yes 14519 hardcode_shlibpath_var_FC=no 14520 ;; 14521 14522 *) 14523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14524 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14525 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14526 else 14527 ld_shlibs_FC=no 14528 fi 14529 ;; 14530 esac 14531 14532 if test "$ld_shlibs_FC" = no; then 14533 runpath_var= 14534 hardcode_libdir_flag_spec_FC= 14535 export_dynamic_flag_spec_FC= 14536 whole_archive_flag_spec_FC= 14537 fi 14538 else 14539 # PORTME fill in a description of your system's linker (not GNU ld) 14540 case $host_os in 14541 aix3*) 14542 allow_undefined_flag_FC=unsupported 14543 always_export_symbols_FC=yes 14544 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' 14545 # Note: this linker hardcodes the directories in LIBPATH if there 14546 # are no directories specified by -L. 14547 hardcode_minus_L_FC=yes 14548 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14549 # Neither direct hardcoding nor static linking is supported with a 14550 # broken collect2. 14551 hardcode_direct_FC=unsupported 14552 fi 14553 ;; 14554 14555 aix[4-9]*) 14556 if test "$host_cpu" = ia64; then 14557 # On IA64, the linker does run time linking by default, so we don't 14558 # have to do anything special. 14559 aix_use_runtimelinking=no 14560 exp_sym_flag='-Bexport' 14561 no_entry_flag="" 14562 else 14563 # If we're using GNU nm, then we don't want the "-C" option. 14564 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14565 # Also, AIX nm treats weak defined symbols like other global 14566 # defined symbols, whereas GNU nm marks them as "W". 14567 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14568 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' 14569 else 14570 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14571 fi 14572 aix_use_runtimelinking=no 14573 14574 # Test if we are trying to use run time linking or normal 14575 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14576 # need to do runtime linking. 14577 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14578 for ld_flag in $LDFLAGS; do 14579 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14580 aix_use_runtimelinking=yes 14581 break 14582 fi 14583 done 14584 ;; 14585 esac 14586 14587 exp_sym_flag='-bexport' 14588 no_entry_flag='-bnoentry' 14589 fi 14590 14591 # When large executables or shared objects are built, AIX ld can 14592 # have problems creating the table of contents. If linking a library 14593 # or program results in "error TOC overflow" add -mminimal-toc to 14594 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14595 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14596 14597 archive_cmds_FC='' 14598 hardcode_direct_FC=yes 14599 hardcode_direct_absolute_FC=yes 14600 hardcode_libdir_separator_FC=':' 14601 link_all_deplibs_FC=yes 14602 file_list_spec_FC='${wl}-f,' 14603 14604 if test "$GCC" = yes; then 14605 case $host_os in aix4.[012]|aix4.[012].*) 14606 # We only want to do this on AIX 4.2 and lower, the check 14607 # below for broken collect2 doesn't work under 4.3+ 14608 collect2name=`${CC} -print-prog-name=collect2` 14609 if test -f "$collect2name" && 14610 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14611 then 14612 # We have reworked collect2 14613 : 14614 else 14615 # We have old collect2 14616 hardcode_direct_FC=unsupported 14617 # It fails to find uninstalled libraries when the uninstalled 14618 # path is not listed in the libpath. Setting hardcode_minus_L 14619 # to unsupported forces relinking 14620 hardcode_minus_L_FC=yes 14621 hardcode_libdir_flag_spec_FC='-L$libdir' 14622 hardcode_libdir_separator_FC= 14623 fi 14624 ;; 14625 esac 14626 shared_flag='-shared' 14627 if test "$aix_use_runtimelinking" = yes; then 14628 shared_flag="$shared_flag "'${wl}-G' 14629 fi 14630 else 14631 # not using gcc 14632 if test "$host_cpu" = ia64; then 14633 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14634 # chokes on -Wl,-G. The following line is correct: 14635 shared_flag='-G' 14636 else 14637 if test "$aix_use_runtimelinking" = yes; then 14638 shared_flag='${wl}-G' 14639 else 14640 shared_flag='${wl}-bM:SRE' 14641 fi 14642 fi 14643 fi 14644 14645 export_dynamic_flag_spec_FC='${wl}-bexpall' 14646 # It seems that -bexpall does not export symbols beginning with 14647 # underscore (_), so it is better to generate a list of symbols to export. 14648 always_export_symbols_FC=yes 14649 if test "$aix_use_runtimelinking" = yes; then 14650 # Warning - without using the other runtime loading flags (-brtl), 14651 # -berok will link without error, but may produce a broken library. 14652 allow_undefined_flag_FC='-berok' 14653 # Determine the default libpath from the value encoded in an 14654 # empty executable. 14655 if test "${lt_cv_aix_libpath+set}" = set; then 14656 aix_libpath=$lt_cv_aix_libpath 14657else 14658 if ${lt_cv_aix_libpath__FC+:} false; then : 14659 $as_echo_n "(cached) " >&6 14660else 14661 cat > conftest.$ac_ext <<_ACEOF 14662 program main 14663 14664 end 14665_ACEOF 14666if ac_fn_fc_try_link "$LINENO"; then : 14667 14668 lt_aix_libpath_sed=' 14669 /Import File Strings/,/^$/ { 14670 /^0/ { 14671 s/^0 *\([^ ]*\) *$/\1/ 14672 p 14673 } 14674 }' 14675 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14676 # Check for a 64-bit object if we didn't find anything. 14677 if test -z "$lt_cv_aix_libpath__FC"; then 14678 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14679 fi 14680fi 14681rm -f core conftest.err conftest.$ac_objext \ 14682 conftest$ac_exeext conftest.$ac_ext 14683 if test -z "$lt_cv_aix_libpath__FC"; then 14684 lt_cv_aix_libpath__FC="/usr/lib:/lib" 14685 fi 14686 14687fi 14688 14689 aix_libpath=$lt_cv_aix_libpath__FC 14690fi 14691 14692 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 14693 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" 14694 else 14695 if test "$host_cpu" = ia64; then 14696 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' 14697 allow_undefined_flag_FC="-z nodefs" 14698 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" 14699 else 14700 # Determine the default libpath from the value encoded in an 14701 # empty executable. 14702 if test "${lt_cv_aix_libpath+set}" = set; then 14703 aix_libpath=$lt_cv_aix_libpath 14704else 14705 if ${lt_cv_aix_libpath__FC+:} false; then : 14706 $as_echo_n "(cached) " >&6 14707else 14708 cat > conftest.$ac_ext <<_ACEOF 14709 program main 14710 14711 end 14712_ACEOF 14713if ac_fn_fc_try_link "$LINENO"; then : 14714 14715 lt_aix_libpath_sed=' 14716 /Import File Strings/,/^$/ { 14717 /^0/ { 14718 s/^0 *\([^ ]*\) *$/\1/ 14719 p 14720 } 14721 }' 14722 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14723 # Check for a 64-bit object if we didn't find anything. 14724 if test -z "$lt_cv_aix_libpath__FC"; then 14725 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14726 fi 14727fi 14728rm -f core conftest.err conftest.$ac_objext \ 14729 conftest$ac_exeext conftest.$ac_ext 14730 if test -z "$lt_cv_aix_libpath__FC"; then 14731 lt_cv_aix_libpath__FC="/usr/lib:/lib" 14732 fi 14733 14734fi 14735 14736 aix_libpath=$lt_cv_aix_libpath__FC 14737fi 14738 14739 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 14740 # Warning - without using the other run time loading flags, 14741 # -berok will link without error, but may produce a broken library. 14742 no_undefined_flag_FC=' ${wl}-bernotok' 14743 allow_undefined_flag_FC=' ${wl}-berok' 14744 if test "$with_gnu_ld" = yes; then 14745 # We only use this code for GNU lds that support --whole-archive. 14746 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14747 else 14748 # Exported symbols can be pulled into shared objects from archives 14749 whole_archive_flag_spec_FC='$convenience' 14750 fi 14751 archive_cmds_need_lc_FC=yes 14752 # This is similar to how AIX traditionally builds its shared libraries. 14753 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' 14754 fi 14755 fi 14756 ;; 14757 14758 amigaos*) 14759 case $host_cpu in 14760 powerpc) 14761 # see comment about AmigaOS4 .so support 14762 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14763 archive_expsym_cmds_FC='' 14764 ;; 14765 m68k) 14766 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)' 14767 hardcode_libdir_flag_spec_FC='-L$libdir' 14768 hardcode_minus_L_FC=yes 14769 ;; 14770 esac 14771 ;; 14772 14773 bsdi[45]*) 14774 export_dynamic_flag_spec_FC=-rdynamic 14775 ;; 14776 14777 cygwin* | mingw* | pw32* | cegcc*) 14778 # When not using gcc, we currently assume that we are using 14779 # Microsoft Visual C++. 14780 # hardcode_libdir_flag_spec is actually meaningless, as there is 14781 # no search path for DLLs. 14782 case $cc_basename in 14783 cl*) 14784 # Native MSVC 14785 hardcode_libdir_flag_spec_FC=' ' 14786 allow_undefined_flag_FC=unsupported 14787 always_export_symbols_FC=yes 14788 file_list_spec_FC='@' 14789 # Tell ltmain to make .lib files, not .a files. 14790 libext=lib 14791 # Tell ltmain to make .dll files, not .so files. 14792 shrext_cmds=".dll" 14793 # FIXME: Setting linknames here is a bad hack. 14794 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 14795 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14796 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 14797 else 14798 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 14799 fi~ 14800 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14801 linknames=' 14802 # The linker will not automatically build a static lib if we build a DLL. 14803 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true' 14804 enable_shared_with_static_runtimes_FC=yes 14805 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14806 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14807 # Don't use ranlib 14808 old_postinstall_cmds_FC='chmod 644 $oldlib' 14809 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~ 14810 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14811 case $lt_outputfile in 14812 *.exe|*.EXE) ;; 14813 *) 14814 lt_outputfile="$lt_outputfile.exe" 14815 lt_tool_outputfile="$lt_tool_outputfile.exe" 14816 ;; 14817 esac~ 14818 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14819 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14820 $RM "$lt_outputfile.manifest"; 14821 fi' 14822 ;; 14823 *) 14824 # Assume MSVC wrapper 14825 hardcode_libdir_flag_spec_FC=' ' 14826 allow_undefined_flag_FC=unsupported 14827 # Tell ltmain to make .lib files, not .a files. 14828 libext=lib 14829 # Tell ltmain to make .dll files, not .so files. 14830 shrext_cmds=".dll" 14831 # FIXME: Setting linknames here is a bad hack. 14832 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14833 # The linker will automatically build a .lib file if we build a DLL. 14834 old_archive_from_new_cmds_FC='true' 14835 # FIXME: Should let the user specify the lib program. 14836 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 14837 enable_shared_with_static_runtimes_FC=yes 14838 ;; 14839 esac 14840 ;; 14841 14842 darwin* | rhapsody*) 14843 14844 14845 archive_cmds_need_lc_FC=no 14846 hardcode_direct_FC=no 14847 hardcode_automatic_FC=yes 14848 hardcode_shlibpath_var_FC=unsupported 14849 if test "$lt_cv_ld_force_load" = "yes"; then 14850 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\"`' 14851 compiler_needs_object_FC=yes 14852 else 14853 whole_archive_flag_spec_FC='' 14854 fi 14855 link_all_deplibs_FC=yes 14856 allow_undefined_flag_FC="$_lt_dar_allow_undefined" 14857 case $cc_basename in 14858 ifort*) _lt_dar_can_shared=yes ;; 14859 *) _lt_dar_can_shared=$GCC ;; 14860 esac 14861 if test "$_lt_dar_can_shared" = "yes"; then 14862 output_verbose_link_cmd=func_echo_all 14863 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14864 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14865 archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 14866 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}" 14867 14868 else 14869 ld_shlibs_FC=no 14870 fi 14871 14872 ;; 14873 14874 dgux*) 14875 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14876 hardcode_libdir_flag_spec_FC='-L$libdir' 14877 hardcode_shlibpath_var_FC=no 14878 ;; 14879 14880 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14881 # support. Future versions do this automatically, but an explicit c++rt0.o 14882 # does not break anything, and helps significantly (at the cost of a little 14883 # extra space). 14884 freebsd2.2*) 14885 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14886 hardcode_libdir_flag_spec_FC='-R$libdir' 14887 hardcode_direct_FC=yes 14888 hardcode_shlibpath_var_FC=no 14889 ;; 14890 14891 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14892 freebsd2.*) 14893 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14894 hardcode_direct_FC=yes 14895 hardcode_minus_L_FC=yes 14896 hardcode_shlibpath_var_FC=no 14897 ;; 14898 14899 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14900 freebsd* | dragonfly*) 14901 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14902 hardcode_libdir_flag_spec_FC='-R$libdir' 14903 hardcode_direct_FC=yes 14904 hardcode_shlibpath_var_FC=no 14905 ;; 14906 14907 hpux9*) 14908 if test "$GCC" = yes; then 14909 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14910 else 14911 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' 14912 fi 14913 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14914 hardcode_libdir_separator_FC=: 14915 hardcode_direct_FC=yes 14916 14917 # hardcode_minus_L: Not really in the search PATH, 14918 # but as the default location of the library. 14919 hardcode_minus_L_FC=yes 14920 export_dynamic_flag_spec_FC='${wl}-E' 14921 ;; 14922 14923 hpux10*) 14924 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14925 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14926 else 14927 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14928 fi 14929 if test "$with_gnu_ld" = no; then 14930 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14931 hardcode_libdir_separator_FC=: 14932 hardcode_direct_FC=yes 14933 hardcode_direct_absolute_FC=yes 14934 export_dynamic_flag_spec_FC='${wl}-E' 14935 # hardcode_minus_L: Not really in the search PATH, 14936 # but as the default location of the library. 14937 hardcode_minus_L_FC=yes 14938 fi 14939 ;; 14940 14941 hpux11*) 14942 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14943 case $host_cpu in 14944 hppa*64*) 14945 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14946 ;; 14947 ia64*) 14948 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14949 ;; 14950 *) 14951 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14952 ;; 14953 esac 14954 else 14955 case $host_cpu in 14956 hppa*64*) 14957 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14958 ;; 14959 ia64*) 14960 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14961 ;; 14962 *) 14963 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14964 ;; 14965 esac 14966 fi 14967 if test "$with_gnu_ld" = no; then 14968 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14969 hardcode_libdir_separator_FC=: 14970 14971 case $host_cpu in 14972 hppa*64*|ia64*) 14973 hardcode_direct_FC=no 14974 hardcode_shlibpath_var_FC=no 14975 ;; 14976 *) 14977 hardcode_direct_FC=yes 14978 hardcode_direct_absolute_FC=yes 14979 export_dynamic_flag_spec_FC='${wl}-E' 14980 14981 # hardcode_minus_L: Not really in the search PATH, 14982 # but as the default location of the library. 14983 hardcode_minus_L_FC=yes 14984 ;; 14985 esac 14986 fi 14987 ;; 14988 14989 irix5* | irix6* | nonstopux*) 14990 if test "$GCC" = yes; then 14991 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14992 # Try to use the -exported_symbol ld option, if it does not 14993 # work, assume that -exports_file does not work either and 14994 # implicitly export all symbols. 14995 # This should be the same for all languages, so no per-tag cache variable. 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14997$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14998if ${lt_cv_irix_exported_symbol+:} false; then : 14999 $as_echo_n "(cached) " >&6 15000else 15001 save_LDFLAGS="$LDFLAGS" 15002 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15003 cat > conftest.$ac_ext <<_ACEOF 15004 15005 subroutine foo 15006 end 15007_ACEOF 15008if ac_fn_fc_try_link "$LINENO"; then : 15009 lt_cv_irix_exported_symbol=yes 15010else 15011 lt_cv_irix_exported_symbol=no 15012fi 15013rm -f core conftest.err conftest.$ac_objext \ 15014 conftest$ac_exeext conftest.$ac_ext 15015 LDFLAGS="$save_LDFLAGS" 15016fi 15017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15018$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15019 if test "$lt_cv_irix_exported_symbol" = yes; then 15020 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 15021 fi 15022 else 15023 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' 15024 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' 15025 fi 15026 archive_cmds_need_lc_FC='no' 15027 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 15028 hardcode_libdir_separator_FC=: 15029 inherit_rpath_FC=yes 15030 link_all_deplibs_FC=yes 15031 ;; 15032 15033 netbsd*) 15034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15035 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15036 else 15037 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15038 fi 15039 hardcode_libdir_flag_spec_FC='-R$libdir' 15040 hardcode_direct_FC=yes 15041 hardcode_shlibpath_var_FC=no 15042 ;; 15043 15044 newsos6) 15045 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15046 hardcode_direct_FC=yes 15047 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 15048 hardcode_libdir_separator_FC=: 15049 hardcode_shlibpath_var_FC=no 15050 ;; 15051 15052 *nto* | *qnx*) 15053 ;; 15054 15055 openbsd*) 15056 if test -f /usr/libexec/ld.so; then 15057 hardcode_direct_FC=yes 15058 hardcode_shlibpath_var_FC=no 15059 hardcode_direct_absolute_FC=yes 15060 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15061 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15062 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15063 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 15064 export_dynamic_flag_spec_FC='${wl}-E' 15065 else 15066 case $host_os in 15067 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15068 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15069 hardcode_libdir_flag_spec_FC='-R$libdir' 15070 ;; 15071 *) 15072 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15073 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 15074 ;; 15075 esac 15076 fi 15077 else 15078 ld_shlibs_FC=no 15079 fi 15080 ;; 15081 15082 os2*) 15083 hardcode_libdir_flag_spec_FC='-L$libdir' 15084 hardcode_minus_L_FC=yes 15085 allow_undefined_flag_FC=unsupported 15086 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' 15087 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15088 ;; 15089 15090 osf3*) 15091 if test "$GCC" = yes; then 15092 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 15093 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' 15094 else 15095 allow_undefined_flag_FC=' -expect_unresolved \*' 15096 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' 15097 fi 15098 archive_cmds_need_lc_FC='no' 15099 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 15100 hardcode_libdir_separator_FC=: 15101 ;; 15102 15103 osf4* | osf5*) # as osf3* with the addition of -msym flag 15104 if test "$GCC" = yes; then 15105 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 15106 archive_cmds_FC='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15107 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 15108 else 15109 allow_undefined_flag_FC=' -expect_unresolved \*' 15110 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' 15111 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~ 15112 $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' 15113 15114 # Both c and cxx compiler support -rpath directly 15115 hardcode_libdir_flag_spec_FC='-rpath $libdir' 15116 fi 15117 archive_cmds_need_lc_FC='no' 15118 hardcode_libdir_separator_FC=: 15119 ;; 15120 15121 solaris*) 15122 no_undefined_flag_FC=' -z defs' 15123 if test "$GCC" = yes; then 15124 wlarc='${wl}' 15125 archive_cmds_FC='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15126 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15127 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15128 else 15129 case `$CC -V 2>&1` in 15130 *"Compilers 5.0"*) 15131 wlarc='' 15132 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15133 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15134 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15135 ;; 15136 *) 15137 wlarc='${wl}' 15138 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15139 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15140 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15141 ;; 15142 esac 15143 fi 15144 hardcode_libdir_flag_spec_FC='-R$libdir' 15145 hardcode_shlibpath_var_FC=no 15146 case $host_os in 15147 solaris2.[0-5] | solaris2.[0-5].*) ;; 15148 *) 15149 # The compiler driver will combine and reorder linker options, 15150 # but understands `-z linker_flag'. GCC discards it without `$wl', 15151 # but is careful enough not to reorder. 15152 # Supported since Solaris 2.6 (maybe 2.5.1?) 15153 if test "$GCC" = yes; then 15154 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15155 else 15156 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 15157 fi 15158 ;; 15159 esac 15160 link_all_deplibs_FC=yes 15161 ;; 15162 15163 sunos4*) 15164 if test "x$host_vendor" = xsequent; then 15165 # Use $CC to link under sequent, because it throws in some extra .o 15166 # files that make .init and .fini sections work. 15167 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15168 else 15169 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15170 fi 15171 hardcode_libdir_flag_spec_FC='-L$libdir' 15172 hardcode_direct_FC=yes 15173 hardcode_minus_L_FC=yes 15174 hardcode_shlibpath_var_FC=no 15175 ;; 15176 15177 sysv4) 15178 case $host_vendor in 15179 sni) 15180 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15181 hardcode_direct_FC=yes # is this really true??? 15182 ;; 15183 siemens) 15184 ## LD is ld it makes a PLAMLIB 15185 ## CC just makes a GrossModule. 15186 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15187 reload_cmds_FC='$CC -r -o $output$reload_objs' 15188 hardcode_direct_FC=no 15189 ;; 15190 motorola) 15191 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15192 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 15193 ;; 15194 esac 15195 runpath_var='LD_RUN_PATH' 15196 hardcode_shlibpath_var_FC=no 15197 ;; 15198 15199 sysv4.3*) 15200 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15201 hardcode_shlibpath_var_FC=no 15202 export_dynamic_flag_spec_FC='-Bexport' 15203 ;; 15204 15205 sysv4*MP*) 15206 if test -d /usr/nec; then 15207 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15208 hardcode_shlibpath_var_FC=no 15209 runpath_var=LD_RUN_PATH 15210 hardcode_runpath_var=yes 15211 ld_shlibs_FC=yes 15212 fi 15213 ;; 15214 15215 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15216 no_undefined_flag_FC='${wl}-z,text' 15217 archive_cmds_need_lc_FC=no 15218 hardcode_shlibpath_var_FC=no 15219 runpath_var='LD_RUN_PATH' 15220 15221 if test "$GCC" = yes; then 15222 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15223 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15224 else 15225 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15226 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15227 fi 15228 ;; 15229 15230 sysv5* | sco3.2v5* | sco5v6*) 15231 # Note: We can NOT use -z defs as we might desire, because we do not 15232 # link with -lc, and that would cause any symbols used from libc to 15233 # always be unresolved, which means just about no library would 15234 # ever link correctly. If we're not using GNU ld we use -z text 15235 # though, which does catch some bad symbols but isn't as heavy-handed 15236 # as -z defs. 15237 no_undefined_flag_FC='${wl}-z,text' 15238 allow_undefined_flag_FC='${wl}-z,nodefs' 15239 archive_cmds_need_lc_FC=no 15240 hardcode_shlibpath_var_FC=no 15241 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' 15242 hardcode_libdir_separator_FC=':' 15243 link_all_deplibs_FC=yes 15244 export_dynamic_flag_spec_FC='${wl}-Bexport' 15245 runpath_var='LD_RUN_PATH' 15246 15247 if test "$GCC" = yes; then 15248 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15249 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15250 else 15251 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15252 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15253 fi 15254 ;; 15255 15256 uts4*) 15257 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15258 hardcode_libdir_flag_spec_FC='-L$libdir' 15259 hardcode_shlibpath_var_FC=no 15260 ;; 15261 15262 *) 15263 ld_shlibs_FC=no 15264 ;; 15265 esac 15266 15267 if test x$host_vendor = xsni; then 15268 case $host in 15269 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15270 export_dynamic_flag_spec_FC='${wl}-Blargedynsym' 15271 ;; 15272 esac 15273 fi 15274 fi 15275 15276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 15277$as_echo "$ld_shlibs_FC" >&6; } 15278test "$ld_shlibs_FC" = no && can_build_shared=no 15279 15280with_gnu_ld_FC=$with_gnu_ld 15281 15282 15283 15284 15285 15286 15287# 15288# Do we need to explicitly link libc? 15289# 15290case "x$archive_cmds_need_lc_FC" in 15291x|xyes) 15292 # Assume -lc should be added 15293 archive_cmds_need_lc_FC=yes 15294 15295 if test "$enable_shared" = yes && test "$GCC" = yes; then 15296 case $archive_cmds_FC in 15297 *'~'*) 15298 # FIXME: we may have to deal with multi-command sequences. 15299 ;; 15300 '$CC '*) 15301 # Test whether the compiler implicitly links with -lc since on some 15302 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15303 # to ld, don't add -lc before -lgcc. 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15305$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15306if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 15307 $as_echo_n "(cached) " >&6 15308else 15309 $RM conftest* 15310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15311 15312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15313 (eval $ac_compile) 2>&5 15314 ac_status=$? 15315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15316 test $ac_status = 0; } 2>conftest.err; then 15317 soname=conftest 15318 lib=conftest 15319 libobjs=conftest.$ac_objext 15320 deplibs= 15321 wl=$lt_prog_compiler_wl_FC 15322 pic_flag=$lt_prog_compiler_pic_FC 15323 compiler_flags=-v 15324 linker_flags=-v 15325 verstring= 15326 output_objdir=. 15327 libname=conftest 15328 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 15329 allow_undefined_flag_FC= 15330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15331 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15332 ac_status=$? 15333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15334 test $ac_status = 0; } 15335 then 15336 lt_cv_archive_cmds_need_lc_FC=no 15337 else 15338 lt_cv_archive_cmds_need_lc_FC=yes 15339 fi 15340 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 15341 else 15342 cat conftest.err 1>&5 15343 fi 15344 $RM conftest* 15345 15346fi 15347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 15348$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 15349 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 15350 ;; 15351 esac 15352 fi 15353 ;; 15354esac 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15418$as_echo_n "checking dynamic linker characteristics... " >&6; } 15419 15420library_names_spec= 15421libname_spec='lib$name' 15422soname_spec= 15423shrext_cmds=".so" 15424postinstall_cmds= 15425postuninstall_cmds= 15426finish_cmds= 15427finish_eval= 15428shlibpath_var= 15429shlibpath_overrides_runpath=unknown 15430version_type=none 15431dynamic_linker="$host_os ld.so" 15432sys_lib_dlsearch_path_spec="/lib /usr/lib" 15433need_lib_prefix=unknown 15434hardcode_into_libs=no 15435 15436# when you set need_version to no, make sure it does not cause -set_version 15437# flags to be left without arguments 15438need_version=unknown 15439 15440case $host_os in 15441aix3*) 15442 version_type=linux # correct to gnu/linux during the next big refactor 15443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15444 shlibpath_var=LIBPATH 15445 15446 # AIX 3 has no versioning support, so we append a major version to the name. 15447 soname_spec='${libname}${release}${shared_ext}$major' 15448 ;; 15449 15450aix[4-9]*) 15451 version_type=linux # correct to gnu/linux during the next big refactor 15452 need_lib_prefix=no 15453 need_version=no 15454 hardcode_into_libs=yes 15455 if test "$host_cpu" = ia64; then 15456 # AIX 5 supports IA64 15457 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15458 shlibpath_var=LD_LIBRARY_PATH 15459 else 15460 # With GCC up to 2.95.x, collect2 would create an import file 15461 # for dependence libraries. The import file would start with 15462 # the line `#! .'. This would cause the generated library to 15463 # depend on `.', always an invalid library. This was fixed in 15464 # development snapshots of GCC prior to 3.0. 15465 case $host_os in 15466 aix4 | aix4.[01] | aix4.[01].*) 15467 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15468 echo ' yes ' 15469 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15470 : 15471 else 15472 can_build_shared=no 15473 fi 15474 ;; 15475 esac 15476 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15477 # soname into executable. Probably we can add versioning support to 15478 # collect2, so additional links can be useful in future. 15479 if test "$aix_use_runtimelinking" = yes; then 15480 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15481 # instead of lib<name>.a to let people know that these are not 15482 # typical AIX shared libraries. 15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15484 else 15485 # We preserve .a as extension for shared libraries through AIX4.2 15486 # and later when we are not doing run time linking. 15487 library_names_spec='${libname}${release}.a $libname.a' 15488 soname_spec='${libname}${release}${shared_ext}$major' 15489 fi 15490 shlibpath_var=LIBPATH 15491 fi 15492 ;; 15493 15494amigaos*) 15495 case $host_cpu in 15496 powerpc) 15497 # Since July 2007 AmigaOS4 officially supports .so libraries. 15498 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15500 ;; 15501 m68k) 15502 library_names_spec='$libname.ixlibrary $libname.a' 15503 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15504 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' 15505 ;; 15506 esac 15507 ;; 15508 15509beos*) 15510 library_names_spec='${libname}${shared_ext}' 15511 dynamic_linker="$host_os ld.so" 15512 shlibpath_var=LIBRARY_PATH 15513 ;; 15514 15515bsdi[45]*) 15516 version_type=linux # correct to gnu/linux during the next big refactor 15517 need_version=no 15518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15519 soname_spec='${libname}${release}${shared_ext}$major' 15520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15521 shlibpath_var=LD_LIBRARY_PATH 15522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15524 # the default ld.so.conf also contains /usr/contrib/lib and 15525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15526 # libtool to hard-code these into programs 15527 ;; 15528 15529cygwin* | mingw* | pw32* | cegcc*) 15530 version_type=windows 15531 shrext_cmds=".dll" 15532 need_version=no 15533 need_lib_prefix=no 15534 15535 case $GCC,$cc_basename in 15536 yes,*) 15537 # gcc 15538 library_names_spec='$libname.dll.a' 15539 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15540 postinstall_cmds='base_file=`basename \${file}`~ 15541 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15542 dldir=$destdir/`dirname \$dlpath`~ 15543 test -d \$dldir || mkdir -p \$dldir~ 15544 $install_prog $dir/$dlname \$dldir/$dlname~ 15545 chmod a+x \$dldir/$dlname~ 15546 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15547 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15548 fi' 15549 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15550 dlpath=$dir/\$dldll~ 15551 $RM \$dlpath' 15552 shlibpath_overrides_runpath=yes 15553 15554 case $host_os in 15555 cygwin*) 15556 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15557 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15558 15559 ;; 15560 mingw* | cegcc*) 15561 # MinGW DLLs use traditional 'lib' prefix 15562 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15563 ;; 15564 pw32*) 15565 # pw32 DLLs use 'pw' prefix rather than 'lib' 15566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15567 ;; 15568 esac 15569 dynamic_linker='Win32 ld.exe' 15570 ;; 15571 15572 *,cl*) 15573 # Native MSVC 15574 libname_spec='$name' 15575 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15576 library_names_spec='${libname}.dll.lib' 15577 15578 case $build_os in 15579 mingw*) 15580 sys_lib_search_path_spec= 15581 lt_save_ifs=$IFS 15582 IFS=';' 15583 for lt_path in $LIB 15584 do 15585 IFS=$lt_save_ifs 15586 # Let DOS variable expansion print the short 8.3 style file name. 15587 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15588 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15589 done 15590 IFS=$lt_save_ifs 15591 # Convert to MSYS style. 15592 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15593 ;; 15594 cygwin*) 15595 # Convert to unix form, then to dos form, then back to unix form 15596 # but this time dos style (no spaces!) so that the unix form looks 15597 # like /cygdrive/c/PROGRA~1:/cygdr... 15598 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15599 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15600 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15601 ;; 15602 *) 15603 sys_lib_search_path_spec="$LIB" 15604 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15605 # It is most probably a Windows format PATH. 15606 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15607 else 15608 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15609 fi 15610 # FIXME: find the short name or the path components, as spaces are 15611 # common. (e.g. "Program Files" -> "PROGRA~1") 15612 ;; 15613 esac 15614 15615 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15616 postinstall_cmds='base_file=`basename \${file}`~ 15617 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15618 dldir=$destdir/`dirname \$dlpath`~ 15619 test -d \$dldir || mkdir -p \$dldir~ 15620 $install_prog $dir/$dlname \$dldir/$dlname' 15621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15622 dlpath=$dir/\$dldll~ 15623 $RM \$dlpath' 15624 shlibpath_overrides_runpath=yes 15625 dynamic_linker='Win32 link.exe' 15626 ;; 15627 15628 *) 15629 # Assume MSVC wrapper 15630 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15631 dynamic_linker='Win32 ld.exe' 15632 ;; 15633 esac 15634 # FIXME: first we should search . and the directory the executable is in 15635 shlibpath_var=PATH 15636 ;; 15637 15638darwin* | rhapsody*) 15639 dynamic_linker="$host_os dyld" 15640 version_type=darwin 15641 need_lib_prefix=no 15642 need_version=no 15643 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15644 soname_spec='${libname}${release}${major}$shared_ext' 15645 shlibpath_overrides_runpath=yes 15646 shlibpath_var=DYLD_LIBRARY_PATH 15647 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15648 15649 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15650 ;; 15651 15652dgux*) 15653 version_type=linux # correct to gnu/linux during the next big refactor 15654 need_lib_prefix=no 15655 need_version=no 15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15657 soname_spec='${libname}${release}${shared_ext}$major' 15658 shlibpath_var=LD_LIBRARY_PATH 15659 ;; 15660 15661freebsd* | dragonfly*) 15662 # DragonFly does not have aout. When/if they implement a new 15663 # versioning mechanism, adjust this. 15664 if test -x /usr/bin/objformat; then 15665 objformat=`/usr/bin/objformat` 15666 else 15667 case $host_os in 15668 freebsd[23].*) objformat=aout ;; 15669 *) objformat=elf ;; 15670 esac 15671 fi 15672 version_type=freebsd-$objformat 15673 case $version_type in 15674 freebsd-elf*) 15675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15676 need_version=no 15677 need_lib_prefix=no 15678 ;; 15679 freebsd-*) 15680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15681 need_version=yes 15682 ;; 15683 esac 15684 shlibpath_var=LD_LIBRARY_PATH 15685 case $host_os in 15686 freebsd2.*) 15687 shlibpath_overrides_runpath=yes 15688 ;; 15689 freebsd3.[01]* | freebsdelf3.[01]*) 15690 shlibpath_overrides_runpath=yes 15691 hardcode_into_libs=yes 15692 ;; 15693 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15694 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15695 shlibpath_overrides_runpath=no 15696 hardcode_into_libs=yes 15697 ;; 15698 *) # from 4.6 on, and DragonFly 15699 shlibpath_overrides_runpath=yes 15700 hardcode_into_libs=yes 15701 ;; 15702 esac 15703 ;; 15704 15705gnu*) 15706 version_type=linux # correct to gnu/linux during the next big refactor 15707 need_lib_prefix=no 15708 need_version=no 15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15710 soname_spec='${libname}${release}${shared_ext}$major' 15711 shlibpath_var=LD_LIBRARY_PATH 15712 shlibpath_overrides_runpath=no 15713 hardcode_into_libs=yes 15714 ;; 15715 15716haiku*) 15717 version_type=linux # correct to gnu/linux during the next big refactor 15718 need_lib_prefix=no 15719 need_version=no 15720 dynamic_linker="$host_os runtime_loader" 15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15722 soname_spec='${libname}${release}${shared_ext}$major' 15723 shlibpath_var=LIBRARY_PATH 15724 shlibpath_overrides_runpath=yes 15725 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15726 hardcode_into_libs=yes 15727 ;; 15728 15729hpux9* | hpux10* | hpux11*) 15730 # Give a soname corresponding to the major version so that dld.sl refuses to 15731 # link against other versions. 15732 version_type=sunos 15733 need_lib_prefix=no 15734 need_version=no 15735 case $host_cpu in 15736 ia64*) 15737 shrext_cmds='.so' 15738 hardcode_into_libs=yes 15739 dynamic_linker="$host_os dld.so" 15740 shlibpath_var=LD_LIBRARY_PATH 15741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15743 soname_spec='${libname}${release}${shared_ext}$major' 15744 if test "X$HPUX_IA64_MODE" = X32; then 15745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15746 else 15747 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15748 fi 15749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15750 ;; 15751 hppa*64*) 15752 shrext_cmds='.sl' 15753 hardcode_into_libs=yes 15754 dynamic_linker="$host_os dld.sl" 15755 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15758 soname_spec='${libname}${release}${shared_ext}$major' 15759 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15761 ;; 15762 *) 15763 shrext_cmds='.sl' 15764 dynamic_linker="$host_os dld.sl" 15765 shlibpath_var=SHLIB_PATH 15766 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15768 soname_spec='${libname}${release}${shared_ext}$major' 15769 ;; 15770 esac 15771 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15772 postinstall_cmds='chmod 555 $lib' 15773 # or fails outright, so override atomically: 15774 install_override_mode=555 15775 ;; 15776 15777interix[3-9]*) 15778 version_type=linux # correct to gnu/linux during the next big refactor 15779 need_lib_prefix=no 15780 need_version=no 15781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15782 soname_spec='${libname}${release}${shared_ext}$major' 15783 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15784 shlibpath_var=LD_LIBRARY_PATH 15785 shlibpath_overrides_runpath=no 15786 hardcode_into_libs=yes 15787 ;; 15788 15789irix5* | irix6* | nonstopux*) 15790 case $host_os in 15791 nonstopux*) version_type=nonstopux ;; 15792 *) 15793 if test "$lt_cv_prog_gnu_ld" = yes; then 15794 version_type=linux # correct to gnu/linux during the next big refactor 15795 else 15796 version_type=irix 15797 fi ;; 15798 esac 15799 need_lib_prefix=no 15800 need_version=no 15801 soname_spec='${libname}${release}${shared_ext}$major' 15802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15803 case $host_os in 15804 irix5* | nonstopux*) 15805 libsuff= shlibsuff= 15806 ;; 15807 *) 15808 case $LD in # libtool.m4 will add one of these switches to LD 15809 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15810 libsuff= shlibsuff= libmagic=32-bit;; 15811 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15812 libsuff=32 shlibsuff=N32 libmagic=N32;; 15813 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15814 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15815 *) libsuff= shlibsuff= libmagic=never-match;; 15816 esac 15817 ;; 15818 esac 15819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15820 shlibpath_overrides_runpath=no 15821 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15822 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15823 hardcode_into_libs=yes 15824 ;; 15825 15826# No shared lib support for Linux oldld, aout, or coff. 15827linux*oldld* | linux*aout* | linux*coff*) 15828 dynamic_linker=no 15829 ;; 15830 15831# This must be glibc/ELF. 15832linux* | k*bsd*-gnu | kopensolaris*-gnu) 15833 version_type=linux # correct to gnu/linux during the next big refactor 15834 need_lib_prefix=no 15835 need_version=no 15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15837 soname_spec='${libname}${release}${shared_ext}$major' 15838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15839 shlibpath_var=LD_LIBRARY_PATH 15840 shlibpath_overrides_runpath=no 15841 15842 # Some binutils ld are patched to set DT_RUNPATH 15843 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15844 $as_echo_n "(cached) " >&6 15845else 15846 lt_cv_shlibpath_overrides_runpath=no 15847 save_LDFLAGS=$LDFLAGS 15848 save_libdir=$libdir 15849 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 15850 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 15851 cat > conftest.$ac_ext <<_ACEOF 15852 program main 15853 15854 end 15855_ACEOF 15856if ac_fn_fc_try_link "$LINENO"; then : 15857 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15858 lt_cv_shlibpath_overrides_runpath=yes 15859fi 15860fi 15861rm -f core conftest.err conftest.$ac_objext \ 15862 conftest$ac_exeext conftest.$ac_ext 15863 LDFLAGS=$save_LDFLAGS 15864 libdir=$save_libdir 15865 15866fi 15867 15868 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15869 15870 # This implies no fast_install, which is unacceptable. 15871 # Some rework will be needed to allow for fast_install 15872 # before this can be enabled. 15873 hardcode_into_libs=yes 15874 15875 # Add ABI-specific directories to the system library path. 15876 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 15877 15878 # Append ld.so.conf contents to the search path 15879 if test -f /etc/ld.so.conf; then 15880 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' ' '` 15881 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15882 15883 fi 15884 15885 # We used to test for /lib/ld.so.1 and disable shared libraries on 15886 # powerpc, because MkLinux only supported shared libraries with the 15887 # GNU dynamic linker. Since this was broken with cross compilers, 15888 # most powerpc-linux boxes support dynamic linking these days and 15889 # people can always --disable-shared, the test was removed, and we 15890 # assume the GNU/Linux dynamic linker is in use. 15891 dynamic_linker='GNU/Linux ld.so' 15892 ;; 15893 15894netbsd*) 15895 version_type=sunos 15896 need_lib_prefix=no 15897 need_version=no 15898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15901 dynamic_linker='NetBSD (a.out) ld.so' 15902 else 15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15904 soname_spec='${libname}${release}${shared_ext}$major' 15905 dynamic_linker='NetBSD ld.elf_so' 15906 fi 15907 shlibpath_var=LD_LIBRARY_PATH 15908 shlibpath_overrides_runpath=yes 15909 hardcode_into_libs=yes 15910 ;; 15911 15912newsos6) 15913 version_type=linux # correct to gnu/linux during the next big refactor 15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15915 shlibpath_var=LD_LIBRARY_PATH 15916 shlibpath_overrides_runpath=yes 15917 ;; 15918 15919*nto* | *qnx*) 15920 version_type=qnx 15921 need_lib_prefix=no 15922 need_version=no 15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15924 soname_spec='${libname}${release}${shared_ext}$major' 15925 shlibpath_var=LD_LIBRARY_PATH 15926 shlibpath_overrides_runpath=no 15927 hardcode_into_libs=yes 15928 dynamic_linker='ldqnx.so' 15929 ;; 15930 15931openbsd*) 15932 version_type=sunos 15933 sys_lib_dlsearch_path_spec="/usr/lib" 15934 need_lib_prefix=no 15935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15936 case $host_os in 15937 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15938 *) need_version=no ;; 15939 esac 15940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15942 shlibpath_var=LD_LIBRARY_PATH 15943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15944 case $host_os in 15945 openbsd2.[89] | openbsd2.[89].*) 15946 shlibpath_overrides_runpath=no 15947 ;; 15948 *) 15949 shlibpath_overrides_runpath=yes 15950 ;; 15951 esac 15952 else 15953 shlibpath_overrides_runpath=yes 15954 fi 15955 ;; 15956 15957os2*) 15958 libname_spec='$name' 15959 shrext_cmds=".dll" 15960 need_lib_prefix=no 15961 library_names_spec='$libname${shared_ext} $libname.a' 15962 dynamic_linker='OS/2 ld.exe' 15963 shlibpath_var=LIBPATH 15964 ;; 15965 15966osf3* | osf4* | osf5*) 15967 version_type=osf 15968 need_lib_prefix=no 15969 need_version=no 15970 soname_spec='${libname}${release}${shared_ext}$major' 15971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15972 shlibpath_var=LD_LIBRARY_PATH 15973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15975 ;; 15976 15977rdos*) 15978 dynamic_linker=no 15979 ;; 15980 15981solaris*) 15982 version_type=linux # correct to gnu/linux during the next big refactor 15983 need_lib_prefix=no 15984 need_version=no 15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15986 soname_spec='${libname}${release}${shared_ext}$major' 15987 shlibpath_var=LD_LIBRARY_PATH 15988 shlibpath_overrides_runpath=yes 15989 hardcode_into_libs=yes 15990 # ldd complains unless libraries are executable 15991 postinstall_cmds='chmod +x $lib' 15992 ;; 15993 15994sunos4*) 15995 version_type=sunos 15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15998 shlibpath_var=LD_LIBRARY_PATH 15999 shlibpath_overrides_runpath=yes 16000 if test "$with_gnu_ld" = yes; then 16001 need_lib_prefix=no 16002 fi 16003 need_version=yes 16004 ;; 16005 16006sysv4 | sysv4.3*) 16007 version_type=linux # correct to gnu/linux during the next big refactor 16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16009 soname_spec='${libname}${release}${shared_ext}$major' 16010 shlibpath_var=LD_LIBRARY_PATH 16011 case $host_vendor in 16012 sni) 16013 shlibpath_overrides_runpath=no 16014 need_lib_prefix=no 16015 runpath_var=LD_RUN_PATH 16016 ;; 16017 siemens) 16018 need_lib_prefix=no 16019 ;; 16020 motorola) 16021 need_lib_prefix=no 16022 need_version=no 16023 shlibpath_overrides_runpath=no 16024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16025 ;; 16026 esac 16027 ;; 16028 16029sysv4*MP*) 16030 if test -d /usr/nec ;then 16031 version_type=linux # correct to gnu/linux during the next big refactor 16032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16033 soname_spec='$libname${shared_ext}.$major' 16034 shlibpath_var=LD_LIBRARY_PATH 16035 fi 16036 ;; 16037 16038sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16039 version_type=freebsd-elf 16040 need_lib_prefix=no 16041 need_version=no 16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16043 soname_spec='${libname}${release}${shared_ext}$major' 16044 shlibpath_var=LD_LIBRARY_PATH 16045 shlibpath_overrides_runpath=yes 16046 hardcode_into_libs=yes 16047 if test "$with_gnu_ld" = yes; then 16048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16049 else 16050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16051 case $host_os in 16052 sco3.2v5*) 16053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16054 ;; 16055 esac 16056 fi 16057 sys_lib_dlsearch_path_spec='/usr/lib' 16058 ;; 16059 16060tpf*) 16061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16062 version_type=linux # correct to gnu/linux during the next big refactor 16063 need_lib_prefix=no 16064 need_version=no 16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16066 shlibpath_var=LD_LIBRARY_PATH 16067 shlibpath_overrides_runpath=no 16068 hardcode_into_libs=yes 16069 ;; 16070 16071uts4*) 16072 version_type=linux # correct to gnu/linux during the next big refactor 16073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16074 soname_spec='${libname}${release}${shared_ext}$major' 16075 shlibpath_var=LD_LIBRARY_PATH 16076 ;; 16077 16078*) 16079 dynamic_linker=no 16080 ;; 16081esac 16082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16083$as_echo "$dynamic_linker" >&6; } 16084test "$dynamic_linker" = no && can_build_shared=no 16085 16086variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16087if test "$GCC" = yes; then 16088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16089fi 16090 16091if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16093fi 16094if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16095 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16096fi 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16136$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16137hardcode_action_FC= 16138if test -n "$hardcode_libdir_flag_spec_FC" || 16139 test -n "$runpath_var_FC" || 16140 test "X$hardcode_automatic_FC" = "Xyes" ; then 16141 16142 # We can hardcode non-existent directories. 16143 if test "$hardcode_direct_FC" != no && 16144 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16145 # have to relink, otherwise we might link with an installed library 16146 # when we should be linking with a yet-to-be-installed one 16147 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && 16148 test "$hardcode_minus_L_FC" != no; then 16149 # Linking always hardcodes the temporary library directory. 16150 hardcode_action_FC=relink 16151 else 16152 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16153 hardcode_action_FC=immediate 16154 fi 16155else 16156 # We cannot hardcode anything, or else we can only hardcode existing 16157 # directories. 16158 hardcode_action_FC=unsupported 16159fi 16160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 16161$as_echo "$hardcode_action_FC" >&6; } 16162 16163if test "$hardcode_action_FC" = relink || 16164 test "$inherit_rpath_FC" = yes; then 16165 # Fast installation is not supported 16166 enable_fast_install=no 16167elif test "$shlibpath_overrides_runpath" = yes || 16168 test "$enable_shared" = no; then 16169 # Fast installation is not necessary 16170 enable_fast_install=needless 16171fi 16172 16173 16174 16175 16176 16177 16178 16179 fi # test -n "$compiler" 16180 16181 GCC=$lt_save_GCC 16182 CC=$lt_save_CC 16183 CFLAGS=$lt_save_CFLAGS 16184fi # test "$_lt_disable_FC" != yes 16185 16186ac_ext=c 16187ac_cpp='$CPP $CPPFLAGS' 16188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16190ac_compiler_gnu=$ac_cv_c_compiler_gnu 16191 16192 16193 16194# NB: Solaris 10 doesn't support _XOPEN_SOURCE beyond 600 16195 16196$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 16197 16198 16199# Checks for libraries. 16200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dirname" >&5 16201$as_echo_n "checking for library containing dirname... " >&6; } 16202if ${ac_cv_search_dirname+:} false; then : 16203 $as_echo_n "(cached) " >&6 16204else 16205 ac_func_search_save_LIBS=$LIBS 16206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208 16209/* Override any GCC internal prototype to avoid an error. 16210 Use char because int might match the return type of a GCC 16211 builtin and then its argument prototype would still apply. */ 16212#ifdef __cplusplus 16213extern "C" 16214#endif 16215char dirname (); 16216int 16217main () 16218{ 16219return dirname (); 16220 ; 16221 return 0; 16222} 16223_ACEOF 16224for ac_lib in '' gen; do 16225 if test -z "$ac_lib"; then 16226 ac_res="none required" 16227 else 16228 ac_res=-l$ac_lib 16229 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16230 fi 16231 if ac_fn_c_try_link "$LINENO"; then : 16232 ac_cv_search_dirname=$ac_res 16233fi 16234rm -f core conftest.err conftest.$ac_objext \ 16235 conftest$ac_exeext 16236 if ${ac_cv_search_dirname+:} false; then : 16237 break 16238fi 16239done 16240if ${ac_cv_search_dirname+:} false; then : 16241 16242else 16243 ac_cv_search_dirname=no 16244fi 16245rm conftest.$ac_ext 16246LIBS=$ac_func_search_save_LIBS 16247fi 16248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dirname" >&5 16249$as_echo "$ac_cv_search_dirname" >&6; } 16250ac_res=$ac_cv_search_dirname 16251if test "$ac_res" != no; then : 16252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16253 16254else 16255 as_fn_error $? "cannot find function dirname" "$LINENO" 5 16256fi 16257 16258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log10" >&5 16259$as_echo_n "checking for library containing log10... " >&6; } 16260if ${ac_cv_search_log10+:} false; then : 16261 $as_echo_n "(cached) " >&6 16262else 16263 ac_func_search_save_LIBS=$LIBS 16264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16265/* end confdefs.h. */ 16266 16267/* Override any GCC internal prototype to avoid an error. 16268 Use char because int might match the return type of a GCC 16269 builtin and then its argument prototype would still apply. */ 16270#ifdef __cplusplus 16271extern "C" 16272#endif 16273char log10 (); 16274int 16275main () 16276{ 16277return log10 (); 16278 ; 16279 return 0; 16280} 16281_ACEOF 16282for ac_lib in '' m; do 16283 if test -z "$ac_lib"; then 16284 ac_res="none required" 16285 else 16286 ac_res=-l$ac_lib 16287 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16288 fi 16289 if ac_fn_c_try_link "$LINENO"; then : 16290 ac_cv_search_log10=$ac_res 16291fi 16292rm -f core conftest.err conftest.$ac_objext \ 16293 conftest$ac_exeext 16294 if ${ac_cv_search_log10+:} false; then : 16295 break 16296fi 16297done 16298if ${ac_cv_search_log10+:} false; then : 16299 16300else 16301 ac_cv_search_log10=no 16302fi 16303rm conftest.$ac_ext 16304LIBS=$ac_func_search_save_LIBS 16305fi 16306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log10" >&5 16307$as_echo "$ac_cv_search_log10" >&6; } 16308ac_res=$ac_cv_search_log10 16309if test "$ac_res" != no; then : 16310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16311 16312else 16313 as_fn_error $? "cannot find function log10" "$LINENO" 5 16314fi 16315 16316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing XML_StopParser" >&5 16317$as_echo_n "checking for library containing XML_StopParser... " >&6; } 16318if ${ac_cv_search_XML_StopParser+:} false; then : 16319 $as_echo_n "(cached) " >&6 16320else 16321 ac_func_search_save_LIBS=$LIBS 16322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16323/* end confdefs.h. */ 16324 16325/* Override any GCC internal prototype to avoid an error. 16326 Use char because int might match the return type of a GCC 16327 builtin and then its argument prototype would still apply. */ 16328#ifdef __cplusplus 16329extern "C" 16330#endif 16331char XML_StopParser (); 16332int 16333main () 16334{ 16335return XML_StopParser (); 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340for ac_lib in '' expat; do 16341 if test -z "$ac_lib"; then 16342 ac_res="none required" 16343 else 16344 ac_res=-l$ac_lib 16345 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16346 fi 16347 if ac_fn_c_try_link "$LINENO"; then : 16348 ac_cv_search_XML_StopParser=$ac_res 16349fi 16350rm -f core conftest.err conftest.$ac_objext \ 16351 conftest$ac_exeext 16352 if ${ac_cv_search_XML_StopParser+:} false; then : 16353 break 16354fi 16355done 16356if ${ac_cv_search_XML_StopParser+:} false; then : 16357 16358else 16359 ac_cv_search_XML_StopParser=no 16360fi 16361rm conftest.$ac_ext 16362LIBS=$ac_func_search_save_LIBS 16363fi 16364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_XML_StopParser" >&5 16365$as_echo "$ac_cv_search_XML_StopParser" >&6; } 16366ac_res=$ac_cv_search_XML_StopParser 16367if test "$ac_res" != no; then : 16368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16369 16370else 16371 as_fn_error $? "cannot find EXPAT function XML_StopParser" "$LINENO" 5 16372fi 16373 16374 16375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 16376$as_echo_n "checking for dlopen in -ldl... " >&6; } 16377if ${ac_cv_lib_dl_dlopen+:} false; then : 16378 $as_echo_n "(cached) " >&6 16379else 16380 ac_check_lib_save_LIBS=$LIBS 16381LIBS="-ldl $LIBS" 16382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16383/* end confdefs.h. */ 16384 16385/* Override any GCC internal prototype to avoid an error. 16386 Use char because int might match the return type of a GCC 16387 builtin and then its argument prototype would still apply. */ 16388#ifdef __cplusplus 16389extern "C" 16390#endif 16391char dlopen (); 16392int 16393main () 16394{ 16395return dlopen (); 16396 ; 16397 return 0; 16398} 16399_ACEOF 16400if ac_fn_c_try_link "$LINENO"; then : 16401 ac_cv_lib_dl_dlopen=yes 16402else 16403 ac_cv_lib_dl_dlopen=no 16404fi 16405rm -f core conftest.err conftest.$ac_objext \ 16406 conftest$ac_exeext conftest.$ac_ext 16407LIBS=$ac_check_lib_save_LIBS 16408fi 16409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 16410$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 16411if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 16412 cat >>confdefs.h <<_ACEOF 16413#define HAVE_LIBDL 1 16414_ACEOF 16415 16416 LIBS="-ldl $LIBS" 16417 16418fi 16419 16420 16421# Checks for header files. 16422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 16423$as_echo_n "checking for ANSI C header files... " >&6; } 16424if ${ac_cv_header_stdc+:} false; then : 16425 $as_echo_n "(cached) " >&6 16426else 16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16428/* end confdefs.h. */ 16429#include <stdlib.h> 16430#include <stdarg.h> 16431#include <string.h> 16432#include <float.h> 16433 16434int 16435main () 16436{ 16437 16438 ; 16439 return 0; 16440} 16441_ACEOF 16442if ac_fn_c_try_compile "$LINENO"; then : 16443 ac_cv_header_stdc=yes 16444else 16445 ac_cv_header_stdc=no 16446fi 16447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16448 16449if test $ac_cv_header_stdc = yes; then 16450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16452/* end confdefs.h. */ 16453#include <string.h> 16454 16455_ACEOF 16456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16457 $EGREP "memchr" >/dev/null 2>&1; then : 16458 16459else 16460 ac_cv_header_stdc=no 16461fi 16462rm -f conftest* 16463 16464fi 16465 16466if test $ac_cv_header_stdc = yes; then 16467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 16468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16469/* end confdefs.h. */ 16470#include <stdlib.h> 16471 16472_ACEOF 16473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16474 $EGREP "free" >/dev/null 2>&1; then : 16475 16476else 16477 ac_cv_header_stdc=no 16478fi 16479rm -f conftest* 16480 16481fi 16482 16483if test $ac_cv_header_stdc = yes; then 16484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 16485 if test "$cross_compiling" = yes; then : 16486 : 16487else 16488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16489/* end confdefs.h. */ 16490#include <ctype.h> 16491#include <stdlib.h> 16492#if ((' ' & 0x0FF) == 0x020) 16493# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 16494# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 16495#else 16496# define ISLOWER(c) \ 16497 (('a' <= (c) && (c) <= 'i') \ 16498 || ('j' <= (c) && (c) <= 'r') \ 16499 || ('s' <= (c) && (c) <= 'z')) 16500# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 16501#endif 16502 16503#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 16504int 16505main () 16506{ 16507 int i; 16508 for (i = 0; i < 256; i++) 16509 if (XOR (islower (i), ISLOWER (i)) 16510 || toupper (i) != TOUPPER (i)) 16511 return 2; 16512 return 0; 16513} 16514_ACEOF 16515if ac_fn_c_try_run "$LINENO"; then : 16516 16517else 16518 ac_cv_header_stdc=no 16519fi 16520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16521 conftest.$ac_objext conftest.beam conftest.$ac_ext 16522fi 16523 16524fi 16525fi 16526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16527$as_echo "$ac_cv_header_stdc" >&6; } 16528if test $ac_cv_header_stdc = yes; then 16529 16530$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16531 16532fi 16533 16534for ac_header in float.h inttypes.h stddef.h stdlib.h string.h strings.h 16535do : 16536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16537ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16538if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16539 cat >>confdefs.h <<_ACEOF 16540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16541_ACEOF 16542 16543fi 16544 16545done 16546 16547 16548# Checks for the CUNIT unit-testing package 16549LD_CUNIT= 16550{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking for the CUNIT unit-testing package." >&5 16551$as_echo "$as_me: Checking for the CUNIT unit-testing package." >&6;} 16552ac_fn_c_check_header_mongrel "$LINENO" "CUnit/CUnit.h" "ac_cv_header_CUnit_CUnit_h" "$ac_includes_default" 16553if test "x$ac_cv_header_CUnit_CUnit_h" = xyes; then : 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CU_initialize_registry in -lcunit" >&5 16555$as_echo_n "checking for CU_initialize_registry in -lcunit... " >&6; } 16556if ${ac_cv_lib_cunit_CU_initialize_registry+:} false; then : 16557 $as_echo_n "(cached) " >&6 16558else 16559 ac_check_lib_save_LIBS=$LIBS 16560LIBS="-lcunit $LIBS" 16561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16562/* end confdefs.h. */ 16563 16564/* Override any GCC internal prototype to avoid an error. 16565 Use char because int might match the return type of a GCC 16566 builtin and then its argument prototype would still apply. */ 16567#ifdef __cplusplus 16568extern "C" 16569#endif 16570char CU_initialize_registry (); 16571int 16572main () 16573{ 16574return CU_initialize_registry (); 16575 ; 16576 return 0; 16577} 16578_ACEOF 16579if ac_fn_c_try_link "$LINENO"; then : 16580 ac_cv_lib_cunit_CU_initialize_registry=yes 16581else 16582 ac_cv_lib_cunit_CU_initialize_registry=no 16583fi 16584rm -f core conftest.err conftest.$ac_objext \ 16585 conftest$ac_exeext conftest.$ac_ext 16586LIBS=$ac_check_lib_save_LIBS 16587fi 16588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cunit_CU_initialize_registry" >&5 16589$as_echo "$ac_cv_lib_cunit_CU_initialize_registry" >&6; } 16590if test "x$ac_cv_lib_cunit_CU_initialize_registry" = xyes; then : 16591 LD_CUNIT=-lcunit 16592fi 16593 16594fi 16595 16596 16597 16598if test "$LD_CUNIT"; then 16599 { $as_echo "$as_me:${as_lineno-$LINENO}: CUNIT found. Enabling unit-tests." >&5 16600$as_echo "$as_me: CUNIT found. Enabling unit-tests." >&6;} 16601else 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: CUNIT not found. Disabling unit-tests." >&5 16603$as_echo "$as_me: CUNIT not found. Disabling unit-tests." >&6;} 16604fi 16605 if test "$LD_CUNIT"; then 16606 HAVE_CUNIT_TRUE= 16607 HAVE_CUNIT_FALSE='#' 16608else 16609 HAVE_CUNIT_TRUE='#' 16610 HAVE_CUNIT_FALSE= 16611fi 16612 16613 16614# Checks for typedefs, structures, and compiler characteristics. 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16616$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16617if ${ac_cv_c_const+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622 16623int 16624main () 16625{ 16626 16627#ifndef __cplusplus 16628 /* Ultrix mips cc rejects this sort of thing. */ 16629 typedef int charset[2]; 16630 const charset cs = { 0, 0 }; 16631 /* SunOS 4.1.1 cc rejects this. */ 16632 char const *const *pcpcc; 16633 char **ppc; 16634 /* NEC SVR4.0.2 mips cc rejects this. */ 16635 struct point {int x, y;}; 16636 static struct point const zero = {0,0}; 16637 /* AIX XL C 1.02.0.0 rejects this. 16638 It does not let you subtract one const X* pointer from another in 16639 an arm of an if-expression whose if-part is not a constant 16640 expression */ 16641 const char *g = "string"; 16642 pcpcc = &g + (g ? g-g : 0); 16643 /* HPUX 7.0 cc rejects these. */ 16644 ++pcpcc; 16645 ppc = (char**) pcpcc; 16646 pcpcc = (char const *const *) ppc; 16647 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16648 char tx; 16649 char *t = &tx; 16650 char const *s = 0 ? (char *) 0 : (char const *) 0; 16651 16652 *t++ = 0; 16653 if (s) return 0; 16654 } 16655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16656 int x[] = {25, 17}; 16657 const int *foo = &x[0]; 16658 ++foo; 16659 } 16660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16661 typedef const int *iptr; 16662 iptr p = 0; 16663 ++p; 16664 } 16665 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16667 struct s { int j; const int *ap[3]; } bx; 16668 struct s *b = &bx; b->j = 5; 16669 } 16670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16671 const int foo = 10; 16672 if (!foo) return 0; 16673 } 16674 return !cs[0] && !zero.x; 16675#endif 16676 16677 ; 16678 return 0; 16679} 16680_ACEOF 16681if ac_fn_c_try_compile "$LINENO"; then : 16682 ac_cv_c_const=yes 16683else 16684 ac_cv_c_const=no 16685fi 16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16687fi 16688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16689$as_echo "$ac_cv_c_const" >&6; } 16690if test $ac_cv_c_const = no; then 16691 16692$as_echo "#define const /**/" >>confdefs.h 16693 16694fi 16695 16696ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16697if test "x$ac_cv_type_size_t" = xyes; then : 16698 16699else 16700 16701cat >>confdefs.h <<_ACEOF 16702#define size_t unsigned int 16703_ACEOF 16704 16705fi 16706 16707 16708# Checks for library functions. 16709for ac_func in floor memmove memset modf pow strcasecmp strdup strpbrk 16710do : 16711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16712ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16713if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16714 cat >>confdefs.h <<_ACEOF 16715#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16716_ACEOF 16717 16718fi 16719done 16720 16721 16722 16723 16724ac_config_files="$ac_config_files Makefile lib/Makefile lib/xmlFailures/Makefile lib/xmlSuccesses/Makefile prog/Makefile" 16725 16726cat >confcache <<\_ACEOF 16727# This file is a shell script that caches the results of configure 16728# tests run on this system so they can be shared between configure 16729# scripts and configure runs, see configure's option --config-cache. 16730# It is not useful on other systems. If it contains results you don't 16731# want to keep, you may remove or edit it. 16732# 16733# config.status only pays attention to the cache file if you give it 16734# the --recheck option to rerun configure. 16735# 16736# `ac_cv_env_foo' variables (set or unset) will be overridden when 16737# loading this file, other *unset* `ac_cv_foo' will be assigned the 16738# following values. 16739 16740_ACEOF 16741 16742# The following way of writing the cache mishandles newlines in values, 16743# but we know of no workaround that is simple, portable, and efficient. 16744# So, we kill variables containing newlines. 16745# Ultrix sh set writes to stderr and can't be redirected directly, 16746# and sets the high bit in the cache file unless we assign to the vars. 16747( 16748 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16749 eval ac_val=\$$ac_var 16750 case $ac_val in #( 16751 *${as_nl}*) 16752 case $ac_var in #( 16753 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16754$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16755 esac 16756 case $ac_var in #( 16757 _ | IFS | as_nl) ;; #( 16758 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16759 *) { eval $ac_var=; unset $ac_var;} ;; 16760 esac ;; 16761 esac 16762 done 16763 16764 (set) 2>&1 | 16765 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16766 *${as_nl}ac_space=\ *) 16767 # `set' does not quote correctly, so add quotes: double-quote 16768 # substitution turns \\\\ into \\, and sed turns \\ into \. 16769 sed -n \ 16770 "s/'/'\\\\''/g; 16771 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16772 ;; #( 16773 *) 16774 # `set' quotes correctly as required by POSIX, so do not add quotes. 16775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16776 ;; 16777 esac | 16778 sort 16779) | 16780 sed ' 16781 /^ac_cv_env_/b end 16782 t clear 16783 :clear 16784 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16785 t end 16786 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16787 :end' >>confcache 16788if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16789 if test -w "$cache_file"; then 16790 if test "x$cache_file" != "x/dev/null"; then 16791 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16792$as_echo "$as_me: updating cache $cache_file" >&6;} 16793 if test ! -f "$cache_file" || test -h "$cache_file"; then 16794 cat confcache >"$cache_file" 16795 else 16796 case $cache_file in #( 16797 */* | ?:*) 16798 mv -f confcache "$cache_file"$$ && 16799 mv -f "$cache_file"$$ "$cache_file" ;; #( 16800 *) 16801 mv -f confcache "$cache_file" ;; 16802 esac 16803 fi 16804 fi 16805 else 16806 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16807$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16808 fi 16809fi 16810rm -f confcache 16811 16812test "x$prefix" = xNONE && prefix=$ac_default_prefix 16813# Let make expand exec_prefix. 16814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16815 16816DEFS=-DHAVE_CONFIG_H 16817 16818ac_libobjs= 16819ac_ltlibobjs= 16820U= 16821for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16822 # 1. Remove the extension, and $U if already installed. 16823 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16824 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16825 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16826 # will be set to the directory where LIBOBJS objects are built. 16827 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16828 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16829done 16830LIBOBJS=$ac_libobjs 16831 16832LTLIBOBJS=$ac_ltlibobjs 16833 16834 16835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16836$as_echo_n "checking that generated files are newer than configure... " >&6; } 16837 if test -n "$am_sleep_pid"; then 16838 # Hide warnings about reused PIDs. 16839 wait $am_sleep_pid 2>/dev/null 16840 fi 16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16842$as_echo "done" >&6; } 16843 if test -n "$EXEEXT"; then 16844 am__EXEEXT_TRUE= 16845 am__EXEEXT_FALSE='#' 16846else 16847 am__EXEEXT_TRUE='#' 16848 am__EXEEXT_FALSE= 16849fi 16850 16851if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16852 as_fn_error $? "conditional \"AMDEP\" was never defined. 16853Usually this means the macro was only invoked conditionally." "$LINENO" 5 16854fi 16855if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16856 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16857Usually this means the macro was only invoked conditionally." "$LINENO" 5 16858fi 16859if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then 16860 as_fn_error $? "conditional \"DEBUG\" was never defined. 16861Usually this means the macro was only invoked conditionally." "$LINENO" 5 16862fi 16863if test -z "${ENABLE_UDUNITS_1_TRUE}" && test -z "${ENABLE_UDUNITS_1_FALSE}"; then 16864 as_fn_error $? "conditional \"ENABLE_UDUNITS_1\" was never defined. 16865Usually this means the macro was only invoked conditionally." "$LINENO" 5 16866fi 16867if test -z "${ENABLE_UDUNITS_1_TRUE}" && test -z "${ENABLE_UDUNITS_1_FALSE}"; then 16868 as_fn_error $? "conditional \"ENABLE_UDUNITS_1\" was never defined. 16869Usually this means the macro was only invoked conditionally." "$LINENO" 5 16870fi 16871if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16872 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16873Usually this means the macro was only invoked conditionally." "$LINENO" 5 16874fi 16875if test -z "${HAVE_CUNIT_TRUE}" && test -z "${HAVE_CUNIT_FALSE}"; then 16876 as_fn_error $? "conditional \"HAVE_CUNIT\" was never defined. 16877Usually this means the macro was only invoked conditionally." "$LINENO" 5 16878fi 16879 16880: "${CONFIG_STATUS=./config.status}" 16881ac_write_fail=0 16882ac_clean_files_save=$ac_clean_files 16883ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16884{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16885$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16886as_write_fail=0 16887cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16888#! $SHELL 16889# Generated by $as_me. 16890# Run this file to recreate the current configuration. 16891# Compiler output produced by configure, useful for debugging 16892# configure, is in config.log if it exists. 16893 16894debug=false 16895ac_cs_recheck=false 16896ac_cs_silent=false 16897 16898SHELL=\${CONFIG_SHELL-$SHELL} 16899export SHELL 16900_ASEOF 16901cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16902## -------------------- ## 16903## M4sh Initialization. ## 16904## -------------------- ## 16905 16906# Be more Bourne compatible 16907DUALCASE=1; export DUALCASE # for MKS sh 16908if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16909 emulate sh 16910 NULLCMD=: 16911 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16912 # is contrary to our usage. Disable this feature. 16913 alias -g '${1+"$@"}'='"$@"' 16914 setopt NO_GLOB_SUBST 16915else 16916 case `(set -o) 2>/dev/null` in #( 16917 *posix*) : 16918 set -o posix ;; #( 16919 *) : 16920 ;; 16921esac 16922fi 16923 16924 16925as_nl=' 16926' 16927export as_nl 16928# Printing a long string crashes Solaris 7 /usr/bin/printf. 16929as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16930as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16931as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16932# Prefer a ksh shell builtin over an external printf program on Solaris, 16933# but without wasting forks for bash or zsh. 16934if test -z "$BASH_VERSION$ZSH_VERSION" \ 16935 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16936 as_echo='print -r --' 16937 as_echo_n='print -rn --' 16938elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16939 as_echo='printf %s\n' 16940 as_echo_n='printf %s' 16941else 16942 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16943 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16944 as_echo_n='/usr/ucb/echo -n' 16945 else 16946 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16947 as_echo_n_body='eval 16948 arg=$1; 16949 case $arg in #( 16950 *"$as_nl"*) 16951 expr "X$arg" : "X\\(.*\\)$as_nl"; 16952 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16953 esac; 16954 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16955 ' 16956 export as_echo_n_body 16957 as_echo_n='sh -c $as_echo_n_body as_echo' 16958 fi 16959 export as_echo_body 16960 as_echo='sh -c $as_echo_body as_echo' 16961fi 16962 16963# The user is always right. 16964if test "${PATH_SEPARATOR+set}" != set; then 16965 PATH_SEPARATOR=: 16966 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16967 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16968 PATH_SEPARATOR=';' 16969 } 16970fi 16971 16972 16973# IFS 16974# We need space, tab and new line, in precisely that order. Quoting is 16975# there to prevent editors from complaining about space-tab. 16976# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16977# splitting by setting IFS to empty value.) 16978IFS=" "" $as_nl" 16979 16980# Find who we are. Look in the path if we contain no directory separator. 16981as_myself= 16982case $0 in #(( 16983 *[\\/]* ) as_myself=$0 ;; 16984 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16985for as_dir in $PATH 16986do 16987 IFS=$as_save_IFS 16988 test -z "$as_dir" && as_dir=. 16989 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16990 done 16991IFS=$as_save_IFS 16992 16993 ;; 16994esac 16995# We did not find ourselves, most probably we were run as `sh COMMAND' 16996# in which case we are not to be found in the path. 16997if test "x$as_myself" = x; then 16998 as_myself=$0 16999fi 17000if test ! -f "$as_myself"; then 17001 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17002 exit 1 17003fi 17004 17005# Unset variables that we do not need and which cause bugs (e.g. in 17006# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17007# suppresses any "Segmentation fault" message there. '((' could 17008# trigger a bug in pdksh 5.2.14. 17009for as_var in BASH_ENV ENV MAIL MAILPATH 17010do eval test x\${$as_var+set} = xset \ 17011 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17012done 17013PS1='$ ' 17014PS2='> ' 17015PS4='+ ' 17016 17017# NLS nuisances. 17018LC_ALL=C 17019export LC_ALL 17020LANGUAGE=C 17021export LANGUAGE 17022 17023# CDPATH. 17024(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17025 17026 17027# as_fn_error STATUS ERROR [LINENO LOG_FD] 17028# ---------------------------------------- 17029# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17030# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17031# script with STATUS, using 1 if that was 0. 17032as_fn_error () 17033{ 17034 as_status=$1; test $as_status -eq 0 && as_status=1 17035 if test "$4"; then 17036 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17037 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17038 fi 17039 $as_echo "$as_me: error: $2" >&2 17040 as_fn_exit $as_status 17041} # as_fn_error 17042 17043 17044# as_fn_set_status STATUS 17045# ----------------------- 17046# Set $? to STATUS, without forking. 17047as_fn_set_status () 17048{ 17049 return $1 17050} # as_fn_set_status 17051 17052# as_fn_exit STATUS 17053# ----------------- 17054# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17055as_fn_exit () 17056{ 17057 set +e 17058 as_fn_set_status $1 17059 exit $1 17060} # as_fn_exit 17061 17062# as_fn_unset VAR 17063# --------------- 17064# Portably unset VAR. 17065as_fn_unset () 17066{ 17067 { eval $1=; unset $1;} 17068} 17069as_unset=as_fn_unset 17070# as_fn_append VAR VALUE 17071# ---------------------- 17072# Append the text in VALUE to the end of the definition contained in VAR. Take 17073# advantage of any shell optimizations that allow amortized linear growth over 17074# repeated appends, instead of the typical quadratic growth present in naive 17075# implementations. 17076if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17077 eval 'as_fn_append () 17078 { 17079 eval $1+=\$2 17080 }' 17081else 17082 as_fn_append () 17083 { 17084 eval $1=\$$1\$2 17085 } 17086fi # as_fn_append 17087 17088# as_fn_arith ARG... 17089# ------------------ 17090# Perform arithmetic evaluation on the ARGs, and store the result in the 17091# global $as_val. Take advantage of shells that can avoid forks. The arguments 17092# must be portable across $(()) and expr. 17093if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17094 eval 'as_fn_arith () 17095 { 17096 as_val=$(( $* )) 17097 }' 17098else 17099 as_fn_arith () 17100 { 17101 as_val=`expr "$@" || test $? -eq 1` 17102 } 17103fi # as_fn_arith 17104 17105 17106if expr a : '\(a\)' >/dev/null 2>&1 && 17107 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17108 as_expr=expr 17109else 17110 as_expr=false 17111fi 17112 17113if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17114 as_basename=basename 17115else 17116 as_basename=false 17117fi 17118 17119if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17120 as_dirname=dirname 17121else 17122 as_dirname=false 17123fi 17124 17125as_me=`$as_basename -- "$0" || 17126$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17127 X"$0" : 'X\(//\)$' \| \ 17128 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17129$as_echo X/"$0" | 17130 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17131 s//\1/ 17132 q 17133 } 17134 /^X\/\(\/\/\)$/{ 17135 s//\1/ 17136 q 17137 } 17138 /^X\/\(\/\).*/{ 17139 s//\1/ 17140 q 17141 } 17142 s/.*/./; q'` 17143 17144# Avoid depending upon Character Ranges. 17145as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17146as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17147as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17148as_cr_digits='0123456789' 17149as_cr_alnum=$as_cr_Letters$as_cr_digits 17150 17151ECHO_C= ECHO_N= ECHO_T= 17152case `echo -n x` in #((((( 17153-n*) 17154 case `echo 'xy\c'` in 17155 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17156 xy) ECHO_C='\c';; 17157 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17158 ECHO_T=' ';; 17159 esac;; 17160*) 17161 ECHO_N='-n';; 17162esac 17163 17164rm -f conf$$ conf$$.exe conf$$.file 17165if test -d conf$$.dir; then 17166 rm -f conf$$.dir/conf$$.file 17167else 17168 rm -f conf$$.dir 17169 mkdir conf$$.dir 2>/dev/null 17170fi 17171if (echo >conf$$.file) 2>/dev/null; then 17172 if ln -s conf$$.file conf$$ 2>/dev/null; then 17173 as_ln_s='ln -s' 17174 # ... but there are two gotchas: 17175 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17176 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17177 # In both cases, we have to default to `cp -pR'. 17178 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17179 as_ln_s='cp -pR' 17180 elif ln conf$$.file conf$$ 2>/dev/null; then 17181 as_ln_s=ln 17182 else 17183 as_ln_s='cp -pR' 17184 fi 17185else 17186 as_ln_s='cp -pR' 17187fi 17188rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17189rmdir conf$$.dir 2>/dev/null 17190 17191 17192# as_fn_mkdir_p 17193# ------------- 17194# Create "$as_dir" as a directory, including parents if necessary. 17195as_fn_mkdir_p () 17196{ 17197 17198 case $as_dir in #( 17199 -*) as_dir=./$as_dir;; 17200 esac 17201 test -d "$as_dir" || eval $as_mkdir_p || { 17202 as_dirs= 17203 while :; do 17204 case $as_dir in #( 17205 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17206 *) as_qdir=$as_dir;; 17207 esac 17208 as_dirs="'$as_qdir' $as_dirs" 17209 as_dir=`$as_dirname -- "$as_dir" || 17210$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17211 X"$as_dir" : 'X\(//\)[^/]' \| \ 17212 X"$as_dir" : 'X\(//\)$' \| \ 17213 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17214$as_echo X"$as_dir" | 17215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17216 s//\1/ 17217 q 17218 } 17219 /^X\(\/\/\)[^/].*/{ 17220 s//\1/ 17221 q 17222 } 17223 /^X\(\/\/\)$/{ 17224 s//\1/ 17225 q 17226 } 17227 /^X\(\/\).*/{ 17228 s//\1/ 17229 q 17230 } 17231 s/.*/./; q'` 17232 test -d "$as_dir" && break 17233 done 17234 test -z "$as_dirs" || eval "mkdir $as_dirs" 17235 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17236 17237 17238} # as_fn_mkdir_p 17239if mkdir -p . 2>/dev/null; then 17240 as_mkdir_p='mkdir -p "$as_dir"' 17241else 17242 test -d ./-p && rmdir ./-p 17243 as_mkdir_p=false 17244fi 17245 17246 17247# as_fn_executable_p FILE 17248# ----------------------- 17249# Test if FILE is an executable regular file. 17250as_fn_executable_p () 17251{ 17252 test -f "$1" && test -x "$1" 17253} # as_fn_executable_p 17254as_test_x='test -x' 17255as_executable_p=as_fn_executable_p 17256 17257# Sed expression to map a string onto a valid CPP name. 17258as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17259 17260# Sed expression to map a string onto a valid variable name. 17261as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17262 17263 17264exec 6>&1 17265## ----------------------------------- ## 17266## Main body of $CONFIG_STATUS script. ## 17267## ----------------------------------- ## 17268_ASEOF 17269test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17270 17271cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17272# Save the log message, to keep $0 and so on meaningful, and to 17273# report actual input values of CONFIG_FILES etc. instead of their 17274# values after options handling. 17275ac_log=" 17276This file was extended by UDUNITS $as_me 2.2.28, which was 17277generated by GNU Autoconf 2.69. Invocation command line was 17278 17279 CONFIG_FILES = $CONFIG_FILES 17280 CONFIG_HEADERS = $CONFIG_HEADERS 17281 CONFIG_LINKS = $CONFIG_LINKS 17282 CONFIG_COMMANDS = $CONFIG_COMMANDS 17283 $ $0 $@ 17284 17285on `(hostname || uname -n) 2>/dev/null | sed 1q` 17286" 17287 17288_ACEOF 17289 17290case $ac_config_files in *" 17291"*) set x $ac_config_files; shift; ac_config_files=$*;; 17292esac 17293 17294case $ac_config_headers in *" 17295"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17296esac 17297 17298 17299cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17300# Files that config.status was made for. 17301config_files="$ac_config_files" 17302config_headers="$ac_config_headers" 17303config_commands="$ac_config_commands" 17304 17305_ACEOF 17306 17307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17308ac_cs_usage="\ 17309\`$as_me' instantiates files and other configuration actions 17310from templates according to the current configuration. Unless the files 17311and actions are specified as TAGs, all are instantiated by default. 17312 17313Usage: $0 [OPTION]... [TAG]... 17314 17315 -h, --help print this help, then exit 17316 -V, --version print version number and configuration settings, then exit 17317 --config print configuration, then exit 17318 -q, --quiet, --silent 17319 do not print progress messages 17320 -d, --debug don't remove temporary files 17321 --recheck update $as_me by reconfiguring in the same conditions 17322 --file=FILE[:TEMPLATE] 17323 instantiate the configuration file FILE 17324 --header=FILE[:TEMPLATE] 17325 instantiate the configuration header FILE 17326 17327Configuration files: 17328$config_files 17329 17330Configuration headers: 17331$config_headers 17332 17333Configuration commands: 17334$config_commands 17335 17336Report bugs to <support-udunits@unidata.ucar.edu>." 17337 17338_ACEOF 17339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17340ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17341ac_cs_version="\\ 17342UDUNITS config.status 2.2.28 17343configured by $0, generated by GNU Autoconf 2.69, 17344 with options \\"\$ac_cs_config\\" 17345 17346Copyright (C) 2012 Free Software Foundation, Inc. 17347This config.status script is free software; the Free Software Foundation 17348gives unlimited permission to copy, distribute and modify it." 17349 17350ac_pwd='$ac_pwd' 17351srcdir='$srcdir' 17352INSTALL='$INSTALL' 17353MKDIR_P='$MKDIR_P' 17354AWK='$AWK' 17355test -n "\$AWK" || AWK=awk 17356_ACEOF 17357 17358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17359# The default lists apply if the user does not specify any file. 17360ac_need_defaults=: 17361while test $# != 0 17362do 17363 case $1 in 17364 --*=?*) 17365 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17366 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17367 ac_shift=: 17368 ;; 17369 --*=) 17370 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17371 ac_optarg= 17372 ac_shift=: 17373 ;; 17374 *) 17375 ac_option=$1 17376 ac_optarg=$2 17377 ac_shift=shift 17378 ;; 17379 esac 17380 17381 case $ac_option in 17382 # Handling of the options. 17383 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17384 ac_cs_recheck=: ;; 17385 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17386 $as_echo "$ac_cs_version"; exit ;; 17387 --config | --confi | --conf | --con | --co | --c ) 17388 $as_echo "$ac_cs_config"; exit ;; 17389 --debug | --debu | --deb | --de | --d | -d ) 17390 debug=: ;; 17391 --file | --fil | --fi | --f ) 17392 $ac_shift 17393 case $ac_optarg in 17394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17395 '') as_fn_error $? "missing file argument" ;; 17396 esac 17397 as_fn_append CONFIG_FILES " '$ac_optarg'" 17398 ac_need_defaults=false;; 17399 --header | --heade | --head | --hea ) 17400 $ac_shift 17401 case $ac_optarg in 17402 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17403 esac 17404 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17405 ac_need_defaults=false;; 17406 --he | --h) 17407 # Conflict between --help and --header 17408 as_fn_error $? "ambiguous option: \`$1' 17409Try \`$0 --help' for more information.";; 17410 --help | --hel | -h ) 17411 $as_echo "$ac_cs_usage"; exit ;; 17412 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17413 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17414 ac_cs_silent=: ;; 17415 17416 # This is an error. 17417 -*) as_fn_error $? "unrecognized option: \`$1' 17418Try \`$0 --help' for more information." ;; 17419 17420 *) as_fn_append ac_config_targets " $1" 17421 ac_need_defaults=false ;; 17422 17423 esac 17424 shift 17425done 17426 17427ac_configure_extra_args= 17428 17429if $ac_cs_silent; then 17430 exec 6>/dev/null 17431 ac_configure_extra_args="$ac_configure_extra_args --silent" 17432fi 17433 17434_ACEOF 17435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17436if \$ac_cs_recheck; then 17437 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17438 shift 17439 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17440 CONFIG_SHELL='$SHELL' 17441 export CONFIG_SHELL 17442 exec "\$@" 17443fi 17444 17445_ACEOF 17446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17447exec 5>>config.log 17448{ 17449 echo 17450 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17451## Running $as_me. ## 17452_ASBOX 17453 $as_echo "$ac_log" 17454} >&5 17455 17456_ACEOF 17457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17458# 17459# INIT-COMMANDS 17460# 17461AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17462 17463 17464# The HP-UX ksh and POSIX shell print the target directory to stdout 17465# if CDPATH is set. 17466(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17467 17468sed_quote_subst='$sed_quote_subst' 17469double_quote_subst='$double_quote_subst' 17470delay_variable_subst='$delay_variable_subst' 17471macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17472macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17473AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17474DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17475OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17476enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17477enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17478pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17479enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17480SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17481ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17482PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17483host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17484host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17485host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17486build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17487build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17488build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17489SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17490Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17491GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17492EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17493FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17494LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17495NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17496LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17497max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17498ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17499exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17500lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17501lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17502lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17503lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17504lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17505reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17506reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17507deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17508file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17509file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17510want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17511sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17512AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17513AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17514archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17515STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17516RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17517old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17518old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17519old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17520lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17521CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17522CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17523compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17524GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17525lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17526lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17527lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17528lt_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"`' 17529nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17530lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17531objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17532MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17533lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17534lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17535lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17536lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17537lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17538need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17539MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17540DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17541NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17542LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17543OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17544OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17545libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17546shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17547extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17548archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17549enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17550export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17551whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17552compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17553old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17554old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17555archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17556archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17557module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17558module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17559with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17560allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17561no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17562hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17563hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17564hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17565hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17566hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17567hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17568hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17569inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17570link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17571always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17572export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17573exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17574include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17575prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17576postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17577file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17578variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17579need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17580need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17581version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17582runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17583shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17584shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17585libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17586library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17587soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17588install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17589postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17590postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17591finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17592finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17593hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17594sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17595sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17596hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17597enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17598enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17599enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17600old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17601striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17602compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17603predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17604postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17605predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17606postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17607compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17608LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 17609reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 17610reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 17611old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 17612compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 17613GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 17614lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 17615lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 17616lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 17617lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 17618lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 17619archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 17620enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 17621export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 17622whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 17623compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 17624old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 17625old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 17626archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 17627archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 17628module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 17629module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 17630with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 17631allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 17632no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 17633hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 17634hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 17635hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 17636hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 17637hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 17638hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 17639hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 17640inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 17641link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 17642always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 17643export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 17644exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 17645include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 17646prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 17647postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' 17648file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 17649hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 17650compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 17651predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 17652postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 17653predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 17654postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 17655compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 17656 17657LTCC='$LTCC' 17658LTCFLAGS='$LTCFLAGS' 17659compiler='$compiler_DEFAULT' 17660 17661# A function that is used when there is no print builtin or printf. 17662func_fallback_echo () 17663{ 17664 eval 'cat <<_LTECHO_EOF 17665\$1 17666_LTECHO_EOF' 17667} 17668 17669# Quote evaled strings. 17670for var in AS \ 17671DLLTOOL \ 17672OBJDUMP \ 17673SHELL \ 17674ECHO \ 17675PATH_SEPARATOR \ 17676SED \ 17677GREP \ 17678EGREP \ 17679FGREP \ 17680LD \ 17681NM \ 17682LN_S \ 17683lt_SP2NL \ 17684lt_NL2SP \ 17685reload_flag \ 17686deplibs_check_method \ 17687file_magic_cmd \ 17688file_magic_glob \ 17689want_nocaseglob \ 17690sharedlib_from_linklib_cmd \ 17691AR \ 17692AR_FLAGS \ 17693archiver_list_spec \ 17694STRIP \ 17695RANLIB \ 17696CC \ 17697CFLAGS \ 17698compiler \ 17699lt_cv_sys_global_symbol_pipe \ 17700lt_cv_sys_global_symbol_to_cdecl \ 17701lt_cv_sys_global_symbol_to_c_name_address \ 17702lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17703nm_file_list_spec \ 17704lt_prog_compiler_no_builtin_flag \ 17705lt_prog_compiler_pic \ 17706lt_prog_compiler_wl \ 17707lt_prog_compiler_static \ 17708lt_cv_prog_compiler_c_o \ 17709need_locks \ 17710MANIFEST_TOOL \ 17711DSYMUTIL \ 17712NMEDIT \ 17713LIPO \ 17714OTOOL \ 17715OTOOL64 \ 17716shrext_cmds \ 17717export_dynamic_flag_spec \ 17718whole_archive_flag_spec \ 17719compiler_needs_object \ 17720with_gnu_ld \ 17721allow_undefined_flag \ 17722no_undefined_flag \ 17723hardcode_libdir_flag_spec \ 17724hardcode_libdir_separator \ 17725exclude_expsyms \ 17726include_expsyms \ 17727file_list_spec \ 17728variables_saved_for_relink \ 17729libname_spec \ 17730library_names_spec \ 17731soname_spec \ 17732install_override_mode \ 17733finish_eval \ 17734old_striplib \ 17735striplib \ 17736compiler_lib_search_dirs \ 17737predep_objects \ 17738postdep_objects \ 17739predeps \ 17740postdeps \ 17741compiler_lib_search_path \ 17742LD_FC \ 17743reload_flag_FC \ 17744compiler_FC \ 17745lt_prog_compiler_no_builtin_flag_FC \ 17746lt_prog_compiler_pic_FC \ 17747lt_prog_compiler_wl_FC \ 17748lt_prog_compiler_static_FC \ 17749lt_cv_prog_compiler_c_o_FC \ 17750export_dynamic_flag_spec_FC \ 17751whole_archive_flag_spec_FC \ 17752compiler_needs_object_FC \ 17753with_gnu_ld_FC \ 17754allow_undefined_flag_FC \ 17755no_undefined_flag_FC \ 17756hardcode_libdir_flag_spec_FC \ 17757hardcode_libdir_separator_FC \ 17758exclude_expsyms_FC \ 17759include_expsyms_FC \ 17760file_list_spec_FC \ 17761compiler_lib_search_dirs_FC \ 17762predep_objects_FC \ 17763postdep_objects_FC \ 17764predeps_FC \ 17765postdeps_FC \ 17766compiler_lib_search_path_FC; do 17767 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17768 *[\\\\\\\`\\"\\\$]*) 17769 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17770 ;; 17771 *) 17772 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17773 ;; 17774 esac 17775done 17776 17777# Double-quote double-evaled strings. 17778for var in reload_cmds \ 17779old_postinstall_cmds \ 17780old_postuninstall_cmds \ 17781old_archive_cmds \ 17782extract_expsyms_cmds \ 17783old_archive_from_new_cmds \ 17784old_archive_from_expsyms_cmds \ 17785archive_cmds \ 17786archive_expsym_cmds \ 17787module_cmds \ 17788module_expsym_cmds \ 17789export_symbols_cmds \ 17790prelink_cmds \ 17791postlink_cmds \ 17792postinstall_cmds \ 17793postuninstall_cmds \ 17794finish_cmds \ 17795sys_lib_search_path_spec \ 17796sys_lib_dlsearch_path_spec \ 17797reload_cmds_FC \ 17798old_archive_cmds_FC \ 17799old_archive_from_new_cmds_FC \ 17800old_archive_from_expsyms_cmds_FC \ 17801archive_cmds_FC \ 17802archive_expsym_cmds_FC \ 17803module_cmds_FC \ 17804module_expsym_cmds_FC \ 17805export_symbols_cmds_FC \ 17806prelink_cmds_FC \ 17807postlink_cmds_FC; do 17808 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17809 *[\\\\\\\`\\"\\\$]*) 17810 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17811 ;; 17812 *) 17813 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17814 ;; 17815 esac 17816done 17817 17818ac_aux_dir='$ac_aux_dir' 17819xsi_shell='$xsi_shell' 17820lt_shell_append='$lt_shell_append' 17821 17822# See if we are running on zsh, and set the options which allow our 17823# commands through without removal of \ escapes INIT. 17824if test -n "\${ZSH_VERSION+set}" ; then 17825 setopt NO_GLOB_SUBST 17826fi 17827 17828 17829 PACKAGE='$PACKAGE' 17830 VERSION='$VERSION' 17831 TIMESTAMP='$TIMESTAMP' 17832 RM='$RM' 17833 ofile='$ofile' 17834 17835 17836 17837 17838 17839 17840_ACEOF 17841 17842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17843 17844# Handling of arguments. 17845for ac_config_target in $ac_config_targets 17846do 17847 case $ac_config_target in 17848 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17852 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 17853 "lib/xmlFailures/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xmlFailures/Makefile" ;; 17854 "lib/xmlSuccesses/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xmlSuccesses/Makefile" ;; 17855 "prog/Makefile") CONFIG_FILES="$CONFIG_FILES prog/Makefile" ;; 17856 17857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17858 esac 17859done 17860 17861 17862# If the user did not use the arguments to specify the items to instantiate, 17863# then the envvar interface is used. Set only those that are not. 17864# We use the long form for the default assignment because of an extremely 17865# bizarre bug on SunOS 4.1.3. 17866if $ac_need_defaults; then 17867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17870fi 17871 17872# Have a temporary directory for convenience. Make it in the build tree 17873# simply because there is no reason against having it here, and in addition, 17874# creating and moving files from /tmp can sometimes cause problems. 17875# Hook for its removal unless debugging. 17876# Note that there is a small window in which the directory will not be cleaned: 17877# after its creation but before its name has been assigned to `$tmp'. 17878$debug || 17879{ 17880 tmp= ac_tmp= 17881 trap 'exit_status=$? 17882 : "${ac_tmp:=$tmp}" 17883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17884' 0 17885 trap 'as_fn_exit 1' 1 2 13 15 17886} 17887# Create a (secure) tmp directory for tmp files. 17888 17889{ 17890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17891 test -d "$tmp" 17892} || 17893{ 17894 tmp=./conf$$-$RANDOM 17895 (umask 077 && mkdir "$tmp") 17896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17897ac_tmp=$tmp 17898 17899# Set up the scripts for CONFIG_FILES section. 17900# No need to generate them if there are no CONFIG_FILES. 17901# This happens for instance with `./config.status config.h'. 17902if test -n "$CONFIG_FILES"; then 17903 17904 17905ac_cr=`echo X | tr X '\015'` 17906# On cygwin, bash can eat \r inside `` if the user requested igncr. 17907# But we know of no other shell where ac_cr would be empty at this 17908# point, so we can use a bashism as a fallback. 17909if test "x$ac_cr" = x; then 17910 eval ac_cr=\$\'\\r\' 17911fi 17912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17914 ac_cs_awk_cr='\\r' 17915else 17916 ac_cs_awk_cr=$ac_cr 17917fi 17918 17919echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17920_ACEOF 17921 17922 17923{ 17924 echo "cat >conf$$subs.awk <<_ACEOF" && 17925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17926 echo "_ACEOF" 17927} >conf$$subs.sh || 17928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17930ac_delim='%!_!# ' 17931for ac_last_try in false false false false false :; do 17932 . ./conf$$subs.sh || 17933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17934 17935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17936 if test $ac_delim_n = $ac_delim_num; then 17937 break 17938 elif $ac_last_try; then 17939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17940 else 17941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17942 fi 17943done 17944rm -f conf$$subs.sh 17945 17946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17948_ACEOF 17949sed -n ' 17950h 17951s/^/S["/; s/!.*/"]=/ 17952p 17953g 17954s/^[^!]*!// 17955:repl 17956t repl 17957s/'"$ac_delim"'$// 17958t delim 17959:nl 17960h 17961s/\(.\{148\}\)..*/\1/ 17962t more1 17963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17964p 17965n 17966b repl 17967:more1 17968s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17969p 17970g 17971s/.\{148\}// 17972t nl 17973:delim 17974h 17975s/\(.\{148\}\)..*/\1/ 17976t more2 17977s/["\\]/\\&/g; s/^/"/; s/$/"/ 17978p 17979b 17980:more2 17981s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17982p 17983g 17984s/.\{148\}// 17985t delim 17986' <conf$$subs.awk | sed ' 17987/^[^""]/{ 17988 N 17989 s/\n// 17990} 17991' >>$CONFIG_STATUS || ac_write_fail=1 17992rm -f conf$$subs.awk 17993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17994_ACAWK 17995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17996 for (key in S) S_is_set[key] = 1 17997 FS = "" 17998 17999} 18000{ 18001 line = $ 0 18002 nfields = split(line, field, "@") 18003 substed = 0 18004 len = length(field[1]) 18005 for (i = 2; i < nfields; i++) { 18006 key = field[i] 18007 keylen = length(key) 18008 if (S_is_set[key]) { 18009 value = S[key] 18010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18011 len += length(value) + length(field[++i]) 18012 substed = 1 18013 } else 18014 len += 1 + keylen 18015 } 18016 18017 print line 18018} 18019 18020_ACAWK 18021_ACEOF 18022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18025else 18026 cat 18027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18029_ACEOF 18030 18031# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18033# trailing colons and then remove the whole line if VPATH becomes empty 18034# (actually we leave an empty line to preserve line numbers). 18035if test "x$srcdir" = x.; then 18036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18037h 18038s/// 18039s/^/:/ 18040s/[ ]*$/:/ 18041s/:\$(srcdir):/:/g 18042s/:\${srcdir}:/:/g 18043s/:@srcdir@:/:/g 18044s/^:*// 18045s/:*$// 18046x 18047s/\(=[ ]*\).*/\1/ 18048G 18049s/\n// 18050s/^[^=]*=[ ]*$// 18051}' 18052fi 18053 18054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18055fi # test -n "$CONFIG_FILES" 18056 18057# Set up the scripts for CONFIG_HEADERS section. 18058# No need to generate them if there are no CONFIG_HEADERS. 18059# This happens for instance with `./config.status Makefile'. 18060if test -n "$CONFIG_HEADERS"; then 18061cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18062BEGIN { 18063_ACEOF 18064 18065# Transform confdefs.h into an awk script `defines.awk', embedded as 18066# here-document in config.status, that substitutes the proper values into 18067# config.h.in to produce config.h. 18068 18069# Create a delimiter string that does not exist in confdefs.h, to ease 18070# handling of long lines. 18071ac_delim='%!_!# ' 18072for ac_last_try in false false :; do 18073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18074 if test -z "$ac_tt"; then 18075 break 18076 elif $ac_last_try; then 18077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18078 else 18079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18080 fi 18081done 18082 18083# For the awk script, D is an array of macro values keyed by name, 18084# likewise P contains macro parameters if any. Preserve backslash 18085# newline sequences. 18086 18087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18088sed -n ' 18089s/.\{148\}/&'"$ac_delim"'/g 18090t rset 18091:rset 18092s/^[ ]*#[ ]*define[ ][ ]*/ / 18093t def 18094d 18095:def 18096s/\\$// 18097t bsnl 18098s/["\\]/\\&/g 18099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18100D["\1"]=" \3"/p 18101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18102d 18103:bsnl 18104s/["\\]/\\&/g 18105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18106D["\1"]=" \3\\\\\\n"\\/p 18107t cont 18108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18109t cont 18110d 18111:cont 18112n 18113s/.\{148\}/&'"$ac_delim"'/g 18114t clear 18115:clear 18116s/\\$// 18117t bsnlc 18118s/["\\]/\\&/g; s/^/"/; s/$/"/p 18119d 18120:bsnlc 18121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18122b cont 18123' <confdefs.h | sed ' 18124s/'"$ac_delim"'/"\\\ 18125"/g' >>$CONFIG_STATUS || ac_write_fail=1 18126 18127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18128 for (key in D) D_is_set[key] = 1 18129 FS = "" 18130} 18131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18132 line = \$ 0 18133 split(line, arg, " ") 18134 if (arg[1] == "#") { 18135 defundef = arg[2] 18136 mac1 = arg[3] 18137 } else { 18138 defundef = substr(arg[1], 2) 18139 mac1 = arg[2] 18140 } 18141 split(mac1, mac2, "(") #) 18142 macro = mac2[1] 18143 prefix = substr(line, 1, index(line, defundef) - 1) 18144 if (D_is_set[macro]) { 18145 # Preserve the white space surrounding the "#". 18146 print prefix "define", macro P[macro] D[macro] 18147 next 18148 } else { 18149 # Replace #undef with comments. This is necessary, for example, 18150 # in the case of _POSIX_SOURCE, which is predefined and required 18151 # on some systems where configure will not decide to define it. 18152 if (defundef == "undef") { 18153 print "/*", prefix defundef, macro, "*/" 18154 next 18155 } 18156 } 18157} 18158{ print } 18159_ACAWK 18160_ACEOF 18161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18163fi # test -n "$CONFIG_HEADERS" 18164 18165 18166eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18167shift 18168for ac_tag 18169do 18170 case $ac_tag in 18171 :[FHLC]) ac_mode=$ac_tag; continue;; 18172 esac 18173 case $ac_mode$ac_tag in 18174 :[FHL]*:*);; 18175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18176 :[FH]-) ac_tag=-:-;; 18177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18178 esac 18179 ac_save_IFS=$IFS 18180 IFS=: 18181 set x $ac_tag 18182 IFS=$ac_save_IFS 18183 shift 18184 ac_file=$1 18185 shift 18186 18187 case $ac_mode in 18188 :L) ac_source=$1;; 18189 :[FH]) 18190 ac_file_inputs= 18191 for ac_f 18192 do 18193 case $ac_f in 18194 -) ac_f="$ac_tmp/stdin";; 18195 *) # Look for the file first in the build tree, then in the source tree 18196 # (if the path is not absolute). The absolute path cannot be DOS-style, 18197 # because $ac_f cannot contain `:'. 18198 test -f "$ac_f" || 18199 case $ac_f in 18200 [\\/$]*) false;; 18201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18202 esac || 18203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18204 esac 18205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18206 as_fn_append ac_file_inputs " '$ac_f'" 18207 done 18208 18209 # Let's still pretend it is `configure' which instantiates (i.e., don't 18210 # use $as_me), people would be surprised to read: 18211 # /* config.h. Generated by config.status. */ 18212 configure_input='Generated from '` 18213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18214 `' by configure.' 18215 if test x"$ac_file" != x-; then 18216 configure_input="$ac_file. $configure_input" 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18218$as_echo "$as_me: creating $ac_file" >&6;} 18219 fi 18220 # Neutralize special characters interpreted by sed in replacement strings. 18221 case $configure_input in #( 18222 *\&* | *\|* | *\\* ) 18223 ac_sed_conf_input=`$as_echo "$configure_input" | 18224 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18225 *) ac_sed_conf_input=$configure_input;; 18226 esac 18227 18228 case $ac_tag in 18229 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18231 esac 18232 ;; 18233 esac 18234 18235 ac_dir=`$as_dirname -- "$ac_file" || 18236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18237 X"$ac_file" : 'X\(//\)[^/]' \| \ 18238 X"$ac_file" : 'X\(//\)$' \| \ 18239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18240$as_echo X"$ac_file" | 18241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18242 s//\1/ 18243 q 18244 } 18245 /^X\(\/\/\)[^/].*/{ 18246 s//\1/ 18247 q 18248 } 18249 /^X\(\/\/\)$/{ 18250 s//\1/ 18251 q 18252 } 18253 /^X\(\/\).*/{ 18254 s//\1/ 18255 q 18256 } 18257 s/.*/./; q'` 18258 as_dir="$ac_dir"; as_fn_mkdir_p 18259 ac_builddir=. 18260 18261case "$ac_dir" in 18262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18263*) 18264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18265 # A ".." for each directory in $ac_dir_suffix. 18266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18267 case $ac_top_builddir_sub in 18268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18270 esac ;; 18271esac 18272ac_abs_top_builddir=$ac_pwd 18273ac_abs_builddir=$ac_pwd$ac_dir_suffix 18274# for backward compatibility: 18275ac_top_builddir=$ac_top_build_prefix 18276 18277case $srcdir in 18278 .) # We are building in place. 18279 ac_srcdir=. 18280 ac_top_srcdir=$ac_top_builddir_sub 18281 ac_abs_top_srcdir=$ac_pwd ;; 18282 [\\/]* | ?:[\\/]* ) # Absolute name. 18283 ac_srcdir=$srcdir$ac_dir_suffix; 18284 ac_top_srcdir=$srcdir 18285 ac_abs_top_srcdir=$srcdir ;; 18286 *) # Relative name. 18287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18288 ac_top_srcdir=$ac_top_build_prefix$srcdir 18289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18290esac 18291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18292 18293 18294 case $ac_mode in 18295 :F) 18296 # 18297 # CONFIG_FILE 18298 # 18299 18300 case $INSTALL in 18301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18303 esac 18304 ac_MKDIR_P=$MKDIR_P 18305 case $MKDIR_P in 18306 [\\/$]* | ?:[\\/]* ) ;; 18307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18308 esac 18309_ACEOF 18310 18311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18312# If the template does not know about datarootdir, expand it. 18313# FIXME: This hack should be removed a few years after 2.60. 18314ac_datarootdir_hack=; ac_datarootdir_seen= 18315ac_sed_dataroot=' 18316/datarootdir/ { 18317 p 18318 q 18319} 18320/@datadir@/p 18321/@docdir@/p 18322/@infodir@/p 18323/@localedir@/p 18324/@mandir@/p' 18325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18326*datarootdir*) ac_datarootdir_seen=yes;; 18327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18330_ACEOF 18331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18332 ac_datarootdir_hack=' 18333 s&@datadir@&$datadir&g 18334 s&@docdir@&$docdir&g 18335 s&@infodir@&$infodir&g 18336 s&@localedir@&$localedir&g 18337 s&@mandir@&$mandir&g 18338 s&\\\${datarootdir}&$datarootdir&g' ;; 18339esac 18340_ACEOF 18341 18342# Neutralize VPATH when `$srcdir' = `.'. 18343# Shell code in configure.ac might set extrasub. 18344# FIXME: do we really want to maintain this feature? 18345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18346ac_sed_extra="$ac_vpsub 18347$extrasub 18348_ACEOF 18349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18350:t 18351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18352s|@configure_input@|$ac_sed_conf_input|;t t 18353s&@top_builddir@&$ac_top_builddir_sub&;t t 18354s&@top_build_prefix@&$ac_top_build_prefix&;t t 18355s&@srcdir@&$ac_srcdir&;t t 18356s&@abs_srcdir@&$ac_abs_srcdir&;t t 18357s&@top_srcdir@&$ac_top_srcdir&;t t 18358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18359s&@builddir@&$ac_builddir&;t t 18360s&@abs_builddir@&$ac_abs_builddir&;t t 18361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18362s&@INSTALL@&$ac_INSTALL&;t t 18363s&@MKDIR_P@&$ac_MKDIR_P&;t t 18364$ac_datarootdir_hack 18365" 18366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18367 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18368 18369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18372 "$ac_tmp/out"`; test -z "$ac_out"; } && 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18374which seems to be undefined. Please make sure it is defined" >&5 18375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18376which seems to be undefined. Please make sure it is defined" >&2;} 18377 18378 rm -f "$ac_tmp/stdin" 18379 case $ac_file in 18380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18382 esac \ 18383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18384 ;; 18385 :H) 18386 # 18387 # CONFIG_HEADER 18388 # 18389 if test x"$ac_file" != x-; then 18390 { 18391 $as_echo "/* $configure_input */" \ 18392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18393 } >"$ac_tmp/config.h" \ 18394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18397$as_echo "$as_me: $ac_file is unchanged" >&6;} 18398 else 18399 rm -f "$ac_file" 18400 mv "$ac_tmp/config.h" "$ac_file" \ 18401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18402 fi 18403 else 18404 $as_echo "/* $configure_input */" \ 18405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18406 || as_fn_error $? "could not create -" "$LINENO" 5 18407 fi 18408# Compute "$ac_file"'s index in $config_headers. 18409_am_arg="$ac_file" 18410_am_stamp_count=1 18411for _am_header in $config_headers :; do 18412 case $_am_header in 18413 $_am_arg | $_am_arg:* ) 18414 break ;; 18415 * ) 18416 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18417 esac 18418done 18419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18421 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18422 X"$_am_arg" : 'X\(//\)$' \| \ 18423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18424$as_echo X"$_am_arg" | 18425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18426 s//\1/ 18427 q 18428 } 18429 /^X\(\/\/\)[^/].*/{ 18430 s//\1/ 18431 q 18432 } 18433 /^X\(\/\/\)$/{ 18434 s//\1/ 18435 q 18436 } 18437 /^X\(\/\).*/{ 18438 s//\1/ 18439 q 18440 } 18441 s/.*/./; q'`/stamp-h$_am_stamp_count 18442 ;; 18443 18444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18445$as_echo "$as_me: executing $ac_file commands" >&6;} 18446 ;; 18447 esac 18448 18449 18450 case $ac_file$ac_mode in 18451 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18452 # Older Autoconf quotes --file arguments for eval, but not when files 18453 # are listed without --file. Let's play safe and only enable the eval 18454 # if we detect the quoting. 18455 case $CONFIG_FILES in 18456 *\'*) eval set x "$CONFIG_FILES" ;; 18457 *) set x $CONFIG_FILES ;; 18458 esac 18459 shift 18460 for mf 18461 do 18462 # Strip MF so we end up with the name of the file. 18463 mf=`echo "$mf" | sed -e 's/:.*$//'` 18464 # Check whether this is an Automake generated Makefile or not. 18465 # We used to match only the files named 'Makefile.in', but 18466 # some people rename them; so instead we look at the file content. 18467 # Grep'ing the first line is not enough: some people post-process 18468 # each Makefile.in and add a new line on top of each file to say so. 18469 # Grep'ing the whole file is not good either: AIX grep has a line 18470 # limit of 2048, but all sed's we know have understand at least 4000. 18471 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18472 dirpart=`$as_dirname -- "$mf" || 18473$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18474 X"$mf" : 'X\(//\)[^/]' \| \ 18475 X"$mf" : 'X\(//\)$' \| \ 18476 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18477$as_echo X"$mf" | 18478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18479 s//\1/ 18480 q 18481 } 18482 /^X\(\/\/\)[^/].*/{ 18483 s//\1/ 18484 q 18485 } 18486 /^X\(\/\/\)$/{ 18487 s//\1/ 18488 q 18489 } 18490 /^X\(\/\).*/{ 18491 s//\1/ 18492 q 18493 } 18494 s/.*/./; q'` 18495 else 18496 continue 18497 fi 18498 # Extract the definition of DEPDIR, am__include, and am__quote 18499 # from the Makefile without running 'make'. 18500 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18501 test -z "$DEPDIR" && continue 18502 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18503 test -z "$am__include" && continue 18504 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18505 # Find all dependency output files, they are included files with 18506 # $(DEPDIR) in their names. We invoke sed twice because it is the 18507 # simplest approach to changing $(DEPDIR) to its actual value in the 18508 # expansion. 18509 for file in `sed -n " 18510 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18511 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18512 # Make sure the directory exists. 18513 test -f "$dirpart/$file" && continue 18514 fdir=`$as_dirname -- "$file" || 18515$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18516 X"$file" : 'X\(//\)[^/]' \| \ 18517 X"$file" : 'X\(//\)$' \| \ 18518 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18519$as_echo X"$file" | 18520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18521 s//\1/ 18522 q 18523 } 18524 /^X\(\/\/\)[^/].*/{ 18525 s//\1/ 18526 q 18527 } 18528 /^X\(\/\/\)$/{ 18529 s//\1/ 18530 q 18531 } 18532 /^X\(\/\).*/{ 18533 s//\1/ 18534 q 18535 } 18536 s/.*/./; q'` 18537 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18538 # echo "creating $dirpart/$file" 18539 echo '# dummy' > "$dirpart/$file" 18540 done 18541 done 18542} 18543 ;; 18544 "libtool":C) 18545 18546 # See if we are running on zsh, and set the options which allow our 18547 # commands through without removal of \ escapes. 18548 if test -n "${ZSH_VERSION+set}" ; then 18549 setopt NO_GLOB_SUBST 18550 fi 18551 18552 cfgfile="${ofile}T" 18553 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18554 $RM "$cfgfile" 18555 18556 cat <<_LT_EOF >> "$cfgfile" 18557#! $SHELL 18558 18559# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18560# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18561# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18562# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18563# 18564# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18565# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 18566# Foundation, Inc. 18567# Written by Gordon Matzigkeit, 1996 18568# 18569# This file is part of GNU Libtool. 18570# 18571# GNU Libtool is free software; you can redistribute it and/or 18572# modify it under the terms of the GNU General Public License as 18573# published by the Free Software Foundation; either version 2 of 18574# the License, or (at your option) any later version. 18575# 18576# As a special exception to the GNU General Public License, 18577# if you distribute this file as part of a program or library that 18578# is built using GNU Libtool, you may include this file under the 18579# same distribution terms that you use for the rest of that program. 18580# 18581# GNU Libtool is distributed in the hope that it will be useful, 18582# but WITHOUT ANY WARRANTY; without even the implied warranty of 18583# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18584# GNU General Public License for more details. 18585# 18586# You should have received a copy of the GNU General Public License 18587# along with GNU Libtool; see the file COPYING. If not, a copy 18588# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18589# obtained by writing to the Free Software Foundation, Inc., 18590# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18591 18592 18593# The names of the tagged configurations supported by this script. 18594available_tags="FC " 18595 18596# ### BEGIN LIBTOOL CONFIG 18597 18598# Which release of libtool.m4 was used? 18599macro_version=$macro_version 18600macro_revision=$macro_revision 18601 18602# Assembler program. 18603AS=$lt_AS 18604 18605# DLL creation program. 18606DLLTOOL=$lt_DLLTOOL 18607 18608# Object dumper program. 18609OBJDUMP=$lt_OBJDUMP 18610 18611# Whether or not to build shared libraries. 18612build_libtool_libs=$enable_shared 18613 18614# Whether or not to build static libraries. 18615build_old_libs=$enable_static 18616 18617# What type of objects to build. 18618pic_mode=$pic_mode 18619 18620# Whether or not to optimize for fast installation. 18621fast_install=$enable_fast_install 18622 18623# Shell to use when invoking shell scripts. 18624SHELL=$lt_SHELL 18625 18626# An echo program that protects backslashes. 18627ECHO=$lt_ECHO 18628 18629# The PATH separator for the build system. 18630PATH_SEPARATOR=$lt_PATH_SEPARATOR 18631 18632# The host system. 18633host_alias=$host_alias 18634host=$host 18635host_os=$host_os 18636 18637# The build system. 18638build_alias=$build_alias 18639build=$build 18640build_os=$build_os 18641 18642# A sed program that does not truncate output. 18643SED=$lt_SED 18644 18645# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18646Xsed="\$SED -e 1s/^X//" 18647 18648# A grep program that handles long lines. 18649GREP=$lt_GREP 18650 18651# An ERE matcher. 18652EGREP=$lt_EGREP 18653 18654# A literal string matcher. 18655FGREP=$lt_FGREP 18656 18657# A BSD- or MS-compatible name lister. 18658NM=$lt_NM 18659 18660# Whether we need soft or hard links. 18661LN_S=$lt_LN_S 18662 18663# What is the maximum length of a command? 18664max_cmd_len=$max_cmd_len 18665 18666# Object file suffix (normally "o"). 18667objext=$ac_objext 18668 18669# Executable file suffix (normally ""). 18670exeext=$exeext 18671 18672# whether the shell understands "unset". 18673lt_unset=$lt_unset 18674 18675# turn spaces into newlines. 18676SP2NL=$lt_lt_SP2NL 18677 18678# turn newlines into spaces. 18679NL2SP=$lt_lt_NL2SP 18680 18681# convert \$build file names to \$host format. 18682to_host_file_cmd=$lt_cv_to_host_file_cmd 18683 18684# convert \$build files to toolchain format. 18685to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18686 18687# Method to check whether dependent libraries are shared objects. 18688deplibs_check_method=$lt_deplibs_check_method 18689 18690# Command to use when deplibs_check_method = "file_magic". 18691file_magic_cmd=$lt_file_magic_cmd 18692 18693# How to find potential files when deplibs_check_method = "file_magic". 18694file_magic_glob=$lt_file_magic_glob 18695 18696# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18697want_nocaseglob=$lt_want_nocaseglob 18698 18699# Command to associate shared and link libraries. 18700sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18701 18702# The archiver. 18703AR=$lt_AR 18704 18705# Flags to create an archive. 18706AR_FLAGS=$lt_AR_FLAGS 18707 18708# How to feed a file listing to the archiver. 18709archiver_list_spec=$lt_archiver_list_spec 18710 18711# A symbol stripping program. 18712STRIP=$lt_STRIP 18713 18714# Commands used to install an old-style archive. 18715RANLIB=$lt_RANLIB 18716old_postinstall_cmds=$lt_old_postinstall_cmds 18717old_postuninstall_cmds=$lt_old_postuninstall_cmds 18718 18719# Whether to use a lock for old archive extraction. 18720lock_old_archive_extraction=$lock_old_archive_extraction 18721 18722# A C compiler. 18723LTCC=$lt_CC 18724 18725# LTCC compiler flags. 18726LTCFLAGS=$lt_CFLAGS 18727 18728# Take the output of nm and produce a listing of raw symbols and C names. 18729global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18730 18731# Transform the output of nm in a proper C declaration. 18732global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18733 18734# Transform the output of nm in a C name address pair. 18735global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18736 18737# Transform the output of nm in a C name address pair when lib prefix is needed. 18738global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18739 18740# Specify filename containing input files for \$NM. 18741nm_file_list_spec=$lt_nm_file_list_spec 18742 18743# The root where to search for dependent libraries,and in which our libraries should be installed. 18744lt_sysroot=$lt_sysroot 18745 18746# The name of the directory that contains temporary libtool files. 18747objdir=$objdir 18748 18749# Used to examine libraries when file_magic_cmd begins with "file". 18750MAGIC_CMD=$MAGIC_CMD 18751 18752# Must we lock files when doing compilation? 18753need_locks=$lt_need_locks 18754 18755# Manifest tool. 18756MANIFEST_TOOL=$lt_MANIFEST_TOOL 18757 18758# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18759DSYMUTIL=$lt_DSYMUTIL 18760 18761# Tool to change global to local symbols on Mac OS X. 18762NMEDIT=$lt_NMEDIT 18763 18764# Tool to manipulate fat objects and archives on Mac OS X. 18765LIPO=$lt_LIPO 18766 18767# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18768OTOOL=$lt_OTOOL 18769 18770# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18771OTOOL64=$lt_OTOOL64 18772 18773# Old archive suffix (normally "a"). 18774libext=$libext 18775 18776# Shared library suffix (normally ".so"). 18777shrext_cmds=$lt_shrext_cmds 18778 18779# The commands to extract the exported symbol list from a shared archive. 18780extract_expsyms_cmds=$lt_extract_expsyms_cmds 18781 18782# Variables whose values should be saved in libtool wrapper scripts and 18783# restored at link time. 18784variables_saved_for_relink=$lt_variables_saved_for_relink 18785 18786# Do we need the "lib" prefix for modules? 18787need_lib_prefix=$need_lib_prefix 18788 18789# Do we need a version for libraries? 18790need_version=$need_version 18791 18792# Library versioning type. 18793version_type=$version_type 18794 18795# Shared library runtime path variable. 18796runpath_var=$runpath_var 18797 18798# Shared library path variable. 18799shlibpath_var=$shlibpath_var 18800 18801# Is shlibpath searched before the hard-coded library search path? 18802shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18803 18804# Format of library name prefix. 18805libname_spec=$lt_libname_spec 18806 18807# List of archive names. First name is the real one, the rest are links. 18808# The last name is the one that the linker finds with -lNAME 18809library_names_spec=$lt_library_names_spec 18810 18811# The coded name of the library, if different from the real name. 18812soname_spec=$lt_soname_spec 18813 18814# Permission mode override for installation of shared libraries. 18815install_override_mode=$lt_install_override_mode 18816 18817# Command to use after installation of a shared archive. 18818postinstall_cmds=$lt_postinstall_cmds 18819 18820# Command to use after uninstallation of a shared archive. 18821postuninstall_cmds=$lt_postuninstall_cmds 18822 18823# Commands used to finish a libtool library installation in a directory. 18824finish_cmds=$lt_finish_cmds 18825 18826# As "finish_cmds", except a single script fragment to be evaled but 18827# not shown. 18828finish_eval=$lt_finish_eval 18829 18830# Whether we should hardcode library paths into libraries. 18831hardcode_into_libs=$hardcode_into_libs 18832 18833# Compile-time system search path for libraries. 18834sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18835 18836# Run-time system search path for libraries. 18837sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18838 18839# Whether dlopen is supported. 18840dlopen_support=$enable_dlopen 18841 18842# Whether dlopen of programs is supported. 18843dlopen_self=$enable_dlopen_self 18844 18845# Whether dlopen of statically linked programs is supported. 18846dlopen_self_static=$enable_dlopen_self_static 18847 18848# Commands to strip libraries. 18849old_striplib=$lt_old_striplib 18850striplib=$lt_striplib 18851 18852 18853# The linker used to build libraries. 18854LD=$lt_LD 18855 18856# How to create reloadable object files. 18857reload_flag=$lt_reload_flag 18858reload_cmds=$lt_reload_cmds 18859 18860# Commands used to build an old-style archive. 18861old_archive_cmds=$lt_old_archive_cmds 18862 18863# A language specific compiler. 18864CC=$lt_compiler 18865 18866# Is the compiler the GNU compiler? 18867with_gcc=$GCC 18868 18869# Compiler flag to turn off builtin functions. 18870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18871 18872# Additional compiler flags for building library objects. 18873pic_flag=$lt_lt_prog_compiler_pic 18874 18875# How to pass a linker flag through the compiler. 18876wl=$lt_lt_prog_compiler_wl 18877 18878# Compiler flag to prevent dynamic linking. 18879link_static_flag=$lt_lt_prog_compiler_static 18880 18881# Does compiler simultaneously support -c and -o options? 18882compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18883 18884# Whether or not to add -lc for building shared libraries. 18885build_libtool_need_lc=$archive_cmds_need_lc 18886 18887# Whether or not to disallow shared libs when runtime libs are static. 18888allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18889 18890# Compiler flag to allow reflexive dlopens. 18891export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18892 18893# Compiler flag to generate shared objects directly from archives. 18894whole_archive_flag_spec=$lt_whole_archive_flag_spec 18895 18896# Whether the compiler copes with passing no objects directly. 18897compiler_needs_object=$lt_compiler_needs_object 18898 18899# Create an old-style archive from a shared archive. 18900old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18901 18902# Create a temporary old-style archive to link instead of a shared archive. 18903old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18904 18905# Commands used to build a shared archive. 18906archive_cmds=$lt_archive_cmds 18907archive_expsym_cmds=$lt_archive_expsym_cmds 18908 18909# Commands used to build a loadable module if different from building 18910# a shared archive. 18911module_cmds=$lt_module_cmds 18912module_expsym_cmds=$lt_module_expsym_cmds 18913 18914# Whether we are building with GNU ld or not. 18915with_gnu_ld=$lt_with_gnu_ld 18916 18917# Flag that allows shared libraries with undefined symbols to be built. 18918allow_undefined_flag=$lt_allow_undefined_flag 18919 18920# Flag that enforces no undefined symbols. 18921no_undefined_flag=$lt_no_undefined_flag 18922 18923# Flag to hardcode \$libdir into a binary during linking. 18924# This must work even if \$libdir does not exist 18925hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18926 18927# Whether we need a single "-rpath" flag with a separated argument. 18928hardcode_libdir_separator=$lt_hardcode_libdir_separator 18929 18930# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18931# DIR into the resulting binary. 18932hardcode_direct=$hardcode_direct 18933 18934# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18935# DIR into the resulting binary and the resulting library dependency is 18936# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18937# library is relocated. 18938hardcode_direct_absolute=$hardcode_direct_absolute 18939 18940# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18941# into the resulting binary. 18942hardcode_minus_L=$hardcode_minus_L 18943 18944# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18945# into the resulting binary. 18946hardcode_shlibpath_var=$hardcode_shlibpath_var 18947 18948# Set to "yes" if building a shared library automatically hardcodes DIR 18949# into the library and all subsequent libraries and executables linked 18950# against it. 18951hardcode_automatic=$hardcode_automatic 18952 18953# Set to yes if linker adds runtime paths of dependent libraries 18954# to runtime path list. 18955inherit_rpath=$inherit_rpath 18956 18957# Whether libtool must link a program against all its dependency libraries. 18958link_all_deplibs=$link_all_deplibs 18959 18960# Set to "yes" if exported symbols are required. 18961always_export_symbols=$always_export_symbols 18962 18963# The commands to list exported symbols. 18964export_symbols_cmds=$lt_export_symbols_cmds 18965 18966# Symbols that should not be listed in the preloaded symbols. 18967exclude_expsyms=$lt_exclude_expsyms 18968 18969# Symbols that must always be exported. 18970include_expsyms=$lt_include_expsyms 18971 18972# Commands necessary for linking programs (against libraries) with templates. 18973prelink_cmds=$lt_prelink_cmds 18974 18975# Commands necessary for finishing linking programs. 18976postlink_cmds=$lt_postlink_cmds 18977 18978# Specify filename containing input files. 18979file_list_spec=$lt_file_list_spec 18980 18981# How to hardcode a shared library path into an executable. 18982hardcode_action=$hardcode_action 18983 18984# The directories searched by this compiler when creating a shared library. 18985compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18986 18987# Dependencies to place before and after the objects being linked to 18988# create a shared library. 18989predep_objects=$lt_predep_objects 18990postdep_objects=$lt_postdep_objects 18991predeps=$lt_predeps 18992postdeps=$lt_postdeps 18993 18994# The library search path used internally by the compiler when linking 18995# a shared library. 18996compiler_lib_search_path=$lt_compiler_lib_search_path 18997 18998# ### END LIBTOOL CONFIG 18999 19000_LT_EOF 19001 19002 case $host_os in 19003 aix3*) 19004 cat <<\_LT_EOF >> "$cfgfile" 19005# AIX sometimes has problems with the GCC collect2 program. For some 19006# reason, if we set the COLLECT_NAMES environment variable, the problems 19007# vanish in a puff of smoke. 19008if test "X${COLLECT_NAMES+set}" != Xset; then 19009 COLLECT_NAMES= 19010 export COLLECT_NAMES 19011fi 19012_LT_EOF 19013 ;; 19014 esac 19015 19016 19017ltmain="$ac_aux_dir/ltmain.sh" 19018 19019 19020 # We use sed instead of cat because bash on DJGPP gets confused if 19021 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19022 # text mode, it properly converts lines to CR/LF. This bash problem 19023 # is reportedly fixed, but why not run on old versions too? 19024 sed '$q' "$ltmain" >> "$cfgfile" \ 19025 || (rm -f "$cfgfile"; exit 1) 19026 19027 if test x"$xsi_shell" = xyes; then 19028 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19029func_dirname ()\ 19030{\ 19031\ case ${1} in\ 19032\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19033\ * ) func_dirname_result="${3}" ;;\ 19034\ esac\ 19035} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19036 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19037 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19038test 0 -eq $? || _lt_function_replace_fail=: 19039 19040 19041 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19042func_basename ()\ 19043{\ 19044\ func_basename_result="${1##*/}"\ 19045} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19046 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19047 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19048test 0 -eq $? || _lt_function_replace_fail=: 19049 19050 19051 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19052func_dirname_and_basename ()\ 19053{\ 19054\ case ${1} in\ 19055\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19056\ * ) func_dirname_result="${3}" ;;\ 19057\ esac\ 19058\ func_basename_result="${1##*/}"\ 19059} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19060 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19062test 0 -eq $? || _lt_function_replace_fail=: 19063 19064 19065 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19066func_stripname ()\ 19067{\ 19068\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19069\ # positional parameters, so assign one to ordinary parameter first.\ 19070\ func_stripname_result=${3}\ 19071\ func_stripname_result=${func_stripname_result#"${1}"}\ 19072\ func_stripname_result=${func_stripname_result%"${2}"}\ 19073} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19074 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19075 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19076test 0 -eq $? || _lt_function_replace_fail=: 19077 19078 19079 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19080func_split_long_opt ()\ 19081{\ 19082\ func_split_long_opt_name=${1%%=*}\ 19083\ func_split_long_opt_arg=${1#*=}\ 19084} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19085 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19087test 0 -eq $? || _lt_function_replace_fail=: 19088 19089 19090 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19091func_split_short_opt ()\ 19092{\ 19093\ func_split_short_opt_arg=${1#??}\ 19094\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19095} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19096 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19098test 0 -eq $? || _lt_function_replace_fail=: 19099 19100 19101 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19102func_lo2o ()\ 19103{\ 19104\ case ${1} in\ 19105\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19106\ *) func_lo2o_result=${1} ;;\ 19107\ esac\ 19108} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19109 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19110 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19111test 0 -eq $? || _lt_function_replace_fail=: 19112 19113 19114 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19115func_xform ()\ 19116{\ 19117 func_xform_result=${1%.*}.lo\ 19118} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19119 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19121test 0 -eq $? || _lt_function_replace_fail=: 19122 19123 19124 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19125func_arith ()\ 19126{\ 19127 func_arith_result=$(( $* ))\ 19128} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19129 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19130 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19131test 0 -eq $? || _lt_function_replace_fail=: 19132 19133 19134 sed -e '/^func_len ()$/,/^} # func_len /c\ 19135func_len ()\ 19136{\ 19137 func_len_result=${#1}\ 19138} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19139 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19141test 0 -eq $? || _lt_function_replace_fail=: 19142 19143fi 19144 19145if test x"$lt_shell_append" = xyes; then 19146 sed -e '/^func_append ()$/,/^} # func_append /c\ 19147func_append ()\ 19148{\ 19149 eval "${1}+=\\${2}"\ 19150} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19151 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19152 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19153test 0 -eq $? || _lt_function_replace_fail=: 19154 19155 19156 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19157func_append_quoted ()\ 19158{\ 19159\ func_quote_for_eval "${2}"\ 19160\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19161} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19162 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19163 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19164test 0 -eq $? || _lt_function_replace_fail=: 19165 19166 19167 # Save a `func_append' function call where possible by direct use of '+=' 19168 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19169 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19170 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19171 test 0 -eq $? || _lt_function_replace_fail=: 19172else 19173 # Save a `func_append' function call even when '+=' is not available 19174 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19175 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19176 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19177 test 0 -eq $? || _lt_function_replace_fail=: 19178fi 19179 19180if test x"$_lt_function_replace_fail" = x":"; then 19181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19182$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19183fi 19184 19185 19186 mv -f "$cfgfile" "$ofile" || 19187 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19188 chmod +x "$ofile" 19189 19190 19191 cat <<_LT_EOF >> "$ofile" 19192 19193# ### BEGIN LIBTOOL TAG CONFIG: FC 19194 19195# The linker used to build libraries. 19196LD=$lt_LD_FC 19197 19198# How to create reloadable object files. 19199reload_flag=$lt_reload_flag_FC 19200reload_cmds=$lt_reload_cmds_FC 19201 19202# Commands used to build an old-style archive. 19203old_archive_cmds=$lt_old_archive_cmds_FC 19204 19205# A language specific compiler. 19206CC=$lt_compiler_FC 19207 19208# Is the compiler the GNU compiler? 19209with_gcc=$GCC_FC 19210 19211# Compiler flag to turn off builtin functions. 19212no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 19213 19214# Additional compiler flags for building library objects. 19215pic_flag=$lt_lt_prog_compiler_pic_FC 19216 19217# How to pass a linker flag through the compiler. 19218wl=$lt_lt_prog_compiler_wl_FC 19219 19220# Compiler flag to prevent dynamic linking. 19221link_static_flag=$lt_lt_prog_compiler_static_FC 19222 19223# Does compiler simultaneously support -c and -o options? 19224compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 19225 19226# Whether or not to add -lc for building shared libraries. 19227build_libtool_need_lc=$archive_cmds_need_lc_FC 19228 19229# Whether or not to disallow shared libs when runtime libs are static. 19230allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 19231 19232# Compiler flag to allow reflexive dlopens. 19233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 19234 19235# Compiler flag to generate shared objects directly from archives. 19236whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 19237 19238# Whether the compiler copes with passing no objects directly. 19239compiler_needs_object=$lt_compiler_needs_object_FC 19240 19241# Create an old-style archive from a shared archive. 19242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 19243 19244# Create a temporary old-style archive to link instead of a shared archive. 19245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 19246 19247# Commands used to build a shared archive. 19248archive_cmds=$lt_archive_cmds_FC 19249archive_expsym_cmds=$lt_archive_expsym_cmds_FC 19250 19251# Commands used to build a loadable module if different from building 19252# a shared archive. 19253module_cmds=$lt_module_cmds_FC 19254module_expsym_cmds=$lt_module_expsym_cmds_FC 19255 19256# Whether we are building with GNU ld or not. 19257with_gnu_ld=$lt_with_gnu_ld_FC 19258 19259# Flag that allows shared libraries with undefined symbols to be built. 19260allow_undefined_flag=$lt_allow_undefined_flag_FC 19261 19262# Flag that enforces no undefined symbols. 19263no_undefined_flag=$lt_no_undefined_flag_FC 19264 19265# Flag to hardcode \$libdir into a binary during linking. 19266# This must work even if \$libdir does not exist 19267hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 19268 19269# Whether we need a single "-rpath" flag with a separated argument. 19270hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 19271 19272# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19273# DIR into the resulting binary. 19274hardcode_direct=$hardcode_direct_FC 19275 19276# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19277# DIR into the resulting binary and the resulting library dependency is 19278# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19279# library is relocated. 19280hardcode_direct_absolute=$hardcode_direct_absolute_FC 19281 19282# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19283# into the resulting binary. 19284hardcode_minus_L=$hardcode_minus_L_FC 19285 19286# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19287# into the resulting binary. 19288hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 19289 19290# Set to "yes" if building a shared library automatically hardcodes DIR 19291# into the library and all subsequent libraries and executables linked 19292# against it. 19293hardcode_automatic=$hardcode_automatic_FC 19294 19295# Set to yes if linker adds runtime paths of dependent libraries 19296# to runtime path list. 19297inherit_rpath=$inherit_rpath_FC 19298 19299# Whether libtool must link a program against all its dependency libraries. 19300link_all_deplibs=$link_all_deplibs_FC 19301 19302# Set to "yes" if exported symbols are required. 19303always_export_symbols=$always_export_symbols_FC 19304 19305# The commands to list exported symbols. 19306export_symbols_cmds=$lt_export_symbols_cmds_FC 19307 19308# Symbols that should not be listed in the preloaded symbols. 19309exclude_expsyms=$lt_exclude_expsyms_FC 19310 19311# Symbols that must always be exported. 19312include_expsyms=$lt_include_expsyms_FC 19313 19314# Commands necessary for linking programs (against libraries) with templates. 19315prelink_cmds=$lt_prelink_cmds_FC 19316 19317# Commands necessary for finishing linking programs. 19318postlink_cmds=$lt_postlink_cmds_FC 19319 19320# Specify filename containing input files. 19321file_list_spec=$lt_file_list_spec_FC 19322 19323# How to hardcode a shared library path into an executable. 19324hardcode_action=$hardcode_action_FC 19325 19326# The directories searched by this compiler when creating a shared library. 19327compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 19328 19329# Dependencies to place before and after the objects being linked to 19330# create a shared library. 19331predep_objects=$lt_predep_objects_FC 19332postdep_objects=$lt_postdep_objects_FC 19333predeps=$lt_predeps_FC 19334postdeps=$lt_postdeps_FC 19335 19336# The library search path used internally by the compiler when linking 19337# a shared library. 19338compiler_lib_search_path=$lt_compiler_lib_search_path_FC 19339 19340# ### END LIBTOOL TAG CONFIG: FC 19341_LT_EOF 19342 19343 ;; 19344 19345 esac 19346done # for ac_tag 19347 19348 19349as_fn_exit 0 19350_ACEOF 19351ac_clean_files=$ac_clean_files_save 19352 19353test $ac_write_fail = 0 || 19354 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19355 19356 19357# configure is writing to config.log, and then calls config.status. 19358# config.status does its own redirection, appending to config.log. 19359# Unfortunately, on DOS this fails, as config.log is still kept open 19360# by configure, so config.status won't be able to write to it; its 19361# output is simply discarded. So we exec the FD to /dev/null, 19362# effectively closing config.log, so it can be properly (re)opened and 19363# appended to by config.status. When coming back to configure, we 19364# need to make the FD available again. 19365if test "$no_create" != yes; then 19366 ac_cs_success=: 19367 ac_config_status_args= 19368 test "$silent" = yes && 19369 ac_config_status_args="$ac_config_status_args --quiet" 19370 exec 5>/dev/null 19371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19372 exec 5>>config.log 19373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19374 # would make configure fail if this is the last instruction. 19375 $ac_cs_success || as_fn_exit 1 19376fi 19377if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19379$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19380fi 19381 19382