1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for file 5.46. 4# 5# Report bugs to <christos@astron.com>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed 'exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254# neutralization value for shells without unset; and this also 255# works around shells that cannot unset nonexistent variables. 256# Preserve -v and -x to the replacement shell. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267# Admittedly, this is quite paranoid, since all the known shells bail 268# out after a failed 'exec'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 282$0: christos@astron.com about your system, including any 283$0: error possibly output before this message. Then install 284$0: a modern shell, or manually run the script under such a 285$0: shell if you do have one." 286 fi 287 exit 1 288fi ;; 289esac 290fi 291fi 292SHELL=${CONFIG_SHELL-/bin/sh} 293export SHELL 294# Unset more variables known to interfere with behavior of common tools. 295CLICOLOR_FORCE= GREP_OPTIONS= 296unset CLICOLOR_FORCE GREP_OPTIONS 297 298## --------------------- ## 299## M4sh Shell Functions. ## 300## --------------------- ## 301# as_fn_unset VAR 302# --------------- 303# Portably unset VAR. 304as_fn_unset () 305{ 306 { eval $1=; unset $1;} 307} 308as_unset=as_fn_unset 309 310 311# as_fn_set_status STATUS 312# ----------------------- 313# Set $? to STATUS, without forking. 314as_fn_set_status () 315{ 316 return $1 317} # as_fn_set_status 318 319# as_fn_exit STATUS 320# ----------------- 321# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 322as_fn_exit () 323{ 324 set +e 325 as_fn_set_status $1 326 exit $1 327} # as_fn_exit 328 329# as_fn_mkdir_p 330# ------------- 331# Create "$as_dir" as a directory, including parents if necessary. 332as_fn_mkdir_p () 333{ 334 335 case $as_dir in #( 336 -*) as_dir=./$as_dir;; 337 esac 338 test -d "$as_dir" || eval $as_mkdir_p || { 339 as_dirs= 340 while :; do 341 case $as_dir in #( 342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 343 *) as_qdir=$as_dir;; 344 esac 345 as_dirs="'$as_qdir' $as_dirs" 346 as_dir=`$as_dirname -- "$as_dir" || 347$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 348 X"$as_dir" : 'X\(//\)[^/]' \| \ 349 X"$as_dir" : 'X\(//\)$' \| \ 350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 351printf "%s\n" X"$as_dir" | 352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)[^/].*/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)$/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\).*/{ 365 s//\1/ 366 q 367 } 368 s/.*/./; q'` 369 test -d "$as_dir" && break 370 done 371 test -z "$as_dirs" || eval "mkdir $as_dirs" 372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 373 374 375} # as_fn_mkdir_p 376 377# as_fn_executable_p FILE 378# ----------------------- 379# Test if FILE is an executable regular file. 380as_fn_executable_p () 381{ 382 test -f "$1" && test -x "$1" 383} # as_fn_executable_p 384# as_fn_append VAR VALUE 385# ---------------------- 386# Append the text in VALUE to the end of the definition contained in VAR. Take 387# advantage of any shell optimizations that allow amortized linear growth over 388# repeated appends, instead of the typical quadratic growth present in naive 389# implementations. 390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 391then : 392 eval 'as_fn_append () 393 { 394 eval $1+=\$2 395 }' 396else case e in #( 397 e) as_fn_append () 398 { 399 eval $1=\$$1\$2 400 } ;; 401esac 402fi # as_fn_append 403 404# as_fn_arith ARG... 405# ------------------ 406# Perform arithmetic evaluation on the ARGs, and store the result in the 407# global $as_val. Take advantage of shells that can avoid forks. The arguments 408# must be portable across $(()) and expr. 409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415else case e in #( 416 e) as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } ;; 420esac 421fi # as_fn_arith 422 423 424# as_fn_error STATUS ERROR [LINENO LOG_FD] 425# ---------------------------------------- 426# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 427# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 428# script with STATUS, using 1 if that was 0. 429as_fn_error () 430{ 431 as_status=$1; test $as_status -eq 0 && as_status=1 432 if test "$4"; then 433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 435 fi 436 printf "%s\n" "$as_me: error: $2" >&2 437 as_fn_exit $as_status 438} # as_fn_error 439 440if expr a : '\(a\)' >/dev/null 2>&1 && 441 test "X`expr 00001 : '.*\(...\)'`" = X001; then 442 as_expr=expr 443else 444 as_expr=false 445fi 446 447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 448 as_basename=basename 449else 450 as_basename=false 451fi 452 453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 454 as_dirname=dirname 455else 456 as_dirname=false 457fi 458 459as_me=`$as_basename -- "$0" || 460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 461 X"$0" : 'X\(//\)$' \| \ 462 X"$0" : 'X\(/\)' \| . 2>/dev/null || 463printf "%s\n" X/"$0" | 464 sed '/^.*\/\([^/][^/]*\)\/*$/{ 465 s//\1/ 466 q 467 } 468 /^X\/\(\/\/\)$/{ 469 s//\1/ 470 q 471 } 472 /^X\/\(\/\).*/{ 473 s//\1/ 474 q 475 } 476 s/.*/./; q'` 477 478# Avoid depending upon Character Ranges. 479as_cr_letters='abcdefghijklmnopqrstuvwxyz' 480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 481as_cr_Letters=$as_cr_letters$as_cr_LETTERS 482as_cr_digits='0123456789' 483as_cr_alnum=$as_cr_Letters$as_cr_digits 484 485 486 as_lineno_1=$LINENO as_lineno_1a=$LINENO 487 as_lineno_2=$LINENO as_lineno_2a=$LINENO 488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 491 sed -n ' 492 p 493 /[$]LINENO/= 494 ' <$as_myself | 495 sed ' 496 t clear 497 :clear 498 s/[$]LINENO.*/&-/ 499 t lineno 500 b 501 :lineno 502 N 503 :loop 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 505 t loop 506 s/-\n.*// 507 ' >$as_me.lineno && 508 chmod +x "$as_me.lineno" || 509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 512 # already done that, so ensure we don't try to do so again and fall 513 # in an infinite loop. This has already happened in practice. 514 _as_can_reexec=no; export _as_can_reexec 515 # Don't try to exec as it changes $[0], causing all sort of problems 516 # (the dirname of $[0] is not the place where we might find the 517 # original and so on. Autoconf is especially sensitive to this). 518 . "./$as_me.lineno" 519 # Exit status is that of the last command. 520 exit 521} 522 523 524# Determine whether it's possible to make 'echo' print without a newline. 525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 526# for compatibility with existing Makefiles. 527ECHO_C= ECHO_N= ECHO_T= 528case `echo -n x` in #((((( 529-n*) 530 case `echo 'xy\c'` in 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 532 xy) ECHO_C='\c';; 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 534 ECHO_T=' ';; 535 esac;; 536*) 537 ECHO_N='-n';; 538esac 539 540# For backward compatibility with old third-party macros, we provide 541# the shell variables $as_echo and $as_echo_n. New code should use 542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 543as_echo='printf %s\n' 544as_echo_n='printf %s' 545 546rm -f conf$$ conf$$.exe conf$$.file 547if test -d conf$$.dir; then 548 rm -f conf$$.dir/conf$$.file 549else 550 rm -f conf$$.dir 551 mkdir conf$$.dir 2>/dev/null 552fi 553if (echo >conf$$.file) 2>/dev/null; then 554 if ln -s conf$$.file conf$$ 2>/dev/null; then 555 as_ln_s='ln -s' 556 # ... but there are two gotchas: 557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 559 # In both cases, we have to default to 'cp -pR'. 560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 561 as_ln_s='cp -pR' 562 elif ln conf$$.file conf$$ 2>/dev/null; then 563 as_ln_s=ln 564 else 565 as_ln_s='cp -pR' 566 fi 567else 568 as_ln_s='cp -pR' 569fi 570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 571rmdir conf$$.dir 2>/dev/null 572 573if mkdir -p . 2>/dev/null; then 574 as_mkdir_p='mkdir -p "$as_dir"' 575else 576 test -d ./-p && rmdir ./-p 577 as_mkdir_p=false 578fi 579 580as_test_x='test -x' 581as_executable_p=as_fn_executable_p 582 583# Sed expression to map a string onto a valid CPP name. 584as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 585as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 586 587# Sed expression to map a string onto a valid variable name. 588as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 589as_tr_sh="eval sed '$as_sed_sh'" # deprecated 590 591SHELL=${CONFIG_SHELL-/bin/sh} 592 593 594test -n "$DJDIR" || exec 7<&0 </dev/null 595exec 6>&1 596 597# Name of the host. 598# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 599# so uname gets run too. 600ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 601 602# 603# Initializations. 604# 605ac_default_prefix=/usr/local 606ac_clean_files= 607ac_config_libobj_dir=. 608LIBOBJS= 609cross_compiling=no 610subdirs= 611MFLAGS= 612MAKEFLAGS= 613 614# Identity of this package. 615PACKAGE_NAME='file' 616PACKAGE_TARNAME='file' 617PACKAGE_VERSION='5.46' 618PACKAGE_STRING='file 5.46' 619PACKAGE_BUGREPORT='christos@astron.com' 620PACKAGE_URL='' 621 622# Factoring default headers for most tests. 623ac_includes_default="\ 624#include <stddef.h> 625#ifdef HAVE_STDIO_H 626# include <stdio.h> 627#endif 628#ifdef HAVE_STDLIB_H 629# include <stdlib.h> 630#endif 631#ifdef HAVE_STRING_H 632# include <string.h> 633#endif 634#ifdef HAVE_INTTYPES_H 635# include <inttypes.h> 636#endif 637#ifdef HAVE_STDINT_H 638# include <stdint.h> 639#endif 640#ifdef HAVE_STRINGS_H 641# include <strings.h> 642#endif 643#ifdef HAVE_SYS_TYPES_H 644# include <sys/types.h> 645#endif 646#ifdef HAVE_SYS_STAT_H 647# include <sys/stat.h> 648#endif 649#ifdef HAVE_UNISTD_H 650# include <unistd.h> 651#endif" 652 653ac_header_c_list= 654ac_func_c_list= 655enable_year2038=yes 656ac_subst_vars='am__EXEEXT_FALSE 657am__EXEEXT_TRUE 658LTLIBOBJS 659IS_CROSS_COMPILE_FALSE 660IS_CROSS_COMPILE_TRUE 661LIBOBJS 662HAVE_VISIBILITY 663CFLAG_VISIBILITY 664LT_SYS_LIBRARY_PATH 665OTOOL64 666OTOOL 667LIPO 668NMEDIT 669DSYMUTIL 670MANIFEST_TOOL 671RANLIB 672ac_ct_AR 673AR 674DLLTOOL 675OBJDUMP 676FILECMD 677NM 678ac_ct_DUMPBIN 679DUMPBIN 680LD 681FGREP 682EGREP 683GREP 684SED 685LIBTOOL 686LN_S 687am__fastdepCC_FALSE 688am__fastdepCC_TRUE 689CCDEPMODE 690am__nodep 691AMDEPBACKSLASH 692AMDEP_FALSE 693AMDEP_TRUE 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703WARNINGS 704FSECT5_FALSE 705FSECT5_TRUE 706fsect 707pkgdatadir 708MINGW_FALSE 709MINGW_TRUE 710MINGW 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719AM_BACKSLASH 720AM_DEFAULT_VERBOSITY 721AM_DEFAULT_V 722AM_V 723CSCOPE 724ETAGS 725CTAGS 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_alias 750host_alias 751build_alias 752LIBS 753ECHO_T 754ECHO_N 755ECHO_C 756DEFS 757mandir 758localedir 759libdir 760psdir 761pdfdir 762dvidir 763htmldir 764infodir 765docdir 766oldincludedir 767includedir 768runstatedir 769localstatedir 770sharedstatedir 771sysconfdir 772datadir 773datarootdir 774libexecdir 775sbindir 776bindir 777program_transform_name 778prefix 779exec_prefix 780PACKAGE_URL 781PACKAGE_BUGREPORT 782PACKAGE_STRING 783PACKAGE_VERSION 784PACKAGE_TARNAME 785PACKAGE_NAME 786PATH_SEPARATOR 787SHELL 788am__quote' 789ac_subst_files='' 790ac_user_opts=' 791enable_option_checking 792enable_silent_rules 793enable_elf 794enable_elf_core 795enable_zlib 796enable_bzlib 797enable_xzlib 798enable_zstdlib 799enable_lzlib 800enable_lrziplib 801enable_libseccomp 802enable_fsect_man5 803enable_dependency_tracking 804enable_static 805with_pic 806enable_shared 807enable_fast_install 808with_aix_soname 809with_gnu_ld 810with_sysroot 811enable_libtool_lock 812enable_largefile 813enable_warnings 814enable_year2038 815' 816 ac_precious_vars='build_alias 817host_alias 818target_alias 819CC 820CFLAGS 821LDFLAGS 822LIBS 823CPPFLAGS 824LT_SYS_LIBRARY_PATH' 825 826 827# Initialize some variables set by options. 828ac_init_help= 829ac_init_version=false 830ac_unrecognized_opts= 831ac_unrecognized_sep= 832# The variables have the same names as the options, with 833# dashes changed to underlines. 834cache_file=/dev/null 835exec_prefix=NONE 836no_create= 837no_recursion= 838prefix=NONE 839program_prefix=NONE 840program_suffix=NONE 841program_transform_name=s,x,x, 842silent= 843site= 844srcdir= 845verbose= 846x_includes=NONE 847x_libraries=NONE 848 849# Installation directory options. 850# These are left unexpanded so users can "make install exec_prefix=/foo" 851# and all the variables that are supposed to be based on exec_prefix 852# by default will actually change. 853# Use braces instead of parens because sh, perl, etc. also accept them. 854# (The list follows the same order as the GNU Coding Standards.) 855bindir='${exec_prefix}/bin' 856sbindir='${exec_prefix}/sbin' 857libexecdir='${exec_prefix}/libexec' 858datarootdir='${prefix}/share' 859datadir='${datarootdir}' 860sysconfdir='${prefix}/etc' 861sharedstatedir='${prefix}/com' 862localstatedir='${prefix}/var' 863runstatedir='${localstatedir}/run' 864includedir='${prefix}/include' 865oldincludedir='/usr/include' 866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 867infodir='${datarootdir}/info' 868htmldir='${docdir}' 869dvidir='${docdir}' 870pdfdir='${docdir}' 871psdir='${docdir}' 872libdir='${exec_prefix}/lib' 873localedir='${datarootdir}/locale' 874mandir='${datarootdir}/man' 875 876ac_prev= 877ac_dashdash= 878for ac_option 879do 880 # If the previous option needs an argument, assign it. 881 if test -n "$ac_prev"; then 882 eval $ac_prev=\$ac_option 883 ac_prev= 884 continue 885 fi 886 887 case $ac_option in 888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 889 *=) ac_optarg= ;; 890 *) ac_optarg=yes ;; 891 esac 892 893 case $ac_dashdash$ac_option in 894 --) 895 ac_dashdash=yes ;; 896 897 -bindir | --bindir | --bindi | --bind | --bin | --bi) 898 ac_prev=bindir ;; 899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 900 bindir=$ac_optarg ;; 901 902 -build | --build | --buil | --bui | --bu) 903 ac_prev=build_alias ;; 904 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 905 build_alias=$ac_optarg ;; 906 907 -cache-file | --cache-file | --cache-fil | --cache-fi \ 908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 909 ac_prev=cache_file ;; 910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 912 cache_file=$ac_optarg ;; 913 914 --config-cache | -C) 915 cache_file=config.cache ;; 916 917 -datadir | --datadir | --datadi | --datad) 918 ac_prev=datadir ;; 919 -datadir=* | --datadir=* | --datadi=* | --datad=*) 920 datadir=$ac_optarg ;; 921 922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 923 | --dataroo | --dataro | --datar) 924 ac_prev=datarootdir ;; 925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 927 datarootdir=$ac_optarg ;; 928 929 -disable-* | --disable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: '$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=no ;; 944 945 -docdir | --docdir | --docdi | --doc | --do) 946 ac_prev=docdir ;; 947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 948 docdir=$ac_optarg ;; 949 950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 951 ac_prev=dvidir ;; 952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 953 dvidir=$ac_optarg ;; 954 955 -enable-* | --enable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: '$ac_useropt'" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=\$ac_optarg ;; 970 971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 973 | --exec | --exe | --ex) 974 ac_prev=exec_prefix ;; 975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 977 | --exec=* | --exe=* | --ex=*) 978 exec_prefix=$ac_optarg ;; 979 980 -gas | --gas | --ga | --g) 981 # Obsolete; use --with-gas. 982 with_gas=yes ;; 983 984 -help | --help | --hel | --he | -h) 985 ac_init_help=long ;; 986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 987 ac_init_help=recursive ;; 988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 989 ac_init_help=short ;; 990 991 -host | --host | --hos | --ho) 992 ac_prev=host_alias ;; 993 -host=* | --host=* | --hos=* | --ho=*) 994 host_alias=$ac_optarg ;; 995 996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 997 ac_prev=htmldir ;; 998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 999 | --ht=*) 1000 htmldir=$ac_optarg ;; 1001 1002 -includedir | --includedir | --includedi | --included | --include \ 1003 | --includ | --inclu | --incl | --inc) 1004 ac_prev=includedir ;; 1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1006 | --includ=* | --inclu=* | --incl=* | --inc=*) 1007 includedir=$ac_optarg ;; 1008 1009 -infodir | --infodir | --infodi | --infod | --info | --inf) 1010 ac_prev=infodir ;; 1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1012 infodir=$ac_optarg ;; 1013 1014 -libdir | --libdir | --libdi | --libd) 1015 ac_prev=libdir ;; 1016 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1017 libdir=$ac_optarg ;; 1018 1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1020 | --libexe | --libex | --libe) 1021 ac_prev=libexecdir ;; 1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1023 | --libexe=* | --libex=* | --libe=*) 1024 libexecdir=$ac_optarg ;; 1025 1026 -localedir | --localedir | --localedi | --localed | --locale) 1027 ac_prev=localedir ;; 1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1029 localedir=$ac_optarg ;; 1030 1031 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1032 | --localstate | --localstat | --localsta | --localst | --locals) 1033 ac_prev=localstatedir ;; 1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1036 localstatedir=$ac_optarg ;; 1037 1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1039 ac_prev=mandir ;; 1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1041 mandir=$ac_optarg ;; 1042 1043 -nfp | --nfp | --nf) 1044 # Obsolete; use --without-fp. 1045 with_fp=no ;; 1046 1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1048 | --no-cr | --no-c | -n) 1049 no_create=yes ;; 1050 1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1053 no_recursion=yes ;; 1054 1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1057 | --oldin | --oldi | --old | --ol | --o) 1058 ac_prev=oldincludedir ;; 1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1062 oldincludedir=$ac_optarg ;; 1063 1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1065 ac_prev=prefix ;; 1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1067 prefix=$ac_optarg ;; 1068 1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1070 | --program-pre | --program-pr | --program-p) 1071 ac_prev=program_prefix ;; 1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1074 program_prefix=$ac_optarg ;; 1075 1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1077 | --program-suf | --program-su | --program-s) 1078 ac_prev=program_suffix ;; 1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1081 program_suffix=$ac_optarg ;; 1082 1083 -program-transform-name | --program-transform-name \ 1084 | --program-transform-nam | --program-transform-na \ 1085 | --program-transform-n | --program-transform- \ 1086 | --program-transform | --program-transfor \ 1087 | --program-transfo | --program-transf \ 1088 | --program-trans | --program-tran \ 1089 | --progr-tra | --program-tr | --program-t) 1090 ac_prev=program_transform_name ;; 1091 -program-transform-name=* | --program-transform-name=* \ 1092 | --program-transform-nam=* | --program-transform-na=* \ 1093 | --program-transform-n=* | --program-transform-=* \ 1094 | --program-transform=* | --program-transfor=* \ 1095 | --program-transfo=* | --program-transf=* \ 1096 | --program-trans=* | --program-tran=* \ 1097 | --progr-tra=* | --program-tr=* | --program-t=*) 1098 program_transform_name=$ac_optarg ;; 1099 1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1101 ac_prev=pdfdir ;; 1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1103 pdfdir=$ac_optarg ;; 1104 1105 -psdir | --psdir | --psdi | --psd | --ps) 1106 ac_prev=psdir ;; 1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1108 psdir=$ac_optarg ;; 1109 1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1111 | -silent | --silent | --silen | --sile | --sil) 1112 silent=yes ;; 1113 1114 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1115 | --runstate | --runstat | --runsta | --runst | --runs \ 1116 | --run | --ru | --r) 1117 ac_prev=runstatedir ;; 1118 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1119 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1120 | --run=* | --ru=* | --r=*) 1121 runstatedir=$ac_optarg ;; 1122 1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1124 ac_prev=sbindir ;; 1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1126 | --sbi=* | --sb=*) 1127 sbindir=$ac_optarg ;; 1128 1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1131 | --sharedst | --shareds | --shared | --share | --shar \ 1132 | --sha | --sh) 1133 ac_prev=sharedstatedir ;; 1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1137 | --sha=* | --sh=*) 1138 sharedstatedir=$ac_optarg ;; 1139 1140 -site | --site | --sit) 1141 ac_prev=site ;; 1142 -site=* | --site=* | --sit=*) 1143 site=$ac_optarg ;; 1144 1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1146 ac_prev=srcdir ;; 1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1148 srcdir=$ac_optarg ;; 1149 1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1151 | --syscon | --sysco | --sysc | --sys | --sy) 1152 ac_prev=sysconfdir ;; 1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1155 sysconfdir=$ac_optarg ;; 1156 1157 -target | --target | --targe | --targ | --tar | --ta | --t) 1158 ac_prev=target_alias ;; 1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1160 target_alias=$ac_optarg ;; 1161 1162 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1163 verbose=yes ;; 1164 1165 -version | --version | --versio | --versi | --vers | -V) 1166 ac_init_version=: ;; 1167 1168 -with-* | --with-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error $? "invalid package name: '$ac_useropt'" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"with_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval with_$ac_useropt=\$ac_optarg ;; 1183 1184 -without-* | --without-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error $? "invalid package name: '$ac_useropt'" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"with_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval with_$ac_useropt=no ;; 1199 1200 --x) 1201 # Obsolete; use --with-x. 1202 with_x=yes ;; 1203 1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1205 | --x-incl | --x-inc | --x-in | --x-i) 1206 ac_prev=x_includes ;; 1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1209 x_includes=$ac_optarg ;; 1210 1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1213 ac_prev=x_libraries ;; 1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1216 x_libraries=$ac_optarg ;; 1217 1218 -*) as_fn_error $? "unrecognized option: '$ac_option' 1219Try '$0 --help' for more information" 1220 ;; 1221 1222 *=*) 1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1224 # Reject names that are not valid shell variable names. 1225 case $ac_envvar in #( 1226 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1227 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1228 esac 1229 eval $ac_envvar=\$ac_optarg 1230 export $ac_envvar ;; 1231 1232 *) 1233 # FIXME: should be removed in autoconf 3.0. 1234 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1236 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1238 ;; 1239 1240 esac 1241done 1242 1243if test -n "$ac_prev"; then 1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1245 as_fn_error $? "missing argument to $ac_option" 1246fi 1247 1248if test -n "$ac_unrecognized_opts"; then 1249 case $enable_option_checking in 1250 no) ;; 1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1252 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1253 esac 1254fi 1255 1256# Check all directory arguments for consistency. 1257for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1258 datadir sysconfdir sharedstatedir localstatedir includedir \ 1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1260 libdir localedir mandir runstatedir 1261do 1262 eval ac_val=\$$ac_var 1263 # Remove trailing slashes. 1264 case $ac_val in 1265 */ ) 1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1267 eval $ac_var=\$ac_val;; 1268 esac 1269 # Be sure to have absolute directory names. 1270 case $ac_val in 1271 [\\/$]* | ?:[\\/]* ) continue;; 1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1273 esac 1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1275done 1276 1277# There might be people who depend on the old broken behavior: '$host' 1278# used to hold the argument of --host etc. 1279# FIXME: To remove some day. 1280build=$build_alias 1281host=$host_alias 1282target=$target_alias 1283 1284# FIXME: To remove some day. 1285if test "x$host_alias" != x; then 1286 if test "x$build_alias" = x; then 1287 cross_compiling=maybe 1288 elif test "x$build_alias" != "x$host_alias"; then 1289 cross_compiling=yes 1290 fi 1291fi 1292 1293ac_tool_prefix= 1294test -n "$host_alias" && ac_tool_prefix=$host_alias- 1295 1296test "$silent" = yes && exec 6>/dev/null 1297 1298 1299ac_pwd=`pwd` && test -n "$ac_pwd" && 1300ac_ls_di=`ls -di .` && 1301ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1302 as_fn_error $? "working directory cannot be determined" 1303test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1304 as_fn_error $? "pwd does not report name of working directory" 1305 1306 1307# Find the source files, if location was not specified. 1308if test -z "$srcdir"; then 1309 ac_srcdir_defaulted=yes 1310 # Try the directory containing this script, then the parent directory. 1311 ac_confdir=`$as_dirname -- "$as_myself" || 1312$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1313 X"$as_myself" : 'X\(//\)[^/]' \| \ 1314 X"$as_myself" : 'X\(//\)$' \| \ 1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1316printf "%s\n" X"$as_myself" | 1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\/\)[^/].*/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\/\)$/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\).*/{ 1330 s//\1/ 1331 q 1332 } 1333 s/.*/./; q'` 1334 srcdir=$ac_confdir 1335 if test ! -r "$srcdir/$ac_unique_file"; then 1336 srcdir=.. 1337 fi 1338else 1339 ac_srcdir_defaulted=no 1340fi 1341if test ! -r "$srcdir/$ac_unique_file"; then 1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1343 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1344fi 1345ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1346ac_abs_confdir=`( 1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1348 pwd)` 1349# When building in place, set srcdir=. 1350if test "$ac_abs_confdir" = "$ac_pwd"; then 1351 srcdir=. 1352fi 1353# Remove unnecessary trailing slashes from srcdir. 1354# Double slashes in file names in object file debugging info 1355# mess up M-x gdb in Emacs. 1356case $srcdir in 1357*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1358esac 1359for ac_var in $ac_precious_vars; do 1360 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1361 eval ac_env_${ac_var}_value=\$${ac_var} 1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1363 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1364done 1365 1366# 1367# Report the --help message. 1368# 1369if test "$ac_init_help" = "long"; then 1370 # Omit some internal or obsolete options to make the list less imposing. 1371 # This message is too long to be a string in the A/UX 3.1 sh. 1372 cat <<_ACEOF 1373'configure' configures file 5.46 to adapt to many kinds of systems. 1374 1375Usage: $0 [OPTION]... [VAR=VALUE]... 1376 1377To assign environment variables (e.g., CC, CFLAGS...), specify them as 1378VAR=VALUE. See below for descriptions of some of the useful variables. 1379 1380Defaults for the options are specified in brackets. 1381 1382Configuration: 1383 -h, --help display this help and exit 1384 --help=short display options specific to this package 1385 --help=recursive display the short help of all the included packages 1386 -V, --version display version information and exit 1387 -q, --quiet, --silent do not print 'checking ...' messages 1388 --cache-file=FILE cache test results in FILE [disabled] 1389 -C, --config-cache alias for '--cache-file=config.cache' 1390 -n, --no-create do not create output files 1391 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1392 1393Installation directories: 1394 --prefix=PREFIX install architecture-independent files in PREFIX 1395 [$ac_default_prefix] 1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1397 [PREFIX] 1398 1399By default, 'make install' will install all the files in 1400'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1401an installation prefix other than '$ac_default_prefix' using '--prefix', 1402for instance '--prefix=\$HOME'. 1403 1404For better control, use the options below. 1405 1406Fine tuning of the installation directories: 1407 --bindir=DIR user executables [EPREFIX/bin] 1408 --sbindir=DIR system admin executables [EPREFIX/sbin] 1409 --libexecdir=DIR program executables [EPREFIX/libexec] 1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1413 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1423 --htmldir=DIR html documentation [DOCDIR] 1424 --dvidir=DIR dvi documentation [DOCDIR] 1425 --pdfdir=DIR pdf documentation [DOCDIR] 1426 --psdir=DIR ps documentation [DOCDIR] 1427_ACEOF 1428 1429 cat <<\_ACEOF 1430 1431Program names: 1432 --program-prefix=PREFIX prepend PREFIX to installed program names 1433 --program-suffix=SUFFIX append SUFFIX to installed program names 1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1435 1436System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439_ACEOF 1440fi 1441 1442if test -n "$ac_init_help"; then 1443 case $ac_init_help in 1444 short | recursive ) echo "Configuration of file 5.46:";; 1445 esac 1446 cat <<\_ACEOF 1447 1448Optional Features: 1449 --disable-option-checking ignore unrecognized --enable/--with options 1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1452 --enable-silent-rules less verbose build output (undo: "make V=1") 1453 --disable-silent-rules verbose build output (undo: "make V=0") 1454 --disable-elf disable builtin ELF support 1455 --disable-elf-core disable ELF core file support 1456 --disable-zlib disable zlib compression support [default=auto] 1457 --disable-bzlib disable bz2lib compression support [default=auto] 1458 --disable-xzlib disable liblzma/xz compression support 1459 [default=auto] 1460 --disable-zstdlib disable zstdlib compression support [default=auto] 1461 --disable-lzlib disable liblz (lzip) compression support 1462 [default=auto] 1463 --disable-lrziplib disable liblrzip (lrzip) compression support 1464 [default=auto] 1465 --disable-libseccomp disable libseccomp sandboxing [default=auto] 1466 --enable-fsect-man5 enable file formats in man section 5 1467 --enable-dependency-tracking 1468 do not reject slow dependency extractors 1469 --disable-dependency-tracking 1470 speeds up one-time build 1471 --enable-static[=PKGS] build static libraries [default=no] 1472 --enable-shared[=PKGS] build shared libraries [default=yes] 1473 --enable-fast-install[=PKGS] 1474 optimize for fast installation [default=yes] 1475 --disable-libtool-lock avoid locking (might break parallel builds) 1476 --disable-largefile omit support for large files 1477 --disable-warnings disable compiler warnings 1478 --disable-year2038 don't support timestamps after 2038 1479 1480Optional Packages: 1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1483 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1484 both] 1485 --with-aix-soname=aix|svr4|both 1486 shared library versioning (aka "SONAME") variant to 1487 provide on AIX, [default=aix]. 1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1489 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1490 compiler's sysroot if not specified). 1491 1492Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 LIBS libraries to pass to the linker, e.g. -l<library> 1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1499 you have headers in a nonstandard directory <include dir> 1500 LT_SYS_LIBRARY_PATH 1501 User-defined run-time library search path. 1502 1503Use these variables to override the choices made by 'configure' or to help 1504it to find libraries and programs with nonstandard names/locations. 1505 1506Report bugs to <christos@astron.com>. 1507_ACEOF 1508ac_status=$? 1509fi 1510 1511if test "$ac_init_help" = "recursive"; then 1512 # If there are subdirs, report their specific --help. 1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1514 test -d "$ac_dir" || 1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1516 continue 1517 ac_builddir=. 1518 1519case "$ac_dir" in 1520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521*) 1522 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1523 # A ".." for each directory in $ac_dir_suffix. 1524 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1525 case $ac_top_builddir_sub in 1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1528 esac ;; 1529esac 1530ac_abs_top_builddir=$ac_pwd 1531ac_abs_builddir=$ac_pwd$ac_dir_suffix 1532# for backward compatibility: 1533ac_top_builddir=$ac_top_build_prefix 1534 1535case $srcdir in 1536 .) # We are building in place. 1537 ac_srcdir=. 1538 ac_top_srcdir=$ac_top_builddir_sub 1539 ac_abs_top_srcdir=$ac_pwd ;; 1540 [\\/]* | ?:[\\/]* ) # Absolute name. 1541 ac_srcdir=$srcdir$ac_dir_suffix; 1542 ac_top_srcdir=$srcdir 1543 ac_abs_top_srcdir=$srcdir ;; 1544 *) # Relative name. 1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1546 ac_top_srcdir=$ac_top_build_prefix$srcdir 1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1548esac 1549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1550 1551 cd "$ac_dir" || { ac_status=$?; continue; } 1552 # Check for configure.gnu first; this name is used for a wrapper for 1553 # Metaconfig's "Configure" on case-insensitive file systems. 1554 if test -f "$ac_srcdir/configure.gnu"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1557 elif test -f "$ac_srcdir/configure"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure" --help=recursive 1560 else 1561 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1562 fi || ac_status=$? 1563 cd "$ac_pwd" || { ac_status=$?; break; } 1564 done 1565fi 1566 1567test -n "$ac_init_help" && exit $ac_status 1568if $ac_init_version; then 1569 cat <<\_ACEOF 1570file configure 5.46 1571generated by GNU Autoconf 2.72 1572 1573Copyright (C) 2023 Free Software Foundation, Inc. 1574This configure script is free software; the Free Software Foundation 1575gives unlimited permission to copy, distribute and modify it. 1576_ACEOF 1577 exit 1578fi 1579 1580## ------------------------ ## 1581## Autoconf initialization. ## 1582## ------------------------ ## 1583 1584# ac_fn_c_try_compile LINENO 1585# -------------------------- 1586# Try to compile conftest.$ac_ext, and return whether this succeeded. 1587ac_fn_c_try_compile () 1588{ 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 rm -f conftest.$ac_objext conftest.beam 1591 if { { ac_try="$ac_compile" 1592case "(($ac_try" in 1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1594 *) ac_try_echo=$ac_try;; 1595esac 1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1597printf "%s\n" "$ac_try_echo"; } >&5 1598 (eval "$ac_compile") 2>conftest.err 1599 ac_status=$? 1600 if test -s conftest.err; then 1601 grep -v '^ *+' conftest.err >conftest.er1 1602 cat conftest.er1 >&5 1603 mv -f conftest.er1 conftest.err 1604 fi 1605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } && { 1607 test -z "$ac_c_werror_flag" || 1608 test ! -s conftest.err 1609 } && test -s conftest.$ac_objext 1610then : 1611 ac_retval=0 1612else case e in #( 1613 e) printf "%s\n" "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 ;; 1617esac 1618fi 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 as_fn_set_status $ac_retval 1621 1622} # ac_fn_c_try_compile 1623 1624# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1625# ------------------------------------------------------- 1626# Tests whether HEADER exists and can be compiled using the include files in 1627# INCLUDES, setting the cache variable VAR accordingly. 1628ac_fn_c_check_header_compile () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1632printf %s "checking for $2... " >&6; } 1633if eval test \${$3+y} 1634then : 1635 printf %s "(cached) " >&6 1636else case e in #( 1637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638/* end confdefs.h. */ 1639$4 1640#include <$2> 1641_ACEOF 1642if ac_fn_c_try_compile "$LINENO" 1643then : 1644 eval "$3=yes" 1645else case e in #( 1646 e) eval "$3=no" ;; 1647esac 1648fi 1649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1650esac 1651fi 1652eval ac_res=\$$3 1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1654printf "%s\n" "$ac_res" >&6; } 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 1657} # ac_fn_c_check_header_compile 1658 1659# ac_fn_c_try_link LINENO 1660# ----------------------- 1661# Try to link conftest.$ac_ext, and return whether this succeeded. 1662ac_fn_c_try_link () 1663{ 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1666 if { { ac_try="$ac_link" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672printf "%s\n" "$ac_try_echo"; } >&5 1673 (eval "$ac_link") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } && { 1682 test -z "$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 } && test -s conftest$ac_exeext && { 1685 test "$cross_compiling" = yes || 1686 test -x conftest$ac_exeext 1687 } 1688then : 1689 ac_retval=0 1690else case e in #( 1691 e) printf "%s\n" "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 ;; 1695esac 1696fi 1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1699 # interfere with the next link command; also delete a directory that is 1700 # left behind by Apple's compiler. We do this before executing the actions. 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 as_fn_set_status $ac_retval 1704 1705} # ac_fn_c_try_link 1706 1707# ac_fn_c_try_run LINENO 1708# ---------------------- 1709# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1710# executables *can* be run. 1711ac_fn_c_try_run () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if { { ac_try="$ac_link" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720printf "%s\n" "$ac_try_echo"; } >&5 1721 (eval "$ac_link") 2>&5 1722 ac_status=$? 1723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1725 { { case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730printf "%s\n" "$ac_try_echo"; } >&5 1731 (eval "$ac_try") 2>&5 1732 ac_status=$? 1733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; }; } 1735then : 1736 ac_retval=0 1737else case e in #( 1738 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1739 printf "%s\n" "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=$ac_status ;; 1743esac 1744fi 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 as_fn_set_status $ac_retval 1748 1749} # ac_fn_c_try_run 1750 1751# ac_fn_c_check_func LINENO FUNC VAR 1752# ---------------------------------- 1753# Tests whether FUNC exists, setting the cache variable VAR accordingly 1754ac_fn_c_check_func () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758printf %s "checking for $2... " >&6; } 1759if eval test \${$3+y} 1760then : 1761 printf %s "(cached) " >&6 1762else case e in #( 1763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1767#define $2 innocuous_$2 1768 1769/* System header to define __stub macros and hopefully few prototypes, 1770 which can conflict with char $2 (void); below. */ 1771 1772#include <limits.h> 1773#undef $2 1774 1775/* Override any GCC internal prototype to avoid an error. 1776 Use char because int might match the return type of a GCC 1777 builtin and then its argument prototype would still apply. */ 1778#ifdef __cplusplus 1779extern "C" 1780#endif 1781char $2 (void); 1782/* The GNU C library defines this for functions which it implements 1783 to always fail with ENOSYS. Some functions are actually named 1784 something starting with __ and the normal name is an alias. */ 1785#if defined __stub_$2 || defined __stub___$2 1786choke me 1787#endif 1788 1789int 1790main (void) 1791{ 1792return $2 (); 1793 ; 1794 return 0; 1795} 1796_ACEOF 1797if ac_fn_c_try_link "$LINENO" 1798then : 1799 eval "$3=yes" 1800else case e in #( 1801 e) eval "$3=no" ;; 1802esac 1803fi 1804rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1805 conftest$ac_exeext conftest.$ac_ext ;; 1806esac 1807fi 1808eval ac_res=\$$3 1809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810printf "%s\n" "$ac_res" >&6; } 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 1813} # ac_fn_c_check_func 1814 1815# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1816# ------------------------------------------- 1817# Tests whether TYPE exists after having included INCLUDES, setting cache 1818# variable VAR accordingly. 1819ac_fn_c_check_type () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1823printf %s "checking for $2... " >&6; } 1824if eval test \${$3+y} 1825then : 1826 printf %s "(cached) " >&6 1827else case e in #( 1828 e) eval "$3=no" 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831$4 1832int 1833main (void) 1834{ 1835if (sizeof ($2)) 1836 return 0; 1837 ; 1838 return 0; 1839} 1840_ACEOF 1841if ac_fn_c_try_compile "$LINENO" 1842then : 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845$4 1846int 1847main (void) 1848{ 1849if (sizeof (($2))) 1850 return 0; 1851 ; 1852 return 0; 1853} 1854_ACEOF 1855if ac_fn_c_try_compile "$LINENO" 1856then : 1857 1858else case e in #( 1859 e) eval "$3=yes" ;; 1860esac 1861fi 1862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1863fi 1864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1865esac 1866fi 1867eval ac_res=\$$3 1868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869printf "%s\n" "$ac_res" >&6; } 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 1872} # ac_fn_c_check_type 1873 1874# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1875# ---------------------------------------------------- 1876# Tries to find if the field MEMBER exists in type AGGR, after including 1877# INCLUDES, setting cache variable VAR accordingly. 1878ac_fn_c_check_member () 1879{ 1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1882printf %s "checking for $2.$3... " >&6; } 1883if eval test \${$4+y} 1884then : 1885 printf %s "(cached) " >&6 1886else case e in #( 1887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$5 1890int 1891main (void) 1892{ 1893static $2 ac_aggr; 1894if (ac_aggr.$3) 1895return 0; 1896 ; 1897 return 0; 1898} 1899_ACEOF 1900if ac_fn_c_try_compile "$LINENO" 1901then : 1902 eval "$4=yes" 1903else case e in #( 1904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906$5 1907int 1908main (void) 1909{ 1910static $2 ac_aggr; 1911if (sizeof ac_aggr.$3) 1912return 0; 1913 ; 1914 return 0; 1915} 1916_ACEOF 1917if ac_fn_c_try_compile "$LINENO" 1918then : 1919 eval "$4=yes" 1920else case e in #( 1921 e) eval "$4=no" ;; 1922esac 1923fi 1924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1925esac 1926fi 1927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1928esac 1929fi 1930eval ac_res=\$$4 1931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1932printf "%s\n" "$ac_res" >&6; } 1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1934 1935} # ac_fn_c_check_member 1936 1937# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1938# ------------------------------------------------------------------ 1939# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1940# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1941ac_fn_check_decl () 1942{ 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 as_decl_name=`echo $2|sed 's/ *(.*//'` 1945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1946printf %s "checking whether $as_decl_name is declared... " >&6; } 1947if eval test \${$3+y} 1948then : 1949 printf %s "(cached) " >&6 1950else case e in #( 1951 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1952 eval ac_save_FLAGS=\$$6 1953 as_fn_append $6 " $5" 1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955/* end confdefs.h. */ 1956$4 1957int 1958main (void) 1959{ 1960#ifndef $as_decl_name 1961#ifdef __cplusplus 1962 (void) $as_decl_use; 1963#else 1964 (void) $as_decl_name; 1965#endif 1966#endif 1967 1968 ; 1969 return 0; 1970} 1971_ACEOF 1972if ac_fn_c_try_compile "$LINENO" 1973then : 1974 eval "$3=yes" 1975else case e in #( 1976 e) eval "$3=no" ;; 1977esac 1978fi 1979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1980 eval $6=\$ac_save_FLAGS 1981 ;; 1982esac 1983fi 1984eval ac_res=\$$3 1985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1986printf "%s\n" "$ac_res" >&6; } 1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1988 1989} # ac_fn_check_decl 1990 1991# ac_fn_c_find_uintX_t LINENO BITS VAR 1992# ------------------------------------ 1993# Finds an unsigned integer type with width BITS, setting cache variable VAR 1994# accordingly. 1995ac_fn_c_find_uintX_t () 1996{ 1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1999printf %s "checking for uint$2_t... " >&6; } 2000if eval test \${$3+y} 2001then : 2002 printf %s "(cached) " >&6 2003else case e in #( 2004 e) eval "$3=no" 2005 # Order is important - never check a type that is potentially smaller 2006 # than half of the expected target width. 2007 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2008 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2010/* end confdefs.h. */ 2011$ac_includes_default 2012int 2013main (void) 2014{ 2015static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2016test_array [0] = 0; 2017return test_array [0]; 2018 2019 ; 2020 return 0; 2021} 2022_ACEOF 2023if ac_fn_c_try_compile "$LINENO" 2024then : 2025 case $ac_type in #( 2026 uint$2_t) : 2027 eval "$3=yes" ;; #( 2028 *) : 2029 eval "$3=\$ac_type" ;; 2030esac 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2033 if eval test \"x\$"$3"\" = x"no" 2034then : 2035 2036else case e in #( 2037 e) break ;; 2038esac 2039fi 2040 done ;; 2041esac 2042fi 2043eval ac_res=\$$3 2044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2045printf "%s\n" "$ac_res" >&6; } 2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2047 2048} # ac_fn_c_find_uintX_t 2049 2050# ac_fn_c_find_intX_t LINENO BITS VAR 2051# ----------------------------------- 2052# Finds a signed integer type with width BITS, setting cache variable VAR 2053# accordingly. 2054ac_fn_c_find_intX_t () 2055{ 2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2058printf %s "checking for int$2_t... " >&6; } 2059if eval test \${$3+y} 2060then : 2061 printf %s "(cached) " >&6 2062else case e in #( 2063 e) eval "$3=no" 2064 # Order is important - never check a type that is potentially smaller 2065 # than half of the expected target width. 2066 for ac_type in int$2_t 'int' 'long int' \ 2067 'long long int' 'short int' 'signed char'; do 2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2069/* end confdefs.h. */ 2070$ac_includes_default 2071 enum { N = $2 / 2 - 1 }; 2072int 2073main (void) 2074{ 2075static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2076test_array [0] = 0; 2077return test_array [0]; 2078 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO" 2084then : 2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086/* end confdefs.h. */ 2087$ac_includes_default 2088 enum { N = $2 / 2 - 1 }; 2089int 2090main (void) 2091{ 2092static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2093 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2094test_array [0] = 0; 2095return test_array [0]; 2096 2097 ; 2098 return 0; 2099} 2100_ACEOF 2101if ac_fn_c_try_compile "$LINENO" 2102then : 2103 2104else case e in #( 2105 e) case $ac_type in #( 2106 int$2_t) : 2107 eval "$3=yes" ;; #( 2108 *) : 2109 eval "$3=\$ac_type" ;; 2110esac ;; 2111esac 2112fi 2113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2114fi 2115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2116 if eval test \"x\$"$3"\" = x"no" 2117then : 2118 2119else case e in #( 2120 e) break ;; 2121esac 2122fi 2123 done ;; 2124esac 2125fi 2126eval ac_res=\$$3 2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2128printf "%s\n" "$ac_res" >&6; } 2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2130 2131} # ac_fn_c_find_intX_t 2132ac_configure_args_raw= 2133for ac_arg 2134do 2135 case $ac_arg in 2136 *\'*) 2137 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2138 esac 2139 as_fn_append ac_configure_args_raw " '$ac_arg'" 2140done 2141 2142case $ac_configure_args_raw in 2143 *$as_nl*) 2144 ac_safe_unquote= ;; 2145 *) 2146 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2147 ac_unsafe_a="$ac_unsafe_z#~" 2148 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2149 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2150esac 2151 2152cat >config.log <<_ACEOF 2153This file contains any messages produced by compilers while 2154running configure, to aid debugging if configure makes a mistake. 2155 2156It was created by file $as_me 5.46, which was 2157generated by GNU Autoconf 2.72. Invocation command line was 2158 2159 $ $0$ac_configure_args_raw 2160 2161_ACEOF 2162exec 5>>config.log 2163{ 2164cat <<_ASUNAME 2165## --------- ## 2166## Platform. ## 2167## --------- ## 2168 2169hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2170uname -m = `(uname -m) 2>/dev/null || echo unknown` 2171uname -r = `(uname -r) 2>/dev/null || echo unknown` 2172uname -s = `(uname -s) 2>/dev/null || echo unknown` 2173uname -v = `(uname -v) 2>/dev/null || echo unknown` 2174 2175/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2176/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2177 2178/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2179/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2180/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2181/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2182/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2183/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2184/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2185 2186_ASUNAME 2187 2188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2189for as_dir in $PATH 2190do 2191 IFS=$as_save_IFS 2192 case $as_dir in #((( 2193 '') as_dir=./ ;; 2194 */) ;; 2195 *) as_dir=$as_dir/ ;; 2196 esac 2197 printf "%s\n" "PATH: $as_dir" 2198 done 2199IFS=$as_save_IFS 2200 2201} >&5 2202 2203cat >&5 <<_ACEOF 2204 2205 2206## ----------- ## 2207## Core tests. ## 2208## ----------- ## 2209 2210_ACEOF 2211 2212 2213# Keep a trace of the command line. 2214# Strip out --no-create and --no-recursion so they do not pile up. 2215# Strip out --silent because we don't want to record it for future runs. 2216# Also quote any args containing shell meta-characters. 2217# Make two passes to allow for proper duplicate-argument suppression. 2218ac_configure_args= 2219ac_configure_args0= 2220ac_configure_args1= 2221ac_must_keep_next=false 2222for ac_pass in 1 2 2223do 2224 for ac_arg 2225 do 2226 case $ac_arg in 2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2229 | -silent | --silent | --silen | --sile | --sil) 2230 continue ;; 2231 *\'*) 2232 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2233 esac 2234 case $ac_pass in 2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2236 2) 2237 as_fn_append ac_configure_args1 " '$ac_arg'" 2238 if test $ac_must_keep_next = true; then 2239 ac_must_keep_next=false # Got value, back to normal. 2240 else 2241 case $ac_arg in 2242 *=* | --config-cache | -C | -disable-* | --disable-* \ 2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2245 | -with-* | --with-* | -without-* | --without-* | --x) 2246 case "$ac_configure_args0 " in 2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2248 esac 2249 ;; 2250 -* ) ac_must_keep_next=true ;; 2251 esac 2252 fi 2253 as_fn_append ac_configure_args " '$ac_arg'" 2254 ;; 2255 esac 2256 done 2257done 2258{ ac_configure_args0=; unset ac_configure_args0;} 2259{ ac_configure_args1=; unset ac_configure_args1;} 2260 2261# When interrupted or exit'd, cleanup temporary files, and complete 2262# config.log. We remove comments because anyway the quotes in there 2263# would cause problems or look ugly. 2264# WARNING: Use '\'' to represent an apostrophe within the trap. 2265# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2266trap 'exit_status=$? 2267 # Sanitize IFS. 2268 IFS=" "" $as_nl" 2269 # Save into config.log some information that might help in debugging. 2270 { 2271 echo 2272 2273 printf "%s\n" "## ---------------- ## 2274## Cache variables. ## 2275## ---------------- ##" 2276 echo 2277 # The following way of writing the cache mishandles newlines in values, 2278( 2279 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2280 eval ac_val=\$$ac_var 2281 case $ac_val in #( 2282 *${as_nl}*) 2283 case $ac_var in #( 2284 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2285printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2286 esac 2287 case $ac_var in #( 2288 _ | IFS | as_nl) ;; #( 2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2290 *) { eval $ac_var=; unset $ac_var;} ;; 2291 esac ;; 2292 esac 2293 done 2294 (set) 2>&1 | 2295 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2296 *${as_nl}ac_space=\ *) 2297 sed -n \ 2298 "s/'\''/'\''\\\\'\'''\''/g; 2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2300 ;; #( 2301 *) 2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2303 ;; 2304 esac | 2305 sort 2306) 2307 echo 2308 2309 printf "%s\n" "## ----------------- ## 2310## Output variables. ## 2311## ----------------- ##" 2312 echo 2313 for ac_var in $ac_subst_vars 2314 do 2315 eval ac_val=\$$ac_var 2316 case $ac_val in 2317 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2318 esac 2319 printf "%s\n" "$ac_var='\''$ac_val'\''" 2320 done | sort 2321 echo 2322 2323 if test -n "$ac_subst_files"; then 2324 printf "%s\n" "## ------------------- ## 2325## File substitutions. ## 2326## ------------------- ##" 2327 echo 2328 for ac_var in $ac_subst_files 2329 do 2330 eval ac_val=\$$ac_var 2331 case $ac_val in 2332 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2333 esac 2334 printf "%s\n" "$ac_var='\''$ac_val'\''" 2335 done | sort 2336 echo 2337 fi 2338 2339 if test -s confdefs.h; then 2340 printf "%s\n" "## ----------- ## 2341## confdefs.h. ## 2342## ----------- ##" 2343 echo 2344 cat confdefs.h 2345 echo 2346 fi 2347 test "$ac_signal" != 0 && 2348 printf "%s\n" "$as_me: caught signal $ac_signal" 2349 printf "%s\n" "$as_me: exit $exit_status" 2350 } >&5 2351 rm -f core *.core core.conftest.* && 2352 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2353 exit $exit_status 2354' 0 2355for ac_signal in 1 2 13 15; do 2356 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2357done 2358ac_signal=0 2359 2360# confdefs.h avoids OS command line length limits that DEFS can exceed. 2361rm -f -r conftest* confdefs.h 2362 2363printf "%s\n" "/* confdefs.h */" > confdefs.h 2364 2365# Predefined preprocessor variables. 2366 2367printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2368 2369printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2370 2371printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2372 2373printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2374 2375printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2376 2377printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2378 2379 2380# Let the site file select an alternate cache file if it wants to. 2381# Prefer an explicitly selected file to automatically selected ones. 2382if test -n "$CONFIG_SITE"; then 2383 ac_site_files="$CONFIG_SITE" 2384elif test "x$prefix" != xNONE; then 2385 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2386else 2387 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2388fi 2389 2390for ac_site_file in $ac_site_files 2391do 2392 case $ac_site_file in #( 2393 */*) : 2394 ;; #( 2395 *) : 2396 ac_site_file=./$ac_site_file ;; 2397esac 2398 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2400printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2401 sed 's/^/| /' "$ac_site_file" >&5 2402 . "$ac_site_file" \ 2403 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2404printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2405as_fn_error $? "failed to load site script $ac_site_file 2406See 'config.log' for more details" "$LINENO" 5; } 2407 fi 2408done 2409 2410if test -r "$cache_file"; then 2411 # Some versions of bash will fail to source /dev/null (special files 2412 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2413 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2415printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2416 case $cache_file in 2417 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2418 *) . "./$cache_file";; 2419 esac 2420 fi 2421else 2422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2423printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2424 >$cache_file 2425fi 2426 2427# Test code for whether the C compiler supports C89 (global declarations) 2428ac_c_conftest_c89_globals=' 2429/* Does the compiler advertise C89 conformance? 2430 Do not test the value of __STDC__, because some compilers set it to 0 2431 while being otherwise adequately conformant. */ 2432#if !defined __STDC__ 2433# error "Compiler does not advertise C89 conformance" 2434#endif 2435 2436#include <stddef.h> 2437#include <stdarg.h> 2438struct stat; 2439/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2440struct buf { int x; }; 2441struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2442static char *e (char **p, int i) 2443{ 2444 return p[i]; 2445} 2446static char *f (char * (*g) (char **, int), char **p, ...) 2447{ 2448 char *s; 2449 va_list v; 2450 va_start (v,p); 2451 s = g (p, va_arg (v,int)); 2452 va_end (v); 2453 return s; 2454} 2455 2456/* C89 style stringification. */ 2457#define noexpand_stringify(a) #a 2458const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2459 2460/* C89 style token pasting. Exercises some of the corner cases that 2461 e.g. old MSVC gets wrong, but not very hard. */ 2462#define noexpand_concat(a,b) a##b 2463#define expand_concat(a,b) noexpand_concat(a,b) 2464extern int vA; 2465extern int vbee; 2466#define aye A 2467#define bee B 2468int *pvA = &expand_concat(v,aye); 2469int *pvbee = &noexpand_concat(v,bee); 2470 2471/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2472 function prototypes and stuff, but not \xHH hex character constants. 2473 These do not provoke an error unfortunately, instead are silently treated 2474 as an "x". The following induces an error, until -std is added to get 2475 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2476 array size at least. It is necessary to write \x00 == 0 to get something 2477 that is true only with -std. */ 2478int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2479 2480/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2481 inside strings and character constants. */ 2482#define FOO(x) '\''x'\'' 2483int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2484 2485int test (int i, double x); 2486struct s1 {int (*f) (int a);}; 2487struct s2 {int (*f) (double a);}; 2488int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2489 int, int);' 2490 2491# Test code for whether the C compiler supports C89 (body of main). 2492ac_c_conftest_c89_main=' 2493ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2494' 2495 2496# Test code for whether the C compiler supports C99 (global declarations) 2497ac_c_conftest_c99_globals=' 2498/* Does the compiler advertise C99 conformance? */ 2499#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2500# error "Compiler does not advertise C99 conformance" 2501#endif 2502 2503// See if C++-style comments work. 2504 2505#include <stdbool.h> 2506extern int puts (const char *); 2507extern int printf (const char *, ...); 2508extern int dprintf (int, const char *, ...); 2509extern void *malloc (size_t); 2510extern void free (void *); 2511 2512// Check varargs macros. These examples are taken from C99 6.10.3.5. 2513// dprintf is used instead of fprintf to avoid needing to declare 2514// FILE and stderr. 2515#define debug(...) dprintf (2, __VA_ARGS__) 2516#define showlist(...) puts (#__VA_ARGS__) 2517#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2518static void 2519test_varargs_macros (void) 2520{ 2521 int x = 1234; 2522 int y = 5678; 2523 debug ("Flag"); 2524 debug ("X = %d\n", x); 2525 showlist (The first, second, and third items.); 2526 report (x>y, "x is %d but y is %d", x, y); 2527} 2528 2529// Check long long types. 2530#define BIG64 18446744073709551615ull 2531#define BIG32 4294967295ul 2532#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2533#if !BIG_OK 2534 #error "your preprocessor is broken" 2535#endif 2536#if BIG_OK 2537#else 2538 #error "your preprocessor is broken" 2539#endif 2540static long long int bignum = -9223372036854775807LL; 2541static unsigned long long int ubignum = BIG64; 2542 2543struct incomplete_array 2544{ 2545 int datasize; 2546 double data[]; 2547}; 2548 2549struct named_init { 2550 int number; 2551 const wchar_t *name; 2552 double average; 2553}; 2554 2555typedef const char *ccp; 2556 2557static inline int 2558test_restrict (ccp restrict text) 2559{ 2560 // Iterate through items via the restricted pointer. 2561 // Also check for declarations in for loops. 2562 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2563 continue; 2564 return 0; 2565} 2566 2567// Check varargs and va_copy. 2568static bool 2569test_varargs (const char *format, ...) 2570{ 2571 va_list args; 2572 va_start (args, format); 2573 va_list args_copy; 2574 va_copy (args_copy, args); 2575 2576 const char *str = ""; 2577 int number = 0; 2578 float fnumber = 0; 2579 2580 while (*format) 2581 { 2582 switch (*format++) 2583 { 2584 case '\''s'\'': // string 2585 str = va_arg (args_copy, const char *); 2586 break; 2587 case '\''d'\'': // int 2588 number = va_arg (args_copy, int); 2589 break; 2590 case '\''f'\'': // float 2591 fnumber = va_arg (args_copy, double); 2592 break; 2593 default: 2594 break; 2595 } 2596 } 2597 va_end (args_copy); 2598 va_end (args); 2599 2600 return *str && number && fnumber; 2601} 2602' 2603 2604# Test code for whether the C compiler supports C99 (body of main). 2605ac_c_conftest_c99_main=' 2606 // Check bool. 2607 _Bool success = false; 2608 success |= (argc != 0); 2609 2610 // Check restrict. 2611 if (test_restrict ("String literal") == 0) 2612 success = true; 2613 char *restrict newvar = "Another string"; 2614 2615 // Check varargs. 2616 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2617 test_varargs_macros (); 2618 2619 // Check flexible array members. 2620 struct incomplete_array *ia = 2621 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2622 ia->datasize = 10; 2623 for (int i = 0; i < ia->datasize; ++i) 2624 ia->data[i] = i * 1.234; 2625 // Work around memory leak warnings. 2626 free (ia); 2627 2628 // Check named initializers. 2629 struct named_init ni = { 2630 .number = 34, 2631 .name = L"Test wide string", 2632 .average = 543.34343, 2633 }; 2634 2635 ni.number = 58; 2636 2637 int dynamic_array[ni.number]; 2638 dynamic_array[0] = argv[0][0]; 2639 dynamic_array[ni.number - 1] = 543; 2640 2641 // work around unused variable warnings 2642 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2643 || dynamic_array[ni.number - 1] != 543); 2644' 2645 2646# Test code for whether the C compiler supports C11 (global declarations) 2647ac_c_conftest_c11_globals=' 2648/* Does the compiler advertise C11 conformance? */ 2649#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2650# error "Compiler does not advertise C11 conformance" 2651#endif 2652 2653// Check _Alignas. 2654char _Alignas (double) aligned_as_double; 2655char _Alignas (0) no_special_alignment; 2656extern char aligned_as_int; 2657char _Alignas (0) _Alignas (int) aligned_as_int; 2658 2659// Check _Alignof. 2660enum 2661{ 2662 int_alignment = _Alignof (int), 2663 int_array_alignment = _Alignof (int[100]), 2664 char_alignment = _Alignof (char) 2665}; 2666_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2667 2668// Check _Noreturn. 2669int _Noreturn does_not_return (void) { for (;;) continue; } 2670 2671// Check _Static_assert. 2672struct test_static_assert 2673{ 2674 int x; 2675 _Static_assert (sizeof (int) <= sizeof (long int), 2676 "_Static_assert does not work in struct"); 2677 long int y; 2678}; 2679 2680// Check UTF-8 literals. 2681#define u8 syntax error! 2682char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2683 2684// Check duplicate typedefs. 2685typedef long *long_ptr; 2686typedef long int *long_ptr; 2687typedef long_ptr long_ptr; 2688 2689// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2690struct anonymous 2691{ 2692 union { 2693 struct { int i; int j; }; 2694 struct { int k; long int l; } w; 2695 }; 2696 int m; 2697} v1; 2698' 2699 2700# Test code for whether the C compiler supports C11 (body of main). 2701ac_c_conftest_c11_main=' 2702 _Static_assert ((offsetof (struct anonymous, i) 2703 == offsetof (struct anonymous, w.k)), 2704 "Anonymous union alignment botch"); 2705 v1.i = 2; 2706 v1.w.k = 5; 2707 ok |= v1.i != 5; 2708' 2709 2710# Test code for whether the C compiler supports C11 (complete). 2711ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2712${ac_c_conftest_c99_globals} 2713${ac_c_conftest_c11_globals} 2714 2715int 2716main (int argc, char **argv) 2717{ 2718 int ok = 0; 2719 ${ac_c_conftest_c89_main} 2720 ${ac_c_conftest_c99_main} 2721 ${ac_c_conftest_c11_main} 2722 return ok; 2723} 2724" 2725 2726# Test code for whether the C compiler supports C99 (complete). 2727ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2728${ac_c_conftest_c99_globals} 2729 2730int 2731main (int argc, char **argv) 2732{ 2733 int ok = 0; 2734 ${ac_c_conftest_c89_main} 2735 ${ac_c_conftest_c99_main} 2736 return ok; 2737} 2738" 2739 2740# Test code for whether the C compiler supports C89 (complete). 2741ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2742 2743int 2744main (int argc, char **argv) 2745{ 2746 int ok = 0; 2747 ${ac_c_conftest_c89_main} 2748 return ok; 2749} 2750" 2751 2752as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2753as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2754as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2755as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2756as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2757as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2758as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2759as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2760as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2761as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2762as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2763as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2764as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2765as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2766as_fn_append ac_func_c_list " fork HAVE_FORK" 2767as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2768 2769# Auxiliary files required by this configure script. 2770ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh" 2771 2772# Locations in which to look for auxiliary files. 2773ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2774 2775# Search for a directory containing all of the required auxiliary files, 2776# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2777# If we don't find one directory that contains all the files we need, 2778# we report the set of missing files from the *first* directory in 2779# $ac_aux_dir_candidates and give up. 2780ac_missing_aux_files="" 2781ac_first_candidate=: 2782printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2784as_found=false 2785for as_dir in $ac_aux_dir_candidates 2786do 2787 IFS=$as_save_IFS 2788 case $as_dir in #((( 2789 '') as_dir=./ ;; 2790 */) ;; 2791 *) as_dir=$as_dir/ ;; 2792 esac 2793 as_found=: 2794 2795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2796 ac_aux_dir_found=yes 2797 ac_install_sh= 2798 for ac_aux in $ac_aux_files 2799 do 2800 # As a special case, if "install-sh" is required, that requirement 2801 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2802 # and $ac_install_sh is set appropriately for whichever one is found. 2803 if test x"$ac_aux" = x"install-sh" 2804 then 2805 if test -f "${as_dir}install-sh"; then 2806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2807 ac_install_sh="${as_dir}install-sh -c" 2808 elif test -f "${as_dir}install.sh"; then 2809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2810 ac_install_sh="${as_dir}install.sh -c" 2811 elif test -f "${as_dir}shtool"; then 2812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2813 ac_install_sh="${as_dir}shtool install -c" 2814 else 2815 ac_aux_dir_found=no 2816 if $ac_first_candidate; then 2817 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2818 else 2819 break 2820 fi 2821 fi 2822 else 2823 if test -f "${as_dir}${ac_aux}"; then 2824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2825 else 2826 ac_aux_dir_found=no 2827 if $ac_first_candidate; then 2828 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2829 else 2830 break 2831 fi 2832 fi 2833 fi 2834 done 2835 if test "$ac_aux_dir_found" = yes; then 2836 ac_aux_dir="$as_dir" 2837 break 2838 fi 2839 ac_first_candidate=false 2840 2841 as_found=false 2842done 2843IFS=$as_save_IFS 2844if $as_found 2845then : 2846 2847else case e in #( 2848 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2849esac 2850fi 2851 2852 2853# These three variables are undocumented and unsupported, 2854# and are intended to be withdrawn in a future Autoconf release. 2855# They can cause serious problems if a builder's source tree is in a directory 2856# whose full name contains unusual characters. 2857if test -f "${ac_aux_dir}config.guess"; then 2858 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2859fi 2860if test -f "${ac_aux_dir}config.sub"; then 2861 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2862fi 2863if test -f "$ac_aux_dir/configure"; then 2864 ac_configure="$SHELL ${ac_aux_dir}configure" 2865fi 2866 2867# Check that the precious variables saved in the cache have kept the same 2868# value. 2869ac_cache_corrupted=false 2870for ac_var in $ac_precious_vars; do 2871 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2872 eval ac_new_set=\$ac_env_${ac_var}_set 2873 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2874 eval ac_new_val=\$ac_env_${ac_var}_value 2875 case $ac_old_set,$ac_new_set in 2876 set,) 2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2878printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2879 ac_cache_corrupted=: ;; 2880 ,set) 2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2882printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2883 ac_cache_corrupted=: ;; 2884 ,);; 2885 *) 2886 if test "x$ac_old_val" != "x$ac_new_val"; then 2887 # differences in whitespace do not lead to failure. 2888 ac_old_val_w=`echo x $ac_old_val` 2889 ac_new_val_w=`echo x $ac_new_val` 2890 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2892printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2893 ac_cache_corrupted=: 2894 else 2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2896printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2897 eval $ac_var=\$ac_old_val 2898 fi 2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2900printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2902printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2903 fi;; 2904 esac 2905 # Pass precious variables to config.status. 2906 if test "$ac_new_set" = set; then 2907 case $ac_new_val in 2908 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2909 *) ac_arg=$ac_var=$ac_new_val ;; 2910 esac 2911 case " $ac_configure_args " in 2912 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2913 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2914 esac 2915 fi 2916done 2917if $ac_cache_corrupted; then 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2919printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2921printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2922 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2923 and start over" "$LINENO" 5 2924fi 2925## -------------------- ## 2926## Main body of script. ## 2927## -------------------- ## 2928 2929ac_ext=c 2930ac_cpp='$CPP $CPPFLAGS' 2931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2933ac_compiler_gnu=$ac_cv_c_compiler_gnu 2934 2935 2936am__api_version='1.16' 2937 2938 2939 2940 # Find a good install program. We prefer a C program (faster), 2941# so one script is as good as another. But avoid the broken or 2942# incompatible versions: 2943# SysV /etc/install, /usr/sbin/install 2944# SunOS /usr/etc/install 2945# IRIX /sbin/install 2946# AIX /bin/install 2947# AmigaOS /C/install, which installs bootblocks on floppy discs 2948# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2949# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2950# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2951# OS/2's system install, which has a completely different semantic 2952# ./install, which can be erroneously created by make from ./install.sh. 2953# Reject install programs that cannot install multiple files. 2954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2955printf %s "checking for a BSD-compatible install... " >&6; } 2956if test -z "$INSTALL"; then 2957if test ${ac_cv_path_install+y} 2958then : 2959 printf %s "(cached) " >&6 2960else case e in #( 2961 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2962for as_dir in $PATH 2963do 2964 IFS=$as_save_IFS 2965 case $as_dir in #((( 2966 '') as_dir=./ ;; 2967 */) ;; 2968 *) as_dir=$as_dir/ ;; 2969 esac 2970 # Account for fact that we put trailing slashes in our PATH walk. 2971case $as_dir in #(( 2972 ./ | /[cC]/* | \ 2973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2974 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2975 /usr/ucb/* ) ;; 2976 *) 2977 # OSF1 and SCO ODT 3.0 have their own names for install. 2978 # Don't use installbsd from OSF since it installs stuff as root 2979 # by default. 2980 for ac_prog in ginstall scoinst install; do 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2983 if test $ac_prog = install && 2984 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2985 # AIX install. It has an incompatible calling convention. 2986 : 2987 elif test $ac_prog = install && 2988 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2989 # program-specific install script used by HP pwplus--don't use. 2990 : 2991 else 2992 rm -rf conftest.one conftest.two conftest.dir 2993 echo one > conftest.one 2994 echo two > conftest.two 2995 mkdir conftest.dir 2996 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2997 test -s conftest.one && test -s conftest.two && 2998 test -s conftest.dir/conftest.one && 2999 test -s conftest.dir/conftest.two 3000 then 3001 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3002 break 3 3003 fi 3004 fi 3005 fi 3006 done 3007 done 3008 ;; 3009esac 3010 3011 done 3012IFS=$as_save_IFS 3013 3014rm -rf conftest.one conftest.two conftest.dir 3015 ;; 3016esac 3017fi 3018 if test ${ac_cv_path_install+y}; then 3019 INSTALL=$ac_cv_path_install 3020 else 3021 # As a last resort, use the slow shell script. Don't cache a 3022 # value for INSTALL within a source directory, because that will 3023 # break other packages using the cache if that directory is 3024 # removed, or if the value is a relative name. 3025 INSTALL=$ac_install_sh 3026 fi 3027fi 3028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3029printf "%s\n" "$INSTALL" >&6; } 3030 3031# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3032# It thinks the first close brace ends the variable substitution. 3033test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3034 3035test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3036 3037test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3038 3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3040printf %s "checking whether build environment is sane... " >&6; } 3041# Reject unsafe characters in $srcdir or the absolute working directory 3042# name. Accept space and tab only in the latter. 3043am_lf=' 3044' 3045case `pwd` in 3046 *[\\\"\#\$\&\'\`$am_lf]*) 3047 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3048esac 3049case $srcdir in 3050 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3051 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3052esac 3053 3054# Do 'set' in a subshell so we don't clobber the current shell's 3055# arguments. Must try -L first in case configure is actually a 3056# symlink; some systems play weird games with the mod time of symlinks 3057# (eg FreeBSD returns the mod time of the symlink's containing 3058# directory). 3059if ( 3060 am_has_slept=no 3061 for am_try in 1 2; do 3062 echo "timestamp, slept: $am_has_slept" > conftest.file 3063 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3064 if test "$*" = "X"; then 3065 # -L didn't work. 3066 set X `ls -t "$srcdir/configure" conftest.file` 3067 fi 3068 if test "$*" != "X $srcdir/configure conftest.file" \ 3069 && test "$*" != "X conftest.file $srcdir/configure"; then 3070 3071 # If neither matched, then we have a broken ls. This can happen 3072 # if, for instance, CONFIG_SHELL is bash and it inherits a 3073 # broken ls alias from the environment. This has actually 3074 # happened. Such a system could not be considered "sane". 3075 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3076 alias in your environment" "$LINENO" 5 3077 fi 3078 if test "$2" = conftest.file || test $am_try -eq 2; then 3079 break 3080 fi 3081 # Just in case. 3082 sleep 1 3083 am_has_slept=yes 3084 done 3085 test "$2" = conftest.file 3086 ) 3087then 3088 # Ok. 3089 : 3090else 3091 as_fn_error $? "newly created file is older than distributed files! 3092Check your system clock" "$LINENO" 5 3093fi 3094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3095printf "%s\n" "yes" >&6; } 3096# If we didn't sleep, we still need to ensure time stamps of config.status and 3097# generated files are strictly newer. 3098am_sleep_pid= 3099if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3100 ( sleep 1 ) & 3101 am_sleep_pid=$! 3102fi 3103 3104rm -f conftest.file 3105 3106test "$program_prefix" != NONE && 3107 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3108# Use a double $ so make ignores it. 3109test "$program_suffix" != NONE && 3110 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3111# Double any \ or $. 3112# By default was 's,x,x', remove it if useless. 3113ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3114program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3115 3116 3117# Expand $ac_aux_dir to an absolute path. 3118am_aux_dir=`cd "$ac_aux_dir" && pwd` 3119 3120 3121 if test x"${MISSING+set}" != xset; then 3122 MISSING="\${SHELL} '$am_aux_dir/missing'" 3123fi 3124# Use eval to expand $SHELL 3125if eval "$MISSING --is-lightweight"; then 3126 am_missing_run="$MISSING " 3127else 3128 am_missing_run= 3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3130printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3131fi 3132 3133if test x"${install_sh+set}" != xset; then 3134 case $am_aux_dir in 3135 *\ * | *\ *) 3136 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3137 *) 3138 install_sh="\${SHELL} $am_aux_dir/install-sh" 3139 esac 3140fi 3141 3142# Installed binaries are usually stripped using 'strip' when the user 3143# run "make install-strip". However 'strip' might not be the right 3144# tool to use in cross-compilation environments, therefore Automake 3145# will honor the 'STRIP' environment variable to overrule this program. 3146if test "$cross_compiling" != no; then 3147 if test -n "$ac_tool_prefix"; then 3148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3149set dummy ${ac_tool_prefix}strip; ac_word=$2 3150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3151printf %s "checking for $ac_word... " >&6; } 3152if test ${ac_cv_prog_STRIP+y} 3153then : 3154 printf %s "(cached) " >&6 3155else case e in #( 3156 e) if test -n "$STRIP"; then 3157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3158else 3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3160for as_dir in $PATH 3161do 3162 IFS=$as_save_IFS 3163 case $as_dir in #((( 3164 '') as_dir=./ ;; 3165 */) ;; 3166 *) as_dir=$as_dir/ ;; 3167 esac 3168 for ac_exec_ext in '' $ac_executable_extensions; do 3169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3170 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3172 break 2 3173 fi 3174done 3175 done 3176IFS=$as_save_IFS 3177 3178fi ;; 3179esac 3180fi 3181STRIP=$ac_cv_prog_STRIP 3182if test -n "$STRIP"; then 3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3184printf "%s\n" "$STRIP" >&6; } 3185else 3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187printf "%s\n" "no" >&6; } 3188fi 3189 3190 3191fi 3192if test -z "$ac_cv_prog_STRIP"; then 3193 ac_ct_STRIP=$STRIP 3194 # Extract the first word of "strip", so it can be a program name with args. 3195set dummy strip; ac_word=$2 3196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197printf %s "checking for $ac_word... " >&6; } 3198if test ${ac_cv_prog_ac_ct_STRIP+y} 3199then : 3200 printf %s "(cached) " >&6 3201else case e in #( 3202 e) if test -n "$ac_ct_STRIP"; then 3203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3204else 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH 3207do 3208 IFS=$as_save_IFS 3209 case $as_dir in #((( 3210 '') as_dir=./ ;; 3211 */) ;; 3212 *) as_dir=$as_dir/ ;; 3213 esac 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3216 ac_cv_prog_ac_ct_STRIP="strip" 3217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3218 break 2 3219 fi 3220done 3221 done 3222IFS=$as_save_IFS 3223 3224fi ;; 3225esac 3226fi 3227ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3228if test -n "$ac_ct_STRIP"; then 3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3230printf "%s\n" "$ac_ct_STRIP" >&6; } 3231else 3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3233printf "%s\n" "no" >&6; } 3234fi 3235 3236 if test "x$ac_ct_STRIP" = x; then 3237 STRIP=":" 3238 else 3239 case $cross_compiling:$ac_tool_warned in 3240yes:) 3241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3242printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3243ac_tool_warned=yes ;; 3244esac 3245 STRIP=$ac_ct_STRIP 3246 fi 3247else 3248 STRIP="$ac_cv_prog_STRIP" 3249fi 3250 3251fi 3252INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3253 3254 3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3256printf %s "checking for a race-free mkdir -p... " >&6; } 3257if test -z "$MKDIR_P"; then 3258 if test ${ac_cv_path_mkdir+y} 3259then : 3260 printf %s "(cached) " >&6 3261else case e in #( 3262 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3263for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3264do 3265 IFS=$as_save_IFS 3266 case $as_dir in #((( 3267 '') as_dir=./ ;; 3268 */) ;; 3269 *) as_dir=$as_dir/ ;; 3270 esac 3271 for ac_prog in mkdir gmkdir; do 3272 for ac_exec_ext in '' $ac_executable_extensions; do 3273 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3274 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3275 'mkdir ('*'coreutils) '* | \ 3276 *'BusyBox '* | \ 3277 'mkdir (fileutils) '4.1*) 3278 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3279 break 3;; 3280 esac 3281 done 3282 done 3283 done 3284IFS=$as_save_IFS 3285 ;; 3286esac 3287fi 3288 3289 test -d ./--version && rmdir ./--version 3290 if test ${ac_cv_path_mkdir+y}; then 3291 MKDIR_P="$ac_cv_path_mkdir -p" 3292 else 3293 # As a last resort, use plain mkdir -p, 3294 # in the hope it doesn't have the bugs of ancient mkdir. 3295 MKDIR_P='mkdir -p' 3296 fi 3297fi 3298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3299printf "%s\n" "$MKDIR_P" >&6; } 3300 3301for ac_prog in gawk mawk nawk awk 3302do 3303 # Extract the first word of "$ac_prog", so it can be a program name with args. 3304set dummy $ac_prog; ac_word=$2 3305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3306printf %s "checking for $ac_word... " >&6; } 3307if test ${ac_cv_prog_AWK+y} 3308then : 3309 printf %s "(cached) " >&6 3310else case e in #( 3311 e) if test -n "$AWK"; then 3312 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3313else 3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH 3316do 3317 IFS=$as_save_IFS 3318 case $as_dir in #((( 3319 '') as_dir=./ ;; 3320 */) ;; 3321 *) as_dir=$as_dir/ ;; 3322 esac 3323 for ac_exec_ext in '' $ac_executable_extensions; do 3324 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3325 ac_cv_prog_AWK="$ac_prog" 3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3327 break 2 3328 fi 3329done 3330 done 3331IFS=$as_save_IFS 3332 3333fi ;; 3334esac 3335fi 3336AWK=$ac_cv_prog_AWK 3337if test -n "$AWK"; then 3338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3339printf "%s\n" "$AWK" >&6; } 3340else 3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3342printf "%s\n" "no" >&6; } 3343fi 3344 3345 3346 test -n "$AWK" && break 3347done 3348 3349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3350printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3351set x ${MAKE-make} 3352ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3353if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3354then : 3355 printf %s "(cached) " >&6 3356else case e in #( 3357 e) cat >conftest.make <<\_ACEOF 3358SHELL = /bin/sh 3359all: 3360 @echo '@@@%%%=$(MAKE)=@@@%%%' 3361_ACEOF 3362# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3363case `${MAKE-make} -f conftest.make 2>/dev/null` in 3364 *@@@%%%=?*=@@@%%%*) 3365 eval ac_cv_prog_make_${ac_make}_set=yes;; 3366 *) 3367 eval ac_cv_prog_make_${ac_make}_set=no;; 3368esac 3369rm -f conftest.make ;; 3370esac 3371fi 3372if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3374printf "%s\n" "yes" >&6; } 3375 SET_MAKE= 3376else 3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378printf "%s\n" "no" >&6; } 3379 SET_MAKE="MAKE=${MAKE-make}" 3380fi 3381 3382rm -rf .tst 2>/dev/null 3383mkdir .tst 2>/dev/null 3384if test -d .tst; then 3385 am__leading_dot=. 3386else 3387 am__leading_dot=_ 3388fi 3389rmdir .tst 2>/dev/null 3390 3391# Check whether --enable-silent-rules was given. 3392if test ${enable_silent_rules+y} 3393then : 3394 enableval=$enable_silent_rules; 3395fi 3396 3397case $enable_silent_rules in # ((( 3398 yes) AM_DEFAULT_VERBOSITY=0;; 3399 no) AM_DEFAULT_VERBOSITY=1;; 3400 *) AM_DEFAULT_VERBOSITY=1;; 3401esac 3402am_make=${MAKE-make} 3403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3404printf %s "checking whether $am_make supports nested variables... " >&6; } 3405if test ${am_cv_make_support_nested_variables+y} 3406then : 3407 printf %s "(cached) " >&6 3408else case e in #( 3409 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3410BAR0=false 3411BAR1=true 3412V=1 3413am__doit: 3414 @$(TRUE) 3415.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3416 am_cv_make_support_nested_variables=yes 3417else 3418 am_cv_make_support_nested_variables=no 3419fi ;; 3420esac 3421fi 3422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3423printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3424if test $am_cv_make_support_nested_variables = yes; then 3425 AM_V='$(V)' 3426 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3427else 3428 AM_V=$AM_DEFAULT_VERBOSITY 3429 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3430fi 3431AM_BACKSLASH='\' 3432 3433if test "`cd $srcdir && pwd`" != "`pwd`"; then 3434 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3435 # is not polluted with repeated "-I." 3436 am__isrc=' -I$(srcdir)' 3437 # test to see if srcdir already configured 3438 if test -f $srcdir/config.status; then 3439 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3440 fi 3441fi 3442 3443# test whether we have cygpath 3444if test -z "$CYGPATH_W"; then 3445 if (cygpath --version) >/dev/null 2>/dev/null; then 3446 CYGPATH_W='cygpath -w' 3447 else 3448 CYGPATH_W=echo 3449 fi 3450fi 3451 3452 3453# Define the identity of the package. 3454 PACKAGE='file' 3455 VERSION='5.46' 3456 3457 3458printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3459 3460 3461printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3462 3463# Some tools Automake needs. 3464 3465ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3466 3467 3468AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3469 3470 3471AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3472 3473 3474AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3475 3476 3477MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3478 3479# For better backward compatibility. To be removed once Automake 1.9.x 3480# dies out for good. For more background, see: 3481# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3482# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3483mkdir_p='$(MKDIR_P)' 3484 3485# We need awk for the "check" target (and possibly the TAP driver). The 3486# system "awk" is bad on some platforms. 3487# Always define AMTAR for backward compatibility. Yes, it's still used 3488# in the wild :-( We should find a proper way to deprecate it ... 3489AMTAR='$${TAR-tar}' 3490 3491 3492# We'll loop over all known methods to create a tar archive until one works. 3493_am_tools='gnutar pax cpio none' 3494 3495am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3496 3497 3498 3499 3500 3501# Variables for tags utilities; see am/tags.am 3502if test -z "$CTAGS"; then 3503 CTAGS=ctags 3504fi 3505 3506if test -z "$ETAGS"; then 3507 ETAGS=etags 3508fi 3509 3510if test -z "$CSCOPE"; then 3511 CSCOPE=cscope 3512fi 3513 3514 3515 3516# POSIX will say in a future version that running "rm -f" with no argument 3517# is OK; and we want to be able to make that assumption in our Makefile 3518# recipes. So use an aggressive probe to check that the usage we want is 3519# actually supported "in the wild" to an acceptable degree. 3520# See automake bug#10828. 3521# To make any issue more visible, cause the running configure to be aborted 3522# by default if the 'rm' program in use doesn't match our expectations; the 3523# user can still override this though. 3524if rm -f && rm -fr && rm -rf; then : OK; else 3525 cat >&2 <<'END' 3526Oops! 3527 3528Your 'rm' program seems unable to run without file operands specified 3529on the command line, even when the '-f' option is present. This is contrary 3530to the behaviour of most rm programs out there, and not conforming with 3531the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3532 3533Please tell bug-automake@gnu.org about your system, including the value 3534of your $PATH and any error possibly output before this message. This 3535can help us improve future automake versions. 3536 3537END 3538 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3539 echo 'Configuration will proceed anyway, since you have set the' >&2 3540 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3541 echo >&2 3542 else 3543 cat >&2 <<'END' 3544Aborting the configuration process, to ensure you take notice of the issue. 3545 3546You can download and install GNU coreutils to get an 'rm' implementation 3547that behaves properly: <https://www.gnu.org/software/coreutils/>. 3548 3549If you want to complete the configuration process using your problematic 3550'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3551to "yes", and re-run configure. 3552 3553END 3554 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3555 fi 3556fi 3557 3558# Check whether --enable-silent-rules was given. 3559if test ${enable_silent_rules+y} 3560then : 3561 enableval=$enable_silent_rules; 3562fi 3563 3564case $enable_silent_rules in # ((( 3565 yes) AM_DEFAULT_VERBOSITY=0;; 3566 no) AM_DEFAULT_VERBOSITY=1;; 3567 *) AM_DEFAULT_VERBOSITY=0;; 3568esac 3569am_make=${MAKE-make} 3570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3571printf %s "checking whether $am_make supports nested variables... " >&6; } 3572if test ${am_cv_make_support_nested_variables+y} 3573then : 3574 printf %s "(cached) " >&6 3575else case e in #( 3576 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3577BAR0=false 3578BAR1=true 3579V=1 3580am__doit: 3581 @$(TRUE) 3582.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3583 am_cv_make_support_nested_variables=yes 3584else 3585 am_cv_make_support_nested_variables=no 3586fi ;; 3587esac 3588fi 3589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3590printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3591if test $am_cv_make_support_nested_variables = yes; then 3592 AM_V='$(V)' 3593 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3594else 3595 AM_V=$AM_DEFAULT_VERBOSITY 3596 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3597fi 3598AM_BACKSLASH='\' 3599 3600 3601ac_config_headers="$ac_config_headers config.h" 3602 3603 3604 3605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3606printf %s "checking for builtin ELF support... " >&6; } 3607# Check whether --enable-elf was given. 3608if test ${enable_elf+y} 3609then : 3610 enableval=$enable_elf; if test "${enableval}" = yes; then 3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3612printf "%s\n" "yes" >&6; } 3613 3614printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h 3615 3616else 3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3618printf "%s\n" "no" >&6; } 3619fi 3620else case e in #( 3621 e) 3622 # enable by default 3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3624printf "%s\n" "yes" >&6; } 3625 3626printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h 3627 3628 ;; 3629esac 3630fi 3631 3632 3633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3634printf %s "checking for ELF core file support... " >&6; } 3635# Check whether --enable-elf-core was given. 3636if test ${enable_elf_core+y} 3637then : 3638 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3640printf "%s\n" "yes" >&6; } 3641 3642printf "%s\n" "#define ELFCORE 1" >>confdefs.h 3643 3644else 3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3646printf "%s\n" "no" >&6; } 3647fi 3648else case e in #( 3649 e) 3650 # enable by default 3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3652printf "%s\n" "yes" >&6; } 3653 3654printf "%s\n" "#define ELFCORE 1" >>confdefs.h 3655 3656 ;; 3657esac 3658fi 3659 3660 3661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3662printf %s "checking for zlib support... " >&6; } 3663# Check whether --enable-zlib was given. 3664if test ${enable_zlib+y} 3665then : 3666 enableval=$enable_zlib; 3667fi 3668 3669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3670printf "%s\n" "$enable_zlib" >&6; } 3671 3672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5 3673printf %s "checking for bzlib support... " >&6; } 3674# Check whether --enable-bzlib was given. 3675if test ${enable_bzlib+y} 3676then : 3677 enableval=$enable_bzlib; 3678fi 3679 3680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5 3681printf "%s\n" "$enable_bzlib" >&6; } 3682 3683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5 3684printf %s "checking for xzlib support... " >&6; } 3685# Check whether --enable-xzlib was given. 3686if test ${enable_xzlib+y} 3687then : 3688 enableval=$enable_xzlib; 3689fi 3690 3691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5 3692printf "%s\n" "$enable_xzlib" >&6; } 3693 3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zstdlib support" >&5 3695printf %s "checking for zstdlib support... " >&6; } 3696# Check whether --enable-zstdlib was given. 3697if test ${enable_zstdlib+y} 3698then : 3699 enableval=$enable_zstdlib; 3700fi 3701 3702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zstdlib" >&5 3703printf "%s\n" "$enable_zstdlib" >&6; } 3704 3705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzlib support" >&5 3706printf %s "checking for lzlib support... " >&6; } 3707# Check whether --enable-lzlib was given. 3708if test ${enable_lzlib+y} 3709then : 3710 enableval=$enable_lzlib; 3711fi 3712 3713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lzlib" >&5 3714printf "%s\n" "$enable_lzlib" >&6; } 3715 3716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lrziplib support" >&5 3717printf %s "checking for lrziplib support... " >&6; } 3718# Check whether --enable-lrziplib was given. 3719if test ${enable_lrziplib+y} 3720then : 3721 enableval=$enable_lrziplib; 3722fi 3723 3724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lrziplib" >&5 3725printf "%s\n" "$enable_lrziplib" >&6; } 3726 3727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5 3728printf %s "checking for libseccomp support... " >&6; } 3729# Check whether --enable-libseccomp was given. 3730if test ${enable_libseccomp+y} 3731then : 3732 enableval=$enable_libseccomp; 3733fi 3734 3735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5 3736printf "%s\n" "$enable_libseccomp" >&6; } 3737 3738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3739printf %s "checking for file formats in man section 5... " >&6; } 3740# Check whether --enable-fsect-man5 was given. 3741if test ${enable_fsect_man5+y} 3742then : 3743 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3745printf "%s\n" "yes" >&6; } 3746 fsect=5 3747else 3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749printf "%s\n" "no" >&6; } 3750 fsect=4 3751fi 3752else case e in #( 3753 e) 3754 # disable by default 3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3756printf "%s\n" "no" >&6; } 3757 fsect=4 3758 ;; 3759esac 3760fi 3761 3762 3763 3764 3765 # Make sure we can run config.sub. 3766$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3767 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3768 3769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3770printf %s "checking build system type... " >&6; } 3771if test ${ac_cv_build+y} 3772then : 3773 printf %s "(cached) " >&6 3774else case e in #( 3775 e) ac_build_alias=$build_alias 3776test "x$ac_build_alias" = x && 3777 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3778test "x$ac_build_alias" = x && 3779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3780ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3781 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3782 ;; 3783esac 3784fi 3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3786printf "%s\n" "$ac_cv_build" >&6; } 3787case $ac_cv_build in 3788*-*-*) ;; 3789*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3790esac 3791build=$ac_cv_build 3792ac_save_IFS=$IFS; IFS='-' 3793set x $ac_cv_build 3794shift 3795build_cpu=$1 3796build_vendor=$2 3797shift; shift 3798# Remember, the first character of IFS is used to create $*, 3799# except with old shells: 3800build_os=$* 3801IFS=$ac_save_IFS 3802case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3803 3804 3805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3806printf %s "checking host system type... " >&6; } 3807if test ${ac_cv_host+y} 3808then : 3809 printf %s "(cached) " >&6 3810else case e in #( 3811 e) if test "x$host_alias" = x; then 3812 ac_cv_host=$ac_cv_build 3813else 3814 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3815 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3816fi 3817 ;; 3818esac 3819fi 3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3821printf "%s\n" "$ac_cv_host" >&6; } 3822case $ac_cv_host in 3823*-*-*) ;; 3824*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3825esac 3826host=$ac_cv_host 3827ac_save_IFS=$IFS; IFS='-' 3828set x $ac_cv_host 3829shift 3830host_cpu=$1 3831host_vendor=$2 3832shift; shift 3833# Remember, the first character of IFS is used to create $*, 3834# except with old shells: 3835host_os=$* 3836IFS=$ac_save_IFS 3837case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3838 3839 3840case "$host_os" in 3841 mingw32*) 3842 MINGW=1 3843 ;; 3844 *) 3845 MINGW=0 3846 ;; 3847esac 3848 3849 if test "$MINGW" = 1; then 3850 MINGW_TRUE= 3851 MINGW_FALSE='#' 3852else 3853 MINGW_TRUE='#' 3854 MINGW_FALSE= 3855fi 3856 3857 3858pkgdatadir='$(datadir)/misc' 3859 3860 3861 if test x$fsect = x5; then 3862 FSECT5_TRUE= 3863 FSECT5_FALSE='#' 3864else 3865 FSECT5_TRUE='#' 3866 FSECT5_FALSE= 3867fi 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881ac_ext=c 3882ac_cpp='$CPP $CPPFLAGS' 3883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3885ac_compiler_gnu=$ac_cv_c_compiler_gnu 3886if test -n "$ac_tool_prefix"; then 3887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3888set dummy ${ac_tool_prefix}gcc; ac_word=$2 3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3890printf %s "checking for $ac_word... " >&6; } 3891if test ${ac_cv_prog_CC+y} 3892then : 3893 printf %s "(cached) " >&6 3894else case e in #( 3895 e) if test -n "$CC"; then 3896 ac_cv_prog_CC="$CC" # Let the user override the test. 3897else 3898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3899for as_dir in $PATH 3900do 3901 IFS=$as_save_IFS 3902 case $as_dir in #((( 3903 '') as_dir=./ ;; 3904 */) ;; 3905 *) as_dir=$as_dir/ ;; 3906 esac 3907 for ac_exec_ext in '' $ac_executable_extensions; do 3908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3909 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3911 break 2 3912 fi 3913done 3914 done 3915IFS=$as_save_IFS 3916 3917fi ;; 3918esac 3919fi 3920CC=$ac_cv_prog_CC 3921if test -n "$CC"; then 3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3923printf "%s\n" "$CC" >&6; } 3924else 3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3926printf "%s\n" "no" >&6; } 3927fi 3928 3929 3930fi 3931if test -z "$ac_cv_prog_CC"; then 3932 ac_ct_CC=$CC 3933 # Extract the first word of "gcc", so it can be a program name with args. 3934set dummy gcc; ac_word=$2 3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3936printf %s "checking for $ac_word... " >&6; } 3937if test ${ac_cv_prog_ac_ct_CC+y} 3938then : 3939 printf %s "(cached) " >&6 3940else case e in #( 3941 e) if test -n "$ac_ct_CC"; then 3942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3943else 3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3945for as_dir in $PATH 3946do 3947 IFS=$as_save_IFS 3948 case $as_dir in #((( 3949 '') as_dir=./ ;; 3950 */) ;; 3951 *) as_dir=$as_dir/ ;; 3952 esac 3953 for ac_exec_ext in '' $ac_executable_extensions; do 3954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3955 ac_cv_prog_ac_ct_CC="gcc" 3956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3957 break 2 3958 fi 3959done 3960 done 3961IFS=$as_save_IFS 3962 3963fi ;; 3964esac 3965fi 3966ac_ct_CC=$ac_cv_prog_ac_ct_CC 3967if test -n "$ac_ct_CC"; then 3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3969printf "%s\n" "$ac_ct_CC" >&6; } 3970else 3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3972printf "%s\n" "no" >&6; } 3973fi 3974 3975 if test "x$ac_ct_CC" = x; then 3976 CC="" 3977 else 3978 case $cross_compiling:$ac_tool_warned in 3979yes:) 3980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3981printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3982ac_tool_warned=yes ;; 3983esac 3984 CC=$ac_ct_CC 3985 fi 3986else 3987 CC="$ac_cv_prog_CC" 3988fi 3989 3990if test -z "$CC"; then 3991 if test -n "$ac_tool_prefix"; then 3992 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3993set dummy ${ac_tool_prefix}cc; ac_word=$2 3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3995printf %s "checking for $ac_word... " >&6; } 3996if test ${ac_cv_prog_CC+y} 3997then : 3998 printf %s "(cached) " >&6 3999else case e in #( 4000 e) if test -n "$CC"; then 4001 ac_cv_prog_CC="$CC" # Let the user override the test. 4002else 4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4004for as_dir in $PATH 4005do 4006 IFS=$as_save_IFS 4007 case $as_dir in #((( 4008 '') as_dir=./ ;; 4009 */) ;; 4010 *) as_dir=$as_dir/ ;; 4011 esac 4012 for ac_exec_ext in '' $ac_executable_extensions; do 4013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4014 ac_cv_prog_CC="${ac_tool_prefix}cc" 4015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4016 break 2 4017 fi 4018done 4019 done 4020IFS=$as_save_IFS 4021 4022fi ;; 4023esac 4024fi 4025CC=$ac_cv_prog_CC 4026if test -n "$CC"; then 4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4028printf "%s\n" "$CC" >&6; } 4029else 4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4031printf "%s\n" "no" >&6; } 4032fi 4033 4034 4035 fi 4036fi 4037if test -z "$CC"; then 4038 # Extract the first word of "cc", so it can be a program name with args. 4039set dummy cc; ac_word=$2 4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4041printf %s "checking for $ac_word... " >&6; } 4042if test ${ac_cv_prog_CC+y} 4043then : 4044 printf %s "(cached) " >&6 4045else case e in #( 4046 e) if test -n "$CC"; then 4047 ac_cv_prog_CC="$CC" # Let the user override the test. 4048else 4049 ac_prog_rejected=no 4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4051for as_dir in $PATH 4052do 4053 IFS=$as_save_IFS 4054 case $as_dir in #((( 4055 '') as_dir=./ ;; 4056 */) ;; 4057 *) as_dir=$as_dir/ ;; 4058 esac 4059 for ac_exec_ext in '' $ac_executable_extensions; do 4060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4061 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4062 ac_prog_rejected=yes 4063 continue 4064 fi 4065 ac_cv_prog_CC="cc" 4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4067 break 2 4068 fi 4069done 4070 done 4071IFS=$as_save_IFS 4072 4073if test $ac_prog_rejected = yes; then 4074 # We found a bogon in the path, so make sure we never use it. 4075 set dummy $ac_cv_prog_CC 4076 shift 4077 if test $# != 0; then 4078 # We chose a different compiler from the bogus one. 4079 # However, it has the same basename, so the bogon will be chosen 4080 # first if we set CC to just the basename; use the full file name. 4081 shift 4082 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4083 fi 4084fi 4085fi ;; 4086esac 4087fi 4088CC=$ac_cv_prog_CC 4089if test -n "$CC"; then 4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4091printf "%s\n" "$CC" >&6; } 4092else 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4094printf "%s\n" "no" >&6; } 4095fi 4096 4097 4098fi 4099if test -z "$CC"; then 4100 if test -n "$ac_tool_prefix"; then 4101 for ac_prog in cl.exe 4102 do 4103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4104set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4106printf %s "checking for $ac_word... " >&6; } 4107if test ${ac_cv_prog_CC+y} 4108then : 4109 printf %s "(cached) " >&6 4110else case e in #( 4111 e) if test -n "$CC"; then 4112 ac_cv_prog_CC="$CC" # Let the user override the test. 4113else 4114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4115for as_dir in $PATH 4116do 4117 IFS=$as_save_IFS 4118 case $as_dir in #((( 4119 '') as_dir=./ ;; 4120 */) ;; 4121 *) as_dir=$as_dir/ ;; 4122 esac 4123 for ac_exec_ext in '' $ac_executable_extensions; do 4124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4127 break 2 4128 fi 4129done 4130 done 4131IFS=$as_save_IFS 4132 4133fi ;; 4134esac 4135fi 4136CC=$ac_cv_prog_CC 4137if test -n "$CC"; then 4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4139printf "%s\n" "$CC" >&6; } 4140else 4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4142printf "%s\n" "no" >&6; } 4143fi 4144 4145 4146 test -n "$CC" && break 4147 done 4148fi 4149if test -z "$CC"; then 4150 ac_ct_CC=$CC 4151 for ac_prog in cl.exe 4152do 4153 # Extract the first word of "$ac_prog", so it can be a program name with args. 4154set dummy $ac_prog; ac_word=$2 4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4156printf %s "checking for $ac_word... " >&6; } 4157if test ${ac_cv_prog_ac_ct_CC+y} 4158then : 4159 printf %s "(cached) " >&6 4160else case e in #( 4161 e) if test -n "$ac_ct_CC"; then 4162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4163else 4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4165for as_dir in $PATH 4166do 4167 IFS=$as_save_IFS 4168 case $as_dir in #((( 4169 '') as_dir=./ ;; 4170 */) ;; 4171 *) as_dir=$as_dir/ ;; 4172 esac 4173 for ac_exec_ext in '' $ac_executable_extensions; do 4174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4175 ac_cv_prog_ac_ct_CC="$ac_prog" 4176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4177 break 2 4178 fi 4179done 4180 done 4181IFS=$as_save_IFS 4182 4183fi ;; 4184esac 4185fi 4186ac_ct_CC=$ac_cv_prog_ac_ct_CC 4187if test -n "$ac_ct_CC"; then 4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4189printf "%s\n" "$ac_ct_CC" >&6; } 4190else 4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4192printf "%s\n" "no" >&6; } 4193fi 4194 4195 4196 test -n "$ac_ct_CC" && break 4197done 4198 4199 if test "x$ac_ct_CC" = x; then 4200 CC="" 4201 else 4202 case $cross_compiling:$ac_tool_warned in 4203yes:) 4204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4206ac_tool_warned=yes ;; 4207esac 4208 CC=$ac_ct_CC 4209 fi 4210fi 4211 4212fi 4213if test -z "$CC"; then 4214 if test -n "$ac_tool_prefix"; then 4215 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4216set dummy ${ac_tool_prefix}clang; ac_word=$2 4217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4218printf %s "checking for $ac_word... " >&6; } 4219if test ${ac_cv_prog_CC+y} 4220then : 4221 printf %s "(cached) " >&6 4222else case e in #( 4223 e) if test -n "$CC"; then 4224 ac_cv_prog_CC="$CC" # Let the user override the test. 4225else 4226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4227for as_dir in $PATH 4228do 4229 IFS=$as_save_IFS 4230 case $as_dir in #((( 4231 '') as_dir=./ ;; 4232 */) ;; 4233 *) as_dir=$as_dir/ ;; 4234 esac 4235 for ac_exec_ext in '' $ac_executable_extensions; do 4236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4237 ac_cv_prog_CC="${ac_tool_prefix}clang" 4238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4239 break 2 4240 fi 4241done 4242 done 4243IFS=$as_save_IFS 4244 4245fi ;; 4246esac 4247fi 4248CC=$ac_cv_prog_CC 4249if test -n "$CC"; then 4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4251printf "%s\n" "$CC" >&6; } 4252else 4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4254printf "%s\n" "no" >&6; } 4255fi 4256 4257 4258fi 4259if test -z "$ac_cv_prog_CC"; then 4260 ac_ct_CC=$CC 4261 # Extract the first word of "clang", so it can be a program name with args. 4262set dummy clang; ac_word=$2 4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4264printf %s "checking for $ac_word... " >&6; } 4265if test ${ac_cv_prog_ac_ct_CC+y} 4266then : 4267 printf %s "(cached) " >&6 4268else case e in #( 4269 e) if test -n "$ac_ct_CC"; then 4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4271else 4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4273for as_dir in $PATH 4274do 4275 IFS=$as_save_IFS 4276 case $as_dir in #((( 4277 '') as_dir=./ ;; 4278 */) ;; 4279 *) as_dir=$as_dir/ ;; 4280 esac 4281 for ac_exec_ext in '' $ac_executable_extensions; do 4282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4283 ac_cv_prog_ac_ct_CC="clang" 4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4285 break 2 4286 fi 4287done 4288 done 4289IFS=$as_save_IFS 4290 4291fi ;; 4292esac 4293fi 4294ac_ct_CC=$ac_cv_prog_ac_ct_CC 4295if test -n "$ac_ct_CC"; then 4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4297printf "%s\n" "$ac_ct_CC" >&6; } 4298else 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300printf "%s\n" "no" >&6; } 4301fi 4302 4303 if test "x$ac_ct_CC" = x; then 4304 CC="" 4305 else 4306 case $cross_compiling:$ac_tool_warned in 4307yes:) 4308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4309printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4310ac_tool_warned=yes ;; 4311esac 4312 CC=$ac_ct_CC 4313 fi 4314else 4315 CC="$ac_cv_prog_CC" 4316fi 4317 4318fi 4319 4320 4321test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4322printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4323as_fn_error $? "no acceptable C compiler found in \$PATH 4324See 'config.log' for more details" "$LINENO" 5; } 4325 4326# Provide some information about the compiler. 4327printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4328set X $ac_compile 4329ac_compiler=$2 4330for ac_option in --version -v -V -qversion -version; do 4331 { { ac_try="$ac_compiler $ac_option >&5" 4332case "(($ac_try" in 4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4334 *) ac_try_echo=$ac_try;; 4335esac 4336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4337printf "%s\n" "$ac_try_echo"; } >&5 4338 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4339 ac_status=$? 4340 if test -s conftest.err; then 4341 sed '10a\ 4342... rest of stderr output deleted ... 4343 10q' conftest.err >conftest.er1 4344 cat conftest.er1 >&5 4345 fi 4346 rm -f conftest.er1 conftest.err 4347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4348 test $ac_status = 0; } 4349done 4350 4351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4352/* end confdefs.h. */ 4353 4354int 4355main (void) 4356{ 4357 4358 ; 4359 return 0; 4360} 4361_ACEOF 4362ac_clean_files_save=$ac_clean_files 4363ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4364# Try to create an executable without -o first, disregard a.out. 4365# It will help us diagnose broken compilers, and finding out an intuition 4366# of exeext. 4367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4368printf %s "checking whether the C compiler works... " >&6; } 4369ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4370 4371# The possible output files: 4372ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4373 4374ac_rmfiles= 4375for ac_file in $ac_files 4376do 4377 case $ac_file in 4378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4379 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4380 esac 4381done 4382rm -f $ac_rmfiles 4383 4384if { { ac_try="$ac_link_default" 4385case "(($ac_try" in 4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4387 *) ac_try_echo=$ac_try;; 4388esac 4389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4390printf "%s\n" "$ac_try_echo"; } >&5 4391 (eval "$ac_link_default") 2>&5 4392 ac_status=$? 4393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4394 test $ac_status = 0; } 4395then : 4396 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4397# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4398# in a Makefile. We should not override ac_cv_exeext if it was cached, 4399# so that the user can short-circuit this test for compilers unknown to 4400# Autoconf. 4401for ac_file in $ac_files '' 4402do 4403 test -f "$ac_file" || continue 4404 case $ac_file in 4405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4406 ;; 4407 [ab].out ) 4408 # We found the default executable, but exeext='' is most 4409 # certainly right. 4410 break;; 4411 *.* ) 4412 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4413 then :; else 4414 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4415 fi 4416 # We set ac_cv_exeext here because the later test for it is not 4417 # safe: cross compilers may not add the suffix if given an '-o' 4418 # argument, so we may need to know it at that point already. 4419 # Even if this section looks crufty: it has the advantage of 4420 # actually working. 4421 break;; 4422 * ) 4423 break;; 4424 esac 4425done 4426test "$ac_cv_exeext" = no && ac_cv_exeext= 4427 4428else case e in #( 4429 e) ac_file='' ;; 4430esac 4431fi 4432if test -z "$ac_file" 4433then : 4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4435printf "%s\n" "no" >&6; } 4436printf "%s\n" "$as_me: failed program was:" >&5 4437sed 's/^/| /' conftest.$ac_ext >&5 4438 4439{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4440printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4441as_fn_error 77 "C compiler cannot create executables 4442See 'config.log' for more details" "$LINENO" 5; } 4443else case e in #( 4444 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4445printf "%s\n" "yes" >&6; } ;; 4446esac 4447fi 4448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4449printf %s "checking for C compiler default output file name... " >&6; } 4450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4451printf "%s\n" "$ac_file" >&6; } 4452ac_exeext=$ac_cv_exeext 4453 4454rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4455ac_clean_files=$ac_clean_files_save 4456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4457printf %s "checking for suffix of executables... " >&6; } 4458if { { ac_try="$ac_link" 4459case "(($ac_try" in 4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4461 *) ac_try_echo=$ac_try;; 4462esac 4463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4464printf "%s\n" "$ac_try_echo"; } >&5 4465 (eval "$ac_link") 2>&5 4466 ac_status=$? 4467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4468 test $ac_status = 0; } 4469then : 4470 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4471# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4472# work properly (i.e., refer to 'conftest.exe'), while it won't with 4473# 'rm'. 4474for ac_file in conftest.exe conftest conftest.*; do 4475 test -f "$ac_file" || continue 4476 case $ac_file in 4477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4478 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4479 break;; 4480 * ) break;; 4481 esac 4482done 4483else case e in #( 4484 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4485printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4486as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4487See 'config.log' for more details" "$LINENO" 5; } ;; 4488esac 4489fi 4490rm -f conftest conftest$ac_cv_exeext 4491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4492printf "%s\n" "$ac_cv_exeext" >&6; } 4493 4494rm -f conftest.$ac_ext 4495EXEEXT=$ac_cv_exeext 4496ac_exeext=$EXEEXT 4497cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498/* end confdefs.h. */ 4499#include <stdio.h> 4500int 4501main (void) 4502{ 4503FILE *f = fopen ("conftest.out", "w"); 4504 if (!f) 4505 return 1; 4506 return ferror (f) || fclose (f) != 0; 4507 4508 ; 4509 return 0; 4510} 4511_ACEOF 4512ac_clean_files="$ac_clean_files conftest.out" 4513# Check that the compiler produces executables we can run. If not, either 4514# the compiler is broken, or we cross compile. 4515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4516printf %s "checking whether we are cross compiling... " >&6; } 4517if test "$cross_compiling" != yes; then 4518 { { ac_try="$ac_link" 4519case "(($ac_try" in 4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4521 *) ac_try_echo=$ac_try;; 4522esac 4523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4524printf "%s\n" "$ac_try_echo"; } >&5 4525 (eval "$ac_link") 2>&5 4526 ac_status=$? 4527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4528 test $ac_status = 0; } 4529 if { ac_try='./conftest$ac_cv_exeext' 4530 { { case "(($ac_try" in 4531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4532 *) ac_try_echo=$ac_try;; 4533esac 4534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4535printf "%s\n" "$ac_try_echo"; } >&5 4536 (eval "$ac_try") 2>&5 4537 ac_status=$? 4538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4539 test $ac_status = 0; }; }; then 4540 cross_compiling=no 4541 else 4542 if test "$cross_compiling" = maybe; then 4543 cross_compiling=yes 4544 else 4545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4546printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4547as_fn_error 77 "cannot run C compiled programs. 4548If you meant to cross compile, use '--host'. 4549See 'config.log' for more details" "$LINENO" 5; } 4550 fi 4551 fi 4552fi 4553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4554printf "%s\n" "$cross_compiling" >&6; } 4555 4556rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4557 conftest.o conftest.obj conftest.out 4558ac_clean_files=$ac_clean_files_save 4559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4560printf %s "checking for suffix of object files... " >&6; } 4561if test ${ac_cv_objext+y} 4562then : 4563 printf %s "(cached) " >&6 4564else case e in #( 4565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4566/* end confdefs.h. */ 4567 4568int 4569main (void) 4570{ 4571 4572 ; 4573 return 0; 4574} 4575_ACEOF 4576rm -f conftest.o conftest.obj 4577if { { ac_try="$ac_compile" 4578case "(($ac_try" in 4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4580 *) ac_try_echo=$ac_try;; 4581esac 4582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4583printf "%s\n" "$ac_try_echo"; } >&5 4584 (eval "$ac_compile") 2>&5 4585 ac_status=$? 4586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4587 test $ac_status = 0; } 4588then : 4589 for ac_file in conftest.o conftest.obj conftest.*; do 4590 test -f "$ac_file" || continue; 4591 case $ac_file in 4592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4594 break;; 4595 esac 4596done 4597else case e in #( 4598 e) printf "%s\n" "$as_me: failed program was:" >&5 4599sed 's/^/| /' conftest.$ac_ext >&5 4600 4601{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4602printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4603as_fn_error $? "cannot compute suffix of object files: cannot compile 4604See 'config.log' for more details" "$LINENO" 5; } ;; 4605esac 4606fi 4607rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4608esac 4609fi 4610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4611printf "%s\n" "$ac_cv_objext" >&6; } 4612OBJEXT=$ac_cv_objext 4613ac_objext=$OBJEXT 4614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4615printf %s "checking whether the compiler supports GNU C... " >&6; } 4616if test ${ac_cv_c_compiler_gnu+y} 4617then : 4618 printf %s "(cached) " >&6 4619else case e in #( 4620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621/* end confdefs.h. */ 4622 4623int 4624main (void) 4625{ 4626#ifndef __GNUC__ 4627 choke me 4628#endif 4629 4630 ; 4631 return 0; 4632} 4633_ACEOF 4634if ac_fn_c_try_compile "$LINENO" 4635then : 4636 ac_compiler_gnu=yes 4637else case e in #( 4638 e) ac_compiler_gnu=no ;; 4639esac 4640fi 4641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4642ac_cv_c_compiler_gnu=$ac_compiler_gnu 4643 ;; 4644esac 4645fi 4646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4647printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4648ac_compiler_gnu=$ac_cv_c_compiler_gnu 4649 4650if test $ac_compiler_gnu = yes; then 4651 GCC=yes 4652else 4653 GCC= 4654fi 4655ac_test_CFLAGS=${CFLAGS+y} 4656ac_save_CFLAGS=$CFLAGS 4657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4658printf %s "checking whether $CC accepts -g... " >&6; } 4659if test ${ac_cv_prog_cc_g+y} 4660then : 4661 printf %s "(cached) " >&6 4662else case e in #( 4663 e) ac_save_c_werror_flag=$ac_c_werror_flag 4664 ac_c_werror_flag=yes 4665 ac_cv_prog_cc_g=no 4666 CFLAGS="-g" 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669 4670int 4671main (void) 4672{ 4673 4674 ; 4675 return 0; 4676} 4677_ACEOF 4678if ac_fn_c_try_compile "$LINENO" 4679then : 4680 ac_cv_prog_cc_g=yes 4681else case e in #( 4682 e) CFLAGS="" 4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4684/* end confdefs.h. */ 4685 4686int 4687main (void) 4688{ 4689 4690 ; 4691 return 0; 4692} 4693_ACEOF 4694if ac_fn_c_try_compile "$LINENO" 4695then : 4696 4697else case e in #( 4698 e) ac_c_werror_flag=$ac_save_c_werror_flag 4699 CFLAGS="-g" 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702 4703int 4704main (void) 4705{ 4706 4707 ; 4708 return 0; 4709} 4710_ACEOF 4711if ac_fn_c_try_compile "$LINENO" 4712then : 4713 ac_cv_prog_cc_g=yes 4714fi 4715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4716esac 4717fi 4718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4719esac 4720fi 4721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4722 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4723esac 4724fi 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4726printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4727if test $ac_test_CFLAGS; then 4728 CFLAGS=$ac_save_CFLAGS 4729elif test $ac_cv_prog_cc_g = yes; then 4730 if test "$GCC" = yes; then 4731 CFLAGS="-g -O2" 4732 else 4733 CFLAGS="-g" 4734 fi 4735else 4736 if test "$GCC" = yes; then 4737 CFLAGS="-O2" 4738 else 4739 CFLAGS= 4740 fi 4741fi 4742ac_prog_cc_stdc=no 4743if test x$ac_prog_cc_stdc = xno 4744then : 4745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4746printf %s "checking for $CC option to enable C11 features... " >&6; } 4747if test ${ac_cv_prog_cc_c11+y} 4748then : 4749 printf %s "(cached) " >&6 4750else case e in #( 4751 e) ac_cv_prog_cc_c11=no 4752ac_save_CC=$CC 4753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4754/* end confdefs.h. */ 4755$ac_c_conftest_c11_program 4756_ACEOF 4757for ac_arg in '' -std=gnu11 4758do 4759 CC="$ac_save_CC $ac_arg" 4760 if ac_fn_c_try_compile "$LINENO" 4761then : 4762 ac_cv_prog_cc_c11=$ac_arg 4763fi 4764rm -f core conftest.err conftest.$ac_objext conftest.beam 4765 test "x$ac_cv_prog_cc_c11" != "xno" && break 4766done 4767rm -f conftest.$ac_ext 4768CC=$ac_save_CC ;; 4769esac 4770fi 4771 4772if test "x$ac_cv_prog_cc_c11" = xno 4773then : 4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4775printf "%s\n" "unsupported" >&6; } 4776else case e in #( 4777 e) if test "x$ac_cv_prog_cc_c11" = x 4778then : 4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4780printf "%s\n" "none needed" >&6; } 4781else case e in #( 4782 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4783printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4784 CC="$CC $ac_cv_prog_cc_c11" ;; 4785esac 4786fi 4787 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4788 ac_prog_cc_stdc=c11 ;; 4789esac 4790fi 4791fi 4792if test x$ac_prog_cc_stdc = xno 4793then : 4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4795printf %s "checking for $CC option to enable C99 features... " >&6; } 4796if test ${ac_cv_prog_cc_c99+y} 4797then : 4798 printf %s "(cached) " >&6 4799else case e in #( 4800 e) ac_cv_prog_cc_c99=no 4801ac_save_CC=$CC 4802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803/* end confdefs.h. */ 4804$ac_c_conftest_c99_program 4805_ACEOF 4806for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4807do 4808 CC="$ac_save_CC $ac_arg" 4809 if ac_fn_c_try_compile "$LINENO" 4810then : 4811 ac_cv_prog_cc_c99=$ac_arg 4812fi 4813rm -f core conftest.err conftest.$ac_objext conftest.beam 4814 test "x$ac_cv_prog_cc_c99" != "xno" && break 4815done 4816rm -f conftest.$ac_ext 4817CC=$ac_save_CC ;; 4818esac 4819fi 4820 4821if test "x$ac_cv_prog_cc_c99" = xno 4822then : 4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4824printf "%s\n" "unsupported" >&6; } 4825else case e in #( 4826 e) if test "x$ac_cv_prog_cc_c99" = x 4827then : 4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4829printf "%s\n" "none needed" >&6; } 4830else case e in #( 4831 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4832printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4833 CC="$CC $ac_cv_prog_cc_c99" ;; 4834esac 4835fi 4836 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4837 ac_prog_cc_stdc=c99 ;; 4838esac 4839fi 4840fi 4841if test x$ac_prog_cc_stdc = xno 4842then : 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4844printf %s "checking for $CC option to enable C89 features... " >&6; } 4845if test ${ac_cv_prog_cc_c89+y} 4846then : 4847 printf %s "(cached) " >&6 4848else case e in #( 4849 e) ac_cv_prog_cc_c89=no 4850ac_save_CC=$CC 4851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4852/* end confdefs.h. */ 4853$ac_c_conftest_c89_program 4854_ACEOF 4855for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4856do 4857 CC="$ac_save_CC $ac_arg" 4858 if ac_fn_c_try_compile "$LINENO" 4859then : 4860 ac_cv_prog_cc_c89=$ac_arg 4861fi 4862rm -f core conftest.err conftest.$ac_objext conftest.beam 4863 test "x$ac_cv_prog_cc_c89" != "xno" && break 4864done 4865rm -f conftest.$ac_ext 4866CC=$ac_save_CC ;; 4867esac 4868fi 4869 4870if test "x$ac_cv_prog_cc_c89" = xno 4871then : 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4873printf "%s\n" "unsupported" >&6; } 4874else case e in #( 4875 e) if test "x$ac_cv_prog_cc_c89" = x 4876then : 4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4878printf "%s\n" "none needed" >&6; } 4879else case e in #( 4880 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4881printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4882 CC="$CC $ac_cv_prog_cc_c89" ;; 4883esac 4884fi 4885 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4886 ac_prog_cc_stdc=c89 ;; 4887esac 4888fi 4889fi 4890 4891ac_ext=c 4892ac_cpp='$CPP $CPPFLAGS' 4893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4895ac_compiler_gnu=$ac_cv_c_compiler_gnu 4896 4897 4898 ac_ext=c 4899ac_cpp='$CPP $CPPFLAGS' 4900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4902ac_compiler_gnu=$ac_cv_c_compiler_gnu 4903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4904printf %s "checking whether $CC understands -c and -o together... " >&6; } 4905if test ${am_cv_prog_cc_c_o+y} 4906then : 4907 printf %s "(cached) " >&6 4908else case e in #( 4909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4910/* end confdefs.h. */ 4911 4912int 4913main (void) 4914{ 4915 4916 ; 4917 return 0; 4918} 4919_ACEOF 4920 # Make sure it works both with $CC and with simple cc. 4921 # Following AC_PROG_CC_C_O, we do the test twice because some 4922 # compilers refuse to overwrite an existing .o file with -o, 4923 # though they will create one. 4924 am_cv_prog_cc_c_o=yes 4925 for am_i in 1 2; do 4926 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4927 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4928 ac_status=$? 4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 (exit $ac_status); } \ 4931 && test -f conftest2.$ac_objext; then 4932 : OK 4933 else 4934 am_cv_prog_cc_c_o=no 4935 break 4936 fi 4937 done 4938 rm -f core conftest* 4939 unset am_i ;; 4940esac 4941fi 4942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4943printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4944if test "$am_cv_prog_cc_c_o" != yes; then 4945 # Losing compiler, so override with the script. 4946 # FIXME: It is wrong to rewrite CC. 4947 # But if we don't then we get into trouble of one sort or another. 4948 # A longer-term fix would be to have automake use am__CC in this case, 4949 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4950 CC="$am_aux_dir/compile $CC" 4951fi 4952ac_ext=c 4953ac_cpp='$CPP $CPPFLAGS' 4954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4956ac_compiler_gnu=$ac_cv_c_compiler_gnu 4957 4958DEPDIR="${am__leading_dot}deps" 4959 4960ac_config_commands="$ac_config_commands depfiles" 4961 4962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4963printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4964cat > confinc.mk << 'END' 4965am__doit: 4966 @echo this is the am__doit target >confinc.out 4967.PHONY: am__doit 4968END 4969am__include="#" 4970am__quote= 4971# BSD make does it like this. 4972echo '.include "confinc.mk" # ignored' > confmf.BSD 4973# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4974echo 'include confinc.mk # ignored' > confmf.GNU 4975_am_result=no 4976for s in GNU BSD; do 4977 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4978 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4979 ac_status=$? 4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4981 (exit $ac_status); } 4982 case $?:`cat confinc.out 2>/dev/null` in #( 4983 '0:this is the am__doit target') : 4984 case $s in #( 4985 BSD) : 4986 am__include='.include' am__quote='"' ;; #( 4987 *) : 4988 am__include='include' am__quote='' ;; 4989esac ;; #( 4990 *) : 4991 ;; 4992esac 4993 if test "$am__include" != "#"; then 4994 _am_result="yes ($s style)" 4995 break 4996 fi 4997done 4998rm -f confinc.* confmf.* 4999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5000printf "%s\n" "${_am_result}" >&6; } 5001 5002# Check whether --enable-dependency-tracking was given. 5003if test ${enable_dependency_tracking+y} 5004then : 5005 enableval=$enable_dependency_tracking; 5006fi 5007 5008if test "x$enable_dependency_tracking" != xno; then 5009 am_depcomp="$ac_aux_dir/depcomp" 5010 AMDEPBACKSLASH='\' 5011 am__nodep='_no' 5012fi 5013 if test "x$enable_dependency_tracking" != xno; then 5014 AMDEP_TRUE= 5015 AMDEP_FALSE='#' 5016else 5017 AMDEP_TRUE='#' 5018 AMDEP_FALSE= 5019fi 5020 5021 5022 5023depcc="$CC" am_compiler_list= 5024 5025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5026printf %s "checking dependency style of $depcc... " >&6; } 5027if test ${am_cv_CC_dependencies_compiler_type+y} 5028then : 5029 printf %s "(cached) " >&6 5030else case e in #( 5031 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5032 # We make a subdir and do the tests there. Otherwise we can end up 5033 # making bogus files that we don't know about and never remove. For 5034 # instance it was reported that on HP-UX the gcc test will end up 5035 # making a dummy file named 'D' -- because '-MD' means "put the output 5036 # in D". 5037 rm -rf conftest.dir 5038 mkdir conftest.dir 5039 # Copy depcomp to subdir because otherwise we won't find it if we're 5040 # using a relative directory. 5041 cp "$am_depcomp" conftest.dir 5042 cd conftest.dir 5043 # We will build objects and dependencies in a subdirectory because 5044 # it helps to detect inapplicable dependency modes. For instance 5045 # both Tru64's cc and ICC support -MD to output dependencies as a 5046 # side effect of compilation, but ICC will put the dependencies in 5047 # the current directory while Tru64 will put them in the object 5048 # directory. 5049 mkdir sub 5050 5051 am_cv_CC_dependencies_compiler_type=none 5052 if test "$am_compiler_list" = ""; then 5053 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5054 fi 5055 am__universal=false 5056 case " $depcc " in #( 5057 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5058 esac 5059 5060 for depmode in $am_compiler_list; do 5061 # Setup a source with many dependencies, because some compilers 5062 # like to wrap large dependency lists on column 80 (with \), and 5063 # we should not choose a depcomp mode which is confused by this. 5064 # 5065 # We need to recreate these files for each test, as the compiler may 5066 # overwrite some of them when testing with obscure command lines. 5067 # This happens at least with the AIX C compiler. 5068 : > sub/conftest.c 5069 for i in 1 2 3 4 5 6; do 5070 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5071 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5072 # Solaris 10 /bin/sh. 5073 echo '/* dummy */' > sub/conftst$i.h 5074 done 5075 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5076 5077 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5078 # mode. It turns out that the SunPro C++ compiler does not properly 5079 # handle '-M -o', and we need to detect this. Also, some Intel 5080 # versions had trouble with output in subdirs. 5081 am__obj=sub/conftest.${OBJEXT-o} 5082 am__minus_obj="-o $am__obj" 5083 case $depmode in 5084 gcc) 5085 # This depmode causes a compiler race in universal mode. 5086 test "$am__universal" = false || continue 5087 ;; 5088 nosideeffect) 5089 # After this tag, mechanisms are not by side-effect, so they'll 5090 # only be used when explicitly requested. 5091 if test "x$enable_dependency_tracking" = xyes; then 5092 continue 5093 else 5094 break 5095 fi 5096 ;; 5097 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5098 # This compiler won't grok '-c -o', but also, the minuso test has 5099 # not run yet. These depmodes are late enough in the game, and 5100 # so weak that their functioning should not be impacted. 5101 am__obj=conftest.${OBJEXT-o} 5102 am__minus_obj= 5103 ;; 5104 none) break ;; 5105 esac 5106 if depmode=$depmode \ 5107 source=sub/conftest.c object=$am__obj \ 5108 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5109 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5110 >/dev/null 2>conftest.err && 5111 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5113 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5115 # icc doesn't choke on unknown options, it will just issue warnings 5116 # or remarks (even with -Werror). So we grep stderr for any message 5117 # that says an option was ignored or not supported. 5118 # When given -MP, icc 7.0 and 7.1 complain thusly: 5119 # icc: Command line warning: ignoring option '-M'; no argument required 5120 # The diagnosis changed in icc 8.0: 5121 # icc: Command line remark: option '-MP' not supported 5122 if (grep 'ignoring option' conftest.err || 5123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5124 am_cv_CC_dependencies_compiler_type=$depmode 5125 break 5126 fi 5127 fi 5128 done 5129 5130 cd .. 5131 rm -rf conftest.dir 5132else 5133 am_cv_CC_dependencies_compiler_type=none 5134fi 5135 ;; 5136esac 5137fi 5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5139printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5140CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5141 5142 if 5143 test "x$enable_dependency_tracking" != xno \ 5144 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5145 am__fastdepCC_TRUE= 5146 am__fastdepCC_FALSE='#' 5147else 5148 am__fastdepCC_TRUE='#' 5149 am__fastdepCC_FALSE= 5150fi 5151 5152 5153 5154ac_header= ac_cache= 5155for ac_item in $ac_header_c_list 5156do 5157 if test $ac_cache; then 5158 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5159 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5160 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5161 fi 5162 ac_header= ac_cache= 5163 elif test $ac_header; then 5164 ac_cache=$ac_item 5165 else 5166 ac_header=$ac_item 5167 fi 5168done 5169 5170 5171 5172 5173 5174 5175 5176 5177if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5178then : 5179 5180printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5181 5182fi 5183 5184 5185 5186 5187 5188 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5190printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5191if test ${ac_cv_safe_to_define___extensions__+y} 5192then : 5193 printf %s "(cached) " >&6 5194else case e in #( 5195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197 5198# define __EXTENSIONS__ 1 5199 $ac_includes_default 5200int 5201main (void) 5202{ 5203 5204 ; 5205 return 0; 5206} 5207_ACEOF 5208if ac_fn_c_try_compile "$LINENO" 5209then : 5210 ac_cv_safe_to_define___extensions__=yes 5211else case e in #( 5212 e) ac_cv_safe_to_define___extensions__=no ;; 5213esac 5214fi 5215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5216esac 5217fi 5218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5219printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5220 5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5222printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5223if test ${ac_cv_should_define__xopen_source+y} 5224then : 5225 printf %s "(cached) " >&6 5226else case e in #( 5227 e) ac_cv_should_define__xopen_source=no 5228 if test $ac_cv_header_wchar_h = yes 5229then : 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232 5233 #include <wchar.h> 5234 mbstate_t x; 5235int 5236main (void) 5237{ 5238 5239 ; 5240 return 0; 5241} 5242_ACEOF 5243if ac_fn_c_try_compile "$LINENO" 5244then : 5245 5246else case e in #( 5247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249 5250 #define _XOPEN_SOURCE 500 5251 #include <wchar.h> 5252 mbstate_t x; 5253int 5254main (void) 5255{ 5256 5257 ; 5258 return 0; 5259} 5260_ACEOF 5261if ac_fn_c_try_compile "$LINENO" 5262then : 5263 ac_cv_should_define__xopen_source=yes 5264fi 5265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5266esac 5267fi 5268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5269fi ;; 5270esac 5271fi 5272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5273printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5274 5275 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5276 5277 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5278 5279 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5280 5281 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5282 5283 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5284 5285 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5286 5287 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5288 5289 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5290 5291 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5292 5293 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5294 5295 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5296 5297 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5298 5299 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5300 5301 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5302 5303 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5304 5305 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5306 5307 if test $ac_cv_header_minix_config_h = yes 5308then : 5309 MINIX=yes 5310 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5311 5312 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5313 5314 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5315 5316else case e in #( 5317 e) MINIX= ;; 5318esac 5319fi 5320 if test $ac_cv_safe_to_define___extensions__ = yes 5321then : 5322 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5323 5324fi 5325 if test $ac_cv_should_define__xopen_source = yes 5326then : 5327 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5328 5329fi 5330 5331 5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5333printf %s "checking whether byte ordering is bigendian... " >&6; } 5334if test ${ac_cv_c_bigendian+y} 5335then : 5336 printf %s "(cached) " >&6 5337else case e in #( 5338 e) ac_cv_c_bigendian=unknown 5339 # See if we're dealing with a universal compiler. 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5341/* end confdefs.h. */ 5342#ifndef __APPLE_CC__ 5343 not a universal capable compiler 5344 #endif 5345 typedef int dummy; 5346 5347_ACEOF 5348if ac_fn_c_try_compile "$LINENO" 5349then : 5350 5351 # Check for potential -arch flags. It is not universal unless 5352 # there are at least two -arch flags with different values. 5353 ac_arch= 5354 ac_prev= 5355 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5356 if test -n "$ac_prev"; then 5357 case $ac_word in 5358 i?86 | x86_64 | ppc | ppc64) 5359 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5360 ac_arch=$ac_word 5361 else 5362 ac_cv_c_bigendian=universal 5363 break 5364 fi 5365 ;; 5366 esac 5367 ac_prev= 5368 elif test "x$ac_word" = "x-arch"; then 5369 ac_prev=arch 5370 fi 5371 done 5372fi 5373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5374 if test $ac_cv_c_bigendian = unknown; then 5375 # See if sys/param.h defines the BYTE_ORDER macro. 5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5377/* end confdefs.h. */ 5378#include <sys/types.h> 5379 #include <sys/param.h> 5380 5381int 5382main (void) 5383{ 5384#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ 5385 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ 5386 && LITTLE_ENDIAN) 5387 bogus endian macros 5388 #endif 5389 5390 ; 5391 return 0; 5392} 5393_ACEOF 5394if ac_fn_c_try_compile "$LINENO" 5395then : 5396 # It does; now see whether it defined to BIG_ENDIAN or not. 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398/* end confdefs.h. */ 5399#include <sys/types.h> 5400 #include <sys/param.h> 5401 5402int 5403main (void) 5404{ 5405#if BYTE_ORDER != BIG_ENDIAN 5406 not big endian 5407 #endif 5408 5409 ; 5410 return 0; 5411} 5412_ACEOF 5413if ac_fn_c_try_compile "$LINENO" 5414then : 5415 ac_cv_c_bigendian=yes 5416else case e in #( 5417 e) ac_cv_c_bigendian=no ;; 5418esac 5419fi 5420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5421fi 5422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5423 fi 5424 if test $ac_cv_c_bigendian = unknown; then 5425 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5427/* end confdefs.h. */ 5428#include <limits.h> 5429 5430int 5431main (void) 5432{ 5433#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5434 bogus endian macros 5435 #endif 5436 5437 ; 5438 return 0; 5439} 5440_ACEOF 5441if ac_fn_c_try_compile "$LINENO" 5442then : 5443 # It does; now see whether it defined to _BIG_ENDIAN or not. 5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445/* end confdefs.h. */ 5446#include <limits.h> 5447 5448int 5449main (void) 5450{ 5451#ifndef _BIG_ENDIAN 5452 not big endian 5453 #endif 5454 5455 ; 5456 return 0; 5457} 5458_ACEOF 5459if ac_fn_c_try_compile "$LINENO" 5460then : 5461 ac_cv_c_bigendian=yes 5462else case e in #( 5463 e) ac_cv_c_bigendian=no ;; 5464esac 5465fi 5466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5467fi 5468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5469 fi 5470 if test $ac_cv_c_bigendian = unknown; then 5471 # Compile a test program. 5472 if test "$cross_compiling" = yes 5473then : 5474 # Try to guess by grepping values from an object file. 5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5476/* end confdefs.h. */ 5477unsigned short int ascii_mm[] = 5478 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5479 unsigned short int ascii_ii[] = 5480 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5481 int use_ascii (int i) { 5482 return ascii_mm[i] + ascii_ii[i]; 5483 } 5484 unsigned short int ebcdic_ii[] = 5485 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5486 unsigned short int ebcdic_mm[] = 5487 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5488 int use_ebcdic (int i) { 5489 return ebcdic_mm[i] + ebcdic_ii[i]; 5490 } 5491 int 5492 main (int argc, char **argv) 5493 { 5494 /* Intimidate the compiler so that it does not 5495 optimize the arrays away. */ 5496 char *p = argv[0]; 5497 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; 5498 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; 5499 return use_ascii (argc) == use_ebcdic (*p); 5500 } 5501_ACEOF 5502if ac_fn_c_try_link "$LINENO" 5503then : 5504 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then 5505 ac_cv_c_bigendian=yes 5506 fi 5507 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then 5508 if test "$ac_cv_c_bigendian" = unknown; then 5509 ac_cv_c_bigendian=no 5510 else 5511 # finding both strings is unlikely to happen, but who knows? 5512 ac_cv_c_bigendian=unknown 5513 fi 5514 fi 5515fi 5516rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5517 conftest$ac_exeext conftest.$ac_ext 5518else case e in #( 5519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521$ac_includes_default 5522int 5523main (void) 5524{ 5525 5526 /* Are we little or big endian? From Harbison&Steele. */ 5527 union 5528 { 5529 long int l; 5530 char c[sizeof (long int)]; 5531 } u; 5532 u.l = 1; 5533 return u.c[sizeof (long int) - 1] == 1; 5534 5535 ; 5536 return 0; 5537} 5538_ACEOF 5539if ac_fn_c_try_run "$LINENO" 5540then : 5541 ac_cv_c_bigendian=no 5542else case e in #( 5543 e) ac_cv_c_bigendian=yes ;; 5544esac 5545fi 5546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5547 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5548esac 5549fi 5550 5551 fi ;; 5552esac 5553fi 5554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5555printf "%s\n" "$ac_cv_c_bigendian" >&6; } 5556 case $ac_cv_c_bigendian in #( 5557 yes) 5558 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 5559;; #( 5560 no) 5561 ;; #( 5562 universal) 5563 5564printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5565 5566 ;; #( 5567 *) 5568 as_fn_error $? "unknown endianness 5569 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5570 esac 5571 5572 5573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5574printf %s "checking whether ln -s works... " >&6; } 5575LN_S=$as_ln_s 5576if test "$LN_S" = "ln -s"; then 5577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5578printf "%s\n" "yes" >&6; } 5579else 5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5581printf "%s\n" "no, using $LN_S" >&6; } 5582fi 5583 5584case `pwd` in 5585 *\ * | *\ *) 5586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5587printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5588esac 5589 5590 5591 5592macro_version='2.4.7' 5593macro_revision='2.4.7' 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608ltmain=$ac_aux_dir/ltmain.sh 5609 5610# Backslashify metacharacters that are still active within 5611# double-quoted strings. 5612sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5613 5614# Same as above, but do not quote variable references. 5615double_quote_subst='s/\(["`\\]\)/\\\1/g' 5616 5617# Sed substitution to delay expansion of an escaped shell variable in a 5618# double_quote_subst'ed string. 5619delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5620 5621# Sed substitution to delay expansion of an escaped single quote. 5622delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5623 5624# Sed substitution to avoid accidental globbing in evaled expressions 5625no_glob_subst='s/\*/\\\*/g' 5626 5627ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5628ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5629ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5630 5631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5632printf %s "checking how to print strings... " >&6; } 5633# Test print first, because it will be a builtin if present. 5634if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5635 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5636 ECHO='print -r --' 5637elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5638 ECHO='printf %s\n' 5639else 5640 # Use this function as a fallback that always works. 5641 func_fallback_echo () 5642 { 5643 eval 'cat <<_LTECHO_EOF 5644$1 5645_LTECHO_EOF' 5646 } 5647 ECHO='func_fallback_echo' 5648fi 5649 5650# func_echo_all arg... 5651# Invoke $ECHO with all args, space-separated. 5652func_echo_all () 5653{ 5654 $ECHO "" 5655} 5656 5657case $ECHO in 5658 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5659printf "%s\n" "printf" >&6; } ;; 5660 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5661printf "%s\n" "print -r" >&6; } ;; 5662 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5663printf "%s\n" "cat" >&6; } ;; 5664esac 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5680printf %s "checking for a sed that does not truncate output... " >&6; } 5681if test ${ac_cv_path_SED+y} 5682then : 5683 printf %s "(cached) " >&6 5684else case e in #( 5685 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5686 for ac_i in 1 2 3 4 5 6 7; do 5687 ac_script="$ac_script$as_nl$ac_script" 5688 done 5689 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5690 { ac_script=; unset ac_script;} 5691 if test -z "$SED"; then 5692 ac_path_SED_found=false 5693 # Loop through the user's path and test for each of PROGNAME-LIST 5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5695for as_dir in $PATH 5696do 5697 IFS=$as_save_IFS 5698 case $as_dir in #((( 5699 '') as_dir=./ ;; 5700 */) ;; 5701 *) as_dir=$as_dir/ ;; 5702 esac 5703 for ac_prog in sed gsed 5704 do 5705 for ac_exec_ext in '' $ac_executable_extensions; do 5706 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5707 as_fn_executable_p "$ac_path_SED" || continue 5708# Check for GNU ac_path_SED and select it if it is found. 5709 # Check for GNU $ac_path_SED 5710case `"$ac_path_SED" --version 2>&1` in #( 5711*GNU*) 5712 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5713#( 5714*) 5715 ac_count=0 5716 printf %s 0123456789 >"conftest.in" 5717 while : 5718 do 5719 cat "conftest.in" "conftest.in" >"conftest.tmp" 5720 mv "conftest.tmp" "conftest.in" 5721 cp "conftest.in" "conftest.nl" 5722 printf "%s\n" '' >> "conftest.nl" 5723 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5725 as_fn_arith $ac_count + 1 && ac_count=$as_val 5726 if test $ac_count -gt ${ac_path_SED_max-0}; then 5727 # Best one so far, save it but keep looking for a better one 5728 ac_cv_path_SED="$ac_path_SED" 5729 ac_path_SED_max=$ac_count 5730 fi 5731 # 10*(2^10) chars as input seems more than enough 5732 test $ac_count -gt 10 && break 5733 done 5734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5735esac 5736 5737 $ac_path_SED_found && break 3 5738 done 5739 done 5740 done 5741IFS=$as_save_IFS 5742 if test -z "$ac_cv_path_SED"; then 5743 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5744 fi 5745else 5746 ac_cv_path_SED=$SED 5747fi 5748 ;; 5749esac 5750fi 5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5752printf "%s\n" "$ac_cv_path_SED" >&6; } 5753 SED="$ac_cv_path_SED" 5754 rm -f conftest.sed 5755 5756test -z "$SED" && SED=sed 5757Xsed="$SED -e 1s/^X//" 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5770printf %s "checking for grep that handles long lines and -e... " >&6; } 5771if test ${ac_cv_path_GREP+y} 5772then : 5773 printf %s "(cached) " >&6 5774else case e in #( 5775 e) if test -z "$GREP"; then 5776 ac_path_GREP_found=false 5777 # Loop through the user's path and test for each of PROGNAME-LIST 5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5779for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5780do 5781 IFS=$as_save_IFS 5782 case $as_dir in #((( 5783 '') as_dir=./ ;; 5784 */) ;; 5785 *) as_dir=$as_dir/ ;; 5786 esac 5787 for ac_prog in grep ggrep 5788 do 5789 for ac_exec_ext in '' $ac_executable_extensions; do 5790 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5791 as_fn_executable_p "$ac_path_GREP" || continue 5792# Check for GNU ac_path_GREP and select it if it is found. 5793 # Check for GNU $ac_path_GREP 5794case `"$ac_path_GREP" --version 2>&1` in #( 5795*GNU*) 5796 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5797#( 5798*) 5799 ac_count=0 5800 printf %s 0123456789 >"conftest.in" 5801 while : 5802 do 5803 cat "conftest.in" "conftest.in" >"conftest.tmp" 5804 mv "conftest.tmp" "conftest.in" 5805 cp "conftest.in" "conftest.nl" 5806 printf "%s\n" 'GREP' >> "conftest.nl" 5807 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5809 as_fn_arith $ac_count + 1 && ac_count=$as_val 5810 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5811 # Best one so far, save it but keep looking for a better one 5812 ac_cv_path_GREP="$ac_path_GREP" 5813 ac_path_GREP_max=$ac_count 5814 fi 5815 # 10*(2^10) chars as input seems more than enough 5816 test $ac_count -gt 10 && break 5817 done 5818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5819esac 5820 5821 $ac_path_GREP_found && break 3 5822 done 5823 done 5824 done 5825IFS=$as_save_IFS 5826 if test -z "$ac_cv_path_GREP"; then 5827 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5828 fi 5829else 5830 ac_cv_path_GREP=$GREP 5831fi 5832 ;; 5833esac 5834fi 5835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5836printf "%s\n" "$ac_cv_path_GREP" >&6; } 5837 GREP="$ac_cv_path_GREP" 5838 5839 5840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5841printf %s "checking for egrep... " >&6; } 5842if test ${ac_cv_path_EGREP+y} 5843then : 5844 printf %s "(cached) " >&6 5845else case e in #( 5846 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5847 then ac_cv_path_EGREP="$GREP -E" 5848 else 5849 if test -z "$EGREP"; then 5850 ac_path_EGREP_found=false 5851 # Loop through the user's path and test for each of PROGNAME-LIST 5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5853for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5854do 5855 IFS=$as_save_IFS 5856 case $as_dir in #((( 5857 '') as_dir=./ ;; 5858 */) ;; 5859 *) as_dir=$as_dir/ ;; 5860 esac 5861 for ac_prog in egrep 5862 do 5863 for ac_exec_ext in '' $ac_executable_extensions; do 5864 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5865 as_fn_executable_p "$ac_path_EGREP" || continue 5866# Check for GNU ac_path_EGREP and select it if it is found. 5867 # Check for GNU $ac_path_EGREP 5868case `"$ac_path_EGREP" --version 2>&1` in #( 5869*GNU*) 5870 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5871#( 5872*) 5873 ac_count=0 5874 printf %s 0123456789 >"conftest.in" 5875 while : 5876 do 5877 cat "conftest.in" "conftest.in" >"conftest.tmp" 5878 mv "conftest.tmp" "conftest.in" 5879 cp "conftest.in" "conftest.nl" 5880 printf "%s\n" 'EGREP' >> "conftest.nl" 5881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5883 as_fn_arith $ac_count + 1 && ac_count=$as_val 5884 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5885 # Best one so far, save it but keep looking for a better one 5886 ac_cv_path_EGREP="$ac_path_EGREP" 5887 ac_path_EGREP_max=$ac_count 5888 fi 5889 # 10*(2^10) chars as input seems more than enough 5890 test $ac_count -gt 10 && break 5891 done 5892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5893esac 5894 5895 $ac_path_EGREP_found && break 3 5896 done 5897 done 5898 done 5899IFS=$as_save_IFS 5900 if test -z "$ac_cv_path_EGREP"; then 5901 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5902 fi 5903else 5904 ac_cv_path_EGREP=$EGREP 5905fi 5906 5907 fi ;; 5908esac 5909fi 5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5911printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5912 EGREP="$ac_cv_path_EGREP" 5913 5914 EGREP_TRADITIONAL=$EGREP 5915 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5916 5917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5918printf %s "checking for fgrep... " >&6; } 5919if test ${ac_cv_path_FGREP+y} 5920then : 5921 printf %s "(cached) " >&6 5922else case e in #( 5923 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5924 then ac_cv_path_FGREP="$GREP -F" 5925 else 5926 if test -z "$FGREP"; then 5927 ac_path_FGREP_found=false 5928 # Loop through the user's path and test for each of PROGNAME-LIST 5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5930for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5931do 5932 IFS=$as_save_IFS 5933 case $as_dir in #((( 5934 '') as_dir=./ ;; 5935 */) ;; 5936 *) as_dir=$as_dir/ ;; 5937 esac 5938 for ac_prog in fgrep 5939 do 5940 for ac_exec_ext in '' $ac_executable_extensions; do 5941 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5942 as_fn_executable_p "$ac_path_FGREP" || continue 5943# Check for GNU ac_path_FGREP and select it if it is found. 5944 # Check for GNU $ac_path_FGREP 5945case `"$ac_path_FGREP" --version 2>&1` in #( 5946*GNU*) 5947 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5948#( 5949*) 5950 ac_count=0 5951 printf %s 0123456789 >"conftest.in" 5952 while : 5953 do 5954 cat "conftest.in" "conftest.in" >"conftest.tmp" 5955 mv "conftest.tmp" "conftest.in" 5956 cp "conftest.in" "conftest.nl" 5957 printf "%s\n" 'FGREP' >> "conftest.nl" 5958 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5960 as_fn_arith $ac_count + 1 && ac_count=$as_val 5961 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5962 # Best one so far, save it but keep looking for a better one 5963 ac_cv_path_FGREP="$ac_path_FGREP" 5964 ac_path_FGREP_max=$ac_count 5965 fi 5966 # 10*(2^10) chars as input seems more than enough 5967 test $ac_count -gt 10 && break 5968 done 5969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5970esac 5971 5972 $ac_path_FGREP_found && break 3 5973 done 5974 done 5975 done 5976IFS=$as_save_IFS 5977 if test -z "$ac_cv_path_FGREP"; then 5978 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5979 fi 5980else 5981 ac_cv_path_FGREP=$FGREP 5982fi 5983 5984 fi ;; 5985esac 5986fi 5987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5988printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5989 FGREP="$ac_cv_path_FGREP" 5990 5991 5992test -z "$GREP" && GREP=grep 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012# Check whether --with-gnu-ld was given. 6013if test ${with_gnu_ld+y} 6014then : 6015 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6016else case e in #( 6017 e) with_gnu_ld=no ;; 6018esac 6019fi 6020 6021ac_prog=ld 6022if test yes = "$GCC"; then 6023 # Check if gcc -print-prog-name=ld gives a path. 6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6025printf %s "checking for ld used by $CC... " >&6; } 6026 case $host in 6027 *-*-mingw*) 6028 # gcc leaves a trailing carriage return, which upsets mingw 6029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6030 *) 6031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6032 esac 6033 case $ac_prog in 6034 # Accept absolute paths. 6035 [\\/]* | ?:[\\/]*) 6036 re_direlt='/[^/][^/]*/\.\./' 6037 # Canonicalize the pathname of ld 6038 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6039 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6040 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6041 done 6042 test -z "$LD" && LD=$ac_prog 6043 ;; 6044 "") 6045 # If it fails, then pretend we aren't using GCC. 6046 ac_prog=ld 6047 ;; 6048 *) 6049 # If it is relative, then search for the first ld in PATH. 6050 with_gnu_ld=unknown 6051 ;; 6052 esac 6053elif test yes = "$with_gnu_ld"; then 6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6055printf %s "checking for GNU ld... " >&6; } 6056else 6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6058printf %s "checking for non-GNU ld... " >&6; } 6059fi 6060if test ${lt_cv_path_LD+y} 6061then : 6062 printf %s "(cached) " >&6 6063else case e in #( 6064 e) if test -z "$LD"; then 6065 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6066 for ac_dir in $PATH; do 6067 IFS=$lt_save_ifs 6068 test -z "$ac_dir" && ac_dir=. 6069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6070 lt_cv_path_LD=$ac_dir/$ac_prog 6071 # Check to see if the program is GNU ld. I'd rather use --version, 6072 # but apparently some variants of GNU ld only accept -v. 6073 # Break only if it was the GNU/non-GNU ld that we prefer. 6074 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6075 *GNU* | *'with BFD'*) 6076 test no != "$with_gnu_ld" && break 6077 ;; 6078 *) 6079 test yes != "$with_gnu_ld" && break 6080 ;; 6081 esac 6082 fi 6083 done 6084 IFS=$lt_save_ifs 6085else 6086 lt_cv_path_LD=$LD # Let the user override the test with a path. 6087fi ;; 6088esac 6089fi 6090 6091LD=$lt_cv_path_LD 6092if test -n "$LD"; then 6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6094printf "%s\n" "$LD" >&6; } 6095else 6096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6097printf "%s\n" "no" >&6; } 6098fi 6099test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6101printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6102if test ${lt_cv_prog_gnu_ld+y} 6103then : 6104 printf %s "(cached) " >&6 6105else case e in #( 6106 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 6107case `$LD -v 2>&1 </dev/null` in 6108*GNU* | *'with BFD'*) 6109 lt_cv_prog_gnu_ld=yes 6110 ;; 6111*) 6112 lt_cv_prog_gnu_ld=no 6113 ;; 6114esac ;; 6115esac 6116fi 6117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6118printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6119with_gnu_ld=$lt_cv_prog_gnu_ld 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6130printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6131if test ${lt_cv_path_NM+y} 6132then : 6133 printf %s "(cached) " >&6 6134else case e in #( 6135 e) if test -n "$NM"; then 6136 # Let the user override the test. 6137 lt_cv_path_NM=$NM 6138else 6139 lt_nm_to_check=${ac_tool_prefix}nm 6140 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6141 lt_nm_to_check="$lt_nm_to_check nm" 6142 fi 6143 for lt_tmp_nm in $lt_nm_to_check; do 6144 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6145 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6146 IFS=$lt_save_ifs 6147 test -z "$ac_dir" && ac_dir=. 6148 tmp_nm=$ac_dir/$lt_tmp_nm 6149 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6150 # Check to see if the nm accepts a BSD-compat flag. 6151 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6152 # nm: unknown option "B" ignored 6153 # Tru64's nm complains that /dev/null is an invalid object file 6154 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6155 case $build_os in 6156 mingw*) lt_bad_file=conftest.nm/nofile ;; 6157 *) lt_bad_file=/dev/null ;; 6158 esac 6159 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6160 *$lt_bad_file* | *'Invalid file or object type'*) 6161 lt_cv_path_NM="$tmp_nm -B" 6162 break 2 6163 ;; 6164 *) 6165 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6166 */dev/null*) 6167 lt_cv_path_NM="$tmp_nm -p" 6168 break 2 6169 ;; 6170 *) 6171 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6172 continue # so that we can try to find one that supports BSD flags 6173 ;; 6174 esac 6175 ;; 6176 esac 6177 fi 6178 done 6179 IFS=$lt_save_ifs 6180 done 6181 : ${lt_cv_path_NM=no} 6182fi ;; 6183esac 6184fi 6185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6186printf "%s\n" "$lt_cv_path_NM" >&6; } 6187if test no != "$lt_cv_path_NM"; then 6188 NM=$lt_cv_path_NM 6189else 6190 # Didn't find any BSD compatible name lister, look for dumpbin. 6191 if test -n "$DUMPBIN"; then : 6192 # Let the user override the test. 6193 else 6194 if test -n "$ac_tool_prefix"; then 6195 for ac_prog in dumpbin "link -dump" 6196 do 6197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6198set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200printf %s "checking for $ac_word... " >&6; } 6201if test ${ac_cv_prog_DUMPBIN+y} 6202then : 6203 printf %s "(cached) " >&6 6204else case e in #( 6205 e) if test -n "$DUMPBIN"; then 6206 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6207else 6208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6209for as_dir in $PATH 6210do 6211 IFS=$as_save_IFS 6212 case $as_dir in #((( 6213 '') as_dir=./ ;; 6214 */) ;; 6215 *) as_dir=$as_dir/ ;; 6216 esac 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6219 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6221 break 2 6222 fi 6223done 6224 done 6225IFS=$as_save_IFS 6226 6227fi ;; 6228esac 6229fi 6230DUMPBIN=$ac_cv_prog_DUMPBIN 6231if test -n "$DUMPBIN"; then 6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6233printf "%s\n" "$DUMPBIN" >&6; } 6234else 6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6236printf "%s\n" "no" >&6; } 6237fi 6238 6239 6240 test -n "$DUMPBIN" && break 6241 done 6242fi 6243if test -z "$DUMPBIN"; then 6244 ac_ct_DUMPBIN=$DUMPBIN 6245 for ac_prog in dumpbin "link -dump" 6246do 6247 # Extract the first word of "$ac_prog", so it can be a program name with args. 6248set dummy $ac_prog; ac_word=$2 6249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6250printf %s "checking for $ac_word... " >&6; } 6251if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6252then : 6253 printf %s "(cached) " >&6 6254else case e in #( 6255 e) if test -n "$ac_ct_DUMPBIN"; then 6256 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6257else 6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6259for as_dir in $PATH 6260do 6261 IFS=$as_save_IFS 6262 case $as_dir in #((( 6263 '') as_dir=./ ;; 6264 */) ;; 6265 *) as_dir=$as_dir/ ;; 6266 esac 6267 for ac_exec_ext in '' $ac_executable_extensions; do 6268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6269 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6271 break 2 6272 fi 6273done 6274 done 6275IFS=$as_save_IFS 6276 6277fi ;; 6278esac 6279fi 6280ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6281if test -n "$ac_ct_DUMPBIN"; then 6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6283printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6284else 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6286printf "%s\n" "no" >&6; } 6287fi 6288 6289 6290 test -n "$ac_ct_DUMPBIN" && break 6291done 6292 6293 if test "x$ac_ct_DUMPBIN" = x; then 6294 DUMPBIN=":" 6295 else 6296 case $cross_compiling:$ac_tool_warned in 6297yes:) 6298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6299printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6300ac_tool_warned=yes ;; 6301esac 6302 DUMPBIN=$ac_ct_DUMPBIN 6303 fi 6304fi 6305 6306 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6307 *COFF*) 6308 DUMPBIN="$DUMPBIN -symbols -headers" 6309 ;; 6310 *) 6311 DUMPBIN=: 6312 ;; 6313 esac 6314 fi 6315 6316 if test : != "$DUMPBIN"; then 6317 NM=$DUMPBIN 6318 fi 6319fi 6320test -z "$NM" && NM=nm 6321 6322 6323 6324 6325 6326 6327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6328printf %s "checking the name lister ($NM) interface... " >&6; } 6329if test ${lt_cv_nm_interface+y} 6330then : 6331 printf %s "(cached) " >&6 6332else case e in #( 6333 e) lt_cv_nm_interface="BSD nm" 6334 echo "int some_variable = 0;" > conftest.$ac_ext 6335 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6336 (eval "$ac_compile" 2>conftest.err) 6337 cat conftest.err >&5 6338 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6339 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6340 cat conftest.err >&5 6341 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6342 cat conftest.out >&5 6343 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6344 lt_cv_nm_interface="MS dumpbin" 6345 fi 6346 rm -f conftest* ;; 6347esac 6348fi 6349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6350printf "%s\n" "$lt_cv_nm_interface" >&6; } 6351 6352# find the maximum length of command line arguments 6353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6354printf %s "checking the maximum length of command line arguments... " >&6; } 6355if test ${lt_cv_sys_max_cmd_len+y} 6356then : 6357 printf %s "(cached) " >&6 6358else case e in #( 6359 e) i=0 6360 teststring=ABCD 6361 6362 case $build_os in 6363 msdosdjgpp*) 6364 # On DJGPP, this test can blow up pretty badly due to problems in libc 6365 # (any single argument exceeding 2000 bytes causes a buffer overrun 6366 # during glob expansion). Even if it were fixed, the result of this 6367 # check would be larger than it should be. 6368 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6369 ;; 6370 6371 gnu*) 6372 # Under GNU Hurd, this test is not required because there is 6373 # no limit to the length of command line arguments. 6374 # Libtool will interpret -1 as no limit whatsoever 6375 lt_cv_sys_max_cmd_len=-1; 6376 ;; 6377 6378 cygwin* | mingw* | cegcc*) 6379 # On Win9x/ME, this test blows up -- it succeeds, but takes 6380 # about 5 minutes as the teststring grows exponentially. 6381 # Worse, since 9x/ME are not pre-emptively multitasking, 6382 # you end up with a "frozen" computer, even though with patience 6383 # the test eventually succeeds (with a max line length of 256k). 6384 # Instead, let's just punt: use the minimum linelength reported by 6385 # all of the supported platforms: 8192 (on NT/2K/XP). 6386 lt_cv_sys_max_cmd_len=8192; 6387 ;; 6388 6389 mint*) 6390 # On MiNT this can take a long time and run out of memory. 6391 lt_cv_sys_max_cmd_len=8192; 6392 ;; 6393 6394 amigaos*) 6395 # On AmigaOS with pdksh, this test takes hours, literally. 6396 # So we just punt and use a minimum line length of 8192. 6397 lt_cv_sys_max_cmd_len=8192; 6398 ;; 6399 6400 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6401 # This has been around since 386BSD, at least. Likely further. 6402 if test -x /sbin/sysctl; then 6403 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6404 elif test -x /usr/sbin/sysctl; then 6405 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6406 else 6407 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6408 fi 6409 # And add a safety zone 6410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6412 ;; 6413 6414 interix*) 6415 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6416 lt_cv_sys_max_cmd_len=196608 6417 ;; 6418 6419 os2*) 6420 # The test takes a long time on OS/2. 6421 lt_cv_sys_max_cmd_len=8192 6422 ;; 6423 6424 osf*) 6425 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6426 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6427 # nice to cause kernel panics so lets avoid the loop below. 6428 # First set a reasonable default. 6429 lt_cv_sys_max_cmd_len=16384 6430 # 6431 if test -x /sbin/sysconfig; then 6432 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6433 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6434 esac 6435 fi 6436 ;; 6437 sco3.2v5*) 6438 lt_cv_sys_max_cmd_len=102400 6439 ;; 6440 sysv5* | sco5v6* | sysv4.2uw2*) 6441 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6442 if test -n "$kargmax"; then 6443 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6444 else 6445 lt_cv_sys_max_cmd_len=32768 6446 fi 6447 ;; 6448 *) 6449 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6450 if test -n "$lt_cv_sys_max_cmd_len" && \ 6451 test undefined != "$lt_cv_sys_max_cmd_len"; then 6452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6454 else 6455 # Make teststring a little bigger before we do anything with it. 6456 # a 1K string should be a reasonable start. 6457 for i in 1 2 3 4 5 6 7 8; do 6458 teststring=$teststring$teststring 6459 done 6460 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6461 # If test is not a shell built-in, we'll probably end up computing a 6462 # maximum length that is only half of the actual maximum length, but 6463 # we can't tell. 6464 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6465 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6466 test 17 != "$i" # 1/2 MB should be enough 6467 do 6468 i=`expr $i + 1` 6469 teststring=$teststring$teststring 6470 done 6471 # Only check the string length outside the loop. 6472 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6473 teststring= 6474 # Add a significant safety factor because C++ compilers can tack on 6475 # massive amounts of additional arguments before passing them to the 6476 # linker. It appears as though 1/2 is a usable value. 6477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6478 fi 6479 ;; 6480 esac 6481 ;; 6482esac 6483fi 6484 6485if test -n "$lt_cv_sys_max_cmd_len"; then 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6487printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6488else 6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6490printf "%s\n" "none" >&6; } 6491fi 6492max_cmd_len=$lt_cv_sys_max_cmd_len 6493 6494 6495 6496 6497 6498 6499: ${CP="cp -f"} 6500: ${MV="mv -f"} 6501: ${RM="rm -f"} 6502 6503if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6504 lt_unset=unset 6505else 6506 lt_unset=false 6507fi 6508 6509 6510 6511 6512 6513# test EBCDIC or ASCII 6514case `echo X|tr X '\101'` in 6515 A) # ASCII based system 6516 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6517 lt_SP2NL='tr \040 \012' 6518 lt_NL2SP='tr \015\012 \040\040' 6519 ;; 6520 *) # EBCDIC based system 6521 lt_SP2NL='tr \100 \n' 6522 lt_NL2SP='tr \r\n \100\100' 6523 ;; 6524esac 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6535printf %s "checking how to convert $build file names to $host format... " >&6; } 6536if test ${lt_cv_to_host_file_cmd+y} 6537then : 6538 printf %s "(cached) " >&6 6539else case e in #( 6540 e) case $host in 6541 *-*-mingw* ) 6542 case $build in 6543 *-*-mingw* ) # actually msys 6544 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6545 ;; 6546 *-*-cygwin* ) 6547 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6548 ;; 6549 * ) # otherwise, assume *nix 6550 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6551 ;; 6552 esac 6553 ;; 6554 *-*-cygwin* ) 6555 case $build in 6556 *-*-mingw* ) # actually msys 6557 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6558 ;; 6559 *-*-cygwin* ) 6560 lt_cv_to_host_file_cmd=func_convert_file_noop 6561 ;; 6562 * ) # otherwise, assume *nix 6563 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6564 ;; 6565 esac 6566 ;; 6567 * ) # unhandled hosts (and "normal" native builds) 6568 lt_cv_to_host_file_cmd=func_convert_file_noop 6569 ;; 6570esac 6571 ;; 6572esac 6573fi 6574 6575to_host_file_cmd=$lt_cv_to_host_file_cmd 6576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6577printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6578 6579 6580 6581 6582 6583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6584printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6585if test ${lt_cv_to_tool_file_cmd+y} 6586then : 6587 printf %s "(cached) " >&6 6588else case e in #( 6589 e) #assume ordinary cross tools, or native build. 6590lt_cv_to_tool_file_cmd=func_convert_file_noop 6591case $host in 6592 *-*-mingw* ) 6593 case $build in 6594 *-*-mingw* ) # actually msys 6595 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6596 ;; 6597 esac 6598 ;; 6599esac 6600 ;; 6601esac 6602fi 6603 6604to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6606printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6607 6608 6609 6610 6611 6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6613printf %s "checking for $LD option to reload object files... " >&6; } 6614if test ${lt_cv_ld_reload_flag+y} 6615then : 6616 printf %s "(cached) " >&6 6617else case e in #( 6618 e) lt_cv_ld_reload_flag='-r' ;; 6619esac 6620fi 6621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6622printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6623reload_flag=$lt_cv_ld_reload_flag 6624case $reload_flag in 6625"" | " "*) ;; 6626*) reload_flag=" $reload_flag" ;; 6627esac 6628reload_cmds='$LD$reload_flag -o $output$reload_objs' 6629case $host_os in 6630 cygwin* | mingw* | pw32* | cegcc*) 6631 if test yes != "$GCC"; then 6632 reload_cmds=false 6633 fi 6634 ;; 6635 darwin*) 6636 if test yes = "$GCC"; then 6637 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6638 else 6639 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6640 fi 6641 ;; 6642esac 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}file; ac_word=$2 6655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656printf %s "checking for $ac_word... " >&6; } 6657if test ${ac_cv_prog_FILECMD+y} 6658then : 6659 printf %s "(cached) " >&6 6660else case e in #( 6661 e) if test -n "$FILECMD"; then 6662 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6663else 6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 case $as_dir in #((( 6669 '') as_dir=./ ;; 6670 */) ;; 6671 *) as_dir=$as_dir/ ;; 6672 esac 6673 for ac_exec_ext in '' $ac_executable_extensions; do 6674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6675 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6677 break 2 6678 fi 6679done 6680 done 6681IFS=$as_save_IFS 6682 6683fi ;; 6684esac 6685fi 6686FILECMD=$ac_cv_prog_FILECMD 6687if test -n "$FILECMD"; then 6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6689printf "%s\n" "$FILECMD" >&6; } 6690else 6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6692printf "%s\n" "no" >&6; } 6693fi 6694 6695 6696fi 6697if test -z "$ac_cv_prog_FILECMD"; then 6698 ac_ct_FILECMD=$FILECMD 6699 # Extract the first word of "file", so it can be a program name with args. 6700set dummy file; ac_word=$2 6701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6702printf %s "checking for $ac_word... " >&6; } 6703if test ${ac_cv_prog_ac_ct_FILECMD+y} 6704then : 6705 printf %s "(cached) " >&6 6706else case e in #( 6707 e) if test -n "$ac_ct_FILECMD"; then 6708 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6709else 6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6711for as_dir in $PATH 6712do 6713 IFS=$as_save_IFS 6714 case $as_dir in #((( 6715 '') as_dir=./ ;; 6716 */) ;; 6717 *) as_dir=$as_dir/ ;; 6718 esac 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6721 ac_cv_prog_ac_ct_FILECMD="file" 6722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725done 6726 done 6727IFS=$as_save_IFS 6728 6729fi ;; 6730esac 6731fi 6732ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6733if test -n "$ac_ct_FILECMD"; then 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6735printf "%s\n" "$ac_ct_FILECMD" >&6; } 6736else 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738printf "%s\n" "no" >&6; } 6739fi 6740 6741 if test "x$ac_ct_FILECMD" = x; then 6742 FILECMD=":" 6743 else 6744 case $cross_compiling:$ac_tool_warned in 6745yes:) 6746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6747printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6748ac_tool_warned=yes ;; 6749esac 6750 FILECMD=$ac_ct_FILECMD 6751 fi 6752else 6753 FILECMD="$ac_cv_prog_FILECMD" 6754fi 6755 6756 6757 6758 6759 6760 6761 6762if test -n "$ac_tool_prefix"; then 6763 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6764set dummy ${ac_tool_prefix}objdump; ac_word=$2 6765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6766printf %s "checking for $ac_word... " >&6; } 6767if test ${ac_cv_prog_OBJDUMP+y} 6768then : 6769 printf %s "(cached) " >&6 6770else case e in #( 6771 e) if test -n "$OBJDUMP"; then 6772 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6773else 6774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6775for as_dir in $PATH 6776do 6777 IFS=$as_save_IFS 6778 case $as_dir in #((( 6779 '') as_dir=./ ;; 6780 */) ;; 6781 *) as_dir=$as_dir/ ;; 6782 esac 6783 for ac_exec_ext in '' $ac_executable_extensions; do 6784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6785 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6787 break 2 6788 fi 6789done 6790 done 6791IFS=$as_save_IFS 6792 6793fi ;; 6794esac 6795fi 6796OBJDUMP=$ac_cv_prog_OBJDUMP 6797if test -n "$OBJDUMP"; then 6798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6799printf "%s\n" "$OBJDUMP" >&6; } 6800else 6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6802printf "%s\n" "no" >&6; } 6803fi 6804 6805 6806fi 6807if test -z "$ac_cv_prog_OBJDUMP"; then 6808 ac_ct_OBJDUMP=$OBJDUMP 6809 # Extract the first word of "objdump", so it can be a program name with args. 6810set dummy objdump; ac_word=$2 6811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6812printf %s "checking for $ac_word... " >&6; } 6813if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6814then : 6815 printf %s "(cached) " >&6 6816else case e in #( 6817 e) if test -n "$ac_ct_OBJDUMP"; then 6818 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6819else 6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6821for as_dir in $PATH 6822do 6823 IFS=$as_save_IFS 6824 case $as_dir in #((( 6825 '') as_dir=./ ;; 6826 */) ;; 6827 *) as_dir=$as_dir/ ;; 6828 esac 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6831 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835done 6836 done 6837IFS=$as_save_IFS 6838 6839fi ;; 6840esac 6841fi 6842ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6843if test -n "$ac_ct_OBJDUMP"; then 6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6845printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6846else 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848printf "%s\n" "no" >&6; } 6849fi 6850 6851 if test "x$ac_ct_OBJDUMP" = x; then 6852 OBJDUMP="false" 6853 else 6854 case $cross_compiling:$ac_tool_warned in 6855yes:) 6856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6858ac_tool_warned=yes ;; 6859esac 6860 OBJDUMP=$ac_ct_OBJDUMP 6861 fi 6862else 6863 OBJDUMP="$ac_cv_prog_OBJDUMP" 6864fi 6865 6866test -z "$OBJDUMP" && OBJDUMP=objdump 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6877printf %s "checking how to recognize dependent libraries... " >&6; } 6878if test ${lt_cv_deplibs_check_method+y} 6879then : 6880 printf %s "(cached) " >&6 6881else case e in #( 6882 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6883lt_cv_file_magic_test_file= 6884lt_cv_deplibs_check_method='unknown' 6885# Need to set the preceding variable on all platforms that support 6886# interlibrary dependencies. 6887# 'none' -- dependencies not supported. 6888# 'unknown' -- same as none, but documents that we really don't know. 6889# 'pass_all' -- all dependencies passed with no checks. 6890# 'test_compile' -- check by making test program. 6891# 'file_magic [[regex]]' -- check by looking for files in library path 6892# that responds to the $file_magic_cmd with a given extended regex. 6893# If you have 'file' or equivalent on your system and you're not sure 6894# whether 'pass_all' will *always* work, you probably want this one. 6895 6896case $host_os in 6897aix[4-9]*) 6898 lt_cv_deplibs_check_method=pass_all 6899 ;; 6900 6901beos*) 6902 lt_cv_deplibs_check_method=pass_all 6903 ;; 6904 6905bsdi[45]*) 6906 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6907 lt_cv_file_magic_cmd='$FILECMD -L' 6908 lt_cv_file_magic_test_file=/shlib/libc.so 6909 ;; 6910 6911cygwin*) 6912 # func_win32_libid is a shell function defined in ltmain.sh 6913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6914 lt_cv_file_magic_cmd='func_win32_libid' 6915 ;; 6916 6917mingw* | pw32*) 6918 # Base MSYS/MinGW do not provide the 'file' command needed by 6919 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6920 # unless we find 'file', for example because we are cross-compiling. 6921 if ( file / ) >/dev/null 2>&1; then 6922 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6923 lt_cv_file_magic_cmd='func_win32_libid' 6924 else 6925 # Keep this pattern in sync with the one in func_win32_libid. 6926 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6927 lt_cv_file_magic_cmd='$OBJDUMP -f' 6928 fi 6929 ;; 6930 6931cegcc*) 6932 # use the weaker test based on 'objdump'. See mingw*. 6933 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6934 lt_cv_file_magic_cmd='$OBJDUMP -f' 6935 ;; 6936 6937darwin* | rhapsody*) 6938 lt_cv_deplibs_check_method=pass_all 6939 ;; 6940 6941freebsd* | dragonfly* | midnightbsd*) 6942 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6943 case $host_cpu in 6944 i*86 ) 6945 # Not sure whether the presence of OpenBSD here was a mistake. 6946 # Let's accept both of them until this is cleared up. 6947 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6948 lt_cv_file_magic_cmd=$FILECMD 6949 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6950 ;; 6951 esac 6952 else 6953 lt_cv_deplibs_check_method=pass_all 6954 fi 6955 ;; 6956 6957haiku*) 6958 lt_cv_deplibs_check_method=pass_all 6959 ;; 6960 6961hpux10.20* | hpux11*) 6962 lt_cv_file_magic_cmd=$FILECMD 6963 case $host_cpu in 6964 ia64*) 6965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6966 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6967 ;; 6968 hppa*64*) 6969 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]' 6970 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6971 ;; 6972 *) 6973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6974 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6975 ;; 6976 esac 6977 ;; 6978 6979interix[3-9]*) 6980 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6982 ;; 6983 6984irix5* | irix6* | nonstopux*) 6985 case $LD in 6986 *-32|*"-32 ") libmagic=32-bit;; 6987 *-n32|*"-n32 ") libmagic=N32;; 6988 *-64|*"-64 ") libmagic=64-bit;; 6989 *) libmagic=never-match;; 6990 esac 6991 lt_cv_deplibs_check_method=pass_all 6992 ;; 6993 6994# This must be glibc/ELF. 6995linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6996 lt_cv_deplibs_check_method=pass_all 6997 ;; 6998 6999netbsd*) 7000 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7002 else 7003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7004 fi 7005 ;; 7006 7007newos6*) 7008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7009 lt_cv_file_magic_cmd=$FILECMD 7010 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7011 ;; 7012 7013*nto* | *qnx*) 7014 lt_cv_deplibs_check_method=pass_all 7015 ;; 7016 7017openbsd* | bitrig*) 7018 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7020 else 7021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7022 fi 7023 ;; 7024 7025osf3* | osf4* | osf5*) 7026 lt_cv_deplibs_check_method=pass_all 7027 ;; 7028 7029rdos*) 7030 lt_cv_deplibs_check_method=pass_all 7031 ;; 7032 7033solaris*) 7034 lt_cv_deplibs_check_method=pass_all 7035 ;; 7036 7037sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7038 lt_cv_deplibs_check_method=pass_all 7039 ;; 7040 7041sysv4 | sysv4.3*) 7042 case $host_vendor in 7043 motorola) 7044 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]' 7045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7046 ;; 7047 ncr) 7048 lt_cv_deplibs_check_method=pass_all 7049 ;; 7050 sequent) 7051 lt_cv_file_magic_cmd='/bin/file' 7052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7053 ;; 7054 sni) 7055 lt_cv_file_magic_cmd='/bin/file' 7056 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7057 lt_cv_file_magic_test_file=/lib/libc.so 7058 ;; 7059 siemens) 7060 lt_cv_deplibs_check_method=pass_all 7061 ;; 7062 pc) 7063 lt_cv_deplibs_check_method=pass_all 7064 ;; 7065 esac 7066 ;; 7067 7068tpf*) 7069 lt_cv_deplibs_check_method=pass_all 7070 ;; 7071os2*) 7072 lt_cv_deplibs_check_method=pass_all 7073 ;; 7074esac 7075 ;; 7076esac 7077fi 7078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7079printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7080 7081file_magic_glob= 7082want_nocaseglob=no 7083if test "$build" = "$host"; then 7084 case $host_os in 7085 mingw* | pw32*) 7086 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7087 want_nocaseglob=yes 7088 else 7089 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7090 fi 7091 ;; 7092 esac 7093fi 7094 7095file_magic_cmd=$lt_cv_file_magic_cmd 7096deplibs_check_method=$lt_cv_deplibs_check_method 7097test -z "$deplibs_check_method" && deplibs_check_method=unknown 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120if test -n "$ac_tool_prefix"; then 7121 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7122set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124printf %s "checking for $ac_word... " >&6; } 7125if test ${ac_cv_prog_DLLTOOL+y} 7126then : 7127 printf %s "(cached) " >&6 7128else case e in #( 7129 e) if test -n "$DLLTOOL"; then 7130 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7131else 7132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7133for as_dir in $PATH 7134do 7135 IFS=$as_save_IFS 7136 case $as_dir in #((( 7137 '') as_dir=./ ;; 7138 */) ;; 7139 *) as_dir=$as_dir/ ;; 7140 esac 7141 for ac_exec_ext in '' $ac_executable_extensions; do 7142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7143 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7145 break 2 7146 fi 7147done 7148 done 7149IFS=$as_save_IFS 7150 7151fi ;; 7152esac 7153fi 7154DLLTOOL=$ac_cv_prog_DLLTOOL 7155if test -n "$DLLTOOL"; then 7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7157printf "%s\n" "$DLLTOOL" >&6; } 7158else 7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160printf "%s\n" "no" >&6; } 7161fi 7162 7163 7164fi 7165if test -z "$ac_cv_prog_DLLTOOL"; then 7166 ac_ct_DLLTOOL=$DLLTOOL 7167 # Extract the first word of "dlltool", so it can be a program name with args. 7168set dummy dlltool; ac_word=$2 7169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7170printf %s "checking for $ac_word... " >&6; } 7171if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7172then : 7173 printf %s "(cached) " >&6 7174else case e in #( 7175 e) if test -n "$ac_ct_DLLTOOL"; then 7176 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7177else 7178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179for as_dir in $PATH 7180do 7181 IFS=$as_save_IFS 7182 case $as_dir in #((( 7183 '') as_dir=./ ;; 7184 */) ;; 7185 *) as_dir=$as_dir/ ;; 7186 esac 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7189 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193done 7194 done 7195IFS=$as_save_IFS 7196 7197fi ;; 7198esac 7199fi 7200ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7201if test -n "$ac_ct_DLLTOOL"; then 7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7203printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7204else 7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7206printf "%s\n" "no" >&6; } 7207fi 7208 7209 if test "x$ac_ct_DLLTOOL" = x; then 7210 DLLTOOL="false" 7211 else 7212 case $cross_compiling:$ac_tool_warned in 7213yes:) 7214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7215printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7216ac_tool_warned=yes ;; 7217esac 7218 DLLTOOL=$ac_ct_DLLTOOL 7219 fi 7220else 7221 DLLTOOL="$ac_cv_prog_DLLTOOL" 7222fi 7223 7224test -z "$DLLTOOL" && DLLTOOL=dlltool 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7236printf %s "checking how to associate runtime and link libraries... " >&6; } 7237if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7238then : 7239 printf %s "(cached) " >&6 7240else case e in #( 7241 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 7242 7243case $host_os in 7244cygwin* | mingw* | pw32* | cegcc*) 7245 # two different shell functions defined in ltmain.sh; 7246 # decide which one to use based on capabilities of $DLLTOOL 7247 case `$DLLTOOL --help 2>&1` in 7248 *--identify-strict*) 7249 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7250 ;; 7251 *) 7252 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7253 ;; 7254 esac 7255 ;; 7256*) 7257 # fallback: assume linklib IS sharedlib 7258 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7259 ;; 7260esac 7261 ;; 7262esac 7263fi 7264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7265printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7266sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7267test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7268 7269 7270 7271 7272 7273 7274 7275if test -n "$ac_tool_prefix"; then 7276 for ac_prog in ar 7277 do 7278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7279set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7281printf %s "checking for $ac_word... " >&6; } 7282if test ${ac_cv_prog_AR+y} 7283then : 7284 printf %s "(cached) " >&6 7285else case e in #( 7286 e) if test -n "$AR"; then 7287 ac_cv_prog_AR="$AR" # Let the user override the test. 7288else 7289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7290for as_dir in $PATH 7291do 7292 IFS=$as_save_IFS 7293 case $as_dir in #((( 7294 '') as_dir=./ ;; 7295 */) ;; 7296 *) as_dir=$as_dir/ ;; 7297 esac 7298 for ac_exec_ext in '' $ac_executable_extensions; do 7299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7300 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7302 break 2 7303 fi 7304done 7305 done 7306IFS=$as_save_IFS 7307 7308fi ;; 7309esac 7310fi 7311AR=$ac_cv_prog_AR 7312if test -n "$AR"; then 7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7314printf "%s\n" "$AR" >&6; } 7315else 7316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7317printf "%s\n" "no" >&6; } 7318fi 7319 7320 7321 test -n "$AR" && break 7322 done 7323fi 7324if test -z "$AR"; then 7325 ac_ct_AR=$AR 7326 for ac_prog in ar 7327do 7328 # Extract the first word of "$ac_prog", so it can be a program name with args. 7329set dummy $ac_prog; ac_word=$2 7330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7331printf %s "checking for $ac_word... " >&6; } 7332if test ${ac_cv_prog_ac_ct_AR+y} 7333then : 7334 printf %s "(cached) " >&6 7335else case e in #( 7336 e) if test -n "$ac_ct_AR"; then 7337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7338else 7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7340for as_dir in $PATH 7341do 7342 IFS=$as_save_IFS 7343 case $as_dir in #((( 7344 '') as_dir=./ ;; 7345 */) ;; 7346 *) as_dir=$as_dir/ ;; 7347 esac 7348 for ac_exec_ext in '' $ac_executable_extensions; do 7349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7350 ac_cv_prog_ac_ct_AR="$ac_prog" 7351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7352 break 2 7353 fi 7354done 7355 done 7356IFS=$as_save_IFS 7357 7358fi ;; 7359esac 7360fi 7361ac_ct_AR=$ac_cv_prog_ac_ct_AR 7362if test -n "$ac_ct_AR"; then 7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7364printf "%s\n" "$ac_ct_AR" >&6; } 7365else 7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7367printf "%s\n" "no" >&6; } 7368fi 7369 7370 7371 test -n "$ac_ct_AR" && break 7372done 7373 7374 if test "x$ac_ct_AR" = x; then 7375 AR="false" 7376 else 7377 case $cross_compiling:$ac_tool_warned in 7378yes:) 7379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7380printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7381ac_tool_warned=yes ;; 7382esac 7383 AR=$ac_ct_AR 7384 fi 7385fi 7386 7387: ${AR=ar} 7388 7389 7390 7391 7392 7393 7394# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7395# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7396# higher priority because thats what people were doing historically (setting 7397# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7398# variable obsoleted/removed. 7399 7400test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7401lt_ar_flags=$AR_FLAGS 7402 7403 7404 7405 7406 7407 7408# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7409# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7410 7411 7412 7413 7414 7415 7416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7417printf %s "checking for archiver @FILE support... " >&6; } 7418if test ${lt_cv_ar_at_file+y} 7419then : 7420 printf %s "(cached) " >&6 7421else case e in #( 7422 e) lt_cv_ar_at_file=no 7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7424/* end confdefs.h. */ 7425 7426int 7427main (void) 7428{ 7429 7430 ; 7431 return 0; 7432} 7433_ACEOF 7434if ac_fn_c_try_compile "$LINENO" 7435then : 7436 echo conftest.$ac_objext > conftest.lst 7437 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7439 (eval $lt_ar_try) 2>&5 7440 ac_status=$? 7441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7442 test $ac_status = 0; } 7443 if test 0 -eq "$ac_status"; then 7444 # Ensure the archiver fails upon bogus file names. 7445 rm -f conftest.$ac_objext libconftest.a 7446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7447 (eval $lt_ar_try) 2>&5 7448 ac_status=$? 7449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7450 test $ac_status = 0; } 7451 if test 0 -ne "$ac_status"; then 7452 lt_cv_ar_at_file=@ 7453 fi 7454 fi 7455 rm -f conftest.* libconftest.a 7456 7457fi 7458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7459 ;; 7460esac 7461fi 7462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7463printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7464 7465if test no = "$lt_cv_ar_at_file"; then 7466 archiver_list_spec= 7467else 7468 archiver_list_spec=$lt_cv_ar_at_file 7469fi 7470 7471 7472 7473 7474 7475 7476 7477if test -n "$ac_tool_prefix"; then 7478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7479set dummy ${ac_tool_prefix}strip; ac_word=$2 7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7481printf %s "checking for $ac_word... " >&6; } 7482if test ${ac_cv_prog_STRIP+y} 7483then : 7484 printf %s "(cached) " >&6 7485else case e in #( 7486 e) if test -n "$STRIP"; then 7487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7488else 7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7490for as_dir in $PATH 7491do 7492 IFS=$as_save_IFS 7493 case $as_dir in #((( 7494 '') as_dir=./ ;; 7495 */) ;; 7496 *) as_dir=$as_dir/ ;; 7497 esac 7498 for ac_exec_ext in '' $ac_executable_extensions; do 7499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7500 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7502 break 2 7503 fi 7504done 7505 done 7506IFS=$as_save_IFS 7507 7508fi ;; 7509esac 7510fi 7511STRIP=$ac_cv_prog_STRIP 7512if test -n "$STRIP"; then 7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7514printf "%s\n" "$STRIP" >&6; } 7515else 7516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7517printf "%s\n" "no" >&6; } 7518fi 7519 7520 7521fi 7522if test -z "$ac_cv_prog_STRIP"; then 7523 ac_ct_STRIP=$STRIP 7524 # Extract the first word of "strip", so it can be a program name with args. 7525set dummy strip; ac_word=$2 7526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7527printf %s "checking for $ac_word... " >&6; } 7528if test ${ac_cv_prog_ac_ct_STRIP+y} 7529then : 7530 printf %s "(cached) " >&6 7531else case e in #( 7532 e) if test -n "$ac_ct_STRIP"; then 7533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7534else 7535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7536for as_dir in $PATH 7537do 7538 IFS=$as_save_IFS 7539 case $as_dir in #((( 7540 '') as_dir=./ ;; 7541 */) ;; 7542 *) as_dir=$as_dir/ ;; 7543 esac 7544 for ac_exec_ext in '' $ac_executable_extensions; do 7545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7546 ac_cv_prog_ac_ct_STRIP="strip" 7547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7548 break 2 7549 fi 7550done 7551 done 7552IFS=$as_save_IFS 7553 7554fi ;; 7555esac 7556fi 7557ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7558if test -n "$ac_ct_STRIP"; then 7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7560printf "%s\n" "$ac_ct_STRIP" >&6; } 7561else 7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7563printf "%s\n" "no" >&6; } 7564fi 7565 7566 if test "x$ac_ct_STRIP" = x; then 7567 STRIP=":" 7568 else 7569 case $cross_compiling:$ac_tool_warned in 7570yes:) 7571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7572printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7573ac_tool_warned=yes ;; 7574esac 7575 STRIP=$ac_ct_STRIP 7576 fi 7577else 7578 STRIP="$ac_cv_prog_STRIP" 7579fi 7580 7581test -z "$STRIP" && STRIP=: 7582 7583 7584 7585 7586 7587 7588if test -n "$ac_tool_prefix"; then 7589 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7590set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7592printf %s "checking for $ac_word... " >&6; } 7593if test ${ac_cv_prog_RANLIB+y} 7594then : 7595 printf %s "(cached) " >&6 7596else case e in #( 7597 e) if test -n "$RANLIB"; then 7598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7599else 7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7601for as_dir in $PATH 7602do 7603 IFS=$as_save_IFS 7604 case $as_dir in #((( 7605 '') as_dir=./ ;; 7606 */) ;; 7607 *) as_dir=$as_dir/ ;; 7608 esac 7609 for ac_exec_ext in '' $ac_executable_extensions; do 7610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7611 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7613 break 2 7614 fi 7615done 7616 done 7617IFS=$as_save_IFS 7618 7619fi ;; 7620esac 7621fi 7622RANLIB=$ac_cv_prog_RANLIB 7623if test -n "$RANLIB"; then 7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7625printf "%s\n" "$RANLIB" >&6; } 7626else 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7628printf "%s\n" "no" >&6; } 7629fi 7630 7631 7632fi 7633if test -z "$ac_cv_prog_RANLIB"; then 7634 ac_ct_RANLIB=$RANLIB 7635 # Extract the first word of "ranlib", so it can be a program name with args. 7636set dummy ranlib; ac_word=$2 7637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7638printf %s "checking for $ac_word... " >&6; } 7639if test ${ac_cv_prog_ac_ct_RANLIB+y} 7640then : 7641 printf %s "(cached) " >&6 7642else case e in #( 7643 e) if test -n "$ac_ct_RANLIB"; then 7644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7645else 7646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7647for as_dir in $PATH 7648do 7649 IFS=$as_save_IFS 7650 case $as_dir in #((( 7651 '') as_dir=./ ;; 7652 */) ;; 7653 *) as_dir=$as_dir/ ;; 7654 esac 7655 for ac_exec_ext in '' $ac_executable_extensions; do 7656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7657 ac_cv_prog_ac_ct_RANLIB="ranlib" 7658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7659 break 2 7660 fi 7661done 7662 done 7663IFS=$as_save_IFS 7664 7665fi ;; 7666esac 7667fi 7668ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7669if test -n "$ac_ct_RANLIB"; then 7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7671printf "%s\n" "$ac_ct_RANLIB" >&6; } 7672else 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7674printf "%s\n" "no" >&6; } 7675fi 7676 7677 if test "x$ac_ct_RANLIB" = x; then 7678 RANLIB=":" 7679 else 7680 case $cross_compiling:$ac_tool_warned in 7681yes:) 7682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7683printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7684ac_tool_warned=yes ;; 7685esac 7686 RANLIB=$ac_ct_RANLIB 7687 fi 7688else 7689 RANLIB="$ac_cv_prog_RANLIB" 7690fi 7691 7692test -z "$RANLIB" && RANLIB=: 7693 7694 7695 7696 7697 7698 7699# Determine commands to create old-style static archives. 7700old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7701old_postinstall_cmds='chmod 644 $oldlib' 7702old_postuninstall_cmds= 7703 7704if test -n "$RANLIB"; then 7705 case $host_os in 7706 bitrig* | openbsd*) 7707 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7708 ;; 7709 *) 7710 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7711 ;; 7712 esac 7713 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7714fi 7715 7716case $host_os in 7717 darwin*) 7718 lock_old_archive_extraction=yes ;; 7719 *) 7720 lock_old_archive_extraction=no ;; 7721esac 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761# If no C compiler was specified, use CC. 7762LTCC=${LTCC-"$CC"} 7763 7764# If no C compiler flags were specified, use CFLAGS. 7765LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7766 7767# Allow CC to be a program name with arguments. 7768compiler=$CC 7769 7770 7771# Check for command to grab the raw symbol name followed by C symbol from nm. 7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7773printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7774if test ${lt_cv_sys_global_symbol_pipe+y} 7775then : 7776 printf %s "(cached) " >&6 7777else case e in #( 7778 e) 7779# These are sane defaults that work on at least a few old systems. 7780# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7781 7782# Character class describing NM global symbol codes. 7783symcode='[BCDEGRST]' 7784 7785# Regexp to match symbols that can be accessed directly from C. 7786sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7787 7788# Define system-specific variables. 7789case $host_os in 7790aix*) 7791 symcode='[BCDT]' 7792 ;; 7793cygwin* | mingw* | pw32* | cegcc*) 7794 symcode='[ABCDGISTW]' 7795 ;; 7796hpux*) 7797 if test ia64 = "$host_cpu"; then 7798 symcode='[ABCDEGRST]' 7799 fi 7800 ;; 7801irix* | nonstopux*) 7802 symcode='[BCDEGRST]' 7803 ;; 7804osf*) 7805 symcode='[BCDEGQRST]' 7806 ;; 7807solaris*) 7808 symcode='[BDRT]' 7809 ;; 7810sco3.2v5*) 7811 symcode='[DT]' 7812 ;; 7813sysv4.2uw2*) 7814 symcode='[DT]' 7815 ;; 7816sysv5* | sco5v6* | unixware* | OpenUNIX*) 7817 symcode='[ABDT]' 7818 ;; 7819sysv4) 7820 symcode='[DFNSTU]' 7821 ;; 7822esac 7823 7824# If we're using GNU nm, then use its standard symbol codes. 7825case `$NM -V 2>&1` in 7826*GNU* | *'with BFD'*) 7827 symcode='[ABCDGIRSTW]' ;; 7828esac 7829 7830if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7831 # Gets list of data symbols to import. 7832 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7833 # Adjust the below global symbol transforms to fixup imported variables. 7834 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7835 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7836 lt_c_name_lib_hook="\ 7837 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7838 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7839else 7840 # Disable hooks by default. 7841 lt_cv_sys_global_symbol_to_import= 7842 lt_cdecl_hook= 7843 lt_c_name_hook= 7844 lt_c_name_lib_hook= 7845fi 7846 7847# Transform an extracted symbol line into a proper C declaration. 7848# Some systems (esp. on ia64) link data and code symbols differently, 7849# so use this general approach. 7850lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7851$lt_cdecl_hook\ 7852" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7853" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7854 7855# Transform an extracted symbol line into symbol name and symbol address 7856lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7857$lt_c_name_hook\ 7858" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7859" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7860 7861# Transform an extracted symbol line into symbol name with lib prefix and 7862# symbol address. 7863lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7864$lt_c_name_lib_hook\ 7865" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7866" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7867" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7868 7869# Handle CRLF in mingw tool chain 7870opt_cr= 7871case $build_os in 7872mingw*) 7873 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7874 ;; 7875esac 7876 7877# Try without a prefix underscore, then with it. 7878for ac_symprfx in "" "_"; do 7879 7880 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7881 symxfrm="\\1 $ac_symprfx\\2 \\2" 7882 7883 # Write the raw and C identifiers. 7884 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7885 # Fake it for dumpbin and say T for any non-static function, 7886 # D for any global variable and I for any imported variable. 7887 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7888 # which start with @ or ?. 7889 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7890" {last_section=section; section=\$ 3};"\ 7891" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7892" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7893" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7894" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7895" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7896" \$ 0!~/External *\|/{next};"\ 7897" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7898" {if(hide[section]) next};"\ 7899" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7900" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7901" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7902" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7903" ' prfx=^$ac_symprfx" 7904 else 7905 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7906 fi 7907 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7908 7909 # Check to see that the pipe works correctly. 7910 pipe_works=no 7911 7912 rm -f conftest* 7913 cat > conftest.$ac_ext <<_LT_EOF 7914#ifdef __cplusplus 7915extern "C" { 7916#endif 7917char nm_test_var; 7918void nm_test_func(void); 7919void nm_test_func(void){} 7920#ifdef __cplusplus 7921} 7922#endif 7923int main(){nm_test_var='a';nm_test_func();return(0);} 7924_LT_EOF 7925 7926 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7927 (eval $ac_compile) 2>&5 7928 ac_status=$? 7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7930 test $ac_status = 0; }; then 7931 # Now try to grab the symbols. 7932 nlist=conftest.nm 7933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7934 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7935 ac_status=$? 7936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7937 test $ac_status = 0; } && test -s "$nlist"; then 7938 # Try sorting and uniquifying the output. 7939 if sort "$nlist" | uniq > "$nlist"T; then 7940 mv -f "$nlist"T "$nlist" 7941 else 7942 rm -f "$nlist"T 7943 fi 7944 7945 # Make sure that we snagged all the symbols we need. 7946 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7947 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7948 cat <<_LT_EOF > conftest.$ac_ext 7949/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7950#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7951/* DATA imports from DLLs on WIN32 can't be const, because runtime 7952 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7953# define LT_DLSYM_CONST 7954#elif defined __osf__ 7955/* This system does not cope well with relocations in const data. */ 7956# define LT_DLSYM_CONST 7957#else 7958# define LT_DLSYM_CONST const 7959#endif 7960 7961#ifdef __cplusplus 7962extern "C" { 7963#endif 7964 7965_LT_EOF 7966 # Now generate the symbol file. 7967 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7968 7969 cat <<_LT_EOF >> conftest.$ac_ext 7970 7971/* The mapping between symbol names and symbols. */ 7972LT_DLSYM_CONST struct { 7973 const char *name; 7974 void *address; 7975} 7976lt__PROGRAM__LTX_preloaded_symbols[] = 7977{ 7978 { "@PROGRAM@", (void *) 0 }, 7979_LT_EOF 7980 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7981 cat <<\_LT_EOF >> conftest.$ac_ext 7982 {0, (void *) 0} 7983}; 7984 7985/* This works around a problem in FreeBSD linker */ 7986#ifdef FREEBSD_WORKAROUND 7987static const void *lt_preloaded_setup() { 7988 return lt__PROGRAM__LTX_preloaded_symbols; 7989} 7990#endif 7991 7992#ifdef __cplusplus 7993} 7994#endif 7995_LT_EOF 7996 # Now try linking the two files. 7997 mv conftest.$ac_objext conftstm.$ac_objext 7998 lt_globsym_save_LIBS=$LIBS 7999 lt_globsym_save_CFLAGS=$CFLAGS 8000 LIBS=conftstm.$ac_objext 8001 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8003 (eval $ac_link) 2>&5 8004 ac_status=$? 8005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8006 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8007 pipe_works=yes 8008 fi 8009 LIBS=$lt_globsym_save_LIBS 8010 CFLAGS=$lt_globsym_save_CFLAGS 8011 else 8012 echo "cannot find nm_test_func in $nlist" >&5 8013 fi 8014 else 8015 echo "cannot find nm_test_var in $nlist" >&5 8016 fi 8017 else 8018 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8019 fi 8020 else 8021 echo "$progname: failed program was:" >&5 8022 cat conftest.$ac_ext >&5 8023 fi 8024 rm -rf conftest* conftst* 8025 8026 # Do not use the global_symbol_pipe unless it works. 8027 if test yes = "$pipe_works"; then 8028 break 8029 else 8030 lt_cv_sys_global_symbol_pipe= 8031 fi 8032done 8033 ;; 8034esac 8035fi 8036 8037if test -z "$lt_cv_sys_global_symbol_pipe"; then 8038 lt_cv_sys_global_symbol_to_cdecl= 8039fi 8040if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8042printf "%s\n" "failed" >&6; } 8043else 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8045printf "%s\n" "ok" >&6; } 8046fi 8047 8048# Response file support. 8049if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8050 nm_file_list_spec='@' 8051elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8052 nm_file_list_spec='@' 8053fi 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8092printf %s "checking for sysroot... " >&6; } 8093 8094# Check whether --with-sysroot was given. 8095if test ${with_sysroot+y} 8096then : 8097 withval=$with_sysroot; 8098else case e in #( 8099 e) with_sysroot=no ;; 8100esac 8101fi 8102 8103 8104lt_sysroot= 8105case $with_sysroot in #( 8106 yes) 8107 if test yes = "$GCC"; then 8108 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8109 fi 8110 ;; #( 8111 /*) 8112 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 8113 ;; #( 8114 no|'') 8115 ;; #( 8116 *) 8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8118printf "%s\n" "$with_sysroot" >&6; } 8119 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8120 ;; 8121esac 8122 8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8124printf "%s\n" "${lt_sysroot:-no}" >&6; } 8125 8126 8127 8128 8129 8130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8131printf %s "checking for a working dd... " >&6; } 8132if test ${ac_cv_path_lt_DD+y} 8133then : 8134 printf %s "(cached) " >&6 8135else case e in #( 8136 e) printf 0123456789abcdef0123456789abcdef >conftest.i 8137cat conftest.i conftest.i >conftest2.i 8138: ${lt_DD:=$DD} 8139if test -z "$lt_DD"; then 8140 ac_path_lt_DD_found=false 8141 # Loop through the user's path and test for each of PROGNAME-LIST 8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8143for as_dir in $PATH 8144do 8145 IFS=$as_save_IFS 8146 case $as_dir in #((( 8147 '') as_dir=./ ;; 8148 */) ;; 8149 *) as_dir=$as_dir/ ;; 8150 esac 8151 for ac_prog in dd 8152 do 8153 for ac_exec_ext in '' $ac_executable_extensions; do 8154 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8155 as_fn_executable_p "$ac_path_lt_DD" || continue 8156if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8157 cmp -s conftest.i conftest.out \ 8158 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8159fi 8160 $ac_path_lt_DD_found && break 3 8161 done 8162 done 8163 done 8164IFS=$as_save_IFS 8165 if test -z "$ac_cv_path_lt_DD"; then 8166 : 8167 fi 8168else 8169 ac_cv_path_lt_DD=$lt_DD 8170fi 8171 8172rm -f conftest.i conftest2.i conftest.out ;; 8173esac 8174fi 8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8176printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8177 8178 8179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8180printf %s "checking how to truncate binary pipes... " >&6; } 8181if test ${lt_cv_truncate_bin+y} 8182then : 8183 printf %s "(cached) " >&6 8184else case e in #( 8185 e) printf 0123456789abcdef0123456789abcdef >conftest.i 8186cat conftest.i conftest.i >conftest2.i 8187lt_cv_truncate_bin= 8188if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8189 cmp -s conftest.i conftest.out \ 8190 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8191fi 8192rm -f conftest.i conftest2.i conftest.out 8193test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 8194esac 8195fi 8196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8197printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8198 8199 8200 8201 8202 8203 8204 8205# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8206func_cc_basename () 8207{ 8208 for cc_temp in $*""; do 8209 case $cc_temp in 8210 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8211 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8212 \-*) ;; 8213 *) break;; 8214 esac 8215 done 8216 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8217} 8218 8219# Check whether --enable-libtool-lock was given. 8220if test ${enable_libtool_lock+y} 8221then : 8222 enableval=$enable_libtool_lock; 8223fi 8224 8225test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8226 8227# Some flags need to be propagated to the compiler or linker for good 8228# libtool support. 8229case $host in 8230ia64-*-hpux*) 8231 # Find out what ABI is being produced by ac_compile, and set mode 8232 # options accordingly. 8233 echo 'int i;' > conftest.$ac_ext 8234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8235 (eval $ac_compile) 2>&5 8236 ac_status=$? 8237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8238 test $ac_status = 0; }; then 8239 case `$FILECMD conftest.$ac_objext` in 8240 *ELF-32*) 8241 HPUX_IA64_MODE=32 8242 ;; 8243 *ELF-64*) 8244 HPUX_IA64_MODE=64 8245 ;; 8246 esac 8247 fi 8248 rm -rf conftest* 8249 ;; 8250*-*-irix6*) 8251 # Find out what ABI is being produced by ac_compile, and set linker 8252 # options accordingly. 8253 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8255 (eval $ac_compile) 2>&5 8256 ac_status=$? 8257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8258 test $ac_status = 0; }; then 8259 if test yes = "$lt_cv_prog_gnu_ld"; then 8260 case `$FILECMD conftest.$ac_objext` in 8261 *32-bit*) 8262 LD="${LD-ld} -melf32bsmip" 8263 ;; 8264 *N32*) 8265 LD="${LD-ld} -melf32bmipn32" 8266 ;; 8267 *64-bit*) 8268 LD="${LD-ld} -melf64bmip" 8269 ;; 8270 esac 8271 else 8272 case `$FILECMD conftest.$ac_objext` in 8273 *32-bit*) 8274 LD="${LD-ld} -32" 8275 ;; 8276 *N32*) 8277 LD="${LD-ld} -n32" 8278 ;; 8279 *64-bit*) 8280 LD="${LD-ld} -64" 8281 ;; 8282 esac 8283 fi 8284 fi 8285 rm -rf conftest* 8286 ;; 8287 8288mips64*-*linux*) 8289 # Find out what ABI is being produced by ac_compile, and set linker 8290 # options accordingly. 8291 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8293 (eval $ac_compile) 2>&5 8294 ac_status=$? 8295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8296 test $ac_status = 0; }; then 8297 emul=elf 8298 case `$FILECMD conftest.$ac_objext` in 8299 *32-bit*) 8300 emul="${emul}32" 8301 ;; 8302 *64-bit*) 8303 emul="${emul}64" 8304 ;; 8305 esac 8306 case `$FILECMD conftest.$ac_objext` in 8307 *MSB*) 8308 emul="${emul}btsmip" 8309 ;; 8310 *LSB*) 8311 emul="${emul}ltsmip" 8312 ;; 8313 esac 8314 case `$FILECMD conftest.$ac_objext` in 8315 *N32*) 8316 emul="${emul}n32" 8317 ;; 8318 esac 8319 LD="${LD-ld} -m $emul" 8320 fi 8321 rm -rf conftest* 8322 ;; 8323 8324x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8325s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8326 # Find out what ABI is being produced by ac_compile, and set linker 8327 # options accordingly. Note that the listed cases only cover the 8328 # situations where additional linker options are needed (such as when 8329 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8330 # vice versa); the common cases where no linker options are needed do 8331 # not appear in the list. 8332 echo 'int i;' > conftest.$ac_ext 8333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8334 (eval $ac_compile) 2>&5 8335 ac_status=$? 8336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8337 test $ac_status = 0; }; then 8338 case `$FILECMD conftest.o` in 8339 *32-bit*) 8340 case $host in 8341 x86_64-*kfreebsd*-gnu) 8342 LD="${LD-ld} -m elf_i386_fbsd" 8343 ;; 8344 x86_64-*linux*) 8345 case `$FILECMD conftest.o` in 8346 *x86-64*) 8347 LD="${LD-ld} -m elf32_x86_64" 8348 ;; 8349 *) 8350 LD="${LD-ld} -m elf_i386" 8351 ;; 8352 esac 8353 ;; 8354 powerpc64le-*linux*) 8355 LD="${LD-ld} -m elf32lppclinux" 8356 ;; 8357 powerpc64-*linux*) 8358 LD="${LD-ld} -m elf32ppclinux" 8359 ;; 8360 s390x-*linux*) 8361 LD="${LD-ld} -m elf_s390" 8362 ;; 8363 sparc64-*linux*) 8364 LD="${LD-ld} -m elf32_sparc" 8365 ;; 8366 esac 8367 ;; 8368 *64-bit*) 8369 case $host in 8370 x86_64-*kfreebsd*-gnu) 8371 LD="${LD-ld} -m elf_x86_64_fbsd" 8372 ;; 8373 x86_64-*linux*) 8374 LD="${LD-ld} -m elf_x86_64" 8375 ;; 8376 powerpcle-*linux*) 8377 LD="${LD-ld} -m elf64lppc" 8378 ;; 8379 powerpc-*linux*) 8380 LD="${LD-ld} -m elf64ppc" 8381 ;; 8382 s390*-*linux*|s390*-*tpf*) 8383 LD="${LD-ld} -m elf64_s390" 8384 ;; 8385 sparc*-*linux*) 8386 LD="${LD-ld} -m elf64_sparc" 8387 ;; 8388 esac 8389 ;; 8390 esac 8391 fi 8392 rm -rf conftest* 8393 ;; 8394 8395*-*-sco3.2v5*) 8396 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8397 SAVE_CFLAGS=$CFLAGS 8398 CFLAGS="$CFLAGS -belf" 8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8400printf %s "checking whether the C compiler needs -belf... " >&6; } 8401if test ${lt_cv_cc_needs_belf+y} 8402then : 8403 printf %s "(cached) " >&6 8404else case e in #( 8405 e) ac_ext=c 8406ac_cpp='$CPP $CPPFLAGS' 8407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8409ac_compiler_gnu=$ac_cv_c_compiler_gnu 8410 8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8412/* end confdefs.h. */ 8413 8414int 8415main (void) 8416{ 8417 8418 ; 8419 return 0; 8420} 8421_ACEOF 8422if ac_fn_c_try_link "$LINENO" 8423then : 8424 lt_cv_cc_needs_belf=yes 8425else case e in #( 8426 e) lt_cv_cc_needs_belf=no ;; 8427esac 8428fi 8429rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8430 conftest$ac_exeext conftest.$ac_ext 8431 ac_ext=c 8432ac_cpp='$CPP $CPPFLAGS' 8433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8435ac_compiler_gnu=$ac_cv_c_compiler_gnu 8436 ;; 8437esac 8438fi 8439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8440printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8441 if test yes != "$lt_cv_cc_needs_belf"; then 8442 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8443 CFLAGS=$SAVE_CFLAGS 8444 fi 8445 ;; 8446*-*solaris*) 8447 # Find out what ABI is being produced by ac_compile, and set linker 8448 # options accordingly. 8449 echo 'int i;' > conftest.$ac_ext 8450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8451 (eval $ac_compile) 2>&5 8452 ac_status=$? 8453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8454 test $ac_status = 0; }; then 8455 case `$FILECMD conftest.o` in 8456 *64-bit*) 8457 case $lt_cv_prog_gnu_ld in 8458 yes*) 8459 case $host in 8460 i?86-*-solaris*|x86_64-*-solaris*) 8461 LD="${LD-ld} -m elf_x86_64" 8462 ;; 8463 sparc*-*-solaris*) 8464 LD="${LD-ld} -m elf64_sparc" 8465 ;; 8466 esac 8467 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8468 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8469 LD=${LD-ld}_sol2 8470 fi 8471 ;; 8472 *) 8473 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8474 LD="${LD-ld} -64" 8475 fi 8476 ;; 8477 esac 8478 ;; 8479 esac 8480 fi 8481 rm -rf conftest* 8482 ;; 8483esac 8484 8485need_locks=$enable_libtool_lock 8486 8487if test -n "$ac_tool_prefix"; then 8488 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8489set dummy ${ac_tool_prefix}mt; ac_word=$2 8490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8491printf %s "checking for $ac_word... " >&6; } 8492if test ${ac_cv_prog_MANIFEST_TOOL+y} 8493then : 8494 printf %s "(cached) " >&6 8495else case e in #( 8496 e) if test -n "$MANIFEST_TOOL"; then 8497 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8498else 8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8500for as_dir in $PATH 8501do 8502 IFS=$as_save_IFS 8503 case $as_dir in #((( 8504 '') as_dir=./ ;; 8505 */) ;; 8506 *) as_dir=$as_dir/ ;; 8507 esac 8508 for ac_exec_ext in '' $ac_executable_extensions; do 8509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8510 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8512 break 2 8513 fi 8514done 8515 done 8516IFS=$as_save_IFS 8517 8518fi ;; 8519esac 8520fi 8521MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8522if test -n "$MANIFEST_TOOL"; then 8523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8524printf "%s\n" "$MANIFEST_TOOL" >&6; } 8525else 8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8527printf "%s\n" "no" >&6; } 8528fi 8529 8530 8531fi 8532if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8533 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8534 # Extract the first word of "mt", so it can be a program name with args. 8535set dummy mt; ac_word=$2 8536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8537printf %s "checking for $ac_word... " >&6; } 8538if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8539then : 8540 printf %s "(cached) " >&6 8541else case e in #( 8542 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8543 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8544else 8545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8546for as_dir in $PATH 8547do 8548 IFS=$as_save_IFS 8549 case $as_dir in #((( 8550 '') as_dir=./ ;; 8551 */) ;; 8552 *) as_dir=$as_dir/ ;; 8553 esac 8554 for ac_exec_ext in '' $ac_executable_extensions; do 8555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8556 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8558 break 2 8559 fi 8560done 8561 done 8562IFS=$as_save_IFS 8563 8564fi ;; 8565esac 8566fi 8567ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8568if test -n "$ac_ct_MANIFEST_TOOL"; then 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8570printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8571else 8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8573printf "%s\n" "no" >&6; } 8574fi 8575 8576 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8577 MANIFEST_TOOL=":" 8578 else 8579 case $cross_compiling:$ac_tool_warned in 8580yes:) 8581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8582printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8583ac_tool_warned=yes ;; 8584esac 8585 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8586 fi 8587else 8588 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8589fi 8590 8591test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8593printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8594if test ${lt_cv_path_mainfest_tool+y} 8595then : 8596 printf %s "(cached) " >&6 8597else case e in #( 8598 e) lt_cv_path_mainfest_tool=no 8599 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8600 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8601 cat conftest.err >&5 8602 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8603 lt_cv_path_mainfest_tool=yes 8604 fi 8605 rm -f conftest* ;; 8606esac 8607fi 8608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8609printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8610if test yes != "$lt_cv_path_mainfest_tool"; then 8611 MANIFEST_TOOL=: 8612fi 8613 8614 8615 8616 8617 8618 8619 case $host_os in 8620 rhapsody* | darwin*) 8621 if test -n "$ac_tool_prefix"; then 8622 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8623set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8625printf %s "checking for $ac_word... " >&6; } 8626if test ${ac_cv_prog_DSYMUTIL+y} 8627then : 8628 printf %s "(cached) " >&6 8629else case e in #( 8630 e) if test -n "$DSYMUTIL"; then 8631 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8632else 8633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8634for as_dir in $PATH 8635do 8636 IFS=$as_save_IFS 8637 case $as_dir in #((( 8638 '') as_dir=./ ;; 8639 */) ;; 8640 *) as_dir=$as_dir/ ;; 8641 esac 8642 for ac_exec_ext in '' $ac_executable_extensions; do 8643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8644 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8646 break 2 8647 fi 8648done 8649 done 8650IFS=$as_save_IFS 8651 8652fi ;; 8653esac 8654fi 8655DSYMUTIL=$ac_cv_prog_DSYMUTIL 8656if test -n "$DSYMUTIL"; then 8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8658printf "%s\n" "$DSYMUTIL" >&6; } 8659else 8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8661printf "%s\n" "no" >&6; } 8662fi 8663 8664 8665fi 8666if test -z "$ac_cv_prog_DSYMUTIL"; then 8667 ac_ct_DSYMUTIL=$DSYMUTIL 8668 # Extract the first word of "dsymutil", so it can be a program name with args. 8669set dummy dsymutil; ac_word=$2 8670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8671printf %s "checking for $ac_word... " >&6; } 8672if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8673then : 8674 printf %s "(cached) " >&6 8675else case e in #( 8676 e) if test -n "$ac_ct_DSYMUTIL"; then 8677 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8678else 8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8680for as_dir in $PATH 8681do 8682 IFS=$as_save_IFS 8683 case $as_dir in #((( 8684 '') as_dir=./ ;; 8685 */) ;; 8686 *) as_dir=$as_dir/ ;; 8687 esac 8688 for ac_exec_ext in '' $ac_executable_extensions; do 8689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8690 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8692 break 2 8693 fi 8694done 8695 done 8696IFS=$as_save_IFS 8697 8698fi ;; 8699esac 8700fi 8701ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8702if test -n "$ac_ct_DSYMUTIL"; then 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8704printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8705else 8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8707printf "%s\n" "no" >&6; } 8708fi 8709 8710 if test "x$ac_ct_DSYMUTIL" = x; then 8711 DSYMUTIL=":" 8712 else 8713 case $cross_compiling:$ac_tool_warned in 8714yes:) 8715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8716printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8717ac_tool_warned=yes ;; 8718esac 8719 DSYMUTIL=$ac_ct_DSYMUTIL 8720 fi 8721else 8722 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8723fi 8724 8725 if test -n "$ac_tool_prefix"; then 8726 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8727set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8729printf %s "checking for $ac_word... " >&6; } 8730if test ${ac_cv_prog_NMEDIT+y} 8731then : 8732 printf %s "(cached) " >&6 8733else case e in #( 8734 e) if test -n "$NMEDIT"; then 8735 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8736else 8737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8738for as_dir in $PATH 8739do 8740 IFS=$as_save_IFS 8741 case $as_dir in #((( 8742 '') as_dir=./ ;; 8743 */) ;; 8744 *) as_dir=$as_dir/ ;; 8745 esac 8746 for ac_exec_ext in '' $ac_executable_extensions; do 8747 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8748 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8749 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8750 break 2 8751 fi 8752done 8753 done 8754IFS=$as_save_IFS 8755 8756fi ;; 8757esac 8758fi 8759NMEDIT=$ac_cv_prog_NMEDIT 8760if test -n "$NMEDIT"; then 8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8762printf "%s\n" "$NMEDIT" >&6; } 8763else 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8765printf "%s\n" "no" >&6; } 8766fi 8767 8768 8769fi 8770if test -z "$ac_cv_prog_NMEDIT"; then 8771 ac_ct_NMEDIT=$NMEDIT 8772 # Extract the first word of "nmedit", so it can be a program name with args. 8773set dummy nmedit; ac_word=$2 8774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8775printf %s "checking for $ac_word... " >&6; } 8776if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8777then : 8778 printf %s "(cached) " >&6 8779else case e in #( 8780 e) if test -n "$ac_ct_NMEDIT"; then 8781 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8782else 8783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8784for as_dir in $PATH 8785do 8786 IFS=$as_save_IFS 8787 case $as_dir in #((( 8788 '') as_dir=./ ;; 8789 */) ;; 8790 *) as_dir=$as_dir/ ;; 8791 esac 8792 for ac_exec_ext in '' $ac_executable_extensions; do 8793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8794 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8796 break 2 8797 fi 8798done 8799 done 8800IFS=$as_save_IFS 8801 8802fi ;; 8803esac 8804fi 8805ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8806if test -n "$ac_ct_NMEDIT"; then 8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8808printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8809else 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8811printf "%s\n" "no" >&6; } 8812fi 8813 8814 if test "x$ac_ct_NMEDIT" = x; then 8815 NMEDIT=":" 8816 else 8817 case $cross_compiling:$ac_tool_warned in 8818yes:) 8819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8820printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8821ac_tool_warned=yes ;; 8822esac 8823 NMEDIT=$ac_ct_NMEDIT 8824 fi 8825else 8826 NMEDIT="$ac_cv_prog_NMEDIT" 8827fi 8828 8829 if test -n "$ac_tool_prefix"; then 8830 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8831set dummy ${ac_tool_prefix}lipo; ac_word=$2 8832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8833printf %s "checking for $ac_word... " >&6; } 8834if test ${ac_cv_prog_LIPO+y} 8835then : 8836 printf %s "(cached) " >&6 8837else case e in #( 8838 e) if test -n "$LIPO"; then 8839 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8840else 8841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8842for as_dir in $PATH 8843do 8844 IFS=$as_save_IFS 8845 case $as_dir in #((( 8846 '') as_dir=./ ;; 8847 */) ;; 8848 *) as_dir=$as_dir/ ;; 8849 esac 8850 for ac_exec_ext in '' $ac_executable_extensions; do 8851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8852 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8854 break 2 8855 fi 8856done 8857 done 8858IFS=$as_save_IFS 8859 8860fi ;; 8861esac 8862fi 8863LIPO=$ac_cv_prog_LIPO 8864if test -n "$LIPO"; then 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8866printf "%s\n" "$LIPO" >&6; } 8867else 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8869printf "%s\n" "no" >&6; } 8870fi 8871 8872 8873fi 8874if test -z "$ac_cv_prog_LIPO"; then 8875 ac_ct_LIPO=$LIPO 8876 # Extract the first word of "lipo", so it can be a program name with args. 8877set dummy lipo; ac_word=$2 8878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8879printf %s "checking for $ac_word... " >&6; } 8880if test ${ac_cv_prog_ac_ct_LIPO+y} 8881then : 8882 printf %s "(cached) " >&6 8883else case e in #( 8884 e) if test -n "$ac_ct_LIPO"; then 8885 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8886else 8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8888for as_dir in $PATH 8889do 8890 IFS=$as_save_IFS 8891 case $as_dir in #((( 8892 '') as_dir=./ ;; 8893 */) ;; 8894 *) as_dir=$as_dir/ ;; 8895 esac 8896 for ac_exec_ext in '' $ac_executable_extensions; do 8897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8898 ac_cv_prog_ac_ct_LIPO="lipo" 8899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8900 break 2 8901 fi 8902done 8903 done 8904IFS=$as_save_IFS 8905 8906fi ;; 8907esac 8908fi 8909ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8910if test -n "$ac_ct_LIPO"; then 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8912printf "%s\n" "$ac_ct_LIPO" >&6; } 8913else 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8915printf "%s\n" "no" >&6; } 8916fi 8917 8918 if test "x$ac_ct_LIPO" = x; then 8919 LIPO=":" 8920 else 8921 case $cross_compiling:$ac_tool_warned in 8922yes:) 8923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8924printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8925ac_tool_warned=yes ;; 8926esac 8927 LIPO=$ac_ct_LIPO 8928 fi 8929else 8930 LIPO="$ac_cv_prog_LIPO" 8931fi 8932 8933 if test -n "$ac_tool_prefix"; then 8934 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8935set dummy ${ac_tool_prefix}otool; ac_word=$2 8936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8937printf %s "checking for $ac_word... " >&6; } 8938if test ${ac_cv_prog_OTOOL+y} 8939then : 8940 printf %s "(cached) " >&6 8941else case e in #( 8942 e) if test -n "$OTOOL"; then 8943 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8944else 8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8946for as_dir in $PATH 8947do 8948 IFS=$as_save_IFS 8949 case $as_dir in #((( 8950 '') as_dir=./ ;; 8951 */) ;; 8952 *) as_dir=$as_dir/ ;; 8953 esac 8954 for ac_exec_ext in '' $ac_executable_extensions; do 8955 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8956 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8958 break 2 8959 fi 8960done 8961 done 8962IFS=$as_save_IFS 8963 8964fi ;; 8965esac 8966fi 8967OTOOL=$ac_cv_prog_OTOOL 8968if test -n "$OTOOL"; then 8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8970printf "%s\n" "$OTOOL" >&6; } 8971else 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8973printf "%s\n" "no" >&6; } 8974fi 8975 8976 8977fi 8978if test -z "$ac_cv_prog_OTOOL"; then 8979 ac_ct_OTOOL=$OTOOL 8980 # Extract the first word of "otool", so it can be a program name with args. 8981set dummy otool; ac_word=$2 8982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8983printf %s "checking for $ac_word... " >&6; } 8984if test ${ac_cv_prog_ac_ct_OTOOL+y} 8985then : 8986 printf %s "(cached) " >&6 8987else case e in #( 8988 e) if test -n "$ac_ct_OTOOL"; then 8989 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8990else 8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8992for as_dir in $PATH 8993do 8994 IFS=$as_save_IFS 8995 case $as_dir in #((( 8996 '') as_dir=./ ;; 8997 */) ;; 8998 *) as_dir=$as_dir/ ;; 8999 esac 9000 for ac_exec_ext in '' $ac_executable_extensions; do 9001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9002 ac_cv_prog_ac_ct_OTOOL="otool" 9003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9004 break 2 9005 fi 9006done 9007 done 9008IFS=$as_save_IFS 9009 9010fi ;; 9011esac 9012fi 9013ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9014if test -n "$ac_ct_OTOOL"; then 9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9016printf "%s\n" "$ac_ct_OTOOL" >&6; } 9017else 9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9019printf "%s\n" "no" >&6; } 9020fi 9021 9022 if test "x$ac_ct_OTOOL" = x; then 9023 OTOOL=":" 9024 else 9025 case $cross_compiling:$ac_tool_warned in 9026yes:) 9027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9028printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9029ac_tool_warned=yes ;; 9030esac 9031 OTOOL=$ac_ct_OTOOL 9032 fi 9033else 9034 OTOOL="$ac_cv_prog_OTOOL" 9035fi 9036 9037 if test -n "$ac_tool_prefix"; then 9038 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9039set dummy ${ac_tool_prefix}otool64; ac_word=$2 9040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9041printf %s "checking for $ac_word... " >&6; } 9042if test ${ac_cv_prog_OTOOL64+y} 9043then : 9044 printf %s "(cached) " >&6 9045else case e in #( 9046 e) if test -n "$OTOOL64"; then 9047 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9048else 9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9050for as_dir in $PATH 9051do 9052 IFS=$as_save_IFS 9053 case $as_dir in #((( 9054 '') as_dir=./ ;; 9055 */) ;; 9056 *) as_dir=$as_dir/ ;; 9057 esac 9058 for ac_exec_ext in '' $ac_executable_extensions; do 9059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9060 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9062 break 2 9063 fi 9064done 9065 done 9066IFS=$as_save_IFS 9067 9068fi ;; 9069esac 9070fi 9071OTOOL64=$ac_cv_prog_OTOOL64 9072if test -n "$OTOOL64"; then 9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9074printf "%s\n" "$OTOOL64" >&6; } 9075else 9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9077printf "%s\n" "no" >&6; } 9078fi 9079 9080 9081fi 9082if test -z "$ac_cv_prog_OTOOL64"; then 9083 ac_ct_OTOOL64=$OTOOL64 9084 # Extract the first word of "otool64", so it can be a program name with args. 9085set dummy otool64; ac_word=$2 9086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9087printf %s "checking for $ac_word... " >&6; } 9088if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9089then : 9090 printf %s "(cached) " >&6 9091else case e in #( 9092 e) if test -n "$ac_ct_OTOOL64"; then 9093 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9094else 9095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9096for as_dir in $PATH 9097do 9098 IFS=$as_save_IFS 9099 case $as_dir in #((( 9100 '') as_dir=./ ;; 9101 */) ;; 9102 *) as_dir=$as_dir/ ;; 9103 esac 9104 for ac_exec_ext in '' $ac_executable_extensions; do 9105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9106 ac_cv_prog_ac_ct_OTOOL64="otool64" 9107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9108 break 2 9109 fi 9110done 9111 done 9112IFS=$as_save_IFS 9113 9114fi ;; 9115esac 9116fi 9117ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9118if test -n "$ac_ct_OTOOL64"; then 9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9120printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9121else 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9123printf "%s\n" "no" >&6; } 9124fi 9125 9126 if test "x$ac_ct_OTOOL64" = x; then 9127 OTOOL64=":" 9128 else 9129 case $cross_compiling:$ac_tool_warned in 9130yes:) 9131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9132printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9133ac_tool_warned=yes ;; 9134esac 9135 OTOOL64=$ac_ct_OTOOL64 9136 fi 9137else 9138 OTOOL64="$ac_cv_prog_OTOOL64" 9139fi 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9168printf %s "checking for -single_module linker flag... " >&6; } 9169if test ${lt_cv_apple_cc_single_mod+y} 9170then : 9171 printf %s "(cached) " >&6 9172else case e in #( 9173 e) lt_cv_apple_cc_single_mod=no 9174 if test -z "$LT_MULTI_MODULE"; then 9175 # By default we will add the -single_module flag. You can override 9176 # by either setting the environment variable LT_MULTI_MODULE 9177 # non-empty at configure time, or by adding -multi_module to the 9178 # link flags. 9179 rm -rf libconftest.dylib* 9180 echo "int foo(void){return 1;}" > conftest.c 9181 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9182-dynamiclib -Wl,-single_module conftest.c" >&5 9183 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9184 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9185 _lt_result=$? 9186 # If there is a non-empty error log, and "single_module" 9187 # appears in it, assume the flag caused a linker warning 9188 if test -s conftest.err && $GREP single_module conftest.err; then 9189 cat conftest.err >&5 9190 # Otherwise, if the output was created with a 0 exit code from 9191 # the compiler, it worked. 9192 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9193 lt_cv_apple_cc_single_mod=yes 9194 else 9195 cat conftest.err >&5 9196 fi 9197 rm -rf libconftest.dylib* 9198 rm -f conftest.* 9199 fi ;; 9200esac 9201fi 9202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9203printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9204 9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9206printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9207if test ${lt_cv_ld_exported_symbols_list+y} 9208then : 9209 printf %s "(cached) " >&6 9210else case e in #( 9211 e) lt_cv_ld_exported_symbols_list=no 9212 save_LDFLAGS=$LDFLAGS 9213 echo "_main" > conftest.sym 9214 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9216/* end confdefs.h. */ 9217 9218int 9219main (void) 9220{ 9221 9222 ; 9223 return 0; 9224} 9225_ACEOF 9226if ac_fn_c_try_link "$LINENO" 9227then : 9228 lt_cv_ld_exported_symbols_list=yes 9229else case e in #( 9230 e) lt_cv_ld_exported_symbols_list=no ;; 9231esac 9232fi 9233rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9234 conftest$ac_exeext conftest.$ac_ext 9235 LDFLAGS=$save_LDFLAGS 9236 ;; 9237esac 9238fi 9239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9240printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9241 9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9243printf %s "checking for -force_load linker flag... " >&6; } 9244if test ${lt_cv_ld_force_load+y} 9245then : 9246 printf %s "(cached) " >&6 9247else case e in #( 9248 e) lt_cv_ld_force_load=no 9249 cat > conftest.c << _LT_EOF 9250int forced_loaded() { return 2;} 9251_LT_EOF 9252 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9253 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9254 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9255 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9256 echo "$RANLIB libconftest.a" >&5 9257 $RANLIB libconftest.a 2>&5 9258 cat > conftest.c << _LT_EOF 9259int main() { return 0;} 9260_LT_EOF 9261 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9262 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9263 _lt_result=$? 9264 if test -s conftest.err && $GREP force_load conftest.err; then 9265 cat conftest.err >&5 9266 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9267 lt_cv_ld_force_load=yes 9268 else 9269 cat conftest.err >&5 9270 fi 9271 rm -f conftest.err libconftest.a conftest conftest.c 9272 rm -rf conftest.dSYM 9273 ;; 9274esac 9275fi 9276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9277printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9278 case $host_os in 9279 rhapsody* | darwin1.[012]) 9280 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9281 darwin1.*) 9282 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9283 darwin*) 9284 case $MACOSX_DEPLOYMENT_TARGET,$host in 9285 10.[012],*|,*powerpc*-darwin[5-8]*) 9286 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9287 *) 9288 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9289 esac 9290 ;; 9291 esac 9292 if test yes = "$lt_cv_apple_cc_single_mod"; then 9293 _lt_dar_single_mod='$single_module' 9294 fi 9295 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9296 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9297 else 9298 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9299 fi 9300 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9301 _lt_dsymutil='~$DSYMUTIL $lib || :' 9302 else 9303 _lt_dsymutil= 9304 fi 9305 ;; 9306 esac 9307 9308# func_munge_path_list VARIABLE PATH 9309# ----------------------------------- 9310# VARIABLE is name of variable containing _space_ separated list of 9311# directories to be munged by the contents of PATH, which is string 9312# having a format: 9313# "DIR[:DIR]:" 9314# string "DIR[ DIR]" will be prepended to VARIABLE 9315# ":DIR[:DIR]" 9316# string "DIR[ DIR]" will be appended to VARIABLE 9317# "DIRP[:DIRP]::[DIRA:]DIRA" 9318# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9319# "DIRA[ DIRA]" will be appended to VARIABLE 9320# "DIR[:DIR]" 9321# VARIABLE will be replaced by "DIR[ DIR]" 9322func_munge_path_list () 9323{ 9324 case x$2 in 9325 x) 9326 ;; 9327 *:) 9328 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9329 ;; 9330 x:*) 9331 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9332 ;; 9333 *::*) 9334 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9335 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9336 ;; 9337 *) 9338 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9339 ;; 9340 esac 9341} 9342 9343ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9344" 9345if test "x$ac_cv_header_dlfcn_h" = xyes 9346then : 9347 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9348 9349fi 9350 9351 9352 9353 9354 9355# Set options 9356# Check whether --enable-static was given. 9357if test ${enable_static+y} 9358then : 9359 enableval=$enable_static; p=${PACKAGE-default} 9360 case $enableval in 9361 yes) enable_static=yes ;; 9362 no) enable_static=no ;; 9363 *) 9364 enable_static=no 9365 # Look at the argument we got. We use all the common list separators. 9366 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9367 for pkg in $enableval; do 9368 IFS=$lt_save_ifs 9369 if test "X$pkg" = "X$p"; then 9370 enable_static=yes 9371 fi 9372 done 9373 IFS=$lt_save_ifs 9374 ;; 9375 esac 9376else case e in #( 9377 e) enable_static=no ;; 9378esac 9379fi 9380 9381 9382 9383 9384 9385 9386 9387 9388# Check whether --with-pic was given. 9389if test ${with_pic+y} 9390then : 9391 withval=$with_pic; lt_p=${PACKAGE-default} 9392 case $withval in 9393 yes|no) pic_mode=$withval ;; 9394 *) 9395 pic_mode=default 9396 # Look at the argument we got. We use all the common list separators. 9397 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9398 for lt_pkg in $withval; do 9399 IFS=$lt_save_ifs 9400 if test "X$lt_pkg" = "X$lt_p"; then 9401 pic_mode=yes 9402 fi 9403 done 9404 IFS=$lt_save_ifs 9405 ;; 9406 esac 9407else case e in #( 9408 e) pic_mode=yes ;; 9409esac 9410fi 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 enable_dlopen=no 9421 9422 9423 enable_win32_dll=no 9424 9425 9426 # Check whether --enable-shared was given. 9427if test ${enable_shared+y} 9428then : 9429 enableval=$enable_shared; p=${PACKAGE-default} 9430 case $enableval in 9431 yes) enable_shared=yes ;; 9432 no) enable_shared=no ;; 9433 *) 9434 enable_shared=no 9435 # Look at the argument we got. We use all the common list separators. 9436 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9437 for pkg in $enableval; do 9438 IFS=$lt_save_ifs 9439 if test "X$pkg" = "X$p"; then 9440 enable_shared=yes 9441 fi 9442 done 9443 IFS=$lt_save_ifs 9444 ;; 9445 esac 9446else case e in #( 9447 e) enable_shared=yes ;; 9448esac 9449fi 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 # Check whether --enable-fast-install was given. 9462if test ${enable_fast_install+y} 9463then : 9464 enableval=$enable_fast_install; p=${PACKAGE-default} 9465 case $enableval in 9466 yes) enable_fast_install=yes ;; 9467 no) enable_fast_install=no ;; 9468 *) 9469 enable_fast_install=no 9470 # Look at the argument we got. We use all the common list separators. 9471 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9472 for pkg in $enableval; do 9473 IFS=$lt_save_ifs 9474 if test "X$pkg" = "X$p"; then 9475 enable_fast_install=yes 9476 fi 9477 done 9478 IFS=$lt_save_ifs 9479 ;; 9480 esac 9481else case e in #( 9482 e) enable_fast_install=yes ;; 9483esac 9484fi 9485 9486 9487 9488 9489 9490 9491 9492 9493 shared_archive_member_spec= 9494case $host,$enable_shared in 9495power*-*-aix[5-9]*,yes) 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9497printf %s "checking which variant of shared library versioning to provide... " >&6; } 9498 9499# Check whether --with-aix-soname was given. 9500if test ${with_aix_soname+y} 9501then : 9502 withval=$with_aix_soname; case $withval in 9503 aix|svr4|both) 9504 ;; 9505 *) 9506 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9507 ;; 9508 esac 9509 lt_cv_with_aix_soname=$with_aix_soname 9510else case e in #( 9511 e) if test ${lt_cv_with_aix_soname+y} 9512then : 9513 printf %s "(cached) " >&6 9514else case e in #( 9515 e) lt_cv_with_aix_soname=aix ;; 9516esac 9517fi 9518 9519 with_aix_soname=$lt_cv_with_aix_soname ;; 9520esac 9521fi 9522 9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9524printf "%s\n" "$with_aix_soname" >&6; } 9525 if test aix != "$with_aix_soname"; then 9526 # For the AIX way of multilib, we name the shared archive member 9527 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9528 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9529 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9530 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9531 if test 64 = "${OBJECT_MODE-32}"; then 9532 shared_archive_member_spec=shr_64 9533 else 9534 shared_archive_member_spec=shr 9535 fi 9536 fi 9537 ;; 9538*) 9539 with_aix_soname=aix 9540 ;; 9541esac 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552# This can be used to rebuild libtool when needed 9553LIBTOOL_DEPS=$ltmain 9554 9555# Always use our own libtool. 9556LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587test -z "$LN_S" && LN_S="ln -s" 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602if test -n "${ZSH_VERSION+set}"; then 9603 setopt NO_GLOB_SUBST 9604fi 9605 9606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9607printf %s "checking for objdir... " >&6; } 9608if test ${lt_cv_objdir+y} 9609then : 9610 printf %s "(cached) " >&6 9611else case e in #( 9612 e) rm -f .libs 2>/dev/null 9613mkdir .libs 2>/dev/null 9614if test -d .libs; then 9615 lt_cv_objdir=.libs 9616else 9617 # MS-DOS does not allow filenames that begin with a dot. 9618 lt_cv_objdir=_libs 9619fi 9620rmdir .libs 2>/dev/null ;; 9621esac 9622fi 9623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9624printf "%s\n" "$lt_cv_objdir" >&6; } 9625objdir=$lt_cv_objdir 9626 9627 9628 9629 9630 9631printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9632 9633 9634 9635 9636case $host_os in 9637aix3*) 9638 # AIX sometimes has problems with the GCC collect2 program. For some 9639 # reason, if we set the COLLECT_NAMES environment variable, the problems 9640 # vanish in a puff of smoke. 9641 if test set != "${COLLECT_NAMES+set}"; then 9642 COLLECT_NAMES= 9643 export COLLECT_NAMES 9644 fi 9645 ;; 9646esac 9647 9648# Global variables: 9649ofile=libtool 9650can_build_shared=yes 9651 9652# All known linkers require a '.a' archive for static linking (except MSVC and 9653# ICC, which need '.lib'). 9654libext=a 9655 9656with_gnu_ld=$lt_cv_prog_gnu_ld 9657 9658old_CC=$CC 9659old_CFLAGS=$CFLAGS 9660 9661# Set sane defaults for various variables 9662test -z "$CC" && CC=cc 9663test -z "$LTCC" && LTCC=$CC 9664test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9665test -z "$LD" && LD=ld 9666test -z "$ac_objext" && ac_objext=o 9667 9668func_cc_basename $compiler 9669cc_basename=$func_cc_basename_result 9670 9671 9672# Only perform the check for file, if the check method requires it 9673test -z "$MAGIC_CMD" && MAGIC_CMD=file 9674case $deplibs_check_method in 9675file_magic*) 9676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9678printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9679if test ${lt_cv_path_MAGIC_CMD+y} 9680then : 9681 printf %s "(cached) " >&6 9682else case e in #( 9683 e) case $MAGIC_CMD in 9684[\\/*] | ?:[\\/]*) 9685 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9686 ;; 9687*) 9688 lt_save_MAGIC_CMD=$MAGIC_CMD 9689 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9691 for ac_dir in $ac_dummy; do 9692 IFS=$lt_save_ifs 9693 test -z "$ac_dir" && ac_dir=. 9694 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9695 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9696 if test -n "$file_magic_test_file"; then 9697 case $deplibs_check_method in 9698 "file_magic "*) 9699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9700 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9702 $EGREP "$file_magic_regex" > /dev/null; then 9703 : 9704 else 9705 cat <<_LT_EOF 1>&2 9706 9707*** Warning: the command libtool uses to detect shared libraries, 9708*** $file_magic_cmd, produces output that libtool cannot recognize. 9709*** The result is that libtool may fail to recognize shared libraries 9710*** as such. This will affect the creation of libtool libraries that 9711*** depend on shared libraries, but programs linked with such libtool 9712*** libraries will work regardless of this problem. Nevertheless, you 9713*** may want to report the problem to your system manager and/or to 9714*** bug-libtool@gnu.org 9715 9716_LT_EOF 9717 fi ;; 9718 esac 9719 fi 9720 break 9721 fi 9722 done 9723 IFS=$lt_save_ifs 9724 MAGIC_CMD=$lt_save_MAGIC_CMD 9725 ;; 9726esac ;; 9727esac 9728fi 9729 9730MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9731if test -n "$MAGIC_CMD"; then 9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9733printf "%s\n" "$MAGIC_CMD" >&6; } 9734else 9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9736printf "%s\n" "no" >&6; } 9737fi 9738 9739 9740 9741 9742 9743if test -z "$lt_cv_path_MAGIC_CMD"; then 9744 if test -n "$ac_tool_prefix"; then 9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9746printf %s "checking for file... " >&6; } 9747if test ${lt_cv_path_MAGIC_CMD+y} 9748then : 9749 printf %s "(cached) " >&6 9750else case e in #( 9751 e) case $MAGIC_CMD in 9752[\\/*] | ?:[\\/]*) 9753 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9754 ;; 9755*) 9756 lt_save_MAGIC_CMD=$MAGIC_CMD 9757 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9758 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9759 for ac_dir in $ac_dummy; do 9760 IFS=$lt_save_ifs 9761 test -z "$ac_dir" && ac_dir=. 9762 if test -f "$ac_dir/file"; then 9763 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9764 if test -n "$file_magic_test_file"; then 9765 case $deplibs_check_method in 9766 "file_magic "*) 9767 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9768 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9769 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9770 $EGREP "$file_magic_regex" > /dev/null; then 9771 : 9772 else 9773 cat <<_LT_EOF 1>&2 9774 9775*** Warning: the command libtool uses to detect shared libraries, 9776*** $file_magic_cmd, produces output that libtool cannot recognize. 9777*** The result is that libtool may fail to recognize shared libraries 9778*** as such. This will affect the creation of libtool libraries that 9779*** depend on shared libraries, but programs linked with such libtool 9780*** libraries will work regardless of this problem. Nevertheless, you 9781*** may want to report the problem to your system manager and/or to 9782*** bug-libtool@gnu.org 9783 9784_LT_EOF 9785 fi ;; 9786 esac 9787 fi 9788 break 9789 fi 9790 done 9791 IFS=$lt_save_ifs 9792 MAGIC_CMD=$lt_save_MAGIC_CMD 9793 ;; 9794esac ;; 9795esac 9796fi 9797 9798MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9799if test -n "$MAGIC_CMD"; then 9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9801printf "%s\n" "$MAGIC_CMD" >&6; } 9802else 9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9804printf "%s\n" "no" >&6; } 9805fi 9806 9807 9808 else 9809 MAGIC_CMD=: 9810 fi 9811fi 9812 9813 fi 9814 ;; 9815esac 9816 9817# Use C for the default configuration in the libtool script 9818 9819lt_save_CC=$CC 9820ac_ext=c 9821ac_cpp='$CPP $CPPFLAGS' 9822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9824ac_compiler_gnu=$ac_cv_c_compiler_gnu 9825 9826 9827# Source file extension for C test sources. 9828ac_ext=c 9829 9830# Object file extension for compiled C test sources. 9831objext=o 9832objext=$objext 9833 9834# Code to be used in simple compile tests 9835lt_simple_compile_test_code="int some_variable = 0;" 9836 9837# Code to be used in simple link tests 9838lt_simple_link_test_code='int main(){return(0);}' 9839 9840 9841 9842 9843 9844 9845 9846# If no C compiler was specified, use CC. 9847LTCC=${LTCC-"$CC"} 9848 9849# If no C compiler flags were specified, use CFLAGS. 9850LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9851 9852# Allow CC to be a program name with arguments. 9853compiler=$CC 9854 9855# Save the default compiler, since it gets overwritten when the other 9856# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9857compiler_DEFAULT=$CC 9858 9859# save warnings/boilerplate of simple test code 9860ac_outfile=conftest.$ac_objext 9861echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9862eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9863_lt_compiler_boilerplate=`cat conftest.err` 9864$RM conftest* 9865 9866ac_outfile=conftest.$ac_objext 9867echo "$lt_simple_link_test_code" >conftest.$ac_ext 9868eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9869_lt_linker_boilerplate=`cat conftest.err` 9870$RM -r conftest* 9871 9872 9873## CAVEAT EMPTOR: 9874## There is no encapsulation within the following macros, do not change 9875## the running order or otherwise move them around unless you know exactly 9876## what you are doing... 9877if test -n "$compiler"; then 9878 9879lt_prog_compiler_no_builtin_flag= 9880 9881if test yes = "$GCC"; then 9882 case $cc_basename in 9883 nvcc*) 9884 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9885 *) 9886 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9887 esac 9888 9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9890printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9891if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9892then : 9893 printf %s "(cached) " >&6 9894else case e in #( 9895 e) lt_cv_prog_compiler_rtti_exceptions=no 9896 ac_outfile=conftest.$ac_objext 9897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9898 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9899 # Insert the option either (1) after the last *FLAGS variable, or 9900 # (2) before a word containing "conftest.", or (3) at the end. 9901 # Note that $ac_compile itself does not contain backslashes and begins 9902 # with a dollar sign (not a hyphen), so the echo should work correctly. 9903 # The option is referenced via a variable to avoid confusing sed. 9904 lt_compile=`echo "$ac_compile" | $SED \ 9905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9907 -e 's:$: $lt_compiler_flag:'` 9908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9909 (eval "$lt_compile" 2>conftest.err) 9910 ac_status=$? 9911 cat conftest.err >&5 9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9913 if (exit $ac_status) && test -s "$ac_outfile"; then 9914 # The compiler can only warn and ignore the option if not recognized 9915 # So say no if there are warnings other than the usual output. 9916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9919 lt_cv_prog_compiler_rtti_exceptions=yes 9920 fi 9921 fi 9922 $RM conftest* 9923 ;; 9924esac 9925fi 9926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9927printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9928 9929if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9930 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9931else 9932 : 9933fi 9934 9935fi 9936 9937 9938 9939 9940 9941 9942 lt_prog_compiler_wl= 9943lt_prog_compiler_pic= 9944lt_prog_compiler_static= 9945 9946 9947 if test yes = "$GCC"; then 9948 lt_prog_compiler_wl='-Wl,' 9949 lt_prog_compiler_static='-static' 9950 9951 case $host_os in 9952 aix*) 9953 # All AIX code is PIC. 9954 if test ia64 = "$host_cpu"; then 9955 # AIX 5 now supports IA64 processor 9956 lt_prog_compiler_static='-Bstatic' 9957 fi 9958 lt_prog_compiler_pic='-fPIC' 9959 ;; 9960 9961 amigaos*) 9962 case $host_cpu in 9963 powerpc) 9964 # see comment about AmigaOS4 .so support 9965 lt_prog_compiler_pic='-fPIC' 9966 ;; 9967 m68k) 9968 # FIXME: we need at least 68020 code to build shared libraries, but 9969 # adding the '-m68020' flag to GCC prevents building anything better, 9970 # like '-m68040'. 9971 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9972 ;; 9973 esac 9974 ;; 9975 9976 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9977 # PIC is the default for these OSes. 9978 ;; 9979 9980 mingw* | cygwin* | pw32* | os2* | cegcc*) 9981 # This hack is so that the source file can tell whether it is being 9982 # built for inclusion in a dll (and should export symbols for example). 9983 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9984 # (--disable-auto-import) libraries 9985 lt_prog_compiler_pic='-DDLL_EXPORT' 9986 case $host_os in 9987 os2*) 9988 lt_prog_compiler_static='$wl-static' 9989 ;; 9990 esac 9991 ;; 9992 9993 darwin* | rhapsody*) 9994 # PIC is the default on this platform 9995 # Common symbols not allowed in MH_DYLIB files 9996 lt_prog_compiler_pic='-fno-common' 9997 ;; 9998 9999 haiku*) 10000 # PIC is the default for Haiku. 10001 # The "-static" flag exists, but is broken. 10002 lt_prog_compiler_static= 10003 ;; 10004 10005 hpux*) 10006 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10007 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10008 # sets the default TLS model and affects inlining. 10009 case $host_cpu in 10010 hppa*64*) 10011 # +Z the default 10012 ;; 10013 *) 10014 lt_prog_compiler_pic='-fPIC' 10015 ;; 10016 esac 10017 ;; 10018 10019 interix[3-9]*) 10020 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10021 # Instead, we relocate shared libraries at runtime. 10022 ;; 10023 10024 msdosdjgpp*) 10025 # Just because we use GCC doesn't mean we suddenly get shared libraries 10026 # on systems that don't support them. 10027 lt_prog_compiler_can_build_shared=no 10028 enable_shared=no 10029 ;; 10030 10031 *nto* | *qnx*) 10032 # QNX uses GNU C++, but need to define -shared option too, otherwise 10033 # it will coredump. 10034 lt_prog_compiler_pic='-fPIC -shared' 10035 ;; 10036 10037 sysv4*MP*) 10038 if test -d /usr/nec; then 10039 lt_prog_compiler_pic=-Kconform_pic 10040 fi 10041 ;; 10042 10043 *) 10044 lt_prog_compiler_pic='-fPIC' 10045 ;; 10046 esac 10047 10048 case $cc_basename in 10049 nvcc*) # Cuda Compiler Driver 2.2 10050 lt_prog_compiler_wl='-Xlinker ' 10051 if test -n "$lt_prog_compiler_pic"; then 10052 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10053 fi 10054 ;; 10055 esac 10056 else 10057 # PORTME Check for flag to pass linker flags through the system compiler. 10058 case $host_os in 10059 aix*) 10060 lt_prog_compiler_wl='-Wl,' 10061 if test ia64 = "$host_cpu"; then 10062 # AIX 5 now supports IA64 processor 10063 lt_prog_compiler_static='-Bstatic' 10064 else 10065 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10066 fi 10067 ;; 10068 10069 darwin* | rhapsody*) 10070 # PIC is the default on this platform 10071 # Common symbols not allowed in MH_DYLIB files 10072 lt_prog_compiler_pic='-fno-common' 10073 case $cc_basename in 10074 nagfor*) 10075 # NAG Fortran compiler 10076 lt_prog_compiler_wl='-Wl,-Wl,,' 10077 lt_prog_compiler_pic='-PIC' 10078 lt_prog_compiler_static='-Bstatic' 10079 ;; 10080 esac 10081 ;; 10082 10083 mingw* | cygwin* | pw32* | os2* | cegcc*) 10084 # This hack is so that the source file can tell whether it is being 10085 # built for inclusion in a dll (and should export symbols for example). 10086 lt_prog_compiler_pic='-DDLL_EXPORT' 10087 case $host_os in 10088 os2*) 10089 lt_prog_compiler_static='$wl-static' 10090 ;; 10091 esac 10092 ;; 10093 10094 hpux9* | hpux10* | hpux11*) 10095 lt_prog_compiler_wl='-Wl,' 10096 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10097 # not for PA HP-UX. 10098 case $host_cpu in 10099 hppa*64*|ia64*) 10100 # +Z the default 10101 ;; 10102 *) 10103 lt_prog_compiler_pic='+Z' 10104 ;; 10105 esac 10106 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10107 lt_prog_compiler_static='$wl-a ${wl}archive' 10108 ;; 10109 10110 irix5* | irix6* | nonstopux*) 10111 lt_prog_compiler_wl='-Wl,' 10112 # PIC (with -KPIC) is the default. 10113 lt_prog_compiler_static='-non_shared' 10114 ;; 10115 10116 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10117 case $cc_basename in 10118 # old Intel for x86_64, which still supported -KPIC. 10119 ecc*) 10120 lt_prog_compiler_wl='-Wl,' 10121 lt_prog_compiler_pic='-KPIC' 10122 lt_prog_compiler_static='-static' 10123 ;; 10124 # icc used to be incompatible with GCC. 10125 # ICC 10 doesn't accept -KPIC any more. 10126 icc* | ifort*) 10127 lt_prog_compiler_wl='-Wl,' 10128 lt_prog_compiler_pic='-fPIC' 10129 lt_prog_compiler_static='-static' 10130 ;; 10131 # Lahey Fortran 8.1. 10132 lf95*) 10133 lt_prog_compiler_wl='-Wl,' 10134 lt_prog_compiler_pic='--shared' 10135 lt_prog_compiler_static='--static' 10136 ;; 10137 nagfor*) 10138 # NAG Fortran compiler 10139 lt_prog_compiler_wl='-Wl,-Wl,,' 10140 lt_prog_compiler_pic='-PIC' 10141 lt_prog_compiler_static='-Bstatic' 10142 ;; 10143 tcc*) 10144 # Fabrice Bellard et al's Tiny C Compiler 10145 lt_prog_compiler_wl='-Wl,' 10146 lt_prog_compiler_pic='-fPIC' 10147 lt_prog_compiler_static='-static' 10148 ;; 10149 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10150 # Portland Group compilers (*not* the Pentium gcc compiler, 10151 # which looks to be a dead project) 10152 lt_prog_compiler_wl='-Wl,' 10153 lt_prog_compiler_pic='-fpic' 10154 lt_prog_compiler_static='-Bstatic' 10155 ;; 10156 ccc*) 10157 lt_prog_compiler_wl='-Wl,' 10158 # All Alpha code is PIC. 10159 lt_prog_compiler_static='-non_shared' 10160 ;; 10161 xl* | bgxl* | bgf* | mpixl*) 10162 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10163 lt_prog_compiler_wl='-Wl,' 10164 lt_prog_compiler_pic='-qpic' 10165 lt_prog_compiler_static='-qstaticlink' 10166 ;; 10167 *) 10168 case `$CC -V 2>&1 | $SED 5q` in 10169 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10170 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10171 lt_prog_compiler_pic='-KPIC' 10172 lt_prog_compiler_static='-Bstatic' 10173 lt_prog_compiler_wl='' 10174 ;; 10175 *Sun\ F* | *Sun*Fortran*) 10176 lt_prog_compiler_pic='-KPIC' 10177 lt_prog_compiler_static='-Bstatic' 10178 lt_prog_compiler_wl='-Qoption ld ' 10179 ;; 10180 *Sun\ C*) 10181 # Sun C 5.9 10182 lt_prog_compiler_pic='-KPIC' 10183 lt_prog_compiler_static='-Bstatic' 10184 lt_prog_compiler_wl='-Wl,' 10185 ;; 10186 *Intel*\ [CF]*Compiler*) 10187 lt_prog_compiler_wl='-Wl,' 10188 lt_prog_compiler_pic='-fPIC' 10189 lt_prog_compiler_static='-static' 10190 ;; 10191 *Portland\ Group*) 10192 lt_prog_compiler_wl='-Wl,' 10193 lt_prog_compiler_pic='-fpic' 10194 lt_prog_compiler_static='-Bstatic' 10195 ;; 10196 esac 10197 ;; 10198 esac 10199 ;; 10200 10201 newsos6) 10202 lt_prog_compiler_pic='-KPIC' 10203 lt_prog_compiler_static='-Bstatic' 10204 ;; 10205 10206 *nto* | *qnx*) 10207 # QNX uses GNU C++, but need to define -shared option too, otherwise 10208 # it will coredump. 10209 lt_prog_compiler_pic='-fPIC -shared' 10210 ;; 10211 10212 osf3* | osf4* | osf5*) 10213 lt_prog_compiler_wl='-Wl,' 10214 # All OSF/1 code is PIC. 10215 lt_prog_compiler_static='-non_shared' 10216 ;; 10217 10218 rdos*) 10219 lt_prog_compiler_static='-non_shared' 10220 ;; 10221 10222 solaris*) 10223 lt_prog_compiler_pic='-KPIC' 10224 lt_prog_compiler_static='-Bstatic' 10225 case $cc_basename in 10226 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10227 lt_prog_compiler_wl='-Qoption ld ';; 10228 *) 10229 lt_prog_compiler_wl='-Wl,';; 10230 esac 10231 ;; 10232 10233 sunos4*) 10234 lt_prog_compiler_wl='-Qoption ld ' 10235 lt_prog_compiler_pic='-PIC' 10236 lt_prog_compiler_static='-Bstatic' 10237 ;; 10238 10239 sysv4 | sysv4.2uw2* | sysv4.3*) 10240 lt_prog_compiler_wl='-Wl,' 10241 lt_prog_compiler_pic='-KPIC' 10242 lt_prog_compiler_static='-Bstatic' 10243 ;; 10244 10245 sysv4*MP*) 10246 if test -d /usr/nec; then 10247 lt_prog_compiler_pic='-Kconform_pic' 10248 lt_prog_compiler_static='-Bstatic' 10249 fi 10250 ;; 10251 10252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10253 lt_prog_compiler_wl='-Wl,' 10254 lt_prog_compiler_pic='-KPIC' 10255 lt_prog_compiler_static='-Bstatic' 10256 ;; 10257 10258 unicos*) 10259 lt_prog_compiler_wl='-Wl,' 10260 lt_prog_compiler_can_build_shared=no 10261 ;; 10262 10263 uts4*) 10264 lt_prog_compiler_pic='-pic' 10265 lt_prog_compiler_static='-Bstatic' 10266 ;; 10267 10268 *) 10269 lt_prog_compiler_can_build_shared=no 10270 ;; 10271 esac 10272 fi 10273 10274case $host_os in 10275 # For platforms that do not support PIC, -DPIC is meaningless: 10276 *djgpp*) 10277 lt_prog_compiler_pic= 10278 ;; 10279 *) 10280 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10281 ;; 10282esac 10283 10284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10285printf %s "checking for $compiler option to produce PIC... " >&6; } 10286if test ${lt_cv_prog_compiler_pic+y} 10287then : 10288 printf %s "(cached) " >&6 10289else case e in #( 10290 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 10291esac 10292fi 10293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10294printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10295lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10296 10297# 10298# Check to make sure the PIC flag actually works. 10299# 10300if test -n "$lt_prog_compiler_pic"; then 10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10302printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10303if test ${lt_cv_prog_compiler_pic_works+y} 10304then : 10305 printf %s "(cached) " >&6 10306else case e in #( 10307 e) lt_cv_prog_compiler_pic_works=no 10308 ac_outfile=conftest.$ac_objext 10309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10310 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10311 # Insert the option either (1) after the last *FLAGS variable, or 10312 # (2) before a word containing "conftest.", or (3) at the end. 10313 # Note that $ac_compile itself does not contain backslashes and begins 10314 # with a dollar sign (not a hyphen), so the echo should work correctly. 10315 # The option is referenced via a variable to avoid confusing sed. 10316 lt_compile=`echo "$ac_compile" | $SED \ 10317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10319 -e 's:$: $lt_compiler_flag:'` 10320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10321 (eval "$lt_compile" 2>conftest.err) 10322 ac_status=$? 10323 cat conftest.err >&5 10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10325 if (exit $ac_status) && test -s "$ac_outfile"; then 10326 # The compiler can only warn and ignore the option if not recognized 10327 # So say no if there are warnings other than the usual output. 10328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10331 lt_cv_prog_compiler_pic_works=yes 10332 fi 10333 fi 10334 $RM conftest* 10335 ;; 10336esac 10337fi 10338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10339printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10340 10341if test yes = "$lt_cv_prog_compiler_pic_works"; then 10342 case $lt_prog_compiler_pic in 10343 "" | " "*) ;; 10344 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10345 esac 10346else 10347 lt_prog_compiler_pic= 10348 lt_prog_compiler_can_build_shared=no 10349fi 10350 10351fi 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363# 10364# Check to make sure the static flag actually works. 10365# 10366wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10368printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10369if test ${lt_cv_prog_compiler_static_works+y} 10370then : 10371 printf %s "(cached) " >&6 10372else case e in #( 10373 e) lt_cv_prog_compiler_static_works=no 10374 save_LDFLAGS=$LDFLAGS 10375 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10376 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10377 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10378 # The linker can only warn and ignore the option if not recognized 10379 # So say no if there are warnings 10380 if test -s conftest.err; then 10381 # Append any errors to the config.log. 10382 cat conftest.err 1>&5 10383 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10385 if diff conftest.exp conftest.er2 >/dev/null; then 10386 lt_cv_prog_compiler_static_works=yes 10387 fi 10388 else 10389 lt_cv_prog_compiler_static_works=yes 10390 fi 10391 fi 10392 $RM -r conftest* 10393 LDFLAGS=$save_LDFLAGS 10394 ;; 10395esac 10396fi 10397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10398printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10399 10400if test yes = "$lt_cv_prog_compiler_static_works"; then 10401 : 10402else 10403 lt_prog_compiler_static= 10404fi 10405 10406 10407 10408 10409 10410 10411 10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10413printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10414if test ${lt_cv_prog_compiler_c_o+y} 10415then : 10416 printf %s "(cached) " >&6 10417else case e in #( 10418 e) lt_cv_prog_compiler_c_o=no 10419 $RM -r conftest 2>/dev/null 10420 mkdir conftest 10421 cd conftest 10422 mkdir out 10423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10424 10425 lt_compiler_flag="-o out/conftest2.$ac_objext" 10426 # Insert the option either (1) after the last *FLAGS variable, or 10427 # (2) before a word containing "conftest.", or (3) at the end. 10428 # Note that $ac_compile itself does not contain backslashes and begins 10429 # with a dollar sign (not a hyphen), so the echo should work correctly. 10430 lt_compile=`echo "$ac_compile" | $SED \ 10431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10433 -e 's:$: $lt_compiler_flag:'` 10434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10435 (eval "$lt_compile" 2>out/conftest.err) 10436 ac_status=$? 10437 cat out/conftest.err >&5 10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10439 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10440 then 10441 # The compiler can only warn and ignore the option if not recognized 10442 # So say no if there are warnings 10443 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10444 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10445 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10446 lt_cv_prog_compiler_c_o=yes 10447 fi 10448 fi 10449 chmod u+w . 2>&5 10450 $RM conftest* 10451 # SGI C++ compiler will create directory out/ii_files/ for 10452 # template instantiation 10453 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10454 $RM out/* && rmdir out 10455 cd .. 10456 $RM -r conftest 10457 $RM conftest* 10458 ;; 10459esac 10460fi 10461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10462printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10463 10464 10465 10466 10467 10468 10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10470printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10471if test ${lt_cv_prog_compiler_c_o+y} 10472then : 10473 printf %s "(cached) " >&6 10474else case e in #( 10475 e) lt_cv_prog_compiler_c_o=no 10476 $RM -r conftest 2>/dev/null 10477 mkdir conftest 10478 cd conftest 10479 mkdir out 10480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10481 10482 lt_compiler_flag="-o out/conftest2.$ac_objext" 10483 # Insert the option either (1) after the last *FLAGS variable, or 10484 # (2) before a word containing "conftest.", or (3) at the end. 10485 # Note that $ac_compile itself does not contain backslashes and begins 10486 # with a dollar sign (not a hyphen), so the echo should work correctly. 10487 lt_compile=`echo "$ac_compile" | $SED \ 10488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10490 -e 's:$: $lt_compiler_flag:'` 10491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10492 (eval "$lt_compile" 2>out/conftest.err) 10493 ac_status=$? 10494 cat out/conftest.err >&5 10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10496 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10497 then 10498 # The compiler can only warn and ignore the option if not recognized 10499 # So say no if there are warnings 10500 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10501 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10502 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10503 lt_cv_prog_compiler_c_o=yes 10504 fi 10505 fi 10506 chmod u+w . 2>&5 10507 $RM conftest* 10508 # SGI C++ compiler will create directory out/ii_files/ for 10509 # template instantiation 10510 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10511 $RM out/* && rmdir out 10512 cd .. 10513 $RM -r conftest 10514 $RM conftest* 10515 ;; 10516esac 10517fi 10518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10519printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10520 10521 10522 10523 10524hard_links=nottested 10525if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10526 # do not overwrite the value of need_locks provided by the user 10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10528printf %s "checking if we can lock with hard links... " >&6; } 10529 hard_links=yes 10530 $RM conftest* 10531 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10532 touch conftest.a 10533 ln conftest.a conftest.b 2>&5 || hard_links=no 10534 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10536printf "%s\n" "$hard_links" >&6; } 10537 if test no = "$hard_links"; then 10538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10539printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10540 need_locks=warn 10541 fi 10542else 10543 need_locks=no 10544fi 10545 10546 10547 10548 10549 10550 10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10552printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10553 10554 runpath_var= 10555 allow_undefined_flag= 10556 always_export_symbols=no 10557 archive_cmds= 10558 archive_expsym_cmds= 10559 compiler_needs_object=no 10560 enable_shared_with_static_runtimes=no 10561 export_dynamic_flag_spec= 10562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10563 hardcode_automatic=no 10564 hardcode_direct=no 10565 hardcode_direct_absolute=no 10566 hardcode_libdir_flag_spec= 10567 hardcode_libdir_separator= 10568 hardcode_minus_L=no 10569 hardcode_shlibpath_var=unsupported 10570 inherit_rpath=no 10571 link_all_deplibs=unknown 10572 module_cmds= 10573 module_expsym_cmds= 10574 old_archive_from_new_cmds= 10575 old_archive_from_expsyms_cmds= 10576 thread_safe_flag_spec= 10577 whole_archive_flag_spec= 10578 # include_expsyms should be a list of space-separated symbols to be *always* 10579 # included in the symbol list 10580 include_expsyms= 10581 # exclude_expsyms can be an extended regexp of symbols to exclude 10582 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10583 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10584 # as well as any symbol that contains 'd'. 10585 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10587 # platforms (ab)use it in PIC code, but their linkers get confused if 10588 # the symbol is explicitly referenced. Since portable code cannot 10589 # rely on this symbol name, it's probably fine to never include it in 10590 # preloaded symbol tables. 10591 # Exclude shared library initialization/finalization symbols. 10592 extract_expsyms_cmds= 10593 10594 case $host_os in 10595 cygwin* | mingw* | pw32* | cegcc*) 10596 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10597 # When not using gcc, we currently assume that we are using 10598 # Microsoft Visual C++ or Intel C++ Compiler. 10599 if test yes != "$GCC"; then 10600 with_gnu_ld=no 10601 fi 10602 ;; 10603 interix*) 10604 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10605 with_gnu_ld=yes 10606 ;; 10607 openbsd* | bitrig*) 10608 with_gnu_ld=no 10609 ;; 10610 esac 10611 10612 ld_shlibs=yes 10613 10614 # On some targets, GNU ld is compatible enough with the native linker 10615 # that we're better off using the native interface for both. 10616 lt_use_gnu_ld_interface=no 10617 if test yes = "$with_gnu_ld"; then 10618 case $host_os in 10619 aix*) 10620 # The AIX port of GNU ld has always aspired to compatibility 10621 # with the native linker. However, as the warning in the GNU ld 10622 # block says, versions before 2.19.5* couldn't really create working 10623 # shared libraries, regardless of the interface used. 10624 case `$LD -v 2>&1` in 10625 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10626 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10627 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10628 *) 10629 lt_use_gnu_ld_interface=yes 10630 ;; 10631 esac 10632 ;; 10633 *) 10634 lt_use_gnu_ld_interface=yes 10635 ;; 10636 esac 10637 fi 10638 10639 if test yes = "$lt_use_gnu_ld_interface"; then 10640 # If archive_cmds runs LD, not CC, wlarc should be empty 10641 wlarc='$wl' 10642 10643 # Set some defaults for GNU ld with shared library support. These 10644 # are reset later if shared libraries are not supported. Putting them 10645 # here allows them to be overridden if necessary. 10646 runpath_var=LD_RUN_PATH 10647 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10648 export_dynamic_flag_spec='$wl--export-dynamic' 10649 # ancient GNU ld didn't support --whole-archive et. al. 10650 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10651 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10652 else 10653 whole_archive_flag_spec= 10654 fi 10655 supports_anon_versioning=no 10656 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10657 *GNU\ gold*) supports_anon_versioning=yes ;; 10658 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10659 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10660 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10661 *\ 2.11.*) ;; # other 2.11 versions 10662 *) supports_anon_versioning=yes ;; 10663 esac 10664 10665 # See if GNU ld supports shared libraries. 10666 case $host_os in 10667 aix[3-9]*) 10668 # On AIX/PPC, the GNU linker is very broken 10669 if test ia64 != "$host_cpu"; then 10670 ld_shlibs=no 10671 cat <<_LT_EOF 1>&2 10672 10673*** Warning: the GNU linker, at least up to release 2.19, is reported 10674*** to be unable to reliably create shared libraries on AIX. 10675*** Therefore, libtool is disabling shared libraries support. If you 10676*** really care for shared libraries, you may want to install binutils 10677*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10678*** You will then need to restart the configuration process. 10679 10680_LT_EOF 10681 fi 10682 ;; 10683 10684 amigaos*) 10685 case $host_cpu in 10686 powerpc) 10687 # see comment about AmigaOS4 .so support 10688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10689 archive_expsym_cmds='' 10690 ;; 10691 m68k) 10692 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)' 10693 hardcode_libdir_flag_spec='-L$libdir' 10694 hardcode_minus_L=yes 10695 ;; 10696 esac 10697 ;; 10698 10699 beos*) 10700 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10701 allow_undefined_flag=unsupported 10702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10703 # support --undefined. This deserves some investigation. FIXME 10704 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10705 else 10706 ld_shlibs=no 10707 fi 10708 ;; 10709 10710 cygwin* | mingw* | pw32* | cegcc*) 10711 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10712 # as there is no search path for DLLs. 10713 hardcode_libdir_flag_spec='-L$libdir' 10714 export_dynamic_flag_spec='$wl--export-all-symbols' 10715 allow_undefined_flag=unsupported 10716 always_export_symbols=no 10717 enable_shared_with_static_runtimes=yes 10718 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' 10719 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10720 10721 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10723 # If the export-symbols file already is a .def file, use it as 10724 # is; otherwise, prepend EXPORTS... 10725 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10726 cp $export_symbols $output_objdir/$soname.def; 10727 else 10728 echo EXPORTS > $output_objdir/$soname.def; 10729 cat $export_symbols >> $output_objdir/$soname.def; 10730 fi~ 10731 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10732 else 10733 ld_shlibs=no 10734 fi 10735 ;; 10736 10737 haiku*) 10738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10739 link_all_deplibs=yes 10740 ;; 10741 10742 os2*) 10743 hardcode_libdir_flag_spec='-L$libdir' 10744 hardcode_minus_L=yes 10745 allow_undefined_flag=unsupported 10746 shrext_cmds=.dll 10747 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10748 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10749 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10750 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10751 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10752 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10753 emximp -o $lib $output_objdir/$libname.def' 10754 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10755 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10756 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10757 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10758 prefix_cmds="$SED"~ 10759 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10760 prefix_cmds="$prefix_cmds -e 1d"; 10761 fi~ 10762 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10763 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10764 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10765 emximp -o $lib $output_objdir/$libname.def' 10766 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10767 enable_shared_with_static_runtimes=yes 10768 file_list_spec='@' 10769 ;; 10770 10771 interix[3-9]*) 10772 hardcode_direct=no 10773 hardcode_shlibpath_var=no 10774 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10775 export_dynamic_flag_spec='$wl-E' 10776 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10777 # Instead, shared libraries are loaded at an image base (0x10000000 by 10778 # default) and relocated if they conflict, which is a slow very memory 10779 # consuming and fragmenting process. To avoid this, we pick a random, 10780 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10781 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10782 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10783 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' 10784 ;; 10785 10786 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10787 tmp_diet=no 10788 if test linux-dietlibc = "$host_os"; then 10789 case $cc_basename in 10790 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10791 esac 10792 fi 10793 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10794 && test no = "$tmp_diet" 10795 then 10796 tmp_addflag=' $pic_flag' 10797 tmp_sharedflag='-shared' 10798 case $cc_basename,$host_cpu in 10799 pgcc*) # Portland Group C compiler 10800 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' 10801 tmp_addflag=' $pic_flag' 10802 ;; 10803 pgf77* | pgf90* | pgf95* | pgfortran*) 10804 # Portland Group f77 and f90 compilers 10805 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' 10806 tmp_addflag=' $pic_flag -Mnomain' ;; 10807 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10808 tmp_addflag=' -i_dynamic' ;; 10809 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10810 tmp_addflag=' -i_dynamic -nofor_main' ;; 10811 ifc* | ifort*) # Intel Fortran compiler 10812 tmp_addflag=' -nofor_main' ;; 10813 lf95*) # Lahey Fortran 8.1 10814 whole_archive_flag_spec= 10815 tmp_sharedflag='--shared' ;; 10816 nagfor*) # NAGFOR 5.3 10817 tmp_sharedflag='-Wl,-shared' ;; 10818 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10819 tmp_sharedflag='-qmkshrobj' 10820 tmp_addflag= ;; 10821 nvcc*) # Cuda Compiler Driver 2.2 10822 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' 10823 compiler_needs_object=yes 10824 ;; 10825 esac 10826 case `$CC -V 2>&1 | $SED 5q` in 10827 *Sun\ C*) # Sun C 5.9 10828 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' 10829 compiler_needs_object=yes 10830 tmp_sharedflag='-G' ;; 10831 *Sun\ F*) # Sun Fortran 8.3 10832 tmp_sharedflag='-G' ;; 10833 esac 10834 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10835 10836 if test yes = "$supports_anon_versioning"; then 10837 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10838 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10839 echo "local: *; };" >> $output_objdir/$libname.ver~ 10840 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10841 fi 10842 10843 case $cc_basename in 10844 tcc*) 10845 export_dynamic_flag_spec='-rdynamic' 10846 ;; 10847 xlf* | bgf* | bgxlf* | mpixlf*) 10848 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10849 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10850 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10851 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10852 if test yes = "$supports_anon_versioning"; then 10853 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10854 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10855 echo "local: *; };" >> $output_objdir/$libname.ver~ 10856 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10857 fi 10858 ;; 10859 esac 10860 else 10861 ld_shlibs=no 10862 fi 10863 ;; 10864 10865 netbsd*) 10866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10867 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10868 wlarc= 10869 else 10870 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10871 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10872 fi 10873 ;; 10874 10875 solaris*) 10876 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10877 ld_shlibs=no 10878 cat <<_LT_EOF 1>&2 10879 10880*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10881*** create shared libraries on Solaris systems. Therefore, libtool 10882*** is disabling shared libraries support. We urge you to upgrade GNU 10883*** binutils to release 2.9.1 or newer. Another option is to modify 10884*** your PATH or compiler configuration so that the native linker is 10885*** used, and then restart. 10886 10887_LT_EOF 10888 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10889 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10890 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10891 else 10892 ld_shlibs=no 10893 fi 10894 ;; 10895 10896 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10897 case `$LD -v 2>&1` in 10898 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10899 ld_shlibs=no 10900 cat <<_LT_EOF 1>&2 10901 10902*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10903*** reliably create shared libraries on SCO systems. Therefore, libtool 10904*** is disabling shared libraries support. We urge you to upgrade GNU 10905*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10906*** your PATH or compiler configuration so that the native linker is 10907*** used, and then restart. 10908 10909_LT_EOF 10910 ;; 10911 *) 10912 # For security reasons, it is highly recommended that you always 10913 # use absolute paths for naming shared libraries, and exclude the 10914 # DT_RUNPATH tag from executables and libraries. But doing so 10915 # requires that you compile everything twice, which is a pain. 10916 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10917 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10919 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10920 else 10921 ld_shlibs=no 10922 fi 10923 ;; 10924 esac 10925 ;; 10926 10927 sunos4*) 10928 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10929 wlarc= 10930 hardcode_direct=yes 10931 hardcode_shlibpath_var=no 10932 ;; 10933 10934 *) 10935 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10936 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10937 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10938 else 10939 ld_shlibs=no 10940 fi 10941 ;; 10942 esac 10943 10944 if test no = "$ld_shlibs"; then 10945 runpath_var= 10946 hardcode_libdir_flag_spec= 10947 export_dynamic_flag_spec= 10948 whole_archive_flag_spec= 10949 fi 10950 else 10951 # PORTME fill in a description of your system's linker (not GNU ld) 10952 case $host_os in 10953 aix3*) 10954 allow_undefined_flag=unsupported 10955 always_export_symbols=yes 10956 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' 10957 # Note: this linker hardcodes the directories in LIBPATH if there 10958 # are no directories specified by -L. 10959 hardcode_minus_L=yes 10960 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10961 # Neither direct hardcoding nor static linking is supported with a 10962 # broken collect2. 10963 hardcode_direct=unsupported 10964 fi 10965 ;; 10966 10967 aix[4-9]*) 10968 if test ia64 = "$host_cpu"; then 10969 # On IA64, the linker does run time linking by default, so we don't 10970 # have to do anything special. 10971 aix_use_runtimelinking=no 10972 exp_sym_flag='-Bexport' 10973 no_entry_flag= 10974 else 10975 # If we're using GNU nm, then we don't want the "-C" option. 10976 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10977 # Without the "-l" option, or with the "-B" option, AIX nm treats 10978 # weak defined symbols like other global defined symbols, whereas 10979 # GNU nm marks them as "W". 10980 # While the 'weak' keyword is ignored in the Export File, we need 10981 # it in the Import File for the 'aix-soname' feature, so we have 10982 # to replace the "-B" option with "-P" for AIX nm. 10983 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10984 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' 10985 else 10986 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 == "L") || (\$ 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' 10987 fi 10988 aix_use_runtimelinking=no 10989 10990 # Test if we are trying to use run time linking or normal 10991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10992 # have runtime linking enabled, and use it for executables. 10993 # For shared libraries, we enable/disable runtime linking 10994 # depending on the kind of the shared library created - 10995 # when "with_aix_soname,aix_use_runtimelinking" is: 10996 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10997 # "aix,yes" lib.so shared, rtl:yes, for executables 10998 # lib.a static archive 10999 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11000 # lib.a(lib.so.V) shared, rtl:no, for executables 11001 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11002 # lib.a(lib.so.V) shared, rtl:no 11003 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11004 # lib.a static archive 11005 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11006 for ld_flag in $LDFLAGS; do 11007 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11008 aix_use_runtimelinking=yes 11009 break 11010 fi 11011 done 11012 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11013 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11014 # so we don't have lib.a shared libs to link our executables. 11015 # We have to force runtime linking in this case. 11016 aix_use_runtimelinking=yes 11017 LDFLAGS="$LDFLAGS -Wl,-brtl" 11018 fi 11019 ;; 11020 esac 11021 11022 exp_sym_flag='-bexport' 11023 no_entry_flag='-bnoentry' 11024 fi 11025 11026 # When large executables or shared objects are built, AIX ld can 11027 # have problems creating the table of contents. If linking a library 11028 # or program results in "error TOC overflow" add -mminimal-toc to 11029 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11030 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11031 11032 archive_cmds='' 11033 hardcode_direct=yes 11034 hardcode_direct_absolute=yes 11035 hardcode_libdir_separator=':' 11036 link_all_deplibs=yes 11037 file_list_spec='$wl-f,' 11038 case $with_aix_soname,$aix_use_runtimelinking in 11039 aix,*) ;; # traditional, no import file 11040 svr4,* | *,yes) # use import file 11041 # The Import File defines what to hardcode. 11042 hardcode_direct=no 11043 hardcode_direct_absolute=no 11044 ;; 11045 esac 11046 11047 if test yes = "$GCC"; then 11048 case $host_os in aix4.[012]|aix4.[012].*) 11049 # We only want to do this on AIX 4.2 and lower, the check 11050 # below for broken collect2 doesn't work under 4.3+ 11051 collect2name=`$CC -print-prog-name=collect2` 11052 if test -f "$collect2name" && 11053 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11054 then 11055 # We have reworked collect2 11056 : 11057 else 11058 # We have old collect2 11059 hardcode_direct=unsupported 11060 # It fails to find uninstalled libraries when the uninstalled 11061 # path is not listed in the libpath. Setting hardcode_minus_L 11062 # to unsupported forces relinking 11063 hardcode_minus_L=yes 11064 hardcode_libdir_flag_spec='-L$libdir' 11065 hardcode_libdir_separator= 11066 fi 11067 ;; 11068 esac 11069 shared_flag='-shared' 11070 if test yes = "$aix_use_runtimelinking"; then 11071 shared_flag="$shared_flag "'$wl-G' 11072 fi 11073 # Need to ensure runtime linking is disabled for the traditional 11074 # shared library, or the linker may eventually find shared libraries 11075 # /with/ Import File - we do not want to mix them. 11076 shared_flag_aix='-shared' 11077 shared_flag_svr4='-shared $wl-G' 11078 else 11079 # not using gcc 11080 if test ia64 = "$host_cpu"; then 11081 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11082 # chokes on -Wl,-G. The following line is correct: 11083 shared_flag='-G' 11084 else 11085 if test yes = "$aix_use_runtimelinking"; then 11086 shared_flag='$wl-G' 11087 else 11088 shared_flag='$wl-bM:SRE' 11089 fi 11090 shared_flag_aix='$wl-bM:SRE' 11091 shared_flag_svr4='$wl-G' 11092 fi 11093 fi 11094 11095 export_dynamic_flag_spec='$wl-bexpall' 11096 # It seems that -bexpall does not export symbols beginning with 11097 # underscore (_), so it is better to generate a list of symbols to export. 11098 always_export_symbols=yes 11099 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11100 # Warning - without using the other runtime loading flags (-brtl), 11101 # -berok will link without error, but may produce a broken library. 11102 allow_undefined_flag='-berok' 11103 # Determine the default libpath from the value encoded in an 11104 # empty executable. 11105 if test set = "${lt_cv_aix_libpath+set}"; then 11106 aix_libpath=$lt_cv_aix_libpath 11107else 11108 if test ${lt_cv_aix_libpath_+y} 11109then : 11110 printf %s "(cached) " >&6 11111else case e in #( 11112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11113/* end confdefs.h. */ 11114 11115int 11116main (void) 11117{ 11118 11119 ; 11120 return 0; 11121} 11122_ACEOF 11123if ac_fn_c_try_link "$LINENO" 11124then : 11125 11126 lt_aix_libpath_sed=' 11127 /Import File Strings/,/^$/ { 11128 /^0/ { 11129 s/^0 *\([^ ]*\) *$/\1/ 11130 p 11131 } 11132 }' 11133 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11134 # Check for a 64-bit object if we didn't find anything. 11135 if test -z "$lt_cv_aix_libpath_"; then 11136 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11137 fi 11138fi 11139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11140 conftest$ac_exeext conftest.$ac_ext 11141 if test -z "$lt_cv_aix_libpath_"; then 11142 lt_cv_aix_libpath_=/usr/lib:/lib 11143 fi 11144 ;; 11145esac 11146fi 11147 11148 aix_libpath=$lt_cv_aix_libpath_ 11149fi 11150 11151 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11152 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 11153 else 11154 if test ia64 = "$host_cpu"; then 11155 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11156 allow_undefined_flag="-z nodefs" 11157 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" 11158 else 11159 # Determine the default libpath from the value encoded in an 11160 # empty executable. 11161 if test set = "${lt_cv_aix_libpath+set}"; then 11162 aix_libpath=$lt_cv_aix_libpath 11163else 11164 if test ${lt_cv_aix_libpath_+y} 11165then : 11166 printf %s "(cached) " >&6 11167else case e in #( 11168 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11169/* end confdefs.h. */ 11170 11171int 11172main (void) 11173{ 11174 11175 ; 11176 return 0; 11177} 11178_ACEOF 11179if ac_fn_c_try_link "$LINENO" 11180then : 11181 11182 lt_aix_libpath_sed=' 11183 /Import File Strings/,/^$/ { 11184 /^0/ { 11185 s/^0 *\([^ ]*\) *$/\1/ 11186 p 11187 } 11188 }' 11189 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11190 # Check for a 64-bit object if we didn't find anything. 11191 if test -z "$lt_cv_aix_libpath_"; then 11192 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11193 fi 11194fi 11195rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11196 conftest$ac_exeext conftest.$ac_ext 11197 if test -z "$lt_cv_aix_libpath_"; then 11198 lt_cv_aix_libpath_=/usr/lib:/lib 11199 fi 11200 ;; 11201esac 11202fi 11203 11204 aix_libpath=$lt_cv_aix_libpath_ 11205fi 11206 11207 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11208 # Warning - without using the other run time loading flags, 11209 # -berok will link without error, but may produce a broken library. 11210 no_undefined_flag=' $wl-bernotok' 11211 allow_undefined_flag=' $wl-berok' 11212 if test yes = "$with_gnu_ld"; then 11213 # We only use this code for GNU lds that support --whole-archive. 11214 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11215 else 11216 # Exported symbols can be pulled into shared objects from archives 11217 whole_archive_flag_spec='$convenience' 11218 fi 11219 archive_cmds_need_lc=yes 11220 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11221 # -brtl affects multiple linker settings, -berok does not and is overridden later 11222 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11223 if test svr4 != "$with_aix_soname"; then 11224 # This is similar to how AIX traditionally builds its shared libraries. 11225 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' 11226 fi 11227 if test aix != "$with_aix_soname"; then 11228 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' 11229 else 11230 # used by -dlpreopen to get the symbols 11231 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11232 fi 11233 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11234 fi 11235 fi 11236 ;; 11237 11238 amigaos*) 11239 case $host_cpu in 11240 powerpc) 11241 # see comment about AmigaOS4 .so support 11242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11243 archive_expsym_cmds='' 11244 ;; 11245 m68k) 11246 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)' 11247 hardcode_libdir_flag_spec='-L$libdir' 11248 hardcode_minus_L=yes 11249 ;; 11250 esac 11251 ;; 11252 11253 bsdi[45]*) 11254 export_dynamic_flag_spec=-rdynamic 11255 ;; 11256 11257 cygwin* | mingw* | pw32* | cegcc*) 11258 # When not using gcc, we currently assume that we are using 11259 # Microsoft Visual C++ or Intel C++ Compiler. 11260 # hardcode_libdir_flag_spec is actually meaningless, as there is 11261 # no search path for DLLs. 11262 case $cc_basename in 11263 cl* | icl*) 11264 # Native MSVC or ICC 11265 hardcode_libdir_flag_spec=' ' 11266 allow_undefined_flag=unsupported 11267 always_export_symbols=yes 11268 file_list_spec='@' 11269 # Tell ltmain to make .lib files, not .a files. 11270 libext=lib 11271 # Tell ltmain to make .dll files, not .so files. 11272 shrext_cmds=.dll 11273 # FIXME: Setting linknames here is a bad hack. 11274 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11275 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11276 cp "$export_symbols" "$output_objdir/$soname.def"; 11277 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11278 else 11279 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11280 fi~ 11281 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11282 linknames=' 11283 # The linker will not automatically build a static lib if we build a DLL. 11284 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11285 enable_shared_with_static_runtimes=yes 11286 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11287 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11288 # Don't use ranlib 11289 old_postinstall_cmds='chmod 644 $oldlib' 11290 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11291 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11292 case $lt_outputfile in 11293 *.exe|*.EXE) ;; 11294 *) 11295 lt_outputfile=$lt_outputfile.exe 11296 lt_tool_outputfile=$lt_tool_outputfile.exe 11297 ;; 11298 esac~ 11299 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11300 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11301 $RM "$lt_outputfile.manifest"; 11302 fi' 11303 ;; 11304 *) 11305 # Assume MSVC and ICC wrapper 11306 hardcode_libdir_flag_spec=' ' 11307 allow_undefined_flag=unsupported 11308 # Tell ltmain to make .lib files, not .a files. 11309 libext=lib 11310 # Tell ltmain to make .dll files, not .so files. 11311 shrext_cmds=.dll 11312 # FIXME: Setting linknames here is a bad hack. 11313 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11314 # The linker will automatically build a .lib file if we build a DLL. 11315 old_archive_from_new_cmds='true' 11316 # FIXME: Should let the user specify the lib program. 11317 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11318 enable_shared_with_static_runtimes=yes 11319 ;; 11320 esac 11321 ;; 11322 11323 darwin* | rhapsody*) 11324 11325 11326 archive_cmds_need_lc=no 11327 hardcode_direct=no 11328 hardcode_automatic=yes 11329 hardcode_shlibpath_var=unsupported 11330 if test yes = "$lt_cv_ld_force_load"; then 11331 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\"`' 11332 11333 else 11334 whole_archive_flag_spec='' 11335 fi 11336 link_all_deplibs=yes 11337 allow_undefined_flag=$_lt_dar_allow_undefined 11338 case $cc_basename in 11339 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11340 *) _lt_dar_can_shared=$GCC ;; 11341 esac 11342 if test yes = "$_lt_dar_can_shared"; then 11343 output_verbose_link_cmd=func_echo_all 11344 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11345 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11346 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" 11347 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" 11348 11349 else 11350 ld_shlibs=no 11351 fi 11352 11353 ;; 11354 11355 dgux*) 11356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11357 hardcode_libdir_flag_spec='-L$libdir' 11358 hardcode_shlibpath_var=no 11359 ;; 11360 11361 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11362 # support. Future versions do this automatically, but an explicit c++rt0.o 11363 # does not break anything, and helps significantly (at the cost of a little 11364 # extra space). 11365 freebsd2.2*) 11366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11367 hardcode_libdir_flag_spec='-R$libdir' 11368 hardcode_direct=yes 11369 hardcode_shlibpath_var=no 11370 ;; 11371 11372 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11373 freebsd2.*) 11374 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11375 hardcode_direct=yes 11376 hardcode_minus_L=yes 11377 hardcode_shlibpath_var=no 11378 ;; 11379 11380 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11381 freebsd* | dragonfly* | midnightbsd*) 11382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11383 hardcode_libdir_flag_spec='-R$libdir' 11384 hardcode_direct=yes 11385 hardcode_shlibpath_var=no 11386 ;; 11387 11388 hpux9*) 11389 if test yes = "$GCC"; then 11390 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' 11391 else 11392 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' 11393 fi 11394 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11395 hardcode_libdir_separator=: 11396 hardcode_direct=yes 11397 11398 # hardcode_minus_L: Not really in the search PATH, 11399 # but as the default location of the library. 11400 hardcode_minus_L=yes 11401 export_dynamic_flag_spec='$wl-E' 11402 ;; 11403 11404 hpux10*) 11405 if test yes,no = "$GCC,$with_gnu_ld"; then 11406 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11407 else 11408 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11409 fi 11410 if test no = "$with_gnu_ld"; then 11411 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11412 hardcode_libdir_separator=: 11413 hardcode_direct=yes 11414 hardcode_direct_absolute=yes 11415 export_dynamic_flag_spec='$wl-E' 11416 # hardcode_minus_L: Not really in the search PATH, 11417 # but as the default location of the library. 11418 hardcode_minus_L=yes 11419 fi 11420 ;; 11421 11422 hpux11*) 11423 if test yes,no = "$GCC,$with_gnu_ld"; then 11424 case $host_cpu in 11425 hppa*64*) 11426 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11427 ;; 11428 ia64*) 11429 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11430 ;; 11431 *) 11432 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11433 ;; 11434 esac 11435 else 11436 case $host_cpu in 11437 hppa*64*) 11438 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11439 ;; 11440 ia64*) 11441 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11442 ;; 11443 *) 11444 11445 # Older versions of the 11.00 compiler do not understand -b yet 11446 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11448printf %s "checking if $CC understands -b... " >&6; } 11449if test ${lt_cv_prog_compiler__b+y} 11450then : 11451 printf %s "(cached) " >&6 11452else case e in #( 11453 e) lt_cv_prog_compiler__b=no 11454 save_LDFLAGS=$LDFLAGS 11455 LDFLAGS="$LDFLAGS -b" 11456 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11458 # The linker can only warn and ignore the option if not recognized 11459 # So say no if there are warnings 11460 if test -s conftest.err; then 11461 # Append any errors to the config.log. 11462 cat conftest.err 1>&5 11463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11465 if diff conftest.exp conftest.er2 >/dev/null; then 11466 lt_cv_prog_compiler__b=yes 11467 fi 11468 else 11469 lt_cv_prog_compiler__b=yes 11470 fi 11471 fi 11472 $RM -r conftest* 11473 LDFLAGS=$save_LDFLAGS 11474 ;; 11475esac 11476fi 11477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11478printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11479 11480if test yes = "$lt_cv_prog_compiler__b"; then 11481 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11482else 11483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11484fi 11485 11486 ;; 11487 esac 11488 fi 11489 if test no = "$with_gnu_ld"; then 11490 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11491 hardcode_libdir_separator=: 11492 11493 case $host_cpu in 11494 hppa*64*|ia64*) 11495 hardcode_direct=no 11496 hardcode_shlibpath_var=no 11497 ;; 11498 *) 11499 hardcode_direct=yes 11500 hardcode_direct_absolute=yes 11501 export_dynamic_flag_spec='$wl-E' 11502 11503 # hardcode_minus_L: Not really in the search PATH, 11504 # but as the default location of the library. 11505 hardcode_minus_L=yes 11506 ;; 11507 esac 11508 fi 11509 ;; 11510 11511 irix5* | irix6* | nonstopux*) 11512 if test yes = "$GCC"; then 11513 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' 11514 # Try to use the -exported_symbol ld option, if it does not 11515 # work, assume that -exports_file does not work either and 11516 # implicitly export all symbols. 11517 # This should be the same for all languages, so no per-tag cache variable. 11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11519printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11520if test ${lt_cv_irix_exported_symbol+y} 11521then : 11522 printf %s "(cached) " >&6 11523else case e in #( 11524 e) save_LDFLAGS=$LDFLAGS 11525 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11527/* end confdefs.h. */ 11528int foo (void) { return 0; } 11529_ACEOF 11530if ac_fn_c_try_link "$LINENO" 11531then : 11532 lt_cv_irix_exported_symbol=yes 11533else case e in #( 11534 e) lt_cv_irix_exported_symbol=no ;; 11535esac 11536fi 11537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11538 conftest$ac_exeext conftest.$ac_ext 11539 LDFLAGS=$save_LDFLAGS ;; 11540esac 11541fi 11542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11543printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11544 if test yes = "$lt_cv_irix_exported_symbol"; then 11545 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' 11546 fi 11547 else 11548 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' 11549 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' 11550 fi 11551 archive_cmds_need_lc='no' 11552 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11553 hardcode_libdir_separator=: 11554 inherit_rpath=yes 11555 link_all_deplibs=yes 11556 ;; 11557 11558 linux*) 11559 case $cc_basename in 11560 tcc*) 11561 # Fabrice Bellard et al's Tiny C Compiler 11562 ld_shlibs=yes 11563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11564 ;; 11565 esac 11566 ;; 11567 11568 netbsd*) 11569 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11571 else 11572 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11573 fi 11574 hardcode_libdir_flag_spec='-R$libdir' 11575 hardcode_direct=yes 11576 hardcode_shlibpath_var=no 11577 ;; 11578 11579 newsos6) 11580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11581 hardcode_direct=yes 11582 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11583 hardcode_libdir_separator=: 11584 hardcode_shlibpath_var=no 11585 ;; 11586 11587 *nto* | *qnx*) 11588 ;; 11589 11590 openbsd* | bitrig*) 11591 if test -f /usr/libexec/ld.so; then 11592 hardcode_direct=yes 11593 hardcode_shlibpath_var=no 11594 hardcode_direct_absolute=yes 11595 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11597 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11598 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11599 export_dynamic_flag_spec='$wl-E' 11600 else 11601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11602 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11603 fi 11604 else 11605 ld_shlibs=no 11606 fi 11607 ;; 11608 11609 os2*) 11610 hardcode_libdir_flag_spec='-L$libdir' 11611 hardcode_minus_L=yes 11612 allow_undefined_flag=unsupported 11613 shrext_cmds=.dll 11614 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11617 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11618 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11619 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11620 emximp -o $lib $output_objdir/$libname.def' 11621 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11622 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11623 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11624 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11625 prefix_cmds="$SED"~ 11626 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11627 prefix_cmds="$prefix_cmds -e 1d"; 11628 fi~ 11629 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11630 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11631 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11632 emximp -o $lib $output_objdir/$libname.def' 11633 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11634 enable_shared_with_static_runtimes=yes 11635 file_list_spec='@' 11636 ;; 11637 11638 osf3*) 11639 if test yes = "$GCC"; then 11640 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11641 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' 11642 else 11643 allow_undefined_flag=' -expect_unresolved \*' 11644 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' 11645 fi 11646 archive_cmds_need_lc='no' 11647 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11648 hardcode_libdir_separator=: 11649 ;; 11650 11651 osf4* | osf5*) # as osf3* with the addition of -msym flag 11652 if test yes = "$GCC"; then 11653 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11654 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' 11655 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11656 else 11657 allow_undefined_flag=' -expect_unresolved \*' 11658 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' 11659 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~ 11660 $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' 11661 11662 # Both c and cxx compiler support -rpath directly 11663 hardcode_libdir_flag_spec='-rpath $libdir' 11664 fi 11665 archive_cmds_need_lc='no' 11666 hardcode_libdir_separator=: 11667 ;; 11668 11669 solaris*) 11670 no_undefined_flag=' -z defs' 11671 if test yes = "$GCC"; then 11672 wlarc='$wl' 11673 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11675 $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' 11676 else 11677 case `$CC -V 2>&1` in 11678 *"Compilers 5.0"*) 11679 wlarc='' 11680 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11682 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11683 ;; 11684 *) 11685 wlarc='$wl' 11686 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11688 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11689 ;; 11690 esac 11691 fi 11692 hardcode_libdir_flag_spec='-R$libdir' 11693 hardcode_shlibpath_var=no 11694 case $host_os in 11695 solaris2.[0-5] | solaris2.[0-5].*) ;; 11696 *) 11697 # The compiler driver will combine and reorder linker options, 11698 # but understands '-z linker_flag'. GCC discards it without '$wl', 11699 # but is careful enough not to reorder. 11700 # Supported since Solaris 2.6 (maybe 2.5.1?) 11701 if test yes = "$GCC"; then 11702 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11703 else 11704 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11705 fi 11706 ;; 11707 esac 11708 link_all_deplibs=yes 11709 ;; 11710 11711 sunos4*) 11712 if test sequent = "$host_vendor"; then 11713 # Use $CC to link under sequent, because it throws in some extra .o 11714 # files that make .init and .fini sections work. 11715 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11716 else 11717 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11718 fi 11719 hardcode_libdir_flag_spec='-L$libdir' 11720 hardcode_direct=yes 11721 hardcode_minus_L=yes 11722 hardcode_shlibpath_var=no 11723 ;; 11724 11725 sysv4) 11726 case $host_vendor in 11727 sni) 11728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11729 hardcode_direct=yes # is this really true??? 11730 ;; 11731 siemens) 11732 ## LD is ld it makes a PLAMLIB 11733 ## CC just makes a GrossModule. 11734 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11735 reload_cmds='$CC -r -o $output$reload_objs' 11736 hardcode_direct=no 11737 ;; 11738 motorola) 11739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11740 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11741 ;; 11742 esac 11743 runpath_var='LD_RUN_PATH' 11744 hardcode_shlibpath_var=no 11745 ;; 11746 11747 sysv4.3*) 11748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11749 hardcode_shlibpath_var=no 11750 export_dynamic_flag_spec='-Bexport' 11751 ;; 11752 11753 sysv4*MP*) 11754 if test -d /usr/nec; then 11755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11756 hardcode_shlibpath_var=no 11757 runpath_var=LD_RUN_PATH 11758 hardcode_runpath_var=yes 11759 ld_shlibs=yes 11760 fi 11761 ;; 11762 11763 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11764 no_undefined_flag='$wl-z,text' 11765 archive_cmds_need_lc=no 11766 hardcode_shlibpath_var=no 11767 runpath_var='LD_RUN_PATH' 11768 11769 if test yes = "$GCC"; then 11770 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11771 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11772 else 11773 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11774 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11775 fi 11776 ;; 11777 11778 sysv5* | sco3.2v5* | sco5v6*) 11779 # Note: We CANNOT use -z defs as we might desire, because we do not 11780 # link with -lc, and that would cause any symbols used from libc to 11781 # always be unresolved, which means just about no library would 11782 # ever link correctly. If we're not using GNU ld we use -z text 11783 # though, which does catch some bad symbols but isn't as heavy-handed 11784 # as -z defs. 11785 no_undefined_flag='$wl-z,text' 11786 allow_undefined_flag='$wl-z,nodefs' 11787 archive_cmds_need_lc=no 11788 hardcode_shlibpath_var=no 11789 hardcode_libdir_flag_spec='$wl-R,$libdir' 11790 hardcode_libdir_separator=':' 11791 link_all_deplibs=yes 11792 export_dynamic_flag_spec='$wl-Bexport' 11793 runpath_var='LD_RUN_PATH' 11794 11795 if test yes = "$GCC"; then 11796 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11797 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11798 else 11799 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11800 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11801 fi 11802 ;; 11803 11804 uts4*) 11805 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11806 hardcode_libdir_flag_spec='-L$libdir' 11807 hardcode_shlibpath_var=no 11808 ;; 11809 11810 *) 11811 ld_shlibs=no 11812 ;; 11813 esac 11814 11815 if test sni = "$host_vendor"; then 11816 case $host in 11817 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11818 export_dynamic_flag_spec='$wl-Blargedynsym' 11819 ;; 11820 esac 11821 fi 11822 fi 11823 11824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11825printf "%s\n" "$ld_shlibs" >&6; } 11826test no = "$ld_shlibs" && can_build_shared=no 11827 11828with_gnu_ld=$with_gnu_ld 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844# 11845# Do we need to explicitly link libc? 11846# 11847case "x$archive_cmds_need_lc" in 11848x|xyes) 11849 # Assume -lc should be added 11850 archive_cmds_need_lc=yes 11851 11852 if test yes,yes = "$GCC,$enable_shared"; then 11853 case $archive_cmds in 11854 *'~'*) 11855 # FIXME: we may have to deal with multi-command sequences. 11856 ;; 11857 '$CC '*) 11858 # Test whether the compiler implicitly links with -lc since on some 11859 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11860 # to ld, don't add -lc before -lgcc. 11861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11862printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11863if test ${lt_cv_archive_cmds_need_lc+y} 11864then : 11865 printf %s "(cached) " >&6 11866else case e in #( 11867 e) $RM conftest* 11868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11869 11870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11871 (eval $ac_compile) 2>&5 11872 ac_status=$? 11873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11874 test $ac_status = 0; } 2>conftest.err; then 11875 soname=conftest 11876 lib=conftest 11877 libobjs=conftest.$ac_objext 11878 deplibs= 11879 wl=$lt_prog_compiler_wl 11880 pic_flag=$lt_prog_compiler_pic 11881 compiler_flags=-v 11882 linker_flags=-v 11883 verstring= 11884 output_objdir=. 11885 libname=conftest 11886 lt_save_allow_undefined_flag=$allow_undefined_flag 11887 allow_undefined_flag= 11888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11889 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11890 ac_status=$? 11891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11892 test $ac_status = 0; } 11893 then 11894 lt_cv_archive_cmds_need_lc=no 11895 else 11896 lt_cv_archive_cmds_need_lc=yes 11897 fi 11898 allow_undefined_flag=$lt_save_allow_undefined_flag 11899 else 11900 cat conftest.err 1>&5 11901 fi 11902 $RM conftest* 11903 ;; 11904esac 11905fi 11906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11907printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11908 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11909 ;; 11910 esac 11911 fi 11912 ;; 11913esac 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12067printf %s "checking dynamic linker characteristics... " >&6; } 12068 12069if test yes = "$GCC"; then 12070 case $host_os in 12071 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12072 *) lt_awk_arg='/^libraries:/' ;; 12073 esac 12074 case $host_os in 12075 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12076 *) lt_sed_strip_eq='s|=/|/|g' ;; 12077 esac 12078 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12079 case $lt_search_path_spec in 12080 *\;*) 12081 # if the path contains ";" then we assume it to be the separator 12082 # otherwise default to the standard path separator (i.e. ":") - it is 12083 # assumed that no part of a normal pathname contains ";" but that should 12084 # okay in the real world where ";" in dirpaths is itself problematic. 12085 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12086 ;; 12087 *) 12088 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12089 ;; 12090 esac 12091 # Ok, now we have the path, separated by spaces, we can step through it 12092 # and add multilib dir if necessary... 12093 lt_tmp_lt_search_path_spec= 12094 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12095 # ...but if some path component already ends with the multilib dir we assume 12096 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12097 case "$lt_multi_os_dir; $lt_search_path_spec " in 12098 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12099 lt_multi_os_dir= 12100 ;; 12101 esac 12102 for lt_sys_path in $lt_search_path_spec; do 12103 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12105 elif test -n "$lt_multi_os_dir"; then 12106 test -d "$lt_sys_path" && \ 12107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12108 fi 12109 done 12110 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12111BEGIN {RS = " "; FS = "/|\n";} { 12112 lt_foo = ""; 12113 lt_count = 0; 12114 for (lt_i = NF; lt_i > 0; lt_i--) { 12115 if ($lt_i != "" && $lt_i != ".") { 12116 if ($lt_i == "..") { 12117 lt_count++; 12118 } else { 12119 if (lt_count == 0) { 12120 lt_foo = "/" $lt_i lt_foo; 12121 } else { 12122 lt_count--; 12123 } 12124 } 12125 } 12126 } 12127 if (lt_foo != "") { lt_freq[lt_foo]++; } 12128 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12129}'` 12130 # AWK program above erroneously prepends '/' to C:/dos/paths 12131 # for these hosts. 12132 case $host_os in 12133 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12134 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12135 esac 12136 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12137else 12138 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12139fi 12140library_names_spec= 12141libname_spec='lib$name' 12142soname_spec= 12143shrext_cmds=.so 12144postinstall_cmds= 12145postuninstall_cmds= 12146finish_cmds= 12147finish_eval= 12148shlibpath_var= 12149shlibpath_overrides_runpath=unknown 12150version_type=none 12151dynamic_linker="$host_os ld.so" 12152sys_lib_dlsearch_path_spec="/lib /usr/lib" 12153need_lib_prefix=unknown 12154hardcode_into_libs=no 12155 12156# when you set need_version to no, make sure it does not cause -set_version 12157# flags to be left without arguments 12158need_version=unknown 12159 12160 12161 12162case $host_os in 12163aix3*) 12164 version_type=linux # correct to gnu/linux during the next big refactor 12165 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12166 shlibpath_var=LIBPATH 12167 12168 # AIX 3 has no versioning support, so we append a major version to the name. 12169 soname_spec='$libname$release$shared_ext$major' 12170 ;; 12171 12172aix[4-9]*) 12173 version_type=linux # correct to gnu/linux during the next big refactor 12174 need_lib_prefix=no 12175 need_version=no 12176 hardcode_into_libs=yes 12177 if test ia64 = "$host_cpu"; then 12178 # AIX 5 supports IA64 12179 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12180 shlibpath_var=LD_LIBRARY_PATH 12181 else 12182 # With GCC up to 2.95.x, collect2 would create an import file 12183 # for dependence libraries. The import file would start with 12184 # the line '#! .'. This would cause the generated library to 12185 # depend on '.', always an invalid library. This was fixed in 12186 # development snapshots of GCC prior to 3.0. 12187 case $host_os in 12188 aix4 | aix4.[01] | aix4.[01].*) 12189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12190 echo ' yes ' 12191 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12192 : 12193 else 12194 can_build_shared=no 12195 fi 12196 ;; 12197 esac 12198 # Using Import Files as archive members, it is possible to support 12199 # filename-based versioning of shared library archives on AIX. While 12200 # this would work for both with and without runtime linking, it will 12201 # prevent static linking of such archives. So we do filename-based 12202 # shared library versioning with .so extension only, which is used 12203 # when both runtime linking and shared linking is enabled. 12204 # Unfortunately, runtime linking may impact performance, so we do 12205 # not want this to be the default eventually. Also, we use the 12206 # versioned .so libs for executables only if there is the -brtl 12207 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12208 # To allow for filename-based versioning support, we need to create 12209 # libNAME.so.V as an archive file, containing: 12210 # *) an Import File, referring to the versioned filename of the 12211 # archive as well as the shared archive member, telling the 12212 # bitwidth (32 or 64) of that shared object, and providing the 12213 # list of exported symbols of that shared object, eventually 12214 # decorated with the 'weak' keyword 12215 # *) the shared object with the F_LOADONLY flag set, to really avoid 12216 # it being seen by the linker. 12217 # At run time we better use the real file rather than another symlink, 12218 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12219 12220 case $with_aix_soname,$aix_use_runtimelinking in 12221 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12222 # soname into executable. Probably we can add versioning support to 12223 # collect2, so additional links can be useful in future. 12224 aix,yes) # traditional libtool 12225 dynamic_linker='AIX unversionable lib.so' 12226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12227 # instead of lib<name>.a to let people know that these are not 12228 # typical AIX shared libraries. 12229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12230 ;; 12231 aix,no) # traditional AIX only 12232 dynamic_linker='AIX lib.a(lib.so.V)' 12233 # We preserve .a as extension for shared libraries through AIX4.2 12234 # and later when we are not doing run time linking. 12235 library_names_spec='$libname$release.a $libname.a' 12236 soname_spec='$libname$release$shared_ext$major' 12237 ;; 12238 svr4,*) # full svr4 only 12239 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12240 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12241 # We do not specify a path in Import Files, so LIBPATH fires. 12242 shlibpath_overrides_runpath=yes 12243 ;; 12244 *,yes) # both, prefer svr4 12245 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12246 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12247 # unpreferred sharedlib libNAME.a needs extra handling 12248 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"' 12249 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"' 12250 # We do not specify a path in Import Files, so LIBPATH fires. 12251 shlibpath_overrides_runpath=yes 12252 ;; 12253 *,no) # both, prefer aix 12254 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12255 library_names_spec='$libname$release.a $libname.a' 12256 soname_spec='$libname$release$shared_ext$major' 12257 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12258 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)' 12259 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"' 12260 ;; 12261 esac 12262 shlibpath_var=LIBPATH 12263 fi 12264 ;; 12265 12266amigaos*) 12267 case $host_cpu in 12268 powerpc) 12269 # Since July 2007 AmigaOS4 officially supports .so libraries. 12270 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12272 ;; 12273 m68k) 12274 library_names_spec='$libname.ixlibrary $libname.a' 12275 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12276 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' 12277 ;; 12278 esac 12279 ;; 12280 12281beos*) 12282 library_names_spec='$libname$shared_ext' 12283 dynamic_linker="$host_os ld.so" 12284 shlibpath_var=LIBRARY_PATH 12285 ;; 12286 12287bsdi[45]*) 12288 version_type=linux # correct to gnu/linux during the next big refactor 12289 need_version=no 12290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12291 soname_spec='$libname$release$shared_ext$major' 12292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12293 shlibpath_var=LD_LIBRARY_PATH 12294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12296 # the default ld.so.conf also contains /usr/contrib/lib and 12297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12298 # libtool to hard-code these into programs 12299 ;; 12300 12301cygwin* | mingw* | pw32* | cegcc*) 12302 version_type=windows 12303 shrext_cmds=.dll 12304 need_version=no 12305 need_lib_prefix=no 12306 12307 case $GCC,$cc_basename in 12308 yes,*) 12309 # gcc 12310 library_names_spec='$libname.dll.a' 12311 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12312 postinstall_cmds='base_file=`basename \$file`~ 12313 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12314 dldir=$destdir/`dirname \$dlpath`~ 12315 test -d \$dldir || mkdir -p \$dldir~ 12316 $install_prog $dir/$dlname \$dldir/$dlname~ 12317 chmod a+x \$dldir/$dlname~ 12318 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12319 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12320 fi' 12321 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12322 dlpath=$dir/\$dldll~ 12323 $RM \$dlpath' 12324 shlibpath_overrides_runpath=yes 12325 12326 case $host_os in 12327 cygwin*) 12328 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12329 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12330 12331 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12332 ;; 12333 mingw* | cegcc*) 12334 # MinGW DLLs use traditional 'lib' prefix 12335 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12336 ;; 12337 pw32*) 12338 # pw32 DLLs use 'pw' prefix rather than 'lib' 12339 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12340 ;; 12341 esac 12342 dynamic_linker='Win32 ld.exe' 12343 ;; 12344 12345 *,cl* | *,icl*) 12346 # Native MSVC or ICC 12347 libname_spec='$name' 12348 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12349 library_names_spec='$libname.dll.lib' 12350 12351 case $build_os in 12352 mingw*) 12353 sys_lib_search_path_spec= 12354 lt_save_ifs=$IFS 12355 IFS=';' 12356 for lt_path in $LIB 12357 do 12358 IFS=$lt_save_ifs 12359 # Let DOS variable expansion print the short 8.3 style file name. 12360 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12361 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12362 done 12363 IFS=$lt_save_ifs 12364 # Convert to MSYS style. 12365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12366 ;; 12367 cygwin*) 12368 # Convert to unix form, then to dos form, then back to unix form 12369 # but this time dos style (no spaces!) so that the unix form looks 12370 # like /cygdrive/c/PROGRA~1:/cygdr... 12371 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12372 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12373 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12374 ;; 12375 *) 12376 sys_lib_search_path_spec=$LIB 12377 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12378 # It is most probably a Windows format PATH. 12379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12380 else 12381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12382 fi 12383 # FIXME: find the short name or the path components, as spaces are 12384 # common. (e.g. "Program Files" -> "PROGRA~1") 12385 ;; 12386 esac 12387 12388 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12389 postinstall_cmds='base_file=`basename \$file`~ 12390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12391 dldir=$destdir/`dirname \$dlpath`~ 12392 test -d \$dldir || mkdir -p \$dldir~ 12393 $install_prog $dir/$dlname \$dldir/$dlname' 12394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12395 dlpath=$dir/\$dldll~ 12396 $RM \$dlpath' 12397 shlibpath_overrides_runpath=yes 12398 dynamic_linker='Win32 link.exe' 12399 ;; 12400 12401 *) 12402 # Assume MSVC and ICC wrapper 12403 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12404 dynamic_linker='Win32 ld.exe' 12405 ;; 12406 esac 12407 # FIXME: first we should search . and the directory the executable is in 12408 shlibpath_var=PATH 12409 ;; 12410 12411darwin* | rhapsody*) 12412 dynamic_linker="$host_os dyld" 12413 version_type=darwin 12414 need_lib_prefix=no 12415 need_version=no 12416 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12417 soname_spec='$libname$release$major$shared_ext' 12418 shlibpath_overrides_runpath=yes 12419 shlibpath_var=DYLD_LIBRARY_PATH 12420 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12421 12422 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12423 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12424 ;; 12425 12426dgux*) 12427 version_type=linux # correct to gnu/linux during the next big refactor 12428 need_lib_prefix=no 12429 need_version=no 12430 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12431 soname_spec='$libname$release$shared_ext$major' 12432 shlibpath_var=LD_LIBRARY_PATH 12433 ;; 12434 12435freebsd* | dragonfly* | midnightbsd*) 12436 # DragonFly does not have aout. When/if they implement a new 12437 # versioning mechanism, adjust this. 12438 if test -x /usr/bin/objformat; then 12439 objformat=`/usr/bin/objformat` 12440 else 12441 case $host_os in 12442 freebsd[23].*) objformat=aout ;; 12443 *) objformat=elf ;; 12444 esac 12445 fi 12446 version_type=freebsd-$objformat 12447 case $version_type in 12448 freebsd-elf*) 12449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12450 soname_spec='$libname$release$shared_ext$major' 12451 need_version=no 12452 need_lib_prefix=no 12453 ;; 12454 freebsd-*) 12455 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12456 need_version=yes 12457 ;; 12458 esac 12459 shlibpath_var=LD_LIBRARY_PATH 12460 case $host_os in 12461 freebsd2.*) 12462 shlibpath_overrides_runpath=yes 12463 ;; 12464 freebsd3.[01]* | freebsdelf3.[01]*) 12465 shlibpath_overrides_runpath=yes 12466 hardcode_into_libs=yes 12467 ;; 12468 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12469 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12470 shlibpath_overrides_runpath=no 12471 hardcode_into_libs=yes 12472 ;; 12473 *) # from 4.6 on, and DragonFly 12474 shlibpath_overrides_runpath=yes 12475 hardcode_into_libs=yes 12476 ;; 12477 esac 12478 ;; 12479 12480haiku*) 12481 version_type=linux # correct to gnu/linux during the next big refactor 12482 need_lib_prefix=no 12483 need_version=no 12484 dynamic_linker="$host_os runtime_loader" 12485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12486 soname_spec='$libname$release$shared_ext$major' 12487 shlibpath_var=LIBRARY_PATH 12488 shlibpath_overrides_runpath=no 12489 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12490 hardcode_into_libs=yes 12491 ;; 12492 12493hpux9* | hpux10* | hpux11*) 12494 # Give a soname corresponding to the major version so that dld.sl refuses to 12495 # link against other versions. 12496 version_type=sunos 12497 need_lib_prefix=no 12498 need_version=no 12499 case $host_cpu in 12500 ia64*) 12501 shrext_cmds='.so' 12502 hardcode_into_libs=yes 12503 dynamic_linker="$host_os dld.so" 12504 shlibpath_var=LD_LIBRARY_PATH 12505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12507 soname_spec='$libname$release$shared_ext$major' 12508 if test 32 = "$HPUX_IA64_MODE"; then 12509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12510 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12511 else 12512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12513 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12514 fi 12515 ;; 12516 hppa*64*) 12517 shrext_cmds='.sl' 12518 hardcode_into_libs=yes 12519 dynamic_linker="$host_os dld.sl" 12520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12523 soname_spec='$libname$release$shared_ext$major' 12524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12526 ;; 12527 *) 12528 shrext_cmds='.sl' 12529 dynamic_linker="$host_os dld.sl" 12530 shlibpath_var=SHLIB_PATH 12531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12533 soname_spec='$libname$release$shared_ext$major' 12534 ;; 12535 esac 12536 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12537 postinstall_cmds='chmod 555 $lib' 12538 # or fails outright, so override atomically: 12539 install_override_mode=555 12540 ;; 12541 12542interix[3-9]*) 12543 version_type=linux # correct to gnu/linux during the next big refactor 12544 need_lib_prefix=no 12545 need_version=no 12546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12547 soname_spec='$libname$release$shared_ext$major' 12548 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12549 shlibpath_var=LD_LIBRARY_PATH 12550 shlibpath_overrides_runpath=no 12551 hardcode_into_libs=yes 12552 ;; 12553 12554irix5* | irix6* | nonstopux*) 12555 case $host_os in 12556 nonstopux*) version_type=nonstopux ;; 12557 *) 12558 if test yes = "$lt_cv_prog_gnu_ld"; then 12559 version_type=linux # correct to gnu/linux during the next big refactor 12560 else 12561 version_type=irix 12562 fi ;; 12563 esac 12564 need_lib_prefix=no 12565 need_version=no 12566 soname_spec='$libname$release$shared_ext$major' 12567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12568 case $host_os in 12569 irix5* | nonstopux*) 12570 libsuff= shlibsuff= 12571 ;; 12572 *) 12573 case $LD in # libtool.m4 will add one of these switches to LD 12574 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12575 libsuff= shlibsuff= libmagic=32-bit;; 12576 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12577 libsuff=32 shlibsuff=N32 libmagic=N32;; 12578 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12579 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12580 *) libsuff= shlibsuff= libmagic=never-match;; 12581 esac 12582 ;; 12583 esac 12584 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12585 shlibpath_overrides_runpath=no 12586 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12587 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12588 hardcode_into_libs=yes 12589 ;; 12590 12591# No shared lib support for Linux oldld, aout, or coff. 12592linux*oldld* | linux*aout* | linux*coff*) 12593 dynamic_linker=no 12594 ;; 12595 12596linux*android*) 12597 version_type=none # Android doesn't support versioned libraries. 12598 need_lib_prefix=no 12599 need_version=no 12600 library_names_spec='$libname$release$shared_ext' 12601 soname_spec='$libname$release$shared_ext' 12602 finish_cmds= 12603 shlibpath_var=LD_LIBRARY_PATH 12604 shlibpath_overrides_runpath=yes 12605 12606 # This implies no fast_install, which is unacceptable. 12607 # Some rework will be needed to allow for fast_install 12608 # before this can be enabled. 12609 hardcode_into_libs=yes 12610 12611 dynamic_linker='Android linker' 12612 # Don't embed -rpath directories since the linker doesn't support them. 12613 hardcode_libdir_flag_spec='-L$libdir' 12614 ;; 12615 12616# This must be glibc/ELF. 12617linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12618 version_type=linux # correct to gnu/linux during the next big refactor 12619 need_lib_prefix=no 12620 need_version=no 12621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12622 soname_spec='$libname$release$shared_ext$major' 12623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12624 shlibpath_var=LD_LIBRARY_PATH 12625 shlibpath_overrides_runpath=no 12626 12627 # Some binutils ld are patched to set DT_RUNPATH 12628 if test ${lt_cv_shlibpath_overrides_runpath+y} 12629then : 12630 printf %s "(cached) " >&6 12631else case e in #( 12632 e) lt_cv_shlibpath_overrides_runpath=no 12633 save_LDFLAGS=$LDFLAGS 12634 save_libdir=$libdir 12635 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12636 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12638/* end confdefs.h. */ 12639 12640int 12641main (void) 12642{ 12643 12644 ; 12645 return 0; 12646} 12647_ACEOF 12648if ac_fn_c_try_link "$LINENO" 12649then : 12650 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12651then : 12652 lt_cv_shlibpath_overrides_runpath=yes 12653fi 12654fi 12655rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12656 conftest$ac_exeext conftest.$ac_ext 12657 LDFLAGS=$save_LDFLAGS 12658 libdir=$save_libdir 12659 ;; 12660esac 12661fi 12662 12663 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12664 12665 # This implies no fast_install, which is unacceptable. 12666 # Some rework will be needed to allow for fast_install 12667 # before this can be enabled. 12668 hardcode_into_libs=yes 12669 12670 # Ideally, we could use ldconfig to report *all* directores which are 12671 # searched for libraries, however this is still not possible. Aside from not 12672 # being certain /sbin/ldconfig is available, command 12673 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12674 # even though it is searched at run-time. Try to do the best guess by 12675 # appending ld.so.conf contents (and includes) to the search path. 12676 if test -f /etc/ld.so.conf; then 12677 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' ' '` 12678 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12679 fi 12680 12681 # We used to test for /lib/ld.so.1 and disable shared libraries on 12682 # powerpc, because MkLinux only supported shared libraries with the 12683 # GNU dynamic linker. Since this was broken with cross compilers, 12684 # most powerpc-linux boxes support dynamic linking these days and 12685 # people can always --disable-shared, the test was removed, and we 12686 # assume the GNU/Linux dynamic linker is in use. 12687 dynamic_linker='GNU/Linux ld.so' 12688 ;; 12689 12690netbsd*) 12691 version_type=sunos 12692 need_lib_prefix=no 12693 need_version=no 12694 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12697 dynamic_linker='NetBSD (a.out) ld.so' 12698 else 12699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12700 soname_spec='$libname$release$shared_ext$major' 12701 dynamic_linker='NetBSD ld.elf_so' 12702 fi 12703 shlibpath_var=LD_LIBRARY_PATH 12704 shlibpath_overrides_runpath=yes 12705 hardcode_into_libs=yes 12706 ;; 12707 12708newsos6) 12709 version_type=linux # correct to gnu/linux during the next big refactor 12710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12711 shlibpath_var=LD_LIBRARY_PATH 12712 shlibpath_overrides_runpath=yes 12713 ;; 12714 12715*nto* | *qnx*) 12716 version_type=qnx 12717 need_lib_prefix=no 12718 need_version=no 12719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12720 soname_spec='$libname$release$shared_ext$major' 12721 shlibpath_var=LD_LIBRARY_PATH 12722 shlibpath_overrides_runpath=no 12723 hardcode_into_libs=yes 12724 dynamic_linker='ldqnx.so' 12725 ;; 12726 12727openbsd* | bitrig*) 12728 version_type=sunos 12729 sys_lib_dlsearch_path_spec=/usr/lib 12730 need_lib_prefix=no 12731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12732 need_version=no 12733 else 12734 need_version=yes 12735 fi 12736 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12738 shlibpath_var=LD_LIBRARY_PATH 12739 shlibpath_overrides_runpath=yes 12740 ;; 12741 12742os2*) 12743 libname_spec='$name' 12744 version_type=windows 12745 shrext_cmds=.dll 12746 need_version=no 12747 need_lib_prefix=no 12748 # OS/2 can only load a DLL with a base name of 8 characters or less. 12749 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12750 v=$($ECHO $release$versuffix | tr -d .-); 12751 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12752 $ECHO $n$v`$shared_ext' 12753 library_names_spec='${libname}_dll.$libext' 12754 dynamic_linker='OS/2 ld.exe' 12755 shlibpath_var=BEGINLIBPATH 12756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12757 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12758 postinstall_cmds='base_file=`basename \$file`~ 12759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12760 dldir=$destdir/`dirname \$dlpath`~ 12761 test -d \$dldir || mkdir -p \$dldir~ 12762 $install_prog $dir/$dlname \$dldir/$dlname~ 12763 chmod a+x \$dldir/$dlname~ 12764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12766 fi' 12767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12768 dlpath=$dir/\$dldll~ 12769 $RM \$dlpath' 12770 ;; 12771 12772osf3* | osf4* | osf5*) 12773 version_type=osf 12774 need_lib_prefix=no 12775 need_version=no 12776 soname_spec='$libname$release$shared_ext$major' 12777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12778 shlibpath_var=LD_LIBRARY_PATH 12779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12780 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12781 ;; 12782 12783rdos*) 12784 dynamic_linker=no 12785 ;; 12786 12787solaris*) 12788 version_type=linux # correct to gnu/linux during the next big refactor 12789 need_lib_prefix=no 12790 need_version=no 12791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12792 soname_spec='$libname$release$shared_ext$major' 12793 shlibpath_var=LD_LIBRARY_PATH 12794 shlibpath_overrides_runpath=yes 12795 hardcode_into_libs=yes 12796 # ldd complains unless libraries are executable 12797 postinstall_cmds='chmod +x $lib' 12798 ;; 12799 12800sunos4*) 12801 version_type=sunos 12802 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12804 shlibpath_var=LD_LIBRARY_PATH 12805 shlibpath_overrides_runpath=yes 12806 if test yes = "$with_gnu_ld"; then 12807 need_lib_prefix=no 12808 fi 12809 need_version=yes 12810 ;; 12811 12812sysv4 | sysv4.3*) 12813 version_type=linux # correct to gnu/linux during the next big refactor 12814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12815 soname_spec='$libname$release$shared_ext$major' 12816 shlibpath_var=LD_LIBRARY_PATH 12817 case $host_vendor in 12818 sni) 12819 shlibpath_overrides_runpath=no 12820 need_lib_prefix=no 12821 runpath_var=LD_RUN_PATH 12822 ;; 12823 siemens) 12824 need_lib_prefix=no 12825 ;; 12826 motorola) 12827 need_lib_prefix=no 12828 need_version=no 12829 shlibpath_overrides_runpath=no 12830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12831 ;; 12832 esac 12833 ;; 12834 12835sysv4*MP*) 12836 if test -d /usr/nec; then 12837 version_type=linux # correct to gnu/linux during the next big refactor 12838 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12839 soname_spec='$libname$shared_ext.$major' 12840 shlibpath_var=LD_LIBRARY_PATH 12841 fi 12842 ;; 12843 12844sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12845 version_type=sco 12846 need_lib_prefix=no 12847 need_version=no 12848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12849 soname_spec='$libname$release$shared_ext$major' 12850 shlibpath_var=LD_LIBRARY_PATH 12851 shlibpath_overrides_runpath=yes 12852 hardcode_into_libs=yes 12853 if test yes = "$with_gnu_ld"; then 12854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12855 else 12856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12857 case $host_os in 12858 sco3.2v5*) 12859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12860 ;; 12861 esac 12862 fi 12863 sys_lib_dlsearch_path_spec='/usr/lib' 12864 ;; 12865 12866tpf*) 12867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12868 version_type=linux # correct to gnu/linux during the next big refactor 12869 need_lib_prefix=no 12870 need_version=no 12871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12872 shlibpath_var=LD_LIBRARY_PATH 12873 shlibpath_overrides_runpath=no 12874 hardcode_into_libs=yes 12875 ;; 12876 12877uts4*) 12878 version_type=linux # correct to gnu/linux during the next big refactor 12879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12880 soname_spec='$libname$release$shared_ext$major' 12881 shlibpath_var=LD_LIBRARY_PATH 12882 ;; 12883 12884*) 12885 dynamic_linker=no 12886 ;; 12887esac 12888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12889printf "%s\n" "$dynamic_linker" >&6; } 12890test no = "$dynamic_linker" && can_build_shared=no 12891 12892variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12893if test yes = "$GCC"; then 12894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12895fi 12896 12897if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12898 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12899fi 12900 12901if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12902 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12903fi 12904 12905# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12906configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12907 12908# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12909func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12910 12911# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12912configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13011printf %s "checking how to hardcode library paths into programs... " >&6; } 13012hardcode_action= 13013if test -n "$hardcode_libdir_flag_spec" || 13014 test -n "$runpath_var" || 13015 test yes = "$hardcode_automatic"; then 13016 13017 # We can hardcode non-existent directories. 13018 if test no != "$hardcode_direct" && 13019 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13020 # have to relink, otherwise we might link with an installed library 13021 # when we should be linking with a yet-to-be-installed one 13022 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13023 test no != "$hardcode_minus_L"; then 13024 # Linking always hardcodes the temporary library directory. 13025 hardcode_action=relink 13026 else 13027 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13028 hardcode_action=immediate 13029 fi 13030else 13031 # We cannot hardcode anything, or else we can only hardcode existing 13032 # directories. 13033 hardcode_action=unsupported 13034fi 13035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13036printf "%s\n" "$hardcode_action" >&6; } 13037 13038if test relink = "$hardcode_action" || 13039 test yes = "$inherit_rpath"; then 13040 # Fast installation is not supported 13041 enable_fast_install=no 13042elif test yes = "$shlibpath_overrides_runpath" || 13043 test no = "$enable_shared"; then 13044 # Fast installation is not necessary 13045 enable_fast_install=needless 13046fi 13047 13048 13049 13050 13051 13052 13053 if test yes != "$enable_dlopen"; then 13054 enable_dlopen=unknown 13055 enable_dlopen_self=unknown 13056 enable_dlopen_self_static=unknown 13057else 13058 lt_cv_dlopen=no 13059 lt_cv_dlopen_libs= 13060 13061 case $host_os in 13062 beos*) 13063 lt_cv_dlopen=load_add_on 13064 lt_cv_dlopen_libs= 13065 lt_cv_dlopen_self=yes 13066 ;; 13067 13068 mingw* | pw32* | cegcc*) 13069 lt_cv_dlopen=LoadLibrary 13070 lt_cv_dlopen_libs= 13071 ;; 13072 13073 cygwin*) 13074 lt_cv_dlopen=dlopen 13075 lt_cv_dlopen_libs= 13076 ;; 13077 13078 darwin*) 13079 # if libdl is installed we need to link against it 13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13081printf %s "checking for dlopen in -ldl... " >&6; } 13082if test ${ac_cv_lib_dl_dlopen+y} 13083then : 13084 printf %s "(cached) " >&6 13085else case e in #( 13086 e) ac_check_lib_save_LIBS=$LIBS 13087LIBS="-ldl $LIBS" 13088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13089/* end confdefs.h. */ 13090 13091/* Override any GCC internal prototype to avoid an error. 13092 Use char because int might match the return type of a GCC 13093 builtin and then its argument prototype would still apply. 13094 The 'extern "C"' is for builds by C++ compilers; 13095 although this is not generally supported in C code supporting it here 13096 has little cost and some practical benefit (sr 110532). */ 13097#ifdef __cplusplus 13098extern "C" 13099#endif 13100char dlopen (void); 13101int 13102main (void) 13103{ 13104return dlopen (); 13105 ; 13106 return 0; 13107} 13108_ACEOF 13109if ac_fn_c_try_link "$LINENO" 13110then : 13111 ac_cv_lib_dl_dlopen=yes 13112else case e in #( 13113 e) ac_cv_lib_dl_dlopen=no ;; 13114esac 13115fi 13116rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13117 conftest$ac_exeext conftest.$ac_ext 13118LIBS=$ac_check_lib_save_LIBS ;; 13119esac 13120fi 13121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13122printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13123if test "x$ac_cv_lib_dl_dlopen" = xyes 13124then : 13125 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13126else case e in #( 13127 e) 13128 lt_cv_dlopen=dyld 13129 lt_cv_dlopen_libs= 13130 lt_cv_dlopen_self=yes 13131 ;; 13132esac 13133fi 13134 13135 ;; 13136 13137 tpf*) 13138 # Don't try to run any link tests for TPF. We know it's impossible 13139 # because TPF is a cross-compiler, and we know how we open DSOs. 13140 lt_cv_dlopen=dlopen 13141 lt_cv_dlopen_libs= 13142 lt_cv_dlopen_self=no 13143 ;; 13144 13145 *) 13146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13147if test "x$ac_cv_func_shl_load" = xyes 13148then : 13149 lt_cv_dlopen=shl_load 13150else case e in #( 13151 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13152printf %s "checking for shl_load in -ldld... " >&6; } 13153if test ${ac_cv_lib_dld_shl_load+y} 13154then : 13155 printf %s "(cached) " >&6 13156else case e in #( 13157 e) ac_check_lib_save_LIBS=$LIBS 13158LIBS="-ldld $LIBS" 13159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13160/* end confdefs.h. */ 13161 13162/* Override any GCC internal prototype to avoid an error. 13163 Use char because int might match the return type of a GCC 13164 builtin and then its argument prototype would still apply. 13165 The 'extern "C"' is for builds by C++ compilers; 13166 although this is not generally supported in C code supporting it here 13167 has little cost and some practical benefit (sr 110532). */ 13168#ifdef __cplusplus 13169extern "C" 13170#endif 13171char shl_load (void); 13172int 13173main (void) 13174{ 13175return shl_load (); 13176 ; 13177 return 0; 13178} 13179_ACEOF 13180if ac_fn_c_try_link "$LINENO" 13181then : 13182 ac_cv_lib_dld_shl_load=yes 13183else case e in #( 13184 e) ac_cv_lib_dld_shl_load=no ;; 13185esac 13186fi 13187rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13188 conftest$ac_exeext conftest.$ac_ext 13189LIBS=$ac_check_lib_save_LIBS ;; 13190esac 13191fi 13192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13193printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13194if test "x$ac_cv_lib_dld_shl_load" = xyes 13195then : 13196 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13197else case e in #( 13198 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13199if test "x$ac_cv_func_dlopen" = xyes 13200then : 13201 lt_cv_dlopen=dlopen 13202else case e in #( 13203 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13204printf %s "checking for dlopen in -ldl... " >&6; } 13205if test ${ac_cv_lib_dl_dlopen+y} 13206then : 13207 printf %s "(cached) " >&6 13208else case e in #( 13209 e) ac_check_lib_save_LIBS=$LIBS 13210LIBS="-ldl $LIBS" 13211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13212/* end confdefs.h. */ 13213 13214/* Override any GCC internal prototype to avoid an error. 13215 Use char because int might match the return type of a GCC 13216 builtin and then its argument prototype would still apply. 13217 The 'extern "C"' is for builds by C++ compilers; 13218 although this is not generally supported in C code supporting it here 13219 has little cost and some practical benefit (sr 110532). */ 13220#ifdef __cplusplus 13221extern "C" 13222#endif 13223char dlopen (void); 13224int 13225main (void) 13226{ 13227return dlopen (); 13228 ; 13229 return 0; 13230} 13231_ACEOF 13232if ac_fn_c_try_link "$LINENO" 13233then : 13234 ac_cv_lib_dl_dlopen=yes 13235else case e in #( 13236 e) ac_cv_lib_dl_dlopen=no ;; 13237esac 13238fi 13239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13240 conftest$ac_exeext conftest.$ac_ext 13241LIBS=$ac_check_lib_save_LIBS ;; 13242esac 13243fi 13244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13245printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13246if test "x$ac_cv_lib_dl_dlopen" = xyes 13247then : 13248 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13249else case e in #( 13250 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13251printf %s "checking for dlopen in -lsvld... " >&6; } 13252if test ${ac_cv_lib_svld_dlopen+y} 13253then : 13254 printf %s "(cached) " >&6 13255else case e in #( 13256 e) ac_check_lib_save_LIBS=$LIBS 13257LIBS="-lsvld $LIBS" 13258cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259/* end confdefs.h. */ 13260 13261/* Override any GCC internal prototype to avoid an error. 13262 Use char because int might match the return type of a GCC 13263 builtin and then its argument prototype would still apply. 13264 The 'extern "C"' is for builds by C++ compilers; 13265 although this is not generally supported in C code supporting it here 13266 has little cost and some practical benefit (sr 110532). */ 13267#ifdef __cplusplus 13268extern "C" 13269#endif 13270char dlopen (void); 13271int 13272main (void) 13273{ 13274return dlopen (); 13275 ; 13276 return 0; 13277} 13278_ACEOF 13279if ac_fn_c_try_link "$LINENO" 13280then : 13281 ac_cv_lib_svld_dlopen=yes 13282else case e in #( 13283 e) ac_cv_lib_svld_dlopen=no ;; 13284esac 13285fi 13286rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13287 conftest$ac_exeext conftest.$ac_ext 13288LIBS=$ac_check_lib_save_LIBS ;; 13289esac 13290fi 13291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13292printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13293if test "x$ac_cv_lib_svld_dlopen" = xyes 13294then : 13295 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13296else case e in #( 13297 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13298printf %s "checking for dld_link in -ldld... " >&6; } 13299if test ${ac_cv_lib_dld_dld_link+y} 13300then : 13301 printf %s "(cached) " >&6 13302else case e in #( 13303 e) ac_check_lib_save_LIBS=$LIBS 13304LIBS="-ldld $LIBS" 13305cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13306/* end confdefs.h. */ 13307 13308/* Override any GCC internal prototype to avoid an error. 13309 Use char because int might match the return type of a GCC 13310 builtin and then its argument prototype would still apply. 13311 The 'extern "C"' is for builds by C++ compilers; 13312 although this is not generally supported in C code supporting it here 13313 has little cost and some practical benefit (sr 110532). */ 13314#ifdef __cplusplus 13315extern "C" 13316#endif 13317char dld_link (void); 13318int 13319main (void) 13320{ 13321return dld_link (); 13322 ; 13323 return 0; 13324} 13325_ACEOF 13326if ac_fn_c_try_link "$LINENO" 13327then : 13328 ac_cv_lib_dld_dld_link=yes 13329else case e in #( 13330 e) ac_cv_lib_dld_dld_link=no ;; 13331esac 13332fi 13333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13334 conftest$ac_exeext conftest.$ac_ext 13335LIBS=$ac_check_lib_save_LIBS ;; 13336esac 13337fi 13338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13339printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13340if test "x$ac_cv_lib_dld_dld_link" = xyes 13341then : 13342 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13343fi 13344 13345 ;; 13346esac 13347fi 13348 13349 ;; 13350esac 13351fi 13352 13353 ;; 13354esac 13355fi 13356 13357 ;; 13358esac 13359fi 13360 13361 ;; 13362esac 13363fi 13364 13365 ;; 13366 esac 13367 13368 if test no = "$lt_cv_dlopen"; then 13369 enable_dlopen=no 13370 else 13371 enable_dlopen=yes 13372 fi 13373 13374 case $lt_cv_dlopen in 13375 dlopen) 13376 save_CPPFLAGS=$CPPFLAGS 13377 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13378 13379 save_LDFLAGS=$LDFLAGS 13380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13381 13382 save_LIBS=$LIBS 13383 LIBS="$lt_cv_dlopen_libs $LIBS" 13384 13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13386printf %s "checking whether a program can dlopen itself... " >&6; } 13387if test ${lt_cv_dlopen_self+y} 13388then : 13389 printf %s "(cached) " >&6 13390else case e in #( 13391 e) if test yes = "$cross_compiling"; then : 13392 lt_cv_dlopen_self=cross 13393else 13394 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13395 lt_status=$lt_dlunknown 13396 cat > conftest.$ac_ext <<_LT_EOF 13397#line $LINENO "configure" 13398#include "confdefs.h" 13399 13400#if HAVE_DLFCN_H 13401#include <dlfcn.h> 13402#endif 13403 13404#include <stdio.h> 13405 13406#ifdef RTLD_GLOBAL 13407# define LT_DLGLOBAL RTLD_GLOBAL 13408#else 13409# ifdef DL_GLOBAL 13410# define LT_DLGLOBAL DL_GLOBAL 13411# else 13412# define LT_DLGLOBAL 0 13413# endif 13414#endif 13415 13416/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13417 find out it does not work in some platform. */ 13418#ifndef LT_DLLAZY_OR_NOW 13419# ifdef RTLD_LAZY 13420# define LT_DLLAZY_OR_NOW RTLD_LAZY 13421# else 13422# ifdef DL_LAZY 13423# define LT_DLLAZY_OR_NOW DL_LAZY 13424# else 13425# ifdef RTLD_NOW 13426# define LT_DLLAZY_OR_NOW RTLD_NOW 13427# else 13428# ifdef DL_NOW 13429# define LT_DLLAZY_OR_NOW DL_NOW 13430# else 13431# define LT_DLLAZY_OR_NOW 0 13432# endif 13433# endif 13434# endif 13435# endif 13436#endif 13437 13438/* When -fvisibility=hidden is used, assume the code has been annotated 13439 correspondingly for the symbols needed. */ 13440#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13441int fnord () __attribute__((visibility("default"))); 13442#endif 13443 13444int fnord () { return 42; } 13445int main () 13446{ 13447 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13448 int status = $lt_dlunknown; 13449 13450 if (self) 13451 { 13452 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13453 else 13454 { 13455 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13456 else puts (dlerror ()); 13457 } 13458 /* dlclose (self); */ 13459 } 13460 else 13461 puts (dlerror ()); 13462 13463 return status; 13464} 13465_LT_EOF 13466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13467 (eval $ac_link) 2>&5 13468 ac_status=$? 13469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13470 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13471 (./conftest; exit; ) >&5 2>/dev/null 13472 lt_status=$? 13473 case x$lt_status in 13474 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13475 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13476 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13477 esac 13478 else : 13479 # compilation failed 13480 lt_cv_dlopen_self=no 13481 fi 13482fi 13483rm -fr conftest* 13484 13485 ;; 13486esac 13487fi 13488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13489printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13490 13491 if test yes = "$lt_cv_dlopen_self"; then 13492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13494printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13495if test ${lt_cv_dlopen_self_static+y} 13496then : 13497 printf %s "(cached) " >&6 13498else case e in #( 13499 e) if test yes = "$cross_compiling"; then : 13500 lt_cv_dlopen_self_static=cross 13501else 13502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13503 lt_status=$lt_dlunknown 13504 cat > conftest.$ac_ext <<_LT_EOF 13505#line $LINENO "configure" 13506#include "confdefs.h" 13507 13508#if HAVE_DLFCN_H 13509#include <dlfcn.h> 13510#endif 13511 13512#include <stdio.h> 13513 13514#ifdef RTLD_GLOBAL 13515# define LT_DLGLOBAL RTLD_GLOBAL 13516#else 13517# ifdef DL_GLOBAL 13518# define LT_DLGLOBAL DL_GLOBAL 13519# else 13520# define LT_DLGLOBAL 0 13521# endif 13522#endif 13523 13524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13525 find out it does not work in some platform. */ 13526#ifndef LT_DLLAZY_OR_NOW 13527# ifdef RTLD_LAZY 13528# define LT_DLLAZY_OR_NOW RTLD_LAZY 13529# else 13530# ifdef DL_LAZY 13531# define LT_DLLAZY_OR_NOW DL_LAZY 13532# else 13533# ifdef RTLD_NOW 13534# define LT_DLLAZY_OR_NOW RTLD_NOW 13535# else 13536# ifdef DL_NOW 13537# define LT_DLLAZY_OR_NOW DL_NOW 13538# else 13539# define LT_DLLAZY_OR_NOW 0 13540# endif 13541# endif 13542# endif 13543# endif 13544#endif 13545 13546/* When -fvisibility=hidden is used, assume the code has been annotated 13547 correspondingly for the symbols needed. */ 13548#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13549int fnord () __attribute__((visibility("default"))); 13550#endif 13551 13552int fnord () { return 42; } 13553int main () 13554{ 13555 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13556 int status = $lt_dlunknown; 13557 13558 if (self) 13559 { 13560 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13561 else 13562 { 13563 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13564 else puts (dlerror ()); 13565 } 13566 /* dlclose (self); */ 13567 } 13568 else 13569 puts (dlerror ()); 13570 13571 return status; 13572} 13573_LT_EOF 13574 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13575 (eval $ac_link) 2>&5 13576 ac_status=$? 13577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13578 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13579 (./conftest; exit; ) >&5 2>/dev/null 13580 lt_status=$? 13581 case x$lt_status in 13582 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13583 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13584 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13585 esac 13586 else : 13587 # compilation failed 13588 lt_cv_dlopen_self_static=no 13589 fi 13590fi 13591rm -fr conftest* 13592 13593 ;; 13594esac 13595fi 13596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13597printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13598 fi 13599 13600 CPPFLAGS=$save_CPPFLAGS 13601 LDFLAGS=$save_LDFLAGS 13602 LIBS=$save_LIBS 13603 ;; 13604 esac 13605 13606 case $lt_cv_dlopen_self in 13607 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13608 *) enable_dlopen_self=unknown ;; 13609 esac 13610 13611 case $lt_cv_dlopen_self_static in 13612 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13613 *) enable_dlopen_self_static=unknown ;; 13614 esac 13615fi 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633striplib= 13634old_striplib= 13635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13636printf %s "checking whether stripping libraries is possible... " >&6; } 13637if test -z "$STRIP"; then 13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13639printf "%s\n" "no" >&6; } 13640else 13641 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13642 old_striplib="$STRIP --strip-debug" 13643 striplib="$STRIP --strip-unneeded" 13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13645printf "%s\n" "yes" >&6; } 13646 else 13647 case $host_os in 13648 darwin*) 13649 # FIXME - insert some real tests, host_os isn't really good enough 13650 striplib="$STRIP -x" 13651 old_striplib="$STRIP -S" 13652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13653printf "%s\n" "yes" >&6; } 13654 ;; 13655 freebsd*) 13656 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13657 old_striplib="$STRIP --strip-debug" 13658 striplib="$STRIP --strip-unneeded" 13659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13660printf "%s\n" "yes" >&6; } 13661 else 13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13663printf "%s\n" "no" >&6; } 13664 fi 13665 ;; 13666 *) 13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13668printf "%s\n" "no" >&6; } 13669 ;; 13670 esac 13671 fi 13672fi 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 # Report what library types will actually be built 13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13687printf %s "checking if libtool supports shared libraries... " >&6; } 13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13689printf "%s\n" "$can_build_shared" >&6; } 13690 13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13692printf %s "checking whether to build shared libraries... " >&6; } 13693 test no = "$can_build_shared" && enable_shared=no 13694 13695 # On AIX, shared libraries and static libraries use the same namespace, and 13696 # are all built from PIC. 13697 case $host_os in 13698 aix3*) 13699 test yes = "$enable_shared" && enable_static=no 13700 if test -n "$RANLIB"; then 13701 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13702 postinstall_cmds='$RANLIB $lib' 13703 fi 13704 ;; 13705 13706 aix[4-9]*) 13707 if test ia64 != "$host_cpu"; then 13708 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13709 yes,aix,yes) ;; # shared object as lib.so file only 13710 yes,svr4,*) ;; # shared object as lib.so archive member only 13711 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13712 esac 13713 fi 13714 ;; 13715 esac 13716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13717printf "%s\n" "$enable_shared" >&6; } 13718 13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13720printf %s "checking whether to build static libraries... " >&6; } 13721 # Make sure either enable_shared or enable_static is yes. 13722 test yes = "$enable_shared" || enable_static=yes 13723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13724printf "%s\n" "$enable_static" >&6; } 13725 13726 13727 13728 13729fi 13730ac_ext=c 13731ac_cpp='$CPP $CPPFLAGS' 13732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13734ac_compiler_gnu=$ac_cv_c_compiler_gnu 13735 13736CC=$lt_save_CC 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 ac_config_commands="$ac_config_commands libtool" 13753 13754 13755 13756 13757# Only expand once: 13758 13759 13760 13761 13762 CFLAG_VISIBILITY= 13763 HAVE_VISIBILITY=0 13764 if test -n "$GCC"; then 13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 13766printf %s "checking whether the -Werror option is usable... " >&6; } 13767 if test ${gl_cv_cc_vis_werror+y} 13768then : 13769 printf %s "(cached) " >&6 13770else case e in #( 13771 e) 13772 gl_save_CFLAGS="$CFLAGS" 13773 CFLAGS="$CFLAGS -Werror" 13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13775/* end confdefs.h. */ 13776 13777int 13778main (void) 13779{ 13780 13781 ; 13782 return 0; 13783} 13784_ACEOF 13785if ac_fn_c_try_compile "$LINENO" 13786then : 13787 gl_cv_cc_vis_werror=yes 13788else case e in #( 13789 e) gl_cv_cc_vis_werror=no ;; 13790esac 13791fi 13792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13793 CFLAGS="$gl_save_CFLAGS" ;; 13794esac 13795fi 13796 13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 13798printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 13800printf %s "checking for simple visibility declarations... " >&6; } 13801 if test ${gl_cv_cc_visibility+y} 13802then : 13803 printf %s "(cached) " >&6 13804else case e in #( 13805 e) 13806 gl_save_CFLAGS="$CFLAGS" 13807 CFLAGS="$CFLAGS -fvisibility=hidden" 13808 if test $gl_cv_cc_vis_werror = yes; then 13809 CFLAGS="$CFLAGS -Werror" 13810 fi 13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13812/* end confdefs.h. */ 13813extern __attribute__((__visibility__("hidden"))) int hiddenvar; 13814 extern __attribute__((__visibility__("default"))) int exportedvar; 13815 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 13816 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 13817 void dummyfunc (void) {} 13818 13819int 13820main (void) 13821{ 13822 13823 ; 13824 return 0; 13825} 13826_ACEOF 13827if ac_fn_c_try_compile "$LINENO" 13828then : 13829 gl_cv_cc_visibility=yes 13830else case e in #( 13831 e) gl_cv_cc_visibility=no ;; 13832esac 13833fi 13834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13835 CFLAGS="$gl_save_CFLAGS" ;; 13836esac 13837fi 13838 13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 13840printf "%s\n" "$gl_cv_cc_visibility" >&6; } 13841 if test $gl_cv_cc_visibility = yes; then 13842 CFLAG_VISIBILITY="-fvisibility=hidden" 13843 HAVE_VISIBILITY=1 13844 fi 13845 fi 13846 13847 13848 13849printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 13850 13851 13852 13853ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 13854if test "x$ac_cv_header_sys_mkdev_h" = xyes 13855then : 13856 13857printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h 13858 13859fi 13860 13861if test $ac_cv_header_sys_mkdev_h = no; then 13862 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 13863if test "x$ac_cv_header_sys_sysmacros_h" = xyes 13864then : 13865 13866printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 13867 13868fi 13869 13870fi 13871 13872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13873printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13874if test ${ac_cv_header_sys_wait_h+y} 13875then : 13876 printf %s "(cached) " >&6 13877else case e in #( 13878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13879/* end confdefs.h. */ 13880#include <sys/types.h> 13881#include <sys/wait.h> 13882#ifndef WEXITSTATUS 13883# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13884#endif 13885#ifndef WIFEXITED 13886# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13887#endif 13888 13889int 13890main (void) 13891{ 13892 int s; 13893 wait (&s); 13894 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13895 ; 13896 return 0; 13897} 13898_ACEOF 13899if ac_fn_c_try_compile "$LINENO" 13900then : 13901 ac_cv_header_sys_wait_h=yes 13902else case e in #( 13903 e) ac_cv_header_sys_wait_h=no ;; 13904esac 13905fi 13906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13907esac 13908fi 13909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13910printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } 13911if test $ac_cv_header_sys_wait_h = yes; then 13912 13913printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13914 13915fi 13916 13917ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 13918if test "x$ac_cv_header_stdint_h" = xyes 13919then : 13920 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 13921 13922fi 13923ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 13924if test "x$ac_cv_header_fcntl_h" = xyes 13925then : 13926 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 13927 13928fi 13929ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 13930if test "x$ac_cv_header_inttypes_h" = xyes 13931then : 13932 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 13933 13934fi 13935ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 13936if test "x$ac_cv_header_unistd_h" = xyes 13937then : 13938 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 13939 13940fi 13941ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 13942if test "x$ac_cv_header_byteswap_h" = xyes 13943then : 13944 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h 13945 13946fi 13947 13948ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" 13949if test "x$ac_cv_header_spawn_h" = xyes 13950then : 13951 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h 13952 13953fi 13954ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 13955if test "x$ac_cv_header_utime_h" = xyes 13956then : 13957 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 13958 13959fi 13960ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 13961if test "x$ac_cv_header_wchar_h" = xyes 13962then : 13963 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 13964 13965fi 13966ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" 13967if test "x$ac_cv_header_wctype_h" = xyes 13968then : 13969 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h 13970 13971fi 13972 13973ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 13974if test "x$ac_cv_header_getopt_h" = xyes 13975then : 13976 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 13977 13978fi 13979ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 13980if test "x$ac_cv_header_err_h" = xyes 13981then : 13982 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 13983 13984fi 13985ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default" 13986if test "x$ac_cv_header_xlocale_h" = xyes 13987then : 13988 printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h 13989 13990fi 13991 13992ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default" 13993if test "x$ac_cv_header_sys_bswap_h" = xyes 13994then : 13995 printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h 13996 13997fi 13998ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 13999if test "x$ac_cv_header_sys_mman_h" = xyes 14000then : 14001 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 14002 14003fi 14004ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 14005if test "x$ac_cv_header_sys_stat_h" = xyes 14006then : 14007 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 14008 14009fi 14010ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 14011if test "x$ac_cv_header_sys_types_h" = xyes 14012then : 14013 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 14014 14015fi 14016ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default" 14017if test "x$ac_cv_header_sys_utime_h" = xyes 14018then : 14019 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h 14020 14021fi 14022ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 14023if test "x$ac_cv_header_sys_time_h" = xyes 14024then : 14025 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 14026 14027fi 14028ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 14029if test "x$ac_cv_header_sys_sysmacros_h" = xyes 14030then : 14031 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 14032 14033fi 14034ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 14035if test "x$ac_cv_header_sys_ioctl_h" = xyes 14036then : 14037 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 14038 14039fi 14040 14041if test "$enable_zlib" != "no"; then 14042 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 14043if test "x$ac_cv_header_zlib_h" = xyes 14044then : 14045 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 14046 14047fi 14048 14049fi 14050if test "$enable_bzlib" != "no"; then 14051 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 14052if test "x$ac_cv_header_bzlib_h" = xyes 14053then : 14054 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 14055 14056fi 14057 14058fi 14059if test "$enable_xzlib" != "no"; then 14060 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 14061if test "x$ac_cv_header_lzma_h" = xyes 14062then : 14063 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 14064 14065fi 14066 14067fi 14068if test "$enable_zstdlib" != "no"; then 14069 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default" 14070if test "x$ac_cv_header_zstd_h" = xyes 14071then : 14072 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h 14073 14074fi 14075ac_fn_c_check_header_compile "$LINENO" "zstd_errors.h" "ac_cv_header_zstd_errors_h" "$ac_includes_default" 14076if test "x$ac_cv_header_zstd_errors_h" = xyes 14077then : 14078 printf "%s\n" "#define HAVE_ZSTD_ERRORS_H 1" >>confdefs.h 14079 14080fi 14081 14082fi 14083if test "$enable_lzlib" != "no"; then 14084 ac_fn_c_check_header_compile "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default" 14085if test "x$ac_cv_header_lzlib_h" = xyes 14086then : 14087 printf "%s\n" "#define HAVE_LZLIB_H 1" >>confdefs.h 14088 14089fi 14090 14091fi 14092if test "$enable_lrziplib" != "no"; then 14093 ac_fn_c_check_header_compile "$LINENO" "Lrzip.h" "ac_cv_header_Lrzip_h" "$ac_includes_default" 14094if test "x$ac_cv_header_Lrzip_h" = xyes 14095then : 14096 printf "%s\n" "#define HAVE_LRZIP_H 1" >>confdefs.h 14097 14098fi 14099 14100fi 14101ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h> 14102" 14103if test "x$ac_cv_type_sig_t" = xyes 14104then : 14105 14106printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h 14107 14108fi 14109 14110 14111ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14112if test "x$ac_cv_type_off_t" = xyes 14113then : 14114 14115else case e in #( 14116 e) 14117printf "%s\n" "#define off_t long int" >>confdefs.h 14118 ;; 14119esac 14120fi 14121 14122ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14123if test "x$ac_cv_type_size_t" = xyes 14124then : 14125 14126else case e in #( 14127 e) 14128printf "%s\n" "#define size_t unsigned int" >>confdefs.h 14129 ;; 14130esac 14131fi 14132 14133ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 14134if test "x$ac_cv_member_struct_stat_st_rdev" = xyes 14135then : 14136 14137printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h 14138 14139 14140fi 14141 14142 14143ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 14144" 14145if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes 14146then : 14147 14148printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 14149 14150 14151fi 14152 14153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 14154printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 14155if test ${ac_cv_struct_tm+y} 14156then : 14157 printf %s "(cached) " >&6 14158else case e in #( 14159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14160/* end confdefs.h. */ 14161#include <sys/types.h> 14162#include <time.h> 14163 14164int 14165main (void) 14166{ 14167struct tm tm; 14168 int *p = &tm.tm_sec; 14169 return !p; 14170 ; 14171 return 0; 14172} 14173_ACEOF 14174if ac_fn_c_try_compile "$LINENO" 14175then : 14176 ac_cv_struct_tm=time.h 14177else case e in #( 14178 e) ac_cv_struct_tm=sys/time.h ;; 14179esac 14180fi 14181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14182esac 14183fi 14184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 14185printf "%s\n" "$ac_cv_struct_tm" >&6; } 14186if test $ac_cv_struct_tm = sys/time.h; then 14187 14188printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 14189 14190fi 14191 14192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14193printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14194if test ${ac_cv_c_undeclared_builtin_options+y} 14195then : 14196 printf %s "(cached) " >&6 14197else case e in #( 14198 e) ac_save_CFLAGS=$CFLAGS 14199 ac_cv_c_undeclared_builtin_options='cannot detect' 14200 for ac_arg in '' -fno-builtin; do 14201 CFLAGS="$ac_save_CFLAGS $ac_arg" 14202 # This test program should *not* compile successfully. 14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14204/* end confdefs.h. */ 14205 14206int 14207main (void) 14208{ 14209(void) strchr; 14210 ; 14211 return 0; 14212} 14213_ACEOF 14214if ac_fn_c_try_compile "$LINENO" 14215then : 14216 14217else case e in #( 14218 e) # This test program should compile successfully. 14219 # No library function is consistently available on 14220 # freestanding implementations, so test against a dummy 14221 # declaration. Include always-available headers on the 14222 # off chance that they somehow elicit warnings. 14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14224/* end confdefs.h. */ 14225#include <float.h> 14226#include <limits.h> 14227#include <stdarg.h> 14228#include <stddef.h> 14229extern void ac_decl (int, char *); 14230 14231int 14232main (void) 14233{ 14234(void) ac_decl (0, (char *) 0); 14235 (void) ac_decl; 14236 14237 ; 14238 return 0; 14239} 14240_ACEOF 14241if ac_fn_c_try_compile "$LINENO" 14242then : 14243 if test x"$ac_arg" = x 14244then : 14245 ac_cv_c_undeclared_builtin_options='none needed' 14246else case e in #( 14247 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 14248esac 14249fi 14250 break 14251fi 14252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14253esac 14254fi 14255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14256 done 14257 CFLAGS=$ac_save_CFLAGS 14258 ;; 14259esac 14260fi 14261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14262printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 14263 case $ac_cv_c_undeclared_builtin_options in #( 14264 'cannot detect') : 14265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14266printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14267as_fn_error $? "cannot make $CC report undeclared builtins 14268See 'config.log' for more details" "$LINENO" 5; } ;; #( 14269 'none needed') : 14270 ac_c_undeclared_builtin_options='' ;; #( 14271 *) : 14272 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14273esac 14274 14275ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 14276#include <$ac_cv_struct_tm> 14277 14278" 14279if test "x$ac_cv_member_struct_tm_tm_zone" = xyes 14280then : 14281 14282printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 14283 14284 14285fi 14286 14287if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 14288 14289printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 14290 14291else 14292 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 14293" "$ac_c_undeclared_builtin_options" "CFLAGS" 14294if test "x$ac_cv_have_decl_tzname" = xyes 14295then : 14296 ac_have_decl=1 14297else case e in #( 14298 e) ac_have_decl=0 ;; 14299esac 14300fi 14301printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 14302 14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 14304printf %s "checking for tzname... " >&6; } 14305if test ${ac_cv_var_tzname+y} 14306then : 14307 printf %s "(cached) " >&6 14308else case e in #( 14309 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14310/* end confdefs.h. */ 14311#include <time.h> 14312#if !HAVE_DECL_TZNAME 14313extern char *tzname[]; 14314#endif 14315 14316int 14317main (void) 14318{ 14319return tzname[0][0]; 14320 ; 14321 return 0; 14322} 14323_ACEOF 14324if ac_fn_c_try_link "$LINENO" 14325then : 14326 ac_cv_var_tzname=yes 14327else case e in #( 14328 e) ac_cv_var_tzname=no ;; 14329esac 14330fi 14331rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14332 conftest$ac_exeext conftest.$ac_ext ;; 14333esac 14334fi 14335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 14336printf "%s\n" "$ac_cv_var_tzname" >&6; } 14337 if test $ac_cv_var_tzname = yes; then 14338 14339printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 14340 14341 fi 14342fi 14343 14344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 14345printf %s "checking for tm_zone in struct tm... " >&6; } 14346if test ${ac_cv_struct_tm_zone+y} 14347then : 14348 printf %s "(cached) " >&6 14349else case e in #( 14350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14351/* end confdefs.h. */ 14352#include <sys/types.h> 14353#include <$ac_cv_struct_tm> 14354int 14355main (void) 14356{ 14357struct tm tm; tm.tm_zone; 14358 ; 14359 return 0; 14360} 14361_ACEOF 14362if ac_fn_c_try_compile "$LINENO" 14363then : 14364 ac_cv_struct_tm_zone=yes 14365else case e in #( 14366 e) ac_cv_struct_tm_zone=no ;; 14367esac 14368fi 14369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14370esac 14371fi 14372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 14373printf "%s\n" "$ac_cv_struct_tm_zone" >&6; } 14374if test "$ac_cv_struct_tm_zone" = yes; then 14375 14376printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 14377 14378fi 14379 14380# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 14381# consider it declared and we won't give our own extern. 14382ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 14383" "$ac_c_undeclared_builtin_options" "CFLAGS" 14384if test "x$ac_cv_have_decl_tzname" = xyes 14385then : 14386 ac_have_decl=1 14387else case e in #( 14388 e) ac_have_decl=0 ;; 14389esac 14390fi 14391printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 14392 14393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 14394printf %s "checking for tzname... " >&6; } 14395if test ${ac_cv_var_tzname+y} 14396then : 14397 printf %s "(cached) " >&6 14398else case e in #( 14399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14400/* end confdefs.h. */ 14401#include <time.h> 14402int 14403main (void) 14404{ 14405#if !HAVE_DECL_TZNAME 14406extern char *tzname[]; 14407#endif 14408return tzname[0][0]; 14409 ; 14410 return 0; 14411} 14412_ACEOF 14413if ac_fn_c_try_link "$LINENO" 14414then : 14415 ac_cv_var_tzname=yes 14416else case e in #( 14417 e) ac_cv_var_tzname=no ;; 14418esac 14419fi 14420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14421 conftest$ac_exeext conftest.$ac_ext ;; 14422esac 14423fi 14424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 14425printf "%s\n" "$ac_cv_var_tzname" >&6; } 14426 if test $ac_cv_var_tzname = yes; then 14427 14428printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 14429 14430 fi 14431 14432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 14433printf %s "checking for tm_isdst in struct tm... " >&6; } 14434if test ${ac_cv_struct_tm_isdst+y} 14435then : 14436 printf %s "(cached) " >&6 14437else case e in #( 14438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14439/* end confdefs.h. */ 14440#include <sys/types.h> 14441#include <$ac_cv_struct_tm> 14442int 14443main (void) 14444{ 14445struct tm tm; tm.tm_isdst; 14446 ; 14447 return 0; 14448} 14449_ACEOF 14450if ac_fn_c_try_compile "$LINENO" 14451then : 14452 ac_cv_struct_tm_isdst=yes 14453else case e in #( 14454 e) ac_cv_struct_tm_isdst=no ;; 14455esac 14456fi 14457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14458esac 14459fi 14460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 14461printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; } 14462if test "$ac_cv_struct_tm_isdst" = yes; then 14463 14464printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h 14465 14466fi 14467 14468 14469ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 14470#include <stdlib.h> 14471" "$ac_c_undeclared_builtin_options" "CFLAGS" 14472if test "x$ac_cv_have_decl_daylight" = xyes 14473then : 14474 ac_have_decl=1 14475else case e in #( 14476 e) ac_have_decl=0 ;; 14477esac 14478fi 14479printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h 14480 14481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 14482printf %s "checking for daylight... " >&6; } 14483if test ${ac_cv_var_daylight+y} 14484then : 14485 printf %s "(cached) " >&6 14486else case e in #( 14487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14488/* end confdefs.h. */ 14489#include <time.h> 14490#include <stdlib.h> 14491int 14492main (void) 14493{ 14494#if !HAVE_DECL_DAYLIGHT 14495extern int daylight; 14496#endif 14497daylight = atoi("1"); 14498 ; 14499 return 0; 14500} 14501_ACEOF 14502if ac_fn_c_try_link "$LINENO" 14503then : 14504 ac_cv_var_daylight=yes 14505else case e in #( 14506 e) ac_cv_var_daylight=no ;; 14507esac 14508fi 14509rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14510 conftest$ac_exeext conftest.$ac_ext ;; 14511esac 14512fi 14513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 14514printf "%s\n" "$ac_cv_var_daylight" >&6; } 14515 if test $ac_cv_var_daylight = yes; then 14516 14517printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h 14518 14519 fi 14520 14521# Check whether --enable-largefile was given. 14522if test ${enable_largefile+y} 14523then : 14524 enableval=$enable_largefile; 14525fi 14526if test "$enable_largefile,$enable_year2038" != no,no 14527then : 14528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 14529printf %s "checking for $CC option to enable large file support... " >&6; } 14530if test ${ac_cv_sys_largefile_opts+y} 14531then : 14532 printf %s "(cached) " >&6 14533else case e in #( 14534 e) ac_save_CC="$CC" 14535 ac_opt_found=no 14536 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 14537 if test x"$ac_opt" != x"none needed" 14538then : 14539 CC="$ac_save_CC $ac_opt" 14540fi 14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14542/* end confdefs.h. */ 14543#include <sys/types.h> 14544#ifndef FTYPE 14545# define FTYPE off_t 14546#endif 14547 /* Check that FTYPE can represent 2**63 - 1 correctly. 14548 We can't simply define LARGE_FTYPE to be 9223372036854775807, 14549 since some C++ compilers masquerading as C compilers 14550 incorrectly reject 9223372036854775807. */ 14551#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 14552 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 14553 && LARGE_FTYPE % 2147483647 == 1) 14554 ? 1 : -1]; 14555int 14556main (void) 14557{ 14558 14559 ; 14560 return 0; 14561} 14562_ACEOF 14563if ac_fn_c_try_compile "$LINENO" 14564then : 14565 if test x"$ac_opt" = x"none needed" 14566then : 14567 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 14568 CC="$CC -DFTYPE=ino_t" 14569 if ac_fn_c_try_compile "$LINENO" 14570then : 14571 14572else case e in #( 14573 e) CC="$CC -D_FILE_OFFSET_BITS=64" 14574 if ac_fn_c_try_compile "$LINENO" 14575then : 14576 ac_opt='-D_FILE_OFFSET_BITS=64' 14577fi 14578rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 14579esac 14580fi 14581rm -f core conftest.err conftest.$ac_objext conftest.beam 14582fi 14583 ac_cv_sys_largefile_opts=$ac_opt 14584 ac_opt_found=yes 14585fi 14586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14587 test $ac_opt_found = no || break 14588 done 14589 CC="$ac_save_CC" 14590 14591 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 14592esac 14593fi 14594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 14595printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 14596 14597ac_have_largefile=yes 14598case $ac_cv_sys_largefile_opts in #( 14599 "none needed") : 14600 ;; #( 14601 "supported through gnulib") : 14602 ;; #( 14603 "support not detected") : 14604 ac_have_largefile=no ;; #( 14605 "-D_FILE_OFFSET_BITS=64") : 14606 14607printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14608 ;; #( 14609 "-D_LARGE_FILES=1") : 14610 14611printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 14612 ;; #( 14613 "-n32") : 14614 CC="$CC -n32" ;; #( 14615 *) : 14616 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 14617esac 14618 14619if test "$enable_year2038" != no 14620then : 14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 14622printf %s "checking for $CC option for timestamps after 2038... " >&6; } 14623if test ${ac_cv_sys_year2038_opts+y} 14624then : 14625 printf %s "(cached) " >&6 14626else case e in #( 14627 e) ac_save_CPPFLAGS="$CPPFLAGS" 14628 ac_opt_found=no 14629 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 14630 if test x"$ac_opt" != x"none needed" 14631then : 14632 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 14633fi 14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635/* end confdefs.h. */ 14636 14637 #include <time.h> 14638 /* Check that time_t can represent 2**32 - 1 correctly. */ 14639 #define LARGE_TIME_T \\ 14640 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 14641 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 14642 && LARGE_TIME_T % 65537 == 0) 14643 ? 1 : -1]; 14644 14645int 14646main (void) 14647{ 14648 14649 ; 14650 return 0; 14651} 14652_ACEOF 14653if ac_fn_c_try_compile "$LINENO" 14654then : 14655 ac_cv_sys_year2038_opts="$ac_opt" 14656 ac_opt_found=yes 14657fi 14658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14659 test $ac_opt_found = no || break 14660 done 14661 CPPFLAGS="$ac_save_CPPFLAGS" 14662 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 14663esac 14664fi 14665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 14666printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 14667 14668ac_have_year2038=yes 14669case $ac_cv_sys_year2038_opts in #( 14670 "none needed") : 14671 ;; #( 14672 "support not detected") : 14673 ac_have_year2038=no ;; #( 14674 "-D_TIME_BITS=64") : 14675 14676printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 14677 ;; #( 14678 "-D__MINGW_USE_VC2005_COMPAT") : 14679 14680printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 14681 ;; #( 14682 "-U_USE_32_BIT_TIME_T"*) : 14683 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14684printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14685as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 14686will stop working after mid-January 2038. Remove 14687_USE_32BIT_TIME_T from the compiler flags. 14688See 'config.log' for more details" "$LINENO" 5; } ;; #( 14689 *) : 14690 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 14691esac 14692 14693fi 14694 14695fi 14696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 14697printf %s "checking for declarations of fseeko and ftello... " >&6; } 14698if test ${ac_cv_func_fseeko_ftello+y} 14699then : 14700 printf %s "(cached) " >&6 14701else case e in #( 14702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14703/* end confdefs.h. */ 14704 14705#if defined __hpux && !defined _LARGEFILE_SOURCE 14706# include <limits.h> 14707# if LONG_MAX >> 31 == 0 14708# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 14709# endif 14710#endif 14711#include <sys/types.h> /* for off_t */ 14712#include <stdio.h> 14713 14714int 14715main (void) 14716{ 14717 14718 int (*fp1) (FILE *, off_t, int) = fseeko; 14719 off_t (*fp2) (FILE *) = ftello; 14720 return fseeko (stdin, 0, 0) 14721 && fp1 (stdin, 0, 0) 14722 && ftello (stdin) >= 0 14723 && fp2 (stdin) >= 0; 14724 14725 ; 14726 return 0; 14727} 14728_ACEOF 14729if ac_fn_c_try_compile "$LINENO" 14730then : 14731 ac_cv_func_fseeko_ftello=yes 14732else case e in #( 14733 e) ac_save_CPPFLAGS="$CPPFLAGS" 14734 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" 14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14736/* end confdefs.h. */ 14737 14738#if defined __hpux && !defined _LARGEFILE_SOURCE 14739# include <limits.h> 14740# if LONG_MAX >> 31 == 0 14741# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 14742# endif 14743#endif 14744#include <sys/types.h> /* for off_t */ 14745#include <stdio.h> 14746 14747int 14748main (void) 14749{ 14750 14751 int (*fp1) (FILE *, off_t, int) = fseeko; 14752 off_t (*fp2) (FILE *) = ftello; 14753 return fseeko (stdin, 0, 0) 14754 && fp1 (stdin, 0, 0) 14755 && ftello (stdin) >= 0 14756 && fp2 (stdin) >= 0; 14757 14758 ; 14759 return 0; 14760} 14761_ACEOF 14762if ac_fn_c_try_compile "$LINENO" 14763then : 14764 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" 14765else case e in #( 14766 e) ac_cv_func_fseeko_ftello=no ;; 14767esac 14768fi 14769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14770esac 14771fi 14772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14773esac 14774fi 14775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 14776printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } 14777if test "$ac_cv_func_fseeko_ftello" != no 14778then : 14779 14780printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 14781 14782fi 14783if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" 14784then : 14785 14786printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h 14787 14788fi 14789 14790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 14791printf %s "checking for mbstate_t... " >&6; } 14792if test ${ac_cv_type_mbstate_t+y} 14793then : 14794 printf %s "(cached) " >&6 14795else case e in #( 14796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14797/* end confdefs.h. */ 14798$ac_includes_default 14799# include <wchar.h> 14800int 14801main (void) 14802{ 14803mbstate_t x; return sizeof x; 14804 ; 14805 return 0; 14806} 14807_ACEOF 14808if ac_fn_c_try_compile "$LINENO" 14809then : 14810 ac_cv_type_mbstate_t=yes 14811else case e in #( 14812 e) ac_cv_type_mbstate_t=no ;; 14813esac 14814fi 14815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14816esac 14817fi 14818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 14819printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } 14820 if test $ac_cv_type_mbstate_t = yes; then 14821 14822printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h 14823 14824 else 14825 14826printf "%s\n" "#define mbstate_t int" >>confdefs.h 14827 14828 fi 14829 14830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 14831printf %s "checking for struct option in getopt... " >&6; } 14832if test ${ac_cv_struct_option_getopt_h+y} 14833then : 14834 printf %s "(cached) " >&6 14835else case e in #( 14836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14837/* end confdefs.h. */ 14838#include <getopt.h> 14839int 14840main (void) 14841{ 14842struct option op; op.name; 14843 ; 14844 return 0; 14845} 14846_ACEOF 14847if ac_fn_c_try_compile "$LINENO" 14848then : 14849 ac_cv_struct_option_getopt_h=yes 14850else case e in #( 14851 e) ac_cv_struct_option_getopt_h=no ;; 14852esac 14853fi 14854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14855esac 14856fi 14857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 14858printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; } 14859if test "$ac_cv_struct_option_getopt_h" = yes; then 14860 14861printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 14862 14863fi 14864 14865 14866 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 14867" 14868if test "x$ac_cv_type_pid_t" = xyes 14869then : 14870 14871else case e in #( 14872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14873/* end confdefs.h. */ 14874 14875 #if defined _WIN64 && !defined __CYGWIN__ 14876 LLP64 14877 #endif 14878 14879int 14880main (void) 14881{ 14882 14883 ; 14884 return 0; 14885} 14886 14887_ACEOF 14888if ac_fn_c_try_compile "$LINENO" 14889then : 14890 ac_pid_type='int' 14891else case e in #( 14892 e) ac_pid_type='__int64' ;; 14893esac 14894fi 14895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14896 14897printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 14898 14899 ;; 14900esac 14901fi 14902 14903 14904ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 14905case $ac_cv_c_uint8_t in #( 14906 no|yes) ;; #( 14907 *) 14908 14909printf "%s\n" "#define _UINT8_T 1" >>confdefs.h 14910 14911 14912printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h 14913;; 14914 esac 14915 14916ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 14917case $ac_cv_c_uint16_t in #( 14918 no|yes) ;; #( 14919 *) 14920 14921 14922printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h 14923;; 14924 esac 14925 14926ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 14927case $ac_cv_c_uint32_t in #( 14928 no|yes) ;; #( 14929 *) 14930 14931printf "%s\n" "#define _UINT32_T 1" >>confdefs.h 14932 14933 14934printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h 14935;; 14936 esac 14937 14938ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 14939case $ac_cv_c_int32_t in #( 14940 no|yes) ;; #( 14941 *) 14942 14943printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h 14944;; 14945esac 14946 14947ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 14948case $ac_cv_c_uint64_t in #( 14949 no|yes) ;; #( 14950 *) 14951 14952printf "%s\n" "#define _UINT64_T 1" >>confdefs.h 14953 14954 14955printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h 14956;; 14957 esac 14958 14959ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 14960case $ac_cv_c_int64_t in #( 14961 no|yes) ;; #( 14962 *) 14963 14964printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h 14965;; 14966esac 14967 14968 14969 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 14970if test "x$ac_cv_type_intptr_t" = xyes 14971then : 14972 14973printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h 14974 14975else case e in #( 14976 e) for ac_type in 'int' 'long int' 'long long int'; do 14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14978/* end confdefs.h. */ 14979$ac_includes_default 14980int 14981main (void) 14982{ 14983static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 14984test_array [0] = 0; 14985return test_array [0]; 14986 14987 ; 14988 return 0; 14989} 14990_ACEOF 14991if ac_fn_c_try_compile "$LINENO" 14992then : 14993 14994printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h 14995 14996 ac_type= 14997fi 14998rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14999 test -z "$ac_type" && break 15000 done ;; 15001esac 15002fi 15003 15004 15005 15006 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 15007if test "x$ac_cv_type_uintptr_t" = xyes 15008then : 15009 15010printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 15011 15012else case e in #( 15013 e) for ac_type in 'unsigned int' 'unsigned long int' \ 15014 'unsigned long long int'; do 15015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15016/* end confdefs.h. */ 15017$ac_includes_default 15018int 15019main (void) 15020{ 15021static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 15022test_array [0] = 0; 15023return test_array [0]; 15024 15025 ; 15026 return 0; 15027} 15028_ACEOF 15029if ac_fn_c_try_compile "$LINENO" 15030then : 15031 15032printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 15033 15034 ac_type= 15035fi 15036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15037 test -z "$ac_type" && break 15038 done ;; 15039esac 15040fi 15041 15042 15043if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no 15044then : 15045 # If we're not cross compiling and 'touch' works with a large 15046 # timestamp, then we can presume the system supports wider time_t 15047 # *somehow* and we just weren't able to detect it. One common 15048 # case that we deliberately *don't* probe for is a system that 15049 # supports both 32- and 64-bit ABIs but only the 64-bit ABI offers 15050 # wide time_t. (It would be inappropriate for us to override an 15051 # intentional use of -m32.) Error out, demanding use of 15052 # --disable-year2038 if this is intentional. 15053 if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null 15054then : 15055 case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #( 15056 *'Feb 7 2106'* | *'Feb 7 17:10'*) : 15057 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 15058printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 15059as_fn_error $? "this system appears to support timestamps after 15060mid-January 2038, but no mechanism for enabling wide 15061'time_t' was detected. Did you mean to build a 64-bit 15062binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with 1506332-bit time_t, configure with '--disable-year2038'. 15064See 'config.log' for more details" "$LINENO" 5; } ;; #( 15065 *) : 15066 ;; 15067esac 15068fi 15069fi 15070 15071ac_func= 15072for ac_item in $ac_func_c_list 15073do 15074 if test $ac_func; then 15075 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 15076 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 15077 echo "#define $ac_item 1" >> confdefs.h 15078 fi 15079 ac_func= 15080 else 15081 ac_func=$ac_item 15082 fi 15083done 15084 15085 15086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 15087printf %s "checking for working mmap... " >&6; } 15088if test ${ac_cv_func_mmap_fixed_mapped+y} 15089then : 15090 printf %s "(cached) " >&6 15091else case e in #( 15092 e) if test "$cross_compiling" = yes 15093then : 15094 case "$host_os" in # (( 15095 # Guess yes on platforms where we know the result. 15096 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 15097 # If we don't know, assume the worst. 15098 *) ac_cv_func_mmap_fixed_mapped=no ;; 15099 esac 15100else case e in #( 15101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15102/* end confdefs.h. */ 15103$ac_includes_default 15104/* malloc might have been renamed as rpl_malloc. */ 15105#undef malloc 15106 15107/* Thanks to Mike Haertel and Jim Avera for this test. 15108 Here is a matrix of mmap possibilities: 15109 mmap private not fixed 15110 mmap private fixed at somewhere currently unmapped 15111 mmap private fixed at somewhere already mapped 15112 mmap shared not fixed 15113 mmap shared fixed at somewhere currently unmapped 15114 mmap shared fixed at somewhere already mapped 15115 For private mappings, we should verify that changes cannot be read() 15116 back from the file, nor mmap's back from the file at a different 15117 address. (There have been systems where private was not correctly 15118 implemented like the infamous i386 svr4.0, and systems where the 15119 VM page cache was not coherent with the file system buffer cache 15120 like early versions of FreeBSD and possibly contemporary NetBSD.) 15121 For shared mappings, we should conversely verify that changes get 15122 propagated back to all the places they're supposed to be. */ 15123 15124#include <fcntl.h> 15125#include <sys/mman.h> 15126 15127#ifndef getpagesize 15128/* Prefer sysconf to the legacy getpagesize function, as getpagesize has 15129 been removed from POSIX and is limited to page sizes that fit in 'int'. */ 15130# ifdef _SC_PAGESIZE 15131# define getpagesize() sysconf (_SC_PAGESIZE) 15132# elif defined _SC_PAGE_SIZE 15133# define getpagesize() sysconf (_SC_PAGE_SIZE) 15134# elif HAVE_GETPAGESIZE 15135int getpagesize (); 15136# else 15137# ifdef HAVE_SYS_PARAM_H 15138# include <sys/param.h> 15139# ifdef EXEC_PAGESIZE 15140# define getpagesize() EXEC_PAGESIZE 15141# else /* no EXEC_PAGESIZE */ 15142# ifdef NBPG 15143# define getpagesize() NBPG * CLSIZE 15144# ifndef CLSIZE 15145# define CLSIZE 1 15146# endif /* no CLSIZE */ 15147# else /* no NBPG */ 15148# ifdef NBPC 15149# define getpagesize() NBPC 15150# else /* no NBPC */ 15151# ifdef PAGESIZE 15152# define getpagesize() PAGESIZE 15153# endif /* PAGESIZE */ 15154# endif /* no NBPC */ 15155# endif /* no NBPG */ 15156# endif /* no EXEC_PAGESIZE */ 15157# else /* no HAVE_SYS_PARAM_H */ 15158# define getpagesize() 8192 /* punt totally */ 15159# endif /* no HAVE_SYS_PARAM_H */ 15160# endif 15161#endif 15162 15163int 15164main (void) 15165{ 15166 char *data, *data2, *data3; 15167 const char *cdata2; 15168 long i, pagesize; 15169 int fd, fd2; 15170 15171 pagesize = getpagesize (); 15172 15173 /* First, make a file with some known garbage in it. */ 15174 data = (char *) malloc (pagesize); 15175 if (!data) 15176 return 1; 15177 for (i = 0; i < pagesize; ++i) 15178 *(data + i) = rand (); 15179 umask (0); 15180 fd = creat ("conftest.mmap", 0600); 15181 if (fd < 0) 15182 return 2; 15183 if (write (fd, data, pagesize) != pagesize) 15184 return 3; 15185 close (fd); 15186 15187 /* Next, check that the tail of a page is zero-filled. File must have 15188 non-zero length, otherwise we risk SIGBUS for entire page. */ 15189 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 15190 if (fd2 < 0) 15191 return 4; 15192 cdata2 = ""; 15193 if (write (fd2, cdata2, 1) != 1) 15194 return 5; 15195 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 15196 if (data2 == MAP_FAILED) 15197 return 6; 15198 for (i = 0; i < pagesize; ++i) 15199 if (*(data2 + i)) 15200 return 7; 15201 close (fd2); 15202 /* 'return 8;' not currently used. */ 15203 15204 /* Next, try to mmap the file at a fixed address which already has 15205 something else allocated at it. If we can, also make sure that 15206 we see the same garbage. */ 15207 fd = open ("conftest.mmap", O_RDWR); 15208 if (fd < 0) 15209 return 9; 15210 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15211 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15212 return 10; 15213 for (i = 0; i < pagesize; ++i) 15214 if (*(data + i) != *(data2 + i)) 15215 return 11; 15216 15217 /* Finally, make sure that changes to the mapped area do not 15218 percolate back to the file as seen by read(). (This is a bug on 15219 some variants of i386 svr4.0.) */ 15220 for (i = 0; i < pagesize; ++i) 15221 *(data2 + i) = *(data2 + i) + 1; 15222 data3 = (char *) malloc (pagesize); 15223 if (!data3) 15224 return 12; 15225 if (read (fd, data3, pagesize) != pagesize) 15226 return 13; 15227 for (i = 0; i < pagesize; ++i) 15228 if (*(data + i) != *(data3 + i)) 15229 return 14; 15230 close (fd); 15231 free (data); 15232 free (data3); 15233 return 0; 15234} 15235_ACEOF 15236if ac_fn_c_try_run "$LINENO" 15237then : 15238 ac_cv_func_mmap_fixed_mapped=yes 15239else case e in #( 15240 e) ac_cv_func_mmap_fixed_mapped=no ;; 15241esac 15242fi 15243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15244 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15245esac 15246fi 15247 ;; 15248esac 15249fi 15250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 15251printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 15252if test $ac_cv_func_mmap_fixed_mapped = yes; then 15253 15254printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 15255 15256fi 15257rm -f conftest.mmap conftest.txt 15258 15259 15260 15261 15262 15263 15264if test "x$ac_cv_func_fork" = xyes; then 15265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15266printf %s "checking for working fork... " >&6; } 15267if test ${ac_cv_func_fork_works+y} 15268then : 15269 printf %s "(cached) " >&6 15270else case e in #( 15271 e) if test "$cross_compiling" = yes 15272then : 15273 ac_cv_func_fork_works=cross 15274else case e in #( 15275 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15276/* end confdefs.h. */ 15277$ac_includes_default 15278int 15279main (void) 15280{ 15281 15282 /* By R. Kuhlmann. */ 15283 return fork () < 0; 15284 15285 ; 15286 return 0; 15287} 15288_ACEOF 15289if ac_fn_c_try_run "$LINENO" 15290then : 15291 ac_cv_func_fork_works=yes 15292else case e in #( 15293 e) ac_cv_func_fork_works=no ;; 15294esac 15295fi 15296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15297 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15298esac 15299fi 15300 ;; 15301esac 15302fi 15303{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15304printf "%s\n" "$ac_cv_func_fork_works" >&6; } 15305 15306else 15307 ac_cv_func_fork_works=$ac_cv_func_fork 15308fi 15309if test "x$ac_cv_func_fork_works" = xcross; then 15310 case $host in 15311 *-*-amigaos* | *-*-msdosdjgpp*) 15312 # Override, as these systems have only a dummy fork() stub 15313 ac_cv_func_fork_works=no 15314 ;; 15315 *) 15316 ac_cv_func_fork_works=yes 15317 ;; 15318 esac 15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15320printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15321fi 15322ac_cv_func_vfork_works=$ac_cv_func_vfork 15323if test "x$ac_cv_func_vfork" = xyes; then 15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15325printf %s "checking for working vfork... " >&6; } 15326if test ${ac_cv_func_vfork_works+y} 15327then : 15328 printf %s "(cached) " >&6 15329else case e in #( 15330 e) if test "$cross_compiling" = yes 15331then : 15332 ac_cv_func_vfork_works=cross 15333else case e in #( 15334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15335/* end confdefs.h. */ 15336/* Thanks to Paul Eggert for this test. */ 15337$ac_includes_default 15338#include <signal.h> 15339#include <sys/wait.h> 15340#ifdef HAVE_VFORK_H 15341# include <vfork.h> 15342#endif 15343 15344static void 15345do_nothing (int sig) 15346{ 15347 (void) sig; 15348} 15349 15350/* On some sparc systems, changes by the child to local and incoming 15351 argument registers are propagated back to the parent. The compiler 15352 is told about this with #include <vfork.h>, but some compilers 15353 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15354 static variable whose address is put into a register that is 15355 clobbered by the vfork. */ 15356static void 15357sparc_address_test (int arg) 15358{ 15359 static pid_t child; 15360 if (!child) { 15361 child = vfork (); 15362 if (child < 0) { 15363 perror ("vfork"); 15364 _exit(2); 15365 } 15366 if (!child) { 15367 arg = getpid(); 15368 write(-1, "", 0); 15369 _exit (arg); 15370 } 15371 } 15372} 15373 15374int 15375main (void) 15376{ 15377 pid_t parent = getpid (); 15378 pid_t child; 15379 15380 sparc_address_test (0); 15381 15382 /* On Solaris 2.4, changes by the child to the signal handler 15383 also munge signal handlers in the parent. To detect this, 15384 start by putting the parent's handler in a known state. */ 15385 signal (SIGTERM, SIG_DFL); 15386 15387 child = vfork (); 15388 15389 if (child == 0) { 15390 /* Here is another test for sparc vfork register problems. This 15391 test uses lots of local variables, at least as many local 15392 variables as main has allocated so far including compiler 15393 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15394 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15395 reuse the register of parent for one of the local variables, 15396 since it will think that parent can't possibly be used any more 15397 in this routine. Assigning to the local variable will thus 15398 munge parent in the parent process. */ 15399 pid_t 15400 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15401 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15402 /* Convince the compiler that p..p7 are live; otherwise, it might 15403 use the same hardware register for all 8 local variables. */ 15404 if (p != p1 || p != p2 || p != p3 || p != p4 15405 || p != p5 || p != p6 || p != p7) 15406 _exit(1); 15407 15408 /* Alter the child's signal handler. */ 15409 if (signal (SIGTERM, do_nothing) != SIG_DFL) 15410 _exit(1); 15411 15412 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15413 from child file descriptors. If the child closes a descriptor 15414 before it execs or exits, this munges the parent's descriptor 15415 as well. Test for this by closing stdout in the child. */ 15416 _exit(close(fileno(stdout)) != 0); 15417 } else { 15418 int status; 15419 struct stat st; 15420 15421 while (wait(&status) != child) 15422 ; 15423 return ( 15424 /* Was there some problem with vforking? */ 15425 child < 0 15426 15427 /* Did the child munge the parent's signal handler? */ 15428 || signal (SIGTERM, SIG_DFL) != SIG_DFL 15429 15430 /* Did the child fail? (This shouldn't happen.) */ 15431 || status 15432 15433 /* Did the vfork/compiler bug occur? */ 15434 || parent != getpid() 15435 15436 /* Did the file descriptor bug occur? */ 15437 || fstat(fileno(stdout), &st) != 0 15438 ); 15439 } 15440} 15441_ACEOF 15442if ac_fn_c_try_run "$LINENO" 15443then : 15444 ac_cv_func_vfork_works=yes 15445else case e in #( 15446 e) ac_cv_func_vfork_works=no ;; 15447esac 15448fi 15449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15450 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15451esac 15452fi 15453 ;; 15454esac 15455fi 15456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15457printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 15458 15459fi; 15460if test "x$ac_cv_func_fork_works" = xcross; then 15461 ac_cv_func_vfork_works=$ac_cv_func_vfork 15462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15463printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15464fi 15465 15466if test "x$ac_cv_func_vfork_works" = xyes; then 15467 15468printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15469 15470else 15471 15472printf "%s\n" "#define vfork fork" >>confdefs.h 15473 15474fi 15475if test "x$ac_cv_func_fork_works" = xyes; then 15476 15477printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 15478 15479fi 15480 15481 15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 15483printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 15484if test ${ac_cv_func_mbrtowc+y} 15485then : 15486 printf %s "(cached) " >&6 15487else case e in #( 15488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15489/* end confdefs.h. */ 15490#include <wchar.h> 15491int 15492main (void) 15493{ 15494wchar_t wc; 15495 char const s[] = ""; 15496 size_t n = 1; 15497 mbstate_t state; 15498 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 15499 ; 15500 return 0; 15501} 15502_ACEOF 15503if ac_fn_c_try_link "$LINENO" 15504then : 15505 ac_cv_func_mbrtowc=yes 15506else case e in #( 15507 e) ac_cv_func_mbrtowc=no ;; 15508esac 15509fi 15510rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15511 conftest$ac_exeext conftest.$ac_ext ;; 15512esac 15513fi 15514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 15515printf "%s\n" "$ac_cv_func_mbrtowc" >&6; } 15516 if test $ac_cv_func_mbrtowc = yes; then 15517 15518printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h 15519 15520 fi 15521 15522 15523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 15524printf %s "checking for gcc compiler warnings... " >&6; } 15525# Check whether --enable-warnings was given. 15526if test ${enable_warnings+y} 15527then : 15528 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15530printf "%s\n" "no" >&6; } 15531 WARNINGS= 15532else 15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15534printf "%s\n" "yes" >&6; } 15535 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 15536 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 15537 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 15538 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 15539fi 15540else case e in #( 15541 e) 15542if test "$GCC" = yes; then 15543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15544printf "%s\n" "yes" >&6; } 15545 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 15546 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 15547 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 15548 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 15549else 15550 WARNINGS= 15551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15552printf "%s\n" "no" >&6; } 15553fi ;; 15554esac 15555fi 15556 15557 15558ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 15559if test "x$ac_cv_func_strndup" = xyes 15560then : 15561 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 15562 15563fi 15564ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 15565if test "x$ac_cv_func_mkstemp" = xyes 15566then : 15567 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 15568 15569fi 15570ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 15571if test "x$ac_cv_func_mkostemp" = xyes 15572then : 15573 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 15574 15575fi 15576ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 15577if test "x$ac_cv_func_utimes" = xyes 15578then : 15579 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 15580 15581fi 15582ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" 15583if test "x$ac_cv_func_utime" = xyes 15584then : 15585 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h 15586 15587fi 15588ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" 15589if test "x$ac_cv_func_wcwidth" = xyes 15590then : 15591 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h 15592 15593fi 15594ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" 15595if test "x$ac_cv_func_strtof" = xyes 15596then : 15597 printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h 15598 15599fi 15600ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale" 15601if test "x$ac_cv_func_newlocale" = xyes 15602then : 15603 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h 15604 15605fi 15606ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale" 15607if test "x$ac_cv_func_uselocale" = xyes 15608then : 15609 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h 15610 15611fi 15612ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale" 15613if test "x$ac_cv_func_freelocale" = xyes 15614then : 15615 printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h 15616 15617fi 15618ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" 15619if test "x$ac_cv_func_memmem" = xyes 15620then : 15621 printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h 15622 15623fi 15624ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 15625if test "x$ac_cv_func_pipe2" = xyes 15626then : 15627 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 15628 15629fi 15630ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" 15631if test "x$ac_cv_func_posix_spawnp" = xyes 15632then : 15633 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h 15634 15635fi 15636 15637 15638ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 15639if test "x$ac_cv_func_getopt_long" = xyes 15640then : 15641 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h 15642 15643else case e in #( 15644 e) case " $LIBOBJS " in 15645 *" getopt_long.$ac_objext "* ) ;; 15646 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 15647 ;; 15648esac 15649 ;; 15650esac 15651fi 15652ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 15653if test "x$ac_cv_func_asprintf" = xyes 15654then : 15655 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 15656 15657else case e in #( 15658 e) case " $LIBOBJS " in 15659 *" asprintf.$ac_objext "* ) ;; 15660 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 15661 ;; 15662esac 15663 ;; 15664esac 15665fi 15666ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 15667if test "x$ac_cv_func_vasprintf" = xyes 15668then : 15669 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 15670 15671else case e in #( 15672 e) case " $LIBOBJS " in 15673 *" vasprintf.$ac_objext "* ) ;; 15674 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 15675 ;; 15676esac 15677 ;; 15678esac 15679fi 15680ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15681if test "x$ac_cv_func_strlcpy" = xyes 15682then : 15683 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 15684 15685else case e in #( 15686 e) case " $LIBOBJS " in 15687 *" strlcpy.$ac_objext "* ) ;; 15688 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 15689 ;; 15690esac 15691 ;; 15692esac 15693fi 15694ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15695if test "x$ac_cv_func_strlcat" = xyes 15696then : 15697 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 15698 15699else case e in #( 15700 e) case " $LIBOBJS " in 15701 *" strlcat.$ac_objext "* ) ;; 15702 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 15703 ;; 15704esac 15705 ;; 15706esac 15707fi 15708ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 15709if test "x$ac_cv_func_getline" = xyes 15710then : 15711 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h 15712 15713else case e in #( 15714 e) case " $LIBOBJS " in 15715 *" getline.$ac_objext "* ) ;; 15716 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 15717 ;; 15718esac 15719 ;; 15720esac 15721fi 15722ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 15723if test "x$ac_cv_func_ctime_r" = xyes 15724then : 15725 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 15726 15727else case e in #( 15728 e) case " $LIBOBJS " in 15729 *" ctime_r.$ac_objext "* ) ;; 15730 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 15731 ;; 15732esac 15733 ;; 15734esac 15735fi 15736ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 15737if test "x$ac_cv_func_asctime_r" = xyes 15738then : 15739 printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h 15740 15741else case e in #( 15742 e) case " $LIBOBJS " in 15743 *" asctime_r.$ac_objext "* ) ;; 15744 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 15745 ;; 15746esac 15747 ;; 15748esac 15749fi 15750ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 15751if test "x$ac_cv_func_localtime_r" = xyes 15752then : 15753 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 15754 15755else case e in #( 15756 e) case " $LIBOBJS " in 15757 *" localtime_r.$ac_objext "* ) ;; 15758 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 15759 ;; 15760esac 15761 ;; 15762esac 15763fi 15764ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 15765if test "x$ac_cv_func_gmtime_r" = xyes 15766then : 15767 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 15768 15769else case e in #( 15770 e) case " $LIBOBJS " in 15771 *" gmtime_r.$ac_objext "* ) ;; 15772 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 15773 ;; 15774esac 15775 ;; 15776esac 15777fi 15778ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 15779if test "x$ac_cv_func_pread" = xyes 15780then : 15781 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 15782 15783else case e in #( 15784 e) case " $LIBOBJS " in 15785 *" pread.$ac_objext "* ) ;; 15786 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 15787 ;; 15788esac 15789 ;; 15790esac 15791fi 15792ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 15793if test "x$ac_cv_func_strcasestr" = xyes 15794then : 15795 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 15796 15797else case e in #( 15798 e) case " $LIBOBJS " in 15799 *" strcasestr.$ac_objext "* ) ;; 15800 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 15801 ;; 15802esac 15803 ;; 15804esac 15805fi 15806ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 15807if test "x$ac_cv_func_fmtcheck" = xyes 15808then : 15809 printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h 15810 15811else case e in #( 15812 e) case " $LIBOBJS " in 15813 *" fmtcheck.$ac_objext "* ) ;; 15814 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 15815 ;; 15816esac 15817 ;; 15818esac 15819fi 15820ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 15821if test "x$ac_cv_func_dprintf" = xyes 15822then : 15823 printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h 15824 15825else case e in #( 15826 e) case " $LIBOBJS " in 15827 *" dprintf.$ac_objext "* ) ;; 15828 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 15829 ;; 15830esac 15831 ;; 15832esac 15833fi 15834 15835 15836if test "$enable_zlib" != "no"; then 15837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 15838printf %s "checking for gzopen in -lz... " >&6; } 15839if test ${ac_cv_lib_z_gzopen+y} 15840then : 15841 printf %s "(cached) " >&6 15842else case e in #( 15843 e) ac_check_lib_save_LIBS=$LIBS 15844LIBS="-lz $LIBS" 15845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15846/* end confdefs.h. */ 15847 15848/* Override any GCC internal prototype to avoid an error. 15849 Use char because int might match the return type of a GCC 15850 builtin and then its argument prototype would still apply. 15851 The 'extern "C"' is for builds by C++ compilers; 15852 although this is not generally supported in C code supporting it here 15853 has little cost and some practical benefit (sr 110532). */ 15854#ifdef __cplusplus 15855extern "C" 15856#endif 15857char gzopen (void); 15858int 15859main (void) 15860{ 15861return gzopen (); 15862 ; 15863 return 0; 15864} 15865_ACEOF 15866if ac_fn_c_try_link "$LINENO" 15867then : 15868 ac_cv_lib_z_gzopen=yes 15869else case e in #( 15870 e) ac_cv_lib_z_gzopen=no ;; 15871esac 15872fi 15873rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15874 conftest$ac_exeext conftest.$ac_ext 15875LIBS=$ac_check_lib_save_LIBS ;; 15876esac 15877fi 15878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 15879printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; } 15880if test "x$ac_cv_lib_z_gzopen" = xyes 15881then : 15882 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 15883 15884 LIBS="-lz $LIBS" 15885 15886fi 15887 15888fi 15889if test "$enable_bzlib" != "no"; then 15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5 15891printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; } 15892if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y} 15893then : 15894 printf %s "(cached) " >&6 15895else case e in #( 15896 e) ac_check_lib_save_LIBS=$LIBS 15897LIBS="-lbz2 $LIBS" 15898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15899/* end confdefs.h. */ 15900 15901/* Override any GCC internal prototype to avoid an error. 15902 Use char because int might match the return type of a GCC 15903 builtin and then its argument prototype would still apply. 15904 The 'extern "C"' is for builds by C++ compilers; 15905 although this is not generally supported in C code supporting it here 15906 has little cost and some practical benefit (sr 110532). */ 15907#ifdef __cplusplus 15908extern "C" 15909#endif 15910char BZ2_bzCompressInit (void); 15911int 15912main (void) 15913{ 15914return BZ2_bzCompressInit (); 15915 ; 15916 return 0; 15917} 15918_ACEOF 15919if ac_fn_c_try_link "$LINENO" 15920then : 15921 ac_cv_lib_bz2_BZ2_bzCompressInit=yes 15922else case e in #( 15923 e) ac_cv_lib_bz2_BZ2_bzCompressInit=no ;; 15924esac 15925fi 15926rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15927 conftest$ac_exeext conftest.$ac_ext 15928LIBS=$ac_check_lib_save_LIBS ;; 15929esac 15930fi 15931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 15932printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; } 15933if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes 15934then : 15935 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h 15936 15937 LIBS="-lbz2 $LIBS" 15938 15939fi 15940 15941fi 15942if test "$enable_xzlib" != "no"; then 15943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5 15944printf %s "checking for lzma_stream_decoder in -llzma... " >&6; } 15945if test ${ac_cv_lib_lzma_lzma_stream_decoder+y} 15946then : 15947 printf %s "(cached) " >&6 15948else case e in #( 15949 e) ac_check_lib_save_LIBS=$LIBS 15950LIBS="-llzma $LIBS" 15951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15952/* end confdefs.h. */ 15953 15954/* Override any GCC internal prototype to avoid an error. 15955 Use char because int might match the return type of a GCC 15956 builtin and then its argument prototype would still apply. 15957 The 'extern "C"' is for builds by C++ compilers; 15958 although this is not generally supported in C code supporting it here 15959 has little cost and some practical benefit (sr 110532). */ 15960#ifdef __cplusplus 15961extern "C" 15962#endif 15963char lzma_stream_decoder (void); 15964int 15965main (void) 15966{ 15967return lzma_stream_decoder (); 15968 ; 15969 return 0; 15970} 15971_ACEOF 15972if ac_fn_c_try_link "$LINENO" 15973then : 15974 ac_cv_lib_lzma_lzma_stream_decoder=yes 15975else case e in #( 15976 e) ac_cv_lib_lzma_lzma_stream_decoder=no ;; 15977esac 15978fi 15979rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15980 conftest$ac_exeext conftest.$ac_ext 15981LIBS=$ac_check_lib_save_LIBS ;; 15982esac 15983fi 15984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5 15985printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; } 15986if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes 15987then : 15988 printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h 15989 15990 LIBS="-llzma $LIBS" 15991 15992fi 15993 15994fi 15995if test "$enable_zstdlib" != "no"; then 15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5 15997printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; } 15998if test ${ac_cv_lib_zstd_ZSTD_createDStream+y} 15999then : 16000 printf %s "(cached) " >&6 16001else case e in #( 16002 e) ac_check_lib_save_LIBS=$LIBS 16003LIBS="-lzstd $LIBS" 16004cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16005/* end confdefs.h. */ 16006 16007/* Override any GCC internal prototype to avoid an error. 16008 Use char because int might match the return type of a GCC 16009 builtin and then its argument prototype would still apply. 16010 The 'extern "C"' is for builds by C++ compilers; 16011 although this is not generally supported in C code supporting it here 16012 has little cost and some practical benefit (sr 110532). */ 16013#ifdef __cplusplus 16014extern "C" 16015#endif 16016char ZSTD_createDStream (void); 16017int 16018main (void) 16019{ 16020return ZSTD_createDStream (); 16021 ; 16022 return 0; 16023} 16024_ACEOF 16025if ac_fn_c_try_link "$LINENO" 16026then : 16027 ac_cv_lib_zstd_ZSTD_createDStream=yes 16028else case e in #( 16029 e) ac_cv_lib_zstd_ZSTD_createDStream=no ;; 16030esac 16031fi 16032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16033 conftest$ac_exeext conftest.$ac_ext 16034LIBS=$ac_check_lib_save_LIBS ;; 16035esac 16036fi 16037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5 16038printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; } 16039if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes 16040then : 16041 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h 16042 16043 LIBS="-lzstd $LIBS" 16044 16045fi 16046 16047fi 16048if test "$enable_lzlib" != "no"; then 16049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5 16050printf %s "checking for LZ_decompress_open in -llz... " >&6; } 16051if test ${ac_cv_lib_lz_LZ_decompress_open+y} 16052then : 16053 printf %s "(cached) " >&6 16054else case e in #( 16055 e) ac_check_lib_save_LIBS=$LIBS 16056LIBS="-llz $LIBS" 16057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16058/* end confdefs.h. */ 16059 16060/* Override any GCC internal prototype to avoid an error. 16061 Use char because int might match the return type of a GCC 16062 builtin and then its argument prototype would still apply. 16063 The 'extern "C"' is for builds by C++ compilers; 16064 although this is not generally supported in C code supporting it here 16065 has little cost and some practical benefit (sr 110532). */ 16066#ifdef __cplusplus 16067extern "C" 16068#endif 16069char LZ_decompress_open (void); 16070int 16071main (void) 16072{ 16073return LZ_decompress_open (); 16074 ; 16075 return 0; 16076} 16077_ACEOF 16078if ac_fn_c_try_link "$LINENO" 16079then : 16080 ac_cv_lib_lz_LZ_decompress_open=yes 16081else case e in #( 16082 e) ac_cv_lib_lz_LZ_decompress_open=no ;; 16083esac 16084fi 16085rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16086 conftest$ac_exeext conftest.$ac_ext 16087LIBS=$ac_check_lib_save_LIBS ;; 16088esac 16089fi 16090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5 16091printf "%s\n" "$ac_cv_lib_lz_LZ_decompress_open" >&6; } 16092if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes 16093then : 16094 printf "%s\n" "#define HAVE_LIBLZ 1" >>confdefs.h 16095 16096 LIBS="-llz $LIBS" 16097 16098fi 16099 16100fi 16101if test "$enable_lrziplib" != "no"; then 16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lrzip_new in -llrzip" >&5 16103printf %s "checking for lrzip_new in -llrzip... " >&6; } 16104if test ${ac_cv_lib_lrzip_lrzip_new+y} 16105then : 16106 printf %s "(cached) " >&6 16107else case e in #( 16108 e) ac_check_lib_save_LIBS=$LIBS 16109LIBS="-llrzip $LIBS" 16110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16111/* end confdefs.h. */ 16112 16113/* Override any GCC internal prototype to avoid an error. 16114 Use char because int might match the return type of a GCC 16115 builtin and then its argument prototype would still apply. 16116 The 'extern "C"' is for builds by C++ compilers; 16117 although this is not generally supported in C code supporting it here 16118 has little cost and some practical benefit (sr 110532). */ 16119#ifdef __cplusplus 16120extern "C" 16121#endif 16122char lrzip_new (void); 16123int 16124main (void) 16125{ 16126return lrzip_new (); 16127 ; 16128 return 0; 16129} 16130_ACEOF 16131if ac_fn_c_try_link "$LINENO" 16132then : 16133 ac_cv_lib_lrzip_lrzip_new=yes 16134else case e in #( 16135 e) ac_cv_lib_lrzip_lrzip_new=no ;; 16136esac 16137fi 16138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16139 conftest$ac_exeext conftest.$ac_ext 16140LIBS=$ac_check_lib_save_LIBS ;; 16141esac 16142fi 16143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lrzip_lrzip_new" >&5 16144printf "%s\n" "$ac_cv_lib_lrzip_lrzip_new" >&6; } 16145if test "x$ac_cv_lib_lrzip_lrzip_new" = xyes 16146then : 16147 printf "%s\n" "#define HAVE_LIBLRZIP 1" >>confdefs.h 16148 16149 LIBS="-llrzip $LIBS" 16150 16151fi 16152 16153fi 16154 16155if test "$enable_libseccomp" != "no"; then 16156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5 16157printf %s "checking for seccomp_init in -lseccomp... " >&6; } 16158if test ${ac_cv_lib_seccomp_seccomp_init+y} 16159then : 16160 printf %s "(cached) " >&6 16161else case e in #( 16162 e) ac_check_lib_save_LIBS=$LIBS 16163LIBS="-lseccomp $LIBS" 16164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16165/* end confdefs.h. */ 16166 16167/* Override any GCC internal prototype to avoid an error. 16168 Use char because int might match the return type of a GCC 16169 builtin and then its argument prototype would still apply. 16170 The 'extern "C"' is for builds by C++ compilers; 16171 although this is not generally supported in C code supporting it here 16172 has little cost and some practical benefit (sr 110532). */ 16173#ifdef __cplusplus 16174extern "C" 16175#endif 16176char seccomp_init (void); 16177int 16178main (void) 16179{ 16180return seccomp_init (); 16181 ; 16182 return 0; 16183} 16184_ACEOF 16185if ac_fn_c_try_link "$LINENO" 16186then : 16187 ac_cv_lib_seccomp_seccomp_init=yes 16188else case e in #( 16189 e) ac_cv_lib_seccomp_seccomp_init=no ;; 16190esac 16191fi 16192rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16193 conftest$ac_exeext conftest.$ac_ext 16194LIBS=$ac_check_lib_save_LIBS ;; 16195esac 16196fi 16197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5 16198printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; } 16199if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes 16200then : 16201 printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h 16202 16203 LIBS="-lseccomp $LIBS" 16204 16205fi 16206 16207fi 16208if test "$MINGW" = 1; then 16209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 16210printf %s "checking for regexec in -lgnurx... " >&6; } 16211if test ${ac_cv_lib_gnurx_regexec+y} 16212then : 16213 printf %s "(cached) " >&6 16214else case e in #( 16215 e) ac_check_lib_save_LIBS=$LIBS 16216LIBS="-lgnurx $LIBS" 16217cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16218/* end confdefs.h. */ 16219 16220/* Override any GCC internal prototype to avoid an error. 16221 Use char because int might match the return type of a GCC 16222 builtin and then its argument prototype would still apply. 16223 The 'extern "C"' is for builds by C++ compilers; 16224 although this is not generally supported in C code supporting it here 16225 has little cost and some practical benefit (sr 110532). */ 16226#ifdef __cplusplus 16227extern "C" 16228#endif 16229char regexec (void); 16230int 16231main (void) 16232{ 16233return regexec (); 16234 ; 16235 return 0; 16236} 16237_ACEOF 16238if ac_fn_c_try_link "$LINENO" 16239then : 16240 ac_cv_lib_gnurx_regexec=yes 16241else case e in #( 16242 e) ac_cv_lib_gnurx_regexec=no ;; 16243esac 16244fi 16245rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16246 conftest$ac_exeext conftest.$ac_ext 16247LIBS=$ac_check_lib_save_LIBS ;; 16248esac 16249fi 16250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 16251printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; } 16252if test "x$ac_cv_lib_gnurx_regexec" = xyes 16253then : 16254 printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h 16255 16256 LIBS="-lgnurx $LIBS" 16257 16258else case e in #( 16259 e) as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 ;; 16260esac 16261fi 16262 16263fi 16264 16265 if test "$cross_compiling" = yes; then 16266 IS_CROSS_COMPILE_TRUE= 16267 IS_CROSS_COMPILE_FALSE='#' 16268else 16269 IS_CROSS_COMPILE_TRUE='#' 16270 IS_CROSS_COMPILE_FALSE= 16271fi 16272 16273 16274if test "$enable_zlib" = "yes"; then 16275 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 16276 as_fn_error $? "zlib support requested but not found" "$LINENO" 5 16277 fi 16278fi 16279if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 16280 16281printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h 16282 16283fi 16284if test "$enable_bzlib" = "yes"; then 16285 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then 16286 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5 16287 fi 16288fi 16289if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then 16290 16291printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h 16292 16293fi 16294if test "$enable_xzlib" = "yes"; then 16295 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then 16296 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5 16297 fi 16298fi 16299if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then 16300 16301printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h 16302 16303fi 16304if test "$enable_zstdlib" = "yes"; then 16305 if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" != "yesyes"; then 16306 as_fn_error $? "zstdlib support requested but not found" "$LINENO" 5 16307 fi 16308fi 16309if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" = "yesyes"; then 16310 16311printf "%s\n" "#define ZSTDLIBSUPPORT 1" >>confdefs.h 16312 16313fi 16314if test "$enable_lzlib" = "yes"; then 16315 if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" != "yesyes"; then 16316 as_fn_error $? "lzlib support requested but not found" "$LINENO" 5 16317 fi 16318fi 16319if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" = "yesyes"; then 16320 16321printf "%s\n" "#define LZLIBSUPPORT 1" >>confdefs.h 16322 16323fi 16324 16325if test "$enable_lrziplib" = "yes"; then 16326 if test "$ac_cv_header_Lrzip_h$ac_cv_lib_lrzip_lrzip_new" != "yesyes"; then 16327 as_fn_error $? "lrzip support requested but not found" "$LINENO" 5 16328 fi 16329fi 16330if test "$ac_cv_header_Lrzip_h$ac_cv_lib_lrzip_lrzip_new" = "yesyes"; then 16331 16332printf "%s\n" "#define LRZIPLIBSUPPORT 1" >>confdefs.h 16333 16334fi 16335 16336ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc" 16337 16338cat >confcache <<\_ACEOF 16339# This file is a shell script that caches the results of configure 16340# tests run on this system so they can be shared between configure 16341# scripts and configure runs, see configure's option --config-cache. 16342# It is not useful on other systems. If it contains results you don't 16343# want to keep, you may remove or edit it. 16344# 16345# config.status only pays attention to the cache file if you give it 16346# the --recheck option to rerun configure. 16347# 16348# 'ac_cv_env_foo' variables (set or unset) will be overridden when 16349# loading this file, other *unset* 'ac_cv_foo' will be assigned the 16350# following values. 16351 16352_ACEOF 16353 16354# The following way of writing the cache mishandles newlines in values, 16355# but we know of no workaround that is simple, portable, and efficient. 16356# So, we kill variables containing newlines. 16357# Ultrix sh set writes to stderr and can't be redirected directly, 16358# and sets the high bit in the cache file unless we assign to the vars. 16359( 16360 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16361 eval ac_val=\$$ac_var 16362 case $ac_val in #( 16363 *${as_nl}*) 16364 case $ac_var in #( 16365 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16366printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16367 esac 16368 case $ac_var in #( 16369 _ | IFS | as_nl) ;; #( 16370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16371 *) { eval $ac_var=; unset $ac_var;} ;; 16372 esac ;; 16373 esac 16374 done 16375 16376 (set) 2>&1 | 16377 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16378 *${as_nl}ac_space=\ *) 16379 # 'set' does not quote correctly, so add quotes: double-quote 16380 # substitution turns \\\\ into \\, and sed turns \\ into \. 16381 sed -n \ 16382 "s/'/'\\\\''/g; 16383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16384 ;; #( 16385 *) 16386 # 'set' quotes correctly as required by POSIX, so do not add quotes. 16387 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16388 ;; 16389 esac | 16390 sort 16391) | 16392 sed ' 16393 /^ac_cv_env_/b end 16394 t clear 16395 :clear 16396 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 16397 t end 16398 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16399 :end' >>confcache 16400if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16401 if test -w "$cache_file"; then 16402 if test "x$cache_file" != "x/dev/null"; then 16403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16404printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 16405 if test ! -f "$cache_file" || test -h "$cache_file"; then 16406 cat confcache >"$cache_file" 16407 else 16408 case $cache_file in #( 16409 */* | ?:*) 16410 mv -f confcache "$cache_file"$$ && 16411 mv -f "$cache_file"$$ "$cache_file" ;; #( 16412 *) 16413 mv -f confcache "$cache_file" ;; 16414 esac 16415 fi 16416 fi 16417 else 16418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16419printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 16420 fi 16421fi 16422rm -f confcache 16423 16424test "x$prefix" = xNONE && prefix=$ac_default_prefix 16425# Let make expand exec_prefix. 16426test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16427 16428DEFS=-DHAVE_CONFIG_H 16429 16430ac_libobjs= 16431ac_ltlibobjs= 16432U= 16433for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16434 # 1. Remove the extension, and $U if already installed. 16435 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16436 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 16437 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16438 # will be set to the directory where LIBOBJS objects are built. 16439 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16440 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16441done 16442LIBOBJS=$ac_libobjs 16443 16444LTLIBOBJS=$ac_ltlibobjs 16445 16446 16447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16448printf %s "checking that generated files are newer than configure... " >&6; } 16449 if test -n "$am_sleep_pid"; then 16450 # Hide warnings about reused PIDs. 16451 wait $am_sleep_pid 2>/dev/null 16452 fi 16453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 16454printf "%s\n" "done" >&6; } 16455 if test -n "$EXEEXT"; then 16456 am__EXEEXT_TRUE= 16457 am__EXEEXT_FALSE='#' 16458else 16459 am__EXEEXT_TRUE='#' 16460 am__EXEEXT_FALSE= 16461fi 16462 16463if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 16464 as_fn_error $? "conditional \"MINGW\" was never defined. 16465Usually this means the macro was only invoked conditionally." "$LINENO" 5 16466fi 16467if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 16468 as_fn_error $? "conditional \"FSECT5\" was never defined. 16469Usually this means the macro was only invoked conditionally." "$LINENO" 5 16470fi 16471if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16472 as_fn_error $? "conditional \"AMDEP\" was never defined. 16473Usually this means the macro was only invoked conditionally." "$LINENO" 5 16474fi 16475if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16476 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16477Usually this means the macro was only invoked conditionally." "$LINENO" 5 16478fi 16479 16480# Check whether --enable-year2038 was given. 16481if test ${enable_year2038+y} 16482then : 16483 enableval=$enable_year2038; 16484fi 16485 16486if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 16487 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 16488Usually this means the macro was only invoked conditionally." "$LINENO" 5 16489fi 16490 16491: "${CONFIG_STATUS=./config.status}" 16492ac_write_fail=0 16493ac_clean_files_save=$ac_clean_files 16494ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16496printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 16497as_write_fail=0 16498cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16499#! $SHELL 16500# Generated by $as_me. 16501# Run this file to recreate the current configuration. 16502# Compiler output produced by configure, useful for debugging 16503# configure, is in config.log if it exists. 16504 16505debug=false 16506ac_cs_recheck=false 16507ac_cs_silent=false 16508 16509SHELL=\${CONFIG_SHELL-$SHELL} 16510export SHELL 16511_ASEOF 16512cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16513## -------------------- ## 16514## M4sh Initialization. ## 16515## -------------------- ## 16516 16517# Be more Bourne compatible 16518DUALCASE=1; export DUALCASE # for MKS sh 16519if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 16520then : 16521 emulate sh 16522 NULLCMD=: 16523 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16524 # is contrary to our usage. Disable this feature. 16525 alias -g '${1+"$@"}'='"$@"' 16526 setopt NO_GLOB_SUBST 16527else case e in #( 16528 e) case `(set -o) 2>/dev/null` in #( 16529 *posix*) : 16530 set -o posix ;; #( 16531 *) : 16532 ;; 16533esac ;; 16534esac 16535fi 16536 16537 16538 16539# Reset variables that may have inherited troublesome values from 16540# the environment. 16541 16542# IFS needs to be set, to space, tab, and newline, in precisely that order. 16543# (If _AS_PATH_WALK were called with IFS unset, it would have the 16544# side effect of setting IFS to empty, thus disabling word splitting.) 16545# Quoting is to prevent editors from complaining about space-tab. 16546as_nl=' 16547' 16548export as_nl 16549IFS=" "" $as_nl" 16550 16551PS1='$ ' 16552PS2='> ' 16553PS4='+ ' 16554 16555# Ensure predictable behavior from utilities with locale-dependent output. 16556LC_ALL=C 16557export LC_ALL 16558LANGUAGE=C 16559export LANGUAGE 16560 16561# We cannot yet rely on "unset" to work, but we need these variables 16562# to be unset--not just set to an empty or harmless value--now, to 16563# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 16564# also avoids known problems related to "unset" and subshell syntax 16565# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 16566for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 16567do eval test \${$as_var+y} \ 16568 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16569done 16570 16571# Ensure that fds 0, 1, and 2 are open. 16572if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 16573if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 16574if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 16575 16576# The user is always right. 16577if ${PATH_SEPARATOR+false} :; then 16578 PATH_SEPARATOR=: 16579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16581 PATH_SEPARATOR=';' 16582 } 16583fi 16584 16585 16586# Find who we are. Look in the path if we contain no directory separator. 16587as_myself= 16588case $0 in #(( 16589 *[\\/]* ) as_myself=$0 ;; 16590 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16591for as_dir in $PATH 16592do 16593 IFS=$as_save_IFS 16594 case $as_dir in #((( 16595 '') as_dir=./ ;; 16596 */) ;; 16597 *) as_dir=$as_dir/ ;; 16598 esac 16599 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 16600 done 16601IFS=$as_save_IFS 16602 16603 ;; 16604esac 16605# We did not find ourselves, most probably we were run as 'sh COMMAND' 16606# in which case we are not to be found in the path. 16607if test "x$as_myself" = x; then 16608 as_myself=$0 16609fi 16610if test ! -f "$as_myself"; then 16611 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16612 exit 1 16613fi 16614 16615 16616 16617# as_fn_error STATUS ERROR [LINENO LOG_FD] 16618# ---------------------------------------- 16619# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16620# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16621# script with STATUS, using 1 if that was 0. 16622as_fn_error () 16623{ 16624 as_status=$1; test $as_status -eq 0 && as_status=1 16625 if test "$4"; then 16626 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16628 fi 16629 printf "%s\n" "$as_me: error: $2" >&2 16630 as_fn_exit $as_status 16631} # as_fn_error 16632 16633 16634# as_fn_set_status STATUS 16635# ----------------------- 16636# Set $? to STATUS, without forking. 16637as_fn_set_status () 16638{ 16639 return $1 16640} # as_fn_set_status 16641 16642# as_fn_exit STATUS 16643# ----------------- 16644# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16645as_fn_exit () 16646{ 16647 set +e 16648 as_fn_set_status $1 16649 exit $1 16650} # as_fn_exit 16651 16652# as_fn_unset VAR 16653# --------------- 16654# Portably unset VAR. 16655as_fn_unset () 16656{ 16657 { eval $1=; unset $1;} 16658} 16659as_unset=as_fn_unset 16660 16661# as_fn_append VAR VALUE 16662# ---------------------- 16663# Append the text in VALUE to the end of the definition contained in VAR. Take 16664# advantage of any shell optimizations that allow amortized linear growth over 16665# repeated appends, instead of the typical quadratic growth present in naive 16666# implementations. 16667if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 16668then : 16669 eval 'as_fn_append () 16670 { 16671 eval $1+=\$2 16672 }' 16673else case e in #( 16674 e) as_fn_append () 16675 { 16676 eval $1=\$$1\$2 16677 } ;; 16678esac 16679fi # as_fn_append 16680 16681# as_fn_arith ARG... 16682# ------------------ 16683# Perform arithmetic evaluation on the ARGs, and store the result in the 16684# global $as_val. Take advantage of shells that can avoid forks. The arguments 16685# must be portable across $(()) and expr. 16686if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 16687then : 16688 eval 'as_fn_arith () 16689 { 16690 as_val=$(( $* )) 16691 }' 16692else case e in #( 16693 e) as_fn_arith () 16694 { 16695 as_val=`expr "$@" || test $? -eq 1` 16696 } ;; 16697esac 16698fi # as_fn_arith 16699 16700 16701if expr a : '\(a\)' >/dev/null 2>&1 && 16702 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16703 as_expr=expr 16704else 16705 as_expr=false 16706fi 16707 16708if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16709 as_basename=basename 16710else 16711 as_basename=false 16712fi 16713 16714if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16715 as_dirname=dirname 16716else 16717 as_dirname=false 16718fi 16719 16720as_me=`$as_basename -- "$0" || 16721$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16722 X"$0" : 'X\(//\)$' \| \ 16723 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16724printf "%s\n" X/"$0" | 16725 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16726 s//\1/ 16727 q 16728 } 16729 /^X\/\(\/\/\)$/{ 16730 s//\1/ 16731 q 16732 } 16733 /^X\/\(\/\).*/{ 16734 s//\1/ 16735 q 16736 } 16737 s/.*/./; q'` 16738 16739# Avoid depending upon Character Ranges. 16740as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16741as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16742as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16743as_cr_digits='0123456789' 16744as_cr_alnum=$as_cr_Letters$as_cr_digits 16745 16746 16747# Determine whether it's possible to make 'echo' print without a newline. 16748# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 16749# for compatibility with existing Makefiles. 16750ECHO_C= ECHO_N= ECHO_T= 16751case `echo -n x` in #((((( 16752-n*) 16753 case `echo 'xy\c'` in 16754 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16755 xy) ECHO_C='\c';; 16756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16757 ECHO_T=' ';; 16758 esac;; 16759*) 16760 ECHO_N='-n';; 16761esac 16762 16763# For backward compatibility with old third-party macros, we provide 16764# the shell variables $as_echo and $as_echo_n. New code should use 16765# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 16766as_echo='printf %s\n' 16767as_echo_n='printf %s' 16768 16769rm -f conf$$ conf$$.exe conf$$.file 16770if test -d conf$$.dir; then 16771 rm -f conf$$.dir/conf$$.file 16772else 16773 rm -f conf$$.dir 16774 mkdir conf$$.dir 2>/dev/null 16775fi 16776if (echo >conf$$.file) 2>/dev/null; then 16777 if ln -s conf$$.file conf$$ 2>/dev/null; then 16778 as_ln_s='ln -s' 16779 # ... but there are two gotchas: 16780 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 16781 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 16782 # In both cases, we have to default to 'cp -pR'. 16783 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16784 as_ln_s='cp -pR' 16785 elif ln conf$$.file conf$$ 2>/dev/null; then 16786 as_ln_s=ln 16787 else 16788 as_ln_s='cp -pR' 16789 fi 16790else 16791 as_ln_s='cp -pR' 16792fi 16793rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16794rmdir conf$$.dir 2>/dev/null 16795 16796 16797# as_fn_mkdir_p 16798# ------------- 16799# Create "$as_dir" as a directory, including parents if necessary. 16800as_fn_mkdir_p () 16801{ 16802 16803 case $as_dir in #( 16804 -*) as_dir=./$as_dir;; 16805 esac 16806 test -d "$as_dir" || eval $as_mkdir_p || { 16807 as_dirs= 16808 while :; do 16809 case $as_dir in #( 16810 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16811 *) as_qdir=$as_dir;; 16812 esac 16813 as_dirs="'$as_qdir' $as_dirs" 16814 as_dir=`$as_dirname -- "$as_dir" || 16815$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16816 X"$as_dir" : 'X\(//\)[^/]' \| \ 16817 X"$as_dir" : 'X\(//\)$' \| \ 16818 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16819printf "%s\n" X"$as_dir" | 16820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16821 s//\1/ 16822 q 16823 } 16824 /^X\(\/\/\)[^/].*/{ 16825 s//\1/ 16826 q 16827 } 16828 /^X\(\/\/\)$/{ 16829 s//\1/ 16830 q 16831 } 16832 /^X\(\/\).*/{ 16833 s//\1/ 16834 q 16835 } 16836 s/.*/./; q'` 16837 test -d "$as_dir" && break 16838 done 16839 test -z "$as_dirs" || eval "mkdir $as_dirs" 16840 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16841 16842 16843} # as_fn_mkdir_p 16844if mkdir -p . 2>/dev/null; then 16845 as_mkdir_p='mkdir -p "$as_dir"' 16846else 16847 test -d ./-p && rmdir ./-p 16848 as_mkdir_p=false 16849fi 16850 16851 16852# as_fn_executable_p FILE 16853# ----------------------- 16854# Test if FILE is an executable regular file. 16855as_fn_executable_p () 16856{ 16857 test -f "$1" && test -x "$1" 16858} # as_fn_executable_p 16859as_test_x='test -x' 16860as_executable_p=as_fn_executable_p 16861 16862# Sed expression to map a string onto a valid CPP name. 16863as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 16864as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 16865 16866# Sed expression to map a string onto a valid variable name. 16867as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 16868as_tr_sh="eval sed '$as_sed_sh'" # deprecated 16869 16870 16871exec 6>&1 16872## ----------------------------------- ## 16873## Main body of $CONFIG_STATUS script. ## 16874## ----------------------------------- ## 16875_ASEOF 16876test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16877 16878cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16879# Save the log message, to keep $0 and so on meaningful, and to 16880# report actual input values of CONFIG_FILES etc. instead of their 16881# values after options handling. 16882ac_log=" 16883This file was extended by file $as_me 5.46, which was 16884generated by GNU Autoconf 2.72. Invocation command line was 16885 16886 CONFIG_FILES = $CONFIG_FILES 16887 CONFIG_HEADERS = $CONFIG_HEADERS 16888 CONFIG_LINKS = $CONFIG_LINKS 16889 CONFIG_COMMANDS = $CONFIG_COMMANDS 16890 $ $0 $@ 16891 16892on `(hostname || uname -n) 2>/dev/null | sed 1q` 16893" 16894 16895_ACEOF 16896 16897case $ac_config_files in *" 16898"*) set x $ac_config_files; shift; ac_config_files=$*;; 16899esac 16900 16901case $ac_config_headers in *" 16902"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16903esac 16904 16905 16906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16907# Files that config.status was made for. 16908config_files="$ac_config_files" 16909config_headers="$ac_config_headers" 16910config_commands="$ac_config_commands" 16911 16912_ACEOF 16913 16914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16915ac_cs_usage="\ 16916'$as_me' instantiates files and other configuration actions 16917from templates according to the current configuration. Unless the files 16918and actions are specified as TAGs, all are instantiated by default. 16919 16920Usage: $0 [OPTION]... [TAG]... 16921 16922 -h, --help print this help, then exit 16923 -V, --version print version number and configuration settings, then exit 16924 --config print configuration, then exit 16925 -q, --quiet, --silent 16926 do not print progress messages 16927 -d, --debug don't remove temporary files 16928 --recheck update $as_me by reconfiguring in the same conditions 16929 --file=FILE[:TEMPLATE] 16930 instantiate the configuration file FILE 16931 --header=FILE[:TEMPLATE] 16932 instantiate the configuration header FILE 16933 16934Configuration files: 16935$config_files 16936 16937Configuration headers: 16938$config_headers 16939 16940Configuration commands: 16941$config_commands 16942 16943Report bugs to <christos@astron.com>." 16944 16945_ACEOF 16946ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 16947ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 16948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16949ac_cs_config='$ac_cs_config_escaped' 16950ac_cs_version="\\ 16951file config.status 5.46 16952configured by $0, generated by GNU Autoconf 2.72, 16953 with options \\"\$ac_cs_config\\" 16954 16955Copyright (C) 2023 Free Software Foundation, Inc. 16956This config.status script is free software; the Free Software Foundation 16957gives unlimited permission to copy, distribute and modify it." 16958 16959ac_pwd='$ac_pwd' 16960srcdir='$srcdir' 16961INSTALL='$INSTALL' 16962MKDIR_P='$MKDIR_P' 16963AWK='$AWK' 16964test -n "\$AWK" || AWK=awk 16965_ACEOF 16966 16967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16968# The default lists apply if the user does not specify any file. 16969ac_need_defaults=: 16970while test $# != 0 16971do 16972 case $1 in 16973 --*=?*) 16974 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16975 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16976 ac_shift=: 16977 ;; 16978 --*=) 16979 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16980 ac_optarg= 16981 ac_shift=: 16982 ;; 16983 *) 16984 ac_option=$1 16985 ac_optarg=$2 16986 ac_shift=shift 16987 ;; 16988 esac 16989 16990 case $ac_option in 16991 # Handling of the options. 16992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16993 ac_cs_recheck=: ;; 16994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16995 printf "%s\n" "$ac_cs_version"; exit ;; 16996 --config | --confi | --conf | --con | --co | --c ) 16997 printf "%s\n" "$ac_cs_config"; exit ;; 16998 --debug | --debu | --deb | --de | --d | -d ) 16999 debug=: ;; 17000 --file | --fil | --fi | --f ) 17001 $ac_shift 17002 case $ac_optarg in 17003 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17004 '') as_fn_error $? "missing file argument" ;; 17005 esac 17006 as_fn_append CONFIG_FILES " '$ac_optarg'" 17007 ac_need_defaults=false;; 17008 --header | --heade | --head | --hea ) 17009 $ac_shift 17010 case $ac_optarg in 17011 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17012 esac 17013 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17014 ac_need_defaults=false;; 17015 --he | --h) 17016 # Conflict between --help and --header 17017 as_fn_error $? "ambiguous option: '$1' 17018Try '$0 --help' for more information.";; 17019 --help | --hel | -h ) 17020 printf "%s\n" "$ac_cs_usage"; exit ;; 17021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17022 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17023 ac_cs_silent=: ;; 17024 17025 # This is an error. 17026 -*) as_fn_error $? "unrecognized option: '$1' 17027Try '$0 --help' for more information." ;; 17028 17029 *) as_fn_append ac_config_targets " $1" 17030 ac_need_defaults=false ;; 17031 17032 esac 17033 shift 17034done 17035 17036ac_configure_extra_args= 17037 17038if $ac_cs_silent; then 17039 exec 6>/dev/null 17040 ac_configure_extra_args="$ac_configure_extra_args --silent" 17041fi 17042 17043_ACEOF 17044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17045if \$ac_cs_recheck; then 17046 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17047 shift 17048 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 17049 CONFIG_SHELL='$SHELL' 17050 export CONFIG_SHELL 17051 exec "\$@" 17052fi 17053 17054_ACEOF 17055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17056exec 5>>config.log 17057{ 17058 echo 17059 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17060## Running $as_me. ## 17061_ASBOX 17062 printf "%s\n" "$ac_log" 17063} >&5 17064 17065_ACEOF 17066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17067# 17068# INIT-COMMANDS 17069# 17070AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17071 17072 17073# The HP-UX ksh and POSIX shell print the target directory to stdout 17074# if CDPATH is set. 17075(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17076 17077sed_quote_subst='$sed_quote_subst' 17078double_quote_subst='$double_quote_subst' 17079delay_variable_subst='$delay_variable_subst' 17080macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17081macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17082enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17083pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17084enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17085enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17086shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17087SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17088ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17089PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17090host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17091host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17092host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17093build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17094build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17095build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17096SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17097Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17098GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17099EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17100FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17101LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17102NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17103LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17104max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17105ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17106exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17107lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17108lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17109lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17110lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17111lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17112reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17113reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17114FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 17115OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17116deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17117file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17118file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17119want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17120DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17121sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17122AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17123lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 17124AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17125archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17126STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17127RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17128old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17129old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17130old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17131lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17132CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17133CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17134compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17135GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17136lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17137lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17138lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17139lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17140lt_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"`' 17141lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17142nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17143lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17144lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17145objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17146MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17147lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17148lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17149lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17150lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17151lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17152need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17153MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17154DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17155NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17156LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17157OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17158OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17159libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17160shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17161extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17162archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17163enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17164export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17165whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17166compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17167old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17168old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17169archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17170archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17171module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17172module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17173with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17174allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17175no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17176hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17177hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17178hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17179hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17180hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17181hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17182hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17183inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17184link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17185always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17186export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17187exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17188include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17189prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17190postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17191file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17192variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17193need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17194need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17195version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17196runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17197shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17198shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17199libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17200library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17201soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17202install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17203postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17204postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17205finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17206finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17207hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17208sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17209configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17210configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17211hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17212enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17213enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17214enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17215old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17216striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17217 17218LTCC='$LTCC' 17219LTCFLAGS='$LTCFLAGS' 17220compiler='$compiler_DEFAULT' 17221 17222# A function that is used when there is no print builtin or printf. 17223func_fallback_echo () 17224{ 17225 eval 'cat <<_LTECHO_EOF 17226\$1 17227_LTECHO_EOF' 17228} 17229 17230# Quote evaled strings. 17231for var in SHELL \ 17232ECHO \ 17233PATH_SEPARATOR \ 17234SED \ 17235GREP \ 17236EGREP \ 17237FGREP \ 17238LD \ 17239NM \ 17240LN_S \ 17241lt_SP2NL \ 17242lt_NL2SP \ 17243reload_flag \ 17244FILECMD \ 17245OBJDUMP \ 17246deplibs_check_method \ 17247file_magic_cmd \ 17248file_magic_glob \ 17249want_nocaseglob \ 17250DLLTOOL \ 17251sharedlib_from_linklib_cmd \ 17252AR \ 17253archiver_list_spec \ 17254STRIP \ 17255RANLIB \ 17256CC \ 17257CFLAGS \ 17258compiler \ 17259lt_cv_sys_global_symbol_pipe \ 17260lt_cv_sys_global_symbol_to_cdecl \ 17261lt_cv_sys_global_symbol_to_import \ 17262lt_cv_sys_global_symbol_to_c_name_address \ 17263lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17264lt_cv_nm_interface \ 17265nm_file_list_spec \ 17266lt_cv_truncate_bin \ 17267lt_prog_compiler_no_builtin_flag \ 17268lt_prog_compiler_pic \ 17269lt_prog_compiler_wl \ 17270lt_prog_compiler_static \ 17271lt_cv_prog_compiler_c_o \ 17272need_locks \ 17273MANIFEST_TOOL \ 17274DSYMUTIL \ 17275NMEDIT \ 17276LIPO \ 17277OTOOL \ 17278OTOOL64 \ 17279shrext_cmds \ 17280export_dynamic_flag_spec \ 17281whole_archive_flag_spec \ 17282compiler_needs_object \ 17283with_gnu_ld \ 17284allow_undefined_flag \ 17285no_undefined_flag \ 17286hardcode_libdir_flag_spec \ 17287hardcode_libdir_separator \ 17288exclude_expsyms \ 17289include_expsyms \ 17290file_list_spec \ 17291variables_saved_for_relink \ 17292libname_spec \ 17293library_names_spec \ 17294soname_spec \ 17295install_override_mode \ 17296finish_eval \ 17297old_striplib \ 17298striplib; do 17299 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17300 *[\\\\\\\`\\"\\\$]*) 17301 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17302 ;; 17303 *) 17304 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17305 ;; 17306 esac 17307done 17308 17309# Double-quote double-evaled strings. 17310for var in reload_cmds \ 17311old_postinstall_cmds \ 17312old_postuninstall_cmds \ 17313old_archive_cmds \ 17314extract_expsyms_cmds \ 17315old_archive_from_new_cmds \ 17316old_archive_from_expsyms_cmds \ 17317archive_cmds \ 17318archive_expsym_cmds \ 17319module_cmds \ 17320module_expsym_cmds \ 17321export_symbols_cmds \ 17322prelink_cmds \ 17323postlink_cmds \ 17324postinstall_cmds \ 17325postuninstall_cmds \ 17326finish_cmds \ 17327sys_lib_search_path_spec \ 17328configure_time_dlsearch_path \ 17329configure_time_lt_sys_library_path; do 17330 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17331 *[\\\\\\\`\\"\\\$]*) 17332 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17333 ;; 17334 *) 17335 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17336 ;; 17337 esac 17338done 17339 17340ac_aux_dir='$ac_aux_dir' 17341 17342# See if we are running on zsh, and set the options that allow our 17343# commands through without removal of \ escapes INIT. 17344if test -n "\${ZSH_VERSION+set}"; then 17345 setopt NO_GLOB_SUBST 17346fi 17347 17348 17349 PACKAGE='$PACKAGE' 17350 VERSION='$VERSION' 17351 RM='$RM' 17352 ofile='$ofile' 17353 17354 17355 17356 17357_ACEOF 17358 17359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17360 17361# Handling of arguments. 17362for ac_config_target in $ac_config_targets 17363do 17364 case $ac_config_target in 17365 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17366 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17367 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17368 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17369 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17370 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 17371 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 17372 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17373 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 17374 "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;; 17375 17376 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 17377 esac 17378done 17379 17380 17381# If the user did not use the arguments to specify the items to instantiate, 17382# then the envvar interface is used. Set only those that are not. 17383# We use the long form for the default assignment because of an extremely 17384# bizarre bug on SunOS 4.1.3. 17385if $ac_need_defaults; then 17386 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 17387 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 17388 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 17389fi 17390 17391# Have a temporary directory for convenience. Make it in the build tree 17392# simply because there is no reason against having it here, and in addition, 17393# creating and moving files from /tmp can sometimes cause problems. 17394# Hook for its removal unless debugging. 17395# Note that there is a small window in which the directory will not be cleaned: 17396# after its creation but before its name has been assigned to '$tmp'. 17397$debug || 17398{ 17399 tmp= ac_tmp= 17400 trap 'exit_status=$? 17401 : "${ac_tmp:=$tmp}" 17402 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17403' 0 17404 trap 'as_fn_exit 1' 1 2 13 15 17405} 17406# Create a (secure) tmp directory for tmp files. 17407 17408{ 17409 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17410 test -d "$tmp" 17411} || 17412{ 17413 tmp=./conf$$-$RANDOM 17414 (umask 077 && mkdir "$tmp") 17415} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17416ac_tmp=$tmp 17417 17418# Set up the scripts for CONFIG_FILES section. 17419# No need to generate them if there are no CONFIG_FILES. 17420# This happens for instance with './config.status config.h'. 17421if test -n "$CONFIG_FILES"; then 17422 17423 17424ac_cr=`echo X | tr X '\015'` 17425# On cygwin, bash can eat \r inside `` if the user requested igncr. 17426# But we know of no other shell where ac_cr would be empty at this 17427# point, so we can use a bashism as a fallback. 17428if test "x$ac_cr" = x; then 17429 eval ac_cr=\$\'\\r\' 17430fi 17431ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17432if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17433 ac_cs_awk_cr='\\r' 17434else 17435 ac_cs_awk_cr=$ac_cr 17436fi 17437 17438echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17439_ACEOF 17440 17441 17442{ 17443 echo "cat >conf$$subs.awk <<_ACEOF" && 17444 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17445 echo "_ACEOF" 17446} >conf$$subs.sh || 17447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17448ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17449ac_delim='%!_!# ' 17450for ac_last_try in false false false false false :; do 17451 . ./conf$$subs.sh || 17452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17453 17454 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17455 if test $ac_delim_n = $ac_delim_num; then 17456 break 17457 elif $ac_last_try; then 17458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17459 else 17460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17461 fi 17462done 17463rm -f conf$$subs.sh 17464 17465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17466cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17467_ACEOF 17468sed -n ' 17469h 17470s/^/S["/; s/!.*/"]=/ 17471p 17472g 17473s/^[^!]*!// 17474:repl 17475t repl 17476s/'"$ac_delim"'$// 17477t delim 17478:nl 17479h 17480s/\(.\{148\}\)..*/\1/ 17481t more1 17482s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17483p 17484n 17485b repl 17486:more1 17487s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17488p 17489g 17490s/.\{148\}// 17491t nl 17492:delim 17493h 17494s/\(.\{148\}\)..*/\1/ 17495t more2 17496s/["\\]/\\&/g; s/^/"/; s/$/"/ 17497p 17498b 17499:more2 17500s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17501p 17502g 17503s/.\{148\}// 17504t delim 17505' <conf$$subs.awk | sed ' 17506/^[^""]/{ 17507 N 17508 s/\n// 17509} 17510' >>$CONFIG_STATUS || ac_write_fail=1 17511rm -f conf$$subs.awk 17512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17513_ACAWK 17514cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17515 for (key in S) S_is_set[key] = 1 17516 FS = "" 17517 17518} 17519{ 17520 line = $ 0 17521 nfields = split(line, field, "@") 17522 substed = 0 17523 len = length(field[1]) 17524 for (i = 2; i < nfields; i++) { 17525 key = field[i] 17526 keylen = length(key) 17527 if (S_is_set[key]) { 17528 value = S[key] 17529 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17530 len += length(value) + length(field[++i]) 17531 substed = 1 17532 } else 17533 len += 1 + keylen 17534 } 17535 17536 print line 17537} 17538 17539_ACAWK 17540_ACEOF 17541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17542if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17543 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17544else 17545 cat 17546fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17547 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17548_ACEOF 17549 17550# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17551# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17552# trailing colons and then remove the whole line if VPATH becomes empty 17553# (actually we leave an empty line to preserve line numbers). 17554if test "x$srcdir" = x.; then 17555 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17556h 17557s/// 17558s/^/:/ 17559s/[ ]*$/:/ 17560s/:\$(srcdir):/:/g 17561s/:\${srcdir}:/:/g 17562s/:@srcdir@:/:/g 17563s/^:*// 17564s/:*$// 17565x 17566s/\(=[ ]*\).*/\1/ 17567G 17568s/\n// 17569s/^[^=]*=[ ]*$// 17570}' 17571fi 17572 17573cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17574fi # test -n "$CONFIG_FILES" 17575 17576# Set up the scripts for CONFIG_HEADERS section. 17577# No need to generate them if there are no CONFIG_HEADERS. 17578# This happens for instance with './config.status Makefile'. 17579if test -n "$CONFIG_HEADERS"; then 17580cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17581BEGIN { 17582_ACEOF 17583 17584# Transform confdefs.h into an awk script 'defines.awk', embedded as 17585# here-document in config.status, that substitutes the proper values into 17586# config.h.in to produce config.h. 17587 17588# Create a delimiter string that does not exist in confdefs.h, to ease 17589# handling of long lines. 17590ac_delim='%!_!# ' 17591for ac_last_try in false false :; do 17592 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17593 if test -z "$ac_tt"; then 17594 break 17595 elif $ac_last_try; then 17596 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17597 else 17598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17599 fi 17600done 17601 17602# For the awk script, D is an array of macro values keyed by name, 17603# likewise P contains macro parameters if any. Preserve backslash 17604# newline sequences. 17605 17606ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17607sed -n ' 17608s/.\{148\}/&'"$ac_delim"'/g 17609t rset 17610:rset 17611s/^[ ]*#[ ]*define[ ][ ]*/ / 17612t def 17613d 17614:def 17615s/\\$// 17616t bsnl 17617s/["\\]/\\&/g 17618s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17619D["\1"]=" \3"/p 17620s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17621d 17622:bsnl 17623s/["\\]/\\&/g 17624s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17625D["\1"]=" \3\\\\\\n"\\/p 17626t cont 17627s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17628t cont 17629d 17630:cont 17631n 17632s/.\{148\}/&'"$ac_delim"'/g 17633t clear 17634:clear 17635s/\\$// 17636t bsnlc 17637s/["\\]/\\&/g; s/^/"/; s/$/"/p 17638d 17639:bsnlc 17640s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17641b cont 17642' <confdefs.h | sed ' 17643s/'"$ac_delim"'/"\\\ 17644"/g' >>$CONFIG_STATUS || ac_write_fail=1 17645 17646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17647 for (key in D) D_is_set[key] = 1 17648 FS = "" 17649} 17650/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17651 line = \$ 0 17652 split(line, arg, " ") 17653 if (arg[1] == "#") { 17654 defundef = arg[2] 17655 mac1 = arg[3] 17656 } else { 17657 defundef = substr(arg[1], 2) 17658 mac1 = arg[2] 17659 } 17660 split(mac1, mac2, "(") #) 17661 macro = mac2[1] 17662 prefix = substr(line, 1, index(line, defundef) - 1) 17663 if (D_is_set[macro]) { 17664 # Preserve the white space surrounding the "#". 17665 print prefix "define", macro P[macro] D[macro] 17666 next 17667 } else { 17668 # Replace #undef with comments. This is necessary, for example, 17669 # in the case of _POSIX_SOURCE, which is predefined and required 17670 # on some systems where configure will not decide to define it. 17671 if (defundef == "undef") { 17672 print "/*", prefix defundef, macro, "*/" 17673 next 17674 } 17675 } 17676} 17677{ print } 17678_ACAWK 17679_ACEOF 17680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17681 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17682fi # test -n "$CONFIG_HEADERS" 17683 17684 17685eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17686shift 17687for ac_tag 17688do 17689 case $ac_tag in 17690 :[FHLC]) ac_mode=$ac_tag; continue;; 17691 esac 17692 case $ac_mode$ac_tag in 17693 :[FHL]*:*);; 17694 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 17695 :[FH]-) ac_tag=-:-;; 17696 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17697 esac 17698 ac_save_IFS=$IFS 17699 IFS=: 17700 set x $ac_tag 17701 IFS=$ac_save_IFS 17702 shift 17703 ac_file=$1 17704 shift 17705 17706 case $ac_mode in 17707 :L) ac_source=$1;; 17708 :[FH]) 17709 ac_file_inputs= 17710 for ac_f 17711 do 17712 case $ac_f in 17713 -) ac_f="$ac_tmp/stdin";; 17714 *) # Look for the file first in the build tree, then in the source tree 17715 # (if the path is not absolute). The absolute path cannot be DOS-style, 17716 # because $ac_f cannot contain ':'. 17717 test -f "$ac_f" || 17718 case $ac_f in 17719 [\\/$]*) false;; 17720 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17721 esac || 17722 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 17723 esac 17724 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17725 as_fn_append ac_file_inputs " '$ac_f'" 17726 done 17727 17728 # Let's still pretend it is 'configure' which instantiates (i.e., don't 17729 # use $as_me), people would be surprised to read: 17730 # /* config.h. Generated by config.status. */ 17731 configure_input='Generated from '` 17732 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17733 `' by configure.' 17734 if test x"$ac_file" != x-; then 17735 configure_input="$ac_file. $configure_input" 17736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17737printf "%s\n" "$as_me: creating $ac_file" >&6;} 17738 fi 17739 # Neutralize special characters interpreted by sed in replacement strings. 17740 case $configure_input in #( 17741 *\&* | *\|* | *\\* ) 17742 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 17743 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17744 *) ac_sed_conf_input=$configure_input;; 17745 esac 17746 17747 case $ac_tag in 17748 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17750 esac 17751 ;; 17752 esac 17753 17754 ac_dir=`$as_dirname -- "$ac_file" || 17755$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17756 X"$ac_file" : 'X\(//\)[^/]' \| \ 17757 X"$ac_file" : 'X\(//\)$' \| \ 17758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17759printf "%s\n" X"$ac_file" | 17760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17761 s//\1/ 17762 q 17763 } 17764 /^X\(\/\/\)[^/].*/{ 17765 s//\1/ 17766 q 17767 } 17768 /^X\(\/\/\)$/{ 17769 s//\1/ 17770 q 17771 } 17772 /^X\(\/\).*/{ 17773 s//\1/ 17774 q 17775 } 17776 s/.*/./; q'` 17777 as_dir="$ac_dir"; as_fn_mkdir_p 17778 ac_builddir=. 17779 17780case "$ac_dir" in 17781.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17782*) 17783 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 17784 # A ".." for each directory in $ac_dir_suffix. 17785 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17786 case $ac_top_builddir_sub in 17787 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17788 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17789 esac ;; 17790esac 17791ac_abs_top_builddir=$ac_pwd 17792ac_abs_builddir=$ac_pwd$ac_dir_suffix 17793# for backward compatibility: 17794ac_top_builddir=$ac_top_build_prefix 17795 17796case $srcdir in 17797 .) # We are building in place. 17798 ac_srcdir=. 17799 ac_top_srcdir=$ac_top_builddir_sub 17800 ac_abs_top_srcdir=$ac_pwd ;; 17801 [\\/]* | ?:[\\/]* ) # Absolute name. 17802 ac_srcdir=$srcdir$ac_dir_suffix; 17803 ac_top_srcdir=$srcdir 17804 ac_abs_top_srcdir=$srcdir ;; 17805 *) # Relative name. 17806 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17807 ac_top_srcdir=$ac_top_build_prefix$srcdir 17808 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17809esac 17810ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17811 17812 17813 case $ac_mode in 17814 :F) 17815 # 17816 # CONFIG_FILE 17817 # 17818 17819 case $INSTALL in 17820 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17821 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17822 esac 17823 ac_MKDIR_P=$MKDIR_P 17824 case $MKDIR_P in 17825 [\\/$]* | ?:[\\/]* ) ;; 17826 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17827 esac 17828_ACEOF 17829 17830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17831# If the template does not know about datarootdir, expand it. 17832# FIXME: This hack should be removed a few years after 2.60. 17833ac_datarootdir_hack=; ac_datarootdir_seen= 17834ac_sed_dataroot=' 17835/datarootdir/ { 17836 p 17837 q 17838} 17839/@datadir@/p 17840/@docdir@/p 17841/@infodir@/p 17842/@localedir@/p 17843/@mandir@/p' 17844case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17845*datarootdir*) ac_datarootdir_seen=yes;; 17846*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17848printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17849_ACEOF 17850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17851 ac_datarootdir_hack=' 17852 s&@datadir@&$datadir&g 17853 s&@docdir@&$docdir&g 17854 s&@infodir@&$infodir&g 17855 s&@localedir@&$localedir&g 17856 s&@mandir@&$mandir&g 17857 s&\\\${datarootdir}&$datarootdir&g' ;; 17858esac 17859_ACEOF 17860 17861# Neutralize VPATH when '$srcdir' = '.'. 17862# Shell code in configure.ac might set extrasub. 17863# FIXME: do we really want to maintain this feature? 17864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17865ac_sed_extra="$ac_vpsub 17866$extrasub 17867_ACEOF 17868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17869:t 17870/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17871s|@configure_input@|$ac_sed_conf_input|;t t 17872s&@top_builddir@&$ac_top_builddir_sub&;t t 17873s&@top_build_prefix@&$ac_top_build_prefix&;t t 17874s&@srcdir@&$ac_srcdir&;t t 17875s&@abs_srcdir@&$ac_abs_srcdir&;t t 17876s&@top_srcdir@&$ac_top_srcdir&;t t 17877s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17878s&@builddir@&$ac_builddir&;t t 17879s&@abs_builddir@&$ac_abs_builddir&;t t 17880s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17881s&@INSTALL@&$ac_INSTALL&;t t 17882s&@MKDIR_P@&$ac_MKDIR_P&;t t 17883$ac_datarootdir_hack 17884" 17885eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17886 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17887 17888test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17889 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17890 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17891 "$ac_tmp/out"`; test -z "$ac_out"; } && 17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 17893which seems to be undefined. Please make sure it is defined" >&5 17894printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 17895which seems to be undefined. Please make sure it is defined" >&2;} 17896 17897 rm -f "$ac_tmp/stdin" 17898 case $ac_file in 17899 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17900 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17901 esac \ 17902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17903 ;; 17904 :H) 17905 # 17906 # CONFIG_HEADER 17907 # 17908 if test x"$ac_file" != x-; then 17909 { 17910 printf "%s\n" "/* $configure_input */" >&1 \ 17911 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17912 } >"$ac_tmp/config.h" \ 17913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17914 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17916printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 17917 else 17918 rm -f "$ac_file" 17919 mv "$ac_tmp/config.h" "$ac_file" \ 17920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17921 fi 17922 else 17923 printf "%s\n" "/* $configure_input */" >&1 \ 17924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17925 || as_fn_error $? "could not create -" "$LINENO" 5 17926 fi 17927# Compute "$ac_file"'s index in $config_headers. 17928_am_arg="$ac_file" 17929_am_stamp_count=1 17930for _am_header in $config_headers :; do 17931 case $_am_header in 17932 $_am_arg | $_am_arg:* ) 17933 break ;; 17934 * ) 17935 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17936 esac 17937done 17938echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17939$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17940 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17941 X"$_am_arg" : 'X\(//\)$' \| \ 17942 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17943printf "%s\n" X"$_am_arg" | 17944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17945 s//\1/ 17946 q 17947 } 17948 /^X\(\/\/\)[^/].*/{ 17949 s//\1/ 17950 q 17951 } 17952 /^X\(\/\/\)$/{ 17953 s//\1/ 17954 q 17955 } 17956 /^X\(\/\).*/{ 17957 s//\1/ 17958 q 17959 } 17960 s/.*/./; q'`/stamp-h$_am_stamp_count 17961 ;; 17962 17963 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17964printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 17965 ;; 17966 esac 17967 17968 17969 case $ac_file$ac_mode in 17970 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17971 # Older Autoconf quotes --file arguments for eval, but not when files 17972 # are listed without --file. Let's play safe and only enable the eval 17973 # if we detect the quoting. 17974 # TODO: see whether this extra hack can be removed once we start 17975 # requiring Autoconf 2.70 or later. 17976 case $CONFIG_FILES in #( 17977 *\'*) : 17978 eval set x "$CONFIG_FILES" ;; #( 17979 *) : 17980 set x $CONFIG_FILES ;; #( 17981 *) : 17982 ;; 17983esac 17984 shift 17985 # Used to flag and report bootstrapping failures. 17986 am_rc=0 17987 for am_mf 17988 do 17989 # Strip MF so we end up with the name of the file. 17990 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 17991 # Check whether this is an Automake generated Makefile which includes 17992 # dependency-tracking related rules and includes. 17993 # Grep'ing the whole file directly is not great: AIX grep has a line 17994 # limit of 2048, but all sed's we know have understand at least 4000. 17995 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17996 || continue 17997 am_dirpart=`$as_dirname -- "$am_mf" || 17998$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17999 X"$am_mf" : 'X\(//\)[^/]' \| \ 18000 X"$am_mf" : 'X\(//\)$' \| \ 18001 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18002printf "%s\n" X"$am_mf" | 18003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18004 s//\1/ 18005 q 18006 } 18007 /^X\(\/\/\)[^/].*/{ 18008 s//\1/ 18009 q 18010 } 18011 /^X\(\/\/\)$/{ 18012 s//\1/ 18013 q 18014 } 18015 /^X\(\/\).*/{ 18016 s//\1/ 18017 q 18018 } 18019 s/.*/./; q'` 18020 am_filepart=`$as_basename -- "$am_mf" || 18021$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18022 X"$am_mf" : 'X\(//\)$' \| \ 18023 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18024printf "%s\n" X/"$am_mf" | 18025 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18026 s//\1/ 18027 q 18028 } 18029 /^X\/\(\/\/\)$/{ 18030 s//\1/ 18031 q 18032 } 18033 /^X\/\(\/\).*/{ 18034 s//\1/ 18035 q 18036 } 18037 s/.*/./; q'` 18038 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18039 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18040 | $MAKE -f - am--depfiles" >&5 18041 (cd "$am_dirpart" \ 18042 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18043 | $MAKE -f - am--depfiles) >&5 2>&5 18044 ac_status=$? 18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18046 (exit $ac_status); } || am_rc=$? 18047 done 18048 if test $am_rc -ne 0; then 18049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 18050printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 18051as_fn_error $? "Something went wrong bootstrapping makefile fragments 18052 for automatic dependency tracking. If GNU make was not used, consider 18053 re-running the configure script with MAKE=\"gmake\" (or whatever is 18054 necessary). You can also try re-running configure with the 18055 '--disable-dependency-tracking' option to at least be able to build 18056 the package (albeit without support for automatic dependency tracking). 18057See 'config.log' for more details" "$LINENO" 5; } 18058 fi 18059 { am_dirpart=; unset am_dirpart;} 18060 { am_filepart=; unset am_filepart;} 18061 { am_mf=; unset am_mf;} 18062 { am_rc=; unset am_rc;} 18063 rm -f conftest-deps.mk 18064} 18065 ;; 18066 "libtool":C) 18067 18068 # See if we are running on zsh, and set the options that allow our 18069 # commands through without removal of \ escapes. 18070 if test -n "${ZSH_VERSION+set}"; then 18071 setopt NO_GLOB_SUBST 18072 fi 18073 18074 cfgfile=${ofile}T 18075 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18076 $RM "$cfgfile" 18077 18078 cat <<_LT_EOF >> "$cfgfile" 18079#! $SHELL 18080# Generated automatically by $as_me ($PACKAGE) $VERSION 18081# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18082# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18083 18084# Provide generalized library-building support services. 18085# Written by Gordon Matzigkeit, 1996 18086 18087# Copyright (C) 2014 Free Software Foundation, Inc. 18088# This is free software; see the source for copying conditions. There is NO 18089# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18090 18091# GNU Libtool is free software; you can redistribute it and/or modify 18092# it under the terms of the GNU General Public License as published by 18093# the Free Software Foundation; either version 2 of of the License, or 18094# (at your option) any later version. 18095# 18096# As a special exception to the GNU General Public License, if you 18097# distribute this file as part of a program or library that is built 18098# using GNU Libtool, you may include this file under the same 18099# distribution terms that you use for the rest of that program. 18100# 18101# GNU Libtool is distributed in the hope that it will be useful, but 18102# WITHOUT ANY WARRANTY; without even the implied warranty of 18103# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18104# GNU General Public License for more details. 18105# 18106# You should have received a copy of the GNU General Public License 18107# along with this program. If not, see <http://www.gnu.org/licenses/>. 18108 18109 18110# The names of the tagged configurations supported by this script. 18111available_tags='' 18112 18113# Configured defaults for sys_lib_dlsearch_path munging. 18114: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18115 18116# ### BEGIN LIBTOOL CONFIG 18117 18118# Which release of libtool.m4 was used? 18119macro_version=$macro_version 18120macro_revision=$macro_revision 18121 18122# Whether or not to build static libraries. 18123build_old_libs=$enable_static 18124 18125# What type of objects to build. 18126pic_mode=$pic_mode 18127 18128# Whether or not to build shared libraries. 18129build_libtool_libs=$enable_shared 18130 18131# Whether or not to optimize for fast installation. 18132fast_install=$enable_fast_install 18133 18134# Shared archive member basename,for filename based shared library versioning on AIX. 18135shared_archive_member_spec=$shared_archive_member_spec 18136 18137# Shell to use when invoking shell scripts. 18138SHELL=$lt_SHELL 18139 18140# An echo program that protects backslashes. 18141ECHO=$lt_ECHO 18142 18143# The PATH separator for the build system. 18144PATH_SEPARATOR=$lt_PATH_SEPARATOR 18145 18146# The host system. 18147host_alias=$host_alias 18148host=$host 18149host_os=$host_os 18150 18151# The build system. 18152build_alias=$build_alias 18153build=$build 18154build_os=$build_os 18155 18156# A sed program that does not truncate output. 18157SED=$lt_SED 18158 18159# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18160Xsed="\$SED -e 1s/^X//" 18161 18162# A grep program that handles long lines. 18163GREP=$lt_GREP 18164 18165# An ERE matcher. 18166EGREP=$lt_EGREP 18167 18168# A literal string matcher. 18169FGREP=$lt_FGREP 18170 18171# A BSD- or MS-compatible name lister. 18172NM=$lt_NM 18173 18174# Whether we need soft or hard links. 18175LN_S=$lt_LN_S 18176 18177# What is the maximum length of a command? 18178max_cmd_len=$max_cmd_len 18179 18180# Object file suffix (normally "o"). 18181objext=$ac_objext 18182 18183# Executable file suffix (normally ""). 18184exeext=$exeext 18185 18186# whether the shell understands "unset". 18187lt_unset=$lt_unset 18188 18189# turn spaces into newlines. 18190SP2NL=$lt_lt_SP2NL 18191 18192# turn newlines into spaces. 18193NL2SP=$lt_lt_NL2SP 18194 18195# convert \$build file names to \$host format. 18196to_host_file_cmd=$lt_cv_to_host_file_cmd 18197 18198# convert \$build files to toolchain format. 18199to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18200 18201# A file(cmd) program that detects file types. 18202FILECMD=$lt_FILECMD 18203 18204# An object symbol dumper. 18205OBJDUMP=$lt_OBJDUMP 18206 18207# Method to check whether dependent libraries are shared objects. 18208deplibs_check_method=$lt_deplibs_check_method 18209 18210# Command to use when deplibs_check_method = "file_magic". 18211file_magic_cmd=$lt_file_magic_cmd 18212 18213# How to find potential files when deplibs_check_method = "file_magic". 18214file_magic_glob=$lt_file_magic_glob 18215 18216# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18217want_nocaseglob=$lt_want_nocaseglob 18218 18219# DLL creation program. 18220DLLTOOL=$lt_DLLTOOL 18221 18222# Command to associate shared and link libraries. 18223sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18224 18225# The archiver. 18226AR=$lt_AR 18227 18228# Flags to create an archive (by configure). 18229lt_ar_flags=$lt_ar_flags 18230 18231# Flags to create an archive. 18232AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 18233 18234# How to feed a file listing to the archiver. 18235archiver_list_spec=$lt_archiver_list_spec 18236 18237# A symbol stripping program. 18238STRIP=$lt_STRIP 18239 18240# Commands used to install an old-style archive. 18241RANLIB=$lt_RANLIB 18242old_postinstall_cmds=$lt_old_postinstall_cmds 18243old_postuninstall_cmds=$lt_old_postuninstall_cmds 18244 18245# Whether to use a lock for old archive extraction. 18246lock_old_archive_extraction=$lock_old_archive_extraction 18247 18248# A C compiler. 18249LTCC=$lt_CC 18250 18251# LTCC compiler flags. 18252LTCFLAGS=$lt_CFLAGS 18253 18254# Take the output of nm and produce a listing of raw symbols and C names. 18255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18256 18257# Transform the output of nm in a proper C declaration. 18258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18259 18260# Transform the output of nm into a list of symbols to manually relocate. 18261global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18262 18263# Transform the output of nm in a C name address pair. 18264global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18265 18266# Transform the output of nm in a C name address pair when lib prefix is needed. 18267global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18268 18269# The name lister interface. 18270nm_interface=$lt_lt_cv_nm_interface 18271 18272# Specify filename containing input files for \$NM. 18273nm_file_list_spec=$lt_nm_file_list_spec 18274 18275# The root where to search for dependent libraries,and where our libraries should be installed. 18276lt_sysroot=$lt_sysroot 18277 18278# Command to truncate a binary pipe. 18279lt_truncate_bin=$lt_lt_cv_truncate_bin 18280 18281# The name of the directory that contains temporary libtool files. 18282objdir=$objdir 18283 18284# Used to examine libraries when file_magic_cmd begins with "file". 18285MAGIC_CMD=$MAGIC_CMD 18286 18287# Must we lock files when doing compilation? 18288need_locks=$lt_need_locks 18289 18290# Manifest tool. 18291MANIFEST_TOOL=$lt_MANIFEST_TOOL 18292 18293# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18294DSYMUTIL=$lt_DSYMUTIL 18295 18296# Tool to change global to local symbols on Mac OS X. 18297NMEDIT=$lt_NMEDIT 18298 18299# Tool to manipulate fat objects and archives on Mac OS X. 18300LIPO=$lt_LIPO 18301 18302# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18303OTOOL=$lt_OTOOL 18304 18305# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18306OTOOL64=$lt_OTOOL64 18307 18308# Old archive suffix (normally "a"). 18309libext=$libext 18310 18311# Shared library suffix (normally ".so"). 18312shrext_cmds=$lt_shrext_cmds 18313 18314# The commands to extract the exported symbol list from a shared archive. 18315extract_expsyms_cmds=$lt_extract_expsyms_cmds 18316 18317# Variables whose values should be saved in libtool wrapper scripts and 18318# restored at link time. 18319variables_saved_for_relink=$lt_variables_saved_for_relink 18320 18321# Do we need the "lib" prefix for modules? 18322need_lib_prefix=$need_lib_prefix 18323 18324# Do we need a version for libraries? 18325need_version=$need_version 18326 18327# Library versioning type. 18328version_type=$version_type 18329 18330# Shared library runtime path variable. 18331runpath_var=$runpath_var 18332 18333# Shared library path variable. 18334shlibpath_var=$shlibpath_var 18335 18336# Is shlibpath searched before the hard-coded library search path? 18337shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18338 18339# Format of library name prefix. 18340libname_spec=$lt_libname_spec 18341 18342# List of archive names. First name is the real one, the rest are links. 18343# The last name is the one that the linker finds with -lNAME 18344library_names_spec=$lt_library_names_spec 18345 18346# The coded name of the library, if different from the real name. 18347soname_spec=$lt_soname_spec 18348 18349# Permission mode override for installation of shared libraries. 18350install_override_mode=$lt_install_override_mode 18351 18352# Command to use after installation of a shared archive. 18353postinstall_cmds=$lt_postinstall_cmds 18354 18355# Command to use after uninstallation of a shared archive. 18356postuninstall_cmds=$lt_postuninstall_cmds 18357 18358# Commands used to finish a libtool library installation in a directory. 18359finish_cmds=$lt_finish_cmds 18360 18361# As "finish_cmds", except a single script fragment to be evaled but 18362# not shown. 18363finish_eval=$lt_finish_eval 18364 18365# Whether we should hardcode library paths into libraries. 18366hardcode_into_libs=$hardcode_into_libs 18367 18368# Compile-time system search path for libraries. 18369sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18370 18371# Detected run-time system search path for libraries. 18372sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18373 18374# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18375configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18376 18377# Whether dlopen is supported. 18378dlopen_support=$enable_dlopen 18379 18380# Whether dlopen of programs is supported. 18381dlopen_self=$enable_dlopen_self 18382 18383# Whether dlopen of statically linked programs is supported. 18384dlopen_self_static=$enable_dlopen_self_static 18385 18386# Commands to strip libraries. 18387old_striplib=$lt_old_striplib 18388striplib=$lt_striplib 18389 18390 18391# The linker used to build libraries. 18392LD=$lt_LD 18393 18394# How to create reloadable object files. 18395reload_flag=$lt_reload_flag 18396reload_cmds=$lt_reload_cmds 18397 18398# Commands used to build an old-style archive. 18399old_archive_cmds=$lt_old_archive_cmds 18400 18401# A language specific compiler. 18402CC=$lt_compiler 18403 18404# Is the compiler the GNU compiler? 18405with_gcc=$GCC 18406 18407# Compiler flag to turn off builtin functions. 18408no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18409 18410# Additional compiler flags for building library objects. 18411pic_flag=$lt_lt_prog_compiler_pic 18412 18413# How to pass a linker flag through the compiler. 18414wl=$lt_lt_prog_compiler_wl 18415 18416# Compiler flag to prevent dynamic linking. 18417link_static_flag=$lt_lt_prog_compiler_static 18418 18419# Does compiler simultaneously support -c and -o options? 18420compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18421 18422# Whether or not to add -lc for building shared libraries. 18423build_libtool_need_lc=$archive_cmds_need_lc 18424 18425# Whether or not to disallow shared libs when runtime libs are static. 18426allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18427 18428# Compiler flag to allow reflexive dlopens. 18429export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18430 18431# Compiler flag to generate shared objects directly from archives. 18432whole_archive_flag_spec=$lt_whole_archive_flag_spec 18433 18434# Whether the compiler copes with passing no objects directly. 18435compiler_needs_object=$lt_compiler_needs_object 18436 18437# Create an old-style archive from a shared archive. 18438old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18439 18440# Create a temporary old-style archive to link instead of a shared archive. 18441old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18442 18443# Commands used to build a shared archive. 18444archive_cmds=$lt_archive_cmds 18445archive_expsym_cmds=$lt_archive_expsym_cmds 18446 18447# Commands used to build a loadable module if different from building 18448# a shared archive. 18449module_cmds=$lt_module_cmds 18450module_expsym_cmds=$lt_module_expsym_cmds 18451 18452# Whether we are building with GNU ld or not. 18453with_gnu_ld=$lt_with_gnu_ld 18454 18455# Flag that allows shared libraries with undefined symbols to be built. 18456allow_undefined_flag=$lt_allow_undefined_flag 18457 18458# Flag that enforces no undefined symbols. 18459no_undefined_flag=$lt_no_undefined_flag 18460 18461# Flag to hardcode \$libdir into a binary during linking. 18462# This must work even if \$libdir does not exist 18463hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18464 18465# Whether we need a single "-rpath" flag with a separated argument. 18466hardcode_libdir_separator=$lt_hardcode_libdir_separator 18467 18468# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18469# DIR into the resulting binary. 18470hardcode_direct=$hardcode_direct 18471 18472# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18473# DIR into the resulting binary and the resulting library dependency is 18474# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18475# library is relocated. 18476hardcode_direct_absolute=$hardcode_direct_absolute 18477 18478# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18479# into the resulting binary. 18480hardcode_minus_L=$hardcode_minus_L 18481 18482# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18483# into the resulting binary. 18484hardcode_shlibpath_var=$hardcode_shlibpath_var 18485 18486# Set to "yes" if building a shared library automatically hardcodes DIR 18487# into the library and all subsequent libraries and executables linked 18488# against it. 18489hardcode_automatic=$hardcode_automatic 18490 18491# Set to yes if linker adds runtime paths of dependent libraries 18492# to runtime path list. 18493inherit_rpath=$inherit_rpath 18494 18495# Whether libtool must link a program against all its dependency libraries. 18496link_all_deplibs=$link_all_deplibs 18497 18498# Set to "yes" if exported symbols are required. 18499always_export_symbols=$always_export_symbols 18500 18501# The commands to list exported symbols. 18502export_symbols_cmds=$lt_export_symbols_cmds 18503 18504# Symbols that should not be listed in the preloaded symbols. 18505exclude_expsyms=$lt_exclude_expsyms 18506 18507# Symbols that must always be exported. 18508include_expsyms=$lt_include_expsyms 18509 18510# Commands necessary for linking programs (against libraries) with templates. 18511prelink_cmds=$lt_prelink_cmds 18512 18513# Commands necessary for finishing linking programs. 18514postlink_cmds=$lt_postlink_cmds 18515 18516# Specify filename containing input files. 18517file_list_spec=$lt_file_list_spec 18518 18519# How to hardcode a shared library path into an executable. 18520hardcode_action=$hardcode_action 18521 18522# ### END LIBTOOL CONFIG 18523 18524_LT_EOF 18525 18526 cat <<'_LT_EOF' >> "$cfgfile" 18527 18528# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18529 18530# func_munge_path_list VARIABLE PATH 18531# ----------------------------------- 18532# VARIABLE is name of variable containing _space_ separated list of 18533# directories to be munged by the contents of PATH, which is string 18534# having a format: 18535# "DIR[:DIR]:" 18536# string "DIR[ DIR]" will be prepended to VARIABLE 18537# ":DIR[:DIR]" 18538# string "DIR[ DIR]" will be appended to VARIABLE 18539# "DIRP[:DIRP]::[DIRA:]DIRA" 18540# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18541# "DIRA[ DIRA]" will be appended to VARIABLE 18542# "DIR[:DIR]" 18543# VARIABLE will be replaced by "DIR[ DIR]" 18544func_munge_path_list () 18545{ 18546 case x$2 in 18547 x) 18548 ;; 18549 *:) 18550 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18551 ;; 18552 x:*) 18553 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18554 ;; 18555 *::*) 18556 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18557 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18558 ;; 18559 *) 18560 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18561 ;; 18562 esac 18563} 18564 18565 18566# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18567func_cc_basename () 18568{ 18569 for cc_temp in $*""; do 18570 case $cc_temp in 18571 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18572 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18573 \-*) ;; 18574 *) break;; 18575 esac 18576 done 18577 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18578} 18579 18580 18581# ### END FUNCTIONS SHARED WITH CONFIGURE 18582 18583_LT_EOF 18584 18585 case $host_os in 18586 aix3*) 18587 cat <<\_LT_EOF >> "$cfgfile" 18588# AIX sometimes has problems with the GCC collect2 program. For some 18589# reason, if we set the COLLECT_NAMES environment variable, the problems 18590# vanish in a puff of smoke. 18591if test set != "${COLLECT_NAMES+set}"; then 18592 COLLECT_NAMES= 18593 export COLLECT_NAMES 18594fi 18595_LT_EOF 18596 ;; 18597 esac 18598 18599 18600 18601ltmain=$ac_aux_dir/ltmain.sh 18602 18603 18604 # We use sed instead of cat because bash on DJGPP gets confused if 18605 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18606 # text mode, it properly converts lines to CR/LF. This bash problem 18607 # is reportedly fixed, but why not run on old versions too? 18608 $SED '$q' "$ltmain" >> "$cfgfile" \ 18609 || (rm -f "$cfgfile"; exit 1) 18610 18611 mv -f "$cfgfile" "$ofile" || 18612 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18613 chmod +x "$ofile" 18614 18615 ;; 18616 18617 esac 18618done # for ac_tag 18619 18620 18621as_fn_exit 0 18622_ACEOF 18623ac_clean_files=$ac_clean_files_save 18624 18625test $ac_write_fail = 0 || 18626 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18627 18628 18629# configure is writing to config.log, and then calls config.status. 18630# config.status does its own redirection, appending to config.log. 18631# Unfortunately, on DOS this fails, as config.log is still kept open 18632# by configure, so config.status won't be able to write to it; its 18633# output is simply discarded. So we exec the FD to /dev/null, 18634# effectively closing config.log, so it can be properly (re)opened and 18635# appended to by config.status. When coming back to configure, we 18636# need to make the FD available again. 18637if test "$no_create" != yes; then 18638 ac_cs_success=: 18639 ac_config_status_args= 18640 test "$silent" = yes && 18641 ac_config_status_args="$ac_config_status_args --quiet" 18642 exec 5>/dev/null 18643 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18644 exec 5>>config.log 18645 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18646 # would make configure fail if this is the last instruction. 18647 $ac_cs_success || as_fn_exit 1 18648fi 18649if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18651printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18652fi 18653 18654 18655