1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libctl 4.5.0. 4# 5# Report bugs to <stevenj@alum.mit.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: stevenj@alum.mit.edu about your system, including any 279$0: error possibly output before this message. Then install 280$0: a modern shell, or manually run the script under such a 281$0: 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='libctl' 592PACKAGE_TARNAME='libctl' 593PACKAGE_VERSION='4.5.0' 594PACKAGE_STRING='libctl 4.5.0' 595PACKAGE_BUGREPORT='stevenj@alum.mit.edu' 596PACKAGE_URL='' 597 598ac_unique_file="src/ctl.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 639GEN_CTL_IO 640LIBCTL_DIR 641FLIBS 642ac_ct_F77 643FFLAGS 644F77 645WITH_GUILE_FALSE 646WITH_GUILE_TRUE 647LIBGUILE 648GUILE_CONFIG 649GUILE 650INDENT 651LIBCTL_BUGFIX_VERSION 652LIBCTL_MINOR_VERSION 653LIBCTL_MAJOR_VERSION 654LIBCTL_VERSION 655CPP 656LT_SYS_LIBRARY_PATH 657OTOOL64 658OTOOL 659LIPO 660NMEDIT 661DSYMUTIL 662MANIFEST_TOOL 663RANLIB 664ac_ct_AR 665AR 666DLLTOOL 667OBJDUMP 668LN_S 669NM 670ac_ct_DUMPBIN 671DUMPBIN 672LD 673FGREP 674EGREP 675GREP 676SED 677am__fastdepCC_FALSE 678am__fastdepCC_TRUE 679CCDEPMODE 680am__nodep 681AMDEPBACKSLASH 682AMDEP_FALSE 683AMDEP_TRUE 684am__include 685DEPDIR 686OBJEXT 687EXEEXT 688ac_ct_CC 689CPPFLAGS 690LDFLAGS 691CFLAGS 692CC 693host_os 694host_vendor 695host_cpu 696host 697build_os 698build_vendor 699build_cpu 700build 701LIBTOOL 702SHARED_VERSION_INFO 703AM_BACKSLASH 704AM_DEFAULT_VERBOSITY 705AM_DEFAULT_V 706AM_V 707am__untar 708am__tar 709AMTAR 710am__leading_dot 711SET_MAKE 712AWK 713mkdir_p 714MKDIR_P 715INSTALL_STRIP_PROGRAM 716STRIP 717install_sh 718MAKEINFO 719AUTOHEADER 720AUTOMAKE 721AUTOCONF 722ACLOCAL 723VERSION 724PACKAGE 725CYGPATH_W 726am__isrc 727INSTALL_DATA 728INSTALL_SCRIPT 729INSTALL_PROGRAM 730MAINT 731MAINTAINER_MODE_FALSE 732MAINTAINER_MODE_TRUE 733target_alias 734host_alias 735build_alias 736LIBS 737ECHO_T 738ECHO_N 739ECHO_C 740DEFS 741mandir 742localedir 743libdir 744psdir 745pdfdir 746dvidir 747htmldir 748infodir 749docdir 750oldincludedir 751includedir 752localstatedir 753sharedstatedir 754sysconfdir 755datadir 756datarootdir 757libexecdir 758sbindir 759bindir 760program_transform_name 761prefix 762exec_prefix 763PACKAGE_URL 764PACKAGE_BUGREPORT 765PACKAGE_STRING 766PACKAGE_VERSION 767PACKAGE_TARNAME 768PACKAGE_NAME 769PATH_SEPARATOR 770SHELL 771am__quote' 772ac_subst_files='' 773ac_user_opts=' 774enable_option_checking 775enable_maintainer_mode 776enable_silent_rules 777enable_shared 778enable_static 779with_pic 780enable_fast_install 781with_aix_soname 782enable_dependency_tracking 783with_gnu_ld 784with_sysroot 785enable_libtool_lock 786enable_debug 787with_guile 788' 789 ac_precious_vars='build_alias 790host_alias 791target_alias 792CC 793CFLAGS 794LDFLAGS 795LIBS 796CPPFLAGS 797LT_SYS_LIBRARY_PATH 798CPP 799F77 800FFLAGS' 801 802 803# Initialize some variables set by options. 804ac_init_help= 805ac_init_version=false 806ac_unrecognized_opts= 807ac_unrecognized_sep= 808# The variables have the same names as the options, with 809# dashes changed to underlines. 810cache_file=/dev/null 811exec_prefix=NONE 812no_create= 813no_recursion= 814prefix=NONE 815program_prefix=NONE 816program_suffix=NONE 817program_transform_name=s,x,x, 818silent= 819site= 820srcdir= 821verbose= 822x_includes=NONE 823x_libraries=NONE 824 825# Installation directory options. 826# These are left unexpanded so users can "make install exec_prefix=/foo" 827# and all the variables that are supposed to be based on exec_prefix 828# by default will actually change. 829# Use braces instead of parens because sh, perl, etc. also accept them. 830# (The list follows the same order as the GNU Coding Standards.) 831bindir='${exec_prefix}/bin' 832sbindir='${exec_prefix}/sbin' 833libexecdir='${exec_prefix}/libexec' 834datarootdir='${prefix}/share' 835datadir='${datarootdir}' 836sysconfdir='${prefix}/etc' 837sharedstatedir='${prefix}/com' 838localstatedir='${prefix}/var' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 # Accept the important Cygnus configure options, so we can diagnose typos. 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: $ac_useropt" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1092 ac_prev=sbindir ;; 1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1094 | --sbi=* | --sb=*) 1095 sbindir=$ac_optarg ;; 1096 1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1099 | --sharedst | --shareds | --shared | --share | --shar \ 1100 | --sha | --sh) 1101 ac_prev=sharedstatedir ;; 1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1105 | --sha=* | --sh=*) 1106 sharedstatedir=$ac_optarg ;; 1107 1108 -site | --site | --sit) 1109 ac_prev=site ;; 1110 -site=* | --site=* | --sit=*) 1111 site=$ac_optarg ;; 1112 1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1114 ac_prev=srcdir ;; 1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1116 srcdir=$ac_optarg ;; 1117 1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1119 | --syscon | --sysco | --sysc | --sys | --sy) 1120 ac_prev=sysconfdir ;; 1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1123 sysconfdir=$ac_optarg ;; 1124 1125 -target | --target | --targe | --targ | --tar | --ta | --t) 1126 ac_prev=target_alias ;; 1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1128 target_alias=$ac_optarg ;; 1129 1130 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1131 verbose=yes ;; 1132 1133 -version | --version | --versio | --versi | --vers | -V) 1134 ac_init_version=: ;; 1135 1136 -with-* | --with-*) 1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1138 # Reject names that are not valid shell variable names. 1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 as_fn_error $? "invalid package name: $ac_useropt" 1141 ac_useropt_orig=$ac_useropt 1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 case $ac_user_opts in 1144 *" 1145"with_$ac_useropt" 1146"*) ;; 1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1148 ac_unrecognized_sep=', ';; 1149 esac 1150 eval with_$ac_useropt=\$ac_optarg ;; 1151 1152 -without-* | --without-*) 1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 as_fn_error $? "invalid package name: $ac_useropt" 1157 ac_useropt_orig=$ac_useropt 1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 case $ac_user_opts in 1160 *" 1161"with_$ac_useropt" 1162"*) ;; 1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1164 ac_unrecognized_sep=', ';; 1165 esac 1166 eval with_$ac_useropt=no ;; 1167 1168 --x) 1169 # Obsolete; use --with-x. 1170 with_x=yes ;; 1171 1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1173 | --x-incl | --x-inc | --x-in | --x-i) 1174 ac_prev=x_includes ;; 1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1177 x_includes=$ac_optarg ;; 1178 1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1181 ac_prev=x_libraries ;; 1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 x_libraries=$ac_optarg ;; 1185 1186 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1187Try \`$0 --help' for more information" 1188 ;; 1189 1190 *=*) 1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1192 # Reject names that are not valid shell variable names. 1193 case $ac_envvar in #( 1194 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1196 esac 1197 eval $ac_envvar=\$ac_optarg 1198 export $ac_envvar ;; 1199 1200 *) 1201 # FIXME: should be removed in autoconf 3.0. 1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1206 ;; 1207 1208 esac 1209done 1210 1211if test -n "$ac_prev"; then 1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 as_fn_error $? "missing argument to $ac_option" 1214fi 1215 1216if test -n "$ac_unrecognized_opts"; then 1217 case $enable_option_checking in 1218 no) ;; 1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1221 esac 1222fi 1223 1224# Check all directory arguments for consistency. 1225for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1226 datadir sysconfdir sharedstatedir localstatedir includedir \ 1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1228 libdir localedir mandir 1229do 1230 eval ac_val=\$$ac_var 1231 # Remove trailing slashes. 1232 case $ac_val in 1233 */ ) 1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1235 eval $ac_var=\$ac_val;; 1236 esac 1237 # Be sure to have absolute directory names. 1238 case $ac_val in 1239 [\\/$]* | ?:[\\/]* ) continue;; 1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1241 esac 1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1243done 1244 1245# There might be people who depend on the old broken behavior: `$host' 1246# used to hold the argument of --host etc. 1247# FIXME: To remove some day. 1248build=$build_alias 1249host=$host_alias 1250target=$target_alias 1251 1252# FIXME: To remove some day. 1253if test "x$host_alias" != x; then 1254 if test "x$build_alias" = x; then 1255 cross_compiling=maybe 1256 elif test "x$build_alias" != "x$host_alias"; then 1257 cross_compiling=yes 1258 fi 1259fi 1260 1261ac_tool_prefix= 1262test -n "$host_alias" && ac_tool_prefix=$host_alias- 1263 1264test "$silent" = yes && exec 6>/dev/null 1265 1266 1267ac_pwd=`pwd` && test -n "$ac_pwd" && 1268ac_ls_di=`ls -di .` && 1269ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1270 as_fn_error $? "working directory cannot be determined" 1271test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1272 as_fn_error $? "pwd does not report name of working directory" 1273 1274 1275# Find the source files, if location was not specified. 1276if test -z "$srcdir"; then 1277 ac_srcdir_defaulted=yes 1278 # Try the directory containing this script, then the parent directory. 1279 ac_confdir=`$as_dirname -- "$as_myself" || 1280$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1281 X"$as_myself" : 'X\(//\)[^/]' \| \ 1282 X"$as_myself" : 'X\(//\)$' \| \ 1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1284$as_echo X"$as_myself" | 1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\/\)[^/].*/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)$/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\).*/{ 1298 s//\1/ 1299 q 1300 } 1301 s/.*/./; q'` 1302 srcdir=$ac_confdir 1303 if test ! -r "$srcdir/$ac_unique_file"; then 1304 srcdir=.. 1305 fi 1306else 1307 ac_srcdir_defaulted=no 1308fi 1309if test ! -r "$srcdir/$ac_unique_file"; then 1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1312fi 1313ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1314ac_abs_confdir=`( 1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1316 pwd)` 1317# When building in place, set srcdir=. 1318if test "$ac_abs_confdir" = "$ac_pwd"; then 1319 srcdir=. 1320fi 1321# Remove unnecessary trailing slashes from srcdir. 1322# Double slashes in file names in object file debugging info 1323# mess up M-x gdb in Emacs. 1324case $srcdir in 1325*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1326esac 1327for ac_var in $ac_precious_vars; do 1328 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1329 eval ac_env_${ac_var}_value=\$${ac_var} 1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1331 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1332done 1333 1334# 1335# Report the --help message. 1336# 1337if test "$ac_init_help" = "long"; then 1338 # Omit some internal or obsolete options to make the list less imposing. 1339 # This message is too long to be a string in the A/UX 3.1 sh. 1340 cat <<_ACEOF 1341\`configure' configures libctl 4.5.0 to adapt to many kinds of systems. 1342 1343Usage: $0 [OPTION]... [VAR=VALUE]... 1344 1345To assign environment variables (e.g., CC, CFLAGS...), specify them as 1346VAR=VALUE. See below for descriptions of some of the useful variables. 1347 1348Defaults for the options are specified in brackets. 1349 1350Configuration: 1351 -h, --help display this help and exit 1352 --help=short display options specific to this package 1353 --help=recursive display the short help of all the included packages 1354 -V, --version display version information and exit 1355 -q, --quiet, --silent do not print \`checking ...' messages 1356 --cache-file=FILE cache test results in FILE [disabled] 1357 -C, --config-cache alias for \`--cache-file=config.cache' 1358 -n, --no-create do not create output files 1359 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1360 1361Installation directories: 1362 --prefix=PREFIX install architecture-independent files in PREFIX 1363 [$ac_default_prefix] 1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1365 [PREFIX] 1366 1367By default, \`make install' will install all the files in 1368\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1369an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1370for instance \`--prefix=\$HOME'. 1371 1372For better control, use the options below. 1373 1374Fine tuning of the installation directories: 1375 --bindir=DIR user executables [EPREFIX/bin] 1376 --sbindir=DIR system admin executables [EPREFIX/sbin] 1377 --libexecdir=DIR program executables [EPREFIX/libexec] 1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libctl] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394_ACEOF 1395 1396 cat <<\_ACEOF 1397 1398Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406_ACEOF 1407fi 1408 1409if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of libctl 4.5.0:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-maintainer-mode 1420 enable make rules and dependencies not useful (and 1421 sometimes confusing) to the casual installer 1422 --enable-silent-rules less verbose build output (undo: "make V=1") 1423 --disable-silent-rules verbose build output (undo: "make V=0") 1424 --enable-shared[=PKGS] build shared libraries [default=no] 1425 --enable-static[=PKGS] build static libraries [default=yes] 1426 --enable-fast-install[=PKGS] 1427 optimize for fast installation [default=yes] 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-libtool-lock avoid locking (might break parallel builds) 1433 --enable-debug compile for debugging 1434 1435Optional Packages: 1436 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1437 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1438 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1439 both] 1440 --with-aix-soname=aix|svr4|both 1441 shared library versioning (aka "SONAME") variant to 1442 provide on AIX, [default=aix]. 1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1444 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1445 compiler's sysroot if not specified). 1446 --without-guile disable use of Guile 1447 1448Some influential environment variables: 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1452 nonstandard directory <lib dir> 1453 LIBS libraries to pass to the linker, e.g. -l<library> 1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1455 you have headers in a nonstandard directory <include dir> 1456 LT_SYS_LIBRARY_PATH 1457 User-defined run-time library search path. 1458 CPP C preprocessor 1459 F77 Fortran 77 compiler command 1460 FFLAGS Fortran 77 compiler flags 1461 1462Use these variables to override the choices made by `configure' or to help 1463it to find libraries and programs with nonstandard names/locations. 1464 1465Report bugs to <stevenj@alum.mit.edu>. 1466_ACEOF 1467ac_status=$? 1468fi 1469 1470if test "$ac_init_help" = "recursive"; then 1471 # If there are subdirs, report their specific --help. 1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1473 test -d "$ac_dir" || 1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1475 continue 1476 ac_builddir=. 1477 1478case "$ac_dir" in 1479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1480*) 1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1482 # A ".." for each directory in $ac_dir_suffix. 1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1484 case $ac_top_builddir_sub in 1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1487 esac ;; 1488esac 1489ac_abs_top_builddir=$ac_pwd 1490ac_abs_builddir=$ac_pwd$ac_dir_suffix 1491# for backward compatibility: 1492ac_top_builddir=$ac_top_build_prefix 1493 1494case $srcdir in 1495 .) # We are building in place. 1496 ac_srcdir=. 1497 ac_top_srcdir=$ac_top_builddir_sub 1498 ac_abs_top_srcdir=$ac_pwd ;; 1499 [\\/]* | ?:[\\/]* ) # Absolute name. 1500 ac_srcdir=$srcdir$ac_dir_suffix; 1501 ac_top_srcdir=$srcdir 1502 ac_abs_top_srcdir=$srcdir ;; 1503 *) # Relative name. 1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1505 ac_top_srcdir=$ac_top_build_prefix$srcdir 1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1507esac 1508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1509 1510 cd "$ac_dir" || { ac_status=$?; continue; } 1511 # Check for guested configure. 1512 if test -f "$ac_srcdir/configure.gnu"; then 1513 echo && 1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1515 elif test -f "$ac_srcdir/configure"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure" --help=recursive 1518 else 1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1520 fi || ac_status=$? 1521 cd "$ac_pwd" || { ac_status=$?; break; } 1522 done 1523fi 1524 1525test -n "$ac_init_help" && exit $ac_status 1526if $ac_init_version; then 1527 cat <<\_ACEOF 1528libctl configure 4.5.0 1529generated by GNU Autoconf 2.69 1530 1531Copyright (C) 2012 Free Software Foundation, Inc. 1532This configure script is free software; the Free Software Foundation 1533gives unlimited permission to copy, distribute and modify it. 1534_ACEOF 1535 exit 1536fi 1537 1538## ------------------------ ## 1539## Autoconf initialization. ## 1540## ------------------------ ## 1541 1542# ac_fn_c_try_compile LINENO 1543# -------------------------- 1544# Try to compile conftest.$ac_ext, and return whether this succeeded. 1545ac_fn_c_try_compile () 1546{ 1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 rm -f conftest.$ac_objext 1549 if { { ac_try="$ac_compile" 1550case "(($ac_try" in 1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1552 *) ac_try_echo=$ac_try;; 1553esac 1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1555$as_echo "$ac_try_echo"; } >&5 1556 (eval "$ac_compile") 2>conftest.err 1557 ac_status=$? 1558 if test -s conftest.err; then 1559 grep -v '^ *+' conftest.err >conftest.er1 1560 cat conftest.er1 >&5 1561 mv -f conftest.er1 conftest.err 1562 fi 1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1564 test $ac_status = 0; } && { 1565 test -z "$ac_c_werror_flag" || 1566 test ! -s conftest.err 1567 } && test -s conftest.$ac_objext; then : 1568 ac_retval=0 1569else 1570 $as_echo "$as_me: failed program was:" >&5 1571sed 's/^/| /' conftest.$ac_ext >&5 1572 1573 ac_retval=1 1574fi 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 as_fn_set_status $ac_retval 1577 1578} # ac_fn_c_try_compile 1579 1580# ac_fn_c_try_link LINENO 1581# ----------------------- 1582# Try to link conftest.$ac_ext, and return whether this succeeded. 1583ac_fn_c_try_link () 1584{ 1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1586 rm -f conftest.$ac_objext conftest$ac_exeext 1587 if { { ac_try="$ac_link" 1588case "(($ac_try" in 1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1590 *) ac_try_echo=$ac_try;; 1591esac 1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1593$as_echo "$ac_try_echo"; } >&5 1594 (eval "$ac_link") 2>conftest.err 1595 ac_status=$? 1596 if test -s conftest.err; then 1597 grep -v '^ *+' conftest.err >conftest.er1 1598 cat conftest.er1 >&5 1599 mv -f conftest.er1 conftest.err 1600 fi 1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1602 test $ac_status = 0; } && { 1603 test -z "$ac_c_werror_flag" || 1604 test ! -s conftest.err 1605 } && test -s conftest$ac_exeext && { 1606 test "$cross_compiling" = yes || 1607 test -x conftest$ac_exeext 1608 }; then : 1609 ac_retval=0 1610else 1611 $as_echo "$as_me: failed program was:" >&5 1612sed 's/^/| /' conftest.$ac_ext >&5 1613 1614 ac_retval=1 1615fi 1616 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1617 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1618 # interfere with the next link command; also delete a directory that is 1619 # left behind by Apple's compiler. We do this before executing the actions. 1620 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1622 as_fn_set_status $ac_retval 1623 1624} # ac_fn_c_try_link 1625 1626# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1627# ------------------------------------------------------- 1628# Tests whether HEADER exists and can be compiled using the include files in 1629# INCLUDES, setting the cache variable VAR accordingly. 1630ac_fn_c_check_header_compile () 1631{ 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1634$as_echo_n "checking for $2... " >&6; } 1635if eval \${$3+:} false; then : 1636 $as_echo_n "(cached) " >&6 1637else 1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1639/* end confdefs.h. */ 1640$4 1641#include <$2> 1642_ACEOF 1643if ac_fn_c_try_compile "$LINENO"; then : 1644 eval "$3=yes" 1645else 1646 eval "$3=no" 1647fi 1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1649fi 1650eval ac_res=\$$3 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1652$as_echo "$ac_res" >&6; } 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 1655} # ac_fn_c_check_header_compile 1656 1657# ac_fn_c_try_cpp LINENO 1658# ---------------------- 1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1660ac_fn_c_try_cpp () 1661{ 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1663 if { { ac_try="$ac_cpp conftest.$ac_ext" 1664case "(($ac_try" in 1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1666 *) ac_try_echo=$ac_try;; 1667esac 1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1669$as_echo "$ac_try_echo"; } >&5 1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1671 ac_status=$? 1672 if test -s conftest.err; then 1673 grep -v '^ *+' conftest.err >conftest.er1 1674 cat conftest.er1 >&5 1675 mv -f conftest.er1 conftest.err 1676 fi 1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1678 test $ac_status = 0; } > conftest.i && { 1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1680 test ! -s conftest.err 1681 }; then : 1682 ac_retval=0 1683else 1684 $as_echo "$as_me: failed program was:" >&5 1685sed 's/^/| /' conftest.$ac_ext >&5 1686 1687 ac_retval=1 1688fi 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 as_fn_set_status $ac_retval 1691 1692} # ac_fn_c_try_cpp 1693 1694# ac_fn_c_try_run LINENO 1695# ---------------------- 1696# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1697# that executables *can* be run. 1698ac_fn_c_try_run () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 if { { ac_try="$ac_link" 1702case "(($ac_try" in 1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1704 *) ac_try_echo=$ac_try;; 1705esac 1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1707$as_echo "$ac_try_echo"; } >&5 1708 (eval "$ac_link") 2>&5 1709 ac_status=$? 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1712 { { case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717$as_echo "$ac_try_echo"; } >&5 1718 (eval "$ac_try") 2>&5 1719 ac_status=$? 1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1721 test $ac_status = 0; }; }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: program exited with status $ac_status" >&5 1725 $as_echo "$as_me: failed program was:" >&5 1726sed 's/^/| /' conftest.$ac_ext >&5 1727 1728 ac_retval=$ac_status 1729fi 1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 as_fn_set_status $ac_retval 1733 1734} # ac_fn_c_try_run 1735 1736# ac_fn_c_check_func LINENO FUNC VAR 1737# ---------------------------------- 1738# Tests whether FUNC exists, setting the cache variable VAR accordingly 1739ac_fn_c_check_func () 1740{ 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1743$as_echo_n "checking for $2... " >&6; } 1744if eval \${$3+:} false; then : 1745 $as_echo_n "(cached) " >&6 1746else 1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1748/* end confdefs.h. */ 1749/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1750 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1751#define $2 innocuous_$2 1752 1753/* System header to define __stub macros and hopefully few prototypes, 1754 which can conflict with char $2 (); below. 1755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1756 <limits.h> exists even on freestanding compilers. */ 1757 1758#ifdef __STDC__ 1759# include <limits.h> 1760#else 1761# include <assert.h> 1762#endif 1763 1764#undef $2 1765 1766/* Override any GCC internal prototype to avoid an error. 1767 Use char because int might match the return type of a GCC 1768 builtin and then its argument prototype would still apply. */ 1769#ifdef __cplusplus 1770extern "C" 1771#endif 1772char $2 (); 1773/* The GNU C library defines this for functions which it implements 1774 to always fail with ENOSYS. Some functions are actually named 1775 something starting with __ and the normal name is an alias. */ 1776#if defined __stub_$2 || defined __stub___$2 1777choke me 1778#endif 1779 1780int 1781main () 1782{ 1783return $2 (); 1784 ; 1785 return 0; 1786} 1787_ACEOF 1788if ac_fn_c_try_link "$LINENO"; then : 1789 eval "$3=yes" 1790else 1791 eval "$3=no" 1792fi 1793rm -f core conftest.err conftest.$ac_objext \ 1794 conftest$ac_exeext conftest.$ac_ext 1795fi 1796eval ac_res=\$$3 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1798$as_echo "$ac_res" >&6; } 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 1801} # ac_fn_c_check_func 1802 1803# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1804# ------------------------------------------------------- 1805# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1806# the include files in INCLUDES and setting the cache variable VAR 1807# accordingly. 1808ac_fn_c_check_header_mongrel () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 if eval \${$3+:} false; then : 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1813$as_echo_n "checking for $2... " >&6; } 1814if eval \${$3+:} false; then : 1815 $as_echo_n "(cached) " >&6 1816fi 1817eval ac_res=\$$3 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1819$as_echo "$ac_res" >&6; } 1820else 1821 # Is the header compilable? 1822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1823$as_echo_n "checking $2 usability... " >&6; } 1824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825/* end confdefs.h. */ 1826$4 1827#include <$2> 1828_ACEOF 1829if ac_fn_c_try_compile "$LINENO"; then : 1830 ac_header_compiler=yes 1831else 1832 ac_header_compiler=no 1833fi 1834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1836$as_echo "$ac_header_compiler" >&6; } 1837 1838# Is the header present? 1839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1840$as_echo_n "checking $2 presence... " >&6; } 1841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1842/* end confdefs.h. */ 1843#include <$2> 1844_ACEOF 1845if ac_fn_c_try_cpp "$LINENO"; then : 1846 ac_header_preproc=yes 1847else 1848 ac_header_preproc=no 1849fi 1850rm -f conftest.err conftest.i conftest.$ac_ext 1851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1852$as_echo "$ac_header_preproc" >&6; } 1853 1854# So? What about this header? 1855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1856 yes:no: ) 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1858$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1860$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1861 ;; 1862 no:yes:* ) 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1864$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1866$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1868$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1870$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1872$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1873( $as_echo "## ----------------------------------- ## 1874## Report this to stevenj@alum.mit.edu ## 1875## ----------------------------------- ##" 1876 ) | sed "s/^/$as_me: WARNING: /" >&2 1877 ;; 1878esac 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1880$as_echo_n "checking for $2... " >&6; } 1881if eval \${$3+:} false; then : 1882 $as_echo_n "(cached) " >&6 1883else 1884 eval "$3=\$ac_header_compiler" 1885fi 1886eval ac_res=\$$3 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1888$as_echo "$ac_res" >&6; } 1889fi 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 1892} # ac_fn_c_check_header_mongrel 1893 1894# ac_fn_f77_try_compile LINENO 1895# ---------------------------- 1896# Try to compile conftest.$ac_ext, and return whether this succeeded. 1897ac_fn_f77_try_compile () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 rm -f conftest.$ac_objext 1901 if { { ac_try="$ac_compile" 1902case "(($ac_try" in 1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1904 *) ac_try_echo=$ac_try;; 1905esac 1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1907$as_echo "$ac_try_echo"; } >&5 1908 (eval "$ac_compile") 2>conftest.err 1909 ac_status=$? 1910 if test -s conftest.err; then 1911 grep -v '^ *+' conftest.err >conftest.er1 1912 cat conftest.er1 >&5 1913 mv -f conftest.er1 conftest.err 1914 fi 1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1916 test $ac_status = 0; } && { 1917 test -z "$ac_f77_werror_flag" || 1918 test ! -s conftest.err 1919 } && test -s conftest.$ac_objext; then : 1920 ac_retval=0 1921else 1922 $as_echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925 ac_retval=1 1926fi 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 as_fn_set_status $ac_retval 1929 1930} # ac_fn_f77_try_compile 1931 1932# ac_fn_f77_try_link LINENO 1933# ------------------------- 1934# Try to link conftest.$ac_ext, and return whether this succeeded. 1935ac_fn_f77_try_link () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 rm -f conftest.$ac_objext conftest$ac_exeext 1939 if { { ac_try="$ac_link" 1940case "(($ac_try" in 1941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1942 *) ac_try_echo=$ac_try;; 1943esac 1944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1945$as_echo "$ac_try_echo"; } >&5 1946 (eval "$ac_link") 2>conftest.err 1947 ac_status=$? 1948 if test -s conftest.err; then 1949 grep -v '^ *+' conftest.err >conftest.er1 1950 cat conftest.er1 >&5 1951 mv -f conftest.er1 conftest.err 1952 fi 1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1954 test $ac_status = 0; } && { 1955 test -z "$ac_f77_werror_flag" || 1956 test ! -s conftest.err 1957 } && test -s conftest$ac_exeext && { 1958 test "$cross_compiling" = yes || 1959 test -x conftest$ac_exeext 1960 }; then : 1961 ac_retval=0 1962else 1963 $as_echo "$as_me: failed program was:" >&5 1964sed 's/^/| /' conftest.$ac_ext >&5 1965 1966 ac_retval=1 1967fi 1968 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1969 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1970 # interfere with the next link command; also delete a directory that is 1971 # left behind by Apple's compiler. We do this before executing the actions. 1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 as_fn_set_status $ac_retval 1975 1976} # ac_fn_f77_try_link 1977cat >config.log <<_ACEOF 1978This file contains any messages produced by compilers while 1979running configure, to aid debugging if configure makes a mistake. 1980 1981It was created by libctl $as_me 4.5.0, which was 1982generated by GNU Autoconf 2.69. Invocation command line was 1983 1984 $ $0 $@ 1985 1986_ACEOF 1987exec 5>>config.log 1988{ 1989cat <<_ASUNAME 1990## --------- ## 1991## Platform. ## 1992## --------- ## 1993 1994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1995uname -m = `(uname -m) 2>/dev/null || echo unknown` 1996uname -r = `(uname -r) 2>/dev/null || echo unknown` 1997uname -s = `(uname -s) 2>/dev/null || echo unknown` 1998uname -v = `(uname -v) 2>/dev/null || echo unknown` 1999 2000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2002 2003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2006/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2010 2011_ASUNAME 2012 2013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2014for as_dir in $PATH 2015do 2016 IFS=$as_save_IFS 2017 test -z "$as_dir" && as_dir=. 2018 $as_echo "PATH: $as_dir" 2019 done 2020IFS=$as_save_IFS 2021 2022} >&5 2023 2024cat >&5 <<_ACEOF 2025 2026 2027## ----------- ## 2028## Core tests. ## 2029## ----------- ## 2030 2031_ACEOF 2032 2033 2034# Keep a trace of the command line. 2035# Strip out --no-create and --no-recursion so they do not pile up. 2036# Strip out --silent because we don't want to record it for future runs. 2037# Also quote any args containing shell meta-characters. 2038# Make two passes to allow for proper duplicate-argument suppression. 2039ac_configure_args= 2040ac_configure_args0= 2041ac_configure_args1= 2042ac_must_keep_next=false 2043for ac_pass in 1 2 2044do 2045 for ac_arg 2046 do 2047 case $ac_arg in 2048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2050 | -silent | --silent | --silen | --sile | --sil) 2051 continue ;; 2052 *\'*) 2053 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2054 esac 2055 case $ac_pass in 2056 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2057 2) 2058 as_fn_append ac_configure_args1 " '$ac_arg'" 2059 if test $ac_must_keep_next = true; then 2060 ac_must_keep_next=false # Got value, back to normal. 2061 else 2062 case $ac_arg in 2063 *=* | --config-cache | -C | -disable-* | --disable-* \ 2064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2066 | -with-* | --with-* | -without-* | --without-* | --x) 2067 case "$ac_configure_args0 " in 2068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2069 esac 2070 ;; 2071 -* ) ac_must_keep_next=true ;; 2072 esac 2073 fi 2074 as_fn_append ac_configure_args " '$ac_arg'" 2075 ;; 2076 esac 2077 done 2078done 2079{ ac_configure_args0=; unset ac_configure_args0;} 2080{ ac_configure_args1=; unset ac_configure_args1;} 2081 2082# When interrupted or exit'd, cleanup temporary files, and complete 2083# config.log. We remove comments because anyway the quotes in there 2084# would cause problems or look ugly. 2085# WARNING: Use '\'' to represent an apostrophe within the trap. 2086# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2087trap 'exit_status=$? 2088 # Save into config.log some information that might help in debugging. 2089 { 2090 echo 2091 2092 $as_echo "## ---------------- ## 2093## Cache variables. ## 2094## ---------------- ##" 2095 echo 2096 # The following way of writing the cache mishandles newlines in values, 2097( 2098 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2099 eval ac_val=\$$ac_var 2100 case $ac_val in #( 2101 *${as_nl}*) 2102 case $ac_var in #( 2103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2104$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2105 esac 2106 case $ac_var in #( 2107 _ | IFS | as_nl) ;; #( 2108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2109 *) { eval $ac_var=; unset $ac_var;} ;; 2110 esac ;; 2111 esac 2112 done 2113 (set) 2>&1 | 2114 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2115 *${as_nl}ac_space=\ *) 2116 sed -n \ 2117 "s/'\''/'\''\\\\'\'''\''/g; 2118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2119 ;; #( 2120 *) 2121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2122 ;; 2123 esac | 2124 sort 2125) 2126 echo 2127 2128 $as_echo "## ----------------- ## 2129## Output variables. ## 2130## ----------------- ##" 2131 echo 2132 for ac_var in $ac_subst_vars 2133 do 2134 eval ac_val=\$$ac_var 2135 case $ac_val in 2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2137 esac 2138 $as_echo "$ac_var='\''$ac_val'\''" 2139 done | sort 2140 echo 2141 2142 if test -n "$ac_subst_files"; then 2143 $as_echo "## ------------------- ## 2144## File substitutions. ## 2145## ------------------- ##" 2146 echo 2147 for ac_var in $ac_subst_files 2148 do 2149 eval ac_val=\$$ac_var 2150 case $ac_val in 2151 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2152 esac 2153 $as_echo "$ac_var='\''$ac_val'\''" 2154 done | sort 2155 echo 2156 fi 2157 2158 if test -s confdefs.h; then 2159 $as_echo "## ----------- ## 2160## confdefs.h. ## 2161## ----------- ##" 2162 echo 2163 cat confdefs.h 2164 echo 2165 fi 2166 test "$ac_signal" != 0 && 2167 $as_echo "$as_me: caught signal $ac_signal" 2168 $as_echo "$as_me: exit $exit_status" 2169 } >&5 2170 rm -f core *.core core.conftest.* && 2171 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2172 exit $exit_status 2173' 0 2174for ac_signal in 1 2 13 15; do 2175 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2176done 2177ac_signal=0 2178 2179# confdefs.h avoids OS command line length limits that DEFS can exceed. 2180rm -f -r conftest* confdefs.h 2181 2182$as_echo "/* confdefs.h */" > confdefs.h 2183 2184# Predefined preprocessor variables. 2185 2186cat >>confdefs.h <<_ACEOF 2187#define PACKAGE_NAME "$PACKAGE_NAME" 2188_ACEOF 2189 2190cat >>confdefs.h <<_ACEOF 2191#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2192_ACEOF 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_VERSION "$PACKAGE_VERSION" 2196_ACEOF 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_STRING "$PACKAGE_STRING" 2200_ACEOF 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2204_ACEOF 2205 2206cat >>confdefs.h <<_ACEOF 2207#define PACKAGE_URL "$PACKAGE_URL" 2208_ACEOF 2209 2210 2211# Let the site file select an alternate cache file if it wants to. 2212# Prefer an explicitly selected file to automatically selected ones. 2213ac_site_file1=NONE 2214ac_site_file2=NONE 2215if test -n "$CONFIG_SITE"; then 2216 # We do not want a PATH search for config.site. 2217 case $CONFIG_SITE in #(( 2218 -*) ac_site_file1=./$CONFIG_SITE;; 2219 */*) ac_site_file1=$CONFIG_SITE;; 2220 *) ac_site_file1=./$CONFIG_SITE;; 2221 esac 2222elif test "x$prefix" != xNONE; then 2223 ac_site_file1=$prefix/share/config.site 2224 ac_site_file2=$prefix/etc/config.site 2225else 2226 ac_site_file1=$ac_default_prefix/share/config.site 2227 ac_site_file2=$ac_default_prefix/etc/config.site 2228fi 2229for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2230do 2231 test "x$ac_site_file" = xNONE && continue 2232 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2234$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2235 sed 's/^/| /' "$ac_site_file" >&5 2236 . "$ac_site_file" \ 2237 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2239as_fn_error $? "failed to load site script $ac_site_file 2240See \`config.log' for more details" "$LINENO" 5; } 2241 fi 2242done 2243 2244if test -r "$cache_file"; then 2245 # Some versions of bash will fail to source /dev/null (special files 2246 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2247 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2249$as_echo "$as_me: loading cache $cache_file" >&6;} 2250 case $cache_file in 2251 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2252 *) . "./$cache_file";; 2253 esac 2254 fi 2255else 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2257$as_echo "$as_me: creating cache $cache_file" >&6;} 2258 >$cache_file 2259fi 2260 2261# Check that the precious variables saved in the cache have kept the same 2262# value. 2263ac_cache_corrupted=false 2264for ac_var in $ac_precious_vars; do 2265 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2266 eval ac_new_set=\$ac_env_${ac_var}_set 2267 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2268 eval ac_new_val=\$ac_env_${ac_var}_value 2269 case $ac_old_set,$ac_new_set in 2270 set,) 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2272$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2273 ac_cache_corrupted=: ;; 2274 ,set) 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2276$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2277 ac_cache_corrupted=: ;; 2278 ,);; 2279 *) 2280 if test "x$ac_old_val" != "x$ac_new_val"; then 2281 # differences in whitespace do not lead to failure. 2282 ac_old_val_w=`echo x $ac_old_val` 2283 ac_new_val_w=`echo x $ac_new_val` 2284 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2286$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2287 ac_cache_corrupted=: 2288 else 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2290$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2291 eval $ac_var=\$ac_old_val 2292 fi 2293 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2294$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2296$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2297 fi;; 2298 esac 2299 # Pass precious variables to config.status. 2300 if test "$ac_new_set" = set; then 2301 case $ac_new_val in 2302 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2303 *) ac_arg=$ac_var=$ac_new_val ;; 2304 esac 2305 case " $ac_configure_args " in 2306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2307 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2308 esac 2309 fi 2310done 2311if $ac_cache_corrupted; then 2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2315$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2316 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2317fi 2318## -------------------- ## 2319## Main body of script. ## 2320## -------------------- ## 2321 2322ac_ext=c 2323ac_cpp='$CPP $CPPFLAGS' 2324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2326ac_compiler_gnu=$ac_cv_c_compiler_gnu 2327 2328 2329 2330ac_config_headers="$ac_config_headers config.h src/ctl.h" 2331 2332 2333 2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2335$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2336 # Check whether --enable-maintainer-mode was given. 2337if test "${enable_maintainer_mode+set}" = set; then : 2338 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2339else 2340 USE_MAINTAINER_MODE=no 2341fi 2342 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2344$as_echo "$USE_MAINTAINER_MODE" >&6; } 2345 if test $USE_MAINTAINER_MODE = yes; then 2346 MAINTAINER_MODE_TRUE= 2347 MAINTAINER_MODE_FALSE='#' 2348else 2349 MAINTAINER_MODE_TRUE='#' 2350 MAINTAINER_MODE_FALSE= 2351fi 2352 2353 MAINT=$MAINTAINER_MODE_TRUE 2354 2355 2356 2357# Shared-library version number; indicates api compatibility, and is 2358# not the same as the "public" version number. (Don't worry about this 2359# except for public releases.) 2360SHARED_VERSION_INFO="10:0:3" # CURRENT:REVISION:AGE 2361 2362am__api_version='1.16' 2363 2364ac_aux_dir= 2365for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2366 if test -f "$ac_dir/install-sh"; then 2367 ac_aux_dir=$ac_dir 2368 ac_install_sh="$ac_aux_dir/install-sh -c" 2369 break 2370 elif test -f "$ac_dir/install.sh"; then 2371 ac_aux_dir=$ac_dir 2372 ac_install_sh="$ac_aux_dir/install.sh -c" 2373 break 2374 elif test -f "$ac_dir/shtool"; then 2375 ac_aux_dir=$ac_dir 2376 ac_install_sh="$ac_aux_dir/shtool install -c" 2377 break 2378 fi 2379done 2380if test -z "$ac_aux_dir"; then 2381 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2382fi 2383 2384# These three variables are undocumented and unsupported, 2385# and are intended to be withdrawn in a future Autoconf release. 2386# They can cause serious problems if a builder's source tree is in a directory 2387# whose full name contains unusual characters. 2388ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2389ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2390ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2391 2392 2393# Find a good install program. We prefer a C program (faster), 2394# so one script is as good as another. But avoid the broken or 2395# incompatible versions: 2396# SysV /etc/install, /usr/sbin/install 2397# SunOS /usr/etc/install 2398# IRIX /sbin/install 2399# AIX /bin/install 2400# AmigaOS /C/install, which installs bootblocks on floppy discs 2401# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2402# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2403# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2404# OS/2's system install, which has a completely different semantic 2405# ./install, which can be erroneously created by make from ./install.sh. 2406# Reject install programs that cannot install multiple files. 2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2408$as_echo_n "checking for a BSD-compatible install... " >&6; } 2409if test -z "$INSTALL"; then 2410if ${ac_cv_path_install+:} false; then : 2411 $as_echo_n "(cached) " >&6 2412else 2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2414for as_dir in $PATH 2415do 2416 IFS=$as_save_IFS 2417 test -z "$as_dir" && as_dir=. 2418 # Account for people who put trailing slashes in PATH elements. 2419case $as_dir/ in #(( 2420 ./ | .// | /[cC]/* | \ 2421 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2422 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2423 /usr/ucb/* ) ;; 2424 *) 2425 # OSF1 and SCO ODT 3.0 have their own names for install. 2426 # Don't use installbsd from OSF since it installs stuff as root 2427 # by default. 2428 for ac_prog in ginstall scoinst install; do 2429 for ac_exec_ext in '' $ac_executable_extensions; do 2430 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2431 if test $ac_prog = install && 2432 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2433 # AIX install. It has an incompatible calling convention. 2434 : 2435 elif test $ac_prog = install && 2436 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2437 # program-specific install script used by HP pwplus--don't use. 2438 : 2439 else 2440 rm -rf conftest.one conftest.two conftest.dir 2441 echo one > conftest.one 2442 echo two > conftest.two 2443 mkdir conftest.dir 2444 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2445 test -s conftest.one && test -s conftest.two && 2446 test -s conftest.dir/conftest.one && 2447 test -s conftest.dir/conftest.two 2448 then 2449 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2450 break 3 2451 fi 2452 fi 2453 fi 2454 done 2455 done 2456 ;; 2457esac 2458 2459 done 2460IFS=$as_save_IFS 2461 2462rm -rf conftest.one conftest.two conftest.dir 2463 2464fi 2465 if test "${ac_cv_path_install+set}" = set; then 2466 INSTALL=$ac_cv_path_install 2467 else 2468 # As a last resort, use the slow shell script. Don't cache a 2469 # value for INSTALL within a source directory, because that will 2470 # break other packages using the cache if that directory is 2471 # removed, or if the value is a relative name. 2472 INSTALL=$ac_install_sh 2473 fi 2474fi 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2476$as_echo "$INSTALL" >&6; } 2477 2478# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2479# It thinks the first close brace ends the variable substitution. 2480test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2481 2482test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2483 2484test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2485 2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2487$as_echo_n "checking whether build environment is sane... " >&6; } 2488# Reject unsafe characters in $srcdir or the absolute working directory 2489# name. Accept space and tab only in the latter. 2490am_lf=' 2491' 2492case `pwd` in 2493 *[\\\"\#\$\&\'\`$am_lf]*) 2494 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2495esac 2496case $srcdir in 2497 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2498 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2499esac 2500 2501# Do 'set' in a subshell so we don't clobber the current shell's 2502# arguments. Must try -L first in case configure is actually a 2503# symlink; some systems play weird games with the mod time of symlinks 2504# (eg FreeBSD returns the mod time of the symlink's containing 2505# directory). 2506if ( 2507 am_has_slept=no 2508 for am_try in 1 2; do 2509 echo "timestamp, slept: $am_has_slept" > conftest.file 2510 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2511 if test "$*" = "X"; then 2512 # -L didn't work. 2513 set X `ls -t "$srcdir/configure" conftest.file` 2514 fi 2515 if test "$*" != "X $srcdir/configure conftest.file" \ 2516 && test "$*" != "X conftest.file $srcdir/configure"; then 2517 2518 # If neither matched, then we have a broken ls. This can happen 2519 # if, for instance, CONFIG_SHELL is bash and it inherits a 2520 # broken ls alias from the environment. This has actually 2521 # happened. Such a system could not be considered "sane". 2522 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2523 alias in your environment" "$LINENO" 5 2524 fi 2525 if test "$2" = conftest.file || test $am_try -eq 2; then 2526 break 2527 fi 2528 # Just in case. 2529 sleep 1 2530 am_has_slept=yes 2531 done 2532 test "$2" = conftest.file 2533 ) 2534then 2535 # Ok. 2536 : 2537else 2538 as_fn_error $? "newly created file is older than distributed files! 2539Check your system clock" "$LINENO" 5 2540fi 2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2542$as_echo "yes" >&6; } 2543# If we didn't sleep, we still need to ensure time stamps of config.status and 2544# generated files are strictly newer. 2545am_sleep_pid= 2546if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2547 ( sleep 1 ) & 2548 am_sleep_pid=$! 2549fi 2550 2551rm -f conftest.file 2552 2553test "$program_prefix" != NONE && 2554 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2555# Use a double $ so make ignores it. 2556test "$program_suffix" != NONE && 2557 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2558# Double any \ or $. 2559# By default was `s,x,x', remove it if useless. 2560ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2561program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2562 2563# Expand $ac_aux_dir to an absolute path. 2564am_aux_dir=`cd "$ac_aux_dir" && pwd` 2565 2566if test x"${MISSING+set}" != xset; then 2567 case $am_aux_dir in 2568 *\ * | *\ *) 2569 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2570 *) 2571 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2572 esac 2573fi 2574# Use eval to expand $SHELL 2575if eval "$MISSING --is-lightweight"; then 2576 am_missing_run="$MISSING " 2577else 2578 am_missing_run= 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2580$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2581fi 2582 2583if test x"${install_sh+set}" != xset; then 2584 case $am_aux_dir in 2585 *\ * | *\ *) 2586 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2587 *) 2588 install_sh="\${SHELL} $am_aux_dir/install-sh" 2589 esac 2590fi 2591 2592# Installed binaries are usually stripped using 'strip' when the user 2593# run "make install-strip". However 'strip' might not be the right 2594# tool to use in cross-compilation environments, therefore Automake 2595# will honor the 'STRIP' environment variable to overrule this program. 2596if test "$cross_compiling" != no; then 2597 if test -n "$ac_tool_prefix"; then 2598 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2599set dummy ${ac_tool_prefix}strip; ac_word=$2 2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2601$as_echo_n "checking for $ac_word... " >&6; } 2602if ${ac_cv_prog_STRIP+:} false; then : 2603 $as_echo_n "(cached) " >&6 2604else 2605 if test -n "$STRIP"; then 2606 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2607else 2608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2609for as_dir in $PATH 2610do 2611 IFS=$as_save_IFS 2612 test -z "$as_dir" && as_dir=. 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2615 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620 done 2621IFS=$as_save_IFS 2622 2623fi 2624fi 2625STRIP=$ac_cv_prog_STRIP 2626if test -n "$STRIP"; then 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2628$as_echo "$STRIP" >&6; } 2629else 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2631$as_echo "no" >&6; } 2632fi 2633 2634 2635fi 2636if test -z "$ac_cv_prog_STRIP"; then 2637 ac_ct_STRIP=$STRIP 2638 # Extract the first word of "strip", so it can be a program name with args. 2639set dummy strip; ac_word=$2 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2641$as_echo_n "checking for $ac_word... " >&6; } 2642if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2643 $as_echo_n "(cached) " >&6 2644else 2645 if test -n "$ac_ct_STRIP"; then 2646 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 test -z "$as_dir" && as_dir=. 2653 for ac_exec_ext in '' $ac_executable_extensions; do 2654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2655 ac_cv_prog_ac_ct_STRIP="strip" 2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2657 break 2 2658 fi 2659done 2660 done 2661IFS=$as_save_IFS 2662 2663fi 2664fi 2665ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2666if test -n "$ac_ct_STRIP"; then 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2668$as_echo "$ac_ct_STRIP" >&6; } 2669else 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2671$as_echo "no" >&6; } 2672fi 2673 2674 if test "x$ac_ct_STRIP" = x; then 2675 STRIP=":" 2676 else 2677 case $cross_compiling:$ac_tool_warned in 2678yes:) 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2680$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2681ac_tool_warned=yes ;; 2682esac 2683 STRIP=$ac_ct_STRIP 2684 fi 2685else 2686 STRIP="$ac_cv_prog_STRIP" 2687fi 2688 2689fi 2690INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2691 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2693$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2694if test -z "$MKDIR_P"; then 2695 if ${ac_cv_path_mkdir+:} false; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2699for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2700do 2701 IFS=$as_save_IFS 2702 test -z "$as_dir" && as_dir=. 2703 for ac_prog in mkdir gmkdir; do 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2706 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2707 'mkdir (GNU coreutils) '* | \ 2708 'mkdir (coreutils) '* | \ 2709 'mkdir (fileutils) '4.1*) 2710 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2711 break 3;; 2712 esac 2713 done 2714 done 2715 done 2716IFS=$as_save_IFS 2717 2718fi 2719 2720 test -d ./--version && rmdir ./--version 2721 if test "${ac_cv_path_mkdir+set}" = set; then 2722 MKDIR_P="$ac_cv_path_mkdir -p" 2723 else 2724 # As a last resort, use the slow shell script. Don't cache a 2725 # value for MKDIR_P within a source directory, because that will 2726 # break other packages using the cache if that directory is 2727 # removed, or if the value is a relative name. 2728 MKDIR_P="$ac_install_sh -d" 2729 fi 2730fi 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2732$as_echo "$MKDIR_P" >&6; } 2733 2734for ac_prog in gawk mawk nawk awk 2735do 2736 # Extract the first word of "$ac_prog", so it can be a program name with args. 2737set dummy $ac_prog; ac_word=$2 2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2739$as_echo_n "checking for $ac_word... " >&6; } 2740if ${ac_cv_prog_AWK+:} false; then : 2741 $as_echo_n "(cached) " >&6 2742else 2743 if test -n "$AWK"; then 2744 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2745else 2746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 for ac_exec_ext in '' $ac_executable_extensions; do 2752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2753 ac_cv_prog_AWK="$ac_prog" 2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2755 break 2 2756 fi 2757done 2758 done 2759IFS=$as_save_IFS 2760 2761fi 2762fi 2763AWK=$ac_cv_prog_AWK 2764if test -n "$AWK"; then 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2766$as_echo "$AWK" >&6; } 2767else 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2769$as_echo "no" >&6; } 2770fi 2771 2772 2773 test -n "$AWK" && break 2774done 2775 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2777$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2778set x ${MAKE-make} 2779ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2780if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2781 $as_echo_n "(cached) " >&6 2782else 2783 cat >conftest.make <<\_ACEOF 2784SHELL = /bin/sh 2785all: 2786 @echo '@@@%%%=$(MAKE)=@@@%%%' 2787_ACEOF 2788# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2789case `${MAKE-make} -f conftest.make 2>/dev/null` in 2790 *@@@%%%=?*=@@@%%%*) 2791 eval ac_cv_prog_make_${ac_make}_set=yes;; 2792 *) 2793 eval ac_cv_prog_make_${ac_make}_set=no;; 2794esac 2795rm -f conftest.make 2796fi 2797if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2799$as_echo "yes" >&6; } 2800 SET_MAKE= 2801else 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2803$as_echo "no" >&6; } 2804 SET_MAKE="MAKE=${MAKE-make}" 2805fi 2806 2807rm -rf .tst 2>/dev/null 2808mkdir .tst 2>/dev/null 2809if test -d .tst; then 2810 am__leading_dot=. 2811else 2812 am__leading_dot=_ 2813fi 2814rmdir .tst 2>/dev/null 2815 2816# Check whether --enable-silent-rules was given. 2817if test "${enable_silent_rules+set}" = set; then : 2818 enableval=$enable_silent_rules; 2819fi 2820 2821case $enable_silent_rules in # ((( 2822 yes) AM_DEFAULT_VERBOSITY=0;; 2823 no) AM_DEFAULT_VERBOSITY=1;; 2824 *) AM_DEFAULT_VERBOSITY=1;; 2825esac 2826am_make=${MAKE-make} 2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2828$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2829if ${am_cv_make_support_nested_variables+:} false; then : 2830 $as_echo_n "(cached) " >&6 2831else 2832 if $as_echo 'TRUE=$(BAR$(V)) 2833BAR0=false 2834BAR1=true 2835V=1 2836am__doit: 2837 @$(TRUE) 2838.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2839 am_cv_make_support_nested_variables=yes 2840else 2841 am_cv_make_support_nested_variables=no 2842fi 2843fi 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2845$as_echo "$am_cv_make_support_nested_variables" >&6; } 2846if test $am_cv_make_support_nested_variables = yes; then 2847 AM_V='$(V)' 2848 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2849else 2850 AM_V=$AM_DEFAULT_VERBOSITY 2851 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2852fi 2853AM_BACKSLASH='\' 2854 2855if test "`cd $srcdir && pwd`" != "`pwd`"; then 2856 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2857 # is not polluted with repeated "-I." 2858 am__isrc=' -I$(srcdir)' 2859 # test to see if srcdir already configured 2860 if test -f $srcdir/config.status; then 2861 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2862 fi 2863fi 2864 2865# test whether we have cygpath 2866if test -z "$CYGPATH_W"; then 2867 if (cygpath --version) >/dev/null 2>/dev/null; then 2868 CYGPATH_W='cygpath -w' 2869 else 2870 CYGPATH_W=echo 2871 fi 2872fi 2873 2874 2875# Define the identity of the package. 2876 PACKAGE='libctl' 2877 VERSION='4.5.0' 2878 2879 2880cat >>confdefs.h <<_ACEOF 2881#define PACKAGE "$PACKAGE" 2882_ACEOF 2883 2884 2885cat >>confdefs.h <<_ACEOF 2886#define VERSION "$VERSION" 2887_ACEOF 2888 2889# Some tools Automake needs. 2890 2891ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2892 2893 2894AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2895 2896 2897AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2898 2899 2900AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2901 2902 2903MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2904 2905# For better backward compatibility. To be removed once Automake 1.9.x 2906# dies out for good. For more background, see: 2907# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2908# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2909mkdir_p='$(MKDIR_P)' 2910 2911# We need awk for the "check" target (and possibly the TAP driver). The 2912# system "awk" is bad on some platforms. 2913# Always define AMTAR for backward compatibility. Yes, it's still used 2914# in the wild :-( We should find a proper way to deprecate it ... 2915AMTAR='$${TAR-tar}' 2916 2917 2918# We'll loop over all known methods to create a tar archive until one works. 2919_am_tools='gnutar pax cpio none' 2920 2921am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2922 2923 2924 2925 2926 2927 2928# POSIX will say in a future version that running "rm -f" with no argument 2929# is OK; and we want to be able to make that assumption in our Makefile 2930# recipes. So use an aggressive probe to check that the usage we want is 2931# actually supported "in the wild" to an acceptable degree. 2932# See automake bug#10828. 2933# To make any issue more visible, cause the running configure to be aborted 2934# by default if the 'rm' program in use doesn't match our expectations; the 2935# user can still override this though. 2936if rm -f && rm -fr && rm -rf; then : OK; else 2937 cat >&2 <<'END' 2938Oops! 2939 2940Your 'rm' program seems unable to run without file operands specified 2941on the command line, even when the '-f' option is present. This is contrary 2942to the behaviour of most rm programs out there, and not conforming with 2943the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2944 2945Please tell bug-automake@gnu.org about your system, including the value 2946of your $PATH and any error possibly output before this message. This 2947can help us improve future automake versions. 2948 2949END 2950 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2951 echo 'Configuration will proceed anyway, since you have set the' >&2 2952 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2953 echo >&2 2954 else 2955 cat >&2 <<'END' 2956Aborting the configuration process, to ensure you take notice of the issue. 2957 2958You can download and install GNU coreutils to get an 'rm' implementation 2959that behaves properly: <https://www.gnu.org/software/coreutils/>. 2960 2961If you want to complete the configuration process using your problematic 2962'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2963to "yes", and re-run configure. 2964 2965END 2966 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2967 fi 2968fi 2969 2970 2971# Check whether --enable-shared was given. 2972if test "${enable_shared+set}" = set; then : 2973 enableval=$enable_shared; p=${PACKAGE-default} 2974 case $enableval in 2975 yes) enable_shared=yes ;; 2976 no) enable_shared=no ;; 2977 *) 2978 enable_shared=no 2979 # Look at the argument we got. We use all the common list separators. 2980 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 2981 for pkg in $enableval; do 2982 IFS=$lt_save_ifs 2983 if test "X$pkg" = "X$p"; then 2984 enable_shared=yes 2985 fi 2986 done 2987 IFS=$lt_save_ifs 2988 ;; 2989 esac 2990else 2991 enable_shared=no 2992fi 2993 2994 2995 2996 2997 2998 2999 3000 3001 case `pwd` in 3002 *\ * | *\ *) 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3004$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3005esac 3006 3007 3008 3009macro_version='2.4.6' 3010macro_revision='2.4.6' 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024ltmain=$ac_aux_dir/ltmain.sh 3025 3026# Make sure we can run config.sub. 3027$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3028 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3029 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3031$as_echo_n "checking build system type... " >&6; } 3032if ${ac_cv_build+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 ac_build_alias=$build_alias 3036test "x$ac_build_alias" = x && 3037 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3038test "x$ac_build_alias" = x && 3039 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3040ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3041 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3042 3043fi 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3045$as_echo "$ac_cv_build" >&6; } 3046case $ac_cv_build in 3047*-*-*) ;; 3048*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3049esac 3050build=$ac_cv_build 3051ac_save_IFS=$IFS; IFS='-' 3052set x $ac_cv_build 3053shift 3054build_cpu=$1 3055build_vendor=$2 3056shift; shift 3057# Remember, the first character of IFS is used to create $*, 3058# except with old shells: 3059build_os=$* 3060IFS=$ac_save_IFS 3061case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3062 3063 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3065$as_echo_n "checking host system type... " >&6; } 3066if ${ac_cv_host+:} false; then : 3067 $as_echo_n "(cached) " >&6 3068else 3069 if test "x$host_alias" = x; then 3070 ac_cv_host=$ac_cv_build 3071else 3072 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3073 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3074fi 3075 3076fi 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3078$as_echo "$ac_cv_host" >&6; } 3079case $ac_cv_host in 3080*-*-*) ;; 3081*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3082esac 3083host=$ac_cv_host 3084ac_save_IFS=$IFS; IFS='-' 3085set x $ac_cv_host 3086shift 3087host_cpu=$1 3088host_vendor=$2 3089shift; shift 3090# Remember, the first character of IFS is used to create $*, 3091# except with old shells: 3092host_os=$* 3093IFS=$ac_save_IFS 3094case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3095 3096 3097# Backslashify metacharacters that are still active within 3098# double-quoted strings. 3099sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3100 3101# Same as above, but do not quote variable references. 3102double_quote_subst='s/\(["`\\]\)/\\\1/g' 3103 3104# Sed substitution to delay expansion of an escaped shell variable in a 3105# double_quote_subst'ed string. 3106delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3107 3108# Sed substitution to delay expansion of an escaped single quote. 3109delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3110 3111# Sed substitution to avoid accidental globbing in evaled expressions 3112no_glob_subst='s/\*/\\\*/g' 3113 3114ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3115ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3116ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3117 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3119$as_echo_n "checking how to print strings... " >&6; } 3120# Test print first, because it will be a builtin if present. 3121if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3122 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3123 ECHO='print -r --' 3124elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3125 ECHO='printf %s\n' 3126else 3127 # Use this function as a fallback that always works. 3128 func_fallback_echo () 3129 { 3130 eval 'cat <<_LTECHO_EOF 3131$1 3132_LTECHO_EOF' 3133 } 3134 ECHO='func_fallback_echo' 3135fi 3136 3137# func_echo_all arg... 3138# Invoke $ECHO with all args, space-separated. 3139func_echo_all () 3140{ 3141 $ECHO "" 3142} 3143 3144case $ECHO in 3145 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3146$as_echo "printf" >&6; } ;; 3147 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3148$as_echo "print -r" >&6; } ;; 3149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3150$as_echo "cat" >&6; } ;; 3151esac 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166DEPDIR="${am__leading_dot}deps" 3167 3168ac_config_commands="$ac_config_commands depfiles" 3169 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3171$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3172cat > confinc.mk << 'END' 3173am__doit: 3174 @echo this is the am__doit target >confinc.out 3175.PHONY: am__doit 3176END 3177am__include="#" 3178am__quote= 3179# BSD make does it like this. 3180echo '.include "confinc.mk" # ignored' > confmf.BSD 3181# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3182echo 'include confinc.mk # ignored' > confmf.GNU 3183_am_result=no 3184for s in GNU BSD; do 3185 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3186 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3187 ac_status=$? 3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3189 (exit $ac_status); } 3190 case $?:`cat confinc.out 2>/dev/null` in #( 3191 '0:this is the am__doit target') : 3192 case $s in #( 3193 BSD) : 3194 am__include='.include' am__quote='"' ;; #( 3195 *) : 3196 am__include='include' am__quote='' ;; 3197esac ;; #( 3198 *) : 3199 ;; 3200esac 3201 if test "$am__include" != "#"; then 3202 _am_result="yes ($s style)" 3203 break 3204 fi 3205done 3206rm -f confinc.* confmf.* 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3208$as_echo "${_am_result}" >&6; } 3209 3210# Check whether --enable-dependency-tracking was given. 3211if test "${enable_dependency_tracking+set}" = set; then : 3212 enableval=$enable_dependency_tracking; 3213fi 3214 3215if test "x$enable_dependency_tracking" != xno; then 3216 am_depcomp="$ac_aux_dir/depcomp" 3217 AMDEPBACKSLASH='\' 3218 am__nodep='_no' 3219fi 3220 if test "x$enable_dependency_tracking" != xno; then 3221 AMDEP_TRUE= 3222 AMDEP_FALSE='#' 3223else 3224 AMDEP_TRUE='#' 3225 AMDEP_FALSE= 3226fi 3227 3228 3229ac_ext=c 3230ac_cpp='$CPP $CPPFLAGS' 3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3233ac_compiler_gnu=$ac_cv_c_compiler_gnu 3234if test -n "$ac_tool_prefix"; then 3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3236set dummy ${ac_tool_prefix}gcc; ac_word=$2 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238$as_echo_n "checking for $ac_word... " >&6; } 3239if ${ac_cv_prog_CC+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if test -n "$CC"; then 3243 ac_cv_prog_CC="$CC" # Let the user override the test. 3244else 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3252 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260fi 3261fi 3262CC=$ac_cv_prog_CC 3263if test -n "$CC"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3265$as_echo "$CC" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 3272fi 3273if test -z "$ac_cv_prog_CC"; then 3274 ac_ct_CC=$CC 3275 # Extract the first word of "gcc", so it can be a program name with args. 3276set dummy gcc; ac_word=$2 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3278$as_echo_n "checking for $ac_word... " >&6; } 3279if ${ac_cv_prog_ac_ct_CC+:} false; then : 3280 $as_echo_n "(cached) " >&6 3281else 3282 if test -n "$ac_ct_CC"; then 3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3284else 3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3286for as_dir in $PATH 3287do 3288 IFS=$as_save_IFS 3289 test -z "$as_dir" && as_dir=. 3290 for ac_exec_ext in '' $ac_executable_extensions; do 3291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3292 ac_cv_prog_ac_ct_CC="gcc" 3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3294 break 2 3295 fi 3296done 3297 done 3298IFS=$as_save_IFS 3299 3300fi 3301fi 3302ac_ct_CC=$ac_cv_prog_ac_ct_CC 3303if test -n "$ac_ct_CC"; then 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3305$as_echo "$ac_ct_CC" >&6; } 3306else 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308$as_echo "no" >&6; } 3309fi 3310 3311 if test "x$ac_ct_CC" = x; then 3312 CC="" 3313 else 3314 case $cross_compiling:$ac_tool_warned in 3315yes:) 3316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3318ac_tool_warned=yes ;; 3319esac 3320 CC=$ac_ct_CC 3321 fi 3322else 3323 CC="$ac_cv_prog_CC" 3324fi 3325 3326if test -z "$CC"; then 3327 if test -n "$ac_tool_prefix"; then 3328 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3329set dummy ${ac_tool_prefix}cc; ac_word=$2 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3331$as_echo_n "checking for $ac_word... " >&6; } 3332if ${ac_cv_prog_CC+:} false; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 if test -n "$CC"; then 3336 ac_cv_prog_CC="$CC" # Let the user override the test. 3337else 3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3339for as_dir in $PATH 3340do 3341 IFS=$as_save_IFS 3342 test -z "$as_dir" && as_dir=. 3343 for ac_exec_ext in '' $ac_executable_extensions; do 3344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3345 ac_cv_prog_CC="${ac_tool_prefix}cc" 3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3347 break 2 3348 fi 3349done 3350 done 3351IFS=$as_save_IFS 3352 3353fi 3354fi 3355CC=$ac_cv_prog_CC 3356if test -n "$CC"; then 3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3358$as_echo "$CC" >&6; } 3359else 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3361$as_echo "no" >&6; } 3362fi 3363 3364 3365 fi 3366fi 3367if test -z "$CC"; then 3368 # Extract the first word of "cc", so it can be a program name with args. 3369set dummy cc; ac_word=$2 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3371$as_echo_n "checking for $ac_word... " >&6; } 3372if ${ac_cv_prog_CC+:} false; then : 3373 $as_echo_n "(cached) " >&6 3374else 3375 if test -n "$CC"; then 3376 ac_cv_prog_CC="$CC" # Let the user override the test. 3377else 3378 ac_prog_rejected=no 3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3380for as_dir in $PATH 3381do 3382 IFS=$as_save_IFS 3383 test -z "$as_dir" && as_dir=. 3384 for ac_exec_ext in '' $ac_executable_extensions; do 3385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3386 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3387 ac_prog_rejected=yes 3388 continue 3389 fi 3390 ac_cv_prog_CC="cc" 3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3392 break 2 3393 fi 3394done 3395 done 3396IFS=$as_save_IFS 3397 3398if test $ac_prog_rejected = yes; then 3399 # We found a bogon in the path, so make sure we never use it. 3400 set dummy $ac_cv_prog_CC 3401 shift 3402 if test $# != 0; then 3403 # We chose a different compiler from the bogus one. 3404 # However, it has the same basename, so the bogon will be chosen 3405 # first if we set CC to just the basename; use the full file name. 3406 shift 3407 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3408 fi 3409fi 3410fi 3411fi 3412CC=$ac_cv_prog_CC 3413if test -n "$CC"; then 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3415$as_echo "$CC" >&6; } 3416else 3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418$as_echo "no" >&6; } 3419fi 3420 3421 3422fi 3423if test -z "$CC"; then 3424 if test -n "$ac_tool_prefix"; then 3425 for ac_prog in cl.exe 3426 do 3427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3428set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3430$as_echo_n "checking for $ac_word... " >&6; } 3431if ${ac_cv_prog_CC+:} false; then : 3432 $as_echo_n "(cached) " >&6 3433else 3434 if test -n "$CC"; then 3435 ac_cv_prog_CC="$CC" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 test -z "$as_dir" && as_dir=. 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3444 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3446 break 2 3447 fi 3448done 3449 done 3450IFS=$as_save_IFS 3451 3452fi 3453fi 3454CC=$ac_cv_prog_CC 3455if test -n "$CC"; then 3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3457$as_echo "$CC" >&6; } 3458else 3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3460$as_echo "no" >&6; } 3461fi 3462 3463 3464 test -n "$CC" && break 3465 done 3466fi 3467if test -z "$CC"; then 3468 ac_ct_CC=$CC 3469 for ac_prog in cl.exe 3470do 3471 # Extract the first word of "$ac_prog", so it can be a program name with args. 3472set dummy $ac_prog; ac_word=$2 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3474$as_echo_n "checking for $ac_word... " >&6; } 3475if ${ac_cv_prog_ac_ct_CC+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 if test -n "$ac_ct_CC"; then 3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3480else 3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3482for as_dir in $PATH 3483do 3484 IFS=$as_save_IFS 3485 test -z "$as_dir" && as_dir=. 3486 for ac_exec_ext in '' $ac_executable_extensions; do 3487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3488 ac_cv_prog_ac_ct_CC="$ac_prog" 3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3490 break 2 3491 fi 3492done 3493 done 3494IFS=$as_save_IFS 3495 3496fi 3497fi 3498ac_ct_CC=$ac_cv_prog_ac_ct_CC 3499if test -n "$ac_ct_CC"; then 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3501$as_echo "$ac_ct_CC" >&6; } 3502else 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3504$as_echo "no" >&6; } 3505fi 3506 3507 3508 test -n "$ac_ct_CC" && break 3509done 3510 3511 if test "x$ac_ct_CC" = x; then 3512 CC="" 3513 else 3514 case $cross_compiling:$ac_tool_warned in 3515yes:) 3516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3518ac_tool_warned=yes ;; 3519esac 3520 CC=$ac_ct_CC 3521 fi 3522fi 3523 3524fi 3525 3526 3527test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error $? "no acceptable C compiler found in \$PATH 3530See \`config.log' for more details" "$LINENO" 5; } 3531 3532# Provide some information about the compiler. 3533$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3534set X $ac_compile 3535ac_compiler=$2 3536for ac_option in --version -v -V -qversion; do 3537 { { ac_try="$ac_compiler $ac_option >&5" 3538case "(($ac_try" in 3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3540 *) ac_try_echo=$ac_try;; 3541esac 3542eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3543$as_echo "$ac_try_echo"; } >&5 3544 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3545 ac_status=$? 3546 if test -s conftest.err; then 3547 sed '10a\ 3548... rest of stderr output deleted ... 3549 10q' conftest.err >conftest.er1 3550 cat conftest.er1 >&5 3551 fi 3552 rm -f conftest.er1 conftest.err 3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3554 test $ac_status = 0; } 3555done 3556 3557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558/* end confdefs.h. */ 3559 3560int 3561main () 3562{ 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568ac_clean_files_save=$ac_clean_files 3569ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3570# Try to create an executable without -o first, disregard a.out. 3571# It will help us diagnose broken compilers, and finding out an intuition 3572# of exeext. 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3574$as_echo_n "checking whether the C compiler works... " >&6; } 3575ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3576 3577# The possible output files: 3578ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3579 3580ac_rmfiles= 3581for ac_file in $ac_files 3582do 3583 case $ac_file in 3584 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3585 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3586 esac 3587done 3588rm -f $ac_rmfiles 3589 3590if { { ac_try="$ac_link_default" 3591case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594esac 3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3596$as_echo "$ac_try_echo"; } >&5 3597 (eval "$ac_link_default") 2>&5 3598 ac_status=$? 3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3600 test $ac_status = 0; }; then : 3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3602# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3603# in a Makefile. We should not override ac_cv_exeext if it was cached, 3604# so that the user can short-circuit this test for compilers unknown to 3605# Autoconf. 3606for ac_file in $ac_files '' 3607do 3608 test -f "$ac_file" || continue 3609 case $ac_file in 3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3611 ;; 3612 [ab].out ) 3613 # We found the default executable, but exeext='' is most 3614 # certainly right. 3615 break;; 3616 *.* ) 3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3618 then :; else 3619 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3620 fi 3621 # We set ac_cv_exeext here because the later test for it is not 3622 # safe: cross compilers may not add the suffix if given an `-o' 3623 # argument, so we may need to know it at that point already. 3624 # Even if this section looks crufty: it has the advantage of 3625 # actually working. 3626 break;; 3627 * ) 3628 break;; 3629 esac 3630done 3631test "$ac_cv_exeext" = no && ac_cv_exeext= 3632 3633else 3634 ac_file='' 3635fi 3636if test -z "$ac_file"; then : 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3638$as_echo "no" >&6; } 3639$as_echo "$as_me: failed program was:" >&5 3640sed 's/^/| /' conftest.$ac_ext >&5 3641 3642{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3644as_fn_error 77 "C compiler cannot create executables 3645See \`config.log' for more details" "$LINENO" 5; } 3646else 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3648$as_echo "yes" >&6; } 3649fi 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3651$as_echo_n "checking for C compiler default output file name... " >&6; } 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3653$as_echo "$ac_file" >&6; } 3654ac_exeext=$ac_cv_exeext 3655 3656rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3657ac_clean_files=$ac_clean_files_save 3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3659$as_echo_n "checking for suffix of executables... " >&6; } 3660if { { ac_try="$ac_link" 3661case "(($ac_try" in 3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3663 *) ac_try_echo=$ac_try;; 3664esac 3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3666$as_echo "$ac_try_echo"; } >&5 3667 (eval "$ac_link") 2>&5 3668 ac_status=$? 3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3670 test $ac_status = 0; }; then : 3671 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3672# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3673# work properly (i.e., refer to `conftest.exe'), while it won't with 3674# `rm'. 3675for ac_file in conftest.exe conftest conftest.*; do 3676 test -f "$ac_file" || continue 3677 case $ac_file in 3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3679 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3680 break;; 3681 * ) break;; 3682 esac 3683done 3684else 3685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3687as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3688See \`config.log' for more details" "$LINENO" 5; } 3689fi 3690rm -f conftest conftest$ac_cv_exeext 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3692$as_echo "$ac_cv_exeext" >&6; } 3693 3694rm -f conftest.$ac_ext 3695EXEEXT=$ac_cv_exeext 3696ac_exeext=$EXEEXT 3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699#include <stdio.h> 3700int 3701main () 3702{ 3703FILE *f = fopen ("conftest.out", "w"); 3704 return ferror (f) || fclose (f) != 0; 3705 3706 ; 3707 return 0; 3708} 3709_ACEOF 3710ac_clean_files="$ac_clean_files conftest.out" 3711# Check that the compiler produces executables we can run. If not, either 3712# the compiler is broken, or we cross compile. 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3714$as_echo_n "checking whether we are cross compiling... " >&6; } 3715if test "$cross_compiling" != yes; then 3716 { { ac_try="$ac_link" 3717case "(($ac_try" in 3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3719 *) ac_try_echo=$ac_try;; 3720esac 3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3722$as_echo "$ac_try_echo"; } >&5 3723 (eval "$ac_link") 2>&5 3724 ac_status=$? 3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3726 test $ac_status = 0; } 3727 if { ac_try='./conftest$ac_cv_exeext' 3728 { { case "(($ac_try" in 3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3730 *) ac_try_echo=$ac_try;; 3731esac 3732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3733$as_echo "$ac_try_echo"; } >&5 3734 (eval "$ac_try") 2>&5 3735 ac_status=$? 3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3737 test $ac_status = 0; }; }; then 3738 cross_compiling=no 3739 else 3740 if test "$cross_compiling" = maybe; then 3741 cross_compiling=yes 3742 else 3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3745as_fn_error $? "cannot run C compiled programs. 3746If you meant to cross compile, use \`--host'. 3747See \`config.log' for more details" "$LINENO" 5; } 3748 fi 3749 fi 3750fi 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3752$as_echo "$cross_compiling" >&6; } 3753 3754rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3755ac_clean_files=$ac_clean_files_save 3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3757$as_echo_n "checking for suffix of object files... " >&6; } 3758if ${ac_cv_objext+:} 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 3768 ; 3769 return 0; 3770} 3771_ACEOF 3772rm -f conftest.o conftest.obj 3773if { { ac_try="$ac_compile" 3774case "(($ac_try" in 3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3776 *) ac_try_echo=$ac_try;; 3777esac 3778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3779$as_echo "$ac_try_echo"; } >&5 3780 (eval "$ac_compile") 2>&5 3781 ac_status=$? 3782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3783 test $ac_status = 0; }; then : 3784 for ac_file in conftest.o conftest.obj conftest.*; do 3785 test -f "$ac_file" || continue; 3786 case $ac_file in 3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3788 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3789 break;; 3790 esac 3791done 3792else 3793 $as_echo "$as_me: failed program was:" >&5 3794sed 's/^/| /' conftest.$ac_ext >&5 3795 3796{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3797$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3798as_fn_error $? "cannot compute suffix of object files: cannot compile 3799See \`config.log' for more details" "$LINENO" 5; } 3800fi 3801rm -f conftest.$ac_cv_objext conftest.$ac_ext 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3804$as_echo "$ac_cv_objext" >&6; } 3805OBJEXT=$ac_cv_objext 3806ac_objext=$OBJEXT 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3808$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3809if ${ac_cv_c_compiler_gnu+:} false; then : 3810 $as_echo_n "(cached) " >&6 3811else 3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3813/* end confdefs.h. */ 3814 3815int 3816main () 3817{ 3818#ifndef __GNUC__ 3819 choke me 3820#endif 3821 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826if ac_fn_c_try_compile "$LINENO"; then : 3827 ac_compiler_gnu=yes 3828else 3829 ac_compiler_gnu=no 3830fi 3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3832ac_cv_c_compiler_gnu=$ac_compiler_gnu 3833 3834fi 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3836$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3837if test $ac_compiler_gnu = yes; then 3838 GCC=yes 3839else 3840 GCC= 3841fi 3842ac_test_CFLAGS=${CFLAGS+set} 3843ac_save_CFLAGS=$CFLAGS 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3845$as_echo_n "checking whether $CC accepts -g... " >&6; } 3846if ${ac_cv_prog_cc_g+:} false; then : 3847 $as_echo_n "(cached) " >&6 3848else 3849 ac_save_c_werror_flag=$ac_c_werror_flag 3850 ac_c_werror_flag=yes 3851 ac_cv_prog_cc_g=no 3852 CFLAGS="-g" 3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3854/* end confdefs.h. */ 3855 3856int 3857main () 3858{ 3859 3860 ; 3861 return 0; 3862} 3863_ACEOF 3864if ac_fn_c_try_compile "$LINENO"; then : 3865 ac_cv_prog_cc_g=yes 3866else 3867 CFLAGS="" 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main () 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879if ac_fn_c_try_compile "$LINENO"; then : 3880 3881else 3882 ac_c_werror_flag=$ac_save_c_werror_flag 3883 CFLAGS="-g" 3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886 3887int 3888main () 3889{ 3890 3891 ; 3892 return 0; 3893} 3894_ACEOF 3895if ac_fn_c_try_compile "$LINENO"; then : 3896 ac_cv_prog_cc_g=yes 3897fi 3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3899fi 3900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3901fi 3902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3903 ac_c_werror_flag=$ac_save_c_werror_flag 3904fi 3905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3906$as_echo "$ac_cv_prog_cc_g" >&6; } 3907if test "$ac_test_CFLAGS" = set; then 3908 CFLAGS=$ac_save_CFLAGS 3909elif test $ac_cv_prog_cc_g = yes; then 3910 if test "$GCC" = yes; then 3911 CFLAGS="-g -O2" 3912 else 3913 CFLAGS="-g" 3914 fi 3915else 3916 if test "$GCC" = yes; then 3917 CFLAGS="-O2" 3918 else 3919 CFLAGS= 3920 fi 3921fi 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3923$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3924if ${ac_cv_prog_cc_c89+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 ac_cv_prog_cc_c89=no 3928ac_save_CC=$CC 3929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3930/* end confdefs.h. */ 3931#include <stdarg.h> 3932#include <stdio.h> 3933struct stat; 3934/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3935struct buf { int x; }; 3936FILE * (*rcsopen) (struct buf *, struct stat *, int); 3937static char *e (p, i) 3938 char **p; 3939 int i; 3940{ 3941 return p[i]; 3942} 3943static char *f (char * (*g) (char **, int), char **p, ...) 3944{ 3945 char *s; 3946 va_list v; 3947 va_start (v,p); 3948 s = g (p, va_arg (v,int)); 3949 va_end (v); 3950 return s; 3951} 3952 3953/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3954 function prototypes and stuff, but not '\xHH' hex character constants. 3955 These don't provoke an error unfortunately, instead are silently treated 3956 as 'x'. The following induces an error, until -std is added to get 3957 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3958 array size at least. It's necessary to write '\x00'==0 to get something 3959 that's true only with -std. */ 3960int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3961 3962/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3963 inside strings and character constants. */ 3964#define FOO(x) 'x' 3965int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3966 3967int test (int i, double x); 3968struct s1 {int (*f) (int a);}; 3969struct s2 {int (*f) (double a);}; 3970int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3971int argc; 3972char **argv; 3973int 3974main () 3975{ 3976return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3982 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3983do 3984 CC="$ac_save_CC $ac_arg" 3985 if ac_fn_c_try_compile "$LINENO"; then : 3986 ac_cv_prog_cc_c89=$ac_arg 3987fi 3988rm -f core conftest.err conftest.$ac_objext 3989 test "x$ac_cv_prog_cc_c89" != "xno" && break 3990done 3991rm -f conftest.$ac_ext 3992CC=$ac_save_CC 3993 3994fi 3995# AC_CACHE_VAL 3996case "x$ac_cv_prog_cc_c89" in 3997 x) 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3999$as_echo "none needed" >&6; } ;; 4000 xno) 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4002$as_echo "unsupported" >&6; } ;; 4003 *) 4004 CC="$CC $ac_cv_prog_cc_c89" 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4006$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4007esac 4008if test "x$ac_cv_prog_cc_c89" != xno; then : 4009 4010fi 4011 4012ac_ext=c 4013ac_cpp='$CPP $CPPFLAGS' 4014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4016ac_compiler_gnu=$ac_cv_c_compiler_gnu 4017 4018ac_ext=c 4019ac_cpp='$CPP $CPPFLAGS' 4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4022ac_compiler_gnu=$ac_cv_c_compiler_gnu 4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4024$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4025if ${am_cv_prog_cc_c_o+:} false; then : 4026 $as_echo_n "(cached) " >&6 4027else 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main () 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039 # Make sure it works both with $CC and with simple cc. 4040 # Following AC_PROG_CC_C_O, we do the test twice because some 4041 # compilers refuse to overwrite an existing .o file with -o, 4042 # though they will create one. 4043 am_cv_prog_cc_c_o=yes 4044 for am_i in 1 2; do 4045 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4046 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4047 ac_status=$? 4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4049 (exit $ac_status); } \ 4050 && test -f conftest2.$ac_objext; then 4051 : OK 4052 else 4053 am_cv_prog_cc_c_o=no 4054 break 4055 fi 4056 done 4057 rm -f core conftest* 4058 unset am_i 4059fi 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4061$as_echo "$am_cv_prog_cc_c_o" >&6; } 4062if test "$am_cv_prog_cc_c_o" != yes; then 4063 # Losing compiler, so override with the script. 4064 # FIXME: It is wrong to rewrite CC. 4065 # But if we don't then we get into trouble of one sort or another. 4066 # A longer-term fix would be to have automake use am__CC in this case, 4067 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4068 CC="$am_aux_dir/compile $CC" 4069fi 4070ac_ext=c 4071ac_cpp='$CPP $CPPFLAGS' 4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4074ac_compiler_gnu=$ac_cv_c_compiler_gnu 4075 4076 4077depcc="$CC" am_compiler_list= 4078 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4080$as_echo_n "checking dependency style of $depcc... " >&6; } 4081if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4085 # We make a subdir and do the tests there. Otherwise we can end up 4086 # making bogus files that we don't know about and never remove. For 4087 # instance it was reported that on HP-UX the gcc test will end up 4088 # making a dummy file named 'D' -- because '-MD' means "put the output 4089 # in D". 4090 rm -rf conftest.dir 4091 mkdir conftest.dir 4092 # Copy depcomp to subdir because otherwise we won't find it if we're 4093 # using a relative directory. 4094 cp "$am_depcomp" conftest.dir 4095 cd conftest.dir 4096 # We will build objects and dependencies in a subdirectory because 4097 # it helps to detect inapplicable dependency modes. For instance 4098 # both Tru64's cc and ICC support -MD to output dependencies as a 4099 # side effect of compilation, but ICC will put the dependencies in 4100 # the current directory while Tru64 will put them in the object 4101 # directory. 4102 mkdir sub 4103 4104 am_cv_CC_dependencies_compiler_type=none 4105 if test "$am_compiler_list" = ""; then 4106 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4107 fi 4108 am__universal=false 4109 case " $depcc " in #( 4110 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4111 esac 4112 4113 for depmode in $am_compiler_list; do 4114 # Setup a source with many dependencies, because some compilers 4115 # like to wrap large dependency lists on column 80 (with \), and 4116 # we should not choose a depcomp mode which is confused by this. 4117 # 4118 # We need to recreate these files for each test, as the compiler may 4119 # overwrite some of them when testing with obscure command lines. 4120 # This happens at least with the AIX C compiler. 4121 : > sub/conftest.c 4122 for i in 1 2 3 4 5 6; do 4123 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4124 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4125 # Solaris 10 /bin/sh. 4126 echo '/* dummy */' > sub/conftst$i.h 4127 done 4128 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4129 4130 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4131 # mode. It turns out that the SunPro C++ compiler does not properly 4132 # handle '-M -o', and we need to detect this. Also, some Intel 4133 # versions had trouble with output in subdirs. 4134 am__obj=sub/conftest.${OBJEXT-o} 4135 am__minus_obj="-o $am__obj" 4136 case $depmode in 4137 gcc) 4138 # This depmode causes a compiler race in universal mode. 4139 test "$am__universal" = false || continue 4140 ;; 4141 nosideeffect) 4142 # After this tag, mechanisms are not by side-effect, so they'll 4143 # only be used when explicitly requested. 4144 if test "x$enable_dependency_tracking" = xyes; then 4145 continue 4146 else 4147 break 4148 fi 4149 ;; 4150 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4151 # This compiler won't grok '-c -o', but also, the minuso test has 4152 # not run yet. These depmodes are late enough in the game, and 4153 # so weak that their functioning should not be impacted. 4154 am__obj=conftest.${OBJEXT-o} 4155 am__minus_obj= 4156 ;; 4157 none) break ;; 4158 esac 4159 if depmode=$depmode \ 4160 source=sub/conftest.c object=$am__obj \ 4161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4162 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4163 >/dev/null 2>conftest.err && 4164 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4166 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4168 # icc doesn't choke on unknown options, it will just issue warnings 4169 # or remarks (even with -Werror). So we grep stderr for any message 4170 # that says an option was ignored or not supported. 4171 # When given -MP, icc 7.0 and 7.1 complain thusly: 4172 # icc: Command line warning: ignoring option '-M'; no argument required 4173 # The diagnosis changed in icc 8.0: 4174 # icc: Command line remark: option '-MP' not supported 4175 if (grep 'ignoring option' conftest.err || 4176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4177 am_cv_CC_dependencies_compiler_type=$depmode 4178 break 4179 fi 4180 fi 4181 done 4182 4183 cd .. 4184 rm -rf conftest.dir 4185else 4186 am_cv_CC_dependencies_compiler_type=none 4187fi 4188 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4191$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4192CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4193 4194 if 4195 test "x$enable_dependency_tracking" != xno \ 4196 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4197 am__fastdepCC_TRUE= 4198 am__fastdepCC_FALSE='#' 4199else 4200 am__fastdepCC_TRUE='#' 4201 am__fastdepCC_FALSE= 4202fi 4203 4204 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4206$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4207if ${ac_cv_path_SED+:} false; then : 4208 $as_echo_n "(cached) " >&6 4209else 4210 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4211 for ac_i in 1 2 3 4 5 6 7; do 4212 ac_script="$ac_script$as_nl$ac_script" 4213 done 4214 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4215 { ac_script=; unset ac_script;} 4216 if test -z "$SED"; then 4217 ac_path_SED_found=false 4218 # Loop through the user's path and test for each of PROGNAME-LIST 4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4220for as_dir in $PATH 4221do 4222 IFS=$as_save_IFS 4223 test -z "$as_dir" && as_dir=. 4224 for ac_prog in sed gsed; do 4225 for ac_exec_ext in '' $ac_executable_extensions; do 4226 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4227 as_fn_executable_p "$ac_path_SED" || continue 4228# Check for GNU ac_path_SED and select it if it is found. 4229 # Check for GNU $ac_path_SED 4230case `"$ac_path_SED" --version 2>&1` in 4231*GNU*) 4232 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4233*) 4234 ac_count=0 4235 $as_echo_n 0123456789 >"conftest.in" 4236 while : 4237 do 4238 cat "conftest.in" "conftest.in" >"conftest.tmp" 4239 mv "conftest.tmp" "conftest.in" 4240 cp "conftest.in" "conftest.nl" 4241 $as_echo '' >> "conftest.nl" 4242 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4244 as_fn_arith $ac_count + 1 && ac_count=$as_val 4245 if test $ac_count -gt ${ac_path_SED_max-0}; then 4246 # Best one so far, save it but keep looking for a better one 4247 ac_cv_path_SED="$ac_path_SED" 4248 ac_path_SED_max=$ac_count 4249 fi 4250 # 10*(2^10) chars as input seems more than enough 4251 test $ac_count -gt 10 && break 4252 done 4253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4254esac 4255 4256 $ac_path_SED_found && break 3 4257 done 4258 done 4259 done 4260IFS=$as_save_IFS 4261 if test -z "$ac_cv_path_SED"; then 4262 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4263 fi 4264else 4265 ac_cv_path_SED=$SED 4266fi 4267 4268fi 4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4270$as_echo "$ac_cv_path_SED" >&6; } 4271 SED="$ac_cv_path_SED" 4272 rm -f conftest.sed 4273 4274test -z "$SED" && SED=sed 4275Xsed="$SED -e 1s/^X//" 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4288$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4289if ${ac_cv_path_GREP+:} false; then : 4290 $as_echo_n "(cached) " >&6 4291else 4292 if test -z "$GREP"; then 4293 ac_path_GREP_found=false 4294 # Loop through the user's path and test for each of PROGNAME-LIST 4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4297do 4298 IFS=$as_save_IFS 4299 test -z "$as_dir" && as_dir=. 4300 for ac_prog in grep ggrep; do 4301 for ac_exec_ext in '' $ac_executable_extensions; do 4302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4303 as_fn_executable_p "$ac_path_GREP" || continue 4304# Check for GNU ac_path_GREP and select it if it is found. 4305 # Check for GNU $ac_path_GREP 4306case `"$ac_path_GREP" --version 2>&1` in 4307*GNU*) 4308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4309*) 4310 ac_count=0 4311 $as_echo_n 0123456789 >"conftest.in" 4312 while : 4313 do 4314 cat "conftest.in" "conftest.in" >"conftest.tmp" 4315 mv "conftest.tmp" "conftest.in" 4316 cp "conftest.in" "conftest.nl" 4317 $as_echo 'GREP' >> "conftest.nl" 4318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4320 as_fn_arith $ac_count + 1 && ac_count=$as_val 4321 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4322 # Best one so far, save it but keep looking for a better one 4323 ac_cv_path_GREP="$ac_path_GREP" 4324 ac_path_GREP_max=$ac_count 4325 fi 4326 # 10*(2^10) chars as input seems more than enough 4327 test $ac_count -gt 10 && break 4328 done 4329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4330esac 4331 4332 $ac_path_GREP_found && break 3 4333 done 4334 done 4335 done 4336IFS=$as_save_IFS 4337 if test -z "$ac_cv_path_GREP"; then 4338 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4339 fi 4340else 4341 ac_cv_path_GREP=$GREP 4342fi 4343 4344fi 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4346$as_echo "$ac_cv_path_GREP" >&6; } 4347 GREP="$ac_cv_path_GREP" 4348 4349 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4351$as_echo_n "checking for egrep... " >&6; } 4352if ${ac_cv_path_EGREP+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4356 then ac_cv_path_EGREP="$GREP -E" 4357 else 4358 if test -z "$EGREP"; then 4359 ac_path_EGREP_found=false 4360 # Loop through the user's path and test for each of PROGNAME-LIST 4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4363do 4364 IFS=$as_save_IFS 4365 test -z "$as_dir" && as_dir=. 4366 for ac_prog in egrep; do 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4369 as_fn_executable_p "$ac_path_EGREP" || continue 4370# Check for GNU ac_path_EGREP and select it if it is found. 4371 # Check for GNU $ac_path_EGREP 4372case `"$ac_path_EGREP" --version 2>&1` in 4373*GNU*) 4374 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4375*) 4376 ac_count=0 4377 $as_echo_n 0123456789 >"conftest.in" 4378 while : 4379 do 4380 cat "conftest.in" "conftest.in" >"conftest.tmp" 4381 mv "conftest.tmp" "conftest.in" 4382 cp "conftest.in" "conftest.nl" 4383 $as_echo 'EGREP' >> "conftest.nl" 4384 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4386 as_fn_arith $ac_count + 1 && ac_count=$as_val 4387 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4388 # Best one so far, save it but keep looking for a better one 4389 ac_cv_path_EGREP="$ac_path_EGREP" 4390 ac_path_EGREP_max=$ac_count 4391 fi 4392 # 10*(2^10) chars as input seems more than enough 4393 test $ac_count -gt 10 && break 4394 done 4395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4396esac 4397 4398 $ac_path_EGREP_found && break 3 4399 done 4400 done 4401 done 4402IFS=$as_save_IFS 4403 if test -z "$ac_cv_path_EGREP"; then 4404 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4405 fi 4406else 4407 ac_cv_path_EGREP=$EGREP 4408fi 4409 4410 fi 4411fi 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4413$as_echo "$ac_cv_path_EGREP" >&6; } 4414 EGREP="$ac_cv_path_EGREP" 4415 4416 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4418$as_echo_n "checking for fgrep... " >&6; } 4419if ${ac_cv_path_FGREP+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4423 then ac_cv_path_FGREP="$GREP -F" 4424 else 4425 if test -z "$FGREP"; then 4426 ac_path_FGREP_found=false 4427 # Loop through the user's path and test for each of PROGNAME-LIST 4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4429for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4430do 4431 IFS=$as_save_IFS 4432 test -z "$as_dir" && as_dir=. 4433 for ac_prog in fgrep; do 4434 for ac_exec_ext in '' $ac_executable_extensions; do 4435 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4436 as_fn_executable_p "$ac_path_FGREP" || continue 4437# Check for GNU ac_path_FGREP and select it if it is found. 4438 # Check for GNU $ac_path_FGREP 4439case `"$ac_path_FGREP" --version 2>&1` in 4440*GNU*) 4441 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4442*) 4443 ac_count=0 4444 $as_echo_n 0123456789 >"conftest.in" 4445 while : 4446 do 4447 cat "conftest.in" "conftest.in" >"conftest.tmp" 4448 mv "conftest.tmp" "conftest.in" 4449 cp "conftest.in" "conftest.nl" 4450 $as_echo 'FGREP' >> "conftest.nl" 4451 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4453 as_fn_arith $ac_count + 1 && ac_count=$as_val 4454 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4455 # Best one so far, save it but keep looking for a better one 4456 ac_cv_path_FGREP="$ac_path_FGREP" 4457 ac_path_FGREP_max=$ac_count 4458 fi 4459 # 10*(2^10) chars as input seems more than enough 4460 test $ac_count -gt 10 && break 4461 done 4462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4463esac 4464 4465 $ac_path_FGREP_found && break 3 4466 done 4467 done 4468 done 4469IFS=$as_save_IFS 4470 if test -z "$ac_cv_path_FGREP"; then 4471 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4472 fi 4473else 4474 ac_cv_path_FGREP=$FGREP 4475fi 4476 4477 fi 4478fi 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4480$as_echo "$ac_cv_path_FGREP" >&6; } 4481 FGREP="$ac_cv_path_FGREP" 4482 4483 4484test -z "$GREP" && GREP=grep 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504# Check whether --with-gnu-ld was given. 4505if test "${with_gnu_ld+set}" = set; then : 4506 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4507else 4508 with_gnu_ld=no 4509fi 4510 4511ac_prog=ld 4512if test yes = "$GCC"; then 4513 # Check if gcc -print-prog-name=ld gives a path. 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4515$as_echo_n "checking for ld used by $CC... " >&6; } 4516 case $host in 4517 *-*-mingw*) 4518 # gcc leaves a trailing carriage return, which upsets mingw 4519 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4520 *) 4521 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4522 esac 4523 case $ac_prog in 4524 # Accept absolute paths. 4525 [\\/]* | ?:[\\/]*) 4526 re_direlt='/[^/][^/]*/\.\./' 4527 # Canonicalize the pathname of ld 4528 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4529 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4530 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4531 done 4532 test -z "$LD" && LD=$ac_prog 4533 ;; 4534 "") 4535 # If it fails, then pretend we aren't using GCC. 4536 ac_prog=ld 4537 ;; 4538 *) 4539 # If it is relative, then search for the first ld in PATH. 4540 with_gnu_ld=unknown 4541 ;; 4542 esac 4543elif test yes = "$with_gnu_ld"; then 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4545$as_echo_n "checking for GNU ld... " >&6; } 4546else 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4548$as_echo_n "checking for non-GNU ld... " >&6; } 4549fi 4550if ${lt_cv_path_LD+:} false; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 if test -z "$LD"; then 4554 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4555 for ac_dir in $PATH; do 4556 IFS=$lt_save_ifs 4557 test -z "$ac_dir" && ac_dir=. 4558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4559 lt_cv_path_LD=$ac_dir/$ac_prog 4560 # Check to see if the program is GNU ld. I'd rather use --version, 4561 # but apparently some variants of GNU ld only accept -v. 4562 # Break only if it was the GNU/non-GNU ld that we prefer. 4563 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4564 *GNU* | *'with BFD'*) 4565 test no != "$with_gnu_ld" && break 4566 ;; 4567 *) 4568 test yes != "$with_gnu_ld" && break 4569 ;; 4570 esac 4571 fi 4572 done 4573 IFS=$lt_save_ifs 4574else 4575 lt_cv_path_LD=$LD # Let the user override the test with a path. 4576fi 4577fi 4578 4579LD=$lt_cv_path_LD 4580if test -n "$LD"; then 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4582$as_echo "$LD" >&6; } 4583else 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585$as_echo "no" >&6; } 4586fi 4587test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4589$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4590if ${lt_cv_prog_gnu_ld+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4594case `$LD -v 2>&1 </dev/null` in 4595*GNU* | *'with BFD'*) 4596 lt_cv_prog_gnu_ld=yes 4597 ;; 4598*) 4599 lt_cv_prog_gnu_ld=no 4600 ;; 4601esac 4602fi 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4604$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4605with_gnu_ld=$lt_cv_prog_gnu_ld 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4616$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4617if ${lt_cv_path_NM+:} false; then : 4618 $as_echo_n "(cached) " >&6 4619else 4620 if test -n "$NM"; then 4621 # Let the user override the test. 4622 lt_cv_path_NM=$NM 4623else 4624 lt_nm_to_check=${ac_tool_prefix}nm 4625 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4626 lt_nm_to_check="$lt_nm_to_check nm" 4627 fi 4628 for lt_tmp_nm in $lt_nm_to_check; do 4629 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4630 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4631 IFS=$lt_save_ifs 4632 test -z "$ac_dir" && ac_dir=. 4633 tmp_nm=$ac_dir/$lt_tmp_nm 4634 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4635 # Check to see if the nm accepts a BSD-compat flag. 4636 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4637 # nm: unknown option "B" ignored 4638 # Tru64's nm complains that /dev/null is an invalid object file 4639 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4640 case $build_os in 4641 mingw*) lt_bad_file=conftest.nm/nofile ;; 4642 *) lt_bad_file=/dev/null ;; 4643 esac 4644 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4645 *$lt_bad_file* | *'Invalid file or object type'*) 4646 lt_cv_path_NM="$tmp_nm -B" 4647 break 2 4648 ;; 4649 *) 4650 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4651 */dev/null*) 4652 lt_cv_path_NM="$tmp_nm -p" 4653 break 2 4654 ;; 4655 *) 4656 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4657 continue # so that we can try to find one that supports BSD flags 4658 ;; 4659 esac 4660 ;; 4661 esac 4662 fi 4663 done 4664 IFS=$lt_save_ifs 4665 done 4666 : ${lt_cv_path_NM=no} 4667fi 4668fi 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4670$as_echo "$lt_cv_path_NM" >&6; } 4671if test no != "$lt_cv_path_NM"; then 4672 NM=$lt_cv_path_NM 4673else 4674 # Didn't find any BSD compatible name lister, look for dumpbin. 4675 if test -n "$DUMPBIN"; then : 4676 # Let the user override the test. 4677 else 4678 if test -n "$ac_tool_prefix"; then 4679 for ac_prog in dumpbin "link -dump" 4680 do 4681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4682set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4684$as_echo_n "checking for $ac_word... " >&6; } 4685if ${ac_cv_prog_DUMPBIN+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 if test -n "$DUMPBIN"; then 4689 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4690else 4691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4692for as_dir in $PATH 4693do 4694 IFS=$as_save_IFS 4695 test -z "$as_dir" && as_dir=. 4696 for ac_exec_ext in '' $ac_executable_extensions; do 4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4698 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4700 break 2 4701 fi 4702done 4703 done 4704IFS=$as_save_IFS 4705 4706fi 4707fi 4708DUMPBIN=$ac_cv_prog_DUMPBIN 4709if test -n "$DUMPBIN"; then 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4711$as_echo "$DUMPBIN" >&6; } 4712else 4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4714$as_echo "no" >&6; } 4715fi 4716 4717 4718 test -n "$DUMPBIN" && break 4719 done 4720fi 4721if test -z "$DUMPBIN"; then 4722 ac_ct_DUMPBIN=$DUMPBIN 4723 for ac_prog in dumpbin "link -dump" 4724do 4725 # Extract the first word of "$ac_prog", so it can be a program name with args. 4726set dummy $ac_prog; ac_word=$2 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4728$as_echo_n "checking for $ac_word... " >&6; } 4729if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4730 $as_echo_n "(cached) " >&6 4731else 4732 if test -n "$ac_ct_DUMPBIN"; then 4733 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4734else 4735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in $PATH 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4742 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747 done 4748IFS=$as_save_IFS 4749 4750fi 4751fi 4752ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4753if test -n "$ac_ct_DUMPBIN"; then 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4755$as_echo "$ac_ct_DUMPBIN" >&6; } 4756else 4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4758$as_echo "no" >&6; } 4759fi 4760 4761 4762 test -n "$ac_ct_DUMPBIN" && break 4763done 4764 4765 if test "x$ac_ct_DUMPBIN" = x; then 4766 DUMPBIN=":" 4767 else 4768 case $cross_compiling:$ac_tool_warned in 4769yes:) 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4772ac_tool_warned=yes ;; 4773esac 4774 DUMPBIN=$ac_ct_DUMPBIN 4775 fi 4776fi 4777 4778 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4779 *COFF*) 4780 DUMPBIN="$DUMPBIN -symbols -headers" 4781 ;; 4782 *) 4783 DUMPBIN=: 4784 ;; 4785 esac 4786 fi 4787 4788 if test : != "$DUMPBIN"; then 4789 NM=$DUMPBIN 4790 fi 4791fi 4792test -z "$NM" && NM=nm 4793 4794 4795 4796 4797 4798 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4800$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4801if ${lt_cv_nm_interface+:} false; then : 4802 $as_echo_n "(cached) " >&6 4803else 4804 lt_cv_nm_interface="BSD nm" 4805 echo "int some_variable = 0;" > conftest.$ac_ext 4806 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4807 (eval "$ac_compile" 2>conftest.err) 4808 cat conftest.err >&5 4809 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4810 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4811 cat conftest.err >&5 4812 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4813 cat conftest.out >&5 4814 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4815 lt_cv_nm_interface="MS dumpbin" 4816 fi 4817 rm -f conftest* 4818fi 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4820$as_echo "$lt_cv_nm_interface" >&6; } 4821 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4823$as_echo_n "checking whether ln -s works... " >&6; } 4824LN_S=$as_ln_s 4825if test "$LN_S" = "ln -s"; then 4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4827$as_echo "yes" >&6; } 4828else 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4830$as_echo "no, using $LN_S" >&6; } 4831fi 4832 4833# find the maximum length of command line arguments 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4835$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4836if ${lt_cv_sys_max_cmd_len+:} false; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 i=0 4840 teststring=ABCD 4841 4842 case $build_os in 4843 msdosdjgpp*) 4844 # On DJGPP, this test can blow up pretty badly due to problems in libc 4845 # (any single argument exceeding 2000 bytes causes a buffer overrun 4846 # during glob expansion). Even if it were fixed, the result of this 4847 # check would be larger than it should be. 4848 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4849 ;; 4850 4851 gnu*) 4852 # Under GNU Hurd, this test is not required because there is 4853 # no limit to the length of command line arguments. 4854 # Libtool will interpret -1 as no limit whatsoever 4855 lt_cv_sys_max_cmd_len=-1; 4856 ;; 4857 4858 cygwin* | mingw* | cegcc*) 4859 # On Win9x/ME, this test blows up -- it succeeds, but takes 4860 # about 5 minutes as the teststring grows exponentially. 4861 # Worse, since 9x/ME are not pre-emptively multitasking, 4862 # you end up with a "frozen" computer, even though with patience 4863 # the test eventually succeeds (with a max line length of 256k). 4864 # Instead, let's just punt: use the minimum linelength reported by 4865 # all of the supported platforms: 8192 (on NT/2K/XP). 4866 lt_cv_sys_max_cmd_len=8192; 4867 ;; 4868 4869 mint*) 4870 # On MiNT this can take a long time and run out of memory. 4871 lt_cv_sys_max_cmd_len=8192; 4872 ;; 4873 4874 amigaos*) 4875 # On AmigaOS with pdksh, this test takes hours, literally. 4876 # So we just punt and use a minimum line length of 8192. 4877 lt_cv_sys_max_cmd_len=8192; 4878 ;; 4879 4880 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4881 # This has been around since 386BSD, at least. Likely further. 4882 if test -x /sbin/sysctl; then 4883 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4884 elif test -x /usr/sbin/sysctl; then 4885 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4886 else 4887 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4888 fi 4889 # And add a safety zone 4890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4892 ;; 4893 4894 interix*) 4895 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4896 lt_cv_sys_max_cmd_len=196608 4897 ;; 4898 4899 os2*) 4900 # The test takes a long time on OS/2. 4901 lt_cv_sys_max_cmd_len=8192 4902 ;; 4903 4904 osf*) 4905 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4906 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4907 # nice to cause kernel panics so lets avoid the loop below. 4908 # First set a reasonable default. 4909 lt_cv_sys_max_cmd_len=16384 4910 # 4911 if test -x /sbin/sysconfig; then 4912 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4913 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4914 esac 4915 fi 4916 ;; 4917 sco3.2v5*) 4918 lt_cv_sys_max_cmd_len=102400 4919 ;; 4920 sysv5* | sco5v6* | sysv4.2uw2*) 4921 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4922 if test -n "$kargmax"; then 4923 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4924 else 4925 lt_cv_sys_max_cmd_len=32768 4926 fi 4927 ;; 4928 *) 4929 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4930 if test -n "$lt_cv_sys_max_cmd_len" && \ 4931 test undefined != "$lt_cv_sys_max_cmd_len"; then 4932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4934 else 4935 # Make teststring a little bigger before we do anything with it. 4936 # a 1K string should be a reasonable start. 4937 for i in 1 2 3 4 5 6 7 8; do 4938 teststring=$teststring$teststring 4939 done 4940 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4941 # If test is not a shell built-in, we'll probably end up computing a 4942 # maximum length that is only half of the actual maximum length, but 4943 # we can't tell. 4944 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4945 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4946 test 17 != "$i" # 1/2 MB should be enough 4947 do 4948 i=`expr $i + 1` 4949 teststring=$teststring$teststring 4950 done 4951 # Only check the string length outside the loop. 4952 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4953 teststring= 4954 # Add a significant safety factor because C++ compilers can tack on 4955 # massive amounts of additional arguments before passing them to the 4956 # linker. It appears as though 1/2 is a usable value. 4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4958 fi 4959 ;; 4960 esac 4961 4962fi 4963 4964if test -n "$lt_cv_sys_max_cmd_len"; then 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4966$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4967else 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4969$as_echo "none" >&6; } 4970fi 4971max_cmd_len=$lt_cv_sys_max_cmd_len 4972 4973 4974 4975 4976 4977 4978: ${CP="cp -f"} 4979: ${MV="mv -f"} 4980: ${RM="rm -f"} 4981 4982if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4983 lt_unset=unset 4984else 4985 lt_unset=false 4986fi 4987 4988 4989 4990 4991 4992# test EBCDIC or ASCII 4993case `echo X|tr X '\101'` in 4994 A) # ASCII based system 4995 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4996 lt_SP2NL='tr \040 \012' 4997 lt_NL2SP='tr \015\012 \040\040' 4998 ;; 4999 *) # EBCDIC based system 5000 lt_SP2NL='tr \100 \n' 5001 lt_NL2SP='tr \r\n \100\100' 5002 ;; 5003esac 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5014$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5015if ${lt_cv_to_host_file_cmd+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 case $host in 5019 *-*-mingw* ) 5020 case $build in 5021 *-*-mingw* ) # actually msys 5022 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5023 ;; 5024 *-*-cygwin* ) 5025 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5026 ;; 5027 * ) # otherwise, assume *nix 5028 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5029 ;; 5030 esac 5031 ;; 5032 *-*-cygwin* ) 5033 case $build in 5034 *-*-mingw* ) # actually msys 5035 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5036 ;; 5037 *-*-cygwin* ) 5038 lt_cv_to_host_file_cmd=func_convert_file_noop 5039 ;; 5040 * ) # otherwise, assume *nix 5041 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5042 ;; 5043 esac 5044 ;; 5045 * ) # unhandled hosts (and "normal" native builds) 5046 lt_cv_to_host_file_cmd=func_convert_file_noop 5047 ;; 5048esac 5049 5050fi 5051 5052to_host_file_cmd=$lt_cv_to_host_file_cmd 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5054$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5055 5056 5057 5058 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5061$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5062if ${lt_cv_to_tool_file_cmd+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 #assume ordinary cross tools, or native build. 5066lt_cv_to_tool_file_cmd=func_convert_file_noop 5067case $host in 5068 *-*-mingw* ) 5069 case $build in 5070 *-*-mingw* ) # actually msys 5071 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5072 ;; 5073 esac 5074 ;; 5075esac 5076 5077fi 5078 5079to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5081$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5082 5083 5084 5085 5086 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5088$as_echo_n "checking for $LD option to reload object files... " >&6; } 5089if ${lt_cv_ld_reload_flag+:} false; then : 5090 $as_echo_n "(cached) " >&6 5091else 5092 lt_cv_ld_reload_flag='-r' 5093fi 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5095$as_echo "$lt_cv_ld_reload_flag" >&6; } 5096reload_flag=$lt_cv_ld_reload_flag 5097case $reload_flag in 5098"" | " "*) ;; 5099*) reload_flag=" $reload_flag" ;; 5100esac 5101reload_cmds='$LD$reload_flag -o $output$reload_objs' 5102case $host_os in 5103 cygwin* | mingw* | pw32* | cegcc*) 5104 if test yes != "$GCC"; then 5105 reload_cmds=false 5106 fi 5107 ;; 5108 darwin*) 5109 if test yes = "$GCC"; then 5110 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5111 else 5112 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5113 fi 5114 ;; 5115esac 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125if test -n "$ac_tool_prefix"; then 5126 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5127set dummy ${ac_tool_prefix}objdump; ac_word=$2 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5129$as_echo_n "checking for $ac_word... " >&6; } 5130if ${ac_cv_prog_OBJDUMP+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 if test -n "$OBJDUMP"; then 5134 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5135else 5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5137for as_dir in $PATH 5138do 5139 IFS=$as_save_IFS 5140 test -z "$as_dir" && as_dir=. 5141 for ac_exec_ext in '' $ac_executable_extensions; do 5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5143 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5145 break 2 5146 fi 5147done 5148 done 5149IFS=$as_save_IFS 5150 5151fi 5152fi 5153OBJDUMP=$ac_cv_prog_OBJDUMP 5154if test -n "$OBJDUMP"; then 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5156$as_echo "$OBJDUMP" >&6; } 5157else 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5159$as_echo "no" >&6; } 5160fi 5161 5162 5163fi 5164if test -z "$ac_cv_prog_OBJDUMP"; then 5165 ac_ct_OBJDUMP=$OBJDUMP 5166 # Extract the first word of "objdump", so it can be a program name with args. 5167set dummy objdump; ac_word=$2 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5169$as_echo_n "checking for $ac_word... " >&6; } 5170if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172else 5173 if test -n "$ac_ct_OBJDUMP"; then 5174 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5175else 5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5177for as_dir in $PATH 5178do 5179 IFS=$as_save_IFS 5180 test -z "$as_dir" && as_dir=. 5181 for ac_exec_ext in '' $ac_executable_extensions; do 5182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5183 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5185 break 2 5186 fi 5187done 5188 done 5189IFS=$as_save_IFS 5190 5191fi 5192fi 5193ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5194if test -n "$ac_ct_OBJDUMP"; then 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5196$as_echo "$ac_ct_OBJDUMP" >&6; } 5197else 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5199$as_echo "no" >&6; } 5200fi 5201 5202 if test "x$ac_ct_OBJDUMP" = x; then 5203 OBJDUMP="false" 5204 else 5205 case $cross_compiling:$ac_tool_warned in 5206yes:) 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5209ac_tool_warned=yes ;; 5210esac 5211 OBJDUMP=$ac_ct_OBJDUMP 5212 fi 5213else 5214 OBJDUMP="$ac_cv_prog_OBJDUMP" 5215fi 5216 5217test -z "$OBJDUMP" && OBJDUMP=objdump 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5228$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5229if ${lt_cv_deplibs_check_method+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 lt_cv_file_magic_cmd='$MAGIC_CMD' 5233lt_cv_file_magic_test_file= 5234lt_cv_deplibs_check_method='unknown' 5235# Need to set the preceding variable on all platforms that support 5236# interlibrary dependencies. 5237# 'none' -- dependencies not supported. 5238# 'unknown' -- same as none, but documents that we really don't know. 5239# 'pass_all' -- all dependencies passed with no checks. 5240# 'test_compile' -- check by making test program. 5241# 'file_magic [[regex]]' -- check by looking for files in library path 5242# that responds to the $file_magic_cmd with a given extended regex. 5243# If you have 'file' or equivalent on your system and you're not sure 5244# whether 'pass_all' will *always* work, you probably want this one. 5245 5246case $host_os in 5247aix[4-9]*) 5248 lt_cv_deplibs_check_method=pass_all 5249 ;; 5250 5251beos*) 5252 lt_cv_deplibs_check_method=pass_all 5253 ;; 5254 5255bsdi[45]*) 5256 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5257 lt_cv_file_magic_cmd='/usr/bin/file -L' 5258 lt_cv_file_magic_test_file=/shlib/libc.so 5259 ;; 5260 5261cygwin*) 5262 # func_win32_libid is a shell function defined in ltmain.sh 5263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5264 lt_cv_file_magic_cmd='func_win32_libid' 5265 ;; 5266 5267mingw* | pw32*) 5268 # Base MSYS/MinGW do not provide the 'file' command needed by 5269 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5270 # unless we find 'file', for example because we are cross-compiling. 5271 if ( file / ) >/dev/null 2>&1; then 5272 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5273 lt_cv_file_magic_cmd='func_win32_libid' 5274 else 5275 # Keep this pattern in sync with the one in func_win32_libid. 5276 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5277 lt_cv_file_magic_cmd='$OBJDUMP -f' 5278 fi 5279 ;; 5280 5281cegcc*) 5282 # use the weaker test based on 'objdump'. See mingw*. 5283 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5284 lt_cv_file_magic_cmd='$OBJDUMP -f' 5285 ;; 5286 5287darwin* | rhapsody*) 5288 lt_cv_deplibs_check_method=pass_all 5289 ;; 5290 5291freebsd* | dragonfly*) 5292 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5293 case $host_cpu in 5294 i*86 ) 5295 # Not sure whether the presence of OpenBSD here was a mistake. 5296 # Let's accept both of them until this is cleared up. 5297 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5298 lt_cv_file_magic_cmd=/usr/bin/file 5299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5300 ;; 5301 esac 5302 else 5303 lt_cv_deplibs_check_method=pass_all 5304 fi 5305 ;; 5306 5307haiku*) 5308 lt_cv_deplibs_check_method=pass_all 5309 ;; 5310 5311hpux10.20* | hpux11*) 5312 lt_cv_file_magic_cmd=/usr/bin/file 5313 case $host_cpu in 5314 ia64*) 5315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5316 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5317 ;; 5318 hppa*64*) 5319 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]' 5320 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5321 ;; 5322 *) 5323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5324 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5325 ;; 5326 esac 5327 ;; 5328 5329interix[3-9]*) 5330 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5332 ;; 5333 5334irix5* | irix6* | nonstopux*) 5335 case $LD in 5336 *-32|*"-32 ") libmagic=32-bit;; 5337 *-n32|*"-n32 ") libmagic=N32;; 5338 *-64|*"-64 ") libmagic=64-bit;; 5339 *) libmagic=never-match;; 5340 esac 5341 lt_cv_deplibs_check_method=pass_all 5342 ;; 5343 5344# This must be glibc/ELF. 5345linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5346 lt_cv_deplibs_check_method=pass_all 5347 ;; 5348 5349netbsd*) 5350 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5352 else 5353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5354 fi 5355 ;; 5356 5357newos6*) 5358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5359 lt_cv_file_magic_cmd=/usr/bin/file 5360 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5361 ;; 5362 5363*nto* | *qnx*) 5364 lt_cv_deplibs_check_method=pass_all 5365 ;; 5366 5367openbsd* | bitrig*) 5368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5370 else 5371 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5372 fi 5373 ;; 5374 5375osf3* | osf4* | osf5*) 5376 lt_cv_deplibs_check_method=pass_all 5377 ;; 5378 5379rdos*) 5380 lt_cv_deplibs_check_method=pass_all 5381 ;; 5382 5383solaris*) 5384 lt_cv_deplibs_check_method=pass_all 5385 ;; 5386 5387sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5388 lt_cv_deplibs_check_method=pass_all 5389 ;; 5390 5391sysv4 | sysv4.3*) 5392 case $host_vendor in 5393 motorola) 5394 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]' 5395 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5396 ;; 5397 ncr) 5398 lt_cv_deplibs_check_method=pass_all 5399 ;; 5400 sequent) 5401 lt_cv_file_magic_cmd='/bin/file' 5402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5403 ;; 5404 sni) 5405 lt_cv_file_magic_cmd='/bin/file' 5406 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5407 lt_cv_file_magic_test_file=/lib/libc.so 5408 ;; 5409 siemens) 5410 lt_cv_deplibs_check_method=pass_all 5411 ;; 5412 pc) 5413 lt_cv_deplibs_check_method=pass_all 5414 ;; 5415 esac 5416 ;; 5417 5418tpf*) 5419 lt_cv_deplibs_check_method=pass_all 5420 ;; 5421os2*) 5422 lt_cv_deplibs_check_method=pass_all 5423 ;; 5424esac 5425 5426fi 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5428$as_echo "$lt_cv_deplibs_check_method" >&6; } 5429 5430file_magic_glob= 5431want_nocaseglob=no 5432if test "$build" = "$host"; then 5433 case $host_os in 5434 mingw* | pw32*) 5435 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5436 want_nocaseglob=yes 5437 else 5438 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5439 fi 5440 ;; 5441 esac 5442fi 5443 5444file_magic_cmd=$lt_cv_file_magic_cmd 5445deplibs_check_method=$lt_cv_deplibs_check_method 5446test -z "$deplibs_check_method" && deplibs_check_method=unknown 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469if test -n "$ac_tool_prefix"; then 5470 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5471set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5473$as_echo_n "checking for $ac_word... " >&6; } 5474if ${ac_cv_prog_DLLTOOL+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476else 5477 if test -n "$DLLTOOL"; then 5478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5479else 5480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5481for as_dir in $PATH 5482do 5483 IFS=$as_save_IFS 5484 test -z "$as_dir" && as_dir=. 5485 for ac_exec_ext in '' $ac_executable_extensions; do 5486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5487 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5489 break 2 5490 fi 5491done 5492 done 5493IFS=$as_save_IFS 5494 5495fi 5496fi 5497DLLTOOL=$ac_cv_prog_DLLTOOL 5498if test -n "$DLLTOOL"; then 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5500$as_echo "$DLLTOOL" >&6; } 5501else 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5503$as_echo "no" >&6; } 5504fi 5505 5506 5507fi 5508if test -z "$ac_cv_prog_DLLTOOL"; then 5509 ac_ct_DLLTOOL=$DLLTOOL 5510 # Extract the first word of "dlltool", so it can be a program name with args. 5511set dummy dlltool; ac_word=$2 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5513$as_echo_n "checking for $ac_word... " >&6; } 5514if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516else 5517 if test -n "$ac_ct_DLLTOOL"; then 5518 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5519else 5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521for as_dir in $PATH 5522do 5523 IFS=$as_save_IFS 5524 test -z "$as_dir" && as_dir=. 5525 for ac_exec_ext in '' $ac_executable_extensions; do 5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5527 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5529 break 2 5530 fi 5531done 5532 done 5533IFS=$as_save_IFS 5534 5535fi 5536fi 5537ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5538if test -n "$ac_ct_DLLTOOL"; then 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5540$as_echo "$ac_ct_DLLTOOL" >&6; } 5541else 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5543$as_echo "no" >&6; } 5544fi 5545 5546 if test "x$ac_ct_DLLTOOL" = x; then 5547 DLLTOOL="false" 5548 else 5549 case $cross_compiling:$ac_tool_warned in 5550yes:) 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5553ac_tool_warned=yes ;; 5554esac 5555 DLLTOOL=$ac_ct_DLLTOOL 5556 fi 5557else 5558 DLLTOOL="$ac_cv_prog_DLLTOOL" 5559fi 5560 5561test -z "$DLLTOOL" && DLLTOOL=dlltool 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5573$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5574if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576else 5577 lt_cv_sharedlib_from_linklib_cmd='unknown' 5578 5579case $host_os in 5580cygwin* | mingw* | pw32* | cegcc*) 5581 # two different shell functions defined in ltmain.sh; 5582 # decide which one to use based on capabilities of $DLLTOOL 5583 case `$DLLTOOL --help 2>&1` in 5584 *--identify-strict*) 5585 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5586 ;; 5587 *) 5588 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5589 ;; 5590 esac 5591 ;; 5592*) 5593 # fallback: assume linklib IS sharedlib 5594 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5595 ;; 5596esac 5597 5598fi 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5600$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5601sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5602test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5603 5604 5605 5606 5607 5608 5609 5610 5611if test -n "$ac_tool_prefix"; then 5612 for ac_prog in ar 5613 do 5614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5615set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5617$as_echo_n "checking for $ac_word... " >&6; } 5618if ${ac_cv_prog_AR+:} false; then : 5619 $as_echo_n "(cached) " >&6 5620else 5621 if test -n "$AR"; then 5622 ac_cv_prog_AR="$AR" # Let the user override the test. 5623else 5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5625for as_dir in $PATH 5626do 5627 IFS=$as_save_IFS 5628 test -z "$as_dir" && as_dir=. 5629 for ac_exec_ext in '' $ac_executable_extensions; do 5630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5631 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5633 break 2 5634 fi 5635done 5636 done 5637IFS=$as_save_IFS 5638 5639fi 5640fi 5641AR=$ac_cv_prog_AR 5642if test -n "$AR"; then 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5644$as_echo "$AR" >&6; } 5645else 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5647$as_echo "no" >&6; } 5648fi 5649 5650 5651 test -n "$AR" && break 5652 done 5653fi 5654if test -z "$AR"; then 5655 ac_ct_AR=$AR 5656 for ac_prog in ar 5657do 5658 # Extract the first word of "$ac_prog", so it can be a program name with args. 5659set dummy $ac_prog; ac_word=$2 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5661$as_echo_n "checking for $ac_word... " >&6; } 5662if ${ac_cv_prog_ac_ct_AR+:} false; then : 5663 $as_echo_n "(cached) " >&6 5664else 5665 if test -n "$ac_ct_AR"; then 5666 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5667else 5668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5669for as_dir in $PATH 5670do 5671 IFS=$as_save_IFS 5672 test -z "$as_dir" && as_dir=. 5673 for ac_exec_ext in '' $ac_executable_extensions; do 5674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5675 ac_cv_prog_ac_ct_AR="$ac_prog" 5676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5677 break 2 5678 fi 5679done 5680 done 5681IFS=$as_save_IFS 5682 5683fi 5684fi 5685ac_ct_AR=$ac_cv_prog_ac_ct_AR 5686if test -n "$ac_ct_AR"; then 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5688$as_echo "$ac_ct_AR" >&6; } 5689else 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5691$as_echo "no" >&6; } 5692fi 5693 5694 5695 test -n "$ac_ct_AR" && break 5696done 5697 5698 if test "x$ac_ct_AR" = x; then 5699 AR="false" 5700 else 5701 case $cross_compiling:$ac_tool_warned in 5702yes:) 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5705ac_tool_warned=yes ;; 5706esac 5707 AR=$ac_ct_AR 5708 fi 5709fi 5710 5711: ${AR=ar} 5712: ${AR_FLAGS=cru} 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5725$as_echo_n "checking for archiver @FILE support... " >&6; } 5726if ${lt_cv_ar_at_file+:} false; then : 5727 $as_echo_n "(cached) " >&6 5728else 5729 lt_cv_ar_at_file=no 5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5731/* end confdefs.h. */ 5732 5733int 5734main () 5735{ 5736 5737 ; 5738 return 0; 5739} 5740_ACEOF 5741if ac_fn_c_try_compile "$LINENO"; then : 5742 echo conftest.$ac_objext > conftest.lst 5743 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5745 (eval $lt_ar_try) 2>&5 5746 ac_status=$? 5747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5748 test $ac_status = 0; } 5749 if test 0 -eq "$ac_status"; then 5750 # Ensure the archiver fails upon bogus file names. 5751 rm -f conftest.$ac_objext libconftest.a 5752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5753 (eval $lt_ar_try) 2>&5 5754 ac_status=$? 5755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5756 test $ac_status = 0; } 5757 if test 0 -ne "$ac_status"; then 5758 lt_cv_ar_at_file=@ 5759 fi 5760 fi 5761 rm -f conftest.* libconftest.a 5762 5763fi 5764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5765 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5768$as_echo "$lt_cv_ar_at_file" >&6; } 5769 5770if test no = "$lt_cv_ar_at_file"; then 5771 archiver_list_spec= 5772else 5773 archiver_list_spec=$lt_cv_ar_at_file 5774fi 5775 5776 5777 5778 5779 5780 5781 5782if test -n "$ac_tool_prefix"; then 5783 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5784set dummy ${ac_tool_prefix}strip; ac_word=$2 5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5786$as_echo_n "checking for $ac_word... " >&6; } 5787if ${ac_cv_prog_STRIP+:} false; then : 5788 $as_echo_n "(cached) " >&6 5789else 5790 if test -n "$STRIP"; then 5791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5792else 5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5794for as_dir in $PATH 5795do 5796 IFS=$as_save_IFS 5797 test -z "$as_dir" && as_dir=. 5798 for ac_exec_ext in '' $ac_executable_extensions; do 5799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5800 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5802 break 2 5803 fi 5804done 5805 done 5806IFS=$as_save_IFS 5807 5808fi 5809fi 5810STRIP=$ac_cv_prog_STRIP 5811if test -n "$STRIP"; then 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5813$as_echo "$STRIP" >&6; } 5814else 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5816$as_echo "no" >&6; } 5817fi 5818 5819 5820fi 5821if test -z "$ac_cv_prog_STRIP"; then 5822 ac_ct_STRIP=$STRIP 5823 # Extract the first word of "strip", so it can be a program name with args. 5824set dummy strip; ac_word=$2 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5826$as_echo_n "checking for $ac_word... " >&6; } 5827if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5828 $as_echo_n "(cached) " >&6 5829else 5830 if test -n "$ac_ct_STRIP"; then 5831 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5832else 5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834for as_dir in $PATH 5835do 5836 IFS=$as_save_IFS 5837 test -z "$as_dir" && as_dir=. 5838 for ac_exec_ext in '' $ac_executable_extensions; do 5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5840 ac_cv_prog_ac_ct_STRIP="strip" 5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5842 break 2 5843 fi 5844done 5845 done 5846IFS=$as_save_IFS 5847 5848fi 5849fi 5850ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5851if test -n "$ac_ct_STRIP"; then 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5853$as_echo "$ac_ct_STRIP" >&6; } 5854else 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5856$as_echo "no" >&6; } 5857fi 5858 5859 if test "x$ac_ct_STRIP" = x; then 5860 STRIP=":" 5861 else 5862 case $cross_compiling:$ac_tool_warned in 5863yes:) 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5866ac_tool_warned=yes ;; 5867esac 5868 STRIP=$ac_ct_STRIP 5869 fi 5870else 5871 STRIP="$ac_cv_prog_STRIP" 5872fi 5873 5874test -z "$STRIP" && STRIP=: 5875 5876 5877 5878 5879 5880 5881if test -n "$ac_tool_prefix"; then 5882 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5883set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5885$as_echo_n "checking for $ac_word... " >&6; } 5886if ${ac_cv_prog_RANLIB+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 if test -n "$RANLIB"; then 5890 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5891else 5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5893for as_dir in $PATH 5894do 5895 IFS=$as_save_IFS 5896 test -z "$as_dir" && as_dir=. 5897 for ac_exec_ext in '' $ac_executable_extensions; do 5898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5901 break 2 5902 fi 5903done 5904 done 5905IFS=$as_save_IFS 5906 5907fi 5908fi 5909RANLIB=$ac_cv_prog_RANLIB 5910if test -n "$RANLIB"; then 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5912$as_echo "$RANLIB" >&6; } 5913else 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5915$as_echo "no" >&6; } 5916fi 5917 5918 5919fi 5920if test -z "$ac_cv_prog_RANLIB"; then 5921 ac_ct_RANLIB=$RANLIB 5922 # Extract the first word of "ranlib", so it can be a program name with args. 5923set dummy ranlib; ac_word=$2 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5925$as_echo_n "checking for $ac_word... " >&6; } 5926if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 if test -n "$ac_ct_RANLIB"; then 5930 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5931else 5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5933for as_dir in $PATH 5934do 5935 IFS=$as_save_IFS 5936 test -z "$as_dir" && as_dir=. 5937 for ac_exec_ext in '' $ac_executable_extensions; do 5938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5939 ac_cv_prog_ac_ct_RANLIB="ranlib" 5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5941 break 2 5942 fi 5943done 5944 done 5945IFS=$as_save_IFS 5946 5947fi 5948fi 5949ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5950if test -n "$ac_ct_RANLIB"; then 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5952$as_echo "$ac_ct_RANLIB" >&6; } 5953else 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5955$as_echo "no" >&6; } 5956fi 5957 5958 if test "x$ac_ct_RANLIB" = x; then 5959 RANLIB=":" 5960 else 5961 case $cross_compiling:$ac_tool_warned in 5962yes:) 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5965ac_tool_warned=yes ;; 5966esac 5967 RANLIB=$ac_ct_RANLIB 5968 fi 5969else 5970 RANLIB="$ac_cv_prog_RANLIB" 5971fi 5972 5973test -z "$RANLIB" && RANLIB=: 5974 5975 5976 5977 5978 5979 5980# Determine commands to create old-style static archives. 5981old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5982old_postinstall_cmds='chmod 644 $oldlib' 5983old_postuninstall_cmds= 5984 5985if test -n "$RANLIB"; then 5986 case $host_os in 5987 bitrig* | openbsd*) 5988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5989 ;; 5990 *) 5991 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5992 ;; 5993 esac 5994 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5995fi 5996 5997case $host_os in 5998 darwin*) 5999 lock_old_archive_extraction=yes ;; 6000 *) 6001 lock_old_archive_extraction=no ;; 6002esac 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042# If no C compiler was specified, use CC. 6043LTCC=${LTCC-"$CC"} 6044 6045# If no C compiler flags were specified, use CFLAGS. 6046LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6047 6048# Allow CC to be a program name with arguments. 6049compiler=$CC 6050 6051 6052# Check for command to grab the raw symbol name followed by C symbol from nm. 6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6054$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6055if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6056 $as_echo_n "(cached) " >&6 6057else 6058 6059# These are sane defaults that work on at least a few old systems. 6060# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6061 6062# Character class describing NM global symbol codes. 6063symcode='[BCDEGRST]' 6064 6065# Regexp to match symbols that can be accessed directly from C. 6066sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6067 6068# Define system-specific variables. 6069case $host_os in 6070aix*) 6071 symcode='[BCDT]' 6072 ;; 6073cygwin* | mingw* | pw32* | cegcc*) 6074 symcode='[ABCDGISTW]' 6075 ;; 6076hpux*) 6077 if test ia64 = "$host_cpu"; then 6078 symcode='[ABCDEGRST]' 6079 fi 6080 ;; 6081irix* | nonstopux*) 6082 symcode='[BCDEGRST]' 6083 ;; 6084osf*) 6085 symcode='[BCDEGQRST]' 6086 ;; 6087solaris*) 6088 symcode='[BDRT]' 6089 ;; 6090sco3.2v5*) 6091 symcode='[DT]' 6092 ;; 6093sysv4.2uw2*) 6094 symcode='[DT]' 6095 ;; 6096sysv5* | sco5v6* | unixware* | OpenUNIX*) 6097 symcode='[ABDT]' 6098 ;; 6099sysv4) 6100 symcode='[DFNSTU]' 6101 ;; 6102esac 6103 6104# If we're using GNU nm, then use its standard symbol codes. 6105case `$NM -V 2>&1` in 6106*GNU* | *'with BFD'*) 6107 symcode='[ABCDGIRSTW]' ;; 6108esac 6109 6110if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6111 # Gets list of data symbols to import. 6112 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6113 # Adjust the below global symbol transforms to fixup imported variables. 6114 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6115 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6116 lt_c_name_lib_hook="\ 6117 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6118 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6119else 6120 # Disable hooks by default. 6121 lt_cv_sys_global_symbol_to_import= 6122 lt_cdecl_hook= 6123 lt_c_name_hook= 6124 lt_c_name_lib_hook= 6125fi 6126 6127# Transform an extracted symbol line into a proper C declaration. 6128# Some systems (esp. on ia64) link data and code symbols differently, 6129# so use this general approach. 6130lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6131$lt_cdecl_hook\ 6132" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6133" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6134 6135# Transform an extracted symbol line into symbol name and symbol address 6136lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6137$lt_c_name_hook\ 6138" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6139" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6140 6141# Transform an extracted symbol line into symbol name with lib prefix and 6142# symbol address. 6143lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6144$lt_c_name_lib_hook\ 6145" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6146" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6147" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6148 6149# Handle CRLF in mingw tool chain 6150opt_cr= 6151case $build_os in 6152mingw*) 6153 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6154 ;; 6155esac 6156 6157# Try without a prefix underscore, then with it. 6158for ac_symprfx in "" "_"; do 6159 6160 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6161 symxfrm="\\1 $ac_symprfx\\2 \\2" 6162 6163 # Write the raw and C identifiers. 6164 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6165 # Fake it for dumpbin and say T for any non-static function, 6166 # D for any global variable and I for any imported variable. 6167 # Also find C++ and __fastcall symbols from MSVC++, 6168 # which start with @ or ?. 6169 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6170" {last_section=section; section=\$ 3};"\ 6171" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6172" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6173" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6174" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6175" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6176" \$ 0!~/External *\|/{next};"\ 6177" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6178" {if(hide[section]) next};"\ 6179" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6180" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6181" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6182" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6183" ' prfx=^$ac_symprfx" 6184 else 6185 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6186 fi 6187 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6188 6189 # Check to see that the pipe works correctly. 6190 pipe_works=no 6191 6192 rm -f conftest* 6193 cat > conftest.$ac_ext <<_LT_EOF 6194#ifdef __cplusplus 6195extern "C" { 6196#endif 6197char nm_test_var; 6198void nm_test_func(void); 6199void nm_test_func(void){} 6200#ifdef __cplusplus 6201} 6202#endif 6203int main(){nm_test_var='a';nm_test_func();return(0);} 6204_LT_EOF 6205 6206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6207 (eval $ac_compile) 2>&5 6208 ac_status=$? 6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6210 test $ac_status = 0; }; then 6211 # Now try to grab the symbols. 6212 nlist=conftest.nm 6213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6214 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6215 ac_status=$? 6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6217 test $ac_status = 0; } && test -s "$nlist"; then 6218 # Try sorting and uniquifying the output. 6219 if sort "$nlist" | uniq > "$nlist"T; then 6220 mv -f "$nlist"T "$nlist" 6221 else 6222 rm -f "$nlist"T 6223 fi 6224 6225 # Make sure that we snagged all the symbols we need. 6226 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6227 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6228 cat <<_LT_EOF > conftest.$ac_ext 6229/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6230#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6231/* DATA imports from DLLs on WIN32 can't be const, because runtime 6232 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6233# define LT_DLSYM_CONST 6234#elif defined __osf__ 6235/* This system does not cope well with relocations in const data. */ 6236# define LT_DLSYM_CONST 6237#else 6238# define LT_DLSYM_CONST const 6239#endif 6240 6241#ifdef __cplusplus 6242extern "C" { 6243#endif 6244 6245_LT_EOF 6246 # Now generate the symbol file. 6247 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6248 6249 cat <<_LT_EOF >> conftest.$ac_ext 6250 6251/* The mapping between symbol names and symbols. */ 6252LT_DLSYM_CONST struct { 6253 const char *name; 6254 void *address; 6255} 6256lt__PROGRAM__LTX_preloaded_symbols[] = 6257{ 6258 { "@PROGRAM@", (void *) 0 }, 6259_LT_EOF 6260 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6261 cat <<\_LT_EOF >> conftest.$ac_ext 6262 {0, (void *) 0} 6263}; 6264 6265/* This works around a problem in FreeBSD linker */ 6266#ifdef FREEBSD_WORKAROUND 6267static const void *lt_preloaded_setup() { 6268 return lt__PROGRAM__LTX_preloaded_symbols; 6269} 6270#endif 6271 6272#ifdef __cplusplus 6273} 6274#endif 6275_LT_EOF 6276 # Now try linking the two files. 6277 mv conftest.$ac_objext conftstm.$ac_objext 6278 lt_globsym_save_LIBS=$LIBS 6279 lt_globsym_save_CFLAGS=$CFLAGS 6280 LIBS=conftstm.$ac_objext 6281 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6283 (eval $ac_link) 2>&5 6284 ac_status=$? 6285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6286 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6287 pipe_works=yes 6288 fi 6289 LIBS=$lt_globsym_save_LIBS 6290 CFLAGS=$lt_globsym_save_CFLAGS 6291 else 6292 echo "cannot find nm_test_func in $nlist" >&5 6293 fi 6294 else 6295 echo "cannot find nm_test_var in $nlist" >&5 6296 fi 6297 else 6298 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6299 fi 6300 else 6301 echo "$progname: failed program was:" >&5 6302 cat conftest.$ac_ext >&5 6303 fi 6304 rm -rf conftest* conftst* 6305 6306 # Do not use the global_symbol_pipe unless it works. 6307 if test yes = "$pipe_works"; then 6308 break 6309 else 6310 lt_cv_sys_global_symbol_pipe= 6311 fi 6312done 6313 6314fi 6315 6316if test -z "$lt_cv_sys_global_symbol_pipe"; then 6317 lt_cv_sys_global_symbol_to_cdecl= 6318fi 6319if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6321$as_echo "failed" >&6; } 6322else 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6324$as_echo "ok" >&6; } 6325fi 6326 6327# Response file support. 6328if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6329 nm_file_list_spec='@' 6330elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6331 nm_file_list_spec='@' 6332fi 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6371$as_echo_n "checking for sysroot... " >&6; } 6372 6373# Check whether --with-sysroot was given. 6374if test "${with_sysroot+set}" = set; then : 6375 withval=$with_sysroot; 6376else 6377 with_sysroot=no 6378fi 6379 6380 6381lt_sysroot= 6382case $with_sysroot in #( 6383 yes) 6384 if test yes = "$GCC"; then 6385 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6386 fi 6387 ;; #( 6388 /*) 6389 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6390 ;; #( 6391 no|'') 6392 ;; #( 6393 *) 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6395$as_echo "$with_sysroot" >&6; } 6396 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6397 ;; 6398esac 6399 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6401$as_echo "${lt_sysroot:-no}" >&6; } 6402 6403 6404 6405 6406 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6408$as_echo_n "checking for a working dd... " >&6; } 6409if ${ac_cv_path_lt_DD+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 printf 0123456789abcdef0123456789abcdef >conftest.i 6413cat conftest.i conftest.i >conftest2.i 6414: ${lt_DD:=$DD} 6415if test -z "$lt_DD"; then 6416 ac_path_lt_DD_found=false 6417 # Loop through the user's path and test for each of PROGNAME-LIST 6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6419for as_dir in $PATH 6420do 6421 IFS=$as_save_IFS 6422 test -z "$as_dir" && as_dir=. 6423 for ac_prog in dd; do 6424 for ac_exec_ext in '' $ac_executable_extensions; do 6425 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6426 as_fn_executable_p "$ac_path_lt_DD" || continue 6427if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6428 cmp -s conftest.i conftest.out \ 6429 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6430fi 6431 $ac_path_lt_DD_found && break 3 6432 done 6433 done 6434 done 6435IFS=$as_save_IFS 6436 if test -z "$ac_cv_path_lt_DD"; then 6437 : 6438 fi 6439else 6440 ac_cv_path_lt_DD=$lt_DD 6441fi 6442 6443rm -f conftest.i conftest2.i conftest.out 6444fi 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6446$as_echo "$ac_cv_path_lt_DD" >&6; } 6447 6448 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6450$as_echo_n "checking how to truncate binary pipes... " >&6; } 6451if ${lt_cv_truncate_bin+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 printf 0123456789abcdef0123456789abcdef >conftest.i 6455cat conftest.i conftest.i >conftest2.i 6456lt_cv_truncate_bin= 6457if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6458 cmp -s conftest.i conftest.out \ 6459 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6460fi 6461rm -f conftest.i conftest2.i conftest.out 6462test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6463fi 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6465$as_echo "$lt_cv_truncate_bin" >&6; } 6466 6467 6468 6469 6470 6471 6472 6473# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6474func_cc_basename () 6475{ 6476 for cc_temp in $*""; do 6477 case $cc_temp in 6478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6480 \-*) ;; 6481 *) break;; 6482 esac 6483 done 6484 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6485} 6486 6487# Check whether --enable-libtool-lock was given. 6488if test "${enable_libtool_lock+set}" = set; then : 6489 enableval=$enable_libtool_lock; 6490fi 6491 6492test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6493 6494# Some flags need to be propagated to the compiler or linker for good 6495# libtool support. 6496case $host in 6497ia64-*-hpux*) 6498 # Find out what ABI is being produced by ac_compile, and set mode 6499 # options accordingly. 6500 echo 'int i;' > conftest.$ac_ext 6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6502 (eval $ac_compile) 2>&5 6503 ac_status=$? 6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6505 test $ac_status = 0; }; then 6506 case `/usr/bin/file conftest.$ac_objext` in 6507 *ELF-32*) 6508 HPUX_IA64_MODE=32 6509 ;; 6510 *ELF-64*) 6511 HPUX_IA64_MODE=64 6512 ;; 6513 esac 6514 fi 6515 rm -rf conftest* 6516 ;; 6517*-*-irix6*) 6518 # Find out what ABI is being produced by ac_compile, and set linker 6519 # options accordingly. 6520 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6522 (eval $ac_compile) 2>&5 6523 ac_status=$? 6524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6525 test $ac_status = 0; }; then 6526 if test yes = "$lt_cv_prog_gnu_ld"; then 6527 case `/usr/bin/file conftest.$ac_objext` in 6528 *32-bit*) 6529 LD="${LD-ld} -melf32bsmip" 6530 ;; 6531 *N32*) 6532 LD="${LD-ld} -melf32bmipn32" 6533 ;; 6534 *64-bit*) 6535 LD="${LD-ld} -melf64bmip" 6536 ;; 6537 esac 6538 else 6539 case `/usr/bin/file conftest.$ac_objext` in 6540 *32-bit*) 6541 LD="${LD-ld} -32" 6542 ;; 6543 *N32*) 6544 LD="${LD-ld} -n32" 6545 ;; 6546 *64-bit*) 6547 LD="${LD-ld} -64" 6548 ;; 6549 esac 6550 fi 6551 fi 6552 rm -rf conftest* 6553 ;; 6554 6555mips64*-*linux*) 6556 # Find out what ABI is being produced by ac_compile, and set linker 6557 # options accordingly. 6558 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6560 (eval $ac_compile) 2>&5 6561 ac_status=$? 6562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6563 test $ac_status = 0; }; then 6564 emul=elf 6565 case `/usr/bin/file conftest.$ac_objext` in 6566 *32-bit*) 6567 emul="${emul}32" 6568 ;; 6569 *64-bit*) 6570 emul="${emul}64" 6571 ;; 6572 esac 6573 case `/usr/bin/file conftest.$ac_objext` in 6574 *MSB*) 6575 emul="${emul}btsmip" 6576 ;; 6577 *LSB*) 6578 emul="${emul}ltsmip" 6579 ;; 6580 esac 6581 case `/usr/bin/file conftest.$ac_objext` in 6582 *N32*) 6583 emul="${emul}n32" 6584 ;; 6585 esac 6586 LD="${LD-ld} -m $emul" 6587 fi 6588 rm -rf conftest* 6589 ;; 6590 6591x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6592s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6593 # Find out what ABI is being produced by ac_compile, and set linker 6594 # options accordingly. Note that the listed cases only cover the 6595 # situations where additional linker options are needed (such as when 6596 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6597 # vice versa); the common cases where no linker options are needed do 6598 # not appear in the list. 6599 echo 'int i;' > conftest.$ac_ext 6600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6601 (eval $ac_compile) 2>&5 6602 ac_status=$? 6603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6604 test $ac_status = 0; }; then 6605 case `/usr/bin/file conftest.o` in 6606 *32-bit*) 6607 case $host in 6608 x86_64-*kfreebsd*-gnu) 6609 LD="${LD-ld} -m elf_i386_fbsd" 6610 ;; 6611 x86_64-*linux*) 6612 case `/usr/bin/file conftest.o` in 6613 *x86-64*) 6614 LD="${LD-ld} -m elf32_x86_64" 6615 ;; 6616 *) 6617 LD="${LD-ld} -m elf_i386" 6618 ;; 6619 esac 6620 ;; 6621 powerpc64le-*linux*) 6622 LD="${LD-ld} -m elf32lppclinux" 6623 ;; 6624 powerpc64-*linux*) 6625 LD="${LD-ld} -m elf32ppclinux" 6626 ;; 6627 s390x-*linux*) 6628 LD="${LD-ld} -m elf_s390" 6629 ;; 6630 sparc64-*linux*) 6631 LD="${LD-ld} -m elf32_sparc" 6632 ;; 6633 esac 6634 ;; 6635 *64-bit*) 6636 case $host in 6637 x86_64-*kfreebsd*-gnu) 6638 LD="${LD-ld} -m elf_x86_64_fbsd" 6639 ;; 6640 x86_64-*linux*) 6641 LD="${LD-ld} -m elf_x86_64" 6642 ;; 6643 powerpcle-*linux*) 6644 LD="${LD-ld} -m elf64lppc" 6645 ;; 6646 powerpc-*linux*) 6647 LD="${LD-ld} -m elf64ppc" 6648 ;; 6649 s390*-*linux*|s390*-*tpf*) 6650 LD="${LD-ld} -m elf64_s390" 6651 ;; 6652 sparc*-*linux*) 6653 LD="${LD-ld} -m elf64_sparc" 6654 ;; 6655 esac 6656 ;; 6657 esac 6658 fi 6659 rm -rf conftest* 6660 ;; 6661 6662*-*-sco3.2v5*) 6663 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6664 SAVE_CFLAGS=$CFLAGS 6665 CFLAGS="$CFLAGS -belf" 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6667$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6668if ${lt_cv_cc_needs_belf+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 ac_ext=c 6672ac_cpp='$CPP $CPPFLAGS' 6673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6675ac_compiler_gnu=$ac_cv_c_compiler_gnu 6676 6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6678/* end confdefs.h. */ 6679 6680int 6681main () 6682{ 6683 6684 ; 6685 return 0; 6686} 6687_ACEOF 6688if ac_fn_c_try_link "$LINENO"; then : 6689 lt_cv_cc_needs_belf=yes 6690else 6691 lt_cv_cc_needs_belf=no 6692fi 6693rm -f core conftest.err conftest.$ac_objext \ 6694 conftest$ac_exeext conftest.$ac_ext 6695 ac_ext=c 6696ac_cpp='$CPP $CPPFLAGS' 6697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6699ac_compiler_gnu=$ac_cv_c_compiler_gnu 6700 6701fi 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6703$as_echo "$lt_cv_cc_needs_belf" >&6; } 6704 if test yes != "$lt_cv_cc_needs_belf"; then 6705 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6706 CFLAGS=$SAVE_CFLAGS 6707 fi 6708 ;; 6709*-*solaris*) 6710 # Find out what ABI is being produced by ac_compile, and set linker 6711 # options accordingly. 6712 echo 'int i;' > conftest.$ac_ext 6713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6714 (eval $ac_compile) 2>&5 6715 ac_status=$? 6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6717 test $ac_status = 0; }; then 6718 case `/usr/bin/file conftest.o` in 6719 *64-bit*) 6720 case $lt_cv_prog_gnu_ld in 6721 yes*) 6722 case $host in 6723 i?86-*-solaris*|x86_64-*-solaris*) 6724 LD="${LD-ld} -m elf_x86_64" 6725 ;; 6726 sparc*-*-solaris*) 6727 LD="${LD-ld} -m elf64_sparc" 6728 ;; 6729 esac 6730 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6731 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6732 LD=${LD-ld}_sol2 6733 fi 6734 ;; 6735 *) 6736 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6737 LD="${LD-ld} -64" 6738 fi 6739 ;; 6740 esac 6741 ;; 6742 esac 6743 fi 6744 rm -rf conftest* 6745 ;; 6746esac 6747 6748need_locks=$enable_libtool_lock 6749 6750if test -n "$ac_tool_prefix"; then 6751 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6752set dummy ${ac_tool_prefix}mt; ac_word=$2 6753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6754$as_echo_n "checking for $ac_word... " >&6; } 6755if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6756 $as_echo_n "(cached) " >&6 6757else 6758 if test -n "$MANIFEST_TOOL"; then 6759 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6760else 6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6762for as_dir in $PATH 6763do 6764 IFS=$as_save_IFS 6765 test -z "$as_dir" && as_dir=. 6766 for ac_exec_ext in '' $ac_executable_extensions; do 6767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6768 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6770 break 2 6771 fi 6772done 6773 done 6774IFS=$as_save_IFS 6775 6776fi 6777fi 6778MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6779if test -n "$MANIFEST_TOOL"; then 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6781$as_echo "$MANIFEST_TOOL" >&6; } 6782else 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6784$as_echo "no" >&6; } 6785fi 6786 6787 6788fi 6789if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6790 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6791 # Extract the first word of "mt", so it can be a program name with args. 6792set dummy mt; ac_word=$2 6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6794$as_echo_n "checking for $ac_word... " >&6; } 6795if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6796 $as_echo_n "(cached) " >&6 6797else 6798 if test -n "$ac_ct_MANIFEST_TOOL"; then 6799 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6800else 6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6802for as_dir in $PATH 6803do 6804 IFS=$as_save_IFS 6805 test -z "$as_dir" && as_dir=. 6806 for ac_exec_ext in '' $ac_executable_extensions; do 6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6808 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6810 break 2 6811 fi 6812done 6813 done 6814IFS=$as_save_IFS 6815 6816fi 6817fi 6818ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6819if test -n "$ac_ct_MANIFEST_TOOL"; then 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6821$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6822else 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6824$as_echo "no" >&6; } 6825fi 6826 6827 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6828 MANIFEST_TOOL=":" 6829 else 6830 case $cross_compiling:$ac_tool_warned in 6831yes:) 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6834ac_tool_warned=yes ;; 6835esac 6836 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6837 fi 6838else 6839 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6840fi 6841 6842test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6844$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6845if ${lt_cv_path_mainfest_tool+:} false; then : 6846 $as_echo_n "(cached) " >&6 6847else 6848 lt_cv_path_mainfest_tool=no 6849 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6850 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6851 cat conftest.err >&5 6852 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6853 lt_cv_path_mainfest_tool=yes 6854 fi 6855 rm -f conftest* 6856fi 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6858$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6859if test yes != "$lt_cv_path_mainfest_tool"; then 6860 MANIFEST_TOOL=: 6861fi 6862 6863 6864 6865 6866 6867 6868 case $host_os in 6869 rhapsody* | darwin*) 6870 if test -n "$ac_tool_prefix"; then 6871 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6872set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then : 6876 $as_echo_n "(cached) " >&6 6877else 6878 if test -n "$DSYMUTIL"; then 6879 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil" 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 6898DSYMUTIL=$ac_cv_prog_DSYMUTIL 6899if test -n "$DSYMUTIL"; then 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6901$as_echo "$DSYMUTIL" >&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_DSYMUTIL"; then 6910 ac_ct_DSYMUTIL=$DSYMUTIL 6911 # Extract the first word of "dsymutil", so it can be a program name with args. 6912set dummy dsymutil; 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_DSYMUTIL+:} false; then : 6916 $as_echo_n "(cached) " >&6 6917else 6918 if test -n "$ac_ct_DSYMUTIL"; then 6919 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil" 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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6939if test -n "$ac_ct_DSYMUTIL"; then 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6941$as_echo "$ac_ct_DSYMUTIL" >&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_DSYMUTIL" = x; then 6948 DSYMUTIL=":" 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 DSYMUTIL=$ac_ct_DSYMUTIL 6957 fi 6958else 6959 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6960fi 6961 6962 if test -n "$ac_tool_prefix"; then 6963 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6964set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 if test -n "$NMEDIT"; then 6971 ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit" 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 6990NMEDIT=$ac_cv_prog_NMEDIT 6991if test -n "$NMEDIT"; then 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6993$as_echo "$NMEDIT" >&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_NMEDIT"; then 7002 ac_ct_NMEDIT=$NMEDIT 7003 # Extract the first word of "nmedit", so it can be a program name with args. 7004set dummy nmedit; 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_NMEDIT+:} false; then : 7008 $as_echo_n "(cached) " >&6 7009else 7010 if test -n "$ac_ct_NMEDIT"; then 7011 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_NMEDIT="nmedit" 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_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7031if test -n "$ac_ct_NMEDIT"; then 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7033$as_echo "$ac_ct_NMEDIT" >&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_NMEDIT" = x; then 7040 NMEDIT=":" 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 NMEDIT=$ac_ct_NMEDIT 7049 fi 7050else 7051 NMEDIT="$ac_cv_prog_NMEDIT" 7052fi 7053 7054 if test -n "$ac_tool_prefix"; then 7055 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7056set dummy ${ac_tool_prefix}lipo; ac_word=$2 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7058$as_echo_n "checking for $ac_word... " >&6; } 7059if ${ac_cv_prog_LIPO+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 if test -n "$LIPO"; then 7063 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7064else 7065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7066for as_dir in $PATH 7067do 7068 IFS=$as_save_IFS 7069 test -z "$as_dir" && as_dir=. 7070 for ac_exec_ext in '' $ac_executable_extensions; do 7071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7072 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7074 break 2 7075 fi 7076done 7077 done 7078IFS=$as_save_IFS 7079 7080fi 7081fi 7082LIPO=$ac_cv_prog_LIPO 7083if test -n "$LIPO"; then 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7085$as_echo "$LIPO" >&6; } 7086else 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7088$as_echo "no" >&6; } 7089fi 7090 7091 7092fi 7093if test -z "$ac_cv_prog_LIPO"; then 7094 ac_ct_LIPO=$LIPO 7095 # Extract the first word of "lipo", so it can be a program name with args. 7096set dummy lipo; ac_word=$2 7097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7098$as_echo_n "checking for $ac_word... " >&6; } 7099if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7100 $as_echo_n "(cached) " >&6 7101else 7102 if test -n "$ac_ct_LIPO"; then 7103 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7104else 7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7106for as_dir in $PATH 7107do 7108 IFS=$as_save_IFS 7109 test -z "$as_dir" && as_dir=. 7110 for ac_exec_ext in '' $ac_executable_extensions; do 7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7112 ac_cv_prog_ac_ct_LIPO="lipo" 7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7114 break 2 7115 fi 7116done 7117 done 7118IFS=$as_save_IFS 7119 7120fi 7121fi 7122ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7123if test -n "$ac_ct_LIPO"; then 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7125$as_echo "$ac_ct_LIPO" >&6; } 7126else 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7128$as_echo "no" >&6; } 7129fi 7130 7131 if test "x$ac_ct_LIPO" = x; then 7132 LIPO=":" 7133 else 7134 case $cross_compiling:$ac_tool_warned in 7135yes:) 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7138ac_tool_warned=yes ;; 7139esac 7140 LIPO=$ac_ct_LIPO 7141 fi 7142else 7143 LIPO="$ac_cv_prog_LIPO" 7144fi 7145 7146 if test -n "$ac_tool_prefix"; then 7147 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7148set dummy ${ac_tool_prefix}otool; ac_word=$2 7149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7150$as_echo_n "checking for $ac_word... " >&6; } 7151if ${ac_cv_prog_OTOOL+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 if test -n "$OTOOL"; then 7155 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7156else 7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7158for as_dir in $PATH 7159do 7160 IFS=$as_save_IFS 7161 test -z "$as_dir" && as_dir=. 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7164 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7166 break 2 7167 fi 7168done 7169 done 7170IFS=$as_save_IFS 7171 7172fi 7173fi 7174OTOOL=$ac_cv_prog_OTOOL 7175if test -n "$OTOOL"; then 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7177$as_echo "$OTOOL" >&6; } 7178else 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7180$as_echo "no" >&6; } 7181fi 7182 7183 7184fi 7185if test -z "$ac_cv_prog_OTOOL"; then 7186 ac_ct_OTOOL=$OTOOL 7187 # Extract the first word of "otool", so it can be a program name with args. 7188set dummy otool; ac_word=$2 7189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7190$as_echo_n "checking for $ac_word... " >&6; } 7191if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193else 7194 if test -n "$ac_ct_OTOOL"; then 7195 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7196else 7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7198for as_dir in $PATH 7199do 7200 IFS=$as_save_IFS 7201 test -z "$as_dir" && as_dir=. 7202 for ac_exec_ext in '' $ac_executable_extensions; do 7203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7204 ac_cv_prog_ac_ct_OTOOL="otool" 7205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7206 break 2 7207 fi 7208done 7209 done 7210IFS=$as_save_IFS 7211 7212fi 7213fi 7214ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7215if test -n "$ac_ct_OTOOL"; then 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7217$as_echo "$ac_ct_OTOOL" >&6; } 7218else 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7220$as_echo "no" >&6; } 7221fi 7222 7223 if test "x$ac_ct_OTOOL" = x; then 7224 OTOOL=":" 7225 else 7226 case $cross_compiling:$ac_tool_warned in 7227yes:) 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7230ac_tool_warned=yes ;; 7231esac 7232 OTOOL=$ac_ct_OTOOL 7233 fi 7234else 7235 OTOOL="$ac_cv_prog_OTOOL" 7236fi 7237 7238 if test -n "$ac_tool_prefix"; then 7239 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7240set dummy ${ac_tool_prefix}otool64; ac_word=$2 7241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7242$as_echo_n "checking for $ac_word... " >&6; } 7243if ${ac_cv_prog_OTOOL64+:} false; then : 7244 $as_echo_n "(cached) " >&6 7245else 7246 if test -n "$OTOOL64"; then 7247 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7248else 7249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7250for as_dir in $PATH 7251do 7252 IFS=$as_save_IFS 7253 test -z "$as_dir" && as_dir=. 7254 for ac_exec_ext in '' $ac_executable_extensions; do 7255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7256 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7258 break 2 7259 fi 7260done 7261 done 7262IFS=$as_save_IFS 7263 7264fi 7265fi 7266OTOOL64=$ac_cv_prog_OTOOL64 7267if test -n "$OTOOL64"; then 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7269$as_echo "$OTOOL64" >&6; } 7270else 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7272$as_echo "no" >&6; } 7273fi 7274 7275 7276fi 7277if test -z "$ac_cv_prog_OTOOL64"; then 7278 ac_ct_OTOOL64=$OTOOL64 7279 # Extract the first word of "otool64", so it can be a program name with args. 7280set dummy otool64; ac_word=$2 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7282$as_echo_n "checking for $ac_word... " >&6; } 7283if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7284 $as_echo_n "(cached) " >&6 7285else 7286 if test -n "$ac_ct_OTOOL64"; then 7287 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7288else 7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7290for as_dir in $PATH 7291do 7292 IFS=$as_save_IFS 7293 test -z "$as_dir" && as_dir=. 7294 for ac_exec_ext in '' $ac_executable_extensions; do 7295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7296 ac_cv_prog_ac_ct_OTOOL64="otool64" 7297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7298 break 2 7299 fi 7300done 7301 done 7302IFS=$as_save_IFS 7303 7304fi 7305fi 7306ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7307if test -n "$ac_ct_OTOOL64"; then 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7309$as_echo "$ac_ct_OTOOL64" >&6; } 7310else 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7312$as_echo "no" >&6; } 7313fi 7314 7315 if test "x$ac_ct_OTOOL64" = x; then 7316 OTOOL64=":" 7317 else 7318 case $cross_compiling:$ac_tool_warned in 7319yes:) 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7322ac_tool_warned=yes ;; 7323esac 7324 OTOOL64=$ac_ct_OTOOL64 7325 fi 7326else 7327 OTOOL64="$ac_cv_prog_OTOOL64" 7328fi 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7357$as_echo_n "checking for -single_module linker flag... " >&6; } 7358if ${lt_cv_apple_cc_single_mod+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360else 7361 lt_cv_apple_cc_single_mod=no 7362 if test -z "$LT_MULTI_MODULE"; then 7363 # By default we will add the -single_module flag. You can override 7364 # by either setting the environment variable LT_MULTI_MODULE 7365 # non-empty at configure time, or by adding -multi_module to the 7366 # link flags. 7367 rm -rf libconftest.dylib* 7368 echo "int foo(void){return 1;}" > conftest.c 7369 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7370-dynamiclib -Wl,-single_module conftest.c" >&5 7371 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7372 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7373 _lt_result=$? 7374 # If there is a non-empty error log, and "single_module" 7375 # appears in it, assume the flag caused a linker warning 7376 if test -s conftest.err && $GREP single_module conftest.err; then 7377 cat conftest.err >&5 7378 # Otherwise, if the output was created with a 0 exit code from 7379 # the compiler, it worked. 7380 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7381 lt_cv_apple_cc_single_mod=yes 7382 else 7383 cat conftest.err >&5 7384 fi 7385 rm -rf libconftest.dylib* 7386 rm -f conftest.* 7387 fi 7388fi 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7390$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7391 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7393$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7394if ${lt_cv_ld_exported_symbols_list+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 lt_cv_ld_exported_symbols_list=no 7398 save_LDFLAGS=$LDFLAGS 7399 echo "_main" > conftest.sym 7400 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7402/* end confdefs.h. */ 7403 7404int 7405main () 7406{ 7407 7408 ; 7409 return 0; 7410} 7411_ACEOF 7412if ac_fn_c_try_link "$LINENO"; then : 7413 lt_cv_ld_exported_symbols_list=yes 7414else 7415 lt_cv_ld_exported_symbols_list=no 7416fi 7417rm -f core conftest.err conftest.$ac_objext \ 7418 conftest$ac_exeext conftest.$ac_ext 7419 LDFLAGS=$save_LDFLAGS 7420 7421fi 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7423$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7424 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7426$as_echo_n "checking for -force_load linker flag... " >&6; } 7427if ${lt_cv_ld_force_load+:} false; then : 7428 $as_echo_n "(cached) " >&6 7429else 7430 lt_cv_ld_force_load=no 7431 cat > conftest.c << _LT_EOF 7432int forced_loaded() { return 2;} 7433_LT_EOF 7434 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7435 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7436 echo "$AR cru libconftest.a conftest.o" >&5 7437 $AR cru libconftest.a conftest.o 2>&5 7438 echo "$RANLIB libconftest.a" >&5 7439 $RANLIB libconftest.a 2>&5 7440 cat > conftest.c << _LT_EOF 7441int main() { return 0;} 7442_LT_EOF 7443 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7444 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7445 _lt_result=$? 7446 if test -s conftest.err && $GREP force_load conftest.err; then 7447 cat conftest.err >&5 7448 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7449 lt_cv_ld_force_load=yes 7450 else 7451 cat conftest.err >&5 7452 fi 7453 rm -f conftest.err libconftest.a conftest conftest.c 7454 rm -rf conftest.dSYM 7455 7456fi 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7458$as_echo "$lt_cv_ld_force_load" >&6; } 7459 case $host_os in 7460 rhapsody* | darwin1.[012]) 7461 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7462 darwin1.*) 7463 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7464 darwin*) # darwin 5.x on 7465 # if running on 10.5 or later, the deployment target defaults 7466 # to the OS version, if on x86, and 10.4, the deployment 7467 # target defaults to 10.4. Don't you love it? 7468 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7469 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7470 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7471 10.[012][,.]*) 7472 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7473 10.*) 7474 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7475 esac 7476 ;; 7477 esac 7478 if test yes = "$lt_cv_apple_cc_single_mod"; then 7479 _lt_dar_single_mod='$single_module' 7480 fi 7481 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7482 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7483 else 7484 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7485 fi 7486 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7487 _lt_dsymutil='~$DSYMUTIL $lib || :' 7488 else 7489 _lt_dsymutil= 7490 fi 7491 ;; 7492 esac 7493 7494# func_munge_path_list VARIABLE PATH 7495# ----------------------------------- 7496# VARIABLE is name of variable containing _space_ separated list of 7497# directories to be munged by the contents of PATH, which is string 7498# having a format: 7499# "DIR[:DIR]:" 7500# string "DIR[ DIR]" will be prepended to VARIABLE 7501# ":DIR[:DIR]" 7502# string "DIR[ DIR]" will be appended to VARIABLE 7503# "DIRP[:DIRP]::[DIRA:]DIRA" 7504# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7505# "DIRA[ DIRA]" will be appended to VARIABLE 7506# "DIR[:DIR]" 7507# VARIABLE will be replaced by "DIR[ DIR]" 7508func_munge_path_list () 7509{ 7510 case x$2 in 7511 x) 7512 ;; 7513 *:) 7514 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7515 ;; 7516 x:*) 7517 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7518 ;; 7519 *::*) 7520 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7521 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7522 ;; 7523 *) 7524 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7525 ;; 7526 esac 7527} 7528 7529ac_ext=c 7530ac_cpp='$CPP $CPPFLAGS' 7531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7533ac_compiler_gnu=$ac_cv_c_compiler_gnu 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7535$as_echo_n "checking how to run the C preprocessor... " >&6; } 7536# On Suns, sometimes $CPP names a directory. 7537if test -n "$CPP" && test -d "$CPP"; then 7538 CPP= 7539fi 7540if test -z "$CPP"; then 7541 if ${ac_cv_prog_CPP+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 # Double quotes because CPP needs to be expanded 7545 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7546 do 7547 ac_preproc_ok=false 7548for ac_c_preproc_warn_flag in '' yes 7549do 7550 # Use a header file that comes with gcc, so configuring glibc 7551 # with a fresh cross-compiler works. 7552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7553 # <limits.h> exists even on freestanding compilers. 7554 # On the NeXT, cc -E runs the code through the compiler's parser, 7555 # not just through cpp. "Syntax error" is here to catch this case. 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558#ifdef __STDC__ 7559# include <limits.h> 7560#else 7561# include <assert.h> 7562#endif 7563 Syntax error 7564_ACEOF 7565if ac_fn_c_try_cpp "$LINENO"; then : 7566 7567else 7568 # Broken: fails on valid input. 7569continue 7570fi 7571rm -f conftest.err conftest.i conftest.$ac_ext 7572 7573 # OK, works on sane cases. Now check whether nonexistent headers 7574 # can be detected and how. 7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7576/* end confdefs.h. */ 7577#include <ac_nonexistent.h> 7578_ACEOF 7579if ac_fn_c_try_cpp "$LINENO"; then : 7580 # Broken: success on invalid input. 7581continue 7582else 7583 # Passes both tests. 7584ac_preproc_ok=: 7585break 7586fi 7587rm -f conftest.err conftest.i conftest.$ac_ext 7588 7589done 7590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7591rm -f conftest.i conftest.err conftest.$ac_ext 7592if $ac_preproc_ok; then : 7593 break 7594fi 7595 7596 done 7597 ac_cv_prog_CPP=$CPP 7598 7599fi 7600 CPP=$ac_cv_prog_CPP 7601else 7602 ac_cv_prog_CPP=$CPP 7603fi 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7605$as_echo "$CPP" >&6; } 7606ac_preproc_ok=false 7607for ac_c_preproc_warn_flag in '' yes 7608do 7609 # Use a header file that comes with gcc, so configuring glibc 7610 # with a fresh cross-compiler works. 7611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7612 # <limits.h> exists even on freestanding compilers. 7613 # On the NeXT, cc -E runs the code through the compiler's parser, 7614 # not just through cpp. "Syntax error" is here to catch this case. 7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7616/* end confdefs.h. */ 7617#ifdef __STDC__ 7618# include <limits.h> 7619#else 7620# include <assert.h> 7621#endif 7622 Syntax error 7623_ACEOF 7624if ac_fn_c_try_cpp "$LINENO"; then : 7625 7626else 7627 # Broken: fails on valid input. 7628continue 7629fi 7630rm -f conftest.err conftest.i conftest.$ac_ext 7631 7632 # OK, works on sane cases. Now check whether nonexistent headers 7633 # can be detected and how. 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635/* end confdefs.h. */ 7636#include <ac_nonexistent.h> 7637_ACEOF 7638if ac_fn_c_try_cpp "$LINENO"; then : 7639 # Broken: success on invalid input. 7640continue 7641else 7642 # Passes both tests. 7643ac_preproc_ok=: 7644break 7645fi 7646rm -f conftest.err conftest.i conftest.$ac_ext 7647 7648done 7649# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7650rm -f conftest.i conftest.err conftest.$ac_ext 7651if $ac_preproc_ok; then : 7652 7653else 7654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7656as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7657See \`config.log' for more details" "$LINENO" 5; } 7658fi 7659 7660ac_ext=c 7661ac_cpp='$CPP $CPPFLAGS' 7662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7664ac_compiler_gnu=$ac_cv_c_compiler_gnu 7665 7666 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7668$as_echo_n "checking for ANSI C header files... " >&6; } 7669if ${ac_cv_header_stdc+:} false; then : 7670 $as_echo_n "(cached) " >&6 7671else 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674#include <stdlib.h> 7675#include <stdarg.h> 7676#include <string.h> 7677#include <float.h> 7678 7679int 7680main () 7681{ 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_compile "$LINENO"; then : 7688 ac_cv_header_stdc=yes 7689else 7690 ac_cv_header_stdc=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693 7694if test $ac_cv_header_stdc = yes; then 7695 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697/* end confdefs.h. */ 7698#include <string.h> 7699 7700_ACEOF 7701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7702 $EGREP "memchr" >/dev/null 2>&1; then : 7703 7704else 7705 ac_cv_header_stdc=no 7706fi 7707rm -f conftest* 7708 7709fi 7710 7711if test $ac_cv_header_stdc = yes; then 7712 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7714/* end confdefs.h. */ 7715#include <stdlib.h> 7716 7717_ACEOF 7718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7719 $EGREP "free" >/dev/null 2>&1; then : 7720 7721else 7722 ac_cv_header_stdc=no 7723fi 7724rm -f conftest* 7725 7726fi 7727 7728if test $ac_cv_header_stdc = yes; then 7729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7730 if test "$cross_compiling" = yes; then : 7731 : 7732else 7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7734/* end confdefs.h. */ 7735#include <ctype.h> 7736#include <stdlib.h> 7737#if ((' ' & 0x0FF) == 0x020) 7738# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7739# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7740#else 7741# define ISLOWER(c) \ 7742 (('a' <= (c) && (c) <= 'i') \ 7743 || ('j' <= (c) && (c) <= 'r') \ 7744 || ('s' <= (c) && (c) <= 'z')) 7745# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7746#endif 7747 7748#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7749int 7750main () 7751{ 7752 int i; 7753 for (i = 0; i < 256; i++) 7754 if (XOR (islower (i), ISLOWER (i)) 7755 || toupper (i) != TOUPPER (i)) 7756 return 2; 7757 return 0; 7758} 7759_ACEOF 7760if ac_fn_c_try_run "$LINENO"; then : 7761 7762else 7763 ac_cv_header_stdc=no 7764fi 7765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7766 conftest.$ac_objext conftest.beam conftest.$ac_ext 7767fi 7768 7769fi 7770fi 7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7772$as_echo "$ac_cv_header_stdc" >&6; } 7773if test $ac_cv_header_stdc = yes; then 7774 7775$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7776 7777fi 7778 7779# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7780for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7781 inttypes.h stdint.h unistd.h 7782do : 7783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7784ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7785" 7786if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7787 cat >>confdefs.h <<_ACEOF 7788#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7789_ACEOF 7790 7791fi 7792 7793done 7794 7795 7796for ac_header in dlfcn.h 7797do : 7798 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7799" 7800if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7801 cat >>confdefs.h <<_ACEOF 7802#define HAVE_DLFCN_H 1 7803_ACEOF 7804 7805fi 7806 7807done 7808 7809 7810 7811 7812 7813# Set options 7814 7815 7816 7817 enable_dlopen=no 7818 7819 7820 enable_win32_dll=no 7821 7822 7823 7824 # Check whether --enable-static was given. 7825if test "${enable_static+set}" = set; then : 7826 enableval=$enable_static; p=${PACKAGE-default} 7827 case $enableval in 7828 yes) enable_static=yes ;; 7829 no) enable_static=no ;; 7830 *) 7831 enable_static=no 7832 # Look at the argument we got. We use all the common list separators. 7833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7834 for pkg in $enableval; do 7835 IFS=$lt_save_ifs 7836 if test "X$pkg" = "X$p"; then 7837 enable_static=yes 7838 fi 7839 done 7840 IFS=$lt_save_ifs 7841 ;; 7842 esac 7843else 7844 enable_static=yes 7845fi 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856# Check whether --with-pic was given. 7857if test "${with_pic+set}" = set; then : 7858 withval=$with_pic; lt_p=${PACKAGE-default} 7859 case $withval in 7860 yes|no) pic_mode=$withval ;; 7861 *) 7862 pic_mode=default 7863 # Look at the argument we got. We use all the common list separators. 7864 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7865 for lt_pkg in $withval; do 7866 IFS=$lt_save_ifs 7867 if test "X$lt_pkg" = "X$lt_p"; then 7868 pic_mode=yes 7869 fi 7870 done 7871 IFS=$lt_save_ifs 7872 ;; 7873 esac 7874else 7875 pic_mode=default 7876fi 7877 7878 7879 7880 7881 7882 7883 7884 7885 # Check whether --enable-fast-install was given. 7886if test "${enable_fast_install+set}" = set; then : 7887 enableval=$enable_fast_install; p=${PACKAGE-default} 7888 case $enableval in 7889 yes) enable_fast_install=yes ;; 7890 no) enable_fast_install=no ;; 7891 *) 7892 enable_fast_install=no 7893 # Look at the argument we got. We use all the common list separators. 7894 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7895 for pkg in $enableval; do 7896 IFS=$lt_save_ifs 7897 if test "X$pkg" = "X$p"; then 7898 enable_fast_install=yes 7899 fi 7900 done 7901 IFS=$lt_save_ifs 7902 ;; 7903 esac 7904else 7905 enable_fast_install=yes 7906fi 7907 7908 7909 7910 7911 7912 7913 7914 7915 shared_archive_member_spec= 7916case $host,$enable_shared in 7917power*-*-aix[5-9]*,yes) 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7919$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7920 7921# Check whether --with-aix-soname was given. 7922if test "${with_aix_soname+set}" = set; then : 7923 withval=$with_aix_soname; case $withval in 7924 aix|svr4|both) 7925 ;; 7926 *) 7927 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7928 ;; 7929 esac 7930 lt_cv_with_aix_soname=$with_aix_soname 7931else 7932 if ${lt_cv_with_aix_soname+:} false; then : 7933 $as_echo_n "(cached) " >&6 7934else 7935 lt_cv_with_aix_soname=aix 7936fi 7937 7938 with_aix_soname=$lt_cv_with_aix_soname 7939fi 7940 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7942$as_echo "$with_aix_soname" >&6; } 7943 if test aix != "$with_aix_soname"; then 7944 # For the AIX way of multilib, we name the shared archive member 7945 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7946 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7947 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7948 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7949 if test 64 = "${OBJECT_MODE-32}"; then 7950 shared_archive_member_spec=shr_64 7951 else 7952 shared_archive_member_spec=shr 7953 fi 7954 fi 7955 ;; 7956*) 7957 with_aix_soname=aix 7958 ;; 7959esac 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970# This can be used to rebuild libtool when needed 7971LIBTOOL_DEPS=$ltmain 7972 7973# Always use our own libtool. 7974LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005test -z "$LN_S" && LN_S="ln -s" 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020if test -n "${ZSH_VERSION+set}"; then 8021 setopt NO_GLOB_SUBST 8022fi 8023 8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8025$as_echo_n "checking for objdir... " >&6; } 8026if ${lt_cv_objdir+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 rm -f .libs 2>/dev/null 8030mkdir .libs 2>/dev/null 8031if test -d .libs; then 8032 lt_cv_objdir=.libs 8033else 8034 # MS-DOS does not allow filenames that begin with a dot. 8035 lt_cv_objdir=_libs 8036fi 8037rmdir .libs 2>/dev/null 8038fi 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8040$as_echo "$lt_cv_objdir" >&6; } 8041objdir=$lt_cv_objdir 8042 8043 8044 8045 8046 8047cat >>confdefs.h <<_ACEOF 8048#define LT_OBJDIR "$lt_cv_objdir/" 8049_ACEOF 8050 8051 8052 8053 8054case $host_os in 8055aix3*) 8056 # AIX sometimes has problems with the GCC collect2 program. For some 8057 # reason, if we set the COLLECT_NAMES environment variable, the problems 8058 # vanish in a puff of smoke. 8059 if test set != "${COLLECT_NAMES+set}"; then 8060 COLLECT_NAMES= 8061 export COLLECT_NAMES 8062 fi 8063 ;; 8064esac 8065 8066# Global variables: 8067ofile=libtool 8068can_build_shared=yes 8069 8070# All known linkers require a '.a' archive for static linking (except MSVC, 8071# which needs '.lib'). 8072libext=a 8073 8074with_gnu_ld=$lt_cv_prog_gnu_ld 8075 8076old_CC=$CC 8077old_CFLAGS=$CFLAGS 8078 8079# Set sane defaults for various variables 8080test -z "$CC" && CC=cc 8081test -z "$LTCC" && LTCC=$CC 8082test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8083test -z "$LD" && LD=ld 8084test -z "$ac_objext" && ac_objext=o 8085 8086func_cc_basename $compiler 8087cc_basename=$func_cc_basename_result 8088 8089 8090# Only perform the check for file, if the check method requires it 8091test -z "$MAGIC_CMD" && MAGIC_CMD=file 8092case $deplibs_check_method in 8093file_magic*) 8094 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8096$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8097if ${lt_cv_path_MAGIC_CMD+:} false; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 case $MAGIC_CMD in 8101[\\/*] | ?:[\\/]*) 8102 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8103 ;; 8104*) 8105 lt_save_MAGIC_CMD=$MAGIC_CMD 8106 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8108 for ac_dir in $ac_dummy; do 8109 IFS=$lt_save_ifs 8110 test -z "$ac_dir" && ac_dir=. 8111 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8112 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8113 if test -n "$file_magic_test_file"; then 8114 case $deplibs_check_method in 8115 "file_magic "*) 8116 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8117 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8119 $EGREP "$file_magic_regex" > /dev/null; then 8120 : 8121 else 8122 cat <<_LT_EOF 1>&2 8123 8124*** Warning: the command libtool uses to detect shared libraries, 8125*** $file_magic_cmd, produces output that libtool cannot recognize. 8126*** The result is that libtool may fail to recognize shared libraries 8127*** as such. This will affect the creation of libtool libraries that 8128*** depend on shared libraries, but programs linked with such libtool 8129*** libraries will work regardless of this problem. Nevertheless, you 8130*** may want to report the problem to your system manager and/or to 8131*** bug-libtool@gnu.org 8132 8133_LT_EOF 8134 fi ;; 8135 esac 8136 fi 8137 break 8138 fi 8139 done 8140 IFS=$lt_save_ifs 8141 MAGIC_CMD=$lt_save_MAGIC_CMD 8142 ;; 8143esac 8144fi 8145 8146MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8147if test -n "$MAGIC_CMD"; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8149$as_echo "$MAGIC_CMD" >&6; } 8150else 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8152$as_echo "no" >&6; } 8153fi 8154 8155 8156 8157 8158 8159if test -z "$lt_cv_path_MAGIC_CMD"; then 8160 if test -n "$ac_tool_prefix"; then 8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8162$as_echo_n "checking for file... " >&6; } 8163if ${lt_cv_path_MAGIC_CMD+:} false; then : 8164 $as_echo_n "(cached) " >&6 8165else 8166 case $MAGIC_CMD in 8167[\\/*] | ?:[\\/]*) 8168 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8169 ;; 8170*) 8171 lt_save_MAGIC_CMD=$MAGIC_CMD 8172 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8174 for ac_dir in $ac_dummy; do 8175 IFS=$lt_save_ifs 8176 test -z "$ac_dir" && ac_dir=. 8177 if test -f "$ac_dir/file"; then 8178 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8179 if test -n "$file_magic_test_file"; then 8180 case $deplibs_check_method in 8181 "file_magic "*) 8182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8183 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8185 $EGREP "$file_magic_regex" > /dev/null; then 8186 : 8187 else 8188 cat <<_LT_EOF 1>&2 8189 8190*** Warning: the command libtool uses to detect shared libraries, 8191*** $file_magic_cmd, produces output that libtool cannot recognize. 8192*** The result is that libtool may fail to recognize shared libraries 8193*** as such. This will affect the creation of libtool libraries that 8194*** depend on shared libraries, but programs linked with such libtool 8195*** libraries will work regardless of this problem. Nevertheless, you 8196*** may want to report the problem to your system manager and/or to 8197*** bug-libtool@gnu.org 8198 8199_LT_EOF 8200 fi ;; 8201 esac 8202 fi 8203 break 8204 fi 8205 done 8206 IFS=$lt_save_ifs 8207 MAGIC_CMD=$lt_save_MAGIC_CMD 8208 ;; 8209esac 8210fi 8211 8212MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8213if test -n "$MAGIC_CMD"; then 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8215$as_echo "$MAGIC_CMD" >&6; } 8216else 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8218$as_echo "no" >&6; } 8219fi 8220 8221 8222 else 8223 MAGIC_CMD=: 8224 fi 8225fi 8226 8227 fi 8228 ;; 8229esac 8230 8231# Use C for the default configuration in the libtool script 8232 8233lt_save_CC=$CC 8234ac_ext=c 8235ac_cpp='$CPP $CPPFLAGS' 8236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8238ac_compiler_gnu=$ac_cv_c_compiler_gnu 8239 8240 8241# Source file extension for C test sources. 8242ac_ext=c 8243 8244# Object file extension for compiled C test sources. 8245objext=o 8246objext=$objext 8247 8248# Code to be used in simple compile tests 8249lt_simple_compile_test_code="int some_variable = 0;" 8250 8251# Code to be used in simple link tests 8252lt_simple_link_test_code='int main(){return(0);}' 8253 8254 8255 8256 8257 8258 8259 8260# If no C compiler was specified, use CC. 8261LTCC=${LTCC-"$CC"} 8262 8263# If no C compiler flags were specified, use CFLAGS. 8264LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8265 8266# Allow CC to be a program name with arguments. 8267compiler=$CC 8268 8269# Save the default compiler, since it gets overwritten when the other 8270# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8271compiler_DEFAULT=$CC 8272 8273# save warnings/boilerplate of simple test code 8274ac_outfile=conftest.$ac_objext 8275echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8276eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8277_lt_compiler_boilerplate=`cat conftest.err` 8278$RM conftest* 8279 8280ac_outfile=conftest.$ac_objext 8281echo "$lt_simple_link_test_code" >conftest.$ac_ext 8282eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8283_lt_linker_boilerplate=`cat conftest.err` 8284$RM -r conftest* 8285 8286 8287## CAVEAT EMPTOR: 8288## There is no encapsulation within the following macros, do not change 8289## the running order or otherwise move them around unless you know exactly 8290## what you are doing... 8291if test -n "$compiler"; then 8292 8293lt_prog_compiler_no_builtin_flag= 8294 8295if test yes = "$GCC"; then 8296 case $cc_basename in 8297 nvcc*) 8298 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8299 *) 8300 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8301 esac 8302 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8304$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8305if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8306 $as_echo_n "(cached) " >&6 8307else 8308 lt_cv_prog_compiler_rtti_exceptions=no 8309 ac_outfile=conftest.$ac_objext 8310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8311 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8312 # Insert the option either (1) after the last *FLAGS variable, or 8313 # (2) before a word containing "conftest.", or (3) at the end. 8314 # Note that $ac_compile itself does not contain backslashes and begins 8315 # with a dollar sign (not a hyphen), so the echo should work correctly. 8316 # The option is referenced via a variable to avoid confusing sed. 8317 lt_compile=`echo "$ac_compile" | $SED \ 8318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8320 -e 's:$: $lt_compiler_flag:'` 8321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8322 (eval "$lt_compile" 2>conftest.err) 8323 ac_status=$? 8324 cat conftest.err >&5 8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8326 if (exit $ac_status) && test -s "$ac_outfile"; then 8327 # The compiler can only warn and ignore the option if not recognized 8328 # So say no if there are warnings other than the usual output. 8329 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8331 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8332 lt_cv_prog_compiler_rtti_exceptions=yes 8333 fi 8334 fi 8335 $RM conftest* 8336 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8339$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8340 8341if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8342 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8343else 8344 : 8345fi 8346 8347fi 8348 8349 8350 8351 8352 8353 8354 lt_prog_compiler_wl= 8355lt_prog_compiler_pic= 8356lt_prog_compiler_static= 8357 8358 8359 if test yes = "$GCC"; then 8360 lt_prog_compiler_wl='-Wl,' 8361 lt_prog_compiler_static='-static' 8362 8363 case $host_os in 8364 aix*) 8365 # All AIX code is PIC. 8366 if test ia64 = "$host_cpu"; then 8367 # AIX 5 now supports IA64 processor 8368 lt_prog_compiler_static='-Bstatic' 8369 fi 8370 lt_prog_compiler_pic='-fPIC' 8371 ;; 8372 8373 amigaos*) 8374 case $host_cpu in 8375 powerpc) 8376 # see comment about AmigaOS4 .so support 8377 lt_prog_compiler_pic='-fPIC' 8378 ;; 8379 m68k) 8380 # FIXME: we need at least 68020 code to build shared libraries, but 8381 # adding the '-m68020' flag to GCC prevents building anything better, 8382 # like '-m68040'. 8383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8384 ;; 8385 esac 8386 ;; 8387 8388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8389 # PIC is the default for these OSes. 8390 ;; 8391 8392 mingw* | cygwin* | pw32* | os2* | cegcc*) 8393 # This hack is so that the source file can tell whether it is being 8394 # built for inclusion in a dll (and should export symbols for example). 8395 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8396 # (--disable-auto-import) libraries 8397 lt_prog_compiler_pic='-DDLL_EXPORT' 8398 case $host_os in 8399 os2*) 8400 lt_prog_compiler_static='$wl-static' 8401 ;; 8402 esac 8403 ;; 8404 8405 darwin* | rhapsody*) 8406 # PIC is the default on this platform 8407 # Common symbols not allowed in MH_DYLIB files 8408 lt_prog_compiler_pic='-fno-common' 8409 ;; 8410 8411 haiku*) 8412 # PIC is the default for Haiku. 8413 # The "-static" flag exists, but is broken. 8414 lt_prog_compiler_static= 8415 ;; 8416 8417 hpux*) 8418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8420 # sets the default TLS model and affects inlining. 8421 case $host_cpu in 8422 hppa*64*) 8423 # +Z the default 8424 ;; 8425 *) 8426 lt_prog_compiler_pic='-fPIC' 8427 ;; 8428 esac 8429 ;; 8430 8431 interix[3-9]*) 8432 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8433 # Instead, we relocate shared libraries at runtime. 8434 ;; 8435 8436 msdosdjgpp*) 8437 # Just because we use GCC doesn't mean we suddenly get shared libraries 8438 # on systems that don't support them. 8439 lt_prog_compiler_can_build_shared=no 8440 enable_shared=no 8441 ;; 8442 8443 *nto* | *qnx*) 8444 # QNX uses GNU C++, but need to define -shared option too, otherwise 8445 # it will coredump. 8446 lt_prog_compiler_pic='-fPIC -shared' 8447 ;; 8448 8449 sysv4*MP*) 8450 if test -d /usr/nec; then 8451 lt_prog_compiler_pic=-Kconform_pic 8452 fi 8453 ;; 8454 8455 *) 8456 lt_prog_compiler_pic='-fPIC' 8457 ;; 8458 esac 8459 8460 case $cc_basename in 8461 nvcc*) # Cuda Compiler Driver 2.2 8462 lt_prog_compiler_wl='-Xlinker ' 8463 if test -n "$lt_prog_compiler_pic"; then 8464 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8465 fi 8466 ;; 8467 esac 8468 else 8469 # PORTME Check for flag to pass linker flags through the system compiler. 8470 case $host_os in 8471 aix*) 8472 lt_prog_compiler_wl='-Wl,' 8473 if test ia64 = "$host_cpu"; then 8474 # AIX 5 now supports IA64 processor 8475 lt_prog_compiler_static='-Bstatic' 8476 else 8477 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8478 fi 8479 ;; 8480 8481 darwin* | rhapsody*) 8482 # PIC is the default on this platform 8483 # Common symbols not allowed in MH_DYLIB files 8484 lt_prog_compiler_pic='-fno-common' 8485 case $cc_basename in 8486 nagfor*) 8487 # NAG Fortran compiler 8488 lt_prog_compiler_wl='-Wl,-Wl,,' 8489 lt_prog_compiler_pic='-PIC' 8490 lt_prog_compiler_static='-Bstatic' 8491 ;; 8492 esac 8493 ;; 8494 8495 mingw* | cygwin* | pw32* | os2* | cegcc*) 8496 # This hack is so that the source file can tell whether it is being 8497 # built for inclusion in a dll (and should export symbols for example). 8498 lt_prog_compiler_pic='-DDLL_EXPORT' 8499 case $host_os in 8500 os2*) 8501 lt_prog_compiler_static='$wl-static' 8502 ;; 8503 esac 8504 ;; 8505 8506 hpux9* | hpux10* | hpux11*) 8507 lt_prog_compiler_wl='-Wl,' 8508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8509 # not for PA HP-UX. 8510 case $host_cpu in 8511 hppa*64*|ia64*) 8512 # +Z the default 8513 ;; 8514 *) 8515 lt_prog_compiler_pic='+Z' 8516 ;; 8517 esac 8518 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8519 lt_prog_compiler_static='$wl-a ${wl}archive' 8520 ;; 8521 8522 irix5* | irix6* | nonstopux*) 8523 lt_prog_compiler_wl='-Wl,' 8524 # PIC (with -KPIC) is the default. 8525 lt_prog_compiler_static='-non_shared' 8526 ;; 8527 8528 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8529 case $cc_basename in 8530 # old Intel for x86_64, which still supported -KPIC. 8531 ecc*) 8532 lt_prog_compiler_wl='-Wl,' 8533 lt_prog_compiler_pic='-KPIC' 8534 lt_prog_compiler_static='-static' 8535 ;; 8536 # icc used to be incompatible with GCC. 8537 # ICC 10 doesn't accept -KPIC any more. 8538 icc* | ifort*) 8539 lt_prog_compiler_wl='-Wl,' 8540 lt_prog_compiler_pic='-fPIC' 8541 lt_prog_compiler_static='-static' 8542 ;; 8543 # Lahey Fortran 8.1. 8544 lf95*) 8545 lt_prog_compiler_wl='-Wl,' 8546 lt_prog_compiler_pic='--shared' 8547 lt_prog_compiler_static='--static' 8548 ;; 8549 nagfor*) 8550 # NAG Fortran compiler 8551 lt_prog_compiler_wl='-Wl,-Wl,,' 8552 lt_prog_compiler_pic='-PIC' 8553 lt_prog_compiler_static='-Bstatic' 8554 ;; 8555 tcc*) 8556 # Fabrice Bellard et al's Tiny C Compiler 8557 lt_prog_compiler_wl='-Wl,' 8558 lt_prog_compiler_pic='-fPIC' 8559 lt_prog_compiler_static='-static' 8560 ;; 8561 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8562 # Portland Group compilers (*not* the Pentium gcc compiler, 8563 # which looks to be a dead project) 8564 lt_prog_compiler_wl='-Wl,' 8565 lt_prog_compiler_pic='-fpic' 8566 lt_prog_compiler_static='-Bstatic' 8567 ;; 8568 ccc*) 8569 lt_prog_compiler_wl='-Wl,' 8570 # All Alpha code is PIC. 8571 lt_prog_compiler_static='-non_shared' 8572 ;; 8573 xl* | bgxl* | bgf* | mpixl*) 8574 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8575 lt_prog_compiler_wl='-Wl,' 8576 lt_prog_compiler_pic='-qpic' 8577 lt_prog_compiler_static='-qstaticlink' 8578 ;; 8579 *) 8580 case `$CC -V 2>&1 | sed 5q` in 8581 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8582 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8583 lt_prog_compiler_pic='-KPIC' 8584 lt_prog_compiler_static='-Bstatic' 8585 lt_prog_compiler_wl='' 8586 ;; 8587 *Sun\ F* | *Sun*Fortran*) 8588 lt_prog_compiler_pic='-KPIC' 8589 lt_prog_compiler_static='-Bstatic' 8590 lt_prog_compiler_wl='-Qoption ld ' 8591 ;; 8592 *Sun\ C*) 8593 # Sun C 5.9 8594 lt_prog_compiler_pic='-KPIC' 8595 lt_prog_compiler_static='-Bstatic' 8596 lt_prog_compiler_wl='-Wl,' 8597 ;; 8598 *Intel*\ [CF]*Compiler*) 8599 lt_prog_compiler_wl='-Wl,' 8600 lt_prog_compiler_pic='-fPIC' 8601 lt_prog_compiler_static='-static' 8602 ;; 8603 *Portland\ Group*) 8604 lt_prog_compiler_wl='-Wl,' 8605 lt_prog_compiler_pic='-fpic' 8606 lt_prog_compiler_static='-Bstatic' 8607 ;; 8608 esac 8609 ;; 8610 esac 8611 ;; 8612 8613 newsos6) 8614 lt_prog_compiler_pic='-KPIC' 8615 lt_prog_compiler_static='-Bstatic' 8616 ;; 8617 8618 *nto* | *qnx*) 8619 # QNX uses GNU C++, but need to define -shared option too, otherwise 8620 # it will coredump. 8621 lt_prog_compiler_pic='-fPIC -shared' 8622 ;; 8623 8624 osf3* | osf4* | osf5*) 8625 lt_prog_compiler_wl='-Wl,' 8626 # All OSF/1 code is PIC. 8627 lt_prog_compiler_static='-non_shared' 8628 ;; 8629 8630 rdos*) 8631 lt_prog_compiler_static='-non_shared' 8632 ;; 8633 8634 solaris*) 8635 lt_prog_compiler_pic='-KPIC' 8636 lt_prog_compiler_static='-Bstatic' 8637 case $cc_basename in 8638 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8639 lt_prog_compiler_wl='-Qoption ld ';; 8640 *) 8641 lt_prog_compiler_wl='-Wl,';; 8642 esac 8643 ;; 8644 8645 sunos4*) 8646 lt_prog_compiler_wl='-Qoption ld ' 8647 lt_prog_compiler_pic='-PIC' 8648 lt_prog_compiler_static='-Bstatic' 8649 ;; 8650 8651 sysv4 | sysv4.2uw2* | sysv4.3*) 8652 lt_prog_compiler_wl='-Wl,' 8653 lt_prog_compiler_pic='-KPIC' 8654 lt_prog_compiler_static='-Bstatic' 8655 ;; 8656 8657 sysv4*MP*) 8658 if test -d /usr/nec; then 8659 lt_prog_compiler_pic='-Kconform_pic' 8660 lt_prog_compiler_static='-Bstatic' 8661 fi 8662 ;; 8663 8664 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8665 lt_prog_compiler_wl='-Wl,' 8666 lt_prog_compiler_pic='-KPIC' 8667 lt_prog_compiler_static='-Bstatic' 8668 ;; 8669 8670 unicos*) 8671 lt_prog_compiler_wl='-Wl,' 8672 lt_prog_compiler_can_build_shared=no 8673 ;; 8674 8675 uts4*) 8676 lt_prog_compiler_pic='-pic' 8677 lt_prog_compiler_static='-Bstatic' 8678 ;; 8679 8680 *) 8681 lt_prog_compiler_can_build_shared=no 8682 ;; 8683 esac 8684 fi 8685 8686case $host_os in 8687 # For platforms that do not support PIC, -DPIC is meaningless: 8688 *djgpp*) 8689 lt_prog_compiler_pic= 8690 ;; 8691 *) 8692 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8693 ;; 8694esac 8695 8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8697$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8698if ${lt_cv_prog_compiler_pic+:} false; then : 8699 $as_echo_n "(cached) " >&6 8700else 8701 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8702fi 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8704$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8705lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8706 8707# 8708# Check to make sure the PIC flag actually works. 8709# 8710if test -n "$lt_prog_compiler_pic"; then 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8712$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8713if ${lt_cv_prog_compiler_pic_works+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715else 8716 lt_cv_prog_compiler_pic_works=no 8717 ac_outfile=conftest.$ac_objext 8718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8719 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8720 # Insert the option either (1) after the last *FLAGS variable, or 8721 # (2) before a word containing "conftest.", or (3) at the end. 8722 # Note that $ac_compile itself does not contain backslashes and begins 8723 # with a dollar sign (not a hyphen), so the echo should work correctly. 8724 # The option is referenced via a variable to avoid confusing sed. 8725 lt_compile=`echo "$ac_compile" | $SED \ 8726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8728 -e 's:$: $lt_compiler_flag:'` 8729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8730 (eval "$lt_compile" 2>conftest.err) 8731 ac_status=$? 8732 cat conftest.err >&5 8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8734 if (exit $ac_status) && test -s "$ac_outfile"; then 8735 # The compiler can only warn and ignore the option if not recognized 8736 # So say no if there are warnings other than the usual output. 8737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8739 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8740 lt_cv_prog_compiler_pic_works=yes 8741 fi 8742 fi 8743 $RM conftest* 8744 8745fi 8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8747$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8748 8749if test yes = "$lt_cv_prog_compiler_pic_works"; then 8750 case $lt_prog_compiler_pic in 8751 "" | " "*) ;; 8752 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8753 esac 8754else 8755 lt_prog_compiler_pic= 8756 lt_prog_compiler_can_build_shared=no 8757fi 8758 8759fi 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771# 8772# Check to make sure the static flag actually works. 8773# 8774wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8776$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8777if ${lt_cv_prog_compiler_static_works+:} false; then : 8778 $as_echo_n "(cached) " >&6 8779else 8780 lt_cv_prog_compiler_static_works=no 8781 save_LDFLAGS=$LDFLAGS 8782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8783 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8785 # The linker can only warn and ignore the option if not recognized 8786 # So say no if there are warnings 8787 if test -s conftest.err; then 8788 # Append any errors to the config.log. 8789 cat conftest.err 1>&5 8790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8792 if diff conftest.exp conftest.er2 >/dev/null; then 8793 lt_cv_prog_compiler_static_works=yes 8794 fi 8795 else 8796 lt_cv_prog_compiler_static_works=yes 8797 fi 8798 fi 8799 $RM -r conftest* 8800 LDFLAGS=$save_LDFLAGS 8801 8802fi 8803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8804$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8805 8806if test yes = "$lt_cv_prog_compiler_static_works"; then 8807 : 8808else 8809 lt_prog_compiler_static= 8810fi 8811 8812 8813 8814 8815 8816 8817 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8819$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8820if ${lt_cv_prog_compiler_c_o+:} false; then : 8821 $as_echo_n "(cached) " >&6 8822else 8823 lt_cv_prog_compiler_c_o=no 8824 $RM -r conftest 2>/dev/null 8825 mkdir conftest 8826 cd conftest 8827 mkdir out 8828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8829 8830 lt_compiler_flag="-o out/conftest2.$ac_objext" 8831 # Insert the option either (1) after the last *FLAGS variable, or 8832 # (2) before a word containing "conftest.", or (3) at the end. 8833 # Note that $ac_compile itself does not contain backslashes and begins 8834 # with a dollar sign (not a hyphen), so the echo should work correctly. 8835 lt_compile=`echo "$ac_compile" | $SED \ 8836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8838 -e 's:$: $lt_compiler_flag:'` 8839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8840 (eval "$lt_compile" 2>out/conftest.err) 8841 ac_status=$? 8842 cat out/conftest.err >&5 8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8844 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8845 then 8846 # The compiler can only warn and ignore the option if not recognized 8847 # So say no if there are warnings 8848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8851 lt_cv_prog_compiler_c_o=yes 8852 fi 8853 fi 8854 chmod u+w . 2>&5 8855 $RM conftest* 8856 # SGI C++ compiler will create directory out/ii_files/ for 8857 # template instantiation 8858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8859 $RM out/* && rmdir out 8860 cd .. 8861 $RM -r conftest 8862 $RM conftest* 8863 8864fi 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8866$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8867 8868 8869 8870 8871 8872 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8875if ${lt_cv_prog_compiler_c_o+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 lt_cv_prog_compiler_c_o=no 8879 $RM -r conftest 2>/dev/null 8880 mkdir conftest 8881 cd conftest 8882 mkdir out 8883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8884 8885 lt_compiler_flag="-o out/conftest2.$ac_objext" 8886 # Insert the option either (1) after the last *FLAGS variable, or 8887 # (2) before a word containing "conftest.", or (3) at the end. 8888 # Note that $ac_compile itself does not contain backslashes and begins 8889 # with a dollar sign (not a hyphen), so the echo should work correctly. 8890 lt_compile=`echo "$ac_compile" | $SED \ 8891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8893 -e 's:$: $lt_compiler_flag:'` 8894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8895 (eval "$lt_compile" 2>out/conftest.err) 8896 ac_status=$? 8897 cat out/conftest.err >&5 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8900 then 8901 # The compiler can only warn and ignore the option if not recognized 8902 # So say no if there are warnings 8903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8906 lt_cv_prog_compiler_c_o=yes 8907 fi 8908 fi 8909 chmod u+w . 2>&5 8910 $RM conftest* 8911 # SGI C++ compiler will create directory out/ii_files/ for 8912 # template instantiation 8913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8914 $RM out/* && rmdir out 8915 cd .. 8916 $RM -r conftest 8917 $RM conftest* 8918 8919fi 8920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8921$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8922 8923 8924 8925 8926hard_links=nottested 8927if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8928 # do not overwrite the value of need_locks provided by the user 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8930$as_echo_n "checking if we can lock with hard links... " >&6; } 8931 hard_links=yes 8932 $RM conftest* 8933 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8934 touch conftest.a 8935 ln conftest.a conftest.b 2>&5 || hard_links=no 8936 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8938$as_echo "$hard_links" >&6; } 8939 if test no = "$hard_links"; then 8940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8941$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8942 need_locks=warn 8943 fi 8944else 8945 need_locks=no 8946fi 8947 8948 8949 8950 8951 8952 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8954$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8955 8956 runpath_var= 8957 allow_undefined_flag= 8958 always_export_symbols=no 8959 archive_cmds= 8960 archive_expsym_cmds= 8961 compiler_needs_object=no 8962 enable_shared_with_static_runtimes=no 8963 export_dynamic_flag_spec= 8964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8965 hardcode_automatic=no 8966 hardcode_direct=no 8967 hardcode_direct_absolute=no 8968 hardcode_libdir_flag_spec= 8969 hardcode_libdir_separator= 8970 hardcode_minus_L=no 8971 hardcode_shlibpath_var=unsupported 8972 inherit_rpath=no 8973 link_all_deplibs=unknown 8974 module_cmds= 8975 module_expsym_cmds= 8976 old_archive_from_new_cmds= 8977 old_archive_from_expsyms_cmds= 8978 thread_safe_flag_spec= 8979 whole_archive_flag_spec= 8980 # include_expsyms should be a list of space-separated symbols to be *always* 8981 # included in the symbol list 8982 include_expsyms= 8983 # exclude_expsyms can be an extended regexp of symbols to exclude 8984 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8985 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8986 # as well as any symbol that contains 'd'. 8987 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8989 # platforms (ab)use it in PIC code, but their linkers get confused if 8990 # the symbol is explicitly referenced. Since portable code cannot 8991 # rely on this symbol name, it's probably fine to never include it in 8992 # preloaded symbol tables. 8993 # Exclude shared library initialization/finalization symbols. 8994 extract_expsyms_cmds= 8995 8996 case $host_os in 8997 cygwin* | mingw* | pw32* | cegcc*) 8998 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8999 # When not using gcc, we currently assume that we are using 9000 # Microsoft Visual C++. 9001 if test yes != "$GCC"; then 9002 with_gnu_ld=no 9003 fi 9004 ;; 9005 interix*) 9006 # we just hope/assume this is gcc and not c89 (= MSVC++) 9007 with_gnu_ld=yes 9008 ;; 9009 openbsd* | bitrig*) 9010 with_gnu_ld=no 9011 ;; 9012 esac 9013 9014 ld_shlibs=yes 9015 9016 # On some targets, GNU ld is compatible enough with the native linker 9017 # that we're better off using the native interface for both. 9018 lt_use_gnu_ld_interface=no 9019 if test yes = "$with_gnu_ld"; then 9020 case $host_os in 9021 aix*) 9022 # The AIX port of GNU ld has always aspired to compatibility 9023 # with the native linker. However, as the warning in the GNU ld 9024 # block says, versions before 2.19.5* couldn't really create working 9025 # shared libraries, regardless of the interface used. 9026 case `$LD -v 2>&1` in 9027 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9028 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9029 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9030 *) 9031 lt_use_gnu_ld_interface=yes 9032 ;; 9033 esac 9034 ;; 9035 *) 9036 lt_use_gnu_ld_interface=yes 9037 ;; 9038 esac 9039 fi 9040 9041 if test yes = "$lt_use_gnu_ld_interface"; then 9042 # If archive_cmds runs LD, not CC, wlarc should be empty 9043 wlarc='$wl' 9044 9045 # Set some defaults for GNU ld with shared library support. These 9046 # are reset later if shared libraries are not supported. Putting them 9047 # here allows them to be overridden if necessary. 9048 runpath_var=LD_RUN_PATH 9049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9050 export_dynamic_flag_spec='$wl--export-dynamic' 9051 # ancient GNU ld didn't support --whole-archive et. al. 9052 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9053 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9054 else 9055 whole_archive_flag_spec= 9056 fi 9057 supports_anon_versioning=no 9058 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9059 *GNU\ gold*) supports_anon_versioning=yes ;; 9060 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9061 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9062 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9063 *\ 2.11.*) ;; # other 2.11 versions 9064 *) supports_anon_versioning=yes ;; 9065 esac 9066 9067 # See if GNU ld supports shared libraries. 9068 case $host_os in 9069 aix[3-9]*) 9070 # On AIX/PPC, the GNU linker is very broken 9071 if test ia64 != "$host_cpu"; then 9072 ld_shlibs=no 9073 cat <<_LT_EOF 1>&2 9074 9075*** Warning: the GNU linker, at least up to release 2.19, is reported 9076*** to be unable to reliably create shared libraries on AIX. 9077*** Therefore, libtool is disabling shared libraries support. If you 9078*** really care for shared libraries, you may want to install binutils 9079*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9080*** You will then need to restart the configuration process. 9081 9082_LT_EOF 9083 fi 9084 ;; 9085 9086 amigaos*) 9087 case $host_cpu in 9088 powerpc) 9089 # see comment about AmigaOS4 .so support 9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9091 archive_expsym_cmds='' 9092 ;; 9093 m68k) 9094 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)' 9095 hardcode_libdir_flag_spec='-L$libdir' 9096 hardcode_minus_L=yes 9097 ;; 9098 esac 9099 ;; 9100 9101 beos*) 9102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9103 allow_undefined_flag=unsupported 9104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9105 # support --undefined. This deserves some investigation. FIXME 9106 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9107 else 9108 ld_shlibs=no 9109 fi 9110 ;; 9111 9112 cygwin* | mingw* | pw32* | cegcc*) 9113 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9114 # as there is no search path for DLLs. 9115 hardcode_libdir_flag_spec='-L$libdir' 9116 export_dynamic_flag_spec='$wl--export-all-symbols' 9117 allow_undefined_flag=unsupported 9118 always_export_symbols=no 9119 enable_shared_with_static_runtimes=yes 9120 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' 9121 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9122 9123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9125 # If the export-symbols file already is a .def file, use it as 9126 # is; otherwise, prepend EXPORTS... 9127 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9128 cp $export_symbols $output_objdir/$soname.def; 9129 else 9130 echo EXPORTS > $output_objdir/$soname.def; 9131 cat $export_symbols >> $output_objdir/$soname.def; 9132 fi~ 9133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9134 else 9135 ld_shlibs=no 9136 fi 9137 ;; 9138 9139 haiku*) 9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9141 link_all_deplibs=yes 9142 ;; 9143 9144 os2*) 9145 hardcode_libdir_flag_spec='-L$libdir' 9146 hardcode_minus_L=yes 9147 allow_undefined_flag=unsupported 9148 shrext_cmds=.dll 9149 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9150 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9151 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9152 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9153 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9154 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9155 emximp -o $lib $output_objdir/$libname.def' 9156 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9157 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9158 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9159 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9160 prefix_cmds="$SED"~ 9161 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9162 prefix_cmds="$prefix_cmds -e 1d"; 9163 fi~ 9164 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9165 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9166 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9167 emximp -o $lib $output_objdir/$libname.def' 9168 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9169 enable_shared_with_static_runtimes=yes 9170 ;; 9171 9172 interix[3-9]*) 9173 hardcode_direct=no 9174 hardcode_shlibpath_var=no 9175 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9176 export_dynamic_flag_spec='$wl-E' 9177 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9178 # Instead, shared libraries are loaded at an image base (0x10000000 by 9179 # default) and relocated if they conflict, which is a slow very memory 9180 # consuming and fragmenting process. To avoid this, we pick a random, 9181 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9182 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9184 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' 9185 ;; 9186 9187 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9188 tmp_diet=no 9189 if test linux-dietlibc = "$host_os"; then 9190 case $cc_basename in 9191 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9192 esac 9193 fi 9194 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9195 && test no = "$tmp_diet" 9196 then 9197 tmp_addflag=' $pic_flag' 9198 tmp_sharedflag='-shared' 9199 case $cc_basename,$host_cpu in 9200 pgcc*) # Portland Group C compiler 9201 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' 9202 tmp_addflag=' $pic_flag' 9203 ;; 9204 pgf77* | pgf90* | pgf95* | pgfortran*) 9205 # Portland Group f77 and f90 compilers 9206 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' 9207 tmp_addflag=' $pic_flag -Mnomain' ;; 9208 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9209 tmp_addflag=' -i_dynamic' ;; 9210 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9211 tmp_addflag=' -i_dynamic -nofor_main' ;; 9212 ifc* | ifort*) # Intel Fortran compiler 9213 tmp_addflag=' -nofor_main' ;; 9214 lf95*) # Lahey Fortran 8.1 9215 whole_archive_flag_spec= 9216 tmp_sharedflag='--shared' ;; 9217 nagfor*) # NAGFOR 5.3 9218 tmp_sharedflag='-Wl,-shared' ;; 9219 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9220 tmp_sharedflag='-qmkshrobj' 9221 tmp_addflag= ;; 9222 nvcc*) # Cuda Compiler Driver 2.2 9223 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' 9224 compiler_needs_object=yes 9225 ;; 9226 esac 9227 case `$CC -V 2>&1 | sed 5q` in 9228 *Sun\ C*) # Sun C 5.9 9229 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' 9230 compiler_needs_object=yes 9231 tmp_sharedflag='-G' ;; 9232 *Sun\ F*) # Sun Fortran 8.3 9233 tmp_sharedflag='-G' ;; 9234 esac 9235 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9236 9237 if test yes = "$supports_anon_versioning"; then 9238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9240 echo "local: *; };" >> $output_objdir/$libname.ver~ 9241 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9242 fi 9243 9244 case $cc_basename in 9245 tcc*) 9246 export_dynamic_flag_spec='-rdynamic' 9247 ;; 9248 xlf* | bgf* | bgxlf* | mpixlf*) 9249 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9250 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9252 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9253 if test yes = "$supports_anon_versioning"; then 9254 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9256 echo "local: *; };" >> $output_objdir/$libname.ver~ 9257 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9258 fi 9259 ;; 9260 esac 9261 else 9262 ld_shlibs=no 9263 fi 9264 ;; 9265 9266 netbsd*) 9267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9268 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9269 wlarc= 9270 else 9271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9272 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9273 fi 9274 ;; 9275 9276 solaris*) 9277 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9278 ld_shlibs=no 9279 cat <<_LT_EOF 1>&2 9280 9281*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9282*** create shared libraries on Solaris systems. Therefore, libtool 9283*** is disabling shared libraries support. We urge you to upgrade GNU 9284*** binutils to release 2.9.1 or newer. Another option is to modify 9285*** your PATH or compiler configuration so that the native linker is 9286*** used, and then restart. 9287 9288_LT_EOF 9289 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9291 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9292 else 9293 ld_shlibs=no 9294 fi 9295 ;; 9296 9297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9298 case `$LD -v 2>&1` in 9299 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9300 ld_shlibs=no 9301 cat <<_LT_EOF 1>&2 9302 9303*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9304*** reliably create shared libraries on SCO systems. Therefore, libtool 9305*** is disabling shared libraries support. We urge you to upgrade GNU 9306*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9307*** your PATH or compiler configuration so that the native linker is 9308*** used, and then restart. 9309 9310_LT_EOF 9311 ;; 9312 *) 9313 # For security reasons, it is highly recommended that you always 9314 # use absolute paths for naming shared libraries, and exclude the 9315 # DT_RUNPATH tag from executables and libraries. But doing so 9316 # requires that you compile everything twice, which is a pain. 9317 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9321 else 9322 ld_shlibs=no 9323 fi 9324 ;; 9325 esac 9326 ;; 9327 9328 sunos4*) 9329 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9330 wlarc= 9331 hardcode_direct=yes 9332 hardcode_shlibpath_var=no 9333 ;; 9334 9335 *) 9336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9338 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9339 else 9340 ld_shlibs=no 9341 fi 9342 ;; 9343 esac 9344 9345 if test no = "$ld_shlibs"; then 9346 runpath_var= 9347 hardcode_libdir_flag_spec= 9348 export_dynamic_flag_spec= 9349 whole_archive_flag_spec= 9350 fi 9351 else 9352 # PORTME fill in a description of your system's linker (not GNU ld) 9353 case $host_os in 9354 aix3*) 9355 allow_undefined_flag=unsupported 9356 always_export_symbols=yes 9357 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9358 # Note: this linker hardcodes the directories in LIBPATH if there 9359 # are no directories specified by -L. 9360 hardcode_minus_L=yes 9361 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9362 # Neither direct hardcoding nor static linking is supported with a 9363 # broken collect2. 9364 hardcode_direct=unsupported 9365 fi 9366 ;; 9367 9368 aix[4-9]*) 9369 if test ia64 = "$host_cpu"; then 9370 # On IA64, the linker does run time linking by default, so we don't 9371 # have to do anything special. 9372 aix_use_runtimelinking=no 9373 exp_sym_flag='-Bexport' 9374 no_entry_flag= 9375 else 9376 # If we're using GNU nm, then we don't want the "-C" option. 9377 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9378 # Without the "-l" option, or with the "-B" option, AIX nm treats 9379 # weak defined symbols like other global defined symbols, whereas 9380 # GNU nm marks them as "W". 9381 # While the 'weak' keyword is ignored in the Export File, we need 9382 # it in the Import File for the 'aix-soname' feature, so we have 9383 # to replace the "-B" option with "-P" for AIX nm. 9384 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9385 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9386 else 9387 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9388 fi 9389 aix_use_runtimelinking=no 9390 9391 # Test if we are trying to use run time linking or normal 9392 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9393 # have runtime linking enabled, and use it for executables. 9394 # For shared libraries, we enable/disable runtime linking 9395 # depending on the kind of the shared library created - 9396 # when "with_aix_soname,aix_use_runtimelinking" is: 9397 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9398 # "aix,yes" lib.so shared, rtl:yes, for executables 9399 # lib.a static archive 9400 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9401 # lib.a(lib.so.V) shared, rtl:no, for executables 9402 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9403 # lib.a(lib.so.V) shared, rtl:no 9404 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9405 # lib.a static archive 9406 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9407 for ld_flag in $LDFLAGS; do 9408 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9409 aix_use_runtimelinking=yes 9410 break 9411 fi 9412 done 9413 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9414 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9415 # so we don't have lib.a shared libs to link our executables. 9416 # We have to force runtime linking in this case. 9417 aix_use_runtimelinking=yes 9418 LDFLAGS="$LDFLAGS -Wl,-brtl" 9419 fi 9420 ;; 9421 esac 9422 9423 exp_sym_flag='-bexport' 9424 no_entry_flag='-bnoentry' 9425 fi 9426 9427 # When large executables or shared objects are built, AIX ld can 9428 # have problems creating the table of contents. If linking a library 9429 # or program results in "error TOC overflow" add -mminimal-toc to 9430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9432 9433 archive_cmds='' 9434 hardcode_direct=yes 9435 hardcode_direct_absolute=yes 9436 hardcode_libdir_separator=':' 9437 link_all_deplibs=yes 9438 file_list_spec='$wl-f,' 9439 case $with_aix_soname,$aix_use_runtimelinking in 9440 aix,*) ;; # traditional, no import file 9441 svr4,* | *,yes) # use import file 9442 # The Import File defines what to hardcode. 9443 hardcode_direct=no 9444 hardcode_direct_absolute=no 9445 ;; 9446 esac 9447 9448 if test yes = "$GCC"; then 9449 case $host_os in aix4.[012]|aix4.[012].*) 9450 # We only want to do this on AIX 4.2 and lower, the check 9451 # below for broken collect2 doesn't work under 4.3+ 9452 collect2name=`$CC -print-prog-name=collect2` 9453 if test -f "$collect2name" && 9454 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9455 then 9456 # We have reworked collect2 9457 : 9458 else 9459 # We have old collect2 9460 hardcode_direct=unsupported 9461 # It fails to find uninstalled libraries when the uninstalled 9462 # path is not listed in the libpath. Setting hardcode_minus_L 9463 # to unsupported forces relinking 9464 hardcode_minus_L=yes 9465 hardcode_libdir_flag_spec='-L$libdir' 9466 hardcode_libdir_separator= 9467 fi 9468 ;; 9469 esac 9470 shared_flag='-shared' 9471 if test yes = "$aix_use_runtimelinking"; then 9472 shared_flag="$shared_flag "'$wl-G' 9473 fi 9474 # Need to ensure runtime linking is disabled for the traditional 9475 # shared library, or the linker may eventually find shared libraries 9476 # /with/ Import File - we do not want to mix them. 9477 shared_flag_aix='-shared' 9478 shared_flag_svr4='-shared $wl-G' 9479 else 9480 # not using gcc 9481 if test ia64 = "$host_cpu"; then 9482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9483 # chokes on -Wl,-G. The following line is correct: 9484 shared_flag='-G' 9485 else 9486 if test yes = "$aix_use_runtimelinking"; then 9487 shared_flag='$wl-G' 9488 else 9489 shared_flag='$wl-bM:SRE' 9490 fi 9491 shared_flag_aix='$wl-bM:SRE' 9492 shared_flag_svr4='$wl-G' 9493 fi 9494 fi 9495 9496 export_dynamic_flag_spec='$wl-bexpall' 9497 # It seems that -bexpall does not export symbols beginning with 9498 # underscore (_), so it is better to generate a list of symbols to export. 9499 always_export_symbols=yes 9500 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9501 # Warning - without using the other runtime loading flags (-brtl), 9502 # -berok will link without error, but may produce a broken library. 9503 allow_undefined_flag='-berok' 9504 # Determine the default libpath from the value encoded in an 9505 # empty executable. 9506 if test set = "${lt_cv_aix_libpath+set}"; then 9507 aix_libpath=$lt_cv_aix_libpath 9508else 9509 if ${lt_cv_aix_libpath_+:} false; then : 9510 $as_echo_n "(cached) " >&6 9511else 9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9513/* end confdefs.h. */ 9514 9515int 9516main () 9517{ 9518 9519 ; 9520 return 0; 9521} 9522_ACEOF 9523if ac_fn_c_try_link "$LINENO"; then : 9524 9525 lt_aix_libpath_sed=' 9526 /Import File Strings/,/^$/ { 9527 /^0/ { 9528 s/^0 *\([^ ]*\) *$/\1/ 9529 p 9530 } 9531 }' 9532 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9533 # Check for a 64-bit object if we didn't find anything. 9534 if test -z "$lt_cv_aix_libpath_"; then 9535 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9536 fi 9537fi 9538rm -f core conftest.err conftest.$ac_objext \ 9539 conftest$ac_exeext conftest.$ac_ext 9540 if test -z "$lt_cv_aix_libpath_"; then 9541 lt_cv_aix_libpath_=/usr/lib:/lib 9542 fi 9543 9544fi 9545 9546 aix_libpath=$lt_cv_aix_libpath_ 9547fi 9548 9549 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9550 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9551 else 9552 if test ia64 = "$host_cpu"; then 9553 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9554 allow_undefined_flag="-z nodefs" 9555 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" 9556 else 9557 # Determine the default libpath from the value encoded in an 9558 # empty executable. 9559 if test set = "${lt_cv_aix_libpath+set}"; then 9560 aix_libpath=$lt_cv_aix_libpath 9561else 9562 if ${lt_cv_aix_libpath_+:} false; then : 9563 $as_echo_n "(cached) " >&6 9564else 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567 9568int 9569main () 9570{ 9571 9572 ; 9573 return 0; 9574} 9575_ACEOF 9576if ac_fn_c_try_link "$LINENO"; then : 9577 9578 lt_aix_libpath_sed=' 9579 /Import File Strings/,/^$/ { 9580 /^0/ { 9581 s/^0 *\([^ ]*\) *$/\1/ 9582 p 9583 } 9584 }' 9585 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9586 # Check for a 64-bit object if we didn't find anything. 9587 if test -z "$lt_cv_aix_libpath_"; then 9588 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9589 fi 9590fi 9591rm -f core conftest.err conftest.$ac_objext \ 9592 conftest$ac_exeext conftest.$ac_ext 9593 if test -z "$lt_cv_aix_libpath_"; then 9594 lt_cv_aix_libpath_=/usr/lib:/lib 9595 fi 9596 9597fi 9598 9599 aix_libpath=$lt_cv_aix_libpath_ 9600fi 9601 9602 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9603 # Warning - without using the other run time loading flags, 9604 # -berok will link without error, but may produce a broken library. 9605 no_undefined_flag=' $wl-bernotok' 9606 allow_undefined_flag=' $wl-berok' 9607 if test yes = "$with_gnu_ld"; then 9608 # We only use this code for GNU lds that support --whole-archive. 9609 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9610 else 9611 # Exported symbols can be pulled into shared objects from archives 9612 whole_archive_flag_spec='$convenience' 9613 fi 9614 archive_cmds_need_lc=yes 9615 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9616 # -brtl affects multiple linker settings, -berok does not and is overridden later 9617 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9618 if test svr4 != "$with_aix_soname"; then 9619 # This is similar to how AIX traditionally builds its shared libraries. 9620 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9621 fi 9622 if test aix != "$with_aix_soname"; then 9623 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9624 else 9625 # used by -dlpreopen to get the symbols 9626 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9627 fi 9628 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9629 fi 9630 fi 9631 ;; 9632 9633 amigaos*) 9634 case $host_cpu in 9635 powerpc) 9636 # see comment about AmigaOS4 .so support 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9638 archive_expsym_cmds='' 9639 ;; 9640 m68k) 9641 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)' 9642 hardcode_libdir_flag_spec='-L$libdir' 9643 hardcode_minus_L=yes 9644 ;; 9645 esac 9646 ;; 9647 9648 bsdi[45]*) 9649 export_dynamic_flag_spec=-rdynamic 9650 ;; 9651 9652 cygwin* | mingw* | pw32* | cegcc*) 9653 # When not using gcc, we currently assume that we are using 9654 # Microsoft Visual C++. 9655 # hardcode_libdir_flag_spec is actually meaningless, as there is 9656 # no search path for DLLs. 9657 case $cc_basename in 9658 cl*) 9659 # Native MSVC 9660 hardcode_libdir_flag_spec=' ' 9661 allow_undefined_flag=unsupported 9662 always_export_symbols=yes 9663 file_list_spec='@' 9664 # Tell ltmain to make .lib files, not .a files. 9665 libext=lib 9666 # Tell ltmain to make .dll files, not .so files. 9667 shrext_cmds=.dll 9668 # FIXME: Setting linknames here is a bad hack. 9669 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9670 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9671 cp "$export_symbols" "$output_objdir/$soname.def"; 9672 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9673 else 9674 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9675 fi~ 9676 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9677 linknames=' 9678 # The linker will not automatically build a static lib if we build a DLL. 9679 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9680 enable_shared_with_static_runtimes=yes 9681 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9683 # Don't use ranlib 9684 old_postinstall_cmds='chmod 644 $oldlib' 9685 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9686 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9687 case $lt_outputfile in 9688 *.exe|*.EXE) ;; 9689 *) 9690 lt_outputfile=$lt_outputfile.exe 9691 lt_tool_outputfile=$lt_tool_outputfile.exe 9692 ;; 9693 esac~ 9694 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9695 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9696 $RM "$lt_outputfile.manifest"; 9697 fi' 9698 ;; 9699 *) 9700 # Assume MSVC wrapper 9701 hardcode_libdir_flag_spec=' ' 9702 allow_undefined_flag=unsupported 9703 # Tell ltmain to make .lib files, not .a files. 9704 libext=lib 9705 # Tell ltmain to make .dll files, not .so files. 9706 shrext_cmds=.dll 9707 # FIXME: Setting linknames here is a bad hack. 9708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9709 # The linker will automatically build a .lib file if we build a DLL. 9710 old_archive_from_new_cmds='true' 9711 # FIXME: Should let the user specify the lib program. 9712 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9713 enable_shared_with_static_runtimes=yes 9714 ;; 9715 esac 9716 ;; 9717 9718 darwin* | rhapsody*) 9719 9720 9721 archive_cmds_need_lc=no 9722 hardcode_direct=no 9723 hardcode_automatic=yes 9724 hardcode_shlibpath_var=unsupported 9725 if test yes = "$lt_cv_ld_force_load"; then 9726 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\"`' 9727 9728 else 9729 whole_archive_flag_spec='' 9730 fi 9731 link_all_deplibs=yes 9732 allow_undefined_flag=$_lt_dar_allow_undefined 9733 case $cc_basename in 9734 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9735 *) _lt_dar_can_shared=$GCC ;; 9736 esac 9737 if test yes = "$_lt_dar_can_shared"; then 9738 output_verbose_link_cmd=func_echo_all 9739 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9740 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9741 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" 9742 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" 9743 9744 else 9745 ld_shlibs=no 9746 fi 9747 9748 ;; 9749 9750 dgux*) 9751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9752 hardcode_libdir_flag_spec='-L$libdir' 9753 hardcode_shlibpath_var=no 9754 ;; 9755 9756 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9757 # support. Future versions do this automatically, but an explicit c++rt0.o 9758 # does not break anything, and helps significantly (at the cost of a little 9759 # extra space). 9760 freebsd2.2*) 9761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9762 hardcode_libdir_flag_spec='-R$libdir' 9763 hardcode_direct=yes 9764 hardcode_shlibpath_var=no 9765 ;; 9766 9767 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9768 freebsd2.*) 9769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9770 hardcode_direct=yes 9771 hardcode_minus_L=yes 9772 hardcode_shlibpath_var=no 9773 ;; 9774 9775 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9776 freebsd* | dragonfly*) 9777 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9778 hardcode_libdir_flag_spec='-R$libdir' 9779 hardcode_direct=yes 9780 hardcode_shlibpath_var=no 9781 ;; 9782 9783 hpux9*) 9784 if test yes = "$GCC"; then 9785 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9786 else 9787 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9788 fi 9789 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9790 hardcode_libdir_separator=: 9791 hardcode_direct=yes 9792 9793 # hardcode_minus_L: Not really in the search PATH, 9794 # but as the default location of the library. 9795 hardcode_minus_L=yes 9796 export_dynamic_flag_spec='$wl-E' 9797 ;; 9798 9799 hpux10*) 9800 if test yes,no = "$GCC,$with_gnu_ld"; then 9801 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9802 else 9803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9804 fi 9805 if test no = "$with_gnu_ld"; then 9806 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9807 hardcode_libdir_separator=: 9808 hardcode_direct=yes 9809 hardcode_direct_absolute=yes 9810 export_dynamic_flag_spec='$wl-E' 9811 # hardcode_minus_L: Not really in the search PATH, 9812 # but as the default location of the library. 9813 hardcode_minus_L=yes 9814 fi 9815 ;; 9816 9817 hpux11*) 9818 if test yes,no = "$GCC,$with_gnu_ld"; then 9819 case $host_cpu in 9820 hppa*64*) 9821 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9822 ;; 9823 ia64*) 9824 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9825 ;; 9826 *) 9827 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9828 ;; 9829 esac 9830 else 9831 case $host_cpu in 9832 hppa*64*) 9833 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9834 ;; 9835 ia64*) 9836 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9837 ;; 9838 *) 9839 9840 # Older versions of the 11.00 compiler do not understand -b yet 9841 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9843$as_echo_n "checking if $CC understands -b... " >&6; } 9844if ${lt_cv_prog_compiler__b+:} false; then : 9845 $as_echo_n "(cached) " >&6 9846else 9847 lt_cv_prog_compiler__b=no 9848 save_LDFLAGS=$LDFLAGS 9849 LDFLAGS="$LDFLAGS -b" 9850 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9852 # The linker can only warn and ignore the option if not recognized 9853 # So say no if there are warnings 9854 if test -s conftest.err; then 9855 # Append any errors to the config.log. 9856 cat conftest.err 1>&5 9857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9859 if diff conftest.exp conftest.er2 >/dev/null; then 9860 lt_cv_prog_compiler__b=yes 9861 fi 9862 else 9863 lt_cv_prog_compiler__b=yes 9864 fi 9865 fi 9866 $RM -r conftest* 9867 LDFLAGS=$save_LDFLAGS 9868 9869fi 9870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9871$as_echo "$lt_cv_prog_compiler__b" >&6; } 9872 9873if test yes = "$lt_cv_prog_compiler__b"; then 9874 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9875else 9876 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9877fi 9878 9879 ;; 9880 esac 9881 fi 9882 if test no = "$with_gnu_ld"; then 9883 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9884 hardcode_libdir_separator=: 9885 9886 case $host_cpu in 9887 hppa*64*|ia64*) 9888 hardcode_direct=no 9889 hardcode_shlibpath_var=no 9890 ;; 9891 *) 9892 hardcode_direct=yes 9893 hardcode_direct_absolute=yes 9894 export_dynamic_flag_spec='$wl-E' 9895 9896 # hardcode_minus_L: Not really in the search PATH, 9897 # but as the default location of the library. 9898 hardcode_minus_L=yes 9899 ;; 9900 esac 9901 fi 9902 ;; 9903 9904 irix5* | irix6* | nonstopux*) 9905 if test yes = "$GCC"; then 9906 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' 9907 # Try to use the -exported_symbol ld option, if it does not 9908 # work, assume that -exports_file does not work either and 9909 # implicitly export all symbols. 9910 # This should be the same for all languages, so no per-tag cache variable. 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9912$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9913if ${lt_cv_irix_exported_symbol+:} false; then : 9914 $as_echo_n "(cached) " >&6 9915else 9916 save_LDFLAGS=$LDFLAGS 9917 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9919/* end confdefs.h. */ 9920int foo (void) { return 0; } 9921_ACEOF 9922if ac_fn_c_try_link "$LINENO"; then : 9923 lt_cv_irix_exported_symbol=yes 9924else 9925 lt_cv_irix_exported_symbol=no 9926fi 9927rm -f core conftest.err conftest.$ac_objext \ 9928 conftest$ac_exeext conftest.$ac_ext 9929 LDFLAGS=$save_LDFLAGS 9930fi 9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9932$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9933 if test yes = "$lt_cv_irix_exported_symbol"; then 9934 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' 9935 fi 9936 else 9937 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' 9938 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' 9939 fi 9940 archive_cmds_need_lc='no' 9941 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9942 hardcode_libdir_separator=: 9943 inherit_rpath=yes 9944 link_all_deplibs=yes 9945 ;; 9946 9947 linux*) 9948 case $cc_basename in 9949 tcc*) 9950 # Fabrice Bellard et al's Tiny C Compiler 9951 ld_shlibs=yes 9952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9953 ;; 9954 esac 9955 ;; 9956 9957 netbsd*) 9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9960 else 9961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9962 fi 9963 hardcode_libdir_flag_spec='-R$libdir' 9964 hardcode_direct=yes 9965 hardcode_shlibpath_var=no 9966 ;; 9967 9968 newsos6) 9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9970 hardcode_direct=yes 9971 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9972 hardcode_libdir_separator=: 9973 hardcode_shlibpath_var=no 9974 ;; 9975 9976 *nto* | *qnx*) 9977 ;; 9978 9979 openbsd* | bitrig*) 9980 if test -f /usr/libexec/ld.so; then 9981 hardcode_direct=yes 9982 hardcode_shlibpath_var=no 9983 hardcode_direct_absolute=yes 9984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9987 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9988 export_dynamic_flag_spec='$wl-E' 9989 else 9990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9991 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9992 fi 9993 else 9994 ld_shlibs=no 9995 fi 9996 ;; 9997 9998 os2*) 9999 hardcode_libdir_flag_spec='-L$libdir' 10000 hardcode_minus_L=yes 10001 allow_undefined_flag=unsupported 10002 shrext_cmds=.dll 10003 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10006 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10007 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10008 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10009 emximp -o $lib $output_objdir/$libname.def' 10010 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10011 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10012 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10013 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10014 prefix_cmds="$SED"~ 10015 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10016 prefix_cmds="$prefix_cmds -e 1d"; 10017 fi~ 10018 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10019 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10021 emximp -o $lib $output_objdir/$libname.def' 10022 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10023 enable_shared_with_static_runtimes=yes 10024 ;; 10025 10026 osf3*) 10027 if test yes = "$GCC"; then 10028 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10029 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' 10030 else 10031 allow_undefined_flag=' -expect_unresolved \*' 10032 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' 10033 fi 10034 archive_cmds_need_lc='no' 10035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10036 hardcode_libdir_separator=: 10037 ;; 10038 10039 osf4* | osf5*) # as osf3* with the addition of -msym flag 10040 if test yes = "$GCC"; then 10041 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10042 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' 10043 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10044 else 10045 allow_undefined_flag=' -expect_unresolved \*' 10046 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' 10047 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~ 10048 $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' 10049 10050 # Both c and cxx compiler support -rpath directly 10051 hardcode_libdir_flag_spec='-rpath $libdir' 10052 fi 10053 archive_cmds_need_lc='no' 10054 hardcode_libdir_separator=: 10055 ;; 10056 10057 solaris*) 10058 no_undefined_flag=' -z defs' 10059 if test yes = "$GCC"; then 10060 wlarc='$wl' 10061 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10063 $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' 10064 else 10065 case `$CC -V 2>&1` in 10066 *"Compilers 5.0"*) 10067 wlarc='' 10068 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10070 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10071 ;; 10072 *) 10073 wlarc='$wl' 10074 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10075 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10076 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10077 ;; 10078 esac 10079 fi 10080 hardcode_libdir_flag_spec='-R$libdir' 10081 hardcode_shlibpath_var=no 10082 case $host_os in 10083 solaris2.[0-5] | solaris2.[0-5].*) ;; 10084 *) 10085 # The compiler driver will combine and reorder linker options, 10086 # but understands '-z linker_flag'. GCC discards it without '$wl', 10087 # but is careful enough not to reorder. 10088 # Supported since Solaris 2.6 (maybe 2.5.1?) 10089 if test yes = "$GCC"; then 10090 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10091 else 10092 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10093 fi 10094 ;; 10095 esac 10096 link_all_deplibs=yes 10097 ;; 10098 10099 sunos4*) 10100 if test sequent = "$host_vendor"; then 10101 # Use $CC to link under sequent, because it throws in some extra .o 10102 # files that make .init and .fini sections work. 10103 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10104 else 10105 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10106 fi 10107 hardcode_libdir_flag_spec='-L$libdir' 10108 hardcode_direct=yes 10109 hardcode_minus_L=yes 10110 hardcode_shlibpath_var=no 10111 ;; 10112 10113 sysv4) 10114 case $host_vendor in 10115 sni) 10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10117 hardcode_direct=yes # is this really true??? 10118 ;; 10119 siemens) 10120 ## LD is ld it makes a PLAMLIB 10121 ## CC just makes a GrossModule. 10122 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10123 reload_cmds='$CC -r -o $output$reload_objs' 10124 hardcode_direct=no 10125 ;; 10126 motorola) 10127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10128 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10129 ;; 10130 esac 10131 runpath_var='LD_RUN_PATH' 10132 hardcode_shlibpath_var=no 10133 ;; 10134 10135 sysv4.3*) 10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10137 hardcode_shlibpath_var=no 10138 export_dynamic_flag_spec='-Bexport' 10139 ;; 10140 10141 sysv4*MP*) 10142 if test -d /usr/nec; then 10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10144 hardcode_shlibpath_var=no 10145 runpath_var=LD_RUN_PATH 10146 hardcode_runpath_var=yes 10147 ld_shlibs=yes 10148 fi 10149 ;; 10150 10151 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10152 no_undefined_flag='$wl-z,text' 10153 archive_cmds_need_lc=no 10154 hardcode_shlibpath_var=no 10155 runpath_var='LD_RUN_PATH' 10156 10157 if test yes = "$GCC"; then 10158 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10159 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10160 else 10161 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10162 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10163 fi 10164 ;; 10165 10166 sysv5* | sco3.2v5* | sco5v6*) 10167 # Note: We CANNOT use -z defs as we might desire, because we do not 10168 # link with -lc, and that would cause any symbols used from libc to 10169 # always be unresolved, which means just about no library would 10170 # ever link correctly. If we're not using GNU ld we use -z text 10171 # though, which does catch some bad symbols but isn't as heavy-handed 10172 # as -z defs. 10173 no_undefined_flag='$wl-z,text' 10174 allow_undefined_flag='$wl-z,nodefs' 10175 archive_cmds_need_lc=no 10176 hardcode_shlibpath_var=no 10177 hardcode_libdir_flag_spec='$wl-R,$libdir' 10178 hardcode_libdir_separator=':' 10179 link_all_deplibs=yes 10180 export_dynamic_flag_spec='$wl-Bexport' 10181 runpath_var='LD_RUN_PATH' 10182 10183 if test yes = "$GCC"; then 10184 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10185 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10186 else 10187 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10188 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10189 fi 10190 ;; 10191 10192 uts4*) 10193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10194 hardcode_libdir_flag_spec='-L$libdir' 10195 hardcode_shlibpath_var=no 10196 ;; 10197 10198 *) 10199 ld_shlibs=no 10200 ;; 10201 esac 10202 10203 if test sni = "$host_vendor"; then 10204 case $host in 10205 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10206 export_dynamic_flag_spec='$wl-Blargedynsym' 10207 ;; 10208 esac 10209 fi 10210 fi 10211 10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10213$as_echo "$ld_shlibs" >&6; } 10214test no = "$ld_shlibs" && can_build_shared=no 10215 10216with_gnu_ld=$with_gnu_ld 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232# 10233# Do we need to explicitly link libc? 10234# 10235case "x$archive_cmds_need_lc" in 10236x|xyes) 10237 # Assume -lc should be added 10238 archive_cmds_need_lc=yes 10239 10240 if test yes,yes = "$GCC,$enable_shared"; then 10241 case $archive_cmds in 10242 *'~'*) 10243 # FIXME: we may have to deal with multi-command sequences. 10244 ;; 10245 '$CC '*) 10246 # Test whether the compiler implicitly links with -lc since on some 10247 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10248 # to ld, don't add -lc before -lgcc. 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10250$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10251if ${lt_cv_archive_cmds_need_lc+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253else 10254 $RM conftest* 10255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10256 10257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10258 (eval $ac_compile) 2>&5 10259 ac_status=$? 10260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10261 test $ac_status = 0; } 2>conftest.err; then 10262 soname=conftest 10263 lib=conftest 10264 libobjs=conftest.$ac_objext 10265 deplibs= 10266 wl=$lt_prog_compiler_wl 10267 pic_flag=$lt_prog_compiler_pic 10268 compiler_flags=-v 10269 linker_flags=-v 10270 verstring= 10271 output_objdir=. 10272 libname=conftest 10273 lt_save_allow_undefined_flag=$allow_undefined_flag 10274 allow_undefined_flag= 10275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10276 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10277 ac_status=$? 10278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10279 test $ac_status = 0; } 10280 then 10281 lt_cv_archive_cmds_need_lc=no 10282 else 10283 lt_cv_archive_cmds_need_lc=yes 10284 fi 10285 allow_undefined_flag=$lt_save_allow_undefined_flag 10286 else 10287 cat conftest.err 1>&5 10288 fi 10289 $RM conftest* 10290 10291fi 10292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10293$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10294 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10295 ;; 10296 esac 10297 fi 10298 ;; 10299esac 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10453$as_echo_n "checking dynamic linker characteristics... " >&6; } 10454 10455if test yes = "$GCC"; then 10456 case $host_os in 10457 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10458 *) lt_awk_arg='/^libraries:/' ;; 10459 esac 10460 case $host_os in 10461 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10462 *) lt_sed_strip_eq='s|=/|/|g' ;; 10463 esac 10464 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10465 case $lt_search_path_spec in 10466 *\;*) 10467 # if the path contains ";" then we assume it to be the separator 10468 # otherwise default to the standard path separator (i.e. ":") - it is 10469 # assumed that no part of a normal pathname contains ";" but that should 10470 # okay in the real world where ";" in dirpaths is itself problematic. 10471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10472 ;; 10473 *) 10474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10475 ;; 10476 esac 10477 # Ok, now we have the path, separated by spaces, we can step through it 10478 # and add multilib dir if necessary... 10479 lt_tmp_lt_search_path_spec= 10480 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10481 # ...but if some path component already ends with the multilib dir we assume 10482 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10483 case "$lt_multi_os_dir; $lt_search_path_spec " in 10484 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10485 lt_multi_os_dir= 10486 ;; 10487 esac 10488 for lt_sys_path in $lt_search_path_spec; do 10489 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10490 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10491 elif test -n "$lt_multi_os_dir"; then 10492 test -d "$lt_sys_path" && \ 10493 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10494 fi 10495 done 10496 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10497BEGIN {RS = " "; FS = "/|\n";} { 10498 lt_foo = ""; 10499 lt_count = 0; 10500 for (lt_i = NF; lt_i > 0; lt_i--) { 10501 if ($lt_i != "" && $lt_i != ".") { 10502 if ($lt_i == "..") { 10503 lt_count++; 10504 } else { 10505 if (lt_count == 0) { 10506 lt_foo = "/" $lt_i lt_foo; 10507 } else { 10508 lt_count--; 10509 } 10510 } 10511 } 10512 } 10513 if (lt_foo != "") { lt_freq[lt_foo]++; } 10514 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10515}'` 10516 # AWK program above erroneously prepends '/' to C:/dos/paths 10517 # for these hosts. 10518 case $host_os in 10519 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10520 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10521 esac 10522 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10523else 10524 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10525fi 10526library_names_spec= 10527libname_spec='lib$name' 10528soname_spec= 10529shrext_cmds=.so 10530postinstall_cmds= 10531postuninstall_cmds= 10532finish_cmds= 10533finish_eval= 10534shlibpath_var= 10535shlibpath_overrides_runpath=unknown 10536version_type=none 10537dynamic_linker="$host_os ld.so" 10538sys_lib_dlsearch_path_spec="/lib /usr/lib" 10539need_lib_prefix=unknown 10540hardcode_into_libs=no 10541 10542# when you set need_version to no, make sure it does not cause -set_version 10543# flags to be left without arguments 10544need_version=unknown 10545 10546 10547 10548case $host_os in 10549aix3*) 10550 version_type=linux # correct to gnu/linux during the next big refactor 10551 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10552 shlibpath_var=LIBPATH 10553 10554 # AIX 3 has no versioning support, so we append a major version to the name. 10555 soname_spec='$libname$release$shared_ext$major' 10556 ;; 10557 10558aix[4-9]*) 10559 version_type=linux # correct to gnu/linux during the next big refactor 10560 need_lib_prefix=no 10561 need_version=no 10562 hardcode_into_libs=yes 10563 if test ia64 = "$host_cpu"; then 10564 # AIX 5 supports IA64 10565 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10566 shlibpath_var=LD_LIBRARY_PATH 10567 else 10568 # With GCC up to 2.95.x, collect2 would create an import file 10569 # for dependence libraries. The import file would start with 10570 # the line '#! .'. This would cause the generated library to 10571 # depend on '.', always an invalid library. This was fixed in 10572 # development snapshots of GCC prior to 3.0. 10573 case $host_os in 10574 aix4 | aix4.[01] | aix4.[01].*) 10575 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10576 echo ' yes ' 10577 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10578 : 10579 else 10580 can_build_shared=no 10581 fi 10582 ;; 10583 esac 10584 # Using Import Files as archive members, it is possible to support 10585 # filename-based versioning of shared library archives on AIX. While 10586 # this would work for both with and without runtime linking, it will 10587 # prevent static linking of such archives. So we do filename-based 10588 # shared library versioning with .so extension only, which is used 10589 # when both runtime linking and shared linking is enabled. 10590 # Unfortunately, runtime linking may impact performance, so we do 10591 # not want this to be the default eventually. Also, we use the 10592 # versioned .so libs for executables only if there is the -brtl 10593 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10594 # To allow for filename-based versioning support, we need to create 10595 # libNAME.so.V as an archive file, containing: 10596 # *) an Import File, referring to the versioned filename of the 10597 # archive as well as the shared archive member, telling the 10598 # bitwidth (32 or 64) of that shared object, and providing the 10599 # list of exported symbols of that shared object, eventually 10600 # decorated with the 'weak' keyword 10601 # *) the shared object with the F_LOADONLY flag set, to really avoid 10602 # it being seen by the linker. 10603 # At run time we better use the real file rather than another symlink, 10604 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10605 10606 case $with_aix_soname,$aix_use_runtimelinking in 10607 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10608 # soname into executable. Probably we can add versioning support to 10609 # collect2, so additional links can be useful in future. 10610 aix,yes) # traditional libtool 10611 dynamic_linker='AIX unversionable lib.so' 10612 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10613 # instead of lib<name>.a to let people know that these are not 10614 # typical AIX shared libraries. 10615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10616 ;; 10617 aix,no) # traditional AIX only 10618 dynamic_linker='AIX lib.a(lib.so.V)' 10619 # We preserve .a as extension for shared libraries through AIX4.2 10620 # and later when we are not doing run time linking. 10621 library_names_spec='$libname$release.a $libname.a' 10622 soname_spec='$libname$release$shared_ext$major' 10623 ;; 10624 svr4,*) # full svr4 only 10625 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10626 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10627 # We do not specify a path in Import Files, so LIBPATH fires. 10628 shlibpath_overrides_runpath=yes 10629 ;; 10630 *,yes) # both, prefer svr4 10631 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10632 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10633 # unpreferred sharedlib libNAME.a needs extra handling 10634 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10635 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10636 # We do not specify a path in Import Files, so LIBPATH fires. 10637 shlibpath_overrides_runpath=yes 10638 ;; 10639 *,no) # both, prefer aix 10640 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10641 library_names_spec='$libname$release.a $libname.a' 10642 soname_spec='$libname$release$shared_ext$major' 10643 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10644 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10645 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10646 ;; 10647 esac 10648 shlibpath_var=LIBPATH 10649 fi 10650 ;; 10651 10652amigaos*) 10653 case $host_cpu in 10654 powerpc) 10655 # Since July 2007 AmigaOS4 officially supports .so libraries. 10656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10658 ;; 10659 m68k) 10660 library_names_spec='$libname.ixlibrary $libname.a' 10661 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10662 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10663 ;; 10664 esac 10665 ;; 10666 10667beos*) 10668 library_names_spec='$libname$shared_ext' 10669 dynamic_linker="$host_os ld.so" 10670 shlibpath_var=LIBRARY_PATH 10671 ;; 10672 10673bsdi[45]*) 10674 version_type=linux # correct to gnu/linux during the next big refactor 10675 need_version=no 10676 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10677 soname_spec='$libname$release$shared_ext$major' 10678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10679 shlibpath_var=LD_LIBRARY_PATH 10680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10682 # the default ld.so.conf also contains /usr/contrib/lib and 10683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10684 # libtool to hard-code these into programs 10685 ;; 10686 10687cygwin* | mingw* | pw32* | cegcc*) 10688 version_type=windows 10689 shrext_cmds=.dll 10690 need_version=no 10691 need_lib_prefix=no 10692 10693 case $GCC,$cc_basename in 10694 yes,*) 10695 # gcc 10696 library_names_spec='$libname.dll.a' 10697 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10698 postinstall_cmds='base_file=`basename \$file`~ 10699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10700 dldir=$destdir/`dirname \$dlpath`~ 10701 test -d \$dldir || mkdir -p \$dldir~ 10702 $install_prog $dir/$dlname \$dldir/$dlname~ 10703 chmod a+x \$dldir/$dlname~ 10704 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10705 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10706 fi' 10707 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10708 dlpath=$dir/\$dldll~ 10709 $RM \$dlpath' 10710 shlibpath_overrides_runpath=yes 10711 10712 case $host_os in 10713 cygwin*) 10714 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10715 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10716 10717 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10718 ;; 10719 mingw* | cegcc*) 10720 # MinGW DLLs use traditional 'lib' prefix 10721 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10722 ;; 10723 pw32*) 10724 # pw32 DLLs use 'pw' prefix rather than 'lib' 10725 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10726 ;; 10727 esac 10728 dynamic_linker='Win32 ld.exe' 10729 ;; 10730 10731 *,cl*) 10732 # Native MSVC 10733 libname_spec='$name' 10734 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10735 library_names_spec='$libname.dll.lib' 10736 10737 case $build_os in 10738 mingw*) 10739 sys_lib_search_path_spec= 10740 lt_save_ifs=$IFS 10741 IFS=';' 10742 for lt_path in $LIB 10743 do 10744 IFS=$lt_save_ifs 10745 # Let DOS variable expansion print the short 8.3 style file name. 10746 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10747 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10748 done 10749 IFS=$lt_save_ifs 10750 # Convert to MSYS style. 10751 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10752 ;; 10753 cygwin*) 10754 # Convert to unix form, then to dos form, then back to unix form 10755 # but this time dos style (no spaces!) so that the unix form looks 10756 # like /cygdrive/c/PROGRA~1:/cygdr... 10757 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10758 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10759 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10760 ;; 10761 *) 10762 sys_lib_search_path_spec=$LIB 10763 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10764 # It is most probably a Windows format PATH. 10765 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10766 else 10767 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10768 fi 10769 # FIXME: find the short name or the path components, as spaces are 10770 # common. (e.g. "Program Files" -> "PROGRA~1") 10771 ;; 10772 esac 10773 10774 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10775 postinstall_cmds='base_file=`basename \$file`~ 10776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10777 dldir=$destdir/`dirname \$dlpath`~ 10778 test -d \$dldir || mkdir -p \$dldir~ 10779 $install_prog $dir/$dlname \$dldir/$dlname' 10780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10781 dlpath=$dir/\$dldll~ 10782 $RM \$dlpath' 10783 shlibpath_overrides_runpath=yes 10784 dynamic_linker='Win32 link.exe' 10785 ;; 10786 10787 *) 10788 # Assume MSVC wrapper 10789 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10790 dynamic_linker='Win32 ld.exe' 10791 ;; 10792 esac 10793 # FIXME: first we should search . and the directory the executable is in 10794 shlibpath_var=PATH 10795 ;; 10796 10797darwin* | rhapsody*) 10798 dynamic_linker="$host_os dyld" 10799 version_type=darwin 10800 need_lib_prefix=no 10801 need_version=no 10802 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10803 soname_spec='$libname$release$major$shared_ext' 10804 shlibpath_overrides_runpath=yes 10805 shlibpath_var=DYLD_LIBRARY_PATH 10806 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10807 10808 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10810 ;; 10811 10812dgux*) 10813 version_type=linux # correct to gnu/linux during the next big refactor 10814 need_lib_prefix=no 10815 need_version=no 10816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10817 soname_spec='$libname$release$shared_ext$major' 10818 shlibpath_var=LD_LIBRARY_PATH 10819 ;; 10820 10821freebsd* | dragonfly*) 10822 # DragonFly does not have aout. When/if they implement a new 10823 # versioning mechanism, adjust this. 10824 if test -x /usr/bin/objformat; then 10825 objformat=`/usr/bin/objformat` 10826 else 10827 case $host_os in 10828 freebsd[23].*) objformat=aout ;; 10829 *) objformat=elf ;; 10830 esac 10831 fi 10832 version_type=freebsd-$objformat 10833 case $version_type in 10834 freebsd-elf*) 10835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10836 soname_spec='$libname$release$shared_ext$major' 10837 need_version=no 10838 need_lib_prefix=no 10839 ;; 10840 freebsd-*) 10841 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10842 need_version=yes 10843 ;; 10844 esac 10845 shlibpath_var=LD_LIBRARY_PATH 10846 case $host_os in 10847 freebsd2.*) 10848 shlibpath_overrides_runpath=yes 10849 ;; 10850 freebsd3.[01]* | freebsdelf3.[01]*) 10851 shlibpath_overrides_runpath=yes 10852 hardcode_into_libs=yes 10853 ;; 10854 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10855 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10856 shlibpath_overrides_runpath=no 10857 hardcode_into_libs=yes 10858 ;; 10859 *) # from 4.6 on, and DragonFly 10860 shlibpath_overrides_runpath=yes 10861 hardcode_into_libs=yes 10862 ;; 10863 esac 10864 ;; 10865 10866haiku*) 10867 version_type=linux # correct to gnu/linux during the next big refactor 10868 need_lib_prefix=no 10869 need_version=no 10870 dynamic_linker="$host_os runtime_loader" 10871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10872 soname_spec='$libname$release$shared_ext$major' 10873 shlibpath_var=LIBRARY_PATH 10874 shlibpath_overrides_runpath=no 10875 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10876 hardcode_into_libs=yes 10877 ;; 10878 10879hpux9* | hpux10* | hpux11*) 10880 # Give a soname corresponding to the major version so that dld.sl refuses to 10881 # link against other versions. 10882 version_type=sunos 10883 need_lib_prefix=no 10884 need_version=no 10885 case $host_cpu in 10886 ia64*) 10887 shrext_cmds='.so' 10888 hardcode_into_libs=yes 10889 dynamic_linker="$host_os dld.so" 10890 shlibpath_var=LD_LIBRARY_PATH 10891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10893 soname_spec='$libname$release$shared_ext$major' 10894 if test 32 = "$HPUX_IA64_MODE"; then 10895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10896 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10897 else 10898 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10899 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10900 fi 10901 ;; 10902 hppa*64*) 10903 shrext_cmds='.sl' 10904 hardcode_into_libs=yes 10905 dynamic_linker="$host_os dld.sl" 10906 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10907 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10908 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10909 soname_spec='$libname$release$shared_ext$major' 10910 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10912 ;; 10913 *) 10914 shrext_cmds='.sl' 10915 dynamic_linker="$host_os dld.sl" 10916 shlibpath_var=SHLIB_PATH 10917 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10919 soname_spec='$libname$release$shared_ext$major' 10920 ;; 10921 esac 10922 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10923 postinstall_cmds='chmod 555 $lib' 10924 # or fails outright, so override atomically: 10925 install_override_mode=555 10926 ;; 10927 10928interix[3-9]*) 10929 version_type=linux # correct to gnu/linux during the next big refactor 10930 need_lib_prefix=no 10931 need_version=no 10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10933 soname_spec='$libname$release$shared_ext$major' 10934 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10935 shlibpath_var=LD_LIBRARY_PATH 10936 shlibpath_overrides_runpath=no 10937 hardcode_into_libs=yes 10938 ;; 10939 10940irix5* | irix6* | nonstopux*) 10941 case $host_os in 10942 nonstopux*) version_type=nonstopux ;; 10943 *) 10944 if test yes = "$lt_cv_prog_gnu_ld"; then 10945 version_type=linux # correct to gnu/linux during the next big refactor 10946 else 10947 version_type=irix 10948 fi ;; 10949 esac 10950 need_lib_prefix=no 10951 need_version=no 10952 soname_spec='$libname$release$shared_ext$major' 10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10954 case $host_os in 10955 irix5* | nonstopux*) 10956 libsuff= shlibsuff= 10957 ;; 10958 *) 10959 case $LD in # libtool.m4 will add one of these switches to LD 10960 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10961 libsuff= shlibsuff= libmagic=32-bit;; 10962 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10963 libsuff=32 shlibsuff=N32 libmagic=N32;; 10964 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10965 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10966 *) libsuff= shlibsuff= libmagic=never-match;; 10967 esac 10968 ;; 10969 esac 10970 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10971 shlibpath_overrides_runpath=no 10972 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10973 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10974 hardcode_into_libs=yes 10975 ;; 10976 10977# No shared lib support for Linux oldld, aout, or coff. 10978linux*oldld* | linux*aout* | linux*coff*) 10979 dynamic_linker=no 10980 ;; 10981 10982linux*android*) 10983 version_type=none # Android doesn't support versioned libraries. 10984 need_lib_prefix=no 10985 need_version=no 10986 library_names_spec='$libname$release$shared_ext' 10987 soname_spec='$libname$release$shared_ext' 10988 finish_cmds= 10989 shlibpath_var=LD_LIBRARY_PATH 10990 shlibpath_overrides_runpath=yes 10991 10992 # This implies no fast_install, which is unacceptable. 10993 # Some rework will be needed to allow for fast_install 10994 # before this can be enabled. 10995 hardcode_into_libs=yes 10996 10997 dynamic_linker='Android linker' 10998 # Don't embed -rpath directories since the linker doesn't support them. 10999 hardcode_libdir_flag_spec='-L$libdir' 11000 ;; 11001 11002# This must be glibc/ELF. 11003linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11004 version_type=linux # correct to gnu/linux during the next big refactor 11005 need_lib_prefix=no 11006 need_version=no 11007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11008 soname_spec='$libname$release$shared_ext$major' 11009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11010 shlibpath_var=LD_LIBRARY_PATH 11011 shlibpath_overrides_runpath=no 11012 11013 # Some binutils ld are patched to set DT_RUNPATH 11014 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11015 $as_echo_n "(cached) " >&6 11016else 11017 lt_cv_shlibpath_overrides_runpath=no 11018 save_LDFLAGS=$LDFLAGS 11019 save_libdir=$libdir 11020 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11021 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11023/* end confdefs.h. */ 11024 11025int 11026main () 11027{ 11028 11029 ; 11030 return 0; 11031} 11032_ACEOF 11033if ac_fn_c_try_link "$LINENO"; then : 11034 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11035 lt_cv_shlibpath_overrides_runpath=yes 11036fi 11037fi 11038rm -f core conftest.err conftest.$ac_objext \ 11039 conftest$ac_exeext conftest.$ac_ext 11040 LDFLAGS=$save_LDFLAGS 11041 libdir=$save_libdir 11042 11043fi 11044 11045 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11046 11047 # This implies no fast_install, which is unacceptable. 11048 # Some rework will be needed to allow for fast_install 11049 # before this can be enabled. 11050 hardcode_into_libs=yes 11051 11052 # Ideally, we could use ldconfig to report *all* directores which are 11053 # searched for libraries, however this is still not possible. Aside from not 11054 # being certain /sbin/ldconfig is available, command 11055 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11056 # even though it is searched at run-time. Try to do the best guess by 11057 # appending ld.so.conf contents (and includes) to the search path. 11058 if test -f /etc/ld.so.conf; then 11059 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' ' '` 11060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11061 fi 11062 11063 # We used to test for /lib/ld.so.1 and disable shared libraries on 11064 # powerpc, because MkLinux only supported shared libraries with the 11065 # GNU dynamic linker. Since this was broken with cross compilers, 11066 # most powerpc-linux boxes support dynamic linking these days and 11067 # people can always --disable-shared, the test was removed, and we 11068 # assume the GNU/Linux dynamic linker is in use. 11069 dynamic_linker='GNU/Linux ld.so' 11070 ;; 11071 11072netbsd*) 11073 version_type=sunos 11074 need_lib_prefix=no 11075 need_version=no 11076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11079 dynamic_linker='NetBSD (a.out) ld.so' 11080 else 11081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11082 soname_spec='$libname$release$shared_ext$major' 11083 dynamic_linker='NetBSD ld.elf_so' 11084 fi 11085 shlibpath_var=LD_LIBRARY_PATH 11086 shlibpath_overrides_runpath=yes 11087 hardcode_into_libs=yes 11088 ;; 11089 11090newsos6) 11091 version_type=linux # correct to gnu/linux during the next big refactor 11092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11093 shlibpath_var=LD_LIBRARY_PATH 11094 shlibpath_overrides_runpath=yes 11095 ;; 11096 11097*nto* | *qnx*) 11098 version_type=qnx 11099 need_lib_prefix=no 11100 need_version=no 11101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11102 soname_spec='$libname$release$shared_ext$major' 11103 shlibpath_var=LD_LIBRARY_PATH 11104 shlibpath_overrides_runpath=no 11105 hardcode_into_libs=yes 11106 dynamic_linker='ldqnx.so' 11107 ;; 11108 11109openbsd* | bitrig*) 11110 version_type=sunos 11111 sys_lib_dlsearch_path_spec=/usr/lib 11112 need_lib_prefix=no 11113 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11114 need_version=no 11115 else 11116 need_version=yes 11117 fi 11118 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11120 shlibpath_var=LD_LIBRARY_PATH 11121 shlibpath_overrides_runpath=yes 11122 ;; 11123 11124os2*) 11125 libname_spec='$name' 11126 version_type=windows 11127 shrext_cmds=.dll 11128 need_version=no 11129 need_lib_prefix=no 11130 # OS/2 can only load a DLL with a base name of 8 characters or less. 11131 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11132 v=$($ECHO $release$versuffix | tr -d .-); 11133 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11134 $ECHO $n$v`$shared_ext' 11135 library_names_spec='${libname}_dll.$libext' 11136 dynamic_linker='OS/2 ld.exe' 11137 shlibpath_var=BEGINLIBPATH 11138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11139 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11140 postinstall_cmds='base_file=`basename \$file`~ 11141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11142 dldir=$destdir/`dirname \$dlpath`~ 11143 test -d \$dldir || mkdir -p \$dldir~ 11144 $install_prog $dir/$dlname \$dldir/$dlname~ 11145 chmod a+x \$dldir/$dlname~ 11146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11148 fi' 11149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11150 dlpath=$dir/\$dldll~ 11151 $RM \$dlpath' 11152 ;; 11153 11154osf3* | osf4* | osf5*) 11155 version_type=osf 11156 need_lib_prefix=no 11157 need_version=no 11158 soname_spec='$libname$release$shared_ext$major' 11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11160 shlibpath_var=LD_LIBRARY_PATH 11161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11163 ;; 11164 11165rdos*) 11166 dynamic_linker=no 11167 ;; 11168 11169solaris*) 11170 version_type=linux # correct to gnu/linux during the next big refactor 11171 need_lib_prefix=no 11172 need_version=no 11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11174 soname_spec='$libname$release$shared_ext$major' 11175 shlibpath_var=LD_LIBRARY_PATH 11176 shlibpath_overrides_runpath=yes 11177 hardcode_into_libs=yes 11178 # ldd complains unless libraries are executable 11179 postinstall_cmds='chmod +x $lib' 11180 ;; 11181 11182sunos4*) 11183 version_type=sunos 11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11186 shlibpath_var=LD_LIBRARY_PATH 11187 shlibpath_overrides_runpath=yes 11188 if test yes = "$with_gnu_ld"; then 11189 need_lib_prefix=no 11190 fi 11191 need_version=yes 11192 ;; 11193 11194sysv4 | sysv4.3*) 11195 version_type=linux # correct to gnu/linux during the next big refactor 11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11197 soname_spec='$libname$release$shared_ext$major' 11198 shlibpath_var=LD_LIBRARY_PATH 11199 case $host_vendor in 11200 sni) 11201 shlibpath_overrides_runpath=no 11202 need_lib_prefix=no 11203 runpath_var=LD_RUN_PATH 11204 ;; 11205 siemens) 11206 need_lib_prefix=no 11207 ;; 11208 motorola) 11209 need_lib_prefix=no 11210 need_version=no 11211 shlibpath_overrides_runpath=no 11212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11213 ;; 11214 esac 11215 ;; 11216 11217sysv4*MP*) 11218 if test -d /usr/nec; then 11219 version_type=linux # correct to gnu/linux during the next big refactor 11220 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11221 soname_spec='$libname$shared_ext.$major' 11222 shlibpath_var=LD_LIBRARY_PATH 11223 fi 11224 ;; 11225 11226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11227 version_type=sco 11228 need_lib_prefix=no 11229 need_version=no 11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11231 soname_spec='$libname$release$shared_ext$major' 11232 shlibpath_var=LD_LIBRARY_PATH 11233 shlibpath_overrides_runpath=yes 11234 hardcode_into_libs=yes 11235 if test yes = "$with_gnu_ld"; then 11236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11237 else 11238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11239 case $host_os in 11240 sco3.2v5*) 11241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11242 ;; 11243 esac 11244 fi 11245 sys_lib_dlsearch_path_spec='/usr/lib' 11246 ;; 11247 11248tpf*) 11249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11250 version_type=linux # correct to gnu/linux during the next big refactor 11251 need_lib_prefix=no 11252 need_version=no 11253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11254 shlibpath_var=LD_LIBRARY_PATH 11255 shlibpath_overrides_runpath=no 11256 hardcode_into_libs=yes 11257 ;; 11258 11259uts4*) 11260 version_type=linux # correct to gnu/linux during the next big refactor 11261 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11262 soname_spec='$libname$release$shared_ext$major' 11263 shlibpath_var=LD_LIBRARY_PATH 11264 ;; 11265 11266*) 11267 dynamic_linker=no 11268 ;; 11269esac 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11271$as_echo "$dynamic_linker" >&6; } 11272test no = "$dynamic_linker" && can_build_shared=no 11273 11274variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11275if test yes = "$GCC"; then 11276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11277fi 11278 11279if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11280 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11281fi 11282 11283if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11284 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11285fi 11286 11287# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11288configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11289 11290# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11291func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11292 11293# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11294configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11393$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11394hardcode_action= 11395if test -n "$hardcode_libdir_flag_spec" || 11396 test -n "$runpath_var" || 11397 test yes = "$hardcode_automatic"; then 11398 11399 # We can hardcode non-existent directories. 11400 if test no != "$hardcode_direct" && 11401 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11402 # have to relink, otherwise we might link with an installed library 11403 # when we should be linking with a yet-to-be-installed one 11404 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11405 test no != "$hardcode_minus_L"; then 11406 # Linking always hardcodes the temporary library directory. 11407 hardcode_action=relink 11408 else 11409 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11410 hardcode_action=immediate 11411 fi 11412else 11413 # We cannot hardcode anything, or else we can only hardcode existing 11414 # directories. 11415 hardcode_action=unsupported 11416fi 11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11418$as_echo "$hardcode_action" >&6; } 11419 11420if test relink = "$hardcode_action" || 11421 test yes = "$inherit_rpath"; then 11422 # Fast installation is not supported 11423 enable_fast_install=no 11424elif test yes = "$shlibpath_overrides_runpath" || 11425 test no = "$enable_shared"; then 11426 # Fast installation is not necessary 11427 enable_fast_install=needless 11428fi 11429 11430 11431 11432 11433 11434 11435 if test yes != "$enable_dlopen"; then 11436 enable_dlopen=unknown 11437 enable_dlopen_self=unknown 11438 enable_dlopen_self_static=unknown 11439else 11440 lt_cv_dlopen=no 11441 lt_cv_dlopen_libs= 11442 11443 case $host_os in 11444 beos*) 11445 lt_cv_dlopen=load_add_on 11446 lt_cv_dlopen_libs= 11447 lt_cv_dlopen_self=yes 11448 ;; 11449 11450 mingw* | pw32* | cegcc*) 11451 lt_cv_dlopen=LoadLibrary 11452 lt_cv_dlopen_libs= 11453 ;; 11454 11455 cygwin*) 11456 lt_cv_dlopen=dlopen 11457 lt_cv_dlopen_libs= 11458 ;; 11459 11460 darwin*) 11461 # if libdl is installed we need to link against it 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11463$as_echo_n "checking for dlopen in -ldl... " >&6; } 11464if ${ac_cv_lib_dl_dlopen+:} false; then : 11465 $as_echo_n "(cached) " >&6 11466else 11467 ac_check_lib_save_LIBS=$LIBS 11468LIBS="-ldl $LIBS" 11469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11470/* end confdefs.h. */ 11471 11472/* Override any GCC internal prototype to avoid an error. 11473 Use char because int might match the return type of a GCC 11474 builtin and then its argument prototype would still apply. */ 11475#ifdef __cplusplus 11476extern "C" 11477#endif 11478char dlopen (); 11479int 11480main () 11481{ 11482return dlopen (); 11483 ; 11484 return 0; 11485} 11486_ACEOF 11487if ac_fn_c_try_link "$LINENO"; then : 11488 ac_cv_lib_dl_dlopen=yes 11489else 11490 ac_cv_lib_dl_dlopen=no 11491fi 11492rm -f core conftest.err conftest.$ac_objext \ 11493 conftest$ac_exeext conftest.$ac_ext 11494LIBS=$ac_check_lib_save_LIBS 11495fi 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11497$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11498if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11499 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11500else 11501 11502 lt_cv_dlopen=dyld 11503 lt_cv_dlopen_libs= 11504 lt_cv_dlopen_self=yes 11505 11506fi 11507 11508 ;; 11509 11510 tpf*) 11511 # Don't try to run any link tests for TPF. We know it's impossible 11512 # because TPF is a cross-compiler, and we know how we open DSOs. 11513 lt_cv_dlopen=dlopen 11514 lt_cv_dlopen_libs= 11515 lt_cv_dlopen_self=no 11516 ;; 11517 11518 *) 11519 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11520if test "x$ac_cv_func_shl_load" = xyes; then : 11521 lt_cv_dlopen=shl_load 11522else 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11524$as_echo_n "checking for shl_load in -ldld... " >&6; } 11525if ${ac_cv_lib_dld_shl_load+:} false; then : 11526 $as_echo_n "(cached) " >&6 11527else 11528 ac_check_lib_save_LIBS=$LIBS 11529LIBS="-ldld $LIBS" 11530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11531/* end confdefs.h. */ 11532 11533/* Override any GCC internal prototype to avoid an error. 11534 Use char because int might match the return type of a GCC 11535 builtin and then its argument prototype would still apply. */ 11536#ifdef __cplusplus 11537extern "C" 11538#endif 11539char shl_load (); 11540int 11541main () 11542{ 11543return shl_load (); 11544 ; 11545 return 0; 11546} 11547_ACEOF 11548if ac_fn_c_try_link "$LINENO"; then : 11549 ac_cv_lib_dld_shl_load=yes 11550else 11551 ac_cv_lib_dld_shl_load=no 11552fi 11553rm -f core conftest.err conftest.$ac_objext \ 11554 conftest$ac_exeext conftest.$ac_ext 11555LIBS=$ac_check_lib_save_LIBS 11556fi 11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11558$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11559if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11560 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11561else 11562 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11563if test "x$ac_cv_func_dlopen" = xyes; then : 11564 lt_cv_dlopen=dlopen 11565else 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11567$as_echo_n "checking for dlopen in -ldl... " >&6; } 11568if ${ac_cv_lib_dl_dlopen+:} false; then : 11569 $as_echo_n "(cached) " >&6 11570else 11571 ac_check_lib_save_LIBS=$LIBS 11572LIBS="-ldl $LIBS" 11573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11574/* end confdefs.h. */ 11575 11576/* Override any GCC internal prototype to avoid an error. 11577 Use char because int might match the return type of a GCC 11578 builtin and then its argument prototype would still apply. */ 11579#ifdef __cplusplus 11580extern "C" 11581#endif 11582char dlopen (); 11583int 11584main () 11585{ 11586return dlopen (); 11587 ; 11588 return 0; 11589} 11590_ACEOF 11591if ac_fn_c_try_link "$LINENO"; then : 11592 ac_cv_lib_dl_dlopen=yes 11593else 11594 ac_cv_lib_dl_dlopen=no 11595fi 11596rm -f core conftest.err conftest.$ac_objext \ 11597 conftest$ac_exeext conftest.$ac_ext 11598LIBS=$ac_check_lib_save_LIBS 11599fi 11600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11601$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11602if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11603 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11604else 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11606$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11607if ${ac_cv_lib_svld_dlopen+:} false; then : 11608 $as_echo_n "(cached) " >&6 11609else 11610 ac_check_lib_save_LIBS=$LIBS 11611LIBS="-lsvld $LIBS" 11612cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11613/* end confdefs.h. */ 11614 11615/* Override any GCC internal prototype to avoid an error. 11616 Use char because int might match the return type of a GCC 11617 builtin and then its argument prototype would still apply. */ 11618#ifdef __cplusplus 11619extern "C" 11620#endif 11621char dlopen (); 11622int 11623main () 11624{ 11625return dlopen (); 11626 ; 11627 return 0; 11628} 11629_ACEOF 11630if ac_fn_c_try_link "$LINENO"; then : 11631 ac_cv_lib_svld_dlopen=yes 11632else 11633 ac_cv_lib_svld_dlopen=no 11634fi 11635rm -f core conftest.err conftest.$ac_objext \ 11636 conftest$ac_exeext conftest.$ac_ext 11637LIBS=$ac_check_lib_save_LIBS 11638fi 11639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11640$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11641if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11642 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11643else 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11645$as_echo_n "checking for dld_link in -ldld... " >&6; } 11646if ${ac_cv_lib_dld_dld_link+:} false; then : 11647 $as_echo_n "(cached) " >&6 11648else 11649 ac_check_lib_save_LIBS=$LIBS 11650LIBS="-ldld $LIBS" 11651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11652/* end confdefs.h. */ 11653 11654/* Override any GCC internal prototype to avoid an error. 11655 Use char because int might match the return type of a GCC 11656 builtin and then its argument prototype would still apply. */ 11657#ifdef __cplusplus 11658extern "C" 11659#endif 11660char dld_link (); 11661int 11662main () 11663{ 11664return dld_link (); 11665 ; 11666 return 0; 11667} 11668_ACEOF 11669if ac_fn_c_try_link "$LINENO"; then : 11670 ac_cv_lib_dld_dld_link=yes 11671else 11672 ac_cv_lib_dld_dld_link=no 11673fi 11674rm -f core conftest.err conftest.$ac_objext \ 11675 conftest$ac_exeext conftest.$ac_ext 11676LIBS=$ac_check_lib_save_LIBS 11677fi 11678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11679$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11680if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11681 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11682fi 11683 11684 11685fi 11686 11687 11688fi 11689 11690 11691fi 11692 11693 11694fi 11695 11696 11697fi 11698 11699 ;; 11700 esac 11701 11702 if test no = "$lt_cv_dlopen"; then 11703 enable_dlopen=no 11704 else 11705 enable_dlopen=yes 11706 fi 11707 11708 case $lt_cv_dlopen in 11709 dlopen) 11710 save_CPPFLAGS=$CPPFLAGS 11711 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11712 11713 save_LDFLAGS=$LDFLAGS 11714 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11715 11716 save_LIBS=$LIBS 11717 LIBS="$lt_cv_dlopen_libs $LIBS" 11718 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11720$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11721if ${lt_cv_dlopen_self+:} false; then : 11722 $as_echo_n "(cached) " >&6 11723else 11724 if test yes = "$cross_compiling"; then : 11725 lt_cv_dlopen_self=cross 11726else 11727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11728 lt_status=$lt_dlunknown 11729 cat > conftest.$ac_ext <<_LT_EOF 11730#line $LINENO "configure" 11731#include "confdefs.h" 11732 11733#if HAVE_DLFCN_H 11734#include <dlfcn.h> 11735#endif 11736 11737#include <stdio.h> 11738 11739#ifdef RTLD_GLOBAL 11740# define LT_DLGLOBAL RTLD_GLOBAL 11741#else 11742# ifdef DL_GLOBAL 11743# define LT_DLGLOBAL DL_GLOBAL 11744# else 11745# define LT_DLGLOBAL 0 11746# endif 11747#endif 11748 11749/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11750 find out it does not work in some platform. */ 11751#ifndef LT_DLLAZY_OR_NOW 11752# ifdef RTLD_LAZY 11753# define LT_DLLAZY_OR_NOW RTLD_LAZY 11754# else 11755# ifdef DL_LAZY 11756# define LT_DLLAZY_OR_NOW DL_LAZY 11757# else 11758# ifdef RTLD_NOW 11759# define LT_DLLAZY_OR_NOW RTLD_NOW 11760# else 11761# ifdef DL_NOW 11762# define LT_DLLAZY_OR_NOW DL_NOW 11763# else 11764# define LT_DLLAZY_OR_NOW 0 11765# endif 11766# endif 11767# endif 11768# endif 11769#endif 11770 11771/* When -fvisibility=hidden is used, assume the code has been annotated 11772 correspondingly for the symbols needed. */ 11773#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11774int fnord () __attribute__((visibility("default"))); 11775#endif 11776 11777int fnord () { return 42; } 11778int main () 11779{ 11780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11781 int status = $lt_dlunknown; 11782 11783 if (self) 11784 { 11785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11786 else 11787 { 11788 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11789 else puts (dlerror ()); 11790 } 11791 /* dlclose (self); */ 11792 } 11793 else 11794 puts (dlerror ()); 11795 11796 return status; 11797} 11798_LT_EOF 11799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11800 (eval $ac_link) 2>&5 11801 ac_status=$? 11802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11803 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11804 (./conftest; exit; ) >&5 2>/dev/null 11805 lt_status=$? 11806 case x$lt_status in 11807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11809 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11810 esac 11811 else : 11812 # compilation failed 11813 lt_cv_dlopen_self=no 11814 fi 11815fi 11816rm -fr conftest* 11817 11818 11819fi 11820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11821$as_echo "$lt_cv_dlopen_self" >&6; } 11822 11823 if test yes = "$lt_cv_dlopen_self"; then 11824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11826$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11827if ${lt_cv_dlopen_self_static+:} false; then : 11828 $as_echo_n "(cached) " >&6 11829else 11830 if test yes = "$cross_compiling"; then : 11831 lt_cv_dlopen_self_static=cross 11832else 11833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11834 lt_status=$lt_dlunknown 11835 cat > conftest.$ac_ext <<_LT_EOF 11836#line $LINENO "configure" 11837#include "confdefs.h" 11838 11839#if HAVE_DLFCN_H 11840#include <dlfcn.h> 11841#endif 11842 11843#include <stdio.h> 11844 11845#ifdef RTLD_GLOBAL 11846# define LT_DLGLOBAL RTLD_GLOBAL 11847#else 11848# ifdef DL_GLOBAL 11849# define LT_DLGLOBAL DL_GLOBAL 11850# else 11851# define LT_DLGLOBAL 0 11852# endif 11853#endif 11854 11855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11856 find out it does not work in some platform. */ 11857#ifndef LT_DLLAZY_OR_NOW 11858# ifdef RTLD_LAZY 11859# define LT_DLLAZY_OR_NOW RTLD_LAZY 11860# else 11861# ifdef DL_LAZY 11862# define LT_DLLAZY_OR_NOW DL_LAZY 11863# else 11864# ifdef RTLD_NOW 11865# define LT_DLLAZY_OR_NOW RTLD_NOW 11866# else 11867# ifdef DL_NOW 11868# define LT_DLLAZY_OR_NOW DL_NOW 11869# else 11870# define LT_DLLAZY_OR_NOW 0 11871# endif 11872# endif 11873# endif 11874# endif 11875#endif 11876 11877/* When -fvisibility=hidden is used, assume the code has been annotated 11878 correspondingly for the symbols needed. */ 11879#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11880int fnord () __attribute__((visibility("default"))); 11881#endif 11882 11883int fnord () { return 42; } 11884int main () 11885{ 11886 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11887 int status = $lt_dlunknown; 11888 11889 if (self) 11890 { 11891 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11892 else 11893 { 11894 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11895 else puts (dlerror ()); 11896 } 11897 /* dlclose (self); */ 11898 } 11899 else 11900 puts (dlerror ()); 11901 11902 return status; 11903} 11904_LT_EOF 11905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11906 (eval $ac_link) 2>&5 11907 ac_status=$? 11908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11909 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11910 (./conftest; exit; ) >&5 2>/dev/null 11911 lt_status=$? 11912 case x$lt_status in 11913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11916 esac 11917 else : 11918 # compilation failed 11919 lt_cv_dlopen_self_static=no 11920 fi 11921fi 11922rm -fr conftest* 11923 11924 11925fi 11926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11927$as_echo "$lt_cv_dlopen_self_static" >&6; } 11928 fi 11929 11930 CPPFLAGS=$save_CPPFLAGS 11931 LDFLAGS=$save_LDFLAGS 11932 LIBS=$save_LIBS 11933 ;; 11934 esac 11935 11936 case $lt_cv_dlopen_self in 11937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11938 *) enable_dlopen_self=unknown ;; 11939 esac 11940 11941 case $lt_cv_dlopen_self_static in 11942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11943 *) enable_dlopen_self_static=unknown ;; 11944 esac 11945fi 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963striplib= 11964old_striplib= 11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11966$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11967if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11969 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11971$as_echo "yes" >&6; } 11972else 11973# FIXME - insert some real tests, host_os isn't really good enough 11974 case $host_os in 11975 darwin*) 11976 if test -n "$STRIP"; then 11977 striplib="$STRIP -x" 11978 old_striplib="$STRIP -S" 11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11980$as_echo "yes" >&6; } 11981 else 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11983$as_echo "no" >&6; } 11984 fi 11985 ;; 11986 *) 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11988$as_echo "no" >&6; } 11989 ;; 11990 esac 11991fi 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 # Report what library types will actually be built 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12006$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12008$as_echo "$can_build_shared" >&6; } 12009 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12011$as_echo_n "checking whether to build shared libraries... " >&6; } 12012 test no = "$can_build_shared" && enable_shared=no 12013 12014 # On AIX, shared libraries and static libraries use the same namespace, and 12015 # are all built from PIC. 12016 case $host_os in 12017 aix3*) 12018 test yes = "$enable_shared" && enable_static=no 12019 if test -n "$RANLIB"; then 12020 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12021 postinstall_cmds='$RANLIB $lib' 12022 fi 12023 ;; 12024 12025 aix[4-9]*) 12026 if test ia64 != "$host_cpu"; then 12027 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12028 yes,aix,yes) ;; # shared object as lib.so file only 12029 yes,svr4,*) ;; # shared object as lib.so archive member only 12030 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12031 esac 12032 fi 12033 ;; 12034 esac 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12036$as_echo "$enable_shared" >&6; } 12037 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12039$as_echo_n "checking whether to build static libraries... " >&6; } 12040 # Make sure either enable_shared or enable_static is yes. 12041 test yes = "$enable_shared" || enable_static=yes 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12043$as_echo "$enable_static" >&6; } 12044 12045 12046 12047 12048fi 12049ac_ext=c 12050ac_cpp='$CPP $CPPFLAGS' 12051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12053ac_compiler_gnu=$ac_cv_c_compiler_gnu 12054 12055CC=$lt_save_CC 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 ac_config_commands="$ac_config_commands libtool" 12072 12073 12074 12075 12076# Only expand once: 12077 12078 12079 12080########################################################################### 12081 12082LIBCTL_VERSION=$PACKAGE_VERSION 12083 12084cat >>confdefs.h <<_ACEOF 12085#define LIBCTL_VERSION "$LIBCTL_VERSION" 12086_ACEOF 12087 12088 12089 12090LIBCTL_MAJOR_VERSION=`echo $LIBCTL_VERSION |cut -d. -f1` 12091LIBCTL_MINOR_VERSION=`echo $LIBCTL_VERSION |cut -d. -f2` 12092LIBCTL_BUGFIX_VERSION=`echo $LIBCTL_VERSION |cut -d. -f3` 12093test "x$LIBCTL_BUGFIX_VERSION" = x && LIBCTL_BUGFIX_VERSION=0 12094 12095cat >>confdefs.h <<_ACEOF 12096#define LIBCTL_MAJOR_VERSION $LIBCTL_MAJOR_VERSION 12097_ACEOF 12098 12099 12100cat >>confdefs.h <<_ACEOF 12101#define LIBCTL_MINOR_VERSION $LIBCTL_MINOR_VERSION 12102_ACEOF 12103 12104 12105cat >>confdefs.h <<_ACEOF 12106#define LIBCTL_BUGFIX_VERSION $LIBCTL_BUGFIX_VERSION 12107_ACEOF 12108 12109 12110 12111 12112 12113########################################################################### 12114 12115# Checks for programs. 12116ac_ext=c 12117ac_cpp='$CPP $CPPFLAGS' 12118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12120ac_compiler_gnu=$ac_cv_c_compiler_gnu 12121if test -n "$ac_tool_prefix"; then 12122 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12123set dummy ${ac_tool_prefix}gcc; ac_word=$2 12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12125$as_echo_n "checking for $ac_word... " >&6; } 12126if ${ac_cv_prog_CC+:} false; then : 12127 $as_echo_n "(cached) " >&6 12128else 12129 if test -n "$CC"; then 12130 ac_cv_prog_CC="$CC" # Let the user override the test. 12131else 12132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12133for as_dir in $PATH 12134do 12135 IFS=$as_save_IFS 12136 test -z "$as_dir" && as_dir=. 12137 for ac_exec_ext in '' $ac_executable_extensions; do 12138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12139 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12141 break 2 12142 fi 12143done 12144 done 12145IFS=$as_save_IFS 12146 12147fi 12148fi 12149CC=$ac_cv_prog_CC 12150if test -n "$CC"; then 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12152$as_echo "$CC" >&6; } 12153else 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12155$as_echo "no" >&6; } 12156fi 12157 12158 12159fi 12160if test -z "$ac_cv_prog_CC"; then 12161 ac_ct_CC=$CC 12162 # Extract the first word of "gcc", so it can be a program name with args. 12163set dummy gcc; ac_word=$2 12164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12165$as_echo_n "checking for $ac_word... " >&6; } 12166if ${ac_cv_prog_ac_ct_CC+:} false; then : 12167 $as_echo_n "(cached) " >&6 12168else 12169 if test -n "$ac_ct_CC"; then 12170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12171else 12172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12173for as_dir in $PATH 12174do 12175 IFS=$as_save_IFS 12176 test -z "$as_dir" && as_dir=. 12177 for ac_exec_ext in '' $ac_executable_extensions; do 12178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12179 ac_cv_prog_ac_ct_CC="gcc" 12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12181 break 2 12182 fi 12183done 12184 done 12185IFS=$as_save_IFS 12186 12187fi 12188fi 12189ac_ct_CC=$ac_cv_prog_ac_ct_CC 12190if test -n "$ac_ct_CC"; then 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12192$as_echo "$ac_ct_CC" >&6; } 12193else 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12195$as_echo "no" >&6; } 12196fi 12197 12198 if test "x$ac_ct_CC" = x; then 12199 CC="" 12200 else 12201 case $cross_compiling:$ac_tool_warned in 12202yes:) 12203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12205ac_tool_warned=yes ;; 12206esac 12207 CC=$ac_ct_CC 12208 fi 12209else 12210 CC="$ac_cv_prog_CC" 12211fi 12212 12213if test -z "$CC"; then 12214 if test -n "$ac_tool_prefix"; then 12215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12216set dummy ${ac_tool_prefix}cc; ac_word=$2 12217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12218$as_echo_n "checking for $ac_word... " >&6; } 12219if ${ac_cv_prog_CC+:} false; then : 12220 $as_echo_n "(cached) " >&6 12221else 12222 if test -n "$CC"; then 12223 ac_cv_prog_CC="$CC" # Let the user override the test. 12224else 12225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12226for as_dir in $PATH 12227do 12228 IFS=$as_save_IFS 12229 test -z "$as_dir" && as_dir=. 12230 for ac_exec_ext in '' $ac_executable_extensions; do 12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12232 ac_cv_prog_CC="${ac_tool_prefix}cc" 12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12234 break 2 12235 fi 12236done 12237 done 12238IFS=$as_save_IFS 12239 12240fi 12241fi 12242CC=$ac_cv_prog_CC 12243if test -n "$CC"; then 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12245$as_echo "$CC" >&6; } 12246else 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12248$as_echo "no" >&6; } 12249fi 12250 12251 12252 fi 12253fi 12254if test -z "$CC"; then 12255 # Extract the first word of "cc", so it can be a program name with args. 12256set dummy cc; ac_word=$2 12257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12258$as_echo_n "checking for $ac_word... " >&6; } 12259if ${ac_cv_prog_CC+:} false; then : 12260 $as_echo_n "(cached) " >&6 12261else 12262 if test -n "$CC"; then 12263 ac_cv_prog_CC="$CC" # Let the user override the test. 12264else 12265 ac_prog_rejected=no 12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12267for as_dir in $PATH 12268do 12269 IFS=$as_save_IFS 12270 test -z "$as_dir" && as_dir=. 12271 for ac_exec_ext in '' $ac_executable_extensions; do 12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12273 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12274 ac_prog_rejected=yes 12275 continue 12276 fi 12277 ac_cv_prog_CC="cc" 12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12279 break 2 12280 fi 12281done 12282 done 12283IFS=$as_save_IFS 12284 12285if test $ac_prog_rejected = yes; then 12286 # We found a bogon in the path, so make sure we never use it. 12287 set dummy $ac_cv_prog_CC 12288 shift 12289 if test $# != 0; then 12290 # We chose a different compiler from the bogus one. 12291 # However, it has the same basename, so the bogon will be chosen 12292 # first if we set CC to just the basename; use the full file name. 12293 shift 12294 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 12295 fi 12296fi 12297fi 12298fi 12299CC=$ac_cv_prog_CC 12300if test -n "$CC"; then 12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12302$as_echo "$CC" >&6; } 12303else 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12305$as_echo "no" >&6; } 12306fi 12307 12308 12309fi 12310if test -z "$CC"; then 12311 if test -n "$ac_tool_prefix"; then 12312 for ac_prog in cl.exe 12313 do 12314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12315set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12317$as_echo_n "checking for $ac_word... " >&6; } 12318if ${ac_cv_prog_CC+:} false; then : 12319 $as_echo_n "(cached) " >&6 12320else 12321 if test -n "$CC"; then 12322 ac_cv_prog_CC="$CC" # Let the user override the test. 12323else 12324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12325for as_dir in $PATH 12326do 12327 IFS=$as_save_IFS 12328 test -z "$as_dir" && as_dir=. 12329 for ac_exec_ext in '' $ac_executable_extensions; do 12330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12331 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 12332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12333 break 2 12334 fi 12335done 12336 done 12337IFS=$as_save_IFS 12338 12339fi 12340fi 12341CC=$ac_cv_prog_CC 12342if test -n "$CC"; then 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12344$as_echo "$CC" >&6; } 12345else 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12347$as_echo "no" >&6; } 12348fi 12349 12350 12351 test -n "$CC" && break 12352 done 12353fi 12354if test -z "$CC"; then 12355 ac_ct_CC=$CC 12356 for ac_prog in cl.exe 12357do 12358 # Extract the first word of "$ac_prog", so it can be a program name with args. 12359set dummy $ac_prog; ac_word=$2 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12361$as_echo_n "checking for $ac_word... " >&6; } 12362if ${ac_cv_prog_ac_ct_CC+:} false; then : 12363 $as_echo_n "(cached) " >&6 12364else 12365 if test -n "$ac_ct_CC"; then 12366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12367else 12368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12369for as_dir in $PATH 12370do 12371 IFS=$as_save_IFS 12372 test -z "$as_dir" && as_dir=. 12373 for ac_exec_ext in '' $ac_executable_extensions; do 12374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12375 ac_cv_prog_ac_ct_CC="$ac_prog" 12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12377 break 2 12378 fi 12379done 12380 done 12381IFS=$as_save_IFS 12382 12383fi 12384fi 12385ac_ct_CC=$ac_cv_prog_ac_ct_CC 12386if test -n "$ac_ct_CC"; then 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12388$as_echo "$ac_ct_CC" >&6; } 12389else 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12391$as_echo "no" >&6; } 12392fi 12393 12394 12395 test -n "$ac_ct_CC" && break 12396done 12397 12398 if test "x$ac_ct_CC" = x; then 12399 CC="" 12400 else 12401 case $cross_compiling:$ac_tool_warned in 12402yes:) 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12405ac_tool_warned=yes ;; 12406esac 12407 CC=$ac_ct_CC 12408 fi 12409fi 12410 12411fi 12412 12413 12414test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12416as_fn_error $? "no acceptable C compiler found in \$PATH 12417See \`config.log' for more details" "$LINENO" 5; } 12418 12419# Provide some information about the compiler. 12420$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 12421set X $ac_compile 12422ac_compiler=$2 12423for ac_option in --version -v -V -qversion; do 12424 { { ac_try="$ac_compiler $ac_option >&5" 12425case "(($ac_try" in 12426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12427 *) ac_try_echo=$ac_try;; 12428esac 12429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12430$as_echo "$ac_try_echo"; } >&5 12431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12432 ac_status=$? 12433 if test -s conftest.err; then 12434 sed '10a\ 12435... rest of stderr output deleted ... 12436 10q' conftest.err >conftest.er1 12437 cat conftest.er1 >&5 12438 fi 12439 rm -f conftest.er1 conftest.err 12440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12441 test $ac_status = 0; } 12442done 12443 12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 12445$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 12446if ${ac_cv_c_compiler_gnu+:} false; then : 12447 $as_echo_n "(cached) " >&6 12448else 12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12450/* end confdefs.h. */ 12451 12452int 12453main () 12454{ 12455#ifndef __GNUC__ 12456 choke me 12457#endif 12458 12459 ; 12460 return 0; 12461} 12462_ACEOF 12463if ac_fn_c_try_compile "$LINENO"; then : 12464 ac_compiler_gnu=yes 12465else 12466 ac_compiler_gnu=no 12467fi 12468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12469ac_cv_c_compiler_gnu=$ac_compiler_gnu 12470 12471fi 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 12473$as_echo "$ac_cv_c_compiler_gnu" >&6; } 12474if test $ac_compiler_gnu = yes; then 12475 GCC=yes 12476else 12477 GCC= 12478fi 12479ac_test_CFLAGS=${CFLAGS+set} 12480ac_save_CFLAGS=$CFLAGS 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 12482$as_echo_n "checking whether $CC accepts -g... " >&6; } 12483if ${ac_cv_prog_cc_g+:} false; then : 12484 $as_echo_n "(cached) " >&6 12485else 12486 ac_save_c_werror_flag=$ac_c_werror_flag 12487 ac_c_werror_flag=yes 12488 ac_cv_prog_cc_g=no 12489 CFLAGS="-g" 12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12491/* end confdefs.h. */ 12492 12493int 12494main () 12495{ 12496 12497 ; 12498 return 0; 12499} 12500_ACEOF 12501if ac_fn_c_try_compile "$LINENO"; then : 12502 ac_cv_prog_cc_g=yes 12503else 12504 CFLAGS="" 12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12506/* end confdefs.h. */ 12507 12508int 12509main () 12510{ 12511 12512 ; 12513 return 0; 12514} 12515_ACEOF 12516if ac_fn_c_try_compile "$LINENO"; then : 12517 12518else 12519 ac_c_werror_flag=$ac_save_c_werror_flag 12520 CFLAGS="-g" 12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12522/* end confdefs.h. */ 12523 12524int 12525main () 12526{ 12527 12528 ; 12529 return 0; 12530} 12531_ACEOF 12532if ac_fn_c_try_compile "$LINENO"; then : 12533 ac_cv_prog_cc_g=yes 12534fi 12535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12536fi 12537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12538fi 12539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12540 ac_c_werror_flag=$ac_save_c_werror_flag 12541fi 12542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 12543$as_echo "$ac_cv_prog_cc_g" >&6; } 12544if test "$ac_test_CFLAGS" = set; then 12545 CFLAGS=$ac_save_CFLAGS 12546elif test $ac_cv_prog_cc_g = yes; then 12547 if test "$GCC" = yes; then 12548 CFLAGS="-g -O2" 12549 else 12550 CFLAGS="-g" 12551 fi 12552else 12553 if test "$GCC" = yes; then 12554 CFLAGS="-O2" 12555 else 12556 CFLAGS= 12557 fi 12558fi 12559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 12560$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 12561if ${ac_cv_prog_cc_c89+:} false; then : 12562 $as_echo_n "(cached) " >&6 12563else 12564 ac_cv_prog_cc_c89=no 12565ac_save_CC=$CC 12566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12567/* end confdefs.h. */ 12568#include <stdarg.h> 12569#include <stdio.h> 12570struct stat; 12571/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 12572struct buf { int x; }; 12573FILE * (*rcsopen) (struct buf *, struct stat *, int); 12574static char *e (p, i) 12575 char **p; 12576 int i; 12577{ 12578 return p[i]; 12579} 12580static char *f (char * (*g) (char **, int), char **p, ...) 12581{ 12582 char *s; 12583 va_list v; 12584 va_start (v,p); 12585 s = g (p, va_arg (v,int)); 12586 va_end (v); 12587 return s; 12588} 12589 12590/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 12591 function prototypes and stuff, but not '\xHH' hex character constants. 12592 These don't provoke an error unfortunately, instead are silently treated 12593 as 'x'. The following induces an error, until -std is added to get 12594 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 12595 array size at least. It's necessary to write '\x00'==0 to get something 12596 that's true only with -std. */ 12597int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 12598 12599/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 12600 inside strings and character constants. */ 12601#define FOO(x) 'x' 12602int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 12603 12604int test (int i, double x); 12605struct s1 {int (*f) (int a);}; 12606struct s2 {int (*f) (double a);}; 12607int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 12608int argc; 12609char **argv; 12610int 12611main () 12612{ 12613return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 12614 ; 12615 return 0; 12616} 12617_ACEOF 12618for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 12619 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 12620do 12621 CC="$ac_save_CC $ac_arg" 12622 if ac_fn_c_try_compile "$LINENO"; then : 12623 ac_cv_prog_cc_c89=$ac_arg 12624fi 12625rm -f core conftest.err conftest.$ac_objext 12626 test "x$ac_cv_prog_cc_c89" != "xno" && break 12627done 12628rm -f conftest.$ac_ext 12629CC=$ac_save_CC 12630 12631fi 12632# AC_CACHE_VAL 12633case "x$ac_cv_prog_cc_c89" in 12634 x) 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12636$as_echo "none needed" >&6; } ;; 12637 xno) 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12639$as_echo "unsupported" >&6; } ;; 12640 *) 12641 CC="$CC $ac_cv_prog_cc_c89" 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 12643$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 12644esac 12645if test "x$ac_cv_prog_cc_c89" != xno; then : 12646 12647fi 12648 12649ac_ext=c 12650ac_cpp='$CPP $CPPFLAGS' 12651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12653ac_compiler_gnu=$ac_cv_c_compiler_gnu 12654 12655ac_ext=c 12656ac_cpp='$CPP $CPPFLAGS' 12657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12659ac_compiler_gnu=$ac_cv_c_compiler_gnu 12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 12661$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 12662if ${am_cv_prog_cc_c_o+:} false; then : 12663 $as_echo_n "(cached) " >&6 12664else 12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12666/* end confdefs.h. */ 12667 12668int 12669main () 12670{ 12671 12672 ; 12673 return 0; 12674} 12675_ACEOF 12676 # Make sure it works both with $CC and with simple cc. 12677 # Following AC_PROG_CC_C_O, we do the test twice because some 12678 # compilers refuse to overwrite an existing .o file with -o, 12679 # though they will create one. 12680 am_cv_prog_cc_c_o=yes 12681 for am_i in 1 2; do 12682 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 12683 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 12684 ac_status=$? 12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12686 (exit $ac_status); } \ 12687 && test -f conftest2.$ac_objext; then 12688 : OK 12689 else 12690 am_cv_prog_cc_c_o=no 12691 break 12692 fi 12693 done 12694 rm -f core conftest* 12695 unset am_i 12696fi 12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 12698$as_echo "$am_cv_prog_cc_c_o" >&6; } 12699if test "$am_cv_prog_cc_c_o" != yes; then 12700 # Losing compiler, so override with the script. 12701 # FIXME: It is wrong to rewrite CC. 12702 # But if we don't then we get into trouble of one sort or another. 12703 # A longer-term fix would be to have automake use am__CC in this case, 12704 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 12705 CC="$am_aux_dir/compile $CC" 12706fi 12707ac_ext=c 12708ac_cpp='$CPP $CPPFLAGS' 12709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12711ac_compiler_gnu=$ac_cv_c_compiler_gnu 12712 12713 12714depcc="$CC" am_compiler_list= 12715 12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12717$as_echo_n "checking dependency style of $depcc... " >&6; } 12718if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12719 $as_echo_n "(cached) " >&6 12720else 12721 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12722 # We make a subdir and do the tests there. Otherwise we can end up 12723 # making bogus files that we don't know about and never remove. For 12724 # instance it was reported that on HP-UX the gcc test will end up 12725 # making a dummy file named 'D' -- because '-MD' means "put the output 12726 # in D". 12727 rm -rf conftest.dir 12728 mkdir conftest.dir 12729 # Copy depcomp to subdir because otherwise we won't find it if we're 12730 # using a relative directory. 12731 cp "$am_depcomp" conftest.dir 12732 cd conftest.dir 12733 # We will build objects and dependencies in a subdirectory because 12734 # it helps to detect inapplicable dependency modes. For instance 12735 # both Tru64's cc and ICC support -MD to output dependencies as a 12736 # side effect of compilation, but ICC will put the dependencies in 12737 # the current directory while Tru64 will put them in the object 12738 # directory. 12739 mkdir sub 12740 12741 am_cv_CC_dependencies_compiler_type=none 12742 if test "$am_compiler_list" = ""; then 12743 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12744 fi 12745 am__universal=false 12746 case " $depcc " in #( 12747 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12748 esac 12749 12750 for depmode in $am_compiler_list; do 12751 # Setup a source with many dependencies, because some compilers 12752 # like to wrap large dependency lists on column 80 (with \), and 12753 # we should not choose a depcomp mode which is confused by this. 12754 # 12755 # We need to recreate these files for each test, as the compiler may 12756 # overwrite some of them when testing with obscure command lines. 12757 # This happens at least with the AIX C compiler. 12758 : > sub/conftest.c 12759 for i in 1 2 3 4 5 6; do 12760 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12761 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12762 # Solaris 10 /bin/sh. 12763 echo '/* dummy */' > sub/conftst$i.h 12764 done 12765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12766 12767 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12768 # mode. It turns out that the SunPro C++ compiler does not properly 12769 # handle '-M -o', and we need to detect this. Also, some Intel 12770 # versions had trouble with output in subdirs. 12771 am__obj=sub/conftest.${OBJEXT-o} 12772 am__minus_obj="-o $am__obj" 12773 case $depmode in 12774 gcc) 12775 # This depmode causes a compiler race in universal mode. 12776 test "$am__universal" = false || continue 12777 ;; 12778 nosideeffect) 12779 # After this tag, mechanisms are not by side-effect, so they'll 12780 # only be used when explicitly requested. 12781 if test "x$enable_dependency_tracking" = xyes; then 12782 continue 12783 else 12784 break 12785 fi 12786 ;; 12787 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12788 # This compiler won't grok '-c -o', but also, the minuso test has 12789 # not run yet. These depmodes are late enough in the game, and 12790 # so weak that their functioning should not be impacted. 12791 am__obj=conftest.${OBJEXT-o} 12792 am__minus_obj= 12793 ;; 12794 none) break ;; 12795 esac 12796 if depmode=$depmode \ 12797 source=sub/conftest.c object=$am__obj \ 12798 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12799 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12800 >/dev/null 2>conftest.err && 12801 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12802 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12803 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12804 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12805 # icc doesn't choke on unknown options, it will just issue warnings 12806 # or remarks (even with -Werror). So we grep stderr for any message 12807 # that says an option was ignored or not supported. 12808 # When given -MP, icc 7.0 and 7.1 complain thusly: 12809 # icc: Command line warning: ignoring option '-M'; no argument required 12810 # The diagnosis changed in icc 8.0: 12811 # icc: Command line remark: option '-MP' not supported 12812 if (grep 'ignoring option' conftest.err || 12813 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12814 am_cv_CC_dependencies_compiler_type=$depmode 12815 break 12816 fi 12817 fi 12818 done 12819 12820 cd .. 12821 rm -rf conftest.dir 12822else 12823 am_cv_CC_dependencies_compiler_type=none 12824fi 12825 12826fi 12827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12828$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12829CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12830 12831 if 12832 test "x$enable_dependency_tracking" != xno \ 12833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12834 am__fastdepCC_TRUE= 12835 am__fastdepCC_FALSE='#' 12836else 12837 am__fastdepCC_TRUE='#' 12838 am__fastdepCC_FALSE= 12839fi 12840 12841 12842 12843 12844for ac_prog in indent gindent 12845do 12846 # Extract the first word of "$ac_prog", so it can be a program name with args. 12847set dummy $ac_prog; ac_word=$2 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12849$as_echo_n "checking for $ac_word... " >&6; } 12850if ${ac_cv_prog_INDENT+:} false; then : 12851 $as_echo_n "(cached) " >&6 12852else 12853 if test -n "$INDENT"; then 12854 ac_cv_prog_INDENT="$INDENT" # Let the user override the test. 12855else 12856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12857for as_dir in $PATH 12858do 12859 IFS=$as_save_IFS 12860 test -z "$as_dir" && as_dir=. 12861 for ac_exec_ext in '' $ac_executable_extensions; do 12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12863 ac_cv_prog_INDENT="$ac_prog" 12864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12865 break 2 12866 fi 12867done 12868 done 12869IFS=$as_save_IFS 12870 12871fi 12872fi 12873INDENT=$ac_cv_prog_INDENT 12874if test -n "$INDENT"; then 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5 12876$as_echo "$INDENT" >&6; } 12877else 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12879$as_echo "no" >&6; } 12880fi 12881 12882 12883 test -n "$INDENT" && break 12884done 12885test -n "$INDENT" || INDENT="echo" 12886 12887 12888 12889# check how to transform the name of the installed program: 12890 12891# Check whether --enable-debug was given. 12892if test "${enable_debug+set}" = set; then : 12893 enableval=$enable_debug; ok=$enableval 12894else 12895 ok=no 12896fi 12897 12898if test "$ok" = "yes"; then 12899 CFLAGS="-g" 12900 12901$as_echo "#define DEBUG 1" >>confdefs.h 12902 12903fi 12904 12905# Checks for header files. 12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12907$as_echo_n "checking for ANSI C header files... " >&6; } 12908if ${ac_cv_header_stdc+:} false; then : 12909 $as_echo_n "(cached) " >&6 12910else 12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12912/* end confdefs.h. */ 12913#include <stdlib.h> 12914#include <stdarg.h> 12915#include <string.h> 12916#include <float.h> 12917 12918int 12919main () 12920{ 12921 12922 ; 12923 return 0; 12924} 12925_ACEOF 12926if ac_fn_c_try_compile "$LINENO"; then : 12927 ac_cv_header_stdc=yes 12928else 12929 ac_cv_header_stdc=no 12930fi 12931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12932 12933if test $ac_cv_header_stdc = yes; then 12934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12936/* end confdefs.h. */ 12937#include <string.h> 12938 12939_ACEOF 12940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12941 $EGREP "memchr" >/dev/null 2>&1; then : 12942 12943else 12944 ac_cv_header_stdc=no 12945fi 12946rm -f conftest* 12947 12948fi 12949 12950if test $ac_cv_header_stdc = yes; then 12951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12953/* end confdefs.h. */ 12954#include <stdlib.h> 12955 12956_ACEOF 12957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12958 $EGREP "free" >/dev/null 2>&1; then : 12959 12960else 12961 ac_cv_header_stdc=no 12962fi 12963rm -f conftest* 12964 12965fi 12966 12967if test $ac_cv_header_stdc = yes; then 12968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12969 if test "$cross_compiling" = yes; then : 12970 : 12971else 12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12973/* end confdefs.h. */ 12974#include <ctype.h> 12975#include <stdlib.h> 12976#if ((' ' & 0x0FF) == 0x020) 12977# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12978# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12979#else 12980# define ISLOWER(c) \ 12981 (('a' <= (c) && (c) <= 'i') \ 12982 || ('j' <= (c) && (c) <= 'r') \ 12983 || ('s' <= (c) && (c) <= 'z')) 12984# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12985#endif 12986 12987#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12988int 12989main () 12990{ 12991 int i; 12992 for (i = 0; i < 256; i++) 12993 if (XOR (islower (i), ISLOWER (i)) 12994 || toupper (i) != TOUPPER (i)) 12995 return 2; 12996 return 0; 12997} 12998_ACEOF 12999if ac_fn_c_try_run "$LINENO"; then : 13000 13001else 13002 ac_cv_header_stdc=no 13003fi 13004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13005 conftest.$ac_objext conftest.beam conftest.$ac_ext 13006fi 13007 13008fi 13009fi 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 13011$as_echo "$ac_cv_header_stdc" >&6; } 13012if test $ac_cv_header_stdc = yes; then 13013 13014$as_echo "#define STDC_HEADERS 1" >>confdefs.h 13015 13016fi 13017 13018 13019########################################################################### 13020 13021# Find Guile library, flags, etcetera: 13022 13023 13024# Check whether --with-guile was given. 13025if test "${with_guile+set}" = set; then : 13026 withval=$with_guile; with_guile=$withval 13027else 13028 with_guile=yes 13029fi 13030 13031 13032if test x"$with_guile" = xyes; then 13033 # Extract the first word of "guile", so it can be a program name with args. 13034set dummy guile; ac_word=$2 13035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13036$as_echo_n "checking for $ac_word... " >&6; } 13037if ${ac_cv_prog_GUILE+:} false; then : 13038 $as_echo_n "(cached) " >&6 13039else 13040 if test -n "$GUILE"; then 13041 ac_cv_prog_GUILE="$GUILE" # Let the user override the test. 13042else 13043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13044for as_dir in $PATH 13045do 13046 IFS=$as_save_IFS 13047 test -z "$as_dir" && as_dir=. 13048 for ac_exec_ext in '' $ac_executable_extensions; do 13049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13050 ac_cv_prog_GUILE="guile" 13051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13052 break 2 13053 fi 13054done 13055 done 13056IFS=$as_save_IFS 13057 13058 test -z "$ac_cv_prog_GUILE" && ac_cv_prog_GUILE="unknown" 13059fi 13060fi 13061GUILE=$ac_cv_prog_GUILE 13062if test -n "$GUILE"; then 13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5 13064$as_echo "$GUILE" >&6; } 13065else 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13067$as_echo "no" >&6; } 13068fi 13069 13070 13071 if test x"$guile_ok" = xunknown; then 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find guile program; check your PATH ... disabling guile" >&5 13073$as_echo "$as_me: WARNING: could not find guile program; check your PATH ... disabling guile" >&2;} 13074 with_guile=no 13075 fi 13076fi 13077 13078 13079# seems to be needed on ubuntu (issue #1): 13080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 13081$as_echo_n "checking for sqrt in -lm... " >&6; } 13082if ${ac_cv_lib_m_sqrt+:} false; then : 13083 $as_echo_n "(cached) " >&6 13084else 13085 ac_check_lib_save_LIBS=$LIBS 13086LIBS="-lm $LIBS" 13087cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13088/* end confdefs.h. */ 13089 13090/* Override any GCC internal prototype to avoid an error. 13091 Use char because int might match the return type of a GCC 13092 builtin and then its argument prototype would still apply. */ 13093#ifdef __cplusplus 13094extern "C" 13095#endif 13096char sqrt (); 13097int 13098main () 13099{ 13100return sqrt (); 13101 ; 13102 return 0; 13103} 13104_ACEOF 13105if ac_fn_c_try_link "$LINENO"; then : 13106 ac_cv_lib_m_sqrt=yes 13107else 13108 ac_cv_lib_m_sqrt=no 13109fi 13110rm -f core conftest.err conftest.$ac_objext \ 13111 conftest$ac_exeext conftest.$ac_ext 13112LIBS=$ac_check_lib_save_LIBS 13113fi 13114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 13115$as_echo "$ac_cv_lib_m_sqrt" >&6; } 13116if test "x$ac_cv_lib_m_sqrt" = xyes; then : 13117 cat >>confdefs.h <<_ACEOF 13118#define HAVE_LIBM 1 13119_ACEOF 13120 13121 LIBS="-lm $LIBS" 13122 13123fi 13124 13125 13126noguile_LIBS=$LIBS 13127LIBGUILE="" 13128 13129if test x"$with_guile" = xyes; then 13130 # Extract the first word of "guile-config", so it can be a program name with args. 13131set dummy guile-config; ac_word=$2 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13133$as_echo_n "checking for $ac_word... " >&6; } 13134if ${ac_cv_prog_GUILE_CONFIG+:} false; then : 13135 $as_echo_n "(cached) " >&6 13136else 13137 if test -n "$GUILE_CONFIG"; then 13138 ac_cv_prog_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test. 13139else 13140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13141for as_dir in $PATH 13142do 13143 IFS=$as_save_IFS 13144 test -z "$as_dir" && as_dir=. 13145 for ac_exec_ext in '' $ac_executable_extensions; do 13146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13147 ac_cv_prog_GUILE_CONFIG="guile-config" 13148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13149 break 2 13150 fi 13151done 13152 done 13153IFS=$as_save_IFS 13154 13155 test -z "$ac_cv_prog_GUILE_CONFIG" && ac_cv_prog_GUILE_CONFIG="unknown" 13156fi 13157fi 13158GUILE_CONFIG=$ac_cv_prog_GUILE_CONFIG 13159if test -n "$GUILE_CONFIG"; then 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5 13161$as_echo "$GUILE_CONFIG" >&6; } 13162else 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13164$as_echo "no" >&6; } 13165fi 13166 13167 13168 if test "x$GUILE_CONFIG" = "xunknown"; then 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 13170$as_echo_n "checking for readline in -lreadline... " >&6; } 13171if ${ac_cv_lib_readline_readline+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 ac_check_lib_save_LIBS=$LIBS 13175LIBS="-lreadline $LIBS" 13176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13177/* end confdefs.h. */ 13178 13179/* Override any GCC internal prototype to avoid an error. 13180 Use char because int might match the return type of a GCC 13181 builtin and then its argument prototype would still apply. */ 13182#ifdef __cplusplus 13183extern "C" 13184#endif 13185char readline (); 13186int 13187main () 13188{ 13189return readline (); 13190 ; 13191 return 0; 13192} 13193_ACEOF 13194if ac_fn_c_try_link "$LINENO"; then : 13195 ac_cv_lib_readline_readline=yes 13196else 13197 ac_cv_lib_readline_readline=no 13198fi 13199rm -f core conftest.err conftest.$ac_objext \ 13200 conftest$ac_exeext conftest.$ac_ext 13201LIBS=$ac_check_lib_save_LIBS 13202fi 13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 13204$as_echo "$ac_cv_lib_readline_readline" >&6; } 13205if test "x$ac_cv_lib_readline_readline" = xyes; then : 13206 cat >>confdefs.h <<_ACEOF 13207#define HAVE_LIBREADLINE 1 13208_ACEOF 13209 13210 LIBS="-lreadline $LIBS" 13211 13212fi 13213 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13215$as_echo_n "checking for dlopen in -ldl... " >&6; } 13216if ${ac_cv_lib_dl_dlopen+:} false; then : 13217 $as_echo_n "(cached) " >&6 13218else 13219 ac_check_lib_save_LIBS=$LIBS 13220LIBS="-ldl $LIBS" 13221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13222/* end confdefs.h. */ 13223 13224/* Override any GCC internal prototype to avoid an error. 13225 Use char because int might match the return type of a GCC 13226 builtin and then its argument prototype would still apply. */ 13227#ifdef __cplusplus 13228extern "C" 13229#endif 13230char dlopen (); 13231int 13232main () 13233{ 13234return dlopen (); 13235 ; 13236 return 0; 13237} 13238_ACEOF 13239if ac_fn_c_try_link "$LINENO"; then : 13240 ac_cv_lib_dl_dlopen=yes 13241else 13242 ac_cv_lib_dl_dlopen=no 13243fi 13244rm -f core conftest.err conftest.$ac_objext \ 13245 conftest$ac_exeext conftest.$ac_ext 13246LIBS=$ac_check_lib_save_LIBS 13247fi 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13249$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13250if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13251 cat >>confdefs.h <<_ACEOF 13252#define HAVE_LIBDL 1 13253_ACEOF 13254 13255 LIBS="-ldl $LIBS" 13256 13257fi 13258 13259 ok=no 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_eval_str in -lguile" >&5 13261$as_echo_n "checking for gh_eval_str in -lguile... " >&6; } 13262if ${ac_cv_lib_guile_gh_eval_str+:} false; then : 13263 $as_echo_n "(cached) " >&6 13264else 13265 ac_check_lib_save_LIBS=$LIBS 13266LIBS="-lguile $LIBS" 13267cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13268/* end confdefs.h. */ 13269 13270/* Override any GCC internal prototype to avoid an error. 13271 Use char because int might match the return type of a GCC 13272 builtin and then its argument prototype would still apply. */ 13273#ifdef __cplusplus 13274extern "C" 13275#endif 13276char gh_eval_str (); 13277int 13278main () 13279{ 13280return gh_eval_str (); 13281 ; 13282 return 0; 13283} 13284_ACEOF 13285if ac_fn_c_try_link "$LINENO"; then : 13286 ac_cv_lib_guile_gh_eval_str=yes 13287else 13288 ac_cv_lib_guile_gh_eval_str=no 13289fi 13290rm -f core conftest.err conftest.$ac_objext \ 13291 conftest$ac_exeext conftest.$ac_ext 13292LIBS=$ac_check_lib_save_LIBS 13293fi 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guile_gh_eval_str" >&5 13295$as_echo "$ac_cv_lib_guile_gh_eval_str" >&6; } 13296if test "x$ac_cv_lib_guile_gh_eval_str" = xyes; then : 13297 ok=yes 13298else 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scm_eval_string in -lguile" >&5 13300$as_echo_n "checking for scm_eval_string in -lguile... " >&6; } 13301if ${ac_cv_lib_guile_scm_eval_string+:} false; then : 13302 $as_echo_n "(cached) " >&6 13303else 13304 ac_check_lib_save_LIBS=$LIBS 13305LIBS="-lguile $LIBS" 13306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13307/* end confdefs.h. */ 13308 13309/* Override any GCC internal prototype to avoid an error. 13310 Use char because int might match the return type of a GCC 13311 builtin and then its argument prototype would still apply. */ 13312#ifdef __cplusplus 13313extern "C" 13314#endif 13315char scm_eval_string (); 13316int 13317main () 13318{ 13319return scm_eval_string (); 13320 ; 13321 return 0; 13322} 13323_ACEOF 13324if ac_fn_c_try_link "$LINENO"; then : 13325 ac_cv_lib_guile_scm_eval_string=yes 13326else 13327 ac_cv_lib_guile_scm_eval_string=no 13328fi 13329rm -f core conftest.err conftest.$ac_objext \ 13330 conftest$ac_exeext conftest.$ac_ext 13331LIBS=$ac_check_lib_save_LIBS 13332fi 13333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guile_scm_eval_string" >&5 13334$as_echo "$ac_cv_lib_guile_scm_eval_string" >&6; } 13335if test "x$ac_cv_lib_guile_scm_eval_string" = xyes; then : 13336 ok=yes 13337fi 13338 13339fi 13340 13341 if test $ok = yes; then 13342 LIBGUILE="-lguile -ldl -lreadline" 13343 LIBS="-lguile $LIBS" 13344 13345$as_echo "#define HAVE_LIBGUILE 1" >>confdefs.h 13346 13347 else 13348 with_guile=no 13349 fi 13350 else 13351 CPPFLAGS="$CPPFLAGS `$GUILE_CONFIG compile`" 13352 LIBGUILE=`$GUILE_CONFIG link` 13353 LIBS="$LIBS $LIBGUILE" 13354 fi 13355fi 13356 13357 13358if test x"$with_guile" = xyes; then 13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking to guile works" >&5 13360$as_echo_n "checking if linking to guile works... " >&6; } 13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13362/* end confdefs.h. */ 13363 13364/* Override any GCC internal prototype to avoid an error. 13365 Use char because int might match the return type of a GCC 13366 builtin and then its argument prototype would still apply. */ 13367#ifdef __cplusplus 13368extern "C" 13369#endif 13370char gh_enter (); 13371int 13372main () 13373{ 13374return gh_enter (); 13375 ; 13376 return 0; 13377} 13378_ACEOF 13379if ac_fn_c_try_link "$LINENO"; then : 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13381$as_echo "yes" >&6; } 13382else 13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13384/* end confdefs.h. */ 13385 13386/* Override any GCC internal prototype to avoid an error. 13387 Use char because int might match the return type of a GCC 13388 builtin and then its argument prototype would still apply. */ 13389#ifdef __cplusplus 13390extern "C" 13391#endif 13392char scm_boot_guile (); 13393int 13394main () 13395{ 13396return scm_boot_guile (); 13397 ; 13398 return 0; 13399} 13400_ACEOF 13401if ac_fn_c_try_link "$LINENO"; then : 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13403$as_echo "yes" >&6; } 13404else 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13406$as_echo "no" >&6; } 13407 as_fn_error $? "Guile linking failed" "$LINENO" 5 13408fi 13409rm -f core conftest.err conftest.$ac_objext \ 13410 conftest$ac_exeext conftest.$ac_ext 13411fi 13412rm -f core conftest.err conftest.$ac_objext \ 13413 conftest$ac_exeext conftest.$ac_ext 13414 for ac_header in libguile.h guile/gh.h 13415do : 13416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13417ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13418if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13419 cat >>confdefs.h <<_ACEOF 13420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13421_ACEOF 13422 13423fi 13424 13425done 13426 13427fi 13428 13429 13430 if test "x$with_guile" != xno; then 13431 WITH_GUILE_TRUE= 13432 WITH_GUILE_FALSE='#' 13433else 13434 WITH_GUILE_TRUE='#' 13435 WITH_GUILE_FALSE= 13436fi 13437 13438 13439########################################################################### 13440 13441# Checks for Guile features: 13442 13443if test x"$with_guile" = xyes; then 13444 13445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern non-gh interface" >&5 13446$as_echo_n "checking for modern non-gh interface... " >&6; } 13447ok=yes 13448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449/* end confdefs.h. */ 13450#include <libguile.h> 13451 13452int 13453main () 13454{ 13455scm_from_double(0.0);scm_from_int(0);scm_boot_guile(0,0,0,0);scm_c_define_gsubr(0,0,0,0,0); 13456 ; 13457 return 0; 13458} 13459_ACEOF 13460if ac_fn_c_try_link "$LINENO"; then : 13461 13462$as_echo "#define HAVE_NO_GH 1" >>confdefs.h 13463 13464else 13465 ok=no 13466fi 13467rm -f core conftest.err conftest.$ac_objext \ 13468 conftest$ac_exeext conftest.$ac_ext 13469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13470$as_echo "$ok" >&6; } 13471 13472 13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_enter" >&5 13474$as_echo_n "checking for gh_enter... " >&6; } 13475ok=yes 13476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13477/* end confdefs.h. */ 13478#include <guile/gh.h> 13479 13480int 13481main () 13482{ 13483gh_enter(0,0,0); 13484 ; 13485 return 0; 13486} 13487_ACEOF 13488if ac_fn_c_try_link "$LINENO"; then : 13489 13490$as_echo "#define HAVE_GH_ENTER 1" >>confdefs.h 13491 13492else 13493 ok=no 13494fi 13495rm -f core conftest.err conftest.$ac_objext \ 13496 conftest$ac_exeext conftest.$ac_ext 13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13498$as_echo "$ok" >&6; } 13499 13500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_eval_str" >&5 13501$as_echo_n "checking for gh_eval_str... " >&6; } 13502ok=yes 13503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13504/* end confdefs.h. */ 13505#include <guile/gh.h> 13506 13507int 13508main () 13509{ 13510gh_eval_str(0); 13511 ; 13512 return 0; 13513} 13514_ACEOF 13515if ac_fn_c_try_link "$LINENO"; then : 13516 13517$as_echo "#define HAVE_GH_EVAL_STR 1" >>confdefs.h 13518 13519else 13520 ok=no 13521fi 13522rm -f core conftest.err conftest.$ac_objext \ 13523 conftest$ac_exeext conftest.$ac_ext 13524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13525$as_echo "$ok" >&6; } 13526 13527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_load" >&5 13528$as_echo_n "checking for gh_load... " >&6; } 13529ok=yes 13530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13531/* end confdefs.h. */ 13532#include <guile/gh.h> 13533 13534int 13535main () 13536{ 13537gh_load(0); 13538 ; 13539 return 0; 13540} 13541_ACEOF 13542if ac_fn_c_try_link "$LINENO"; then : 13543 13544$as_echo "#define HAVE_GH_LOAD 1" >>confdefs.h 13545 13546else 13547 ok=no 13548fi 13549rm -f core conftest.err conftest.$ac_objext \ 13550 conftest$ac_exeext conftest.$ac_ext 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13552$as_echo "$ok" >&6; } 13553 13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_bool2scm" >&5 13555$as_echo_n "checking for gh_bool2scm... " >&6; } 13556ok=yes 13557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13558/* end confdefs.h. */ 13559#include <guile/gh.h> 13560 13561int 13562main () 13563{ 13564gh_bool2scm(0); 13565 ; 13566 return 0; 13567} 13568_ACEOF 13569if ac_fn_c_try_link "$LINENO"; then : 13570 13571$as_echo "#define HAVE_GH_BOOL2SCM 1" >>confdefs.h 13572 13573else 13574 ok=no 13575fi 13576rm -f core conftest.err conftest.$ac_objext \ 13577 conftest$ac_exeext conftest.$ac_ext 13578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13579$as_echo "$ok" >&6; } 13580 13581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_vector_ref" >&5 13582$as_echo_n "checking for gh_vector_ref... " >&6; } 13583ok=yes 13584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13585/* end confdefs.h. */ 13586#include <guile/gh.h> 13587 13588int 13589main () 13590{ 13591gh_vector_ref(0,0); 13592 ; 13593 return 0; 13594} 13595_ACEOF 13596if ac_fn_c_try_link "$LINENO"; then : 13597 13598$as_echo "#define HAVE_GH_VECTOR_REF 1" >>confdefs.h 13599 13600else 13601 ok=no 13602fi 13603rm -f core conftest.err conftest.$ac_objext \ 13604 conftest$ac_exeext conftest.$ac_ext 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13606$as_echo "$ok" >&6; } 13607 13608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_list_ref" >&5 13609$as_echo_n "checking for gh_list_ref... " >&6; } 13610ok=yes 13611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13612/* end confdefs.h. */ 13613#include <guile/gh.h> 13614 13615int 13616main () 13617{ 13618gh_list_ref(0,0); 13619 ; 13620 return 0; 13621} 13622_ACEOF 13623if ac_fn_c_try_link "$LINENO"; then : 13624 13625$as_echo "#define HAVE_GH_LIST_REF 1" >>confdefs.h 13626 13627else 13628 ok=no 13629fi 13630rm -f core conftest.err conftest.$ac_objext \ 13631 conftest$ac_exeext conftest.$ac_ext 13632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13633$as_echo "$ok" >&6; } 13634 13635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_length" >&5 13636$as_echo_n "checking for gh_length... " >&6; } 13637ok=yes 13638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13639/* end confdefs.h. */ 13640#include <guile/gh.h> 13641 13642int 13643main () 13644{ 13645gh_length(0); 13646 ; 13647 return 0; 13648} 13649_ACEOF 13650if ac_fn_c_try_link "$LINENO"; then : 13651 13652$as_echo "#define HAVE_GH_LENGTH 1" >>confdefs.h 13653 13654else 13655 ok=no 13656fi 13657rm -f core conftest.err conftest.$ac_objext \ 13658 conftest$ac_exeext conftest.$ac_ext 13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13660$as_echo "$ok" >&6; } 13661 13662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for scm_flush_all_ports" >&5 13663$as_echo_n "checking for scm_flush_all_ports... " >&6; } 13664ok=yes 13665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13666/* end confdefs.h. */ 13667#if defined(HAVE_LIBGUILE_H) 13668# include <libguile.h> 13669#else 13670# include <guile/gh.h> 13671#endif 13672 13673int 13674main () 13675{ 13676scm_flush_all_ports(); 13677 ; 13678 return 0; 13679} 13680_ACEOF 13681if ac_fn_c_try_link "$LINENO"; then : 13682 13683$as_echo "#define HAVE_SCM_FLUSH_ALL_PORTS 1" >>confdefs.h 13684 13685else 13686 ok=no 13687fi 13688rm -f core conftest.err conftest.$ac_objext \ 13689 conftest$ac_exeext conftest.$ac_ext 13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13691$as_echo "$ok" >&6; } 13692 13693for ac_func in scm_make_complex scm_c_make_rectangular scm_variable_set_x scm_c_lookup scm_c_make_vector scm_variable_ref 13694do : 13695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13696ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13697if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13698 cat >>confdefs.h <<_ACEOF 13699#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13700_ACEOF 13701 13702fi 13703done 13704 13705 13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCM_COMPLEXP" >&5 13707$as_echo_n "checking for SCM_COMPLEXP... " >&6; } 13708ok=yes 13709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13710/* end confdefs.h. */ 13711#if defined(HAVE_LIBGUILE_H) 13712# include <libguile.h> 13713#else 13714# include <guile/gh.h> 13715#endif 13716 13717int 13718main () 13719{ 13720SCM x; SCM_COMPLEXP(x); 13721 ; 13722 return 0; 13723} 13724_ACEOF 13725if ac_fn_c_try_link "$LINENO"; then : 13726 13727$as_echo "#define HAVE_SCM_COMPLEXP 1" >>confdefs.h 13728 13729else 13730 ok=no 13731fi 13732rm -f core conftest.err conftest.$ac_objext \ 13733 conftest$ac_exeext conftest.$ac_ext 13734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13735$as_echo "$ok" >&6; } 13736 13737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gh_lookup works properly" >&5 13738$as_echo_n "checking whether gh_lookup works properly... " >&6; } 13739ok=yes 13740if test "$cross_compiling" = yes; then : 13741 ok=no 13742else 13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745 13746#include <stdlib.h> 13747#include <guile/gh.h> 13748void main_entry(int argc, char *argv[]) 13749{ 13750 gh_eval_str("(define foo 3.14159)"); 13751 if (SCM_UNDEFINED == gh_lookup("foo")) 13752 exit(EXIT_FAILURE); 13753} 13754int main (int argc, char *argv[]) 13755{ 13756 gh_enter (argc, argv, main_entry); 13757 return EXIT_SUCCESS; 13758} 13759 13760_ACEOF 13761if ac_fn_c_try_run "$LINENO"; then : 13762 13763$as_echo "#define GH_LOOKUP_OK 1" >>confdefs.h 13764 13765else 13766 ok=no 13767fi 13768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13769 conftest.$ac_objext conftest.beam conftest.$ac_ext 13770fi 13771 13772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 13773$as_echo "$ok" >&6; } 13774 13775fi # with_guile 13776 13777LIBS=$noguile_LIBS 13778 13779########################################################################### 13780 13781# Find Fortran name-mangling routines, for wrapper functions 13782 13783ac_ext=f 13784ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13785ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13786ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13787if test -n "$ac_tool_prefix"; then 13788 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 13789 do 13790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13791set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13793$as_echo_n "checking for $ac_word... " >&6; } 13794if ${ac_cv_prog_F77+:} false; then : 13795 $as_echo_n "(cached) " >&6 13796else 13797 if test -n "$F77"; then 13798 ac_cv_prog_F77="$F77" # Let the user override the test. 13799else 13800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13801for as_dir in $PATH 13802do 13803 IFS=$as_save_IFS 13804 test -z "$as_dir" && as_dir=. 13805 for ac_exec_ext in '' $ac_executable_extensions; do 13806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13807 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 13808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13809 break 2 13810 fi 13811done 13812 done 13813IFS=$as_save_IFS 13814 13815fi 13816fi 13817F77=$ac_cv_prog_F77 13818if test -n "$F77"; then 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 13820$as_echo "$F77" >&6; } 13821else 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13823$as_echo "no" >&6; } 13824fi 13825 13826 13827 test -n "$F77" && break 13828 done 13829fi 13830if test -z "$F77"; then 13831 ac_ct_F77=$F77 13832 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 13833do 13834 # Extract the first word of "$ac_prog", so it can be a program name with args. 13835set dummy $ac_prog; ac_word=$2 13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13837$as_echo_n "checking for $ac_word... " >&6; } 13838if ${ac_cv_prog_ac_ct_F77+:} false; then : 13839 $as_echo_n "(cached) " >&6 13840else 13841 if test -n "$ac_ct_F77"; then 13842 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 13843else 13844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13845for as_dir in $PATH 13846do 13847 IFS=$as_save_IFS 13848 test -z "$as_dir" && as_dir=. 13849 for ac_exec_ext in '' $ac_executable_extensions; do 13850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13851 ac_cv_prog_ac_ct_F77="$ac_prog" 13852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13853 break 2 13854 fi 13855done 13856 done 13857IFS=$as_save_IFS 13858 13859fi 13860fi 13861ac_ct_F77=$ac_cv_prog_ac_ct_F77 13862if test -n "$ac_ct_F77"; then 13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 13864$as_echo "$ac_ct_F77" >&6; } 13865else 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13867$as_echo "no" >&6; } 13868fi 13869 13870 13871 test -n "$ac_ct_F77" && break 13872done 13873 13874 if test "x$ac_ct_F77" = x; then 13875 F77="" 13876 else 13877 case $cross_compiling:$ac_tool_warned in 13878yes:) 13879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13881ac_tool_warned=yes ;; 13882esac 13883 F77=$ac_ct_F77 13884 fi 13885fi 13886 13887 13888# Provide some information about the compiler. 13889$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 13890set X $ac_compile 13891ac_compiler=$2 13892for ac_option in --version -v -V -qversion; do 13893 { { ac_try="$ac_compiler $ac_option >&5" 13894case "(($ac_try" in 13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13896 *) ac_try_echo=$ac_try;; 13897esac 13898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13899$as_echo "$ac_try_echo"; } >&5 13900 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13901 ac_status=$? 13902 if test -s conftest.err; then 13903 sed '10a\ 13904... rest of stderr output deleted ... 13905 10q' conftest.err >conftest.er1 13906 cat conftest.er1 >&5 13907 fi 13908 rm -f conftest.er1 conftest.err 13909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13910 test $ac_status = 0; } 13911done 13912rm -f a.out 13913 13914# If we don't use `.F' as extension, the preprocessor is not run on the 13915# input file. (Note that this only needs to work for GNU compilers.) 13916ac_save_ext=$ac_ext 13917ac_ext=F 13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 13919$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 13920if ${ac_cv_f77_compiler_gnu+:} false; then : 13921 $as_echo_n "(cached) " >&6 13922else 13923 cat > conftest.$ac_ext <<_ACEOF 13924 program main 13925#ifndef __GNUC__ 13926 choke me 13927#endif 13928 13929 end 13930_ACEOF 13931if ac_fn_f77_try_compile "$LINENO"; then : 13932 ac_compiler_gnu=yes 13933else 13934 ac_compiler_gnu=no 13935fi 13936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13937ac_cv_f77_compiler_gnu=$ac_compiler_gnu 13938 13939fi 13940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 13941$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 13942ac_ext=$ac_save_ext 13943ac_test_FFLAGS=${FFLAGS+set} 13944ac_save_FFLAGS=$FFLAGS 13945FFLAGS= 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 13947$as_echo_n "checking whether $F77 accepts -g... " >&6; } 13948if ${ac_cv_prog_f77_g+:} false; then : 13949 $as_echo_n "(cached) " >&6 13950else 13951 FFLAGS=-g 13952cat > conftest.$ac_ext <<_ACEOF 13953 program main 13954 13955 end 13956_ACEOF 13957if ac_fn_f77_try_compile "$LINENO"; then : 13958 ac_cv_prog_f77_g=yes 13959else 13960 ac_cv_prog_f77_g=no 13961fi 13962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13963 13964fi 13965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 13966$as_echo "$ac_cv_prog_f77_g" >&6; } 13967if test "$ac_test_FFLAGS" = set; then 13968 FFLAGS=$ac_save_FFLAGS 13969elif test $ac_cv_prog_f77_g = yes; then 13970 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 13971 FFLAGS="-g -O2" 13972 else 13973 FFLAGS="-g" 13974 fi 13975else 13976 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 13977 FFLAGS="-O2" 13978 else 13979 FFLAGS= 13980 fi 13981fi 13982 13983if test $ac_compiler_gnu = yes; then 13984 G77=yes 13985else 13986 G77= 13987fi 13988ac_ext=c 13989ac_cpp='$CPP $CPPFLAGS' 13990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13992ac_compiler_gnu=$ac_cv_c_compiler_gnu 13993 13994 ac_ext=f 13995ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13996ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13997ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13998 13999if test -z "$F77" || test no = "$F77"; then 14000 _lt_disable_F77=yes 14001fi 14002 14003archive_cmds_need_lc_F77=no 14004allow_undefined_flag_F77= 14005always_export_symbols_F77=no 14006archive_expsym_cmds_F77= 14007export_dynamic_flag_spec_F77= 14008hardcode_direct_F77=no 14009hardcode_direct_absolute_F77=no 14010hardcode_libdir_flag_spec_F77= 14011hardcode_libdir_separator_F77= 14012hardcode_minus_L_F77=no 14013hardcode_automatic_F77=no 14014inherit_rpath_F77=no 14015module_cmds_F77= 14016module_expsym_cmds_F77= 14017link_all_deplibs_F77=unknown 14018old_archive_cmds_F77=$old_archive_cmds 14019reload_flag_F77=$reload_flag 14020reload_cmds_F77=$reload_cmds 14021no_undefined_flag_F77= 14022whole_archive_flag_spec_F77= 14023enable_shared_with_static_runtimes_F77=no 14024 14025# Source file extension for f77 test sources. 14026ac_ext=f 14027 14028# Object file extension for compiled f77 test sources. 14029objext=o 14030objext_F77=$objext 14031 14032# No sense in running all these tests if we already determined that 14033# the F77 compiler isn't working. Some variables (like enable_shared) 14034# are currently assumed to apply to all compilers on this platform, 14035# and will be corrupted by setting them based on a non-working compiler. 14036if test yes != "$_lt_disable_F77"; then 14037 # Code to be used in simple compile tests 14038 lt_simple_compile_test_code="\ 14039 subroutine t 14040 return 14041 end 14042" 14043 14044 # Code to be used in simple link tests 14045 lt_simple_link_test_code="\ 14046 program t 14047 end 14048" 14049 14050 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14051 14052 14053 14054 14055 14056 14057# If no C compiler was specified, use CC. 14058LTCC=${LTCC-"$CC"} 14059 14060# If no C compiler flags were specified, use CFLAGS. 14061LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14062 14063# Allow CC to be a program name with arguments. 14064compiler=$CC 14065 14066 14067 # save warnings/boilerplate of simple test code 14068 ac_outfile=conftest.$ac_objext 14069echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14071_lt_compiler_boilerplate=`cat conftest.err` 14072$RM conftest* 14073 14074 ac_outfile=conftest.$ac_objext 14075echo "$lt_simple_link_test_code" >conftest.$ac_ext 14076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14077_lt_linker_boilerplate=`cat conftest.err` 14078$RM -r conftest* 14079 14080 14081 # Allow CC to be a program name with arguments. 14082 lt_save_CC=$CC 14083 lt_save_GCC=$GCC 14084 lt_save_CFLAGS=$CFLAGS 14085 CC=${F77-"f77"} 14086 CFLAGS=$FFLAGS 14087 compiler=$CC 14088 compiler_F77=$CC 14089 func_cc_basename $compiler 14090cc_basename=$func_cc_basename_result 14091 14092 GCC=$G77 14093 if test -n "$compiler"; then 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14095$as_echo_n "checking if libtool supports shared libraries... " >&6; } 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14097$as_echo "$can_build_shared" >&6; } 14098 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14100$as_echo_n "checking whether to build shared libraries... " >&6; } 14101 test no = "$can_build_shared" && enable_shared=no 14102 14103 # On AIX, shared libraries and static libraries use the same namespace, and 14104 # are all built from PIC. 14105 case $host_os in 14106 aix3*) 14107 test yes = "$enable_shared" && enable_static=no 14108 if test -n "$RANLIB"; then 14109 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14110 postinstall_cmds='$RANLIB $lib' 14111 fi 14112 ;; 14113 aix[4-9]*) 14114 if test ia64 != "$host_cpu"; then 14115 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 14116 yes,aix,yes) ;; # shared object as lib.so file only 14117 yes,svr4,*) ;; # shared object as lib.so archive member only 14118 yes,*) enable_static=no ;; # shared object in lib.a archive as well 14119 esac 14120 fi 14121 ;; 14122 esac 14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14124$as_echo "$enable_shared" >&6; } 14125 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14127$as_echo_n "checking whether to build static libraries... " >&6; } 14128 # Make sure either enable_shared or enable_static is yes. 14129 test yes = "$enable_shared" || enable_static=yes 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14131$as_echo "$enable_static" >&6; } 14132 14133 GCC_F77=$G77 14134 LD_F77=$LD 14135 14136 ## CAVEAT EMPTOR: 14137 ## There is no encapsulation within the following macros, do not change 14138 ## the running order or otherwise move them around unless you know exactly 14139 ## what you are doing... 14140 lt_prog_compiler_wl_F77= 14141lt_prog_compiler_pic_F77= 14142lt_prog_compiler_static_F77= 14143 14144 14145 if test yes = "$GCC"; then 14146 lt_prog_compiler_wl_F77='-Wl,' 14147 lt_prog_compiler_static_F77='-static' 14148 14149 case $host_os in 14150 aix*) 14151 # All AIX code is PIC. 14152 if test ia64 = "$host_cpu"; then 14153 # AIX 5 now supports IA64 processor 14154 lt_prog_compiler_static_F77='-Bstatic' 14155 fi 14156 lt_prog_compiler_pic_F77='-fPIC' 14157 ;; 14158 14159 amigaos*) 14160 case $host_cpu in 14161 powerpc) 14162 # see comment about AmigaOS4 .so support 14163 lt_prog_compiler_pic_F77='-fPIC' 14164 ;; 14165 m68k) 14166 # FIXME: we need at least 68020 code to build shared libraries, but 14167 # adding the '-m68020' flag to GCC prevents building anything better, 14168 # like '-m68040'. 14169 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14170 ;; 14171 esac 14172 ;; 14173 14174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14175 # PIC is the default for these OSes. 14176 ;; 14177 14178 mingw* | cygwin* | pw32* | os2* | cegcc*) 14179 # This hack is so that the source file can tell whether it is being 14180 # built for inclusion in a dll (and should export symbols for example). 14181 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14182 # (--disable-auto-import) libraries 14183 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14184 case $host_os in 14185 os2*) 14186 lt_prog_compiler_static_F77='$wl-static' 14187 ;; 14188 esac 14189 ;; 14190 14191 darwin* | rhapsody*) 14192 # PIC is the default on this platform 14193 # Common symbols not allowed in MH_DYLIB files 14194 lt_prog_compiler_pic_F77='-fno-common' 14195 ;; 14196 14197 haiku*) 14198 # PIC is the default for Haiku. 14199 # The "-static" flag exists, but is broken. 14200 lt_prog_compiler_static_F77= 14201 ;; 14202 14203 hpux*) 14204 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14205 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14206 # sets the default TLS model and affects inlining. 14207 case $host_cpu in 14208 hppa*64*) 14209 # +Z the default 14210 ;; 14211 *) 14212 lt_prog_compiler_pic_F77='-fPIC' 14213 ;; 14214 esac 14215 ;; 14216 14217 interix[3-9]*) 14218 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14219 # Instead, we relocate shared libraries at runtime. 14220 ;; 14221 14222 msdosdjgpp*) 14223 # Just because we use GCC doesn't mean we suddenly get shared libraries 14224 # on systems that don't support them. 14225 lt_prog_compiler_can_build_shared_F77=no 14226 enable_shared=no 14227 ;; 14228 14229 *nto* | *qnx*) 14230 # QNX uses GNU C++, but need to define -shared option too, otherwise 14231 # it will coredump. 14232 lt_prog_compiler_pic_F77='-fPIC -shared' 14233 ;; 14234 14235 sysv4*MP*) 14236 if test -d /usr/nec; then 14237 lt_prog_compiler_pic_F77=-Kconform_pic 14238 fi 14239 ;; 14240 14241 *) 14242 lt_prog_compiler_pic_F77='-fPIC' 14243 ;; 14244 esac 14245 14246 case $cc_basename in 14247 nvcc*) # Cuda Compiler Driver 2.2 14248 lt_prog_compiler_wl_F77='-Xlinker ' 14249 if test -n "$lt_prog_compiler_pic_F77"; then 14250 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" 14251 fi 14252 ;; 14253 esac 14254 else 14255 # PORTME Check for flag to pass linker flags through the system compiler. 14256 case $host_os in 14257 aix*) 14258 lt_prog_compiler_wl_F77='-Wl,' 14259 if test ia64 = "$host_cpu"; then 14260 # AIX 5 now supports IA64 processor 14261 lt_prog_compiler_static_F77='-Bstatic' 14262 else 14263 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14264 fi 14265 ;; 14266 14267 darwin* | rhapsody*) 14268 # PIC is the default on this platform 14269 # Common symbols not allowed in MH_DYLIB files 14270 lt_prog_compiler_pic_F77='-fno-common' 14271 case $cc_basename in 14272 nagfor*) 14273 # NAG Fortran compiler 14274 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 14275 lt_prog_compiler_pic_F77='-PIC' 14276 lt_prog_compiler_static_F77='-Bstatic' 14277 ;; 14278 esac 14279 ;; 14280 14281 mingw* | cygwin* | pw32* | os2* | cegcc*) 14282 # This hack is so that the source file can tell whether it is being 14283 # built for inclusion in a dll (and should export symbols for example). 14284 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14285 case $host_os in 14286 os2*) 14287 lt_prog_compiler_static_F77='$wl-static' 14288 ;; 14289 esac 14290 ;; 14291 14292 hpux9* | hpux10* | hpux11*) 14293 lt_prog_compiler_wl_F77='-Wl,' 14294 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14295 # not for PA HP-UX. 14296 case $host_cpu in 14297 hppa*64*|ia64*) 14298 # +Z the default 14299 ;; 14300 *) 14301 lt_prog_compiler_pic_F77='+Z' 14302 ;; 14303 esac 14304 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14305 lt_prog_compiler_static_F77='$wl-a ${wl}archive' 14306 ;; 14307 14308 irix5* | irix6* | nonstopux*) 14309 lt_prog_compiler_wl_F77='-Wl,' 14310 # PIC (with -KPIC) is the default. 14311 lt_prog_compiler_static_F77='-non_shared' 14312 ;; 14313 14314 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14315 case $cc_basename in 14316 # old Intel for x86_64, which still supported -KPIC. 14317 ecc*) 14318 lt_prog_compiler_wl_F77='-Wl,' 14319 lt_prog_compiler_pic_F77='-KPIC' 14320 lt_prog_compiler_static_F77='-static' 14321 ;; 14322 # icc used to be incompatible with GCC. 14323 # ICC 10 doesn't accept -KPIC any more. 14324 icc* | ifort*) 14325 lt_prog_compiler_wl_F77='-Wl,' 14326 lt_prog_compiler_pic_F77='-fPIC' 14327 lt_prog_compiler_static_F77='-static' 14328 ;; 14329 # Lahey Fortran 8.1. 14330 lf95*) 14331 lt_prog_compiler_wl_F77='-Wl,' 14332 lt_prog_compiler_pic_F77='--shared' 14333 lt_prog_compiler_static_F77='--static' 14334 ;; 14335 nagfor*) 14336 # NAG Fortran compiler 14337 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 14338 lt_prog_compiler_pic_F77='-PIC' 14339 lt_prog_compiler_static_F77='-Bstatic' 14340 ;; 14341 tcc*) 14342 # Fabrice Bellard et al's Tiny C Compiler 14343 lt_prog_compiler_wl_F77='-Wl,' 14344 lt_prog_compiler_pic_F77='-fPIC' 14345 lt_prog_compiler_static_F77='-static' 14346 ;; 14347 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14348 # Portland Group compilers (*not* the Pentium gcc compiler, 14349 # which looks to be a dead project) 14350 lt_prog_compiler_wl_F77='-Wl,' 14351 lt_prog_compiler_pic_F77='-fpic' 14352 lt_prog_compiler_static_F77='-Bstatic' 14353 ;; 14354 ccc*) 14355 lt_prog_compiler_wl_F77='-Wl,' 14356 # All Alpha code is PIC. 14357 lt_prog_compiler_static_F77='-non_shared' 14358 ;; 14359 xl* | bgxl* | bgf* | mpixl*) 14360 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14361 lt_prog_compiler_wl_F77='-Wl,' 14362 lt_prog_compiler_pic_F77='-qpic' 14363 lt_prog_compiler_static_F77='-qstaticlink' 14364 ;; 14365 *) 14366 case `$CC -V 2>&1 | sed 5q` in 14367 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14368 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14369 lt_prog_compiler_pic_F77='-KPIC' 14370 lt_prog_compiler_static_F77='-Bstatic' 14371 lt_prog_compiler_wl_F77='' 14372 ;; 14373 *Sun\ F* | *Sun*Fortran*) 14374 lt_prog_compiler_pic_F77='-KPIC' 14375 lt_prog_compiler_static_F77='-Bstatic' 14376 lt_prog_compiler_wl_F77='-Qoption ld ' 14377 ;; 14378 *Sun\ C*) 14379 # Sun C 5.9 14380 lt_prog_compiler_pic_F77='-KPIC' 14381 lt_prog_compiler_static_F77='-Bstatic' 14382 lt_prog_compiler_wl_F77='-Wl,' 14383 ;; 14384 *Intel*\ [CF]*Compiler*) 14385 lt_prog_compiler_wl_F77='-Wl,' 14386 lt_prog_compiler_pic_F77='-fPIC' 14387 lt_prog_compiler_static_F77='-static' 14388 ;; 14389 *Portland\ Group*) 14390 lt_prog_compiler_wl_F77='-Wl,' 14391 lt_prog_compiler_pic_F77='-fpic' 14392 lt_prog_compiler_static_F77='-Bstatic' 14393 ;; 14394 esac 14395 ;; 14396 esac 14397 ;; 14398 14399 newsos6) 14400 lt_prog_compiler_pic_F77='-KPIC' 14401 lt_prog_compiler_static_F77='-Bstatic' 14402 ;; 14403 14404 *nto* | *qnx*) 14405 # QNX uses GNU C++, but need to define -shared option too, otherwise 14406 # it will coredump. 14407 lt_prog_compiler_pic_F77='-fPIC -shared' 14408 ;; 14409 14410 osf3* | osf4* | osf5*) 14411 lt_prog_compiler_wl_F77='-Wl,' 14412 # All OSF/1 code is PIC. 14413 lt_prog_compiler_static_F77='-non_shared' 14414 ;; 14415 14416 rdos*) 14417 lt_prog_compiler_static_F77='-non_shared' 14418 ;; 14419 14420 solaris*) 14421 lt_prog_compiler_pic_F77='-KPIC' 14422 lt_prog_compiler_static_F77='-Bstatic' 14423 case $cc_basename in 14424 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14425 lt_prog_compiler_wl_F77='-Qoption ld ';; 14426 *) 14427 lt_prog_compiler_wl_F77='-Wl,';; 14428 esac 14429 ;; 14430 14431 sunos4*) 14432 lt_prog_compiler_wl_F77='-Qoption ld ' 14433 lt_prog_compiler_pic_F77='-PIC' 14434 lt_prog_compiler_static_F77='-Bstatic' 14435 ;; 14436 14437 sysv4 | sysv4.2uw2* | sysv4.3*) 14438 lt_prog_compiler_wl_F77='-Wl,' 14439 lt_prog_compiler_pic_F77='-KPIC' 14440 lt_prog_compiler_static_F77='-Bstatic' 14441 ;; 14442 14443 sysv4*MP*) 14444 if test -d /usr/nec; then 14445 lt_prog_compiler_pic_F77='-Kconform_pic' 14446 lt_prog_compiler_static_F77='-Bstatic' 14447 fi 14448 ;; 14449 14450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14451 lt_prog_compiler_wl_F77='-Wl,' 14452 lt_prog_compiler_pic_F77='-KPIC' 14453 lt_prog_compiler_static_F77='-Bstatic' 14454 ;; 14455 14456 unicos*) 14457 lt_prog_compiler_wl_F77='-Wl,' 14458 lt_prog_compiler_can_build_shared_F77=no 14459 ;; 14460 14461 uts4*) 14462 lt_prog_compiler_pic_F77='-pic' 14463 lt_prog_compiler_static_F77='-Bstatic' 14464 ;; 14465 14466 *) 14467 lt_prog_compiler_can_build_shared_F77=no 14468 ;; 14469 esac 14470 fi 14471 14472case $host_os in 14473 # For platforms that do not support PIC, -DPIC is meaningless: 14474 *djgpp*) 14475 lt_prog_compiler_pic_F77= 14476 ;; 14477 *) 14478 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14479 ;; 14480esac 14481 14482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14483$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14484if ${lt_cv_prog_compiler_pic_F77+:} false; then : 14485 $as_echo_n "(cached) " >&6 14486else 14487 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 14488fi 14489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 14490$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } 14491lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 14492 14493# 14494# Check to make sure the PIC flag actually works. 14495# 14496if test -n "$lt_prog_compiler_pic_F77"; then 14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14498$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14499if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : 14500 $as_echo_n "(cached) " >&6 14501else 14502 lt_cv_prog_compiler_pic_works_F77=no 14503 ac_outfile=conftest.$ac_objext 14504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14505 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment 14506 # Insert the option either (1) after the last *FLAGS variable, or 14507 # (2) before a word containing "conftest.", or (3) at the end. 14508 # Note that $ac_compile itself does not contain backslashes and begins 14509 # with a dollar sign (not a hyphen), so the echo should work correctly. 14510 # The option is referenced via a variable to avoid confusing sed. 14511 lt_compile=`echo "$ac_compile" | $SED \ 14512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14514 -e 's:$: $lt_compiler_flag:'` 14515 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14516 (eval "$lt_compile" 2>conftest.err) 14517 ac_status=$? 14518 cat conftest.err >&5 14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14520 if (exit $ac_status) && test -s "$ac_outfile"; then 14521 # The compiler can only warn and ignore the option if not recognized 14522 # So say no if there are warnings other than the usual output. 14523 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14526 lt_cv_prog_compiler_pic_works_F77=yes 14527 fi 14528 fi 14529 $RM conftest* 14530 14531fi 14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14533$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14534 14535if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then 14536 case $lt_prog_compiler_pic_F77 in 14537 "" | " "*) ;; 14538 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14539 esac 14540else 14541 lt_prog_compiler_pic_F77= 14542 lt_prog_compiler_can_build_shared_F77=no 14543fi 14544 14545fi 14546 14547 14548 14549 14550 14551# 14552# Check to make sure the static flag actually works. 14553# 14554wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14556$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14557if ${lt_cv_prog_compiler_static_works_F77+:} false; then : 14558 $as_echo_n "(cached) " >&6 14559else 14560 lt_cv_prog_compiler_static_works_F77=no 14561 save_LDFLAGS=$LDFLAGS 14562 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14563 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14565 # The linker can only warn and ignore the option if not recognized 14566 # So say no if there are warnings 14567 if test -s conftest.err; then 14568 # Append any errors to the config.log. 14569 cat conftest.err 1>&5 14570 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14572 if diff conftest.exp conftest.er2 >/dev/null; then 14573 lt_cv_prog_compiler_static_works_F77=yes 14574 fi 14575 else 14576 lt_cv_prog_compiler_static_works_F77=yes 14577 fi 14578 fi 14579 $RM -r conftest* 14580 LDFLAGS=$save_LDFLAGS 14581 14582fi 14583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 14584$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14585 14586if test yes = "$lt_cv_prog_compiler_static_works_F77"; then 14587 : 14588else 14589 lt_prog_compiler_static_F77= 14590fi 14591 14592 14593 14594 14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14596$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14597if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 14598 $as_echo_n "(cached) " >&6 14599else 14600 lt_cv_prog_compiler_c_o_F77=no 14601 $RM -r conftest 2>/dev/null 14602 mkdir conftest 14603 cd conftest 14604 mkdir out 14605 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14606 14607 lt_compiler_flag="-o out/conftest2.$ac_objext" 14608 # Insert the option either (1) after the last *FLAGS variable, or 14609 # (2) before a word containing "conftest.", or (3) at the end. 14610 # Note that $ac_compile itself does not contain backslashes and begins 14611 # with a dollar sign (not a hyphen), so the echo should work correctly. 14612 lt_compile=`echo "$ac_compile" | $SED \ 14613 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14614 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14615 -e 's:$: $lt_compiler_flag:'` 14616 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14617 (eval "$lt_compile" 2>out/conftest.err) 14618 ac_status=$? 14619 cat out/conftest.err >&5 14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14621 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14622 then 14623 # The compiler can only warn and ignore the option if not recognized 14624 # So say no if there are warnings 14625 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14626 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14627 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14628 lt_cv_prog_compiler_c_o_F77=yes 14629 fi 14630 fi 14631 chmod u+w . 2>&5 14632 $RM conftest* 14633 # SGI C++ compiler will create directory out/ii_files/ for 14634 # template instantiation 14635 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14636 $RM out/* && rmdir out 14637 cd .. 14638 $RM -r conftest 14639 $RM conftest* 14640 14641fi 14642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 14643$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14644 14645 14646 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14648$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14649if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 14650 $as_echo_n "(cached) " >&6 14651else 14652 lt_cv_prog_compiler_c_o_F77=no 14653 $RM -r conftest 2>/dev/null 14654 mkdir conftest 14655 cd conftest 14656 mkdir out 14657 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14658 14659 lt_compiler_flag="-o out/conftest2.$ac_objext" 14660 # Insert the option either (1) after the last *FLAGS variable, or 14661 # (2) before a word containing "conftest.", or (3) at the end. 14662 # Note that $ac_compile itself does not contain backslashes and begins 14663 # with a dollar sign (not a hyphen), so the echo should work correctly. 14664 lt_compile=`echo "$ac_compile" | $SED \ 14665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14667 -e 's:$: $lt_compiler_flag:'` 14668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14669 (eval "$lt_compile" 2>out/conftest.err) 14670 ac_status=$? 14671 cat out/conftest.err >&5 14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14673 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14674 then 14675 # The compiler can only warn and ignore the option if not recognized 14676 # So say no if there are warnings 14677 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14678 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14679 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14680 lt_cv_prog_compiler_c_o_F77=yes 14681 fi 14682 fi 14683 chmod u+w . 2>&5 14684 $RM conftest* 14685 # SGI C++ compiler will create directory out/ii_files/ for 14686 # template instantiation 14687 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14688 $RM out/* && rmdir out 14689 cd .. 14690 $RM -r conftest 14691 $RM conftest* 14692 14693fi 14694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 14695$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14696 14697 14698 14699 14700hard_links=nottested 14701if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then 14702 # do not overwrite the value of need_locks provided by the user 14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14704$as_echo_n "checking if we can lock with hard links... " >&6; } 14705 hard_links=yes 14706 $RM conftest* 14707 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14708 touch conftest.a 14709 ln conftest.a conftest.b 2>&5 || hard_links=no 14710 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14712$as_echo "$hard_links" >&6; } 14713 if test no = "$hard_links"; then 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14715$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14716 need_locks=warn 14717 fi 14718else 14719 need_locks=no 14720fi 14721 14722 14723 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14725$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14726 14727 runpath_var= 14728 allow_undefined_flag_F77= 14729 always_export_symbols_F77=no 14730 archive_cmds_F77= 14731 archive_expsym_cmds_F77= 14732 compiler_needs_object_F77=no 14733 enable_shared_with_static_runtimes_F77=no 14734 export_dynamic_flag_spec_F77= 14735 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14736 hardcode_automatic_F77=no 14737 hardcode_direct_F77=no 14738 hardcode_direct_absolute_F77=no 14739 hardcode_libdir_flag_spec_F77= 14740 hardcode_libdir_separator_F77= 14741 hardcode_minus_L_F77=no 14742 hardcode_shlibpath_var_F77=unsupported 14743 inherit_rpath_F77=no 14744 link_all_deplibs_F77=unknown 14745 module_cmds_F77= 14746 module_expsym_cmds_F77= 14747 old_archive_from_new_cmds_F77= 14748 old_archive_from_expsyms_cmds_F77= 14749 thread_safe_flag_spec_F77= 14750 whole_archive_flag_spec_F77= 14751 # include_expsyms should be a list of space-separated symbols to be *always* 14752 # included in the symbol list 14753 include_expsyms_F77= 14754 # exclude_expsyms can be an extended regexp of symbols to exclude 14755 # it will be wrapped by ' (' and ')$', so one must not match beginning or 14756 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 14757 # as well as any symbol that contains 'd'. 14758 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14759 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14760 # platforms (ab)use it in PIC code, but their linkers get confused if 14761 # the symbol is explicitly referenced. Since portable code cannot 14762 # rely on this symbol name, it's probably fine to never include it in 14763 # preloaded symbol tables. 14764 # Exclude shared library initialization/finalization symbols. 14765 extract_expsyms_cmds= 14766 14767 case $host_os in 14768 cygwin* | mingw* | pw32* | cegcc*) 14769 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14770 # When not using gcc, we currently assume that we are using 14771 # Microsoft Visual C++. 14772 if test yes != "$GCC"; then 14773 with_gnu_ld=no 14774 fi 14775 ;; 14776 interix*) 14777 # we just hope/assume this is gcc and not c89 (= MSVC++) 14778 with_gnu_ld=yes 14779 ;; 14780 openbsd* | bitrig*) 14781 with_gnu_ld=no 14782 ;; 14783 esac 14784 14785 ld_shlibs_F77=yes 14786 14787 # On some targets, GNU ld is compatible enough with the native linker 14788 # that we're better off using the native interface for both. 14789 lt_use_gnu_ld_interface=no 14790 if test yes = "$with_gnu_ld"; then 14791 case $host_os in 14792 aix*) 14793 # The AIX port of GNU ld has always aspired to compatibility 14794 # with the native linker. However, as the warning in the GNU ld 14795 # block says, versions before 2.19.5* couldn't really create working 14796 # shared libraries, regardless of the interface used. 14797 case `$LD -v 2>&1` in 14798 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14799 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14800 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14801 *) 14802 lt_use_gnu_ld_interface=yes 14803 ;; 14804 esac 14805 ;; 14806 *) 14807 lt_use_gnu_ld_interface=yes 14808 ;; 14809 esac 14810 fi 14811 14812 if test yes = "$lt_use_gnu_ld_interface"; then 14813 # If archive_cmds runs LD, not CC, wlarc should be empty 14814 wlarc='$wl' 14815 14816 # Set some defaults for GNU ld with shared library support. These 14817 # are reset later if shared libraries are not supported. Putting them 14818 # here allows them to be overridden if necessary. 14819 runpath_var=LD_RUN_PATH 14820 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 14821 export_dynamic_flag_spec_F77='$wl--export-dynamic' 14822 # ancient GNU ld didn't support --whole-archive et. al. 14823 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14824 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14825 else 14826 whole_archive_flag_spec_F77= 14827 fi 14828 supports_anon_versioning=no 14829 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 14830 *GNU\ gold*) supports_anon_versioning=yes ;; 14831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14834 *\ 2.11.*) ;; # other 2.11 versions 14835 *) supports_anon_versioning=yes ;; 14836 esac 14837 14838 # See if GNU ld supports shared libraries. 14839 case $host_os in 14840 aix[3-9]*) 14841 # On AIX/PPC, the GNU linker is very broken 14842 if test ia64 != "$host_cpu"; then 14843 ld_shlibs_F77=no 14844 cat <<_LT_EOF 1>&2 14845 14846*** Warning: the GNU linker, at least up to release 2.19, is reported 14847*** to be unable to reliably create shared libraries on AIX. 14848*** Therefore, libtool is disabling shared libraries support. If you 14849*** really care for shared libraries, you may want to install binutils 14850*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14851*** You will then need to restart the configuration process. 14852 14853_LT_EOF 14854 fi 14855 ;; 14856 14857 amigaos*) 14858 case $host_cpu in 14859 powerpc) 14860 # see comment about AmigaOS4 .so support 14861 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14862 archive_expsym_cmds_F77='' 14863 ;; 14864 m68k) 14865 archive_cmds_F77='$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)' 14866 hardcode_libdir_flag_spec_F77='-L$libdir' 14867 hardcode_minus_L_F77=yes 14868 ;; 14869 esac 14870 ;; 14871 14872 beos*) 14873 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14874 allow_undefined_flag_F77=unsupported 14875 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14876 # support --undefined. This deserves some investigation. FIXME 14877 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14878 else 14879 ld_shlibs_F77=no 14880 fi 14881 ;; 14882 14883 cygwin* | mingw* | pw32* | cegcc*) 14884 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14885 # as there is no search path for DLLs. 14886 hardcode_libdir_flag_spec_F77='-L$libdir' 14887 export_dynamic_flag_spec_F77='$wl--export-all-symbols' 14888 allow_undefined_flag_F77=unsupported 14889 always_export_symbols_F77=no 14890 enable_shared_with_static_runtimes_F77=yes 14891 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14892 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14893 14894 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14896 # If the export-symbols file already is a .def file, use it as 14897 # is; otherwise, prepend EXPORTS... 14898 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14899 cp $export_symbols $output_objdir/$soname.def; 14900 else 14901 echo EXPORTS > $output_objdir/$soname.def; 14902 cat $export_symbols >> $output_objdir/$soname.def; 14903 fi~ 14904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14905 else 14906 ld_shlibs_F77=no 14907 fi 14908 ;; 14909 14910 haiku*) 14911 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14912 link_all_deplibs_F77=yes 14913 ;; 14914 14915 os2*) 14916 hardcode_libdir_flag_spec_F77='-L$libdir' 14917 hardcode_minus_L_F77=yes 14918 allow_undefined_flag_F77=unsupported 14919 shrext_cmds=.dll 14920 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14921 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14922 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14923 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14924 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14925 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14926 emximp -o $lib $output_objdir/$libname.def' 14927 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14928 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14929 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14930 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14931 prefix_cmds="$SED"~ 14932 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14933 prefix_cmds="$prefix_cmds -e 1d"; 14934 fi~ 14935 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14936 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14937 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14938 emximp -o $lib $output_objdir/$libname.def' 14939 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14940 enable_shared_with_static_runtimes_F77=yes 14941 ;; 14942 14943 interix[3-9]*) 14944 hardcode_direct_F77=no 14945 hardcode_shlibpath_var_F77=no 14946 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 14947 export_dynamic_flag_spec_F77='$wl-E' 14948 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14949 # Instead, shared libraries are loaded at an image base (0x10000000 by 14950 # default) and relocated if they conflict, which is a slow very memory 14951 # consuming and fragmenting process. To avoid this, we pick a random, 14952 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14953 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14954 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14955 archive_expsym_cmds_F77='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' 14956 ;; 14957 14958 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 14959 tmp_diet=no 14960 if test linux-dietlibc = "$host_os"; then 14961 case $cc_basename in 14962 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14963 esac 14964 fi 14965 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14966 && test no = "$tmp_diet" 14967 then 14968 tmp_addflag=' $pic_flag' 14969 tmp_sharedflag='-shared' 14970 case $cc_basename,$host_cpu in 14971 pgcc*) # Portland Group C compiler 14972 whole_archive_flag_spec_F77='$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' 14973 tmp_addflag=' $pic_flag' 14974 ;; 14975 pgf77* | pgf90* | pgf95* | pgfortran*) 14976 # Portland Group f77 and f90 compilers 14977 whole_archive_flag_spec_F77='$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' 14978 tmp_addflag=' $pic_flag -Mnomain' ;; 14979 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14980 tmp_addflag=' -i_dynamic' ;; 14981 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14982 tmp_addflag=' -i_dynamic -nofor_main' ;; 14983 ifc* | ifort*) # Intel Fortran compiler 14984 tmp_addflag=' -nofor_main' ;; 14985 lf95*) # Lahey Fortran 8.1 14986 whole_archive_flag_spec_F77= 14987 tmp_sharedflag='--shared' ;; 14988 nagfor*) # NAGFOR 5.3 14989 tmp_sharedflag='-Wl,-shared' ;; 14990 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14991 tmp_sharedflag='-qmkshrobj' 14992 tmp_addflag= ;; 14993 nvcc*) # Cuda Compiler Driver 2.2 14994 whole_archive_flag_spec_F77='$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' 14995 compiler_needs_object_F77=yes 14996 ;; 14997 esac 14998 case `$CC -V 2>&1 | sed 5q` in 14999 *Sun\ C*) # Sun C 5.9 15000 whole_archive_flag_spec_F77='$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' 15001 compiler_needs_object_F77=yes 15002 tmp_sharedflag='-G' ;; 15003 *Sun\ F*) # Sun Fortran 8.3 15004 tmp_sharedflag='-G' ;; 15005 esac 15006 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15007 15008 if test yes = "$supports_anon_versioning"; then 15009 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 15010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15011 echo "local: *; };" >> $output_objdir/$libname.ver~ 15012 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15013 fi 15014 15015 case $cc_basename in 15016 tcc*) 15017 export_dynamic_flag_spec_F77='-rdynamic' 15018 ;; 15019 xlf* | bgf* | bgxlf* | mpixlf*) 15020 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15021 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' 15022 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 15023 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15024 if test yes = "$supports_anon_versioning"; then 15025 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 15026 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15027 echo "local: *; };" >> $output_objdir/$libname.ver~ 15028 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15029 fi 15030 ;; 15031 esac 15032 else 15033 ld_shlibs_F77=no 15034 fi 15035 ;; 15036 15037 netbsd*) 15038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15039 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15040 wlarc= 15041 else 15042 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15043 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15044 fi 15045 ;; 15046 15047 solaris*) 15048 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15049 ld_shlibs_F77=no 15050 cat <<_LT_EOF 1>&2 15051 15052*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15053*** create shared libraries on Solaris systems. Therefore, libtool 15054*** is disabling shared libraries support. We urge you to upgrade GNU 15055*** binutils to release 2.9.1 or newer. Another option is to modify 15056*** your PATH or compiler configuration so that the native linker is 15057*** used, and then restart. 15058 15059_LT_EOF 15060 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15061 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15062 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15063 else 15064 ld_shlibs_F77=no 15065 fi 15066 ;; 15067 15068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15069 case `$LD -v 2>&1` in 15070 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15071 ld_shlibs_F77=no 15072 cat <<_LT_EOF 1>&2 15073 15074*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 15075*** reliably create shared libraries on SCO systems. Therefore, libtool 15076*** is disabling shared libraries support. We urge you to upgrade GNU 15077*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15078*** your PATH or compiler configuration so that the native linker is 15079*** used, and then restart. 15080 15081_LT_EOF 15082 ;; 15083 *) 15084 # For security reasons, it is highly recommended that you always 15085 # use absolute paths for naming shared libraries, and exclude the 15086 # DT_RUNPATH tag from executables and libraries. But doing so 15087 # requires that you compile everything twice, which is a pain. 15088 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15089 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 15090 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15091 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15092 else 15093 ld_shlibs_F77=no 15094 fi 15095 ;; 15096 esac 15097 ;; 15098 15099 sunos4*) 15100 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15101 wlarc= 15102 hardcode_direct_F77=yes 15103 hardcode_shlibpath_var_F77=no 15104 ;; 15105 15106 *) 15107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15108 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15109 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 15110 else 15111 ld_shlibs_F77=no 15112 fi 15113 ;; 15114 esac 15115 15116 if test no = "$ld_shlibs_F77"; then 15117 runpath_var= 15118 hardcode_libdir_flag_spec_F77= 15119 export_dynamic_flag_spec_F77= 15120 whole_archive_flag_spec_F77= 15121 fi 15122 else 15123 # PORTME fill in a description of your system's linker (not GNU ld) 15124 case $host_os in 15125 aix3*) 15126 allow_undefined_flag_F77=unsupported 15127 always_export_symbols_F77=yes 15128 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15129 # Note: this linker hardcodes the directories in LIBPATH if there 15130 # are no directories specified by -L. 15131 hardcode_minus_L_F77=yes 15132 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 15133 # Neither direct hardcoding nor static linking is supported with a 15134 # broken collect2. 15135 hardcode_direct_F77=unsupported 15136 fi 15137 ;; 15138 15139 aix[4-9]*) 15140 if test ia64 = "$host_cpu"; then 15141 # On IA64, the linker does run time linking by default, so we don't 15142 # have to do anything special. 15143 aix_use_runtimelinking=no 15144 exp_sym_flag='-Bexport' 15145 no_entry_flag= 15146 else 15147 # If we're using GNU nm, then we don't want the "-C" option. 15148 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15149 # Without the "-l" option, or with the "-B" option, AIX nm treats 15150 # weak defined symbols like other global defined symbols, whereas 15151 # GNU nm marks them as "W". 15152 # While the 'weak' keyword is ignored in the Export File, we need 15153 # it in the Import File for the 'aix-soname' feature, so we have 15154 # to replace the "-B" option with "-P" for AIX nm. 15155 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15156 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15157 else 15158 export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15159 fi 15160 aix_use_runtimelinking=no 15161 15162 # Test if we are trying to use run time linking or normal 15163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15164 # have runtime linking enabled, and use it for executables. 15165 # For shared libraries, we enable/disable runtime linking 15166 # depending on the kind of the shared library created - 15167 # when "with_aix_soname,aix_use_runtimelinking" is: 15168 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15169 # "aix,yes" lib.so shared, rtl:yes, for executables 15170 # lib.a static archive 15171 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15172 # lib.a(lib.so.V) shared, rtl:no, for executables 15173 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15174 # lib.a(lib.so.V) shared, rtl:no 15175 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15176 # lib.a static archive 15177 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15178 for ld_flag in $LDFLAGS; do 15179 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 15180 aix_use_runtimelinking=yes 15181 break 15182 fi 15183 done 15184 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15185 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15186 # so we don't have lib.a shared libs to link our executables. 15187 # We have to force runtime linking in this case. 15188 aix_use_runtimelinking=yes 15189 LDFLAGS="$LDFLAGS -Wl,-brtl" 15190 fi 15191 ;; 15192 esac 15193 15194 exp_sym_flag='-bexport' 15195 no_entry_flag='-bnoentry' 15196 fi 15197 15198 # When large executables or shared objects are built, AIX ld can 15199 # have problems creating the table of contents. If linking a library 15200 # or program results in "error TOC overflow" add -mminimal-toc to 15201 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15202 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15203 15204 archive_cmds_F77='' 15205 hardcode_direct_F77=yes 15206 hardcode_direct_absolute_F77=yes 15207 hardcode_libdir_separator_F77=':' 15208 link_all_deplibs_F77=yes 15209 file_list_spec_F77='$wl-f,' 15210 case $with_aix_soname,$aix_use_runtimelinking in 15211 aix,*) ;; # traditional, no import file 15212 svr4,* | *,yes) # use import file 15213 # The Import File defines what to hardcode. 15214 hardcode_direct_F77=no 15215 hardcode_direct_absolute_F77=no 15216 ;; 15217 esac 15218 15219 if test yes = "$GCC"; then 15220 case $host_os in aix4.[012]|aix4.[012].*) 15221 # We only want to do this on AIX 4.2 and lower, the check 15222 # below for broken collect2 doesn't work under 4.3+ 15223 collect2name=`$CC -print-prog-name=collect2` 15224 if test -f "$collect2name" && 15225 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15226 then 15227 # We have reworked collect2 15228 : 15229 else 15230 # We have old collect2 15231 hardcode_direct_F77=unsupported 15232 # It fails to find uninstalled libraries when the uninstalled 15233 # path is not listed in the libpath. Setting hardcode_minus_L 15234 # to unsupported forces relinking 15235 hardcode_minus_L_F77=yes 15236 hardcode_libdir_flag_spec_F77='-L$libdir' 15237 hardcode_libdir_separator_F77= 15238 fi 15239 ;; 15240 esac 15241 shared_flag='-shared' 15242 if test yes = "$aix_use_runtimelinking"; then 15243 shared_flag="$shared_flag "'$wl-G' 15244 fi 15245 # Need to ensure runtime linking is disabled for the traditional 15246 # shared library, or the linker may eventually find shared libraries 15247 # /with/ Import File - we do not want to mix them. 15248 shared_flag_aix='-shared' 15249 shared_flag_svr4='-shared $wl-G' 15250 else 15251 # not using gcc 15252 if test ia64 = "$host_cpu"; then 15253 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15254 # chokes on -Wl,-G. The following line is correct: 15255 shared_flag='-G' 15256 else 15257 if test yes = "$aix_use_runtimelinking"; then 15258 shared_flag='$wl-G' 15259 else 15260 shared_flag='$wl-bM:SRE' 15261 fi 15262 shared_flag_aix='$wl-bM:SRE' 15263 shared_flag_svr4='$wl-G' 15264 fi 15265 fi 15266 15267 export_dynamic_flag_spec_F77='$wl-bexpall' 15268 # It seems that -bexpall does not export symbols beginning with 15269 # underscore (_), so it is better to generate a list of symbols to export. 15270 always_export_symbols_F77=yes 15271 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15272 # Warning - without using the other runtime loading flags (-brtl), 15273 # -berok will link without error, but may produce a broken library. 15274 allow_undefined_flag_F77='-berok' 15275 # Determine the default libpath from the value encoded in an 15276 # empty executable. 15277 if test set = "${lt_cv_aix_libpath+set}"; then 15278 aix_libpath=$lt_cv_aix_libpath 15279else 15280 if ${lt_cv_aix_libpath__F77+:} false; then : 15281 $as_echo_n "(cached) " >&6 15282else 15283 cat > conftest.$ac_ext <<_ACEOF 15284 program main 15285 15286 end 15287_ACEOF 15288if ac_fn_f77_try_link "$LINENO"; then : 15289 15290 lt_aix_libpath_sed=' 15291 /Import File Strings/,/^$/ { 15292 /^0/ { 15293 s/^0 *\([^ ]*\) *$/\1/ 15294 p 15295 } 15296 }' 15297 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15298 # Check for a 64-bit object if we didn't find anything. 15299 if test -z "$lt_cv_aix_libpath__F77"; then 15300 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15301 fi 15302fi 15303rm -f core conftest.err conftest.$ac_objext \ 15304 conftest$ac_exeext conftest.$ac_ext 15305 if test -z "$lt_cv_aix_libpath__F77"; then 15306 lt_cv_aix_libpath__F77=/usr/lib:/lib 15307 fi 15308 15309fi 15310 15311 aix_libpath=$lt_cv_aix_libpath__F77 15312fi 15313 15314 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 15315 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 15316 else 15317 if test ia64 = "$host_cpu"; then 15318 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib' 15319 allow_undefined_flag_F77="-z nodefs" 15320 archive_expsym_cmds_F77="\$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" 15321 else 15322 # Determine the default libpath from the value encoded in an 15323 # empty executable. 15324 if test set = "${lt_cv_aix_libpath+set}"; then 15325 aix_libpath=$lt_cv_aix_libpath 15326else 15327 if ${lt_cv_aix_libpath__F77+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 cat > conftest.$ac_ext <<_ACEOF 15331 program main 15332 15333 end 15334_ACEOF 15335if ac_fn_f77_try_link "$LINENO"; then : 15336 15337 lt_aix_libpath_sed=' 15338 /Import File Strings/,/^$/ { 15339 /^0/ { 15340 s/^0 *\([^ ]*\) *$/\1/ 15341 p 15342 } 15343 }' 15344 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15345 # Check for a 64-bit object if we didn't find anything. 15346 if test -z "$lt_cv_aix_libpath__F77"; then 15347 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15348 fi 15349fi 15350rm -f core conftest.err conftest.$ac_objext \ 15351 conftest$ac_exeext conftest.$ac_ext 15352 if test -z "$lt_cv_aix_libpath__F77"; then 15353 lt_cv_aix_libpath__F77=/usr/lib:/lib 15354 fi 15355 15356fi 15357 15358 aix_libpath=$lt_cv_aix_libpath__F77 15359fi 15360 15361 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 15362 # Warning - without using the other run time loading flags, 15363 # -berok will link without error, but may produce a broken library. 15364 no_undefined_flag_F77=' $wl-bernotok' 15365 allow_undefined_flag_F77=' $wl-berok' 15366 if test yes = "$with_gnu_ld"; then 15367 # We only use this code for GNU lds that support --whole-archive. 15368 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive' 15369 else 15370 # Exported symbols can be pulled into shared objects from archives 15371 whole_archive_flag_spec_F77='$convenience' 15372 fi 15373 archive_cmds_need_lc_F77=yes 15374 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15375 # -brtl affects multiple linker settings, -berok does not and is overridden later 15376 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15377 if test svr4 != "$with_aix_soname"; then 15378 # This is similar to how AIX traditionally builds its shared libraries. 15379 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 15380 fi 15381 if test aix != "$with_aix_soname"; then 15382 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 15383 else 15384 # used by -dlpreopen to get the symbols 15385 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15386 fi 15387 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d' 15388 fi 15389 fi 15390 ;; 15391 15392 amigaos*) 15393 case $host_cpu in 15394 powerpc) 15395 # see comment about AmigaOS4 .so support 15396 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15397 archive_expsym_cmds_F77='' 15398 ;; 15399 m68k) 15400 archive_cmds_F77='$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)' 15401 hardcode_libdir_flag_spec_F77='-L$libdir' 15402 hardcode_minus_L_F77=yes 15403 ;; 15404 esac 15405 ;; 15406 15407 bsdi[45]*) 15408 export_dynamic_flag_spec_F77=-rdynamic 15409 ;; 15410 15411 cygwin* | mingw* | pw32* | cegcc*) 15412 # When not using gcc, we currently assume that we are using 15413 # Microsoft Visual C++. 15414 # hardcode_libdir_flag_spec is actually meaningless, as there is 15415 # no search path for DLLs. 15416 case $cc_basename in 15417 cl*) 15418 # Native MSVC 15419 hardcode_libdir_flag_spec_F77=' ' 15420 allow_undefined_flag_F77=unsupported 15421 always_export_symbols_F77=yes 15422 file_list_spec_F77='@' 15423 # Tell ltmain to make .lib files, not .a files. 15424 libext=lib 15425 # Tell ltmain to make .dll files, not .so files. 15426 shrext_cmds=.dll 15427 # FIXME: Setting linknames here is a bad hack. 15428 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 15429 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 15430 cp "$export_symbols" "$output_objdir/$soname.def"; 15431 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 15432 else 15433 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 15434 fi~ 15435 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15436 linknames=' 15437 # The linker will not automatically build a static lib if we build a DLL. 15438 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' 15439 enable_shared_with_static_runtimes_F77=yes 15440 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15441 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15442 # Don't use ranlib 15443 old_postinstall_cmds_F77='chmod 644 $oldlib' 15444 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ 15445 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15446 case $lt_outputfile in 15447 *.exe|*.EXE) ;; 15448 *) 15449 lt_outputfile=$lt_outputfile.exe 15450 lt_tool_outputfile=$lt_tool_outputfile.exe 15451 ;; 15452 esac~ 15453 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 15454 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15455 $RM "$lt_outputfile.manifest"; 15456 fi' 15457 ;; 15458 *) 15459 # Assume MSVC wrapper 15460 hardcode_libdir_flag_spec_F77=' ' 15461 allow_undefined_flag_F77=unsupported 15462 # Tell ltmain to make .lib files, not .a files. 15463 libext=lib 15464 # Tell ltmain to make .dll files, not .so files. 15465 shrext_cmds=.dll 15466 # FIXME: Setting linknames here is a bad hack. 15467 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15468 # The linker will automatically build a .lib file if we build a DLL. 15469 old_archive_from_new_cmds_F77='true' 15470 # FIXME: Should let the user specify the lib program. 15471 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15472 enable_shared_with_static_runtimes_F77=yes 15473 ;; 15474 esac 15475 ;; 15476 15477 darwin* | rhapsody*) 15478 15479 15480 archive_cmds_need_lc_F77=no 15481 hardcode_direct_F77=no 15482 hardcode_automatic_F77=yes 15483 hardcode_shlibpath_var_F77=unsupported 15484 if test yes = "$lt_cv_ld_force_load"; then 15485 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 15486 compiler_needs_object_F77=yes 15487 else 15488 whole_archive_flag_spec_F77='' 15489 fi 15490 link_all_deplibs_F77=yes 15491 allow_undefined_flag_F77=$_lt_dar_allow_undefined 15492 case $cc_basename in 15493 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 15494 *) _lt_dar_can_shared=$GCC ;; 15495 esac 15496 if test yes = "$_lt_dar_can_shared"; then 15497 output_verbose_link_cmd=func_echo_all 15498 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 15499 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 15500 archive_expsym_cmds_F77="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" 15501 module_expsym_cmds_F77="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" 15502 15503 else 15504 ld_shlibs_F77=no 15505 fi 15506 15507 ;; 15508 15509 dgux*) 15510 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15511 hardcode_libdir_flag_spec_F77='-L$libdir' 15512 hardcode_shlibpath_var_F77=no 15513 ;; 15514 15515 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15516 # support. Future versions do this automatically, but an explicit c++rt0.o 15517 # does not break anything, and helps significantly (at the cost of a little 15518 # extra space). 15519 freebsd2.2*) 15520 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15521 hardcode_libdir_flag_spec_F77='-R$libdir' 15522 hardcode_direct_F77=yes 15523 hardcode_shlibpath_var_F77=no 15524 ;; 15525 15526 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15527 freebsd2.*) 15528 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15529 hardcode_direct_F77=yes 15530 hardcode_minus_L_F77=yes 15531 hardcode_shlibpath_var_F77=no 15532 ;; 15533 15534 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15535 freebsd* | dragonfly*) 15536 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15537 hardcode_libdir_flag_spec_F77='-R$libdir' 15538 hardcode_direct_F77=yes 15539 hardcode_shlibpath_var_F77=no 15540 ;; 15541 15542 hpux9*) 15543 if test yes = "$GCC"; then 15544 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 15545 else 15546 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 15547 fi 15548 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 15549 hardcode_libdir_separator_F77=: 15550 hardcode_direct_F77=yes 15551 15552 # hardcode_minus_L: Not really in the search PATH, 15553 # but as the default location of the library. 15554 hardcode_minus_L_F77=yes 15555 export_dynamic_flag_spec_F77='$wl-E' 15556 ;; 15557 15558 hpux10*) 15559 if test yes,no = "$GCC,$with_gnu_ld"; then 15560 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15561 else 15562 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15563 fi 15564 if test no = "$with_gnu_ld"; then 15565 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 15566 hardcode_libdir_separator_F77=: 15567 hardcode_direct_F77=yes 15568 hardcode_direct_absolute_F77=yes 15569 export_dynamic_flag_spec_F77='$wl-E' 15570 # hardcode_minus_L: Not really in the search PATH, 15571 # but as the default location of the library. 15572 hardcode_minus_L_F77=yes 15573 fi 15574 ;; 15575 15576 hpux11*) 15577 if test yes,no = "$GCC,$with_gnu_ld"; then 15578 case $host_cpu in 15579 hppa*64*) 15580 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15581 ;; 15582 ia64*) 15583 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15584 ;; 15585 *) 15586 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15587 ;; 15588 esac 15589 else 15590 case $host_cpu in 15591 hppa*64*) 15592 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15593 ;; 15594 ia64*) 15595 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15596 ;; 15597 *) 15598 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15599 ;; 15600 esac 15601 fi 15602 if test no = "$with_gnu_ld"; then 15603 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 15604 hardcode_libdir_separator_F77=: 15605 15606 case $host_cpu in 15607 hppa*64*|ia64*) 15608 hardcode_direct_F77=no 15609 hardcode_shlibpath_var_F77=no 15610 ;; 15611 *) 15612 hardcode_direct_F77=yes 15613 hardcode_direct_absolute_F77=yes 15614 export_dynamic_flag_spec_F77='$wl-E' 15615 15616 # hardcode_minus_L: Not really in the search PATH, 15617 # but as the default location of the library. 15618 hardcode_minus_L_F77=yes 15619 ;; 15620 esac 15621 fi 15622 ;; 15623 15624 irix5* | irix6* | nonstopux*) 15625 if test yes = "$GCC"; then 15626 archive_cmds_F77='$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' 15627 # Try to use the -exported_symbol ld option, if it does not 15628 # work, assume that -exports_file does not work either and 15629 # implicitly export all symbols. 15630 # This should be the same for all languages, so no per-tag cache variable. 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15632$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15633if ${lt_cv_irix_exported_symbol+:} false; then : 15634 $as_echo_n "(cached) " >&6 15635else 15636 save_LDFLAGS=$LDFLAGS 15637 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 15638 cat > conftest.$ac_ext <<_ACEOF 15639 15640 subroutine foo 15641 end 15642_ACEOF 15643if ac_fn_f77_try_link "$LINENO"; then : 15644 lt_cv_irix_exported_symbol=yes 15645else 15646 lt_cv_irix_exported_symbol=no 15647fi 15648rm -f core conftest.err conftest.$ac_objext \ 15649 conftest$ac_exeext conftest.$ac_ext 15650 LDFLAGS=$save_LDFLAGS 15651fi 15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15653$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15654 if test yes = "$lt_cv_irix_exported_symbol"; then 15655 archive_expsym_cmds_F77='$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' 15656 fi 15657 else 15658 archive_cmds_F77='$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' 15659 archive_expsym_cmds_F77='$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' 15660 fi 15661 archive_cmds_need_lc_F77='no' 15662 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 15663 hardcode_libdir_separator_F77=: 15664 inherit_rpath_F77=yes 15665 link_all_deplibs_F77=yes 15666 ;; 15667 15668 linux*) 15669 case $cc_basename in 15670 tcc*) 15671 # Fabrice Bellard et al's Tiny C Compiler 15672 ld_shlibs_F77=yes 15673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15674 ;; 15675 esac 15676 ;; 15677 15678 netbsd*) 15679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15680 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15681 else 15682 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15683 fi 15684 hardcode_libdir_flag_spec_F77='-R$libdir' 15685 hardcode_direct_F77=yes 15686 hardcode_shlibpath_var_F77=no 15687 ;; 15688 15689 newsos6) 15690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15691 hardcode_direct_F77=yes 15692 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 15693 hardcode_libdir_separator_F77=: 15694 hardcode_shlibpath_var_F77=no 15695 ;; 15696 15697 *nto* | *qnx*) 15698 ;; 15699 15700 openbsd* | bitrig*) 15701 if test -f /usr/libexec/ld.so; then 15702 hardcode_direct_F77=yes 15703 hardcode_shlibpath_var_F77=no 15704 hardcode_direct_absolute_F77=yes 15705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15706 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15707 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 15708 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 15709 export_dynamic_flag_spec_F77='$wl-E' 15710 else 15711 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15712 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 15713 fi 15714 else 15715 ld_shlibs_F77=no 15716 fi 15717 ;; 15718 15719 os2*) 15720 hardcode_libdir_flag_spec_F77='-L$libdir' 15721 hardcode_minus_L_F77=yes 15722 allow_undefined_flag_F77=unsupported 15723 shrext_cmds=.dll 15724 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15725 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15726 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15727 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15728 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 15729 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15730 emximp -o $lib $output_objdir/$libname.def' 15731 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 15732 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 15733 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 15734 $ECHO EXPORTS >> $output_objdir/$libname.def~ 15735 prefix_cmds="$SED"~ 15736 if test EXPORTS = "`$SED 1q $export_symbols`"; then 15737 prefix_cmds="$prefix_cmds -e 1d"; 15738 fi~ 15739 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 15740 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 15741 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 15742 emximp -o $lib $output_objdir/$libname.def' 15743 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 15744 enable_shared_with_static_runtimes_F77=yes 15745 ;; 15746 15747 osf3*) 15748 if test yes = "$GCC"; then 15749 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 15750 archive_cmds_F77='$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' 15751 else 15752 allow_undefined_flag_F77=' -expect_unresolved \*' 15753 archive_cmds_F77='$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' 15754 fi 15755 archive_cmds_need_lc_F77='no' 15756 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 15757 hardcode_libdir_separator_F77=: 15758 ;; 15759 15760 osf4* | osf5*) # as osf3* with the addition of -msym flag 15761 if test yes = "$GCC"; then 15762 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 15763 archive_cmds_F77='$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' 15764 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 15765 else 15766 allow_undefined_flag_F77=' -expect_unresolved \*' 15767 archive_cmds_F77='$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' 15768 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 15769 $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' 15770 15771 # Both c and cxx compiler support -rpath directly 15772 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15773 fi 15774 archive_cmds_need_lc_F77='no' 15775 hardcode_libdir_separator_F77=: 15776 ;; 15777 15778 solaris*) 15779 no_undefined_flag_F77=' -z defs' 15780 if test yes = "$GCC"; then 15781 wlarc='$wl' 15782 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 15783 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15784 $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' 15785 else 15786 case `$CC -V 2>&1` in 15787 *"Compilers 5.0"*) 15788 wlarc='' 15789 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 15790 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15791 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15792 ;; 15793 *) 15794 wlarc='$wl' 15795 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15796 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15797 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15798 ;; 15799 esac 15800 fi 15801 hardcode_libdir_flag_spec_F77='-R$libdir' 15802 hardcode_shlibpath_var_F77=no 15803 case $host_os in 15804 solaris2.[0-5] | solaris2.[0-5].*) ;; 15805 *) 15806 # The compiler driver will combine and reorder linker options, 15807 # but understands '-z linker_flag'. GCC discards it without '$wl', 15808 # but is careful enough not to reorder. 15809 # Supported since Solaris 2.6 (maybe 2.5.1?) 15810 if test yes = "$GCC"; then 15811 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15812 else 15813 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15814 fi 15815 ;; 15816 esac 15817 link_all_deplibs_F77=yes 15818 ;; 15819 15820 sunos4*) 15821 if test sequent = "$host_vendor"; then 15822 # Use $CC to link under sequent, because it throws in some extra .o 15823 # files that make .init and .fini sections work. 15824 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15825 else 15826 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15827 fi 15828 hardcode_libdir_flag_spec_F77='-L$libdir' 15829 hardcode_direct_F77=yes 15830 hardcode_minus_L_F77=yes 15831 hardcode_shlibpath_var_F77=no 15832 ;; 15833 15834 sysv4) 15835 case $host_vendor in 15836 sni) 15837 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15838 hardcode_direct_F77=yes # is this really true??? 15839 ;; 15840 siemens) 15841 ## LD is ld it makes a PLAMLIB 15842 ## CC just makes a GrossModule. 15843 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15844 reload_cmds_F77='$CC -r -o $output$reload_objs' 15845 hardcode_direct_F77=no 15846 ;; 15847 motorola) 15848 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15849 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15850 ;; 15851 esac 15852 runpath_var='LD_RUN_PATH' 15853 hardcode_shlibpath_var_F77=no 15854 ;; 15855 15856 sysv4.3*) 15857 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15858 hardcode_shlibpath_var_F77=no 15859 export_dynamic_flag_spec_F77='-Bexport' 15860 ;; 15861 15862 sysv4*MP*) 15863 if test -d /usr/nec; then 15864 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15865 hardcode_shlibpath_var_F77=no 15866 runpath_var=LD_RUN_PATH 15867 hardcode_runpath_var=yes 15868 ld_shlibs_F77=yes 15869 fi 15870 ;; 15871 15872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15873 no_undefined_flag_F77='$wl-z,text' 15874 archive_cmds_need_lc_F77=no 15875 hardcode_shlibpath_var_F77=no 15876 runpath_var='LD_RUN_PATH' 15877 15878 if test yes = "$GCC"; then 15879 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15880 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15881 else 15882 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15883 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15884 fi 15885 ;; 15886 15887 sysv5* | sco3.2v5* | sco5v6*) 15888 # Note: We CANNOT use -z defs as we might desire, because we do not 15889 # link with -lc, and that would cause any symbols used from libc to 15890 # always be unresolved, which means just about no library would 15891 # ever link correctly. If we're not using GNU ld we use -z text 15892 # though, which does catch some bad symbols but isn't as heavy-handed 15893 # as -z defs. 15894 no_undefined_flag_F77='$wl-z,text' 15895 allow_undefined_flag_F77='$wl-z,nodefs' 15896 archive_cmds_need_lc_F77=no 15897 hardcode_shlibpath_var_F77=no 15898 hardcode_libdir_flag_spec_F77='$wl-R,$libdir' 15899 hardcode_libdir_separator_F77=':' 15900 link_all_deplibs_F77=yes 15901 export_dynamic_flag_spec_F77='$wl-Bexport' 15902 runpath_var='LD_RUN_PATH' 15903 15904 if test yes = "$GCC"; then 15905 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15906 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15907 else 15908 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15909 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15910 fi 15911 ;; 15912 15913 uts4*) 15914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15915 hardcode_libdir_flag_spec_F77='-L$libdir' 15916 hardcode_shlibpath_var_F77=no 15917 ;; 15918 15919 *) 15920 ld_shlibs_F77=no 15921 ;; 15922 esac 15923 15924 if test sni = "$host_vendor"; then 15925 case $host in 15926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15927 export_dynamic_flag_spec_F77='$wl-Blargedynsym' 15928 ;; 15929 esac 15930 fi 15931 fi 15932 15933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 15934$as_echo "$ld_shlibs_F77" >&6; } 15935test no = "$ld_shlibs_F77" && can_build_shared=no 15936 15937with_gnu_ld_F77=$with_gnu_ld 15938 15939 15940 15941 15942 15943 15944# 15945# Do we need to explicitly link libc? 15946# 15947case "x$archive_cmds_need_lc_F77" in 15948x|xyes) 15949 # Assume -lc should be added 15950 archive_cmds_need_lc_F77=yes 15951 15952 if test yes,yes = "$GCC,$enable_shared"; then 15953 case $archive_cmds_F77 in 15954 *'~'*) 15955 # FIXME: we may have to deal with multi-command sequences. 15956 ;; 15957 '$CC '*) 15958 # Test whether the compiler implicitly links with -lc since on some 15959 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15960 # to ld, don't add -lc before -lgcc. 15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15962$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15963if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : 15964 $as_echo_n "(cached) " >&6 15965else 15966 $RM conftest* 15967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15968 15969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15970 (eval $ac_compile) 2>&5 15971 ac_status=$? 15972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15973 test $ac_status = 0; } 2>conftest.err; then 15974 soname=conftest 15975 lib=conftest 15976 libobjs=conftest.$ac_objext 15977 deplibs= 15978 wl=$lt_prog_compiler_wl_F77 15979 pic_flag=$lt_prog_compiler_pic_F77 15980 compiler_flags=-v 15981 linker_flags=-v 15982 verstring= 15983 output_objdir=. 15984 libname=conftest 15985 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15986 allow_undefined_flag_F77= 15987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15988 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15989 ac_status=$? 15990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15991 test $ac_status = 0; } 15992 then 15993 lt_cv_archive_cmds_need_lc_F77=no 15994 else 15995 lt_cv_archive_cmds_need_lc_F77=yes 15996 fi 15997 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15998 else 15999 cat conftest.err 1>&5 16000 fi 16001 $RM conftest* 16002 16003fi 16004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 16005$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } 16006 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 16007 ;; 16008 esac 16009 fi 16010 ;; 16011esac 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16075$as_echo_n "checking dynamic linker characteristics... " >&6; } 16076 16077library_names_spec= 16078libname_spec='lib$name' 16079soname_spec= 16080shrext_cmds=.so 16081postinstall_cmds= 16082postuninstall_cmds= 16083finish_cmds= 16084finish_eval= 16085shlibpath_var= 16086shlibpath_overrides_runpath=unknown 16087version_type=none 16088dynamic_linker="$host_os ld.so" 16089sys_lib_dlsearch_path_spec="/lib /usr/lib" 16090need_lib_prefix=unknown 16091hardcode_into_libs=no 16092 16093# when you set need_version to no, make sure it does not cause -set_version 16094# flags to be left without arguments 16095need_version=unknown 16096 16097 16098 16099case $host_os in 16100aix3*) 16101 version_type=linux # correct to gnu/linux during the next big refactor 16102 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16103 shlibpath_var=LIBPATH 16104 16105 # AIX 3 has no versioning support, so we append a major version to the name. 16106 soname_spec='$libname$release$shared_ext$major' 16107 ;; 16108 16109aix[4-9]*) 16110 version_type=linux # correct to gnu/linux during the next big refactor 16111 need_lib_prefix=no 16112 need_version=no 16113 hardcode_into_libs=yes 16114 if test ia64 = "$host_cpu"; then 16115 # AIX 5 supports IA64 16116 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16117 shlibpath_var=LD_LIBRARY_PATH 16118 else 16119 # With GCC up to 2.95.x, collect2 would create an import file 16120 # for dependence libraries. The import file would start with 16121 # the line '#! .'. This would cause the generated library to 16122 # depend on '.', always an invalid library. This was fixed in 16123 # development snapshots of GCC prior to 3.0. 16124 case $host_os in 16125 aix4 | aix4.[01] | aix4.[01].*) 16126 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16127 echo ' yes ' 16128 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16129 : 16130 else 16131 can_build_shared=no 16132 fi 16133 ;; 16134 esac 16135 # Using Import Files as archive members, it is possible to support 16136 # filename-based versioning of shared library archives on AIX. While 16137 # this would work for both with and without runtime linking, it will 16138 # prevent static linking of such archives. So we do filename-based 16139 # shared library versioning with .so extension only, which is used 16140 # when both runtime linking and shared linking is enabled. 16141 # Unfortunately, runtime linking may impact performance, so we do 16142 # not want this to be the default eventually. Also, we use the 16143 # versioned .so libs for executables only if there is the -brtl 16144 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16145 # To allow for filename-based versioning support, we need to create 16146 # libNAME.so.V as an archive file, containing: 16147 # *) an Import File, referring to the versioned filename of the 16148 # archive as well as the shared archive member, telling the 16149 # bitwidth (32 or 64) of that shared object, and providing the 16150 # list of exported symbols of that shared object, eventually 16151 # decorated with the 'weak' keyword 16152 # *) the shared object with the F_LOADONLY flag set, to really avoid 16153 # it being seen by the linker. 16154 # At run time we better use the real file rather than another symlink, 16155 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16156 16157 case $with_aix_soname,$aix_use_runtimelinking in 16158 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16159 # soname into executable. Probably we can add versioning support to 16160 # collect2, so additional links can be useful in future. 16161 aix,yes) # traditional libtool 16162 dynamic_linker='AIX unversionable lib.so' 16163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16164 # instead of lib<name>.a to let people know that these are not 16165 # typical AIX shared libraries. 16166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16167 ;; 16168 aix,no) # traditional AIX only 16169 dynamic_linker='AIX lib.a(lib.so.V)' 16170 # We preserve .a as extension for shared libraries through AIX4.2 16171 # and later when we are not doing run time linking. 16172 library_names_spec='$libname$release.a $libname.a' 16173 soname_spec='$libname$release$shared_ext$major' 16174 ;; 16175 svr4,*) # full svr4 only 16176 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16177 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16178 # We do not specify a path in Import Files, so LIBPATH fires. 16179 shlibpath_overrides_runpath=yes 16180 ;; 16181 *,yes) # both, prefer svr4 16182 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16183 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16184 # unpreferred sharedlib libNAME.a needs extra handling 16185 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16186 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16187 # We do not specify a path in Import Files, so LIBPATH fires. 16188 shlibpath_overrides_runpath=yes 16189 ;; 16190 *,no) # both, prefer aix 16191 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16192 library_names_spec='$libname$release.a $libname.a' 16193 soname_spec='$libname$release$shared_ext$major' 16194 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16195 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16196 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16197 ;; 16198 esac 16199 shlibpath_var=LIBPATH 16200 fi 16201 ;; 16202 16203amigaos*) 16204 case $host_cpu in 16205 powerpc) 16206 # Since July 2007 AmigaOS4 officially supports .so libraries. 16207 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16209 ;; 16210 m68k) 16211 library_names_spec='$libname.ixlibrary $libname.a' 16212 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16213 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16214 ;; 16215 esac 16216 ;; 16217 16218beos*) 16219 library_names_spec='$libname$shared_ext' 16220 dynamic_linker="$host_os ld.so" 16221 shlibpath_var=LIBRARY_PATH 16222 ;; 16223 16224bsdi[45]*) 16225 version_type=linux # correct to gnu/linux during the next big refactor 16226 need_version=no 16227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16228 soname_spec='$libname$release$shared_ext$major' 16229 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16230 shlibpath_var=LD_LIBRARY_PATH 16231 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16232 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16233 # the default ld.so.conf also contains /usr/contrib/lib and 16234 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16235 # libtool to hard-code these into programs 16236 ;; 16237 16238cygwin* | mingw* | pw32* | cegcc*) 16239 version_type=windows 16240 shrext_cmds=.dll 16241 need_version=no 16242 need_lib_prefix=no 16243 16244 case $GCC,$cc_basename in 16245 yes,*) 16246 # gcc 16247 library_names_spec='$libname.dll.a' 16248 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16249 postinstall_cmds='base_file=`basename \$file`~ 16250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16251 dldir=$destdir/`dirname \$dlpath`~ 16252 test -d \$dldir || mkdir -p \$dldir~ 16253 $install_prog $dir/$dlname \$dldir/$dlname~ 16254 chmod a+x \$dldir/$dlname~ 16255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16257 fi' 16258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16259 dlpath=$dir/\$dldll~ 16260 $RM \$dlpath' 16261 shlibpath_overrides_runpath=yes 16262 16263 case $host_os in 16264 cygwin*) 16265 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16266 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16267 16268 ;; 16269 mingw* | cegcc*) 16270 # MinGW DLLs use traditional 'lib' prefix 16271 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16272 ;; 16273 pw32*) 16274 # pw32 DLLs use 'pw' prefix rather than 'lib' 16275 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16276 ;; 16277 esac 16278 dynamic_linker='Win32 ld.exe' 16279 ;; 16280 16281 *,cl*) 16282 # Native MSVC 16283 libname_spec='$name' 16284 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16285 library_names_spec='$libname.dll.lib' 16286 16287 case $build_os in 16288 mingw*) 16289 sys_lib_search_path_spec= 16290 lt_save_ifs=$IFS 16291 IFS=';' 16292 for lt_path in $LIB 16293 do 16294 IFS=$lt_save_ifs 16295 # Let DOS variable expansion print the short 8.3 style file name. 16296 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16297 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16298 done 16299 IFS=$lt_save_ifs 16300 # Convert to MSYS style. 16301 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16302 ;; 16303 cygwin*) 16304 # Convert to unix form, then to dos form, then back to unix form 16305 # but this time dos style (no spaces!) so that the unix form looks 16306 # like /cygdrive/c/PROGRA~1:/cygdr... 16307 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16308 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16309 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16310 ;; 16311 *) 16312 sys_lib_search_path_spec=$LIB 16313 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16314 # It is most probably a Windows format PATH. 16315 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16316 else 16317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16318 fi 16319 # FIXME: find the short name or the path components, as spaces are 16320 # common. (e.g. "Program Files" -> "PROGRA~1") 16321 ;; 16322 esac 16323 16324 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16325 postinstall_cmds='base_file=`basename \$file`~ 16326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16327 dldir=$destdir/`dirname \$dlpath`~ 16328 test -d \$dldir || mkdir -p \$dldir~ 16329 $install_prog $dir/$dlname \$dldir/$dlname' 16330 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16331 dlpath=$dir/\$dldll~ 16332 $RM \$dlpath' 16333 shlibpath_overrides_runpath=yes 16334 dynamic_linker='Win32 link.exe' 16335 ;; 16336 16337 *) 16338 # Assume MSVC wrapper 16339 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16340 dynamic_linker='Win32 ld.exe' 16341 ;; 16342 esac 16343 # FIXME: first we should search . and the directory the executable is in 16344 shlibpath_var=PATH 16345 ;; 16346 16347darwin* | rhapsody*) 16348 dynamic_linker="$host_os dyld" 16349 version_type=darwin 16350 need_lib_prefix=no 16351 need_version=no 16352 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16353 soname_spec='$libname$release$major$shared_ext' 16354 shlibpath_overrides_runpath=yes 16355 shlibpath_var=DYLD_LIBRARY_PATH 16356 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16357 16358 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16359 ;; 16360 16361dgux*) 16362 version_type=linux # correct to gnu/linux during the next big refactor 16363 need_lib_prefix=no 16364 need_version=no 16365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16366 soname_spec='$libname$release$shared_ext$major' 16367 shlibpath_var=LD_LIBRARY_PATH 16368 ;; 16369 16370freebsd* | dragonfly*) 16371 # DragonFly does not have aout. When/if they implement a new 16372 # versioning mechanism, adjust this. 16373 if test -x /usr/bin/objformat; then 16374 objformat=`/usr/bin/objformat` 16375 else 16376 case $host_os in 16377 freebsd[23].*) objformat=aout ;; 16378 *) objformat=elf ;; 16379 esac 16380 fi 16381 version_type=freebsd-$objformat 16382 case $version_type in 16383 freebsd-elf*) 16384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16385 soname_spec='$libname$release$shared_ext$major' 16386 need_version=no 16387 need_lib_prefix=no 16388 ;; 16389 freebsd-*) 16390 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16391 need_version=yes 16392 ;; 16393 esac 16394 shlibpath_var=LD_LIBRARY_PATH 16395 case $host_os in 16396 freebsd2.*) 16397 shlibpath_overrides_runpath=yes 16398 ;; 16399 freebsd3.[01]* | freebsdelf3.[01]*) 16400 shlibpath_overrides_runpath=yes 16401 hardcode_into_libs=yes 16402 ;; 16403 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16404 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16405 shlibpath_overrides_runpath=no 16406 hardcode_into_libs=yes 16407 ;; 16408 *) # from 4.6 on, and DragonFly 16409 shlibpath_overrides_runpath=yes 16410 hardcode_into_libs=yes 16411 ;; 16412 esac 16413 ;; 16414 16415haiku*) 16416 version_type=linux # correct to gnu/linux during the next big refactor 16417 need_lib_prefix=no 16418 need_version=no 16419 dynamic_linker="$host_os runtime_loader" 16420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16421 soname_spec='$libname$release$shared_ext$major' 16422 shlibpath_var=LIBRARY_PATH 16423 shlibpath_overrides_runpath=no 16424 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16425 hardcode_into_libs=yes 16426 ;; 16427 16428hpux9* | hpux10* | hpux11*) 16429 # Give a soname corresponding to the major version so that dld.sl refuses to 16430 # link against other versions. 16431 version_type=sunos 16432 need_lib_prefix=no 16433 need_version=no 16434 case $host_cpu in 16435 ia64*) 16436 shrext_cmds='.so' 16437 hardcode_into_libs=yes 16438 dynamic_linker="$host_os dld.so" 16439 shlibpath_var=LD_LIBRARY_PATH 16440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16442 soname_spec='$libname$release$shared_ext$major' 16443 if test 32 = "$HPUX_IA64_MODE"; then 16444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16445 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16446 else 16447 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16448 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16449 fi 16450 ;; 16451 hppa*64*) 16452 shrext_cmds='.sl' 16453 hardcode_into_libs=yes 16454 dynamic_linker="$host_os dld.sl" 16455 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16456 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16458 soname_spec='$libname$release$shared_ext$major' 16459 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16461 ;; 16462 *) 16463 shrext_cmds='.sl' 16464 dynamic_linker="$host_os dld.sl" 16465 shlibpath_var=SHLIB_PATH 16466 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16468 soname_spec='$libname$release$shared_ext$major' 16469 ;; 16470 esac 16471 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16472 postinstall_cmds='chmod 555 $lib' 16473 # or fails outright, so override atomically: 16474 install_override_mode=555 16475 ;; 16476 16477interix[3-9]*) 16478 version_type=linux # correct to gnu/linux during the next big refactor 16479 need_lib_prefix=no 16480 need_version=no 16481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16482 soname_spec='$libname$release$shared_ext$major' 16483 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16484 shlibpath_var=LD_LIBRARY_PATH 16485 shlibpath_overrides_runpath=no 16486 hardcode_into_libs=yes 16487 ;; 16488 16489irix5* | irix6* | nonstopux*) 16490 case $host_os in 16491 nonstopux*) version_type=nonstopux ;; 16492 *) 16493 if test yes = "$lt_cv_prog_gnu_ld"; then 16494 version_type=linux # correct to gnu/linux during the next big refactor 16495 else 16496 version_type=irix 16497 fi ;; 16498 esac 16499 need_lib_prefix=no 16500 need_version=no 16501 soname_spec='$libname$release$shared_ext$major' 16502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16503 case $host_os in 16504 irix5* | nonstopux*) 16505 libsuff= shlibsuff= 16506 ;; 16507 *) 16508 case $LD in # libtool.m4 will add one of these switches to LD 16509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16510 libsuff= shlibsuff= libmagic=32-bit;; 16511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16512 libsuff=32 shlibsuff=N32 libmagic=N32;; 16513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16514 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16515 *) libsuff= shlibsuff= libmagic=never-match;; 16516 esac 16517 ;; 16518 esac 16519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16520 shlibpath_overrides_runpath=no 16521 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16522 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16523 hardcode_into_libs=yes 16524 ;; 16525 16526# No shared lib support for Linux oldld, aout, or coff. 16527linux*oldld* | linux*aout* | linux*coff*) 16528 dynamic_linker=no 16529 ;; 16530 16531linux*android*) 16532 version_type=none # Android doesn't support versioned libraries. 16533 need_lib_prefix=no 16534 need_version=no 16535 library_names_spec='$libname$release$shared_ext' 16536 soname_spec='$libname$release$shared_ext' 16537 finish_cmds= 16538 shlibpath_var=LD_LIBRARY_PATH 16539 shlibpath_overrides_runpath=yes 16540 16541 # This implies no fast_install, which is unacceptable. 16542 # Some rework will be needed to allow for fast_install 16543 # before this can be enabled. 16544 hardcode_into_libs=yes 16545 16546 dynamic_linker='Android linker' 16547 # Don't embed -rpath directories since the linker doesn't support them. 16548 hardcode_libdir_flag_spec_F77='-L$libdir' 16549 ;; 16550 16551# This must be glibc/ELF. 16552linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16553 version_type=linux # correct to gnu/linux during the next big refactor 16554 need_lib_prefix=no 16555 need_version=no 16556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16557 soname_spec='$libname$release$shared_ext$major' 16558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16559 shlibpath_var=LD_LIBRARY_PATH 16560 shlibpath_overrides_runpath=no 16561 16562 # Some binutils ld are patched to set DT_RUNPATH 16563 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16564 $as_echo_n "(cached) " >&6 16565else 16566 lt_cv_shlibpath_overrides_runpath=no 16567 save_LDFLAGS=$LDFLAGS 16568 save_libdir=$libdir 16569 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ 16570 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" 16571 cat > conftest.$ac_ext <<_ACEOF 16572 program main 16573 16574 end 16575_ACEOF 16576if ac_fn_f77_try_link "$LINENO"; then : 16577 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16578 lt_cv_shlibpath_overrides_runpath=yes 16579fi 16580fi 16581rm -f core conftest.err conftest.$ac_objext \ 16582 conftest$ac_exeext conftest.$ac_ext 16583 LDFLAGS=$save_LDFLAGS 16584 libdir=$save_libdir 16585 16586fi 16587 16588 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16589 16590 # This implies no fast_install, which is unacceptable. 16591 # Some rework will be needed to allow for fast_install 16592 # before this can be enabled. 16593 hardcode_into_libs=yes 16594 16595 # Ideally, we could use ldconfig to report *all* directores which are 16596 # searched for libraries, however this is still not possible. Aside from not 16597 # being certain /sbin/ldconfig is available, command 16598 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16599 # even though it is searched at run-time. Try to do the best guess by 16600 # appending ld.so.conf contents (and includes) to the search path. 16601 if test -f /etc/ld.so.conf; then 16602 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' ' '` 16603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16604 fi 16605 16606 # We used to test for /lib/ld.so.1 and disable shared libraries on 16607 # powerpc, because MkLinux only supported shared libraries with the 16608 # GNU dynamic linker. Since this was broken with cross compilers, 16609 # most powerpc-linux boxes support dynamic linking these days and 16610 # people can always --disable-shared, the test was removed, and we 16611 # assume the GNU/Linux dynamic linker is in use. 16612 dynamic_linker='GNU/Linux ld.so' 16613 ;; 16614 16615netbsd*) 16616 version_type=sunos 16617 need_lib_prefix=no 16618 need_version=no 16619 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16620 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16622 dynamic_linker='NetBSD (a.out) ld.so' 16623 else 16624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16625 soname_spec='$libname$release$shared_ext$major' 16626 dynamic_linker='NetBSD ld.elf_so' 16627 fi 16628 shlibpath_var=LD_LIBRARY_PATH 16629 shlibpath_overrides_runpath=yes 16630 hardcode_into_libs=yes 16631 ;; 16632 16633newsos6) 16634 version_type=linux # correct to gnu/linux during the next big refactor 16635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16636 shlibpath_var=LD_LIBRARY_PATH 16637 shlibpath_overrides_runpath=yes 16638 ;; 16639 16640*nto* | *qnx*) 16641 version_type=qnx 16642 need_lib_prefix=no 16643 need_version=no 16644 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16645 soname_spec='$libname$release$shared_ext$major' 16646 shlibpath_var=LD_LIBRARY_PATH 16647 shlibpath_overrides_runpath=no 16648 hardcode_into_libs=yes 16649 dynamic_linker='ldqnx.so' 16650 ;; 16651 16652openbsd* | bitrig*) 16653 version_type=sunos 16654 sys_lib_dlsearch_path_spec=/usr/lib 16655 need_lib_prefix=no 16656 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16657 need_version=no 16658 else 16659 need_version=yes 16660 fi 16661 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16663 shlibpath_var=LD_LIBRARY_PATH 16664 shlibpath_overrides_runpath=yes 16665 ;; 16666 16667os2*) 16668 libname_spec='$name' 16669 version_type=windows 16670 shrext_cmds=.dll 16671 need_version=no 16672 need_lib_prefix=no 16673 # OS/2 can only load a DLL with a base name of 8 characters or less. 16674 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16675 v=$($ECHO $release$versuffix | tr -d .-); 16676 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16677 $ECHO $n$v`$shared_ext' 16678 library_names_spec='${libname}_dll.$libext' 16679 dynamic_linker='OS/2 ld.exe' 16680 shlibpath_var=BEGINLIBPATH 16681 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16682 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16683 postinstall_cmds='base_file=`basename \$file`~ 16684 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16685 dldir=$destdir/`dirname \$dlpath`~ 16686 test -d \$dldir || mkdir -p \$dldir~ 16687 $install_prog $dir/$dlname \$dldir/$dlname~ 16688 chmod a+x \$dldir/$dlname~ 16689 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16690 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16691 fi' 16692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16693 dlpath=$dir/\$dldll~ 16694 $RM \$dlpath' 16695 ;; 16696 16697osf3* | osf4* | osf5*) 16698 version_type=osf 16699 need_lib_prefix=no 16700 need_version=no 16701 soname_spec='$libname$release$shared_ext$major' 16702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16703 shlibpath_var=LD_LIBRARY_PATH 16704 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16706 ;; 16707 16708rdos*) 16709 dynamic_linker=no 16710 ;; 16711 16712solaris*) 16713 version_type=linux # correct to gnu/linux during the next big refactor 16714 need_lib_prefix=no 16715 need_version=no 16716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16717 soname_spec='$libname$release$shared_ext$major' 16718 shlibpath_var=LD_LIBRARY_PATH 16719 shlibpath_overrides_runpath=yes 16720 hardcode_into_libs=yes 16721 # ldd complains unless libraries are executable 16722 postinstall_cmds='chmod +x $lib' 16723 ;; 16724 16725sunos4*) 16726 version_type=sunos 16727 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16728 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16729 shlibpath_var=LD_LIBRARY_PATH 16730 shlibpath_overrides_runpath=yes 16731 if test yes = "$with_gnu_ld"; then 16732 need_lib_prefix=no 16733 fi 16734 need_version=yes 16735 ;; 16736 16737sysv4 | sysv4.3*) 16738 version_type=linux # correct to gnu/linux during the next big refactor 16739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16740 soname_spec='$libname$release$shared_ext$major' 16741 shlibpath_var=LD_LIBRARY_PATH 16742 case $host_vendor in 16743 sni) 16744 shlibpath_overrides_runpath=no 16745 need_lib_prefix=no 16746 runpath_var=LD_RUN_PATH 16747 ;; 16748 siemens) 16749 need_lib_prefix=no 16750 ;; 16751 motorola) 16752 need_lib_prefix=no 16753 need_version=no 16754 shlibpath_overrides_runpath=no 16755 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16756 ;; 16757 esac 16758 ;; 16759 16760sysv4*MP*) 16761 if test -d /usr/nec; then 16762 version_type=linux # correct to gnu/linux during the next big refactor 16763 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16764 soname_spec='$libname$shared_ext.$major' 16765 shlibpath_var=LD_LIBRARY_PATH 16766 fi 16767 ;; 16768 16769sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16770 version_type=sco 16771 need_lib_prefix=no 16772 need_version=no 16773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16774 soname_spec='$libname$release$shared_ext$major' 16775 shlibpath_var=LD_LIBRARY_PATH 16776 shlibpath_overrides_runpath=yes 16777 hardcode_into_libs=yes 16778 if test yes = "$with_gnu_ld"; then 16779 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16780 else 16781 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16782 case $host_os in 16783 sco3.2v5*) 16784 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16785 ;; 16786 esac 16787 fi 16788 sys_lib_dlsearch_path_spec='/usr/lib' 16789 ;; 16790 16791tpf*) 16792 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16793 version_type=linux # correct to gnu/linux during the next big refactor 16794 need_lib_prefix=no 16795 need_version=no 16796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16797 shlibpath_var=LD_LIBRARY_PATH 16798 shlibpath_overrides_runpath=no 16799 hardcode_into_libs=yes 16800 ;; 16801 16802uts4*) 16803 version_type=linux # correct to gnu/linux during the next big refactor 16804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16805 soname_spec='$libname$release$shared_ext$major' 16806 shlibpath_var=LD_LIBRARY_PATH 16807 ;; 16808 16809*) 16810 dynamic_linker=no 16811 ;; 16812esac 16813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16814$as_echo "$dynamic_linker" >&6; } 16815test no = "$dynamic_linker" && can_build_shared=no 16816 16817variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16818if test yes = "$GCC"; then 16819 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16820fi 16821 16822if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16823 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16824fi 16825 16826if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16827 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16828fi 16829 16830# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16831configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16832 16833# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16834func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16835 16836# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16837configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16879$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16880hardcode_action_F77= 16881if test -n "$hardcode_libdir_flag_spec_F77" || 16882 test -n "$runpath_var_F77" || 16883 test yes = "$hardcode_automatic_F77"; then 16884 16885 # We can hardcode non-existent directories. 16886 if test no != "$hardcode_direct_F77" && 16887 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16888 # have to relink, otherwise we might link with an installed library 16889 # when we should be linking with a yet-to-be-installed one 16890 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" && 16891 test no != "$hardcode_minus_L_F77"; then 16892 # Linking always hardcodes the temporary library directory. 16893 hardcode_action_F77=relink 16894 else 16895 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16896 hardcode_action_F77=immediate 16897 fi 16898else 16899 # We cannot hardcode anything, or else we can only hardcode existing 16900 # directories. 16901 hardcode_action_F77=unsupported 16902fi 16903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 16904$as_echo "$hardcode_action_F77" >&6; } 16905 16906if test relink = "$hardcode_action_F77" || 16907 test yes = "$inherit_rpath_F77"; then 16908 # Fast installation is not supported 16909 enable_fast_install=no 16910elif test yes = "$shlibpath_overrides_runpath" || 16911 test no = "$enable_shared"; then 16912 # Fast installation is not necessary 16913 enable_fast_install=needless 16914fi 16915 16916 16917 16918 16919 16920 16921 16922 fi # test -n "$compiler" 16923 16924 GCC=$lt_save_GCC 16925 CC=$lt_save_CC 16926 CFLAGS=$lt_save_CFLAGS 16927fi # test yes != "$_lt_disable_F77" 16928 16929ac_ext=c 16930ac_cpp='$CPP $CPPFLAGS' 16931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16933ac_compiler_gnu=$ac_cv_c_compiler_gnu 16934 16935 16936if test -z "$F77"; then 16937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fortran wrapper functions will not be included" >&5 16938$as_echo "$as_me: WARNING: Fortran wrapper functions will not be included" >&2;} 16939else 16940 ac_ext=f 16941ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16942ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16943ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 16945$as_echo_n "checking how to get verbose linking output from $F77... " >&6; } 16946if ${ac_cv_prog_f77_v+:} false; then : 16947 $as_echo_n "(cached) " >&6 16948else 16949 cat > conftest.$ac_ext <<_ACEOF 16950 program main 16951 16952 end 16953_ACEOF 16954if ac_fn_f77_try_compile "$LINENO"; then : 16955 ac_cv_prog_f77_v= 16956# Try some options frequently used verbose output 16957for ac_verb in -v -verbose --verbose -V -\#\#\#; do 16958 cat > conftest.$ac_ext <<_ACEOF 16959 program main 16960 16961 end 16962_ACEOF 16963 16964# Compile and link our simple test program by passing a flag (argument 16965# 1 to this macro) to the Fortran compiler in order to get 16966# "verbose" output that we can then parse for the Fortran linker 16967# flags. 16968ac_save_FFLAGS=$FFLAGS 16969FFLAGS="$FFLAGS $ac_verb" 16970eval "set x $ac_link" 16971shift 16972$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 16973# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 16974# LIBRARY_PATH; skip all such settings. 16975ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 16976 sed '/^Driving:/d; /^Configured with:/d; 16977 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 16978$as_echo "$ac_f77_v_output" >&5 16979FFLAGS=$ac_save_FFLAGS 16980 16981rm -rf conftest* 16982 16983# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 16984# /foo, /bar, and /baz are search directories for the Fortran linker. 16985# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 16986ac_f77_v_output="`echo $ac_f77_v_output | 16987 grep 'LPATH is:' | 16988 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 16989 16990# FIXME: we keep getting bitten by quoted arguments; a more general fix 16991# that detects unbalanced quotes in FLIBS should be implemented 16992# and (ugh) tested at some point. 16993case $ac_f77_v_output in 16994 # With xlf replace commas with spaces, 16995 # and remove "-link" and closing parenthesis. 16996 *xlfentry*) 16997 ac_f77_v_output=`echo $ac_f77_v_output | 16998 sed ' 16999 s/,/ /g 17000 s/ -link / /g 17001 s/) *$// 17002 ' 17003 ` ;; 17004 17005 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 17006 # $LIBS confuse us, and the libraries appear later in the output anyway). 17007 *mGLOB_options_string*) 17008 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 17009 17010 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 17011 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 17012 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 17013 *-cmdline\ * | *-ignore\ * | *-def\ *) 17014 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 17015 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 17016 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 17017 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 17018 17019 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 17020 *fort77*f2c*gcc*) 17021 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 17022 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 17023 /"-c"/d 17024 /[.]c"*/d 17025 s/^.*"gcc"/"gcc"/ 17026 s/"//gp 17027 }'` ;; 17028 17029 # If we are using Cray Fortran then delete quotes. 17030 *cft90*) 17031 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 17032esac 17033 17034 17035 # look for -l* and *.a constructs in the output 17036 for ac_arg in $ac_f77_v_output; do 17037 case $ac_arg in 17038 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 17039 ac_cv_prog_f77_v=$ac_verb 17040 break 2 ;; 17041 esac 17042 done 17043done 17044if test -z "$ac_cv_prog_f77_v"; then 17045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 17046$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 17047fi 17048else 17049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 17050$as_echo "$as_me: WARNING: compilation failed" >&2;} 17051fi 17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17053 17054fi 17055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 17056$as_echo "$ac_cv_prog_f77_v" >&6; } 17057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 17058$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } 17059if ${ac_cv_f77_libs+:} false; then : 17060 $as_echo_n "(cached) " >&6 17061else 17062 if test "x$FLIBS" != "x"; then 17063 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 17064else 17065 17066cat > conftest.$ac_ext <<_ACEOF 17067 program main 17068 17069 end 17070_ACEOF 17071 17072# Compile and link our simple test program by passing a flag (argument 17073# 1 to this macro) to the Fortran compiler in order to get 17074# "verbose" output that we can then parse for the Fortran linker 17075# flags. 17076ac_save_FFLAGS=$FFLAGS 17077FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 17078eval "set x $ac_link" 17079shift 17080$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 17081# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 17082# LIBRARY_PATH; skip all such settings. 17083ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 17084 sed '/^Driving:/d; /^Configured with:/d; 17085 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 17086$as_echo "$ac_f77_v_output" >&5 17087FFLAGS=$ac_save_FFLAGS 17088 17089rm -rf conftest* 17090 17091# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 17092# /foo, /bar, and /baz are search directories for the Fortran linker. 17093# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 17094ac_f77_v_output="`echo $ac_f77_v_output | 17095 grep 'LPATH is:' | 17096 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 17097 17098# FIXME: we keep getting bitten by quoted arguments; a more general fix 17099# that detects unbalanced quotes in FLIBS should be implemented 17100# and (ugh) tested at some point. 17101case $ac_f77_v_output in 17102 # With xlf replace commas with spaces, 17103 # and remove "-link" and closing parenthesis. 17104 *xlfentry*) 17105 ac_f77_v_output=`echo $ac_f77_v_output | 17106 sed ' 17107 s/,/ /g 17108 s/ -link / /g 17109 s/) *$// 17110 ' 17111 ` ;; 17112 17113 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 17114 # $LIBS confuse us, and the libraries appear later in the output anyway). 17115 *mGLOB_options_string*) 17116 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 17117 17118 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 17119 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 17120 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 17121 *-cmdline\ * | *-ignore\ * | *-def\ *) 17122 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 17123 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 17124 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 17125 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 17126 17127 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 17128 *fort77*f2c*gcc*) 17129 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 17130 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 17131 /"-c"/d 17132 /[.]c"*/d 17133 s/^.*"gcc"/"gcc"/ 17134 s/"//gp 17135 }'` ;; 17136 17137 # If we are using Cray Fortran then delete quotes. 17138 *cft90*) 17139 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 17140esac 17141 17142 17143 17144ac_cv_f77_libs= 17145 17146# Save positional arguments (if any) 17147ac_save_positional="$@" 17148 17149set X $ac_f77_v_output 17150while test $# != 1; do 17151 shift 17152 ac_arg=$1 17153 case $ac_arg in 17154 [\\/]*.a | ?:[\\/]*.a) 17155 ac_exists=false 17156 for ac_i in $ac_cv_f77_libs; do 17157 if test x"$ac_arg" = x"$ac_i"; then 17158 ac_exists=true 17159 break 17160 fi 17161 done 17162 17163 if test x"$ac_exists" = xtrue; then : 17164 17165else 17166 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 17167fi 17168 ;; 17169 -bI:*) 17170 ac_exists=false 17171 for ac_i in $ac_cv_f77_libs; do 17172 if test x"$ac_arg" = x"$ac_i"; then 17173 ac_exists=true 17174 break 17175 fi 17176 done 17177 17178 if test x"$ac_exists" = xtrue; then : 17179 17180else 17181 if test "$ac_compiler_gnu" = yes; then 17182 for ac_link_opt in $ac_arg; do 17183 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 17184 done 17185else 17186 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 17187fi 17188fi 17189 ;; 17190 # Ignore these flags. 17191 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ 17192 |-LANG:=* | -LIST:* | -LNO:* | -link) 17193 ;; 17194 -lkernel32) 17195 case $host_os in 17196 *cygwin*) ;; 17197 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 17198 ;; 17199 esac 17200 ;; 17201 -[LRuYz]) 17202 # These flags, when seen by themselves, take an argument. 17203 # We remove the space between option and argument and re-iterate 17204 # unless we find an empty arg or a new option (starting with -) 17205 case $2 in 17206 "" | -*);; 17207 *) 17208 ac_arg="$ac_arg$2" 17209 shift; shift 17210 set X $ac_arg "$@" 17211 ;; 17212 esac 17213 ;; 17214 -YP,*) 17215 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 17216 ac_exists=false 17217 for ac_i in $ac_cv_f77_libs; do 17218 if test x"$ac_j" = x"$ac_i"; then 17219 ac_exists=true 17220 break 17221 fi 17222 done 17223 17224 if test x"$ac_exists" = xtrue; then : 17225 17226else 17227 ac_arg="$ac_arg $ac_j" 17228 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 17229fi 17230 done 17231 ;; 17232 -[lLR]*) 17233 ac_exists=false 17234 for ac_i in $ac_cv_f77_libs; do 17235 if test x"$ac_arg" = x"$ac_i"; then 17236 ac_exists=true 17237 break 17238 fi 17239 done 17240 17241 if test x"$ac_exists" = xtrue; then : 17242 17243else 17244 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 17245fi 17246 ;; 17247 -zallextract*| -zdefaultextract) 17248 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 17249 ;; 17250 # Ignore everything else. 17251 esac 17252done 17253# restore positional arguments 17254set X $ac_save_positional; shift 17255 17256# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 17257# then we insist that the "run path" must be an absolute path (i.e. it 17258# must begin with a "/"). 17259case `(uname -sr) 2>/dev/null` in 17260 "SunOS 5"*) 17261 ac_ld_run_path=`$as_echo "$ac_f77_v_output" | 17262 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 17263 test "x$ac_ld_run_path" != x && 17264 if test "$ac_compiler_gnu" = yes; then 17265 for ac_link_opt in $ac_ld_run_path; do 17266 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 17267 done 17268else 17269 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 17270fi 17271 ;; 17272esac 17273fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 17274 17275fi 17276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 17277$as_echo "$ac_cv_f77_libs" >&6; } 17278FLIBS="$ac_cv_f77_libs" 17279 17280 17281ac_ext=c 17282ac_cpp='$CPP $CPPFLAGS' 17283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17285ac_compiler_gnu=$ac_cv_c_compiler_gnu 17286 17287ac_ext=f 17288ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 17289ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17290ac_compiler_gnu=$ac_cv_f77_compiler_gnu 17291 17292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 17293$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } 17294if ${ac_cv_f77_dummy_main+:} false; then : 17295 $as_echo_n "(cached) " >&6 17296else 17297 ac_f77_dm_save_LIBS=$LIBS 17298 LIBS="$LIBS $FLIBS" 17299 ac_fortran_dm_var=F77_DUMMY_MAIN 17300 ac_ext=c 17301ac_cpp='$CPP $CPPFLAGS' 17302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17304ac_compiler_gnu=$ac_cv_c_compiler_gnu 17305 17306 # First, try linking without a dummy main: 17307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17308/* end confdefs.h. */ 17309 17310#ifdef F77_DUMMY_MAIN 17311 17312# ifdef __cplusplus 17313 extern "C" 17314# endif 17315 int F77_DUMMY_MAIN() { return 1; } 17316 17317#endif 17318int 17319main () 17320{ 17321 17322 ; 17323 return 0; 17324} 17325_ACEOF 17326if ac_fn_c_try_link "$LINENO"; then : 17327 ac_cv_fortran_dummy_main=none 17328else 17329 ac_cv_fortran_dummy_main=unknown 17330fi 17331rm -f core conftest.err conftest.$ac_objext \ 17332 conftest$ac_exeext conftest.$ac_ext 17333 17334 if test $ac_cv_fortran_dummy_main = unknown; then 17335 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17337/* end confdefs.h. */ 17338#define $ac_fortran_dm_var $ac_func 17339#ifdef F77_DUMMY_MAIN 17340 17341# ifdef __cplusplus 17342 extern "C" 17343# endif 17344 int F77_DUMMY_MAIN() { return 1; } 17345 17346#endif 17347int 17348main () 17349{ 17350 17351 ; 17352 return 0; 17353} 17354_ACEOF 17355if ac_fn_c_try_link "$LINENO"; then : 17356 ac_cv_fortran_dummy_main=$ac_func; break 17357fi 17358rm -f core conftest.err conftest.$ac_objext \ 17359 conftest$ac_exeext conftest.$ac_ext 17360 done 17361 fi 17362 ac_ext=f 17363ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 17364ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17365ac_compiler_gnu=$ac_cv_f77_compiler_gnu 17366 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 17367 rm -rf conftest* 17368 LIBS=$ac_f77_dm_save_LIBS 17369 17370fi 17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 17372$as_echo "$ac_cv_f77_dummy_main" >&6; } 17373F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 17374if test "$F77_DUMMY_MAIN" != unknown; then : 17375 if test $F77_DUMMY_MAIN != none; then 17376 17377cat >>confdefs.h <<_ACEOF 17378#define F77_DUMMY_MAIN $F77_DUMMY_MAIN 17379_ACEOF 17380 17381 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 17382 17383$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h 17384 17385 fi 17386fi 17387else 17388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17390as_fn_error $? "linking to Fortran libraries from C fails 17391See \`config.log' for more details" "$LINENO" 5; } 17392fi 17393 17394ac_ext=c 17395ac_cpp='$CPP $CPPFLAGS' 17396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17398ac_compiler_gnu=$ac_cv_c_compiler_gnu 17399 17400ac_ext=f 17401ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 17402ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17403ac_compiler_gnu=$ac_cv_f77_compiler_gnu 17404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 17405$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } 17406if ${ac_cv_f77_mangling+:} false; then : 17407 $as_echo_n "(cached) " >&6 17408else 17409 cat > conftest.$ac_ext <<_ACEOF 17410 subroutine foobar() 17411 return 17412 end 17413 subroutine foo_bar() 17414 return 17415 end 17416_ACEOF 17417if ac_fn_f77_try_compile "$LINENO"; then : 17418 mv conftest.$ac_objext cfortran_test.$ac_objext 17419 17420 ac_save_LIBS=$LIBS 17421 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 17422 17423 ac_ext=c 17424ac_cpp='$CPP $CPPFLAGS' 17425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17427ac_compiler_gnu=$ac_cv_c_compiler_gnu 17428 ac_success=no 17429 for ac_foobar in foobar FOOBAR; do 17430 for ac_underscore in "" "_"; do 17431 ac_func="$ac_foobar$ac_underscore" 17432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17433/* end confdefs.h. */ 17434 17435/* Override any GCC internal prototype to avoid an error. 17436 Use char because int might match the return type of a GCC 17437 builtin and then its argument prototype would still apply. */ 17438#ifdef __cplusplus 17439extern "C" 17440#endif 17441char $ac_func (); 17442#ifdef F77_DUMMY_MAIN 17443 17444# ifdef __cplusplus 17445 extern "C" 17446# endif 17447 int F77_DUMMY_MAIN() { return 1; } 17448 17449#endif 17450int 17451main () 17452{ 17453return $ac_func (); 17454 ; 17455 return 0; 17456} 17457_ACEOF 17458if ac_fn_c_try_link "$LINENO"; then : 17459 ac_success=yes; break 2 17460fi 17461rm -f core conftest.err conftest.$ac_objext \ 17462 conftest$ac_exeext conftest.$ac_ext 17463 done 17464 done 17465 ac_ext=f 17466ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 17467ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17468ac_compiler_gnu=$ac_cv_f77_compiler_gnu 17469 17470 if test "$ac_success" = "yes"; then 17471 case $ac_foobar in 17472 foobar) 17473 ac_case=lower 17474 ac_foo_bar=foo_bar 17475 ;; 17476 FOOBAR) 17477 ac_case=upper 17478 ac_foo_bar=FOO_BAR 17479 ;; 17480 esac 17481 17482 ac_ext=c 17483ac_cpp='$CPP $CPPFLAGS' 17484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17486ac_compiler_gnu=$ac_cv_c_compiler_gnu 17487 ac_success_extra=no 17488 for ac_extra in "" "_"; do 17489 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 17490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17491/* end confdefs.h. */ 17492 17493/* Override any GCC internal prototype to avoid an error. 17494 Use char because int might match the return type of a GCC 17495 builtin and then its argument prototype would still apply. */ 17496#ifdef __cplusplus 17497extern "C" 17498#endif 17499char $ac_func (); 17500#ifdef F77_DUMMY_MAIN 17501 17502# ifdef __cplusplus 17503 extern "C" 17504# endif 17505 int F77_DUMMY_MAIN() { return 1; } 17506 17507#endif 17508int 17509main () 17510{ 17511return $ac_func (); 17512 ; 17513 return 0; 17514} 17515_ACEOF 17516if ac_fn_c_try_link "$LINENO"; then : 17517 ac_success_extra=yes; break 17518fi 17519rm -f core conftest.err conftest.$ac_objext \ 17520 conftest$ac_exeext conftest.$ac_ext 17521 done 17522 ac_ext=f 17523ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 17524ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17525ac_compiler_gnu=$ac_cv_f77_compiler_gnu 17526 17527 if test "$ac_success_extra" = "yes"; then 17528 ac_cv_f77_mangling="$ac_case case" 17529 if test -z "$ac_underscore"; then 17530 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 17531 else 17532 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 17533 fi 17534 if test -z "$ac_extra"; then 17535 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 17536 else 17537 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 17538 fi 17539 else 17540 ac_cv_f77_mangling="unknown" 17541 fi 17542 else 17543 ac_cv_f77_mangling="unknown" 17544 fi 17545 17546 LIBS=$ac_save_LIBS 17547 rm -rf conftest* 17548 rm -f cfortran_test* 17549else 17550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17552as_fn_error $? "cannot compile a simple Fortran program 17553See \`config.log' for more details" "$LINENO" 5; } 17554fi 17555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17556 17557fi 17558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 17559$as_echo "$ac_cv_f77_mangling" >&6; } 17560 17561ac_ext=c 17562ac_cpp='$CPP $CPPFLAGS' 17563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17565ac_compiler_gnu=$ac_cv_c_compiler_gnu 17566 17567ac_ext=f 17568ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 17569ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17570ac_compiler_gnu=$ac_cv_f77_compiler_gnu 17571case $ac_cv_f77_mangling in 17572 "lower case, no underscore, no extra underscore") 17573 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 17574 17575 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h 17576 ;; 17577 "lower case, no underscore, extra underscore") 17578 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 17579 17580 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 17581 ;; 17582 "lower case, underscore, no extra underscore") 17583 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 17584 17585 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 17586 ;; 17587 "lower case, underscore, extra underscore") 17588 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 17589 17590 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h 17591 ;; 17592 "upper case, no underscore, no extra underscore") 17593 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 17594 17595 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h 17596 ;; 17597 "upper case, no underscore, extra underscore") 17598 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 17599 17600 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 17601 ;; 17602 "upper case, underscore, no extra underscore") 17603 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 17604 17605 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 17606 ;; 17607 "upper case, underscore, extra underscore") 17608 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 17609 17610 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h 17611 ;; 17612 *) 17613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 17614$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} 17615 ;; 17616esac 17617 17618ac_ext=c 17619ac_cpp='$CPP $CPPFLAGS' 17620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17622ac_compiler_gnu=$ac_cv_c_compiler_gnu 17623 17624fi 17625 17626########################################################################### 17627# Check for C99 complex-number support, for cintegrate.c 17628 17629for ac_header in complex.h 17630do : 17631 ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default" 17632if test "x$ac_cv_header_complex_h" = xyes; then : 17633 cat >>confdefs.h <<_ACEOF 17634#define HAVE_COMPLEX_H 1 17635_ACEOF 17636 17637fi 17638 17639done 17640 17641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C complex keyword" >&5 17642$as_echo_n "checking for C complex keyword... " >&6; } 17643if ${acx_cv_c_complex+:} false; then : 17644 $as_echo_n "(cached) " >&6 17645else 17646 acx_cv_c_complex=unsupported 17647 for acx_kw in complex _Complex __complex__; do 17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17649/* end confdefs.h. */ 17650#include <complex.h> 17651#ifdef F77_DUMMY_MAIN 17652 17653# ifdef __cplusplus 17654 extern "C" 17655# endif 17656 int F77_DUMMY_MAIN() { return 1; } 17657 17658#endif 17659int 17660main () 17661{ 17662float $acx_kw foo; 17663 ; 17664 return 0; 17665} 17666_ACEOF 17667if ac_fn_c_try_compile "$LINENO"; then : 17668 acx_cv_c_complex=$acx_kw; break 17669fi 17670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17671 done 17672 17673fi 17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_c_complex" >&5 17675$as_echo "$acx_cv_c_complex" >&6; } 17676 17677if test "$acx_cv_c_complex" = "unsupported"; then 17678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C doesn't support complex numbers; disabling complex integration." >&5 17679$as_echo "$as_me: WARNING: C doesn't support complex numbers; disabling complex integration." >&2;} 17680else 17681 17682$as_echo "#define CTL_HAS_COMPLEX_INTEGRATION 1" >>confdefs.h 17683 17684fi 17685 17686########################################################################### 17687# Check for nlopt, or at least its header, and extract Scheme constants 17688 17689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 17690$as_echo_n "checking for egrep... " >&6; } 17691if ${ac_cv_path_EGREP+:} false; then : 17692 $as_echo_n "(cached) " >&6 17693else 17694 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 17695 then ac_cv_path_EGREP="$GREP -E" 17696 else 17697 if test -z "$EGREP"; then 17698 ac_path_EGREP_found=false 17699 # Loop through the user's path and test for each of PROGNAME-LIST 17700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17701for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 17702do 17703 IFS=$as_save_IFS 17704 test -z "$as_dir" && as_dir=. 17705 for ac_prog in egrep; do 17706 for ac_exec_ext in '' $ac_executable_extensions; do 17707 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 17708 as_fn_executable_p "$ac_path_EGREP" || continue 17709# Check for GNU ac_path_EGREP and select it if it is found. 17710 # Check for GNU $ac_path_EGREP 17711case `"$ac_path_EGREP" --version 2>&1` in 17712*GNU*) 17713 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 17714*) 17715 ac_count=0 17716 $as_echo_n 0123456789 >"conftest.in" 17717 while : 17718 do 17719 cat "conftest.in" "conftest.in" >"conftest.tmp" 17720 mv "conftest.tmp" "conftest.in" 17721 cp "conftest.in" "conftest.nl" 17722 $as_echo 'EGREP' >> "conftest.nl" 17723 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 17724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 17725 as_fn_arith $ac_count + 1 && ac_count=$as_val 17726 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 17727 # Best one so far, save it but keep looking for a better one 17728 ac_cv_path_EGREP="$ac_path_EGREP" 17729 ac_path_EGREP_max=$ac_count 17730 fi 17731 # 10*(2^10) chars as input seems more than enough 17732 test $ac_count -gt 10 && break 17733 done 17734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 17735esac 17736 17737 $ac_path_EGREP_found && break 3 17738 done 17739 done 17740 done 17741IFS=$as_save_IFS 17742 if test -z "$ac_cv_path_EGREP"; then 17743 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 17744 fi 17745else 17746 ac_cv_path_EGREP=$EGREP 17747fi 17748 17749 fi 17750fi 17751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 17752$as_echo "$ac_cv_path_EGREP" >&6; } 17753 EGREP="$ac_cv_path_EGREP" 17754 17755 17756for ac_header in nlopt.h 17757do : 17758 ac_fn_c_check_header_mongrel "$LINENO" "nlopt.h" "ac_cv_header_nlopt_h" "$ac_includes_default" 17759if test "x$ac_cv_header_nlopt_h" = xyes; then : 17760 cat >>confdefs.h <<_ACEOF 17761#define HAVE_NLOPT_H 1 17762_ACEOF 17763 17764fi 17765 17766done 17767 17768 17769########################################################################### 17770 17771libctl_dir=$srcdir 17772case $libctl_dir in .*) libctl_dir=`pwd`/$libctl_dir ;; esac 17773 17774LIBCTL_DIR="$libctl_dir" 17775 17776 17777GEN_CTL_IO="`pwd`/utils/gen-ctl-io" 17778 17779 17780# On IRIX, basename/dirname functions require -lgen 17781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5 17782$as_echo_n "checking for basename in -lgen... " >&6; } 17783if ${ac_cv_lib_gen_basename+:} false; then : 17784 $as_echo_n "(cached) " >&6 17785else 17786 ac_check_lib_save_LIBS=$LIBS 17787LIBS="-lgen $LIBS" 17788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17789/* end confdefs.h. */ 17790 17791/* Override any GCC internal prototype to avoid an error. 17792 Use char because int might match the return type of a GCC 17793 builtin and then its argument prototype would still apply. */ 17794#ifdef __cplusplus 17795extern "C" 17796#endif 17797char basename (); 17798#ifdef F77_DUMMY_MAIN 17799 17800# ifdef __cplusplus 17801 extern "C" 17802# endif 17803 int F77_DUMMY_MAIN() { return 1; } 17804 17805#endif 17806int 17807main () 17808{ 17809return basename (); 17810 ; 17811 return 0; 17812} 17813_ACEOF 17814if ac_fn_c_try_link "$LINENO"; then : 17815 ac_cv_lib_gen_basename=yes 17816else 17817 ac_cv_lib_gen_basename=no 17818fi 17819rm -f core conftest.err conftest.$ac_objext \ 17820 conftest$ac_exeext conftest.$ac_ext 17821LIBS=$ac_check_lib_save_LIBS 17822fi 17823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5 17824$as_echo "$ac_cv_lib_gen_basename" >&6; } 17825if test "x$ac_cv_lib_gen_basename" = xyes; then : 17826 cat >>confdefs.h <<_ACEOF 17827#define HAVE_LIBGEN 1 17828_ACEOF 17829 17830 LIBS="-lgen $LIBS" 17831 17832fi 17833 17834 17835########################################################################### 17836 17837ac_config_files="$ac_config_files Makefile src/Makefile utils/Makefile examples/Makefile examples/example.scm" 17838 17839ac_config_files="$ac_config_files utils/gen-ctl-io" 17840 17841cat >confcache <<\_ACEOF 17842# This file is a shell script that caches the results of configure 17843# tests run on this system so they can be shared between configure 17844# scripts and configure runs, see configure's option --config-cache. 17845# It is not useful on other systems. If it contains results you don't 17846# want to keep, you may remove or edit it. 17847# 17848# config.status only pays attention to the cache file if you give it 17849# the --recheck option to rerun configure. 17850# 17851# `ac_cv_env_foo' variables (set or unset) will be overridden when 17852# loading this file, other *unset* `ac_cv_foo' will be assigned the 17853# following values. 17854 17855_ACEOF 17856 17857# The following way of writing the cache mishandles newlines in values, 17858# but we know of no workaround that is simple, portable, and efficient. 17859# So, we kill variables containing newlines. 17860# Ultrix sh set writes to stderr and can't be redirected directly, 17861# and sets the high bit in the cache file unless we assign to the vars. 17862( 17863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17864 eval ac_val=\$$ac_var 17865 case $ac_val in #( 17866 *${as_nl}*) 17867 case $ac_var in #( 17868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17869$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17870 esac 17871 case $ac_var in #( 17872 _ | IFS | as_nl) ;; #( 17873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17874 *) { eval $ac_var=; unset $ac_var;} ;; 17875 esac ;; 17876 esac 17877 done 17878 17879 (set) 2>&1 | 17880 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17881 *${as_nl}ac_space=\ *) 17882 # `set' does not quote correctly, so add quotes: double-quote 17883 # substitution turns \\\\ into \\, and sed turns \\ into \. 17884 sed -n \ 17885 "s/'/'\\\\''/g; 17886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17887 ;; #( 17888 *) 17889 # `set' quotes correctly as required by POSIX, so do not add quotes. 17890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17891 ;; 17892 esac | 17893 sort 17894) | 17895 sed ' 17896 /^ac_cv_env_/b end 17897 t clear 17898 :clear 17899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17900 t end 17901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17902 :end' >>confcache 17903if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17904 if test -w "$cache_file"; then 17905 if test "x$cache_file" != "x/dev/null"; then 17906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17907$as_echo "$as_me: updating cache $cache_file" >&6;} 17908 if test ! -f "$cache_file" || test -h "$cache_file"; then 17909 cat confcache >"$cache_file" 17910 else 17911 case $cache_file in #( 17912 */* | ?:*) 17913 mv -f confcache "$cache_file"$$ && 17914 mv -f "$cache_file"$$ "$cache_file" ;; #( 17915 *) 17916 mv -f confcache "$cache_file" ;; 17917 esac 17918 fi 17919 fi 17920 else 17921 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17922$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17923 fi 17924fi 17925rm -f confcache 17926 17927test "x$prefix" = xNONE && prefix=$ac_default_prefix 17928# Let make expand exec_prefix. 17929test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17930 17931DEFS=-DHAVE_CONFIG_H 17932 17933ac_libobjs= 17934ac_ltlibobjs= 17935U= 17936for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17937 # 1. Remove the extension, and $U if already installed. 17938 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17939 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17940 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17941 # will be set to the directory where LIBOBJS objects are built. 17942 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17943 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17944done 17945LIBOBJS=$ac_libobjs 17946 17947LTLIBOBJS=$ac_ltlibobjs 17948 17949 17950if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17951 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17952Usually this means the macro was only invoked conditionally." "$LINENO" 5 17953fi 17954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17955$as_echo_n "checking that generated files are newer than configure... " >&6; } 17956 if test -n "$am_sleep_pid"; then 17957 # Hide warnings about reused PIDs. 17958 wait $am_sleep_pid 2>/dev/null 17959 fi 17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17961$as_echo "done" >&6; } 17962 if test -n "$EXEEXT"; then 17963 am__EXEEXT_TRUE= 17964 am__EXEEXT_FALSE='#' 17965else 17966 am__EXEEXT_TRUE='#' 17967 am__EXEEXT_FALSE= 17968fi 17969 17970if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17971 as_fn_error $? "conditional \"AMDEP\" was never defined. 17972Usually this means the macro was only invoked conditionally." "$LINENO" 5 17973fi 17974if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17975 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17976Usually this means the macro was only invoked conditionally." "$LINENO" 5 17977fi 17978if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17979 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17980Usually this means the macro was only invoked conditionally." "$LINENO" 5 17981fi 17982if test -z "${WITH_GUILE_TRUE}" && test -z "${WITH_GUILE_FALSE}"; then 17983 as_fn_error $? "conditional \"WITH_GUILE\" was never defined. 17984Usually this means the macro was only invoked conditionally." "$LINENO" 5 17985fi 17986 17987: "${CONFIG_STATUS=./config.status}" 17988ac_write_fail=0 17989ac_clean_files_save=$ac_clean_files 17990ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17991{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17992$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17993as_write_fail=0 17994cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17995#! $SHELL 17996# Generated by $as_me. 17997# Run this file to recreate the current configuration. 17998# Compiler output produced by configure, useful for debugging 17999# configure, is in config.log if it exists. 18000 18001debug=false 18002ac_cs_recheck=false 18003ac_cs_silent=false 18004 18005SHELL=\${CONFIG_SHELL-$SHELL} 18006export SHELL 18007_ASEOF 18008cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18009## -------------------- ## 18010## M4sh Initialization. ## 18011## -------------------- ## 18012 18013# Be more Bourne compatible 18014DUALCASE=1; export DUALCASE # for MKS sh 18015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18016 emulate sh 18017 NULLCMD=: 18018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18019 # is contrary to our usage. Disable this feature. 18020 alias -g '${1+"$@"}'='"$@"' 18021 setopt NO_GLOB_SUBST 18022else 18023 case `(set -o) 2>/dev/null` in #( 18024 *posix*) : 18025 set -o posix ;; #( 18026 *) : 18027 ;; 18028esac 18029fi 18030 18031 18032as_nl=' 18033' 18034export as_nl 18035# Printing a long string crashes Solaris 7 /usr/bin/printf. 18036as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18037as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18038as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18039# Prefer a ksh shell builtin over an external printf program on Solaris, 18040# but without wasting forks for bash or zsh. 18041if test -z "$BASH_VERSION$ZSH_VERSION" \ 18042 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18043 as_echo='print -r --' 18044 as_echo_n='print -rn --' 18045elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18046 as_echo='printf %s\n' 18047 as_echo_n='printf %s' 18048else 18049 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18050 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18051 as_echo_n='/usr/ucb/echo -n' 18052 else 18053 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18054 as_echo_n_body='eval 18055 arg=$1; 18056 case $arg in #( 18057 *"$as_nl"*) 18058 expr "X$arg" : "X\\(.*\\)$as_nl"; 18059 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18060 esac; 18061 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18062 ' 18063 export as_echo_n_body 18064 as_echo_n='sh -c $as_echo_n_body as_echo' 18065 fi 18066 export as_echo_body 18067 as_echo='sh -c $as_echo_body as_echo' 18068fi 18069 18070# The user is always right. 18071if test "${PATH_SEPARATOR+set}" != set; then 18072 PATH_SEPARATOR=: 18073 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18074 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18075 PATH_SEPARATOR=';' 18076 } 18077fi 18078 18079 18080# IFS 18081# We need space, tab and new line, in precisely that order. Quoting is 18082# there to prevent editors from complaining about space-tab. 18083# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18084# splitting by setting IFS to empty value.) 18085IFS=" "" $as_nl" 18086 18087# Find who we are. Look in the path if we contain no directory separator. 18088as_myself= 18089case $0 in #(( 18090 *[\\/]* ) as_myself=$0 ;; 18091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18092for as_dir in $PATH 18093do 18094 IFS=$as_save_IFS 18095 test -z "$as_dir" && as_dir=. 18096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18097 done 18098IFS=$as_save_IFS 18099 18100 ;; 18101esac 18102# We did not find ourselves, most probably we were run as `sh COMMAND' 18103# in which case we are not to be found in the path. 18104if test "x$as_myself" = x; then 18105 as_myself=$0 18106fi 18107if test ! -f "$as_myself"; then 18108 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18109 exit 1 18110fi 18111 18112# Unset variables that we do not need and which cause bugs (e.g. in 18113# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18114# suppresses any "Segmentation fault" message there. '((' could 18115# trigger a bug in pdksh 5.2.14. 18116for as_var in BASH_ENV ENV MAIL MAILPATH 18117do eval test x\${$as_var+set} = xset \ 18118 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18119done 18120PS1='$ ' 18121PS2='> ' 18122PS4='+ ' 18123 18124# NLS nuisances. 18125LC_ALL=C 18126export LC_ALL 18127LANGUAGE=C 18128export LANGUAGE 18129 18130# CDPATH. 18131(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18132 18133 18134# as_fn_error STATUS ERROR [LINENO LOG_FD] 18135# ---------------------------------------- 18136# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18137# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18138# script with STATUS, using 1 if that was 0. 18139as_fn_error () 18140{ 18141 as_status=$1; test $as_status -eq 0 && as_status=1 18142 if test "$4"; then 18143 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18144 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18145 fi 18146 $as_echo "$as_me: error: $2" >&2 18147 as_fn_exit $as_status 18148} # as_fn_error 18149 18150 18151# as_fn_set_status STATUS 18152# ----------------------- 18153# Set $? to STATUS, without forking. 18154as_fn_set_status () 18155{ 18156 return $1 18157} # as_fn_set_status 18158 18159# as_fn_exit STATUS 18160# ----------------- 18161# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18162as_fn_exit () 18163{ 18164 set +e 18165 as_fn_set_status $1 18166 exit $1 18167} # as_fn_exit 18168 18169# as_fn_unset VAR 18170# --------------- 18171# Portably unset VAR. 18172as_fn_unset () 18173{ 18174 { eval $1=; unset $1;} 18175} 18176as_unset=as_fn_unset 18177# as_fn_append VAR VALUE 18178# ---------------------- 18179# Append the text in VALUE to the end of the definition contained in VAR. Take 18180# advantage of any shell optimizations that allow amortized linear growth over 18181# repeated appends, instead of the typical quadratic growth present in naive 18182# implementations. 18183if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18184 eval 'as_fn_append () 18185 { 18186 eval $1+=\$2 18187 }' 18188else 18189 as_fn_append () 18190 { 18191 eval $1=\$$1\$2 18192 } 18193fi # as_fn_append 18194 18195# as_fn_arith ARG... 18196# ------------------ 18197# Perform arithmetic evaluation on the ARGs, and store the result in the 18198# global $as_val. Take advantage of shells that can avoid forks. The arguments 18199# must be portable across $(()) and expr. 18200if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18201 eval 'as_fn_arith () 18202 { 18203 as_val=$(( $* )) 18204 }' 18205else 18206 as_fn_arith () 18207 { 18208 as_val=`expr "$@" || test $? -eq 1` 18209 } 18210fi # as_fn_arith 18211 18212 18213if expr a : '\(a\)' >/dev/null 2>&1 && 18214 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18215 as_expr=expr 18216else 18217 as_expr=false 18218fi 18219 18220if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18221 as_basename=basename 18222else 18223 as_basename=false 18224fi 18225 18226if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18227 as_dirname=dirname 18228else 18229 as_dirname=false 18230fi 18231 18232as_me=`$as_basename -- "$0" || 18233$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18234 X"$0" : 'X\(//\)$' \| \ 18235 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18236$as_echo X/"$0" | 18237 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18238 s//\1/ 18239 q 18240 } 18241 /^X\/\(\/\/\)$/{ 18242 s//\1/ 18243 q 18244 } 18245 /^X\/\(\/\).*/{ 18246 s//\1/ 18247 q 18248 } 18249 s/.*/./; q'` 18250 18251# Avoid depending upon Character Ranges. 18252as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18253as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18254as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18255as_cr_digits='0123456789' 18256as_cr_alnum=$as_cr_Letters$as_cr_digits 18257 18258ECHO_C= ECHO_N= ECHO_T= 18259case `echo -n x` in #((((( 18260-n*) 18261 case `echo 'xy\c'` in 18262 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18263 xy) ECHO_C='\c';; 18264 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18265 ECHO_T=' ';; 18266 esac;; 18267*) 18268 ECHO_N='-n';; 18269esac 18270 18271rm -f conf$$ conf$$.exe conf$$.file 18272if test -d conf$$.dir; then 18273 rm -f conf$$.dir/conf$$.file 18274else 18275 rm -f conf$$.dir 18276 mkdir conf$$.dir 2>/dev/null 18277fi 18278if (echo >conf$$.file) 2>/dev/null; then 18279 if ln -s conf$$.file conf$$ 2>/dev/null; then 18280 as_ln_s='ln -s' 18281 # ... but there are two gotchas: 18282 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18283 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18284 # In both cases, we have to default to `cp -pR'. 18285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18286 as_ln_s='cp -pR' 18287 elif ln conf$$.file conf$$ 2>/dev/null; then 18288 as_ln_s=ln 18289 else 18290 as_ln_s='cp -pR' 18291 fi 18292else 18293 as_ln_s='cp -pR' 18294fi 18295rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18296rmdir conf$$.dir 2>/dev/null 18297 18298 18299# as_fn_mkdir_p 18300# ------------- 18301# Create "$as_dir" as a directory, including parents if necessary. 18302as_fn_mkdir_p () 18303{ 18304 18305 case $as_dir in #( 18306 -*) as_dir=./$as_dir;; 18307 esac 18308 test -d "$as_dir" || eval $as_mkdir_p || { 18309 as_dirs= 18310 while :; do 18311 case $as_dir in #( 18312 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18313 *) as_qdir=$as_dir;; 18314 esac 18315 as_dirs="'$as_qdir' $as_dirs" 18316 as_dir=`$as_dirname -- "$as_dir" || 18317$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18318 X"$as_dir" : 'X\(//\)[^/]' \| \ 18319 X"$as_dir" : 'X\(//\)$' \| \ 18320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18321$as_echo X"$as_dir" | 18322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18323 s//\1/ 18324 q 18325 } 18326 /^X\(\/\/\)[^/].*/{ 18327 s//\1/ 18328 q 18329 } 18330 /^X\(\/\/\)$/{ 18331 s//\1/ 18332 q 18333 } 18334 /^X\(\/\).*/{ 18335 s//\1/ 18336 q 18337 } 18338 s/.*/./; q'` 18339 test -d "$as_dir" && break 18340 done 18341 test -z "$as_dirs" || eval "mkdir $as_dirs" 18342 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18343 18344 18345} # as_fn_mkdir_p 18346if mkdir -p . 2>/dev/null; then 18347 as_mkdir_p='mkdir -p "$as_dir"' 18348else 18349 test -d ./-p && rmdir ./-p 18350 as_mkdir_p=false 18351fi 18352 18353 18354# as_fn_executable_p FILE 18355# ----------------------- 18356# Test if FILE is an executable regular file. 18357as_fn_executable_p () 18358{ 18359 test -f "$1" && test -x "$1" 18360} # as_fn_executable_p 18361as_test_x='test -x' 18362as_executable_p=as_fn_executable_p 18363 18364# Sed expression to map a string onto a valid CPP name. 18365as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18366 18367# Sed expression to map a string onto a valid variable name. 18368as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18369 18370 18371exec 6>&1 18372## ----------------------------------- ## 18373## Main body of $CONFIG_STATUS script. ## 18374## ----------------------------------- ## 18375_ASEOF 18376test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18377 18378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18379# Save the log message, to keep $0 and so on meaningful, and to 18380# report actual input values of CONFIG_FILES etc. instead of their 18381# values after options handling. 18382ac_log=" 18383This file was extended by libctl $as_me 4.5.0, which was 18384generated by GNU Autoconf 2.69. Invocation command line was 18385 18386 CONFIG_FILES = $CONFIG_FILES 18387 CONFIG_HEADERS = $CONFIG_HEADERS 18388 CONFIG_LINKS = $CONFIG_LINKS 18389 CONFIG_COMMANDS = $CONFIG_COMMANDS 18390 $ $0 $@ 18391 18392on `(hostname || uname -n) 2>/dev/null | sed 1q` 18393" 18394 18395_ACEOF 18396 18397case $ac_config_files in *" 18398"*) set x $ac_config_files; shift; ac_config_files=$*;; 18399esac 18400 18401case $ac_config_headers in *" 18402"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18403esac 18404 18405 18406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18407# Files that config.status was made for. 18408config_files="$ac_config_files" 18409config_headers="$ac_config_headers" 18410config_commands="$ac_config_commands" 18411 18412_ACEOF 18413 18414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18415ac_cs_usage="\ 18416\`$as_me' instantiates files and other configuration actions 18417from templates according to the current configuration. Unless the files 18418and actions are specified as TAGs, all are instantiated by default. 18419 18420Usage: $0 [OPTION]... [TAG]... 18421 18422 -h, --help print this help, then exit 18423 -V, --version print version number and configuration settings, then exit 18424 --config print configuration, then exit 18425 -q, --quiet, --silent 18426 do not print progress messages 18427 -d, --debug don't remove temporary files 18428 --recheck update $as_me by reconfiguring in the same conditions 18429 --file=FILE[:TEMPLATE] 18430 instantiate the configuration file FILE 18431 --header=FILE[:TEMPLATE] 18432 instantiate the configuration header FILE 18433 18434Configuration files: 18435$config_files 18436 18437Configuration headers: 18438$config_headers 18439 18440Configuration commands: 18441$config_commands 18442 18443Report bugs to <stevenj@alum.mit.edu>." 18444 18445_ACEOF 18446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18447ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18448ac_cs_version="\\ 18449libctl config.status 4.5.0 18450configured by $0, generated by GNU Autoconf 2.69, 18451 with options \\"\$ac_cs_config\\" 18452 18453Copyright (C) 2012 Free Software Foundation, Inc. 18454This config.status script is free software; the Free Software Foundation 18455gives unlimited permission to copy, distribute and modify it." 18456 18457ac_pwd='$ac_pwd' 18458srcdir='$srcdir' 18459INSTALL='$INSTALL' 18460MKDIR_P='$MKDIR_P' 18461AWK='$AWK' 18462test -n "\$AWK" || AWK=awk 18463_ACEOF 18464 18465cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18466# The default lists apply if the user does not specify any file. 18467ac_need_defaults=: 18468while test $# != 0 18469do 18470 case $1 in 18471 --*=?*) 18472 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18474 ac_shift=: 18475 ;; 18476 --*=) 18477 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18478 ac_optarg= 18479 ac_shift=: 18480 ;; 18481 *) 18482 ac_option=$1 18483 ac_optarg=$2 18484 ac_shift=shift 18485 ;; 18486 esac 18487 18488 case $ac_option in 18489 # Handling of the options. 18490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18491 ac_cs_recheck=: ;; 18492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18493 $as_echo "$ac_cs_version"; exit ;; 18494 --config | --confi | --conf | --con | --co | --c ) 18495 $as_echo "$ac_cs_config"; exit ;; 18496 --debug | --debu | --deb | --de | --d | -d ) 18497 debug=: ;; 18498 --file | --fil | --fi | --f ) 18499 $ac_shift 18500 case $ac_optarg in 18501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18502 '') as_fn_error $? "missing file argument" ;; 18503 esac 18504 as_fn_append CONFIG_FILES " '$ac_optarg'" 18505 ac_need_defaults=false;; 18506 --header | --heade | --head | --hea ) 18507 $ac_shift 18508 case $ac_optarg in 18509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18510 esac 18511 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18512 ac_need_defaults=false;; 18513 --he | --h) 18514 # Conflict between --help and --header 18515 as_fn_error $? "ambiguous option: \`$1' 18516Try \`$0 --help' for more information.";; 18517 --help | --hel | -h ) 18518 $as_echo "$ac_cs_usage"; exit ;; 18519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18520 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18521 ac_cs_silent=: ;; 18522 18523 # This is an error. 18524 -*) as_fn_error $? "unrecognized option: \`$1' 18525Try \`$0 --help' for more information." ;; 18526 18527 *) as_fn_append ac_config_targets " $1" 18528 ac_need_defaults=false ;; 18529 18530 esac 18531 shift 18532done 18533 18534ac_configure_extra_args= 18535 18536if $ac_cs_silent; then 18537 exec 6>/dev/null 18538 ac_configure_extra_args="$ac_configure_extra_args --silent" 18539fi 18540 18541_ACEOF 18542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18543if \$ac_cs_recheck; then 18544 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18545 shift 18546 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18547 CONFIG_SHELL='$SHELL' 18548 export CONFIG_SHELL 18549 exec "\$@" 18550fi 18551 18552_ACEOF 18553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18554exec 5>>config.log 18555{ 18556 echo 18557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18558## Running $as_me. ## 18559_ASBOX 18560 $as_echo "$ac_log" 18561} >&5 18562 18563_ACEOF 18564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18565# 18566# INIT-COMMANDS 18567# 18568AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18569 18570 18571# The HP-UX ksh and POSIX shell print the target directory to stdout 18572# if CDPATH is set. 18573(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18574 18575sed_quote_subst='$sed_quote_subst' 18576double_quote_subst='$double_quote_subst' 18577delay_variable_subst='$delay_variable_subst' 18578enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18579macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18580macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18581enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18582pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18583enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18584shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18585SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18586ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18587PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18588host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18589host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18590host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18591build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18592build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18593build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18594SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18595Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18596GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18597EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18598FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18599LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18600NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18601LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18602max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18603ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18604exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18605lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18606lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18607lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18608lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18609lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18610reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18611reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18612OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18613deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18614file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18615file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18616want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18617DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18618sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18619AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18620AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18621archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18622STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18623RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18624old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18625old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18626old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18627lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18628CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18629CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18630compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18631GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18632lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18633lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18634lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18635lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18636lt_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"`' 18637lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18638nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18639lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18640lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18641objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18642MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18643lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18644lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18645lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18646lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18647lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18648need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18649MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18650DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18651NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18652LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18653OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18654OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18655libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18656shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18657extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18658archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18659enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18660export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18661whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18662compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18663old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18664old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18665archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18666archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18667module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18668module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18669with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18670allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18671no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18672hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18673hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18674hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18675hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18676hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18677hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18678hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18679inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18680link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18681always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18682export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18683exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18684include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18685prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18686postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18687file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18688variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18689need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18690need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18691version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18692runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18693shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18694shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18695libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18696library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18697soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18698install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18699postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18700postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18701finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18702finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18703hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18704sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18705configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18706configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18707hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18708enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18709enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18710enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18711old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18712striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18713LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 18714reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 18715reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 18716old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 18717compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 18718GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 18719lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 18720lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 18721lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 18722lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 18723lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 18724archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 18725enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 18726export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 18727whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 18728compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 18729old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 18730old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 18731archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 18732archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 18733module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 18734module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 18735with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 18736allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 18737no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 18738hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 18739hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 18740hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 18741hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 18742hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 18743hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 18744hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 18745inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 18746link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 18747always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 18748export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 18749exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 18750include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 18751prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 18752postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 18753file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 18754hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 18755 18756LTCC='$LTCC' 18757LTCFLAGS='$LTCFLAGS' 18758compiler='$compiler_DEFAULT' 18759 18760# A function that is used when there is no print builtin or printf. 18761func_fallback_echo () 18762{ 18763 eval 'cat <<_LTECHO_EOF 18764\$1 18765_LTECHO_EOF' 18766} 18767 18768# Quote evaled strings. 18769for var in SHELL \ 18770ECHO \ 18771PATH_SEPARATOR \ 18772SED \ 18773GREP \ 18774EGREP \ 18775FGREP \ 18776LD \ 18777NM \ 18778LN_S \ 18779lt_SP2NL \ 18780lt_NL2SP \ 18781reload_flag \ 18782OBJDUMP \ 18783deplibs_check_method \ 18784file_magic_cmd \ 18785file_magic_glob \ 18786want_nocaseglob \ 18787DLLTOOL \ 18788sharedlib_from_linklib_cmd \ 18789AR \ 18790AR_FLAGS \ 18791archiver_list_spec \ 18792STRIP \ 18793RANLIB \ 18794CC \ 18795CFLAGS \ 18796compiler \ 18797lt_cv_sys_global_symbol_pipe \ 18798lt_cv_sys_global_symbol_to_cdecl \ 18799lt_cv_sys_global_symbol_to_import \ 18800lt_cv_sys_global_symbol_to_c_name_address \ 18801lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18802lt_cv_nm_interface \ 18803nm_file_list_spec \ 18804lt_cv_truncate_bin \ 18805lt_prog_compiler_no_builtin_flag \ 18806lt_prog_compiler_pic \ 18807lt_prog_compiler_wl \ 18808lt_prog_compiler_static \ 18809lt_cv_prog_compiler_c_o \ 18810need_locks \ 18811MANIFEST_TOOL \ 18812DSYMUTIL \ 18813NMEDIT \ 18814LIPO \ 18815OTOOL \ 18816OTOOL64 \ 18817shrext_cmds \ 18818export_dynamic_flag_spec \ 18819whole_archive_flag_spec \ 18820compiler_needs_object \ 18821with_gnu_ld \ 18822allow_undefined_flag \ 18823no_undefined_flag \ 18824hardcode_libdir_flag_spec \ 18825hardcode_libdir_separator \ 18826exclude_expsyms \ 18827include_expsyms \ 18828file_list_spec \ 18829variables_saved_for_relink \ 18830libname_spec \ 18831library_names_spec \ 18832soname_spec \ 18833install_override_mode \ 18834finish_eval \ 18835old_striplib \ 18836striplib \ 18837LD_F77 \ 18838reload_flag_F77 \ 18839compiler_F77 \ 18840lt_prog_compiler_no_builtin_flag_F77 \ 18841lt_prog_compiler_pic_F77 \ 18842lt_prog_compiler_wl_F77 \ 18843lt_prog_compiler_static_F77 \ 18844lt_cv_prog_compiler_c_o_F77 \ 18845export_dynamic_flag_spec_F77 \ 18846whole_archive_flag_spec_F77 \ 18847compiler_needs_object_F77 \ 18848with_gnu_ld_F77 \ 18849allow_undefined_flag_F77 \ 18850no_undefined_flag_F77 \ 18851hardcode_libdir_flag_spec_F77 \ 18852hardcode_libdir_separator_F77 \ 18853exclude_expsyms_F77 \ 18854include_expsyms_F77 \ 18855file_list_spec_F77; do 18856 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18857 *[\\\\\\\`\\"\\\$]*) 18858 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18859 ;; 18860 *) 18861 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18862 ;; 18863 esac 18864done 18865 18866# Double-quote double-evaled strings. 18867for var in reload_cmds \ 18868old_postinstall_cmds \ 18869old_postuninstall_cmds \ 18870old_archive_cmds \ 18871extract_expsyms_cmds \ 18872old_archive_from_new_cmds \ 18873old_archive_from_expsyms_cmds \ 18874archive_cmds \ 18875archive_expsym_cmds \ 18876module_cmds \ 18877module_expsym_cmds \ 18878export_symbols_cmds \ 18879prelink_cmds \ 18880postlink_cmds \ 18881postinstall_cmds \ 18882postuninstall_cmds \ 18883finish_cmds \ 18884sys_lib_search_path_spec \ 18885configure_time_dlsearch_path \ 18886configure_time_lt_sys_library_path \ 18887reload_cmds_F77 \ 18888old_archive_cmds_F77 \ 18889old_archive_from_new_cmds_F77 \ 18890old_archive_from_expsyms_cmds_F77 \ 18891archive_cmds_F77 \ 18892archive_expsym_cmds_F77 \ 18893module_cmds_F77 \ 18894module_expsym_cmds_F77 \ 18895export_symbols_cmds_F77 \ 18896prelink_cmds_F77 \ 18897postlink_cmds_F77; do 18898 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18899 *[\\\\\\\`\\"\\\$]*) 18900 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18901 ;; 18902 *) 18903 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18904 ;; 18905 esac 18906done 18907 18908ac_aux_dir='$ac_aux_dir' 18909 18910# See if we are running on zsh, and set the options that allow our 18911# commands through without removal of \ escapes INIT. 18912if test -n "\${ZSH_VERSION+set}"; then 18913 setopt NO_GLOB_SUBST 18914fi 18915 18916 18917 PACKAGE='$PACKAGE' 18918 VERSION='$VERSION' 18919 RM='$RM' 18920 ofile='$ofile' 18921 18922 18923 18924 18925 18926 18927_ACEOF 18928 18929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18930 18931# Handling of arguments. 18932for ac_config_target in $ac_config_targets 18933do 18934 case $ac_config_target in 18935 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18936 "src/ctl.h") CONFIG_HEADERS="$CONFIG_HEADERS src/ctl.h" ;; 18937 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18938 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18939 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18940 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18941 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 18942 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 18943 "examples/example.scm") CONFIG_FILES="$CONFIG_FILES examples/example.scm" ;; 18944 "utils/gen-ctl-io") CONFIG_FILES="$CONFIG_FILES utils/gen-ctl-io" ;; 18945 18946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18947 esac 18948done 18949 18950 18951# If the user did not use the arguments to specify the items to instantiate, 18952# then the envvar interface is used. Set only those that are not. 18953# We use the long form for the default assignment because of an extremely 18954# bizarre bug on SunOS 4.1.3. 18955if $ac_need_defaults; then 18956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18959fi 18960 18961# Have a temporary directory for convenience. Make it in the build tree 18962# simply because there is no reason against having it here, and in addition, 18963# creating and moving files from /tmp can sometimes cause problems. 18964# Hook for its removal unless debugging. 18965# Note that there is a small window in which the directory will not be cleaned: 18966# after its creation but before its name has been assigned to `$tmp'. 18967$debug || 18968{ 18969 tmp= ac_tmp= 18970 trap 'exit_status=$? 18971 : "${ac_tmp:=$tmp}" 18972 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18973' 0 18974 trap 'as_fn_exit 1' 1 2 13 15 18975} 18976# Create a (secure) tmp directory for tmp files. 18977 18978{ 18979 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18980 test -d "$tmp" 18981} || 18982{ 18983 tmp=./conf$$-$RANDOM 18984 (umask 077 && mkdir "$tmp") 18985} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18986ac_tmp=$tmp 18987 18988# Set up the scripts for CONFIG_FILES section. 18989# No need to generate them if there are no CONFIG_FILES. 18990# This happens for instance with `./config.status config.h'. 18991if test -n "$CONFIG_FILES"; then 18992 18993 18994ac_cr=`echo X | tr X '\015'` 18995# On cygwin, bash can eat \r inside `` if the user requested igncr. 18996# But we know of no other shell where ac_cr would be empty at this 18997# point, so we can use a bashism as a fallback. 18998if test "x$ac_cr" = x; then 18999 eval ac_cr=\$\'\\r\' 19000fi 19001ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19002if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19003 ac_cs_awk_cr='\\r' 19004else 19005 ac_cs_awk_cr=$ac_cr 19006fi 19007 19008echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19009_ACEOF 19010 19011 19012{ 19013 echo "cat >conf$$subs.awk <<_ACEOF" && 19014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19015 echo "_ACEOF" 19016} >conf$$subs.sh || 19017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19018ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19019ac_delim='%!_!# ' 19020for ac_last_try in false false false false false :; do 19021 . ./conf$$subs.sh || 19022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19023 19024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19025 if test $ac_delim_n = $ac_delim_num; then 19026 break 19027 elif $ac_last_try; then 19028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19029 else 19030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19031 fi 19032done 19033rm -f conf$$subs.sh 19034 19035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19036cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19037_ACEOF 19038sed -n ' 19039h 19040s/^/S["/; s/!.*/"]=/ 19041p 19042g 19043s/^[^!]*!// 19044:repl 19045t repl 19046s/'"$ac_delim"'$// 19047t delim 19048:nl 19049h 19050s/\(.\{148\}\)..*/\1/ 19051t more1 19052s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19053p 19054n 19055b repl 19056:more1 19057s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19058p 19059g 19060s/.\{148\}// 19061t nl 19062:delim 19063h 19064s/\(.\{148\}\)..*/\1/ 19065t more2 19066s/["\\]/\\&/g; s/^/"/; s/$/"/ 19067p 19068b 19069:more2 19070s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19071p 19072g 19073s/.\{148\}// 19074t delim 19075' <conf$$subs.awk | sed ' 19076/^[^""]/{ 19077 N 19078 s/\n// 19079} 19080' >>$CONFIG_STATUS || ac_write_fail=1 19081rm -f conf$$subs.awk 19082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19083_ACAWK 19084cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19085 for (key in S) S_is_set[key] = 1 19086 FS = "" 19087 19088} 19089{ 19090 line = $ 0 19091 nfields = split(line, field, "@") 19092 substed = 0 19093 len = length(field[1]) 19094 for (i = 2; i < nfields; i++) { 19095 key = field[i] 19096 keylen = length(key) 19097 if (S_is_set[key]) { 19098 value = S[key] 19099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19100 len += length(value) + length(field[++i]) 19101 substed = 1 19102 } else 19103 len += 1 + keylen 19104 } 19105 19106 print line 19107} 19108 19109_ACAWK 19110_ACEOF 19111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19112if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19113 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19114else 19115 cat 19116fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19117 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19118_ACEOF 19119 19120# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19121# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19122# trailing colons and then remove the whole line if VPATH becomes empty 19123# (actually we leave an empty line to preserve line numbers). 19124if test "x$srcdir" = x.; then 19125 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19126h 19127s/// 19128s/^/:/ 19129s/[ ]*$/:/ 19130s/:\$(srcdir):/:/g 19131s/:\${srcdir}:/:/g 19132s/:@srcdir@:/:/g 19133s/^:*// 19134s/:*$// 19135x 19136s/\(=[ ]*\).*/\1/ 19137G 19138s/\n// 19139s/^[^=]*=[ ]*$// 19140}' 19141fi 19142 19143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19144fi # test -n "$CONFIG_FILES" 19145 19146# Set up the scripts for CONFIG_HEADERS section. 19147# No need to generate them if there are no CONFIG_HEADERS. 19148# This happens for instance with `./config.status Makefile'. 19149if test -n "$CONFIG_HEADERS"; then 19150cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19151BEGIN { 19152_ACEOF 19153 19154# Transform confdefs.h into an awk script `defines.awk', embedded as 19155# here-document in config.status, that substitutes the proper values into 19156# config.h.in to produce config.h. 19157 19158# Create a delimiter string that does not exist in confdefs.h, to ease 19159# handling of long lines. 19160ac_delim='%!_!# ' 19161for ac_last_try in false false :; do 19162 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19163 if test -z "$ac_tt"; then 19164 break 19165 elif $ac_last_try; then 19166 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19167 else 19168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19169 fi 19170done 19171 19172# For the awk script, D is an array of macro values keyed by name, 19173# likewise P contains macro parameters if any. Preserve backslash 19174# newline sequences. 19175 19176ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19177sed -n ' 19178s/.\{148\}/&'"$ac_delim"'/g 19179t rset 19180:rset 19181s/^[ ]*#[ ]*define[ ][ ]*/ / 19182t def 19183d 19184:def 19185s/\\$// 19186t bsnl 19187s/["\\]/\\&/g 19188s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19189D["\1"]=" \3"/p 19190s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19191d 19192:bsnl 19193s/["\\]/\\&/g 19194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19195D["\1"]=" \3\\\\\\n"\\/p 19196t cont 19197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19198t cont 19199d 19200:cont 19201n 19202s/.\{148\}/&'"$ac_delim"'/g 19203t clear 19204:clear 19205s/\\$// 19206t bsnlc 19207s/["\\]/\\&/g; s/^/"/; s/$/"/p 19208d 19209:bsnlc 19210s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19211b cont 19212' <confdefs.h | sed ' 19213s/'"$ac_delim"'/"\\\ 19214"/g' >>$CONFIG_STATUS || ac_write_fail=1 19215 19216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19217 for (key in D) D_is_set[key] = 1 19218 FS = "" 19219} 19220/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19221 line = \$ 0 19222 split(line, arg, " ") 19223 if (arg[1] == "#") { 19224 defundef = arg[2] 19225 mac1 = arg[3] 19226 } else { 19227 defundef = substr(arg[1], 2) 19228 mac1 = arg[2] 19229 } 19230 split(mac1, mac2, "(") #) 19231 macro = mac2[1] 19232 prefix = substr(line, 1, index(line, defundef) - 1) 19233 if (D_is_set[macro]) { 19234 # Preserve the white space surrounding the "#". 19235 print prefix "define", macro P[macro] D[macro] 19236 next 19237 } else { 19238 # Replace #undef with comments. This is necessary, for example, 19239 # in the case of _POSIX_SOURCE, which is predefined and required 19240 # on some systems where configure will not decide to define it. 19241 if (defundef == "undef") { 19242 print "/*", prefix defundef, macro, "*/" 19243 next 19244 } 19245 } 19246} 19247{ print } 19248_ACAWK 19249_ACEOF 19250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19251 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19252fi # test -n "$CONFIG_HEADERS" 19253 19254 19255eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19256shift 19257for ac_tag 19258do 19259 case $ac_tag in 19260 :[FHLC]) ac_mode=$ac_tag; continue;; 19261 esac 19262 case $ac_mode$ac_tag in 19263 :[FHL]*:*);; 19264 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19265 :[FH]-) ac_tag=-:-;; 19266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19267 esac 19268 ac_save_IFS=$IFS 19269 IFS=: 19270 set x $ac_tag 19271 IFS=$ac_save_IFS 19272 shift 19273 ac_file=$1 19274 shift 19275 19276 case $ac_mode in 19277 :L) ac_source=$1;; 19278 :[FH]) 19279 ac_file_inputs= 19280 for ac_f 19281 do 19282 case $ac_f in 19283 -) ac_f="$ac_tmp/stdin";; 19284 *) # Look for the file first in the build tree, then in the source tree 19285 # (if the path is not absolute). The absolute path cannot be DOS-style, 19286 # because $ac_f cannot contain `:'. 19287 test -f "$ac_f" || 19288 case $ac_f in 19289 [\\/$]*) false;; 19290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19291 esac || 19292 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19293 esac 19294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19295 as_fn_append ac_file_inputs " '$ac_f'" 19296 done 19297 19298 # Let's still pretend it is `configure' which instantiates (i.e., don't 19299 # use $as_me), people would be surprised to read: 19300 # /* config.h. Generated by config.status. */ 19301 configure_input='Generated from '` 19302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19303 `' by configure.' 19304 if test x"$ac_file" != x-; then 19305 configure_input="$ac_file. $configure_input" 19306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19307$as_echo "$as_me: creating $ac_file" >&6;} 19308 fi 19309 # Neutralize special characters interpreted by sed in replacement strings. 19310 case $configure_input in #( 19311 *\&* | *\|* | *\\* ) 19312 ac_sed_conf_input=`$as_echo "$configure_input" | 19313 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19314 *) ac_sed_conf_input=$configure_input;; 19315 esac 19316 19317 case $ac_tag in 19318 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19320 esac 19321 ;; 19322 esac 19323 19324 ac_dir=`$as_dirname -- "$ac_file" || 19325$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19326 X"$ac_file" : 'X\(//\)[^/]' \| \ 19327 X"$ac_file" : 'X\(//\)$' \| \ 19328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19329$as_echo X"$ac_file" | 19330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19331 s//\1/ 19332 q 19333 } 19334 /^X\(\/\/\)[^/].*/{ 19335 s//\1/ 19336 q 19337 } 19338 /^X\(\/\/\)$/{ 19339 s//\1/ 19340 q 19341 } 19342 /^X\(\/\).*/{ 19343 s//\1/ 19344 q 19345 } 19346 s/.*/./; q'` 19347 as_dir="$ac_dir"; as_fn_mkdir_p 19348 ac_builddir=. 19349 19350case "$ac_dir" in 19351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19352*) 19353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19354 # A ".." for each directory in $ac_dir_suffix. 19355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19356 case $ac_top_builddir_sub in 19357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19359 esac ;; 19360esac 19361ac_abs_top_builddir=$ac_pwd 19362ac_abs_builddir=$ac_pwd$ac_dir_suffix 19363# for backward compatibility: 19364ac_top_builddir=$ac_top_build_prefix 19365 19366case $srcdir in 19367 .) # We are building in place. 19368 ac_srcdir=. 19369 ac_top_srcdir=$ac_top_builddir_sub 19370 ac_abs_top_srcdir=$ac_pwd ;; 19371 [\\/]* | ?:[\\/]* ) # Absolute name. 19372 ac_srcdir=$srcdir$ac_dir_suffix; 19373 ac_top_srcdir=$srcdir 19374 ac_abs_top_srcdir=$srcdir ;; 19375 *) # Relative name. 19376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19377 ac_top_srcdir=$ac_top_build_prefix$srcdir 19378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19379esac 19380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19381 19382 19383 case $ac_mode in 19384 :F) 19385 # 19386 # CONFIG_FILE 19387 # 19388 19389 case $INSTALL in 19390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19392 esac 19393 ac_MKDIR_P=$MKDIR_P 19394 case $MKDIR_P in 19395 [\\/$]* | ?:[\\/]* ) ;; 19396 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19397 esac 19398_ACEOF 19399 19400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19401# If the template does not know about datarootdir, expand it. 19402# FIXME: This hack should be removed a few years after 2.60. 19403ac_datarootdir_hack=; ac_datarootdir_seen= 19404ac_sed_dataroot=' 19405/datarootdir/ { 19406 p 19407 q 19408} 19409/@datadir@/p 19410/@docdir@/p 19411/@infodir@/p 19412/@localedir@/p 19413/@mandir@/p' 19414case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19415*datarootdir*) ac_datarootdir_seen=yes;; 19416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19418$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19419_ACEOF 19420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19421 ac_datarootdir_hack=' 19422 s&@datadir@&$datadir&g 19423 s&@docdir@&$docdir&g 19424 s&@infodir@&$infodir&g 19425 s&@localedir@&$localedir&g 19426 s&@mandir@&$mandir&g 19427 s&\\\${datarootdir}&$datarootdir&g' ;; 19428esac 19429_ACEOF 19430 19431# Neutralize VPATH when `$srcdir' = `.'. 19432# Shell code in configure.ac might set extrasub. 19433# FIXME: do we really want to maintain this feature? 19434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19435ac_sed_extra="$ac_vpsub 19436$extrasub 19437_ACEOF 19438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19439:t 19440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19441s|@configure_input@|$ac_sed_conf_input|;t t 19442s&@top_builddir@&$ac_top_builddir_sub&;t t 19443s&@top_build_prefix@&$ac_top_build_prefix&;t t 19444s&@srcdir@&$ac_srcdir&;t t 19445s&@abs_srcdir@&$ac_abs_srcdir&;t t 19446s&@top_srcdir@&$ac_top_srcdir&;t t 19447s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19448s&@builddir@&$ac_builddir&;t t 19449s&@abs_builddir@&$ac_abs_builddir&;t t 19450s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19451s&@INSTALL@&$ac_INSTALL&;t t 19452s&@MKDIR_P@&$ac_MKDIR_P&;t t 19453$ac_datarootdir_hack 19454" 19455eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19456 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19457 19458test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19459 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19461 "$ac_tmp/out"`; test -z "$ac_out"; } && 19462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19463which seems to be undefined. Please make sure it is defined" >&5 19464$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19465which seems to be undefined. Please make sure it is defined" >&2;} 19466 19467 rm -f "$ac_tmp/stdin" 19468 case $ac_file in 19469 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19470 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19471 esac \ 19472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19473 ;; 19474 :H) 19475 # 19476 # CONFIG_HEADER 19477 # 19478 if test x"$ac_file" != x-; then 19479 { 19480 $as_echo "/* $configure_input */" \ 19481 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19482 } >"$ac_tmp/config.h" \ 19483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19484 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19485 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19486$as_echo "$as_me: $ac_file is unchanged" >&6;} 19487 else 19488 rm -f "$ac_file" 19489 mv "$ac_tmp/config.h" "$ac_file" \ 19490 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19491 fi 19492 else 19493 $as_echo "/* $configure_input */" \ 19494 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19495 || as_fn_error $? "could not create -" "$LINENO" 5 19496 fi 19497# Compute "$ac_file"'s index in $config_headers. 19498_am_arg="$ac_file" 19499_am_stamp_count=1 19500for _am_header in $config_headers :; do 19501 case $_am_header in 19502 $_am_arg | $_am_arg:* ) 19503 break ;; 19504 * ) 19505 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19506 esac 19507done 19508echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19509$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19510 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19511 X"$_am_arg" : 'X\(//\)$' \| \ 19512 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19513$as_echo X"$_am_arg" | 19514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19515 s//\1/ 19516 q 19517 } 19518 /^X\(\/\/\)[^/].*/{ 19519 s//\1/ 19520 q 19521 } 19522 /^X\(\/\/\)$/{ 19523 s//\1/ 19524 q 19525 } 19526 /^X\(\/\).*/{ 19527 s//\1/ 19528 q 19529 } 19530 s/.*/./; q'`/stamp-h$_am_stamp_count 19531 ;; 19532 19533 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19534$as_echo "$as_me: executing $ac_file commands" >&6;} 19535 ;; 19536 esac 19537 19538 19539 case $ac_file$ac_mode in 19540 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19541 # Older Autoconf quotes --file arguments for eval, but not when files 19542 # are listed without --file. Let's play safe and only enable the eval 19543 # if we detect the quoting. 19544 # TODO: see whether this extra hack can be removed once we start 19545 # requiring Autoconf 2.70 or later. 19546 case $CONFIG_FILES in #( 19547 *\'*) : 19548 eval set x "$CONFIG_FILES" ;; #( 19549 *) : 19550 set x $CONFIG_FILES ;; #( 19551 *) : 19552 ;; 19553esac 19554 shift 19555 # Used to flag and report bootstrapping failures. 19556 am_rc=0 19557 for am_mf 19558 do 19559 # Strip MF so we end up with the name of the file. 19560 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19561 # Check whether this is an Automake generated Makefile which includes 19562 # dependency-tracking related rules and includes. 19563 # Grep'ing the whole file directly is not great: AIX grep has a line 19564 # limit of 2048, but all sed's we know have understand at least 4000. 19565 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19566 || continue 19567 am_dirpart=`$as_dirname -- "$am_mf" || 19568$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19569 X"$am_mf" : 'X\(//\)[^/]' \| \ 19570 X"$am_mf" : 'X\(//\)$' \| \ 19571 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19572$as_echo X"$am_mf" | 19573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19574 s//\1/ 19575 q 19576 } 19577 /^X\(\/\/\)[^/].*/{ 19578 s//\1/ 19579 q 19580 } 19581 /^X\(\/\/\)$/{ 19582 s//\1/ 19583 q 19584 } 19585 /^X\(\/\).*/{ 19586 s//\1/ 19587 q 19588 } 19589 s/.*/./; q'` 19590 am_filepart=`$as_basename -- "$am_mf" || 19591$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19592 X"$am_mf" : 'X\(//\)$' \| \ 19593 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19594$as_echo X/"$am_mf" | 19595 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19596 s//\1/ 19597 q 19598 } 19599 /^X\/\(\/\/\)$/{ 19600 s//\1/ 19601 q 19602 } 19603 /^X\/\(\/\).*/{ 19604 s//\1/ 19605 q 19606 } 19607 s/.*/./; q'` 19608 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19609 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19610 | $MAKE -f - am--depfiles" >&5 19611 (cd "$am_dirpart" \ 19612 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19613 | $MAKE -f - am--depfiles) >&5 2>&5 19614 ac_status=$? 19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19616 (exit $ac_status); } || am_rc=$? 19617 done 19618 if test $am_rc -ne 0; then 19619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19621as_fn_error $? "Something went wrong bootstrapping makefile fragments 19622 for automatic dependency tracking. Try re-running configure with the 19623 '--disable-dependency-tracking' option to at least be able to build 19624 the package (albeit without support for automatic dependency tracking). 19625See \`config.log' for more details" "$LINENO" 5; } 19626 fi 19627 { am_dirpart=; unset am_dirpart;} 19628 { am_filepart=; unset am_filepart;} 19629 { am_mf=; unset am_mf;} 19630 { am_rc=; unset am_rc;} 19631 rm -f conftest-deps.mk 19632} 19633 ;; 19634 "libtool":C) 19635 19636 # See if we are running on zsh, and set the options that allow our 19637 # commands through without removal of \ escapes. 19638 if test -n "${ZSH_VERSION+set}"; then 19639 setopt NO_GLOB_SUBST 19640 fi 19641 19642 cfgfile=${ofile}T 19643 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19644 $RM "$cfgfile" 19645 19646 cat <<_LT_EOF >> "$cfgfile" 19647#! $SHELL 19648# Generated automatically by $as_me ($PACKAGE) $VERSION 19649# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19650# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19651 19652# Provide generalized library-building support services. 19653# Written by Gordon Matzigkeit, 1996 19654 19655# Copyright (C) 2014 Free Software Foundation, Inc. 19656# This is free software; see the source for copying conditions. There is NO 19657# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19658 19659# GNU Libtool is free software; you can redistribute it and/or modify 19660# it under the terms of the GNU General Public License as published by 19661# the Free Software Foundation; either version 2 of of the License, or 19662# (at your option) any later version. 19663# 19664# As a special exception to the GNU General Public License, if you 19665# distribute this file as part of a program or library that is built 19666# using GNU Libtool, you may include this file under the same 19667# distribution terms that you use for the rest of that program. 19668# 19669# GNU Libtool is distributed in the hope that it will be useful, but 19670# WITHOUT ANY WARRANTY; without even the implied warranty of 19671# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19672# GNU General Public License for more details. 19673# 19674# You should have received a copy of the GNU General Public License 19675# along with this program. If not, see <http://www.gnu.org/licenses/>. 19676 19677 19678# The names of the tagged configurations supported by this script. 19679available_tags='F77 ' 19680 19681# Configured defaults for sys_lib_dlsearch_path munging. 19682: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19683 19684# ### BEGIN LIBTOOL CONFIG 19685 19686# Whether or not to build shared libraries. 19687build_libtool_libs=$enable_shared 19688 19689# Which release of libtool.m4 was used? 19690macro_version=$macro_version 19691macro_revision=$macro_revision 19692 19693# Whether or not to build static libraries. 19694build_old_libs=$enable_static 19695 19696# What type of objects to build. 19697pic_mode=$pic_mode 19698 19699# Whether or not to optimize for fast installation. 19700fast_install=$enable_fast_install 19701 19702# Shared archive member basename,for filename based shared library versioning on AIX. 19703shared_archive_member_spec=$shared_archive_member_spec 19704 19705# Shell to use when invoking shell scripts. 19706SHELL=$lt_SHELL 19707 19708# An echo program that protects backslashes. 19709ECHO=$lt_ECHO 19710 19711# The PATH separator for the build system. 19712PATH_SEPARATOR=$lt_PATH_SEPARATOR 19713 19714# The host system. 19715host_alias=$host_alias 19716host=$host 19717host_os=$host_os 19718 19719# The build system. 19720build_alias=$build_alias 19721build=$build 19722build_os=$build_os 19723 19724# A sed program that does not truncate output. 19725SED=$lt_SED 19726 19727# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19728Xsed="\$SED -e 1s/^X//" 19729 19730# A grep program that handles long lines. 19731GREP=$lt_GREP 19732 19733# An ERE matcher. 19734EGREP=$lt_EGREP 19735 19736# A literal string matcher. 19737FGREP=$lt_FGREP 19738 19739# A BSD- or MS-compatible name lister. 19740NM=$lt_NM 19741 19742# Whether we need soft or hard links. 19743LN_S=$lt_LN_S 19744 19745# What is the maximum length of a command? 19746max_cmd_len=$max_cmd_len 19747 19748# Object file suffix (normally "o"). 19749objext=$ac_objext 19750 19751# Executable file suffix (normally ""). 19752exeext=$exeext 19753 19754# whether the shell understands "unset". 19755lt_unset=$lt_unset 19756 19757# turn spaces into newlines. 19758SP2NL=$lt_lt_SP2NL 19759 19760# turn newlines into spaces. 19761NL2SP=$lt_lt_NL2SP 19762 19763# convert \$build file names to \$host format. 19764to_host_file_cmd=$lt_cv_to_host_file_cmd 19765 19766# convert \$build files to toolchain format. 19767to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19768 19769# An object symbol dumper. 19770OBJDUMP=$lt_OBJDUMP 19771 19772# Method to check whether dependent libraries are shared objects. 19773deplibs_check_method=$lt_deplibs_check_method 19774 19775# Command to use when deplibs_check_method = "file_magic". 19776file_magic_cmd=$lt_file_magic_cmd 19777 19778# How to find potential files when deplibs_check_method = "file_magic". 19779file_magic_glob=$lt_file_magic_glob 19780 19781# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19782want_nocaseglob=$lt_want_nocaseglob 19783 19784# DLL creation program. 19785DLLTOOL=$lt_DLLTOOL 19786 19787# Command to associate shared and link libraries. 19788sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19789 19790# The archiver. 19791AR=$lt_AR 19792 19793# Flags to create an archive. 19794AR_FLAGS=$lt_AR_FLAGS 19795 19796# How to feed a file listing to the archiver. 19797archiver_list_spec=$lt_archiver_list_spec 19798 19799# A symbol stripping program. 19800STRIP=$lt_STRIP 19801 19802# Commands used to install an old-style archive. 19803RANLIB=$lt_RANLIB 19804old_postinstall_cmds=$lt_old_postinstall_cmds 19805old_postuninstall_cmds=$lt_old_postuninstall_cmds 19806 19807# Whether to use a lock for old archive extraction. 19808lock_old_archive_extraction=$lock_old_archive_extraction 19809 19810# A C compiler. 19811LTCC=$lt_CC 19812 19813# LTCC compiler flags. 19814LTCFLAGS=$lt_CFLAGS 19815 19816# Take the output of nm and produce a listing of raw symbols and C names. 19817global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19818 19819# Transform the output of nm in a proper C declaration. 19820global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19821 19822# Transform the output of nm into a list of symbols to manually relocate. 19823global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19824 19825# Transform the output of nm in a C name address pair. 19826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19827 19828# Transform the output of nm in a C name address pair when lib prefix is needed. 19829global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19830 19831# The name lister interface. 19832nm_interface=$lt_lt_cv_nm_interface 19833 19834# Specify filename containing input files for \$NM. 19835nm_file_list_spec=$lt_nm_file_list_spec 19836 19837# The root where to search for dependent libraries,and where our libraries should be installed. 19838lt_sysroot=$lt_sysroot 19839 19840# Command to truncate a binary pipe. 19841lt_truncate_bin=$lt_lt_cv_truncate_bin 19842 19843# The name of the directory that contains temporary libtool files. 19844objdir=$objdir 19845 19846# Used to examine libraries when file_magic_cmd begins with "file". 19847MAGIC_CMD=$MAGIC_CMD 19848 19849# Must we lock files when doing compilation? 19850need_locks=$lt_need_locks 19851 19852# Manifest tool. 19853MANIFEST_TOOL=$lt_MANIFEST_TOOL 19854 19855# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19856DSYMUTIL=$lt_DSYMUTIL 19857 19858# Tool to change global to local symbols on Mac OS X. 19859NMEDIT=$lt_NMEDIT 19860 19861# Tool to manipulate fat objects and archives on Mac OS X. 19862LIPO=$lt_LIPO 19863 19864# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19865OTOOL=$lt_OTOOL 19866 19867# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19868OTOOL64=$lt_OTOOL64 19869 19870# Old archive suffix (normally "a"). 19871libext=$libext 19872 19873# Shared library suffix (normally ".so"). 19874shrext_cmds=$lt_shrext_cmds 19875 19876# The commands to extract the exported symbol list from a shared archive. 19877extract_expsyms_cmds=$lt_extract_expsyms_cmds 19878 19879# Variables whose values should be saved in libtool wrapper scripts and 19880# restored at link time. 19881variables_saved_for_relink=$lt_variables_saved_for_relink 19882 19883# Do we need the "lib" prefix for modules? 19884need_lib_prefix=$need_lib_prefix 19885 19886# Do we need a version for libraries? 19887need_version=$need_version 19888 19889# Library versioning type. 19890version_type=$version_type 19891 19892# Shared library runtime path variable. 19893runpath_var=$runpath_var 19894 19895# Shared library path variable. 19896shlibpath_var=$shlibpath_var 19897 19898# Is shlibpath searched before the hard-coded library search path? 19899shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19900 19901# Format of library name prefix. 19902libname_spec=$lt_libname_spec 19903 19904# List of archive names. First name is the real one, the rest are links. 19905# The last name is the one that the linker finds with -lNAME 19906library_names_spec=$lt_library_names_spec 19907 19908# The coded name of the library, if different from the real name. 19909soname_spec=$lt_soname_spec 19910 19911# Permission mode override for installation of shared libraries. 19912install_override_mode=$lt_install_override_mode 19913 19914# Command to use after installation of a shared archive. 19915postinstall_cmds=$lt_postinstall_cmds 19916 19917# Command to use after uninstallation of a shared archive. 19918postuninstall_cmds=$lt_postuninstall_cmds 19919 19920# Commands used to finish a libtool library installation in a directory. 19921finish_cmds=$lt_finish_cmds 19922 19923# As "finish_cmds", except a single script fragment to be evaled but 19924# not shown. 19925finish_eval=$lt_finish_eval 19926 19927# Whether we should hardcode library paths into libraries. 19928hardcode_into_libs=$hardcode_into_libs 19929 19930# Compile-time system search path for libraries. 19931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19932 19933# Detected run-time system search path for libraries. 19934sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19935 19936# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19937configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19938 19939# Whether dlopen is supported. 19940dlopen_support=$enable_dlopen 19941 19942# Whether dlopen of programs is supported. 19943dlopen_self=$enable_dlopen_self 19944 19945# Whether dlopen of statically linked programs is supported. 19946dlopen_self_static=$enable_dlopen_self_static 19947 19948# Commands to strip libraries. 19949old_striplib=$lt_old_striplib 19950striplib=$lt_striplib 19951 19952 19953# The linker used to build libraries. 19954LD=$lt_LD 19955 19956# How to create reloadable object files. 19957reload_flag=$lt_reload_flag 19958reload_cmds=$lt_reload_cmds 19959 19960# Commands used to build an old-style archive. 19961old_archive_cmds=$lt_old_archive_cmds 19962 19963# A language specific compiler. 19964CC=$lt_compiler 19965 19966# Is the compiler the GNU compiler? 19967with_gcc=$GCC 19968 19969# Compiler flag to turn off builtin functions. 19970no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19971 19972# Additional compiler flags for building library objects. 19973pic_flag=$lt_lt_prog_compiler_pic 19974 19975# How to pass a linker flag through the compiler. 19976wl=$lt_lt_prog_compiler_wl 19977 19978# Compiler flag to prevent dynamic linking. 19979link_static_flag=$lt_lt_prog_compiler_static 19980 19981# Does compiler simultaneously support -c and -o options? 19982compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19983 19984# Whether or not to add -lc for building shared libraries. 19985build_libtool_need_lc=$archive_cmds_need_lc 19986 19987# Whether or not to disallow shared libs when runtime libs are static. 19988allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19989 19990# Compiler flag to allow reflexive dlopens. 19991export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19992 19993# Compiler flag to generate shared objects directly from archives. 19994whole_archive_flag_spec=$lt_whole_archive_flag_spec 19995 19996# Whether the compiler copes with passing no objects directly. 19997compiler_needs_object=$lt_compiler_needs_object 19998 19999# Create an old-style archive from a shared archive. 20000old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20001 20002# Create a temporary old-style archive to link instead of a shared archive. 20003old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20004 20005# Commands used to build a shared archive. 20006archive_cmds=$lt_archive_cmds 20007archive_expsym_cmds=$lt_archive_expsym_cmds 20008 20009# Commands used to build a loadable module if different from building 20010# a shared archive. 20011module_cmds=$lt_module_cmds 20012module_expsym_cmds=$lt_module_expsym_cmds 20013 20014# Whether we are building with GNU ld or not. 20015with_gnu_ld=$lt_with_gnu_ld 20016 20017# Flag that allows shared libraries with undefined symbols to be built. 20018allow_undefined_flag=$lt_allow_undefined_flag 20019 20020# Flag that enforces no undefined symbols. 20021no_undefined_flag=$lt_no_undefined_flag 20022 20023# Flag to hardcode \$libdir into a binary during linking. 20024# This must work even if \$libdir does not exist 20025hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20026 20027# Whether we need a single "-rpath" flag with a separated argument. 20028hardcode_libdir_separator=$lt_hardcode_libdir_separator 20029 20030# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20031# DIR into the resulting binary. 20032hardcode_direct=$hardcode_direct 20033 20034# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20035# DIR into the resulting binary and the resulting library dependency is 20036# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20037# library is relocated. 20038hardcode_direct_absolute=$hardcode_direct_absolute 20039 20040# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20041# into the resulting binary. 20042hardcode_minus_L=$hardcode_minus_L 20043 20044# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20045# into the resulting binary. 20046hardcode_shlibpath_var=$hardcode_shlibpath_var 20047 20048# Set to "yes" if building a shared library automatically hardcodes DIR 20049# into the library and all subsequent libraries and executables linked 20050# against it. 20051hardcode_automatic=$hardcode_automatic 20052 20053# Set to yes if linker adds runtime paths of dependent libraries 20054# to runtime path list. 20055inherit_rpath=$inherit_rpath 20056 20057# Whether libtool must link a program against all its dependency libraries. 20058link_all_deplibs=$link_all_deplibs 20059 20060# Set to "yes" if exported symbols are required. 20061always_export_symbols=$always_export_symbols 20062 20063# The commands to list exported symbols. 20064export_symbols_cmds=$lt_export_symbols_cmds 20065 20066# Symbols that should not be listed in the preloaded symbols. 20067exclude_expsyms=$lt_exclude_expsyms 20068 20069# Symbols that must always be exported. 20070include_expsyms=$lt_include_expsyms 20071 20072# Commands necessary for linking programs (against libraries) with templates. 20073prelink_cmds=$lt_prelink_cmds 20074 20075# Commands necessary for finishing linking programs. 20076postlink_cmds=$lt_postlink_cmds 20077 20078# Specify filename containing input files. 20079file_list_spec=$lt_file_list_spec 20080 20081# How to hardcode a shared library path into an executable. 20082hardcode_action=$hardcode_action 20083 20084# ### END LIBTOOL CONFIG 20085 20086_LT_EOF 20087 20088 cat <<'_LT_EOF' >> "$cfgfile" 20089 20090# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20091 20092# func_munge_path_list VARIABLE PATH 20093# ----------------------------------- 20094# VARIABLE is name of variable containing _space_ separated list of 20095# directories to be munged by the contents of PATH, which is string 20096# having a format: 20097# "DIR[:DIR]:" 20098# string "DIR[ DIR]" will be prepended to VARIABLE 20099# ":DIR[:DIR]" 20100# string "DIR[ DIR]" will be appended to VARIABLE 20101# "DIRP[:DIRP]::[DIRA:]DIRA" 20102# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20103# "DIRA[ DIRA]" will be appended to VARIABLE 20104# "DIR[:DIR]" 20105# VARIABLE will be replaced by "DIR[ DIR]" 20106func_munge_path_list () 20107{ 20108 case x$2 in 20109 x) 20110 ;; 20111 *:) 20112 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20113 ;; 20114 x:*) 20115 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20116 ;; 20117 *::*) 20118 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20119 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20120 ;; 20121 *) 20122 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20123 ;; 20124 esac 20125} 20126 20127 20128# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20129func_cc_basename () 20130{ 20131 for cc_temp in $*""; do 20132 case $cc_temp in 20133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20135 \-*) ;; 20136 *) break;; 20137 esac 20138 done 20139 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20140} 20141 20142 20143# ### END FUNCTIONS SHARED WITH CONFIGURE 20144 20145_LT_EOF 20146 20147 case $host_os in 20148 aix3*) 20149 cat <<\_LT_EOF >> "$cfgfile" 20150# AIX sometimes has problems with the GCC collect2 program. For some 20151# reason, if we set the COLLECT_NAMES environment variable, the problems 20152# vanish in a puff of smoke. 20153if test set != "${COLLECT_NAMES+set}"; then 20154 COLLECT_NAMES= 20155 export COLLECT_NAMES 20156fi 20157_LT_EOF 20158 ;; 20159 esac 20160 20161 20162ltmain=$ac_aux_dir/ltmain.sh 20163 20164 20165 # We use sed instead of cat because bash on DJGPP gets confused if 20166 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20167 # text mode, it properly converts lines to CR/LF. This bash problem 20168 # is reportedly fixed, but why not run on old versions too? 20169 sed '$q' "$ltmain" >> "$cfgfile" \ 20170 || (rm -f "$cfgfile"; exit 1) 20171 20172 mv -f "$cfgfile" "$ofile" || 20173 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20174 chmod +x "$ofile" 20175 20176 20177 cat <<_LT_EOF >> "$ofile" 20178 20179# ### BEGIN LIBTOOL TAG CONFIG: F77 20180 20181# The linker used to build libraries. 20182LD=$lt_LD_F77 20183 20184# How to create reloadable object files. 20185reload_flag=$lt_reload_flag_F77 20186reload_cmds=$lt_reload_cmds_F77 20187 20188# Commands used to build an old-style archive. 20189old_archive_cmds=$lt_old_archive_cmds_F77 20190 20191# A language specific compiler. 20192CC=$lt_compiler_F77 20193 20194# Is the compiler the GNU compiler? 20195with_gcc=$GCC_F77 20196 20197# Compiler flag to turn off builtin functions. 20198no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 20199 20200# Additional compiler flags for building library objects. 20201pic_flag=$lt_lt_prog_compiler_pic_F77 20202 20203# How to pass a linker flag through the compiler. 20204wl=$lt_lt_prog_compiler_wl_F77 20205 20206# Compiler flag to prevent dynamic linking. 20207link_static_flag=$lt_lt_prog_compiler_static_F77 20208 20209# Does compiler simultaneously support -c and -o options? 20210compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 20211 20212# Whether or not to add -lc for building shared libraries. 20213build_libtool_need_lc=$archive_cmds_need_lc_F77 20214 20215# Whether or not to disallow shared libs when runtime libs are static. 20216allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 20217 20218# Compiler flag to allow reflexive dlopens. 20219export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 20220 20221# Compiler flag to generate shared objects directly from archives. 20222whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 20223 20224# Whether the compiler copes with passing no objects directly. 20225compiler_needs_object=$lt_compiler_needs_object_F77 20226 20227# Create an old-style archive from a shared archive. 20228old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 20229 20230# Create a temporary old-style archive to link instead of a shared archive. 20231old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 20232 20233# Commands used to build a shared archive. 20234archive_cmds=$lt_archive_cmds_F77 20235archive_expsym_cmds=$lt_archive_expsym_cmds_F77 20236 20237# Commands used to build a loadable module if different from building 20238# a shared archive. 20239module_cmds=$lt_module_cmds_F77 20240module_expsym_cmds=$lt_module_expsym_cmds_F77 20241 20242# Whether we are building with GNU ld or not. 20243with_gnu_ld=$lt_with_gnu_ld_F77 20244 20245# Flag that allows shared libraries with undefined symbols to be built. 20246allow_undefined_flag=$lt_allow_undefined_flag_F77 20247 20248# Flag that enforces no undefined symbols. 20249no_undefined_flag=$lt_no_undefined_flag_F77 20250 20251# Flag to hardcode \$libdir into a binary during linking. 20252# This must work even if \$libdir does not exist 20253hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 20254 20255# Whether we need a single "-rpath" flag with a separated argument. 20256hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 20257 20258# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20259# DIR into the resulting binary. 20260hardcode_direct=$hardcode_direct_F77 20261 20262# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20263# DIR into the resulting binary and the resulting library dependency is 20264# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20265# library is relocated. 20266hardcode_direct_absolute=$hardcode_direct_absolute_F77 20267 20268# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20269# into the resulting binary. 20270hardcode_minus_L=$hardcode_minus_L_F77 20271 20272# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20273# into the resulting binary. 20274hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 20275 20276# Set to "yes" if building a shared library automatically hardcodes DIR 20277# into the library and all subsequent libraries and executables linked 20278# against it. 20279hardcode_automatic=$hardcode_automatic_F77 20280 20281# Set to yes if linker adds runtime paths of dependent libraries 20282# to runtime path list. 20283inherit_rpath=$inherit_rpath_F77 20284 20285# Whether libtool must link a program against all its dependency libraries. 20286link_all_deplibs=$link_all_deplibs_F77 20287 20288# Set to "yes" if exported symbols are required. 20289always_export_symbols=$always_export_symbols_F77 20290 20291# The commands to list exported symbols. 20292export_symbols_cmds=$lt_export_symbols_cmds_F77 20293 20294# Symbols that should not be listed in the preloaded symbols. 20295exclude_expsyms=$lt_exclude_expsyms_F77 20296 20297# Symbols that must always be exported. 20298include_expsyms=$lt_include_expsyms_F77 20299 20300# Commands necessary for linking programs (against libraries) with templates. 20301prelink_cmds=$lt_prelink_cmds_F77 20302 20303# Commands necessary for finishing linking programs. 20304postlink_cmds=$lt_postlink_cmds_F77 20305 20306# Specify filename containing input files. 20307file_list_spec=$lt_file_list_spec_F77 20308 20309# How to hardcode a shared library path into an executable. 20310hardcode_action=$hardcode_action_F77 20311 20312# ### END LIBTOOL TAG CONFIG: F77 20313_LT_EOF 20314 20315 ;; 20316 "utils/gen-ctl-io":F) chmod u+x utils/gen-ctl-io ;; 20317 20318 esac 20319done # for ac_tag 20320 20321 20322as_fn_exit 0 20323_ACEOF 20324ac_clean_files=$ac_clean_files_save 20325 20326test $ac_write_fail = 0 || 20327 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20328 20329 20330# configure is writing to config.log, and then calls config.status. 20331# config.status does its own redirection, appending to config.log. 20332# Unfortunately, on DOS this fails, as config.log is still kept open 20333# by configure, so config.status won't be able to write to it; its 20334# output is simply discarded. So we exec the FD to /dev/null, 20335# effectively closing config.log, so it can be properly (re)opened and 20336# appended to by config.status. When coming back to configure, we 20337# need to make the FD available again. 20338if test "$no_create" != yes; then 20339 ac_cs_success=: 20340 ac_config_status_args= 20341 test "$silent" = yes && 20342 ac_config_status_args="$ac_config_status_args --quiet" 20343 exec 5>/dev/null 20344 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20345 exec 5>>config.log 20346 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20347 # would make configure fail if this is the last instruction. 20348 $ac_cs_success || as_fn_exit 1 20349fi 20350if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20352$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20353fi 20354 20355