1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libdatrie 0.2.13. 4# 5# Report bugs to <https://github.com/tlwg/libdatrie/issues>. 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: https://github.com/tlwg/libdatrie/issues about your 279$0: system, 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='libdatrie' 592PACKAGE_TARNAME='libdatrie' 593PACKAGE_VERSION='0.2.13' 594PACKAGE_STRING='libdatrie 0.2.13' 595PACKAGE_BUGREPORT='https://github.com/tlwg/libdatrie/issues' 596PACKAGE_URL='' 597 598ac_unique_file="datrie/trie.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639ENABLE_DOXYGEN_DOC_FALSE 640ENABLE_DOXYGEN_DOC_TRUE 641htmldocdir 642DOXYGEN 643ICONV_LIBS 644LD_HAS_VERSION_SCRIPT_FALSE 645LD_HAS_VERSION_SCRIPT_TRUE 646CPP 647LT_SYS_LIBRARY_PATH 648OTOOL64 649OTOOL 650LIPO 651NMEDIT 652DSYMUTIL 653MANIFEST_TOOL 654RANLIB 655ac_ct_AR 656AR 657NM 658ac_ct_DUMPBIN 659DUMPBIN 660LD 661FGREP 662EGREP 663GREP 664SED 665LIBTOOL 666OBJDUMP 667DLLTOOL 668AS 669host_os 670host_vendor 671host_cpu 672host 673build_os 674build_vendor 675build_cpu 676build 677LN_S 678am__fastdepCC_FALSE 679am__fastdepCC_TRUE 680CCDEPMODE 681am__nodep 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__include 686DEPDIR 687OBJEXT 688EXEEXT 689ac_ct_CC 690CPPFLAGS 691LDFLAGS 692CFLAGS 693CC 694LT_AGE 695LT_REVISION 696LT_CURRENT 697AM_BACKSLASH 698AM_DEFAULT_VERBOSITY 699AM_DEFAULT_V 700AM_V 701am__untar 702am__tar 703AMTAR 704am__leading_dot 705SET_MAKE 706AWK 707mkdir_p 708MKDIR_P 709INSTALL_STRIP_PROGRAM 710STRIP 711install_sh 712MAKEINFO 713AUTOHEADER 714AUTOMAKE 715AUTOCONF 716ACLOCAL 717VERSION 718PACKAGE 719CYGPATH_W 720am__isrc 721INSTALL_DATA 722INSTALL_SCRIPT 723INSTALL_PROGRAM 724target_alias 725host_alias 726build_alias 727LIBS 728ECHO_T 729ECHO_N 730ECHO_C 731DEFS 732mandir 733localedir 734libdir 735psdir 736pdfdir 737dvidir 738htmldir 739infodir 740docdir 741oldincludedir 742includedir 743runstatedir 744localstatedir 745sharedstatedir 746sysconfdir 747datadir 748datarootdir 749libexecdir 750sbindir 751bindir 752program_transform_name 753prefix 754exec_prefix 755PACKAGE_URL 756PACKAGE_BUGREPORT 757PACKAGE_STRING 758PACKAGE_VERSION 759PACKAGE_TARNAME 760PACKAGE_NAME 761PATH_SEPARATOR 762SHELL 763am__quote' 764ac_subst_files='' 765ac_user_opts=' 766enable_option_checking 767enable_silent_rules 768enable_dependency_tracking 769enable_shared 770enable_static 771with_pic 772enable_fast_install 773with_aix_soname 774with_gnu_ld 775with_sysroot 776enable_libtool_lock 777enable_doxygen_doc 778with_html_docdir 779' 780 ac_precious_vars='build_alias 781host_alias 782target_alias 783CC 784CFLAGS 785LDFLAGS 786LIBS 787CPPFLAGS 788LT_SYS_LIBRARY_PATH 789CPP' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828runstatedir='${localstatedir}/run' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 # Accept the important Cygnus configure options, so we can diagnose typos. 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: $ac_useropt" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1082 | --runstate | --runstat | --runsta | --runst | --runs \ 1083 | --run | --ru | --r) 1084 ac_prev=runstatedir ;; 1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1087 | --run=* | --ru=* | --r=*) 1088 runstatedir=$ac_optarg ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: $ac_useropt" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1186Try \`$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208done 1209 1210if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213fi 1214 1215if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221fi 1222 1223# Check all directory arguments for consistency. 1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir runstatedir 1228do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242done 1243 1244# There might be people who depend on the old broken behavior: `$host' 1245# used to hold the argument of --host etc. 1246# FIXME: To remove some day. 1247build=$build_alias 1248host=$host_alias 1249target=$target_alias 1250 1251# FIXME: To remove some day. 1252if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 elif test "x$build_alias" != "x$host_alias"; then 1256 cross_compiling=yes 1257 fi 1258fi 1259 1260ac_tool_prefix= 1261test -n "$host_alias" && ac_tool_prefix=$host_alias- 1262 1263test "$silent" = yes && exec 6>/dev/null 1264 1265 1266ac_pwd=`pwd` && test -n "$ac_pwd" && 1267ac_ls_di=`ls -di .` && 1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1269 as_fn_error $? "working directory cannot be determined" 1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1271 as_fn_error $? "pwd does not report name of working directory" 1272 1273 1274# Find the source files, if location was not specified. 1275if test -z "$srcdir"; then 1276 ac_srcdir_defaulted=yes 1277 # Try the directory containing this script, then the parent directory. 1278 ac_confdir=`$as_dirname -- "$as_myself" || 1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1280 X"$as_myself" : 'X\(//\)[^/]' \| \ 1281 X"$as_myself" : 'X\(//\)$' \| \ 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1283$as_echo X"$as_myself" | 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)[^/].*/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\).*/{ 1297 s//\1/ 1298 q 1299 } 1300 s/.*/./; q'` 1301 srcdir=$ac_confdir 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 srcdir=.. 1304 fi 1305else 1306 ac_srcdir_defaulted=no 1307fi 1308if test ! -r "$srcdir/$ac_unique_file"; then 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1311fi 1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1313ac_abs_confdir=`( 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1315 pwd)` 1316# When building in place, set srcdir=. 1317if test "$ac_abs_confdir" = "$ac_pwd"; then 1318 srcdir=. 1319fi 1320# Remove unnecessary trailing slashes from srcdir. 1321# Double slashes in file names in object file debugging info 1322# mess up M-x gdb in Emacs. 1323case $srcdir in 1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1325esac 1326for ac_var in $ac_precious_vars; do 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_env_${ac_var}_value=\$${ac_var} 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1331done 1332 1333# 1334# Report the --help message. 1335# 1336if test "$ac_init_help" = "long"; then 1337 # Omit some internal or obsolete options to make the list less imposing. 1338 # This message is too long to be a string in the A/UX 3.1 sh. 1339 cat <<_ACEOF 1340\`configure' configures libdatrie 0.2.13 to adapt to many kinds of systems. 1341 1342Usage: $0 [OPTION]... [VAR=VALUE]... 1343 1344To assign environment variables (e.g., CC, CFLAGS...), specify them as 1345VAR=VALUE. See below for descriptions of some of the useful variables. 1346 1347Defaults for the options are specified in brackets. 1348 1349Configuration: 1350 -h, --help display this help and exit 1351 --help=short display options specific to this package 1352 --help=recursive display the short help of all the included packages 1353 -V, --version display version information and exit 1354 -q, --quiet, --silent do not print \`checking ...' messages 1355 --cache-file=FILE cache test results in FILE [disabled] 1356 -C, --config-cache alias for \`--cache-file=config.cache' 1357 -n, --no-create do not create output files 1358 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1359 1360Installation directories: 1361 --prefix=PREFIX install architecture-independent files in PREFIX 1362 [$ac_default_prefix] 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1364 [PREFIX] 1365 1366By default, \`make install' will install all the files in 1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1368an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1369for instance \`--prefix=\$HOME'. 1370 1371For better control, use the options below. 1372 1373Fine tuning of the installation directories: 1374 --bindir=DIR user executables [EPREFIX/bin] 1375 --sbindir=DIR system admin executables [EPREFIX/sbin] 1376 --libexecdir=DIR program executables [EPREFIX/libexec] 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1381 --libdir=DIR object code libraries [EPREFIX/lib] 1382 --includedir=DIR C header files [PREFIX/include] 1383 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1386 --infodir=DIR info documentation [DATAROOTDIR/info] 1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1388 --mandir=DIR man documentation [DATAROOTDIR/man] 1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libdatrie] 1390 --htmldir=DIR html documentation [DOCDIR] 1391 --dvidir=DIR dvi documentation [DOCDIR] 1392 --pdfdir=DIR pdf documentation [DOCDIR] 1393 --psdir=DIR ps documentation [DOCDIR] 1394_ACEOF 1395 1396 cat <<\_ACEOF 1397 1398Program names: 1399 --program-prefix=PREFIX prepend PREFIX to installed program names 1400 --program-suffix=SUFFIX append SUFFIX to installed program names 1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1402 1403System types: 1404 --build=BUILD configure for building on BUILD [guessed] 1405 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1406_ACEOF 1407fi 1408 1409if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of libdatrie 0.2.13:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-silent-rules less verbose build output (undo: "make V=1") 1420 --disable-silent-rules verbose build output (undo: "make V=0") 1421 --enable-dependency-tracking 1422 do not reject slow dependency extractors 1423 --disable-dependency-tracking 1424 speeds up one-time build 1425 --enable-shared[=PKGS] build shared libraries [default=yes] 1426 --enable-static[=PKGS] build static libraries [default=yes] 1427 --enable-fast-install[=PKGS] 1428 optimize for fast installation [default=yes] 1429 --disable-libtool-lock avoid locking (might break parallel builds) 1430 --disable-doxygen-doc disable document generation with doxygen 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1436 both] 1437 --with-aix-soname=aix|svr4|both 1438 shared library versioning (aka "SONAME") variant to 1439 provide on AIX, [default=aix]. 1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1441 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1442 compiler's sysroot if not specified). 1443 --with-html-docdir=DIR where to install the doxyten-generated HTML doc 1444 [PREFIX/share/doc/datrie/html] 1445 1446Some influential environment variables: 1447 CC C compiler command 1448 CFLAGS C compiler flags 1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1450 nonstandard directory <lib dir> 1451 LIBS libraries to pass to the linker, e.g. -l<library> 1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1453 you have headers in a nonstandard directory <include dir> 1454 LT_SYS_LIBRARY_PATH 1455 User-defined run-time library search path. 1456 CPP C preprocessor 1457 1458Use these variables to override the choices made by `configure' or to help 1459it to find libraries and programs with nonstandard names/locations. 1460 1461Report bugs to <https://github.com/tlwg/libdatrie/issues>. 1462_ACEOF 1463ac_status=$? 1464fi 1465 1466if test "$ac_init_help" = "recursive"; then 1467 # If there are subdirs, report their specific --help. 1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1469 test -d "$ac_dir" || 1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1471 continue 1472 ac_builddir=. 1473 1474case "$ac_dir" in 1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476*) 1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1478 # A ".." for each directory in $ac_dir_suffix. 1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1480 case $ac_top_builddir_sub in 1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1483 esac ;; 1484esac 1485ac_abs_top_builddir=$ac_pwd 1486ac_abs_builddir=$ac_pwd$ac_dir_suffix 1487# for backward compatibility: 1488ac_top_builddir=$ac_top_build_prefix 1489 1490case $srcdir in 1491 .) # We are building in place. 1492 ac_srcdir=. 1493 ac_top_srcdir=$ac_top_builddir_sub 1494 ac_abs_top_srcdir=$ac_pwd ;; 1495 [\\/]* | ?:[\\/]* ) # Absolute name. 1496 ac_srcdir=$srcdir$ac_dir_suffix; 1497 ac_top_srcdir=$srcdir 1498 ac_abs_top_srcdir=$srcdir ;; 1499 *) # Relative name. 1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1501 ac_top_srcdir=$ac_top_build_prefix$srcdir 1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1503esac 1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1505 1506 cd "$ac_dir" || { ac_status=$?; continue; } 1507 # Check for guested configure. 1508 if test -f "$ac_srcdir/configure.gnu"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1511 elif test -f "$ac_srcdir/configure"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure" --help=recursive 1514 else 1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1516 fi || ac_status=$? 1517 cd "$ac_pwd" || { ac_status=$?; break; } 1518 done 1519fi 1520 1521test -n "$ac_init_help" && exit $ac_status 1522if $ac_init_version; then 1523 cat <<\_ACEOF 1524libdatrie configure 0.2.13 1525generated by GNU Autoconf 2.69 1526 1527Copyright (C) 2012 Free Software Foundation, Inc. 1528This configure script is free software; the Free Software Foundation 1529gives unlimited permission to copy, distribute and modify it. 1530_ACEOF 1531 exit 1532fi 1533 1534## ------------------------ ## 1535## Autoconf initialization. ## 1536## ------------------------ ## 1537 1538# ac_fn_c_try_compile LINENO 1539# -------------------------- 1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_c_try_compile () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext 1545 if { { ac_try="$ac_compile" 1546case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549esac 1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551$as_echo "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_c_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext; then : 1564 ac_retval=0 1565else 1566 $as_echo "$as_me: failed program was:" >&5 1567sed 's/^/| /' conftest.$ac_ext >&5 1568 1569 ac_retval=1 1570fi 1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1572 as_fn_set_status $ac_retval 1573 1574} # ac_fn_c_try_compile 1575 1576# ac_fn_c_try_link LINENO 1577# ----------------------- 1578# Try to link conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_link () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 rm -f conftest.$ac_objext conftest$ac_exeext 1583 if { { ac_try="$ac_link" 1584case "(($ac_try" in 1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586 *) ac_try_echo=$ac_try;; 1587esac 1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589$as_echo "$ac_try_echo"; } >&5 1590 (eval "$ac_link") 2>conftest.err 1591 ac_status=$? 1592 if test -s conftest.err; then 1593 grep -v '^ *+' conftest.err >conftest.er1 1594 cat conftest.er1 >&5 1595 mv -f conftest.er1 conftest.err 1596 fi 1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598 test $ac_status = 0; } && { 1599 test -z "$ac_c_werror_flag" || 1600 test ! -s conftest.err 1601 } && test -s conftest$ac_exeext && { 1602 test "$cross_compiling" = yes || 1603 test -x conftest$ac_exeext 1604 }; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1614 # interfere with the next link command; also delete a directory that is 1615 # left behind by Apple's compiler. We do this before executing the actions. 1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620} # ac_fn_c_try_link 1621 1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1623# ------------------------------------------------------- 1624# Tests whether HEADER exists and can be compiled using the include files in 1625# INCLUDES, setting the cache variable VAR accordingly. 1626ac_fn_c_check_header_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630$as_echo_n "checking for $2... " >&6; } 1631if eval \${$3+:} false; then : 1632 $as_echo_n "(cached) " >&6 1633else 1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636$4 1637#include <$2> 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO"; then : 1640 eval "$3=yes" 1641else 1642 eval "$3=no" 1643fi 1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1645fi 1646eval ac_res=\$$3 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1648$as_echo "$ac_res" >&6; } 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 1651} # ac_fn_c_check_header_compile 1652 1653# ac_fn_c_try_cpp LINENO 1654# ---------------------- 1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_cpp () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 if { { ac_try="$ac_cpp conftest.$ac_ext" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } > conftest.i && { 1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=1 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_cpp 1689 1690# ac_fn_c_try_run LINENO 1691# ---------------------- 1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1693# that executables *can* be run. 1694ac_fn_c_try_run () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 if { { ac_try="$ac_link" 1698case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_link") 2>&5 1705 ac_status=$? 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1708 { { case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_try") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; }; }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: program exited with status $ac_status" >&5 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=$ac_status 1725fi 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_run 1731 1732# ac_fn_c_check_func LINENO FUNC VAR 1733# ---------------------------------- 1734# Tests whether FUNC exists, setting the cache variable VAR accordingly 1735ac_fn_c_check_func () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739$as_echo_n "checking for $2... " >&6; } 1740if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1747#define $2 innocuous_$2 1748 1749/* System header to define __stub macros and hopefully few prototypes, 1750 which can conflict with char $2 (); below. 1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1752 <limits.h> exists even on freestanding compilers. */ 1753 1754#ifdef __STDC__ 1755# include <limits.h> 1756#else 1757# include <assert.h> 1758#endif 1759 1760#undef $2 1761 1762/* Override any GCC internal prototype to avoid an error. 1763 Use char because int might match the return type of a GCC 1764 builtin and then its argument prototype would still apply. */ 1765#ifdef __cplusplus 1766extern "C" 1767#endif 1768char $2 (); 1769/* The GNU C library defines this for functions which it implements 1770 to always fail with ENOSYS. Some functions are actually named 1771 something starting with __ and the normal name is an alias. */ 1772#if defined __stub_$2 || defined __stub___$2 1773choke me 1774#endif 1775 1776int 1777main () 1778{ 1779return $2 (); 1780 ; 1781 return 0; 1782} 1783_ACEOF 1784if ac_fn_c_try_link "$LINENO"; then : 1785 eval "$3=yes" 1786else 1787 eval "$3=no" 1788fi 1789rm -f core conftest.err conftest.$ac_objext \ 1790 conftest$ac_exeext conftest.$ac_ext 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 1797} # ac_fn_c_check_func 1798 1799# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1800# ------------------------------------------------------- 1801# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1802# the include files in INCLUDES and setting the cache variable VAR 1803# accordingly. 1804ac_fn_c_check_header_mongrel () 1805{ 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 if eval \${$3+:} false; then : 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1809$as_echo_n "checking for $2... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812fi 1813eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815$as_echo "$ac_res" >&6; } 1816else 1817 # Is the header compilable? 1818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1819$as_echo_n "checking $2 usability... " >&6; } 1820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1821/* end confdefs.h. */ 1822$4 1823#include <$2> 1824_ACEOF 1825if ac_fn_c_try_compile "$LINENO"; then : 1826 ac_header_compiler=yes 1827else 1828 ac_header_compiler=no 1829fi 1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1832$as_echo "$ac_header_compiler" >&6; } 1833 1834# Is the header present? 1835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1836$as_echo_n "checking $2 presence... " >&6; } 1837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1838/* end confdefs.h. */ 1839#include <$2> 1840_ACEOF 1841if ac_fn_c_try_cpp "$LINENO"; then : 1842 ac_header_preproc=yes 1843else 1844 ac_header_preproc=no 1845fi 1846rm -f conftest.err conftest.i conftest.$ac_ext 1847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1848$as_echo "$ac_header_preproc" >&6; } 1849 1850# So? What about this header? 1851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1852 yes:no: ) 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1854$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1856$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1857 ;; 1858 no:yes:* ) 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1860$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1862$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1864$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1866$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1869( $as_echo "## ------------------------------------------------------- ## 1870## Report this to https://github.com/tlwg/libdatrie/issues ## 1871## ------------------------------------------------------- ##" 1872 ) | sed "s/^/$as_me: WARNING: /" >&2 1873 ;; 1874esac 1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1876$as_echo_n "checking for $2... " >&6; } 1877if eval \${$3+:} false; then : 1878 $as_echo_n "(cached) " >&6 1879else 1880 eval "$3=\$ac_header_compiler" 1881fi 1882eval ac_res=\$$3 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1884$as_echo "$ac_res" >&6; } 1885fi 1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1887 1888} # ac_fn_c_check_header_mongrel 1889 1890# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1891# ------------------------------------------- 1892# Tests whether TYPE exists after having included INCLUDES, setting cache 1893# variable VAR accordingly. 1894ac_fn_c_check_type () 1895{ 1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1898$as_echo_n "checking for $2... " >&6; } 1899if eval \${$3+:} false; then : 1900 $as_echo_n "(cached) " >&6 1901else 1902 eval "$3=no" 1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904/* end confdefs.h. */ 1905$4 1906int 1907main () 1908{ 1909if (sizeof ($2)) 1910 return 0; 1911 ; 1912 return 0; 1913} 1914_ACEOF 1915if ac_fn_c_try_compile "$LINENO"; then : 1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1917/* end confdefs.h. */ 1918$4 1919int 1920main () 1921{ 1922if (sizeof (($2))) 1923 return 0; 1924 ; 1925 return 0; 1926} 1927_ACEOF 1928if ac_fn_c_try_compile "$LINENO"; then : 1929 1930else 1931 eval "$3=yes" 1932fi 1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1934fi 1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1936fi 1937eval ac_res=\$$3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1939$as_echo "$ac_res" >&6; } 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 1942} # ac_fn_c_check_type 1943cat >config.log <<_ACEOF 1944This file contains any messages produced by compilers while 1945running configure, to aid debugging if configure makes a mistake. 1946 1947It was created by libdatrie $as_me 0.2.13, which was 1948generated by GNU Autoconf 2.69. Invocation command line was 1949 1950 $ $0 $@ 1951 1952_ACEOF 1953exec 5>>config.log 1954{ 1955cat <<_ASUNAME 1956## --------- ## 1957## Platform. ## 1958## --------- ## 1959 1960hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1961uname -m = `(uname -m) 2>/dev/null || echo unknown` 1962uname -r = `(uname -r) 2>/dev/null || echo unknown` 1963uname -s = `(uname -s) 2>/dev/null || echo unknown` 1964uname -v = `(uname -v) 2>/dev/null || echo unknown` 1965 1966/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1967/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1968 1969/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1970/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1971/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1972/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1973/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1974/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1975/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1976 1977_ASUNAME 1978 1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1980for as_dir in $PATH 1981do 1982 IFS=$as_save_IFS 1983 test -z "$as_dir" && as_dir=. 1984 $as_echo "PATH: $as_dir" 1985 done 1986IFS=$as_save_IFS 1987 1988} >&5 1989 1990cat >&5 <<_ACEOF 1991 1992 1993## ----------- ## 1994## Core tests. ## 1995## ----------- ## 1996 1997_ACEOF 1998 1999 2000# Keep a trace of the command line. 2001# Strip out --no-create and --no-recursion so they do not pile up. 2002# Strip out --silent because we don't want to record it for future runs. 2003# Also quote any args containing shell meta-characters. 2004# Make two passes to allow for proper duplicate-argument suppression. 2005ac_configure_args= 2006ac_configure_args0= 2007ac_configure_args1= 2008ac_must_keep_next=false 2009for ac_pass in 1 2 2010do 2011 for ac_arg 2012 do 2013 case $ac_arg in 2014 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2016 | -silent | --silent | --silen | --sile | --sil) 2017 continue ;; 2018 *\'*) 2019 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2020 esac 2021 case $ac_pass in 2022 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2023 2) 2024 as_fn_append ac_configure_args1 " '$ac_arg'" 2025 if test $ac_must_keep_next = true; then 2026 ac_must_keep_next=false # Got value, back to normal. 2027 else 2028 case $ac_arg in 2029 *=* | --config-cache | -C | -disable-* | --disable-* \ 2030 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2031 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2032 | -with-* | --with-* | -without-* | --without-* | --x) 2033 case "$ac_configure_args0 " in 2034 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2035 esac 2036 ;; 2037 -* ) ac_must_keep_next=true ;; 2038 esac 2039 fi 2040 as_fn_append ac_configure_args " '$ac_arg'" 2041 ;; 2042 esac 2043 done 2044done 2045{ ac_configure_args0=; unset ac_configure_args0;} 2046{ ac_configure_args1=; unset ac_configure_args1;} 2047 2048# When interrupted or exit'd, cleanup temporary files, and complete 2049# config.log. We remove comments because anyway the quotes in there 2050# would cause problems or look ugly. 2051# WARNING: Use '\'' to represent an apostrophe within the trap. 2052# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2053trap 'exit_status=$? 2054 # Save into config.log some information that might help in debugging. 2055 { 2056 echo 2057 2058 $as_echo "## ---------------- ## 2059## Cache variables. ## 2060## ---------------- ##" 2061 echo 2062 # The following way of writing the cache mishandles newlines in values, 2063( 2064 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2065 eval ac_val=\$$ac_var 2066 case $ac_val in #( 2067 *${as_nl}*) 2068 case $ac_var in #( 2069 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2070$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2071 esac 2072 case $ac_var in #( 2073 _ | IFS | as_nl) ;; #( 2074 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2075 *) { eval $ac_var=; unset $ac_var;} ;; 2076 esac ;; 2077 esac 2078 done 2079 (set) 2>&1 | 2080 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2081 *${as_nl}ac_space=\ *) 2082 sed -n \ 2083 "s/'\''/'\''\\\\'\'''\''/g; 2084 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2085 ;; #( 2086 *) 2087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2088 ;; 2089 esac | 2090 sort 2091) 2092 echo 2093 2094 $as_echo "## ----------------- ## 2095## Output variables. ## 2096## ----------------- ##" 2097 echo 2098 for ac_var in $ac_subst_vars 2099 do 2100 eval ac_val=\$$ac_var 2101 case $ac_val in 2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2103 esac 2104 $as_echo "$ac_var='\''$ac_val'\''" 2105 done | sort 2106 echo 2107 2108 if test -n "$ac_subst_files"; then 2109 $as_echo "## ------------------- ## 2110## File substitutions. ## 2111## ------------------- ##" 2112 echo 2113 for ac_var in $ac_subst_files 2114 do 2115 eval ac_val=\$$ac_var 2116 case $ac_val in 2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2118 esac 2119 $as_echo "$ac_var='\''$ac_val'\''" 2120 done | sort 2121 echo 2122 fi 2123 2124 if test -s confdefs.h; then 2125 $as_echo "## ----------- ## 2126## confdefs.h. ## 2127## ----------- ##" 2128 echo 2129 cat confdefs.h 2130 echo 2131 fi 2132 test "$ac_signal" != 0 && 2133 $as_echo "$as_me: caught signal $ac_signal" 2134 $as_echo "$as_me: exit $exit_status" 2135 } >&5 2136 rm -f core *.core core.conftest.* && 2137 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2138 exit $exit_status 2139' 0 2140for ac_signal in 1 2 13 15; do 2141 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2142done 2143ac_signal=0 2144 2145# confdefs.h avoids OS command line length limits that DEFS can exceed. 2146rm -f -r conftest* confdefs.h 2147 2148$as_echo "/* confdefs.h */" > confdefs.h 2149 2150# Predefined preprocessor variables. 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_NAME "$PACKAGE_NAME" 2154_ACEOF 2155 2156cat >>confdefs.h <<_ACEOF 2157#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2158_ACEOF 2159 2160cat >>confdefs.h <<_ACEOF 2161#define PACKAGE_VERSION "$PACKAGE_VERSION" 2162_ACEOF 2163 2164cat >>confdefs.h <<_ACEOF 2165#define PACKAGE_STRING "$PACKAGE_STRING" 2166_ACEOF 2167 2168cat >>confdefs.h <<_ACEOF 2169#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2170_ACEOF 2171 2172cat >>confdefs.h <<_ACEOF 2173#define PACKAGE_URL "$PACKAGE_URL" 2174_ACEOF 2175 2176 2177# Let the site file select an alternate cache file if it wants to. 2178# Prefer an explicitly selected file to automatically selected ones. 2179ac_site_file1=NONE 2180ac_site_file2=NONE 2181if test -n "$CONFIG_SITE"; then 2182 # We do not want a PATH search for config.site. 2183 case $CONFIG_SITE in #(( 2184 -*) ac_site_file1=./$CONFIG_SITE;; 2185 */*) ac_site_file1=$CONFIG_SITE;; 2186 *) ac_site_file1=./$CONFIG_SITE;; 2187 esac 2188elif test "x$prefix" != xNONE; then 2189 ac_site_file1=$prefix/share/config.site 2190 ac_site_file2=$prefix/etc/config.site 2191else 2192 ac_site_file1=$ac_default_prefix/share/config.site 2193 ac_site_file2=$ac_default_prefix/etc/config.site 2194fi 2195for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2196do 2197 test "x$ac_site_file" = xNONE && continue 2198 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2200$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2201 sed 's/^/| /' "$ac_site_file" >&5 2202 . "$ac_site_file" \ 2203 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2205as_fn_error $? "failed to load site script $ac_site_file 2206See \`config.log' for more details" "$LINENO" 5; } 2207 fi 2208done 2209 2210if test -r "$cache_file"; then 2211 # Some versions of bash will fail to source /dev/null (special files 2212 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2213 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2215$as_echo "$as_me: loading cache $cache_file" >&6;} 2216 case $cache_file in 2217 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2218 *) . "./$cache_file";; 2219 esac 2220 fi 2221else 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2223$as_echo "$as_me: creating cache $cache_file" >&6;} 2224 >$cache_file 2225fi 2226 2227# Check that the precious variables saved in the cache have kept the same 2228# value. 2229ac_cache_corrupted=false 2230for ac_var in $ac_precious_vars; do 2231 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2232 eval ac_new_set=\$ac_env_${ac_var}_set 2233 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2234 eval ac_new_val=\$ac_env_${ac_var}_value 2235 case $ac_old_set,$ac_new_set in 2236 set,) 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2238$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2239 ac_cache_corrupted=: ;; 2240 ,set) 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2242$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2243 ac_cache_corrupted=: ;; 2244 ,);; 2245 *) 2246 if test "x$ac_old_val" != "x$ac_new_val"; then 2247 # differences in whitespace do not lead to failure. 2248 ac_old_val_w=`echo x $ac_old_val` 2249 ac_new_val_w=`echo x $ac_new_val` 2250 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2252$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2253 ac_cache_corrupted=: 2254 else 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2256$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2257 eval $ac_var=\$ac_old_val 2258 fi 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2260$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2262$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2263 fi;; 2264 esac 2265 # Pass precious variables to config.status. 2266 if test "$ac_new_set" = set; then 2267 case $ac_new_val in 2268 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2269 *) ac_arg=$ac_var=$ac_new_val ;; 2270 esac 2271 case " $ac_configure_args " in 2272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2273 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2274 esac 2275 fi 2276done 2277if $ac_cache_corrupted; then 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2281$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2282 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2283fi 2284## -------------------- ## 2285## Main body of script. ## 2286## -------------------- ## 2287 2288ac_ext=c 2289ac_cpp='$CPP $CPPFLAGS' 2290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2292ac_compiler_gnu=$ac_cv_c_compiler_gnu 2293 2294 2295 2296ac_config_headers="$ac_config_headers config.h" 2297 2298ac_aux_dir= 2299for ac_dir in build-aux "$srcdir"/build-aux; do 2300 if test -f "$ac_dir/install-sh"; then 2301 ac_aux_dir=$ac_dir 2302 ac_install_sh="$ac_aux_dir/install-sh -c" 2303 break 2304 elif test -f "$ac_dir/install.sh"; then 2305 ac_aux_dir=$ac_dir 2306 ac_install_sh="$ac_aux_dir/install.sh -c" 2307 break 2308 elif test -f "$ac_dir/shtool"; then 2309 ac_aux_dir=$ac_dir 2310 ac_install_sh="$ac_aux_dir/shtool install -c" 2311 break 2312 fi 2313done 2314if test -z "$ac_aux_dir"; then 2315 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2316fi 2317 2318# These three variables are undocumented and unsupported, 2319# and are intended to be withdrawn in a future Autoconf release. 2320# They can cause serious problems if a builder's source tree is in a directory 2321# whose full name contains unusual characters. 2322ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2323ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2324ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2325 2326 2327 2328 2329am__api_version='1.16' 2330 2331# Find a good install program. We prefer a C program (faster), 2332# so one script is as good as another. But avoid the broken or 2333# incompatible versions: 2334# SysV /etc/install, /usr/sbin/install 2335# SunOS /usr/etc/install 2336# IRIX /sbin/install 2337# AIX /bin/install 2338# AmigaOS /C/install, which installs bootblocks on floppy discs 2339# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2340# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2341# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2342# OS/2's system install, which has a completely different semantic 2343# ./install, which can be erroneously created by make from ./install.sh. 2344# Reject install programs that cannot install multiple files. 2345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2346$as_echo_n "checking for a BSD-compatible install... " >&6; } 2347if test -z "$INSTALL"; then 2348if ${ac_cv_path_install+:} false; then : 2349 $as_echo_n "(cached) " >&6 2350else 2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 # Account for people who put trailing slashes in PATH elements. 2357case $as_dir/ in #(( 2358 ./ | .// | /[cC]/* | \ 2359 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2360 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2361 /usr/ucb/* ) ;; 2362 *) 2363 # OSF1 and SCO ODT 3.0 have their own names for install. 2364 # Don't use installbsd from OSF since it installs stuff as root 2365 # by default. 2366 for ac_prog in ginstall scoinst install; do 2367 for ac_exec_ext in '' $ac_executable_extensions; do 2368 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2369 if test $ac_prog = install && 2370 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2371 # AIX install. It has an incompatible calling convention. 2372 : 2373 elif test $ac_prog = install && 2374 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2375 # program-specific install script used by HP pwplus--don't use. 2376 : 2377 else 2378 rm -rf conftest.one conftest.two conftest.dir 2379 echo one > conftest.one 2380 echo two > conftest.two 2381 mkdir conftest.dir 2382 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2383 test -s conftest.one && test -s conftest.two && 2384 test -s conftest.dir/conftest.one && 2385 test -s conftest.dir/conftest.two 2386 then 2387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2388 break 3 2389 fi 2390 fi 2391 fi 2392 done 2393 done 2394 ;; 2395esac 2396 2397 done 2398IFS=$as_save_IFS 2399 2400rm -rf conftest.one conftest.two conftest.dir 2401 2402fi 2403 if test "${ac_cv_path_install+set}" = set; then 2404 INSTALL=$ac_cv_path_install 2405 else 2406 # As a last resort, use the slow shell script. Don't cache a 2407 # value for INSTALL within a source directory, because that will 2408 # break other packages using the cache if that directory is 2409 # removed, or if the value is a relative name. 2410 INSTALL=$ac_install_sh 2411 fi 2412fi 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2414$as_echo "$INSTALL" >&6; } 2415 2416# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2417# It thinks the first close brace ends the variable substitution. 2418test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2419 2420test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2421 2422test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2423 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2425$as_echo_n "checking whether build environment is sane... " >&6; } 2426# Reject unsafe characters in $srcdir or the absolute working directory 2427# name. Accept space and tab only in the latter. 2428am_lf=' 2429' 2430case `pwd` in 2431 *[\\\"\#\$\&\'\`$am_lf]*) 2432 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2433esac 2434case $srcdir in 2435 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2436 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2437esac 2438 2439# Do 'set' in a subshell so we don't clobber the current shell's 2440# arguments. Must try -L first in case configure is actually a 2441# symlink; some systems play weird games with the mod time of symlinks 2442# (eg FreeBSD returns the mod time of the symlink's containing 2443# directory). 2444if ( 2445 am_has_slept=no 2446 for am_try in 1 2; do 2447 echo "timestamp, slept: $am_has_slept" > conftest.file 2448 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2449 if test "$*" = "X"; then 2450 # -L didn't work. 2451 set X `ls -t "$srcdir/configure" conftest.file` 2452 fi 2453 if test "$*" != "X $srcdir/configure conftest.file" \ 2454 && test "$*" != "X conftest.file $srcdir/configure"; then 2455 2456 # If neither matched, then we have a broken ls. This can happen 2457 # if, for instance, CONFIG_SHELL is bash and it inherits a 2458 # broken ls alias from the environment. This has actually 2459 # happened. Such a system could not be considered "sane". 2460 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2461 alias in your environment" "$LINENO" 5 2462 fi 2463 if test "$2" = conftest.file || test $am_try -eq 2; then 2464 break 2465 fi 2466 # Just in case. 2467 sleep 1 2468 am_has_slept=yes 2469 done 2470 test "$2" = conftest.file 2471 ) 2472then 2473 # Ok. 2474 : 2475else 2476 as_fn_error $? "newly created file is older than distributed files! 2477Check your system clock" "$LINENO" 5 2478fi 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2480$as_echo "yes" >&6; } 2481# If we didn't sleep, we still need to ensure time stamps of config.status and 2482# generated files are strictly newer. 2483am_sleep_pid= 2484if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2485 ( sleep 1 ) & 2486 am_sleep_pid=$! 2487fi 2488 2489rm -f conftest.file 2490 2491test "$program_prefix" != NONE && 2492 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2493# Use a double $ so make ignores it. 2494test "$program_suffix" != NONE && 2495 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2496# Double any \ or $. 2497# By default was `s,x,x', remove it if useless. 2498ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2499program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2500 2501# Expand $ac_aux_dir to an absolute path. 2502am_aux_dir=`cd "$ac_aux_dir" && pwd` 2503 2504if test x"${MISSING+set}" != xset; then 2505 MISSING="\${SHELL} '$am_aux_dir/missing'" 2506fi 2507# Use eval to expand $SHELL 2508if eval "$MISSING --is-lightweight"; then 2509 am_missing_run="$MISSING " 2510else 2511 am_missing_run= 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2513$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2514fi 2515 2516if test x"${install_sh+set}" != xset; then 2517 case $am_aux_dir in 2518 *\ * | *\ *) 2519 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2520 *) 2521 install_sh="\${SHELL} $am_aux_dir/install-sh" 2522 esac 2523fi 2524 2525# Installed binaries are usually stripped using 'strip' when the user 2526# run "make install-strip". However 'strip' might not be the right 2527# tool to use in cross-compilation environments, therefore Automake 2528# will honor the 'STRIP' environment variable to overrule this program. 2529if test "$cross_compiling" != no; then 2530 if test -n "$ac_tool_prefix"; then 2531 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2532set dummy ${ac_tool_prefix}strip; ac_word=$2 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2534$as_echo_n "checking for $ac_word... " >&6; } 2535if ${ac_cv_prog_STRIP+:} false; then : 2536 $as_echo_n "(cached) " >&6 2537else 2538 if test -n "$STRIP"; then 2539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2540else 2541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2542for as_dir in $PATH 2543do 2544 IFS=$as_save_IFS 2545 test -z "$as_dir" && as_dir=. 2546 for ac_exec_ext in '' $ac_executable_extensions; do 2547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2548 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2550 break 2 2551 fi 2552done 2553 done 2554IFS=$as_save_IFS 2555 2556fi 2557fi 2558STRIP=$ac_cv_prog_STRIP 2559if test -n "$STRIP"; then 2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2561$as_echo "$STRIP" >&6; } 2562else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2564$as_echo "no" >&6; } 2565fi 2566 2567 2568fi 2569if test -z "$ac_cv_prog_STRIP"; then 2570 ac_ct_STRIP=$STRIP 2571 # Extract the first word of "strip", so it can be a program name with args. 2572set dummy strip; ac_word=$2 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2574$as_echo_n "checking for $ac_word... " >&6; } 2575if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2576 $as_echo_n "(cached) " >&6 2577else 2578 if test -n "$ac_ct_STRIP"; then 2579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2580else 2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2582for as_dir in $PATH 2583do 2584 IFS=$as_save_IFS 2585 test -z "$as_dir" && as_dir=. 2586 for ac_exec_ext in '' $ac_executable_extensions; do 2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2588 ac_cv_prog_ac_ct_STRIP="strip" 2589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2590 break 2 2591 fi 2592done 2593 done 2594IFS=$as_save_IFS 2595 2596fi 2597fi 2598ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2599if test -n "$ac_ct_STRIP"; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2601$as_echo "$ac_ct_STRIP" >&6; } 2602else 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2604$as_echo "no" >&6; } 2605fi 2606 2607 if test "x$ac_ct_STRIP" = x; then 2608 STRIP=":" 2609 else 2610 case $cross_compiling:$ac_tool_warned in 2611yes:) 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2614ac_tool_warned=yes ;; 2615esac 2616 STRIP=$ac_ct_STRIP 2617 fi 2618else 2619 STRIP="$ac_cv_prog_STRIP" 2620fi 2621 2622fi 2623INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2624 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2626$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2627if test -z "$MKDIR_P"; then 2628 if ${ac_cv_path_mkdir+:} false; then : 2629 $as_echo_n "(cached) " >&6 2630else 2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2632for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2633do 2634 IFS=$as_save_IFS 2635 test -z "$as_dir" && as_dir=. 2636 for ac_prog in mkdir gmkdir; do 2637 for ac_exec_ext in '' $ac_executable_extensions; do 2638 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2640 'mkdir (GNU coreutils) '* | \ 2641 'mkdir (coreutils) '* | \ 2642 'mkdir (fileutils) '4.1*) 2643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2644 break 3;; 2645 esac 2646 done 2647 done 2648 done 2649IFS=$as_save_IFS 2650 2651fi 2652 2653 test -d ./--version && rmdir ./--version 2654 if test "${ac_cv_path_mkdir+set}" = set; then 2655 MKDIR_P="$ac_cv_path_mkdir -p" 2656 else 2657 # As a last resort, use the slow shell script. Don't cache a 2658 # value for MKDIR_P within a source directory, because that will 2659 # break other packages using the cache if that directory is 2660 # removed, or if the value is a relative name. 2661 MKDIR_P="$ac_install_sh -d" 2662 fi 2663fi 2664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2665$as_echo "$MKDIR_P" >&6; } 2666 2667for ac_prog in gawk mawk nawk awk 2668do 2669 # Extract the first word of "$ac_prog", so it can be a program name with args. 2670set dummy $ac_prog; ac_word=$2 2671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2672$as_echo_n "checking for $ac_word... " >&6; } 2673if ${ac_cv_prog_AWK+:} false; then : 2674 $as_echo_n "(cached) " >&6 2675else 2676 if test -n "$AWK"; then 2677 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2678else 2679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2680for as_dir in $PATH 2681do 2682 IFS=$as_save_IFS 2683 test -z "$as_dir" && as_dir=. 2684 for ac_exec_ext in '' $ac_executable_extensions; do 2685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2686 ac_cv_prog_AWK="$ac_prog" 2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2688 break 2 2689 fi 2690done 2691 done 2692IFS=$as_save_IFS 2693 2694fi 2695fi 2696AWK=$ac_cv_prog_AWK 2697if test -n "$AWK"; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2699$as_echo "$AWK" >&6; } 2700else 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2702$as_echo "no" >&6; } 2703fi 2704 2705 2706 test -n "$AWK" && break 2707done 2708 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2710$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2711set x ${MAKE-make} 2712ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2713if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715else 2716 cat >conftest.make <<\_ACEOF 2717SHELL = /bin/sh 2718all: 2719 @echo '@@@%%%=$(MAKE)=@@@%%%' 2720_ACEOF 2721# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2722case `${MAKE-make} -f conftest.make 2>/dev/null` in 2723 *@@@%%%=?*=@@@%%%*) 2724 eval ac_cv_prog_make_${ac_make}_set=yes;; 2725 *) 2726 eval ac_cv_prog_make_${ac_make}_set=no;; 2727esac 2728rm -f conftest.make 2729fi 2730if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2732$as_echo "yes" >&6; } 2733 SET_MAKE= 2734else 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2736$as_echo "no" >&6; } 2737 SET_MAKE="MAKE=${MAKE-make}" 2738fi 2739 2740rm -rf .tst 2>/dev/null 2741mkdir .tst 2>/dev/null 2742if test -d .tst; then 2743 am__leading_dot=. 2744else 2745 am__leading_dot=_ 2746fi 2747rmdir .tst 2>/dev/null 2748 2749# Check whether --enable-silent-rules was given. 2750if test "${enable_silent_rules+set}" = set; then : 2751 enableval=$enable_silent_rules; 2752fi 2753 2754case $enable_silent_rules in # ((( 2755 yes) AM_DEFAULT_VERBOSITY=0;; 2756 no) AM_DEFAULT_VERBOSITY=1;; 2757 *) AM_DEFAULT_VERBOSITY=1;; 2758esac 2759am_make=${MAKE-make} 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2761$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2762if ${am_cv_make_support_nested_variables+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if $as_echo 'TRUE=$(BAR$(V)) 2766BAR0=false 2767BAR1=true 2768V=1 2769am__doit: 2770 @$(TRUE) 2771.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2772 am_cv_make_support_nested_variables=yes 2773else 2774 am_cv_make_support_nested_variables=no 2775fi 2776fi 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2778$as_echo "$am_cv_make_support_nested_variables" >&6; } 2779if test $am_cv_make_support_nested_variables = yes; then 2780 AM_V='$(V)' 2781 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2782else 2783 AM_V=$AM_DEFAULT_VERBOSITY 2784 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2785fi 2786AM_BACKSLASH='\' 2787 2788if test "`cd $srcdir && pwd`" != "`pwd`"; then 2789 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2790 # is not polluted with repeated "-I." 2791 am__isrc=' -I$(srcdir)' 2792 # test to see if srcdir already configured 2793 if test -f $srcdir/config.status; then 2794 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2795 fi 2796fi 2797 2798# test whether we have cygpath 2799if test -z "$CYGPATH_W"; then 2800 if (cygpath --version) >/dev/null 2>/dev/null; then 2801 CYGPATH_W='cygpath -w' 2802 else 2803 CYGPATH_W=echo 2804 fi 2805fi 2806 2807 2808# Define the identity of the package. 2809 PACKAGE='libdatrie' 2810 VERSION='0.2.13' 2811 2812 2813cat >>confdefs.h <<_ACEOF 2814#define PACKAGE "$PACKAGE" 2815_ACEOF 2816 2817 2818cat >>confdefs.h <<_ACEOF 2819#define VERSION "$VERSION" 2820_ACEOF 2821 2822# Some tools Automake needs. 2823 2824ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2825 2826 2827AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2828 2829 2830AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2831 2832 2833AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2834 2835 2836MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2837 2838# For better backward compatibility. To be removed once Automake 1.9.x 2839# dies out for good. For more background, see: 2840# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2841# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2842mkdir_p='$(MKDIR_P)' 2843 2844# We need awk for the "check" target (and possibly the TAP driver). The 2845# system "awk" is bad on some platforms. 2846# Always define AMTAR for backward compatibility. Yes, it's still used 2847# in the wild :-( We should find a proper way to deprecate it ... 2848AMTAR='$${TAR-tar}' 2849 2850 2851# We'll loop over all known methods to create a tar archive until one works. 2852_am_tools='gnutar pax cpio none' 2853 2854am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2855 2856 2857 2858 2859 2860 2861# POSIX will say in a future version that running "rm -f" with no argument 2862# is OK; and we want to be able to make that assumption in our Makefile 2863# recipes. So use an aggressive probe to check that the usage we want is 2864# actually supported "in the wild" to an acceptable degree. 2865# See automake bug#10828. 2866# To make any issue more visible, cause the running configure to be aborted 2867# by default if the 'rm' program in use doesn't match our expectations; the 2868# user can still override this though. 2869if rm -f && rm -fr && rm -rf; then : OK; else 2870 cat >&2 <<'END' 2871Oops! 2872 2873Your 'rm' program seems unable to run without file operands specified 2874on the command line, even when the '-f' option is present. This is contrary 2875to the behaviour of most rm programs out there, and not conforming with 2876the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2877 2878Please tell bug-automake@gnu.org about your system, including the value 2879of your $PATH and any error possibly output before this message. This 2880can help us improve future automake versions. 2881 2882END 2883 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2884 echo 'Configuration will proceed anyway, since you have set the' >&2 2885 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2886 echo >&2 2887 else 2888 cat >&2 <<'END' 2889Aborting the configuration process, to ensure you take notice of the issue. 2890 2891You can download and install GNU coreutils to get an 'rm' implementation 2892that behaves properly: <https://www.gnu.org/software/coreutils/>. 2893 2894If you want to complete the configuration process using your problematic 2895'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2896to "yes", and re-run configure. 2897 2898END 2899 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2900 fi 2901fi 2902 2903 2904# Library versioning 2905# Library code modified: REVISION++ 2906# Interfaces added: CURRENT++ REVISION=0 AGE++ 2907# Interfaces changed/removed: CURRENT++ REVISION=0 AGE=0 2908LT_CURRENT=5 2909LT_REVISION=0 2910LT_AGE=4 2911 2912 2913 2914 2915DOXYGEN_REQ_VER=1.8.8 2916 2917# Checks for programs. 2918ac_ext=c 2919ac_cpp='$CPP $CPPFLAGS' 2920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2922ac_compiler_gnu=$ac_cv_c_compiler_gnu 2923if test -n "$ac_tool_prefix"; then 2924 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2925set dummy ${ac_tool_prefix}gcc; ac_word=$2 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2927$as_echo_n "checking for $ac_word... " >&6; } 2928if ${ac_cv_prog_CC+:} false; then : 2929 $as_echo_n "(cached) " >&6 2930else 2931 if test -n "$CC"; then 2932 ac_cv_prog_CC="$CC" # Let the user override the test. 2933else 2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2935for as_dir in $PATH 2936do 2937 IFS=$as_save_IFS 2938 test -z "$as_dir" && as_dir=. 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951CC=$ac_cv_prog_CC 2952if test -n "$CC"; then 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2954$as_echo "$CC" >&6; } 2955else 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957$as_echo "no" >&6; } 2958fi 2959 2960 2961fi 2962if test -z "$ac_cv_prog_CC"; then 2963 ac_ct_CC=$CC 2964 # Extract the first word of "gcc", so it can be a program name with args. 2965set dummy gcc; ac_word=$2 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2967$as_echo_n "checking for $ac_word... " >&6; } 2968if ${ac_cv_prog_ac_ct_CC+:} false; then : 2969 $as_echo_n "(cached) " >&6 2970else 2971 if test -n "$ac_ct_CC"; then 2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2973else 2974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2975for as_dir in $PATH 2976do 2977 IFS=$as_save_IFS 2978 test -z "$as_dir" && as_dir=. 2979 for ac_exec_ext in '' $ac_executable_extensions; do 2980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2981 ac_cv_prog_ac_ct_CC="gcc" 2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2983 break 2 2984 fi 2985done 2986 done 2987IFS=$as_save_IFS 2988 2989fi 2990fi 2991ac_ct_CC=$ac_cv_prog_ac_ct_CC 2992if test -n "$ac_ct_CC"; then 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2994$as_echo "$ac_ct_CC" >&6; } 2995else 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2997$as_echo "no" >&6; } 2998fi 2999 3000 if test "x$ac_ct_CC" = x; then 3001 CC="" 3002 else 3003 case $cross_compiling:$ac_tool_warned in 3004yes:) 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3007ac_tool_warned=yes ;; 3008esac 3009 CC=$ac_ct_CC 3010 fi 3011else 3012 CC="$ac_cv_prog_CC" 3013fi 3014 3015if test -z "$CC"; then 3016 if test -n "$ac_tool_prefix"; then 3017 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3018set dummy ${ac_tool_prefix}cc; 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_CC+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if test -n "$CC"; then 3025 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc" 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 3044CC=$ac_cv_prog_CC 3045if test -n "$CC"; then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3047$as_echo "$CC" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 3054 fi 3055fi 3056if test -z "$CC"; then 3057 # Extract the first word of "cc", so it can be a program name with args. 3058set dummy cc; ac_word=$2 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3060$as_echo_n "checking for $ac_word... " >&6; } 3061if ${ac_cv_prog_CC+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 if test -n "$CC"; then 3065 ac_cv_prog_CC="$CC" # Let the user override the test. 3066else 3067 ac_prog_rejected=no 3068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069for as_dir in $PATH 3070do 3071 IFS=$as_save_IFS 3072 test -z "$as_dir" && as_dir=. 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3075 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3076 ac_prog_rejected=yes 3077 continue 3078 fi 3079 ac_cv_prog_CC="cc" 3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3081 break 2 3082 fi 3083done 3084 done 3085IFS=$as_save_IFS 3086 3087if test $ac_prog_rejected = yes; then 3088 # We found a bogon in the path, so make sure we never use it. 3089 set dummy $ac_cv_prog_CC 3090 shift 3091 if test $# != 0; then 3092 # We chose a different compiler from the bogus one. 3093 # However, it has the same basename, so the bogon will be chosen 3094 # first if we set CC to just the basename; use the full file name. 3095 shift 3096 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3097 fi 3098fi 3099fi 3100fi 3101CC=$ac_cv_prog_CC 3102if test -n "$CC"; then 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3104$as_echo "$CC" >&6; } 3105else 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3107$as_echo "no" >&6; } 3108fi 3109 3110 3111fi 3112if test -z "$CC"; then 3113 if test -n "$ac_tool_prefix"; then 3114 for ac_prog in cl.exe 3115 do 3116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3117set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3119$as_echo_n "checking for $ac_word... " >&6; } 3120if ${ac_cv_prog_CC+:} false; then : 3121 $as_echo_n "(cached) " >&6 3122else 3123 if test -n "$CC"; then 3124 ac_cv_prog_CC="$CC" # Let the user override the test. 3125else 3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH 3128do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138 done 3139IFS=$as_save_IFS 3140 3141fi 3142fi 3143CC=$ac_cv_prog_CC 3144if test -n "$CC"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3146$as_echo "$CC" >&6; } 3147else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153 test -n "$CC" && break 3154 done 3155fi 3156if test -z "$CC"; then 3157 ac_ct_CC=$CC 3158 for ac_prog in cl.exe 3159do 3160 # Extract the first word of "$ac_prog", so it can be a program name with args. 3161set dummy $ac_prog; ac_word=$2 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3163$as_echo_n "checking for $ac_word... " >&6; } 3164if ${ac_cv_prog_ac_ct_CC+:} false; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 if test -n "$ac_ct_CC"; then 3168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3177 ac_cv_prog_ac_ct_CC="$ac_prog" 3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3179 break 2 3180 fi 3181done 3182 done 3183IFS=$as_save_IFS 3184 3185fi 3186fi 3187ac_ct_CC=$ac_cv_prog_ac_ct_CC 3188if test -n "$ac_ct_CC"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3190$as_echo "$ac_ct_CC" >&6; } 3191else 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193$as_echo "no" >&6; } 3194fi 3195 3196 3197 test -n "$ac_ct_CC" && break 3198done 3199 3200 if test "x$ac_ct_CC" = x; then 3201 CC="" 3202 else 3203 case $cross_compiling:$ac_tool_warned in 3204yes:) 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3207ac_tool_warned=yes ;; 3208esac 3209 CC=$ac_ct_CC 3210 fi 3211fi 3212 3213fi 3214 3215 3216test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3218as_fn_error $? "no acceptable C compiler found in \$PATH 3219See \`config.log' for more details" "$LINENO" 5; } 3220 3221# Provide some information about the compiler. 3222$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3223set X $ac_compile 3224ac_compiler=$2 3225for ac_option in --version -v -V -qversion; do 3226 { { ac_try="$ac_compiler $ac_option >&5" 3227case "(($ac_try" in 3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3229 *) ac_try_echo=$ac_try;; 3230esac 3231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3232$as_echo "$ac_try_echo"; } >&5 3233 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3234 ac_status=$? 3235 if test -s conftest.err; then 3236 sed '10a\ 3237... rest of stderr output deleted ... 3238 10q' conftest.err >conftest.er1 3239 cat conftest.er1 >&5 3240 fi 3241 rm -f conftest.er1 conftest.err 3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3243 test $ac_status = 0; } 3244done 3245 3246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3247/* end confdefs.h. */ 3248 3249int 3250main () 3251{ 3252 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257ac_clean_files_save=$ac_clean_files 3258ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3259# Try to create an executable without -o first, disregard a.out. 3260# It will help us diagnose broken compilers, and finding out an intuition 3261# of exeext. 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3263$as_echo_n "checking whether the C compiler works... " >&6; } 3264ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3265 3266# The possible output files: 3267ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3268 3269ac_rmfiles= 3270for ac_file in $ac_files 3271do 3272 case $ac_file in 3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3274 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3275 esac 3276done 3277rm -f $ac_rmfiles 3278 3279if { { ac_try="$ac_link_default" 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_link_default") 2>&5 3287 ac_status=$? 3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3289 test $ac_status = 0; }; then : 3290 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3291# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3292# in a Makefile. We should not override ac_cv_exeext if it was cached, 3293# so that the user can short-circuit this test for compilers unknown to 3294# Autoconf. 3295for ac_file in $ac_files '' 3296do 3297 test -f "$ac_file" || continue 3298 case $ac_file in 3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3300 ;; 3301 [ab].out ) 3302 # We found the default executable, but exeext='' is most 3303 # certainly right. 3304 break;; 3305 *.* ) 3306 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3307 then :; else 3308 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3309 fi 3310 # We set ac_cv_exeext here because the later test for it is not 3311 # safe: cross compilers may not add the suffix if given an `-o' 3312 # argument, so we may need to know it at that point already. 3313 # Even if this section looks crufty: it has the advantage of 3314 # actually working. 3315 break;; 3316 * ) 3317 break;; 3318 esac 3319done 3320test "$ac_cv_exeext" = no && ac_cv_exeext= 3321 3322else 3323 ac_file='' 3324fi 3325if test -z "$ac_file"; then : 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3327$as_echo "no" >&6; } 3328$as_echo "$as_me: failed program was:" >&5 3329sed 's/^/| /' conftest.$ac_ext >&5 3330 3331{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3333as_fn_error 77 "C compiler cannot create executables 3334See \`config.log' for more details" "$LINENO" 5; } 3335else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3337$as_echo "yes" >&6; } 3338fi 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3340$as_echo_n "checking for C compiler default output file name... " >&6; } 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3342$as_echo "$ac_file" >&6; } 3343ac_exeext=$ac_cv_exeext 3344 3345rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3346ac_clean_files=$ac_clean_files_save 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3348$as_echo_n "checking for suffix of executables... " >&6; } 3349if { { ac_try="$ac_link" 3350case "(($ac_try" in 3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3352 *) ac_try_echo=$ac_try;; 3353esac 3354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3355$as_echo "$ac_try_echo"; } >&5 3356 (eval "$ac_link") 2>&5 3357 ac_status=$? 3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3359 test $ac_status = 0; }; then : 3360 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3361# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3362# work properly (i.e., refer to `conftest.exe'), while it won't with 3363# `rm'. 3364for ac_file in conftest.exe conftest conftest.*; do 3365 test -f "$ac_file" || continue 3366 case $ac_file in 3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3368 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3369 break;; 3370 * ) break;; 3371 esac 3372done 3373else 3374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3375$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3376as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3377See \`config.log' for more details" "$LINENO" 5; } 3378fi 3379rm -f conftest conftest$ac_cv_exeext 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3381$as_echo "$ac_cv_exeext" >&6; } 3382 3383rm -f conftest.$ac_ext 3384EXEEXT=$ac_cv_exeext 3385ac_exeext=$EXEEXT 3386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3387/* end confdefs.h. */ 3388#include <stdio.h> 3389int 3390main () 3391{ 3392FILE *f = fopen ("conftest.out", "w"); 3393 return ferror (f) || fclose (f) != 0; 3394 3395 ; 3396 return 0; 3397} 3398_ACEOF 3399ac_clean_files="$ac_clean_files conftest.out" 3400# Check that the compiler produces executables we can run. If not, either 3401# the compiler is broken, or we cross compile. 3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3403$as_echo_n "checking whether we are cross compiling... " >&6; } 3404if test "$cross_compiling" != yes; then 3405 { { ac_try="$ac_link" 3406case "(($ac_try" in 3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3408 *) ac_try_echo=$ac_try;; 3409esac 3410eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3411$as_echo "$ac_try_echo"; } >&5 3412 (eval "$ac_link") 2>&5 3413 ac_status=$? 3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3415 test $ac_status = 0; } 3416 if { ac_try='./conftest$ac_cv_exeext' 3417 { { case "(($ac_try" in 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3419 *) ac_try_echo=$ac_try;; 3420esac 3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3422$as_echo "$ac_try_echo"; } >&5 3423 (eval "$ac_try") 2>&5 3424 ac_status=$? 3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3426 test $ac_status = 0; }; }; then 3427 cross_compiling=no 3428 else 3429 if test "$cross_compiling" = maybe; then 3430 cross_compiling=yes 3431 else 3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3434as_fn_error $? "cannot run C compiled programs. 3435If you meant to cross compile, use \`--host'. 3436See \`config.log' for more details" "$LINENO" 5; } 3437 fi 3438 fi 3439fi 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3441$as_echo "$cross_compiling" >&6; } 3442 3443rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3444ac_clean_files=$ac_clean_files_save 3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3446$as_echo_n "checking for suffix of object files... " >&6; } 3447if ${ac_cv_objext+:} false; then : 3448 $as_echo_n "(cached) " >&6 3449else 3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3451/* end confdefs.h. */ 3452 3453int 3454main () 3455{ 3456 3457 ; 3458 return 0; 3459} 3460_ACEOF 3461rm -f conftest.o conftest.obj 3462if { { ac_try="$ac_compile" 3463case "(($ac_try" in 3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3465 *) ac_try_echo=$ac_try;; 3466esac 3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3468$as_echo "$ac_try_echo"; } >&5 3469 (eval "$ac_compile") 2>&5 3470 ac_status=$? 3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3472 test $ac_status = 0; }; then : 3473 for ac_file in conftest.o conftest.obj conftest.*; do 3474 test -f "$ac_file" || continue; 3475 case $ac_file in 3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3478 break;; 3479 esac 3480done 3481else 3482 $as_echo "$as_me: failed program was:" >&5 3483sed 's/^/| /' conftest.$ac_ext >&5 3484 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 compute suffix of object files: cannot compile 3488See \`config.log' for more details" "$LINENO" 5; } 3489fi 3490rm -f conftest.$ac_cv_objext conftest.$ac_ext 3491fi 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3493$as_echo "$ac_cv_objext" >&6; } 3494OBJEXT=$ac_cv_objext 3495ac_objext=$OBJEXT 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3497$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3498if ${ac_cv_c_compiler_gnu+:} false; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503 3504int 3505main () 3506{ 3507#ifndef __GNUC__ 3508 choke me 3509#endif 3510 3511 ; 3512 return 0; 3513} 3514_ACEOF 3515if ac_fn_c_try_compile "$LINENO"; then : 3516 ac_compiler_gnu=yes 3517else 3518 ac_compiler_gnu=no 3519fi 3520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3521ac_cv_c_compiler_gnu=$ac_compiler_gnu 3522 3523fi 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3525$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3526if test $ac_compiler_gnu = yes; then 3527 GCC=yes 3528else 3529 GCC= 3530fi 3531ac_test_CFLAGS=${CFLAGS+set} 3532ac_save_CFLAGS=$CFLAGS 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3534$as_echo_n "checking whether $CC accepts -g... " >&6; } 3535if ${ac_cv_prog_cc_g+:} false; then : 3536 $as_echo_n "(cached) " >&6 3537else 3538 ac_save_c_werror_flag=$ac_c_werror_flag 3539 ac_c_werror_flag=yes 3540 ac_cv_prog_cc_g=no 3541 CFLAGS="-g" 3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543/* end confdefs.h. */ 3544 3545int 3546main () 3547{ 3548 3549 ; 3550 return 0; 3551} 3552_ACEOF 3553if ac_fn_c_try_compile "$LINENO"; then : 3554 ac_cv_prog_cc_g=yes 3555else 3556 CFLAGS="" 3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558/* end confdefs.h. */ 3559 3560int 3561main () 3562{ 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568if ac_fn_c_try_compile "$LINENO"; then : 3569 3570else 3571 ac_c_werror_flag=$ac_save_c_werror_flag 3572 CFLAGS="-g" 3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574/* end confdefs.h. */ 3575 3576int 3577main () 3578{ 3579 3580 ; 3581 return 0; 3582} 3583_ACEOF 3584if ac_fn_c_try_compile "$LINENO"; then : 3585 ac_cv_prog_cc_g=yes 3586fi 3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3588fi 3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3590fi 3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3592 ac_c_werror_flag=$ac_save_c_werror_flag 3593fi 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3595$as_echo "$ac_cv_prog_cc_g" >&6; } 3596if test "$ac_test_CFLAGS" = set; then 3597 CFLAGS=$ac_save_CFLAGS 3598elif test $ac_cv_prog_cc_g = yes; then 3599 if test "$GCC" = yes; then 3600 CFLAGS="-g -O2" 3601 else 3602 CFLAGS="-g" 3603 fi 3604else 3605 if test "$GCC" = yes; then 3606 CFLAGS="-O2" 3607 else 3608 CFLAGS= 3609 fi 3610fi 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3612$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3613if ${ac_cv_prog_cc_c89+:} false; then : 3614 $as_echo_n "(cached) " >&6 3615else 3616 ac_cv_prog_cc_c89=no 3617ac_save_CC=$CC 3618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3619/* end confdefs.h. */ 3620#include <stdarg.h> 3621#include <stdio.h> 3622struct stat; 3623/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3624struct buf { int x; }; 3625FILE * (*rcsopen) (struct buf *, struct stat *, int); 3626static char *e (p, i) 3627 char **p; 3628 int i; 3629{ 3630 return p[i]; 3631} 3632static char *f (char * (*g) (char **, int), char **p, ...) 3633{ 3634 char *s; 3635 va_list v; 3636 va_start (v,p); 3637 s = g (p, va_arg (v,int)); 3638 va_end (v); 3639 return s; 3640} 3641 3642/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3643 function prototypes and stuff, but not '\xHH' hex character constants. 3644 These don't provoke an error unfortunately, instead are silently treated 3645 as 'x'. The following induces an error, until -std is added to get 3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3647 array size at least. It's necessary to write '\x00'==0 to get something 3648 that's true only with -std. */ 3649int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3650 3651/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3652 inside strings and character constants. */ 3653#define FOO(x) 'x' 3654int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3655 3656int test (int i, double x); 3657struct s1 {int (*f) (int a);}; 3658struct s2 {int (*f) (double a);}; 3659int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3660int argc; 3661char **argv; 3662int 3663main () 3664{ 3665return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3672do 3673 CC="$ac_save_CC $ac_arg" 3674 if ac_fn_c_try_compile "$LINENO"; then : 3675 ac_cv_prog_cc_c89=$ac_arg 3676fi 3677rm -f core conftest.err conftest.$ac_objext 3678 test "x$ac_cv_prog_cc_c89" != "xno" && break 3679done 3680rm -f conftest.$ac_ext 3681CC=$ac_save_CC 3682 3683fi 3684# AC_CACHE_VAL 3685case "x$ac_cv_prog_cc_c89" in 3686 x) 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3688$as_echo "none needed" >&6; } ;; 3689 xno) 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3691$as_echo "unsupported" >&6; } ;; 3692 *) 3693 CC="$CC $ac_cv_prog_cc_c89" 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3695$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3696esac 3697if test "x$ac_cv_prog_cc_c89" != xno; then : 3698 3699fi 3700 3701ac_ext=c 3702ac_cpp='$CPP $CPPFLAGS' 3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3705ac_compiler_gnu=$ac_cv_c_compiler_gnu 3706 3707ac_ext=c 3708ac_cpp='$CPP $CPPFLAGS' 3709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3711ac_compiler_gnu=$ac_cv_c_compiler_gnu 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3713$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3714if ${am_cv_prog_cc_c_o+:} false; then : 3715 $as_echo_n "(cached) " >&6 3716else 3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3718/* end confdefs.h. */ 3719 3720int 3721main () 3722{ 3723 3724 ; 3725 return 0; 3726} 3727_ACEOF 3728 # Make sure it works both with $CC and with simple cc. 3729 # Following AC_PROG_CC_C_O, we do the test twice because some 3730 # compilers refuse to overwrite an existing .o file with -o, 3731 # though they will create one. 3732 am_cv_prog_cc_c_o=yes 3733 for am_i in 1 2; do 3734 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3735 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3736 ac_status=$? 3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3738 (exit $ac_status); } \ 3739 && test -f conftest2.$ac_objext; then 3740 : OK 3741 else 3742 am_cv_prog_cc_c_o=no 3743 break 3744 fi 3745 done 3746 rm -f core conftest* 3747 unset am_i 3748fi 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3750$as_echo "$am_cv_prog_cc_c_o" >&6; } 3751if test "$am_cv_prog_cc_c_o" != yes; then 3752 # Losing compiler, so override with the script. 3753 # FIXME: It is wrong to rewrite CC. 3754 # But if we don't then we get into trouble of one sort or another. 3755 # A longer-term fix would be to have automake use am__CC in this case, 3756 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3757 CC="$am_aux_dir/compile $CC" 3758fi 3759ac_ext=c 3760ac_cpp='$CPP $CPPFLAGS' 3761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3763ac_compiler_gnu=$ac_cv_c_compiler_gnu 3764 3765DEPDIR="${am__leading_dot}deps" 3766 3767ac_config_commands="$ac_config_commands depfiles" 3768 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3770$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3771cat > confinc.mk << 'END' 3772am__doit: 3773 @echo this is the am__doit target >confinc.out 3774.PHONY: am__doit 3775END 3776am__include="#" 3777am__quote= 3778# BSD make does it like this. 3779echo '.include "confinc.mk" # ignored' > confmf.BSD 3780# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3781echo 'include confinc.mk # ignored' > confmf.GNU 3782_am_result=no 3783for s in GNU BSD; do 3784 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3785 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3786 ac_status=$? 3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3788 (exit $ac_status); } 3789 case $?:`cat confinc.out 2>/dev/null` in #( 3790 '0:this is the am__doit target') : 3791 case $s in #( 3792 BSD) : 3793 am__include='.include' am__quote='"' ;; #( 3794 *) : 3795 am__include='include' am__quote='' ;; 3796esac ;; #( 3797 *) : 3798 ;; 3799esac 3800 if test "$am__include" != "#"; then 3801 _am_result="yes ($s style)" 3802 break 3803 fi 3804done 3805rm -f confinc.* confmf.* 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3807$as_echo "${_am_result}" >&6; } 3808 3809# Check whether --enable-dependency-tracking was given. 3810if test "${enable_dependency_tracking+set}" = set; then : 3811 enableval=$enable_dependency_tracking; 3812fi 3813 3814if test "x$enable_dependency_tracking" != xno; then 3815 am_depcomp="$ac_aux_dir/depcomp" 3816 AMDEPBACKSLASH='\' 3817 am__nodep='_no' 3818fi 3819 if test "x$enable_dependency_tracking" != xno; then 3820 AMDEP_TRUE= 3821 AMDEP_FALSE='#' 3822else 3823 AMDEP_TRUE='#' 3824 AMDEP_FALSE= 3825fi 3826 3827 3828 3829depcc="$CC" am_compiler_list= 3830 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3832$as_echo_n "checking dependency style of $depcc... " >&6; } 3833if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3837 # We make a subdir and do the tests there. Otherwise we can end up 3838 # making bogus files that we don't know about and never remove. For 3839 # instance it was reported that on HP-UX the gcc test will end up 3840 # making a dummy file named 'D' -- because '-MD' means "put the output 3841 # in D". 3842 rm -rf conftest.dir 3843 mkdir conftest.dir 3844 # Copy depcomp to subdir because otherwise we won't find it if we're 3845 # using a relative directory. 3846 cp "$am_depcomp" conftest.dir 3847 cd conftest.dir 3848 # We will build objects and dependencies in a subdirectory because 3849 # it helps to detect inapplicable dependency modes. For instance 3850 # both Tru64's cc and ICC support -MD to output dependencies as a 3851 # side effect of compilation, but ICC will put the dependencies in 3852 # the current directory while Tru64 will put them in the object 3853 # directory. 3854 mkdir sub 3855 3856 am_cv_CC_dependencies_compiler_type=none 3857 if test "$am_compiler_list" = ""; then 3858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3859 fi 3860 am__universal=false 3861 case " $depcc " in #( 3862 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3863 esac 3864 3865 for depmode in $am_compiler_list; do 3866 # Setup a source with many dependencies, because some compilers 3867 # like to wrap large dependency lists on column 80 (with \), and 3868 # we should not choose a depcomp mode which is confused by this. 3869 # 3870 # We need to recreate these files for each test, as the compiler may 3871 # overwrite some of them when testing with obscure command lines. 3872 # This happens at least with the AIX C compiler. 3873 : > sub/conftest.c 3874 for i in 1 2 3 4 5 6; do 3875 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3876 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3877 # Solaris 10 /bin/sh. 3878 echo '/* dummy */' > sub/conftst$i.h 3879 done 3880 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3881 3882 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3883 # mode. It turns out that the SunPro C++ compiler does not properly 3884 # handle '-M -o', and we need to detect this. Also, some Intel 3885 # versions had trouble with output in subdirs. 3886 am__obj=sub/conftest.${OBJEXT-o} 3887 am__minus_obj="-o $am__obj" 3888 case $depmode in 3889 gcc) 3890 # This depmode causes a compiler race in universal mode. 3891 test "$am__universal" = false || continue 3892 ;; 3893 nosideeffect) 3894 # After this tag, mechanisms are not by side-effect, so they'll 3895 # only be used when explicitly requested. 3896 if test "x$enable_dependency_tracking" = xyes; then 3897 continue 3898 else 3899 break 3900 fi 3901 ;; 3902 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3903 # This compiler won't grok '-c -o', but also, the minuso test has 3904 # not run yet. These depmodes are late enough in the game, and 3905 # so weak that their functioning should not be impacted. 3906 am__obj=conftest.${OBJEXT-o} 3907 am__minus_obj= 3908 ;; 3909 none) break ;; 3910 esac 3911 if depmode=$depmode \ 3912 source=sub/conftest.c object=$am__obj \ 3913 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3914 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3915 >/dev/null 2>conftest.err && 3916 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3917 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3918 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3919 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3920 # icc doesn't choke on unknown options, it will just issue warnings 3921 # or remarks (even with -Werror). So we grep stderr for any message 3922 # that says an option was ignored or not supported. 3923 # When given -MP, icc 7.0 and 7.1 complain thusly: 3924 # icc: Command line warning: ignoring option '-M'; no argument required 3925 # The diagnosis changed in icc 8.0: 3926 # icc: Command line remark: option '-MP' not supported 3927 if (grep 'ignoring option' conftest.err || 3928 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3929 am_cv_CC_dependencies_compiler_type=$depmode 3930 break 3931 fi 3932 fi 3933 done 3934 3935 cd .. 3936 rm -rf conftest.dir 3937else 3938 am_cv_CC_dependencies_compiler_type=none 3939fi 3940 3941fi 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3943$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3944CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3945 3946 if 3947 test "x$enable_dependency_tracking" != xno \ 3948 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3949 am__fastdepCC_TRUE= 3950 am__fastdepCC_FALSE='#' 3951else 3952 am__fastdepCC_TRUE='#' 3953 am__fastdepCC_FALSE= 3954fi 3955 3956 3957 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3959$as_echo_n "checking whether ln -s works... " >&6; } 3960LN_S=$as_ln_s 3961if test "$LN_S" = "ln -s"; then 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3963$as_echo "yes" >&6; } 3964else 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3966$as_echo "no, using $LN_S" >&6; } 3967fi 3968 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3970$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3971set x ${MAKE-make} 3972ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3973if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3974 $as_echo_n "(cached) " >&6 3975else 3976 cat >conftest.make <<\_ACEOF 3977SHELL = /bin/sh 3978all: 3979 @echo '@@@%%%=$(MAKE)=@@@%%%' 3980_ACEOF 3981# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3982case `${MAKE-make} -f conftest.make 2>/dev/null` in 3983 *@@@%%%=?*=@@@%%%*) 3984 eval ac_cv_prog_make_${ac_make}_set=yes;; 3985 *) 3986 eval ac_cv_prog_make_${ac_make}_set=no;; 3987esac 3988rm -f conftest.make 3989fi 3990if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3992$as_echo "yes" >&6; } 3993 SET_MAKE= 3994else 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3996$as_echo "no" >&6; } 3997 SET_MAKE="MAKE=${MAKE-make}" 3998fi 3999 4000# Make sure we can run config.sub. 4001$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4002 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4003 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4005$as_echo_n "checking build system type... " >&6; } 4006if ${ac_cv_build+:} false; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 ac_build_alias=$build_alias 4010test "x$ac_build_alias" = x && 4011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4012test "x$ac_build_alias" = x && 4013 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4014ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4015 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4016 4017fi 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4019$as_echo "$ac_cv_build" >&6; } 4020case $ac_cv_build in 4021*-*-*) ;; 4022*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4023esac 4024build=$ac_cv_build 4025ac_save_IFS=$IFS; IFS='-' 4026set x $ac_cv_build 4027shift 4028build_cpu=$1 4029build_vendor=$2 4030shift; shift 4031# Remember, the first character of IFS is used to create $*, 4032# except with old shells: 4033build_os=$* 4034IFS=$ac_save_IFS 4035case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4036 4037 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4039$as_echo_n "checking host system type... " >&6; } 4040if ${ac_cv_host+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 if test "x$host_alias" = x; then 4044 ac_cv_host=$ac_cv_build 4045else 4046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4047 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4048fi 4049 4050fi 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4052$as_echo "$ac_cv_host" >&6; } 4053case $ac_cv_host in 4054*-*-*) ;; 4055*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4056esac 4057host=$ac_cv_host 4058ac_save_IFS=$IFS; IFS='-' 4059set x $ac_cv_host 4060shift 4061host_cpu=$1 4062host_vendor=$2 4063shift; shift 4064# Remember, the first character of IFS is used to create $*, 4065# except with old shells: 4066host_os=$* 4067IFS=$ac_save_IFS 4068case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4069 4070 4071enable_win32_dll=yes 4072 4073case $host in 4074*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4075 if test -n "$ac_tool_prefix"; then 4076 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4077set dummy ${ac_tool_prefix}as; ac_word=$2 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4079$as_echo_n "checking for $ac_word... " >&6; } 4080if ${ac_cv_prog_AS+:} false; then : 4081 $as_echo_n "(cached) " >&6 4082else 4083 if test -n "$AS"; then 4084 ac_cv_prog_AS="$AS" # Let the user override the test. 4085else 4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4087for as_dir in $PATH 4088do 4089 IFS=$as_save_IFS 4090 test -z "$as_dir" && as_dir=. 4091 for ac_exec_ext in '' $ac_executable_extensions; do 4092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4093 ac_cv_prog_AS="${ac_tool_prefix}as" 4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4095 break 2 4096 fi 4097done 4098 done 4099IFS=$as_save_IFS 4100 4101fi 4102fi 4103AS=$ac_cv_prog_AS 4104if test -n "$AS"; then 4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4106$as_echo "$AS" >&6; } 4107else 4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4109$as_echo "no" >&6; } 4110fi 4111 4112 4113fi 4114if test -z "$ac_cv_prog_AS"; then 4115 ac_ct_AS=$AS 4116 # Extract the first word of "as", so it can be a program name with args. 4117set dummy as; ac_word=$2 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4119$as_echo_n "checking for $ac_word... " >&6; } 4120if ${ac_cv_prog_ac_ct_AS+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 if test -n "$ac_ct_AS"; then 4124 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4125else 4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4127for as_dir in $PATH 4128do 4129 IFS=$as_save_IFS 4130 test -z "$as_dir" && as_dir=. 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4133 ac_cv_prog_ac_ct_AS="as" 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4135 break 2 4136 fi 4137done 4138 done 4139IFS=$as_save_IFS 4140 4141fi 4142fi 4143ac_ct_AS=$ac_cv_prog_ac_ct_AS 4144if test -n "$ac_ct_AS"; then 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4146$as_echo "$ac_ct_AS" >&6; } 4147else 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4149$as_echo "no" >&6; } 4150fi 4151 4152 if test "x$ac_ct_AS" = x; then 4153 AS="false" 4154 else 4155 case $cross_compiling:$ac_tool_warned in 4156yes:) 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4159ac_tool_warned=yes ;; 4160esac 4161 AS=$ac_ct_AS 4162 fi 4163else 4164 AS="$ac_cv_prog_AS" 4165fi 4166 4167 if test -n "$ac_tool_prefix"; then 4168 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4169set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4171$as_echo_n "checking for $ac_word... " >&6; } 4172if ${ac_cv_prog_DLLTOOL+:} false; then : 4173 $as_echo_n "(cached) " >&6 4174else 4175 if test -n "$DLLTOOL"; then 4176 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4177else 4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4179for as_dir in $PATH 4180do 4181 IFS=$as_save_IFS 4182 test -z "$as_dir" && as_dir=. 4183 for ac_exec_ext in '' $ac_executable_extensions; do 4184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4185 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4187 break 2 4188 fi 4189done 4190 done 4191IFS=$as_save_IFS 4192 4193fi 4194fi 4195DLLTOOL=$ac_cv_prog_DLLTOOL 4196if test -n "$DLLTOOL"; then 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4198$as_echo "$DLLTOOL" >&6; } 4199else 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4201$as_echo "no" >&6; } 4202fi 4203 4204 4205fi 4206if test -z "$ac_cv_prog_DLLTOOL"; then 4207 ac_ct_DLLTOOL=$DLLTOOL 4208 # Extract the first word of "dlltool", so it can be a program name with args. 4209set dummy dlltool; ac_word=$2 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4211$as_echo_n "checking for $ac_word... " >&6; } 4212if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214else 4215 if test -n "$ac_ct_DLLTOOL"; then 4216 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4217else 4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4219for as_dir in $PATH 4220do 4221 IFS=$as_save_IFS 4222 test -z "$as_dir" && as_dir=. 4223 for ac_exec_ext in '' $ac_executable_extensions; do 4224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4225 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4227 break 2 4228 fi 4229done 4230 done 4231IFS=$as_save_IFS 4232 4233fi 4234fi 4235ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4236if test -n "$ac_ct_DLLTOOL"; then 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4238$as_echo "$ac_ct_DLLTOOL" >&6; } 4239else 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4241$as_echo "no" >&6; } 4242fi 4243 4244 if test "x$ac_ct_DLLTOOL" = x; then 4245 DLLTOOL="false" 4246 else 4247 case $cross_compiling:$ac_tool_warned in 4248yes:) 4249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4251ac_tool_warned=yes ;; 4252esac 4253 DLLTOOL=$ac_ct_DLLTOOL 4254 fi 4255else 4256 DLLTOOL="$ac_cv_prog_DLLTOOL" 4257fi 4258 4259 if test -n "$ac_tool_prefix"; then 4260 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4261set dummy ${ac_tool_prefix}objdump; ac_word=$2 4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4263$as_echo_n "checking for $ac_word... " >&6; } 4264if ${ac_cv_prog_OBJDUMP+:} false; then : 4265 $as_echo_n "(cached) " >&6 4266else 4267 if test -n "$OBJDUMP"; then 4268 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4269else 4270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4271for as_dir in $PATH 4272do 4273 IFS=$as_save_IFS 4274 test -z "$as_dir" && as_dir=. 4275 for ac_exec_ext in '' $ac_executable_extensions; do 4276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4277 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4279 break 2 4280 fi 4281done 4282 done 4283IFS=$as_save_IFS 4284 4285fi 4286fi 4287OBJDUMP=$ac_cv_prog_OBJDUMP 4288if test -n "$OBJDUMP"; then 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4290$as_echo "$OBJDUMP" >&6; } 4291else 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4293$as_echo "no" >&6; } 4294fi 4295 4296 4297fi 4298if test -z "$ac_cv_prog_OBJDUMP"; then 4299 ac_ct_OBJDUMP=$OBJDUMP 4300 # Extract the first word of "objdump", so it can be a program name with args. 4301set dummy objdump; ac_word=$2 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4303$as_echo_n "checking for $ac_word... " >&6; } 4304if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 if test -n "$ac_ct_OBJDUMP"; then 4308 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4309else 4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4311for as_dir in $PATH 4312do 4313 IFS=$as_save_IFS 4314 test -z "$as_dir" && as_dir=. 4315 for ac_exec_ext in '' $ac_executable_extensions; do 4316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4317 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4319 break 2 4320 fi 4321done 4322 done 4323IFS=$as_save_IFS 4324 4325fi 4326fi 4327ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4328if test -n "$ac_ct_OBJDUMP"; then 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4330$as_echo "$ac_ct_OBJDUMP" >&6; } 4331else 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4333$as_echo "no" >&6; } 4334fi 4335 4336 if test "x$ac_ct_OBJDUMP" = x; then 4337 OBJDUMP="false" 4338 else 4339 case $cross_compiling:$ac_tool_warned in 4340yes:) 4341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4343ac_tool_warned=yes ;; 4344esac 4345 OBJDUMP=$ac_ct_OBJDUMP 4346 fi 4347else 4348 OBJDUMP="$ac_cv_prog_OBJDUMP" 4349fi 4350 4351 ;; 4352esac 4353 4354test -z "$AS" && AS=as 4355 4356 4357 4358 4359 4360test -z "$DLLTOOL" && DLLTOOL=dlltool 4361 4362 4363 4364 4365 4366test -z "$OBJDUMP" && OBJDUMP=objdump 4367 4368 4369 4370 4371 4372 4373 4374case `pwd` in 4375 *\ * | *\ *) 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4377$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4378esac 4379 4380 4381 4382macro_version='2.4.6' 4383macro_revision='2.4.6' 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397ltmain=$ac_aux_dir/ltmain.sh 4398 4399# Backslashify metacharacters that are still active within 4400# double-quoted strings. 4401sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4402 4403# Same as above, but do not quote variable references. 4404double_quote_subst='s/\(["`\\]\)/\\\1/g' 4405 4406# Sed substitution to delay expansion of an escaped shell variable in a 4407# double_quote_subst'ed string. 4408delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4409 4410# Sed substitution to delay expansion of an escaped single quote. 4411delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4412 4413# Sed substitution to avoid accidental globbing in evaled expressions 4414no_glob_subst='s/\*/\\\*/g' 4415 4416ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4417ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4418ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4419 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4421$as_echo_n "checking how to print strings... " >&6; } 4422# Test print first, because it will be a builtin if present. 4423if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4424 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4425 ECHO='print -r --' 4426elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4427 ECHO='printf %s\n' 4428else 4429 # Use this function as a fallback that always works. 4430 func_fallback_echo () 4431 { 4432 eval 'cat <<_LTECHO_EOF 4433$1 4434_LTECHO_EOF' 4435 } 4436 ECHO='func_fallback_echo' 4437fi 4438 4439# func_echo_all arg... 4440# Invoke $ECHO with all args, space-separated. 4441func_echo_all () 4442{ 4443 $ECHO "" 4444} 4445 4446case $ECHO in 4447 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4448$as_echo "printf" >&6; } ;; 4449 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4450$as_echo "print -r" >&6; } ;; 4451 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4452$as_echo "cat" >&6; } ;; 4453esac 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4469$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4470if ${ac_cv_path_SED+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472else 4473 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4474 for ac_i in 1 2 3 4 5 6 7; do 4475 ac_script="$ac_script$as_nl$ac_script" 4476 done 4477 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4478 { ac_script=; unset ac_script;} 4479 if test -z "$SED"; then 4480 ac_path_SED_found=false 4481 # Loop through the user's path and test for each of PROGNAME-LIST 4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483for as_dir in $PATH 4484do 4485 IFS=$as_save_IFS 4486 test -z "$as_dir" && as_dir=. 4487 for ac_prog in sed gsed; do 4488 for ac_exec_ext in '' $ac_executable_extensions; do 4489 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4490 as_fn_executable_p "$ac_path_SED" || continue 4491# Check for GNU ac_path_SED and select it if it is found. 4492 # Check for GNU $ac_path_SED 4493case `"$ac_path_SED" --version 2>&1` in 4494*GNU*) 4495 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4496*) 4497 ac_count=0 4498 $as_echo_n 0123456789 >"conftest.in" 4499 while : 4500 do 4501 cat "conftest.in" "conftest.in" >"conftest.tmp" 4502 mv "conftest.tmp" "conftest.in" 4503 cp "conftest.in" "conftest.nl" 4504 $as_echo '' >> "conftest.nl" 4505 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4507 as_fn_arith $ac_count + 1 && ac_count=$as_val 4508 if test $ac_count -gt ${ac_path_SED_max-0}; then 4509 # Best one so far, save it but keep looking for a better one 4510 ac_cv_path_SED="$ac_path_SED" 4511 ac_path_SED_max=$ac_count 4512 fi 4513 # 10*(2^10) chars as input seems more than enough 4514 test $ac_count -gt 10 && break 4515 done 4516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4517esac 4518 4519 $ac_path_SED_found && break 3 4520 done 4521 done 4522 done 4523IFS=$as_save_IFS 4524 if test -z "$ac_cv_path_SED"; then 4525 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4526 fi 4527else 4528 ac_cv_path_SED=$SED 4529fi 4530 4531fi 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4533$as_echo "$ac_cv_path_SED" >&6; } 4534 SED="$ac_cv_path_SED" 4535 rm -f conftest.sed 4536 4537test -z "$SED" && SED=sed 4538Xsed="$SED -e 1s/^X//" 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4551$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4552if ${ac_cv_path_GREP+:} false; then : 4553 $as_echo_n "(cached) " >&6 4554else 4555 if test -z "$GREP"; then 4556 ac_path_GREP_found=false 4557 # Loop through the user's path and test for each of PROGNAME-LIST 4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4560do 4561 IFS=$as_save_IFS 4562 test -z "$as_dir" && as_dir=. 4563 for ac_prog in grep ggrep; do 4564 for ac_exec_ext in '' $ac_executable_extensions; do 4565 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4566 as_fn_executable_p "$ac_path_GREP" || continue 4567# Check for GNU ac_path_GREP and select it if it is found. 4568 # Check for GNU $ac_path_GREP 4569case `"$ac_path_GREP" --version 2>&1` in 4570*GNU*) 4571 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4572*) 4573 ac_count=0 4574 $as_echo_n 0123456789 >"conftest.in" 4575 while : 4576 do 4577 cat "conftest.in" "conftest.in" >"conftest.tmp" 4578 mv "conftest.tmp" "conftest.in" 4579 cp "conftest.in" "conftest.nl" 4580 $as_echo 'GREP' >> "conftest.nl" 4581 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4583 as_fn_arith $ac_count + 1 && ac_count=$as_val 4584 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4585 # Best one so far, save it but keep looking for a better one 4586 ac_cv_path_GREP="$ac_path_GREP" 4587 ac_path_GREP_max=$ac_count 4588 fi 4589 # 10*(2^10) chars as input seems more than enough 4590 test $ac_count -gt 10 && break 4591 done 4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4593esac 4594 4595 $ac_path_GREP_found && break 3 4596 done 4597 done 4598 done 4599IFS=$as_save_IFS 4600 if test -z "$ac_cv_path_GREP"; then 4601 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4602 fi 4603else 4604 ac_cv_path_GREP=$GREP 4605fi 4606 4607fi 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4609$as_echo "$ac_cv_path_GREP" >&6; } 4610 GREP="$ac_cv_path_GREP" 4611 4612 4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4614$as_echo_n "checking for egrep... " >&6; } 4615if ${ac_cv_path_EGREP+:} false; then : 4616 $as_echo_n "(cached) " >&6 4617else 4618 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4619 then ac_cv_path_EGREP="$GREP -E" 4620 else 4621 if test -z "$EGREP"; then 4622 ac_path_EGREP_found=false 4623 # Loop through the user's path and test for each of PROGNAME-LIST 4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4626do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_prog in egrep; do 4630 for ac_exec_ext in '' $ac_executable_extensions; do 4631 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4632 as_fn_executable_p "$ac_path_EGREP" || continue 4633# Check for GNU ac_path_EGREP and select it if it is found. 4634 # Check for GNU $ac_path_EGREP 4635case `"$ac_path_EGREP" --version 2>&1` in 4636*GNU*) 4637 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4638*) 4639 ac_count=0 4640 $as_echo_n 0123456789 >"conftest.in" 4641 while : 4642 do 4643 cat "conftest.in" "conftest.in" >"conftest.tmp" 4644 mv "conftest.tmp" "conftest.in" 4645 cp "conftest.in" "conftest.nl" 4646 $as_echo 'EGREP' >> "conftest.nl" 4647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4649 as_fn_arith $ac_count + 1 && ac_count=$as_val 4650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4651 # Best one so far, save it but keep looking for a better one 4652 ac_cv_path_EGREP="$ac_path_EGREP" 4653 ac_path_EGREP_max=$ac_count 4654 fi 4655 # 10*(2^10) chars as input seems more than enough 4656 test $ac_count -gt 10 && break 4657 done 4658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4659esac 4660 4661 $ac_path_EGREP_found && break 3 4662 done 4663 done 4664 done 4665IFS=$as_save_IFS 4666 if test -z "$ac_cv_path_EGREP"; then 4667 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4668 fi 4669else 4670 ac_cv_path_EGREP=$EGREP 4671fi 4672 4673 fi 4674fi 4675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4676$as_echo "$ac_cv_path_EGREP" >&6; } 4677 EGREP="$ac_cv_path_EGREP" 4678 4679 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4681$as_echo_n "checking for fgrep... " >&6; } 4682if ${ac_cv_path_FGREP+:} false; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4686 then ac_cv_path_FGREP="$GREP -F" 4687 else 4688 if test -z "$FGREP"; then 4689 ac_path_FGREP_found=false 4690 # Loop through the user's path and test for each of PROGNAME-LIST 4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4692for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4693do 4694 IFS=$as_save_IFS 4695 test -z "$as_dir" && as_dir=. 4696 for ac_prog in fgrep; do 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4699 as_fn_executable_p "$ac_path_FGREP" || continue 4700# Check for GNU ac_path_FGREP and select it if it is found. 4701 # Check for GNU $ac_path_FGREP 4702case `"$ac_path_FGREP" --version 2>&1` in 4703*GNU*) 4704 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4705*) 4706 ac_count=0 4707 $as_echo_n 0123456789 >"conftest.in" 4708 while : 4709 do 4710 cat "conftest.in" "conftest.in" >"conftest.tmp" 4711 mv "conftest.tmp" "conftest.in" 4712 cp "conftest.in" "conftest.nl" 4713 $as_echo 'FGREP' >> "conftest.nl" 4714 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4716 as_fn_arith $ac_count + 1 && ac_count=$as_val 4717 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4718 # Best one so far, save it but keep looking for a better one 4719 ac_cv_path_FGREP="$ac_path_FGREP" 4720 ac_path_FGREP_max=$ac_count 4721 fi 4722 # 10*(2^10) chars as input seems more than enough 4723 test $ac_count -gt 10 && break 4724 done 4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4726esac 4727 4728 $ac_path_FGREP_found && break 3 4729 done 4730 done 4731 done 4732IFS=$as_save_IFS 4733 if test -z "$ac_cv_path_FGREP"; then 4734 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4735 fi 4736else 4737 ac_cv_path_FGREP=$FGREP 4738fi 4739 4740 fi 4741fi 4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4743$as_echo "$ac_cv_path_FGREP" >&6; } 4744 FGREP="$ac_cv_path_FGREP" 4745 4746 4747test -z "$GREP" && GREP=grep 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767# Check whether --with-gnu-ld was given. 4768if test "${with_gnu_ld+set}" = set; then : 4769 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4770else 4771 with_gnu_ld=no 4772fi 4773 4774ac_prog=ld 4775if test yes = "$GCC"; then 4776 # Check if gcc -print-prog-name=ld gives a path. 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4778$as_echo_n "checking for ld used by $CC... " >&6; } 4779 case $host in 4780 *-*-mingw*) 4781 # gcc leaves a trailing carriage return, which upsets mingw 4782 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4783 *) 4784 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4785 esac 4786 case $ac_prog in 4787 # Accept absolute paths. 4788 [\\/]* | ?:[\\/]*) 4789 re_direlt='/[^/][^/]*/\.\./' 4790 # Canonicalize the pathname of ld 4791 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4792 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4793 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4794 done 4795 test -z "$LD" && LD=$ac_prog 4796 ;; 4797 "") 4798 # If it fails, then pretend we aren't using GCC. 4799 ac_prog=ld 4800 ;; 4801 *) 4802 # If it is relative, then search for the first ld in PATH. 4803 with_gnu_ld=unknown 4804 ;; 4805 esac 4806elif test yes = "$with_gnu_ld"; then 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4808$as_echo_n "checking for GNU ld... " >&6; } 4809else 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4811$as_echo_n "checking for non-GNU ld... " >&6; } 4812fi 4813if ${lt_cv_path_LD+:} false; then : 4814 $as_echo_n "(cached) " >&6 4815else 4816 if test -z "$LD"; then 4817 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4818 for ac_dir in $PATH; do 4819 IFS=$lt_save_ifs 4820 test -z "$ac_dir" && ac_dir=. 4821 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4822 lt_cv_path_LD=$ac_dir/$ac_prog 4823 # Check to see if the program is GNU ld. I'd rather use --version, 4824 # but apparently some variants of GNU ld only accept -v. 4825 # Break only if it was the GNU/non-GNU ld that we prefer. 4826 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4827 *GNU* | *'with BFD'*) 4828 test no != "$with_gnu_ld" && break 4829 ;; 4830 *) 4831 test yes != "$with_gnu_ld" && break 4832 ;; 4833 esac 4834 fi 4835 done 4836 IFS=$lt_save_ifs 4837else 4838 lt_cv_path_LD=$LD # Let the user override the test with a path. 4839fi 4840fi 4841 4842LD=$lt_cv_path_LD 4843if test -n "$LD"; then 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4845$as_echo "$LD" >&6; } 4846else 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4848$as_echo "no" >&6; } 4849fi 4850test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4852$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4853if ${lt_cv_prog_gnu_ld+:} false; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4857case `$LD -v 2>&1 </dev/null` in 4858*GNU* | *'with BFD'*) 4859 lt_cv_prog_gnu_ld=yes 4860 ;; 4861*) 4862 lt_cv_prog_gnu_ld=no 4863 ;; 4864esac 4865fi 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4867$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4868with_gnu_ld=$lt_cv_prog_gnu_ld 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4879$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4880if ${lt_cv_path_NM+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 if test -n "$NM"; then 4884 # Let the user override the test. 4885 lt_cv_path_NM=$NM 4886else 4887 lt_nm_to_check=${ac_tool_prefix}nm 4888 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4889 lt_nm_to_check="$lt_nm_to_check nm" 4890 fi 4891 for lt_tmp_nm in $lt_nm_to_check; do 4892 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4893 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4894 IFS=$lt_save_ifs 4895 test -z "$ac_dir" && ac_dir=. 4896 tmp_nm=$ac_dir/$lt_tmp_nm 4897 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4898 # Check to see if the nm accepts a BSD-compat flag. 4899 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4900 # nm: unknown option "B" ignored 4901 # Tru64's nm complains that /dev/null is an invalid object file 4902 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4903 case $build_os in 4904 mingw*) lt_bad_file=conftest.nm/nofile ;; 4905 *) lt_bad_file=/dev/null ;; 4906 esac 4907 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4908 *$lt_bad_file* | *'Invalid file or object type'*) 4909 lt_cv_path_NM="$tmp_nm -B" 4910 break 2 4911 ;; 4912 *) 4913 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4914 */dev/null*) 4915 lt_cv_path_NM="$tmp_nm -p" 4916 break 2 4917 ;; 4918 *) 4919 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4920 continue # so that we can try to find one that supports BSD flags 4921 ;; 4922 esac 4923 ;; 4924 esac 4925 fi 4926 done 4927 IFS=$lt_save_ifs 4928 done 4929 : ${lt_cv_path_NM=no} 4930fi 4931fi 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4933$as_echo "$lt_cv_path_NM" >&6; } 4934if test no != "$lt_cv_path_NM"; then 4935 NM=$lt_cv_path_NM 4936else 4937 # Didn't find any BSD compatible name lister, look for dumpbin. 4938 if test -n "$DUMPBIN"; then : 4939 # Let the user override the test. 4940 else 4941 if test -n "$ac_tool_prefix"; then 4942 for ac_prog in dumpbin "link -dump" 4943 do 4944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4945set dummy $ac_tool_prefix$ac_prog; 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_DUMPBIN+:} false; then : 4949 $as_echo_n "(cached) " >&6 4950else 4951 if test -n "$DUMPBIN"; then 4952 ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$ac_tool_prefix$ac_prog" 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 4971DUMPBIN=$ac_cv_prog_DUMPBIN 4972if test -n "$DUMPBIN"; then 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4974$as_echo "$DUMPBIN" >&6; } 4975else 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4977$as_echo "no" >&6; } 4978fi 4979 4980 4981 test -n "$DUMPBIN" && break 4982 done 4983fi 4984if test -z "$DUMPBIN"; then 4985 ac_ct_DUMPBIN=$DUMPBIN 4986 for ac_prog in dumpbin "link -dump" 4987do 4988 # Extract the first word of "$ac_prog", so it can be a program name with args. 4989set dummy $ac_prog; ac_word=$2 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4991$as_echo_n "checking for $ac_word... " >&6; } 4992if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4993 $as_echo_n "(cached) " >&6 4994else 4995 if test -n "$ac_ct_DUMPBIN"; then 4996 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4997else 4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4999for as_dir in $PATH 5000do 5001 IFS=$as_save_IFS 5002 test -z "$as_dir" && as_dir=. 5003 for ac_exec_ext in '' $ac_executable_extensions; do 5004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5005 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5007 break 2 5008 fi 5009done 5010 done 5011IFS=$as_save_IFS 5012 5013fi 5014fi 5015ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5016if test -n "$ac_ct_DUMPBIN"; then 5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5018$as_echo "$ac_ct_DUMPBIN" >&6; } 5019else 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5021$as_echo "no" >&6; } 5022fi 5023 5024 5025 test -n "$ac_ct_DUMPBIN" && break 5026done 5027 5028 if test "x$ac_ct_DUMPBIN" = x; then 5029 DUMPBIN=":" 5030 else 5031 case $cross_compiling:$ac_tool_warned in 5032yes:) 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5035ac_tool_warned=yes ;; 5036esac 5037 DUMPBIN=$ac_ct_DUMPBIN 5038 fi 5039fi 5040 5041 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5042 *COFF*) 5043 DUMPBIN="$DUMPBIN -symbols -headers" 5044 ;; 5045 *) 5046 DUMPBIN=: 5047 ;; 5048 esac 5049 fi 5050 5051 if test : != "$DUMPBIN"; then 5052 NM=$DUMPBIN 5053 fi 5054fi 5055test -z "$NM" && NM=nm 5056 5057 5058 5059 5060 5061 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5063$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5064if ${lt_cv_nm_interface+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 lt_cv_nm_interface="BSD nm" 5068 echo "int some_variable = 0;" > conftest.$ac_ext 5069 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5070 (eval "$ac_compile" 2>conftest.err) 5071 cat conftest.err >&5 5072 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5073 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5074 cat conftest.err >&5 5075 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5076 cat conftest.out >&5 5077 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5078 lt_cv_nm_interface="MS dumpbin" 5079 fi 5080 rm -f conftest* 5081fi 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5083$as_echo "$lt_cv_nm_interface" >&6; } 5084 5085# find the maximum length of command line arguments 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5087$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5088if ${lt_cv_sys_max_cmd_len+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 i=0 5092 teststring=ABCD 5093 5094 case $build_os in 5095 msdosdjgpp*) 5096 # On DJGPP, this test can blow up pretty badly due to problems in libc 5097 # (any single argument exceeding 2000 bytes causes a buffer overrun 5098 # during glob expansion). Even if it were fixed, the result of this 5099 # check would be larger than it should be. 5100 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5101 ;; 5102 5103 gnu*) 5104 # Under GNU Hurd, this test is not required because there is 5105 # no limit to the length of command line arguments. 5106 # Libtool will interpret -1 as no limit whatsoever 5107 lt_cv_sys_max_cmd_len=-1; 5108 ;; 5109 5110 cygwin* | mingw* | cegcc*) 5111 # On Win9x/ME, this test blows up -- it succeeds, but takes 5112 # about 5 minutes as the teststring grows exponentially. 5113 # Worse, since 9x/ME are not pre-emptively multitasking, 5114 # you end up with a "frozen" computer, even though with patience 5115 # the test eventually succeeds (with a max line length of 256k). 5116 # Instead, let's just punt: use the minimum linelength reported by 5117 # all of the supported platforms: 8192 (on NT/2K/XP). 5118 lt_cv_sys_max_cmd_len=8192; 5119 ;; 5120 5121 mint*) 5122 # On MiNT this can take a long time and run out of memory. 5123 lt_cv_sys_max_cmd_len=8192; 5124 ;; 5125 5126 amigaos*) 5127 # On AmigaOS with pdksh, this test takes hours, literally. 5128 # So we just punt and use a minimum line length of 8192. 5129 lt_cv_sys_max_cmd_len=8192; 5130 ;; 5131 5132 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5133 # This has been around since 386BSD, at least. Likely further. 5134 if test -x /sbin/sysctl; then 5135 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5136 elif test -x /usr/sbin/sysctl; then 5137 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5138 else 5139 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5140 fi 5141 # And add a safety zone 5142 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5144 ;; 5145 5146 interix*) 5147 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5148 lt_cv_sys_max_cmd_len=196608 5149 ;; 5150 5151 os2*) 5152 # The test takes a long time on OS/2. 5153 lt_cv_sys_max_cmd_len=8192 5154 ;; 5155 5156 osf*) 5157 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5158 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5159 # nice to cause kernel panics so lets avoid the loop below. 5160 # First set a reasonable default. 5161 lt_cv_sys_max_cmd_len=16384 5162 # 5163 if test -x /sbin/sysconfig; then 5164 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5165 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5166 esac 5167 fi 5168 ;; 5169 sco3.2v5*) 5170 lt_cv_sys_max_cmd_len=102400 5171 ;; 5172 sysv5* | sco5v6* | sysv4.2uw2*) 5173 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5174 if test -n "$kargmax"; then 5175 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5176 else 5177 lt_cv_sys_max_cmd_len=32768 5178 fi 5179 ;; 5180 *) 5181 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5182 if test -n "$lt_cv_sys_max_cmd_len" && \ 5183 test undefined != "$lt_cv_sys_max_cmd_len"; then 5184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5186 else 5187 # Make teststring a little bigger before we do anything with it. 5188 # a 1K string should be a reasonable start. 5189 for i in 1 2 3 4 5 6 7 8; do 5190 teststring=$teststring$teststring 5191 done 5192 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5193 # If test is not a shell built-in, we'll probably end up computing a 5194 # maximum length that is only half of the actual maximum length, but 5195 # we can't tell. 5196 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5197 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5198 test 17 != "$i" # 1/2 MB should be enough 5199 do 5200 i=`expr $i + 1` 5201 teststring=$teststring$teststring 5202 done 5203 # Only check the string length outside the loop. 5204 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5205 teststring= 5206 # Add a significant safety factor because C++ compilers can tack on 5207 # massive amounts of additional arguments before passing them to the 5208 # linker. It appears as though 1/2 is a usable value. 5209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5210 fi 5211 ;; 5212 esac 5213 5214fi 5215 5216if test -n "$lt_cv_sys_max_cmd_len"; then 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5218$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5219else 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5221$as_echo "none" >&6; } 5222fi 5223max_cmd_len=$lt_cv_sys_max_cmd_len 5224 5225 5226 5227 5228 5229 5230: ${CP="cp -f"} 5231: ${MV="mv -f"} 5232: ${RM="rm -f"} 5233 5234if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5235 lt_unset=unset 5236else 5237 lt_unset=false 5238fi 5239 5240 5241 5242 5243 5244# test EBCDIC or ASCII 5245case `echo X|tr X '\101'` in 5246 A) # ASCII based system 5247 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5248 lt_SP2NL='tr \040 \012' 5249 lt_NL2SP='tr \015\012 \040\040' 5250 ;; 5251 *) # EBCDIC based system 5252 lt_SP2NL='tr \100 \n' 5253 lt_NL2SP='tr \r\n \100\100' 5254 ;; 5255esac 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5266$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5267if ${lt_cv_to_host_file_cmd+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 case $host in 5271 *-*-mingw* ) 5272 case $build in 5273 *-*-mingw* ) # actually msys 5274 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5275 ;; 5276 *-*-cygwin* ) 5277 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5278 ;; 5279 * ) # otherwise, assume *nix 5280 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5281 ;; 5282 esac 5283 ;; 5284 *-*-cygwin* ) 5285 case $build in 5286 *-*-mingw* ) # actually msys 5287 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5288 ;; 5289 *-*-cygwin* ) 5290 lt_cv_to_host_file_cmd=func_convert_file_noop 5291 ;; 5292 * ) # otherwise, assume *nix 5293 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5294 ;; 5295 esac 5296 ;; 5297 * ) # unhandled hosts (and "normal" native builds) 5298 lt_cv_to_host_file_cmd=func_convert_file_noop 5299 ;; 5300esac 5301 5302fi 5303 5304to_host_file_cmd=$lt_cv_to_host_file_cmd 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5306$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5307 5308 5309 5310 5311 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5313$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5314if ${lt_cv_to_tool_file_cmd+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 #assume ordinary cross tools, or native build. 5318lt_cv_to_tool_file_cmd=func_convert_file_noop 5319case $host in 5320 *-*-mingw* ) 5321 case $build in 5322 *-*-mingw* ) # actually msys 5323 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5324 ;; 5325 esac 5326 ;; 5327esac 5328 5329fi 5330 5331to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5333$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5334 5335 5336 5337 5338 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5340$as_echo_n "checking for $LD option to reload object files... " >&6; } 5341if ${lt_cv_ld_reload_flag+:} false; then : 5342 $as_echo_n "(cached) " >&6 5343else 5344 lt_cv_ld_reload_flag='-r' 5345fi 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5347$as_echo "$lt_cv_ld_reload_flag" >&6; } 5348reload_flag=$lt_cv_ld_reload_flag 5349case $reload_flag in 5350"" | " "*) ;; 5351*) reload_flag=" $reload_flag" ;; 5352esac 5353reload_cmds='$LD$reload_flag -o $output$reload_objs' 5354case $host_os in 5355 cygwin* | mingw* | pw32* | cegcc*) 5356 if test yes != "$GCC"; then 5357 reload_cmds=false 5358 fi 5359 ;; 5360 darwin*) 5361 if test yes = "$GCC"; then 5362 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5363 else 5364 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5365 fi 5366 ;; 5367esac 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377if test -n "$ac_tool_prefix"; then 5378 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5379set dummy ${ac_tool_prefix}objdump; ac_word=$2 5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5381$as_echo_n "checking for $ac_word... " >&6; } 5382if ${ac_cv_prog_OBJDUMP+:} false; then : 5383 $as_echo_n "(cached) " >&6 5384else 5385 if test -n "$OBJDUMP"; then 5386 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5387else 5388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5389for as_dir in $PATH 5390do 5391 IFS=$as_save_IFS 5392 test -z "$as_dir" && as_dir=. 5393 for ac_exec_ext in '' $ac_executable_extensions; do 5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5395 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5397 break 2 5398 fi 5399done 5400 done 5401IFS=$as_save_IFS 5402 5403fi 5404fi 5405OBJDUMP=$ac_cv_prog_OBJDUMP 5406if test -n "$OBJDUMP"; then 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5408$as_echo "$OBJDUMP" >&6; } 5409else 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5411$as_echo "no" >&6; } 5412fi 5413 5414 5415fi 5416if test -z "$ac_cv_prog_OBJDUMP"; then 5417 ac_ct_OBJDUMP=$OBJDUMP 5418 # Extract the first word of "objdump", so it can be a program name with args. 5419set dummy objdump; ac_word=$2 5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5421$as_echo_n "checking for $ac_word... " >&6; } 5422if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 if test -n "$ac_ct_OBJDUMP"; then 5426 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5427else 5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5429for as_dir in $PATH 5430do 5431 IFS=$as_save_IFS 5432 test -z "$as_dir" && as_dir=. 5433 for ac_exec_ext in '' $ac_executable_extensions; do 5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5435 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5437 break 2 5438 fi 5439done 5440 done 5441IFS=$as_save_IFS 5442 5443fi 5444fi 5445ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5446if test -n "$ac_ct_OBJDUMP"; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5448$as_echo "$ac_ct_OBJDUMP" >&6; } 5449else 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5451$as_echo "no" >&6; } 5452fi 5453 5454 if test "x$ac_ct_OBJDUMP" = x; then 5455 OBJDUMP="false" 5456 else 5457 case $cross_compiling:$ac_tool_warned in 5458yes:) 5459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5461ac_tool_warned=yes ;; 5462esac 5463 OBJDUMP=$ac_ct_OBJDUMP 5464 fi 5465else 5466 OBJDUMP="$ac_cv_prog_OBJDUMP" 5467fi 5468 5469test -z "$OBJDUMP" && OBJDUMP=objdump 5470 5471 5472 5473 5474 5475 5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5477$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5478if ${lt_cv_deplibs_check_method+:} false; then : 5479 $as_echo_n "(cached) " >&6 5480else 5481 lt_cv_file_magic_cmd='$MAGIC_CMD' 5482lt_cv_file_magic_test_file= 5483lt_cv_deplibs_check_method='unknown' 5484# Need to set the preceding variable on all platforms that support 5485# interlibrary dependencies. 5486# 'none' -- dependencies not supported. 5487# 'unknown' -- same as none, but documents that we really don't know. 5488# 'pass_all' -- all dependencies passed with no checks. 5489# 'test_compile' -- check by making test program. 5490# 'file_magic [[regex]]' -- check by looking for files in library path 5491# that responds to the $file_magic_cmd with a given extended regex. 5492# If you have 'file' or equivalent on your system and you're not sure 5493# whether 'pass_all' will *always* work, you probably want this one. 5494 5495case $host_os in 5496aix[4-9]*) 5497 lt_cv_deplibs_check_method=pass_all 5498 ;; 5499 5500beos*) 5501 lt_cv_deplibs_check_method=pass_all 5502 ;; 5503 5504bsdi[45]*) 5505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5506 lt_cv_file_magic_cmd='/usr/bin/file -L' 5507 lt_cv_file_magic_test_file=/shlib/libc.so 5508 ;; 5509 5510cygwin*) 5511 # func_win32_libid is a shell function defined in ltmain.sh 5512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5513 lt_cv_file_magic_cmd='func_win32_libid' 5514 ;; 5515 5516mingw* | pw32*) 5517 # Base MSYS/MinGW do not provide the 'file' command needed by 5518 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5519 # unless we find 'file', for example because we are cross-compiling. 5520 if ( file / ) >/dev/null 2>&1; then 5521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5522 lt_cv_file_magic_cmd='func_win32_libid' 5523 else 5524 # Keep this pattern in sync with the one in func_win32_libid. 5525 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5526 lt_cv_file_magic_cmd='$OBJDUMP -f' 5527 fi 5528 ;; 5529 5530cegcc*) 5531 # use the weaker test based on 'objdump'. See mingw*. 5532 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5533 lt_cv_file_magic_cmd='$OBJDUMP -f' 5534 ;; 5535 5536darwin* | rhapsody*) 5537 lt_cv_deplibs_check_method=pass_all 5538 ;; 5539 5540freebsd* | dragonfly*) 5541 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5542 case $host_cpu in 5543 i*86 ) 5544 # Not sure whether the presence of OpenBSD here was a mistake. 5545 # Let's accept both of them until this is cleared up. 5546 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5547 lt_cv_file_magic_cmd=/usr/bin/file 5548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5549 ;; 5550 esac 5551 else 5552 lt_cv_deplibs_check_method=pass_all 5553 fi 5554 ;; 5555 5556haiku*) 5557 lt_cv_deplibs_check_method=pass_all 5558 ;; 5559 5560hpux10.20* | hpux11*) 5561 lt_cv_file_magic_cmd=/usr/bin/file 5562 case $host_cpu in 5563 ia64*) 5564 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5565 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5566 ;; 5567 hppa*64*) 5568 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]' 5569 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5570 ;; 5571 *) 5572 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5573 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5574 ;; 5575 esac 5576 ;; 5577 5578interix[3-9]*) 5579 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5581 ;; 5582 5583irix5* | irix6* | nonstopux*) 5584 case $LD in 5585 *-32|*"-32 ") libmagic=32-bit;; 5586 *-n32|*"-n32 ") libmagic=N32;; 5587 *-64|*"-64 ") libmagic=64-bit;; 5588 *) libmagic=never-match;; 5589 esac 5590 lt_cv_deplibs_check_method=pass_all 5591 ;; 5592 5593# This must be glibc/ELF. 5594linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5595 lt_cv_deplibs_check_method=pass_all 5596 ;; 5597 5598netbsd* | netbsdelf*-gnu) 5599 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5601 else 5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5603 fi 5604 ;; 5605 5606newos6*) 5607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5608 lt_cv_file_magic_cmd=/usr/bin/file 5609 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5610 ;; 5611 5612*nto* | *qnx*) 5613 lt_cv_deplibs_check_method=pass_all 5614 ;; 5615 5616openbsd* | bitrig*) 5617 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5619 else 5620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5621 fi 5622 ;; 5623 5624osf3* | osf4* | osf5*) 5625 lt_cv_deplibs_check_method=pass_all 5626 ;; 5627 5628rdos*) 5629 lt_cv_deplibs_check_method=pass_all 5630 ;; 5631 5632solaris*) 5633 lt_cv_deplibs_check_method=pass_all 5634 ;; 5635 5636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5637 lt_cv_deplibs_check_method=pass_all 5638 ;; 5639 5640sysv4 | sysv4.3*) 5641 case $host_vendor in 5642 motorola) 5643 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]' 5644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5645 ;; 5646 ncr) 5647 lt_cv_deplibs_check_method=pass_all 5648 ;; 5649 sequent) 5650 lt_cv_file_magic_cmd='/bin/file' 5651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5652 ;; 5653 sni) 5654 lt_cv_file_magic_cmd='/bin/file' 5655 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5656 lt_cv_file_magic_test_file=/lib/libc.so 5657 ;; 5658 siemens) 5659 lt_cv_deplibs_check_method=pass_all 5660 ;; 5661 pc) 5662 lt_cv_deplibs_check_method=pass_all 5663 ;; 5664 esac 5665 ;; 5666 5667tpf*) 5668 lt_cv_deplibs_check_method=pass_all 5669 ;; 5670os2*) 5671 lt_cv_deplibs_check_method=pass_all 5672 ;; 5673esac 5674 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5677$as_echo "$lt_cv_deplibs_check_method" >&6; } 5678 5679file_magic_glob= 5680want_nocaseglob=no 5681if test "$build" = "$host"; then 5682 case $host_os in 5683 mingw* | pw32*) 5684 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5685 want_nocaseglob=yes 5686 else 5687 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5688 fi 5689 ;; 5690 esac 5691fi 5692 5693file_magic_cmd=$lt_cv_file_magic_cmd 5694deplibs_check_method=$lt_cv_deplibs_check_method 5695test -z "$deplibs_check_method" && deplibs_check_method=unknown 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718if test -n "$ac_tool_prefix"; then 5719 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5720set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then : 5724 $as_echo_n "(cached) " >&6 5725else 5726 if test -n "$DLLTOOL"; then 5727 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool" 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 5746DLLTOOL=$ac_cv_prog_DLLTOOL 5747if test -n "$DLLTOOL"; then 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5749$as_echo "$DLLTOOL" >&6; } 5750else 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5752$as_echo "no" >&6; } 5753fi 5754 5755 5756fi 5757if test -z "$ac_cv_prog_DLLTOOL"; then 5758 ac_ct_DLLTOOL=$DLLTOOL 5759 # Extract the first word of "dlltool", so it can be a program name with args. 5760set dummy dlltool; ac_word=$2 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5762$as_echo_n "checking for $ac_word... " >&6; } 5763if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5764 $as_echo_n "(cached) " >&6 5765else 5766 if test -n "$ac_ct_DLLTOOL"; then 5767 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5768else 5769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5770for as_dir in $PATH 5771do 5772 IFS=$as_save_IFS 5773 test -z "$as_dir" && as_dir=. 5774 for ac_exec_ext in '' $ac_executable_extensions; do 5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5776 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5778 break 2 5779 fi 5780done 5781 done 5782IFS=$as_save_IFS 5783 5784fi 5785fi 5786ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5787if test -n "$ac_ct_DLLTOOL"; then 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5789$as_echo "$ac_ct_DLLTOOL" >&6; } 5790else 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5792$as_echo "no" >&6; } 5793fi 5794 5795 if test "x$ac_ct_DLLTOOL" = x; then 5796 DLLTOOL="false" 5797 else 5798 case $cross_compiling:$ac_tool_warned in 5799yes:) 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5802ac_tool_warned=yes ;; 5803esac 5804 DLLTOOL=$ac_ct_DLLTOOL 5805 fi 5806else 5807 DLLTOOL="$ac_cv_prog_DLLTOOL" 5808fi 5809 5810test -z "$DLLTOOL" && DLLTOOL=dlltool 5811 5812 5813 5814 5815 5816 5817 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5819$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5820if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 lt_cv_sharedlib_from_linklib_cmd='unknown' 5824 5825case $host_os in 5826cygwin* | mingw* | pw32* | cegcc*) 5827 # two different shell functions defined in ltmain.sh; 5828 # decide which one to use based on capabilities of $DLLTOOL 5829 case `$DLLTOOL --help 2>&1` in 5830 *--identify-strict*) 5831 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5832 ;; 5833 *) 5834 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5835 ;; 5836 esac 5837 ;; 5838*) 5839 # fallback: assume linklib IS sharedlib 5840 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5841 ;; 5842esac 5843 5844fi 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5846$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5847sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5848test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5849 5850 5851 5852 5853 5854 5855 5856 5857if test -n "$ac_tool_prefix"; then 5858 for ac_prog in ar 5859 do 5860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5861set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5863$as_echo_n "checking for $ac_word... " >&6; } 5864if ${ac_cv_prog_AR+:} false; then : 5865 $as_echo_n "(cached) " >&6 5866else 5867 if test -n "$AR"; then 5868 ac_cv_prog_AR="$AR" # Let the user override the test. 5869else 5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5871for as_dir in $PATH 5872do 5873 IFS=$as_save_IFS 5874 test -z "$as_dir" && as_dir=. 5875 for ac_exec_ext in '' $ac_executable_extensions; do 5876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5877 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5879 break 2 5880 fi 5881done 5882 done 5883IFS=$as_save_IFS 5884 5885fi 5886fi 5887AR=$ac_cv_prog_AR 5888if test -n "$AR"; then 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5890$as_echo "$AR" >&6; } 5891else 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5893$as_echo "no" >&6; } 5894fi 5895 5896 5897 test -n "$AR" && break 5898 done 5899fi 5900if test -z "$AR"; then 5901 ac_ct_AR=$AR 5902 for ac_prog in ar 5903do 5904 # Extract the first word of "$ac_prog", so it can be a program name with args. 5905set dummy $ac_prog; ac_word=$2 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5907$as_echo_n "checking for $ac_word... " >&6; } 5908if ${ac_cv_prog_ac_ct_AR+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910else 5911 if test -n "$ac_ct_AR"; then 5912 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5913else 5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5915for as_dir in $PATH 5916do 5917 IFS=$as_save_IFS 5918 test -z "$as_dir" && as_dir=. 5919 for ac_exec_ext in '' $ac_executable_extensions; do 5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5921 ac_cv_prog_ac_ct_AR="$ac_prog" 5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5923 break 2 5924 fi 5925done 5926 done 5927IFS=$as_save_IFS 5928 5929fi 5930fi 5931ac_ct_AR=$ac_cv_prog_ac_ct_AR 5932if test -n "$ac_ct_AR"; then 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5934$as_echo "$ac_ct_AR" >&6; } 5935else 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5937$as_echo "no" >&6; } 5938fi 5939 5940 5941 test -n "$ac_ct_AR" && break 5942done 5943 5944 if test "x$ac_ct_AR" = x; then 5945 AR="false" 5946 else 5947 case $cross_compiling:$ac_tool_warned in 5948yes:) 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5951ac_tool_warned=yes ;; 5952esac 5953 AR=$ac_ct_AR 5954 fi 5955fi 5956 5957: ${AR=ar} 5958: ${AR_FLAGS=cr} 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5971$as_echo_n "checking for archiver @FILE support... " >&6; } 5972if ${lt_cv_ar_at_file+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 lt_cv_ar_at_file=no 5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5977/* end confdefs.h. */ 5978 5979int 5980main () 5981{ 5982 5983 ; 5984 return 0; 5985} 5986_ACEOF 5987if ac_fn_c_try_compile "$LINENO"; then : 5988 echo conftest.$ac_objext > conftest.lst 5989 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5991 (eval $lt_ar_try) 2>&5 5992 ac_status=$? 5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5994 test $ac_status = 0; } 5995 if test 0 -eq "$ac_status"; then 5996 # Ensure the archiver fails upon bogus file names. 5997 rm -f conftest.$ac_objext libconftest.a 5998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5999 (eval $lt_ar_try) 2>&5 6000 ac_status=$? 6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6002 test $ac_status = 0; } 6003 if test 0 -ne "$ac_status"; then 6004 lt_cv_ar_at_file=@ 6005 fi 6006 fi 6007 rm -f conftest.* libconftest.a 6008 6009fi 6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6011 6012fi 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6014$as_echo "$lt_cv_ar_at_file" >&6; } 6015 6016if test no = "$lt_cv_ar_at_file"; then 6017 archiver_list_spec= 6018else 6019 archiver_list_spec=$lt_cv_ar_at_file 6020fi 6021 6022 6023 6024 6025 6026 6027 6028if test -n "$ac_tool_prefix"; then 6029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6030set dummy ${ac_tool_prefix}strip; ac_word=$2 6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6032$as_echo_n "checking for $ac_word... " >&6; } 6033if ${ac_cv_prog_STRIP+:} false; then : 6034 $as_echo_n "(cached) " >&6 6035else 6036 if test -n "$STRIP"; then 6037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6038else 6039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6040for as_dir in $PATH 6041do 6042 IFS=$as_save_IFS 6043 test -z "$as_dir" && as_dir=. 6044 for ac_exec_ext in '' $ac_executable_extensions; do 6045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6046 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6048 break 2 6049 fi 6050done 6051 done 6052IFS=$as_save_IFS 6053 6054fi 6055fi 6056STRIP=$ac_cv_prog_STRIP 6057if test -n "$STRIP"; then 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6059$as_echo "$STRIP" >&6; } 6060else 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6062$as_echo "no" >&6; } 6063fi 6064 6065 6066fi 6067if test -z "$ac_cv_prog_STRIP"; then 6068 ac_ct_STRIP=$STRIP 6069 # Extract the first word of "strip", so it can be a program name with args. 6070set dummy strip; ac_word=$2 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6072$as_echo_n "checking for $ac_word... " >&6; } 6073if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6074 $as_echo_n "(cached) " >&6 6075else 6076 if test -n "$ac_ct_STRIP"; then 6077 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6078else 6079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6080for as_dir in $PATH 6081do 6082 IFS=$as_save_IFS 6083 test -z "$as_dir" && as_dir=. 6084 for ac_exec_ext in '' $ac_executable_extensions; do 6085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6086 ac_cv_prog_ac_ct_STRIP="strip" 6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6088 break 2 6089 fi 6090done 6091 done 6092IFS=$as_save_IFS 6093 6094fi 6095fi 6096ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6097if test -n "$ac_ct_STRIP"; then 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6099$as_echo "$ac_ct_STRIP" >&6; } 6100else 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6102$as_echo "no" >&6; } 6103fi 6104 6105 if test "x$ac_ct_STRIP" = x; then 6106 STRIP=":" 6107 else 6108 case $cross_compiling:$ac_tool_warned in 6109yes:) 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6111$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6112ac_tool_warned=yes ;; 6113esac 6114 STRIP=$ac_ct_STRIP 6115 fi 6116else 6117 STRIP="$ac_cv_prog_STRIP" 6118fi 6119 6120test -z "$STRIP" && STRIP=: 6121 6122 6123 6124 6125 6126 6127if test -n "$ac_tool_prefix"; then 6128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6129set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6131$as_echo_n "checking for $ac_word... " >&6; } 6132if ${ac_cv_prog_RANLIB+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 if test -n "$RANLIB"; then 6136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6137else 6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139for as_dir in $PATH 6140do 6141 IFS=$as_save_IFS 6142 test -z "$as_dir" && as_dir=. 6143 for ac_exec_ext in '' $ac_executable_extensions; do 6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6147 break 2 6148 fi 6149done 6150 done 6151IFS=$as_save_IFS 6152 6153fi 6154fi 6155RANLIB=$ac_cv_prog_RANLIB 6156if test -n "$RANLIB"; then 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6158$as_echo "$RANLIB" >&6; } 6159else 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6161$as_echo "no" >&6; } 6162fi 6163 6164 6165fi 6166if test -z "$ac_cv_prog_RANLIB"; then 6167 ac_ct_RANLIB=$RANLIB 6168 # Extract the first word of "ranlib", so it can be a program name with args. 6169set dummy ranlib; ac_word=$2 6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6171$as_echo_n "checking for $ac_word... " >&6; } 6172if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6173 $as_echo_n "(cached) " >&6 6174else 6175 if test -n "$ac_ct_RANLIB"; then 6176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6177else 6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6179for as_dir in $PATH 6180do 6181 IFS=$as_save_IFS 6182 test -z "$as_dir" && as_dir=. 6183 for ac_exec_ext in '' $ac_executable_extensions; do 6184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6185 ac_cv_prog_ac_ct_RANLIB="ranlib" 6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6187 break 2 6188 fi 6189done 6190 done 6191IFS=$as_save_IFS 6192 6193fi 6194fi 6195ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6196if test -n "$ac_ct_RANLIB"; then 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6198$as_echo "$ac_ct_RANLIB" >&6; } 6199else 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6201$as_echo "no" >&6; } 6202fi 6203 6204 if test "x$ac_ct_RANLIB" = x; then 6205 RANLIB=":" 6206 else 6207 case $cross_compiling:$ac_tool_warned in 6208yes:) 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6211ac_tool_warned=yes ;; 6212esac 6213 RANLIB=$ac_ct_RANLIB 6214 fi 6215else 6216 RANLIB="$ac_cv_prog_RANLIB" 6217fi 6218 6219test -z "$RANLIB" && RANLIB=: 6220 6221 6222 6223 6224 6225 6226# Determine commands to create old-style static archives. 6227old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6228old_postinstall_cmds='chmod 644 $oldlib' 6229old_postuninstall_cmds= 6230 6231if test -n "$RANLIB"; then 6232 case $host_os in 6233 bitrig* | openbsd*) 6234 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6235 ;; 6236 *) 6237 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6238 ;; 6239 esac 6240 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6241fi 6242 6243case $host_os in 6244 darwin*) 6245 lock_old_archive_extraction=yes ;; 6246 *) 6247 lock_old_archive_extraction=no ;; 6248esac 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288# If no C compiler was specified, use CC. 6289LTCC=${LTCC-"$CC"} 6290 6291# If no C compiler flags were specified, use CFLAGS. 6292LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6293 6294# Allow CC to be a program name with arguments. 6295compiler=$CC 6296 6297 6298# Check for command to grab the raw symbol name followed by C symbol from nm. 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6300$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6301if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 6305# These are sane defaults that work on at least a few old systems. 6306# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6307 6308# Character class describing NM global symbol codes. 6309symcode='[BCDEGRST]' 6310 6311# Regexp to match symbols that can be accessed directly from C. 6312sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6313 6314# Define system-specific variables. 6315case $host_os in 6316aix*) 6317 symcode='[BCDT]' 6318 ;; 6319cygwin* | mingw* | pw32* | cegcc*) 6320 symcode='[ABCDGISTW]' 6321 ;; 6322hpux*) 6323 if test ia64 = "$host_cpu"; then 6324 symcode='[ABCDEGRST]' 6325 fi 6326 ;; 6327irix* | nonstopux*) 6328 symcode='[BCDEGRST]' 6329 ;; 6330osf*) 6331 symcode='[BCDEGQRST]' 6332 ;; 6333solaris*) 6334 symcode='[BDRT]' 6335 ;; 6336sco3.2v5*) 6337 symcode='[DT]' 6338 ;; 6339sysv4.2uw2*) 6340 symcode='[DT]' 6341 ;; 6342sysv5* | sco5v6* | unixware* | OpenUNIX*) 6343 symcode='[ABDT]' 6344 ;; 6345sysv4) 6346 symcode='[DFNSTU]' 6347 ;; 6348esac 6349 6350# If we're using GNU nm, then use its standard symbol codes. 6351case `$NM -V 2>&1` in 6352*GNU* | *'with BFD'*) 6353 symcode='[ABCDGIRSTW]' ;; 6354esac 6355 6356if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6357 # Gets list of data symbols to import. 6358 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6359 # Adjust the below global symbol transforms to fixup imported variables. 6360 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6361 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6362 lt_c_name_lib_hook="\ 6363 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6364 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6365else 6366 # Disable hooks by default. 6367 lt_cv_sys_global_symbol_to_import= 6368 lt_cdecl_hook= 6369 lt_c_name_hook= 6370 lt_c_name_lib_hook= 6371fi 6372 6373# Transform an extracted symbol line into a proper C declaration. 6374# Some systems (esp. on ia64) link data and code symbols differently, 6375# so use this general approach. 6376lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6377$lt_cdecl_hook\ 6378" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6379" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6380 6381# Transform an extracted symbol line into symbol name and symbol address 6382lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6383$lt_c_name_hook\ 6384" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6385" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6386 6387# Transform an extracted symbol line into symbol name with lib prefix and 6388# symbol address. 6389lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6390$lt_c_name_lib_hook\ 6391" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6392" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6393" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6394 6395# Handle CRLF in mingw tool chain 6396opt_cr= 6397case $build_os in 6398mingw*) 6399 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6400 ;; 6401esac 6402 6403# Try without a prefix underscore, then with it. 6404for ac_symprfx in "" "_"; do 6405 6406 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6407 symxfrm="\\1 $ac_symprfx\\2 \\2" 6408 6409 # Write the raw and C identifiers. 6410 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6411 # Fake it for dumpbin and say T for any non-static function, 6412 # D for any global variable and I for any imported variable. 6413 # Also find C++ and __fastcall symbols from MSVC++, 6414 # which start with @ or ?. 6415 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6416" {last_section=section; section=\$ 3};"\ 6417" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6418" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6419" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6420" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6421" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6422" \$ 0!~/External *\|/{next};"\ 6423" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6424" {if(hide[section]) next};"\ 6425" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6426" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6427" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6428" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6429" ' prfx=^$ac_symprfx" 6430 else 6431 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6432 fi 6433 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6434 6435 # Check to see that the pipe works correctly. 6436 pipe_works=no 6437 6438 rm -f conftest* 6439 cat > conftest.$ac_ext <<_LT_EOF 6440#ifdef __cplusplus 6441extern "C" { 6442#endif 6443char nm_test_var; 6444void nm_test_func(void); 6445void nm_test_func(void){} 6446#ifdef __cplusplus 6447} 6448#endif 6449int main(){nm_test_var='a';nm_test_func();return(0);} 6450_LT_EOF 6451 6452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6453 (eval $ac_compile) 2>&5 6454 ac_status=$? 6455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6456 test $ac_status = 0; }; then 6457 # Now try to grab the symbols. 6458 nlist=conftest.nm 6459 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6460 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6461 # Try sorting and uniquifying the output. 6462 if sort "$nlist" | uniq > "$nlist"T; then 6463 mv -f "$nlist"T "$nlist" 6464 else 6465 rm -f "$nlist"T 6466 fi 6467 6468 # Make sure that we snagged all the symbols we need. 6469 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6470 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6471 cat <<_LT_EOF > conftest.$ac_ext 6472/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6473#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6474/* DATA imports from DLLs on WIN32 can't be const, because runtime 6475 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6476# define LT_DLSYM_CONST 6477#elif defined __osf__ 6478/* This system does not cope well with relocations in const data. */ 6479# define LT_DLSYM_CONST 6480#else 6481# define LT_DLSYM_CONST const 6482#endif 6483 6484#ifdef __cplusplus 6485extern "C" { 6486#endif 6487 6488_LT_EOF 6489 # Now generate the symbol file. 6490 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6491 6492 cat <<_LT_EOF >> conftest.$ac_ext 6493 6494/* The mapping between symbol names and symbols. */ 6495LT_DLSYM_CONST struct { 6496 const char *name; 6497 void *address; 6498} 6499lt__PROGRAM__LTX_preloaded_symbols[] = 6500{ 6501 { "@PROGRAM@", (void *) 0 }, 6502_LT_EOF 6503 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6504 cat <<\_LT_EOF >> conftest.$ac_ext 6505 {0, (void *) 0} 6506}; 6507 6508/* This works around a problem in FreeBSD linker */ 6509#ifdef FREEBSD_WORKAROUND 6510static const void *lt_preloaded_setup() { 6511 return lt__PROGRAM__LTX_preloaded_symbols; 6512} 6513#endif 6514 6515#ifdef __cplusplus 6516} 6517#endif 6518_LT_EOF 6519 # Now try linking the two files. 6520 mv conftest.$ac_objext conftstm.$ac_objext 6521 lt_globsym_save_LIBS=$LIBS 6522 lt_globsym_save_CFLAGS=$CFLAGS 6523 LIBS=conftstm.$ac_objext 6524 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6526 (eval $ac_link) 2>&5 6527 ac_status=$? 6528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6529 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6530 pipe_works=yes 6531 fi 6532 LIBS=$lt_globsym_save_LIBS 6533 CFLAGS=$lt_globsym_save_CFLAGS 6534 else 6535 echo "cannot find nm_test_func in $nlist" >&5 6536 fi 6537 else 6538 echo "cannot find nm_test_var in $nlist" >&5 6539 fi 6540 else 6541 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6542 fi 6543 else 6544 echo "$progname: failed program was:" >&5 6545 cat conftest.$ac_ext >&5 6546 fi 6547 rm -rf conftest* conftst* 6548 6549 # Do not use the global_symbol_pipe unless it works. 6550 if test yes = "$pipe_works"; then 6551 break 6552 else 6553 lt_cv_sys_global_symbol_pipe= 6554 fi 6555done 6556 6557fi 6558 6559if test -z "$lt_cv_sys_global_symbol_pipe"; then 6560 lt_cv_sys_global_symbol_to_cdecl= 6561fi 6562if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6564$as_echo "failed" >&6; } 6565else 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6567$as_echo "ok" >&6; } 6568fi 6569 6570# Response file support. 6571if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6572 nm_file_list_spec='@' 6573elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6574 nm_file_list_spec='@' 6575fi 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6614$as_echo_n "checking for sysroot... " >&6; } 6615 6616# Check whether --with-sysroot was given. 6617if test "${with_sysroot+set}" = set; then : 6618 withval=$with_sysroot; 6619else 6620 with_sysroot=no 6621fi 6622 6623 6624lt_sysroot= 6625case $with_sysroot in #( 6626 yes) 6627 if test yes = "$GCC"; then 6628 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6629 fi 6630 ;; #( 6631 /*) 6632 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6633 ;; #( 6634 no|'') 6635 ;; #( 6636 *) 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6638$as_echo "$with_sysroot" >&6; } 6639 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6640 ;; 6641esac 6642 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6644$as_echo "${lt_sysroot:-no}" >&6; } 6645 6646 6647 6648 6649 6650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6651$as_echo_n "checking for a working dd... " >&6; } 6652if ${ac_cv_path_lt_DD+:} false; then : 6653 $as_echo_n "(cached) " >&6 6654else 6655 printf 0123456789abcdef0123456789abcdef >conftest.i 6656cat conftest.i conftest.i >conftest2.i 6657: ${lt_DD:=$DD} 6658if test -z "$lt_DD"; then 6659 ac_path_lt_DD_found=false 6660 # Loop through the user's path and test for each of PROGNAME-LIST 6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6662for as_dir in $PATH 6663do 6664 IFS=$as_save_IFS 6665 test -z "$as_dir" && as_dir=. 6666 for ac_prog in dd; do 6667 for ac_exec_ext in '' $ac_executable_extensions; do 6668 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6669 as_fn_executable_p "$ac_path_lt_DD" || continue 6670if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6671 cmp -s conftest.i conftest.out \ 6672 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6673fi 6674 $ac_path_lt_DD_found && break 3 6675 done 6676 done 6677 done 6678IFS=$as_save_IFS 6679 if test -z "$ac_cv_path_lt_DD"; then 6680 : 6681 fi 6682else 6683 ac_cv_path_lt_DD=$lt_DD 6684fi 6685 6686rm -f conftest.i conftest2.i conftest.out 6687fi 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6689$as_echo "$ac_cv_path_lt_DD" >&6; } 6690 6691 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6693$as_echo_n "checking how to truncate binary pipes... " >&6; } 6694if ${lt_cv_truncate_bin+:} false; then : 6695 $as_echo_n "(cached) " >&6 6696else 6697 printf 0123456789abcdef0123456789abcdef >conftest.i 6698cat conftest.i conftest.i >conftest2.i 6699lt_cv_truncate_bin= 6700if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6701 cmp -s conftest.i conftest.out \ 6702 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6703fi 6704rm -f conftest.i conftest2.i conftest.out 6705test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6706fi 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6708$as_echo "$lt_cv_truncate_bin" >&6; } 6709 6710 6711 6712 6713 6714 6715 6716# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6717func_cc_basename () 6718{ 6719 for cc_temp in $*""; do 6720 case $cc_temp in 6721 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6722 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6723 \-*) ;; 6724 *) break;; 6725 esac 6726 done 6727 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6728} 6729 6730# Check whether --enable-libtool-lock was given. 6731if test "${enable_libtool_lock+set}" = set; then : 6732 enableval=$enable_libtool_lock; 6733fi 6734 6735test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6736 6737# Some flags need to be propagated to the compiler or linker for good 6738# libtool support. 6739case $host in 6740ia64-*-hpux*) 6741 # Find out what ABI is being produced by ac_compile, and set mode 6742 # options accordingly. 6743 echo 'int i;' > conftest.$ac_ext 6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6745 (eval $ac_compile) 2>&5 6746 ac_status=$? 6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6748 test $ac_status = 0; }; then 6749 case `/usr/bin/file conftest.$ac_objext` in 6750 *ELF-32*) 6751 HPUX_IA64_MODE=32 6752 ;; 6753 *ELF-64*) 6754 HPUX_IA64_MODE=64 6755 ;; 6756 esac 6757 fi 6758 rm -rf conftest* 6759 ;; 6760*-*-irix6*) 6761 # Find out what ABI is being produced by ac_compile, and set linker 6762 # options accordingly. 6763 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6765 (eval $ac_compile) 2>&5 6766 ac_status=$? 6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6768 test $ac_status = 0; }; then 6769 if test yes = "$lt_cv_prog_gnu_ld"; then 6770 case `/usr/bin/file conftest.$ac_objext` in 6771 *32-bit*) 6772 LD="${LD-ld} -melf32bsmip" 6773 ;; 6774 *N32*) 6775 LD="${LD-ld} -melf32bmipn32" 6776 ;; 6777 *64-bit*) 6778 LD="${LD-ld} -melf64bmip" 6779 ;; 6780 esac 6781 else 6782 case `/usr/bin/file conftest.$ac_objext` in 6783 *32-bit*) 6784 LD="${LD-ld} -32" 6785 ;; 6786 *N32*) 6787 LD="${LD-ld} -n32" 6788 ;; 6789 *64-bit*) 6790 LD="${LD-ld} -64" 6791 ;; 6792 esac 6793 fi 6794 fi 6795 rm -rf conftest* 6796 ;; 6797 6798mips64*-*linux*) 6799 # Find out what ABI is being produced by ac_compile, and set linker 6800 # options accordingly. 6801 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6803 (eval $ac_compile) 2>&5 6804 ac_status=$? 6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6806 test $ac_status = 0; }; then 6807 emul=elf 6808 case `/usr/bin/file conftest.$ac_objext` in 6809 *32-bit*) 6810 emul="${emul}32" 6811 ;; 6812 *64-bit*) 6813 emul="${emul}64" 6814 ;; 6815 esac 6816 case `/usr/bin/file conftest.$ac_objext` in 6817 *MSB*) 6818 emul="${emul}btsmip" 6819 ;; 6820 *LSB*) 6821 emul="${emul}ltsmip" 6822 ;; 6823 esac 6824 case `/usr/bin/file conftest.$ac_objext` in 6825 *N32*) 6826 emul="${emul}n32" 6827 ;; 6828 esac 6829 LD="${LD-ld} -m $emul" 6830 fi 6831 rm -rf conftest* 6832 ;; 6833 6834x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6835s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6836 # Find out what ABI is being produced by ac_compile, and set linker 6837 # options accordingly. Note that the listed cases only cover the 6838 # situations where additional linker options are needed (such as when 6839 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6840 # vice versa); the common cases where no linker options are needed do 6841 # not appear in the list. 6842 echo 'int i;' > conftest.$ac_ext 6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6844 (eval $ac_compile) 2>&5 6845 ac_status=$? 6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6847 test $ac_status = 0; }; then 6848 case `/usr/bin/file conftest.o` in 6849 *32-bit*) 6850 case $host in 6851 x86_64-*kfreebsd*-gnu) 6852 LD="${LD-ld} -m elf_i386_fbsd" 6853 ;; 6854 x86_64-*linux*) 6855 case `/usr/bin/file conftest.o` in 6856 *x86-64*) 6857 LD="${LD-ld} -m elf32_x86_64" 6858 ;; 6859 *) 6860 LD="${LD-ld} -m elf_i386" 6861 ;; 6862 esac 6863 ;; 6864 powerpc64le-*linux*) 6865 LD="${LD-ld} -m elf32lppclinux" 6866 ;; 6867 powerpc64-*linux*) 6868 LD="${LD-ld} -m elf32ppclinux" 6869 ;; 6870 s390x-*linux*) 6871 LD="${LD-ld} -m elf_s390" 6872 ;; 6873 sparc64-*linux*) 6874 LD="${LD-ld} -m elf32_sparc" 6875 ;; 6876 esac 6877 ;; 6878 *64-bit*) 6879 case $host in 6880 x86_64-*kfreebsd*-gnu) 6881 LD="${LD-ld} -m elf_x86_64_fbsd" 6882 ;; 6883 x86_64-*linux*) 6884 LD="${LD-ld} -m elf_x86_64" 6885 ;; 6886 powerpcle-*linux*) 6887 LD="${LD-ld} -m elf64lppc" 6888 ;; 6889 powerpc-*linux*) 6890 LD="${LD-ld} -m elf64ppc" 6891 ;; 6892 s390*-*linux*|s390*-*tpf*) 6893 LD="${LD-ld} -m elf64_s390" 6894 ;; 6895 sparc*-*linux*) 6896 LD="${LD-ld} -m elf64_sparc" 6897 ;; 6898 esac 6899 ;; 6900 esac 6901 fi 6902 rm -rf conftest* 6903 ;; 6904 6905*-*-sco3.2v5*) 6906 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6907 SAVE_CFLAGS=$CFLAGS 6908 CFLAGS="$CFLAGS -belf" 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6910$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6911if ${lt_cv_cc_needs_belf+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913else 6914 ac_ext=c 6915ac_cpp='$CPP $CPPFLAGS' 6916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6918ac_compiler_gnu=$ac_cv_c_compiler_gnu 6919 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922 6923int 6924main () 6925{ 6926 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931if ac_fn_c_try_link "$LINENO"; then : 6932 lt_cv_cc_needs_belf=yes 6933else 6934 lt_cv_cc_needs_belf=no 6935fi 6936rm -f core conftest.err conftest.$ac_objext \ 6937 conftest$ac_exeext conftest.$ac_ext 6938 ac_ext=c 6939ac_cpp='$CPP $CPPFLAGS' 6940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6942ac_compiler_gnu=$ac_cv_c_compiler_gnu 6943 6944fi 6945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6946$as_echo "$lt_cv_cc_needs_belf" >&6; } 6947 if test yes != "$lt_cv_cc_needs_belf"; then 6948 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6949 CFLAGS=$SAVE_CFLAGS 6950 fi 6951 ;; 6952*-*solaris*) 6953 # Find out what ABI is being produced by ac_compile, and set linker 6954 # options accordingly. 6955 echo 'int i;' > conftest.$ac_ext 6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6957 (eval $ac_compile) 2>&5 6958 ac_status=$? 6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6960 test $ac_status = 0; }; then 6961 case `/usr/bin/file conftest.o` in 6962 *64-bit*) 6963 case $lt_cv_prog_gnu_ld in 6964 yes*) 6965 case $host in 6966 i?86-*-solaris*|x86_64-*-solaris*) 6967 LD="${LD-ld} -m elf_x86_64" 6968 ;; 6969 sparc*-*-solaris*) 6970 LD="${LD-ld} -m elf64_sparc" 6971 ;; 6972 esac 6973 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6974 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6975 LD=${LD-ld}_sol2 6976 fi 6977 ;; 6978 *) 6979 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6980 LD="${LD-ld} -64" 6981 fi 6982 ;; 6983 esac 6984 ;; 6985 esac 6986 fi 6987 rm -rf conftest* 6988 ;; 6989esac 6990 6991need_locks=$enable_libtool_lock 6992 6993if test -n "$ac_tool_prefix"; then 6994 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6995set dummy ${ac_tool_prefix}mt; ac_word=$2 6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6997$as_echo_n "checking for $ac_word... " >&6; } 6998if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6999 $as_echo_n "(cached) " >&6 7000else 7001 if test -n "$MANIFEST_TOOL"; then 7002 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7003else 7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7005for as_dir in $PATH 7006do 7007 IFS=$as_save_IFS 7008 test -z "$as_dir" && as_dir=. 7009 for ac_exec_ext in '' $ac_executable_extensions; do 7010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7011 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7013 break 2 7014 fi 7015done 7016 done 7017IFS=$as_save_IFS 7018 7019fi 7020fi 7021MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7022if test -n "$MANIFEST_TOOL"; then 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7024$as_echo "$MANIFEST_TOOL" >&6; } 7025else 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7027$as_echo "no" >&6; } 7028fi 7029 7030 7031fi 7032if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7033 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7034 # Extract the first word of "mt", so it can be a program name with args. 7035set dummy mt; ac_word=$2 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7037$as_echo_n "checking for $ac_word... " >&6; } 7038if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7039 $as_echo_n "(cached) " >&6 7040else 7041 if test -n "$ac_ct_MANIFEST_TOOL"; then 7042 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7043else 7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7045for as_dir in $PATH 7046do 7047 IFS=$as_save_IFS 7048 test -z "$as_dir" && as_dir=. 7049 for ac_exec_ext in '' $ac_executable_extensions; do 7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7051 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7053 break 2 7054 fi 7055done 7056 done 7057IFS=$as_save_IFS 7058 7059fi 7060fi 7061ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7062if test -n "$ac_ct_MANIFEST_TOOL"; then 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7064$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7065else 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7067$as_echo "no" >&6; } 7068fi 7069 7070 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7071 MANIFEST_TOOL=":" 7072 else 7073 case $cross_compiling:$ac_tool_warned in 7074yes:) 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7077ac_tool_warned=yes ;; 7078esac 7079 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7080 fi 7081else 7082 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7083fi 7084 7085test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7087$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7088if ${lt_cv_path_mainfest_tool+:} false; then : 7089 $as_echo_n "(cached) " >&6 7090else 7091 lt_cv_path_mainfest_tool=no 7092 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7093 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7094 cat conftest.err >&5 7095 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7096 lt_cv_path_mainfest_tool=yes 7097 fi 7098 rm -f conftest* 7099fi 7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7101$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7102if test yes != "$lt_cv_path_mainfest_tool"; then 7103 MANIFEST_TOOL=: 7104fi 7105 7106 7107 7108 7109 7110 7111 case $host_os in 7112 rhapsody* | darwin*) 7113 if test -n "$ac_tool_prefix"; then 7114 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7115set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7117$as_echo_n "checking for $ac_word... " >&6; } 7118if ${ac_cv_prog_DSYMUTIL+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120else 7121 if test -n "$DSYMUTIL"; then 7122 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7123else 7124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7125for as_dir in $PATH 7126do 7127 IFS=$as_save_IFS 7128 test -z "$as_dir" && as_dir=. 7129 for ac_exec_ext in '' $ac_executable_extensions; do 7130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7131 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7133 break 2 7134 fi 7135done 7136 done 7137IFS=$as_save_IFS 7138 7139fi 7140fi 7141DSYMUTIL=$ac_cv_prog_DSYMUTIL 7142if test -n "$DSYMUTIL"; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7144$as_echo "$DSYMUTIL" >&6; } 7145else 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7147$as_echo "no" >&6; } 7148fi 7149 7150 7151fi 7152if test -z "$ac_cv_prog_DSYMUTIL"; then 7153 ac_ct_DSYMUTIL=$DSYMUTIL 7154 # Extract the first word of "dsymutil", so it can be a program name with args. 7155set dummy dsymutil; ac_word=$2 7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7157$as_echo_n "checking for $ac_word... " >&6; } 7158if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 if test -n "$ac_ct_DSYMUTIL"; then 7162 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7163else 7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7165for as_dir in $PATH 7166do 7167 IFS=$as_save_IFS 7168 test -z "$as_dir" && as_dir=. 7169 for ac_exec_ext in '' $ac_executable_extensions; do 7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7171 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7173 break 2 7174 fi 7175done 7176 done 7177IFS=$as_save_IFS 7178 7179fi 7180fi 7181ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7182if test -n "$ac_ct_DSYMUTIL"; then 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7184$as_echo "$ac_ct_DSYMUTIL" >&6; } 7185else 7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7187$as_echo "no" >&6; } 7188fi 7189 7190 if test "x$ac_ct_DSYMUTIL" = x; then 7191 DSYMUTIL=":" 7192 else 7193 case $cross_compiling:$ac_tool_warned in 7194yes:) 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7197ac_tool_warned=yes ;; 7198esac 7199 DSYMUTIL=$ac_ct_DSYMUTIL 7200 fi 7201else 7202 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7203fi 7204 7205 if test -n "$ac_tool_prefix"; then 7206 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7207set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7209$as_echo_n "checking for $ac_word... " >&6; } 7210if ${ac_cv_prog_NMEDIT+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 if test -n "$NMEDIT"; then 7214 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7215else 7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217for as_dir in $PATH 7218do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7223 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227done 7228 done 7229IFS=$as_save_IFS 7230 7231fi 7232fi 7233NMEDIT=$ac_cv_prog_NMEDIT 7234if test -n "$NMEDIT"; then 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7236$as_echo "$NMEDIT" >&6; } 7237else 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7239$as_echo "no" >&6; } 7240fi 7241 7242 7243fi 7244if test -z "$ac_cv_prog_NMEDIT"; then 7245 ac_ct_NMEDIT=$NMEDIT 7246 # Extract the first word of "nmedit", so it can be a program name with args. 7247set dummy nmedit; ac_word=$2 7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7249$as_echo_n "checking for $ac_word... " >&6; } 7250if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 if test -n "$ac_ct_NMEDIT"; then 7254 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7255else 7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7257for as_dir in $PATH 7258do 7259 IFS=$as_save_IFS 7260 test -z "$as_dir" && as_dir=. 7261 for ac_exec_ext in '' $ac_executable_extensions; do 7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7263 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7265 break 2 7266 fi 7267done 7268 done 7269IFS=$as_save_IFS 7270 7271fi 7272fi 7273ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7274if test -n "$ac_ct_NMEDIT"; then 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7276$as_echo "$ac_ct_NMEDIT" >&6; } 7277else 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7279$as_echo "no" >&6; } 7280fi 7281 7282 if test "x$ac_ct_NMEDIT" = x; then 7283 NMEDIT=":" 7284 else 7285 case $cross_compiling:$ac_tool_warned in 7286yes:) 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7289ac_tool_warned=yes ;; 7290esac 7291 NMEDIT=$ac_ct_NMEDIT 7292 fi 7293else 7294 NMEDIT="$ac_cv_prog_NMEDIT" 7295fi 7296 7297 if test -n "$ac_tool_prefix"; then 7298 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7299set dummy ${ac_tool_prefix}lipo; ac_word=$2 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7301$as_echo_n "checking for $ac_word... " >&6; } 7302if ${ac_cv_prog_LIPO+:} false; then : 7303 $as_echo_n "(cached) " >&6 7304else 7305 if test -n "$LIPO"; then 7306 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7307else 7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7309for as_dir in $PATH 7310do 7311 IFS=$as_save_IFS 7312 test -z "$as_dir" && as_dir=. 7313 for ac_exec_ext in '' $ac_executable_extensions; do 7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7315 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7317 break 2 7318 fi 7319done 7320 done 7321IFS=$as_save_IFS 7322 7323fi 7324fi 7325LIPO=$ac_cv_prog_LIPO 7326if test -n "$LIPO"; then 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7328$as_echo "$LIPO" >&6; } 7329else 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7331$as_echo "no" >&6; } 7332fi 7333 7334 7335fi 7336if test -z "$ac_cv_prog_LIPO"; then 7337 ac_ct_LIPO=$LIPO 7338 # Extract the first word of "lipo", so it can be a program name with args. 7339set dummy lipo; ac_word=$2 7340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7341$as_echo_n "checking for $ac_word... " >&6; } 7342if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344else 7345 if test -n "$ac_ct_LIPO"; then 7346 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7347else 7348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7349for as_dir in $PATH 7350do 7351 IFS=$as_save_IFS 7352 test -z "$as_dir" && as_dir=. 7353 for ac_exec_ext in '' $ac_executable_extensions; do 7354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7355 ac_cv_prog_ac_ct_LIPO="lipo" 7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7357 break 2 7358 fi 7359done 7360 done 7361IFS=$as_save_IFS 7362 7363fi 7364fi 7365ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7366if test -n "$ac_ct_LIPO"; then 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7368$as_echo "$ac_ct_LIPO" >&6; } 7369else 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7371$as_echo "no" >&6; } 7372fi 7373 7374 if test "x$ac_ct_LIPO" = x; then 7375 LIPO=":" 7376 else 7377 case $cross_compiling:$ac_tool_warned in 7378yes:) 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7381ac_tool_warned=yes ;; 7382esac 7383 LIPO=$ac_ct_LIPO 7384 fi 7385else 7386 LIPO="$ac_cv_prog_LIPO" 7387fi 7388 7389 if test -n "$ac_tool_prefix"; then 7390 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7391set dummy ${ac_tool_prefix}otool; ac_word=$2 7392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7393$as_echo_n "checking for $ac_word... " >&6; } 7394if ${ac_cv_prog_OTOOL+:} false; then : 7395 $as_echo_n "(cached) " >&6 7396else 7397 if test -n "$OTOOL"; then 7398 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7399else 7400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7401for as_dir in $PATH 7402do 7403 IFS=$as_save_IFS 7404 test -z "$as_dir" && as_dir=. 7405 for ac_exec_ext in '' $ac_executable_extensions; do 7406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7407 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7409 break 2 7410 fi 7411done 7412 done 7413IFS=$as_save_IFS 7414 7415fi 7416fi 7417OTOOL=$ac_cv_prog_OTOOL 7418if test -n "$OTOOL"; then 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7420$as_echo "$OTOOL" >&6; } 7421else 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7423$as_echo "no" >&6; } 7424fi 7425 7426 7427fi 7428if test -z "$ac_cv_prog_OTOOL"; then 7429 ac_ct_OTOOL=$OTOOL 7430 # Extract the first word of "otool", so it can be a program name with args. 7431set dummy otool; ac_word=$2 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7433$as_echo_n "checking for $ac_word... " >&6; } 7434if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7435 $as_echo_n "(cached) " >&6 7436else 7437 if test -n "$ac_ct_OTOOL"; then 7438 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7439else 7440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7441for as_dir in $PATH 7442do 7443 IFS=$as_save_IFS 7444 test -z "$as_dir" && as_dir=. 7445 for ac_exec_ext in '' $ac_executable_extensions; do 7446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7447 ac_cv_prog_ac_ct_OTOOL="otool" 7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7449 break 2 7450 fi 7451done 7452 done 7453IFS=$as_save_IFS 7454 7455fi 7456fi 7457ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7458if test -n "$ac_ct_OTOOL"; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7460$as_echo "$ac_ct_OTOOL" >&6; } 7461else 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7463$as_echo "no" >&6; } 7464fi 7465 7466 if test "x$ac_ct_OTOOL" = x; then 7467 OTOOL=":" 7468 else 7469 case $cross_compiling:$ac_tool_warned in 7470yes:) 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7473ac_tool_warned=yes ;; 7474esac 7475 OTOOL=$ac_ct_OTOOL 7476 fi 7477else 7478 OTOOL="$ac_cv_prog_OTOOL" 7479fi 7480 7481 if test -n "$ac_tool_prefix"; then 7482 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7483set dummy ${ac_tool_prefix}otool64; ac_word=$2 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7485$as_echo_n "checking for $ac_word... " >&6; } 7486if ${ac_cv_prog_OTOOL64+:} false; then : 7487 $as_echo_n "(cached) " >&6 7488else 7489 if test -n "$OTOOL64"; then 7490 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7491else 7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7493for as_dir in $PATH 7494do 7495 IFS=$as_save_IFS 7496 test -z "$as_dir" && as_dir=. 7497 for ac_exec_ext in '' $ac_executable_extensions; do 7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7499 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7501 break 2 7502 fi 7503done 7504 done 7505IFS=$as_save_IFS 7506 7507fi 7508fi 7509OTOOL64=$ac_cv_prog_OTOOL64 7510if test -n "$OTOOL64"; then 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7512$as_echo "$OTOOL64" >&6; } 7513else 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7515$as_echo "no" >&6; } 7516fi 7517 7518 7519fi 7520if test -z "$ac_cv_prog_OTOOL64"; then 7521 ac_ct_OTOOL64=$OTOOL64 7522 # Extract the first word of "otool64", so it can be a program name with args. 7523set dummy otool64; ac_word=$2 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7525$as_echo_n "checking for $ac_word... " >&6; } 7526if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528else 7529 if test -n "$ac_ct_OTOOL64"; then 7530 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7531else 7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7533for as_dir in $PATH 7534do 7535 IFS=$as_save_IFS 7536 test -z "$as_dir" && as_dir=. 7537 for ac_exec_ext in '' $ac_executable_extensions; do 7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7539 ac_cv_prog_ac_ct_OTOOL64="otool64" 7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7541 break 2 7542 fi 7543done 7544 done 7545IFS=$as_save_IFS 7546 7547fi 7548fi 7549ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7550if test -n "$ac_ct_OTOOL64"; then 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7552$as_echo "$ac_ct_OTOOL64" >&6; } 7553else 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7555$as_echo "no" >&6; } 7556fi 7557 7558 if test "x$ac_ct_OTOOL64" = x; then 7559 OTOOL64=":" 7560 else 7561 case $cross_compiling:$ac_tool_warned in 7562yes:) 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7565ac_tool_warned=yes ;; 7566esac 7567 OTOOL64=$ac_ct_OTOOL64 7568 fi 7569else 7570 OTOOL64="$ac_cv_prog_OTOOL64" 7571fi 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7600$as_echo_n "checking for -single_module linker flag... " >&6; } 7601if ${lt_cv_apple_cc_single_mod+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 lt_cv_apple_cc_single_mod=no 7605 if test -z "$LT_MULTI_MODULE"; then 7606 # By default we will add the -single_module flag. You can override 7607 # by either setting the environment variable LT_MULTI_MODULE 7608 # non-empty at configure time, or by adding -multi_module to the 7609 # link flags. 7610 rm -rf libconftest.dylib* 7611 echo "int foo(void){return 1;}" > conftest.c 7612 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7613-dynamiclib -Wl,-single_module conftest.c" >&5 7614 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7615 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7616 _lt_result=$? 7617 # If there is a non-empty error log, and "single_module" 7618 # appears in it, assume the flag caused a linker warning 7619 if test -s conftest.err && $GREP single_module conftest.err; then 7620 cat conftest.err >&5 7621 # Otherwise, if the output was created with a 0 exit code from 7622 # the compiler, it worked. 7623 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7624 lt_cv_apple_cc_single_mod=yes 7625 else 7626 cat conftest.err >&5 7627 fi 7628 rm -rf libconftest.dylib* 7629 rm -f conftest.* 7630 fi 7631fi 7632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7633$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7634 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7636$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7637if ${lt_cv_ld_exported_symbols_list+:} false; then : 7638 $as_echo_n "(cached) " >&6 7639else 7640 lt_cv_ld_exported_symbols_list=no 7641 save_LDFLAGS=$LDFLAGS 7642 echo "_main" > conftest.sym 7643 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7645/* end confdefs.h. */ 7646 7647int 7648main () 7649{ 7650 7651 ; 7652 return 0; 7653} 7654_ACEOF 7655if ac_fn_c_try_link "$LINENO"; then : 7656 lt_cv_ld_exported_symbols_list=yes 7657else 7658 lt_cv_ld_exported_symbols_list=no 7659fi 7660rm -f core conftest.err conftest.$ac_objext \ 7661 conftest$ac_exeext conftest.$ac_ext 7662 LDFLAGS=$save_LDFLAGS 7663 7664fi 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7666$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7667 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7669$as_echo_n "checking for -force_load linker flag... " >&6; } 7670if ${lt_cv_ld_force_load+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 lt_cv_ld_force_load=no 7674 cat > conftest.c << _LT_EOF 7675int forced_loaded() { return 2;} 7676_LT_EOF 7677 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7678 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7679 echo "$AR cr libconftest.a conftest.o" >&5 7680 $AR cr libconftest.a conftest.o 2>&5 7681 echo "$RANLIB libconftest.a" >&5 7682 $RANLIB libconftest.a 2>&5 7683 cat > conftest.c << _LT_EOF 7684int main() { return 0;} 7685_LT_EOF 7686 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7687 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7688 _lt_result=$? 7689 if test -s conftest.err && $GREP force_load conftest.err; then 7690 cat conftest.err >&5 7691 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7692 lt_cv_ld_force_load=yes 7693 else 7694 cat conftest.err >&5 7695 fi 7696 rm -f conftest.err libconftest.a conftest conftest.c 7697 rm -rf conftest.dSYM 7698 7699fi 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7701$as_echo "$lt_cv_ld_force_load" >&6; } 7702 case $host_os in 7703 rhapsody* | darwin1.[012]) 7704 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7705 darwin1.*) 7706 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7707 darwin*) # darwin 5.x on 7708 # if running on 10.5 or later, the deployment target defaults 7709 # to the OS version, if on x86, and 10.4, the deployment 7710 # target defaults to 10.4. Don't you love it? 7711 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7712 10.0,*86*-darwin8*|10.0,*-darwin[912]*) 7713 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7714 10.[012][,.]*) 7715 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7716 10.*|11.*) 7717 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7718 esac 7719 ;; 7720 esac 7721 if test yes = "$lt_cv_apple_cc_single_mod"; then 7722 _lt_dar_single_mod='$single_module' 7723 fi 7724 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7725 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7726 else 7727 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7728 fi 7729 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7730 _lt_dsymutil='~$DSYMUTIL $lib || :' 7731 else 7732 _lt_dsymutil= 7733 fi 7734 ;; 7735 esac 7736 7737# func_munge_path_list VARIABLE PATH 7738# ----------------------------------- 7739# VARIABLE is name of variable containing _space_ separated list of 7740# directories to be munged by the contents of PATH, which is string 7741# having a format: 7742# "DIR[:DIR]:" 7743# string "DIR[ DIR]" will be prepended to VARIABLE 7744# ":DIR[:DIR]" 7745# string "DIR[ DIR]" will be appended to VARIABLE 7746# "DIRP[:DIRP]::[DIRA:]DIRA" 7747# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7748# "DIRA[ DIRA]" will be appended to VARIABLE 7749# "DIR[:DIR]" 7750# VARIABLE will be replaced by "DIR[ DIR]" 7751func_munge_path_list () 7752{ 7753 case x$2 in 7754 x) 7755 ;; 7756 *:) 7757 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7758 ;; 7759 x:*) 7760 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7761 ;; 7762 *::*) 7763 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7764 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7765 ;; 7766 *) 7767 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7768 ;; 7769 esac 7770} 7771 7772ac_ext=c 7773ac_cpp='$CPP $CPPFLAGS' 7774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7776ac_compiler_gnu=$ac_cv_c_compiler_gnu 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7778$as_echo_n "checking how to run the C preprocessor... " >&6; } 7779# On Suns, sometimes $CPP names a directory. 7780if test -n "$CPP" && test -d "$CPP"; then 7781 CPP= 7782fi 7783if test -z "$CPP"; then 7784 if ${ac_cv_prog_CPP+:} false; then : 7785 $as_echo_n "(cached) " >&6 7786else 7787 # Double quotes because CPP needs to be expanded 7788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7789 do 7790 ac_preproc_ok=false 7791for ac_c_preproc_warn_flag in '' yes 7792do 7793 # Use a header file that comes with gcc, so configuring glibc 7794 # with a fresh cross-compiler works. 7795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7796 # <limits.h> exists even on freestanding compilers. 7797 # On the NeXT, cc -E runs the code through the compiler's parser, 7798 # not just through cpp. "Syntax error" is here to catch this case. 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801#ifdef __STDC__ 7802# include <limits.h> 7803#else 7804# include <assert.h> 7805#endif 7806 Syntax error 7807_ACEOF 7808if ac_fn_c_try_cpp "$LINENO"; then : 7809 7810else 7811 # Broken: fails on valid input. 7812continue 7813fi 7814rm -f conftest.err conftest.i conftest.$ac_ext 7815 7816 # OK, works on sane cases. Now check whether nonexistent headers 7817 # can be detected and how. 7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7819/* end confdefs.h. */ 7820#include <ac_nonexistent.h> 7821_ACEOF 7822if ac_fn_c_try_cpp "$LINENO"; then : 7823 # Broken: success on invalid input. 7824continue 7825else 7826 # Passes both tests. 7827ac_preproc_ok=: 7828break 7829fi 7830rm -f conftest.err conftest.i conftest.$ac_ext 7831 7832done 7833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7834rm -f conftest.i conftest.err conftest.$ac_ext 7835if $ac_preproc_ok; then : 7836 break 7837fi 7838 7839 done 7840 ac_cv_prog_CPP=$CPP 7841 7842fi 7843 CPP=$ac_cv_prog_CPP 7844else 7845 ac_cv_prog_CPP=$CPP 7846fi 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7848$as_echo "$CPP" >&6; } 7849ac_preproc_ok=false 7850for ac_c_preproc_warn_flag in '' yes 7851do 7852 # Use a header file that comes with gcc, so configuring glibc 7853 # with a fresh cross-compiler works. 7854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7855 # <limits.h> exists even on freestanding compilers. 7856 # On the NeXT, cc -E runs the code through the compiler's parser, 7857 # not just through cpp. "Syntax error" is here to catch this case. 7858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7859/* end confdefs.h. */ 7860#ifdef __STDC__ 7861# include <limits.h> 7862#else 7863# include <assert.h> 7864#endif 7865 Syntax error 7866_ACEOF 7867if ac_fn_c_try_cpp "$LINENO"; then : 7868 7869else 7870 # Broken: fails on valid input. 7871continue 7872fi 7873rm -f conftest.err conftest.i conftest.$ac_ext 7874 7875 # OK, works on sane cases. Now check whether nonexistent headers 7876 # can be detected and how. 7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879#include <ac_nonexistent.h> 7880_ACEOF 7881if ac_fn_c_try_cpp "$LINENO"; then : 7882 # Broken: success on invalid input. 7883continue 7884else 7885 # Passes both tests. 7886ac_preproc_ok=: 7887break 7888fi 7889rm -f conftest.err conftest.i conftest.$ac_ext 7890 7891done 7892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7893rm -f conftest.i conftest.err conftest.$ac_ext 7894if $ac_preproc_ok; then : 7895 7896else 7897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7899as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7900See \`config.log' for more details" "$LINENO" 5; } 7901fi 7902 7903ac_ext=c 7904ac_cpp='$CPP $CPPFLAGS' 7905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7907ac_compiler_gnu=$ac_cv_c_compiler_gnu 7908 7909 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7911$as_echo_n "checking for ANSI C header files... " >&6; } 7912if ${ac_cv_header_stdc+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914else 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7916/* end confdefs.h. */ 7917#include <stdlib.h> 7918#include <stdarg.h> 7919#include <string.h> 7920#include <float.h> 7921 7922int 7923main () 7924{ 7925 7926 ; 7927 return 0; 7928} 7929_ACEOF 7930if ac_fn_c_try_compile "$LINENO"; then : 7931 ac_cv_header_stdc=yes 7932else 7933 ac_cv_header_stdc=no 7934fi 7935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7936 7937if test $ac_cv_header_stdc = yes; then 7938 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940/* end confdefs.h. */ 7941#include <string.h> 7942 7943_ACEOF 7944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7945 $EGREP "memchr" >/dev/null 2>&1; then : 7946 7947else 7948 ac_cv_header_stdc=no 7949fi 7950rm -f conftest* 7951 7952fi 7953 7954if test $ac_cv_header_stdc = yes; then 7955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7957/* end confdefs.h. */ 7958#include <stdlib.h> 7959 7960_ACEOF 7961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7962 $EGREP "free" >/dev/null 2>&1; then : 7963 7964else 7965 ac_cv_header_stdc=no 7966fi 7967rm -f conftest* 7968 7969fi 7970 7971if test $ac_cv_header_stdc = yes; then 7972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7973 if test "$cross_compiling" = yes; then : 7974 : 7975else 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977/* end confdefs.h. */ 7978#include <ctype.h> 7979#include <stdlib.h> 7980#if ((' ' & 0x0FF) == 0x020) 7981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7983#else 7984# define ISLOWER(c) \ 7985 (('a' <= (c) && (c) <= 'i') \ 7986 || ('j' <= (c) && (c) <= 'r') \ 7987 || ('s' <= (c) && (c) <= 'z')) 7988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7989#endif 7990 7991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7992int 7993main () 7994{ 7995 int i; 7996 for (i = 0; i < 256; i++) 7997 if (XOR (islower (i), ISLOWER (i)) 7998 || toupper (i) != TOUPPER (i)) 7999 return 2; 8000 return 0; 8001} 8002_ACEOF 8003if ac_fn_c_try_run "$LINENO"; then : 8004 8005else 8006 ac_cv_header_stdc=no 8007fi 8008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8009 conftest.$ac_objext conftest.beam conftest.$ac_ext 8010fi 8011 8012fi 8013fi 8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8015$as_echo "$ac_cv_header_stdc" >&6; } 8016if test $ac_cv_header_stdc = yes; then 8017 8018$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8019 8020fi 8021 8022# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8023for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8024 inttypes.h stdint.h unistd.h 8025do : 8026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8027ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8028" 8029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8030 cat >>confdefs.h <<_ACEOF 8031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8032_ACEOF 8033 8034fi 8035 8036done 8037 8038 8039for ac_header in dlfcn.h 8040do : 8041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8042" 8043if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8044 cat >>confdefs.h <<_ACEOF 8045#define HAVE_DLFCN_H 1 8046_ACEOF 8047 8048fi 8049 8050done 8051 8052 8053 8054 8055 8056# Set options 8057 8058 8059 8060 enable_dlopen=no 8061 8062 8063 8064 # Check whether --enable-shared was given. 8065if test "${enable_shared+set}" = set; then : 8066 enableval=$enable_shared; p=${PACKAGE-default} 8067 case $enableval in 8068 yes) enable_shared=yes ;; 8069 no) enable_shared=no ;; 8070 *) 8071 enable_shared=no 8072 # Look at the argument we got. We use all the common list separators. 8073 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8074 for pkg in $enableval; do 8075 IFS=$lt_save_ifs 8076 if test "X$pkg" = "X$p"; then 8077 enable_shared=yes 8078 fi 8079 done 8080 IFS=$lt_save_ifs 8081 ;; 8082 esac 8083else 8084 enable_shared=yes 8085fi 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 # Check whether --enable-static was given. 8096if test "${enable_static+set}" = set; then : 8097 enableval=$enable_static; p=${PACKAGE-default} 8098 case $enableval in 8099 yes) enable_static=yes ;; 8100 no) enable_static=no ;; 8101 *) 8102 enable_static=no 8103 # Look at the argument we got. We use all the common list separators. 8104 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8105 for pkg in $enableval; do 8106 IFS=$lt_save_ifs 8107 if test "X$pkg" = "X$p"; then 8108 enable_static=yes 8109 fi 8110 done 8111 IFS=$lt_save_ifs 8112 ;; 8113 esac 8114else 8115 enable_static=yes 8116fi 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127# Check whether --with-pic was given. 8128if test "${with_pic+set}" = set; then : 8129 withval=$with_pic; lt_p=${PACKAGE-default} 8130 case $withval in 8131 yes|no) pic_mode=$withval ;; 8132 *) 8133 pic_mode=default 8134 # Look at the argument we got. We use all the common list separators. 8135 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8136 for lt_pkg in $withval; do 8137 IFS=$lt_save_ifs 8138 if test "X$lt_pkg" = "X$lt_p"; then 8139 pic_mode=yes 8140 fi 8141 done 8142 IFS=$lt_save_ifs 8143 ;; 8144 esac 8145else 8146 pic_mode=default 8147fi 8148 8149 8150 8151 8152 8153 8154 8155 8156 # Check whether --enable-fast-install was given. 8157if test "${enable_fast_install+set}" = set; then : 8158 enableval=$enable_fast_install; p=${PACKAGE-default} 8159 case $enableval in 8160 yes) enable_fast_install=yes ;; 8161 no) enable_fast_install=no ;; 8162 *) 8163 enable_fast_install=no 8164 # Look at the argument we got. We use all the common list separators. 8165 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8166 for pkg in $enableval; do 8167 IFS=$lt_save_ifs 8168 if test "X$pkg" = "X$p"; then 8169 enable_fast_install=yes 8170 fi 8171 done 8172 IFS=$lt_save_ifs 8173 ;; 8174 esac 8175else 8176 enable_fast_install=yes 8177fi 8178 8179 8180 8181 8182 8183 8184 8185 8186 shared_archive_member_spec= 8187case $host,$enable_shared in 8188power*-*-aix[5-9]*,yes) 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8190$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8191 8192# Check whether --with-aix-soname was given. 8193if test "${with_aix_soname+set}" = set; then : 8194 withval=$with_aix_soname; case $withval in 8195 aix|svr4|both) 8196 ;; 8197 *) 8198 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8199 ;; 8200 esac 8201 lt_cv_with_aix_soname=$with_aix_soname 8202else 8203 if ${lt_cv_with_aix_soname+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 lt_cv_with_aix_soname=aix 8207fi 8208 8209 with_aix_soname=$lt_cv_with_aix_soname 8210fi 8211 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8213$as_echo "$with_aix_soname" >&6; } 8214 if test aix != "$with_aix_soname"; then 8215 # For the AIX way of multilib, we name the shared archive member 8216 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8217 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8218 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8219 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8220 if test 64 = "${OBJECT_MODE-32}"; then 8221 shared_archive_member_spec=shr_64 8222 else 8223 shared_archive_member_spec=shr 8224 fi 8225 fi 8226 ;; 8227*) 8228 with_aix_soname=aix 8229 ;; 8230esac 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241# This can be used to rebuild libtool when needed 8242LIBTOOL_DEPS=$ltmain 8243 8244# Always use our own libtool. 8245LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276test -z "$LN_S" && LN_S="ln -s" 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291if test -n "${ZSH_VERSION+set}"; then 8292 setopt NO_GLOB_SUBST 8293fi 8294 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8296$as_echo_n "checking for objdir... " >&6; } 8297if ${lt_cv_objdir+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 rm -f .libs 2>/dev/null 8301mkdir .libs 2>/dev/null 8302if test -d .libs; then 8303 lt_cv_objdir=.libs 8304else 8305 # MS-DOS does not allow filenames that begin with a dot. 8306 lt_cv_objdir=_libs 8307fi 8308rmdir .libs 2>/dev/null 8309fi 8310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8311$as_echo "$lt_cv_objdir" >&6; } 8312objdir=$lt_cv_objdir 8313 8314 8315 8316 8317 8318cat >>confdefs.h <<_ACEOF 8319#define LT_OBJDIR "$lt_cv_objdir/" 8320_ACEOF 8321 8322 8323 8324 8325case $host_os in 8326aix3*) 8327 # AIX sometimes has problems with the GCC collect2 program. For some 8328 # reason, if we set the COLLECT_NAMES environment variable, the problems 8329 # vanish in a puff of smoke. 8330 if test set != "${COLLECT_NAMES+set}"; then 8331 COLLECT_NAMES= 8332 export COLLECT_NAMES 8333 fi 8334 ;; 8335esac 8336 8337# Global variables: 8338ofile=libtool 8339can_build_shared=yes 8340 8341# All known linkers require a '.a' archive for static linking (except MSVC, 8342# which needs '.lib'). 8343libext=a 8344 8345with_gnu_ld=$lt_cv_prog_gnu_ld 8346 8347old_CC=$CC 8348old_CFLAGS=$CFLAGS 8349 8350# Set sane defaults for various variables 8351test -z "$CC" && CC=cc 8352test -z "$LTCC" && LTCC=$CC 8353test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8354test -z "$LD" && LD=ld 8355test -z "$ac_objext" && ac_objext=o 8356 8357func_cc_basename $compiler 8358cc_basename=$func_cc_basename_result 8359 8360 8361# Only perform the check for file, if the check method requires it 8362test -z "$MAGIC_CMD" && MAGIC_CMD=file 8363case $deplibs_check_method in 8364file_magic*) 8365 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8367$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8368if ${lt_cv_path_MAGIC_CMD+:} false; then : 8369 $as_echo_n "(cached) " >&6 8370else 8371 case $MAGIC_CMD in 8372[\\/*] | ?:[\\/]*) 8373 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8374 ;; 8375*) 8376 lt_save_MAGIC_CMD=$MAGIC_CMD 8377 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8378 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8379 for ac_dir in $ac_dummy; do 8380 IFS=$lt_save_ifs 8381 test -z "$ac_dir" && ac_dir=. 8382 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8383 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8384 if test -n "$file_magic_test_file"; then 8385 case $deplibs_check_method in 8386 "file_magic "*) 8387 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8388 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8389 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8390 $EGREP "$file_magic_regex" > /dev/null; then 8391 : 8392 else 8393 cat <<_LT_EOF 1>&2 8394 8395*** Warning: the command libtool uses to detect shared libraries, 8396*** $file_magic_cmd, produces output that libtool cannot recognize. 8397*** The result is that libtool may fail to recognize shared libraries 8398*** as such. This will affect the creation of libtool libraries that 8399*** depend on shared libraries, but programs linked with such libtool 8400*** libraries will work regardless of this problem. Nevertheless, you 8401*** may want to report the problem to your system manager and/or to 8402*** bug-libtool@gnu.org 8403 8404_LT_EOF 8405 fi ;; 8406 esac 8407 fi 8408 break 8409 fi 8410 done 8411 IFS=$lt_save_ifs 8412 MAGIC_CMD=$lt_save_MAGIC_CMD 8413 ;; 8414esac 8415fi 8416 8417MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8418if test -n "$MAGIC_CMD"; then 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8420$as_echo "$MAGIC_CMD" >&6; } 8421else 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8423$as_echo "no" >&6; } 8424fi 8425 8426 8427 8428 8429 8430if test -z "$lt_cv_path_MAGIC_CMD"; then 8431 if test -n "$ac_tool_prefix"; then 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8433$as_echo_n "checking for file... " >&6; } 8434if ${lt_cv_path_MAGIC_CMD+:} false; then : 8435 $as_echo_n "(cached) " >&6 8436else 8437 case $MAGIC_CMD in 8438[\\/*] | ?:[\\/]*) 8439 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8440 ;; 8441*) 8442 lt_save_MAGIC_CMD=$MAGIC_CMD 8443 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8444 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8445 for ac_dir in $ac_dummy; do 8446 IFS=$lt_save_ifs 8447 test -z "$ac_dir" && ac_dir=. 8448 if test -f "$ac_dir/file"; then 8449 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8450 if test -n "$file_magic_test_file"; then 8451 case $deplibs_check_method in 8452 "file_magic "*) 8453 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8454 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8455 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8456 $EGREP "$file_magic_regex" > /dev/null; then 8457 : 8458 else 8459 cat <<_LT_EOF 1>&2 8460 8461*** Warning: the command libtool uses to detect shared libraries, 8462*** $file_magic_cmd, produces output that libtool cannot recognize. 8463*** The result is that libtool may fail to recognize shared libraries 8464*** as such. This will affect the creation of libtool libraries that 8465*** depend on shared libraries, but programs linked with such libtool 8466*** libraries will work regardless of this problem. Nevertheless, you 8467*** may want to report the problem to your system manager and/or to 8468*** bug-libtool@gnu.org 8469 8470_LT_EOF 8471 fi ;; 8472 esac 8473 fi 8474 break 8475 fi 8476 done 8477 IFS=$lt_save_ifs 8478 MAGIC_CMD=$lt_save_MAGIC_CMD 8479 ;; 8480esac 8481fi 8482 8483MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8484if test -n "$MAGIC_CMD"; then 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8486$as_echo "$MAGIC_CMD" >&6; } 8487else 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8489$as_echo "no" >&6; } 8490fi 8491 8492 8493 else 8494 MAGIC_CMD=: 8495 fi 8496fi 8497 8498 fi 8499 ;; 8500esac 8501 8502# Use C for the default configuration in the libtool script 8503 8504lt_save_CC=$CC 8505ac_ext=c 8506ac_cpp='$CPP $CPPFLAGS' 8507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8509ac_compiler_gnu=$ac_cv_c_compiler_gnu 8510 8511 8512# Source file extension for C test sources. 8513ac_ext=c 8514 8515# Object file extension for compiled C test sources. 8516objext=o 8517objext=$objext 8518 8519# Code to be used in simple compile tests 8520lt_simple_compile_test_code="int some_variable = 0;" 8521 8522# Code to be used in simple link tests 8523lt_simple_link_test_code='int main(){return(0);}' 8524 8525 8526 8527 8528 8529 8530 8531# If no C compiler was specified, use CC. 8532LTCC=${LTCC-"$CC"} 8533 8534# If no C compiler flags were specified, use CFLAGS. 8535LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8536 8537# Allow CC to be a program name with arguments. 8538compiler=$CC 8539 8540# Save the default compiler, since it gets overwritten when the other 8541# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8542compiler_DEFAULT=$CC 8543 8544# save warnings/boilerplate of simple test code 8545ac_outfile=conftest.$ac_objext 8546echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8547eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8548_lt_compiler_boilerplate=`cat conftest.err` 8549$RM conftest* 8550 8551ac_outfile=conftest.$ac_objext 8552echo "$lt_simple_link_test_code" >conftest.$ac_ext 8553eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8554_lt_linker_boilerplate=`cat conftest.err` 8555$RM -r conftest* 8556 8557 8558## CAVEAT EMPTOR: 8559## There is no encapsulation within the following macros, do not change 8560## the running order or otherwise move them around unless you know exactly 8561## what you are doing... 8562if test -n "$compiler"; then 8563 8564lt_prog_compiler_no_builtin_flag= 8565 8566if test yes = "$GCC"; then 8567 case $cc_basename in 8568 nvcc*) 8569 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8570 *) 8571 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8572 esac 8573 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8575$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8576if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8577 $as_echo_n "(cached) " >&6 8578else 8579 lt_cv_prog_compiler_rtti_exceptions=no 8580 ac_outfile=conftest.$ac_objext 8581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8582 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8583 # Insert the option either (1) after the last *FLAGS variable, or 8584 # (2) before a word containing "conftest.", or (3) at the end. 8585 # Note that $ac_compile itself does not contain backslashes and begins 8586 # with a dollar sign (not a hyphen), so the echo should work correctly. 8587 # The option is referenced via a variable to avoid confusing sed. 8588 lt_compile=`echo "$ac_compile" | $SED \ 8589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8591 -e 's:$: $lt_compiler_flag:'` 8592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8593 (eval "$lt_compile" 2>conftest.err) 8594 ac_status=$? 8595 cat conftest.err >&5 8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8597 if (exit $ac_status) && test -s "$ac_outfile"; then 8598 # The compiler can only warn and ignore the option if not recognized 8599 # So say no if there are warnings other than the usual output. 8600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8603 lt_cv_prog_compiler_rtti_exceptions=yes 8604 fi 8605 fi 8606 $RM conftest* 8607 8608fi 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8610$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8611 8612if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8613 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8614else 8615 : 8616fi 8617 8618fi 8619 8620 8621 8622 8623 8624 8625 lt_prog_compiler_wl= 8626lt_prog_compiler_pic= 8627lt_prog_compiler_static= 8628 8629 8630 if test yes = "$GCC"; then 8631 lt_prog_compiler_wl='-Wl,' 8632 lt_prog_compiler_static='-static' 8633 8634 case $host_os in 8635 aix*) 8636 # All AIX code is PIC. 8637 if test ia64 = "$host_cpu"; then 8638 # AIX 5 now supports IA64 processor 8639 lt_prog_compiler_static='-Bstatic' 8640 fi 8641 lt_prog_compiler_pic='-fPIC' 8642 ;; 8643 8644 amigaos*) 8645 case $host_cpu in 8646 powerpc) 8647 # see comment about AmigaOS4 .so support 8648 lt_prog_compiler_pic='-fPIC' 8649 ;; 8650 m68k) 8651 # FIXME: we need at least 68020 code to build shared libraries, but 8652 # adding the '-m68020' flag to GCC prevents building anything better, 8653 # like '-m68040'. 8654 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8655 ;; 8656 esac 8657 ;; 8658 8659 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8660 # PIC is the default for these OSes. 8661 ;; 8662 8663 mingw* | cygwin* | pw32* | os2* | cegcc*) 8664 # This hack is so that the source file can tell whether it is being 8665 # built for inclusion in a dll (and should export symbols for example). 8666 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8667 # (--disable-auto-import) libraries 8668 lt_prog_compiler_pic='-DDLL_EXPORT' 8669 case $host_os in 8670 os2*) 8671 lt_prog_compiler_static='$wl-static' 8672 ;; 8673 esac 8674 ;; 8675 8676 darwin* | rhapsody*) 8677 # PIC is the default on this platform 8678 # Common symbols not allowed in MH_DYLIB files 8679 lt_prog_compiler_pic='-fno-common' 8680 ;; 8681 8682 haiku*) 8683 # PIC is the default for Haiku. 8684 # The "-static" flag exists, but is broken. 8685 lt_prog_compiler_static= 8686 ;; 8687 8688 hpux*) 8689 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8690 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8691 # sets the default TLS model and affects inlining. 8692 case $host_cpu in 8693 hppa*64*) 8694 # +Z the default 8695 ;; 8696 *) 8697 lt_prog_compiler_pic='-fPIC' 8698 ;; 8699 esac 8700 ;; 8701 8702 interix[3-9]*) 8703 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8704 # Instead, we relocate shared libraries at runtime. 8705 ;; 8706 8707 msdosdjgpp*) 8708 # Just because we use GCC doesn't mean we suddenly get shared libraries 8709 # on systems that don't support them. 8710 lt_prog_compiler_can_build_shared=no 8711 enable_shared=no 8712 ;; 8713 8714 *nto* | *qnx*) 8715 # QNX uses GNU C++, but need to define -shared option too, otherwise 8716 # it will coredump. 8717 lt_prog_compiler_pic='-fPIC -shared' 8718 ;; 8719 8720 sysv4*MP*) 8721 if test -d /usr/nec; then 8722 lt_prog_compiler_pic=-Kconform_pic 8723 fi 8724 ;; 8725 8726 *) 8727 lt_prog_compiler_pic='-fPIC' 8728 ;; 8729 esac 8730 8731 case $cc_basename in 8732 nvcc*) # Cuda Compiler Driver 2.2 8733 lt_prog_compiler_wl='-Xlinker ' 8734 if test -n "$lt_prog_compiler_pic"; then 8735 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8736 fi 8737 ;; 8738 esac 8739 else 8740 # PORTME Check for flag to pass linker flags through the system compiler. 8741 case $host_os in 8742 aix*) 8743 lt_prog_compiler_wl='-Wl,' 8744 if test ia64 = "$host_cpu"; then 8745 # AIX 5 now supports IA64 processor 8746 lt_prog_compiler_static='-Bstatic' 8747 else 8748 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8749 fi 8750 ;; 8751 8752 darwin* | rhapsody*) 8753 # PIC is the default on this platform 8754 # Common symbols not allowed in MH_DYLIB files 8755 lt_prog_compiler_pic='-fno-common' 8756 case $cc_basename in 8757 nagfor*) 8758 # NAG Fortran compiler 8759 lt_prog_compiler_wl='-Wl,-Wl,,' 8760 lt_prog_compiler_pic='-PIC' 8761 lt_prog_compiler_static='-Bstatic' 8762 ;; 8763 esac 8764 ;; 8765 8766 mingw* | cygwin* | pw32* | os2* | cegcc*) 8767 # This hack is so that the source file can tell whether it is being 8768 # built for inclusion in a dll (and should export symbols for example). 8769 lt_prog_compiler_pic='-DDLL_EXPORT' 8770 case $host_os in 8771 os2*) 8772 lt_prog_compiler_static='$wl-static' 8773 ;; 8774 esac 8775 ;; 8776 8777 hpux9* | hpux10* | hpux11*) 8778 lt_prog_compiler_wl='-Wl,' 8779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8780 # not for PA HP-UX. 8781 case $host_cpu in 8782 hppa*64*|ia64*) 8783 # +Z the default 8784 ;; 8785 *) 8786 lt_prog_compiler_pic='+Z' 8787 ;; 8788 esac 8789 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8790 lt_prog_compiler_static='$wl-a ${wl}archive' 8791 ;; 8792 8793 irix5* | irix6* | nonstopux*) 8794 lt_prog_compiler_wl='-Wl,' 8795 # PIC (with -KPIC) is the default. 8796 lt_prog_compiler_static='-non_shared' 8797 ;; 8798 8799 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8800 case $cc_basename in 8801 # old Intel for x86_64, which still supported -KPIC. 8802 ecc*) 8803 lt_prog_compiler_wl='-Wl,' 8804 lt_prog_compiler_pic='-KPIC' 8805 lt_prog_compiler_static='-static' 8806 ;; 8807 # flang / f18. f95 an alias for gfortran or flang on Debian 8808 flang* | f18* | f95*) 8809 lt_prog_compiler_wl='-Wl,' 8810 lt_prog_compiler_pic='-fPIC' 8811 lt_prog_compiler_static='-static' 8812 ;; 8813 # icc used to be incompatible with GCC. 8814 # ICC 10 doesn't accept -KPIC any more. 8815 icc* | ifort*) 8816 lt_prog_compiler_wl='-Wl,' 8817 lt_prog_compiler_pic='-fPIC' 8818 lt_prog_compiler_static='-static' 8819 ;; 8820 # Lahey Fortran 8.1. 8821 lf95*) 8822 lt_prog_compiler_wl='-Wl,' 8823 lt_prog_compiler_pic='--shared' 8824 lt_prog_compiler_static='--static' 8825 ;; 8826 nagfor*) 8827 # NAG Fortran compiler 8828 lt_prog_compiler_wl='-Wl,-Wl,,' 8829 lt_prog_compiler_pic='-PIC' 8830 lt_prog_compiler_static='-Bstatic' 8831 ;; 8832 tcc*) 8833 # Fabrice Bellard et al's Tiny C Compiler 8834 lt_prog_compiler_wl='-Wl,' 8835 lt_prog_compiler_pic='-fPIC' 8836 lt_prog_compiler_static='-static' 8837 ;; 8838 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8839 # Portland Group compilers (*not* the Pentium gcc compiler, 8840 # which looks to be a dead project) 8841 lt_prog_compiler_wl='-Wl,' 8842 lt_prog_compiler_pic='-fpic' 8843 lt_prog_compiler_static='-Bstatic' 8844 ;; 8845 ccc*) 8846 lt_prog_compiler_wl='-Wl,' 8847 # All Alpha code is PIC. 8848 lt_prog_compiler_static='-non_shared' 8849 ;; 8850 xl* | bgxl* | bgf* | mpixl*) 8851 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8852 lt_prog_compiler_wl='-Wl,' 8853 lt_prog_compiler_pic='-qpic' 8854 lt_prog_compiler_static='-qstaticlink' 8855 ;; 8856 *) 8857 case `$CC -V 2>&1 | sed 5q` in 8858 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8859 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8860 lt_prog_compiler_pic='-KPIC' 8861 lt_prog_compiler_static='-Bstatic' 8862 lt_prog_compiler_wl='' 8863 ;; 8864 *Sun\ F* | *Sun*Fortran*) 8865 lt_prog_compiler_pic='-KPIC' 8866 lt_prog_compiler_static='-Bstatic' 8867 lt_prog_compiler_wl='-Qoption ld ' 8868 ;; 8869 *Sun\ C*) 8870 # Sun C 5.9 8871 lt_prog_compiler_pic='-KPIC' 8872 lt_prog_compiler_static='-Bstatic' 8873 lt_prog_compiler_wl='-Wl,' 8874 ;; 8875 *Intel*\ [CF]*Compiler*) 8876 lt_prog_compiler_wl='-Wl,' 8877 lt_prog_compiler_pic='-fPIC' 8878 lt_prog_compiler_static='-static' 8879 ;; 8880 *Portland\ Group*) 8881 lt_prog_compiler_wl='-Wl,' 8882 lt_prog_compiler_pic='-fpic' 8883 lt_prog_compiler_static='-Bstatic' 8884 ;; 8885 esac 8886 ;; 8887 esac 8888 ;; 8889 8890 newsos6) 8891 lt_prog_compiler_pic='-KPIC' 8892 lt_prog_compiler_static='-Bstatic' 8893 ;; 8894 8895 *nto* | *qnx*) 8896 # QNX uses GNU C++, but need to define -shared option too, otherwise 8897 # it will coredump. 8898 lt_prog_compiler_pic='-fPIC -shared' 8899 ;; 8900 8901 osf3* | osf4* | osf5*) 8902 lt_prog_compiler_wl='-Wl,' 8903 # All OSF/1 code is PIC. 8904 lt_prog_compiler_static='-non_shared' 8905 ;; 8906 8907 rdos*) 8908 lt_prog_compiler_static='-non_shared' 8909 ;; 8910 8911 solaris*) 8912 lt_prog_compiler_pic='-KPIC' 8913 lt_prog_compiler_static='-Bstatic' 8914 case $cc_basename in 8915 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8916 lt_prog_compiler_wl='-Qoption ld ';; 8917 *) 8918 lt_prog_compiler_wl='-Wl,';; 8919 esac 8920 ;; 8921 8922 sunos4*) 8923 lt_prog_compiler_wl='-Qoption ld ' 8924 lt_prog_compiler_pic='-PIC' 8925 lt_prog_compiler_static='-Bstatic' 8926 ;; 8927 8928 sysv4 | sysv4.2uw2* | sysv4.3*) 8929 lt_prog_compiler_wl='-Wl,' 8930 lt_prog_compiler_pic='-KPIC' 8931 lt_prog_compiler_static='-Bstatic' 8932 ;; 8933 8934 sysv4*MP*) 8935 if test -d /usr/nec; then 8936 lt_prog_compiler_pic='-Kconform_pic' 8937 lt_prog_compiler_static='-Bstatic' 8938 fi 8939 ;; 8940 8941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8942 lt_prog_compiler_wl='-Wl,' 8943 lt_prog_compiler_pic='-KPIC' 8944 lt_prog_compiler_static='-Bstatic' 8945 ;; 8946 8947 unicos*) 8948 lt_prog_compiler_wl='-Wl,' 8949 lt_prog_compiler_can_build_shared=no 8950 ;; 8951 8952 uts4*) 8953 lt_prog_compiler_pic='-pic' 8954 lt_prog_compiler_static='-Bstatic' 8955 ;; 8956 8957 *) 8958 lt_prog_compiler_can_build_shared=no 8959 ;; 8960 esac 8961 fi 8962 8963case $host_os in 8964 # For platforms that do not support PIC, -DPIC is meaningless: 8965 *djgpp*) 8966 lt_prog_compiler_pic= 8967 ;; 8968 *) 8969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8970 ;; 8971esac 8972 8973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8974$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8975if ${lt_cv_prog_compiler_pic+:} false; then : 8976 $as_echo_n "(cached) " >&6 8977else 8978 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8979fi 8980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8981$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8982lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8983 8984# 8985# Check to make sure the PIC flag actually works. 8986# 8987if test -n "$lt_prog_compiler_pic"; then 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8989$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8990if ${lt_cv_prog_compiler_pic_works+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992else 8993 lt_cv_prog_compiler_pic_works=no 8994 ac_outfile=conftest.$ac_objext 8995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8997 # Insert the option either (1) after the last *FLAGS variable, or 8998 # (2) before a word containing "conftest.", or (3) at the end. 8999 # Note that $ac_compile itself does not contain backslashes and begins 9000 # with a dollar sign (not a hyphen), so the echo should work correctly. 9001 # The option is referenced via a variable to avoid confusing sed. 9002 lt_compile=`echo "$ac_compile" | $SED \ 9003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9005 -e 's:$: $lt_compiler_flag:'` 9006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9007 (eval "$lt_compile" 2>conftest.err) 9008 ac_status=$? 9009 cat conftest.err >&5 9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9011 if (exit $ac_status) && test -s "$ac_outfile"; then 9012 # The compiler can only warn and ignore the option if not recognized 9013 # So say no if there are warnings other than the usual output. 9014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9017 lt_cv_prog_compiler_pic_works=yes 9018 fi 9019 fi 9020 $RM conftest* 9021 9022fi 9023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9024$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9025 9026if test yes = "$lt_cv_prog_compiler_pic_works"; then 9027 case $lt_prog_compiler_pic in 9028 "" | " "*) ;; 9029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9030 esac 9031else 9032 lt_prog_compiler_pic= 9033 lt_prog_compiler_can_build_shared=no 9034fi 9035 9036fi 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048# 9049# Check to make sure the static flag actually works. 9050# 9051wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9053$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9054if ${lt_cv_prog_compiler_static_works+:} false; then : 9055 $as_echo_n "(cached) " >&6 9056else 9057 lt_cv_prog_compiler_static_works=no 9058 save_LDFLAGS=$LDFLAGS 9059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9060 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9062 # The linker can only warn and ignore the option if not recognized 9063 # So say no if there are warnings 9064 if test -s conftest.err; then 9065 # Append any errors to the config.log. 9066 cat conftest.err 1>&5 9067 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9069 if diff conftest.exp conftest.er2 >/dev/null; then 9070 lt_cv_prog_compiler_static_works=yes 9071 fi 9072 else 9073 lt_cv_prog_compiler_static_works=yes 9074 fi 9075 fi 9076 $RM -r conftest* 9077 LDFLAGS=$save_LDFLAGS 9078 9079fi 9080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9081$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9082 9083if test yes = "$lt_cv_prog_compiler_static_works"; then 9084 : 9085else 9086 lt_prog_compiler_static= 9087fi 9088 9089 9090 9091 9092 9093 9094 9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9097if ${lt_cv_prog_compiler_c_o+:} false; then : 9098 $as_echo_n "(cached) " >&6 9099else 9100 lt_cv_prog_compiler_c_o=no 9101 $RM -r conftest 2>/dev/null 9102 mkdir conftest 9103 cd conftest 9104 mkdir out 9105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9106 9107 lt_compiler_flag="-o out/conftest2.$ac_objext" 9108 # Insert the option either (1) after the last *FLAGS variable, or 9109 # (2) before a word containing "conftest.", or (3) at the end. 9110 # Note that $ac_compile itself does not contain backslashes and begins 9111 # with a dollar sign (not a hyphen), so the echo should work correctly. 9112 lt_compile=`echo "$ac_compile" | $SED \ 9113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9115 -e 's:$: $lt_compiler_flag:'` 9116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9117 (eval "$lt_compile" 2>out/conftest.err) 9118 ac_status=$? 9119 cat out/conftest.err >&5 9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9121 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9122 then 9123 # The compiler can only warn and ignore the option if not recognized 9124 # So say no if there are warnings 9125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9128 lt_cv_prog_compiler_c_o=yes 9129 fi 9130 fi 9131 chmod u+w . 2>&5 9132 $RM conftest* 9133 # SGI C++ compiler will create directory out/ii_files/ for 9134 # template instantiation 9135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9136 $RM out/* && rmdir out 9137 cd .. 9138 $RM -r conftest 9139 $RM conftest* 9140 9141fi 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9143$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9144 9145 9146 9147 9148 9149 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9151$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9152if ${lt_cv_prog_compiler_c_o+:} false; then : 9153 $as_echo_n "(cached) " >&6 9154else 9155 lt_cv_prog_compiler_c_o=no 9156 $RM -r conftest 2>/dev/null 9157 mkdir conftest 9158 cd conftest 9159 mkdir out 9160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9161 9162 lt_compiler_flag="-o out/conftest2.$ac_objext" 9163 # Insert the option either (1) after the last *FLAGS variable, or 9164 # (2) before a word containing "conftest.", or (3) at the end. 9165 # Note that $ac_compile itself does not contain backslashes and begins 9166 # with a dollar sign (not a hyphen), so the echo should work correctly. 9167 lt_compile=`echo "$ac_compile" | $SED \ 9168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9170 -e 's:$: $lt_compiler_flag:'` 9171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9172 (eval "$lt_compile" 2>out/conftest.err) 9173 ac_status=$? 9174 cat out/conftest.err >&5 9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9176 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9177 then 9178 # The compiler can only warn and ignore the option if not recognized 9179 # So say no if there are warnings 9180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9183 lt_cv_prog_compiler_c_o=yes 9184 fi 9185 fi 9186 chmod u+w . 2>&5 9187 $RM conftest* 9188 # SGI C++ compiler will create directory out/ii_files/ for 9189 # template instantiation 9190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9191 $RM out/* && rmdir out 9192 cd .. 9193 $RM -r conftest 9194 $RM conftest* 9195 9196fi 9197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9198$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9199 9200 9201 9202 9203hard_links=nottested 9204if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9205 # do not overwrite the value of need_locks provided by the user 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9207$as_echo_n "checking if we can lock with hard links... " >&6; } 9208 hard_links=yes 9209 $RM conftest* 9210 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9211 touch conftest.a 9212 ln conftest.a conftest.b 2>&5 || hard_links=no 9213 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9215$as_echo "$hard_links" >&6; } 9216 if test no = "$hard_links"; then 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9218$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9219 need_locks=warn 9220 fi 9221else 9222 need_locks=no 9223fi 9224 9225 9226 9227 9228 9229 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9231$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9232 9233 runpath_var= 9234 allow_undefined_flag= 9235 always_export_symbols=no 9236 archive_cmds= 9237 archive_expsym_cmds= 9238 compiler_needs_object=no 9239 enable_shared_with_static_runtimes=no 9240 export_dynamic_flag_spec= 9241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9242 hardcode_automatic=no 9243 hardcode_direct=no 9244 hardcode_direct_absolute=no 9245 hardcode_libdir_flag_spec= 9246 hardcode_libdir_separator= 9247 hardcode_minus_L=no 9248 hardcode_shlibpath_var=unsupported 9249 inherit_rpath=no 9250 link_all_deplibs=unknown 9251 module_cmds= 9252 module_expsym_cmds= 9253 old_archive_from_new_cmds= 9254 old_archive_from_expsyms_cmds= 9255 thread_safe_flag_spec= 9256 whole_archive_flag_spec= 9257 # include_expsyms should be a list of space-separated symbols to be *always* 9258 # included in the symbol list 9259 include_expsyms= 9260 # exclude_expsyms can be an extended regexp of symbols to exclude 9261 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9262 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9263 # as well as any symbol that contains 'd'. 9264 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9265 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9266 # platforms (ab)use it in PIC code, but their linkers get confused if 9267 # the symbol is explicitly referenced. Since portable code cannot 9268 # rely on this symbol name, it's probably fine to never include it in 9269 # preloaded symbol tables. 9270 # Exclude shared library initialization/finalization symbols. 9271 extract_expsyms_cmds= 9272 9273 case $host_os in 9274 cygwin* | mingw* | pw32* | cegcc*) 9275 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9276 # When not using gcc, we currently assume that we are using 9277 # Microsoft Visual C++. 9278 if test yes != "$GCC"; then 9279 with_gnu_ld=no 9280 fi 9281 ;; 9282 interix*) 9283 # we just hope/assume this is gcc and not c89 (= MSVC++) 9284 with_gnu_ld=yes 9285 ;; 9286 openbsd* | bitrig*) 9287 with_gnu_ld=no 9288 ;; 9289 linux* | k*bsd*-gnu | gnu*) 9290 link_all_deplibs=no 9291 ;; 9292 esac 9293 9294 ld_shlibs=yes 9295 9296 # On some targets, GNU ld is compatible enough with the native linker 9297 # that we're better off using the native interface for both. 9298 lt_use_gnu_ld_interface=no 9299 if test yes = "$with_gnu_ld"; then 9300 case $host_os in 9301 aix*) 9302 # The AIX port of GNU ld has always aspired to compatibility 9303 # with the native linker. However, as the warning in the GNU ld 9304 # block says, versions before 2.19.5* couldn't really create working 9305 # shared libraries, regardless of the interface used. 9306 case `$LD -v 2>&1` in 9307 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9308 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9309 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9310 *) 9311 lt_use_gnu_ld_interface=yes 9312 ;; 9313 esac 9314 ;; 9315 *) 9316 lt_use_gnu_ld_interface=yes 9317 ;; 9318 esac 9319 fi 9320 9321 if test yes = "$lt_use_gnu_ld_interface"; then 9322 # If archive_cmds runs LD, not CC, wlarc should be empty 9323 wlarc='$wl' 9324 9325 # Set some defaults for GNU ld with shared library support. These 9326 # are reset later if shared libraries are not supported. Putting them 9327 # here allows them to be overridden if necessary. 9328 runpath_var=LD_RUN_PATH 9329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9330 export_dynamic_flag_spec='$wl--export-dynamic' 9331 # ancient GNU ld didn't support --whole-archive et. al. 9332 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9333 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9334 else 9335 whole_archive_flag_spec= 9336 fi 9337 supports_anon_versioning=no 9338 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9339 *GNU\ gold*) supports_anon_versioning=yes ;; 9340 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9341 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9342 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9343 *\ 2.11.*) ;; # other 2.11 versions 9344 *) supports_anon_versioning=yes ;; 9345 esac 9346 9347 # See if GNU ld supports shared libraries. 9348 case $host_os in 9349 aix[3-9]*) 9350 # On AIX/PPC, the GNU linker is very broken 9351 if test ia64 != "$host_cpu"; then 9352 ld_shlibs=no 9353 cat <<_LT_EOF 1>&2 9354 9355*** Warning: the GNU linker, at least up to release 2.19, is reported 9356*** to be unable to reliably create shared libraries on AIX. 9357*** Therefore, libtool is disabling shared libraries support. If you 9358*** really care for shared libraries, you may want to install binutils 9359*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9360*** You will then need to restart the configuration process. 9361 9362_LT_EOF 9363 fi 9364 ;; 9365 9366 amigaos*) 9367 case $host_cpu in 9368 powerpc) 9369 # see comment about AmigaOS4 .so support 9370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9371 archive_expsym_cmds='' 9372 ;; 9373 m68k) 9374 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)' 9375 hardcode_libdir_flag_spec='-L$libdir' 9376 hardcode_minus_L=yes 9377 ;; 9378 esac 9379 ;; 9380 9381 beos*) 9382 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9383 allow_undefined_flag=unsupported 9384 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9385 # support --undefined. This deserves some investigation. FIXME 9386 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9387 else 9388 ld_shlibs=no 9389 fi 9390 ;; 9391 9392 cygwin* | mingw* | pw32* | cegcc*) 9393 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9394 # as there is no search path for DLLs. 9395 hardcode_libdir_flag_spec='-L$libdir' 9396 export_dynamic_flag_spec='$wl--export-all-symbols' 9397 allow_undefined_flag=unsupported 9398 always_export_symbols=no 9399 enable_shared_with_static_runtimes=yes 9400 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' 9401 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9402 9403 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9405 # If the export-symbols file already is a .def file, use it as 9406 # is; otherwise, prepend EXPORTS... 9407 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9408 cp $export_symbols $output_objdir/$soname.def; 9409 else 9410 echo EXPORTS > $output_objdir/$soname.def; 9411 cat $export_symbols >> $output_objdir/$soname.def; 9412 fi~ 9413 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9414 else 9415 ld_shlibs=no 9416 fi 9417 ;; 9418 9419 haiku*) 9420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9421 link_all_deplibs=yes 9422 ;; 9423 9424 os2*) 9425 hardcode_libdir_flag_spec='-L$libdir' 9426 hardcode_minus_L=yes 9427 allow_undefined_flag=unsupported 9428 shrext_cmds=.dll 9429 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9430 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9431 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9432 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9433 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9434 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9435 emximp -o $lib $output_objdir/$libname.def' 9436 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9437 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9438 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9439 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9440 prefix_cmds="$SED"~ 9441 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9442 prefix_cmds="$prefix_cmds -e 1d"; 9443 fi~ 9444 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9445 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9446 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9447 emximp -o $lib $output_objdir/$libname.def' 9448 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9449 enable_shared_with_static_runtimes=yes 9450 ;; 9451 9452 interix[3-9]*) 9453 hardcode_direct=no 9454 hardcode_shlibpath_var=no 9455 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9456 export_dynamic_flag_spec='$wl-E' 9457 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9458 # Instead, shared libraries are loaded at an image base (0x10000000 by 9459 # default) and relocated if they conflict, which is a slow very memory 9460 # consuming and fragmenting process. To avoid this, we pick a random, 9461 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9462 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9464 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' 9465 ;; 9466 9467 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9468 tmp_diet=no 9469 if test linux-dietlibc = "$host_os"; then 9470 case $cc_basename in 9471 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9472 esac 9473 fi 9474 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9475 && test no = "$tmp_diet" 9476 then 9477 tmp_addflag=' $pic_flag' 9478 tmp_sharedflag='-shared' 9479 case $cc_basename,$host_cpu in 9480 pgcc*) # Portland Group C compiler 9481 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' 9482 tmp_addflag=' $pic_flag' 9483 ;; 9484 pgf77* | pgf90* | pgf95* | pgfortran*) 9485 # Portland Group f77 and f90 compilers 9486 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' 9487 tmp_addflag=' $pic_flag -Mnomain' ;; 9488 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9489 tmp_addflag=' -i_dynamic' ;; 9490 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9491 tmp_addflag=' -i_dynamic -nofor_main' ;; 9492 ifc* | ifort*) # Intel Fortran compiler 9493 tmp_addflag=' -nofor_main' ;; 9494 lf95*) # Lahey Fortran 8.1 9495 whole_archive_flag_spec= 9496 tmp_sharedflag='--shared' ;; 9497 nagfor*) # NAGFOR 5.3 9498 tmp_sharedflag='-Wl,-shared' ;; 9499 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9500 tmp_sharedflag='-qmkshrobj' 9501 tmp_addflag= ;; 9502 nvcc*) # Cuda Compiler Driver 2.2 9503 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' 9504 compiler_needs_object=yes 9505 ;; 9506 esac 9507 case `$CC -V 2>&1 | sed 5q` in 9508 *Sun\ C*) # Sun C 5.9 9509 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' 9510 compiler_needs_object=yes 9511 tmp_sharedflag='-G' ;; 9512 *Sun\ F*) # Sun Fortran 8.3 9513 tmp_sharedflag='-G' ;; 9514 esac 9515 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9516 9517 if test yes = "$supports_anon_versioning"; then 9518 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9520 echo "local: *; };" >> $output_objdir/$libname.ver~ 9521 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9522 fi 9523 9524 case $cc_basename in 9525 tcc*) 9526 export_dynamic_flag_spec='-rdynamic' 9527 ;; 9528 xlf* | bgf* | bgxlf* | mpixlf*) 9529 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9530 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9531 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9532 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9533 if test yes = "$supports_anon_versioning"; then 9534 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9535 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9536 echo "local: *; };" >> $output_objdir/$libname.ver~ 9537 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9538 fi 9539 ;; 9540 esac 9541 else 9542 ld_shlibs=no 9543 fi 9544 ;; 9545 9546 netbsd* | netbsdelf*-gnu) 9547 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9548 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9549 wlarc= 9550 else 9551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9552 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9553 fi 9554 ;; 9555 9556 solaris*) 9557 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9558 ld_shlibs=no 9559 cat <<_LT_EOF 1>&2 9560 9561*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9562*** create shared libraries on Solaris systems. Therefore, libtool 9563*** is disabling shared libraries support. We urge you to upgrade GNU 9564*** binutils to release 2.9.1 or newer. Another option is to modify 9565*** your PATH or compiler configuration so that the native linker is 9566*** used, and then restart. 9567 9568_LT_EOF 9569 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9570 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9571 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9572 else 9573 ld_shlibs=no 9574 fi 9575 ;; 9576 9577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9578 case `$LD -v 2>&1` in 9579 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9580 ld_shlibs=no 9581 cat <<_LT_EOF 1>&2 9582 9583*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9584*** reliably create shared libraries on SCO systems. Therefore, libtool 9585*** is disabling shared libraries support. We urge you to upgrade GNU 9586*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9587*** your PATH or compiler configuration so that the native linker is 9588*** used, and then restart. 9589 9590_LT_EOF 9591 ;; 9592 *) 9593 # For security reasons, it is highly recommended that you always 9594 # use absolute paths for naming shared libraries, and exclude the 9595 # DT_RUNPATH tag from executables and libraries. But doing so 9596 # requires that you compile everything twice, which is a pain. 9597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9601 else 9602 ld_shlibs=no 9603 fi 9604 ;; 9605 esac 9606 ;; 9607 9608 sunos4*) 9609 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9610 wlarc= 9611 hardcode_direct=yes 9612 hardcode_shlibpath_var=no 9613 ;; 9614 9615 *) 9616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9618 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9619 else 9620 ld_shlibs=no 9621 fi 9622 ;; 9623 esac 9624 9625 if test no = "$ld_shlibs"; then 9626 runpath_var= 9627 hardcode_libdir_flag_spec= 9628 export_dynamic_flag_spec= 9629 whole_archive_flag_spec= 9630 fi 9631 else 9632 # PORTME fill in a description of your system's linker (not GNU ld) 9633 case $host_os in 9634 aix3*) 9635 allow_undefined_flag=unsupported 9636 always_export_symbols=yes 9637 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' 9638 # Note: this linker hardcodes the directories in LIBPATH if there 9639 # are no directories specified by -L. 9640 hardcode_minus_L=yes 9641 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9642 # Neither direct hardcoding nor static linking is supported with a 9643 # broken collect2. 9644 hardcode_direct=unsupported 9645 fi 9646 ;; 9647 9648 aix[4-9]*) 9649 if test ia64 = "$host_cpu"; then 9650 # On IA64, the linker does run time linking by default, so we don't 9651 # have to do anything special. 9652 aix_use_runtimelinking=no 9653 exp_sym_flag='-Bexport' 9654 no_entry_flag= 9655 else 9656 # If we're using GNU nm, then we don't want the "-C" option. 9657 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9658 # Without the "-l" option, or with the "-B" option, AIX nm treats 9659 # weak defined symbols like other global defined symbols, whereas 9660 # GNU nm marks them as "W". 9661 # While the 'weak' keyword is ignored in the Export File, we need 9662 # it in the Import File for the 'aix-soname' feature, so we have 9663 # to replace the "-B" option with "-P" for AIX nm. 9664 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9665 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9666 else 9667 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9668 fi 9669 aix_use_runtimelinking=no 9670 9671 # Test if we are trying to use run time linking or normal 9672 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9673 # have runtime linking enabled, and use it for executables. 9674 # For shared libraries, we enable/disable runtime linking 9675 # depending on the kind of the shared library created - 9676 # when "with_aix_soname,aix_use_runtimelinking" is: 9677 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9678 # "aix,yes" lib.so shared, rtl:yes, for executables 9679 # lib.a static archive 9680 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9681 # lib.a(lib.so.V) shared, rtl:no, for executables 9682 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9683 # lib.a(lib.so.V) shared, rtl:no 9684 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9685 # lib.a static archive 9686 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9687 for ld_flag in $LDFLAGS; do 9688 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9689 aix_use_runtimelinking=yes 9690 break 9691 fi 9692 done 9693 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9694 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9695 # so we don't have lib.a shared libs to link our executables. 9696 # We have to force runtime linking in this case. 9697 aix_use_runtimelinking=yes 9698 LDFLAGS="$LDFLAGS -Wl,-brtl" 9699 fi 9700 ;; 9701 esac 9702 9703 exp_sym_flag='-bexport' 9704 no_entry_flag='-bnoentry' 9705 fi 9706 9707 # When large executables or shared objects are built, AIX ld can 9708 # have problems creating the table of contents. If linking a library 9709 # or program results in "error TOC overflow" add -mminimal-toc to 9710 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9711 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9712 9713 archive_cmds='' 9714 hardcode_direct=yes 9715 hardcode_direct_absolute=yes 9716 hardcode_libdir_separator=':' 9717 link_all_deplibs=yes 9718 file_list_spec='$wl-f,' 9719 case $with_aix_soname,$aix_use_runtimelinking in 9720 aix,*) ;; # traditional, no import file 9721 svr4,* | *,yes) # use import file 9722 # The Import File defines what to hardcode. 9723 hardcode_direct=no 9724 hardcode_direct_absolute=no 9725 ;; 9726 esac 9727 9728 if test yes = "$GCC"; then 9729 case $host_os in aix4.[012]|aix4.[012].*) 9730 # We only want to do this on AIX 4.2 and lower, the check 9731 # below for broken collect2 doesn't work under 4.3+ 9732 collect2name=`$CC -print-prog-name=collect2` 9733 if test -f "$collect2name" && 9734 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9735 then 9736 # We have reworked collect2 9737 : 9738 else 9739 # We have old collect2 9740 hardcode_direct=unsupported 9741 # It fails to find uninstalled libraries when the uninstalled 9742 # path is not listed in the libpath. Setting hardcode_minus_L 9743 # to unsupported forces relinking 9744 hardcode_minus_L=yes 9745 hardcode_libdir_flag_spec='-L$libdir' 9746 hardcode_libdir_separator= 9747 fi 9748 ;; 9749 esac 9750 shared_flag='-shared' 9751 if test yes = "$aix_use_runtimelinking"; then 9752 shared_flag="$shared_flag "'$wl-G' 9753 fi 9754 # Need to ensure runtime linking is disabled for the traditional 9755 # shared library, or the linker may eventually find shared libraries 9756 # /with/ Import File - we do not want to mix them. 9757 shared_flag_aix='-shared' 9758 shared_flag_svr4='-shared $wl-G' 9759 else 9760 # not using gcc 9761 if test ia64 = "$host_cpu"; then 9762 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9763 # chokes on -Wl,-G. The following line is correct: 9764 shared_flag='-G' 9765 else 9766 if test yes = "$aix_use_runtimelinking"; then 9767 shared_flag='$wl-G' 9768 else 9769 shared_flag='$wl-bM:SRE' 9770 fi 9771 shared_flag_aix='$wl-bM:SRE' 9772 shared_flag_svr4='$wl-G' 9773 fi 9774 fi 9775 9776 export_dynamic_flag_spec='$wl-bexpall' 9777 # It seems that -bexpall does not export symbols beginning with 9778 # underscore (_), so it is better to generate a list of symbols to export. 9779 always_export_symbols=yes 9780 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9781 # Warning - without using the other runtime loading flags (-brtl), 9782 # -berok will link without error, but may produce a broken library. 9783 allow_undefined_flag='-berok' 9784 # Determine the default libpath from the value encoded in an 9785 # empty executable. 9786 if test set = "${lt_cv_aix_libpath+set}"; then 9787 aix_libpath=$lt_cv_aix_libpath 9788else 9789 if ${lt_cv_aix_libpath_+:} false; then : 9790 $as_echo_n "(cached) " >&6 9791else 9792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9793/* end confdefs.h. */ 9794 9795int 9796main () 9797{ 9798 9799 ; 9800 return 0; 9801} 9802_ACEOF 9803if ac_fn_c_try_link "$LINENO"; then : 9804 9805 lt_aix_libpath_sed=' 9806 /Import File Strings/,/^$/ { 9807 /^0/ { 9808 s/^0 *\([^ ]*\) *$/\1/ 9809 p 9810 } 9811 }' 9812 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9813 # Check for a 64-bit object if we didn't find anything. 9814 if test -z "$lt_cv_aix_libpath_"; then 9815 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9816 fi 9817fi 9818rm -f core conftest.err conftest.$ac_objext \ 9819 conftest$ac_exeext conftest.$ac_ext 9820 if test -z "$lt_cv_aix_libpath_"; then 9821 lt_cv_aix_libpath_=/usr/lib:/lib 9822 fi 9823 9824fi 9825 9826 aix_libpath=$lt_cv_aix_libpath_ 9827fi 9828 9829 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9830 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9831 else 9832 if test ia64 = "$host_cpu"; then 9833 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9834 allow_undefined_flag="-z nodefs" 9835 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" 9836 else 9837 # Determine the default libpath from the value encoded in an 9838 # empty executable. 9839 if test set = "${lt_cv_aix_libpath+set}"; then 9840 aix_libpath=$lt_cv_aix_libpath 9841else 9842 if ${lt_cv_aix_libpath_+:} false; then : 9843 $as_echo_n "(cached) " >&6 9844else 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847 9848int 9849main () 9850{ 9851 9852 ; 9853 return 0; 9854} 9855_ACEOF 9856if ac_fn_c_try_link "$LINENO"; then : 9857 9858 lt_aix_libpath_sed=' 9859 /Import File Strings/,/^$/ { 9860 /^0/ { 9861 s/^0 *\([^ ]*\) *$/\1/ 9862 p 9863 } 9864 }' 9865 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9866 # Check for a 64-bit object if we didn't find anything. 9867 if test -z "$lt_cv_aix_libpath_"; then 9868 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9869 fi 9870fi 9871rm -f core conftest.err conftest.$ac_objext \ 9872 conftest$ac_exeext conftest.$ac_ext 9873 if test -z "$lt_cv_aix_libpath_"; then 9874 lt_cv_aix_libpath_=/usr/lib:/lib 9875 fi 9876 9877fi 9878 9879 aix_libpath=$lt_cv_aix_libpath_ 9880fi 9881 9882 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9883 # Warning - without using the other run time loading flags, 9884 # -berok will link without error, but may produce a broken library. 9885 no_undefined_flag=' $wl-bernotok' 9886 allow_undefined_flag=' $wl-berok' 9887 if test yes = "$with_gnu_ld"; then 9888 # We only use this code for GNU lds that support --whole-archive. 9889 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9890 else 9891 # Exported symbols can be pulled into shared objects from archives 9892 whole_archive_flag_spec='$convenience' 9893 fi 9894 archive_cmds_need_lc=yes 9895 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9896 # -brtl affects multiple linker settings, -berok does not and is overridden later 9897 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9898 if test svr4 != "$with_aix_soname"; then 9899 # This is similar to how AIX traditionally builds its shared libraries. 9900 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9901 fi 9902 if test aix != "$with_aix_soname"; then 9903 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9904 else 9905 # used by -dlpreopen to get the symbols 9906 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9907 fi 9908 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9909 fi 9910 fi 9911 ;; 9912 9913 amigaos*) 9914 case $host_cpu in 9915 powerpc) 9916 # see comment about AmigaOS4 .so support 9917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9918 archive_expsym_cmds='' 9919 ;; 9920 m68k) 9921 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)' 9922 hardcode_libdir_flag_spec='-L$libdir' 9923 hardcode_minus_L=yes 9924 ;; 9925 esac 9926 ;; 9927 9928 bsdi[45]*) 9929 export_dynamic_flag_spec=-rdynamic 9930 ;; 9931 9932 cygwin* | mingw* | pw32* | cegcc*) 9933 # When not using gcc, we currently assume that we are using 9934 # Microsoft Visual C++. 9935 # hardcode_libdir_flag_spec is actually meaningless, as there is 9936 # no search path for DLLs. 9937 case $cc_basename in 9938 cl*) 9939 # Native MSVC 9940 hardcode_libdir_flag_spec=' ' 9941 allow_undefined_flag=unsupported 9942 always_export_symbols=yes 9943 file_list_spec='@' 9944 # Tell ltmain to make .lib files, not .a files. 9945 libext=lib 9946 # Tell ltmain to make .dll files, not .so files. 9947 shrext_cmds=.dll 9948 # FIXME: Setting linknames here is a bad hack. 9949 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9950 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9951 cp "$export_symbols" "$output_objdir/$soname.def"; 9952 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9953 else 9954 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9955 fi~ 9956 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9957 linknames=' 9958 # The linker will not automatically build a static lib if we build a DLL. 9959 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9960 enable_shared_with_static_runtimes=yes 9961 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9962 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9963 # Don't use ranlib 9964 old_postinstall_cmds='chmod 644 $oldlib' 9965 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9966 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9967 case $lt_outputfile in 9968 *.exe|*.EXE) ;; 9969 *) 9970 lt_outputfile=$lt_outputfile.exe 9971 lt_tool_outputfile=$lt_tool_outputfile.exe 9972 ;; 9973 esac~ 9974 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9975 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9976 $RM "$lt_outputfile.manifest"; 9977 fi' 9978 ;; 9979 *) 9980 # Assume MSVC wrapper 9981 hardcode_libdir_flag_spec=' ' 9982 allow_undefined_flag=unsupported 9983 # Tell ltmain to make .lib files, not .a files. 9984 libext=lib 9985 # Tell ltmain to make .dll files, not .so files. 9986 shrext_cmds=.dll 9987 # FIXME: Setting linknames here is a bad hack. 9988 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9989 # The linker will automatically build a .lib file if we build a DLL. 9990 old_archive_from_new_cmds='true' 9991 # FIXME: Should let the user specify the lib program. 9992 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9993 enable_shared_with_static_runtimes=yes 9994 ;; 9995 esac 9996 ;; 9997 9998 darwin* | rhapsody*) 9999 10000 10001 archive_cmds_need_lc=no 10002 hardcode_direct=no 10003 hardcode_automatic=yes 10004 hardcode_shlibpath_var=unsupported 10005 if test yes = "$lt_cv_ld_force_load"; then 10006 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\"`' 10007 10008 else 10009 whole_archive_flag_spec='' 10010 fi 10011 link_all_deplibs=yes 10012 allow_undefined_flag=$_lt_dar_allow_undefined 10013 case $cc_basename in 10014 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10015 *) _lt_dar_can_shared=$GCC ;; 10016 esac 10017 if test yes = "$_lt_dar_can_shared"; then 10018 output_verbose_link_cmd=func_echo_all 10019 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10020 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10021 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" 10022 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" 10023 10024 else 10025 ld_shlibs=no 10026 fi 10027 10028 ;; 10029 10030 dgux*) 10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10032 hardcode_libdir_flag_spec='-L$libdir' 10033 hardcode_shlibpath_var=no 10034 ;; 10035 10036 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10037 # support. Future versions do this automatically, but an explicit c++rt0.o 10038 # does not break anything, and helps significantly (at the cost of a little 10039 # extra space). 10040 freebsd2.2*) 10041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10042 hardcode_libdir_flag_spec='-R$libdir' 10043 hardcode_direct=yes 10044 hardcode_shlibpath_var=no 10045 ;; 10046 10047 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10048 freebsd2.*) 10049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10050 hardcode_direct=yes 10051 hardcode_minus_L=yes 10052 hardcode_shlibpath_var=no 10053 ;; 10054 10055 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10056 freebsd* | dragonfly*) 10057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10058 hardcode_libdir_flag_spec='-R$libdir' 10059 hardcode_direct=yes 10060 hardcode_shlibpath_var=no 10061 ;; 10062 10063 hpux9*) 10064 if test yes = "$GCC"; then 10065 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10066 else 10067 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10068 fi 10069 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10070 hardcode_libdir_separator=: 10071 hardcode_direct=yes 10072 10073 # hardcode_minus_L: Not really in the search PATH, 10074 # but as the default location of the library. 10075 hardcode_minus_L=yes 10076 export_dynamic_flag_spec='$wl-E' 10077 ;; 10078 10079 hpux10*) 10080 if test yes,no = "$GCC,$with_gnu_ld"; then 10081 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10082 else 10083 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10084 fi 10085 if test no = "$with_gnu_ld"; then 10086 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10087 hardcode_libdir_separator=: 10088 hardcode_direct=yes 10089 hardcode_direct_absolute=yes 10090 export_dynamic_flag_spec='$wl-E' 10091 # hardcode_minus_L: Not really in the search PATH, 10092 # but as the default location of the library. 10093 hardcode_minus_L=yes 10094 fi 10095 ;; 10096 10097 hpux11*) 10098 if test yes,no = "$GCC,$with_gnu_ld"; then 10099 case $host_cpu in 10100 hppa*64*) 10101 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10102 ;; 10103 ia64*) 10104 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10105 ;; 10106 *) 10107 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10108 ;; 10109 esac 10110 else 10111 case $host_cpu in 10112 hppa*64*) 10113 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10114 ;; 10115 ia64*) 10116 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10117 ;; 10118 *) 10119 10120 # Older versions of the 11.00 compiler do not understand -b yet 10121 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10123$as_echo_n "checking if $CC understands -b... " >&6; } 10124if ${lt_cv_prog_compiler__b+:} false; then : 10125 $as_echo_n "(cached) " >&6 10126else 10127 lt_cv_prog_compiler__b=no 10128 save_LDFLAGS=$LDFLAGS 10129 LDFLAGS="$LDFLAGS -b" 10130 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10131 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10132 # The linker can only warn and ignore the option if not recognized 10133 # So say no if there are warnings 10134 if test -s conftest.err; then 10135 # Append any errors to the config.log. 10136 cat conftest.err 1>&5 10137 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10139 if diff conftest.exp conftest.er2 >/dev/null; then 10140 lt_cv_prog_compiler__b=yes 10141 fi 10142 else 10143 lt_cv_prog_compiler__b=yes 10144 fi 10145 fi 10146 $RM -r conftest* 10147 LDFLAGS=$save_LDFLAGS 10148 10149fi 10150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10151$as_echo "$lt_cv_prog_compiler__b" >&6; } 10152 10153if test yes = "$lt_cv_prog_compiler__b"; then 10154 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10155else 10156 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10157fi 10158 10159 ;; 10160 esac 10161 fi 10162 if test no = "$with_gnu_ld"; then 10163 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10164 hardcode_libdir_separator=: 10165 10166 case $host_cpu in 10167 hppa*64*|ia64*) 10168 hardcode_direct=no 10169 hardcode_shlibpath_var=no 10170 ;; 10171 *) 10172 hardcode_direct=yes 10173 hardcode_direct_absolute=yes 10174 export_dynamic_flag_spec='$wl-E' 10175 10176 # hardcode_minus_L: Not really in the search PATH, 10177 # but as the default location of the library. 10178 hardcode_minus_L=yes 10179 ;; 10180 esac 10181 fi 10182 ;; 10183 10184 irix5* | irix6* | nonstopux*) 10185 if test yes = "$GCC"; then 10186 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' 10187 # Try to use the -exported_symbol ld option, if it does not 10188 # work, assume that -exports_file does not work either and 10189 # implicitly export all symbols. 10190 # This should be the same for all languages, so no per-tag cache variable. 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10192$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10193if ${lt_cv_irix_exported_symbol+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195else 10196 save_LDFLAGS=$LDFLAGS 10197 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10199/* end confdefs.h. */ 10200int foo (void) { return 0; } 10201_ACEOF 10202if ac_fn_c_try_link "$LINENO"; then : 10203 lt_cv_irix_exported_symbol=yes 10204else 10205 lt_cv_irix_exported_symbol=no 10206fi 10207rm -f core conftest.err conftest.$ac_objext \ 10208 conftest$ac_exeext conftest.$ac_ext 10209 LDFLAGS=$save_LDFLAGS 10210fi 10211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10212$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10213 if test yes = "$lt_cv_irix_exported_symbol"; then 10214 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' 10215 fi 10216 link_all_deplibs=no 10217 else 10218 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' 10219 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' 10220 fi 10221 archive_cmds_need_lc='no' 10222 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10223 hardcode_libdir_separator=: 10224 inherit_rpath=yes 10225 link_all_deplibs=yes 10226 ;; 10227 10228 linux*) 10229 case $cc_basename in 10230 tcc*) 10231 # Fabrice Bellard et al's Tiny C Compiler 10232 ld_shlibs=yes 10233 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10234 ;; 10235 esac 10236 ;; 10237 10238 netbsd* | netbsdelf*-gnu) 10239 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10241 else 10242 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10243 fi 10244 hardcode_libdir_flag_spec='-R$libdir' 10245 hardcode_direct=yes 10246 hardcode_shlibpath_var=no 10247 ;; 10248 10249 newsos6) 10250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10251 hardcode_direct=yes 10252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10253 hardcode_libdir_separator=: 10254 hardcode_shlibpath_var=no 10255 ;; 10256 10257 *nto* | *qnx*) 10258 ;; 10259 10260 openbsd* | bitrig*) 10261 if test -f /usr/libexec/ld.so; then 10262 hardcode_direct=yes 10263 hardcode_shlibpath_var=no 10264 hardcode_direct_absolute=yes 10265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10267 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10268 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10269 export_dynamic_flag_spec='$wl-E' 10270 else 10271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10272 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10273 fi 10274 else 10275 ld_shlibs=no 10276 fi 10277 ;; 10278 10279 os2*) 10280 hardcode_libdir_flag_spec='-L$libdir' 10281 hardcode_minus_L=yes 10282 allow_undefined_flag=unsupported 10283 shrext_cmds=.dll 10284 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10285 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10286 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10287 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10288 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10289 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10290 emximp -o $lib $output_objdir/$libname.def' 10291 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10292 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10293 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10294 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10295 prefix_cmds="$SED"~ 10296 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10297 prefix_cmds="$prefix_cmds -e 1d"; 10298 fi~ 10299 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10300 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10301 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10302 emximp -o $lib $output_objdir/$libname.def' 10303 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10304 enable_shared_with_static_runtimes=yes 10305 ;; 10306 10307 osf3*) 10308 if test yes = "$GCC"; then 10309 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10310 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' 10311 else 10312 allow_undefined_flag=' -expect_unresolved \*' 10313 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' 10314 fi 10315 archive_cmds_need_lc='no' 10316 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10317 hardcode_libdir_separator=: 10318 ;; 10319 10320 osf4* | osf5*) # as osf3* with the addition of -msym flag 10321 if test yes = "$GCC"; then 10322 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10323 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' 10324 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10325 else 10326 allow_undefined_flag=' -expect_unresolved \*' 10327 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' 10328 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~ 10329 $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' 10330 10331 # Both c and cxx compiler support -rpath directly 10332 hardcode_libdir_flag_spec='-rpath $libdir' 10333 fi 10334 archive_cmds_need_lc='no' 10335 hardcode_libdir_separator=: 10336 ;; 10337 10338 solaris*) 10339 no_undefined_flag=' -z defs' 10340 if test yes = "$GCC"; then 10341 wlarc='$wl' 10342 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10343 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10344 $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' 10345 else 10346 case `$CC -V 2>&1` in 10347 *"Compilers 5.0"*) 10348 wlarc='' 10349 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10350 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10351 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10352 ;; 10353 *) 10354 wlarc='$wl' 10355 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10357 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10358 ;; 10359 esac 10360 fi 10361 hardcode_libdir_flag_spec='-R$libdir' 10362 hardcode_shlibpath_var=no 10363 case $host_os in 10364 solaris2.[0-5] | solaris2.[0-5].*) ;; 10365 *) 10366 # The compiler driver will combine and reorder linker options, 10367 # but understands '-z linker_flag'. GCC discards it without '$wl', 10368 # but is careful enough not to reorder. 10369 # Supported since Solaris 2.6 (maybe 2.5.1?) 10370 if test yes = "$GCC"; then 10371 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10372 else 10373 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10374 fi 10375 ;; 10376 esac 10377 link_all_deplibs=yes 10378 ;; 10379 10380 sunos4*) 10381 if test sequent = "$host_vendor"; then 10382 # Use $CC to link under sequent, because it throws in some extra .o 10383 # files that make .init and .fini sections work. 10384 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10385 else 10386 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10387 fi 10388 hardcode_libdir_flag_spec='-L$libdir' 10389 hardcode_direct=yes 10390 hardcode_minus_L=yes 10391 hardcode_shlibpath_var=no 10392 ;; 10393 10394 sysv4) 10395 case $host_vendor in 10396 sni) 10397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10398 hardcode_direct=yes # is this really true??? 10399 ;; 10400 siemens) 10401 ## LD is ld it makes a PLAMLIB 10402 ## CC just makes a GrossModule. 10403 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10404 reload_cmds='$CC -r -o $output$reload_objs' 10405 hardcode_direct=no 10406 ;; 10407 motorola) 10408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10409 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10410 ;; 10411 esac 10412 runpath_var='LD_RUN_PATH' 10413 hardcode_shlibpath_var=no 10414 ;; 10415 10416 sysv4.3*) 10417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10418 hardcode_shlibpath_var=no 10419 export_dynamic_flag_spec='-Bexport' 10420 ;; 10421 10422 sysv4*MP*) 10423 if test -d /usr/nec; then 10424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10425 hardcode_shlibpath_var=no 10426 runpath_var=LD_RUN_PATH 10427 hardcode_runpath_var=yes 10428 ld_shlibs=yes 10429 fi 10430 ;; 10431 10432 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10433 no_undefined_flag='$wl-z,text' 10434 archive_cmds_need_lc=no 10435 hardcode_shlibpath_var=no 10436 runpath_var='LD_RUN_PATH' 10437 10438 if test yes = "$GCC"; then 10439 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10440 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10441 else 10442 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10443 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10444 fi 10445 ;; 10446 10447 sysv5* | sco3.2v5* | sco5v6*) 10448 # Note: We CANNOT use -z defs as we might desire, because we do not 10449 # link with -lc, and that would cause any symbols used from libc to 10450 # always be unresolved, which means just about no library would 10451 # ever link correctly. If we're not using GNU ld we use -z text 10452 # though, which does catch some bad symbols but isn't as heavy-handed 10453 # as -z defs. 10454 no_undefined_flag='$wl-z,text' 10455 allow_undefined_flag='$wl-z,nodefs' 10456 archive_cmds_need_lc=no 10457 hardcode_shlibpath_var=no 10458 hardcode_libdir_flag_spec='$wl-R,$libdir' 10459 hardcode_libdir_separator=':' 10460 link_all_deplibs=yes 10461 export_dynamic_flag_spec='$wl-Bexport' 10462 runpath_var='LD_RUN_PATH' 10463 10464 if test yes = "$GCC"; then 10465 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10466 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10467 else 10468 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10469 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10470 fi 10471 ;; 10472 10473 uts4*) 10474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10475 hardcode_libdir_flag_spec='-L$libdir' 10476 hardcode_shlibpath_var=no 10477 ;; 10478 10479 *) 10480 ld_shlibs=no 10481 ;; 10482 esac 10483 10484 if test sni = "$host_vendor"; then 10485 case $host in 10486 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10487 export_dynamic_flag_spec='$wl-Blargedynsym' 10488 ;; 10489 esac 10490 fi 10491 fi 10492 10493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10494$as_echo "$ld_shlibs" >&6; } 10495test no = "$ld_shlibs" && can_build_shared=no 10496 10497with_gnu_ld=$with_gnu_ld 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513# 10514# Do we need to explicitly link libc? 10515# 10516case "x$archive_cmds_need_lc" in 10517x|xyes) 10518 # Assume -lc should be added 10519 archive_cmds_need_lc=yes 10520 10521 if test yes,yes = "$GCC,$enable_shared"; then 10522 case $archive_cmds in 10523 *'~'*) 10524 # FIXME: we may have to deal with multi-command sequences. 10525 ;; 10526 '$CC '*) 10527 # Test whether the compiler implicitly links with -lc since on some 10528 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10529 # to ld, don't add -lc before -lgcc. 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10531$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10532if ${lt_cv_archive_cmds_need_lc+:} false; then : 10533 $as_echo_n "(cached) " >&6 10534else 10535 $RM conftest* 10536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10537 10538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10539 (eval $ac_compile) 2>&5 10540 ac_status=$? 10541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10542 test $ac_status = 0; } 2>conftest.err; then 10543 soname=conftest 10544 lib=conftest 10545 libobjs=conftest.$ac_objext 10546 deplibs= 10547 wl=$lt_prog_compiler_wl 10548 pic_flag=$lt_prog_compiler_pic 10549 compiler_flags=-v 10550 linker_flags=-v 10551 verstring= 10552 output_objdir=. 10553 libname=conftest 10554 lt_save_allow_undefined_flag=$allow_undefined_flag 10555 allow_undefined_flag= 10556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10557 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10558 ac_status=$? 10559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10560 test $ac_status = 0; } 10561 then 10562 lt_cv_archive_cmds_need_lc=no 10563 else 10564 lt_cv_archive_cmds_need_lc=yes 10565 fi 10566 allow_undefined_flag=$lt_save_allow_undefined_flag 10567 else 10568 cat conftest.err 1>&5 10569 fi 10570 $RM conftest* 10571 10572fi 10573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10574$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10575 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10576 ;; 10577 esac 10578 fi 10579 ;; 10580esac 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10734$as_echo_n "checking dynamic linker characteristics... " >&6; } 10735 10736if test yes = "$GCC"; then 10737 case $host_os in 10738 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10739 *) lt_awk_arg='/^libraries:/' ;; 10740 esac 10741 case $host_os in 10742 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10743 *) lt_sed_strip_eq='s|=/|/|g' ;; 10744 esac 10745 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10746 case $lt_search_path_spec in 10747 *\;*) 10748 # if the path contains ";" then we assume it to be the separator 10749 # otherwise default to the standard path separator (i.e. ":") - it is 10750 # assumed that no part of a normal pathname contains ";" but that should 10751 # okay in the real world where ";" in dirpaths is itself problematic. 10752 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10753 ;; 10754 *) 10755 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10756 ;; 10757 esac 10758 # Ok, now we have the path, separated by spaces, we can step through it 10759 # and add multilib dir if necessary... 10760 lt_tmp_lt_search_path_spec= 10761 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10762 # ...but if some path component already ends with the multilib dir we assume 10763 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10764 case "$lt_multi_os_dir; $lt_search_path_spec " in 10765 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10766 lt_multi_os_dir= 10767 ;; 10768 esac 10769 for lt_sys_path in $lt_search_path_spec; do 10770 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10772 elif test -n "$lt_multi_os_dir"; then 10773 test -d "$lt_sys_path" && \ 10774 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10775 fi 10776 done 10777 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10778BEGIN {RS = " "; FS = "/|\n";} { 10779 lt_foo = ""; 10780 lt_count = 0; 10781 for (lt_i = NF; lt_i > 0; lt_i--) { 10782 if ($lt_i != "" && $lt_i != ".") { 10783 if ($lt_i == "..") { 10784 lt_count++; 10785 } else { 10786 if (lt_count == 0) { 10787 lt_foo = "/" $lt_i lt_foo; 10788 } else { 10789 lt_count--; 10790 } 10791 } 10792 } 10793 } 10794 if (lt_foo != "") { lt_freq[lt_foo]++; } 10795 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10796}'` 10797 # AWK program above erroneously prepends '/' to C:/dos/paths 10798 # for these hosts. 10799 case $host_os in 10800 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10801 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10802 esac 10803 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10804else 10805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10806fi 10807library_names_spec= 10808libname_spec='lib$name' 10809soname_spec= 10810shrext_cmds=.so 10811postinstall_cmds= 10812postuninstall_cmds= 10813finish_cmds= 10814finish_eval= 10815shlibpath_var= 10816shlibpath_overrides_runpath=unknown 10817version_type=none 10818dynamic_linker="$host_os ld.so" 10819sys_lib_dlsearch_path_spec="/lib /usr/lib" 10820need_lib_prefix=unknown 10821hardcode_into_libs=no 10822 10823# when you set need_version to no, make sure it does not cause -set_version 10824# flags to be left without arguments 10825need_version=unknown 10826 10827 10828 10829case $host_os in 10830aix3*) 10831 version_type=linux # correct to gnu/linux during the next big refactor 10832 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10833 shlibpath_var=LIBPATH 10834 10835 # AIX 3 has no versioning support, so we append a major version to the name. 10836 soname_spec='$libname$release$shared_ext$major' 10837 ;; 10838 10839aix[4-9]*) 10840 version_type=linux # correct to gnu/linux during the next big refactor 10841 need_lib_prefix=no 10842 need_version=no 10843 hardcode_into_libs=yes 10844 if test ia64 = "$host_cpu"; then 10845 # AIX 5 supports IA64 10846 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10847 shlibpath_var=LD_LIBRARY_PATH 10848 else 10849 # With GCC up to 2.95.x, collect2 would create an import file 10850 # for dependence libraries. The import file would start with 10851 # the line '#! .'. This would cause the generated library to 10852 # depend on '.', always an invalid library. This was fixed in 10853 # development snapshots of GCC prior to 3.0. 10854 case $host_os in 10855 aix4 | aix4.[01] | aix4.[01].*) 10856 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10857 echo ' yes ' 10858 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10859 : 10860 else 10861 can_build_shared=no 10862 fi 10863 ;; 10864 esac 10865 # Using Import Files as archive members, it is possible to support 10866 # filename-based versioning of shared library archives on AIX. While 10867 # this would work for both with and without runtime linking, it will 10868 # prevent static linking of such archives. So we do filename-based 10869 # shared library versioning with .so extension only, which is used 10870 # when both runtime linking and shared linking is enabled. 10871 # Unfortunately, runtime linking may impact performance, so we do 10872 # not want this to be the default eventually. Also, we use the 10873 # versioned .so libs for executables only if there is the -brtl 10874 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10875 # To allow for filename-based versioning support, we need to create 10876 # libNAME.so.V as an archive file, containing: 10877 # *) an Import File, referring to the versioned filename of the 10878 # archive as well as the shared archive member, telling the 10879 # bitwidth (32 or 64) of that shared object, and providing the 10880 # list of exported symbols of that shared object, eventually 10881 # decorated with the 'weak' keyword 10882 # *) the shared object with the F_LOADONLY flag set, to really avoid 10883 # it being seen by the linker. 10884 # At run time we better use the real file rather than another symlink, 10885 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10886 10887 case $with_aix_soname,$aix_use_runtimelinking in 10888 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10889 # soname into executable. Probably we can add versioning support to 10890 # collect2, so additional links can be useful in future. 10891 aix,yes) # traditional libtool 10892 dynamic_linker='AIX unversionable lib.so' 10893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10894 # instead of lib<name>.a to let people know that these are not 10895 # typical AIX shared libraries. 10896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10897 ;; 10898 aix,no) # traditional AIX only 10899 dynamic_linker='AIX lib.a(lib.so.V)' 10900 # We preserve .a as extension for shared libraries through AIX4.2 10901 # and later when we are not doing run time linking. 10902 library_names_spec='$libname$release.a $libname.a' 10903 soname_spec='$libname$release$shared_ext$major' 10904 ;; 10905 svr4,*) # full svr4 only 10906 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10907 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10908 # We do not specify a path in Import Files, so LIBPATH fires. 10909 shlibpath_overrides_runpath=yes 10910 ;; 10911 *,yes) # both, prefer svr4 10912 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10913 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10914 # unpreferred sharedlib libNAME.a needs extra handling 10915 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10916 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10917 # We do not specify a path in Import Files, so LIBPATH fires. 10918 shlibpath_overrides_runpath=yes 10919 ;; 10920 *,no) # both, prefer aix 10921 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10922 library_names_spec='$libname$release.a $libname.a' 10923 soname_spec='$libname$release$shared_ext$major' 10924 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10925 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10926 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10927 ;; 10928 esac 10929 shlibpath_var=LIBPATH 10930 fi 10931 ;; 10932 10933amigaos*) 10934 case $host_cpu in 10935 powerpc) 10936 # Since July 2007 AmigaOS4 officially supports .so libraries. 10937 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10939 ;; 10940 m68k) 10941 library_names_spec='$libname.ixlibrary $libname.a' 10942 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10943 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10944 ;; 10945 esac 10946 ;; 10947 10948beos*) 10949 library_names_spec='$libname$shared_ext' 10950 dynamic_linker="$host_os ld.so" 10951 shlibpath_var=LIBRARY_PATH 10952 ;; 10953 10954bsdi[45]*) 10955 version_type=linux # correct to gnu/linux during the next big refactor 10956 need_version=no 10957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10958 soname_spec='$libname$release$shared_ext$major' 10959 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10960 shlibpath_var=LD_LIBRARY_PATH 10961 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10962 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10963 # the default ld.so.conf also contains /usr/contrib/lib and 10964 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10965 # libtool to hard-code these into programs 10966 ;; 10967 10968cygwin* | mingw* | pw32* | cegcc*) 10969 version_type=windows 10970 shrext_cmds=.dll 10971 need_version=no 10972 need_lib_prefix=no 10973 10974 case $GCC,$cc_basename in 10975 yes,*) 10976 # gcc 10977 library_names_spec='$libname.dll.a' 10978 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10979 postinstall_cmds='base_file=`basename \$file`~ 10980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10981 dldir=$destdir/`dirname \$dlpath`~ 10982 test -d \$dldir || mkdir -p \$dldir~ 10983 $install_prog $dir/$dlname \$dldir/$dlname~ 10984 chmod a+x \$dldir/$dlname~ 10985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10986 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10987 fi' 10988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10989 dlpath=$dir/\$dldll~ 10990 $RM \$dlpath' 10991 shlibpath_overrides_runpath=yes 10992 10993 case $host_os in 10994 cygwin*) 10995 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10996 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10997 10998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10999 ;; 11000 mingw* | cegcc*) 11001 # MinGW DLLs use traditional 'lib' prefix 11002 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11003 ;; 11004 pw32*) 11005 # pw32 DLLs use 'pw' prefix rather than 'lib' 11006 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11007 ;; 11008 esac 11009 dynamic_linker='Win32 ld.exe' 11010 ;; 11011 11012 *,cl*) 11013 # Native MSVC 11014 libname_spec='$name' 11015 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11016 library_names_spec='$libname.dll.lib' 11017 11018 case $build_os in 11019 mingw*) 11020 sys_lib_search_path_spec= 11021 lt_save_ifs=$IFS 11022 IFS=';' 11023 for lt_path in $LIB 11024 do 11025 IFS=$lt_save_ifs 11026 # Let DOS variable expansion print the short 8.3 style file name. 11027 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11028 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11029 done 11030 IFS=$lt_save_ifs 11031 # Convert to MSYS style. 11032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11033 ;; 11034 cygwin*) 11035 # Convert to unix form, then to dos form, then back to unix form 11036 # but this time dos style (no spaces!) so that the unix form looks 11037 # like /cygdrive/c/PROGRA~1:/cygdr... 11038 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11039 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11040 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11041 ;; 11042 *) 11043 sys_lib_search_path_spec=$LIB 11044 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11045 # It is most probably a Windows format PATH. 11046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11047 else 11048 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11049 fi 11050 # FIXME: find the short name or the path components, as spaces are 11051 # common. (e.g. "Program Files" -> "PROGRA~1") 11052 ;; 11053 esac 11054 11055 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11056 postinstall_cmds='base_file=`basename \$file`~ 11057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11058 dldir=$destdir/`dirname \$dlpath`~ 11059 test -d \$dldir || mkdir -p \$dldir~ 11060 $install_prog $dir/$dlname \$dldir/$dlname' 11061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11062 dlpath=$dir/\$dldll~ 11063 $RM \$dlpath' 11064 shlibpath_overrides_runpath=yes 11065 dynamic_linker='Win32 link.exe' 11066 ;; 11067 11068 *) 11069 # Assume MSVC wrapper 11070 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11071 dynamic_linker='Win32 ld.exe' 11072 ;; 11073 esac 11074 # FIXME: first we should search . and the directory the executable is in 11075 shlibpath_var=PATH 11076 ;; 11077 11078darwin* | rhapsody*) 11079 dynamic_linker="$host_os dyld" 11080 version_type=darwin 11081 need_lib_prefix=no 11082 need_version=no 11083 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11084 soname_spec='$libname$release$major$shared_ext' 11085 shlibpath_overrides_runpath=yes 11086 shlibpath_var=DYLD_LIBRARY_PATH 11087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11088 11089 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11091 ;; 11092 11093dgux*) 11094 version_type=linux # correct to gnu/linux during the next big refactor 11095 need_lib_prefix=no 11096 need_version=no 11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11098 soname_spec='$libname$release$shared_ext$major' 11099 shlibpath_var=LD_LIBRARY_PATH 11100 ;; 11101 11102freebsd* | dragonfly*) 11103 # DragonFly does not have aout. When/if they implement a new 11104 # versioning mechanism, adjust this. 11105 if test -x /usr/bin/objformat; then 11106 objformat=`/usr/bin/objformat` 11107 else 11108 case $host_os in 11109 freebsd[23].*) objformat=aout ;; 11110 *) objformat=elf ;; 11111 esac 11112 fi 11113 version_type=freebsd-$objformat 11114 case $version_type in 11115 freebsd-elf*) 11116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11117 soname_spec='$libname$release$shared_ext$major' 11118 need_version=no 11119 need_lib_prefix=no 11120 ;; 11121 freebsd-*) 11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11123 need_version=yes 11124 ;; 11125 esac 11126 shlibpath_var=LD_LIBRARY_PATH 11127 case $host_os in 11128 freebsd2.*) 11129 shlibpath_overrides_runpath=yes 11130 ;; 11131 freebsd3.[01]* | freebsdelf3.[01]*) 11132 shlibpath_overrides_runpath=yes 11133 hardcode_into_libs=yes 11134 ;; 11135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11137 shlibpath_overrides_runpath=no 11138 hardcode_into_libs=yes 11139 ;; 11140 *) # from 4.6 on, and DragonFly 11141 shlibpath_overrides_runpath=yes 11142 hardcode_into_libs=yes 11143 ;; 11144 esac 11145 ;; 11146 11147haiku*) 11148 version_type=linux # correct to gnu/linux during the next big refactor 11149 need_lib_prefix=no 11150 need_version=no 11151 dynamic_linker="$host_os runtime_loader" 11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11153 soname_spec='$libname$release$shared_ext$major' 11154 shlibpath_var=LIBRARY_PATH 11155 shlibpath_overrides_runpath=no 11156 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11157 hardcode_into_libs=yes 11158 ;; 11159 11160hpux9* | hpux10* | hpux11*) 11161 # Give a soname corresponding to the major version so that dld.sl refuses to 11162 # link against other versions. 11163 version_type=sunos 11164 need_lib_prefix=no 11165 need_version=no 11166 case $host_cpu in 11167 ia64*) 11168 shrext_cmds='.so' 11169 hardcode_into_libs=yes 11170 dynamic_linker="$host_os dld.so" 11171 shlibpath_var=LD_LIBRARY_PATH 11172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11174 soname_spec='$libname$release$shared_ext$major' 11175 if test 32 = "$HPUX_IA64_MODE"; then 11176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11177 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11178 else 11179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11180 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11181 fi 11182 ;; 11183 hppa*64*) 11184 shrext_cmds='.sl' 11185 hardcode_into_libs=yes 11186 dynamic_linker="$host_os dld.sl" 11187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11190 soname_spec='$libname$release$shared_ext$major' 11191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11193 ;; 11194 *) 11195 shrext_cmds='.sl' 11196 dynamic_linker="$host_os dld.sl" 11197 shlibpath_var=SHLIB_PATH 11198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11200 soname_spec='$libname$release$shared_ext$major' 11201 ;; 11202 esac 11203 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11204 postinstall_cmds='chmod 555 $lib' 11205 # or fails outright, so override atomically: 11206 install_override_mode=555 11207 ;; 11208 11209interix[3-9]*) 11210 version_type=linux # correct to gnu/linux during the next big refactor 11211 need_lib_prefix=no 11212 need_version=no 11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11214 soname_spec='$libname$release$shared_ext$major' 11215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11216 shlibpath_var=LD_LIBRARY_PATH 11217 shlibpath_overrides_runpath=no 11218 hardcode_into_libs=yes 11219 ;; 11220 11221irix5* | irix6* | nonstopux*) 11222 case $host_os in 11223 nonstopux*) version_type=nonstopux ;; 11224 *) 11225 if test yes = "$lt_cv_prog_gnu_ld"; then 11226 version_type=linux # correct to gnu/linux during the next big refactor 11227 else 11228 version_type=irix 11229 fi ;; 11230 esac 11231 need_lib_prefix=no 11232 need_version=no 11233 soname_spec='$libname$release$shared_ext$major' 11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11235 case $host_os in 11236 irix5* | nonstopux*) 11237 libsuff= shlibsuff= 11238 ;; 11239 *) 11240 case $LD in # libtool.m4 will add one of these switches to LD 11241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11242 libsuff= shlibsuff= libmagic=32-bit;; 11243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11244 libsuff=32 shlibsuff=N32 libmagic=N32;; 11245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11246 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11247 *) libsuff= shlibsuff= libmagic=never-match;; 11248 esac 11249 ;; 11250 esac 11251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11252 shlibpath_overrides_runpath=no 11253 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11254 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11255 hardcode_into_libs=yes 11256 ;; 11257 11258# No shared lib support for Linux oldld, aout, or coff. 11259linux*oldld* | linux*aout* | linux*coff*) 11260 dynamic_linker=no 11261 ;; 11262 11263linux*android*) 11264 version_type=none # Android doesn't support versioned libraries. 11265 need_lib_prefix=no 11266 need_version=no 11267 library_names_spec='$libname$release$shared_ext' 11268 soname_spec='$libname$release$shared_ext' 11269 finish_cmds= 11270 shlibpath_var=LD_LIBRARY_PATH 11271 shlibpath_overrides_runpath=yes 11272 11273 # This implies no fast_install, which is unacceptable. 11274 # Some rework will be needed to allow for fast_install 11275 # before this can be enabled. 11276 hardcode_into_libs=yes 11277 11278 dynamic_linker='Android linker' 11279 # Don't embed -rpath directories since the linker doesn't support them. 11280 hardcode_libdir_flag_spec='-L$libdir' 11281 ;; 11282 11283# This must be glibc/ELF. 11284linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11285 version_type=linux # correct to gnu/linux during the next big refactor 11286 need_lib_prefix=no 11287 need_version=no 11288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11289 soname_spec='$libname$release$shared_ext$major' 11290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11291 shlibpath_var=LD_LIBRARY_PATH 11292 shlibpath_overrides_runpath=no 11293 11294 # Some binutils ld are patched to set DT_RUNPATH 11295 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11296 $as_echo_n "(cached) " >&6 11297else 11298 lt_cv_shlibpath_overrides_runpath=no 11299 save_LDFLAGS=$LDFLAGS 11300 save_libdir=$libdir 11301 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11302 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11304/* end confdefs.h. */ 11305 11306int 11307main () 11308{ 11309 11310 ; 11311 return 0; 11312} 11313_ACEOF 11314if ac_fn_c_try_link "$LINENO"; then : 11315 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11316 lt_cv_shlibpath_overrides_runpath=yes 11317fi 11318fi 11319rm -f core conftest.err conftest.$ac_objext \ 11320 conftest$ac_exeext conftest.$ac_ext 11321 LDFLAGS=$save_LDFLAGS 11322 libdir=$save_libdir 11323 11324fi 11325 11326 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11327 11328 # This implies no fast_install, which is unacceptable. 11329 # Some rework will be needed to allow for fast_install 11330 # before this can be enabled. 11331 hardcode_into_libs=yes 11332 11333 # Ideally, we could use ldconfig to report *all* directores which are 11334 # searched for libraries, however this is still not possible. Aside from not 11335 # being certain /sbin/ldconfig is available, command 11336 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11337 # even though it is searched at run-time. Try to do the best guess by 11338 # appending ld.so.conf contents (and includes) to the search path. 11339 if test -f /etc/ld.so.conf; then 11340 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' ' '` 11341 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11342 fi 11343 11344 # We used to test for /lib/ld.so.1 and disable shared libraries on 11345 # powerpc, because MkLinux only supported shared libraries with the 11346 # GNU dynamic linker. Since this was broken with cross compilers, 11347 # most powerpc-linux boxes support dynamic linking these days and 11348 # people can always --disable-shared, the test was removed, and we 11349 # assume the GNU/Linux dynamic linker is in use. 11350 dynamic_linker='GNU/Linux ld.so' 11351 ;; 11352 11353netbsdelf*-gnu) 11354 version_type=linux 11355 need_lib_prefix=no 11356 need_version=no 11357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11358 soname_spec='${libname}${release}${shared_ext}$major' 11359 shlibpath_var=LD_LIBRARY_PATH 11360 shlibpath_overrides_runpath=no 11361 hardcode_into_libs=yes 11362 dynamic_linker='NetBSD ld.elf_so' 11363 ;; 11364 11365netbsd*) 11366 version_type=sunos 11367 need_lib_prefix=no 11368 need_version=no 11369 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11372 dynamic_linker='NetBSD (a.out) ld.so' 11373 else 11374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11375 soname_spec='$libname$release$shared_ext$major' 11376 dynamic_linker='NetBSD ld.elf_so' 11377 fi 11378 shlibpath_var=LD_LIBRARY_PATH 11379 shlibpath_overrides_runpath=yes 11380 hardcode_into_libs=yes 11381 ;; 11382 11383newsos6) 11384 version_type=linux # correct to gnu/linux during the next big refactor 11385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11386 shlibpath_var=LD_LIBRARY_PATH 11387 shlibpath_overrides_runpath=yes 11388 ;; 11389 11390*nto* | *qnx*) 11391 version_type=qnx 11392 need_lib_prefix=no 11393 need_version=no 11394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11395 soname_spec='$libname$release$shared_ext$major' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 shlibpath_overrides_runpath=no 11398 hardcode_into_libs=yes 11399 dynamic_linker='ldqnx.so' 11400 ;; 11401 11402openbsd* | bitrig*) 11403 version_type=sunos 11404 sys_lib_dlsearch_path_spec=/usr/lib 11405 need_lib_prefix=no 11406 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11407 need_version=no 11408 else 11409 need_version=yes 11410 fi 11411 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11413 shlibpath_var=LD_LIBRARY_PATH 11414 shlibpath_overrides_runpath=yes 11415 ;; 11416 11417os2*) 11418 libname_spec='$name' 11419 version_type=windows 11420 shrext_cmds=.dll 11421 need_version=no 11422 need_lib_prefix=no 11423 # OS/2 can only load a DLL with a base name of 8 characters or less. 11424 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11425 v=$($ECHO $release$versuffix | tr -d .-); 11426 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11427 $ECHO $n$v`$shared_ext' 11428 library_names_spec='${libname}_dll.$libext' 11429 dynamic_linker='OS/2 ld.exe' 11430 shlibpath_var=BEGINLIBPATH 11431 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11433 postinstall_cmds='base_file=`basename \$file`~ 11434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11435 dldir=$destdir/`dirname \$dlpath`~ 11436 test -d \$dldir || mkdir -p \$dldir~ 11437 $install_prog $dir/$dlname \$dldir/$dlname~ 11438 chmod a+x \$dldir/$dlname~ 11439 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11440 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11441 fi' 11442 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11443 dlpath=$dir/\$dldll~ 11444 $RM \$dlpath' 11445 ;; 11446 11447osf3* | osf4* | osf5*) 11448 version_type=osf 11449 need_lib_prefix=no 11450 need_version=no 11451 soname_spec='$libname$release$shared_ext$major' 11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11453 shlibpath_var=LD_LIBRARY_PATH 11454 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11456 ;; 11457 11458rdos*) 11459 dynamic_linker=no 11460 ;; 11461 11462solaris*) 11463 version_type=linux # correct to gnu/linux during the next big refactor 11464 need_lib_prefix=no 11465 need_version=no 11466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11467 soname_spec='$libname$release$shared_ext$major' 11468 shlibpath_var=LD_LIBRARY_PATH 11469 shlibpath_overrides_runpath=yes 11470 hardcode_into_libs=yes 11471 # ldd complains unless libraries are executable 11472 postinstall_cmds='chmod +x $lib' 11473 ;; 11474 11475sunos4*) 11476 version_type=sunos 11477 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11478 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11479 shlibpath_var=LD_LIBRARY_PATH 11480 shlibpath_overrides_runpath=yes 11481 if test yes = "$with_gnu_ld"; then 11482 need_lib_prefix=no 11483 fi 11484 need_version=yes 11485 ;; 11486 11487sysv4 | sysv4.3*) 11488 version_type=linux # correct to gnu/linux during the next big refactor 11489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11490 soname_spec='$libname$release$shared_ext$major' 11491 shlibpath_var=LD_LIBRARY_PATH 11492 case $host_vendor in 11493 sni) 11494 shlibpath_overrides_runpath=no 11495 need_lib_prefix=no 11496 runpath_var=LD_RUN_PATH 11497 ;; 11498 siemens) 11499 need_lib_prefix=no 11500 ;; 11501 motorola) 11502 need_lib_prefix=no 11503 need_version=no 11504 shlibpath_overrides_runpath=no 11505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11506 ;; 11507 esac 11508 ;; 11509 11510sysv4*MP*) 11511 if test -d /usr/nec; then 11512 version_type=linux # correct to gnu/linux during the next big refactor 11513 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11514 soname_spec='$libname$shared_ext.$major' 11515 shlibpath_var=LD_LIBRARY_PATH 11516 fi 11517 ;; 11518 11519sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11520 version_type=sco 11521 need_lib_prefix=no 11522 need_version=no 11523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11524 soname_spec='$libname$release$shared_ext$major' 11525 shlibpath_var=LD_LIBRARY_PATH 11526 shlibpath_overrides_runpath=yes 11527 hardcode_into_libs=yes 11528 if test yes = "$with_gnu_ld"; then 11529 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11530 else 11531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11532 case $host_os in 11533 sco3.2v5*) 11534 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11535 ;; 11536 esac 11537 fi 11538 sys_lib_dlsearch_path_spec='/usr/lib' 11539 ;; 11540 11541tpf*) 11542 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11543 version_type=linux # correct to gnu/linux during the next big refactor 11544 need_lib_prefix=no 11545 need_version=no 11546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11547 shlibpath_var=LD_LIBRARY_PATH 11548 shlibpath_overrides_runpath=no 11549 hardcode_into_libs=yes 11550 ;; 11551 11552uts4*) 11553 version_type=linux # correct to gnu/linux during the next big refactor 11554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11555 soname_spec='$libname$release$shared_ext$major' 11556 shlibpath_var=LD_LIBRARY_PATH 11557 ;; 11558 11559*) 11560 dynamic_linker=no 11561 ;; 11562esac 11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11564$as_echo "$dynamic_linker" >&6; } 11565test no = "$dynamic_linker" && can_build_shared=no 11566 11567variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11568if test yes = "$GCC"; then 11569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11570fi 11571 11572if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11573 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11574fi 11575 11576if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11577 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11578fi 11579 11580# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11581configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11582 11583# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11584func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11585 11586# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11587configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11686$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11687hardcode_action= 11688if test -n "$hardcode_libdir_flag_spec" || 11689 test -n "$runpath_var" || 11690 test yes = "$hardcode_automatic"; then 11691 11692 # We can hardcode non-existent directories. 11693 if test no != "$hardcode_direct" && 11694 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11695 # have to relink, otherwise we might link with an installed library 11696 # when we should be linking with a yet-to-be-installed one 11697 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11698 test no != "$hardcode_minus_L"; then 11699 # Linking always hardcodes the temporary library directory. 11700 hardcode_action=relink 11701 else 11702 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11703 hardcode_action=immediate 11704 fi 11705else 11706 # We cannot hardcode anything, or else we can only hardcode existing 11707 # directories. 11708 hardcode_action=unsupported 11709fi 11710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11711$as_echo "$hardcode_action" >&6; } 11712 11713if test relink = "$hardcode_action" || 11714 test yes = "$inherit_rpath"; then 11715 # Fast installation is not supported 11716 enable_fast_install=no 11717elif test yes = "$shlibpath_overrides_runpath" || 11718 test no = "$enable_shared"; then 11719 # Fast installation is not necessary 11720 enable_fast_install=needless 11721fi 11722 11723 11724 11725 11726 11727 11728 if test yes != "$enable_dlopen"; then 11729 enable_dlopen=unknown 11730 enable_dlopen_self=unknown 11731 enable_dlopen_self_static=unknown 11732else 11733 lt_cv_dlopen=no 11734 lt_cv_dlopen_libs= 11735 11736 case $host_os in 11737 beos*) 11738 lt_cv_dlopen=load_add_on 11739 lt_cv_dlopen_libs= 11740 lt_cv_dlopen_self=yes 11741 ;; 11742 11743 mingw* | pw32* | cegcc*) 11744 lt_cv_dlopen=LoadLibrary 11745 lt_cv_dlopen_libs= 11746 ;; 11747 11748 cygwin*) 11749 lt_cv_dlopen=dlopen 11750 lt_cv_dlopen_libs= 11751 ;; 11752 11753 darwin*) 11754 # if libdl is installed we need to link against it 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11756$as_echo_n "checking for dlopen in -ldl... " >&6; } 11757if ${ac_cv_lib_dl_dlopen+:} false; then : 11758 $as_echo_n "(cached) " >&6 11759else 11760 ac_check_lib_save_LIBS=$LIBS 11761LIBS="-ldl $LIBS" 11762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11763/* end confdefs.h. */ 11764 11765/* Override any GCC internal prototype to avoid an error. 11766 Use char because int might match the return type of a GCC 11767 builtin and then its argument prototype would still apply. */ 11768#ifdef __cplusplus 11769extern "C" 11770#endif 11771char dlopen (); 11772int 11773main () 11774{ 11775return dlopen (); 11776 ; 11777 return 0; 11778} 11779_ACEOF 11780if ac_fn_c_try_link "$LINENO"; then : 11781 ac_cv_lib_dl_dlopen=yes 11782else 11783 ac_cv_lib_dl_dlopen=no 11784fi 11785rm -f core conftest.err conftest.$ac_objext \ 11786 conftest$ac_exeext conftest.$ac_ext 11787LIBS=$ac_check_lib_save_LIBS 11788fi 11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11790$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11791if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11792 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11793else 11794 11795 lt_cv_dlopen=dyld 11796 lt_cv_dlopen_libs= 11797 lt_cv_dlopen_self=yes 11798 11799fi 11800 11801 ;; 11802 11803 tpf*) 11804 # Don't try to run any link tests for TPF. We know it's impossible 11805 # because TPF is a cross-compiler, and we know how we open DSOs. 11806 lt_cv_dlopen=dlopen 11807 lt_cv_dlopen_libs= 11808 lt_cv_dlopen_self=no 11809 ;; 11810 11811 *) 11812 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11813if test "x$ac_cv_func_shl_load" = xyes; then : 11814 lt_cv_dlopen=shl_load 11815else 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11817$as_echo_n "checking for shl_load in -ldld... " >&6; } 11818if ${ac_cv_lib_dld_shl_load+:} false; then : 11819 $as_echo_n "(cached) " >&6 11820else 11821 ac_check_lib_save_LIBS=$LIBS 11822LIBS="-ldld $LIBS" 11823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11824/* end confdefs.h. */ 11825 11826/* Override any GCC internal prototype to avoid an error. 11827 Use char because int might match the return type of a GCC 11828 builtin and then its argument prototype would still apply. */ 11829#ifdef __cplusplus 11830extern "C" 11831#endif 11832char shl_load (); 11833int 11834main () 11835{ 11836return shl_load (); 11837 ; 11838 return 0; 11839} 11840_ACEOF 11841if ac_fn_c_try_link "$LINENO"; then : 11842 ac_cv_lib_dld_shl_load=yes 11843else 11844 ac_cv_lib_dld_shl_load=no 11845fi 11846rm -f core conftest.err conftest.$ac_objext \ 11847 conftest$ac_exeext conftest.$ac_ext 11848LIBS=$ac_check_lib_save_LIBS 11849fi 11850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11851$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11852if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11853 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11854else 11855 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11856if test "x$ac_cv_func_dlopen" = xyes; then : 11857 lt_cv_dlopen=dlopen 11858else 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11860$as_echo_n "checking for dlopen in -ldl... " >&6; } 11861if ${ac_cv_lib_dl_dlopen+:} false; then : 11862 $as_echo_n "(cached) " >&6 11863else 11864 ac_check_lib_save_LIBS=$LIBS 11865LIBS="-ldl $LIBS" 11866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11867/* end confdefs.h. */ 11868 11869/* Override any GCC internal prototype to avoid an error. 11870 Use char because int might match the return type of a GCC 11871 builtin and then its argument prototype would still apply. */ 11872#ifdef __cplusplus 11873extern "C" 11874#endif 11875char dlopen (); 11876int 11877main () 11878{ 11879return dlopen (); 11880 ; 11881 return 0; 11882} 11883_ACEOF 11884if ac_fn_c_try_link "$LINENO"; then : 11885 ac_cv_lib_dl_dlopen=yes 11886else 11887 ac_cv_lib_dl_dlopen=no 11888fi 11889rm -f core conftest.err conftest.$ac_objext \ 11890 conftest$ac_exeext conftest.$ac_ext 11891LIBS=$ac_check_lib_save_LIBS 11892fi 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11894$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11895if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11896 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11897else 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11899$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11900if ${ac_cv_lib_svld_dlopen+:} false; then : 11901 $as_echo_n "(cached) " >&6 11902else 11903 ac_check_lib_save_LIBS=$LIBS 11904LIBS="-lsvld $LIBS" 11905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11906/* end confdefs.h. */ 11907 11908/* Override any GCC internal prototype to avoid an error. 11909 Use char because int might match the return type of a GCC 11910 builtin and then its argument prototype would still apply. */ 11911#ifdef __cplusplus 11912extern "C" 11913#endif 11914char dlopen (); 11915int 11916main () 11917{ 11918return dlopen (); 11919 ; 11920 return 0; 11921} 11922_ACEOF 11923if ac_fn_c_try_link "$LINENO"; then : 11924 ac_cv_lib_svld_dlopen=yes 11925else 11926 ac_cv_lib_svld_dlopen=no 11927fi 11928rm -f core conftest.err conftest.$ac_objext \ 11929 conftest$ac_exeext conftest.$ac_ext 11930LIBS=$ac_check_lib_save_LIBS 11931fi 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11933$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11934if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11935 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11936else 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11938$as_echo_n "checking for dld_link in -ldld... " >&6; } 11939if ${ac_cv_lib_dld_dld_link+:} false; then : 11940 $as_echo_n "(cached) " >&6 11941else 11942 ac_check_lib_save_LIBS=$LIBS 11943LIBS="-ldld $LIBS" 11944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11945/* end confdefs.h. */ 11946 11947/* Override any GCC internal prototype to avoid an error. 11948 Use char because int might match the return type of a GCC 11949 builtin and then its argument prototype would still apply. */ 11950#ifdef __cplusplus 11951extern "C" 11952#endif 11953char dld_link (); 11954int 11955main () 11956{ 11957return dld_link (); 11958 ; 11959 return 0; 11960} 11961_ACEOF 11962if ac_fn_c_try_link "$LINENO"; then : 11963 ac_cv_lib_dld_dld_link=yes 11964else 11965 ac_cv_lib_dld_dld_link=no 11966fi 11967rm -f core conftest.err conftest.$ac_objext \ 11968 conftest$ac_exeext conftest.$ac_ext 11969LIBS=$ac_check_lib_save_LIBS 11970fi 11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11972$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11973if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11974 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11975fi 11976 11977 11978fi 11979 11980 11981fi 11982 11983 11984fi 11985 11986 11987fi 11988 11989 11990fi 11991 11992 ;; 11993 esac 11994 11995 if test no = "$lt_cv_dlopen"; then 11996 enable_dlopen=no 11997 else 11998 enable_dlopen=yes 11999 fi 12000 12001 case $lt_cv_dlopen in 12002 dlopen) 12003 save_CPPFLAGS=$CPPFLAGS 12004 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12005 12006 save_LDFLAGS=$LDFLAGS 12007 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12008 12009 save_LIBS=$LIBS 12010 LIBS="$lt_cv_dlopen_libs $LIBS" 12011 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12013$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12014if ${lt_cv_dlopen_self+:} false; then : 12015 $as_echo_n "(cached) " >&6 12016else 12017 if test yes = "$cross_compiling"; then : 12018 lt_cv_dlopen_self=cross 12019else 12020 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12021 lt_status=$lt_dlunknown 12022 cat > conftest.$ac_ext <<_LT_EOF 12023#line $LINENO "configure" 12024#include "confdefs.h" 12025 12026#if HAVE_DLFCN_H 12027#include <dlfcn.h> 12028#endif 12029 12030#include <stdio.h> 12031 12032#ifdef RTLD_GLOBAL 12033# define LT_DLGLOBAL RTLD_GLOBAL 12034#else 12035# ifdef DL_GLOBAL 12036# define LT_DLGLOBAL DL_GLOBAL 12037# else 12038# define LT_DLGLOBAL 0 12039# endif 12040#endif 12041 12042/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12043 find out it does not work in some platform. */ 12044#ifndef LT_DLLAZY_OR_NOW 12045# ifdef RTLD_LAZY 12046# define LT_DLLAZY_OR_NOW RTLD_LAZY 12047# else 12048# ifdef DL_LAZY 12049# define LT_DLLAZY_OR_NOW DL_LAZY 12050# else 12051# ifdef RTLD_NOW 12052# define LT_DLLAZY_OR_NOW RTLD_NOW 12053# else 12054# ifdef DL_NOW 12055# define LT_DLLAZY_OR_NOW DL_NOW 12056# else 12057# define LT_DLLAZY_OR_NOW 0 12058# endif 12059# endif 12060# endif 12061# endif 12062#endif 12063 12064/* When -fvisibility=hidden is used, assume the code has been annotated 12065 correspondingly for the symbols needed. */ 12066#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12067int fnord () __attribute__((visibility("default"))); 12068#endif 12069 12070int fnord () { return 42; } 12071int main () 12072{ 12073 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12074 int status = $lt_dlunknown; 12075 12076 if (self) 12077 { 12078 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12079 else 12080 { 12081 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12082 else puts (dlerror ()); 12083 } 12084 /* dlclose (self); */ 12085 } 12086 else 12087 puts (dlerror ()); 12088 12089 return status; 12090} 12091_LT_EOF 12092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12093 (eval $ac_link) 2>&5 12094 ac_status=$? 12095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12096 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12097 (./conftest; exit; ) >&5 2>/dev/null 12098 lt_status=$? 12099 case x$lt_status in 12100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12102 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12103 esac 12104 else : 12105 # compilation failed 12106 lt_cv_dlopen_self=no 12107 fi 12108fi 12109rm -fr conftest* 12110 12111 12112fi 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12114$as_echo "$lt_cv_dlopen_self" >&6; } 12115 12116 if test yes = "$lt_cv_dlopen_self"; then 12117 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12119$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12120if ${lt_cv_dlopen_self_static+:} false; then : 12121 $as_echo_n "(cached) " >&6 12122else 12123 if test yes = "$cross_compiling"; then : 12124 lt_cv_dlopen_self_static=cross 12125else 12126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12127 lt_status=$lt_dlunknown 12128 cat > conftest.$ac_ext <<_LT_EOF 12129#line $LINENO "configure" 12130#include "confdefs.h" 12131 12132#if HAVE_DLFCN_H 12133#include <dlfcn.h> 12134#endif 12135 12136#include <stdio.h> 12137 12138#ifdef RTLD_GLOBAL 12139# define LT_DLGLOBAL RTLD_GLOBAL 12140#else 12141# ifdef DL_GLOBAL 12142# define LT_DLGLOBAL DL_GLOBAL 12143# else 12144# define LT_DLGLOBAL 0 12145# endif 12146#endif 12147 12148/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12149 find out it does not work in some platform. */ 12150#ifndef LT_DLLAZY_OR_NOW 12151# ifdef RTLD_LAZY 12152# define LT_DLLAZY_OR_NOW RTLD_LAZY 12153# else 12154# ifdef DL_LAZY 12155# define LT_DLLAZY_OR_NOW DL_LAZY 12156# else 12157# ifdef RTLD_NOW 12158# define LT_DLLAZY_OR_NOW RTLD_NOW 12159# else 12160# ifdef DL_NOW 12161# define LT_DLLAZY_OR_NOW DL_NOW 12162# else 12163# define LT_DLLAZY_OR_NOW 0 12164# endif 12165# endif 12166# endif 12167# endif 12168#endif 12169 12170/* When -fvisibility=hidden is used, assume the code has been annotated 12171 correspondingly for the symbols needed. */ 12172#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12173int fnord () __attribute__((visibility("default"))); 12174#endif 12175 12176int fnord () { return 42; } 12177int main () 12178{ 12179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12180 int status = $lt_dlunknown; 12181 12182 if (self) 12183 { 12184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12185 else 12186 { 12187 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12188 else puts (dlerror ()); 12189 } 12190 /* dlclose (self); */ 12191 } 12192 else 12193 puts (dlerror ()); 12194 12195 return status; 12196} 12197_LT_EOF 12198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12199 (eval $ac_link) 2>&5 12200 ac_status=$? 12201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12202 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12203 (./conftest; exit; ) >&5 2>/dev/null 12204 lt_status=$? 12205 case x$lt_status in 12206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12208 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12209 esac 12210 else : 12211 # compilation failed 12212 lt_cv_dlopen_self_static=no 12213 fi 12214fi 12215rm -fr conftest* 12216 12217 12218fi 12219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12220$as_echo "$lt_cv_dlopen_self_static" >&6; } 12221 fi 12222 12223 CPPFLAGS=$save_CPPFLAGS 12224 LDFLAGS=$save_LDFLAGS 12225 LIBS=$save_LIBS 12226 ;; 12227 esac 12228 12229 case $lt_cv_dlopen_self in 12230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12231 *) enable_dlopen_self=unknown ;; 12232 esac 12233 12234 case $lt_cv_dlopen_self_static in 12235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12236 *) enable_dlopen_self_static=unknown ;; 12237 esac 12238fi 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256striplib= 12257old_striplib= 12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12259$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12260if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12262 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12264$as_echo "yes" >&6; } 12265else 12266# FIXME - insert some real tests, host_os isn't really good enough 12267 case $host_os in 12268 darwin*) 12269 if test -n "$STRIP"; then 12270 striplib="$STRIP -x" 12271 old_striplib="$STRIP -S" 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12273$as_echo "yes" >&6; } 12274 else 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12276$as_echo "no" >&6; } 12277 fi 12278 ;; 12279 *) 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12281$as_echo "no" >&6; } 12282 ;; 12283 esac 12284fi 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 # Report what library types will actually be built 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12299$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12301$as_echo "$can_build_shared" >&6; } 12302 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12304$as_echo_n "checking whether to build shared libraries... " >&6; } 12305 test no = "$can_build_shared" && enable_shared=no 12306 12307 # On AIX, shared libraries and static libraries use the same namespace, and 12308 # are all built from PIC. 12309 case $host_os in 12310 aix3*) 12311 test yes = "$enable_shared" && enable_static=no 12312 if test -n "$RANLIB"; then 12313 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12314 postinstall_cmds='$RANLIB $lib' 12315 fi 12316 ;; 12317 12318 aix[4-9]*) 12319 if test ia64 != "$host_cpu"; then 12320 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12321 yes,aix,yes) ;; # shared object as lib.so file only 12322 yes,svr4,*) ;; # shared object as lib.so archive member only 12323 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12324 esac 12325 fi 12326 ;; 12327 esac 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12329$as_echo "$enable_shared" >&6; } 12330 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12332$as_echo_n "checking whether to build static libraries... " >&6; } 12333 # Make sure either enable_shared or enable_static is yes. 12334 test yes = "$enable_shared" || enable_static=yes 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12336$as_echo "$enable_static" >&6; } 12337 12338 12339 12340 12341fi 12342ac_ext=c 12343ac_cpp='$CPP $CPPFLAGS' 12344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12346ac_compiler_gnu=$ac_cv_c_compiler_gnu 12347 12348CC=$lt_save_CC 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 ac_config_commands="$ac_config_commands libtool" 12365 12366 12367 12368 12369# Only expand once: 12370 12371 12372 12373# Whether linker support --version-script option 12374echo '{global:hello; local:*;};' > conftest.ver 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports -version-script" >&5 12376$as_echo_n "checking whether linker supports -version-script... " >&6; } 12377if ${datrie_cv_have_version_script+:} false; then : 12378 $as_echo_n "(cached) " >&6 12379else 12380 datrie_cv_have_version_script=no 12381 save_LDFLAGS=$LDFLAGS 12382 LDFLAGS="$LDFLAGS -Wl,-version-script -Wl,conftest.ver" 12383 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12384 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12385 # The linker can only warn and ignore the option if not recognized 12386 # So say no if there are warnings 12387 if test -s conftest.err; then 12388 # Append any errors to the config.log. 12389 cat conftest.err 1>&5 12390 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12392 if diff conftest.exp conftest.er2 >/dev/null; then 12393 datrie_cv_have_version_script=yes 12394 fi 12395 else 12396 datrie_cv_have_version_script=yes 12397 fi 12398 fi 12399 $RM -r conftest* 12400 LDFLAGS=$save_LDFLAGS 12401 12402fi 12403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $datrie_cv_have_version_script" >&5 12404$as_echo "$datrie_cv_have_version_script" >&6; } 12405 12406if test yes = "$datrie_cv_have_version_script"; then 12407 : 12408else 12409 : 12410fi 12411 12412 12413 if test "$datrie_cv_have_version_script" = "yes"; then 12414 LD_HAS_VERSION_SCRIPT_TRUE= 12415 LD_HAS_VERSION_SCRIPT_FALSE='#' 12416else 12417 LD_HAS_VERSION_SCRIPT_TRUE='#' 12418 LD_HAS_VERSION_SCRIPT_FALSE= 12419fi 12420 12421 12422# Checks for libraries. 12423 12424# 12425# Checks for iconv 12426# 12427found_iconv=no 12428# Check in the C library first 12429ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open" 12430if test "x$ac_cv_func_iconv_open" = xyes; then : 12431 with_libiconv=no; found_iconv=yes 12432fi 12433 12434# Check if we have GNU libiconv 12435if test $found_iconv = "no"; then 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 12437$as_echo_n "checking for libiconv_open in -liconv... " >&6; } 12438if ${ac_cv_lib_iconv_libiconv_open+:} false; then : 12439 $as_echo_n "(cached) " >&6 12440else 12441 ac_check_lib_save_LIBS=$LIBS 12442LIBS="-liconv $LIBS" 12443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12444/* end confdefs.h. */ 12445 12446/* Override any GCC internal prototype to avoid an error. 12447 Use char because int might match the return type of a GCC 12448 builtin and then its argument prototype would still apply. */ 12449#ifdef __cplusplus 12450extern "C" 12451#endif 12452char libiconv_open (); 12453int 12454main () 12455{ 12456return libiconv_open (); 12457 ; 12458 return 0; 12459} 12460_ACEOF 12461if ac_fn_c_try_link "$LINENO"; then : 12462 ac_cv_lib_iconv_libiconv_open=yes 12463else 12464 ac_cv_lib_iconv_libiconv_open=no 12465fi 12466rm -f core conftest.err conftest.$ac_objext \ 12467 conftest$ac_exeext conftest.$ac_ext 12468LIBS=$ac_check_lib_save_LIBS 12469fi 12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 12471$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } 12472if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : 12473 with_libiconv=gnu; found_iconv=yes 12474fi 12475 12476fi 12477# Check if we have a iconv in -liconv, possibly from vendor 12478if test $found_iconv = "no"; then 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5 12480$as_echo_n "checking for iconv_open in -liconv... " >&6; } 12481if ${ac_cv_lib_iconv_iconv_open+:} false; then : 12482 $as_echo_n "(cached) " >&6 12483else 12484 ac_check_lib_save_LIBS=$LIBS 12485LIBS="-liconv $LIBS" 12486cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12487/* end confdefs.h. */ 12488 12489/* Override any GCC internal prototype to avoid an error. 12490 Use char because int might match the return type of a GCC 12491 builtin and then its argument prototype would still apply. */ 12492#ifdef __cplusplus 12493extern "C" 12494#endif 12495char iconv_open (); 12496int 12497main () 12498{ 12499return iconv_open (); 12500 ; 12501 return 0; 12502} 12503_ACEOF 12504if ac_fn_c_try_link "$LINENO"; then : 12505 ac_cv_lib_iconv_iconv_open=yes 12506else 12507 ac_cv_lib_iconv_iconv_open=no 12508fi 12509rm -f core conftest.err conftest.$ac_objext \ 12510 conftest$ac_exeext conftest.$ac_ext 12511LIBS=$ac_check_lib_save_LIBS 12512fi 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5 12514$as_echo "$ac_cv_lib_iconv_iconv_open" >&6; } 12515if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then : 12516 with_libiconv=native; found_iconv=yes 12517fi 12518 12519fi 12520if test $found_iconv = "no"; then 12521 as_fn_error $? "*** No usable iconv() implementation found" "$LINENO" 5 12522fi 12523 12524case $with_libiconv in 12525 gnu|native) 12526 ICONV_LIBS="-liconv" 12527 ;; 12528esac 12529 12530 12531# 12532# Checks for locale_charset() and nl_langinfo(CODESET) 12533# 12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -liconv" >&5 12535$as_echo_n "checking for locale_charset in -liconv... " >&6; } 12536if ${ac_cv_lib_iconv_locale_charset+:} false; then : 12537 $as_echo_n "(cached) " >&6 12538else 12539 ac_check_lib_save_LIBS=$LIBS 12540LIBS="-liconv $LIBS" 12541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12542/* end confdefs.h. */ 12543 12544/* Override any GCC internal prototype to avoid an error. 12545 Use char because int might match the return type of a GCC 12546 builtin and then its argument prototype would still apply. */ 12547#ifdef __cplusplus 12548extern "C" 12549#endif 12550char locale_charset (); 12551int 12552main () 12553{ 12554return locale_charset (); 12555 ; 12556 return 0; 12557} 12558_ACEOF 12559if ac_fn_c_try_link "$LINENO"; then : 12560 ac_cv_lib_iconv_locale_charset=yes 12561else 12562 ac_cv_lib_iconv_locale_charset=no 12563fi 12564rm -f core conftest.err conftest.$ac_objext \ 12565 conftest$ac_exeext conftest.$ac_ext 12566LIBS=$ac_check_lib_save_LIBS 12567fi 12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_locale_charset" >&5 12569$as_echo "$ac_cv_lib_iconv_locale_charset" >&6; } 12570if test "x$ac_cv_lib_iconv_locale_charset" = xyes; then : 12571 have_locale_charset=yes 12572else 12573 have_locale_charset=no 12574fi 12575 12576if test x$have_locale_charset = xyes; then 12577 12578$as_echo "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h 12579 12580fi 12581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5 12582$as_echo_n "checking for nl_langinfo (CODESET)... " >&6; } 12583if ${datrie_cv_langinfo_codeset+:} false; then : 12584 $as_echo_n "(cached) " >&6 12585else 12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12587/* end confdefs.h. */ 12588#include <langinfo.h> 12589int 12590main () 12591{ 12592char *codeset = nl_langinfo (CODESET); 12593 ; 12594 return 0; 12595} 12596_ACEOF 12597if ac_fn_c_try_compile "$LINENO"; then : 12598 datrie_cv_langinfo_codeset=yes 12599else 12600 datrie_cv_langinfo_codeset=no 12601fi 12602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12603 12604fi 12605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $datrie_cv_langinfo_codeset" >&5 12606$as_echo "$datrie_cv_langinfo_codeset" >&6; } 12607if test x$datrie_cv_langinfo_codeset = xyes; then 12608 12609$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 12610 12611fi 12612if test x$have_locale_charset = xno && test x$datrie_cv_langinfo_codeset = xno 12613then 12614 as_fn_error $? "*** No locale_charset() nor nl_langinfo(CODESET) found. 12615Please consider installing GNU libiconv." "$LINENO" 5 12616fi 12617 12618 12619# Checks for header files. 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12621$as_echo_n "checking for ANSI C header files... " >&6; } 12622if ${ac_cv_header_stdc+:} false; then : 12623 $as_echo_n "(cached) " >&6 12624else 12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12626/* end confdefs.h. */ 12627#include <stdlib.h> 12628#include <stdarg.h> 12629#include <string.h> 12630#include <float.h> 12631 12632int 12633main () 12634{ 12635 12636 ; 12637 return 0; 12638} 12639_ACEOF 12640if ac_fn_c_try_compile "$LINENO"; then : 12641 ac_cv_header_stdc=yes 12642else 12643 ac_cv_header_stdc=no 12644fi 12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12646 12647if test $ac_cv_header_stdc = yes; then 12648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12650/* end confdefs.h. */ 12651#include <string.h> 12652 12653_ACEOF 12654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12655 $EGREP "memchr" >/dev/null 2>&1; then : 12656 12657else 12658 ac_cv_header_stdc=no 12659fi 12660rm -f conftest* 12661 12662fi 12663 12664if test $ac_cv_header_stdc = yes; then 12665 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12667/* end confdefs.h. */ 12668#include <stdlib.h> 12669 12670_ACEOF 12671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12672 $EGREP "free" >/dev/null 2>&1; then : 12673 12674else 12675 ac_cv_header_stdc=no 12676fi 12677rm -f conftest* 12678 12679fi 12680 12681if test $ac_cv_header_stdc = yes; then 12682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12683 if test "$cross_compiling" = yes; then : 12684 : 12685else 12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12687/* end confdefs.h. */ 12688#include <ctype.h> 12689#include <stdlib.h> 12690#if ((' ' & 0x0FF) == 0x020) 12691# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12692# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12693#else 12694# define ISLOWER(c) \ 12695 (('a' <= (c) && (c) <= 'i') \ 12696 || ('j' <= (c) && (c) <= 'r') \ 12697 || ('s' <= (c) && (c) <= 'z')) 12698# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12699#endif 12700 12701#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12702int 12703main () 12704{ 12705 int i; 12706 for (i = 0; i < 256; i++) 12707 if (XOR (islower (i), ISLOWER (i)) 12708 || toupper (i) != TOUPPER (i)) 12709 return 2; 12710 return 0; 12711} 12712_ACEOF 12713if ac_fn_c_try_run "$LINENO"; then : 12714 12715else 12716 ac_cv_header_stdc=no 12717fi 12718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12719 conftest.$ac_objext conftest.beam conftest.$ac_ext 12720fi 12721 12722fi 12723fi 12724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12725$as_echo "$ac_cv_header_stdc" >&6; } 12726if test $ac_cv_header_stdc = yes; then 12727 12728$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12729 12730fi 12731 12732for ac_header in limits.h stdlib.h stdio.h string.h 12733do : 12734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12735ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12737 cat >>confdefs.h <<_ACEOF 12738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12739_ACEOF 12740 12741fi 12742 12743done 12744 12745 12746# Checks for typedefs, structures, and compiler characteristics. 12747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12748$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12749if ${ac_cv_c_const+:} false; then : 12750 $as_echo_n "(cached) " >&6 12751else 12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12753/* end confdefs.h. */ 12754 12755int 12756main () 12757{ 12758 12759#ifndef __cplusplus 12760 /* Ultrix mips cc rejects this sort of thing. */ 12761 typedef int charset[2]; 12762 const charset cs = { 0, 0 }; 12763 /* SunOS 4.1.1 cc rejects this. */ 12764 char const *const *pcpcc; 12765 char **ppc; 12766 /* NEC SVR4.0.2 mips cc rejects this. */ 12767 struct point {int x, y;}; 12768 static struct point const zero = {0,0}; 12769 /* AIX XL C 1.02.0.0 rejects this. 12770 It does not let you subtract one const X* pointer from another in 12771 an arm of an if-expression whose if-part is not a constant 12772 expression */ 12773 const char *g = "string"; 12774 pcpcc = &g + (g ? g-g : 0); 12775 /* HPUX 7.0 cc rejects these. */ 12776 ++pcpcc; 12777 ppc = (char**) pcpcc; 12778 pcpcc = (char const *const *) ppc; 12779 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12780 char tx; 12781 char *t = &tx; 12782 char const *s = 0 ? (char *) 0 : (char const *) 0; 12783 12784 *t++ = 0; 12785 if (s) return 0; 12786 } 12787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12788 int x[] = {25, 17}; 12789 const int *foo = &x[0]; 12790 ++foo; 12791 } 12792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12793 typedef const int *iptr; 12794 iptr p = 0; 12795 ++p; 12796 } 12797 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12799 struct s { int j; const int *ap[3]; } bx; 12800 struct s *b = &bx; b->j = 5; 12801 } 12802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12803 const int foo = 10; 12804 if (!foo) return 0; 12805 } 12806 return !cs[0] && !zero.x; 12807#endif 12808 12809 ; 12810 return 0; 12811} 12812_ACEOF 12813if ac_fn_c_try_compile "$LINENO"; then : 12814 ac_cv_c_const=yes 12815else 12816 ac_cv_c_const=no 12817fi 12818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12819fi 12820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12821$as_echo "$ac_cv_c_const" >&6; } 12822if test $ac_cv_c_const = no; then 12823 12824$as_echo "#define const /**/" >>confdefs.h 12825 12826fi 12827 12828ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12829if test "x$ac_cv_type_size_t" = xyes; then : 12830 12831else 12832 12833cat >>confdefs.h <<_ACEOF 12834#define size_t unsigned int 12835_ACEOF 12836 12837fi 12838 12839 12840# Check whether --enable-doxygen-doc was given. 12841if test "${enable_doxygen_doc+set}" = set; then : 12842 enableval=$enable_doxygen_doc; 12843else 12844 enable_doxygen_doc="yes" 12845fi 12846 12847 12848if test "x$enable_doxygen_doc" = "xyes"; then 12849 # Extract the first word of "doxygen", so it can be a program name with args. 12850set dummy doxygen; ac_word=$2 12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12852$as_echo_n "checking for $ac_word... " >&6; } 12853if ${ac_cv_prog_DOXYGEN+:} false; then : 12854 $as_echo_n "(cached) " >&6 12855else 12856 if test -n "$DOXYGEN"; then 12857 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 12858else 12859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12860for as_dir in $PATH 12861do 12862 IFS=$as_save_IFS 12863 test -z "$as_dir" && as_dir=. 12864 for ac_exec_ext in '' $ac_executable_extensions; do 12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12866 ac_cv_prog_DOXYGEN="doxygen" 12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12868 break 2 12869 fi 12870done 12871 done 12872IFS=$as_save_IFS 12873 12874 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no" 12875fi 12876fi 12877DOXYGEN=$ac_cv_prog_DOXYGEN 12878if test -n "$DOXYGEN"; then 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 12880$as_echo "$DOXYGEN" >&6; } 12881else 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12883$as_echo "no" >&6; } 12884fi 12885 12886 12887 if test "x$DOXYGEN" = "xno"; then 12888 enable_doxygen_doc="no" 12889 else 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking doxygen >= $DOXYGEN_REQ_VER" >&5 12891$as_echo_n "checking doxygen >= $DOXYGEN_REQ_VER... " >&6; } 12892 DOXYGEN_VER=$($DOXYGEN --version) 12893 12894 12895 12896 # Used to indicate true or false condition 12897 ax_compare_version=false 12898 12899 # Convert the two version strings to be compared into a format that 12900 # allows a simple string comparison. The end result is that a version 12901 # string of the form 1.12.5-r617 will be converted to the form 12902 # 0001001200050617. In other words, each number is zero padded to four 12903 # digits, and non digits are removed. 12904 12905 ax_compare_version_A=`echo "$DOXYGEN_VER" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 12906 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 12907 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 12908 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 12909 -e 's/[^0-9]//g'` 12910 12911 12912 ax_compare_version_B=`echo "DOXYGEN_REQ_VER" | sed -e 's/\([0-9]*\)/Z\1Z/g' \ 12913 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \ 12914 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \ 12915 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \ 12916 -e 's/[^0-9]//g'` 12917 12918 12919 ax_compare_version=`echo "x$ax_compare_version_A 12920x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"` 12921 12922 12923 12924 if test "$ax_compare_version" = "true" ; then 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_VER, yes" >&5 12926$as_echo "$DOXYGEN_VER, yes" >&6; } 12927 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN_VER, no, documentation disabled" >&5 12928$as_echo "$DOXYGEN_VER, no, documentation disabled" >&6; }; enable_doxygen_doc="no" 12929 fi 12930 12931 fi 12932fi 12933 12934 12935# Check whether --with-html-docdir was given. 12936if test "${with_html_docdir+set}" = set; then : 12937 withval=$with_html_docdir; htmldocdir="$withval" 12938else 12939 htmldocdir=\$\{prefix\}/share/doc/datrie/html 12940fi 12941 12942 12943 12944 if test "x$enable_doxygen_doc" = "xyes"; then 12945 ENABLE_DOXYGEN_DOC_TRUE= 12946 ENABLE_DOXYGEN_DOC_FALSE='#' 12947else 12948 ENABLE_DOXYGEN_DOC_TRUE='#' 12949 ENABLE_DOXYGEN_DOC_FALSE= 12950fi 12951 12952 12953# Checks for library functions. 12954for ac_func in malloc 12955do : 12956 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc" 12957if test "x$ac_cv_func_malloc" = xyes; then : 12958 cat >>confdefs.h <<_ACEOF 12959#define HAVE_MALLOC 1 12960_ACEOF 12961 12962fi 12963done 12964 12965 12966ac_config_files="$ac_config_files Makefile datrie-0.2.pc datrie/Makefile tools/Makefile man/Makefile doc/Makefile doc/Doxyfile tests/Makefile" 12967 12968cat >confcache <<\_ACEOF 12969# This file is a shell script that caches the results of configure 12970# tests run on this system so they can be shared between configure 12971# scripts and configure runs, see configure's option --config-cache. 12972# It is not useful on other systems. If it contains results you don't 12973# want to keep, you may remove or edit it. 12974# 12975# config.status only pays attention to the cache file if you give it 12976# the --recheck option to rerun configure. 12977# 12978# `ac_cv_env_foo' variables (set or unset) will be overridden when 12979# loading this file, other *unset* `ac_cv_foo' will be assigned the 12980# following values. 12981 12982_ACEOF 12983 12984# The following way of writing the cache mishandles newlines in values, 12985# but we know of no workaround that is simple, portable, and efficient. 12986# So, we kill variables containing newlines. 12987# Ultrix sh set writes to stderr and can't be redirected directly, 12988# and sets the high bit in the cache file unless we assign to the vars. 12989( 12990 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12991 eval ac_val=\$$ac_var 12992 case $ac_val in #( 12993 *${as_nl}*) 12994 case $ac_var in #( 12995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12997 esac 12998 case $ac_var in #( 12999 _ | IFS | as_nl) ;; #( 13000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13001 *) { eval $ac_var=; unset $ac_var;} ;; 13002 esac ;; 13003 esac 13004 done 13005 13006 (set) 2>&1 | 13007 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13008 *${as_nl}ac_space=\ *) 13009 # `set' does not quote correctly, so add quotes: double-quote 13010 # substitution turns \\\\ into \\, and sed turns \\ into \. 13011 sed -n \ 13012 "s/'/'\\\\''/g; 13013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13014 ;; #( 13015 *) 13016 # `set' quotes correctly as required by POSIX, so do not add quotes. 13017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13018 ;; 13019 esac | 13020 sort 13021) | 13022 sed ' 13023 /^ac_cv_env_/b end 13024 t clear 13025 :clear 13026 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13027 t end 13028 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13029 :end' >>confcache 13030if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13031 if test -w "$cache_file"; then 13032 if test "x$cache_file" != "x/dev/null"; then 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13034$as_echo "$as_me: updating cache $cache_file" >&6;} 13035 if test ! -f "$cache_file" || test -h "$cache_file"; then 13036 cat confcache >"$cache_file" 13037 else 13038 case $cache_file in #( 13039 */* | ?:*) 13040 mv -f confcache "$cache_file"$$ && 13041 mv -f "$cache_file"$$ "$cache_file" ;; #( 13042 *) 13043 mv -f confcache "$cache_file" ;; 13044 esac 13045 fi 13046 fi 13047 else 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13049$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13050 fi 13051fi 13052rm -f confcache 13053 13054test "x$prefix" = xNONE && prefix=$ac_default_prefix 13055# Let make expand exec_prefix. 13056test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13057 13058DEFS=-DHAVE_CONFIG_H 13059 13060ac_libobjs= 13061ac_ltlibobjs= 13062U= 13063for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13064 # 1. Remove the extension, and $U if already installed. 13065 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13066 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13067 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13068 # will be set to the directory where LIBOBJS objects are built. 13069 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13070 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13071done 13072LIBOBJS=$ac_libobjs 13073 13074LTLIBOBJS=$ac_ltlibobjs 13075 13076 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13078$as_echo_n "checking that generated files are newer than configure... " >&6; } 13079 if test -n "$am_sleep_pid"; then 13080 # Hide warnings about reused PIDs. 13081 wait $am_sleep_pid 2>/dev/null 13082 fi 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13084$as_echo "done" >&6; } 13085 if test -n "$EXEEXT"; then 13086 am__EXEEXT_TRUE= 13087 am__EXEEXT_FALSE='#' 13088else 13089 am__EXEEXT_TRUE='#' 13090 am__EXEEXT_FALSE= 13091fi 13092 13093if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13094 as_fn_error $? "conditional \"AMDEP\" was never defined. 13095Usually this means the macro was only invoked conditionally." "$LINENO" 5 13096fi 13097if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13098 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13099Usually this means the macro was only invoked conditionally." "$LINENO" 5 13100fi 13101if test -z "${LD_HAS_VERSION_SCRIPT_TRUE}" && test -z "${LD_HAS_VERSION_SCRIPT_FALSE}"; then 13102 as_fn_error $? "conditional \"LD_HAS_VERSION_SCRIPT\" was never defined. 13103Usually this means the macro was only invoked conditionally." "$LINENO" 5 13104fi 13105if test -z "${ENABLE_DOXYGEN_DOC_TRUE}" && test -z "${ENABLE_DOXYGEN_DOC_FALSE}"; then 13106 as_fn_error $? "conditional \"ENABLE_DOXYGEN_DOC\" was never defined. 13107Usually this means the macro was only invoked conditionally." "$LINENO" 5 13108fi 13109 13110: "${CONFIG_STATUS=./config.status}" 13111ac_write_fail=0 13112ac_clean_files_save=$ac_clean_files 13113ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13114{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13115$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13116as_write_fail=0 13117cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13118#! $SHELL 13119# Generated by $as_me. 13120# Run this file to recreate the current configuration. 13121# Compiler output produced by configure, useful for debugging 13122# configure, is in config.log if it exists. 13123 13124debug=false 13125ac_cs_recheck=false 13126ac_cs_silent=false 13127 13128SHELL=\${CONFIG_SHELL-$SHELL} 13129export SHELL 13130_ASEOF 13131cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13132## -------------------- ## 13133## M4sh Initialization. ## 13134## -------------------- ## 13135 13136# Be more Bourne compatible 13137DUALCASE=1; export DUALCASE # for MKS sh 13138if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13139 emulate sh 13140 NULLCMD=: 13141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13142 # is contrary to our usage. Disable this feature. 13143 alias -g '${1+"$@"}'='"$@"' 13144 setopt NO_GLOB_SUBST 13145else 13146 case `(set -o) 2>/dev/null` in #( 13147 *posix*) : 13148 set -o posix ;; #( 13149 *) : 13150 ;; 13151esac 13152fi 13153 13154 13155as_nl=' 13156' 13157export as_nl 13158# Printing a long string crashes Solaris 7 /usr/bin/printf. 13159as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13160as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13161as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13162# Prefer a ksh shell builtin over an external printf program on Solaris, 13163# but without wasting forks for bash or zsh. 13164if test -z "$BASH_VERSION$ZSH_VERSION" \ 13165 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13166 as_echo='print -r --' 13167 as_echo_n='print -rn --' 13168elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13169 as_echo='printf %s\n' 13170 as_echo_n='printf %s' 13171else 13172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13174 as_echo_n='/usr/ucb/echo -n' 13175 else 13176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13177 as_echo_n_body='eval 13178 arg=$1; 13179 case $arg in #( 13180 *"$as_nl"*) 13181 expr "X$arg" : "X\\(.*\\)$as_nl"; 13182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13183 esac; 13184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13185 ' 13186 export as_echo_n_body 13187 as_echo_n='sh -c $as_echo_n_body as_echo' 13188 fi 13189 export as_echo_body 13190 as_echo='sh -c $as_echo_body as_echo' 13191fi 13192 13193# The user is always right. 13194if test "${PATH_SEPARATOR+set}" != set; then 13195 PATH_SEPARATOR=: 13196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13198 PATH_SEPARATOR=';' 13199 } 13200fi 13201 13202 13203# IFS 13204# We need space, tab and new line, in precisely that order. Quoting is 13205# there to prevent editors from complaining about space-tab. 13206# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13207# splitting by setting IFS to empty value.) 13208IFS=" "" $as_nl" 13209 13210# Find who we are. Look in the path if we contain no directory separator. 13211as_myself= 13212case $0 in #(( 13213 *[\\/]* ) as_myself=$0 ;; 13214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13215for as_dir in $PATH 13216do 13217 IFS=$as_save_IFS 13218 test -z "$as_dir" && as_dir=. 13219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13220 done 13221IFS=$as_save_IFS 13222 13223 ;; 13224esac 13225# We did not find ourselves, most probably we were run as `sh COMMAND' 13226# in which case we are not to be found in the path. 13227if test "x$as_myself" = x; then 13228 as_myself=$0 13229fi 13230if test ! -f "$as_myself"; then 13231 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13232 exit 1 13233fi 13234 13235# Unset variables that we do not need and which cause bugs (e.g. in 13236# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13237# suppresses any "Segmentation fault" message there. '((' could 13238# trigger a bug in pdksh 5.2.14. 13239for as_var in BASH_ENV ENV MAIL MAILPATH 13240do eval test x\${$as_var+set} = xset \ 13241 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13242done 13243PS1='$ ' 13244PS2='> ' 13245PS4='+ ' 13246 13247# NLS nuisances. 13248LC_ALL=C 13249export LC_ALL 13250LANGUAGE=C 13251export LANGUAGE 13252 13253# CDPATH. 13254(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13255 13256 13257# as_fn_error STATUS ERROR [LINENO LOG_FD] 13258# ---------------------------------------- 13259# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13260# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13261# script with STATUS, using 1 if that was 0. 13262as_fn_error () 13263{ 13264 as_status=$1; test $as_status -eq 0 && as_status=1 13265 if test "$4"; then 13266 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13267 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13268 fi 13269 $as_echo "$as_me: error: $2" >&2 13270 as_fn_exit $as_status 13271} # as_fn_error 13272 13273 13274# as_fn_set_status STATUS 13275# ----------------------- 13276# Set $? to STATUS, without forking. 13277as_fn_set_status () 13278{ 13279 return $1 13280} # as_fn_set_status 13281 13282# as_fn_exit STATUS 13283# ----------------- 13284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13285as_fn_exit () 13286{ 13287 set +e 13288 as_fn_set_status $1 13289 exit $1 13290} # as_fn_exit 13291 13292# as_fn_unset VAR 13293# --------------- 13294# Portably unset VAR. 13295as_fn_unset () 13296{ 13297 { eval $1=; unset $1;} 13298} 13299as_unset=as_fn_unset 13300# as_fn_append VAR VALUE 13301# ---------------------- 13302# Append the text in VALUE to the end of the definition contained in VAR. Take 13303# advantage of any shell optimizations that allow amortized linear growth over 13304# repeated appends, instead of the typical quadratic growth present in naive 13305# implementations. 13306if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13307 eval 'as_fn_append () 13308 { 13309 eval $1+=\$2 13310 }' 13311else 13312 as_fn_append () 13313 { 13314 eval $1=\$$1\$2 13315 } 13316fi # as_fn_append 13317 13318# as_fn_arith ARG... 13319# ------------------ 13320# Perform arithmetic evaluation on the ARGs, and store the result in the 13321# global $as_val. Take advantage of shells that can avoid forks. The arguments 13322# must be portable across $(()) and expr. 13323if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13324 eval 'as_fn_arith () 13325 { 13326 as_val=$(( $* )) 13327 }' 13328else 13329 as_fn_arith () 13330 { 13331 as_val=`expr "$@" || test $? -eq 1` 13332 } 13333fi # as_fn_arith 13334 13335 13336if expr a : '\(a\)' >/dev/null 2>&1 && 13337 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13338 as_expr=expr 13339else 13340 as_expr=false 13341fi 13342 13343if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13344 as_basename=basename 13345else 13346 as_basename=false 13347fi 13348 13349if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13350 as_dirname=dirname 13351else 13352 as_dirname=false 13353fi 13354 13355as_me=`$as_basename -- "$0" || 13356$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13357 X"$0" : 'X\(//\)$' \| \ 13358 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13359$as_echo X/"$0" | 13360 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13361 s//\1/ 13362 q 13363 } 13364 /^X\/\(\/\/\)$/{ 13365 s//\1/ 13366 q 13367 } 13368 /^X\/\(\/\).*/{ 13369 s//\1/ 13370 q 13371 } 13372 s/.*/./; q'` 13373 13374# Avoid depending upon Character Ranges. 13375as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13376as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13377as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13378as_cr_digits='0123456789' 13379as_cr_alnum=$as_cr_Letters$as_cr_digits 13380 13381ECHO_C= ECHO_N= ECHO_T= 13382case `echo -n x` in #((((( 13383-n*) 13384 case `echo 'xy\c'` in 13385 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13386 xy) ECHO_C='\c';; 13387 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13388 ECHO_T=' ';; 13389 esac;; 13390*) 13391 ECHO_N='-n';; 13392esac 13393 13394rm -f conf$$ conf$$.exe conf$$.file 13395if test -d conf$$.dir; then 13396 rm -f conf$$.dir/conf$$.file 13397else 13398 rm -f conf$$.dir 13399 mkdir conf$$.dir 2>/dev/null 13400fi 13401if (echo >conf$$.file) 2>/dev/null; then 13402 if ln -s conf$$.file conf$$ 2>/dev/null; then 13403 as_ln_s='ln -s' 13404 # ... but there are two gotchas: 13405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13407 # In both cases, we have to default to `cp -pR'. 13408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13409 as_ln_s='cp -pR' 13410 elif ln conf$$.file conf$$ 2>/dev/null; then 13411 as_ln_s=ln 13412 else 13413 as_ln_s='cp -pR' 13414 fi 13415else 13416 as_ln_s='cp -pR' 13417fi 13418rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13419rmdir conf$$.dir 2>/dev/null 13420 13421 13422# as_fn_mkdir_p 13423# ------------- 13424# Create "$as_dir" as a directory, including parents if necessary. 13425as_fn_mkdir_p () 13426{ 13427 13428 case $as_dir in #( 13429 -*) as_dir=./$as_dir;; 13430 esac 13431 test -d "$as_dir" || eval $as_mkdir_p || { 13432 as_dirs= 13433 while :; do 13434 case $as_dir in #( 13435 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13436 *) as_qdir=$as_dir;; 13437 esac 13438 as_dirs="'$as_qdir' $as_dirs" 13439 as_dir=`$as_dirname -- "$as_dir" || 13440$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13441 X"$as_dir" : 'X\(//\)[^/]' \| \ 13442 X"$as_dir" : 'X\(//\)$' \| \ 13443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13444$as_echo X"$as_dir" | 13445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13446 s//\1/ 13447 q 13448 } 13449 /^X\(\/\/\)[^/].*/{ 13450 s//\1/ 13451 q 13452 } 13453 /^X\(\/\/\)$/{ 13454 s//\1/ 13455 q 13456 } 13457 /^X\(\/\).*/{ 13458 s//\1/ 13459 q 13460 } 13461 s/.*/./; q'` 13462 test -d "$as_dir" && break 13463 done 13464 test -z "$as_dirs" || eval "mkdir $as_dirs" 13465 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13466 13467 13468} # as_fn_mkdir_p 13469if mkdir -p . 2>/dev/null; then 13470 as_mkdir_p='mkdir -p "$as_dir"' 13471else 13472 test -d ./-p && rmdir ./-p 13473 as_mkdir_p=false 13474fi 13475 13476 13477# as_fn_executable_p FILE 13478# ----------------------- 13479# Test if FILE is an executable regular file. 13480as_fn_executable_p () 13481{ 13482 test -f "$1" && test -x "$1" 13483} # as_fn_executable_p 13484as_test_x='test -x' 13485as_executable_p=as_fn_executable_p 13486 13487# Sed expression to map a string onto a valid CPP name. 13488as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13489 13490# Sed expression to map a string onto a valid variable name. 13491as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13492 13493 13494exec 6>&1 13495## ----------------------------------- ## 13496## Main body of $CONFIG_STATUS script. ## 13497## ----------------------------------- ## 13498_ASEOF 13499test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13500 13501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13502# Save the log message, to keep $0 and so on meaningful, and to 13503# report actual input values of CONFIG_FILES etc. instead of their 13504# values after options handling. 13505ac_log=" 13506This file was extended by libdatrie $as_me 0.2.13, which was 13507generated by GNU Autoconf 2.69. Invocation command line was 13508 13509 CONFIG_FILES = $CONFIG_FILES 13510 CONFIG_HEADERS = $CONFIG_HEADERS 13511 CONFIG_LINKS = $CONFIG_LINKS 13512 CONFIG_COMMANDS = $CONFIG_COMMANDS 13513 $ $0 $@ 13514 13515on `(hostname || uname -n) 2>/dev/null | sed 1q` 13516" 13517 13518_ACEOF 13519 13520case $ac_config_files in *" 13521"*) set x $ac_config_files; shift; ac_config_files=$*;; 13522esac 13523 13524case $ac_config_headers in *" 13525"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13526esac 13527 13528 13529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13530# Files that config.status was made for. 13531config_files="$ac_config_files" 13532config_headers="$ac_config_headers" 13533config_commands="$ac_config_commands" 13534 13535_ACEOF 13536 13537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13538ac_cs_usage="\ 13539\`$as_me' instantiates files and other configuration actions 13540from templates according to the current configuration. Unless the files 13541and actions are specified as TAGs, all are instantiated by default. 13542 13543Usage: $0 [OPTION]... [TAG]... 13544 13545 -h, --help print this help, then exit 13546 -V, --version print version number and configuration settings, then exit 13547 --config print configuration, then exit 13548 -q, --quiet, --silent 13549 do not print progress messages 13550 -d, --debug don't remove temporary files 13551 --recheck update $as_me by reconfiguring in the same conditions 13552 --file=FILE[:TEMPLATE] 13553 instantiate the configuration file FILE 13554 --header=FILE[:TEMPLATE] 13555 instantiate the configuration header FILE 13556 13557Configuration files: 13558$config_files 13559 13560Configuration headers: 13561$config_headers 13562 13563Configuration commands: 13564$config_commands 13565 13566Report bugs to <https://github.com/tlwg/libdatrie/issues>." 13567 13568_ACEOF 13569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13570ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13571ac_cs_version="\\ 13572libdatrie config.status 0.2.13 13573configured by $0, generated by GNU Autoconf 2.69, 13574 with options \\"\$ac_cs_config\\" 13575 13576Copyright (C) 2012 Free Software Foundation, Inc. 13577This config.status script is free software; the Free Software Foundation 13578gives unlimited permission to copy, distribute and modify it." 13579 13580ac_pwd='$ac_pwd' 13581srcdir='$srcdir' 13582INSTALL='$INSTALL' 13583MKDIR_P='$MKDIR_P' 13584AWK='$AWK' 13585test -n "\$AWK" || AWK=awk 13586_ACEOF 13587 13588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13589# The default lists apply if the user does not specify any file. 13590ac_need_defaults=: 13591while test $# != 0 13592do 13593 case $1 in 13594 --*=?*) 13595 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13596 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13597 ac_shift=: 13598 ;; 13599 --*=) 13600 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13601 ac_optarg= 13602 ac_shift=: 13603 ;; 13604 *) 13605 ac_option=$1 13606 ac_optarg=$2 13607 ac_shift=shift 13608 ;; 13609 esac 13610 13611 case $ac_option in 13612 # Handling of the options. 13613 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13614 ac_cs_recheck=: ;; 13615 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13616 $as_echo "$ac_cs_version"; exit ;; 13617 --config | --confi | --conf | --con | --co | --c ) 13618 $as_echo "$ac_cs_config"; exit ;; 13619 --debug | --debu | --deb | --de | --d | -d ) 13620 debug=: ;; 13621 --file | --fil | --fi | --f ) 13622 $ac_shift 13623 case $ac_optarg in 13624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13625 '') as_fn_error $? "missing file argument" ;; 13626 esac 13627 as_fn_append CONFIG_FILES " '$ac_optarg'" 13628 ac_need_defaults=false;; 13629 --header | --heade | --head | --hea ) 13630 $ac_shift 13631 case $ac_optarg in 13632 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13633 esac 13634 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13635 ac_need_defaults=false;; 13636 --he | --h) 13637 # Conflict between --help and --header 13638 as_fn_error $? "ambiguous option: \`$1' 13639Try \`$0 --help' for more information.";; 13640 --help | --hel | -h ) 13641 $as_echo "$ac_cs_usage"; exit ;; 13642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13643 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13644 ac_cs_silent=: ;; 13645 13646 # This is an error. 13647 -*) as_fn_error $? "unrecognized option: \`$1' 13648Try \`$0 --help' for more information." ;; 13649 13650 *) as_fn_append ac_config_targets " $1" 13651 ac_need_defaults=false ;; 13652 13653 esac 13654 shift 13655done 13656 13657ac_configure_extra_args= 13658 13659if $ac_cs_silent; then 13660 exec 6>/dev/null 13661 ac_configure_extra_args="$ac_configure_extra_args --silent" 13662fi 13663 13664_ACEOF 13665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13666if \$ac_cs_recheck; then 13667 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13668 shift 13669 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13670 CONFIG_SHELL='$SHELL' 13671 export CONFIG_SHELL 13672 exec "\$@" 13673fi 13674 13675_ACEOF 13676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13677exec 5>>config.log 13678{ 13679 echo 13680 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13681## Running $as_me. ## 13682_ASBOX 13683 $as_echo "$ac_log" 13684} >&5 13685 13686_ACEOF 13687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13688# 13689# INIT-COMMANDS 13690# 13691AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13692 13693 13694# The HP-UX ksh and POSIX shell print the target directory to stdout 13695# if CDPATH is set. 13696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13697 13698sed_quote_subst='$sed_quote_subst' 13699double_quote_subst='$double_quote_subst' 13700delay_variable_subst='$delay_variable_subst' 13701AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13702DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13703OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13704macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13705macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13706enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13707enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13708pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13709enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13710shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13711SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13712ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13713PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13714host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13715host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13716host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13717build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13718build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13719build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13720SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13721Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13722GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13723EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13724FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13725LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13726NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13727LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13728max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13729ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13730exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13731lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13732lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13733lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13734lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13735lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13736reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13737reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13738deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13739file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13740file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13741want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13742sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13743AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13744AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13745archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13746STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13747RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13748old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13749old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13750old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13751lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13752CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13753CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13754compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13755GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13756lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13757lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13758lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13759lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13760lt_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"`' 13761lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13762nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13763lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13764lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13765objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13766MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13767lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13768lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13769lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13770lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13771lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13772need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13773MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13774DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13775NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13776LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13777OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13778OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13779libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13780shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13781extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13782archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13783enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13784export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13785whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13786compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13787old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13788old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13789archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13790archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13791module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13792module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13793with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13794allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13795no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13796hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13797hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13798hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13799hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13800hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13801hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13802hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13803inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13804link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13805always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13806export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13807exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13808include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13809prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13810postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13811file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13812variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13813need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13814need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13815version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13816runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13817shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13818shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13819libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13820library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13821soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13822install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13823postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13824postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13825finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13826finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13827hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13828sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13829configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13830configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13831hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13832enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13833enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13834enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13835old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13836striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13837 13838LTCC='$LTCC' 13839LTCFLAGS='$LTCFLAGS' 13840compiler='$compiler_DEFAULT' 13841 13842# A function that is used when there is no print builtin or printf. 13843func_fallback_echo () 13844{ 13845 eval 'cat <<_LTECHO_EOF 13846\$1 13847_LTECHO_EOF' 13848} 13849 13850# Quote evaled strings. 13851for var in AS \ 13852DLLTOOL \ 13853OBJDUMP \ 13854SHELL \ 13855ECHO \ 13856PATH_SEPARATOR \ 13857SED \ 13858GREP \ 13859EGREP \ 13860FGREP \ 13861LD \ 13862NM \ 13863LN_S \ 13864lt_SP2NL \ 13865lt_NL2SP \ 13866reload_flag \ 13867deplibs_check_method \ 13868file_magic_cmd \ 13869file_magic_glob \ 13870want_nocaseglob \ 13871sharedlib_from_linklib_cmd \ 13872AR \ 13873AR_FLAGS \ 13874archiver_list_spec \ 13875STRIP \ 13876RANLIB \ 13877CC \ 13878CFLAGS \ 13879compiler \ 13880lt_cv_sys_global_symbol_pipe \ 13881lt_cv_sys_global_symbol_to_cdecl \ 13882lt_cv_sys_global_symbol_to_import \ 13883lt_cv_sys_global_symbol_to_c_name_address \ 13884lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13885lt_cv_nm_interface \ 13886nm_file_list_spec \ 13887lt_cv_truncate_bin \ 13888lt_prog_compiler_no_builtin_flag \ 13889lt_prog_compiler_pic \ 13890lt_prog_compiler_wl \ 13891lt_prog_compiler_static \ 13892lt_cv_prog_compiler_c_o \ 13893need_locks \ 13894MANIFEST_TOOL \ 13895DSYMUTIL \ 13896NMEDIT \ 13897LIPO \ 13898OTOOL \ 13899OTOOL64 \ 13900shrext_cmds \ 13901export_dynamic_flag_spec \ 13902whole_archive_flag_spec \ 13903compiler_needs_object \ 13904with_gnu_ld \ 13905allow_undefined_flag \ 13906no_undefined_flag \ 13907hardcode_libdir_flag_spec \ 13908hardcode_libdir_separator \ 13909exclude_expsyms \ 13910include_expsyms \ 13911file_list_spec \ 13912variables_saved_for_relink \ 13913libname_spec \ 13914library_names_spec \ 13915soname_spec \ 13916install_override_mode \ 13917finish_eval \ 13918old_striplib \ 13919striplib; do 13920 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13921 *[\\\\\\\`\\"\\\$]*) 13922 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13923 ;; 13924 *) 13925 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13926 ;; 13927 esac 13928done 13929 13930# Double-quote double-evaled strings. 13931for var in reload_cmds \ 13932old_postinstall_cmds \ 13933old_postuninstall_cmds \ 13934old_archive_cmds \ 13935extract_expsyms_cmds \ 13936old_archive_from_new_cmds \ 13937old_archive_from_expsyms_cmds \ 13938archive_cmds \ 13939archive_expsym_cmds \ 13940module_cmds \ 13941module_expsym_cmds \ 13942export_symbols_cmds \ 13943prelink_cmds \ 13944postlink_cmds \ 13945postinstall_cmds \ 13946postuninstall_cmds \ 13947finish_cmds \ 13948sys_lib_search_path_spec \ 13949configure_time_dlsearch_path \ 13950configure_time_lt_sys_library_path; do 13951 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13952 *[\\\\\\\`\\"\\\$]*) 13953 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13954 ;; 13955 *) 13956 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13957 ;; 13958 esac 13959done 13960 13961ac_aux_dir='$ac_aux_dir' 13962 13963# See if we are running on zsh, and set the options that allow our 13964# commands through without removal of \ escapes INIT. 13965if test -n "\${ZSH_VERSION+set}"; then 13966 setopt NO_GLOB_SUBST 13967fi 13968 13969 13970 PACKAGE='$PACKAGE' 13971 VERSION='$VERSION' 13972 RM='$RM' 13973 ofile='$ofile' 13974 13975 13976 13977 13978_ACEOF 13979 13980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13981 13982# Handling of arguments. 13983for ac_config_target in $ac_config_targets 13984do 13985 case $ac_config_target in 13986 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13987 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13988 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13989 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13990 "datrie-0.2.pc") CONFIG_FILES="$CONFIG_FILES datrie-0.2.pc" ;; 13991 "datrie/Makefile") CONFIG_FILES="$CONFIG_FILES datrie/Makefile" ;; 13992 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 13993 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13994 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13995 "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; 13996 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 13997 13998 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13999 esac 14000done 14001 14002 14003# If the user did not use the arguments to specify the items to instantiate, 14004# then the envvar interface is used. Set only those that are not. 14005# We use the long form for the default assignment because of an extremely 14006# bizarre bug on SunOS 4.1.3. 14007if $ac_need_defaults; then 14008 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14009 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14010 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14011fi 14012 14013# Have a temporary directory for convenience. Make it in the build tree 14014# simply because there is no reason against having it here, and in addition, 14015# creating and moving files from /tmp can sometimes cause problems. 14016# Hook for its removal unless debugging. 14017# Note that there is a small window in which the directory will not be cleaned: 14018# after its creation but before its name has been assigned to `$tmp'. 14019$debug || 14020{ 14021 tmp= ac_tmp= 14022 trap 'exit_status=$? 14023 : "${ac_tmp:=$tmp}" 14024 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14025' 0 14026 trap 'as_fn_exit 1' 1 2 13 15 14027} 14028# Create a (secure) tmp directory for tmp files. 14029 14030{ 14031 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14032 test -d "$tmp" 14033} || 14034{ 14035 tmp=./conf$$-$RANDOM 14036 (umask 077 && mkdir "$tmp") 14037} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14038ac_tmp=$tmp 14039 14040# Set up the scripts for CONFIG_FILES section. 14041# No need to generate them if there are no CONFIG_FILES. 14042# This happens for instance with `./config.status config.h'. 14043if test -n "$CONFIG_FILES"; then 14044 14045 14046ac_cr=`echo X | tr X '\015'` 14047# On cygwin, bash can eat \r inside `` if the user requested igncr. 14048# But we know of no other shell where ac_cr would be empty at this 14049# point, so we can use a bashism as a fallback. 14050if test "x$ac_cr" = x; then 14051 eval ac_cr=\$\'\\r\' 14052fi 14053ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14054if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14055 ac_cs_awk_cr='\\r' 14056else 14057 ac_cs_awk_cr=$ac_cr 14058fi 14059 14060echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14061_ACEOF 14062 14063 14064{ 14065 echo "cat >conf$$subs.awk <<_ACEOF" && 14066 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14067 echo "_ACEOF" 14068} >conf$$subs.sh || 14069 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14070ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14071ac_delim='%!_!# ' 14072for ac_last_try in false false false false false :; do 14073 . ./conf$$subs.sh || 14074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14075 14076 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14077 if test $ac_delim_n = $ac_delim_num; then 14078 break 14079 elif $ac_last_try; then 14080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14081 else 14082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14083 fi 14084done 14085rm -f conf$$subs.sh 14086 14087cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14088cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14089_ACEOF 14090sed -n ' 14091h 14092s/^/S["/; s/!.*/"]=/ 14093p 14094g 14095s/^[^!]*!// 14096:repl 14097t repl 14098s/'"$ac_delim"'$// 14099t delim 14100:nl 14101h 14102s/\(.\{148\}\)..*/\1/ 14103t more1 14104s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14105p 14106n 14107b repl 14108:more1 14109s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14110p 14111g 14112s/.\{148\}// 14113t nl 14114:delim 14115h 14116s/\(.\{148\}\)..*/\1/ 14117t more2 14118s/["\\]/\\&/g; s/^/"/; s/$/"/ 14119p 14120b 14121:more2 14122s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14123p 14124g 14125s/.\{148\}// 14126t delim 14127' <conf$$subs.awk | sed ' 14128/^[^""]/{ 14129 N 14130 s/\n// 14131} 14132' >>$CONFIG_STATUS || ac_write_fail=1 14133rm -f conf$$subs.awk 14134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14135_ACAWK 14136cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14137 for (key in S) S_is_set[key] = 1 14138 FS = "" 14139 14140} 14141{ 14142 line = $ 0 14143 nfields = split(line, field, "@") 14144 substed = 0 14145 len = length(field[1]) 14146 for (i = 2; i < nfields; i++) { 14147 key = field[i] 14148 keylen = length(key) 14149 if (S_is_set[key]) { 14150 value = S[key] 14151 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14152 len += length(value) + length(field[++i]) 14153 substed = 1 14154 } else 14155 len += 1 + keylen 14156 } 14157 14158 print line 14159} 14160 14161_ACAWK 14162_ACEOF 14163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14164if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14165 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14166else 14167 cat 14168fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14169 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14170_ACEOF 14171 14172# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14173# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14174# trailing colons and then remove the whole line if VPATH becomes empty 14175# (actually we leave an empty line to preserve line numbers). 14176if test "x$srcdir" = x.; then 14177 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14178h 14179s/// 14180s/^/:/ 14181s/[ ]*$/:/ 14182s/:\$(srcdir):/:/g 14183s/:\${srcdir}:/:/g 14184s/:@srcdir@:/:/g 14185s/^:*// 14186s/:*$// 14187x 14188s/\(=[ ]*\).*/\1/ 14189G 14190s/\n// 14191s/^[^=]*=[ ]*$// 14192}' 14193fi 14194 14195cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14196fi # test -n "$CONFIG_FILES" 14197 14198# Set up the scripts for CONFIG_HEADERS section. 14199# No need to generate them if there are no CONFIG_HEADERS. 14200# This happens for instance with `./config.status Makefile'. 14201if test -n "$CONFIG_HEADERS"; then 14202cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14203BEGIN { 14204_ACEOF 14205 14206# Transform confdefs.h into an awk script `defines.awk', embedded as 14207# here-document in config.status, that substitutes the proper values into 14208# config.h.in to produce config.h. 14209 14210# Create a delimiter string that does not exist in confdefs.h, to ease 14211# handling of long lines. 14212ac_delim='%!_!# ' 14213for ac_last_try in false false :; do 14214 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14215 if test -z "$ac_tt"; then 14216 break 14217 elif $ac_last_try; then 14218 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14219 else 14220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14221 fi 14222done 14223 14224# For the awk script, D is an array of macro values keyed by name, 14225# likewise P contains macro parameters if any. Preserve backslash 14226# newline sequences. 14227 14228ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14229sed -n ' 14230s/.\{148\}/&'"$ac_delim"'/g 14231t rset 14232:rset 14233s/^[ ]*#[ ]*define[ ][ ]*/ / 14234t def 14235d 14236:def 14237s/\\$// 14238t bsnl 14239s/["\\]/\\&/g 14240s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14241D["\1"]=" \3"/p 14242s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14243d 14244:bsnl 14245s/["\\]/\\&/g 14246s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14247D["\1"]=" \3\\\\\\n"\\/p 14248t cont 14249s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14250t cont 14251d 14252:cont 14253n 14254s/.\{148\}/&'"$ac_delim"'/g 14255t clear 14256:clear 14257s/\\$// 14258t bsnlc 14259s/["\\]/\\&/g; s/^/"/; s/$/"/p 14260d 14261:bsnlc 14262s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14263b cont 14264' <confdefs.h | sed ' 14265s/'"$ac_delim"'/"\\\ 14266"/g' >>$CONFIG_STATUS || ac_write_fail=1 14267 14268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14269 for (key in D) D_is_set[key] = 1 14270 FS = "" 14271} 14272/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14273 line = \$ 0 14274 split(line, arg, " ") 14275 if (arg[1] == "#") { 14276 defundef = arg[2] 14277 mac1 = arg[3] 14278 } else { 14279 defundef = substr(arg[1], 2) 14280 mac1 = arg[2] 14281 } 14282 split(mac1, mac2, "(") #) 14283 macro = mac2[1] 14284 prefix = substr(line, 1, index(line, defundef) - 1) 14285 if (D_is_set[macro]) { 14286 # Preserve the white space surrounding the "#". 14287 print prefix "define", macro P[macro] D[macro] 14288 next 14289 } else { 14290 # Replace #undef with comments. This is necessary, for example, 14291 # in the case of _POSIX_SOURCE, which is predefined and required 14292 # on some systems where configure will not decide to define it. 14293 if (defundef == "undef") { 14294 print "/*", prefix defundef, macro, "*/" 14295 next 14296 } 14297 } 14298} 14299{ print } 14300_ACAWK 14301_ACEOF 14302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14303 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14304fi # test -n "$CONFIG_HEADERS" 14305 14306 14307eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14308shift 14309for ac_tag 14310do 14311 case $ac_tag in 14312 :[FHLC]) ac_mode=$ac_tag; continue;; 14313 esac 14314 case $ac_mode$ac_tag in 14315 :[FHL]*:*);; 14316 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14317 :[FH]-) ac_tag=-:-;; 14318 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14319 esac 14320 ac_save_IFS=$IFS 14321 IFS=: 14322 set x $ac_tag 14323 IFS=$ac_save_IFS 14324 shift 14325 ac_file=$1 14326 shift 14327 14328 case $ac_mode in 14329 :L) ac_source=$1;; 14330 :[FH]) 14331 ac_file_inputs= 14332 for ac_f 14333 do 14334 case $ac_f in 14335 -) ac_f="$ac_tmp/stdin";; 14336 *) # Look for the file first in the build tree, then in the source tree 14337 # (if the path is not absolute). The absolute path cannot be DOS-style, 14338 # because $ac_f cannot contain `:'. 14339 test -f "$ac_f" || 14340 case $ac_f in 14341 [\\/$]*) false;; 14342 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14343 esac || 14344 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14345 esac 14346 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14347 as_fn_append ac_file_inputs " '$ac_f'" 14348 done 14349 14350 # Let's still pretend it is `configure' which instantiates (i.e., don't 14351 # use $as_me), people would be surprised to read: 14352 # /* config.h. Generated by config.status. */ 14353 configure_input='Generated from '` 14354 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14355 `' by configure.' 14356 if test x"$ac_file" != x-; then 14357 configure_input="$ac_file. $configure_input" 14358 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14359$as_echo "$as_me: creating $ac_file" >&6;} 14360 fi 14361 # Neutralize special characters interpreted by sed in replacement strings. 14362 case $configure_input in #( 14363 *\&* | *\|* | *\\* ) 14364 ac_sed_conf_input=`$as_echo "$configure_input" | 14365 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14366 *) ac_sed_conf_input=$configure_input;; 14367 esac 14368 14369 case $ac_tag in 14370 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14372 esac 14373 ;; 14374 esac 14375 14376 ac_dir=`$as_dirname -- "$ac_file" || 14377$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14378 X"$ac_file" : 'X\(//\)[^/]' \| \ 14379 X"$ac_file" : 'X\(//\)$' \| \ 14380 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14381$as_echo X"$ac_file" | 14382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14383 s//\1/ 14384 q 14385 } 14386 /^X\(\/\/\)[^/].*/{ 14387 s//\1/ 14388 q 14389 } 14390 /^X\(\/\/\)$/{ 14391 s//\1/ 14392 q 14393 } 14394 /^X\(\/\).*/{ 14395 s//\1/ 14396 q 14397 } 14398 s/.*/./; q'` 14399 as_dir="$ac_dir"; as_fn_mkdir_p 14400 ac_builddir=. 14401 14402case "$ac_dir" in 14403.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14404*) 14405 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14406 # A ".." for each directory in $ac_dir_suffix. 14407 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14408 case $ac_top_builddir_sub in 14409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14411 esac ;; 14412esac 14413ac_abs_top_builddir=$ac_pwd 14414ac_abs_builddir=$ac_pwd$ac_dir_suffix 14415# for backward compatibility: 14416ac_top_builddir=$ac_top_build_prefix 14417 14418case $srcdir in 14419 .) # We are building in place. 14420 ac_srcdir=. 14421 ac_top_srcdir=$ac_top_builddir_sub 14422 ac_abs_top_srcdir=$ac_pwd ;; 14423 [\\/]* | ?:[\\/]* ) # Absolute name. 14424 ac_srcdir=$srcdir$ac_dir_suffix; 14425 ac_top_srcdir=$srcdir 14426 ac_abs_top_srcdir=$srcdir ;; 14427 *) # Relative name. 14428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14429 ac_top_srcdir=$ac_top_build_prefix$srcdir 14430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14431esac 14432ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14433 14434 14435 case $ac_mode in 14436 :F) 14437 # 14438 # CONFIG_FILE 14439 # 14440 14441 case $INSTALL in 14442 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14443 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14444 esac 14445 ac_MKDIR_P=$MKDIR_P 14446 case $MKDIR_P in 14447 [\\/$]* | ?:[\\/]* ) ;; 14448 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14449 esac 14450_ACEOF 14451 14452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14453# If the template does not know about datarootdir, expand it. 14454# FIXME: This hack should be removed a few years after 2.60. 14455ac_datarootdir_hack=; ac_datarootdir_seen= 14456ac_sed_dataroot=' 14457/datarootdir/ { 14458 p 14459 q 14460} 14461/@datadir@/p 14462/@docdir@/p 14463/@infodir@/p 14464/@localedir@/p 14465/@mandir@/p' 14466case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14467*datarootdir*) ac_datarootdir_seen=yes;; 14468*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14470$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14471_ACEOF 14472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14473 ac_datarootdir_hack=' 14474 s&@datadir@&$datadir&g 14475 s&@docdir@&$docdir&g 14476 s&@infodir@&$infodir&g 14477 s&@localedir@&$localedir&g 14478 s&@mandir@&$mandir&g 14479 s&\\\${datarootdir}&$datarootdir&g' ;; 14480esac 14481_ACEOF 14482 14483# Neutralize VPATH when `$srcdir' = `.'. 14484# Shell code in configure.ac might set extrasub. 14485# FIXME: do we really want to maintain this feature? 14486cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14487ac_sed_extra="$ac_vpsub 14488$extrasub 14489_ACEOF 14490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14491:t 14492/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14493s|@configure_input@|$ac_sed_conf_input|;t t 14494s&@top_builddir@&$ac_top_builddir_sub&;t t 14495s&@top_build_prefix@&$ac_top_build_prefix&;t t 14496s&@srcdir@&$ac_srcdir&;t t 14497s&@abs_srcdir@&$ac_abs_srcdir&;t t 14498s&@top_srcdir@&$ac_top_srcdir&;t t 14499s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14500s&@builddir@&$ac_builddir&;t t 14501s&@abs_builddir@&$ac_abs_builddir&;t t 14502s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14503s&@INSTALL@&$ac_INSTALL&;t t 14504s&@MKDIR_P@&$ac_MKDIR_P&;t t 14505$ac_datarootdir_hack 14506" 14507eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14508 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14509 14510test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14511 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14513 "$ac_tmp/out"`; test -z "$ac_out"; } && 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14515which seems to be undefined. Please make sure it is defined" >&5 14516$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14517which seems to be undefined. Please make sure it is defined" >&2;} 14518 14519 rm -f "$ac_tmp/stdin" 14520 case $ac_file in 14521 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14522 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14523 esac \ 14524 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14525 ;; 14526 :H) 14527 # 14528 # CONFIG_HEADER 14529 # 14530 if test x"$ac_file" != x-; then 14531 { 14532 $as_echo "/* $configure_input */" \ 14533 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14534 } >"$ac_tmp/config.h" \ 14535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14536 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14537 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14538$as_echo "$as_me: $ac_file is unchanged" >&6;} 14539 else 14540 rm -f "$ac_file" 14541 mv "$ac_tmp/config.h" "$ac_file" \ 14542 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14543 fi 14544 else 14545 $as_echo "/* $configure_input */" \ 14546 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14547 || as_fn_error $? "could not create -" "$LINENO" 5 14548 fi 14549# Compute "$ac_file"'s index in $config_headers. 14550_am_arg="$ac_file" 14551_am_stamp_count=1 14552for _am_header in $config_headers :; do 14553 case $_am_header in 14554 $_am_arg | $_am_arg:* ) 14555 break ;; 14556 * ) 14557 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14558 esac 14559done 14560echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14561$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14562 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14563 X"$_am_arg" : 'X\(//\)$' \| \ 14564 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14565$as_echo X"$_am_arg" | 14566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14567 s//\1/ 14568 q 14569 } 14570 /^X\(\/\/\)[^/].*/{ 14571 s//\1/ 14572 q 14573 } 14574 /^X\(\/\/\)$/{ 14575 s//\1/ 14576 q 14577 } 14578 /^X\(\/\).*/{ 14579 s//\1/ 14580 q 14581 } 14582 s/.*/./; q'`/stamp-h$_am_stamp_count 14583 ;; 14584 14585 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14586$as_echo "$as_me: executing $ac_file commands" >&6;} 14587 ;; 14588 esac 14589 14590 14591 case $ac_file$ac_mode in 14592 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14593 # Older Autoconf quotes --file arguments for eval, but not when files 14594 # are listed without --file. Let's play safe and only enable the eval 14595 # if we detect the quoting. 14596 # TODO: see whether this extra hack can be removed once we start 14597 # requiring Autoconf 2.70 or later. 14598 case $CONFIG_FILES in #( 14599 *\'*) : 14600 eval set x "$CONFIG_FILES" ;; #( 14601 *) : 14602 set x $CONFIG_FILES ;; #( 14603 *) : 14604 ;; 14605esac 14606 shift 14607 # Used to flag and report bootstrapping failures. 14608 am_rc=0 14609 for am_mf 14610 do 14611 # Strip MF so we end up with the name of the file. 14612 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14613 # Check whether this is an Automake generated Makefile which includes 14614 # dependency-tracking related rules and includes. 14615 # Grep'ing the whole file directly is not great: AIX grep has a line 14616 # limit of 2048, but all sed's we know have understand at least 4000. 14617 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14618 || continue 14619 am_dirpart=`$as_dirname -- "$am_mf" || 14620$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14621 X"$am_mf" : 'X\(//\)[^/]' \| \ 14622 X"$am_mf" : 'X\(//\)$' \| \ 14623 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14624$as_echo X"$am_mf" | 14625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14626 s//\1/ 14627 q 14628 } 14629 /^X\(\/\/\)[^/].*/{ 14630 s//\1/ 14631 q 14632 } 14633 /^X\(\/\/\)$/{ 14634 s//\1/ 14635 q 14636 } 14637 /^X\(\/\).*/{ 14638 s//\1/ 14639 q 14640 } 14641 s/.*/./; q'` 14642 am_filepart=`$as_basename -- "$am_mf" || 14643$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14644 X"$am_mf" : 'X\(//\)$' \| \ 14645 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14646$as_echo X/"$am_mf" | 14647 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14648 s//\1/ 14649 q 14650 } 14651 /^X\/\(\/\/\)$/{ 14652 s//\1/ 14653 q 14654 } 14655 /^X\/\(\/\).*/{ 14656 s//\1/ 14657 q 14658 } 14659 s/.*/./; q'` 14660 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14661 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14662 | $MAKE -f - am--depfiles" >&5 14663 (cd "$am_dirpart" \ 14664 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14665 | $MAKE -f - am--depfiles) >&5 2>&5 14666 ac_status=$? 14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14668 (exit $ac_status); } || am_rc=$? 14669 done 14670 if test $am_rc -ne 0; then 14671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14673as_fn_error $? "Something went wrong bootstrapping makefile fragments 14674 for automatic dependency tracking. If GNU make was not used, consider 14675 re-running the configure script with MAKE=\"gmake\" (or whatever is 14676 necessary). You can also try re-running configure with the 14677 '--disable-dependency-tracking' option to at least be able to build 14678 the package (albeit without support for automatic dependency tracking). 14679See \`config.log' for more details" "$LINENO" 5; } 14680 fi 14681 { am_dirpart=; unset am_dirpart;} 14682 { am_filepart=; unset am_filepart;} 14683 { am_mf=; unset am_mf;} 14684 { am_rc=; unset am_rc;} 14685 rm -f conftest-deps.mk 14686} 14687 ;; 14688 "libtool":C) 14689 14690 # See if we are running on zsh, and set the options that allow our 14691 # commands through without removal of \ escapes. 14692 if test -n "${ZSH_VERSION+set}"; then 14693 setopt NO_GLOB_SUBST 14694 fi 14695 14696 cfgfile=${ofile}T 14697 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14698 $RM "$cfgfile" 14699 14700 cat <<_LT_EOF >> "$cfgfile" 14701#! $SHELL 14702# Generated automatically by $as_me ($PACKAGE) $VERSION 14703# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14704 14705# Provide generalized library-building support services. 14706# Written by Gordon Matzigkeit, 1996 14707 14708# Copyright (C) 2014 Free Software Foundation, Inc. 14709# This is free software; see the source for copying conditions. There is NO 14710# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14711 14712# GNU Libtool is free software; you can redistribute it and/or modify 14713# it under the terms of the GNU General Public License as published by 14714# the Free Software Foundation; either version 2 of of the License, or 14715# (at your option) any later version. 14716# 14717# As a special exception to the GNU General Public License, if you 14718# distribute this file as part of a program or library that is built 14719# using GNU Libtool, you may include this file under the same 14720# distribution terms that you use for the rest of that program. 14721# 14722# GNU Libtool is distributed in the hope that it will be useful, but 14723# WITHOUT ANY WARRANTY; without even the implied warranty of 14724# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14725# GNU General Public License for more details. 14726# 14727# You should have received a copy of the GNU General Public License 14728# along with this program. If not, see <http://www.gnu.org/licenses/>. 14729 14730 14731# The names of the tagged configurations supported by this script. 14732available_tags='' 14733 14734# Configured defaults for sys_lib_dlsearch_path munging. 14735: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14736 14737# ### BEGIN LIBTOOL CONFIG 14738 14739# Assembler program. 14740AS=$lt_AS 14741 14742# DLL creation program. 14743DLLTOOL=$lt_DLLTOOL 14744 14745# Object dumper program. 14746OBJDUMP=$lt_OBJDUMP 14747 14748# Which release of libtool.m4 was used? 14749macro_version=$macro_version 14750macro_revision=$macro_revision 14751 14752# Whether or not to build shared libraries. 14753build_libtool_libs=$enable_shared 14754 14755# Whether or not to build static libraries. 14756build_old_libs=$enable_static 14757 14758# What type of objects to build. 14759pic_mode=$pic_mode 14760 14761# Whether or not to optimize for fast installation. 14762fast_install=$enable_fast_install 14763 14764# Shared archive member basename,for filename based shared library versioning on AIX. 14765shared_archive_member_spec=$shared_archive_member_spec 14766 14767# Shell to use when invoking shell scripts. 14768SHELL=$lt_SHELL 14769 14770# An echo program that protects backslashes. 14771ECHO=$lt_ECHO 14772 14773# The PATH separator for the build system. 14774PATH_SEPARATOR=$lt_PATH_SEPARATOR 14775 14776# The host system. 14777host_alias=$host_alias 14778host=$host 14779host_os=$host_os 14780 14781# The build system. 14782build_alias=$build_alias 14783build=$build 14784build_os=$build_os 14785 14786# A sed program that does not truncate output. 14787SED=$lt_SED 14788 14789# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14790Xsed="\$SED -e 1s/^X//" 14791 14792# A grep program that handles long lines. 14793GREP=$lt_GREP 14794 14795# An ERE matcher. 14796EGREP=$lt_EGREP 14797 14798# A literal string matcher. 14799FGREP=$lt_FGREP 14800 14801# A BSD- or MS-compatible name lister. 14802NM=$lt_NM 14803 14804# Whether we need soft or hard links. 14805LN_S=$lt_LN_S 14806 14807# What is the maximum length of a command? 14808max_cmd_len=$max_cmd_len 14809 14810# Object file suffix (normally "o"). 14811objext=$ac_objext 14812 14813# Executable file suffix (normally ""). 14814exeext=$exeext 14815 14816# whether the shell understands "unset". 14817lt_unset=$lt_unset 14818 14819# turn spaces into newlines. 14820SP2NL=$lt_lt_SP2NL 14821 14822# turn newlines into spaces. 14823NL2SP=$lt_lt_NL2SP 14824 14825# convert \$build file names to \$host format. 14826to_host_file_cmd=$lt_cv_to_host_file_cmd 14827 14828# convert \$build files to toolchain format. 14829to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14830 14831# Method to check whether dependent libraries are shared objects. 14832deplibs_check_method=$lt_deplibs_check_method 14833 14834# Command to use when deplibs_check_method = "file_magic". 14835file_magic_cmd=$lt_file_magic_cmd 14836 14837# How to find potential files when deplibs_check_method = "file_magic". 14838file_magic_glob=$lt_file_magic_glob 14839 14840# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14841want_nocaseglob=$lt_want_nocaseglob 14842 14843# Command to associate shared and link libraries. 14844sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14845 14846# The archiver. 14847AR=$lt_AR 14848 14849# Flags to create an archive. 14850AR_FLAGS=$lt_AR_FLAGS 14851 14852# How to feed a file listing to the archiver. 14853archiver_list_spec=$lt_archiver_list_spec 14854 14855# A symbol stripping program. 14856STRIP=$lt_STRIP 14857 14858# Commands used to install an old-style archive. 14859RANLIB=$lt_RANLIB 14860old_postinstall_cmds=$lt_old_postinstall_cmds 14861old_postuninstall_cmds=$lt_old_postuninstall_cmds 14862 14863# Whether to use a lock for old archive extraction. 14864lock_old_archive_extraction=$lock_old_archive_extraction 14865 14866# A C compiler. 14867LTCC=$lt_CC 14868 14869# LTCC compiler flags. 14870LTCFLAGS=$lt_CFLAGS 14871 14872# Take the output of nm and produce a listing of raw symbols and C names. 14873global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14874 14875# Transform the output of nm in a proper C declaration. 14876global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14877 14878# Transform the output of nm into a list of symbols to manually relocate. 14879global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14880 14881# Transform the output of nm in a C name address pair. 14882global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14883 14884# Transform the output of nm in a C name address pair when lib prefix is needed. 14885global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14886 14887# The name lister interface. 14888nm_interface=$lt_lt_cv_nm_interface 14889 14890# Specify filename containing input files for \$NM. 14891nm_file_list_spec=$lt_nm_file_list_spec 14892 14893# The root where to search for dependent libraries,and where our libraries should be installed. 14894lt_sysroot=$lt_sysroot 14895 14896# Command to truncate a binary pipe. 14897lt_truncate_bin=$lt_lt_cv_truncate_bin 14898 14899# The name of the directory that contains temporary libtool files. 14900objdir=$objdir 14901 14902# Used to examine libraries when file_magic_cmd begins with "file". 14903MAGIC_CMD=$MAGIC_CMD 14904 14905# Must we lock files when doing compilation? 14906need_locks=$lt_need_locks 14907 14908# Manifest tool. 14909MANIFEST_TOOL=$lt_MANIFEST_TOOL 14910 14911# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14912DSYMUTIL=$lt_DSYMUTIL 14913 14914# Tool to change global to local symbols on Mac OS X. 14915NMEDIT=$lt_NMEDIT 14916 14917# Tool to manipulate fat objects and archives on Mac OS X. 14918LIPO=$lt_LIPO 14919 14920# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14921OTOOL=$lt_OTOOL 14922 14923# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14924OTOOL64=$lt_OTOOL64 14925 14926# Old archive suffix (normally "a"). 14927libext=$libext 14928 14929# Shared library suffix (normally ".so"). 14930shrext_cmds=$lt_shrext_cmds 14931 14932# The commands to extract the exported symbol list from a shared archive. 14933extract_expsyms_cmds=$lt_extract_expsyms_cmds 14934 14935# Variables whose values should be saved in libtool wrapper scripts and 14936# restored at link time. 14937variables_saved_for_relink=$lt_variables_saved_for_relink 14938 14939# Do we need the "lib" prefix for modules? 14940need_lib_prefix=$need_lib_prefix 14941 14942# Do we need a version for libraries? 14943need_version=$need_version 14944 14945# Library versioning type. 14946version_type=$version_type 14947 14948# Shared library runtime path variable. 14949runpath_var=$runpath_var 14950 14951# Shared library path variable. 14952shlibpath_var=$shlibpath_var 14953 14954# Is shlibpath searched before the hard-coded library search path? 14955shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14956 14957# Format of library name prefix. 14958libname_spec=$lt_libname_spec 14959 14960# List of archive names. First name is the real one, the rest are links. 14961# The last name is the one that the linker finds with -lNAME 14962library_names_spec=$lt_library_names_spec 14963 14964# The coded name of the library, if different from the real name. 14965soname_spec=$lt_soname_spec 14966 14967# Permission mode override for installation of shared libraries. 14968install_override_mode=$lt_install_override_mode 14969 14970# Command to use after installation of a shared archive. 14971postinstall_cmds=$lt_postinstall_cmds 14972 14973# Command to use after uninstallation of a shared archive. 14974postuninstall_cmds=$lt_postuninstall_cmds 14975 14976# Commands used to finish a libtool library installation in a directory. 14977finish_cmds=$lt_finish_cmds 14978 14979# As "finish_cmds", except a single script fragment to be evaled but 14980# not shown. 14981finish_eval=$lt_finish_eval 14982 14983# Whether we should hardcode library paths into libraries. 14984hardcode_into_libs=$hardcode_into_libs 14985 14986# Compile-time system search path for libraries. 14987sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14988 14989# Detected run-time system search path for libraries. 14990sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14991 14992# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14993configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14994 14995# Whether dlopen is supported. 14996dlopen_support=$enable_dlopen 14997 14998# Whether dlopen of programs is supported. 14999dlopen_self=$enable_dlopen_self 15000 15001# Whether dlopen of statically linked programs is supported. 15002dlopen_self_static=$enable_dlopen_self_static 15003 15004# Commands to strip libraries. 15005old_striplib=$lt_old_striplib 15006striplib=$lt_striplib 15007 15008 15009# The linker used to build libraries. 15010LD=$lt_LD 15011 15012# How to create reloadable object files. 15013reload_flag=$lt_reload_flag 15014reload_cmds=$lt_reload_cmds 15015 15016# Commands used to build an old-style archive. 15017old_archive_cmds=$lt_old_archive_cmds 15018 15019# A language specific compiler. 15020CC=$lt_compiler 15021 15022# Is the compiler the GNU compiler? 15023with_gcc=$GCC 15024 15025# Compiler flag to turn off builtin functions. 15026no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15027 15028# Additional compiler flags for building library objects. 15029pic_flag=$lt_lt_prog_compiler_pic 15030 15031# How to pass a linker flag through the compiler. 15032wl=$lt_lt_prog_compiler_wl 15033 15034# Compiler flag to prevent dynamic linking. 15035link_static_flag=$lt_lt_prog_compiler_static 15036 15037# Does compiler simultaneously support -c and -o options? 15038compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15039 15040# Whether or not to add -lc for building shared libraries. 15041build_libtool_need_lc=$archive_cmds_need_lc 15042 15043# Whether or not to disallow shared libs when runtime libs are static. 15044allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15045 15046# Compiler flag to allow reflexive dlopens. 15047export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15048 15049# Compiler flag to generate shared objects directly from archives. 15050whole_archive_flag_spec=$lt_whole_archive_flag_spec 15051 15052# Whether the compiler copes with passing no objects directly. 15053compiler_needs_object=$lt_compiler_needs_object 15054 15055# Create an old-style archive from a shared archive. 15056old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15057 15058# Create a temporary old-style archive to link instead of a shared archive. 15059old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15060 15061# Commands used to build a shared archive. 15062archive_cmds=$lt_archive_cmds 15063archive_expsym_cmds=$lt_archive_expsym_cmds 15064 15065# Commands used to build a loadable module if different from building 15066# a shared archive. 15067module_cmds=$lt_module_cmds 15068module_expsym_cmds=$lt_module_expsym_cmds 15069 15070# Whether we are building with GNU ld or not. 15071with_gnu_ld=$lt_with_gnu_ld 15072 15073# Flag that allows shared libraries with undefined symbols to be built. 15074allow_undefined_flag=$lt_allow_undefined_flag 15075 15076# Flag that enforces no undefined symbols. 15077no_undefined_flag=$lt_no_undefined_flag 15078 15079# Flag to hardcode \$libdir into a binary during linking. 15080# This must work even if \$libdir does not exist 15081hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15082 15083# Whether we need a single "-rpath" flag with a separated argument. 15084hardcode_libdir_separator=$lt_hardcode_libdir_separator 15085 15086# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15087# DIR into the resulting binary. 15088hardcode_direct=$hardcode_direct 15089 15090# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15091# DIR into the resulting binary and the resulting library dependency is 15092# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15093# library is relocated. 15094hardcode_direct_absolute=$hardcode_direct_absolute 15095 15096# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15097# into the resulting binary. 15098hardcode_minus_L=$hardcode_minus_L 15099 15100# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15101# into the resulting binary. 15102hardcode_shlibpath_var=$hardcode_shlibpath_var 15103 15104# Set to "yes" if building a shared library automatically hardcodes DIR 15105# into the library and all subsequent libraries and executables linked 15106# against it. 15107hardcode_automatic=$hardcode_automatic 15108 15109# Set to yes if linker adds runtime paths of dependent libraries 15110# to runtime path list. 15111inherit_rpath=$inherit_rpath 15112 15113# Whether libtool must link a program against all its dependency libraries. 15114link_all_deplibs=$link_all_deplibs 15115 15116# Set to "yes" if exported symbols are required. 15117always_export_symbols=$always_export_symbols 15118 15119# The commands to list exported symbols. 15120export_symbols_cmds=$lt_export_symbols_cmds 15121 15122# Symbols that should not be listed in the preloaded symbols. 15123exclude_expsyms=$lt_exclude_expsyms 15124 15125# Symbols that must always be exported. 15126include_expsyms=$lt_include_expsyms 15127 15128# Commands necessary for linking programs (against libraries) with templates. 15129prelink_cmds=$lt_prelink_cmds 15130 15131# Commands necessary for finishing linking programs. 15132postlink_cmds=$lt_postlink_cmds 15133 15134# Specify filename containing input files. 15135file_list_spec=$lt_file_list_spec 15136 15137# How to hardcode a shared library path into an executable. 15138hardcode_action=$hardcode_action 15139 15140# ### END LIBTOOL CONFIG 15141 15142_LT_EOF 15143 15144 cat <<'_LT_EOF' >> "$cfgfile" 15145 15146# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15147 15148# func_munge_path_list VARIABLE PATH 15149# ----------------------------------- 15150# VARIABLE is name of variable containing _space_ separated list of 15151# directories to be munged by the contents of PATH, which is string 15152# having a format: 15153# "DIR[:DIR]:" 15154# string "DIR[ DIR]" will be prepended to VARIABLE 15155# ":DIR[:DIR]" 15156# string "DIR[ DIR]" will be appended to VARIABLE 15157# "DIRP[:DIRP]::[DIRA:]DIRA" 15158# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15159# "DIRA[ DIRA]" will be appended to VARIABLE 15160# "DIR[:DIR]" 15161# VARIABLE will be replaced by "DIR[ DIR]" 15162func_munge_path_list () 15163{ 15164 case x$2 in 15165 x) 15166 ;; 15167 *:) 15168 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15169 ;; 15170 x:*) 15171 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15172 ;; 15173 *::*) 15174 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15175 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15176 ;; 15177 *) 15178 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15179 ;; 15180 esac 15181} 15182 15183 15184# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15185func_cc_basename () 15186{ 15187 for cc_temp in $*""; do 15188 case $cc_temp in 15189 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15190 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15191 \-*) ;; 15192 *) break;; 15193 esac 15194 done 15195 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15196} 15197 15198 15199# ### END FUNCTIONS SHARED WITH CONFIGURE 15200 15201_LT_EOF 15202 15203 case $host_os in 15204 aix3*) 15205 cat <<\_LT_EOF >> "$cfgfile" 15206# AIX sometimes has problems with the GCC collect2 program. For some 15207# reason, if we set the COLLECT_NAMES environment variable, the problems 15208# vanish in a puff of smoke. 15209if test set != "${COLLECT_NAMES+set}"; then 15210 COLLECT_NAMES= 15211 export COLLECT_NAMES 15212fi 15213_LT_EOF 15214 ;; 15215 esac 15216 15217 15218ltmain=$ac_aux_dir/ltmain.sh 15219 15220 15221 # We use sed instead of cat because bash on DJGPP gets confused if 15222 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15223 # text mode, it properly converts lines to CR/LF. This bash problem 15224 # is reportedly fixed, but why not run on old versions too? 15225 sed '$q' "$ltmain" >> "$cfgfile" \ 15226 || (rm -f "$cfgfile"; exit 1) 15227 15228 mv -f "$cfgfile" "$ofile" || 15229 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15230 chmod +x "$ofile" 15231 15232 ;; 15233 15234 esac 15235done # for ac_tag 15236 15237 15238as_fn_exit 0 15239_ACEOF 15240ac_clean_files=$ac_clean_files_save 15241 15242test $ac_write_fail = 0 || 15243 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15244 15245 15246# configure is writing to config.log, and then calls config.status. 15247# config.status does its own redirection, appending to config.log. 15248# Unfortunately, on DOS this fails, as config.log is still kept open 15249# by configure, so config.status won't be able to write to it; its 15250# output is simply discarded. So we exec the FD to /dev/null, 15251# effectively closing config.log, so it can be properly (re)opened and 15252# appended to by config.status. When coming back to configure, we 15253# need to make the FD available again. 15254if test "$no_create" != yes; then 15255 ac_cs_success=: 15256 ac_config_status_args= 15257 test "$silent" = yes && 15258 ac_config_status_args="$ac_config_status_args --quiet" 15259 exec 5>/dev/null 15260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15261 exec 5>>config.log 15262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15263 # would make configure fail if this is the last instruction. 15264 $ac_cs_success || as_fn_exit 1 15265fi 15266if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15268$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15269fi 15270 15271