1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libklel 1.1.0. 4# 5# Report bugs to <libklel-project@korelogic.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: libklel-project@korelogic.com about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libklel' 592PACKAGE_TARNAME='libklel' 593PACKAGE_VERSION='1.1.0' 594PACKAGE_STRING='libklel 1.1.0' 595PACKAGE_BUGREPORT='libklel-project@korelogic.com' 596PACKAGE_URL='' 597 598ac_unique_file="src/libklel/parser.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 638POW_LIB 639LIBOBJS 640OTOOL64 641OTOOL 642LIPO 643NMEDIT 644DSYMUTIL 645MANIFEST_TOOL 646RANLIB 647ac_ct_AR 648AR 649NM 650ac_ct_DUMPBIN 651DUMPBIN 652LD 653FGREP 654EGREP 655GREP 656SED 657LIBTOOL 658OBJDUMP 659DLLTOOL 660AS 661LN_S 662CPP 663am__fastdepCC_FALSE 664am__fastdepCC_TRUE 665CCDEPMODE 666am__nodep 667AMDEPBACKSLASH 668AMDEP_FALSE 669AMDEP_TRUE 670am__quote 671am__include 672DEPDIR 673OBJEXT 674EXEEXT 675ac_ct_CC 676CPPFLAGS 677LDFLAGS 678CFLAGS 679CC 680libklel_version 681am__untar 682am__tar 683AMTAR 684am__leading_dot 685SET_MAKE 686AWK 687mkdir_p 688MKDIR_P 689INSTALL_STRIP_PROGRAM 690STRIP 691install_sh 692MAKEINFO 693AUTOHEADER 694AUTOMAKE 695AUTOCONF 696ACLOCAL 697VERSION 698PACKAGE 699CYGPATH_W 700am__isrc 701INSTALL_DATA 702INSTALL_SCRIPT 703INSTALL_PROGRAM 704target_os 705target_vendor 706target_cpu 707target 708host_os 709host_vendor 710host_cpu 711host 712build_os 713build_vendor 714build_cpu 715build 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_dependency_tracking 758enable_shared 759enable_static 760with_pic 761enable_fast_install 762with_gnu_ld 763with_sysroot 764enable_libtool_lock 765with_pcre 766enable_debugging 767' 768 ac_precious_vars='build_alias 769host_alias 770target_alias 771CC 772CFLAGS 773LDFLAGS 774LIBS 775CPPFLAGS 776CPP' 777 778 779# Initialize some variables set by options. 780ac_init_help= 781ac_init_version=false 782ac_unrecognized_opts= 783ac_unrecognized_sep= 784# The variables have the same names as the options, with 785# dashes changed to underlines. 786cache_file=/dev/null 787exec_prefix=NONE 788no_create= 789no_recursion= 790prefix=NONE 791program_prefix=NONE 792program_suffix=NONE 793program_transform_name=s,x,x, 794silent= 795site= 796srcdir= 797verbose= 798x_includes=NONE 799x_libraries=NONE 800 801# Installation directory options. 802# These are left unexpanded so users can "make install exec_prefix=/foo" 803# and all the variables that are supposed to be based on exec_prefix 804# by default will actually change. 805# Use braces instead of parens because sh, perl, etc. also accept them. 806# (The list follows the same order as the GNU Coding Standards.) 807bindir='${exec_prefix}/bin' 808sbindir='${exec_prefix}/sbin' 809libexecdir='${exec_prefix}/libexec' 810datarootdir='${prefix}/share' 811datadir='${datarootdir}' 812sysconfdir='${prefix}/etc' 813sharedstatedir='${prefix}/com' 814localstatedir='${prefix}/var' 815includedir='${prefix}/include' 816oldincludedir='/usr/include' 817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 818infodir='${datarootdir}/info' 819htmldir='${docdir}' 820dvidir='${docdir}' 821pdfdir='${docdir}' 822psdir='${docdir}' 823libdir='${exec_prefix}/lib' 824localedir='${datarootdir}/locale' 825mandir='${datarootdir}/man' 826 827ac_prev= 828ac_dashdash= 829for ac_option 830do 831 # If the previous option needs an argument, assign it. 832 if test -n "$ac_prev"; then 833 eval $ac_prev=\$ac_option 834 ac_prev= 835 continue 836 fi 837 838 case $ac_option in 839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 840 *=) ac_optarg= ;; 841 *) ac_optarg=yes ;; 842 esac 843 844 # Accept the important Cygnus configure options, so we can diagnose typos. 845 846 case $ac_dashdash$ac_option in 847 --) 848 ac_dashdash=yes ;; 849 850 -bindir | --bindir | --bindi | --bind | --bin | --bi) 851 ac_prev=bindir ;; 852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 853 bindir=$ac_optarg ;; 854 855 -build | --build | --buil | --bui | --bu) 856 ac_prev=build_alias ;; 857 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 858 build_alias=$ac_optarg ;; 859 860 -cache-file | --cache-file | --cache-fil | --cache-fi \ 861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 862 ac_prev=cache_file ;; 863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 865 cache_file=$ac_optarg ;; 866 867 --config-cache | -C) 868 cache_file=config.cache ;; 869 870 -datadir | --datadir | --datadi | --datad) 871 ac_prev=datadir ;; 872 -datadir=* | --datadir=* | --datadi=* | --datad=*) 873 datadir=$ac_optarg ;; 874 875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 876 | --dataroo | --dataro | --datar) 877 ac_prev=datarootdir ;; 878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 880 datarootdir=$ac_optarg ;; 881 882 -disable-* | --disable-*) 883 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 884 # Reject names that are not valid shell variable names. 885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 886 as_fn_error $? "invalid feature name: $ac_useropt" 887 ac_useropt_orig=$ac_useropt 888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 889 case $ac_user_opts in 890 *" 891"enable_$ac_useropt" 892"*) ;; 893 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 894 ac_unrecognized_sep=', ';; 895 esac 896 eval enable_$ac_useropt=no ;; 897 898 -docdir | --docdir | --docdi | --doc | --do) 899 ac_prev=docdir ;; 900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 901 docdir=$ac_optarg ;; 902 903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 904 ac_prev=dvidir ;; 905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 906 dvidir=$ac_optarg ;; 907 908 -enable-* | --enable-*) 909 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 910 # Reject names that are not valid shell variable names. 911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 912 as_fn_error $? "invalid feature name: $ac_useropt" 913 ac_useropt_orig=$ac_useropt 914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 915 case $ac_user_opts in 916 *" 917"enable_$ac_useropt" 918"*) ;; 919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 920 ac_unrecognized_sep=', ';; 921 esac 922 eval enable_$ac_useropt=\$ac_optarg ;; 923 924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 926 | --exec | --exe | --ex) 927 ac_prev=exec_prefix ;; 928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 930 | --exec=* | --exe=* | --ex=*) 931 exec_prefix=$ac_optarg ;; 932 933 -gas | --gas | --ga | --g) 934 # Obsolete; use --with-gas. 935 with_gas=yes ;; 936 937 -help | --help | --hel | --he | -h) 938 ac_init_help=long ;; 939 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 940 ac_init_help=recursive ;; 941 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 942 ac_init_help=short ;; 943 944 -host | --host | --hos | --ho) 945 ac_prev=host_alias ;; 946 -host=* | --host=* | --hos=* | --ho=*) 947 host_alias=$ac_optarg ;; 948 949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 950 ac_prev=htmldir ;; 951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 952 | --ht=*) 953 htmldir=$ac_optarg ;; 954 955 -includedir | --includedir | --includedi | --included | --include \ 956 | --includ | --inclu | --incl | --inc) 957 ac_prev=includedir ;; 958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 959 | --includ=* | --inclu=* | --incl=* | --inc=*) 960 includedir=$ac_optarg ;; 961 962 -infodir | --infodir | --infodi | --infod | --info | --inf) 963 ac_prev=infodir ;; 964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 965 infodir=$ac_optarg ;; 966 967 -libdir | --libdir | --libdi | --libd) 968 ac_prev=libdir ;; 969 -libdir=* | --libdir=* | --libdi=* | --libd=*) 970 libdir=$ac_optarg ;; 971 972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 973 | --libexe | --libex | --libe) 974 ac_prev=libexecdir ;; 975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 976 | --libexe=* | --libex=* | --libe=*) 977 libexecdir=$ac_optarg ;; 978 979 -localedir | --localedir | --localedi | --localed | --locale) 980 ac_prev=localedir ;; 981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 982 localedir=$ac_optarg ;; 983 984 -localstatedir | --localstatedir | --localstatedi | --localstated \ 985 | --localstate | --localstat | --localsta | --localst | --locals) 986 ac_prev=localstatedir ;; 987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 989 localstatedir=$ac_optarg ;; 990 991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 992 ac_prev=mandir ;; 993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 994 mandir=$ac_optarg ;; 995 996 -nfp | --nfp | --nf) 997 # Obsolete; use --without-fp. 998 with_fp=no ;; 999 1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1001 | --no-cr | --no-c | -n) 1002 no_create=yes ;; 1003 1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1006 no_recursion=yes ;; 1007 1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1010 | --oldin | --oldi | --old | --ol | --o) 1011 ac_prev=oldincludedir ;; 1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1015 oldincludedir=$ac_optarg ;; 1016 1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1018 ac_prev=prefix ;; 1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1020 prefix=$ac_optarg ;; 1021 1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1023 | --program-pre | --program-pr | --program-p) 1024 ac_prev=program_prefix ;; 1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1027 program_prefix=$ac_optarg ;; 1028 1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1030 | --program-suf | --program-su | --program-s) 1031 ac_prev=program_suffix ;; 1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1034 program_suffix=$ac_optarg ;; 1035 1036 -program-transform-name | --program-transform-name \ 1037 | --program-transform-nam | --program-transform-na \ 1038 | --program-transform-n | --program-transform- \ 1039 | --program-transform | --program-transfor \ 1040 | --program-transfo | --program-transf \ 1041 | --program-trans | --program-tran \ 1042 | --progr-tra | --program-tr | --program-t) 1043 ac_prev=program_transform_name ;; 1044 -program-transform-name=* | --program-transform-name=* \ 1045 | --program-transform-nam=* | --program-transform-na=* \ 1046 | --program-transform-n=* | --program-transform-=* \ 1047 | --program-transform=* | --program-transfor=* \ 1048 | --program-transfo=* | --program-transf=* \ 1049 | --program-trans=* | --program-tran=* \ 1050 | --progr-tra=* | --program-tr=* | --program-t=*) 1051 program_transform_name=$ac_optarg ;; 1052 1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1054 ac_prev=pdfdir ;; 1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1056 pdfdir=$ac_optarg ;; 1057 1058 -psdir | --psdir | --psdi | --psd | --ps) 1059 ac_prev=psdir ;; 1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1061 psdir=$ac_optarg ;; 1062 1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1064 | -silent | --silent | --silen | --sile | --sil) 1065 silent=yes ;; 1066 1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1068 ac_prev=sbindir ;; 1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1070 | --sbi=* | --sb=*) 1071 sbindir=$ac_optarg ;; 1072 1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1075 | --sharedst | --shareds | --shared | --share | --shar \ 1076 | --sha | --sh) 1077 ac_prev=sharedstatedir ;; 1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1081 | --sha=* | --sh=*) 1082 sharedstatedir=$ac_optarg ;; 1083 1084 -site | --site | --sit) 1085 ac_prev=site ;; 1086 -site=* | --site=* | --sit=*) 1087 site=$ac_optarg ;; 1088 1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1090 ac_prev=srcdir ;; 1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1092 srcdir=$ac_optarg ;; 1093 1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1095 | --syscon | --sysco | --sysc | --sys | --sy) 1096 ac_prev=sysconfdir ;; 1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1099 sysconfdir=$ac_optarg ;; 1100 1101 -target | --target | --targe | --targ | --tar | --ta | --t) 1102 ac_prev=target_alias ;; 1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1104 target_alias=$ac_optarg ;; 1105 1106 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1107 verbose=yes ;; 1108 1109 -version | --version | --versio | --versi | --vers | -V) 1110 ac_init_version=: ;; 1111 1112 -with-* | --with-*) 1113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1114 # Reject names that are not valid shell variable names. 1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1116 as_fn_error $? "invalid package name: $ac_useropt" 1117 ac_useropt_orig=$ac_useropt 1118 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1119 case $ac_user_opts in 1120 *" 1121"with_$ac_useropt" 1122"*) ;; 1123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1124 ac_unrecognized_sep=', ';; 1125 esac 1126 eval with_$ac_useropt=\$ac_optarg ;; 1127 1128 -without-* | --without-*) 1129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1130 # Reject names that are not valid shell variable names. 1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1132 as_fn_error $? "invalid package name: $ac_useropt" 1133 ac_useropt_orig=$ac_useropt 1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1135 case $ac_user_opts in 1136 *" 1137"with_$ac_useropt" 1138"*) ;; 1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1140 ac_unrecognized_sep=', ';; 1141 esac 1142 eval with_$ac_useropt=no ;; 1143 1144 --x) 1145 # Obsolete; use --with-x. 1146 with_x=yes ;; 1147 1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1149 | --x-incl | --x-inc | --x-in | --x-i) 1150 ac_prev=x_includes ;; 1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1153 x_includes=$ac_optarg ;; 1154 1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1157 ac_prev=x_libraries ;; 1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1160 x_libraries=$ac_optarg ;; 1161 1162 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1163Try \`$0 --help' for more information" 1164 ;; 1165 1166 *=*) 1167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1168 # Reject names that are not valid shell variable names. 1169 case $ac_envvar in #( 1170 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1171 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1172 esac 1173 eval $ac_envvar=\$ac_optarg 1174 export $ac_envvar ;; 1175 1176 *) 1177 # FIXME: should be removed in autoconf 3.0. 1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1182 ;; 1183 1184 esac 1185done 1186 1187if test -n "$ac_prev"; then 1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1189 as_fn_error $? "missing argument to $ac_option" 1190fi 1191 1192if test -n "$ac_unrecognized_opts"; then 1193 case $enable_option_checking in 1194 no) ;; 1195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1197 esac 1198fi 1199 1200# Check all directory arguments for consistency. 1201for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1202 datadir sysconfdir sharedstatedir localstatedir includedir \ 1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1204 libdir localedir mandir 1205do 1206 eval ac_val=\$$ac_var 1207 # Remove trailing slashes. 1208 case $ac_val in 1209 */ ) 1210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1211 eval $ac_var=\$ac_val;; 1212 esac 1213 # Be sure to have absolute directory names. 1214 case $ac_val in 1215 [\\/$]* | ?:[\\/]* ) continue;; 1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1217 esac 1218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1219done 1220 1221# There might be people who depend on the old broken behavior: `$host' 1222# used to hold the argument of --host etc. 1223# FIXME: To remove some day. 1224build=$build_alias 1225host=$host_alias 1226target=$target_alias 1227 1228# FIXME: To remove some day. 1229if test "x$host_alias" != x; then 1230 if test "x$build_alias" = x; then 1231 cross_compiling=maybe 1232 elif test "x$build_alias" != "x$host_alias"; then 1233 cross_compiling=yes 1234 fi 1235fi 1236 1237ac_tool_prefix= 1238test -n "$host_alias" && ac_tool_prefix=$host_alias- 1239 1240test "$silent" = yes && exec 6>/dev/null 1241 1242 1243ac_pwd=`pwd` && test -n "$ac_pwd" && 1244ac_ls_di=`ls -di .` && 1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1246 as_fn_error $? "working directory cannot be determined" 1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1248 as_fn_error $? "pwd does not report name of working directory" 1249 1250 1251# Find the source files, if location was not specified. 1252if test -z "$srcdir"; then 1253 ac_srcdir_defaulted=yes 1254 # Try the directory containing this script, then the parent directory. 1255 ac_confdir=`$as_dirname -- "$as_myself" || 1256$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1257 X"$as_myself" : 'X\(//\)[^/]' \| \ 1258 X"$as_myself" : 'X\(//\)$' \| \ 1259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1260$as_echo X"$as_myself" | 1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\/\)[^/].*/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\/\)$/{ 1270 s//\1/ 1271 q 1272 } 1273 /^X\(\/\).*/{ 1274 s//\1/ 1275 q 1276 } 1277 s/.*/./; q'` 1278 srcdir=$ac_confdir 1279 if test ! -r "$srcdir/$ac_unique_file"; then 1280 srcdir=.. 1281 fi 1282else 1283 ac_srcdir_defaulted=no 1284fi 1285if test ! -r "$srcdir/$ac_unique_file"; then 1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1288fi 1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1290ac_abs_confdir=`( 1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1292 pwd)` 1293# When building in place, set srcdir=. 1294if test "$ac_abs_confdir" = "$ac_pwd"; then 1295 srcdir=. 1296fi 1297# Remove unnecessary trailing slashes from srcdir. 1298# Double slashes in file names in object file debugging info 1299# mess up M-x gdb in Emacs. 1300case $srcdir in 1301*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1302esac 1303for ac_var in $ac_precious_vars; do 1304 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1305 eval ac_env_${ac_var}_value=\$${ac_var} 1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1307 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1308done 1309 1310# 1311# Report the --help message. 1312# 1313if test "$ac_init_help" = "long"; then 1314 # Omit some internal or obsolete options to make the list less imposing. 1315 # This message is too long to be a string in the A/UX 3.1 sh. 1316 cat <<_ACEOF 1317\`configure' configures libklel 1.1.0 to adapt to many kinds of systems. 1318 1319Usage: $0 [OPTION]... [VAR=VALUE]... 1320 1321To assign environment variables (e.g., CC, CFLAGS...), specify them as 1322VAR=VALUE. See below for descriptions of some of the useful variables. 1323 1324Defaults for the options are specified in brackets. 1325 1326Configuration: 1327 -h, --help display this help and exit 1328 --help=short display options specific to this package 1329 --help=recursive display the short help of all the included packages 1330 -V, --version display version information and exit 1331 -q, --quiet, --silent do not print \`checking ...' messages 1332 --cache-file=FILE cache test results in FILE [disabled] 1333 -C, --config-cache alias for \`--cache-file=config.cache' 1334 -n, --no-create do not create output files 1335 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1336 1337Installation directories: 1338 --prefix=PREFIX install architecture-independent files in PREFIX 1339 [$ac_default_prefix] 1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1341 [PREFIX] 1342 1343By default, \`make install' will install all the files in 1344\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1345an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1346for instance \`--prefix=\$HOME'. 1347 1348For better control, use the options below. 1349 1350Fine tuning of the installation directories: 1351 --bindir=DIR user executables [EPREFIX/bin] 1352 --sbindir=DIR system admin executables [EPREFIX/sbin] 1353 --libexecdir=DIR program executables [EPREFIX/libexec] 1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1357 --libdir=DIR object code libraries [EPREFIX/lib] 1358 --includedir=DIR C header files [PREFIX/include] 1359 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1362 --infodir=DIR info documentation [DATAROOTDIR/info] 1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1364 --mandir=DIR man documentation [DATAROOTDIR/man] 1365 --docdir=DIR documentation root [DATAROOTDIR/doc/libklel] 1366 --htmldir=DIR html documentation [DOCDIR] 1367 --dvidir=DIR dvi documentation [DOCDIR] 1368 --pdfdir=DIR pdf documentation [DOCDIR] 1369 --psdir=DIR ps documentation [DOCDIR] 1370_ACEOF 1371 1372 cat <<\_ACEOF 1373 1374Program names: 1375 --program-prefix=PREFIX prepend PREFIX to installed program names 1376 --program-suffix=SUFFIX append SUFFIX to installed program names 1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1378 1379System types: 1380 --build=BUILD configure for building on BUILD [guessed] 1381 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1382 --target=TARGET configure for building compilers for TARGET [HOST] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 case $ac_init_help in 1388 short | recursive ) echo "Configuration of libklel 1.1.0:";; 1389 esac 1390 cat <<\_ACEOF 1391 1392Optional Features: 1393 --disable-option-checking ignore unrecognized --enable/--with options 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1396 --enable-dependency-tracking 1397 do not reject slow dependency extractors 1398 --disable-dependency-tracking 1399 speeds up one-time build 1400 --enable-shared[=PKGS] build shared libraries [default=yes] 1401 --enable-static[=PKGS] build static libraries [default=yes] 1402 --enable-fast-install[=PKGS] 1403 optimize for fast installation [default=yes] 1404 --disable-libtool-lock avoid locking (might break parallel builds) 1405 --enable-debugging Enable debugging support (disabled by default) 1406 1407Optional Packages: 1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1410 --with-pic try to use only PIC/non-PIC objects [default=use 1411 both] 1412 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1413 --with-sysroot=DIR Search for dependent libraries within DIR 1414 (or the compiler's sysroot if not specified). 1415 --with-pcre=DIR Use PCRE with includes and libs from DIR/include and DIR/lib 1416 1417Some influential environment variables: 1418 CC C compiler command 1419 CFLAGS C compiler flags 1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1421 nonstandard directory <lib dir> 1422 LIBS libraries to pass to the linker, e.g. -l<library> 1423 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1424 you have headers in a nonstandard directory <include dir> 1425 CPP C preprocessor 1426 1427Use these variables to override the choices made by `configure' or to help 1428it to find libraries and programs with nonstandard names/locations. 1429 1430Report bugs to <libklel-project@korelogic.com>. 1431_ACEOF 1432ac_status=$? 1433fi 1434 1435if test "$ac_init_help" = "recursive"; then 1436 # If there are subdirs, report their specific --help. 1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1438 test -d "$ac_dir" || 1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1440 continue 1441 ac_builddir=. 1442 1443case "$ac_dir" in 1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1445*) 1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1447 # A ".." for each directory in $ac_dir_suffix. 1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1449 case $ac_top_builddir_sub in 1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1452 esac ;; 1453esac 1454ac_abs_top_builddir=$ac_pwd 1455ac_abs_builddir=$ac_pwd$ac_dir_suffix 1456# for backward compatibility: 1457ac_top_builddir=$ac_top_build_prefix 1458 1459case $srcdir in 1460 .) # We are building in place. 1461 ac_srcdir=. 1462 ac_top_srcdir=$ac_top_builddir_sub 1463 ac_abs_top_srcdir=$ac_pwd ;; 1464 [\\/]* | ?:[\\/]* ) # Absolute name. 1465 ac_srcdir=$srcdir$ac_dir_suffix; 1466 ac_top_srcdir=$srcdir 1467 ac_abs_top_srcdir=$srcdir ;; 1468 *) # Relative name. 1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1470 ac_top_srcdir=$ac_top_build_prefix$srcdir 1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1472esac 1473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1474 1475 cd "$ac_dir" || { ac_status=$?; continue; } 1476 # Check for guested configure. 1477 if test -f "$ac_srcdir/configure.gnu"; then 1478 echo && 1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1480 elif test -f "$ac_srcdir/configure"; then 1481 echo && 1482 $SHELL "$ac_srcdir/configure" --help=recursive 1483 else 1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1485 fi || ac_status=$? 1486 cd "$ac_pwd" || { ac_status=$?; break; } 1487 done 1488fi 1489 1490test -n "$ac_init_help" && exit $ac_status 1491if $ac_init_version; then 1492 cat <<\_ACEOF 1493libklel configure 1.1.0 1494generated by GNU Autoconf 2.69 1495 1496Copyright (C) 2012 Free Software Foundation, Inc. 1497This configure script is free software; the Free Software Foundation 1498gives unlimited permission to copy, distribute and modify it. 1499_ACEOF 1500 exit 1501fi 1502 1503## ------------------------ ## 1504## Autoconf initialization. ## 1505## ------------------------ ## 1506 1507# ac_fn_c_try_compile LINENO 1508# -------------------------- 1509# Try to compile conftest.$ac_ext, and return whether this succeeded. 1510ac_fn_c_try_compile () 1511{ 1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1513 rm -f conftest.$ac_objext 1514 if { { ac_try="$ac_compile" 1515case "(($ac_try" in 1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1517 *) ac_try_echo=$ac_try;; 1518esac 1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1520$as_echo "$ac_try_echo"; } >&5 1521 (eval "$ac_compile") 2>conftest.err 1522 ac_status=$? 1523 if test -s conftest.err; then 1524 grep -v '^ *+' conftest.err >conftest.er1 1525 cat conftest.er1 >&5 1526 mv -f conftest.er1 conftest.err 1527 fi 1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1529 test $ac_status = 0; } && { 1530 test -z "$ac_c_werror_flag" || 1531 test ! -s conftest.err 1532 } && test -s conftest.$ac_objext; then : 1533 ac_retval=0 1534else 1535 $as_echo "$as_me: failed program was:" >&5 1536sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539fi 1540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1541 as_fn_set_status $ac_retval 1542 1543} # ac_fn_c_try_compile 1544 1545# ac_fn_c_try_cpp LINENO 1546# ---------------------- 1547# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1548ac_fn_c_try_cpp () 1549{ 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551 if { { ac_try="$ac_cpp conftest.$ac_ext" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } > conftest.i && { 1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 }; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580} # ac_fn_c_try_cpp 1581 1582# ac_fn_c_try_link LINENO 1583# ----------------------- 1584# Try to link conftest.$ac_ext, and return whether this succeeded. 1585ac_fn_c_try_link () 1586{ 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext conftest$ac_exeext 1589 if { { ac_try="$ac_link" 1590case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593esac 1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595$as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_link") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest$ac_exeext && { 1608 test "$cross_compiling" = yes || 1609 test -x conftest$ac_exeext 1610 }; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1620 # interfere with the next link command; also delete a directory that is 1621 # left behind by Apple's compiler. We do this before executing the actions. 1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1624 as_fn_set_status $ac_retval 1625 1626} # ac_fn_c_try_link 1627 1628# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1629# ------------------------------------------------------- 1630# Tests whether HEADER exists and can be compiled using the include files in 1631# INCLUDES, setting the cache variable VAR accordingly. 1632ac_fn_c_check_header_compile () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1636$as_echo_n "checking for $2... " >&6; } 1637if eval \${$3+:} false; then : 1638 $as_echo_n "(cached) " >&6 1639else 1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1641/* end confdefs.h. */ 1642$4 1643#include <$2> 1644_ACEOF 1645if ac_fn_c_try_compile "$LINENO"; then : 1646 eval "$3=yes" 1647else 1648 eval "$3=no" 1649fi 1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1651fi 1652eval ac_res=\$$3 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654$as_echo "$ac_res" >&6; } 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657} # ac_fn_c_check_header_compile 1658 1659# ac_fn_c_try_run LINENO 1660# ---------------------- 1661# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1662# that executables *can* be run. 1663ac_fn_c_try_run () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 if { { ac_try="$ac_link" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_link") 2>&5 1674 ac_status=$? 1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1676 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1677 { { case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_try") 2>&5 1684 ac_status=$? 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; }; }; then : 1687 ac_retval=0 1688else 1689 $as_echo "$as_me: program exited with status $ac_status" >&5 1690 $as_echo "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=$ac_status 1694fi 1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 as_fn_set_status $ac_retval 1698 1699} # ac_fn_c_try_run 1700 1701# ac_fn_c_check_func LINENO FUNC VAR 1702# ---------------------------------- 1703# Tests whether FUNC exists, setting the cache variable VAR accordingly 1704ac_fn_c_check_func () 1705{ 1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1708$as_echo_n "checking for $2... " >&6; } 1709if eval \${$3+:} false; then : 1710 $as_echo_n "(cached) " >&6 1711else 1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1713/* end confdefs.h. */ 1714/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1716#define $2 innocuous_$2 1717 1718/* System header to define __stub macros and hopefully few prototypes, 1719 which can conflict with char $2 (); below. 1720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1721 <limits.h> exists even on freestanding compilers. */ 1722 1723#ifdef __STDC__ 1724# include <limits.h> 1725#else 1726# include <assert.h> 1727#endif 1728 1729#undef $2 1730 1731/* Override any GCC internal prototype to avoid an error. 1732 Use char because int might match the return type of a GCC 1733 builtin and then its argument prototype would still apply. */ 1734#ifdef __cplusplus 1735extern "C" 1736#endif 1737char $2 (); 1738/* The GNU C library defines this for functions which it implements 1739 to always fail with ENOSYS. Some functions are actually named 1740 something starting with __ and the normal name is an alias. */ 1741#if defined __stub_$2 || defined __stub___$2 1742choke me 1743#endif 1744 1745int 1746main () 1747{ 1748return $2 (); 1749 ; 1750 return 0; 1751} 1752_ACEOF 1753if ac_fn_c_try_link "$LINENO"; then : 1754 eval "$3=yes" 1755else 1756 eval "$3=no" 1757fi 1758rm -f core conftest.err conftest.$ac_objext \ 1759 conftest$ac_exeext conftest.$ac_ext 1760fi 1761eval ac_res=\$$3 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1763$as_echo "$ac_res" >&6; } 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 1766} # ac_fn_c_check_func 1767 1768# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1769# ------------------------------------------------------- 1770# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1771# the include files in INCLUDES and setting the cache variable VAR 1772# accordingly. 1773ac_fn_c_check_header_mongrel () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 if eval \${$3+:} false; then : 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1778$as_echo_n "checking for $2... " >&6; } 1779if eval \${$3+:} false; then : 1780 $as_echo_n "(cached) " >&6 1781fi 1782eval ac_res=\$$3 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784$as_echo "$ac_res" >&6; } 1785else 1786 # Is the header compilable? 1787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1788$as_echo_n "checking $2 usability... " >&6; } 1789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1790/* end confdefs.h. */ 1791$4 1792#include <$2> 1793_ACEOF 1794if ac_fn_c_try_compile "$LINENO"; then : 1795 ac_header_compiler=yes 1796else 1797 ac_header_compiler=no 1798fi 1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1801$as_echo "$ac_header_compiler" >&6; } 1802 1803# Is the header present? 1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1805$as_echo_n "checking $2 presence... " >&6; } 1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808#include <$2> 1809_ACEOF 1810if ac_fn_c_try_cpp "$LINENO"; then : 1811 ac_header_preproc=yes 1812else 1813 ac_header_preproc=no 1814fi 1815rm -f conftest.err conftest.i conftest.$ac_ext 1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1817$as_echo "$ac_header_preproc" >&6; } 1818 1819# So? What about this header? 1820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1821 yes:no: ) 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1823$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1825$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1826 ;; 1827 no:yes:* ) 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1829$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1831$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1833$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1835$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1838( $as_echo "## -------------------------------------------- ## 1839## Report this to libklel-project@korelogic.com ## 1840## -------------------------------------------- ##" 1841 ) | sed "s/^/$as_me: WARNING: /" >&2 1842 ;; 1843esac 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1845$as_echo_n "checking for $2... " >&6; } 1846if eval \${$3+:} false; then : 1847 $as_echo_n "(cached) " >&6 1848else 1849 eval "$3=\$ac_header_compiler" 1850fi 1851eval ac_res=\$$3 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1853$as_echo "$ac_res" >&6; } 1854fi 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 1857} # ac_fn_c_check_header_mongrel 1858 1859# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1860# ------------------------------------------- 1861# Tests whether TYPE exists after having included INCLUDES, setting cache 1862# variable VAR accordingly. 1863ac_fn_c_check_type () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1867$as_echo_n "checking for $2... " >&6; } 1868if eval \${$3+:} false; then : 1869 $as_echo_n "(cached) " >&6 1870else 1871 eval "$3=no" 1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1873/* end confdefs.h. */ 1874$4 1875int 1876main () 1877{ 1878if (sizeof ($2)) 1879 return 0; 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO"; then : 1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1886/* end confdefs.h. */ 1887$4 1888int 1889main () 1890{ 1891if (sizeof (($2))) 1892 return 0; 1893 ; 1894 return 0; 1895} 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO"; then : 1898 1899else 1900 eval "$3=yes" 1901fi 1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1903fi 1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1905fi 1906eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908$as_echo "$ac_res" >&6; } 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 1911} # ac_fn_c_check_type 1912cat >config.log <<_ACEOF 1913This file contains any messages produced by compilers while 1914running configure, to aid debugging if configure makes a mistake. 1915 1916It was created by libklel $as_me 1.1.0, which was 1917generated by GNU Autoconf 2.69. Invocation command line was 1918 1919 $ $0 $@ 1920 1921_ACEOF 1922exec 5>>config.log 1923{ 1924cat <<_ASUNAME 1925## --------- ## 1926## Platform. ## 1927## --------- ## 1928 1929hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1930uname -m = `(uname -m) 2>/dev/null || echo unknown` 1931uname -r = `(uname -r) 2>/dev/null || echo unknown` 1932uname -s = `(uname -s) 2>/dev/null || echo unknown` 1933uname -v = `(uname -v) 2>/dev/null || echo unknown` 1934 1935/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1936/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1937 1938/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1939/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1940/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1941/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1942/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1943/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1944/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1945 1946_ASUNAME 1947 1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1949for as_dir in $PATH 1950do 1951 IFS=$as_save_IFS 1952 test -z "$as_dir" && as_dir=. 1953 $as_echo "PATH: $as_dir" 1954 done 1955IFS=$as_save_IFS 1956 1957} >&5 1958 1959cat >&5 <<_ACEOF 1960 1961 1962## ----------- ## 1963## Core tests. ## 1964## ----------- ## 1965 1966_ACEOF 1967 1968 1969# Keep a trace of the command line. 1970# Strip out --no-create and --no-recursion so they do not pile up. 1971# Strip out --silent because we don't want to record it for future runs. 1972# Also quote any args containing shell meta-characters. 1973# Make two passes to allow for proper duplicate-argument suppression. 1974ac_configure_args= 1975ac_configure_args0= 1976ac_configure_args1= 1977ac_must_keep_next=false 1978for ac_pass in 1 2 1979do 1980 for ac_arg 1981 do 1982 case $ac_arg in 1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1985 | -silent | --silent | --silen | --sile | --sil) 1986 continue ;; 1987 *\'*) 1988 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1989 esac 1990 case $ac_pass in 1991 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1992 2) 1993 as_fn_append ac_configure_args1 " '$ac_arg'" 1994 if test $ac_must_keep_next = true; then 1995 ac_must_keep_next=false # Got value, back to normal. 1996 else 1997 case $ac_arg in 1998 *=* | --config-cache | -C | -disable-* | --disable-* \ 1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2001 | -with-* | --with-* | -without-* | --without-* | --x) 2002 case "$ac_configure_args0 " in 2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2004 esac 2005 ;; 2006 -* ) ac_must_keep_next=true ;; 2007 esac 2008 fi 2009 as_fn_append ac_configure_args " '$ac_arg'" 2010 ;; 2011 esac 2012 done 2013done 2014{ ac_configure_args0=; unset ac_configure_args0;} 2015{ ac_configure_args1=; unset ac_configure_args1;} 2016 2017# When interrupted or exit'd, cleanup temporary files, and complete 2018# config.log. We remove comments because anyway the quotes in there 2019# would cause problems or look ugly. 2020# WARNING: Use '\'' to represent an apostrophe within the trap. 2021# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2022trap 'exit_status=$? 2023 # Save into config.log some information that might help in debugging. 2024 { 2025 echo 2026 2027 $as_echo "## ---------------- ## 2028## Cache variables. ## 2029## ---------------- ##" 2030 echo 2031 # The following way of writing the cache mishandles newlines in values, 2032( 2033 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2034 eval ac_val=\$$ac_var 2035 case $ac_val in #( 2036 *${as_nl}*) 2037 case $ac_var in #( 2038 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2039$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2040 esac 2041 case $ac_var in #( 2042 _ | IFS | as_nl) ;; #( 2043 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2044 *) { eval $ac_var=; unset $ac_var;} ;; 2045 esac ;; 2046 esac 2047 done 2048 (set) 2>&1 | 2049 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2050 *${as_nl}ac_space=\ *) 2051 sed -n \ 2052 "s/'\''/'\''\\\\'\'''\''/g; 2053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2054 ;; #( 2055 *) 2056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2057 ;; 2058 esac | 2059 sort 2060) 2061 echo 2062 2063 $as_echo "## ----------------- ## 2064## Output variables. ## 2065## ----------------- ##" 2066 echo 2067 for ac_var in $ac_subst_vars 2068 do 2069 eval ac_val=\$$ac_var 2070 case $ac_val in 2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2072 esac 2073 $as_echo "$ac_var='\''$ac_val'\''" 2074 done | sort 2075 echo 2076 2077 if test -n "$ac_subst_files"; then 2078 $as_echo "## ------------------- ## 2079## File substitutions. ## 2080## ------------------- ##" 2081 echo 2082 for ac_var in $ac_subst_files 2083 do 2084 eval ac_val=\$$ac_var 2085 case $ac_val in 2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2087 esac 2088 $as_echo "$ac_var='\''$ac_val'\''" 2089 done | sort 2090 echo 2091 fi 2092 2093 if test -s confdefs.h; then 2094 $as_echo "## ----------- ## 2095## confdefs.h. ## 2096## ----------- ##" 2097 echo 2098 cat confdefs.h 2099 echo 2100 fi 2101 test "$ac_signal" != 0 && 2102 $as_echo "$as_me: caught signal $ac_signal" 2103 $as_echo "$as_me: exit $exit_status" 2104 } >&5 2105 rm -f core *.core core.conftest.* && 2106 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2107 exit $exit_status 2108' 0 2109for ac_signal in 1 2 13 15; do 2110 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2111done 2112ac_signal=0 2113 2114# confdefs.h avoids OS command line length limits that DEFS can exceed. 2115rm -f -r conftest* confdefs.h 2116 2117$as_echo "/* confdefs.h */" > confdefs.h 2118 2119# Predefined preprocessor variables. 2120 2121cat >>confdefs.h <<_ACEOF 2122#define PACKAGE_NAME "$PACKAGE_NAME" 2123_ACEOF 2124 2125cat >>confdefs.h <<_ACEOF 2126#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2127_ACEOF 2128 2129cat >>confdefs.h <<_ACEOF 2130#define PACKAGE_VERSION "$PACKAGE_VERSION" 2131_ACEOF 2132 2133cat >>confdefs.h <<_ACEOF 2134#define PACKAGE_STRING "$PACKAGE_STRING" 2135_ACEOF 2136 2137cat >>confdefs.h <<_ACEOF 2138#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2139_ACEOF 2140 2141cat >>confdefs.h <<_ACEOF 2142#define PACKAGE_URL "$PACKAGE_URL" 2143_ACEOF 2144 2145 2146# Let the site file select an alternate cache file if it wants to. 2147# Prefer an explicitly selected file to automatically selected ones. 2148ac_site_file1=NONE 2149ac_site_file2=NONE 2150if test -n "$CONFIG_SITE"; then 2151 # We do not want a PATH search for config.site. 2152 case $CONFIG_SITE in #(( 2153 -*) ac_site_file1=./$CONFIG_SITE;; 2154 */*) ac_site_file1=$CONFIG_SITE;; 2155 *) ac_site_file1=./$CONFIG_SITE;; 2156 esac 2157elif test "x$prefix" != xNONE; then 2158 ac_site_file1=$prefix/share/config.site 2159 ac_site_file2=$prefix/etc/config.site 2160else 2161 ac_site_file1=$ac_default_prefix/share/config.site 2162 ac_site_file2=$ac_default_prefix/etc/config.site 2163fi 2164for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2165do 2166 test "x$ac_site_file" = xNONE && continue 2167 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2169$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2170 sed 's/^/| /' "$ac_site_file" >&5 2171 . "$ac_site_file" \ 2172 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2174as_fn_error $? "failed to load site script $ac_site_file 2175See \`config.log' for more details" "$LINENO" 5; } 2176 fi 2177done 2178 2179if test -r "$cache_file"; then 2180 # Some versions of bash will fail to source /dev/null (special files 2181 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2182 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2184$as_echo "$as_me: loading cache $cache_file" >&6;} 2185 case $cache_file in 2186 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2187 *) . "./$cache_file";; 2188 esac 2189 fi 2190else 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2192$as_echo "$as_me: creating cache $cache_file" >&6;} 2193 >$cache_file 2194fi 2195 2196# Check that the precious variables saved in the cache have kept the same 2197# value. 2198ac_cache_corrupted=false 2199for ac_var in $ac_precious_vars; do 2200 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2201 eval ac_new_set=\$ac_env_${ac_var}_set 2202 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2203 eval ac_new_val=\$ac_env_${ac_var}_value 2204 case $ac_old_set,$ac_new_set in 2205 set,) 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2207$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2208 ac_cache_corrupted=: ;; 2209 ,set) 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2211$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2212 ac_cache_corrupted=: ;; 2213 ,);; 2214 *) 2215 if test "x$ac_old_val" != "x$ac_new_val"; then 2216 # differences in whitespace do not lead to failure. 2217 ac_old_val_w=`echo x $ac_old_val` 2218 ac_new_val_w=`echo x $ac_new_val` 2219 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2221$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2222 ac_cache_corrupted=: 2223 else 2224 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2225$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2226 eval $ac_var=\$ac_old_val 2227 fi 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2229$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2231$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2232 fi;; 2233 esac 2234 # Pass precious variables to config.status. 2235 if test "$ac_new_set" = set; then 2236 case $ac_new_val in 2237 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2238 *) ac_arg=$ac_var=$ac_new_val ;; 2239 esac 2240 case " $ac_configure_args " in 2241 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2242 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2243 esac 2244 fi 2245done 2246if $ac_cache_corrupted; then 2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2250$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2251 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2252fi 2253## -------------------- ## 2254## Main body of script. ## 2255## -------------------- ## 2256 2257ac_ext=c 2258ac_cpp='$CPP $CPPFLAGS' 2259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2261ac_compiler_gnu=$ac_cv_c_compiler_gnu 2262 2263 2264ac_aux_dir= 2265for ac_dir in utils "$srcdir"/utils; do 2266 if test -f "$ac_dir/install-sh"; then 2267 ac_aux_dir=$ac_dir 2268 ac_install_sh="$ac_aux_dir/install-sh -c" 2269 break 2270 elif test -f "$ac_dir/install.sh"; then 2271 ac_aux_dir=$ac_dir 2272 ac_install_sh="$ac_aux_dir/install.sh -c" 2273 break 2274 elif test -f "$ac_dir/shtool"; then 2275 ac_aux_dir=$ac_dir 2276 ac_install_sh="$ac_aux_dir/shtool install -c" 2277 break 2278 fi 2279done 2280if test -z "$ac_aux_dir"; then 2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in utils \"$srcdir\"/utils" "$LINENO" 5 2282fi 2283 2284# These three variables are undocumented and unsupported, 2285# and are intended to be withdrawn in a future Autoconf release. 2286# They can cause serious problems if a builder's source tree is in a directory 2287# whose full name contains unusual characters. 2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2291 2292 2293 2294 2295# Make sure we can run config.sub. 2296$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2297 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2298 2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2300$as_echo_n "checking build system type... " >&6; } 2301if ${ac_cv_build+:} false; then : 2302 $as_echo_n "(cached) " >&6 2303else 2304 ac_build_alias=$build_alias 2305test "x$ac_build_alias" = x && 2306 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2307test "x$ac_build_alias" = x && 2308 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2309ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2310 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2311 2312fi 2313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2314$as_echo "$ac_cv_build" >&6; } 2315case $ac_cv_build in 2316*-*-*) ;; 2317*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2318esac 2319build=$ac_cv_build 2320ac_save_IFS=$IFS; IFS='-' 2321set x $ac_cv_build 2322shift 2323build_cpu=$1 2324build_vendor=$2 2325shift; shift 2326# Remember, the first character of IFS is used to create $*, 2327# except with old shells: 2328build_os=$* 2329IFS=$ac_save_IFS 2330case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2331 2332 2333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2334$as_echo_n "checking host system type... " >&6; } 2335if ${ac_cv_host+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 if test "x$host_alias" = x; then 2339 ac_cv_host=$ac_cv_build 2340else 2341 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2342 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2343fi 2344 2345fi 2346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2347$as_echo "$ac_cv_host" >&6; } 2348case $ac_cv_host in 2349*-*-*) ;; 2350*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2351esac 2352host=$ac_cv_host 2353ac_save_IFS=$IFS; IFS='-' 2354set x $ac_cv_host 2355shift 2356host_cpu=$1 2357host_vendor=$2 2358shift; shift 2359# Remember, the first character of IFS is used to create $*, 2360# except with old shells: 2361host_os=$* 2362IFS=$ac_save_IFS 2363case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2364 2365 2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2367$as_echo_n "checking target system type... " >&6; } 2368if ${ac_cv_target+:} false; then : 2369 $as_echo_n "(cached) " >&6 2370else 2371 if test "x$target_alias" = x; then 2372 ac_cv_target=$ac_cv_host 2373else 2374 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2376fi 2377 2378fi 2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2380$as_echo "$ac_cv_target" >&6; } 2381case $ac_cv_target in 2382*-*-*) ;; 2383*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2384esac 2385target=$ac_cv_target 2386ac_save_IFS=$IFS; IFS='-' 2387set x $ac_cv_target 2388shift 2389target_cpu=$1 2390target_vendor=$2 2391shift; shift 2392# Remember, the first character of IFS is used to create $*, 2393# except with old shells: 2394target_os=$* 2395IFS=$ac_save_IFS 2396case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2397 2398 2399# The aliases save the names the user supplied, while $host etc. 2400# will get canonicalized. 2401test -n "$target_alias" && 2402 test "$program_prefix$program_suffix$program_transform_name" = \ 2403 NONENONEs,x,x, && 2404 program_prefix=${target_alias}- 2405 2406am__api_version='1.12' 2407 2408# Find a good install program. We prefer a C program (faster), 2409# so one script is as good as another. But avoid the broken or 2410# incompatible versions: 2411# SysV /etc/install, /usr/sbin/install 2412# SunOS /usr/etc/install 2413# IRIX /sbin/install 2414# AIX /bin/install 2415# AmigaOS /C/install, which installs bootblocks on floppy discs 2416# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2417# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2418# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2419# OS/2's system install, which has a completely different semantic 2420# ./install, which can be erroneously created by make from ./install.sh. 2421# Reject install programs that cannot install multiple files. 2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2423$as_echo_n "checking for a BSD-compatible install... " >&6; } 2424if test -z "$INSTALL"; then 2425if ${ac_cv_path_install+:} false; then : 2426 $as_echo_n "(cached) " >&6 2427else 2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2429for as_dir in $PATH 2430do 2431 IFS=$as_save_IFS 2432 test -z "$as_dir" && as_dir=. 2433 # Account for people who put trailing slashes in PATH elements. 2434case $as_dir/ in #(( 2435 ./ | .// | /[cC]/* | \ 2436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2438 /usr/ucb/* ) ;; 2439 *) 2440 # OSF1 and SCO ODT 3.0 have their own names for install. 2441 # Don't use installbsd from OSF since it installs stuff as root 2442 # by default. 2443 for ac_prog in ginstall scoinst install; do 2444 for ac_exec_ext in '' $ac_executable_extensions; do 2445 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2446 if test $ac_prog = install && 2447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2448 # AIX install. It has an incompatible calling convention. 2449 : 2450 elif test $ac_prog = install && 2451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2452 # program-specific install script used by HP pwplus--don't use. 2453 : 2454 else 2455 rm -rf conftest.one conftest.two conftest.dir 2456 echo one > conftest.one 2457 echo two > conftest.two 2458 mkdir conftest.dir 2459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2460 test -s conftest.one && test -s conftest.two && 2461 test -s conftest.dir/conftest.one && 2462 test -s conftest.dir/conftest.two 2463 then 2464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2465 break 3 2466 fi 2467 fi 2468 fi 2469 done 2470 done 2471 ;; 2472esac 2473 2474 done 2475IFS=$as_save_IFS 2476 2477rm -rf conftest.one conftest.two conftest.dir 2478 2479fi 2480 if test "${ac_cv_path_install+set}" = set; then 2481 INSTALL=$ac_cv_path_install 2482 else 2483 # As a last resort, use the slow shell script. Don't cache a 2484 # value for INSTALL within a source directory, because that will 2485 # break other packages using the cache if that directory is 2486 # removed, or if the value is a relative name. 2487 INSTALL=$ac_install_sh 2488 fi 2489fi 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2491$as_echo "$INSTALL" >&6; } 2492 2493# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2494# It thinks the first close brace ends the variable substitution. 2495test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2496 2497test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2498 2499test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2500 2501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2502$as_echo_n "checking whether build environment is sane... " >&6; } 2503# Reject unsafe characters in $srcdir or the absolute working directory 2504# name. Accept space and tab only in the latter. 2505am_lf=' 2506' 2507case `pwd` in 2508 *[\\\"\#\$\&\'\`$am_lf]*) 2509 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2510esac 2511case $srcdir in 2512 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2513 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2514esac 2515 2516# Do 'set' in a subshell so we don't clobber the current shell's 2517# arguments. Must try -L first in case configure is actually a 2518# symlink; some systems play weird games with the mod time of symlinks 2519# (eg FreeBSD returns the mod time of the symlink's containing 2520# directory). 2521if ( 2522 am_has_slept=no 2523 for am_try in 1 2; do 2524 echo "timestamp, slept: $am_has_slept" > conftest.file 2525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2526 if test "$*" = "X"; then 2527 # -L didn't work. 2528 set X `ls -t "$srcdir/configure" conftest.file` 2529 fi 2530 if test "$*" != "X $srcdir/configure conftest.file" \ 2531 && test "$*" != "X conftest.file $srcdir/configure"; then 2532 2533 # If neither matched, then we have a broken ls. This can happen 2534 # if, for instance, CONFIG_SHELL is bash and it inherits a 2535 # broken ls alias from the environment. This has actually 2536 # happened. Such a system could not be considered "sane". 2537 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2538 alias in your environment" "$LINENO" 5 2539 fi 2540 if test "$2" = conftest.file || test $am_try -eq 2; then 2541 break 2542 fi 2543 # Just in case. 2544 sleep 1 2545 am_has_slept=yes 2546 done 2547 test "$2" = conftest.file 2548 ) 2549then 2550 # Ok. 2551 : 2552else 2553 as_fn_error $? "newly created file is older than distributed files! 2554Check your system clock" "$LINENO" 5 2555fi 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2557$as_echo "yes" >&6; } 2558# If we didn't sleep, we still need to ensure time stamps of config.status and 2559# generated files are strictly newer. 2560am_sleep_pid= 2561if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2562 ( sleep 1 ) & 2563 am_sleep_pid=$! 2564fi 2565 2566rm -f conftest.file 2567 2568test "$program_prefix" != NONE && 2569 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2570# Use a double $ so make ignores it. 2571test "$program_suffix" != NONE && 2572 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2573# Double any \ or $. 2574# By default was `s,x,x', remove it if useless. 2575ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2576program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2577 2578# expand $ac_aux_dir to an absolute path 2579am_aux_dir=`cd $ac_aux_dir && pwd` 2580 2581if test x"${MISSING+set}" != xset; then 2582 case $am_aux_dir in 2583 *\ * | *\ *) 2584 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2585 *) 2586 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2587 esac 2588fi 2589# Use eval to expand $SHELL 2590if eval "$MISSING --run true"; then 2591 am_missing_run="$MISSING --run " 2592else 2593 am_missing_run= 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2595$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2596fi 2597 2598if test x"${install_sh}" != xset; then 2599 case $am_aux_dir in 2600 *\ * | *\ *) 2601 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2602 *) 2603 install_sh="\${SHELL} $am_aux_dir/install-sh" 2604 esac 2605fi 2606 2607# Installed binaries are usually stripped using 'strip' when the user 2608# run "make install-strip". However 'strip' might not be the right 2609# tool to use in cross-compilation environments, therefore Automake 2610# will honor the 'STRIP' environment variable to overrule this program. 2611if test "$cross_compiling" != no; then 2612 if test -n "$ac_tool_prefix"; then 2613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2614set dummy ${ac_tool_prefix}strip; ac_word=$2 2615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2616$as_echo_n "checking for $ac_word... " >&6; } 2617if ${ac_cv_prog_STRIP+:} false; then : 2618 $as_echo_n "(cached) " >&6 2619else 2620 if test -n "$STRIP"; then 2621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2622else 2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2624for as_dir in $PATH 2625do 2626 IFS=$as_save_IFS 2627 test -z "$as_dir" && as_dir=. 2628 for ac_exec_ext in '' $ac_executable_extensions; do 2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2630 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2632 break 2 2633 fi 2634done 2635 done 2636IFS=$as_save_IFS 2637 2638fi 2639fi 2640STRIP=$ac_cv_prog_STRIP 2641if test -n "$STRIP"; then 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2643$as_echo "$STRIP" >&6; } 2644else 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2646$as_echo "no" >&6; } 2647fi 2648 2649 2650fi 2651if test -z "$ac_cv_prog_STRIP"; then 2652 ac_ct_STRIP=$STRIP 2653 # Extract the first word of "strip", so it can be a program name with args. 2654set dummy strip; ac_word=$2 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2656$as_echo_n "checking for $ac_word... " >&6; } 2657if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 if test -n "$ac_ct_STRIP"; then 2661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2662else 2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2664for as_dir in $PATH 2665do 2666 IFS=$as_save_IFS 2667 test -z "$as_dir" && as_dir=. 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2670 ac_cv_prog_ac_ct_STRIP="strip" 2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2672 break 2 2673 fi 2674done 2675 done 2676IFS=$as_save_IFS 2677 2678fi 2679fi 2680ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2681if test -n "$ac_ct_STRIP"; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2683$as_echo "$ac_ct_STRIP" >&6; } 2684else 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2686$as_echo "no" >&6; } 2687fi 2688 2689 if test "x$ac_ct_STRIP" = x; then 2690 STRIP=":" 2691 else 2692 case $cross_compiling:$ac_tool_warned in 2693yes:) 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2696ac_tool_warned=yes ;; 2697esac 2698 STRIP=$ac_ct_STRIP 2699 fi 2700else 2701 STRIP="$ac_cv_prog_STRIP" 2702fi 2703 2704fi 2705INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2706 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2708$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2709if test -z "$MKDIR_P"; then 2710 if ${ac_cv_path_mkdir+:} false; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2715do 2716 IFS=$as_save_IFS 2717 test -z "$as_dir" && as_dir=. 2718 for ac_prog in mkdir gmkdir; do 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2721 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2722 'mkdir (GNU coreutils) '* | \ 2723 'mkdir (coreutils) '* | \ 2724 'mkdir (fileutils) '4.1*) 2725 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2726 break 3;; 2727 esac 2728 done 2729 done 2730 done 2731IFS=$as_save_IFS 2732 2733fi 2734 2735 test -d ./--version && rmdir ./--version 2736 if test "${ac_cv_path_mkdir+set}" = set; then 2737 MKDIR_P="$ac_cv_path_mkdir -p" 2738 else 2739 # As a last resort, use the slow shell script. Don't cache a 2740 # value for MKDIR_P within a source directory, because that will 2741 # break other packages using the cache if that directory is 2742 # removed, or if the value is a relative name. 2743 MKDIR_P="$ac_install_sh -d" 2744 fi 2745fi 2746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2747$as_echo "$MKDIR_P" >&6; } 2748 2749for ac_prog in gawk mawk nawk awk 2750do 2751 # Extract the first word of "$ac_prog", so it can be a program name with args. 2752set dummy $ac_prog; ac_word=$2 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754$as_echo_n "checking for $ac_word... " >&6; } 2755if ${ac_cv_prog_AWK+:} false; then : 2756 $as_echo_n "(cached) " >&6 2757else 2758 if test -n "$AWK"; then 2759 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2760else 2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762for as_dir in $PATH 2763do 2764 IFS=$as_save_IFS 2765 test -z "$as_dir" && as_dir=. 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2768 ac_cv_prog_AWK="$ac_prog" 2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2770 break 2 2771 fi 2772done 2773 done 2774IFS=$as_save_IFS 2775 2776fi 2777fi 2778AWK=$ac_cv_prog_AWK 2779if test -n "$AWK"; then 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2781$as_echo "$AWK" >&6; } 2782else 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2784$as_echo "no" >&6; } 2785fi 2786 2787 2788 test -n "$AWK" && break 2789done 2790 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2792$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2793set x ${MAKE-make} 2794ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2795if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2796 $as_echo_n "(cached) " >&6 2797else 2798 cat >conftest.make <<\_ACEOF 2799SHELL = /bin/sh 2800all: 2801 @echo '@@@%%%=$(MAKE)=@@@%%%' 2802_ACEOF 2803# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2804case `${MAKE-make} -f conftest.make 2>/dev/null` in 2805 *@@@%%%=?*=@@@%%%*) 2806 eval ac_cv_prog_make_${ac_make}_set=yes;; 2807 *) 2808 eval ac_cv_prog_make_${ac_make}_set=no;; 2809esac 2810rm -f conftest.make 2811fi 2812if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2814$as_echo "yes" >&6; } 2815 SET_MAKE= 2816else 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2818$as_echo "no" >&6; } 2819 SET_MAKE="MAKE=${MAKE-make}" 2820fi 2821 2822rm -rf .tst 2>/dev/null 2823mkdir .tst 2>/dev/null 2824if test -d .tst; then 2825 am__leading_dot=. 2826else 2827 am__leading_dot=_ 2828fi 2829rmdir .tst 2>/dev/null 2830 2831if test "`cd $srcdir && pwd`" != "`pwd`"; then 2832 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2833 # is not polluted with repeated "-I." 2834 am__isrc=' -I$(srcdir)' 2835 # test to see if srcdir already configured 2836 if test -f $srcdir/config.status; then 2837 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2838 fi 2839fi 2840 2841# test whether we have cygpath 2842if test -z "$CYGPATH_W"; then 2843 if (cygpath --version) >/dev/null 2>/dev/null; then 2844 CYGPATH_W='cygpath -w' 2845 else 2846 CYGPATH_W=echo 2847 fi 2848fi 2849 2850 2851# Define the identity of the package. 2852 PACKAGE='libklel' 2853 VERSION='1.1.0' 2854 2855 2856cat >>confdefs.h <<_ACEOF 2857#define PACKAGE "$PACKAGE" 2858_ACEOF 2859 2860 2861cat >>confdefs.h <<_ACEOF 2862#define VERSION "$VERSION" 2863_ACEOF 2864 2865# Some tools Automake needs. 2866 2867ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2868 2869 2870AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2871 2872 2873AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2874 2875 2876AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2877 2878 2879MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2880 2881# For better backward compatibility. To be removed once Automake 1.9.x 2882# dies out for good. For more background, see: 2883# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2884# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2885mkdir_p='$(MKDIR_P)' 2886 2887# We need awk for the "check" target. The system "awk" is bad on 2888# some platforms. 2889# Always define AMTAR for backward compatibility. Yes, it's still used 2890# in the wild :-( We should find a proper way to deprecate it ... 2891AMTAR='$${TAR-tar}' 2892 2893am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2894 2895 2896 2897 2898 2899 2900 2901$as_echo "#define KLEL_VERSION_CURRENT 2" >>confdefs.h 2902 2903 2904$as_echo "#define KLEL_VERSION_REVISION 0" >>confdefs.h 2905 2906 2907$as_echo "#define KLEL_VERSION_AGE 1" >>confdefs.h 2908 2909libklel_version="2:0:1" 2910 2911 2912 2913$as_echo "#define KLEL_RELEASE_NUMBER 0x10100800" >>confdefs.h 2914 2915 2916 2917$as_echo "#define KLEL_RELEASE_MAJOR 1" >>confdefs.h 2918 2919 2920$as_echo "#define KLEL_RELEASE_MINOR 1" >>confdefs.h 2921 2922 2923$as_echo "#define KLEL_RELEASE_PATCH 0" >>confdefs.h 2924 2925 2926: ${CFLAGS="-O3"} 2927 2928 2929for ac_prog in gawk mawk nawk awk 2930do 2931 # Extract the first word of "$ac_prog", so it can be a program name with args. 2932set dummy $ac_prog; ac_word=$2 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2934$as_echo_n "checking for $ac_word... " >&6; } 2935if ${ac_cv_prog_AWK+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937else 2938 if test -n "$AWK"; then 2939 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2940else 2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942for as_dir in $PATH 2943do 2944 IFS=$as_save_IFS 2945 test -z "$as_dir" && as_dir=. 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2948 ac_cv_prog_AWK="$ac_prog" 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953 done 2954IFS=$as_save_IFS 2955 2956fi 2957fi 2958AWK=$ac_cv_prog_AWK 2959if test -n "$AWK"; then 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2961$as_echo "$AWK" >&6; } 2962else 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2964$as_echo "no" >&6; } 2965fi 2966 2967 2968 test -n "$AWK" && break 2969done 2970 2971ac_ext=c 2972ac_cpp='$CPP $CPPFLAGS' 2973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2975ac_compiler_gnu=$ac_cv_c_compiler_gnu 2976if test -n "$ac_tool_prefix"; then 2977 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2978set dummy ${ac_tool_prefix}gcc; ac_word=$2 2979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2980$as_echo_n "checking for $ac_word... " >&6; } 2981if ${ac_cv_prog_CC+:} false; then : 2982 $as_echo_n "(cached) " >&6 2983else 2984 if test -n "$CC"; then 2985 ac_cv_prog_CC="$CC" # Let the user override the test. 2986else 2987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988for as_dir in $PATH 2989do 2990 IFS=$as_save_IFS 2991 test -z "$as_dir" && as_dir=. 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2994 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2996 break 2 2997 fi 2998done 2999 done 3000IFS=$as_save_IFS 3001 3002fi 3003fi 3004CC=$ac_cv_prog_CC 3005if test -n "$CC"; then 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3007$as_echo "$CC" >&6; } 3008else 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3010$as_echo "no" >&6; } 3011fi 3012 3013 3014fi 3015if test -z "$ac_cv_prog_CC"; then 3016 ac_ct_CC=$CC 3017 # Extract the first word of "gcc", so it can be a program name with args. 3018set dummy gcc; ac_word=$2 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3020$as_echo_n "checking for $ac_word... " >&6; } 3021if ${ac_cv_prog_ac_ct_CC+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if test -n "$ac_ct_CC"; then 3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3026else 3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3028for as_dir in $PATH 3029do 3030 IFS=$as_save_IFS 3031 test -z "$as_dir" && as_dir=. 3032 for ac_exec_ext in '' $ac_executable_extensions; do 3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3034 ac_cv_prog_ac_ct_CC="gcc" 3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3036 break 2 3037 fi 3038done 3039 done 3040IFS=$as_save_IFS 3041 3042fi 3043fi 3044ac_ct_CC=$ac_cv_prog_ac_ct_CC 3045if test -n "$ac_ct_CC"; then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3047$as_echo "$ac_ct_CC" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 if test "x$ac_ct_CC" = x; then 3054 CC="" 3055 else 3056 case $cross_compiling:$ac_tool_warned in 3057yes:) 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3060ac_tool_warned=yes ;; 3061esac 3062 CC=$ac_ct_CC 3063 fi 3064else 3065 CC="$ac_cv_prog_CC" 3066fi 3067 3068if test -z "$CC"; then 3069 if test -n "$ac_tool_prefix"; then 3070 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3071set dummy ${ac_tool_prefix}cc; ac_word=$2 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3073$as_echo_n "checking for $ac_word... " >&6; } 3074if ${ac_cv_prog_CC+:} false; then : 3075 $as_echo_n "(cached) " >&6 3076else 3077 if test -n "$CC"; then 3078 ac_cv_prog_CC="$CC" # Let the user override the test. 3079else 3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3081for as_dir in $PATH 3082do 3083 IFS=$as_save_IFS 3084 test -z "$as_dir" && as_dir=. 3085 for ac_exec_ext in '' $ac_executable_extensions; do 3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3087 ac_cv_prog_CC="${ac_tool_prefix}cc" 3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3089 break 2 3090 fi 3091done 3092 done 3093IFS=$as_save_IFS 3094 3095fi 3096fi 3097CC=$ac_cv_prog_CC 3098if test -n "$CC"; then 3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3100$as_echo "$CC" >&6; } 3101else 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3103$as_echo "no" >&6; } 3104fi 3105 3106 3107 fi 3108fi 3109if test -z "$CC"; then 3110 # Extract the first word of "cc", so it can be a program name with args. 3111set dummy cc; ac_word=$2 3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3113$as_echo_n "checking for $ac_word... " >&6; } 3114if ${ac_cv_prog_CC+:} false; then : 3115 $as_echo_n "(cached) " >&6 3116else 3117 if test -n "$CC"; then 3118 ac_cv_prog_CC="$CC" # Let the user override the test. 3119else 3120 ac_prog_rejected=no 3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 test -z "$as_dir" && as_dir=. 3126 for ac_exec_ext in '' $ac_executable_extensions; do 3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3128 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3129 ac_prog_rejected=yes 3130 continue 3131 fi 3132 ac_cv_prog_CC="cc" 3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3134 break 2 3135 fi 3136done 3137 done 3138IFS=$as_save_IFS 3139 3140if test $ac_prog_rejected = yes; then 3141 # We found a bogon in the path, so make sure we never use it. 3142 set dummy $ac_cv_prog_CC 3143 shift 3144 if test $# != 0; then 3145 # We chose a different compiler from the bogus one. 3146 # However, it has the same basename, so the bogon will be chosen 3147 # first if we set CC to just the basename; use the full file name. 3148 shift 3149 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3150 fi 3151fi 3152fi 3153fi 3154CC=$ac_cv_prog_CC 3155if test -n "$CC"; then 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157$as_echo "$CC" >&6; } 3158else 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160$as_echo "no" >&6; } 3161fi 3162 3163 3164fi 3165if test -z "$CC"; then 3166 if test -n "$ac_tool_prefix"; then 3167 for ac_prog in cl.exe 3168 do 3169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3170set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3172$as_echo_n "checking for $ac_word... " >&6; } 3173if ${ac_cv_prog_CC+:} false; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 if test -n "$CC"; then 3177 ac_cv_prog_CC="$CC" # Let the user override the test. 3178else 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3186 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3188 break 2 3189 fi 3190done 3191 done 3192IFS=$as_save_IFS 3193 3194fi 3195fi 3196CC=$ac_cv_prog_CC 3197if test -n "$CC"; then 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3199$as_echo "$CC" >&6; } 3200else 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3202$as_echo "no" >&6; } 3203fi 3204 3205 3206 test -n "$CC" && break 3207 done 3208fi 3209if test -z "$CC"; then 3210 ac_ct_CC=$CC 3211 for ac_prog in cl.exe 3212do 3213 # Extract the first word of "$ac_prog", so it can be a program name with args. 3214set dummy $ac_prog; ac_word=$2 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3216$as_echo_n "checking for $ac_word... " >&6; } 3217if ${ac_cv_prog_ac_ct_CC+:} false; then : 3218 $as_echo_n "(cached) " >&6 3219else 3220 if test -n "$ac_ct_CC"; then 3221 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3222else 3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3224for as_dir in $PATH 3225do 3226 IFS=$as_save_IFS 3227 test -z "$as_dir" && as_dir=. 3228 for ac_exec_ext in '' $ac_executable_extensions; do 3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3230 ac_cv_prog_ac_ct_CC="$ac_prog" 3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3232 break 2 3233 fi 3234done 3235 done 3236IFS=$as_save_IFS 3237 3238fi 3239fi 3240ac_ct_CC=$ac_cv_prog_ac_ct_CC 3241if test -n "$ac_ct_CC"; then 3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3243$as_echo "$ac_ct_CC" >&6; } 3244else 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3246$as_echo "no" >&6; } 3247fi 3248 3249 3250 test -n "$ac_ct_CC" && break 3251done 3252 3253 if test "x$ac_ct_CC" = x; then 3254 CC="" 3255 else 3256 case $cross_compiling:$ac_tool_warned in 3257yes:) 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3260ac_tool_warned=yes ;; 3261esac 3262 CC=$ac_ct_CC 3263 fi 3264fi 3265 3266fi 3267 3268 3269test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3270$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3271as_fn_error $? "no acceptable C compiler found in \$PATH 3272See \`config.log' for more details" "$LINENO" 5; } 3273 3274# Provide some information about the compiler. 3275$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3276set X $ac_compile 3277ac_compiler=$2 3278for ac_option in --version -v -V -qversion; do 3279 { { ac_try="$ac_compiler $ac_option >&5" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3285$as_echo "$ac_try_echo"; } >&5 3286 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3287 ac_status=$? 3288 if test -s conftest.err; then 3289 sed '10a\ 3290... rest of stderr output deleted ... 3291 10q' conftest.err >conftest.er1 3292 cat conftest.er1 >&5 3293 fi 3294 rm -f conftest.er1 conftest.err 3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; } 3297done 3298 3299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3300/* end confdefs.h. */ 3301 3302int 3303main () 3304{ 3305 3306 ; 3307 return 0; 3308} 3309_ACEOF 3310ac_clean_files_save=$ac_clean_files 3311ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3312# Try to create an executable without -o first, disregard a.out. 3313# It will help us diagnose broken compilers, and finding out an intuition 3314# of exeext. 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3316$as_echo_n "checking whether the C compiler works... " >&6; } 3317ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3318 3319# The possible output files: 3320ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3321 3322ac_rmfiles= 3323for ac_file in $ac_files 3324do 3325 case $ac_file in 3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3327 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3328 esac 3329done 3330rm -f $ac_rmfiles 3331 3332if { { ac_try="$ac_link_default" 3333case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3338$as_echo "$ac_try_echo"; } >&5 3339 (eval "$ac_link_default") 2>&5 3340 ac_status=$? 3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3342 test $ac_status = 0; }; then : 3343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3344# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3345# in a Makefile. We should not override ac_cv_exeext if it was cached, 3346# so that the user can short-circuit this test for compilers unknown to 3347# Autoconf. 3348for ac_file in $ac_files '' 3349do 3350 test -f "$ac_file" || continue 3351 case $ac_file in 3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3353 ;; 3354 [ab].out ) 3355 # We found the default executable, but exeext='' is most 3356 # certainly right. 3357 break;; 3358 *.* ) 3359 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3360 then :; else 3361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3362 fi 3363 # We set ac_cv_exeext here because the later test for it is not 3364 # safe: cross compilers may not add the suffix if given an `-o' 3365 # argument, so we may need to know it at that point already. 3366 # Even if this section looks crufty: it has the advantage of 3367 # actually working. 3368 break;; 3369 * ) 3370 break;; 3371 esac 3372done 3373test "$ac_cv_exeext" = no && ac_cv_exeext= 3374 3375else 3376 ac_file='' 3377fi 3378if test -z "$ac_file"; then : 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3380$as_echo "no" >&6; } 3381$as_echo "$as_me: failed program was:" >&5 3382sed 's/^/| /' conftest.$ac_ext >&5 3383 3384{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3386as_fn_error 77 "C compiler cannot create executables 3387See \`config.log' for more details" "$LINENO" 5; } 3388else 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3390$as_echo "yes" >&6; } 3391fi 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3393$as_echo_n "checking for C compiler default output file name... " >&6; } 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3395$as_echo "$ac_file" >&6; } 3396ac_exeext=$ac_cv_exeext 3397 3398rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3399ac_clean_files=$ac_clean_files_save 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3401$as_echo_n "checking for suffix of executables... " >&6; } 3402if { { ac_try="$ac_link" 3403case "(($ac_try" in 3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3405 *) ac_try_echo=$ac_try;; 3406esac 3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3408$as_echo "$ac_try_echo"; } >&5 3409 (eval "$ac_link") 2>&5 3410 ac_status=$? 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 test $ac_status = 0; }; then : 3413 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3414# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3415# work properly (i.e., refer to `conftest.exe'), while it won't with 3416# `rm'. 3417for ac_file in conftest.exe conftest conftest.*; do 3418 test -f "$ac_file" || continue 3419 case $ac_file in 3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3421 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3422 break;; 3423 * ) break;; 3424 esac 3425done 3426else 3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3429as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3430See \`config.log' for more details" "$LINENO" 5; } 3431fi 3432rm -f conftest conftest$ac_cv_exeext 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3434$as_echo "$ac_cv_exeext" >&6; } 3435 3436rm -f conftest.$ac_ext 3437EXEEXT=$ac_cv_exeext 3438ac_exeext=$EXEEXT 3439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3440/* end confdefs.h. */ 3441#include <stdio.h> 3442int 3443main () 3444{ 3445FILE *f = fopen ("conftest.out", "w"); 3446 return ferror (f) || fclose (f) != 0; 3447 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452ac_clean_files="$ac_clean_files conftest.out" 3453# Check that the compiler produces executables we can run. If not, either 3454# the compiler is broken, or we cross compile. 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3456$as_echo_n "checking whether we are cross compiling... " >&6; } 3457if test "$cross_compiling" != yes; then 3458 { { ac_try="$ac_link" 3459case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3464$as_echo "$ac_try_echo"; } >&5 3465 (eval "$ac_link") 2>&5 3466 ac_status=$? 3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3468 test $ac_status = 0; } 3469 if { ac_try='./conftest$ac_cv_exeext' 3470 { { case "(($ac_try" in 3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3472 *) ac_try_echo=$ac_try;; 3473esac 3474eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3475$as_echo "$ac_try_echo"; } >&5 3476 (eval "$ac_try") 2>&5 3477 ac_status=$? 3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3479 test $ac_status = 0; }; }; then 3480 cross_compiling=no 3481 else 3482 if test "$cross_compiling" = maybe; then 3483 cross_compiling=yes 3484 else 3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3487as_fn_error $? "cannot run C compiled programs. 3488If you meant to cross compile, use \`--host'. 3489See \`config.log' for more details" "$LINENO" 5; } 3490 fi 3491 fi 3492fi 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3494$as_echo "$cross_compiling" >&6; } 3495 3496rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3497ac_clean_files=$ac_clean_files_save 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3499$as_echo_n "checking for suffix of object files... " >&6; } 3500if ${ac_cv_objext+:} false; then : 3501 $as_echo_n "(cached) " >&6 3502else 3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3504/* end confdefs.h. */ 3505 3506int 3507main () 3508{ 3509 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514rm -f conftest.o conftest.obj 3515if { { ac_try="$ac_compile" 3516case "(($ac_try" in 3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3518 *) ac_try_echo=$ac_try;; 3519esac 3520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3521$as_echo "$ac_try_echo"; } >&5 3522 (eval "$ac_compile") 2>&5 3523 ac_status=$? 3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3525 test $ac_status = 0; }; then : 3526 for ac_file in conftest.o conftest.obj conftest.*; do 3527 test -f "$ac_file" || continue; 3528 case $ac_file in 3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3530 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3531 break;; 3532 esac 3533done 3534else 3535 $as_echo "$as_me: failed program was:" >&5 3536sed 's/^/| /' conftest.$ac_ext >&5 3537 3538{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3540as_fn_error $? "cannot compute suffix of object files: cannot compile 3541See \`config.log' for more details" "$LINENO" 5; } 3542fi 3543rm -f conftest.$ac_cv_objext conftest.$ac_ext 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3546$as_echo "$ac_cv_objext" >&6; } 3547OBJEXT=$ac_cv_objext 3548ac_objext=$OBJEXT 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3550$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3551if ${ac_cv_c_compiler_gnu+:} false; then : 3552 $as_echo_n "(cached) " >&6 3553else 3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3555/* end confdefs.h. */ 3556 3557int 3558main () 3559{ 3560#ifndef __GNUC__ 3561 choke me 3562#endif 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568if ac_fn_c_try_compile "$LINENO"; then : 3569 ac_compiler_gnu=yes 3570else 3571 ac_compiler_gnu=no 3572fi 3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3574ac_cv_c_compiler_gnu=$ac_compiler_gnu 3575 3576fi 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3578$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3579if test $ac_compiler_gnu = yes; then 3580 GCC=yes 3581else 3582 GCC= 3583fi 3584ac_test_CFLAGS=${CFLAGS+set} 3585ac_save_CFLAGS=$CFLAGS 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3587$as_echo_n "checking whether $CC accepts -g... " >&6; } 3588if ${ac_cv_prog_cc_g+:} false; then : 3589 $as_echo_n "(cached) " >&6 3590else 3591 ac_save_c_werror_flag=$ac_c_werror_flag 3592 ac_c_werror_flag=yes 3593 ac_cv_prog_cc_g=no 3594 CFLAGS="-g" 3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3596/* end confdefs.h. */ 3597 3598int 3599main () 3600{ 3601 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606if ac_fn_c_try_compile "$LINENO"; then : 3607 ac_cv_prog_cc_g=yes 3608else 3609 CFLAGS="" 3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3611/* end confdefs.h. */ 3612 3613int 3614main () 3615{ 3616 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621if ac_fn_c_try_compile "$LINENO"; then : 3622 3623else 3624 ac_c_werror_flag=$ac_save_c_werror_flag 3625 CFLAGS="-g" 3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628 3629int 3630main () 3631{ 3632 3633 ; 3634 return 0; 3635} 3636_ACEOF 3637if ac_fn_c_try_compile "$LINENO"; then : 3638 ac_cv_prog_cc_g=yes 3639fi 3640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3641fi 3642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3643fi 3644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3645 ac_c_werror_flag=$ac_save_c_werror_flag 3646fi 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3648$as_echo "$ac_cv_prog_cc_g" >&6; } 3649if test "$ac_test_CFLAGS" = set; then 3650 CFLAGS=$ac_save_CFLAGS 3651elif test $ac_cv_prog_cc_g = yes; then 3652 if test "$GCC" = yes; then 3653 CFLAGS="-g -O2" 3654 else 3655 CFLAGS="-g" 3656 fi 3657else 3658 if test "$GCC" = yes; then 3659 CFLAGS="-O2" 3660 else 3661 CFLAGS= 3662 fi 3663fi 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3665$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3666if ${ac_cv_prog_cc_c89+:} false; then : 3667 $as_echo_n "(cached) " >&6 3668else 3669 ac_cv_prog_cc_c89=no 3670ac_save_CC=$CC 3671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3672/* end confdefs.h. */ 3673#include <stdarg.h> 3674#include <stdio.h> 3675struct stat; 3676/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3677struct buf { int x; }; 3678FILE * (*rcsopen) (struct buf *, struct stat *, int); 3679static char *e (p, i) 3680 char **p; 3681 int i; 3682{ 3683 return p[i]; 3684} 3685static char *f (char * (*g) (char **, int), char **p, ...) 3686{ 3687 char *s; 3688 va_list v; 3689 va_start (v,p); 3690 s = g (p, va_arg (v,int)); 3691 va_end (v); 3692 return s; 3693} 3694 3695/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3696 function prototypes and stuff, but not '\xHH' hex character constants. 3697 These don't provoke an error unfortunately, instead are silently treated 3698 as 'x'. The following induces an error, until -std is added to get 3699 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3700 array size at least. It's necessary to write '\x00'==0 to get something 3701 that's true only with -std. */ 3702int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3703 3704/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3705 inside strings and character constants. */ 3706#define FOO(x) 'x' 3707int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3708 3709int test (int i, double x); 3710struct s1 {int (*f) (int a);}; 3711struct s2 {int (*f) (double a);}; 3712int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3713int argc; 3714char **argv; 3715int 3716main () 3717{ 3718return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3719 ; 3720 return 0; 3721} 3722_ACEOF 3723for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3724 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3725do 3726 CC="$ac_save_CC $ac_arg" 3727 if ac_fn_c_try_compile "$LINENO"; then : 3728 ac_cv_prog_cc_c89=$ac_arg 3729fi 3730rm -f core conftest.err conftest.$ac_objext 3731 test "x$ac_cv_prog_cc_c89" != "xno" && break 3732done 3733rm -f conftest.$ac_ext 3734CC=$ac_save_CC 3735 3736fi 3737# AC_CACHE_VAL 3738case "x$ac_cv_prog_cc_c89" in 3739 x) 3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3741$as_echo "none needed" >&6; } ;; 3742 xno) 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3744$as_echo "unsupported" >&6; } ;; 3745 *) 3746 CC="$CC $ac_cv_prog_cc_c89" 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3748$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3749esac 3750if test "x$ac_cv_prog_cc_c89" != xno; then : 3751 3752fi 3753 3754ac_ext=c 3755ac_cpp='$CPP $CPPFLAGS' 3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3758ac_compiler_gnu=$ac_cv_c_compiler_gnu 3759DEPDIR="${am__leading_dot}deps" 3760 3761ac_config_commands="$ac_config_commands depfiles" 3762 3763 3764am_make=${MAKE-make} 3765cat > confinc << 'END' 3766am__doit: 3767 @echo this is the am__doit target 3768.PHONY: am__doit 3769END 3770# If we don't find an include directive, just comment out the code. 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3772$as_echo_n "checking for style of include used by $am_make... " >&6; } 3773am__include="#" 3774am__quote= 3775_am_result=none 3776# First try GNU make style include. 3777echo "include confinc" > confmf 3778# Ignore all kinds of additional output from 'make'. 3779case `$am_make -s -f confmf 2> /dev/null` in #( 3780*the\ am__doit\ target*) 3781 am__include=include 3782 am__quote= 3783 _am_result=GNU 3784 ;; 3785esac 3786# Now try BSD make style include. 3787if test "$am__include" = "#"; then 3788 echo '.include "confinc"' > confmf 3789 case `$am_make -s -f confmf 2> /dev/null` in #( 3790 *the\ am__doit\ target*) 3791 am__include=.include 3792 am__quote="\"" 3793 _am_result=BSD 3794 ;; 3795 esac 3796fi 3797 3798 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3800$as_echo "$_am_result" >&6; } 3801rm -f confinc confmf 3802 3803# Check whether --enable-dependency-tracking was given. 3804if test "${enable_dependency_tracking+set}" = set; then : 3805 enableval=$enable_dependency_tracking; 3806fi 3807 3808if test "x$enable_dependency_tracking" != xno; then 3809 am_depcomp="$ac_aux_dir/depcomp" 3810 AMDEPBACKSLASH='\' 3811 am__nodep='_no' 3812fi 3813 if test "x$enable_dependency_tracking" != xno; then 3814 AMDEP_TRUE= 3815 AMDEP_FALSE='#' 3816else 3817 AMDEP_TRUE='#' 3818 AMDEP_FALSE= 3819fi 3820 3821 3822 3823depcc="$CC" am_compiler_list= 3824 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3826$as_echo_n "checking dependency style of $depcc... " >&6; } 3827if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3828 $as_echo_n "(cached) " >&6 3829else 3830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3831 # We make a subdir and do the tests there. Otherwise we can end up 3832 # making bogus files that we don't know about and never remove. For 3833 # instance it was reported that on HP-UX the gcc test will end up 3834 # making a dummy file named 'D' -- because '-MD' means "put the output 3835 # in D". 3836 rm -rf conftest.dir 3837 mkdir conftest.dir 3838 # Copy depcomp to subdir because otherwise we won't find it if we're 3839 # using a relative directory. 3840 cp "$am_depcomp" conftest.dir 3841 cd conftest.dir 3842 # We will build objects and dependencies in a subdirectory because 3843 # it helps to detect inapplicable dependency modes. For instance 3844 # both Tru64's cc and ICC support -MD to output dependencies as a 3845 # side effect of compilation, but ICC will put the dependencies in 3846 # the current directory while Tru64 will put them in the object 3847 # directory. 3848 mkdir sub 3849 3850 am_cv_CC_dependencies_compiler_type=none 3851 if test "$am_compiler_list" = ""; then 3852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3853 fi 3854 am__universal=false 3855 case " $depcc " in #( 3856 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3857 esac 3858 3859 for depmode in $am_compiler_list; do 3860 # Setup a source with many dependencies, because some compilers 3861 # like to wrap large dependency lists on column 80 (with \), and 3862 # we should not choose a depcomp mode which is confused by this. 3863 # 3864 # We need to recreate these files for each test, as the compiler may 3865 # overwrite some of them when testing with obscure command lines. 3866 # This happens at least with the AIX C compiler. 3867 : > sub/conftest.c 3868 for i in 1 2 3 4 5 6; do 3869 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3870 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3871 # Solaris 10 /bin/sh. 3872 echo '/* dummy */' > sub/conftst$i.h 3873 done 3874 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3875 3876 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3877 # mode. It turns out that the SunPro C++ compiler does not properly 3878 # handle '-M -o', and we need to detect this. Also, some Intel 3879 # versions had trouble with output in subdirs. 3880 am__obj=sub/conftest.${OBJEXT-o} 3881 am__minus_obj="-o $am__obj" 3882 case $depmode in 3883 gcc) 3884 # This depmode causes a compiler race in universal mode. 3885 test "$am__universal" = false || continue 3886 ;; 3887 nosideeffect) 3888 # After this tag, mechanisms are not by side-effect, so they'll 3889 # only be used when explicitly requested. 3890 if test "x$enable_dependency_tracking" = xyes; then 3891 continue 3892 else 3893 break 3894 fi 3895 ;; 3896 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3897 # This compiler won't grok '-c -o', but also, the minuso test has 3898 # not run yet. These depmodes are late enough in the game, and 3899 # so weak that their functioning should not be impacted. 3900 am__obj=conftest.${OBJEXT-o} 3901 am__minus_obj= 3902 ;; 3903 none) break ;; 3904 esac 3905 if depmode=$depmode \ 3906 source=sub/conftest.c object=$am__obj \ 3907 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3908 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3909 >/dev/null 2>conftest.err && 3910 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3911 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3912 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3913 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3914 # icc doesn't choke on unknown options, it will just issue warnings 3915 # or remarks (even with -Werror). So we grep stderr for any message 3916 # that says an option was ignored or not supported. 3917 # When given -MP, icc 7.0 and 7.1 complain thusly: 3918 # icc: Command line warning: ignoring option '-M'; no argument required 3919 # The diagnosis changed in icc 8.0: 3920 # icc: Command line remark: option '-MP' not supported 3921 if (grep 'ignoring option' conftest.err || 3922 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3923 am_cv_CC_dependencies_compiler_type=$depmode 3924 break 3925 fi 3926 fi 3927 done 3928 3929 cd .. 3930 rm -rf conftest.dir 3931else 3932 am_cv_CC_dependencies_compiler_type=none 3933fi 3934 3935fi 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3937$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3938CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3939 3940 if 3941 test "x$enable_dependency_tracking" != xno \ 3942 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3943 am__fastdepCC_TRUE= 3944 am__fastdepCC_FALSE='#' 3945else 3946 am__fastdepCC_TRUE='#' 3947 am__fastdepCC_FALSE= 3948fi 3949 3950 3951ac_ext=c 3952ac_cpp='$CPP $CPPFLAGS' 3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3955ac_compiler_gnu=$ac_cv_c_compiler_gnu 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3957$as_echo_n "checking how to run the C preprocessor... " >&6; } 3958# On Suns, sometimes $CPP names a directory. 3959if test -n "$CPP" && test -d "$CPP"; then 3960 CPP= 3961fi 3962if test -z "$CPP"; then 3963 if ${ac_cv_prog_CPP+:} false; then : 3964 $as_echo_n "(cached) " >&6 3965else 3966 # Double quotes because CPP needs to be expanded 3967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3968 do 3969 ac_preproc_ok=false 3970for ac_c_preproc_warn_flag in '' yes 3971do 3972 # Use a header file that comes with gcc, so configuring glibc 3973 # with a fresh cross-compiler works. 3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3975 # <limits.h> exists even on freestanding compilers. 3976 # On the NeXT, cc -E runs the code through the compiler's parser, 3977 # not just through cpp. "Syntax error" is here to catch this case. 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980#ifdef __STDC__ 3981# include <limits.h> 3982#else 3983# include <assert.h> 3984#endif 3985 Syntax error 3986_ACEOF 3987if ac_fn_c_try_cpp "$LINENO"; then : 3988 3989else 3990 # Broken: fails on valid input. 3991continue 3992fi 3993rm -f conftest.err conftest.i conftest.$ac_ext 3994 3995 # OK, works on sane cases. Now check whether nonexistent headers 3996 # can be detected and how. 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999#include <ac_nonexistent.h> 4000_ACEOF 4001if ac_fn_c_try_cpp "$LINENO"; then : 4002 # Broken: success on invalid input. 4003continue 4004else 4005 # Passes both tests. 4006ac_preproc_ok=: 4007break 4008fi 4009rm -f conftest.err conftest.i conftest.$ac_ext 4010 4011done 4012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4013rm -f conftest.i conftest.err conftest.$ac_ext 4014if $ac_preproc_ok; then : 4015 break 4016fi 4017 4018 done 4019 ac_cv_prog_CPP=$CPP 4020 4021fi 4022 CPP=$ac_cv_prog_CPP 4023else 4024 ac_cv_prog_CPP=$CPP 4025fi 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4027$as_echo "$CPP" >&6; } 4028ac_preproc_ok=false 4029for ac_c_preproc_warn_flag in '' yes 4030do 4031 # Use a header file that comes with gcc, so configuring glibc 4032 # with a fresh cross-compiler works. 4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4034 # <limits.h> exists even on freestanding compilers. 4035 # On the NeXT, cc -E runs the code through the compiler's parser, 4036 # not just through cpp. "Syntax error" is here to catch this case. 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039#ifdef __STDC__ 4040# include <limits.h> 4041#else 4042# include <assert.h> 4043#endif 4044 Syntax error 4045_ACEOF 4046if ac_fn_c_try_cpp "$LINENO"; then : 4047 4048else 4049 # Broken: fails on valid input. 4050continue 4051fi 4052rm -f conftest.err conftest.i conftest.$ac_ext 4053 4054 # OK, works on sane cases. Now check whether nonexistent headers 4055 # can be detected and how. 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058#include <ac_nonexistent.h> 4059_ACEOF 4060if ac_fn_c_try_cpp "$LINENO"; then : 4061 # Broken: success on invalid input. 4062continue 4063else 4064 # Passes both tests. 4065ac_preproc_ok=: 4066break 4067fi 4068rm -f conftest.err conftest.i conftest.$ac_ext 4069 4070done 4071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4072rm -f conftest.i conftest.err conftest.$ac_ext 4073if $ac_preproc_ok; then : 4074 4075else 4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4078as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4079See \`config.log' for more details" "$LINENO" 5; } 4080fi 4081 4082ac_ext=c 4083ac_cpp='$CPP $CPPFLAGS' 4084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4086ac_compiler_gnu=$ac_cv_c_compiler_gnu 4087 4088 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4090$as_echo_n "checking whether ln -s works... " >&6; } 4091LN_S=$as_ln_s 4092if test "$LN_S" = "ln -s"; then 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4094$as_echo "yes" >&6; } 4095else 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4097$as_echo "no, using $LN_S" >&6; } 4098fi 4099 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4101$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4102set x ${MAKE-make} 4103ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4104if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4105 $as_echo_n "(cached) " >&6 4106else 4107 cat >conftest.make <<\_ACEOF 4108SHELL = /bin/sh 4109all: 4110 @echo '@@@%%%=$(MAKE)=@@@%%%' 4111_ACEOF 4112# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4113case `${MAKE-make} -f conftest.make 2>/dev/null` in 4114 *@@@%%%=?*=@@@%%%*) 4115 eval ac_cv_prog_make_${ac_make}_set=yes;; 4116 *) 4117 eval ac_cv_prog_make_${ac_make}_set=no;; 4118esac 4119rm -f conftest.make 4120fi 4121if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4123$as_echo "yes" >&6; } 4124 SET_MAKE= 4125else 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4127$as_echo "no" >&6; } 4128 SET_MAKE="MAKE=${MAKE-make}" 4129fi 4130 4131 4132ac_ext=c 4133ac_cpp='$CPP $CPPFLAGS' 4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4136ac_compiler_gnu=$ac_cv_c_compiler_gnu 4137if test -n "$ac_tool_prefix"; then 4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4139set dummy ${ac_tool_prefix}gcc; ac_word=$2 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4141$as_echo_n "checking for $ac_word... " >&6; } 4142if ${ac_cv_prog_CC+:} false; then : 4143 $as_echo_n "(cached) " >&6 4144else 4145 if test -n "$CC"; then 4146 ac_cv_prog_CC="$CC" # Let the user override the test. 4147else 4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4149for as_dir in $PATH 4150do 4151 IFS=$as_save_IFS 4152 test -z "$as_dir" && as_dir=. 4153 for ac_exec_ext in '' $ac_executable_extensions; do 4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4155 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4157 break 2 4158 fi 4159done 4160 done 4161IFS=$as_save_IFS 4162 4163fi 4164fi 4165CC=$ac_cv_prog_CC 4166if test -n "$CC"; then 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4168$as_echo "$CC" >&6; } 4169else 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4171$as_echo "no" >&6; } 4172fi 4173 4174 4175fi 4176if test -z "$ac_cv_prog_CC"; then 4177 ac_ct_CC=$CC 4178 # Extract the first word of "gcc", so it can be a program name with args. 4179set dummy gcc; ac_word=$2 4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4181$as_echo_n "checking for $ac_word... " >&6; } 4182if ${ac_cv_prog_ac_ct_CC+:} false; then : 4183 $as_echo_n "(cached) " >&6 4184else 4185 if test -n "$ac_ct_CC"; then 4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4187else 4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4189for as_dir in $PATH 4190do 4191 IFS=$as_save_IFS 4192 test -z "$as_dir" && as_dir=. 4193 for ac_exec_ext in '' $ac_executable_extensions; do 4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4195 ac_cv_prog_ac_ct_CC="gcc" 4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4197 break 2 4198 fi 4199done 4200 done 4201IFS=$as_save_IFS 4202 4203fi 4204fi 4205ac_ct_CC=$ac_cv_prog_ac_ct_CC 4206if test -n "$ac_ct_CC"; then 4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4208$as_echo "$ac_ct_CC" >&6; } 4209else 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4211$as_echo "no" >&6; } 4212fi 4213 4214 if test "x$ac_ct_CC" = x; then 4215 CC="" 4216 else 4217 case $cross_compiling:$ac_tool_warned in 4218yes:) 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4221ac_tool_warned=yes ;; 4222esac 4223 CC=$ac_ct_CC 4224 fi 4225else 4226 CC="$ac_cv_prog_CC" 4227fi 4228 4229if test -z "$CC"; then 4230 if test -n "$ac_tool_prefix"; then 4231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4232set dummy ${ac_tool_prefix}cc; ac_word=$2 4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4234$as_echo_n "checking for $ac_word... " >&6; } 4235if ${ac_cv_prog_CC+:} false; then : 4236 $as_echo_n "(cached) " >&6 4237else 4238 if test -n "$CC"; then 4239 ac_cv_prog_CC="$CC" # Let the user override the test. 4240else 4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4242for as_dir in $PATH 4243do 4244 IFS=$as_save_IFS 4245 test -z "$as_dir" && as_dir=. 4246 for ac_exec_ext in '' $ac_executable_extensions; do 4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4248 ac_cv_prog_CC="${ac_tool_prefix}cc" 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4250 break 2 4251 fi 4252done 4253 done 4254IFS=$as_save_IFS 4255 4256fi 4257fi 4258CC=$ac_cv_prog_CC 4259if test -n "$CC"; then 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4261$as_echo "$CC" >&6; } 4262else 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4264$as_echo "no" >&6; } 4265fi 4266 4267 4268 fi 4269fi 4270if test -z "$CC"; then 4271 # Extract the first word of "cc", so it can be a program name with args. 4272set dummy cc; ac_word=$2 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4274$as_echo_n "checking for $ac_word... " >&6; } 4275if ${ac_cv_prog_CC+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 if test -n "$CC"; then 4279 ac_cv_prog_CC="$CC" # Let the user override the test. 4280else 4281 ac_prog_rejected=no 4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4283for as_dir in $PATH 4284do 4285 IFS=$as_save_IFS 4286 test -z "$as_dir" && as_dir=. 4287 for ac_exec_ext in '' $ac_executable_extensions; do 4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4290 ac_prog_rejected=yes 4291 continue 4292 fi 4293 ac_cv_prog_CC="cc" 4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4295 break 2 4296 fi 4297done 4298 done 4299IFS=$as_save_IFS 4300 4301if test $ac_prog_rejected = yes; then 4302 # We found a bogon in the path, so make sure we never use it. 4303 set dummy $ac_cv_prog_CC 4304 shift 4305 if test $# != 0; then 4306 # We chose a different compiler from the bogus one. 4307 # However, it has the same basename, so the bogon will be chosen 4308 # first if we set CC to just the basename; use the full file name. 4309 shift 4310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4311 fi 4312fi 4313fi 4314fi 4315CC=$ac_cv_prog_CC 4316if test -n "$CC"; then 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4318$as_echo "$CC" >&6; } 4319else 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4321$as_echo "no" >&6; } 4322fi 4323 4324 4325fi 4326if test -z "$CC"; then 4327 if test -n "$ac_tool_prefix"; then 4328 for ac_prog in cl.exe 4329 do 4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4331set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4333$as_echo_n "checking for $ac_word... " >&6; } 4334if ${ac_cv_prog_CC+:} false; then : 4335 $as_echo_n "(cached) " >&6 4336else 4337 if test -n "$CC"; then 4338 ac_cv_prog_CC="$CC" # Let the user override the test. 4339else 4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH 4342do 4343 IFS=$as_save_IFS 4344 test -z "$as_dir" && as_dir=. 4345 for ac_exec_ext in '' $ac_executable_extensions; do 4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4349 break 2 4350 fi 4351done 4352 done 4353IFS=$as_save_IFS 4354 4355fi 4356fi 4357CC=$ac_cv_prog_CC 4358if test -n "$CC"; then 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4360$as_echo "$CC" >&6; } 4361else 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4363$as_echo "no" >&6; } 4364fi 4365 4366 4367 test -n "$CC" && break 4368 done 4369fi 4370if test -z "$CC"; then 4371 ac_ct_CC=$CC 4372 for ac_prog in cl.exe 4373do 4374 # Extract the first word of "$ac_prog", so it can be a program name with args. 4375set dummy $ac_prog; ac_word=$2 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4377$as_echo_n "checking for $ac_word... " >&6; } 4378if ${ac_cv_prog_ac_ct_CC+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 if test -n "$ac_ct_CC"; then 4382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4383else 4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385for as_dir in $PATH 4386do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4391 ac_cv_prog_ac_ct_CC="$ac_prog" 4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4393 break 2 4394 fi 4395done 4396 done 4397IFS=$as_save_IFS 4398 4399fi 4400fi 4401ac_ct_CC=$ac_cv_prog_ac_ct_CC 4402if test -n "$ac_ct_CC"; then 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4404$as_echo "$ac_ct_CC" >&6; } 4405else 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4407$as_echo "no" >&6; } 4408fi 4409 4410 4411 test -n "$ac_ct_CC" && break 4412done 4413 4414 if test "x$ac_ct_CC" = x; then 4415 CC="" 4416 else 4417 case $cross_compiling:$ac_tool_warned in 4418yes:) 4419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4421ac_tool_warned=yes ;; 4422esac 4423 CC=$ac_ct_CC 4424 fi 4425fi 4426 4427fi 4428 4429 4430test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4432as_fn_error $? "no acceptable C compiler found in \$PATH 4433See \`config.log' for more details" "$LINENO" 5; } 4434 4435# Provide some information about the compiler. 4436$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4437set X $ac_compile 4438ac_compiler=$2 4439for ac_option in --version -v -V -qversion; do 4440 { { ac_try="$ac_compiler $ac_option >&5" 4441case "(($ac_try" in 4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4443 *) ac_try_echo=$ac_try;; 4444esac 4445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4446$as_echo "$ac_try_echo"; } >&5 4447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4448 ac_status=$? 4449 if test -s conftest.err; then 4450 sed '10a\ 4451... rest of stderr output deleted ... 4452 10q' conftest.err >conftest.er1 4453 cat conftest.er1 >&5 4454 fi 4455 rm -f conftest.er1 conftest.err 4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4457 test $ac_status = 0; } 4458done 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4461$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4462if ${ac_cv_c_compiler_gnu+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4466/* end confdefs.h. */ 4467 4468int 4469main () 4470{ 4471#ifndef __GNUC__ 4472 choke me 4473#endif 4474 4475 ; 4476 return 0; 4477} 4478_ACEOF 4479if ac_fn_c_try_compile "$LINENO"; then : 4480 ac_compiler_gnu=yes 4481else 4482 ac_compiler_gnu=no 4483fi 4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4485ac_cv_c_compiler_gnu=$ac_compiler_gnu 4486 4487fi 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4489$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4490if test $ac_compiler_gnu = yes; then 4491 GCC=yes 4492else 4493 GCC= 4494fi 4495ac_test_CFLAGS=${CFLAGS+set} 4496ac_save_CFLAGS=$CFLAGS 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4498$as_echo_n "checking whether $CC accepts -g... " >&6; } 4499if ${ac_cv_prog_cc_g+:} false; then : 4500 $as_echo_n "(cached) " >&6 4501else 4502 ac_save_c_werror_flag=$ac_c_werror_flag 4503 ac_c_werror_flag=yes 4504 ac_cv_prog_cc_g=no 4505 CFLAGS="-g" 4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4507/* end confdefs.h. */ 4508 4509int 4510main () 4511{ 4512 4513 ; 4514 return 0; 4515} 4516_ACEOF 4517if ac_fn_c_try_compile "$LINENO"; then : 4518 ac_cv_prog_cc_g=yes 4519else 4520 CFLAGS="" 4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4522/* end confdefs.h. */ 4523 4524int 4525main () 4526{ 4527 4528 ; 4529 return 0; 4530} 4531_ACEOF 4532if ac_fn_c_try_compile "$LINENO"; then : 4533 4534else 4535 ac_c_werror_flag=$ac_save_c_werror_flag 4536 CFLAGS="-g" 4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4538/* end confdefs.h. */ 4539 4540int 4541main () 4542{ 4543 4544 ; 4545 return 0; 4546} 4547_ACEOF 4548if ac_fn_c_try_compile "$LINENO"; then : 4549 ac_cv_prog_cc_g=yes 4550fi 4551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4552fi 4553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4554fi 4555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4556 ac_c_werror_flag=$ac_save_c_werror_flag 4557fi 4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4559$as_echo "$ac_cv_prog_cc_g" >&6; } 4560if test "$ac_test_CFLAGS" = set; then 4561 CFLAGS=$ac_save_CFLAGS 4562elif test $ac_cv_prog_cc_g = yes; then 4563 if test "$GCC" = yes; then 4564 CFLAGS="-g -O2" 4565 else 4566 CFLAGS="-g" 4567 fi 4568else 4569 if test "$GCC" = yes; then 4570 CFLAGS="-O2" 4571 else 4572 CFLAGS= 4573 fi 4574fi 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4576$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4577if ${ac_cv_prog_cc_c89+:} false; then : 4578 $as_echo_n "(cached) " >&6 4579else 4580 ac_cv_prog_cc_c89=no 4581ac_save_CC=$CC 4582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4583/* end confdefs.h. */ 4584#include <stdarg.h> 4585#include <stdio.h> 4586struct stat; 4587/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4588struct buf { int x; }; 4589FILE * (*rcsopen) (struct buf *, struct stat *, int); 4590static char *e (p, i) 4591 char **p; 4592 int i; 4593{ 4594 return p[i]; 4595} 4596static char *f (char * (*g) (char **, int), char **p, ...) 4597{ 4598 char *s; 4599 va_list v; 4600 va_start (v,p); 4601 s = g (p, va_arg (v,int)); 4602 va_end (v); 4603 return s; 4604} 4605 4606/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4607 function prototypes and stuff, but not '\xHH' hex character constants. 4608 These don't provoke an error unfortunately, instead are silently treated 4609 as 'x'. The following induces an error, until -std is added to get 4610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4611 array size at least. It's necessary to write '\x00'==0 to get something 4612 that's true only with -std. */ 4613int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4614 4615/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4616 inside strings and character constants. */ 4617#define FOO(x) 'x' 4618int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4619 4620int test (int i, double x); 4621struct s1 {int (*f) (int a);}; 4622struct s2 {int (*f) (double a);}; 4623int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4624int argc; 4625char **argv; 4626int 4627main () 4628{ 4629return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4630 ; 4631 return 0; 4632} 4633_ACEOF 4634for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4635 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4636do 4637 CC="$ac_save_CC $ac_arg" 4638 if ac_fn_c_try_compile "$LINENO"; then : 4639 ac_cv_prog_cc_c89=$ac_arg 4640fi 4641rm -f core conftest.err conftest.$ac_objext 4642 test "x$ac_cv_prog_cc_c89" != "xno" && break 4643done 4644rm -f conftest.$ac_ext 4645CC=$ac_save_CC 4646 4647fi 4648# AC_CACHE_VAL 4649case "x$ac_cv_prog_cc_c89" in 4650 x) 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4652$as_echo "none needed" >&6; } ;; 4653 xno) 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4655$as_echo "unsupported" >&6; } ;; 4656 *) 4657 CC="$CC $ac_cv_prog_cc_c89" 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4659$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4660esac 4661if test "x$ac_cv_prog_cc_c89" != xno; then : 4662 4663fi 4664 4665ac_ext=c 4666ac_cpp='$CPP $CPPFLAGS' 4667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4669ac_compiler_gnu=$ac_cv_c_compiler_gnu 4670 4671depcc="$CC" am_compiler_list= 4672 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4674$as_echo_n "checking dependency style of $depcc... " >&6; } 4675if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4676 $as_echo_n "(cached) " >&6 4677else 4678 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4679 # We make a subdir and do the tests there. Otherwise we can end up 4680 # making bogus files that we don't know about and never remove. For 4681 # instance it was reported that on HP-UX the gcc test will end up 4682 # making a dummy file named 'D' -- because '-MD' means "put the output 4683 # in D". 4684 rm -rf conftest.dir 4685 mkdir conftest.dir 4686 # Copy depcomp to subdir because otherwise we won't find it if we're 4687 # using a relative directory. 4688 cp "$am_depcomp" conftest.dir 4689 cd conftest.dir 4690 # We will build objects and dependencies in a subdirectory because 4691 # it helps to detect inapplicable dependency modes. For instance 4692 # both Tru64's cc and ICC support -MD to output dependencies as a 4693 # side effect of compilation, but ICC will put the dependencies in 4694 # the current directory while Tru64 will put them in the object 4695 # directory. 4696 mkdir sub 4697 4698 am_cv_CC_dependencies_compiler_type=none 4699 if test "$am_compiler_list" = ""; then 4700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4701 fi 4702 am__universal=false 4703 case " $depcc " in #( 4704 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4705 esac 4706 4707 for depmode in $am_compiler_list; do 4708 # Setup a source with many dependencies, because some compilers 4709 # like to wrap large dependency lists on column 80 (with \), and 4710 # we should not choose a depcomp mode which is confused by this. 4711 # 4712 # We need to recreate these files for each test, as the compiler may 4713 # overwrite some of them when testing with obscure command lines. 4714 # This happens at least with the AIX C compiler. 4715 : > sub/conftest.c 4716 for i in 1 2 3 4 5 6; do 4717 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4718 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4719 # Solaris 10 /bin/sh. 4720 echo '/* dummy */' > sub/conftst$i.h 4721 done 4722 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4723 4724 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4725 # mode. It turns out that the SunPro C++ compiler does not properly 4726 # handle '-M -o', and we need to detect this. Also, some Intel 4727 # versions had trouble with output in subdirs. 4728 am__obj=sub/conftest.${OBJEXT-o} 4729 am__minus_obj="-o $am__obj" 4730 case $depmode in 4731 gcc) 4732 # This depmode causes a compiler race in universal mode. 4733 test "$am__universal" = false || continue 4734 ;; 4735 nosideeffect) 4736 # After this tag, mechanisms are not by side-effect, so they'll 4737 # only be used when explicitly requested. 4738 if test "x$enable_dependency_tracking" = xyes; then 4739 continue 4740 else 4741 break 4742 fi 4743 ;; 4744 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4745 # This compiler won't grok '-c -o', but also, the minuso test has 4746 # not run yet. These depmodes are late enough in the game, and 4747 # so weak that their functioning should not be impacted. 4748 am__obj=conftest.${OBJEXT-o} 4749 am__minus_obj= 4750 ;; 4751 none) break ;; 4752 esac 4753 if depmode=$depmode \ 4754 source=sub/conftest.c object=$am__obj \ 4755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4756 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4757 >/dev/null 2>conftest.err && 4758 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4760 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4762 # icc doesn't choke on unknown options, it will just issue warnings 4763 # or remarks (even with -Werror). So we grep stderr for any message 4764 # that says an option was ignored or not supported. 4765 # When given -MP, icc 7.0 and 7.1 complain thusly: 4766 # icc: Command line warning: ignoring option '-M'; no argument required 4767 # The diagnosis changed in icc 8.0: 4768 # icc: Command line remark: option '-MP' not supported 4769 if (grep 'ignoring option' conftest.err || 4770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4771 am_cv_CC_dependencies_compiler_type=$depmode 4772 break 4773 fi 4774 fi 4775 done 4776 4777 cd .. 4778 rm -rf conftest.dir 4779else 4780 am_cv_CC_dependencies_compiler_type=none 4781fi 4782 4783fi 4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4785$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4786CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4787 4788 if 4789 test "x$enable_dependency_tracking" != xno \ 4790 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4791 am__fastdepCC_TRUE= 4792 am__fastdepCC_FALSE='#' 4793else 4794 am__fastdepCC_TRUE='#' 4795 am__fastdepCC_FALSE= 4796fi 4797 4798 4799 4800am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc 4801 4802 4803 4804 4805 4806 4807enable_win32_dll=yes 4808 4809case $host in 4810*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4811 if test -n "$ac_tool_prefix"; then 4812 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4813set dummy ${ac_tool_prefix}as; ac_word=$2 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4815$as_echo_n "checking for $ac_word... " >&6; } 4816if ${ac_cv_prog_AS+:} false; then : 4817 $as_echo_n "(cached) " >&6 4818else 4819 if test -n "$AS"; then 4820 ac_cv_prog_AS="$AS" # Let the user override the test. 4821else 4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4823for as_dir in $PATH 4824do 4825 IFS=$as_save_IFS 4826 test -z "$as_dir" && as_dir=. 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4829 ac_cv_prog_AS="${ac_tool_prefix}as" 4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4831 break 2 4832 fi 4833done 4834 done 4835IFS=$as_save_IFS 4836 4837fi 4838fi 4839AS=$ac_cv_prog_AS 4840if test -n "$AS"; then 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4842$as_echo "$AS" >&6; } 4843else 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4845$as_echo "no" >&6; } 4846fi 4847 4848 4849fi 4850if test -z "$ac_cv_prog_AS"; then 4851 ac_ct_AS=$AS 4852 # Extract the first word of "as", so it can be a program name with args. 4853set dummy as; ac_word=$2 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4855$as_echo_n "checking for $ac_word... " >&6; } 4856if ${ac_cv_prog_ac_ct_AS+:} false; then : 4857 $as_echo_n "(cached) " >&6 4858else 4859 if test -n "$ac_ct_AS"; then 4860 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4861else 4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4863for as_dir in $PATH 4864do 4865 IFS=$as_save_IFS 4866 test -z "$as_dir" && as_dir=. 4867 for ac_exec_ext in '' $ac_executable_extensions; do 4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4869 ac_cv_prog_ac_ct_AS="as" 4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4871 break 2 4872 fi 4873done 4874 done 4875IFS=$as_save_IFS 4876 4877fi 4878fi 4879ac_ct_AS=$ac_cv_prog_ac_ct_AS 4880if test -n "$ac_ct_AS"; then 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4882$as_echo "$ac_ct_AS" >&6; } 4883else 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4885$as_echo "no" >&6; } 4886fi 4887 4888 if test "x$ac_ct_AS" = x; then 4889 AS="false" 4890 else 4891 case $cross_compiling:$ac_tool_warned in 4892yes:) 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4895ac_tool_warned=yes ;; 4896esac 4897 AS=$ac_ct_AS 4898 fi 4899else 4900 AS="$ac_cv_prog_AS" 4901fi 4902 4903 if test -n "$ac_tool_prefix"; then 4904 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4905set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4907$as_echo_n "checking for $ac_word... " >&6; } 4908if ${ac_cv_prog_DLLTOOL+:} false; then : 4909 $as_echo_n "(cached) " >&6 4910else 4911 if test -n "$DLLTOOL"; then 4912 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4913else 4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4915for as_dir in $PATH 4916do 4917 IFS=$as_save_IFS 4918 test -z "$as_dir" && as_dir=. 4919 for ac_exec_ext in '' $ac_executable_extensions; do 4920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4921 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4923 break 2 4924 fi 4925done 4926 done 4927IFS=$as_save_IFS 4928 4929fi 4930fi 4931DLLTOOL=$ac_cv_prog_DLLTOOL 4932if test -n "$DLLTOOL"; then 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4934$as_echo "$DLLTOOL" >&6; } 4935else 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4937$as_echo "no" >&6; } 4938fi 4939 4940 4941fi 4942if test -z "$ac_cv_prog_DLLTOOL"; then 4943 ac_ct_DLLTOOL=$DLLTOOL 4944 # Extract the first word of "dlltool", so it can be a program name with args. 4945set dummy dlltool; ac_word=$2 4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4947$as_echo_n "checking for $ac_word... " >&6; } 4948if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 if test -n "$ac_ct_DLLTOOL"; then 4952 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4953else 4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4955for as_dir in $PATH 4956do 4957 IFS=$as_save_IFS 4958 test -z "$as_dir" && as_dir=. 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4961 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4963 break 2 4964 fi 4965done 4966 done 4967IFS=$as_save_IFS 4968 4969fi 4970fi 4971ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4972if test -n "$ac_ct_DLLTOOL"; then 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4974$as_echo "$ac_ct_DLLTOOL" >&6; } 4975else 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977$as_echo "no" >&6; } 4978fi 4979 4980 if test "x$ac_ct_DLLTOOL" = x; then 4981 DLLTOOL="false" 4982 else 4983 case $cross_compiling:$ac_tool_warned in 4984yes:) 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4987ac_tool_warned=yes ;; 4988esac 4989 DLLTOOL=$ac_ct_DLLTOOL 4990 fi 4991else 4992 DLLTOOL="$ac_cv_prog_DLLTOOL" 4993fi 4994 4995 if test -n "$ac_tool_prefix"; then 4996 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4997set dummy ${ac_tool_prefix}objdump; ac_word=$2 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4999$as_echo_n "checking for $ac_word... " >&6; } 5000if ${ac_cv_prog_OBJDUMP+:} false; then : 5001 $as_echo_n "(cached) " >&6 5002else 5003 if test -n "$OBJDUMP"; then 5004 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5005else 5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5007for as_dir in $PATH 5008do 5009 IFS=$as_save_IFS 5010 test -z "$as_dir" && as_dir=. 5011 for ac_exec_ext in '' $ac_executable_extensions; do 5012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5013 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5015 break 2 5016 fi 5017done 5018 done 5019IFS=$as_save_IFS 5020 5021fi 5022fi 5023OBJDUMP=$ac_cv_prog_OBJDUMP 5024if test -n "$OBJDUMP"; then 5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5026$as_echo "$OBJDUMP" >&6; } 5027else 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5029$as_echo "no" >&6; } 5030fi 5031 5032 5033fi 5034if test -z "$ac_cv_prog_OBJDUMP"; then 5035 ac_ct_OBJDUMP=$OBJDUMP 5036 # Extract the first word of "objdump", so it can be a program name with args. 5037set dummy objdump; ac_word=$2 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5039$as_echo_n "checking for $ac_word... " >&6; } 5040if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5041 $as_echo_n "(cached) " >&6 5042else 5043 if test -n "$ac_ct_OBJDUMP"; then 5044 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5045else 5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5047for as_dir in $PATH 5048do 5049 IFS=$as_save_IFS 5050 test -z "$as_dir" && as_dir=. 5051 for ac_exec_ext in '' $ac_executable_extensions; do 5052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5053 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5055 break 2 5056 fi 5057done 5058 done 5059IFS=$as_save_IFS 5060 5061fi 5062fi 5063ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5064if test -n "$ac_ct_OBJDUMP"; then 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5066$as_echo "$ac_ct_OBJDUMP" >&6; } 5067else 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5069$as_echo "no" >&6; } 5070fi 5071 5072 if test "x$ac_ct_OBJDUMP" = x; then 5073 OBJDUMP="false" 5074 else 5075 case $cross_compiling:$ac_tool_warned in 5076yes:) 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5079ac_tool_warned=yes ;; 5080esac 5081 OBJDUMP=$ac_ct_OBJDUMP 5082 fi 5083else 5084 OBJDUMP="$ac_cv_prog_OBJDUMP" 5085fi 5086 5087 ;; 5088esac 5089 5090test -z "$AS" && AS=as 5091 5092 5093 5094 5095 5096test -z "$DLLTOOL" && DLLTOOL=dlltool 5097 5098 5099 5100 5101 5102test -z "$OBJDUMP" && OBJDUMP=objdump 5103 5104 5105 5106 5107 5108 5109 5110case `pwd` in 5111 *\ * | *\ *) 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5113$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5114esac 5115 5116 5117 5118macro_version='2.4' 5119macro_revision='1.3293' 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133ltmain="$ac_aux_dir/ltmain.sh" 5134 5135# Backslashify metacharacters that are still active within 5136# double-quoted strings. 5137sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5138 5139# Same as above, but do not quote variable references. 5140double_quote_subst='s/\(["`\\]\)/\\\1/g' 5141 5142# Sed substitution to delay expansion of an escaped shell variable in a 5143# double_quote_subst'ed string. 5144delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5145 5146# Sed substitution to delay expansion of an escaped single quote. 5147delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5148 5149# Sed substitution to avoid accidental globbing in evaled expressions 5150no_glob_subst='s/\*/\\\*/g' 5151 5152ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5153ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5154ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5155 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5157$as_echo_n "checking how to print strings... " >&6; } 5158# Test print first, because it will be a builtin if present. 5159if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5160 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5161 ECHO='print -r --' 5162elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5163 ECHO='printf %s\n' 5164else 5165 # Use this function as a fallback that always works. 5166 func_fallback_echo () 5167 { 5168 eval 'cat <<_LTECHO_EOF 5169$1 5170_LTECHO_EOF' 5171 } 5172 ECHO='func_fallback_echo' 5173fi 5174 5175# func_echo_all arg... 5176# Invoke $ECHO with all args, space-separated. 5177func_echo_all () 5178{ 5179 $ECHO "" 5180} 5181 5182case "$ECHO" in 5183 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5184$as_echo "printf" >&6; } ;; 5185 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5186$as_echo "print -r" >&6; } ;; 5187 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5188$as_echo "cat" >&6; } ;; 5189esac 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5205$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5206if ${ac_cv_path_SED+:} false; then : 5207 $as_echo_n "(cached) " >&6 5208else 5209 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5210 for ac_i in 1 2 3 4 5 6 7; do 5211 ac_script="$ac_script$as_nl$ac_script" 5212 done 5213 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5214 { ac_script=; unset ac_script;} 5215 if test -z "$SED"; then 5216 ac_path_SED_found=false 5217 # Loop through the user's path and test for each of PROGNAME-LIST 5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5219for as_dir in $PATH 5220do 5221 IFS=$as_save_IFS 5222 test -z "$as_dir" && as_dir=. 5223 for ac_prog in sed gsed; do 5224 for ac_exec_ext in '' $ac_executable_extensions; do 5225 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5226 as_fn_executable_p "$ac_path_SED" || continue 5227# Check for GNU ac_path_SED and select it if it is found. 5228 # Check for GNU $ac_path_SED 5229case `"$ac_path_SED" --version 2>&1` in 5230*GNU*) 5231 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5232*) 5233 ac_count=0 5234 $as_echo_n 0123456789 >"conftest.in" 5235 while : 5236 do 5237 cat "conftest.in" "conftest.in" >"conftest.tmp" 5238 mv "conftest.tmp" "conftest.in" 5239 cp "conftest.in" "conftest.nl" 5240 $as_echo '' >> "conftest.nl" 5241 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5243 as_fn_arith $ac_count + 1 && ac_count=$as_val 5244 if test $ac_count -gt ${ac_path_SED_max-0}; then 5245 # Best one so far, save it but keep looking for a better one 5246 ac_cv_path_SED="$ac_path_SED" 5247 ac_path_SED_max=$ac_count 5248 fi 5249 # 10*(2^10) chars as input seems more than enough 5250 test $ac_count -gt 10 && break 5251 done 5252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5253esac 5254 5255 $ac_path_SED_found && break 3 5256 done 5257 done 5258 done 5259IFS=$as_save_IFS 5260 if test -z "$ac_cv_path_SED"; then 5261 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5262 fi 5263else 5264 ac_cv_path_SED=$SED 5265fi 5266 5267fi 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5269$as_echo "$ac_cv_path_SED" >&6; } 5270 SED="$ac_cv_path_SED" 5271 rm -f conftest.sed 5272 5273test -z "$SED" && SED=sed 5274Xsed="$SED -e 1s/^X//" 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5287$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5288if ${ac_cv_path_GREP+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 if test -z "$GREP"; then 5292 ac_path_GREP_found=false 5293 # Loop through the user's path and test for each of PROGNAME-LIST 5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_prog in grep ggrep; do 5300 for ac_exec_ext in '' $ac_executable_extensions; do 5301 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5302 as_fn_executable_p "$ac_path_GREP" || continue 5303# Check for GNU ac_path_GREP and select it if it is found. 5304 # Check for GNU $ac_path_GREP 5305case `"$ac_path_GREP" --version 2>&1` in 5306*GNU*) 5307 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5308*) 5309 ac_count=0 5310 $as_echo_n 0123456789 >"conftest.in" 5311 while : 5312 do 5313 cat "conftest.in" "conftest.in" >"conftest.tmp" 5314 mv "conftest.tmp" "conftest.in" 5315 cp "conftest.in" "conftest.nl" 5316 $as_echo 'GREP' >> "conftest.nl" 5317 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5319 as_fn_arith $ac_count + 1 && ac_count=$as_val 5320 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5321 # Best one so far, save it but keep looking for a better one 5322 ac_cv_path_GREP="$ac_path_GREP" 5323 ac_path_GREP_max=$ac_count 5324 fi 5325 # 10*(2^10) chars as input seems more than enough 5326 test $ac_count -gt 10 && break 5327 done 5328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5329esac 5330 5331 $ac_path_GREP_found && break 3 5332 done 5333 done 5334 done 5335IFS=$as_save_IFS 5336 if test -z "$ac_cv_path_GREP"; then 5337 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5338 fi 5339else 5340 ac_cv_path_GREP=$GREP 5341fi 5342 5343fi 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5345$as_echo "$ac_cv_path_GREP" >&6; } 5346 GREP="$ac_cv_path_GREP" 5347 5348 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5350$as_echo_n "checking for egrep... " >&6; } 5351if ${ac_cv_path_EGREP+:} false; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5355 then ac_cv_path_EGREP="$GREP -E" 5356 else 5357 if test -z "$EGREP"; then 5358 ac_path_EGREP_found=false 5359 # Loop through the user's path and test for each of PROGNAME-LIST 5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5361for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5362do 5363 IFS=$as_save_IFS 5364 test -z "$as_dir" && as_dir=. 5365 for ac_prog in egrep; do 5366 for ac_exec_ext in '' $ac_executable_extensions; do 5367 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5368 as_fn_executable_p "$ac_path_EGREP" || continue 5369# Check for GNU ac_path_EGREP and select it if it is found. 5370 # Check for GNU $ac_path_EGREP 5371case `"$ac_path_EGREP" --version 2>&1` in 5372*GNU*) 5373 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5374*) 5375 ac_count=0 5376 $as_echo_n 0123456789 >"conftest.in" 5377 while : 5378 do 5379 cat "conftest.in" "conftest.in" >"conftest.tmp" 5380 mv "conftest.tmp" "conftest.in" 5381 cp "conftest.in" "conftest.nl" 5382 $as_echo 'EGREP' >> "conftest.nl" 5383 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5385 as_fn_arith $ac_count + 1 && ac_count=$as_val 5386 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5387 # Best one so far, save it but keep looking for a better one 5388 ac_cv_path_EGREP="$ac_path_EGREP" 5389 ac_path_EGREP_max=$ac_count 5390 fi 5391 # 10*(2^10) chars as input seems more than enough 5392 test $ac_count -gt 10 && break 5393 done 5394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5395esac 5396 5397 $ac_path_EGREP_found && break 3 5398 done 5399 done 5400 done 5401IFS=$as_save_IFS 5402 if test -z "$ac_cv_path_EGREP"; then 5403 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5404 fi 5405else 5406 ac_cv_path_EGREP=$EGREP 5407fi 5408 5409 fi 5410fi 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5412$as_echo "$ac_cv_path_EGREP" >&6; } 5413 EGREP="$ac_cv_path_EGREP" 5414 5415 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5417$as_echo_n "checking for fgrep... " >&6; } 5418if ${ac_cv_path_FGREP+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5422 then ac_cv_path_FGREP="$GREP -F" 5423 else 5424 if test -z "$FGREP"; then 5425 ac_path_FGREP_found=false 5426 # Loop through the user's path and test for each of PROGNAME-LIST 5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5429do 5430 IFS=$as_save_IFS 5431 test -z "$as_dir" && as_dir=. 5432 for ac_prog in fgrep; do 5433 for ac_exec_ext in '' $ac_executable_extensions; do 5434 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5435 as_fn_executable_p "$ac_path_FGREP" || continue 5436# Check for GNU ac_path_FGREP and select it if it is found. 5437 # Check for GNU $ac_path_FGREP 5438case `"$ac_path_FGREP" --version 2>&1` in 5439*GNU*) 5440 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5441*) 5442 ac_count=0 5443 $as_echo_n 0123456789 >"conftest.in" 5444 while : 5445 do 5446 cat "conftest.in" "conftest.in" >"conftest.tmp" 5447 mv "conftest.tmp" "conftest.in" 5448 cp "conftest.in" "conftest.nl" 5449 $as_echo 'FGREP' >> "conftest.nl" 5450 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5452 as_fn_arith $ac_count + 1 && ac_count=$as_val 5453 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5454 # Best one so far, save it but keep looking for a better one 5455 ac_cv_path_FGREP="$ac_path_FGREP" 5456 ac_path_FGREP_max=$ac_count 5457 fi 5458 # 10*(2^10) chars as input seems more than enough 5459 test $ac_count -gt 10 && break 5460 done 5461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5462esac 5463 5464 $ac_path_FGREP_found && break 3 5465 done 5466 done 5467 done 5468IFS=$as_save_IFS 5469 if test -z "$ac_cv_path_FGREP"; then 5470 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5471 fi 5472else 5473 ac_cv_path_FGREP=$FGREP 5474fi 5475 5476 fi 5477fi 5478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5479$as_echo "$ac_cv_path_FGREP" >&6; } 5480 FGREP="$ac_cv_path_FGREP" 5481 5482 5483test -z "$GREP" && GREP=grep 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503# Check whether --with-gnu-ld was given. 5504if test "${with_gnu_ld+set}" = set; then : 5505 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5506else 5507 with_gnu_ld=no 5508fi 5509 5510ac_prog=ld 5511if test "$GCC" = yes; then 5512 # Check if gcc -print-prog-name=ld gives a path. 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5514$as_echo_n "checking for ld used by $CC... " >&6; } 5515 case $host in 5516 *-*-mingw*) 5517 # gcc leaves a trailing carriage return which upsets mingw 5518 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5519 *) 5520 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5521 esac 5522 case $ac_prog in 5523 # Accept absolute paths. 5524 [\\/]* | ?:[\\/]*) 5525 re_direlt='/[^/][^/]*/\.\./' 5526 # Canonicalize the pathname of ld 5527 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5528 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5529 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5530 done 5531 test -z "$LD" && LD="$ac_prog" 5532 ;; 5533 "") 5534 # If it fails, then pretend we aren't using GCC. 5535 ac_prog=ld 5536 ;; 5537 *) 5538 # If it is relative, then search for the first ld in PATH. 5539 with_gnu_ld=unknown 5540 ;; 5541 esac 5542elif test "$with_gnu_ld" = yes; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5544$as_echo_n "checking for GNU ld... " >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5547$as_echo_n "checking for non-GNU ld... " >&6; } 5548fi 5549if ${lt_cv_path_LD+:} false; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 if test -z "$LD"; then 5553 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5554 for ac_dir in $PATH; do 5555 IFS="$lt_save_ifs" 5556 test -z "$ac_dir" && ac_dir=. 5557 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5558 lt_cv_path_LD="$ac_dir/$ac_prog" 5559 # Check to see if the program is GNU ld. I'd rather use --version, 5560 # but apparently some variants of GNU ld only accept -v. 5561 # Break only if it was the GNU/non-GNU ld that we prefer. 5562 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5563 *GNU* | *'with BFD'*) 5564 test "$with_gnu_ld" != no && break 5565 ;; 5566 *) 5567 test "$with_gnu_ld" != yes && break 5568 ;; 5569 esac 5570 fi 5571 done 5572 IFS="$lt_save_ifs" 5573else 5574 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5575fi 5576fi 5577 5578LD="$lt_cv_path_LD" 5579if test -n "$LD"; then 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5581$as_echo "$LD" >&6; } 5582else 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5584$as_echo "no" >&6; } 5585fi 5586test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5588$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5589if ${lt_cv_prog_gnu_ld+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5593case `$LD -v 2>&1 </dev/null` in 5594*GNU* | *'with BFD'*) 5595 lt_cv_prog_gnu_ld=yes 5596 ;; 5597*) 5598 lt_cv_prog_gnu_ld=no 5599 ;; 5600esac 5601fi 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5603$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5604with_gnu_ld=$lt_cv_prog_gnu_ld 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5615$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5616if ${lt_cv_path_NM+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618else 5619 if test -n "$NM"; then 5620 # Let the user override the test. 5621 lt_cv_path_NM="$NM" 5622else 5623 lt_nm_to_check="${ac_tool_prefix}nm" 5624 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5625 lt_nm_to_check="$lt_nm_to_check nm" 5626 fi 5627 for lt_tmp_nm in $lt_nm_to_check; do 5628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5629 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5630 IFS="$lt_save_ifs" 5631 test -z "$ac_dir" && ac_dir=. 5632 tmp_nm="$ac_dir/$lt_tmp_nm" 5633 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5634 # Check to see if the nm accepts a BSD-compat flag. 5635 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5636 # nm: unknown option "B" ignored 5637 # Tru64's nm complains that /dev/null is an invalid object file 5638 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5639 */dev/null* | *'Invalid file or object type'*) 5640 lt_cv_path_NM="$tmp_nm -B" 5641 break 5642 ;; 5643 *) 5644 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5645 */dev/null*) 5646 lt_cv_path_NM="$tmp_nm -p" 5647 break 5648 ;; 5649 *) 5650 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5651 continue # so that we can try to find one that supports BSD flags 5652 ;; 5653 esac 5654 ;; 5655 esac 5656 fi 5657 done 5658 IFS="$lt_save_ifs" 5659 done 5660 : ${lt_cv_path_NM=no} 5661fi 5662fi 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5664$as_echo "$lt_cv_path_NM" >&6; } 5665if test "$lt_cv_path_NM" != "no"; then 5666 NM="$lt_cv_path_NM" 5667else 5668 # Didn't find any BSD compatible name lister, look for dumpbin. 5669 if test -n "$DUMPBIN"; then : 5670 # Let the user override the test. 5671 else 5672 if test -n "$ac_tool_prefix"; then 5673 for ac_prog in dumpbin "link -dump" 5674 do 5675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5676set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5678$as_echo_n "checking for $ac_word... " >&6; } 5679if ${ac_cv_prog_DUMPBIN+:} false; then : 5680 $as_echo_n "(cached) " >&6 5681else 5682 if test -n "$DUMPBIN"; then 5683 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5684else 5685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5686for as_dir in $PATH 5687do 5688 IFS=$as_save_IFS 5689 test -z "$as_dir" && as_dir=. 5690 for ac_exec_ext in '' $ac_executable_extensions; do 5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5692 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5694 break 2 5695 fi 5696done 5697 done 5698IFS=$as_save_IFS 5699 5700fi 5701fi 5702DUMPBIN=$ac_cv_prog_DUMPBIN 5703if test -n "$DUMPBIN"; then 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5705$as_echo "$DUMPBIN" >&6; } 5706else 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5708$as_echo "no" >&6; } 5709fi 5710 5711 5712 test -n "$DUMPBIN" && break 5713 done 5714fi 5715if test -z "$DUMPBIN"; then 5716 ac_ct_DUMPBIN=$DUMPBIN 5717 for ac_prog in dumpbin "link -dump" 5718do 5719 # Extract the first word of "$ac_prog", so it can be a program name with args. 5720set dummy $ac_prog; ac_word=$2 5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5722$as_echo_n "checking for $ac_word... " >&6; } 5723if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5724 $as_echo_n "(cached) " >&6 5725else 5726 if test -n "$ac_ct_DUMPBIN"; then 5727 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5728else 5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5730for as_dir in $PATH 5731do 5732 IFS=$as_save_IFS 5733 test -z "$as_dir" && as_dir=. 5734 for ac_exec_ext in '' $ac_executable_extensions; do 5735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5736 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5738 break 2 5739 fi 5740done 5741 done 5742IFS=$as_save_IFS 5743 5744fi 5745fi 5746ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5747if test -n "$ac_ct_DUMPBIN"; then 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5749$as_echo "$ac_ct_DUMPBIN" >&6; } 5750else 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5752$as_echo "no" >&6; } 5753fi 5754 5755 5756 test -n "$ac_ct_DUMPBIN" && break 5757done 5758 5759 if test "x$ac_ct_DUMPBIN" = x; then 5760 DUMPBIN=":" 5761 else 5762 case $cross_compiling:$ac_tool_warned in 5763yes:) 5764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5766ac_tool_warned=yes ;; 5767esac 5768 DUMPBIN=$ac_ct_DUMPBIN 5769 fi 5770fi 5771 5772 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5773 *COFF*) 5774 DUMPBIN="$DUMPBIN -symbols" 5775 ;; 5776 *) 5777 DUMPBIN=: 5778 ;; 5779 esac 5780 fi 5781 5782 if test "$DUMPBIN" != ":"; then 5783 NM="$DUMPBIN" 5784 fi 5785fi 5786test -z "$NM" && NM=nm 5787 5788 5789 5790 5791 5792 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5794$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5795if ${lt_cv_nm_interface+:} false; then : 5796 $as_echo_n "(cached) " >&6 5797else 5798 lt_cv_nm_interface="BSD nm" 5799 echo "int some_variable = 0;" > conftest.$ac_ext 5800 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5801 (eval "$ac_compile" 2>conftest.err) 5802 cat conftest.err >&5 5803 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5804 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5805 cat conftest.err >&5 5806 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5807 cat conftest.out >&5 5808 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5809 lt_cv_nm_interface="MS dumpbin" 5810 fi 5811 rm -f conftest* 5812fi 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5814$as_echo "$lt_cv_nm_interface" >&6; } 5815 5816# find the maximum length of command line arguments 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5818$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5819if ${lt_cv_sys_max_cmd_len+:} false; then : 5820 $as_echo_n "(cached) " >&6 5821else 5822 i=0 5823 teststring="ABCD" 5824 5825 case $build_os in 5826 msdosdjgpp*) 5827 # On DJGPP, this test can blow up pretty badly due to problems in libc 5828 # (any single argument exceeding 2000 bytes causes a buffer overrun 5829 # during glob expansion). Even if it were fixed, the result of this 5830 # check would be larger than it should be. 5831 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5832 ;; 5833 5834 gnu*) 5835 # Under GNU Hurd, this test is not required because there is 5836 # no limit to the length of command line arguments. 5837 # Libtool will interpret -1 as no limit whatsoever 5838 lt_cv_sys_max_cmd_len=-1; 5839 ;; 5840 5841 cygwin* | mingw* | cegcc*) 5842 # On Win9x/ME, this test blows up -- it succeeds, but takes 5843 # about 5 minutes as the teststring grows exponentially. 5844 # Worse, since 9x/ME are not pre-emptively multitasking, 5845 # you end up with a "frozen" computer, even though with patience 5846 # the test eventually succeeds (with a max line length of 256k). 5847 # Instead, let's just punt: use the minimum linelength reported by 5848 # all of the supported platforms: 8192 (on NT/2K/XP). 5849 lt_cv_sys_max_cmd_len=8192; 5850 ;; 5851 5852 mint*) 5853 # On MiNT this can take a long time and run out of memory. 5854 lt_cv_sys_max_cmd_len=8192; 5855 ;; 5856 5857 amigaos*) 5858 # On AmigaOS with pdksh, this test takes hours, literally. 5859 # So we just punt and use a minimum line length of 8192. 5860 lt_cv_sys_max_cmd_len=8192; 5861 ;; 5862 5863 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5864 # This has been around since 386BSD, at least. Likely further. 5865 if test -x /sbin/sysctl; then 5866 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5867 elif test -x /usr/sbin/sysctl; then 5868 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5869 else 5870 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5871 fi 5872 # And add a safety zone 5873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5875 ;; 5876 5877 interix*) 5878 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5879 lt_cv_sys_max_cmd_len=196608 5880 ;; 5881 5882 osf*) 5883 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5884 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5885 # nice to cause kernel panics so lets avoid the loop below. 5886 # First set a reasonable default. 5887 lt_cv_sys_max_cmd_len=16384 5888 # 5889 if test -x /sbin/sysconfig; then 5890 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5891 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5892 esac 5893 fi 5894 ;; 5895 sco3.2v5*) 5896 lt_cv_sys_max_cmd_len=102400 5897 ;; 5898 sysv5* | sco5v6* | sysv4.2uw2*) 5899 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5900 if test -n "$kargmax"; then 5901 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5902 else 5903 lt_cv_sys_max_cmd_len=32768 5904 fi 5905 ;; 5906 *) 5907 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5908 if test -n "$lt_cv_sys_max_cmd_len"; then 5909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5911 else 5912 # Make teststring a little bigger before we do anything with it. 5913 # a 1K string should be a reasonable start. 5914 for i in 1 2 3 4 5 6 7 8 ; do 5915 teststring=$teststring$teststring 5916 done 5917 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5918 # If test is not a shell built-in, we'll probably end up computing a 5919 # maximum length that is only half of the actual maximum length, but 5920 # we can't tell. 5921 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5922 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5923 test $i != 17 # 1/2 MB should be enough 5924 do 5925 i=`expr $i + 1` 5926 teststring=$teststring$teststring 5927 done 5928 # Only check the string length outside the loop. 5929 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5930 teststring= 5931 # Add a significant safety factor because C++ compilers can tack on 5932 # massive amounts of additional arguments before passing them to the 5933 # linker. It appears as though 1/2 is a usable value. 5934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5935 fi 5936 ;; 5937 esac 5938 5939fi 5940 5941if test -n $lt_cv_sys_max_cmd_len ; then 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5943$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5944else 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5946$as_echo "none" >&6; } 5947fi 5948max_cmd_len=$lt_cv_sys_max_cmd_len 5949 5950 5951 5952 5953 5954 5955: ${CP="cp -f"} 5956: ${MV="mv -f"} 5957: ${RM="rm -f"} 5958 5959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5960$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5961# Try some XSI features 5962xsi_shell=no 5963( _lt_dummy="a/b/c" 5964 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5965 = c,a/b,b/c, \ 5966 && eval 'test $(( 1 + 1 )) -eq 2 \ 5967 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5968 && xsi_shell=yes 5969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5970$as_echo "$xsi_shell" >&6; } 5971 5972 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5974$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5975lt_shell_append=no 5976( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5977 >/dev/null 2>&1 \ 5978 && lt_shell_append=yes 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5980$as_echo "$lt_shell_append" >&6; } 5981 5982 5983if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5984 lt_unset=unset 5985else 5986 lt_unset=false 5987fi 5988 5989 5990 5991 5992 5993# test EBCDIC or ASCII 5994case `echo X|tr X '\101'` in 5995 A) # ASCII based system 5996 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5997 lt_SP2NL='tr \040 \012' 5998 lt_NL2SP='tr \015\012 \040\040' 5999 ;; 6000 *) # EBCDIC based system 6001 lt_SP2NL='tr \100 \n' 6002 lt_NL2SP='tr \r\n \100\100' 6003 ;; 6004esac 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6015$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6016if ${lt_cv_to_host_file_cmd+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 case $host in 6020 *-*-mingw* ) 6021 case $build in 6022 *-*-mingw* ) # actually msys 6023 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6024 ;; 6025 *-*-cygwin* ) 6026 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6027 ;; 6028 * ) # otherwise, assume *nix 6029 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6030 ;; 6031 esac 6032 ;; 6033 *-*-cygwin* ) 6034 case $build in 6035 *-*-mingw* ) # actually msys 6036 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6037 ;; 6038 *-*-cygwin* ) 6039 lt_cv_to_host_file_cmd=func_convert_file_noop 6040 ;; 6041 * ) # otherwise, assume *nix 6042 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6043 ;; 6044 esac 6045 ;; 6046 * ) # unhandled hosts (and "normal" native builds) 6047 lt_cv_to_host_file_cmd=func_convert_file_noop 6048 ;; 6049esac 6050 6051fi 6052 6053to_host_file_cmd=$lt_cv_to_host_file_cmd 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6055$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6056 6057 6058 6059 6060 6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6062$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6063if ${lt_cv_to_tool_file_cmd+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065else 6066 #assume ordinary cross tools, or native build. 6067lt_cv_to_tool_file_cmd=func_convert_file_noop 6068case $host in 6069 *-*-mingw* ) 6070 case $build in 6071 *-*-mingw* ) # actually msys 6072 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6073 ;; 6074 esac 6075 ;; 6076esac 6077 6078fi 6079 6080to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6082$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6083 6084 6085 6086 6087 6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6089$as_echo_n "checking for $LD option to reload object files... " >&6; } 6090if ${lt_cv_ld_reload_flag+:} false; then : 6091 $as_echo_n "(cached) " >&6 6092else 6093 lt_cv_ld_reload_flag='-r' 6094fi 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6096$as_echo "$lt_cv_ld_reload_flag" >&6; } 6097reload_flag=$lt_cv_ld_reload_flag 6098case $reload_flag in 6099"" | " "*) ;; 6100*) reload_flag=" $reload_flag" ;; 6101esac 6102reload_cmds='$LD$reload_flag -o $output$reload_objs' 6103case $host_os in 6104 cygwin* | mingw* | pw32* | cegcc*) 6105 if test "$GCC" != yes; then 6106 reload_cmds=false 6107 fi 6108 ;; 6109 darwin*) 6110 if test "$GCC" = yes; then 6111 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6112 else 6113 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6114 fi 6115 ;; 6116esac 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126if test -n "$ac_tool_prefix"; then 6127 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6128set dummy ${ac_tool_prefix}objdump; ac_word=$2 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6130$as_echo_n "checking for $ac_word... " >&6; } 6131if ${ac_cv_prog_OBJDUMP+:} false; then : 6132 $as_echo_n "(cached) " >&6 6133else 6134 if test -n "$OBJDUMP"; then 6135 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6136else 6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6138for as_dir in $PATH 6139do 6140 IFS=$as_save_IFS 6141 test -z "$as_dir" && as_dir=. 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6144 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148done 6149 done 6150IFS=$as_save_IFS 6151 6152fi 6153fi 6154OBJDUMP=$ac_cv_prog_OBJDUMP 6155if test -n "$OBJDUMP"; then 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6157$as_echo "$OBJDUMP" >&6; } 6158else 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6160$as_echo "no" >&6; } 6161fi 6162 6163 6164fi 6165if test -z "$ac_cv_prog_OBJDUMP"; then 6166 ac_ct_OBJDUMP=$OBJDUMP 6167 # Extract the first word of "objdump", so it can be a program name with args. 6168set dummy objdump; ac_word=$2 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6170$as_echo_n "checking for $ac_word... " >&6; } 6171if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173else 6174 if test -n "$ac_ct_OBJDUMP"; then 6175 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6176else 6177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6178for as_dir in $PATH 6179do 6180 IFS=$as_save_IFS 6181 test -z "$as_dir" && as_dir=. 6182 for ac_exec_ext in '' $ac_executable_extensions; do 6183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6184 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6186 break 2 6187 fi 6188done 6189 done 6190IFS=$as_save_IFS 6191 6192fi 6193fi 6194ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6195if test -n "$ac_ct_OBJDUMP"; then 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6197$as_echo "$ac_ct_OBJDUMP" >&6; } 6198else 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6200$as_echo "no" >&6; } 6201fi 6202 6203 if test "x$ac_ct_OBJDUMP" = x; then 6204 OBJDUMP="false" 6205 else 6206 case $cross_compiling:$ac_tool_warned in 6207yes:) 6208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6210ac_tool_warned=yes ;; 6211esac 6212 OBJDUMP=$ac_ct_OBJDUMP 6213 fi 6214else 6215 OBJDUMP="$ac_cv_prog_OBJDUMP" 6216fi 6217 6218test -z "$OBJDUMP" && OBJDUMP=objdump 6219 6220 6221 6222 6223 6224 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6226$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6227if ${lt_cv_deplibs_check_method+:} false; then : 6228 $as_echo_n "(cached) " >&6 6229else 6230 lt_cv_file_magic_cmd='$MAGIC_CMD' 6231lt_cv_file_magic_test_file= 6232lt_cv_deplibs_check_method='unknown' 6233# Need to set the preceding variable on all platforms that support 6234# interlibrary dependencies. 6235# 'none' -- dependencies not supported. 6236# `unknown' -- same as none, but documents that we really don't know. 6237# 'pass_all' -- all dependencies passed with no checks. 6238# 'test_compile' -- check by making test program. 6239# 'file_magic [[regex]]' -- check by looking for files in library path 6240# which responds to the $file_magic_cmd with a given extended regex. 6241# If you have `file' or equivalent on your system and you're not sure 6242# whether `pass_all' will *always* work, you probably want this one. 6243 6244case $host_os in 6245aix[4-9]*) 6246 lt_cv_deplibs_check_method=pass_all 6247 ;; 6248 6249beos*) 6250 lt_cv_deplibs_check_method=pass_all 6251 ;; 6252 6253bsdi[45]*) 6254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6255 lt_cv_file_magic_cmd='/usr/bin/file -L' 6256 lt_cv_file_magic_test_file=/shlib/libc.so 6257 ;; 6258 6259cygwin*) 6260 # func_win32_libid is a shell function defined in ltmain.sh 6261 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6262 lt_cv_file_magic_cmd='func_win32_libid' 6263 ;; 6264 6265mingw* | pw32*) 6266 # Base MSYS/MinGW do not provide the 'file' command needed by 6267 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6268 # unless we find 'file', for example because we are cross-compiling. 6269 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6270 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6272 lt_cv_file_magic_cmd='func_win32_libid' 6273 else 6274 # Keep this pattern in sync with the one in func_win32_libid. 6275 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6276 lt_cv_file_magic_cmd='$OBJDUMP -f' 6277 fi 6278 ;; 6279 6280cegcc*) 6281 # use the weaker test based on 'objdump'. See mingw*. 6282 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6283 lt_cv_file_magic_cmd='$OBJDUMP -f' 6284 ;; 6285 6286darwin* | rhapsody*) 6287 lt_cv_deplibs_check_method=pass_all 6288 ;; 6289 6290freebsd* | dragonfly*) 6291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6292 case $host_cpu in 6293 i*86 ) 6294 # Not sure whether the presence of OpenBSD here was a mistake. 6295 # Let's accept both of them until this is cleared up. 6296 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6297 lt_cv_file_magic_cmd=/usr/bin/file 6298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6299 ;; 6300 esac 6301 else 6302 lt_cv_deplibs_check_method=pass_all 6303 fi 6304 ;; 6305 6306gnu*) 6307 lt_cv_deplibs_check_method=pass_all 6308 ;; 6309 6310haiku*) 6311 lt_cv_deplibs_check_method=pass_all 6312 ;; 6313 6314hpux10.20* | hpux11*) 6315 lt_cv_file_magic_cmd=/usr/bin/file 6316 case $host_cpu in 6317 ia64*) 6318 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6319 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6320 ;; 6321 hppa*64*) 6322 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]' 6323 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6324 ;; 6325 *) 6326 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6327 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6328 ;; 6329 esac 6330 ;; 6331 6332interix[3-9]*) 6333 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6335 ;; 6336 6337irix5* | irix6* | nonstopux*) 6338 case $LD in 6339 *-32|*"-32 ") libmagic=32-bit;; 6340 *-n32|*"-n32 ") libmagic=N32;; 6341 *-64|*"-64 ") libmagic=64-bit;; 6342 *) libmagic=never-match;; 6343 esac 6344 lt_cv_deplibs_check_method=pass_all 6345 ;; 6346 6347# This must be Linux ELF. 6348linux* | k*bsd*-gnu | kopensolaris*-gnu) 6349 lt_cv_deplibs_check_method=pass_all 6350 ;; 6351 6352netbsd*) 6353 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6355 else 6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6357 fi 6358 ;; 6359 6360newos6*) 6361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6362 lt_cv_file_magic_cmd=/usr/bin/file 6363 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6364 ;; 6365 6366*nto* | *qnx*) 6367 lt_cv_deplibs_check_method=pass_all 6368 ;; 6369 6370openbsd*) 6371 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6373 else 6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6375 fi 6376 ;; 6377 6378osf3* | osf4* | osf5*) 6379 lt_cv_deplibs_check_method=pass_all 6380 ;; 6381 6382rdos*) 6383 lt_cv_deplibs_check_method=pass_all 6384 ;; 6385 6386solaris*) 6387 lt_cv_deplibs_check_method=pass_all 6388 ;; 6389 6390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6391 lt_cv_deplibs_check_method=pass_all 6392 ;; 6393 6394sysv4 | sysv4.3*) 6395 case $host_vendor in 6396 motorola) 6397 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]' 6398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6399 ;; 6400 ncr) 6401 lt_cv_deplibs_check_method=pass_all 6402 ;; 6403 sequent) 6404 lt_cv_file_magic_cmd='/bin/file' 6405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6406 ;; 6407 sni) 6408 lt_cv_file_magic_cmd='/bin/file' 6409 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6410 lt_cv_file_magic_test_file=/lib/libc.so 6411 ;; 6412 siemens) 6413 lt_cv_deplibs_check_method=pass_all 6414 ;; 6415 pc) 6416 lt_cv_deplibs_check_method=pass_all 6417 ;; 6418 esac 6419 ;; 6420 6421tpf*) 6422 lt_cv_deplibs_check_method=pass_all 6423 ;; 6424esac 6425 6426fi 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6428$as_echo "$lt_cv_deplibs_check_method" >&6; } 6429 6430file_magic_glob= 6431want_nocaseglob=no 6432if test "$build" = "$host"; then 6433 case $host_os in 6434 mingw* | pw32*) 6435 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6436 want_nocaseglob=yes 6437 else 6438 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6439 fi 6440 ;; 6441 esac 6442fi 6443 6444file_magic_cmd=$lt_cv_file_magic_cmd 6445deplibs_check_method=$lt_cv_deplibs_check_method 6446test -z "$deplibs_check_method" && deplibs_check_method=unknown 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469if test -n "$ac_tool_prefix"; then 6470 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6471set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6473$as_echo_n "checking for $ac_word... " >&6; } 6474if ${ac_cv_prog_DLLTOOL+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476else 6477 if test -n "$DLLTOOL"; then 6478 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6479else 6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481for as_dir in $PATH 6482do 6483 IFS=$as_save_IFS 6484 test -z "$as_dir" && as_dir=. 6485 for ac_exec_ext in '' $ac_executable_extensions; do 6486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6487 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6489 break 2 6490 fi 6491done 6492 done 6493IFS=$as_save_IFS 6494 6495fi 6496fi 6497DLLTOOL=$ac_cv_prog_DLLTOOL 6498if test -n "$DLLTOOL"; then 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6500$as_echo "$DLLTOOL" >&6; } 6501else 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503$as_echo "no" >&6; } 6504fi 6505 6506 6507fi 6508if test -z "$ac_cv_prog_DLLTOOL"; then 6509 ac_ct_DLLTOOL=$DLLTOOL 6510 # Extract the first word of "dlltool", so it can be a program name with args. 6511set dummy dlltool; ac_word=$2 6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6513$as_echo_n "checking for $ac_word... " >&6; } 6514if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6515 $as_echo_n "(cached) " >&6 6516else 6517 if test -n "$ac_ct_DLLTOOL"; then 6518 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6519else 6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6521for as_dir in $PATH 6522do 6523 IFS=$as_save_IFS 6524 test -z "$as_dir" && as_dir=. 6525 for ac_exec_ext in '' $ac_executable_extensions; do 6526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6527 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6529 break 2 6530 fi 6531done 6532 done 6533IFS=$as_save_IFS 6534 6535fi 6536fi 6537ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6538if test -n "$ac_ct_DLLTOOL"; then 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6540$as_echo "$ac_ct_DLLTOOL" >&6; } 6541else 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6543$as_echo "no" >&6; } 6544fi 6545 6546 if test "x$ac_ct_DLLTOOL" = x; then 6547 DLLTOOL="false" 6548 else 6549 case $cross_compiling:$ac_tool_warned in 6550yes:) 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6553ac_tool_warned=yes ;; 6554esac 6555 DLLTOOL=$ac_ct_DLLTOOL 6556 fi 6557else 6558 DLLTOOL="$ac_cv_prog_DLLTOOL" 6559fi 6560 6561test -z "$DLLTOOL" && DLLTOOL=dlltool 6562 6563 6564 6565 6566 6567 6568 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6570$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6571if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6572 $as_echo_n "(cached) " >&6 6573else 6574 lt_cv_sharedlib_from_linklib_cmd='unknown' 6575 6576case $host_os in 6577cygwin* | mingw* | pw32* | cegcc*) 6578 # two different shell functions defined in ltmain.sh 6579 # decide which to use based on capabilities of $DLLTOOL 6580 case `$DLLTOOL --help 2>&1` in 6581 *--identify-strict*) 6582 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6583 ;; 6584 *) 6585 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6586 ;; 6587 esac 6588 ;; 6589*) 6590 # fallback: assume linklib IS sharedlib 6591 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6592 ;; 6593esac 6594 6595fi 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6597$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6598sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6599test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6600 6601 6602 6603 6604 6605 6606 6607 6608if test -n "$ac_tool_prefix"; then 6609 for ac_prog in ar 6610 do 6611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6612set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6614$as_echo_n "checking for $ac_word... " >&6; } 6615if ${ac_cv_prog_AR+:} false; then : 6616 $as_echo_n "(cached) " >&6 6617else 6618 if test -n "$AR"; then 6619 ac_cv_prog_AR="$AR" # Let the user override the test. 6620else 6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6622for as_dir in $PATH 6623do 6624 IFS=$as_save_IFS 6625 test -z "$as_dir" && as_dir=. 6626 for ac_exec_ext in '' $ac_executable_extensions; do 6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6628 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6630 break 2 6631 fi 6632done 6633 done 6634IFS=$as_save_IFS 6635 6636fi 6637fi 6638AR=$ac_cv_prog_AR 6639if test -n "$AR"; then 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6641$as_echo "$AR" >&6; } 6642else 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6644$as_echo "no" >&6; } 6645fi 6646 6647 6648 test -n "$AR" && break 6649 done 6650fi 6651if test -z "$AR"; then 6652 ac_ct_AR=$AR 6653 for ac_prog in ar 6654do 6655 # Extract the first word of "$ac_prog", so it can be a program name with args. 6656set dummy $ac_prog; ac_word=$2 6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6658$as_echo_n "checking for $ac_word... " >&6; } 6659if ${ac_cv_prog_ac_ct_AR+:} false; then : 6660 $as_echo_n "(cached) " >&6 6661else 6662 if test -n "$ac_ct_AR"; then 6663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6664else 6665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6666for as_dir in $PATH 6667do 6668 IFS=$as_save_IFS 6669 test -z "$as_dir" && as_dir=. 6670 for ac_exec_ext in '' $ac_executable_extensions; do 6671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6672 ac_cv_prog_ac_ct_AR="$ac_prog" 6673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6674 break 2 6675 fi 6676done 6677 done 6678IFS=$as_save_IFS 6679 6680fi 6681fi 6682ac_ct_AR=$ac_cv_prog_ac_ct_AR 6683if test -n "$ac_ct_AR"; then 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6685$as_echo "$ac_ct_AR" >&6; } 6686else 6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6688$as_echo "no" >&6; } 6689fi 6690 6691 6692 test -n "$ac_ct_AR" && break 6693done 6694 6695 if test "x$ac_ct_AR" = x; then 6696 AR="false" 6697 else 6698 case $cross_compiling:$ac_tool_warned in 6699yes:) 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6702ac_tool_warned=yes ;; 6703esac 6704 AR=$ac_ct_AR 6705 fi 6706fi 6707 6708: ${AR=ar} 6709: ${AR_FLAGS=cru} 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6722$as_echo_n "checking for archiver @FILE support... " >&6; } 6723if ${lt_cv_ar_at_file+:} false; then : 6724 $as_echo_n "(cached) " >&6 6725else 6726 lt_cv_ar_at_file=no 6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6728/* end confdefs.h. */ 6729 6730int 6731main () 6732{ 6733 6734 ; 6735 return 0; 6736} 6737_ACEOF 6738if ac_fn_c_try_compile "$LINENO"; then : 6739 echo conftest.$ac_objext > conftest.lst 6740 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6742 (eval $lt_ar_try) 2>&5 6743 ac_status=$? 6744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6745 test $ac_status = 0; } 6746 if test "$ac_status" -eq 0; then 6747 # Ensure the archiver fails upon bogus file names. 6748 rm -f conftest.$ac_objext libconftest.a 6749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6750 (eval $lt_ar_try) 2>&5 6751 ac_status=$? 6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6753 test $ac_status = 0; } 6754 if test "$ac_status" -ne 0; then 6755 lt_cv_ar_at_file=@ 6756 fi 6757 fi 6758 rm -f conftest.* libconftest.a 6759 6760fi 6761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6762 6763fi 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6765$as_echo "$lt_cv_ar_at_file" >&6; } 6766 6767if test "x$lt_cv_ar_at_file" = xno; then 6768 archiver_list_spec= 6769else 6770 archiver_list_spec=$lt_cv_ar_at_file 6771fi 6772 6773 6774 6775 6776 6777 6778 6779if test -n "$ac_tool_prefix"; then 6780 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6781set dummy ${ac_tool_prefix}strip; ac_word=$2 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6783$as_echo_n "checking for $ac_word... " >&6; } 6784if ${ac_cv_prog_STRIP+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786else 6787 if test -n "$STRIP"; then 6788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6789else 6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6791for as_dir in $PATH 6792do 6793 IFS=$as_save_IFS 6794 test -z "$as_dir" && as_dir=. 6795 for ac_exec_ext in '' $ac_executable_extensions; do 6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6797 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6799 break 2 6800 fi 6801done 6802 done 6803IFS=$as_save_IFS 6804 6805fi 6806fi 6807STRIP=$ac_cv_prog_STRIP 6808if test -n "$STRIP"; then 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6810$as_echo "$STRIP" >&6; } 6811else 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6813$as_echo "no" >&6; } 6814fi 6815 6816 6817fi 6818if test -z "$ac_cv_prog_STRIP"; then 6819 ac_ct_STRIP=$STRIP 6820 # Extract the first word of "strip", so it can be a program name with args. 6821set dummy strip; ac_word=$2 6822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6823$as_echo_n "checking for $ac_word... " >&6; } 6824if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6825 $as_echo_n "(cached) " >&6 6826else 6827 if test -n "$ac_ct_STRIP"; then 6828 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6829else 6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6831for as_dir in $PATH 6832do 6833 IFS=$as_save_IFS 6834 test -z "$as_dir" && as_dir=. 6835 for ac_exec_ext in '' $ac_executable_extensions; do 6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6837 ac_cv_prog_ac_ct_STRIP="strip" 6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6839 break 2 6840 fi 6841done 6842 done 6843IFS=$as_save_IFS 6844 6845fi 6846fi 6847ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6848if test -n "$ac_ct_STRIP"; then 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6850$as_echo "$ac_ct_STRIP" >&6; } 6851else 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6853$as_echo "no" >&6; } 6854fi 6855 6856 if test "x$ac_ct_STRIP" = x; then 6857 STRIP=":" 6858 else 6859 case $cross_compiling:$ac_tool_warned in 6860yes:) 6861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6863ac_tool_warned=yes ;; 6864esac 6865 STRIP=$ac_ct_STRIP 6866 fi 6867else 6868 STRIP="$ac_cv_prog_STRIP" 6869fi 6870 6871test -z "$STRIP" && STRIP=: 6872 6873 6874 6875 6876 6877 6878if test -n "$ac_tool_prefix"; then 6879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6880set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6882$as_echo_n "checking for $ac_word... " >&6; } 6883if ${ac_cv_prog_RANLIB+:} false; then : 6884 $as_echo_n "(cached) " >&6 6885else 6886 if test -n "$RANLIB"; then 6887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6888else 6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6890for as_dir in $PATH 6891do 6892 IFS=$as_save_IFS 6893 test -z "$as_dir" && as_dir=. 6894 for ac_exec_ext in '' $ac_executable_extensions; do 6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6898 break 2 6899 fi 6900done 6901 done 6902IFS=$as_save_IFS 6903 6904fi 6905fi 6906RANLIB=$ac_cv_prog_RANLIB 6907if test -n "$RANLIB"; then 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6909$as_echo "$RANLIB" >&6; } 6910else 6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6912$as_echo "no" >&6; } 6913fi 6914 6915 6916fi 6917if test -z "$ac_cv_prog_RANLIB"; then 6918 ac_ct_RANLIB=$RANLIB 6919 # Extract the first word of "ranlib", so it can be a program name with args. 6920set dummy ranlib; ac_word=$2 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6922$as_echo_n "checking for $ac_word... " >&6; } 6923if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6924 $as_echo_n "(cached) " >&6 6925else 6926 if test -n "$ac_ct_RANLIB"; then 6927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6928else 6929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6930for as_dir in $PATH 6931do 6932 IFS=$as_save_IFS 6933 test -z "$as_dir" && as_dir=. 6934 for ac_exec_ext in '' $ac_executable_extensions; do 6935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6936 ac_cv_prog_ac_ct_RANLIB="ranlib" 6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6938 break 2 6939 fi 6940done 6941 done 6942IFS=$as_save_IFS 6943 6944fi 6945fi 6946ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6947if test -n "$ac_ct_RANLIB"; then 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6949$as_echo "$ac_ct_RANLIB" >&6; } 6950else 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6952$as_echo "no" >&6; } 6953fi 6954 6955 if test "x$ac_ct_RANLIB" = x; then 6956 RANLIB=":" 6957 else 6958 case $cross_compiling:$ac_tool_warned in 6959yes:) 6960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6962ac_tool_warned=yes ;; 6963esac 6964 RANLIB=$ac_ct_RANLIB 6965 fi 6966else 6967 RANLIB="$ac_cv_prog_RANLIB" 6968fi 6969 6970test -z "$RANLIB" && RANLIB=: 6971 6972 6973 6974 6975 6976 6977# Determine commands to create old-style static archives. 6978old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6979old_postinstall_cmds='chmod 644 $oldlib' 6980old_postuninstall_cmds= 6981 6982if test -n "$RANLIB"; then 6983 case $host_os in 6984 openbsd*) 6985 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6986 ;; 6987 *) 6988 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6989 ;; 6990 esac 6991 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6992fi 6993 6994case $host_os in 6995 darwin*) 6996 lock_old_archive_extraction=yes ;; 6997 *) 6998 lock_old_archive_extraction=no ;; 6999esac 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039# If no C compiler was specified, use CC. 7040LTCC=${LTCC-"$CC"} 7041 7042# If no C compiler flags were specified, use CFLAGS. 7043LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7044 7045# Allow CC to be a program name with arguments. 7046compiler=$CC 7047 7048 7049# Check for command to grab the raw symbol name followed by C symbol from nm. 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7051$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7052if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7053 $as_echo_n "(cached) " >&6 7054else 7055 7056# These are sane defaults that work on at least a few old systems. 7057# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7058 7059# Character class describing NM global symbol codes. 7060symcode='[BCDEGRST]' 7061 7062# Regexp to match symbols that can be accessed directly from C. 7063sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7064 7065# Define system-specific variables. 7066case $host_os in 7067aix*) 7068 symcode='[BCDT]' 7069 ;; 7070cygwin* | mingw* | pw32* | cegcc*) 7071 symcode='[ABCDGISTW]' 7072 ;; 7073hpux*) 7074 if test "$host_cpu" = ia64; then 7075 symcode='[ABCDEGRST]' 7076 fi 7077 ;; 7078irix* | nonstopux*) 7079 symcode='[BCDEGRST]' 7080 ;; 7081osf*) 7082 symcode='[BCDEGQRST]' 7083 ;; 7084solaris*) 7085 symcode='[BDRT]' 7086 ;; 7087sco3.2v5*) 7088 symcode='[DT]' 7089 ;; 7090sysv4.2uw2*) 7091 symcode='[DT]' 7092 ;; 7093sysv5* | sco5v6* | unixware* | OpenUNIX*) 7094 symcode='[ABDT]' 7095 ;; 7096sysv4) 7097 symcode='[DFNSTU]' 7098 ;; 7099esac 7100 7101# If we're using GNU nm, then use its standard symbol codes. 7102case `$NM -V 2>&1` in 7103*GNU* | *'with BFD'*) 7104 symcode='[ABCDGIRSTW]' ;; 7105esac 7106 7107# Transform an extracted symbol line into a proper C declaration. 7108# Some systems (esp. on ia64) link data and code symbols differently, 7109# so use this general approach. 7110lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7111 7112# Transform an extracted symbol line into symbol name and symbol address 7113lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7114lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 7115 7116# Handle CRLF in mingw tool chain 7117opt_cr= 7118case $build_os in 7119mingw*) 7120 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7121 ;; 7122esac 7123 7124# Try without a prefix underscore, then with it. 7125for ac_symprfx in "" "_"; do 7126 7127 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7128 symxfrm="\\1 $ac_symprfx\\2 \\2" 7129 7130 # Write the raw and C identifiers. 7131 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7132 # Fake it for dumpbin and say T for any non-static function 7133 # and D for any global variable. 7134 # Also find C++ and __fastcall symbols from MSVC++, 7135 # which start with @ or ?. 7136 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7137" {last_section=section; section=\$ 3};"\ 7138" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7139" \$ 0!~/External *\|/{next};"\ 7140" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7141" {if(hide[section]) next};"\ 7142" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7143" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7144" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7145" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7146" ' prfx=^$ac_symprfx" 7147 else 7148 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7149 fi 7150 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7151 7152 # Check to see that the pipe works correctly. 7153 pipe_works=no 7154 7155 rm -f conftest* 7156 cat > conftest.$ac_ext <<_LT_EOF 7157#ifdef __cplusplus 7158extern "C" { 7159#endif 7160char nm_test_var; 7161void nm_test_func(void); 7162void nm_test_func(void){} 7163#ifdef __cplusplus 7164} 7165#endif 7166int main(){nm_test_var='a';nm_test_func();return(0);} 7167_LT_EOF 7168 7169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7170 (eval $ac_compile) 2>&5 7171 ac_status=$? 7172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7173 test $ac_status = 0; }; then 7174 # Now try to grab the symbols. 7175 nlist=conftest.nm 7176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7177 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7178 ac_status=$? 7179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7180 test $ac_status = 0; } && test -s "$nlist"; then 7181 # Try sorting and uniquifying the output. 7182 if sort "$nlist" | uniq > "$nlist"T; then 7183 mv -f "$nlist"T "$nlist" 7184 else 7185 rm -f "$nlist"T 7186 fi 7187 7188 # Make sure that we snagged all the symbols we need. 7189 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7190 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7191 cat <<_LT_EOF > conftest.$ac_ext 7192/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7193#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 7194/* DATA imports from DLLs on WIN32 con't be const, because runtime 7195 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7196# define LT_DLSYM_CONST 7197#elif defined(__osf__) 7198/* This system does not cope well with relocations in const data. */ 7199# define LT_DLSYM_CONST 7200#else 7201# define LT_DLSYM_CONST const 7202#endif 7203 7204#ifdef __cplusplus 7205extern "C" { 7206#endif 7207 7208_LT_EOF 7209 # Now generate the symbol file. 7210 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7211 7212 cat <<_LT_EOF >> conftest.$ac_ext 7213 7214/* The mapping between symbol names and symbols. */ 7215LT_DLSYM_CONST struct { 7216 const char *name; 7217 void *address; 7218} 7219lt__PROGRAM__LTX_preloaded_symbols[] = 7220{ 7221 { "@PROGRAM@", (void *) 0 }, 7222_LT_EOF 7223 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7224 cat <<\_LT_EOF >> conftest.$ac_ext 7225 {0, (void *) 0} 7226}; 7227 7228/* This works around a problem in FreeBSD linker */ 7229#ifdef FREEBSD_WORKAROUND 7230static const void *lt_preloaded_setup() { 7231 return lt__PROGRAM__LTX_preloaded_symbols; 7232} 7233#endif 7234 7235#ifdef __cplusplus 7236} 7237#endif 7238_LT_EOF 7239 # Now try linking the two files. 7240 mv conftest.$ac_objext conftstm.$ac_objext 7241 lt_globsym_save_LIBS=$LIBS 7242 lt_globsym_save_CFLAGS=$CFLAGS 7243 LIBS="conftstm.$ac_objext" 7244 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7246 (eval $ac_link) 2>&5 7247 ac_status=$? 7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7249 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7250 pipe_works=yes 7251 fi 7252 LIBS=$lt_globsym_save_LIBS 7253 CFLAGS=$lt_globsym_save_CFLAGS 7254 else 7255 echo "cannot find nm_test_func in $nlist" >&5 7256 fi 7257 else 7258 echo "cannot find nm_test_var in $nlist" >&5 7259 fi 7260 else 7261 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7262 fi 7263 else 7264 echo "$progname: failed program was:" >&5 7265 cat conftest.$ac_ext >&5 7266 fi 7267 rm -rf conftest* conftst* 7268 7269 # Do not use the global_symbol_pipe unless it works. 7270 if test "$pipe_works" = yes; then 7271 break 7272 else 7273 lt_cv_sys_global_symbol_pipe= 7274 fi 7275done 7276 7277fi 7278 7279if test -z "$lt_cv_sys_global_symbol_pipe"; then 7280 lt_cv_sys_global_symbol_to_cdecl= 7281fi 7282if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7284$as_echo "failed" >&6; } 7285else 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7287$as_echo "ok" >&6; } 7288fi 7289 7290# Response file support. 7291if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7292 nm_file_list_spec='@' 7293elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7294 nm_file_list_spec='@' 7295fi 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7324$as_echo_n "checking for sysroot... " >&6; } 7325 7326# Check whether --with-sysroot was given. 7327if test "${with_sysroot+set}" = set; then : 7328 withval=$with_sysroot; 7329else 7330 with_sysroot=no 7331fi 7332 7333 7334lt_sysroot= 7335case ${with_sysroot} in #( 7336 yes) 7337 if test "$GCC" = yes; then 7338 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7339 fi 7340 ;; #( 7341 /*) 7342 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7343 ;; #( 7344 no|'') 7345 ;; #( 7346 *) 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7348$as_echo "${with_sysroot}" >&6; } 7349 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7350 ;; 7351esac 7352 7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7354$as_echo "${lt_sysroot:-no}" >&6; } 7355 7356 7357 7358 7359 7360# Check whether --enable-libtool-lock was given. 7361if test "${enable_libtool_lock+set}" = set; then : 7362 enableval=$enable_libtool_lock; 7363fi 7364 7365test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7366 7367# Some flags need to be propagated to the compiler or linker for good 7368# libtool support. 7369case $host in 7370ia64-*-hpux*) 7371 # Find out which ABI we are using. 7372 echo 'int i;' > conftest.$ac_ext 7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7374 (eval $ac_compile) 2>&5 7375 ac_status=$? 7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7377 test $ac_status = 0; }; then 7378 case `/usr/bin/file conftest.$ac_objext` in 7379 *ELF-32*) 7380 HPUX_IA64_MODE="32" 7381 ;; 7382 *ELF-64*) 7383 HPUX_IA64_MODE="64" 7384 ;; 7385 esac 7386 fi 7387 rm -rf conftest* 7388 ;; 7389*-*-irix6*) 7390 # Find out which ABI we are using. 7391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7393 (eval $ac_compile) 2>&5 7394 ac_status=$? 7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7396 test $ac_status = 0; }; then 7397 if test "$lt_cv_prog_gnu_ld" = yes; then 7398 case `/usr/bin/file conftest.$ac_objext` in 7399 *32-bit*) 7400 LD="${LD-ld} -melf32bsmip" 7401 ;; 7402 *N32*) 7403 LD="${LD-ld} -melf32bmipn32" 7404 ;; 7405 *64-bit*) 7406 LD="${LD-ld} -melf64bmip" 7407 ;; 7408 esac 7409 else 7410 case `/usr/bin/file conftest.$ac_objext` in 7411 *32-bit*) 7412 LD="${LD-ld} -32" 7413 ;; 7414 *N32*) 7415 LD="${LD-ld} -n32" 7416 ;; 7417 *64-bit*) 7418 LD="${LD-ld} -64" 7419 ;; 7420 esac 7421 fi 7422 fi 7423 rm -rf conftest* 7424 ;; 7425 7426x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7427s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7428 # Find out which ABI we are using. 7429 echo 'int i;' > conftest.$ac_ext 7430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7431 (eval $ac_compile) 2>&5 7432 ac_status=$? 7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7434 test $ac_status = 0; }; then 7435 case `/usr/bin/file conftest.o` in 7436 *32-bit*) 7437 case $host in 7438 x86_64-*kfreebsd*-gnu) 7439 LD="${LD-ld} -m elf_i386_fbsd" 7440 ;; 7441 x86_64-*linux*) 7442 LD="${LD-ld} -m elf_i386" 7443 ;; 7444 ppc64-*linux*|powerpc64-*linux*) 7445 LD="${LD-ld} -m elf32ppclinux" 7446 ;; 7447 s390x-*linux*) 7448 LD="${LD-ld} -m elf_s390" 7449 ;; 7450 sparc64-*linux*) 7451 LD="${LD-ld} -m elf32_sparc" 7452 ;; 7453 esac 7454 ;; 7455 *64-bit*) 7456 case $host in 7457 x86_64-*kfreebsd*-gnu) 7458 LD="${LD-ld} -m elf_x86_64_fbsd" 7459 ;; 7460 x86_64-*linux*) 7461 LD="${LD-ld} -m elf_x86_64" 7462 ;; 7463 ppc*-*linux*|powerpc*-*linux*) 7464 LD="${LD-ld} -m elf64ppc" 7465 ;; 7466 s390*-*linux*|s390*-*tpf*) 7467 LD="${LD-ld} -m elf64_s390" 7468 ;; 7469 sparc*-*linux*) 7470 LD="${LD-ld} -m elf64_sparc" 7471 ;; 7472 esac 7473 ;; 7474 esac 7475 fi 7476 rm -rf conftest* 7477 ;; 7478 7479*-*-sco3.2v5*) 7480 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7481 SAVE_CFLAGS="$CFLAGS" 7482 CFLAGS="$CFLAGS -belf" 7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7484$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7485if ${lt_cv_cc_needs_belf+:} false; then : 7486 $as_echo_n "(cached) " >&6 7487else 7488 ac_ext=c 7489ac_cpp='$CPP $CPPFLAGS' 7490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7492ac_compiler_gnu=$ac_cv_c_compiler_gnu 7493 7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7495/* end confdefs.h. */ 7496 7497int 7498main () 7499{ 7500 7501 ; 7502 return 0; 7503} 7504_ACEOF 7505if ac_fn_c_try_link "$LINENO"; then : 7506 lt_cv_cc_needs_belf=yes 7507else 7508 lt_cv_cc_needs_belf=no 7509fi 7510rm -f core conftest.err conftest.$ac_objext \ 7511 conftest$ac_exeext conftest.$ac_ext 7512 ac_ext=c 7513ac_cpp='$CPP $CPPFLAGS' 7514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7516ac_compiler_gnu=$ac_cv_c_compiler_gnu 7517 7518fi 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7520$as_echo "$lt_cv_cc_needs_belf" >&6; } 7521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7523 CFLAGS="$SAVE_CFLAGS" 7524 fi 7525 ;; 7526sparc*-*solaris*) 7527 # Find out which ABI we are using. 7528 echo 'int i;' > conftest.$ac_ext 7529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7530 (eval $ac_compile) 2>&5 7531 ac_status=$? 7532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7533 test $ac_status = 0; }; then 7534 case `/usr/bin/file conftest.o` in 7535 *64-bit*) 7536 case $lt_cv_prog_gnu_ld in 7537 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7538 *) 7539 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7540 LD="${LD-ld} -64" 7541 fi 7542 ;; 7543 esac 7544 ;; 7545 esac 7546 fi 7547 rm -rf conftest* 7548 ;; 7549esac 7550 7551need_locks="$enable_libtool_lock" 7552 7553if test -n "$ac_tool_prefix"; then 7554 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7555set dummy ${ac_tool_prefix}mt; ac_word=$2 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7557$as_echo_n "checking for $ac_word... " >&6; } 7558if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 if test -n "$MANIFEST_TOOL"; then 7562 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7563else 7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7565for as_dir in $PATH 7566do 7567 IFS=$as_save_IFS 7568 test -z "$as_dir" && as_dir=. 7569 for ac_exec_ext in '' $ac_executable_extensions; do 7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7571 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7573 break 2 7574 fi 7575done 7576 done 7577IFS=$as_save_IFS 7578 7579fi 7580fi 7581MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7582if test -n "$MANIFEST_TOOL"; then 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7584$as_echo "$MANIFEST_TOOL" >&6; } 7585else 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7587$as_echo "no" >&6; } 7588fi 7589 7590 7591fi 7592if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7593 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7594 # Extract the first word of "mt", so it can be a program name with args. 7595set dummy mt; ac_word=$2 7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7597$as_echo_n "checking for $ac_word... " >&6; } 7598if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 if test -n "$ac_ct_MANIFEST_TOOL"; then 7602 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7603else 7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7605for as_dir in $PATH 7606do 7607 IFS=$as_save_IFS 7608 test -z "$as_dir" && as_dir=. 7609 for ac_exec_ext in '' $ac_executable_extensions; do 7610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7611 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7613 break 2 7614 fi 7615done 7616 done 7617IFS=$as_save_IFS 7618 7619fi 7620fi 7621ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7622if test -n "$ac_ct_MANIFEST_TOOL"; then 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7624$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7625else 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7627$as_echo "no" >&6; } 7628fi 7629 7630 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7631 MANIFEST_TOOL=":" 7632 else 7633 case $cross_compiling:$ac_tool_warned in 7634yes:) 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7637ac_tool_warned=yes ;; 7638esac 7639 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7640 fi 7641else 7642 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7643fi 7644 7645test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7647$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7648if ${lt_cv_path_mainfest_tool+:} false; then : 7649 $as_echo_n "(cached) " >&6 7650else 7651 lt_cv_path_mainfest_tool=no 7652 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7653 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7654 cat conftest.err >&5 7655 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7656 lt_cv_path_mainfest_tool=yes 7657 fi 7658 rm -f conftest* 7659fi 7660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7661$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7662if test "x$lt_cv_path_mainfest_tool" != xyes; then 7663 MANIFEST_TOOL=: 7664fi 7665 7666 7667 7668 7669 7670 7671 case $host_os in 7672 rhapsody* | darwin*) 7673 if test -n "$ac_tool_prefix"; then 7674 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7675set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7677$as_echo_n "checking for $ac_word... " >&6; } 7678if ${ac_cv_prog_DSYMUTIL+:} false; then : 7679 $as_echo_n "(cached) " >&6 7680else 7681 if test -n "$DSYMUTIL"; then 7682 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7683else 7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7685for as_dir in $PATH 7686do 7687 IFS=$as_save_IFS 7688 test -z "$as_dir" && as_dir=. 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7691 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7693 break 2 7694 fi 7695done 7696 done 7697IFS=$as_save_IFS 7698 7699fi 7700fi 7701DSYMUTIL=$ac_cv_prog_DSYMUTIL 7702if test -n "$DSYMUTIL"; then 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7704$as_echo "$DSYMUTIL" >&6; } 7705else 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7707$as_echo "no" >&6; } 7708fi 7709 7710 7711fi 7712if test -z "$ac_cv_prog_DSYMUTIL"; then 7713 ac_ct_DSYMUTIL=$DSYMUTIL 7714 # Extract the first word of "dsymutil", so it can be a program name with args. 7715set dummy dsymutil; ac_word=$2 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7717$as_echo_n "checking for $ac_word... " >&6; } 7718if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 if test -n "$ac_ct_DSYMUTIL"; then 7722 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7723else 7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7725for as_dir in $PATH 7726do 7727 IFS=$as_save_IFS 7728 test -z "$as_dir" && as_dir=. 7729 for ac_exec_ext in '' $ac_executable_extensions; do 7730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7731 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7733 break 2 7734 fi 7735done 7736 done 7737IFS=$as_save_IFS 7738 7739fi 7740fi 7741ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7742if test -n "$ac_ct_DSYMUTIL"; then 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7744$as_echo "$ac_ct_DSYMUTIL" >&6; } 7745else 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7747$as_echo "no" >&6; } 7748fi 7749 7750 if test "x$ac_ct_DSYMUTIL" = x; then 7751 DSYMUTIL=":" 7752 else 7753 case $cross_compiling:$ac_tool_warned in 7754yes:) 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7757ac_tool_warned=yes ;; 7758esac 7759 DSYMUTIL=$ac_ct_DSYMUTIL 7760 fi 7761else 7762 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7763fi 7764 7765 if test -n "$ac_tool_prefix"; then 7766 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7767set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7769$as_echo_n "checking for $ac_word... " >&6; } 7770if ${ac_cv_prog_NMEDIT+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 if test -n "$NMEDIT"; then 7774 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7775else 7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7777for as_dir in $PATH 7778do 7779 IFS=$as_save_IFS 7780 test -z "$as_dir" && as_dir=. 7781 for ac_exec_ext in '' $ac_executable_extensions; do 7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7783 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7785 break 2 7786 fi 7787done 7788 done 7789IFS=$as_save_IFS 7790 7791fi 7792fi 7793NMEDIT=$ac_cv_prog_NMEDIT 7794if test -n "$NMEDIT"; then 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7796$as_echo "$NMEDIT" >&6; } 7797else 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7799$as_echo "no" >&6; } 7800fi 7801 7802 7803fi 7804if test -z "$ac_cv_prog_NMEDIT"; then 7805 ac_ct_NMEDIT=$NMEDIT 7806 # Extract the first word of "nmedit", so it can be a program name with args. 7807set dummy nmedit; ac_word=$2 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7809$as_echo_n "checking for $ac_word... " >&6; } 7810if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7811 $as_echo_n "(cached) " >&6 7812else 7813 if test -n "$ac_ct_NMEDIT"; then 7814 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7815else 7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7817for as_dir in $PATH 7818do 7819 IFS=$as_save_IFS 7820 test -z "$as_dir" && as_dir=. 7821 for ac_exec_ext in '' $ac_executable_extensions; do 7822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7823 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7825 break 2 7826 fi 7827done 7828 done 7829IFS=$as_save_IFS 7830 7831fi 7832fi 7833ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7834if test -n "$ac_ct_NMEDIT"; then 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7836$as_echo "$ac_ct_NMEDIT" >&6; } 7837else 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7839$as_echo "no" >&6; } 7840fi 7841 7842 if test "x$ac_ct_NMEDIT" = x; then 7843 NMEDIT=":" 7844 else 7845 case $cross_compiling:$ac_tool_warned in 7846yes:) 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7849ac_tool_warned=yes ;; 7850esac 7851 NMEDIT=$ac_ct_NMEDIT 7852 fi 7853else 7854 NMEDIT="$ac_cv_prog_NMEDIT" 7855fi 7856 7857 if test -n "$ac_tool_prefix"; then 7858 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7859set dummy ${ac_tool_prefix}lipo; ac_word=$2 7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7861$as_echo_n "checking for $ac_word... " >&6; } 7862if ${ac_cv_prog_LIPO+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864else 7865 if test -n "$LIPO"; then 7866 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7867else 7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7869for as_dir in $PATH 7870do 7871 IFS=$as_save_IFS 7872 test -z "$as_dir" && as_dir=. 7873 for ac_exec_ext in '' $ac_executable_extensions; do 7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7875 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7877 break 2 7878 fi 7879done 7880 done 7881IFS=$as_save_IFS 7882 7883fi 7884fi 7885LIPO=$ac_cv_prog_LIPO 7886if test -n "$LIPO"; then 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7888$as_echo "$LIPO" >&6; } 7889else 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7891$as_echo "no" >&6; } 7892fi 7893 7894 7895fi 7896if test -z "$ac_cv_prog_LIPO"; then 7897 ac_ct_LIPO=$LIPO 7898 # Extract the first word of "lipo", so it can be a program name with args. 7899set dummy lipo; ac_word=$2 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7901$as_echo_n "checking for $ac_word... " >&6; } 7902if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7903 $as_echo_n "(cached) " >&6 7904else 7905 if test -n "$ac_ct_LIPO"; then 7906 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7907else 7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7909for as_dir in $PATH 7910do 7911 IFS=$as_save_IFS 7912 test -z "$as_dir" && as_dir=. 7913 for ac_exec_ext in '' $ac_executable_extensions; do 7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7915 ac_cv_prog_ac_ct_LIPO="lipo" 7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7917 break 2 7918 fi 7919done 7920 done 7921IFS=$as_save_IFS 7922 7923fi 7924fi 7925ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7926if test -n "$ac_ct_LIPO"; then 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7928$as_echo "$ac_ct_LIPO" >&6; } 7929else 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7931$as_echo "no" >&6; } 7932fi 7933 7934 if test "x$ac_ct_LIPO" = x; then 7935 LIPO=":" 7936 else 7937 case $cross_compiling:$ac_tool_warned in 7938yes:) 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7941ac_tool_warned=yes ;; 7942esac 7943 LIPO=$ac_ct_LIPO 7944 fi 7945else 7946 LIPO="$ac_cv_prog_LIPO" 7947fi 7948 7949 if test -n "$ac_tool_prefix"; then 7950 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7951set dummy ${ac_tool_prefix}otool; ac_word=$2 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7953$as_echo_n "checking for $ac_word... " >&6; } 7954if ${ac_cv_prog_OTOOL+:} false; then : 7955 $as_echo_n "(cached) " >&6 7956else 7957 if test -n "$OTOOL"; then 7958 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7959else 7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7961for as_dir in $PATH 7962do 7963 IFS=$as_save_IFS 7964 test -z "$as_dir" && as_dir=. 7965 for ac_exec_ext in '' $ac_executable_extensions; do 7966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7967 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7969 break 2 7970 fi 7971done 7972 done 7973IFS=$as_save_IFS 7974 7975fi 7976fi 7977OTOOL=$ac_cv_prog_OTOOL 7978if test -n "$OTOOL"; then 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7980$as_echo "$OTOOL" >&6; } 7981else 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7983$as_echo "no" >&6; } 7984fi 7985 7986 7987fi 7988if test -z "$ac_cv_prog_OTOOL"; then 7989 ac_ct_OTOOL=$OTOOL 7990 # Extract the first word of "otool", so it can be a program name with args. 7991set dummy otool; ac_word=$2 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7993$as_echo_n "checking for $ac_word... " >&6; } 7994if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7995 $as_echo_n "(cached) " >&6 7996else 7997 if test -n "$ac_ct_OTOOL"; then 7998 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7999else 8000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8001for as_dir in $PATH 8002do 8003 IFS=$as_save_IFS 8004 test -z "$as_dir" && as_dir=. 8005 for ac_exec_ext in '' $ac_executable_extensions; do 8006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8007 ac_cv_prog_ac_ct_OTOOL="otool" 8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8009 break 2 8010 fi 8011done 8012 done 8013IFS=$as_save_IFS 8014 8015fi 8016fi 8017ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8018if test -n "$ac_ct_OTOOL"; then 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8020$as_echo "$ac_ct_OTOOL" >&6; } 8021else 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8023$as_echo "no" >&6; } 8024fi 8025 8026 if test "x$ac_ct_OTOOL" = x; then 8027 OTOOL=":" 8028 else 8029 case $cross_compiling:$ac_tool_warned in 8030yes:) 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8033ac_tool_warned=yes ;; 8034esac 8035 OTOOL=$ac_ct_OTOOL 8036 fi 8037else 8038 OTOOL="$ac_cv_prog_OTOOL" 8039fi 8040 8041 if test -n "$ac_tool_prefix"; then 8042 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8043set dummy ${ac_tool_prefix}otool64; ac_word=$2 8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8045$as_echo_n "checking for $ac_word... " >&6; } 8046if ${ac_cv_prog_OTOOL64+:} false; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 if test -n "$OTOOL64"; then 8050 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8051else 8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8053for as_dir in $PATH 8054do 8055 IFS=$as_save_IFS 8056 test -z "$as_dir" && as_dir=. 8057 for ac_exec_ext in '' $ac_executable_extensions; do 8058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8059 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8061 break 2 8062 fi 8063done 8064 done 8065IFS=$as_save_IFS 8066 8067fi 8068fi 8069OTOOL64=$ac_cv_prog_OTOOL64 8070if test -n "$OTOOL64"; then 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8072$as_echo "$OTOOL64" >&6; } 8073else 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075$as_echo "no" >&6; } 8076fi 8077 8078 8079fi 8080if test -z "$ac_cv_prog_OTOOL64"; then 8081 ac_ct_OTOOL64=$OTOOL64 8082 # Extract the first word of "otool64", so it can be a program name with args. 8083set dummy otool64; ac_word=$2 8084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8085$as_echo_n "checking for $ac_word... " >&6; } 8086if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8087 $as_echo_n "(cached) " >&6 8088else 8089 if test -n "$ac_ct_OTOOL64"; then 8090 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8091else 8092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8093for as_dir in $PATH 8094do 8095 IFS=$as_save_IFS 8096 test -z "$as_dir" && as_dir=. 8097 for ac_exec_ext in '' $ac_executable_extensions; do 8098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8099 ac_cv_prog_ac_ct_OTOOL64="otool64" 8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8101 break 2 8102 fi 8103done 8104 done 8105IFS=$as_save_IFS 8106 8107fi 8108fi 8109ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8110if test -n "$ac_ct_OTOOL64"; then 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8112$as_echo "$ac_ct_OTOOL64" >&6; } 8113else 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8115$as_echo "no" >&6; } 8116fi 8117 8118 if test "x$ac_ct_OTOOL64" = x; then 8119 OTOOL64=":" 8120 else 8121 case $cross_compiling:$ac_tool_warned in 8122yes:) 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8125ac_tool_warned=yes ;; 8126esac 8127 OTOOL64=$ac_ct_OTOOL64 8128 fi 8129else 8130 OTOOL64="$ac_cv_prog_OTOOL64" 8131fi 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8160$as_echo_n "checking for -single_module linker flag... " >&6; } 8161if ${lt_cv_apple_cc_single_mod+:} false; then : 8162 $as_echo_n "(cached) " >&6 8163else 8164 lt_cv_apple_cc_single_mod=no 8165 if test -z "${LT_MULTI_MODULE}"; then 8166 # By default we will add the -single_module flag. You can override 8167 # by either setting the environment variable LT_MULTI_MODULE 8168 # non-empty at configure time, or by adding -multi_module to the 8169 # link flags. 8170 rm -rf libconftest.dylib* 8171 echo "int foo(void){return 1;}" > conftest.c 8172 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8173-dynamiclib -Wl,-single_module conftest.c" >&5 8174 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8175 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8176 _lt_result=$? 8177 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8178 lt_cv_apple_cc_single_mod=yes 8179 else 8180 cat conftest.err >&5 8181 fi 8182 rm -rf libconftest.dylib* 8183 rm -f conftest.* 8184 fi 8185fi 8186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8187$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8189$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8190if ${lt_cv_ld_exported_symbols_list+:} false; then : 8191 $as_echo_n "(cached) " >&6 8192else 8193 lt_cv_ld_exported_symbols_list=no 8194 save_LDFLAGS=$LDFLAGS 8195 echo "_main" > conftest.sym 8196 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8198/* end confdefs.h. */ 8199 8200int 8201main () 8202{ 8203 8204 ; 8205 return 0; 8206} 8207_ACEOF 8208if ac_fn_c_try_link "$LINENO"; then : 8209 lt_cv_ld_exported_symbols_list=yes 8210else 8211 lt_cv_ld_exported_symbols_list=no 8212fi 8213rm -f core conftest.err conftest.$ac_objext \ 8214 conftest$ac_exeext conftest.$ac_ext 8215 LDFLAGS="$save_LDFLAGS" 8216 8217fi 8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8219$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8221$as_echo_n "checking for -force_load linker flag... " >&6; } 8222if ${lt_cv_ld_force_load+:} false; then : 8223 $as_echo_n "(cached) " >&6 8224else 8225 lt_cv_ld_force_load=no 8226 cat > conftest.c << _LT_EOF 8227int forced_loaded() { return 2;} 8228_LT_EOF 8229 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8230 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8231 echo "$AR cru libconftest.a conftest.o" >&5 8232 $AR cru libconftest.a conftest.o 2>&5 8233 echo "$RANLIB libconftest.a" >&5 8234 $RANLIB libconftest.a 2>&5 8235 cat > conftest.c << _LT_EOF 8236int main() { return 0;} 8237_LT_EOF 8238 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8239 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8240 _lt_result=$? 8241 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8242 lt_cv_ld_force_load=yes 8243 else 8244 cat conftest.err >&5 8245 fi 8246 rm -f conftest.err libconftest.a conftest conftest.c 8247 rm -rf conftest.dSYM 8248 8249fi 8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8251$as_echo "$lt_cv_ld_force_load" >&6; } 8252 case $host_os in 8253 rhapsody* | darwin1.[012]) 8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8255 darwin1.*) 8256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8257 darwin*) # darwin 5.x on 8258 # if running on 10.5 or later, the deployment target defaults 8259 # to the OS version, if on x86, and 10.4, the deployment 8260 # target defaults to 10.4. Don't you love it? 8261 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8262 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8263 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8264 10.[012]*) 8265 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8266 10.*) 8267 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8268 esac 8269 ;; 8270 esac 8271 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8272 _lt_dar_single_mod='$single_module' 8273 fi 8274 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8275 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8276 else 8277 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8278 fi 8279 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8280 _lt_dsymutil='~$DSYMUTIL $lib || :' 8281 else 8282 _lt_dsymutil= 8283 fi 8284 ;; 8285 esac 8286 8287 8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8289$as_echo_n "checking for ANSI C header files... " >&6; } 8290if ${ac_cv_header_stdc+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292else 8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8294/* end confdefs.h. */ 8295#include <stdlib.h> 8296#include <stdarg.h> 8297#include <string.h> 8298#include <float.h> 8299 8300int 8301main () 8302{ 8303 8304 ; 8305 return 0; 8306} 8307_ACEOF 8308if ac_fn_c_try_compile "$LINENO"; then : 8309 ac_cv_header_stdc=yes 8310else 8311 ac_cv_header_stdc=no 8312fi 8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8314 8315if test $ac_cv_header_stdc = yes; then 8316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8318/* end confdefs.h. */ 8319#include <string.h> 8320 8321_ACEOF 8322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8323 $EGREP "memchr" >/dev/null 2>&1; then : 8324 8325else 8326 ac_cv_header_stdc=no 8327fi 8328rm -f conftest* 8329 8330fi 8331 8332if test $ac_cv_header_stdc = yes; then 8333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8335/* end confdefs.h. */ 8336#include <stdlib.h> 8337 8338_ACEOF 8339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8340 $EGREP "free" >/dev/null 2>&1; then : 8341 8342else 8343 ac_cv_header_stdc=no 8344fi 8345rm -f conftest* 8346 8347fi 8348 8349if test $ac_cv_header_stdc = yes; then 8350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8351 if test "$cross_compiling" = yes; then : 8352 : 8353else 8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8355/* end confdefs.h. */ 8356#include <ctype.h> 8357#include <stdlib.h> 8358#if ((' ' & 0x0FF) == 0x020) 8359# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8360# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8361#else 8362# define ISLOWER(c) \ 8363 (('a' <= (c) && (c) <= 'i') \ 8364 || ('j' <= (c) && (c) <= 'r') \ 8365 || ('s' <= (c) && (c) <= 'z')) 8366# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8367#endif 8368 8369#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8370int 8371main () 8372{ 8373 int i; 8374 for (i = 0; i < 256; i++) 8375 if (XOR (islower (i), ISLOWER (i)) 8376 || toupper (i) != TOUPPER (i)) 8377 return 2; 8378 return 0; 8379} 8380_ACEOF 8381if ac_fn_c_try_run "$LINENO"; then : 8382 8383else 8384 ac_cv_header_stdc=no 8385fi 8386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8387 conftest.$ac_objext conftest.beam conftest.$ac_ext 8388fi 8389 8390fi 8391fi 8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8393$as_echo "$ac_cv_header_stdc" >&6; } 8394if test $ac_cv_header_stdc = yes; then 8395 8396$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8397 8398fi 8399 8400# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8401for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8402 inttypes.h stdint.h unistd.h 8403do : 8404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8405ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8406" 8407if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8408 cat >>confdefs.h <<_ACEOF 8409#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8410_ACEOF 8411 8412fi 8413 8414done 8415 8416 8417for ac_header in dlfcn.h 8418do : 8419 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8420" 8421if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8422 cat >>confdefs.h <<_ACEOF 8423#define HAVE_DLFCN_H 1 8424_ACEOF 8425 8426fi 8427 8428done 8429 8430 8431 8432 8433 8434# Set options 8435 8436 8437 8438 enable_dlopen=no 8439 8440 8441 8442 # Check whether --enable-shared was given. 8443if test "${enable_shared+set}" = set; then : 8444 enableval=$enable_shared; p=${PACKAGE-default} 8445 case $enableval in 8446 yes) enable_shared=yes ;; 8447 no) enable_shared=no ;; 8448 *) 8449 enable_shared=no 8450 # Look at the argument we got. We use all the common list separators. 8451 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8452 for pkg in $enableval; do 8453 IFS="$lt_save_ifs" 8454 if test "X$pkg" = "X$p"; then 8455 enable_shared=yes 8456 fi 8457 done 8458 IFS="$lt_save_ifs" 8459 ;; 8460 esac 8461else 8462 enable_shared=yes 8463fi 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 # Check whether --enable-static was given. 8474if test "${enable_static+set}" = set; then : 8475 enableval=$enable_static; p=${PACKAGE-default} 8476 case $enableval in 8477 yes) enable_static=yes ;; 8478 no) enable_static=no ;; 8479 *) 8480 enable_static=no 8481 # Look at the argument we got. We use all the common list separators. 8482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8483 for pkg in $enableval; do 8484 IFS="$lt_save_ifs" 8485 if test "X$pkg" = "X$p"; then 8486 enable_static=yes 8487 fi 8488 done 8489 IFS="$lt_save_ifs" 8490 ;; 8491 esac 8492else 8493 enable_static=yes 8494fi 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505# Check whether --with-pic was given. 8506if test "${with_pic+set}" = set; then : 8507 withval=$with_pic; pic_mode="$withval" 8508else 8509 pic_mode=default 8510fi 8511 8512 8513test -z "$pic_mode" && pic_mode=default 8514 8515 8516 8517 8518 8519 8520 8521 # Check whether --enable-fast-install was given. 8522if test "${enable_fast_install+set}" = set; then : 8523 enableval=$enable_fast_install; p=${PACKAGE-default} 8524 case $enableval in 8525 yes) enable_fast_install=yes ;; 8526 no) enable_fast_install=no ;; 8527 *) 8528 enable_fast_install=no 8529 # Look at the argument we got. We use all the common list separators. 8530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8531 for pkg in $enableval; do 8532 IFS="$lt_save_ifs" 8533 if test "X$pkg" = "X$p"; then 8534 enable_fast_install=yes 8535 fi 8536 done 8537 IFS="$lt_save_ifs" 8538 ;; 8539 esac 8540else 8541 enable_fast_install=yes 8542fi 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554# This can be used to rebuild libtool when needed 8555LIBTOOL_DEPS="$ltmain" 8556 8557# Always use our own libtool. 8558LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585test -z "$LN_S" && LN_S="ln -s" 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600if test -n "${ZSH_VERSION+set}" ; then 8601 setopt NO_GLOB_SUBST 8602fi 8603 8604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8605$as_echo_n "checking for objdir... " >&6; } 8606if ${lt_cv_objdir+:} false; then : 8607 $as_echo_n "(cached) " >&6 8608else 8609 rm -f .libs 2>/dev/null 8610mkdir .libs 2>/dev/null 8611if test -d .libs; then 8612 lt_cv_objdir=.libs 8613else 8614 # MS-DOS does not allow filenames that begin with a dot. 8615 lt_cv_objdir=_libs 8616fi 8617rmdir .libs 2>/dev/null 8618fi 8619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8620$as_echo "$lt_cv_objdir" >&6; } 8621objdir=$lt_cv_objdir 8622 8623 8624 8625 8626 8627cat >>confdefs.h <<_ACEOF 8628#define LT_OBJDIR "$lt_cv_objdir/" 8629_ACEOF 8630 8631 8632 8633 8634case $host_os in 8635aix3*) 8636 # AIX sometimes has problems with the GCC collect2 program. For some 8637 # reason, if we set the COLLECT_NAMES environment variable, the problems 8638 # vanish in a puff of smoke. 8639 if test "X${COLLECT_NAMES+set}" != Xset; then 8640 COLLECT_NAMES= 8641 export COLLECT_NAMES 8642 fi 8643 ;; 8644esac 8645 8646# Global variables: 8647ofile=libtool 8648can_build_shared=yes 8649 8650# All known linkers require a `.a' archive for static linking (except MSVC, 8651# which needs '.lib'). 8652libext=a 8653 8654with_gnu_ld="$lt_cv_prog_gnu_ld" 8655 8656old_CC="$CC" 8657old_CFLAGS="$CFLAGS" 8658 8659# Set sane defaults for various variables 8660test -z "$CC" && CC=cc 8661test -z "$LTCC" && LTCC=$CC 8662test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8663test -z "$LD" && LD=ld 8664test -z "$ac_objext" && ac_objext=o 8665 8666for cc_temp in $compiler""; do 8667 case $cc_temp in 8668 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8669 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8670 \-*) ;; 8671 *) break;; 8672 esac 8673done 8674cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8675 8676 8677# Only perform the check for file, if the check method requires it 8678test -z "$MAGIC_CMD" && MAGIC_CMD=file 8679case $deplibs_check_method in 8680file_magic*) 8681 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8683$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8684if ${lt_cv_path_MAGIC_CMD+:} false; then : 8685 $as_echo_n "(cached) " >&6 8686else 8687 case $MAGIC_CMD in 8688[\\/*] | ?:[\\/]*) 8689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8690 ;; 8691*) 8692 lt_save_MAGIC_CMD="$MAGIC_CMD" 8693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8695 for ac_dir in $ac_dummy; do 8696 IFS="$lt_save_ifs" 8697 test -z "$ac_dir" && ac_dir=. 8698 if test -f $ac_dir/${ac_tool_prefix}file; then 8699 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8700 if test -n "$file_magic_test_file"; then 8701 case $deplibs_check_method in 8702 "file_magic "*) 8703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8706 $EGREP "$file_magic_regex" > /dev/null; then 8707 : 8708 else 8709 cat <<_LT_EOF 1>&2 8710 8711*** Warning: the command libtool uses to detect shared libraries, 8712*** $file_magic_cmd, produces output that libtool cannot recognize. 8713*** The result is that libtool may fail to recognize shared libraries 8714*** as such. This will affect the creation of libtool libraries that 8715*** depend on shared libraries, but programs linked with such libtool 8716*** libraries will work regardless of this problem. Nevertheless, you 8717*** may want to report the problem to your system manager and/or to 8718*** bug-libtool@gnu.org 8719 8720_LT_EOF 8721 fi ;; 8722 esac 8723 fi 8724 break 8725 fi 8726 done 8727 IFS="$lt_save_ifs" 8728 MAGIC_CMD="$lt_save_MAGIC_CMD" 8729 ;; 8730esac 8731fi 8732 8733MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8734if test -n "$MAGIC_CMD"; then 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8736$as_echo "$MAGIC_CMD" >&6; } 8737else 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8739$as_echo "no" >&6; } 8740fi 8741 8742 8743 8744 8745 8746if test -z "$lt_cv_path_MAGIC_CMD"; then 8747 if test -n "$ac_tool_prefix"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8749$as_echo_n "checking for file... " >&6; } 8750if ${lt_cv_path_MAGIC_CMD+:} false; then : 8751 $as_echo_n "(cached) " >&6 8752else 8753 case $MAGIC_CMD in 8754[\\/*] | ?:[\\/]*) 8755 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8756 ;; 8757*) 8758 lt_save_MAGIC_CMD="$MAGIC_CMD" 8759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8760 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8761 for ac_dir in $ac_dummy; do 8762 IFS="$lt_save_ifs" 8763 test -z "$ac_dir" && ac_dir=. 8764 if test -f $ac_dir/file; then 8765 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8766 if test -n "$file_magic_test_file"; then 8767 case $deplibs_check_method in 8768 "file_magic "*) 8769 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8771 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8772 $EGREP "$file_magic_regex" > /dev/null; then 8773 : 8774 else 8775 cat <<_LT_EOF 1>&2 8776 8777*** Warning: the command libtool uses to detect shared libraries, 8778*** $file_magic_cmd, produces output that libtool cannot recognize. 8779*** The result is that libtool may fail to recognize shared libraries 8780*** as such. This will affect the creation of libtool libraries that 8781*** depend on shared libraries, but programs linked with such libtool 8782*** libraries will work regardless of this problem. Nevertheless, you 8783*** may want to report the problem to your system manager and/or to 8784*** bug-libtool@gnu.org 8785 8786_LT_EOF 8787 fi ;; 8788 esac 8789 fi 8790 break 8791 fi 8792 done 8793 IFS="$lt_save_ifs" 8794 MAGIC_CMD="$lt_save_MAGIC_CMD" 8795 ;; 8796esac 8797fi 8798 8799MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8800if test -n "$MAGIC_CMD"; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8802$as_echo "$MAGIC_CMD" >&6; } 8803else 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8805$as_echo "no" >&6; } 8806fi 8807 8808 8809 else 8810 MAGIC_CMD=: 8811 fi 8812fi 8813 8814 fi 8815 ;; 8816esac 8817 8818# Use C for the default configuration in the libtool script 8819 8820lt_save_CC="$CC" 8821ac_ext=c 8822ac_cpp='$CPP $CPPFLAGS' 8823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8825ac_compiler_gnu=$ac_cv_c_compiler_gnu 8826 8827 8828# Source file extension for C test sources. 8829ac_ext=c 8830 8831# Object file extension for compiled C test sources. 8832objext=o 8833objext=$objext 8834 8835# Code to be used in simple compile tests 8836lt_simple_compile_test_code="int some_variable = 0;" 8837 8838# Code to be used in simple link tests 8839lt_simple_link_test_code='int main(){return(0);}' 8840 8841 8842 8843 8844 8845 8846 8847# If no C compiler was specified, use CC. 8848LTCC=${LTCC-"$CC"} 8849 8850# If no C compiler flags were specified, use CFLAGS. 8851LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8852 8853# Allow CC to be a program name with arguments. 8854compiler=$CC 8855 8856# Save the default compiler, since it gets overwritten when the other 8857# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8858compiler_DEFAULT=$CC 8859 8860# save warnings/boilerplate of simple test code 8861ac_outfile=conftest.$ac_objext 8862echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8863eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8864_lt_compiler_boilerplate=`cat conftest.err` 8865$RM conftest* 8866 8867ac_outfile=conftest.$ac_objext 8868echo "$lt_simple_link_test_code" >conftest.$ac_ext 8869eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8870_lt_linker_boilerplate=`cat conftest.err` 8871$RM -r conftest* 8872 8873 8874## CAVEAT EMPTOR: 8875## There is no encapsulation within the following macros, do not change 8876## the running order or otherwise move them around unless you know exactly 8877## what you are doing... 8878if test -n "$compiler"; then 8879 8880lt_prog_compiler_no_builtin_flag= 8881 8882if test "$GCC" = yes; then 8883 case $cc_basename in 8884 nvcc*) 8885 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8886 *) 8887 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8888 esac 8889 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8891$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8892if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 lt_cv_prog_compiler_rtti_exceptions=no 8896 ac_outfile=conftest.$ac_objext 8897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8898 lt_compiler_flag="-fno-rtti -fno-exceptions" 8899 # Insert the option either (1) after the last *FLAGS variable, or 8900 # (2) before a word containing "conftest.", or (3) at the end. 8901 # Note that $ac_compile itself does not contain backslashes and begins 8902 # with a dollar sign (not a hyphen), so the echo should work correctly. 8903 # The option is referenced via a variable to avoid confusing sed. 8904 lt_compile=`echo "$ac_compile" | $SED \ 8905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8907 -e 's:$: $lt_compiler_flag:'` 8908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8909 (eval "$lt_compile" 2>conftest.err) 8910 ac_status=$? 8911 cat conftest.err >&5 8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8913 if (exit $ac_status) && test -s "$ac_outfile"; then 8914 # The compiler can only warn and ignore the option if not recognized 8915 # So say no if there are warnings other than the usual output. 8916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8919 lt_cv_prog_compiler_rtti_exceptions=yes 8920 fi 8921 fi 8922 $RM conftest* 8923 8924fi 8925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8926$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8927 8928if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8929 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8930else 8931 : 8932fi 8933 8934fi 8935 8936 8937 8938 8939 8940 8941 lt_prog_compiler_wl= 8942lt_prog_compiler_pic= 8943lt_prog_compiler_static= 8944 8945 8946 if test "$GCC" = yes; then 8947 lt_prog_compiler_wl='-Wl,' 8948 lt_prog_compiler_static='-static' 8949 8950 case $host_os in 8951 aix*) 8952 # All AIX code is PIC. 8953 if test "$host_cpu" = ia64; then 8954 # AIX 5 now supports IA64 processor 8955 lt_prog_compiler_static='-Bstatic' 8956 fi 8957 ;; 8958 8959 amigaos*) 8960 case $host_cpu in 8961 powerpc) 8962 # see comment about AmigaOS4 .so support 8963 lt_prog_compiler_pic='-fPIC' 8964 ;; 8965 m68k) 8966 # FIXME: we need at least 68020 code to build shared libraries, but 8967 # adding the `-m68020' flag to GCC prevents building anything better, 8968 # like `-m68040'. 8969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8970 ;; 8971 esac 8972 ;; 8973 8974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8975 # PIC is the default for these OSes. 8976 ;; 8977 8978 mingw* | cygwin* | pw32* | os2* | cegcc*) 8979 # This hack is so that the source file can tell whether it is being 8980 # built for inclusion in a dll (and should export symbols for example). 8981 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8982 # (--disable-auto-import) libraries 8983 lt_prog_compiler_pic='-DDLL_EXPORT' 8984 ;; 8985 8986 darwin* | rhapsody*) 8987 # PIC is the default on this platform 8988 # Common symbols not allowed in MH_DYLIB files 8989 lt_prog_compiler_pic='-fno-common' 8990 ;; 8991 8992 haiku*) 8993 # PIC is the default for Haiku. 8994 # The "-static" flag exists, but is broken. 8995 lt_prog_compiler_static= 8996 ;; 8997 8998 hpux*) 8999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9001 # sets the default TLS model and affects inlining. 9002 case $host_cpu in 9003 hppa*64*) 9004 # +Z the default 9005 ;; 9006 *) 9007 lt_prog_compiler_pic='-fPIC' 9008 ;; 9009 esac 9010 ;; 9011 9012 interix[3-9]*) 9013 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9014 # Instead, we relocate shared libraries at runtime. 9015 ;; 9016 9017 msdosdjgpp*) 9018 # Just because we use GCC doesn't mean we suddenly get shared libraries 9019 # on systems that don't support them. 9020 lt_prog_compiler_can_build_shared=no 9021 enable_shared=no 9022 ;; 9023 9024 *nto* | *qnx*) 9025 # QNX uses GNU C++, but need to define -shared option too, otherwise 9026 # it will coredump. 9027 lt_prog_compiler_pic='-fPIC -shared' 9028 ;; 9029 9030 sysv4*MP*) 9031 if test -d /usr/nec; then 9032 lt_prog_compiler_pic=-Kconform_pic 9033 fi 9034 ;; 9035 9036 *) 9037 lt_prog_compiler_pic='-fPIC' 9038 ;; 9039 esac 9040 9041 case $cc_basename in 9042 nvcc*) # Cuda Compiler Driver 2.2 9043 lt_prog_compiler_wl='-Xlinker ' 9044 lt_prog_compiler_pic='-Xcompiler -fPIC' 9045 ;; 9046 esac 9047 else 9048 # PORTME Check for flag to pass linker flags through the system compiler. 9049 case $host_os in 9050 aix*) 9051 lt_prog_compiler_wl='-Wl,' 9052 if test "$host_cpu" = ia64; then 9053 # AIX 5 now supports IA64 processor 9054 lt_prog_compiler_static='-Bstatic' 9055 else 9056 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9057 fi 9058 ;; 9059 9060 mingw* | cygwin* | pw32* | os2* | cegcc*) 9061 # This hack is so that the source file can tell whether it is being 9062 # built for inclusion in a dll (and should export symbols for example). 9063 lt_prog_compiler_pic='-DDLL_EXPORT' 9064 ;; 9065 9066 hpux9* | hpux10* | hpux11*) 9067 lt_prog_compiler_wl='-Wl,' 9068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9069 # not for PA HP-UX. 9070 case $host_cpu in 9071 hppa*64*|ia64*) 9072 # +Z the default 9073 ;; 9074 *) 9075 lt_prog_compiler_pic='+Z' 9076 ;; 9077 esac 9078 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9079 lt_prog_compiler_static='${wl}-a ${wl}archive' 9080 ;; 9081 9082 irix5* | irix6* | nonstopux*) 9083 lt_prog_compiler_wl='-Wl,' 9084 # PIC (with -KPIC) is the default. 9085 lt_prog_compiler_static='-non_shared' 9086 ;; 9087 9088 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9089 case $cc_basename in 9090 # old Intel for x86_64 which still supported -KPIC. 9091 ecc*) 9092 lt_prog_compiler_wl='-Wl,' 9093 lt_prog_compiler_pic='-KPIC' 9094 lt_prog_compiler_static='-static' 9095 ;; 9096 # icc used to be incompatible with GCC. 9097 # ICC 10 doesn't accept -KPIC any more. 9098 icc* | ifort*) 9099 lt_prog_compiler_wl='-Wl,' 9100 lt_prog_compiler_pic='-fPIC' 9101 lt_prog_compiler_static='-static' 9102 ;; 9103 # Lahey Fortran 8.1. 9104 lf95*) 9105 lt_prog_compiler_wl='-Wl,' 9106 lt_prog_compiler_pic='--shared' 9107 lt_prog_compiler_static='--static' 9108 ;; 9109 nagfor*) 9110 # NAG Fortran compiler 9111 lt_prog_compiler_wl='-Wl,-Wl,,' 9112 lt_prog_compiler_pic='-PIC' 9113 lt_prog_compiler_static='-Bstatic' 9114 ;; 9115 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9116 # Portland Group compilers (*not* the Pentium gcc compiler, 9117 # which looks to be a dead project) 9118 lt_prog_compiler_wl='-Wl,' 9119 lt_prog_compiler_pic='-fpic' 9120 lt_prog_compiler_static='-Bstatic' 9121 ;; 9122 ccc*) 9123 lt_prog_compiler_wl='-Wl,' 9124 # All Alpha code is PIC. 9125 lt_prog_compiler_static='-non_shared' 9126 ;; 9127 xl* | bgxl* | bgf* | mpixl*) 9128 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9129 lt_prog_compiler_wl='-Wl,' 9130 lt_prog_compiler_pic='-qpic' 9131 lt_prog_compiler_static='-qstaticlink' 9132 ;; 9133 *) 9134 case `$CC -V 2>&1 | sed 5q` in 9135 *Sun\ F* | *Sun*Fortran*) 9136 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9137 lt_prog_compiler_pic='-KPIC' 9138 lt_prog_compiler_static='-Bstatic' 9139 lt_prog_compiler_wl='' 9140 ;; 9141 *Sun\ C*) 9142 # Sun C 5.9 9143 lt_prog_compiler_pic='-KPIC' 9144 lt_prog_compiler_static='-Bstatic' 9145 lt_prog_compiler_wl='-Wl,' 9146 ;; 9147 esac 9148 ;; 9149 esac 9150 ;; 9151 9152 newsos6) 9153 lt_prog_compiler_pic='-KPIC' 9154 lt_prog_compiler_static='-Bstatic' 9155 ;; 9156 9157 *nto* | *qnx*) 9158 # QNX uses GNU C++, but need to define -shared option too, otherwise 9159 # it will coredump. 9160 lt_prog_compiler_pic='-fPIC -shared' 9161 ;; 9162 9163 osf3* | osf4* | osf5*) 9164 lt_prog_compiler_wl='-Wl,' 9165 # All OSF/1 code is PIC. 9166 lt_prog_compiler_static='-non_shared' 9167 ;; 9168 9169 rdos*) 9170 lt_prog_compiler_static='-non_shared' 9171 ;; 9172 9173 solaris*) 9174 lt_prog_compiler_pic='-KPIC' 9175 lt_prog_compiler_static='-Bstatic' 9176 case $cc_basename in 9177 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9178 lt_prog_compiler_wl='-Qoption ld ';; 9179 *) 9180 lt_prog_compiler_wl='-Wl,';; 9181 esac 9182 ;; 9183 9184 sunos4*) 9185 lt_prog_compiler_wl='-Qoption ld ' 9186 lt_prog_compiler_pic='-PIC' 9187 lt_prog_compiler_static='-Bstatic' 9188 ;; 9189 9190 sysv4 | sysv4.2uw2* | sysv4.3*) 9191 lt_prog_compiler_wl='-Wl,' 9192 lt_prog_compiler_pic='-KPIC' 9193 lt_prog_compiler_static='-Bstatic' 9194 ;; 9195 9196 sysv4*MP*) 9197 if test -d /usr/nec ;then 9198 lt_prog_compiler_pic='-Kconform_pic' 9199 lt_prog_compiler_static='-Bstatic' 9200 fi 9201 ;; 9202 9203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9204 lt_prog_compiler_wl='-Wl,' 9205 lt_prog_compiler_pic='-KPIC' 9206 lt_prog_compiler_static='-Bstatic' 9207 ;; 9208 9209 unicos*) 9210 lt_prog_compiler_wl='-Wl,' 9211 lt_prog_compiler_can_build_shared=no 9212 ;; 9213 9214 uts4*) 9215 lt_prog_compiler_pic='-pic' 9216 lt_prog_compiler_static='-Bstatic' 9217 ;; 9218 9219 *) 9220 lt_prog_compiler_can_build_shared=no 9221 ;; 9222 esac 9223 fi 9224 9225case $host_os in 9226 # For platforms which do not support PIC, -DPIC is meaningless: 9227 *djgpp*) 9228 lt_prog_compiler_pic= 9229 ;; 9230 *) 9231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9232 ;; 9233esac 9234 9235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9236$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9237if ${lt_cv_prog_compiler_pic+:} false; then : 9238 $as_echo_n "(cached) " >&6 9239else 9240 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9241fi 9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9243$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9244lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9245 9246# 9247# Check to make sure the PIC flag actually works. 9248# 9249if test -n "$lt_prog_compiler_pic"; then 9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9251$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9252if ${lt_cv_prog_compiler_pic_works+:} false; then : 9253 $as_echo_n "(cached) " >&6 9254else 9255 lt_cv_prog_compiler_pic_works=no 9256 ac_outfile=conftest.$ac_objext 9257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9258 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9259 # Insert the option either (1) after the last *FLAGS variable, or 9260 # (2) before a word containing "conftest.", or (3) at the end. 9261 # Note that $ac_compile itself does not contain backslashes and begins 9262 # with a dollar sign (not a hyphen), so the echo should work correctly. 9263 # The option is referenced via a variable to avoid confusing sed. 9264 lt_compile=`echo "$ac_compile" | $SED \ 9265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9267 -e 's:$: $lt_compiler_flag:'` 9268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9269 (eval "$lt_compile" 2>conftest.err) 9270 ac_status=$? 9271 cat conftest.err >&5 9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9273 if (exit $ac_status) && test -s "$ac_outfile"; then 9274 # The compiler can only warn and ignore the option if not recognized 9275 # So say no if there are warnings other than the usual output. 9276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9279 lt_cv_prog_compiler_pic_works=yes 9280 fi 9281 fi 9282 $RM conftest* 9283 9284fi 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9286$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9287 9288if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9289 case $lt_prog_compiler_pic in 9290 "" | " "*) ;; 9291 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9292 esac 9293else 9294 lt_prog_compiler_pic= 9295 lt_prog_compiler_can_build_shared=no 9296fi 9297 9298fi 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310# 9311# Check to make sure the static flag actually works. 9312# 9313wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9315$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9316if ${lt_cv_prog_compiler_static_works+:} false; then : 9317 $as_echo_n "(cached) " >&6 9318else 9319 lt_cv_prog_compiler_static_works=no 9320 save_LDFLAGS="$LDFLAGS" 9321 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9322 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9323 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9324 # The linker can only warn and ignore the option if not recognized 9325 # So say no if there are warnings 9326 if test -s conftest.err; then 9327 # Append any errors to the config.log. 9328 cat conftest.err 1>&5 9329 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9330 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9331 if diff conftest.exp conftest.er2 >/dev/null; then 9332 lt_cv_prog_compiler_static_works=yes 9333 fi 9334 else 9335 lt_cv_prog_compiler_static_works=yes 9336 fi 9337 fi 9338 $RM -r conftest* 9339 LDFLAGS="$save_LDFLAGS" 9340 9341fi 9342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9343$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9344 9345if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9346 : 9347else 9348 lt_prog_compiler_static= 9349fi 9350 9351 9352 9353 9354 9355 9356 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9358$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9359if ${lt_cv_prog_compiler_c_o+:} false; then : 9360 $as_echo_n "(cached) " >&6 9361else 9362 lt_cv_prog_compiler_c_o=no 9363 $RM -r conftest 2>/dev/null 9364 mkdir conftest 9365 cd conftest 9366 mkdir out 9367 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9368 9369 lt_compiler_flag="-o out/conftest2.$ac_objext" 9370 # Insert the option either (1) after the last *FLAGS variable, or 9371 # (2) before a word containing "conftest.", or (3) at the end. 9372 # Note that $ac_compile itself does not contain backslashes and begins 9373 # with a dollar sign (not a hyphen), so the echo should work correctly. 9374 lt_compile=`echo "$ac_compile" | $SED \ 9375 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9376 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9377 -e 's:$: $lt_compiler_flag:'` 9378 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9379 (eval "$lt_compile" 2>out/conftest.err) 9380 ac_status=$? 9381 cat out/conftest.err >&5 9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9383 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9384 then 9385 # The compiler can only warn and ignore the option if not recognized 9386 # So say no if there are warnings 9387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9388 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9389 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9390 lt_cv_prog_compiler_c_o=yes 9391 fi 9392 fi 9393 chmod u+w . 2>&5 9394 $RM conftest* 9395 # SGI C++ compiler will create directory out/ii_files/ for 9396 # template instantiation 9397 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9398 $RM out/* && rmdir out 9399 cd .. 9400 $RM -r conftest 9401 $RM conftest* 9402 9403fi 9404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9405$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9406 9407 9408 9409 9410 9411 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9413$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9414if ${lt_cv_prog_compiler_c_o+:} false; then : 9415 $as_echo_n "(cached) " >&6 9416else 9417 lt_cv_prog_compiler_c_o=no 9418 $RM -r conftest 2>/dev/null 9419 mkdir conftest 9420 cd conftest 9421 mkdir out 9422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9423 9424 lt_compiler_flag="-o out/conftest2.$ac_objext" 9425 # Insert the option either (1) after the last *FLAGS variable, or 9426 # (2) before a word containing "conftest.", or (3) at the end. 9427 # Note that $ac_compile itself does not contain backslashes and begins 9428 # with a dollar sign (not a hyphen), so the echo should work correctly. 9429 lt_compile=`echo "$ac_compile" | $SED \ 9430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9432 -e 's:$: $lt_compiler_flag:'` 9433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9434 (eval "$lt_compile" 2>out/conftest.err) 9435 ac_status=$? 9436 cat out/conftest.err >&5 9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9438 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9439 then 9440 # The compiler can only warn and ignore the option if not recognized 9441 # So say no if there are warnings 9442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9443 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9444 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9445 lt_cv_prog_compiler_c_o=yes 9446 fi 9447 fi 9448 chmod u+w . 2>&5 9449 $RM conftest* 9450 # SGI C++ compiler will create directory out/ii_files/ for 9451 # template instantiation 9452 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9453 $RM out/* && rmdir out 9454 cd .. 9455 $RM -r conftest 9456 $RM conftest* 9457 9458fi 9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9460$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9461 9462 9463 9464 9465hard_links="nottested" 9466if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9467 # do not overwrite the value of need_locks provided by the user 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9469$as_echo_n "checking if we can lock with hard links... " >&6; } 9470 hard_links=yes 9471 $RM conftest* 9472 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9473 touch conftest.a 9474 ln conftest.a conftest.b 2>&5 || hard_links=no 9475 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9477$as_echo "$hard_links" >&6; } 9478 if test "$hard_links" = no; then 9479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9480$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9481 need_locks=warn 9482 fi 9483else 9484 need_locks=no 9485fi 9486 9487 9488 9489 9490 9491 9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9493$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9494 9495 runpath_var= 9496 allow_undefined_flag= 9497 always_export_symbols=no 9498 archive_cmds= 9499 archive_expsym_cmds= 9500 compiler_needs_object=no 9501 enable_shared_with_static_runtimes=no 9502 export_dynamic_flag_spec= 9503 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9504 hardcode_automatic=no 9505 hardcode_direct=no 9506 hardcode_direct_absolute=no 9507 hardcode_libdir_flag_spec= 9508 hardcode_libdir_flag_spec_ld= 9509 hardcode_libdir_separator= 9510 hardcode_minus_L=no 9511 hardcode_shlibpath_var=unsupported 9512 inherit_rpath=no 9513 link_all_deplibs=unknown 9514 module_cmds= 9515 module_expsym_cmds= 9516 old_archive_from_new_cmds= 9517 old_archive_from_expsyms_cmds= 9518 thread_safe_flag_spec= 9519 whole_archive_flag_spec= 9520 # include_expsyms should be a list of space-separated symbols to be *always* 9521 # included in the symbol list 9522 include_expsyms= 9523 # exclude_expsyms can be an extended regexp of symbols to exclude 9524 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9525 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9526 # as well as any symbol that contains `d'. 9527 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9528 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9529 # platforms (ab)use it in PIC code, but their linkers get confused if 9530 # the symbol is explicitly referenced. Since portable code cannot 9531 # rely on this symbol name, it's probably fine to never include it in 9532 # preloaded symbol tables. 9533 # Exclude shared library initialization/finalization symbols. 9534 extract_expsyms_cmds= 9535 9536 case $host_os in 9537 cygwin* | mingw* | pw32* | cegcc*) 9538 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9539 # When not using gcc, we currently assume that we are using 9540 # Microsoft Visual C++. 9541 if test "$GCC" != yes; then 9542 with_gnu_ld=no 9543 fi 9544 ;; 9545 interix*) 9546 # we just hope/assume this is gcc and not c89 (= MSVC++) 9547 with_gnu_ld=yes 9548 ;; 9549 openbsd*) 9550 with_gnu_ld=no 9551 ;; 9552 esac 9553 9554 ld_shlibs=yes 9555 9556 # On some targets, GNU ld is compatible enough with the native linker 9557 # that we're better off using the native interface for both. 9558 lt_use_gnu_ld_interface=no 9559 if test "$with_gnu_ld" = yes; then 9560 case $host_os in 9561 aix*) 9562 # The AIX port of GNU ld has always aspired to compatibility 9563 # with the native linker. However, as the warning in the GNU ld 9564 # block says, versions before 2.19.5* couldn't really create working 9565 # shared libraries, regardless of the interface used. 9566 case `$LD -v 2>&1` in 9567 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9568 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9569 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9570 *) 9571 lt_use_gnu_ld_interface=yes 9572 ;; 9573 esac 9574 ;; 9575 *) 9576 lt_use_gnu_ld_interface=yes 9577 ;; 9578 esac 9579 fi 9580 9581 if test "$lt_use_gnu_ld_interface" = yes; then 9582 # If archive_cmds runs LD, not CC, wlarc should be empty 9583 wlarc='${wl}' 9584 9585 # Set some defaults for GNU ld with shared library support. These 9586 # are reset later if shared libraries are not supported. Putting them 9587 # here allows them to be overridden if necessary. 9588 runpath_var=LD_RUN_PATH 9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9590 export_dynamic_flag_spec='${wl}--export-dynamic' 9591 # ancient GNU ld didn't support --whole-archive et. al. 9592 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9593 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9594 else 9595 whole_archive_flag_spec= 9596 fi 9597 supports_anon_versioning=no 9598 case `$LD -v 2>&1` in 9599 *GNU\ gold*) supports_anon_versioning=yes ;; 9600 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9601 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9602 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9603 *\ 2.11.*) ;; # other 2.11 versions 9604 *) supports_anon_versioning=yes ;; 9605 esac 9606 9607 # See if GNU ld supports shared libraries. 9608 case $host_os in 9609 aix[3-9]*) 9610 # On AIX/PPC, the GNU linker is very broken 9611 if test "$host_cpu" != ia64; then 9612 ld_shlibs=no 9613 cat <<_LT_EOF 1>&2 9614 9615*** Warning: the GNU linker, at least up to release 2.19, is reported 9616*** to be unable to reliably create shared libraries on AIX. 9617*** Therefore, libtool is disabling shared libraries support. If you 9618*** really care for shared libraries, you may want to install binutils 9619*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9620*** You will then need to restart the configuration process. 9621 9622_LT_EOF 9623 fi 9624 ;; 9625 9626 amigaos*) 9627 case $host_cpu in 9628 powerpc) 9629 # see comment about AmigaOS4 .so support 9630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9631 archive_expsym_cmds='' 9632 ;; 9633 m68k) 9634 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)' 9635 hardcode_libdir_flag_spec='-L$libdir' 9636 hardcode_minus_L=yes 9637 ;; 9638 esac 9639 ;; 9640 9641 beos*) 9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9643 allow_undefined_flag=unsupported 9644 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9645 # support --undefined. This deserves some investigation. FIXME 9646 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9647 else 9648 ld_shlibs=no 9649 fi 9650 ;; 9651 9652 cygwin* | mingw* | pw32* | cegcc*) 9653 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9654 # as there is no search path for DLLs. 9655 hardcode_libdir_flag_spec='-L$libdir' 9656 export_dynamic_flag_spec='${wl}--export-all-symbols' 9657 allow_undefined_flag=unsupported 9658 always_export_symbols=no 9659 enable_shared_with_static_runtimes=yes 9660 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' 9661 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9662 9663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9665 # If the export-symbols file already is a .def file (1st line 9666 # is EXPORTS), use it as is; otherwise, prepend... 9667 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9668 cp $export_symbols $output_objdir/$soname.def; 9669 else 9670 echo EXPORTS > $output_objdir/$soname.def; 9671 cat $export_symbols >> $output_objdir/$soname.def; 9672 fi~ 9673 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9674 else 9675 ld_shlibs=no 9676 fi 9677 ;; 9678 9679 haiku*) 9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9681 link_all_deplibs=yes 9682 ;; 9683 9684 interix[3-9]*) 9685 hardcode_direct=no 9686 hardcode_shlibpath_var=no 9687 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9688 export_dynamic_flag_spec='${wl}-E' 9689 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9690 # Instead, shared libraries are loaded at an image base (0x10000000 by 9691 # default) and relocated if they conflict, which is a slow very memory 9692 # consuming and fragmenting process. To avoid this, we pick a random, 9693 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9694 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9695 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9696 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' 9697 ;; 9698 9699 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9700 tmp_diet=no 9701 if test "$host_os" = linux-dietlibc; then 9702 case $cc_basename in 9703 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9704 esac 9705 fi 9706 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9707 && test "$tmp_diet" = no 9708 then 9709 tmp_addflag=' $pic_flag' 9710 tmp_sharedflag='-shared' 9711 case $cc_basename,$host_cpu in 9712 pgcc*) # Portland Group C compiler 9713 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' 9714 tmp_addflag=' $pic_flag' 9715 ;; 9716 pgf77* | pgf90* | pgf95* | pgfortran*) 9717 # Portland Group f77 and f90 compilers 9718 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' 9719 tmp_addflag=' $pic_flag -Mnomain' ;; 9720 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9721 tmp_addflag=' -i_dynamic' ;; 9722 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9723 tmp_addflag=' -i_dynamic -nofor_main' ;; 9724 ifc* | ifort*) # Intel Fortran compiler 9725 tmp_addflag=' -nofor_main' ;; 9726 lf95*) # Lahey Fortran 8.1 9727 whole_archive_flag_spec= 9728 tmp_sharedflag='--shared' ;; 9729 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9730 tmp_sharedflag='-qmkshrobj' 9731 tmp_addflag= ;; 9732 nvcc*) # Cuda Compiler Driver 2.2 9733 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' 9734 compiler_needs_object=yes 9735 ;; 9736 esac 9737 case `$CC -V 2>&1 | sed 5q` in 9738 *Sun\ C*) # Sun C 5.9 9739 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' 9740 compiler_needs_object=yes 9741 tmp_sharedflag='-G' ;; 9742 *Sun\ F*) # Sun Fortran 8.3 9743 tmp_sharedflag='-G' ;; 9744 esac 9745 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9746 9747 if test "x$supports_anon_versioning" = xyes; then 9748 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9749 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9750 echo "local: *; };" >> $output_objdir/$libname.ver~ 9751 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9752 fi 9753 9754 case $cc_basename in 9755 xlf* | bgf* | bgxlf* | mpixlf*) 9756 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9757 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9758 hardcode_libdir_flag_spec= 9759 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9760 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9761 if test "x$supports_anon_versioning" = xyes; then 9762 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9764 echo "local: *; };" >> $output_objdir/$libname.ver~ 9765 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9766 fi 9767 ;; 9768 esac 9769 else 9770 ld_shlibs=no 9771 fi 9772 ;; 9773 9774 netbsd*) 9775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9776 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9777 wlarc= 9778 else 9779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9780 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9781 fi 9782 ;; 9783 9784 solaris*) 9785 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9786 ld_shlibs=no 9787 cat <<_LT_EOF 1>&2 9788 9789*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9790*** create shared libraries on Solaris systems. Therefore, libtool 9791*** is disabling shared libraries support. We urge you to upgrade GNU 9792*** binutils to release 2.9.1 or newer. Another option is to modify 9793*** your PATH or compiler configuration so that the native linker is 9794*** used, and then restart. 9795 9796_LT_EOF 9797 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9798 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9799 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9800 else 9801 ld_shlibs=no 9802 fi 9803 ;; 9804 9805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9806 case `$LD -v 2>&1` in 9807 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9808 ld_shlibs=no 9809 cat <<_LT_EOF 1>&2 9810 9811*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9812*** reliably create shared libraries on SCO systems. Therefore, libtool 9813*** is disabling shared libraries support. We urge you to upgrade GNU 9814*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9815*** your PATH or compiler configuration so that the native linker is 9816*** used, and then restart. 9817 9818_LT_EOF 9819 ;; 9820 *) 9821 # For security reasons, it is highly recommended that you always 9822 # use absolute paths for naming shared libraries, and exclude the 9823 # DT_RUNPATH tag from executables and libraries. But doing so 9824 # requires that you compile everything twice, which is a pain. 9825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9829 else 9830 ld_shlibs=no 9831 fi 9832 ;; 9833 esac 9834 ;; 9835 9836 sunos4*) 9837 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9838 wlarc= 9839 hardcode_direct=yes 9840 hardcode_shlibpath_var=no 9841 ;; 9842 9843 *) 9844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9846 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9847 else 9848 ld_shlibs=no 9849 fi 9850 ;; 9851 esac 9852 9853 if test "$ld_shlibs" = no; then 9854 runpath_var= 9855 hardcode_libdir_flag_spec= 9856 export_dynamic_flag_spec= 9857 whole_archive_flag_spec= 9858 fi 9859 else 9860 # PORTME fill in a description of your system's linker (not GNU ld) 9861 case $host_os in 9862 aix3*) 9863 allow_undefined_flag=unsupported 9864 always_export_symbols=yes 9865 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' 9866 # Note: this linker hardcodes the directories in LIBPATH if there 9867 # are no directories specified by -L. 9868 hardcode_minus_L=yes 9869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9870 # Neither direct hardcoding nor static linking is supported with a 9871 # broken collect2. 9872 hardcode_direct=unsupported 9873 fi 9874 ;; 9875 9876 aix[4-9]*) 9877 if test "$host_cpu" = ia64; then 9878 # On IA64, the linker does run time linking by default, so we don't 9879 # have to do anything special. 9880 aix_use_runtimelinking=no 9881 exp_sym_flag='-Bexport' 9882 no_entry_flag="" 9883 else 9884 # If we're using GNU nm, then we don't want the "-C" option. 9885 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9886 # Also, AIX nm treats weak defined symbols like other global 9887 # defined symbols, whereas GNU nm marks them as "W". 9888 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9889 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9890 else 9891 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9892 fi 9893 aix_use_runtimelinking=no 9894 9895 # Test if we are trying to use run time linking or normal 9896 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9897 # need to do runtime linking. 9898 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9899 for ld_flag in $LDFLAGS; do 9900 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9901 aix_use_runtimelinking=yes 9902 break 9903 fi 9904 done 9905 ;; 9906 esac 9907 9908 exp_sym_flag='-bexport' 9909 no_entry_flag='-bnoentry' 9910 fi 9911 9912 # When large executables or shared objects are built, AIX ld can 9913 # have problems creating the table of contents. If linking a library 9914 # or program results in "error TOC overflow" add -mminimal-toc to 9915 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9916 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9917 9918 archive_cmds='' 9919 hardcode_direct=yes 9920 hardcode_direct_absolute=yes 9921 hardcode_libdir_separator=':' 9922 link_all_deplibs=yes 9923 file_list_spec='${wl}-f,' 9924 9925 if test "$GCC" = yes; then 9926 case $host_os in aix4.[012]|aix4.[012].*) 9927 # We only want to do this on AIX 4.2 and lower, the check 9928 # below for broken collect2 doesn't work under 4.3+ 9929 collect2name=`${CC} -print-prog-name=collect2` 9930 if test -f "$collect2name" && 9931 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9932 then 9933 # We have reworked collect2 9934 : 9935 else 9936 # We have old collect2 9937 hardcode_direct=unsupported 9938 # It fails to find uninstalled libraries when the uninstalled 9939 # path is not listed in the libpath. Setting hardcode_minus_L 9940 # to unsupported forces relinking 9941 hardcode_minus_L=yes 9942 hardcode_libdir_flag_spec='-L$libdir' 9943 hardcode_libdir_separator= 9944 fi 9945 ;; 9946 esac 9947 shared_flag='-shared' 9948 if test "$aix_use_runtimelinking" = yes; then 9949 shared_flag="$shared_flag "'${wl}-G' 9950 fi 9951 else 9952 # not using gcc 9953 if test "$host_cpu" = ia64; then 9954 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9955 # chokes on -Wl,-G. The following line is correct: 9956 shared_flag='-G' 9957 else 9958 if test "$aix_use_runtimelinking" = yes; then 9959 shared_flag='${wl}-G' 9960 else 9961 shared_flag='${wl}-bM:SRE' 9962 fi 9963 fi 9964 fi 9965 9966 export_dynamic_flag_spec='${wl}-bexpall' 9967 # It seems that -bexpall does not export symbols beginning with 9968 # underscore (_), so it is better to generate a list of symbols to export. 9969 always_export_symbols=yes 9970 if test "$aix_use_runtimelinking" = yes; then 9971 # Warning - without using the other runtime loading flags (-brtl), 9972 # -berok will link without error, but may produce a broken library. 9973 allow_undefined_flag='-berok' 9974 # Determine the default libpath from the value encoded in an 9975 # empty executable. 9976 if test "${lt_cv_aix_libpath+set}" = set; then 9977 aix_libpath=$lt_cv_aix_libpath 9978else 9979 if ${lt_cv_aix_libpath_+:} false; then : 9980 $as_echo_n "(cached) " >&6 9981else 9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9983/* end confdefs.h. */ 9984 9985int 9986main () 9987{ 9988 9989 ; 9990 return 0; 9991} 9992_ACEOF 9993if ac_fn_c_try_link "$LINENO"; then : 9994 9995 lt_aix_libpath_sed=' 9996 /Import File Strings/,/^$/ { 9997 /^0/ { 9998 s/^0 *\([^ ]*\) *$/\1/ 9999 p 10000 } 10001 }' 10002 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10003 # Check for a 64-bit object if we didn't find anything. 10004 if test -z "$lt_cv_aix_libpath_"; then 10005 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10006 fi 10007fi 10008rm -f core conftest.err conftest.$ac_objext \ 10009 conftest$ac_exeext conftest.$ac_ext 10010 if test -z "$lt_cv_aix_libpath_"; then 10011 lt_cv_aix_libpath_="/usr/lib:/lib" 10012 fi 10013 10014fi 10015 10016 aix_libpath=$lt_cv_aix_libpath_ 10017fi 10018 10019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10020 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10021 else 10022 if test "$host_cpu" = ia64; then 10023 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10024 allow_undefined_flag="-z nodefs" 10025 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" 10026 else 10027 # Determine the default libpath from the value encoded in an 10028 # empty executable. 10029 if test "${lt_cv_aix_libpath+set}" = set; then 10030 aix_libpath=$lt_cv_aix_libpath 10031else 10032 if ${lt_cv_aix_libpath_+:} false; then : 10033 $as_echo_n "(cached) " >&6 10034else 10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036/* end confdefs.h. */ 10037 10038int 10039main () 10040{ 10041 10042 ; 10043 return 0; 10044} 10045_ACEOF 10046if ac_fn_c_try_link "$LINENO"; then : 10047 10048 lt_aix_libpath_sed=' 10049 /Import File Strings/,/^$/ { 10050 /^0/ { 10051 s/^0 *\([^ ]*\) *$/\1/ 10052 p 10053 } 10054 }' 10055 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10056 # Check for a 64-bit object if we didn't find anything. 10057 if test -z "$lt_cv_aix_libpath_"; then 10058 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10059 fi 10060fi 10061rm -f core conftest.err conftest.$ac_objext \ 10062 conftest$ac_exeext conftest.$ac_ext 10063 if test -z "$lt_cv_aix_libpath_"; then 10064 lt_cv_aix_libpath_="/usr/lib:/lib" 10065 fi 10066 10067fi 10068 10069 aix_libpath=$lt_cv_aix_libpath_ 10070fi 10071 10072 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10073 # Warning - without using the other run time loading flags, 10074 # -berok will link without error, but may produce a broken library. 10075 no_undefined_flag=' ${wl}-bernotok' 10076 allow_undefined_flag=' ${wl}-berok' 10077 if test "$with_gnu_ld" = yes; then 10078 # We only use this code for GNU lds that support --whole-archive. 10079 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10080 else 10081 # Exported symbols can be pulled into shared objects from archives 10082 whole_archive_flag_spec='$convenience' 10083 fi 10084 archive_cmds_need_lc=yes 10085 # This is similar to how AIX traditionally builds its shared libraries. 10086 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10087 fi 10088 fi 10089 ;; 10090 10091 amigaos*) 10092 case $host_cpu in 10093 powerpc) 10094 # see comment about AmigaOS4 .so support 10095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10096 archive_expsym_cmds='' 10097 ;; 10098 m68k) 10099 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)' 10100 hardcode_libdir_flag_spec='-L$libdir' 10101 hardcode_minus_L=yes 10102 ;; 10103 esac 10104 ;; 10105 10106 bsdi[45]*) 10107 export_dynamic_flag_spec=-rdynamic 10108 ;; 10109 10110 cygwin* | mingw* | pw32* | cegcc*) 10111 # When not using gcc, we currently assume that we are using 10112 # Microsoft Visual C++. 10113 # hardcode_libdir_flag_spec is actually meaningless, as there is 10114 # no search path for DLLs. 10115 case $cc_basename in 10116 cl*) 10117 # Native MSVC 10118 hardcode_libdir_flag_spec=' ' 10119 allow_undefined_flag=unsupported 10120 always_export_symbols=yes 10121 file_list_spec='@' 10122 # Tell ltmain to make .lib files, not .a files. 10123 libext=lib 10124 # Tell ltmain to make .dll files, not .so files. 10125 shrext_cmds=".dll" 10126 # FIXME: Setting linknames here is a bad hack. 10127 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10128 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10129 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10130 else 10131 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10132 fi~ 10133 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10134 linknames=' 10135 # The linker will not automatically build a static lib if we build a DLL. 10136 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10137 enable_shared_with_static_runtimes=yes 10138 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10139 # Don't use ranlib 10140 old_postinstall_cmds='chmod 644 $oldlib' 10141 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10142 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10143 case $lt_outputfile in 10144 *.exe|*.EXE) ;; 10145 *) 10146 lt_outputfile="$lt_outputfile.exe" 10147 lt_tool_outputfile="$lt_tool_outputfile.exe" 10148 ;; 10149 esac~ 10150 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10151 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10152 $RM "$lt_outputfile.manifest"; 10153 fi' 10154 ;; 10155 *) 10156 # Assume MSVC wrapper 10157 hardcode_libdir_flag_spec=' ' 10158 allow_undefined_flag=unsupported 10159 # Tell ltmain to make .lib files, not .a files. 10160 libext=lib 10161 # Tell ltmain to make .dll files, not .so files. 10162 shrext_cmds=".dll" 10163 # FIXME: Setting linknames here is a bad hack. 10164 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10165 # The linker will automatically build a .lib file if we build a DLL. 10166 old_archive_from_new_cmds='true' 10167 # FIXME: Should let the user specify the lib program. 10168 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10169 enable_shared_with_static_runtimes=yes 10170 ;; 10171 esac 10172 ;; 10173 10174 darwin* | rhapsody*) 10175 10176 10177 archive_cmds_need_lc=no 10178 hardcode_direct=no 10179 hardcode_automatic=yes 10180 hardcode_shlibpath_var=unsupported 10181 if test "$lt_cv_ld_force_load" = "yes"; then 10182 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\"`' 10183 else 10184 whole_archive_flag_spec='' 10185 fi 10186 link_all_deplibs=yes 10187 allow_undefined_flag="$_lt_dar_allow_undefined" 10188 case $cc_basename in 10189 ifort*) _lt_dar_can_shared=yes ;; 10190 *) _lt_dar_can_shared=$GCC ;; 10191 esac 10192 if test "$_lt_dar_can_shared" = "yes"; then 10193 output_verbose_link_cmd=func_echo_all 10194 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10195 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10196 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}" 10197 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}" 10198 10199 else 10200 ld_shlibs=no 10201 fi 10202 10203 ;; 10204 10205 dgux*) 10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10207 hardcode_libdir_flag_spec='-L$libdir' 10208 hardcode_shlibpath_var=no 10209 ;; 10210 10211 freebsd1*) 10212 ld_shlibs=no 10213 ;; 10214 10215 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10216 # support. Future versions do this automatically, but an explicit c++rt0.o 10217 # does not break anything, and helps significantly (at the cost of a little 10218 # extra space). 10219 freebsd2.2*) 10220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10221 hardcode_libdir_flag_spec='-R$libdir' 10222 hardcode_direct=yes 10223 hardcode_shlibpath_var=no 10224 ;; 10225 10226 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10227 freebsd2*) 10228 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10229 hardcode_direct=yes 10230 hardcode_minus_L=yes 10231 hardcode_shlibpath_var=no 10232 ;; 10233 10234 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10235 freebsd* | dragonfly*) 10236 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10237 hardcode_libdir_flag_spec='-R$libdir' 10238 hardcode_direct=yes 10239 hardcode_shlibpath_var=no 10240 ;; 10241 10242 hpux9*) 10243 if test "$GCC" = yes; then 10244 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10245 else 10246 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10247 fi 10248 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10249 hardcode_libdir_separator=: 10250 hardcode_direct=yes 10251 10252 # hardcode_minus_L: Not really in the search PATH, 10253 # but as the default location of the library. 10254 hardcode_minus_L=yes 10255 export_dynamic_flag_spec='${wl}-E' 10256 ;; 10257 10258 hpux10*) 10259 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10260 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10261 else 10262 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10263 fi 10264 if test "$with_gnu_ld" = no; then 10265 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10266 hardcode_libdir_flag_spec_ld='+b $libdir' 10267 hardcode_libdir_separator=: 10268 hardcode_direct=yes 10269 hardcode_direct_absolute=yes 10270 export_dynamic_flag_spec='${wl}-E' 10271 # hardcode_minus_L: Not really in the search PATH, 10272 # but as the default location of the library. 10273 hardcode_minus_L=yes 10274 fi 10275 ;; 10276 10277 hpux11*) 10278 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10279 case $host_cpu in 10280 hppa*64*) 10281 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10282 ;; 10283 ia64*) 10284 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10285 ;; 10286 *) 10287 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10288 ;; 10289 esac 10290 else 10291 case $host_cpu in 10292 hppa*64*) 10293 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10294 ;; 10295 ia64*) 10296 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10297 ;; 10298 *) 10299 10300 # Older versions of the 11.00 compiler do not understand -b yet 10301 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10303$as_echo_n "checking if $CC understands -b... " >&6; } 10304if ${lt_cv_prog_compiler__b+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 lt_cv_prog_compiler__b=no 10308 save_LDFLAGS="$LDFLAGS" 10309 LDFLAGS="$LDFLAGS -b" 10310 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10311 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10312 # The linker can only warn and ignore the option if not recognized 10313 # So say no if there are warnings 10314 if test -s conftest.err; then 10315 # Append any errors to the config.log. 10316 cat conftest.err 1>&5 10317 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10319 if diff conftest.exp conftest.er2 >/dev/null; then 10320 lt_cv_prog_compiler__b=yes 10321 fi 10322 else 10323 lt_cv_prog_compiler__b=yes 10324 fi 10325 fi 10326 $RM -r conftest* 10327 LDFLAGS="$save_LDFLAGS" 10328 10329fi 10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10331$as_echo "$lt_cv_prog_compiler__b" >&6; } 10332 10333if test x"$lt_cv_prog_compiler__b" = xyes; then 10334 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10335else 10336 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10337fi 10338 10339 ;; 10340 esac 10341 fi 10342 if test "$with_gnu_ld" = no; then 10343 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10344 hardcode_libdir_separator=: 10345 10346 case $host_cpu in 10347 hppa*64*|ia64*) 10348 hardcode_direct=no 10349 hardcode_shlibpath_var=no 10350 ;; 10351 *) 10352 hardcode_direct=yes 10353 hardcode_direct_absolute=yes 10354 export_dynamic_flag_spec='${wl}-E' 10355 10356 # hardcode_minus_L: Not really in the search PATH, 10357 # but as the default location of the library. 10358 hardcode_minus_L=yes 10359 ;; 10360 esac 10361 fi 10362 ;; 10363 10364 irix5* | irix6* | nonstopux*) 10365 if test "$GCC" = yes; then 10366 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' 10367 # Try to use the -exported_symbol ld option, if it does not 10368 # work, assume that -exports_file does not work either and 10369 # implicitly export all symbols. 10370 # This should be the same for all languages, so no per-tag cache variable. 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10372$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10373if ${lt_cv_irix_exported_symbol+:} false; then : 10374 $as_echo_n "(cached) " >&6 10375else 10376 save_LDFLAGS="$LDFLAGS" 10377 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10379/* end confdefs.h. */ 10380int foo (void) { return 0; } 10381_ACEOF 10382if ac_fn_c_try_link "$LINENO"; then : 10383 lt_cv_irix_exported_symbol=yes 10384else 10385 lt_cv_irix_exported_symbol=no 10386fi 10387rm -f core conftest.err conftest.$ac_objext \ 10388 conftest$ac_exeext conftest.$ac_ext 10389 LDFLAGS="$save_LDFLAGS" 10390fi 10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10392$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10393 if test "$lt_cv_irix_exported_symbol" = yes; then 10394 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' 10395 fi 10396 else 10397 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' 10398 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' 10399 fi 10400 archive_cmds_need_lc='no' 10401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10402 hardcode_libdir_separator=: 10403 inherit_rpath=yes 10404 link_all_deplibs=yes 10405 ;; 10406 10407 netbsd*) 10408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10410 else 10411 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10412 fi 10413 hardcode_libdir_flag_spec='-R$libdir' 10414 hardcode_direct=yes 10415 hardcode_shlibpath_var=no 10416 ;; 10417 10418 newsos6) 10419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10420 hardcode_direct=yes 10421 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10422 hardcode_libdir_separator=: 10423 hardcode_shlibpath_var=no 10424 ;; 10425 10426 *nto* | *qnx*) 10427 ;; 10428 10429 openbsd*) 10430 if test -f /usr/libexec/ld.so; then 10431 hardcode_direct=yes 10432 hardcode_shlibpath_var=no 10433 hardcode_direct_absolute=yes 10434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10435 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10436 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10437 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10438 export_dynamic_flag_spec='${wl}-E' 10439 else 10440 case $host_os in 10441 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10443 hardcode_libdir_flag_spec='-R$libdir' 10444 ;; 10445 *) 10446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10447 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10448 ;; 10449 esac 10450 fi 10451 else 10452 ld_shlibs=no 10453 fi 10454 ;; 10455 10456 os2*) 10457 hardcode_libdir_flag_spec='-L$libdir' 10458 hardcode_minus_L=yes 10459 allow_undefined_flag=unsupported 10460 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10461 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10462 ;; 10463 10464 osf3*) 10465 if test "$GCC" = yes; then 10466 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10467 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' 10468 else 10469 allow_undefined_flag=' -expect_unresolved \*' 10470 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' 10471 fi 10472 archive_cmds_need_lc='no' 10473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10474 hardcode_libdir_separator=: 10475 ;; 10476 10477 osf4* | osf5*) # as osf3* with the addition of -msym flag 10478 if test "$GCC" = yes; then 10479 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10480 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' 10481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10482 else 10483 allow_undefined_flag=' -expect_unresolved \*' 10484 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' 10485 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~ 10486 $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' 10487 10488 # Both c and cxx compiler support -rpath directly 10489 hardcode_libdir_flag_spec='-rpath $libdir' 10490 fi 10491 archive_cmds_need_lc='no' 10492 hardcode_libdir_separator=: 10493 ;; 10494 10495 solaris*) 10496 no_undefined_flag=' -z defs' 10497 if test "$GCC" = yes; then 10498 wlarc='${wl}' 10499 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10500 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10501 $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' 10502 else 10503 case `$CC -V 2>&1` in 10504 *"Compilers 5.0"*) 10505 wlarc='' 10506 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10508 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10509 ;; 10510 *) 10511 wlarc='${wl}' 10512 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10513 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10514 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10515 ;; 10516 esac 10517 fi 10518 hardcode_libdir_flag_spec='-R$libdir' 10519 hardcode_shlibpath_var=no 10520 case $host_os in 10521 solaris2.[0-5] | solaris2.[0-5].*) ;; 10522 *) 10523 # The compiler driver will combine and reorder linker options, 10524 # but understands `-z linker_flag'. GCC discards it without `$wl', 10525 # but is careful enough not to reorder. 10526 # Supported since Solaris 2.6 (maybe 2.5.1?) 10527 if test "$GCC" = yes; then 10528 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10529 else 10530 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10531 fi 10532 ;; 10533 esac 10534 link_all_deplibs=yes 10535 ;; 10536 10537 sunos4*) 10538 if test "x$host_vendor" = xsequent; then 10539 # Use $CC to link under sequent, because it throws in some extra .o 10540 # files that make .init and .fini sections work. 10541 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10542 else 10543 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10544 fi 10545 hardcode_libdir_flag_spec='-L$libdir' 10546 hardcode_direct=yes 10547 hardcode_minus_L=yes 10548 hardcode_shlibpath_var=no 10549 ;; 10550 10551 sysv4) 10552 case $host_vendor in 10553 sni) 10554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10555 hardcode_direct=yes # is this really true??? 10556 ;; 10557 siemens) 10558 ## LD is ld it makes a PLAMLIB 10559 ## CC just makes a GrossModule. 10560 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10561 reload_cmds='$CC -r -o $output$reload_objs' 10562 hardcode_direct=no 10563 ;; 10564 motorola) 10565 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10566 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10567 ;; 10568 esac 10569 runpath_var='LD_RUN_PATH' 10570 hardcode_shlibpath_var=no 10571 ;; 10572 10573 sysv4.3*) 10574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10575 hardcode_shlibpath_var=no 10576 export_dynamic_flag_spec='-Bexport' 10577 ;; 10578 10579 sysv4*MP*) 10580 if test -d /usr/nec; then 10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10582 hardcode_shlibpath_var=no 10583 runpath_var=LD_RUN_PATH 10584 hardcode_runpath_var=yes 10585 ld_shlibs=yes 10586 fi 10587 ;; 10588 10589 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10590 no_undefined_flag='${wl}-z,text' 10591 archive_cmds_need_lc=no 10592 hardcode_shlibpath_var=no 10593 runpath_var='LD_RUN_PATH' 10594 10595 if test "$GCC" = yes; then 10596 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10597 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10598 else 10599 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10600 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10601 fi 10602 ;; 10603 10604 sysv5* | sco3.2v5* | sco5v6*) 10605 # Note: We can NOT use -z defs as we might desire, because we do not 10606 # link with -lc, and that would cause any symbols used from libc to 10607 # always be unresolved, which means just about no library would 10608 # ever link correctly. If we're not using GNU ld we use -z text 10609 # though, which does catch some bad symbols but isn't as heavy-handed 10610 # as -z defs. 10611 no_undefined_flag='${wl}-z,text' 10612 allow_undefined_flag='${wl}-z,nodefs' 10613 archive_cmds_need_lc=no 10614 hardcode_shlibpath_var=no 10615 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10616 hardcode_libdir_separator=':' 10617 link_all_deplibs=yes 10618 export_dynamic_flag_spec='${wl}-Bexport' 10619 runpath_var='LD_RUN_PATH' 10620 10621 if test "$GCC" = yes; then 10622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10624 else 10625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10627 fi 10628 ;; 10629 10630 uts4*) 10631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10632 hardcode_libdir_flag_spec='-L$libdir' 10633 hardcode_shlibpath_var=no 10634 ;; 10635 10636 *) 10637 ld_shlibs=no 10638 ;; 10639 esac 10640 10641 if test x$host_vendor = xsni; then 10642 case $host in 10643 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10644 export_dynamic_flag_spec='${wl}-Blargedynsym' 10645 ;; 10646 esac 10647 fi 10648 fi 10649 10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10651$as_echo "$ld_shlibs" >&6; } 10652test "$ld_shlibs" = no && can_build_shared=no 10653 10654with_gnu_ld=$with_gnu_ld 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670# 10671# Do we need to explicitly link libc? 10672# 10673case "x$archive_cmds_need_lc" in 10674x|xyes) 10675 # Assume -lc should be added 10676 archive_cmds_need_lc=yes 10677 10678 if test "$enable_shared" = yes && test "$GCC" = yes; then 10679 case $archive_cmds in 10680 *'~'*) 10681 # FIXME: we may have to deal with multi-command sequences. 10682 ;; 10683 '$CC '*) 10684 # Test whether the compiler implicitly links with -lc since on some 10685 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10686 # to ld, don't add -lc before -lgcc. 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10688$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10689if ${lt_cv_archive_cmds_need_lc+:} false; then : 10690 $as_echo_n "(cached) " >&6 10691else 10692 $RM conftest* 10693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10694 10695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10696 (eval $ac_compile) 2>&5 10697 ac_status=$? 10698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10699 test $ac_status = 0; } 2>conftest.err; then 10700 soname=conftest 10701 lib=conftest 10702 libobjs=conftest.$ac_objext 10703 deplibs= 10704 wl=$lt_prog_compiler_wl 10705 pic_flag=$lt_prog_compiler_pic 10706 compiler_flags=-v 10707 linker_flags=-v 10708 verstring= 10709 output_objdir=. 10710 libname=conftest 10711 lt_save_allow_undefined_flag=$allow_undefined_flag 10712 allow_undefined_flag= 10713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10714 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10715 ac_status=$? 10716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10717 test $ac_status = 0; } 10718 then 10719 lt_cv_archive_cmds_need_lc=no 10720 else 10721 lt_cv_archive_cmds_need_lc=yes 10722 fi 10723 allow_undefined_flag=$lt_save_allow_undefined_flag 10724 else 10725 cat conftest.err 1>&5 10726 fi 10727 $RM conftest* 10728 10729fi 10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10731$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10732 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10733 ;; 10734 esac 10735 fi 10736 ;; 10737esac 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10896$as_echo_n "checking dynamic linker characteristics... " >&6; } 10897 10898if test "$GCC" = yes; then 10899 case $host_os in 10900 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10901 *) lt_awk_arg="/^libraries:/" ;; 10902 esac 10903 case $host_os in 10904 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10905 *) lt_sed_strip_eq="s,=/,/,g" ;; 10906 esac 10907 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10908 case $lt_search_path_spec in 10909 *\;*) 10910 # if the path contains ";" then we assume it to be the separator 10911 # otherwise default to the standard path separator (i.e. ":") - it is 10912 # assumed that no part of a normal pathname contains ";" but that should 10913 # okay in the real world where ";" in dirpaths is itself problematic. 10914 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10915 ;; 10916 *) 10917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10918 ;; 10919 esac 10920 # Ok, now we have the path, separated by spaces, we can step through it 10921 # and add multilib dir if necessary. 10922 lt_tmp_lt_search_path_spec= 10923 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10924 for lt_sys_path in $lt_search_path_spec; do 10925 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10926 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10927 else 10928 test -d "$lt_sys_path" && \ 10929 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10930 fi 10931 done 10932 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10933BEGIN {RS=" "; FS="/|\n";} { 10934 lt_foo=""; 10935 lt_count=0; 10936 for (lt_i = NF; lt_i > 0; lt_i--) { 10937 if ($lt_i != "" && $lt_i != ".") { 10938 if ($lt_i == "..") { 10939 lt_count++; 10940 } else { 10941 if (lt_count == 0) { 10942 lt_foo="/" $lt_i lt_foo; 10943 } else { 10944 lt_count--; 10945 } 10946 } 10947 } 10948 } 10949 if (lt_foo != "") { lt_freq[lt_foo]++; } 10950 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10951}'` 10952 # AWK program above erroneously prepends '/' to C:/dos/paths 10953 # for these hosts. 10954 case $host_os in 10955 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10956 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10957 esac 10958 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10959else 10960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10961fi 10962library_names_spec= 10963libname_spec='lib$name' 10964soname_spec= 10965shrext_cmds=".so" 10966postinstall_cmds= 10967postuninstall_cmds= 10968finish_cmds= 10969finish_eval= 10970shlibpath_var= 10971shlibpath_overrides_runpath=unknown 10972version_type=none 10973dynamic_linker="$host_os ld.so" 10974sys_lib_dlsearch_path_spec="/lib /usr/lib" 10975need_lib_prefix=unknown 10976hardcode_into_libs=no 10977 10978# when you set need_version to no, make sure it does not cause -set_version 10979# flags to be left without arguments 10980need_version=unknown 10981 10982case $host_os in 10983aix3*) 10984 version_type=linux 10985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10986 shlibpath_var=LIBPATH 10987 10988 # AIX 3 has no versioning support, so we append a major version to the name. 10989 soname_spec='${libname}${release}${shared_ext}$major' 10990 ;; 10991 10992aix[4-9]*) 10993 version_type=linux 10994 need_lib_prefix=no 10995 need_version=no 10996 hardcode_into_libs=yes 10997 if test "$host_cpu" = ia64; then 10998 # AIX 5 supports IA64 10999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11000 shlibpath_var=LD_LIBRARY_PATH 11001 else 11002 # With GCC up to 2.95.x, collect2 would create an import file 11003 # for dependence libraries. The import file would start with 11004 # the line `#! .'. This would cause the generated library to 11005 # depend on `.', always an invalid library. This was fixed in 11006 # development snapshots of GCC prior to 3.0. 11007 case $host_os in 11008 aix4 | aix4.[01] | aix4.[01].*) 11009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11010 echo ' yes ' 11011 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11012 : 11013 else 11014 can_build_shared=no 11015 fi 11016 ;; 11017 esac 11018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11019 # soname into executable. Probably we can add versioning support to 11020 # collect2, so additional links can be useful in future. 11021 if test "$aix_use_runtimelinking" = yes; then 11022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11023 # instead of lib<name>.a to let people know that these are not 11024 # typical AIX shared libraries. 11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11026 else 11027 # We preserve .a as extension for shared libraries through AIX4.2 11028 # and later when we are not doing run time linking. 11029 library_names_spec='${libname}${release}.a $libname.a' 11030 soname_spec='${libname}${release}${shared_ext}$major' 11031 fi 11032 shlibpath_var=LIBPATH 11033 fi 11034 ;; 11035 11036amigaos*) 11037 case $host_cpu in 11038 powerpc) 11039 # Since July 2007 AmigaOS4 officially supports .so libraries. 11040 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11042 ;; 11043 m68k) 11044 library_names_spec='$libname.ixlibrary $libname.a' 11045 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11046 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11047 ;; 11048 esac 11049 ;; 11050 11051beos*) 11052 library_names_spec='${libname}${shared_ext}' 11053 dynamic_linker="$host_os ld.so" 11054 shlibpath_var=LIBRARY_PATH 11055 ;; 11056 11057bsdi[45]*) 11058 version_type=linux 11059 need_version=no 11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11061 soname_spec='${libname}${release}${shared_ext}$major' 11062 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11063 shlibpath_var=LD_LIBRARY_PATH 11064 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11065 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11066 # the default ld.so.conf also contains /usr/contrib/lib and 11067 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11068 # libtool to hard-code these into programs 11069 ;; 11070 11071cygwin* | mingw* | pw32* | cegcc*) 11072 version_type=windows 11073 shrext_cmds=".dll" 11074 need_version=no 11075 need_lib_prefix=no 11076 11077 case $GCC,$cc_basename in 11078 yes,*) 11079 # gcc 11080 library_names_spec='$libname.dll.a' 11081 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11082 postinstall_cmds='base_file=`basename \${file}`~ 11083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11084 dldir=$destdir/`dirname \$dlpath`~ 11085 test -d \$dldir || mkdir -p \$dldir~ 11086 $install_prog $dir/$dlname \$dldir/$dlname~ 11087 chmod a+x \$dldir/$dlname~ 11088 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11089 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11090 fi' 11091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11092 dlpath=$dir/\$dldll~ 11093 $RM \$dlpath' 11094 shlibpath_overrides_runpath=yes 11095 11096 case $host_os in 11097 cygwin*) 11098 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11100 11101 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11102 ;; 11103 mingw* | cegcc*) 11104 # MinGW DLLs use traditional 'lib' prefix 11105 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11106 ;; 11107 pw32*) 11108 # pw32 DLLs use 'pw' prefix rather than 'lib' 11109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11110 ;; 11111 esac 11112 dynamic_linker='Win32 ld.exe' 11113 ;; 11114 11115 *,cl*) 11116 # Native MSVC 11117 libname_spec='$name' 11118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11119 library_names_spec='${libname}.dll.lib' 11120 11121 case $build_os in 11122 mingw*) 11123 sys_lib_search_path_spec= 11124 lt_save_ifs=$IFS 11125 IFS=';' 11126 for lt_path in $LIB 11127 do 11128 IFS=$lt_save_ifs 11129 # Let DOS variable expansion print the short 8.3 style file name. 11130 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11131 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11132 done 11133 IFS=$lt_save_ifs 11134 # Convert to MSYS style. 11135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11136 ;; 11137 cygwin*) 11138 # Convert to unix form, then to dos form, then back to unix form 11139 # but this time dos style (no spaces!) so that the unix form looks 11140 # like /cygdrive/c/PROGRA~1:/cygdr... 11141 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11142 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11143 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11144 ;; 11145 *) 11146 sys_lib_search_path_spec="$LIB" 11147 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11148 # It is most probably a Windows format PATH. 11149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11150 else 11151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11152 fi 11153 # FIXME: find the short name or the path components, as spaces are 11154 # common. (e.g. "Program Files" -> "PROGRA~1") 11155 ;; 11156 esac 11157 11158 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11159 postinstall_cmds='base_file=`basename \${file}`~ 11160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11161 dldir=$destdir/`dirname \$dlpath`~ 11162 test -d \$dldir || mkdir -p \$dldir~ 11163 $install_prog $dir/$dlname \$dldir/$dlname' 11164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11165 dlpath=$dir/\$dldll~ 11166 $RM \$dlpath' 11167 shlibpath_overrides_runpath=yes 11168 dynamic_linker='Win32 link.exe' 11169 ;; 11170 11171 *) 11172 # Assume MSVC wrapper 11173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11174 dynamic_linker='Win32 ld.exe' 11175 ;; 11176 esac 11177 # FIXME: first we should search . and the directory the executable is in 11178 shlibpath_var=PATH 11179 ;; 11180 11181darwin* | rhapsody*) 11182 dynamic_linker="$host_os dyld" 11183 version_type=darwin 11184 need_lib_prefix=no 11185 need_version=no 11186 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11187 soname_spec='${libname}${release}${major}$shared_ext' 11188 shlibpath_overrides_runpath=yes 11189 shlibpath_var=DYLD_LIBRARY_PATH 11190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11191 11192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11194 ;; 11195 11196dgux*) 11197 version_type=linux 11198 need_lib_prefix=no 11199 need_version=no 11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11201 soname_spec='${libname}${release}${shared_ext}$major' 11202 shlibpath_var=LD_LIBRARY_PATH 11203 ;; 11204 11205freebsd1*) 11206 dynamic_linker=no 11207 ;; 11208 11209freebsd* | dragonfly*) 11210 # DragonFly does not have aout. When/if they implement a new 11211 # versioning mechanism, adjust this. 11212 if test -x /usr/bin/objformat; then 11213 objformat=`/usr/bin/objformat` 11214 else 11215 case $host_os in 11216 freebsd[123]*) objformat=aout ;; 11217 *) objformat=elf ;; 11218 esac 11219 fi 11220 # Handle Gentoo/FreeBSD as it was Linux 11221 case $host_vendor in 11222 gentoo) 11223 version_type=linux ;; 11224 *) 11225 version_type=freebsd-$objformat ;; 11226 esac 11227 11228 case $version_type in 11229 freebsd-elf*) 11230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11231 need_version=no 11232 need_lib_prefix=no 11233 ;; 11234 freebsd-*) 11235 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11236 need_version=yes 11237 ;; 11238 linux) 11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11240 soname_spec='${libname}${release}${shared_ext}$major' 11241 need_lib_prefix=no 11242 need_version=no 11243 ;; 11244 esac 11245 shlibpath_var=LD_LIBRARY_PATH 11246 case $host_os in 11247 freebsd2*) 11248 shlibpath_overrides_runpath=yes 11249 ;; 11250 freebsd3.[01]* | freebsdelf3.[01]*) 11251 shlibpath_overrides_runpath=yes 11252 hardcode_into_libs=yes 11253 ;; 11254 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11255 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11256 shlibpath_overrides_runpath=no 11257 hardcode_into_libs=yes 11258 ;; 11259 *) # from 4.6 on, and DragonFly 11260 shlibpath_overrides_runpath=yes 11261 hardcode_into_libs=yes 11262 ;; 11263 esac 11264 ;; 11265 11266gnu*) 11267 version_type=linux 11268 need_lib_prefix=no 11269 need_version=no 11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11271 soname_spec='${libname}${release}${shared_ext}$major' 11272 shlibpath_var=LD_LIBRARY_PATH 11273 hardcode_into_libs=yes 11274 ;; 11275 11276haiku*) 11277 version_type=linux 11278 need_lib_prefix=no 11279 need_version=no 11280 dynamic_linker="$host_os runtime_loader" 11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11282 soname_spec='${libname}${release}${shared_ext}$major' 11283 shlibpath_var=LIBRARY_PATH 11284 shlibpath_overrides_runpath=yes 11285 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11286 hardcode_into_libs=yes 11287 ;; 11288 11289hpux9* | hpux10* | hpux11*) 11290 # Give a soname corresponding to the major version so that dld.sl refuses to 11291 # link against other versions. 11292 version_type=sunos 11293 need_lib_prefix=no 11294 need_version=no 11295 case $host_cpu in 11296 ia64*) 11297 shrext_cmds='.so' 11298 hardcode_into_libs=yes 11299 dynamic_linker="$host_os dld.so" 11300 shlibpath_var=LD_LIBRARY_PATH 11301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11303 soname_spec='${libname}${release}${shared_ext}$major' 11304 if test "X$HPUX_IA64_MODE" = X32; then 11305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11306 else 11307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11308 fi 11309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11310 ;; 11311 hppa*64*) 11312 shrext_cmds='.sl' 11313 hardcode_into_libs=yes 11314 dynamic_linker="$host_os dld.sl" 11315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11318 soname_spec='${libname}${release}${shared_ext}$major' 11319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11321 ;; 11322 *) 11323 shrext_cmds='.sl' 11324 dynamic_linker="$host_os dld.sl" 11325 shlibpath_var=SHLIB_PATH 11326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11328 soname_spec='${libname}${release}${shared_ext}$major' 11329 ;; 11330 esac 11331 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11332 postinstall_cmds='chmod 555 $lib' 11333 # or fails outright, so override atomically: 11334 install_override_mode=555 11335 ;; 11336 11337interix[3-9]*) 11338 version_type=linux 11339 need_lib_prefix=no 11340 need_version=no 11341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11342 soname_spec='${libname}${release}${shared_ext}$major' 11343 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11344 shlibpath_var=LD_LIBRARY_PATH 11345 shlibpath_overrides_runpath=no 11346 hardcode_into_libs=yes 11347 ;; 11348 11349irix5* | irix6* | nonstopux*) 11350 case $host_os in 11351 nonstopux*) version_type=nonstopux ;; 11352 *) 11353 if test "$lt_cv_prog_gnu_ld" = yes; then 11354 version_type=linux 11355 else 11356 version_type=irix 11357 fi ;; 11358 esac 11359 need_lib_prefix=no 11360 need_version=no 11361 soname_spec='${libname}${release}${shared_ext}$major' 11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11363 case $host_os in 11364 irix5* | nonstopux*) 11365 libsuff= shlibsuff= 11366 ;; 11367 *) 11368 case $LD in # libtool.m4 will add one of these switches to LD 11369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11370 libsuff= shlibsuff= libmagic=32-bit;; 11371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11372 libsuff=32 shlibsuff=N32 libmagic=N32;; 11373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11374 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11375 *) libsuff= shlibsuff= libmagic=never-match;; 11376 esac 11377 ;; 11378 esac 11379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11380 shlibpath_overrides_runpath=no 11381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11383 hardcode_into_libs=yes 11384 ;; 11385 11386# No shared lib support for Linux oldld, aout, or coff. 11387linux*oldld* | linux*aout* | linux*coff*) 11388 dynamic_linker=no 11389 ;; 11390 11391# This must be Linux ELF. 11392linux* | k*bsd*-gnu | kopensolaris*-gnu) 11393 version_type=linux 11394 need_lib_prefix=no 11395 need_version=no 11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11397 soname_spec='${libname}${release}${shared_ext}$major' 11398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11399 shlibpath_var=LD_LIBRARY_PATH 11400 shlibpath_overrides_runpath=no 11401 11402 # Some binutils ld are patched to set DT_RUNPATH 11403 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11404 $as_echo_n "(cached) " >&6 11405else 11406 lt_cv_shlibpath_overrides_runpath=no 11407 save_LDFLAGS=$LDFLAGS 11408 save_libdir=$libdir 11409 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11410 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11412/* end confdefs.h. */ 11413 11414int 11415main () 11416{ 11417 11418 ; 11419 return 0; 11420} 11421_ACEOF 11422if ac_fn_c_try_link "$LINENO"; then : 11423 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11424 lt_cv_shlibpath_overrides_runpath=yes 11425fi 11426fi 11427rm -f core conftest.err conftest.$ac_objext \ 11428 conftest$ac_exeext conftest.$ac_ext 11429 LDFLAGS=$save_LDFLAGS 11430 libdir=$save_libdir 11431 11432fi 11433 11434 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11435 11436 # This implies no fast_install, which is unacceptable. 11437 # Some rework will be needed to allow for fast_install 11438 # before this can be enabled. 11439 hardcode_into_libs=yes 11440 11441 # Append ld.so.conf contents to the search path 11442 if test -f /etc/ld.so.conf; then 11443 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' ' '` 11444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11445 fi 11446 11447 # We used to test for /lib/ld.so.1 and disable shared libraries on 11448 # powerpc, because MkLinux only supported shared libraries with the 11449 # GNU dynamic linker. Since this was broken with cross compilers, 11450 # most powerpc-linux boxes support dynamic linking these days and 11451 # people can always --disable-shared, the test was removed, and we 11452 # assume the GNU/Linux dynamic linker is in use. 11453 dynamic_linker='GNU/Linux ld.so' 11454 ;; 11455 11456netbsd*) 11457 version_type=sunos 11458 need_lib_prefix=no 11459 need_version=no 11460 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11463 dynamic_linker='NetBSD (a.out) ld.so' 11464 else 11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11466 soname_spec='${libname}${release}${shared_ext}$major' 11467 dynamic_linker='NetBSD ld.elf_so' 11468 fi 11469 shlibpath_var=LD_LIBRARY_PATH 11470 shlibpath_overrides_runpath=yes 11471 hardcode_into_libs=yes 11472 ;; 11473 11474newsos6) 11475 version_type=linux 11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11477 shlibpath_var=LD_LIBRARY_PATH 11478 shlibpath_overrides_runpath=yes 11479 ;; 11480 11481*nto* | *qnx*) 11482 version_type=qnx 11483 need_lib_prefix=no 11484 need_version=no 11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11486 soname_spec='${libname}${release}${shared_ext}$major' 11487 shlibpath_var=LD_LIBRARY_PATH 11488 shlibpath_overrides_runpath=no 11489 hardcode_into_libs=yes 11490 dynamic_linker='ldqnx.so' 11491 ;; 11492 11493openbsd*) 11494 version_type=sunos 11495 sys_lib_dlsearch_path_spec="/usr/lib" 11496 need_lib_prefix=no 11497 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11498 case $host_os in 11499 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11500 *) need_version=no ;; 11501 esac 11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11504 shlibpath_var=LD_LIBRARY_PATH 11505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11506 case $host_os in 11507 openbsd2.[89] | openbsd2.[89].*) 11508 shlibpath_overrides_runpath=no 11509 ;; 11510 *) 11511 shlibpath_overrides_runpath=yes 11512 ;; 11513 esac 11514 else 11515 shlibpath_overrides_runpath=yes 11516 fi 11517 ;; 11518 11519os2*) 11520 libname_spec='$name' 11521 shrext_cmds=".dll" 11522 need_lib_prefix=no 11523 library_names_spec='$libname${shared_ext} $libname.a' 11524 dynamic_linker='OS/2 ld.exe' 11525 shlibpath_var=LIBPATH 11526 ;; 11527 11528osf3* | osf4* | osf5*) 11529 version_type=osf 11530 need_lib_prefix=no 11531 need_version=no 11532 soname_spec='${libname}${release}${shared_ext}$major' 11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11534 shlibpath_var=LD_LIBRARY_PATH 11535 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11536 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11537 ;; 11538 11539rdos*) 11540 dynamic_linker=no 11541 ;; 11542 11543solaris*) 11544 version_type=linux 11545 need_lib_prefix=no 11546 need_version=no 11547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11548 soname_spec='${libname}${release}${shared_ext}$major' 11549 shlibpath_var=LD_LIBRARY_PATH 11550 shlibpath_overrides_runpath=yes 11551 hardcode_into_libs=yes 11552 # ldd complains unless libraries are executable 11553 postinstall_cmds='chmod +x $lib' 11554 ;; 11555 11556sunos4*) 11557 version_type=sunos 11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11559 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11560 shlibpath_var=LD_LIBRARY_PATH 11561 shlibpath_overrides_runpath=yes 11562 if test "$with_gnu_ld" = yes; then 11563 need_lib_prefix=no 11564 fi 11565 need_version=yes 11566 ;; 11567 11568sysv4 | sysv4.3*) 11569 version_type=linux 11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11571 soname_spec='${libname}${release}${shared_ext}$major' 11572 shlibpath_var=LD_LIBRARY_PATH 11573 case $host_vendor in 11574 sni) 11575 shlibpath_overrides_runpath=no 11576 need_lib_prefix=no 11577 runpath_var=LD_RUN_PATH 11578 ;; 11579 siemens) 11580 need_lib_prefix=no 11581 ;; 11582 motorola) 11583 need_lib_prefix=no 11584 need_version=no 11585 shlibpath_overrides_runpath=no 11586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11587 ;; 11588 esac 11589 ;; 11590 11591sysv4*MP*) 11592 if test -d /usr/nec ;then 11593 version_type=linux 11594 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11595 soname_spec='$libname${shared_ext}.$major' 11596 shlibpath_var=LD_LIBRARY_PATH 11597 fi 11598 ;; 11599 11600sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11601 version_type=freebsd-elf 11602 need_lib_prefix=no 11603 need_version=no 11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11605 soname_spec='${libname}${release}${shared_ext}$major' 11606 shlibpath_var=LD_LIBRARY_PATH 11607 shlibpath_overrides_runpath=yes 11608 hardcode_into_libs=yes 11609 if test "$with_gnu_ld" = yes; then 11610 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11611 else 11612 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11613 case $host_os in 11614 sco3.2v5*) 11615 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11616 ;; 11617 esac 11618 fi 11619 sys_lib_dlsearch_path_spec='/usr/lib' 11620 ;; 11621 11622tpf*) 11623 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11624 version_type=linux 11625 need_lib_prefix=no 11626 need_version=no 11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11628 shlibpath_var=LD_LIBRARY_PATH 11629 shlibpath_overrides_runpath=no 11630 hardcode_into_libs=yes 11631 ;; 11632 11633uts4*) 11634 version_type=linux 11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11636 soname_spec='${libname}${release}${shared_ext}$major' 11637 shlibpath_var=LD_LIBRARY_PATH 11638 ;; 11639 11640*) 11641 dynamic_linker=no 11642 ;; 11643esac 11644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11645$as_echo "$dynamic_linker" >&6; } 11646test "$dynamic_linker" = no && can_build_shared=no 11647 11648variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11649if test "$GCC" = yes; then 11650 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11651fi 11652 11653if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11654 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11655fi 11656if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11657 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11658fi 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11752$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11753hardcode_action= 11754if test -n "$hardcode_libdir_flag_spec" || 11755 test -n "$runpath_var" || 11756 test "X$hardcode_automatic" = "Xyes" ; then 11757 11758 # We can hardcode non-existent directories. 11759 if test "$hardcode_direct" != no && 11760 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11761 # have to relink, otherwise we might link with an installed library 11762 # when we should be linking with a yet-to-be-installed one 11763 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11764 test "$hardcode_minus_L" != no; then 11765 # Linking always hardcodes the temporary library directory. 11766 hardcode_action=relink 11767 else 11768 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11769 hardcode_action=immediate 11770 fi 11771else 11772 # We cannot hardcode anything, or else we can only hardcode existing 11773 # directories. 11774 hardcode_action=unsupported 11775fi 11776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11777$as_echo "$hardcode_action" >&6; } 11778 11779if test "$hardcode_action" = relink || 11780 test "$inherit_rpath" = yes; then 11781 # Fast installation is not supported 11782 enable_fast_install=no 11783elif test "$shlibpath_overrides_runpath" = yes || 11784 test "$enable_shared" = no; then 11785 # Fast installation is not necessary 11786 enable_fast_install=needless 11787fi 11788 11789 11790 11791 11792 11793 11794 if test "x$enable_dlopen" != xyes; then 11795 enable_dlopen=unknown 11796 enable_dlopen_self=unknown 11797 enable_dlopen_self_static=unknown 11798else 11799 lt_cv_dlopen=no 11800 lt_cv_dlopen_libs= 11801 11802 case $host_os in 11803 beos*) 11804 lt_cv_dlopen="load_add_on" 11805 lt_cv_dlopen_libs= 11806 lt_cv_dlopen_self=yes 11807 ;; 11808 11809 mingw* | pw32* | cegcc*) 11810 lt_cv_dlopen="LoadLibrary" 11811 lt_cv_dlopen_libs= 11812 ;; 11813 11814 cygwin*) 11815 lt_cv_dlopen="dlopen" 11816 lt_cv_dlopen_libs= 11817 ;; 11818 11819 darwin*) 11820 # if libdl is installed we need to link against it 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11822$as_echo_n "checking for dlopen in -ldl... " >&6; } 11823if ${ac_cv_lib_dl_dlopen+:} false; then : 11824 $as_echo_n "(cached) " >&6 11825else 11826 ac_check_lib_save_LIBS=$LIBS 11827LIBS="-ldl $LIBS" 11828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11829/* end confdefs.h. */ 11830 11831/* Override any GCC internal prototype to avoid an error. 11832 Use char because int might match the return type of a GCC 11833 builtin and then its argument prototype would still apply. */ 11834#ifdef __cplusplus 11835extern "C" 11836#endif 11837char dlopen (); 11838int 11839main () 11840{ 11841return dlopen (); 11842 ; 11843 return 0; 11844} 11845_ACEOF 11846if ac_fn_c_try_link "$LINENO"; then : 11847 ac_cv_lib_dl_dlopen=yes 11848else 11849 ac_cv_lib_dl_dlopen=no 11850fi 11851rm -f core conftest.err conftest.$ac_objext \ 11852 conftest$ac_exeext conftest.$ac_ext 11853LIBS=$ac_check_lib_save_LIBS 11854fi 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11856$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11857if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11859else 11860 11861 lt_cv_dlopen="dyld" 11862 lt_cv_dlopen_libs= 11863 lt_cv_dlopen_self=yes 11864 11865fi 11866 11867 ;; 11868 11869 *) 11870 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11871if test "x$ac_cv_func_shl_load" = xyes; then : 11872 lt_cv_dlopen="shl_load" 11873else 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11875$as_echo_n "checking for shl_load in -ldld... " >&6; } 11876if ${ac_cv_lib_dld_shl_load+:} false; then : 11877 $as_echo_n "(cached) " >&6 11878else 11879 ac_check_lib_save_LIBS=$LIBS 11880LIBS="-ldld $LIBS" 11881cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11882/* end confdefs.h. */ 11883 11884/* Override any GCC internal prototype to avoid an error. 11885 Use char because int might match the return type of a GCC 11886 builtin and then its argument prototype would still apply. */ 11887#ifdef __cplusplus 11888extern "C" 11889#endif 11890char shl_load (); 11891int 11892main () 11893{ 11894return shl_load (); 11895 ; 11896 return 0; 11897} 11898_ACEOF 11899if ac_fn_c_try_link "$LINENO"; then : 11900 ac_cv_lib_dld_shl_load=yes 11901else 11902 ac_cv_lib_dld_shl_load=no 11903fi 11904rm -f core conftest.err conftest.$ac_objext \ 11905 conftest$ac_exeext conftest.$ac_ext 11906LIBS=$ac_check_lib_save_LIBS 11907fi 11908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11909$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11910if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11911 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11912else 11913 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11914if test "x$ac_cv_func_dlopen" = xyes; then : 11915 lt_cv_dlopen="dlopen" 11916else 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11918$as_echo_n "checking for dlopen in -ldl... " >&6; } 11919if ${ac_cv_lib_dl_dlopen+:} false; then : 11920 $as_echo_n "(cached) " >&6 11921else 11922 ac_check_lib_save_LIBS=$LIBS 11923LIBS="-ldl $LIBS" 11924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11925/* end confdefs.h. */ 11926 11927/* Override any GCC internal prototype to avoid an error. 11928 Use char because int might match the return type of a GCC 11929 builtin and then its argument prototype would still apply. */ 11930#ifdef __cplusplus 11931extern "C" 11932#endif 11933char dlopen (); 11934int 11935main () 11936{ 11937return dlopen (); 11938 ; 11939 return 0; 11940} 11941_ACEOF 11942if ac_fn_c_try_link "$LINENO"; then : 11943 ac_cv_lib_dl_dlopen=yes 11944else 11945 ac_cv_lib_dl_dlopen=no 11946fi 11947rm -f core conftest.err conftest.$ac_objext \ 11948 conftest$ac_exeext conftest.$ac_ext 11949LIBS=$ac_check_lib_save_LIBS 11950fi 11951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11952$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11953if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11955else 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11957$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11958if ${ac_cv_lib_svld_dlopen+:} false; then : 11959 $as_echo_n "(cached) " >&6 11960else 11961 ac_check_lib_save_LIBS=$LIBS 11962LIBS="-lsvld $LIBS" 11963cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11964/* end confdefs.h. */ 11965 11966/* Override any GCC internal prototype to avoid an error. 11967 Use char because int might match the return type of a GCC 11968 builtin and then its argument prototype would still apply. */ 11969#ifdef __cplusplus 11970extern "C" 11971#endif 11972char dlopen (); 11973int 11974main () 11975{ 11976return dlopen (); 11977 ; 11978 return 0; 11979} 11980_ACEOF 11981if ac_fn_c_try_link "$LINENO"; then : 11982 ac_cv_lib_svld_dlopen=yes 11983else 11984 ac_cv_lib_svld_dlopen=no 11985fi 11986rm -f core conftest.err conftest.$ac_objext \ 11987 conftest$ac_exeext conftest.$ac_ext 11988LIBS=$ac_check_lib_save_LIBS 11989fi 11990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11991$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11992if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11994else 11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11996$as_echo_n "checking for dld_link in -ldld... " >&6; } 11997if ${ac_cv_lib_dld_dld_link+:} false; then : 11998 $as_echo_n "(cached) " >&6 11999else 12000 ac_check_lib_save_LIBS=$LIBS 12001LIBS="-ldld $LIBS" 12002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12003/* end confdefs.h. */ 12004 12005/* Override any GCC internal prototype to avoid an error. 12006 Use char because int might match the return type of a GCC 12007 builtin and then its argument prototype would still apply. */ 12008#ifdef __cplusplus 12009extern "C" 12010#endif 12011char dld_link (); 12012int 12013main () 12014{ 12015return dld_link (); 12016 ; 12017 return 0; 12018} 12019_ACEOF 12020if ac_fn_c_try_link "$LINENO"; then : 12021 ac_cv_lib_dld_dld_link=yes 12022else 12023 ac_cv_lib_dld_dld_link=no 12024fi 12025rm -f core conftest.err conftest.$ac_objext \ 12026 conftest$ac_exeext conftest.$ac_ext 12027LIBS=$ac_check_lib_save_LIBS 12028fi 12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12030$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12031if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12032 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12033fi 12034 12035 12036fi 12037 12038 12039fi 12040 12041 12042fi 12043 12044 12045fi 12046 12047 12048fi 12049 12050 ;; 12051 esac 12052 12053 if test "x$lt_cv_dlopen" != xno; then 12054 enable_dlopen=yes 12055 else 12056 enable_dlopen=no 12057 fi 12058 12059 case $lt_cv_dlopen in 12060 dlopen) 12061 save_CPPFLAGS="$CPPFLAGS" 12062 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12063 12064 save_LDFLAGS="$LDFLAGS" 12065 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12066 12067 save_LIBS="$LIBS" 12068 LIBS="$lt_cv_dlopen_libs $LIBS" 12069 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12071$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12072if ${lt_cv_dlopen_self+:} false; then : 12073 $as_echo_n "(cached) " >&6 12074else 12075 if test "$cross_compiling" = yes; then : 12076 lt_cv_dlopen_self=cross 12077else 12078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12079 lt_status=$lt_dlunknown 12080 cat > conftest.$ac_ext <<_LT_EOF 12081#line $LINENO "configure" 12082#include "confdefs.h" 12083 12084#if HAVE_DLFCN_H 12085#include <dlfcn.h> 12086#endif 12087 12088#include <stdio.h> 12089 12090#ifdef RTLD_GLOBAL 12091# define LT_DLGLOBAL RTLD_GLOBAL 12092#else 12093# ifdef DL_GLOBAL 12094# define LT_DLGLOBAL DL_GLOBAL 12095# else 12096# define LT_DLGLOBAL 0 12097# endif 12098#endif 12099 12100/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12101 find out it does not work in some platform. */ 12102#ifndef LT_DLLAZY_OR_NOW 12103# ifdef RTLD_LAZY 12104# define LT_DLLAZY_OR_NOW RTLD_LAZY 12105# else 12106# ifdef DL_LAZY 12107# define LT_DLLAZY_OR_NOW DL_LAZY 12108# else 12109# ifdef RTLD_NOW 12110# define LT_DLLAZY_OR_NOW RTLD_NOW 12111# else 12112# ifdef DL_NOW 12113# define LT_DLLAZY_OR_NOW DL_NOW 12114# else 12115# define LT_DLLAZY_OR_NOW 0 12116# endif 12117# endif 12118# endif 12119# endif 12120#endif 12121 12122/* When -fvisbility=hidden is used, assume the code has been annotated 12123 correspondingly for the symbols needed. */ 12124#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12125int fnord () __attribute__((visibility("default"))); 12126#endif 12127 12128int fnord () { return 42; } 12129int main () 12130{ 12131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12132 int status = $lt_dlunknown; 12133 12134 if (self) 12135 { 12136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12137 else 12138 { 12139 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12140 else puts (dlerror ()); 12141 } 12142 /* dlclose (self); */ 12143 } 12144 else 12145 puts (dlerror ()); 12146 12147 return status; 12148} 12149_LT_EOF 12150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12151 (eval $ac_link) 2>&5 12152 ac_status=$? 12153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12154 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12155 (./conftest; exit; ) >&5 2>/dev/null 12156 lt_status=$? 12157 case x$lt_status in 12158 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12159 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12160 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12161 esac 12162 else : 12163 # compilation failed 12164 lt_cv_dlopen_self=no 12165 fi 12166fi 12167rm -fr conftest* 12168 12169 12170fi 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12172$as_echo "$lt_cv_dlopen_self" >&6; } 12173 12174 if test "x$lt_cv_dlopen_self" = xyes; then 12175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12177$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12178if ${lt_cv_dlopen_self_static+:} false; then : 12179 $as_echo_n "(cached) " >&6 12180else 12181 if test "$cross_compiling" = yes; then : 12182 lt_cv_dlopen_self_static=cross 12183else 12184 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12185 lt_status=$lt_dlunknown 12186 cat > conftest.$ac_ext <<_LT_EOF 12187#line $LINENO "configure" 12188#include "confdefs.h" 12189 12190#if HAVE_DLFCN_H 12191#include <dlfcn.h> 12192#endif 12193 12194#include <stdio.h> 12195 12196#ifdef RTLD_GLOBAL 12197# define LT_DLGLOBAL RTLD_GLOBAL 12198#else 12199# ifdef DL_GLOBAL 12200# define LT_DLGLOBAL DL_GLOBAL 12201# else 12202# define LT_DLGLOBAL 0 12203# endif 12204#endif 12205 12206/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12207 find out it does not work in some platform. */ 12208#ifndef LT_DLLAZY_OR_NOW 12209# ifdef RTLD_LAZY 12210# define LT_DLLAZY_OR_NOW RTLD_LAZY 12211# else 12212# ifdef DL_LAZY 12213# define LT_DLLAZY_OR_NOW DL_LAZY 12214# else 12215# ifdef RTLD_NOW 12216# define LT_DLLAZY_OR_NOW RTLD_NOW 12217# else 12218# ifdef DL_NOW 12219# define LT_DLLAZY_OR_NOW DL_NOW 12220# else 12221# define LT_DLLAZY_OR_NOW 0 12222# endif 12223# endif 12224# endif 12225# endif 12226#endif 12227 12228/* When -fvisbility=hidden is used, assume the code has been annotated 12229 correspondingly for the symbols needed. */ 12230#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12231int fnord () __attribute__((visibility("default"))); 12232#endif 12233 12234int fnord () { return 42; } 12235int main () 12236{ 12237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12238 int status = $lt_dlunknown; 12239 12240 if (self) 12241 { 12242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12243 else 12244 { 12245 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12246 else puts (dlerror ()); 12247 } 12248 /* dlclose (self); */ 12249 } 12250 else 12251 puts (dlerror ()); 12252 12253 return status; 12254} 12255_LT_EOF 12256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12257 (eval $ac_link) 2>&5 12258 ac_status=$? 12259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12260 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12261 (./conftest; exit; ) >&5 2>/dev/null 12262 lt_status=$? 12263 case x$lt_status in 12264 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12265 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12266 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12267 esac 12268 else : 12269 # compilation failed 12270 lt_cv_dlopen_self_static=no 12271 fi 12272fi 12273rm -fr conftest* 12274 12275 12276fi 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12278$as_echo "$lt_cv_dlopen_self_static" >&6; } 12279 fi 12280 12281 CPPFLAGS="$save_CPPFLAGS" 12282 LDFLAGS="$save_LDFLAGS" 12283 LIBS="$save_LIBS" 12284 ;; 12285 esac 12286 12287 case $lt_cv_dlopen_self in 12288 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12289 *) enable_dlopen_self=unknown ;; 12290 esac 12291 12292 case $lt_cv_dlopen_self_static in 12293 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12294 *) enable_dlopen_self_static=unknown ;; 12295 esac 12296fi 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314striplib= 12315old_striplib= 12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12317$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12318if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12319 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12320 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12322$as_echo "yes" >&6; } 12323else 12324# FIXME - insert some real tests, host_os isn't really good enough 12325 case $host_os in 12326 darwin*) 12327 if test -n "$STRIP" ; then 12328 striplib="$STRIP -x" 12329 old_striplib="$STRIP -S" 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12331$as_echo "yes" >&6; } 12332 else 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12334$as_echo "no" >&6; } 12335 fi 12336 ;; 12337 *) 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12339$as_echo "no" >&6; } 12340 ;; 12341 esac 12342fi 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 # Report which library types will actually be built 12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12357$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12359$as_echo "$can_build_shared" >&6; } 12360 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12362$as_echo_n "checking whether to build shared libraries... " >&6; } 12363 test "$can_build_shared" = "no" && enable_shared=no 12364 12365 # On AIX, shared libraries and static libraries use the same namespace, and 12366 # are all built from PIC. 12367 case $host_os in 12368 aix3*) 12369 test "$enable_shared" = yes && enable_static=no 12370 if test -n "$RANLIB"; then 12371 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12372 postinstall_cmds='$RANLIB $lib' 12373 fi 12374 ;; 12375 12376 aix[4-9]*) 12377 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12378 test "$enable_shared" = yes && enable_static=no 12379 fi 12380 ;; 12381 esac 12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12383$as_echo "$enable_shared" >&6; } 12384 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12386$as_echo_n "checking whether to build static libraries... " >&6; } 12387 # Make sure either enable_shared or enable_static is yes. 12388 test "$enable_shared" = yes || enable_static=yes 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12390$as_echo "$enable_static" >&6; } 12391 12392 12393 12394 12395fi 12396ac_ext=c 12397ac_cpp='$CPP $CPPFLAGS' 12398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12400ac_compiler_gnu=$ac_cv_c_compiler_gnu 12401 12402CC="$lt_save_CC" 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 ac_config_commands="$ac_config_commands libtool" 12417 12418 12419 12420 12421# Only expand once: 12422 12423 12424 12425 12426 12427for ac_header in limits.h stdint.h stdlib.h string.h sys/wait.h unistd.h 12428do : 12429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12430ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12431if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12432 cat >>confdefs.h <<_ACEOF 12433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12434_ACEOF 12435 12436fi 12437 12438done 12439 12440 12441 12442ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12443if test "x$ac_cv_type_pid_t" = xyes; then : 12444 12445else 12446 12447cat >>confdefs.h <<_ACEOF 12448#define pid_t int 12449_ACEOF 12450 12451fi 12452 12453ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12454if test "x$ac_cv_type_size_t" = xyes; then : 12455 12456else 12457 12458cat >>confdefs.h <<_ACEOF 12459#define size_t unsigned int 12460_ACEOF 12461 12462fi 12463 12464 12465 12466for ac_header in vfork.h 12467do : 12468 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 12469if test "x$ac_cv_header_vfork_h" = xyes; then : 12470 cat >>confdefs.h <<_ACEOF 12471#define HAVE_VFORK_H 1 12472_ACEOF 12473 12474fi 12475 12476done 12477 12478for ac_func in fork vfork 12479do : 12480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12481ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12482if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12483 cat >>confdefs.h <<_ACEOF 12484#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12485_ACEOF 12486 12487fi 12488done 12489 12490if test "x$ac_cv_func_fork" = xyes; then 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 12492$as_echo_n "checking for working fork... " >&6; } 12493if ${ac_cv_func_fork_works+:} false; then : 12494 $as_echo_n "(cached) " >&6 12495else 12496 if test "$cross_compiling" = yes; then : 12497 ac_cv_func_fork_works=cross 12498else 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501$ac_includes_default 12502int 12503main () 12504{ 12505 12506 /* By Ruediger Kuhlmann. */ 12507 return fork () < 0; 12508 12509 ; 12510 return 0; 12511} 12512_ACEOF 12513if ac_fn_c_try_run "$LINENO"; then : 12514 ac_cv_func_fork_works=yes 12515else 12516 ac_cv_func_fork_works=no 12517fi 12518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12519 conftest.$ac_objext conftest.beam conftest.$ac_ext 12520fi 12521 12522fi 12523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 12524$as_echo "$ac_cv_func_fork_works" >&6; } 12525 12526else 12527 ac_cv_func_fork_works=$ac_cv_func_fork 12528fi 12529if test "x$ac_cv_func_fork_works" = xcross; then 12530 case $host in 12531 *-*-amigaos* | *-*-msdosdjgpp*) 12532 # Override, as these systems have only a dummy fork() stub 12533 ac_cv_func_fork_works=no 12534 ;; 12535 *) 12536 ac_cv_func_fork_works=yes 12537 ;; 12538 esac 12539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 12540$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 12541fi 12542ac_cv_func_vfork_works=$ac_cv_func_vfork 12543if test "x$ac_cv_func_vfork" = xyes; then 12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 12545$as_echo_n "checking for working vfork... " >&6; } 12546if ${ac_cv_func_vfork_works+:} false; then : 12547 $as_echo_n "(cached) " >&6 12548else 12549 if test "$cross_compiling" = yes; then : 12550 ac_cv_func_vfork_works=cross 12551else 12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553/* end confdefs.h. */ 12554/* Thanks to Paul Eggert for this test. */ 12555$ac_includes_default 12556#include <sys/wait.h> 12557#ifdef HAVE_VFORK_H 12558# include <vfork.h> 12559#endif 12560/* On some sparc systems, changes by the child to local and incoming 12561 argument registers are propagated back to the parent. The compiler 12562 is told about this with #include <vfork.h>, but some compilers 12563 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 12564 static variable whose address is put into a register that is 12565 clobbered by the vfork. */ 12566static void 12567#ifdef __cplusplus 12568sparc_address_test (int arg) 12569# else 12570sparc_address_test (arg) int arg; 12571#endif 12572{ 12573 static pid_t child; 12574 if (!child) { 12575 child = vfork (); 12576 if (child < 0) { 12577 perror ("vfork"); 12578 _exit(2); 12579 } 12580 if (!child) { 12581 arg = getpid(); 12582 write(-1, "", 0); 12583 _exit (arg); 12584 } 12585 } 12586} 12587 12588int 12589main () 12590{ 12591 pid_t parent = getpid (); 12592 pid_t child; 12593 12594 sparc_address_test (0); 12595 12596 child = vfork (); 12597 12598 if (child == 0) { 12599 /* Here is another test for sparc vfork register problems. This 12600 test uses lots of local variables, at least as many local 12601 variables as main has allocated so far including compiler 12602 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 12603 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 12604 reuse the register of parent for one of the local variables, 12605 since it will think that parent can't possibly be used any more 12606 in this routine. Assigning to the local variable will thus 12607 munge parent in the parent process. */ 12608 pid_t 12609 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 12610 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 12611 /* Convince the compiler that p..p7 are live; otherwise, it might 12612 use the same hardware register for all 8 local variables. */ 12613 if (p != p1 || p != p2 || p != p3 || p != p4 12614 || p != p5 || p != p6 || p != p7) 12615 _exit(1); 12616 12617 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 12618 from child file descriptors. If the child closes a descriptor 12619 before it execs or exits, this munges the parent's descriptor 12620 as well. Test for this by closing stdout in the child. */ 12621 _exit(close(fileno(stdout)) != 0); 12622 } else { 12623 int status; 12624 struct stat st; 12625 12626 while (wait(&status) != child) 12627 ; 12628 return ( 12629 /* Was there some problem with vforking? */ 12630 child < 0 12631 12632 /* Did the child fail? (This shouldn't happen.) */ 12633 || status 12634 12635 /* Did the vfork/compiler bug occur? */ 12636 || parent != getpid() 12637 12638 /* Did the file descriptor bug occur? */ 12639 || fstat(fileno(stdout), &st) != 0 12640 ); 12641 } 12642} 12643_ACEOF 12644if ac_fn_c_try_run "$LINENO"; then : 12645 ac_cv_func_vfork_works=yes 12646else 12647 ac_cv_func_vfork_works=no 12648fi 12649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12650 conftest.$ac_objext conftest.beam conftest.$ac_ext 12651fi 12652 12653fi 12654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 12655$as_echo "$ac_cv_func_vfork_works" >&6; } 12656 12657fi; 12658if test "x$ac_cv_func_fork_works" = xcross; then 12659 ac_cv_func_vfork_works=$ac_cv_func_vfork 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 12661$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 12662fi 12663 12664if test "x$ac_cv_func_vfork_works" = xyes; then 12665 12666$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 12667 12668else 12669 12670$as_echo "#define vfork fork" >>confdefs.h 12671 12672fi 12673if test "x$ac_cv_func_fork_works" = xyes; then 12674 12675$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 12676 12677fi 12678 12679for ac_header in stdlib.h 12680do : 12681 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 12682if test "x$ac_cv_header_stdlib_h" = xyes; then : 12683 cat >>confdefs.h <<_ACEOF 12684#define HAVE_STDLIB_H 1 12685_ACEOF 12686 12687fi 12688 12689done 12690 12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 12692$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 12693if ${ac_cv_func_realloc_0_nonnull+:} false; then : 12694 $as_echo_n "(cached) " >&6 12695else 12696 if test "$cross_compiling" = yes; then : 12697 ac_cv_func_realloc_0_nonnull=no 12698else 12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12700/* end confdefs.h. */ 12701#if defined STDC_HEADERS || defined HAVE_STDLIB_H 12702# include <stdlib.h> 12703#else 12704char *realloc (); 12705#endif 12706 12707int 12708main () 12709{ 12710return ! realloc (0, 0); 12711 ; 12712 return 0; 12713} 12714_ACEOF 12715if ac_fn_c_try_run "$LINENO"; then : 12716 ac_cv_func_realloc_0_nonnull=yes 12717else 12718 ac_cv_func_realloc_0_nonnull=no 12719fi 12720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12721 conftest.$ac_objext conftest.beam conftest.$ac_ext 12722fi 12723 12724fi 12725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 12726$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 12727if test $ac_cv_func_realloc_0_nonnull = yes; then : 12728 12729$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 12730 12731else 12732 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 12733 12734 case " $LIBOBJS " in 12735 *" realloc.$ac_objext "* ) ;; 12736 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 12737 ;; 12738esac 12739 12740 12741$as_echo "#define realloc rpl_realloc" >>confdefs.h 12742 12743fi 12744 12745 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 12747$as_echo_n "checking for working strtod... " >&6; } 12748if ${ac_cv_func_strtod+:} false; then : 12749 $as_echo_n "(cached) " >&6 12750else 12751 if test "$cross_compiling" = yes; then : 12752 ac_cv_func_strtod=no 12753else 12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12755/* end confdefs.h. */ 12756 12757$ac_includes_default 12758#ifndef strtod 12759double strtod (); 12760#endif 12761int 12762main() 12763{ 12764 { 12765 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 12766 char *string = " +69"; 12767 char *term; 12768 double value; 12769 value = strtod (string, &term); 12770 if (value != 69 || term != (string + 4)) 12771 return 1; 12772 } 12773 12774 { 12775 /* Under Solaris 2.4, strtod returns the wrong value for the 12776 terminating character under some conditions. */ 12777 char *string = "NaN"; 12778 char *term; 12779 strtod (string, &term); 12780 if (term != string && *(term - 1) == 0) 12781 return 1; 12782 } 12783 return 0; 12784} 12785 12786_ACEOF 12787if ac_fn_c_try_run "$LINENO"; then : 12788 ac_cv_func_strtod=yes 12789else 12790 ac_cv_func_strtod=no 12791fi 12792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12793 conftest.$ac_objext conftest.beam conftest.$ac_ext 12794fi 12795 12796fi 12797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 12798$as_echo "$ac_cv_func_strtod" >&6; } 12799if test $ac_cv_func_strtod = no; then 12800 case " $LIBOBJS " in 12801 *" strtod.$ac_objext "* ) ;; 12802 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 12803 ;; 12804esac 12805 12806ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" 12807if test "x$ac_cv_func_pow" = xyes; then : 12808 12809fi 12810 12811if test $ac_cv_func_pow = no; then 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 12813$as_echo_n "checking for pow in -lm... " >&6; } 12814if ${ac_cv_lib_m_pow+:} false; then : 12815 $as_echo_n "(cached) " >&6 12816else 12817 ac_check_lib_save_LIBS=$LIBS 12818LIBS="-lm $LIBS" 12819cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12820/* end confdefs.h. */ 12821 12822/* Override any GCC internal prototype to avoid an error. 12823 Use char because int might match the return type of a GCC 12824 builtin and then its argument prototype would still apply. */ 12825#ifdef __cplusplus 12826extern "C" 12827#endif 12828char pow (); 12829int 12830main () 12831{ 12832return pow (); 12833 ; 12834 return 0; 12835} 12836_ACEOF 12837if ac_fn_c_try_link "$LINENO"; then : 12838 ac_cv_lib_m_pow=yes 12839else 12840 ac_cv_lib_m_pow=no 12841fi 12842rm -f core conftest.err conftest.$ac_objext \ 12843 conftest$ac_exeext conftest.$ac_ext 12844LIBS=$ac_check_lib_save_LIBS 12845fi 12846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 12847$as_echo "$ac_cv_lib_m_pow" >&6; } 12848if test "x$ac_cv_lib_m_pow" = xyes; then : 12849 POW_LIB=-lm 12850else 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 12852$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 12853fi 12854 12855fi 12856 12857fi 12858 12859for ac_func in memset strerror strtol 12860do : 12861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12862ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12863if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12864 cat >>confdefs.h <<_ACEOF 12865#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12866_ACEOF 12867 12868fi 12869done 12870 12871 12872 12873CheckPcreComponents() 12874{ 12875 PCREDIR=${1} 12876 INCLUDE_LIST="pcre.h" 12877 for INCLUDE_FILE in ${INCLUDE_LIST} ; do 12878 if test ! -f "${PCREDIR}/include/${INCLUDE_FILE}" ; then 12879 return 1 12880 fi 12881 done 12882 my_pcredir=${PCREDIR} 12883 return 0 12884} 12885 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE support" >&5 12887$as_echo_n "checking for PCRE support... " >&6; } 12888 12889# Check whether --with-pcre was given. 12890if test "${with_pcre+set}" = set; then : 12891 withval=$with_pcre; 12892 CheckPcreComponents "${withval}" 12893 12894else 12895 12896 for my_basedir in "/usr" "/usr/local" "/usr/pkg" "/opt" "/opt/local" ; do 12897 for my_dir in "${my_basedir}" "${my_basedir}/pcre" ; do 12898 CheckPcreComponents "${my_dir}" && break 2 12899 done 12900 done 12901 12902 12903fi 12904 12905if test -z "${my_pcredir}" ; then 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing or incomplete" >&5 12907$as_echo "missing or incomplete" >&6; } 12908 echo 12909 echo "Unable to locate required PCRE components. Use --with-pcre=DIR to" 12910 echo "specify a known or different location. The files that must exist for" 12911 echo "this check to pass are:" 12912 echo 12913 echo " DIR/include/pcre.h" 12914 echo 12915 exit 1 12916else 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${my_pcredir}" >&5 12918$as_echo "${my_pcredir}" >&6; } 12919 CFLAGS="-I${my_pcredir}/include -DPCRE_STATIC ${CFLAGS}" 12920 LIBS="-L${my_pcredir}/lib -lpcre ${LIBS}" 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 12922$as_echo_n "checking for pcre_compile in -lpcre... " >&6; } 12923if ${ac_cv_lib_pcre_pcre_compile+:} false; then : 12924 $as_echo_n "(cached) " >&6 12925else 12926 ac_check_lib_save_LIBS=$LIBS 12927LIBS="-lpcre $LIBS" 12928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12929/* end confdefs.h. */ 12930 12931/* Override any GCC internal prototype to avoid an error. 12932 Use char because int might match the return type of a GCC 12933 builtin and then its argument prototype would still apply. */ 12934#ifdef __cplusplus 12935extern "C" 12936#endif 12937char pcre_compile (); 12938int 12939main () 12940{ 12941return pcre_compile (); 12942 ; 12943 return 0; 12944} 12945_ACEOF 12946if ac_fn_c_try_link "$LINENO"; then : 12947 ac_cv_lib_pcre_pcre_compile=yes 12948else 12949 ac_cv_lib_pcre_pcre_compile=no 12950fi 12951rm -f core conftest.err conftest.$ac_objext \ 12952 conftest$ac_exeext conftest.$ac_ext 12953LIBS=$ac_check_lib_save_LIBS 12954fi 12955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5 12956$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; } 12957if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then : 12958 my_have_pcre=1 12959else 12960 my_have_pcre=0 12961fi 12962 12963 if test ${my_have_pcre} -eq 0 ; then 12964 as_fn_error $? "Unable to locate libpcre." "$LINENO" 5 12965 fi 12966fi 12967 12968 12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging support" >&5 12970$as_echo_n "checking whether to enable debugging support... " >&6; } 12971# Check whether --enable-debugging was given. 12972if test "${enable_debugging+set}" = set; then : 12973 enableval=$enable_debugging; 12974 case `echo ${enableval} | tr "A-Z" "a-z"` in 12975 yes) 12976 enable_debugging="1" 12977 ;; 12978 *) 12979 enable_debugging="0" 12980 ;; 12981 esac 12982 12983else 12984 enable_debugging="0" 12985 12986fi 12987 12988if test ${enable_debugging} -eq 1 ; then 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12990$as_echo "yes" >&6; } 12991 CFLAGS="-g -DKLEL_DEBUG ${CFLAGS}" 12992else 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12994$as_echo "no" >&6; } 12995fi 12996 12997 12998ac_config_files="$ac_config_files Makefile doc/Makefile doc/klel-expr/Makefile doc/klelapi/Makefile doc/klellang/Makefile doc/klelstdlib/Makefile doc/kleltut/Makefile include/Makefile src/Makefile src/libklel/Makefile src/klel-expr/Makefile" 12999 13000 13001ac_config_headers="$ac_config_headers include/config.h" 13002 13003 13004ac_config_links="$ac_config_links include/klel.h:include/klel.h include/klel-pstdint.h:include/pstdint.h" 13005 13006 13007cat >confcache <<\_ACEOF 13008# This file is a shell script that caches the results of configure 13009# tests run on this system so they can be shared between configure 13010# scripts and configure runs, see configure's option --config-cache. 13011# It is not useful on other systems. If it contains results you don't 13012# want to keep, you may remove or edit it. 13013# 13014# config.status only pays attention to the cache file if you give it 13015# the --recheck option to rerun configure. 13016# 13017# `ac_cv_env_foo' variables (set or unset) will be overridden when 13018# loading this file, other *unset* `ac_cv_foo' will be assigned the 13019# following values. 13020 13021_ACEOF 13022 13023# The following way of writing the cache mishandles newlines in values, 13024# but we know of no workaround that is simple, portable, and efficient. 13025# So, we kill variables containing newlines. 13026# Ultrix sh set writes to stderr and can't be redirected directly, 13027# and sets the high bit in the cache file unless we assign to the vars. 13028( 13029 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13030 eval ac_val=\$$ac_var 13031 case $ac_val in #( 13032 *${as_nl}*) 13033 case $ac_var in #( 13034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13035$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13036 esac 13037 case $ac_var in #( 13038 _ | IFS | as_nl) ;; #( 13039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13040 *) { eval $ac_var=; unset $ac_var;} ;; 13041 esac ;; 13042 esac 13043 done 13044 13045 (set) 2>&1 | 13046 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13047 *${as_nl}ac_space=\ *) 13048 # `set' does not quote correctly, so add quotes: double-quote 13049 # substitution turns \\\\ into \\, and sed turns \\ into \. 13050 sed -n \ 13051 "s/'/'\\\\''/g; 13052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13053 ;; #( 13054 *) 13055 # `set' quotes correctly as required by POSIX, so do not add quotes. 13056 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13057 ;; 13058 esac | 13059 sort 13060) | 13061 sed ' 13062 /^ac_cv_env_/b end 13063 t clear 13064 :clear 13065 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13066 t end 13067 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13068 :end' >>confcache 13069if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13070 if test -w "$cache_file"; then 13071 if test "x$cache_file" != "x/dev/null"; then 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13073$as_echo "$as_me: updating cache $cache_file" >&6;} 13074 if test ! -f "$cache_file" || test -h "$cache_file"; then 13075 cat confcache >"$cache_file" 13076 else 13077 case $cache_file in #( 13078 */* | ?:*) 13079 mv -f confcache "$cache_file"$$ && 13080 mv -f "$cache_file"$$ "$cache_file" ;; #( 13081 *) 13082 mv -f confcache "$cache_file" ;; 13083 esac 13084 fi 13085 fi 13086 else 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13088$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13089 fi 13090fi 13091rm -f confcache 13092 13093test "x$prefix" = xNONE && prefix=$ac_default_prefix 13094# Let make expand exec_prefix. 13095test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13096 13097DEFS=-DHAVE_CONFIG_H 13098 13099ac_libobjs= 13100ac_ltlibobjs= 13101U= 13102for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13103 # 1. Remove the extension, and $U if already installed. 13104 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13105 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13106 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13107 # will be set to the directory where LIBOBJS objects are built. 13108 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13109 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13110done 13111LIBOBJS=$ac_libobjs 13112 13113LTLIBOBJS=$ac_ltlibobjs 13114 13115 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13117$as_echo_n "checking that generated files are newer than configure... " >&6; } 13118 if test -n "$am_sleep_pid"; then 13119 # Hide warnings about reused PIDs. 13120 wait $am_sleep_pid 2>/dev/null 13121 fi 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13123$as_echo "done" >&6; } 13124 if test -n "$EXEEXT"; then 13125 am__EXEEXT_TRUE= 13126 am__EXEEXT_FALSE='#' 13127else 13128 am__EXEEXT_TRUE='#' 13129 am__EXEEXT_FALSE= 13130fi 13131 13132if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13133 as_fn_error $? "conditional \"AMDEP\" was never defined. 13134Usually this means the macro was only invoked conditionally." "$LINENO" 5 13135fi 13136if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13137 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13138Usually this means the macro was only invoked conditionally." "$LINENO" 5 13139fi 13140if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13141 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13142Usually this means the macro was only invoked conditionally." "$LINENO" 5 13143fi 13144 13145: "${CONFIG_STATUS=./config.status}" 13146ac_write_fail=0 13147ac_clean_files_save=$ac_clean_files 13148ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13149{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13150$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13151as_write_fail=0 13152cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13153#! $SHELL 13154# Generated by $as_me. 13155# Run this file to recreate the current configuration. 13156# Compiler output produced by configure, useful for debugging 13157# configure, is in config.log if it exists. 13158 13159debug=false 13160ac_cs_recheck=false 13161ac_cs_silent=false 13162 13163SHELL=\${CONFIG_SHELL-$SHELL} 13164export SHELL 13165_ASEOF 13166cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13167## -------------------- ## 13168## M4sh Initialization. ## 13169## -------------------- ## 13170 13171# Be more Bourne compatible 13172DUALCASE=1; export DUALCASE # for MKS sh 13173if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13174 emulate sh 13175 NULLCMD=: 13176 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13177 # is contrary to our usage. Disable this feature. 13178 alias -g '${1+"$@"}'='"$@"' 13179 setopt NO_GLOB_SUBST 13180else 13181 case `(set -o) 2>/dev/null` in #( 13182 *posix*) : 13183 set -o posix ;; #( 13184 *) : 13185 ;; 13186esac 13187fi 13188 13189 13190as_nl=' 13191' 13192export as_nl 13193# Printing a long string crashes Solaris 7 /usr/bin/printf. 13194as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13195as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13196as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13197# Prefer a ksh shell builtin over an external printf program on Solaris, 13198# but without wasting forks for bash or zsh. 13199if test -z "$BASH_VERSION$ZSH_VERSION" \ 13200 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13201 as_echo='print -r --' 13202 as_echo_n='print -rn --' 13203elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13204 as_echo='printf %s\n' 13205 as_echo_n='printf %s' 13206else 13207 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13208 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13209 as_echo_n='/usr/ucb/echo -n' 13210 else 13211 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13212 as_echo_n_body='eval 13213 arg=$1; 13214 case $arg in #( 13215 *"$as_nl"*) 13216 expr "X$arg" : "X\\(.*\\)$as_nl"; 13217 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13218 esac; 13219 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13220 ' 13221 export as_echo_n_body 13222 as_echo_n='sh -c $as_echo_n_body as_echo' 13223 fi 13224 export as_echo_body 13225 as_echo='sh -c $as_echo_body as_echo' 13226fi 13227 13228# The user is always right. 13229if test "${PATH_SEPARATOR+set}" != set; then 13230 PATH_SEPARATOR=: 13231 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13232 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13233 PATH_SEPARATOR=';' 13234 } 13235fi 13236 13237 13238# IFS 13239# We need space, tab and new line, in precisely that order. Quoting is 13240# there to prevent editors from complaining about space-tab. 13241# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13242# splitting by setting IFS to empty value.) 13243IFS=" "" $as_nl" 13244 13245# Find who we are. Look in the path if we contain no directory separator. 13246as_myself= 13247case $0 in #(( 13248 *[\\/]* ) as_myself=$0 ;; 13249 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13250for as_dir in $PATH 13251do 13252 IFS=$as_save_IFS 13253 test -z "$as_dir" && as_dir=. 13254 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13255 done 13256IFS=$as_save_IFS 13257 13258 ;; 13259esac 13260# We did not find ourselves, most probably we were run as `sh COMMAND' 13261# in which case we are not to be found in the path. 13262if test "x$as_myself" = x; then 13263 as_myself=$0 13264fi 13265if test ! -f "$as_myself"; then 13266 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13267 exit 1 13268fi 13269 13270# Unset variables that we do not need and which cause bugs (e.g. in 13271# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13272# suppresses any "Segmentation fault" message there. '((' could 13273# trigger a bug in pdksh 5.2.14. 13274for as_var in BASH_ENV ENV MAIL MAILPATH 13275do eval test x\${$as_var+set} = xset \ 13276 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13277done 13278PS1='$ ' 13279PS2='> ' 13280PS4='+ ' 13281 13282# NLS nuisances. 13283LC_ALL=C 13284export LC_ALL 13285LANGUAGE=C 13286export LANGUAGE 13287 13288# CDPATH. 13289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13290 13291 13292# as_fn_error STATUS ERROR [LINENO LOG_FD] 13293# ---------------------------------------- 13294# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13295# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13296# script with STATUS, using 1 if that was 0. 13297as_fn_error () 13298{ 13299 as_status=$1; test $as_status -eq 0 && as_status=1 13300 if test "$4"; then 13301 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13302 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13303 fi 13304 $as_echo "$as_me: error: $2" >&2 13305 as_fn_exit $as_status 13306} # as_fn_error 13307 13308 13309# as_fn_set_status STATUS 13310# ----------------------- 13311# Set $? to STATUS, without forking. 13312as_fn_set_status () 13313{ 13314 return $1 13315} # as_fn_set_status 13316 13317# as_fn_exit STATUS 13318# ----------------- 13319# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13320as_fn_exit () 13321{ 13322 set +e 13323 as_fn_set_status $1 13324 exit $1 13325} # as_fn_exit 13326 13327# as_fn_unset VAR 13328# --------------- 13329# Portably unset VAR. 13330as_fn_unset () 13331{ 13332 { eval $1=; unset $1;} 13333} 13334as_unset=as_fn_unset 13335# as_fn_append VAR VALUE 13336# ---------------------- 13337# Append the text in VALUE to the end of the definition contained in VAR. Take 13338# advantage of any shell optimizations that allow amortized linear growth over 13339# repeated appends, instead of the typical quadratic growth present in naive 13340# implementations. 13341if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13342 eval 'as_fn_append () 13343 { 13344 eval $1+=\$2 13345 }' 13346else 13347 as_fn_append () 13348 { 13349 eval $1=\$$1\$2 13350 } 13351fi # as_fn_append 13352 13353# as_fn_arith ARG... 13354# ------------------ 13355# Perform arithmetic evaluation on the ARGs, and store the result in the 13356# global $as_val. Take advantage of shells that can avoid forks. The arguments 13357# must be portable across $(()) and expr. 13358if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13359 eval 'as_fn_arith () 13360 { 13361 as_val=$(( $* )) 13362 }' 13363else 13364 as_fn_arith () 13365 { 13366 as_val=`expr "$@" || test $? -eq 1` 13367 } 13368fi # as_fn_arith 13369 13370 13371if expr a : '\(a\)' >/dev/null 2>&1 && 13372 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13373 as_expr=expr 13374else 13375 as_expr=false 13376fi 13377 13378if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13379 as_basename=basename 13380else 13381 as_basename=false 13382fi 13383 13384if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13385 as_dirname=dirname 13386else 13387 as_dirname=false 13388fi 13389 13390as_me=`$as_basename -- "$0" || 13391$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13392 X"$0" : 'X\(//\)$' \| \ 13393 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13394$as_echo X/"$0" | 13395 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13396 s//\1/ 13397 q 13398 } 13399 /^X\/\(\/\/\)$/{ 13400 s//\1/ 13401 q 13402 } 13403 /^X\/\(\/\).*/{ 13404 s//\1/ 13405 q 13406 } 13407 s/.*/./; q'` 13408 13409# Avoid depending upon Character Ranges. 13410as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13411as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13412as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13413as_cr_digits='0123456789' 13414as_cr_alnum=$as_cr_Letters$as_cr_digits 13415 13416ECHO_C= ECHO_N= ECHO_T= 13417case `echo -n x` in #((((( 13418-n*) 13419 case `echo 'xy\c'` in 13420 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13421 xy) ECHO_C='\c';; 13422 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13423 ECHO_T=' ';; 13424 esac;; 13425*) 13426 ECHO_N='-n';; 13427esac 13428 13429rm -f conf$$ conf$$.exe conf$$.file 13430if test -d conf$$.dir; then 13431 rm -f conf$$.dir/conf$$.file 13432else 13433 rm -f conf$$.dir 13434 mkdir conf$$.dir 2>/dev/null 13435fi 13436if (echo >conf$$.file) 2>/dev/null; then 13437 if ln -s conf$$.file conf$$ 2>/dev/null; then 13438 as_ln_s='ln -s' 13439 # ... but there are two gotchas: 13440 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13441 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13442 # In both cases, we have to default to `cp -pR'. 13443 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13444 as_ln_s='cp -pR' 13445 elif ln conf$$.file conf$$ 2>/dev/null; then 13446 as_ln_s=ln 13447 else 13448 as_ln_s='cp -pR' 13449 fi 13450else 13451 as_ln_s='cp -pR' 13452fi 13453rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13454rmdir conf$$.dir 2>/dev/null 13455 13456 13457# as_fn_mkdir_p 13458# ------------- 13459# Create "$as_dir" as a directory, including parents if necessary. 13460as_fn_mkdir_p () 13461{ 13462 13463 case $as_dir in #( 13464 -*) as_dir=./$as_dir;; 13465 esac 13466 test -d "$as_dir" || eval $as_mkdir_p || { 13467 as_dirs= 13468 while :; do 13469 case $as_dir in #( 13470 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13471 *) as_qdir=$as_dir;; 13472 esac 13473 as_dirs="'$as_qdir' $as_dirs" 13474 as_dir=`$as_dirname -- "$as_dir" || 13475$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13476 X"$as_dir" : 'X\(//\)[^/]' \| \ 13477 X"$as_dir" : 'X\(//\)$' \| \ 13478 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13479$as_echo X"$as_dir" | 13480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13481 s//\1/ 13482 q 13483 } 13484 /^X\(\/\/\)[^/].*/{ 13485 s//\1/ 13486 q 13487 } 13488 /^X\(\/\/\)$/{ 13489 s//\1/ 13490 q 13491 } 13492 /^X\(\/\).*/{ 13493 s//\1/ 13494 q 13495 } 13496 s/.*/./; q'` 13497 test -d "$as_dir" && break 13498 done 13499 test -z "$as_dirs" || eval "mkdir $as_dirs" 13500 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13501 13502 13503} # as_fn_mkdir_p 13504if mkdir -p . 2>/dev/null; then 13505 as_mkdir_p='mkdir -p "$as_dir"' 13506else 13507 test -d ./-p && rmdir ./-p 13508 as_mkdir_p=false 13509fi 13510 13511 13512# as_fn_executable_p FILE 13513# ----------------------- 13514# Test if FILE is an executable regular file. 13515as_fn_executable_p () 13516{ 13517 test -f "$1" && test -x "$1" 13518} # as_fn_executable_p 13519as_test_x='test -x' 13520as_executable_p=as_fn_executable_p 13521 13522# Sed expression to map a string onto a valid CPP name. 13523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13524 13525# Sed expression to map a string onto a valid variable name. 13526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13527 13528 13529exec 6>&1 13530## ----------------------------------- ## 13531## Main body of $CONFIG_STATUS script. ## 13532## ----------------------------------- ## 13533_ASEOF 13534test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13535 13536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13537# Save the log message, to keep $0 and so on meaningful, and to 13538# report actual input values of CONFIG_FILES etc. instead of their 13539# values after options handling. 13540ac_log=" 13541This file was extended by libklel $as_me 1.1.0, which was 13542generated by GNU Autoconf 2.69. Invocation command line was 13543 13544 CONFIG_FILES = $CONFIG_FILES 13545 CONFIG_HEADERS = $CONFIG_HEADERS 13546 CONFIG_LINKS = $CONFIG_LINKS 13547 CONFIG_COMMANDS = $CONFIG_COMMANDS 13548 $ $0 $@ 13549 13550on `(hostname || uname -n) 2>/dev/null | sed 1q` 13551" 13552 13553_ACEOF 13554 13555case $ac_config_files in *" 13556"*) set x $ac_config_files; shift; ac_config_files=$*;; 13557esac 13558 13559case $ac_config_headers in *" 13560"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13561esac 13562 13563 13564cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13565# Files that config.status was made for. 13566config_files="$ac_config_files" 13567config_headers="$ac_config_headers" 13568config_links="$ac_config_links" 13569config_commands="$ac_config_commands" 13570 13571_ACEOF 13572 13573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13574ac_cs_usage="\ 13575\`$as_me' instantiates files and other configuration actions 13576from templates according to the current configuration. Unless the files 13577and actions are specified as TAGs, all are instantiated by default. 13578 13579Usage: $0 [OPTION]... [TAG]... 13580 13581 -h, --help print this help, then exit 13582 -V, --version print version number and configuration settings, then exit 13583 --config print configuration, then exit 13584 -q, --quiet, --silent 13585 do not print progress messages 13586 -d, --debug don't remove temporary files 13587 --recheck update $as_me by reconfiguring in the same conditions 13588 --file=FILE[:TEMPLATE] 13589 instantiate the configuration file FILE 13590 --header=FILE[:TEMPLATE] 13591 instantiate the configuration header FILE 13592 13593Configuration files: 13594$config_files 13595 13596Configuration headers: 13597$config_headers 13598 13599Configuration links: 13600$config_links 13601 13602Configuration commands: 13603$config_commands 13604 13605Report bugs to <libklel-project@korelogic.com>." 13606 13607_ACEOF 13608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13609ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13610ac_cs_version="\\ 13611libklel config.status 1.1.0 13612configured by $0, generated by GNU Autoconf 2.69, 13613 with options \\"\$ac_cs_config\\" 13614 13615Copyright (C) 2012 Free Software Foundation, Inc. 13616This config.status script is free software; the Free Software Foundation 13617gives unlimited permission to copy, distribute and modify it." 13618 13619ac_pwd='$ac_pwd' 13620srcdir='$srcdir' 13621INSTALL='$INSTALL' 13622MKDIR_P='$MKDIR_P' 13623AWK='$AWK' 13624test -n "\$AWK" || AWK=awk 13625_ACEOF 13626 13627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13628# The default lists apply if the user does not specify any file. 13629ac_need_defaults=: 13630while test $# != 0 13631do 13632 case $1 in 13633 --*=?*) 13634 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13635 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13636 ac_shift=: 13637 ;; 13638 --*=) 13639 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13640 ac_optarg= 13641 ac_shift=: 13642 ;; 13643 *) 13644 ac_option=$1 13645 ac_optarg=$2 13646 ac_shift=shift 13647 ;; 13648 esac 13649 13650 case $ac_option in 13651 # Handling of the options. 13652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13653 ac_cs_recheck=: ;; 13654 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13655 $as_echo "$ac_cs_version"; exit ;; 13656 --config | --confi | --conf | --con | --co | --c ) 13657 $as_echo "$ac_cs_config"; exit ;; 13658 --debug | --debu | --deb | --de | --d | -d ) 13659 debug=: ;; 13660 --file | --fil | --fi | --f ) 13661 $ac_shift 13662 case $ac_optarg in 13663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13664 '') as_fn_error $? "missing file argument" ;; 13665 esac 13666 as_fn_append CONFIG_FILES " '$ac_optarg'" 13667 ac_need_defaults=false;; 13668 --header | --heade | --head | --hea ) 13669 $ac_shift 13670 case $ac_optarg in 13671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13672 esac 13673 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13674 ac_need_defaults=false;; 13675 --he | --h) 13676 # Conflict between --help and --header 13677 as_fn_error $? "ambiguous option: \`$1' 13678Try \`$0 --help' for more information.";; 13679 --help | --hel | -h ) 13680 $as_echo "$ac_cs_usage"; exit ;; 13681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13682 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13683 ac_cs_silent=: ;; 13684 13685 # This is an error. 13686 -*) as_fn_error $? "unrecognized option: \`$1' 13687Try \`$0 --help' for more information." ;; 13688 13689 *) as_fn_append ac_config_targets " $1" 13690 ac_need_defaults=false ;; 13691 13692 esac 13693 shift 13694done 13695 13696ac_configure_extra_args= 13697 13698if $ac_cs_silent; then 13699 exec 6>/dev/null 13700 ac_configure_extra_args="$ac_configure_extra_args --silent" 13701fi 13702 13703_ACEOF 13704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13705if \$ac_cs_recheck; then 13706 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13707 shift 13708 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13709 CONFIG_SHELL='$SHELL' 13710 export CONFIG_SHELL 13711 exec "\$@" 13712fi 13713 13714_ACEOF 13715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13716exec 5>>config.log 13717{ 13718 echo 13719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13720## Running $as_me. ## 13721_ASBOX 13722 $as_echo "$ac_log" 13723} >&5 13724 13725_ACEOF 13726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13727# 13728# INIT-COMMANDS 13729# 13730AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13731 13732 13733# The HP-UX ksh and POSIX shell print the target directory to stdout 13734# if CDPATH is set. 13735(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13736 13737sed_quote_subst='$sed_quote_subst' 13738double_quote_subst='$double_quote_subst' 13739delay_variable_subst='$delay_variable_subst' 13740AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13741DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13742OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13743macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13744macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13745enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13746enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13747pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13748enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13749SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13750ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13751host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13752host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13753host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13754build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13755build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13756build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13757SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13758Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13759GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13760EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13761FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13762LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13763NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13764LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13765max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13766ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13767exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13768lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13769lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13770lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13771lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13772lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13773reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13774reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13775deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13776file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13777file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13778want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13779sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13780AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13781AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13782archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13783STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13784RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13785old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13786old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13787old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13788lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13789CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13790CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13791compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13792GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13793lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13794lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13795lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13796lt_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"`' 13797nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13798lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13799objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13800MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13801lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13802lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13803lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13804lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13805lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13806need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13807MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13808DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13809NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13810LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13811OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13812OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13813libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13814shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13815extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13816archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13817enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13818export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13819whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13820compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13821old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13822old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13823archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13824archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13825module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13826module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13827with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13828allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13829no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13830hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13831hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 13832hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13833hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13834hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13835hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13836hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13837hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13838inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13839link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13840always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13841export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13842exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13843include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13844prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13845postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13846file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13847variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13848need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13849need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13850version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13851runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13852shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13853shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13854libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13855library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13856soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13857install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13858postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13859postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13860finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13861finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13862hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13863sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13864sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13865hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13866enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13867enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13868enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13869old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13870striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13871 13872LTCC='$LTCC' 13873LTCFLAGS='$LTCFLAGS' 13874compiler='$compiler_DEFAULT' 13875 13876# A function that is used when there is no print builtin or printf. 13877func_fallback_echo () 13878{ 13879 eval 'cat <<_LTECHO_EOF 13880\$1 13881_LTECHO_EOF' 13882} 13883 13884# Quote evaled strings. 13885for var in AS \ 13886DLLTOOL \ 13887OBJDUMP \ 13888SHELL \ 13889ECHO \ 13890SED \ 13891GREP \ 13892EGREP \ 13893FGREP \ 13894LD \ 13895NM \ 13896LN_S \ 13897lt_SP2NL \ 13898lt_NL2SP \ 13899reload_flag \ 13900deplibs_check_method \ 13901file_magic_cmd \ 13902file_magic_glob \ 13903want_nocaseglob \ 13904sharedlib_from_linklib_cmd \ 13905AR \ 13906AR_FLAGS \ 13907archiver_list_spec \ 13908STRIP \ 13909RANLIB \ 13910CC \ 13911CFLAGS \ 13912compiler \ 13913lt_cv_sys_global_symbol_pipe \ 13914lt_cv_sys_global_symbol_to_cdecl \ 13915lt_cv_sys_global_symbol_to_c_name_address \ 13916lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13917nm_file_list_spec \ 13918lt_prog_compiler_no_builtin_flag \ 13919lt_prog_compiler_pic \ 13920lt_prog_compiler_wl \ 13921lt_prog_compiler_static \ 13922lt_cv_prog_compiler_c_o \ 13923need_locks \ 13924MANIFEST_TOOL \ 13925DSYMUTIL \ 13926NMEDIT \ 13927LIPO \ 13928OTOOL \ 13929OTOOL64 \ 13930shrext_cmds \ 13931export_dynamic_flag_spec \ 13932whole_archive_flag_spec \ 13933compiler_needs_object \ 13934with_gnu_ld \ 13935allow_undefined_flag \ 13936no_undefined_flag \ 13937hardcode_libdir_flag_spec \ 13938hardcode_libdir_flag_spec_ld \ 13939hardcode_libdir_separator \ 13940exclude_expsyms \ 13941include_expsyms \ 13942file_list_spec \ 13943variables_saved_for_relink \ 13944libname_spec \ 13945library_names_spec \ 13946soname_spec \ 13947install_override_mode \ 13948finish_eval \ 13949old_striplib \ 13950striplib; do 13951 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13952 *[\\\\\\\`\\"\\\$]*) 13953 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13954 ;; 13955 *) 13956 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13957 ;; 13958 esac 13959done 13960 13961# Double-quote double-evaled strings. 13962for var in reload_cmds \ 13963old_postinstall_cmds \ 13964old_postuninstall_cmds \ 13965old_archive_cmds \ 13966extract_expsyms_cmds \ 13967old_archive_from_new_cmds \ 13968old_archive_from_expsyms_cmds \ 13969archive_cmds \ 13970archive_expsym_cmds \ 13971module_cmds \ 13972module_expsym_cmds \ 13973export_symbols_cmds \ 13974prelink_cmds \ 13975postlink_cmds \ 13976postinstall_cmds \ 13977postuninstall_cmds \ 13978finish_cmds \ 13979sys_lib_search_path_spec \ 13980sys_lib_dlsearch_path_spec; do 13981 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13982 *[\\\\\\\`\\"\\\$]*) 13983 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13984 ;; 13985 *) 13986 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13987 ;; 13988 esac 13989done 13990 13991ac_aux_dir='$ac_aux_dir' 13992xsi_shell='$xsi_shell' 13993lt_shell_append='$lt_shell_append' 13994 13995# See if we are running on zsh, and set the options which allow our 13996# commands through without removal of \ escapes INIT. 13997if test -n "\${ZSH_VERSION+set}" ; then 13998 setopt NO_GLOB_SUBST 13999fi 14000 14001 14002 PACKAGE='$PACKAGE' 14003 VERSION='$VERSION' 14004 TIMESTAMP='$TIMESTAMP' 14005 RM='$RM' 14006 ofile='$ofile' 14007 14008 14009 14010 14011_ACEOF 14012 14013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14014 14015# Handling of arguments. 14016for ac_config_target in $ac_config_targets 14017do 14018 case $ac_config_target in 14019 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14020 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14021 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14022 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14023 "doc/klel-expr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/klel-expr/Makefile" ;; 14024 "doc/klelapi/Makefile") CONFIG_FILES="$CONFIG_FILES doc/klelapi/Makefile" ;; 14025 "doc/klellang/Makefile") CONFIG_FILES="$CONFIG_FILES doc/klellang/Makefile" ;; 14026 "doc/klelstdlib/Makefile") CONFIG_FILES="$CONFIG_FILES doc/klelstdlib/Makefile" ;; 14027 "doc/kleltut/Makefile") CONFIG_FILES="$CONFIG_FILES doc/kleltut/Makefile" ;; 14028 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 14029 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14030 "src/libklel/Makefile") CONFIG_FILES="$CONFIG_FILES src/libklel/Makefile" ;; 14031 "src/klel-expr/Makefile") CONFIG_FILES="$CONFIG_FILES src/klel-expr/Makefile" ;; 14032 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 14033 "include/klel.h") CONFIG_LINKS="$CONFIG_LINKS include/klel.h:include/klel.h" ;; 14034 "include/klel-pstdint.h") CONFIG_LINKS="$CONFIG_LINKS include/klel-pstdint.h:include/pstdint.h" ;; 14035 14036 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14037 esac 14038done 14039 14040 14041# If the user did not use the arguments to specify the items to instantiate, 14042# then the envvar interface is used. Set only those that are not. 14043# We use the long form for the default assignment because of an extremely 14044# bizarre bug on SunOS 4.1.3. 14045if $ac_need_defaults; then 14046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14048 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 14049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14050fi 14051 14052# Have a temporary directory for convenience. Make it in the build tree 14053# simply because there is no reason against having it here, and in addition, 14054# creating and moving files from /tmp can sometimes cause problems. 14055# Hook for its removal unless debugging. 14056# Note that there is a small window in which the directory will not be cleaned: 14057# after its creation but before its name has been assigned to `$tmp'. 14058$debug || 14059{ 14060 tmp= ac_tmp= 14061 trap 'exit_status=$? 14062 : "${ac_tmp:=$tmp}" 14063 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14064' 0 14065 trap 'as_fn_exit 1' 1 2 13 15 14066} 14067# Create a (secure) tmp directory for tmp files. 14068 14069{ 14070 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14071 test -d "$tmp" 14072} || 14073{ 14074 tmp=./conf$$-$RANDOM 14075 (umask 077 && mkdir "$tmp") 14076} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14077ac_tmp=$tmp 14078 14079# Set up the scripts for CONFIG_FILES section. 14080# No need to generate them if there are no CONFIG_FILES. 14081# This happens for instance with `./config.status config.h'. 14082if test -n "$CONFIG_FILES"; then 14083 14084 14085ac_cr=`echo X | tr X '\015'` 14086# On cygwin, bash can eat \r inside `` if the user requested igncr. 14087# But we know of no other shell where ac_cr would be empty at this 14088# point, so we can use a bashism as a fallback. 14089if test "x$ac_cr" = x; then 14090 eval ac_cr=\$\'\\r\' 14091fi 14092ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14093if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14094 ac_cs_awk_cr='\\r' 14095else 14096 ac_cs_awk_cr=$ac_cr 14097fi 14098 14099echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14100_ACEOF 14101 14102 14103{ 14104 echo "cat >conf$$subs.awk <<_ACEOF" && 14105 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14106 echo "_ACEOF" 14107} >conf$$subs.sh || 14108 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14109ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14110ac_delim='%!_!# ' 14111for ac_last_try in false false false false false :; do 14112 . ./conf$$subs.sh || 14113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14114 14115 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14116 if test $ac_delim_n = $ac_delim_num; then 14117 break 14118 elif $ac_last_try; then 14119 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14120 else 14121 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14122 fi 14123done 14124rm -f conf$$subs.sh 14125 14126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14127cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14128_ACEOF 14129sed -n ' 14130h 14131s/^/S["/; s/!.*/"]=/ 14132p 14133g 14134s/^[^!]*!// 14135:repl 14136t repl 14137s/'"$ac_delim"'$// 14138t delim 14139:nl 14140h 14141s/\(.\{148\}\)..*/\1/ 14142t more1 14143s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14144p 14145n 14146b repl 14147:more1 14148s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14149p 14150g 14151s/.\{148\}// 14152t nl 14153:delim 14154h 14155s/\(.\{148\}\)..*/\1/ 14156t more2 14157s/["\\]/\\&/g; s/^/"/; s/$/"/ 14158p 14159b 14160:more2 14161s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14162p 14163g 14164s/.\{148\}// 14165t delim 14166' <conf$$subs.awk | sed ' 14167/^[^""]/{ 14168 N 14169 s/\n// 14170} 14171' >>$CONFIG_STATUS || ac_write_fail=1 14172rm -f conf$$subs.awk 14173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14174_ACAWK 14175cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14176 for (key in S) S_is_set[key] = 1 14177 FS = "" 14178 14179} 14180{ 14181 line = $ 0 14182 nfields = split(line, field, "@") 14183 substed = 0 14184 len = length(field[1]) 14185 for (i = 2; i < nfields; i++) { 14186 key = field[i] 14187 keylen = length(key) 14188 if (S_is_set[key]) { 14189 value = S[key] 14190 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14191 len += length(value) + length(field[++i]) 14192 substed = 1 14193 } else 14194 len += 1 + keylen 14195 } 14196 14197 print line 14198} 14199 14200_ACAWK 14201_ACEOF 14202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14203if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14204 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14205else 14206 cat 14207fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14208 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14209_ACEOF 14210 14211# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14212# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14213# trailing colons and then remove the whole line if VPATH becomes empty 14214# (actually we leave an empty line to preserve line numbers). 14215if test "x$srcdir" = x.; then 14216 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14217h 14218s/// 14219s/^/:/ 14220s/[ ]*$/:/ 14221s/:\$(srcdir):/:/g 14222s/:\${srcdir}:/:/g 14223s/:@srcdir@:/:/g 14224s/^:*// 14225s/:*$// 14226x 14227s/\(=[ ]*\).*/\1/ 14228G 14229s/\n// 14230s/^[^=]*=[ ]*$// 14231}' 14232fi 14233 14234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14235fi # test -n "$CONFIG_FILES" 14236 14237# Set up the scripts for CONFIG_HEADERS section. 14238# No need to generate them if there are no CONFIG_HEADERS. 14239# This happens for instance with `./config.status Makefile'. 14240if test -n "$CONFIG_HEADERS"; then 14241cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14242BEGIN { 14243_ACEOF 14244 14245# Transform confdefs.h into an awk script `defines.awk', embedded as 14246# here-document in config.status, that substitutes the proper values into 14247# config.h.in to produce config.h. 14248 14249# Create a delimiter string that does not exist in confdefs.h, to ease 14250# handling of long lines. 14251ac_delim='%!_!# ' 14252for ac_last_try in false false :; do 14253 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14254 if test -z "$ac_tt"; then 14255 break 14256 elif $ac_last_try; then 14257 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14258 else 14259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14260 fi 14261done 14262 14263# For the awk script, D is an array of macro values keyed by name, 14264# likewise P contains macro parameters if any. Preserve backslash 14265# newline sequences. 14266 14267ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14268sed -n ' 14269s/.\{148\}/&'"$ac_delim"'/g 14270t rset 14271:rset 14272s/^[ ]*#[ ]*define[ ][ ]*/ / 14273t def 14274d 14275:def 14276s/\\$// 14277t bsnl 14278s/["\\]/\\&/g 14279s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14280D["\1"]=" \3"/p 14281s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14282d 14283:bsnl 14284s/["\\]/\\&/g 14285s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14286D["\1"]=" \3\\\\\\n"\\/p 14287t cont 14288s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14289t cont 14290d 14291:cont 14292n 14293s/.\{148\}/&'"$ac_delim"'/g 14294t clear 14295:clear 14296s/\\$// 14297t bsnlc 14298s/["\\]/\\&/g; s/^/"/; s/$/"/p 14299d 14300:bsnlc 14301s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14302b cont 14303' <confdefs.h | sed ' 14304s/'"$ac_delim"'/"\\\ 14305"/g' >>$CONFIG_STATUS || ac_write_fail=1 14306 14307cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14308 for (key in D) D_is_set[key] = 1 14309 FS = "" 14310} 14311/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14312 line = \$ 0 14313 split(line, arg, " ") 14314 if (arg[1] == "#") { 14315 defundef = arg[2] 14316 mac1 = arg[3] 14317 } else { 14318 defundef = substr(arg[1], 2) 14319 mac1 = arg[2] 14320 } 14321 split(mac1, mac2, "(") #) 14322 macro = mac2[1] 14323 prefix = substr(line, 1, index(line, defundef) - 1) 14324 if (D_is_set[macro]) { 14325 # Preserve the white space surrounding the "#". 14326 print prefix "define", macro P[macro] D[macro] 14327 next 14328 } else { 14329 # Replace #undef with comments. This is necessary, for example, 14330 # in the case of _POSIX_SOURCE, which is predefined and required 14331 # on some systems where configure will not decide to define it. 14332 if (defundef == "undef") { 14333 print "/*", prefix defundef, macro, "*/" 14334 next 14335 } 14336 } 14337} 14338{ print } 14339_ACAWK 14340_ACEOF 14341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14342 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14343fi # test -n "$CONFIG_HEADERS" 14344 14345 14346eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 14347shift 14348for ac_tag 14349do 14350 case $ac_tag in 14351 :[FHLC]) ac_mode=$ac_tag; continue;; 14352 esac 14353 case $ac_mode$ac_tag in 14354 :[FHL]*:*);; 14355 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14356 :[FH]-) ac_tag=-:-;; 14357 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14358 esac 14359 ac_save_IFS=$IFS 14360 IFS=: 14361 set x $ac_tag 14362 IFS=$ac_save_IFS 14363 shift 14364 ac_file=$1 14365 shift 14366 14367 case $ac_mode in 14368 :L) ac_source=$1;; 14369 :[FH]) 14370 ac_file_inputs= 14371 for ac_f 14372 do 14373 case $ac_f in 14374 -) ac_f="$ac_tmp/stdin";; 14375 *) # Look for the file first in the build tree, then in the source tree 14376 # (if the path is not absolute). The absolute path cannot be DOS-style, 14377 # because $ac_f cannot contain `:'. 14378 test -f "$ac_f" || 14379 case $ac_f in 14380 [\\/$]*) false;; 14381 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14382 esac || 14383 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14384 esac 14385 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14386 as_fn_append ac_file_inputs " '$ac_f'" 14387 done 14388 14389 # Let's still pretend it is `configure' which instantiates (i.e., don't 14390 # use $as_me), people would be surprised to read: 14391 # /* config.h. Generated by config.status. */ 14392 configure_input='Generated from '` 14393 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14394 `' by configure.' 14395 if test x"$ac_file" != x-; then 14396 configure_input="$ac_file. $configure_input" 14397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14398$as_echo "$as_me: creating $ac_file" >&6;} 14399 fi 14400 # Neutralize special characters interpreted by sed in replacement strings. 14401 case $configure_input in #( 14402 *\&* | *\|* | *\\* ) 14403 ac_sed_conf_input=`$as_echo "$configure_input" | 14404 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14405 *) ac_sed_conf_input=$configure_input;; 14406 esac 14407 14408 case $ac_tag in 14409 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14411 esac 14412 ;; 14413 esac 14414 14415 ac_dir=`$as_dirname -- "$ac_file" || 14416$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14417 X"$ac_file" : 'X\(//\)[^/]' \| \ 14418 X"$ac_file" : 'X\(//\)$' \| \ 14419 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14420$as_echo X"$ac_file" | 14421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14422 s//\1/ 14423 q 14424 } 14425 /^X\(\/\/\)[^/].*/{ 14426 s//\1/ 14427 q 14428 } 14429 /^X\(\/\/\)$/{ 14430 s//\1/ 14431 q 14432 } 14433 /^X\(\/\).*/{ 14434 s//\1/ 14435 q 14436 } 14437 s/.*/./; q'` 14438 as_dir="$ac_dir"; as_fn_mkdir_p 14439 ac_builddir=. 14440 14441case "$ac_dir" in 14442.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14443*) 14444 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14445 # A ".." for each directory in $ac_dir_suffix. 14446 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14447 case $ac_top_builddir_sub in 14448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14450 esac ;; 14451esac 14452ac_abs_top_builddir=$ac_pwd 14453ac_abs_builddir=$ac_pwd$ac_dir_suffix 14454# for backward compatibility: 14455ac_top_builddir=$ac_top_build_prefix 14456 14457case $srcdir in 14458 .) # We are building in place. 14459 ac_srcdir=. 14460 ac_top_srcdir=$ac_top_builddir_sub 14461 ac_abs_top_srcdir=$ac_pwd ;; 14462 [\\/]* | ?:[\\/]* ) # Absolute name. 14463 ac_srcdir=$srcdir$ac_dir_suffix; 14464 ac_top_srcdir=$srcdir 14465 ac_abs_top_srcdir=$srcdir ;; 14466 *) # Relative name. 14467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14468 ac_top_srcdir=$ac_top_build_prefix$srcdir 14469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14470esac 14471ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14472 14473 14474 case $ac_mode in 14475 :F) 14476 # 14477 # CONFIG_FILE 14478 # 14479 14480 case $INSTALL in 14481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14482 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14483 esac 14484 ac_MKDIR_P=$MKDIR_P 14485 case $MKDIR_P in 14486 [\\/$]* | ?:[\\/]* ) ;; 14487 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14488 esac 14489_ACEOF 14490 14491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14492# If the template does not know about datarootdir, expand it. 14493# FIXME: This hack should be removed a few years after 2.60. 14494ac_datarootdir_hack=; ac_datarootdir_seen= 14495ac_sed_dataroot=' 14496/datarootdir/ { 14497 p 14498 q 14499} 14500/@datadir@/p 14501/@docdir@/p 14502/@infodir@/p 14503/@localedir@/p 14504/@mandir@/p' 14505case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14506*datarootdir*) ac_datarootdir_seen=yes;; 14507*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14509$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14510_ACEOF 14511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14512 ac_datarootdir_hack=' 14513 s&@datadir@&$datadir&g 14514 s&@docdir@&$docdir&g 14515 s&@infodir@&$infodir&g 14516 s&@localedir@&$localedir&g 14517 s&@mandir@&$mandir&g 14518 s&\\\${datarootdir}&$datarootdir&g' ;; 14519esac 14520_ACEOF 14521 14522# Neutralize VPATH when `$srcdir' = `.'. 14523# Shell code in configure.ac might set extrasub. 14524# FIXME: do we really want to maintain this feature? 14525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14526ac_sed_extra="$ac_vpsub 14527$extrasub 14528_ACEOF 14529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14530:t 14531/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14532s|@configure_input@|$ac_sed_conf_input|;t t 14533s&@top_builddir@&$ac_top_builddir_sub&;t t 14534s&@top_build_prefix@&$ac_top_build_prefix&;t t 14535s&@srcdir@&$ac_srcdir&;t t 14536s&@abs_srcdir@&$ac_abs_srcdir&;t t 14537s&@top_srcdir@&$ac_top_srcdir&;t t 14538s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14539s&@builddir@&$ac_builddir&;t t 14540s&@abs_builddir@&$ac_abs_builddir&;t t 14541s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14542s&@INSTALL@&$ac_INSTALL&;t t 14543s&@MKDIR_P@&$ac_MKDIR_P&;t t 14544$ac_datarootdir_hack 14545" 14546eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14547 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14548 14549test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14550 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14551 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14552 "$ac_tmp/out"`; test -z "$ac_out"; } && 14553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14554which seems to be undefined. Please make sure it is defined" >&5 14555$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14556which seems to be undefined. Please make sure it is defined" >&2;} 14557 14558 rm -f "$ac_tmp/stdin" 14559 case $ac_file in 14560 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14561 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14562 esac \ 14563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14564 ;; 14565 :H) 14566 # 14567 # CONFIG_HEADER 14568 # 14569 if test x"$ac_file" != x-; then 14570 { 14571 $as_echo "/* $configure_input */" \ 14572 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14573 } >"$ac_tmp/config.h" \ 14574 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14575 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14577$as_echo "$as_me: $ac_file is unchanged" >&6;} 14578 else 14579 rm -f "$ac_file" 14580 mv "$ac_tmp/config.h" "$ac_file" \ 14581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14582 fi 14583 else 14584 $as_echo "/* $configure_input */" \ 14585 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14586 || as_fn_error $? "could not create -" "$LINENO" 5 14587 fi 14588# Compute "$ac_file"'s index in $config_headers. 14589_am_arg="$ac_file" 14590_am_stamp_count=1 14591for _am_header in $config_headers :; do 14592 case $_am_header in 14593 $_am_arg | $_am_arg:* ) 14594 break ;; 14595 * ) 14596 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14597 esac 14598done 14599echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14600$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14601 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14602 X"$_am_arg" : 'X\(//\)$' \| \ 14603 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14604$as_echo X"$_am_arg" | 14605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14606 s//\1/ 14607 q 14608 } 14609 /^X\(\/\/\)[^/].*/{ 14610 s//\1/ 14611 q 14612 } 14613 /^X\(\/\/\)$/{ 14614 s//\1/ 14615 q 14616 } 14617 /^X\(\/\).*/{ 14618 s//\1/ 14619 q 14620 } 14621 s/.*/./; q'`/stamp-h$_am_stamp_count 14622 ;; 14623 :L) 14624 # 14625 # CONFIG_LINK 14626 # 14627 14628 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 14629 : 14630 else 14631 # Prefer the file from the source tree if names are identical. 14632 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 14633 ac_source=$srcdir/$ac_source 14634 fi 14635 14636 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 14637$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 14638 14639 if test ! -r "$ac_source"; then 14640 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 14641 fi 14642 rm -f "$ac_file" 14643 14644 # Try a relative symlink, then a hard link, then a copy. 14645 case $ac_source in 14646 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 14647 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 14648 esac 14649 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 14650 ln "$ac_source" "$ac_file" 2>/dev/null || 14651 cp -p "$ac_source" "$ac_file" || 14652 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 14653 fi 14654 ;; 14655 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14656$as_echo "$as_me: executing $ac_file commands" >&6;} 14657 ;; 14658 esac 14659 14660 14661 case $ac_file$ac_mode in 14662 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14663 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14664 # are listed without --file. Let's play safe and only enable the eval 14665 # if we detect the quoting. 14666 case $CONFIG_FILES in 14667 *\'*) eval set x "$CONFIG_FILES" ;; 14668 *) set x $CONFIG_FILES ;; 14669 esac 14670 shift 14671 for mf 14672 do 14673 # Strip MF so we end up with the name of the file. 14674 mf=`echo "$mf" | sed -e 's/:.*$//'` 14675 # Check whether this is an Automake generated Makefile or not. 14676 # We used to match only the files named 'Makefile.in', but 14677 # some people rename them; so instead we look at the file content. 14678 # Grep'ing the first line is not enough: some people post-process 14679 # each Makefile.in and add a new line on top of each file to say so. 14680 # Grep'ing the whole file is not good either: AIX grep has a line 14681 # limit of 2048, but all sed's we know have understand at least 4000. 14682 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14683 dirpart=`$as_dirname -- "$mf" || 14684$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14685 X"$mf" : 'X\(//\)[^/]' \| \ 14686 X"$mf" : 'X\(//\)$' \| \ 14687 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14688$as_echo X"$mf" | 14689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14690 s//\1/ 14691 q 14692 } 14693 /^X\(\/\/\)[^/].*/{ 14694 s//\1/ 14695 q 14696 } 14697 /^X\(\/\/\)$/{ 14698 s//\1/ 14699 q 14700 } 14701 /^X\(\/\).*/{ 14702 s//\1/ 14703 q 14704 } 14705 s/.*/./; q'` 14706 else 14707 continue 14708 fi 14709 # Extract the definition of DEPDIR, am__include, and am__quote 14710 # from the Makefile without running 'make'. 14711 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14712 test -z "$DEPDIR" && continue 14713 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14714 test -z "am__include" && continue 14715 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14716 # Find all dependency output files, they are included files with 14717 # $(DEPDIR) in their names. We invoke sed twice because it is the 14718 # simplest approach to changing $(DEPDIR) to its actual value in the 14719 # expansion. 14720 for file in `sed -n " 14721 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14722 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 14723 # Make sure the directory exists. 14724 test -f "$dirpart/$file" && continue 14725 fdir=`$as_dirname -- "$file" || 14726$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14727 X"$file" : 'X\(//\)[^/]' \| \ 14728 X"$file" : 'X\(//\)$' \| \ 14729 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14730$as_echo X"$file" | 14731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14732 s//\1/ 14733 q 14734 } 14735 /^X\(\/\/\)[^/].*/{ 14736 s//\1/ 14737 q 14738 } 14739 /^X\(\/\/\)$/{ 14740 s//\1/ 14741 q 14742 } 14743 /^X\(\/\).*/{ 14744 s//\1/ 14745 q 14746 } 14747 s/.*/./; q'` 14748 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14749 # echo "creating $dirpart/$file" 14750 echo '# dummy' > "$dirpart/$file" 14751 done 14752 done 14753} 14754 ;; 14755 "libtool":C) 14756 14757 # See if we are running on zsh, and set the options which allow our 14758 # commands through without removal of \ escapes. 14759 if test -n "${ZSH_VERSION+set}" ; then 14760 setopt NO_GLOB_SUBST 14761 fi 14762 14763 cfgfile="${ofile}T" 14764 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14765 $RM "$cfgfile" 14766 14767 cat <<_LT_EOF >> "$cfgfile" 14768#! $SHELL 14769 14770# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14771# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14772# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14773# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14774# 14775# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14776# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 14777# Inc. 14778# Written by Gordon Matzigkeit, 1996 14779# 14780# This file is part of GNU Libtool. 14781# 14782# GNU Libtool is free software; you can redistribute it and/or 14783# modify it under the terms of the GNU General Public License as 14784# published by the Free Software Foundation; either version 2 of 14785# the License, or (at your option) any later version. 14786# 14787# As a special exception to the GNU General Public License, 14788# if you distribute this file as part of a program or library that 14789# is built using GNU Libtool, you may include this file under the 14790# same distribution terms that you use for the rest of that program. 14791# 14792# GNU Libtool is distributed in the hope that it will be useful, 14793# but WITHOUT ANY WARRANTY; without even the implied warranty of 14794# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14795# GNU General Public License for more details. 14796# 14797# You should have received a copy of the GNU General Public License 14798# along with GNU Libtool; see the file COPYING. If not, a copy 14799# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14800# obtained by writing to the Free Software Foundation, Inc., 14801# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14802 14803 14804# The names of the tagged configurations supported by this script. 14805available_tags="" 14806 14807# ### BEGIN LIBTOOL CONFIG 14808 14809# Assembler program. 14810AS=$lt_AS 14811 14812# DLL creation program. 14813DLLTOOL=$lt_DLLTOOL 14814 14815# Object dumper program. 14816OBJDUMP=$lt_OBJDUMP 14817 14818# Which release of libtool.m4 was used? 14819macro_version=$macro_version 14820macro_revision=$macro_revision 14821 14822# Whether or not to build shared libraries. 14823build_libtool_libs=$enable_shared 14824 14825# Whether or not to build static libraries. 14826build_old_libs=$enable_static 14827 14828# What type of objects to build. 14829pic_mode=$pic_mode 14830 14831# Whether or not to optimize for fast installation. 14832fast_install=$enable_fast_install 14833 14834# Shell to use when invoking shell scripts. 14835SHELL=$lt_SHELL 14836 14837# An echo program that protects backslashes. 14838ECHO=$lt_ECHO 14839 14840# The host system. 14841host_alias=$host_alias 14842host=$host 14843host_os=$host_os 14844 14845# The build system. 14846build_alias=$build_alias 14847build=$build 14848build_os=$build_os 14849 14850# A sed program that does not truncate output. 14851SED=$lt_SED 14852 14853# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14854Xsed="\$SED -e 1s/^X//" 14855 14856# A grep program that handles long lines. 14857GREP=$lt_GREP 14858 14859# An ERE matcher. 14860EGREP=$lt_EGREP 14861 14862# A literal string matcher. 14863FGREP=$lt_FGREP 14864 14865# A BSD- or MS-compatible name lister. 14866NM=$lt_NM 14867 14868# Whether we need soft or hard links. 14869LN_S=$lt_LN_S 14870 14871# What is the maximum length of a command? 14872max_cmd_len=$max_cmd_len 14873 14874# Object file suffix (normally "o"). 14875objext=$ac_objext 14876 14877# Executable file suffix (normally ""). 14878exeext=$exeext 14879 14880# whether the shell understands "unset". 14881lt_unset=$lt_unset 14882 14883# turn spaces into newlines. 14884SP2NL=$lt_lt_SP2NL 14885 14886# turn newlines into spaces. 14887NL2SP=$lt_lt_NL2SP 14888 14889# convert \$build file names to \$host format. 14890to_host_file_cmd=$lt_cv_to_host_file_cmd 14891 14892# convert \$build files to toolchain format. 14893to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14894 14895# Method to check whether dependent libraries are shared objects. 14896deplibs_check_method=$lt_deplibs_check_method 14897 14898# Command to use when deplibs_check_method = "file_magic". 14899file_magic_cmd=$lt_file_magic_cmd 14900 14901# How to find potential files when deplibs_check_method = "file_magic". 14902file_magic_glob=$lt_file_magic_glob 14903 14904# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14905want_nocaseglob=$lt_want_nocaseglob 14906 14907# Command to associate shared and link libraries. 14908sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14909 14910# The archiver. 14911AR=$lt_AR 14912 14913# Flags to create an archive. 14914AR_FLAGS=$lt_AR_FLAGS 14915 14916# How to feed a file listing to the archiver. 14917archiver_list_spec=$lt_archiver_list_spec 14918 14919# A symbol stripping program. 14920STRIP=$lt_STRIP 14921 14922# Commands used to install an old-style archive. 14923RANLIB=$lt_RANLIB 14924old_postinstall_cmds=$lt_old_postinstall_cmds 14925old_postuninstall_cmds=$lt_old_postuninstall_cmds 14926 14927# Whether to use a lock for old archive extraction. 14928lock_old_archive_extraction=$lock_old_archive_extraction 14929 14930# A C compiler. 14931LTCC=$lt_CC 14932 14933# LTCC compiler flags. 14934LTCFLAGS=$lt_CFLAGS 14935 14936# Take the output of nm and produce a listing of raw symbols and C names. 14937global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14938 14939# Transform the output of nm in a proper C declaration. 14940global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14941 14942# Transform the output of nm in a C name address pair. 14943global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14944 14945# Transform the output of nm in a C name address pair when lib prefix is needed. 14946global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14947 14948# Specify filename containing input files for \$NM. 14949nm_file_list_spec=$lt_nm_file_list_spec 14950 14951# The root where to search for dependent libraries,and in which our libraries should be installed. 14952lt_sysroot=$lt_sysroot 14953 14954# The name of the directory that contains temporary libtool files. 14955objdir=$objdir 14956 14957# Used to examine libraries when file_magic_cmd begins with "file". 14958MAGIC_CMD=$MAGIC_CMD 14959 14960# Must we lock files when doing compilation? 14961need_locks=$lt_need_locks 14962 14963# Manifest tool. 14964MANIFEST_TOOL=$lt_MANIFEST_TOOL 14965 14966# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14967DSYMUTIL=$lt_DSYMUTIL 14968 14969# Tool to change global to local symbols on Mac OS X. 14970NMEDIT=$lt_NMEDIT 14971 14972# Tool to manipulate fat objects and archives on Mac OS X. 14973LIPO=$lt_LIPO 14974 14975# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14976OTOOL=$lt_OTOOL 14977 14978# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14979OTOOL64=$lt_OTOOL64 14980 14981# Old archive suffix (normally "a"). 14982libext=$libext 14983 14984# Shared library suffix (normally ".so"). 14985shrext_cmds=$lt_shrext_cmds 14986 14987# The commands to extract the exported symbol list from a shared archive. 14988extract_expsyms_cmds=$lt_extract_expsyms_cmds 14989 14990# Variables whose values should be saved in libtool wrapper scripts and 14991# restored at link time. 14992variables_saved_for_relink=$lt_variables_saved_for_relink 14993 14994# Do we need the "lib" prefix for modules? 14995need_lib_prefix=$need_lib_prefix 14996 14997# Do we need a version for libraries? 14998need_version=$need_version 14999 15000# Library versioning type. 15001version_type=$version_type 15002 15003# Shared library runtime path variable. 15004runpath_var=$runpath_var 15005 15006# Shared library path variable. 15007shlibpath_var=$shlibpath_var 15008 15009# Is shlibpath searched before the hard-coded library search path? 15010shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15011 15012# Format of library name prefix. 15013libname_spec=$lt_libname_spec 15014 15015# List of archive names. First name is the real one, the rest are links. 15016# The last name is the one that the linker finds with -lNAME 15017library_names_spec=$lt_library_names_spec 15018 15019# The coded name of the library, if different from the real name. 15020soname_spec=$lt_soname_spec 15021 15022# Permission mode override for installation of shared libraries. 15023install_override_mode=$lt_install_override_mode 15024 15025# Command to use after installation of a shared archive. 15026postinstall_cmds=$lt_postinstall_cmds 15027 15028# Command to use after uninstallation of a shared archive. 15029postuninstall_cmds=$lt_postuninstall_cmds 15030 15031# Commands used to finish a libtool library installation in a directory. 15032finish_cmds=$lt_finish_cmds 15033 15034# As "finish_cmds", except a single script fragment to be evaled but 15035# not shown. 15036finish_eval=$lt_finish_eval 15037 15038# Whether we should hardcode library paths into libraries. 15039hardcode_into_libs=$hardcode_into_libs 15040 15041# Compile-time system search path for libraries. 15042sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15043 15044# Run-time system search path for libraries. 15045sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15046 15047# Whether dlopen is supported. 15048dlopen_support=$enable_dlopen 15049 15050# Whether dlopen of programs is supported. 15051dlopen_self=$enable_dlopen_self 15052 15053# Whether dlopen of statically linked programs is supported. 15054dlopen_self_static=$enable_dlopen_self_static 15055 15056# Commands to strip libraries. 15057old_striplib=$lt_old_striplib 15058striplib=$lt_striplib 15059 15060 15061# The linker used to build libraries. 15062LD=$lt_LD 15063 15064# How to create reloadable object files. 15065reload_flag=$lt_reload_flag 15066reload_cmds=$lt_reload_cmds 15067 15068# Commands used to build an old-style archive. 15069old_archive_cmds=$lt_old_archive_cmds 15070 15071# A language specific compiler. 15072CC=$lt_compiler 15073 15074# Is the compiler the GNU compiler? 15075with_gcc=$GCC 15076 15077# Compiler flag to turn off builtin functions. 15078no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15079 15080# Additional compiler flags for building library objects. 15081pic_flag=$lt_lt_prog_compiler_pic 15082 15083# How to pass a linker flag through the compiler. 15084wl=$lt_lt_prog_compiler_wl 15085 15086# Compiler flag to prevent dynamic linking. 15087link_static_flag=$lt_lt_prog_compiler_static 15088 15089# Does compiler simultaneously support -c and -o options? 15090compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15091 15092# Whether or not to add -lc for building shared libraries. 15093build_libtool_need_lc=$archive_cmds_need_lc 15094 15095# Whether or not to disallow shared libs when runtime libs are static. 15096allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15097 15098# Compiler flag to allow reflexive dlopens. 15099export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15100 15101# Compiler flag to generate shared objects directly from archives. 15102whole_archive_flag_spec=$lt_whole_archive_flag_spec 15103 15104# Whether the compiler copes with passing no objects directly. 15105compiler_needs_object=$lt_compiler_needs_object 15106 15107# Create an old-style archive from a shared archive. 15108old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15109 15110# Create a temporary old-style archive to link instead of a shared archive. 15111old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15112 15113# Commands used to build a shared archive. 15114archive_cmds=$lt_archive_cmds 15115archive_expsym_cmds=$lt_archive_expsym_cmds 15116 15117# Commands used to build a loadable module if different from building 15118# a shared archive. 15119module_cmds=$lt_module_cmds 15120module_expsym_cmds=$lt_module_expsym_cmds 15121 15122# Whether we are building with GNU ld or not. 15123with_gnu_ld=$lt_with_gnu_ld 15124 15125# Flag that allows shared libraries with undefined symbols to be built. 15126allow_undefined_flag=$lt_allow_undefined_flag 15127 15128# Flag that enforces no undefined symbols. 15129no_undefined_flag=$lt_no_undefined_flag 15130 15131# Flag to hardcode \$libdir into a binary during linking. 15132# This must work even if \$libdir does not exist 15133hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15134 15135# If ld is used when linking, flag to hardcode \$libdir into a binary 15136# during linking. This must work even if \$libdir does not exist. 15137hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15138 15139# Whether we need a single "-rpath" flag with a separated argument. 15140hardcode_libdir_separator=$lt_hardcode_libdir_separator 15141 15142# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15143# DIR into the resulting binary. 15144hardcode_direct=$hardcode_direct 15145 15146# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15147# DIR into the resulting binary and the resulting library dependency is 15148# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15149# library is relocated. 15150hardcode_direct_absolute=$hardcode_direct_absolute 15151 15152# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15153# into the resulting binary. 15154hardcode_minus_L=$hardcode_minus_L 15155 15156# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15157# into the resulting binary. 15158hardcode_shlibpath_var=$hardcode_shlibpath_var 15159 15160# Set to "yes" if building a shared library automatically hardcodes DIR 15161# into the library and all subsequent libraries and executables linked 15162# against it. 15163hardcode_automatic=$hardcode_automatic 15164 15165# Set to yes if linker adds runtime paths of dependent libraries 15166# to runtime path list. 15167inherit_rpath=$inherit_rpath 15168 15169# Whether libtool must link a program against all its dependency libraries. 15170link_all_deplibs=$link_all_deplibs 15171 15172# Set to "yes" if exported symbols are required. 15173always_export_symbols=$always_export_symbols 15174 15175# The commands to list exported symbols. 15176export_symbols_cmds=$lt_export_symbols_cmds 15177 15178# Symbols that should not be listed in the preloaded symbols. 15179exclude_expsyms=$lt_exclude_expsyms 15180 15181# Symbols that must always be exported. 15182include_expsyms=$lt_include_expsyms 15183 15184# Commands necessary for linking programs (against libraries) with templates. 15185prelink_cmds=$lt_prelink_cmds 15186 15187# Commands necessary for finishing linking programs. 15188postlink_cmds=$lt_postlink_cmds 15189 15190# Specify filename containing input files. 15191file_list_spec=$lt_file_list_spec 15192 15193# How to hardcode a shared library path into an executable. 15194hardcode_action=$hardcode_action 15195 15196# ### END LIBTOOL CONFIG 15197 15198_LT_EOF 15199 15200 case $host_os in 15201 aix3*) 15202 cat <<\_LT_EOF >> "$cfgfile" 15203# AIX sometimes has problems with the GCC collect2 program. For some 15204# reason, if we set the COLLECT_NAMES environment variable, the problems 15205# vanish in a puff of smoke. 15206if test "X${COLLECT_NAMES+set}" != Xset; then 15207 COLLECT_NAMES= 15208 export COLLECT_NAMES 15209fi 15210_LT_EOF 15211 ;; 15212 esac 15213 15214 15215ltmain="$ac_aux_dir/ltmain.sh" 15216 15217 15218 # We use sed instead of cat because bash on DJGPP gets confused if 15219 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15220 # text mode, it properly converts lines to CR/LF. This bash problem 15221 # is reportedly fixed, but why not run on old versions too? 15222 sed '$q' "$ltmain" >> "$cfgfile" \ 15223 || (rm -f "$cfgfile"; exit 1) 15224 15225 if test x"$xsi_shell" = xyes; then 15226 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15227func_dirname ()\ 15228{\ 15229\ case ${1} in\ 15230\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15231\ * ) func_dirname_result="${3}" ;;\ 15232\ esac\ 15233} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15234 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15236test 0 -eq $? || _lt_function_replace_fail=: 15237 15238 15239 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15240func_basename ()\ 15241{\ 15242\ func_basename_result="${1##*/}"\ 15243} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15244 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15246test 0 -eq $? || _lt_function_replace_fail=: 15247 15248 15249 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15250func_dirname_and_basename ()\ 15251{\ 15252\ case ${1} in\ 15253\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15254\ * ) func_dirname_result="${3}" ;;\ 15255\ esac\ 15256\ func_basename_result="${1##*/}"\ 15257} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15258 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15260test 0 -eq $? || _lt_function_replace_fail=: 15261 15262 15263 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15264func_stripname ()\ 15265{\ 15266\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15267\ # positional parameters, so assign one to ordinary parameter first.\ 15268\ func_stripname_result=${3}\ 15269\ func_stripname_result=${func_stripname_result#"${1}"}\ 15270\ func_stripname_result=${func_stripname_result%"${2}"}\ 15271} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15272 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15273 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15274test 0 -eq $? || _lt_function_replace_fail=: 15275 15276 15277 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15278func_split_long_opt ()\ 15279{\ 15280\ func_split_long_opt_name=${1%%=*}\ 15281\ func_split_long_opt_arg=${1#*=}\ 15282} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15283 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15284 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15285test 0 -eq $? || _lt_function_replace_fail=: 15286 15287 15288 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15289func_split_short_opt ()\ 15290{\ 15291\ func_split_short_opt_arg=${1#??}\ 15292\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15293} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15294 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15295 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15296test 0 -eq $? || _lt_function_replace_fail=: 15297 15298 15299 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15300func_lo2o ()\ 15301{\ 15302\ case ${1} in\ 15303\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15304\ *) func_lo2o_result=${1} ;;\ 15305\ esac\ 15306} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15307 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15308 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15309test 0 -eq $? || _lt_function_replace_fail=: 15310 15311 15312 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15313func_xform ()\ 15314{\ 15315 func_xform_result=${1%.*}.lo\ 15316} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15317 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15319test 0 -eq $? || _lt_function_replace_fail=: 15320 15321 15322 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15323func_arith ()\ 15324{\ 15325 func_arith_result=$(( $* ))\ 15326} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15327 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15328 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15329test 0 -eq $? || _lt_function_replace_fail=: 15330 15331 15332 sed -e '/^func_len ()$/,/^} # func_len /c\ 15333func_len ()\ 15334{\ 15335 func_len_result=${#1}\ 15336} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15337 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15339test 0 -eq $? || _lt_function_replace_fail=: 15340 15341fi 15342 15343if test x"$lt_shell_append" = xyes; then 15344 sed -e '/^func_append ()$/,/^} # func_append /c\ 15345func_append ()\ 15346{\ 15347 eval "${1}+=\\${2}"\ 15348} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15349 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15350 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15351test 0 -eq $? || _lt_function_replace_fail=: 15352 15353 15354 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15355func_append_quoted ()\ 15356{\ 15357\ func_quote_for_eval "${2}"\ 15358\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15359} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15360 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15361 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15362test 0 -eq $? || _lt_function_replace_fail=: 15363 15364 15365 # Save a `func_append' function call where possible by direct use of '+=' 15366 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15367 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15368 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15369 test 0 -eq $? || _lt_function_replace_fail=: 15370else 15371 # Save a `func_append' function call even when '+=' is not available 15372 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 15373 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15374 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15375 test 0 -eq $? || _lt_function_replace_fail=: 15376fi 15377 15378if test x"$_lt_function_replace_fail" = x":"; then 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 15380$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 15381fi 15382 15383 15384 mv -f "$cfgfile" "$ofile" || 15385 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15386 chmod +x "$ofile" 15387 15388 ;; 15389 15390 esac 15391done # for ac_tag 15392 15393 15394as_fn_exit 0 15395_ACEOF 15396ac_clean_files=$ac_clean_files_save 15397 15398test $ac_write_fail = 0 || 15399 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15400 15401 15402# configure is writing to config.log, and then calls config.status. 15403# config.status does its own redirection, appending to config.log. 15404# Unfortunately, on DOS this fails, as config.log is still kept open 15405# by configure, so config.status won't be able to write to it; its 15406# output is simply discarded. So we exec the FD to /dev/null, 15407# effectively closing config.log, so it can be properly (re)opened and 15408# appended to by config.status. When coming back to configure, we 15409# need to make the FD available again. 15410if test "$no_create" != yes; then 15411 ac_cs_success=: 15412 ac_config_status_args= 15413 test "$silent" = yes && 15414 ac_config_status_args="$ac_config_status_args --quiet" 15415 exec 5>/dev/null 15416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15417 exec 5>>config.log 15418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15419 # would make configure fail if this is the last instruction. 15420 $ac_cs_success || as_fn_exit 1 15421fi 15422if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15424$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15425fi 15426 15427 15428