1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.71 for libedit 3.1. 4@%:@ 5@%:@ 6@%:@ Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 7@%:@ Inc. 8@%:@ 9@%:@ 10@%:@ This configure script is free software; the Free Software Foundation 11@%:@ gives unlimited permission to copy, distribute and modify it. 12## -------------------- ## 13## M4sh Initialization. ## 14## -------------------- ## 15 16# Be more Bourne compatible 17DUALCASE=1; export DUALCASE # for MKS sh 18as_nop=: 19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else $as_nop 28 case `(set -o) 2>/dev/null` in @%:@( 29 *posix*) : 30 set -o posix ;; @%:@( 31 *) : 32 ;; 33esac 34fi 35 36 37 38# Reset variables that may have inherited troublesome values from 39# the environment. 40 41# IFS needs to be set, to space, tab, and newline, in precisely that order. 42# (If _AS_PATH_WALK were called with IFS unset, it would have the 43# side effect of setting IFS to empty, thus disabling word splitting.) 44# Quoting is to prevent editors from complaining about space-tab. 45as_nl=' 46' 47export as_nl 48IFS=" "" $as_nl" 49 50PS1='$ ' 51PS2='> ' 52PS4='+ ' 53 54# Ensure predictable behavior from utilities with locale-dependent output. 55LC_ALL=C 56export LC_ALL 57LANGUAGE=C 58export LANGUAGE 59 60# We cannot yet rely on "unset" to work, but we need these variables 61# to be unset--not just set to an empty or harmless value--now, to 62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 63# also avoids known problems related to "unset" and subshell syntax 64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 66do eval test \${$as_var+y} \ 67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 68done 69 70# Ensure that fds 0, 1, and 2 are open. 71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 74 75# The user is always right. 76if ${PATH_SEPARATOR+false} :; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# Find who we are. Look in the path if we contain no directory separator. 86as_myself= 87case $0 in @%:@(( 88 *[\\/]* ) as_myself=$0 ;; 89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 90for as_dir in $PATH 91do 92 IFS=$as_save_IFS 93 case $as_dir in #((( 94 '') as_dir=./ ;; 95 */) ;; 96 *) as_dir=$as_dir/ ;; 97 esac 98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114 115# Use a proper internal environment variable to ensure we don't fall 116 # into an infinite loop, continuously re-executing ourselves. 117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 118 _as_can_reexec=no; export _as_can_reexec; 119 # We cannot yet assume a decent shell, so we have to provide a 120# neutralization value for shells without unset; and this also 121# works around shells that cannot unset nonexistent variables. 122# Preserve -v and -x to the replacement shell. 123BASH_ENV=/dev/null 124ENV=/dev/null 125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 126case $- in @%:@ (((( 127 *v*x* | *x*v* ) as_opts=-vx ;; 128 *v* ) as_opts=-v ;; 129 *x* ) as_opts=-x ;; 130 * ) as_opts= ;; 131esac 132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 133# Admittedly, this is quite paranoid, since all the known shells bail 134# out after a failed `exec'. 135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 136exit 255 137 fi 138 # We don't want this to propagate to other subprocesses. 139 { _as_can_reexec=; unset _as_can_reexec;} 140if test "x$CONFIG_SHELL" = x; then 141 as_bourne_compatible="as_nop=: 142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 143then : 144 emulate sh 145 NULLCMD=: 146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 147 # is contrary to our usage. Disable this feature. 148 alias -g '\${1+\"\$@\"}'='\"\$@\"' 149 setopt NO_GLOB_SUBST 150else \$as_nop 151 case \`(set -o) 2>/dev/null\` in @%:@( 152 *posix*) : 153 set -o posix ;; @%:@( 154 *) : 155 ;; 156esac 157fi 158" 159 as_required="as_fn_return () { (exit \$1); } 160as_fn_success () { as_fn_return 0; } 161as_fn_failure () { as_fn_return 1; } 162as_fn_ret_success () { return 0; } 163as_fn_ret_failure () { return 1; } 164 165exitcode=0 166as_fn_success || { exitcode=1; echo as_fn_success failed.; } 167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 170if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 171then : 172 173else \$as_nop 174 exitcode=1; echo positional parameters were not saved. 175fi 176test x\$exitcode = x0 || exit 1 177blah=\$(echo \$(echo blah)) 178test x\"\$blah\" = xblah || exit 1 179test -x / || exit 1" 180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 184 185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 189 PATH=/empty FPATH=/empty; export PATH FPATH 190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 192test \$(( 1 + 1 )) = 2 || exit 1" 193 if (eval "$as_required") 2>/dev/null 194then : 195 as_have_required=yes 196else $as_nop 197 as_have_required=no 198fi 199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 200then : 201 202else $as_nop 203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 204as_found=false 205for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 206do 207 IFS=$as_save_IFS 208 case $as_dir in #((( 209 '') as_dir=./ ;; 210 */) ;; 211 *) as_dir=$as_dir/ ;; 212 esac 213 as_found=: 214 case $as_dir in @%:@( 215 /*) 216 for as_base in sh bash ksh sh5; do 217 # Try only shells that exist, to save several forks. 218 as_shell=$as_dir$as_base 219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 221then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 224then : 225 break 2 226fi 227fi 228 done;; 229 esac 230 as_found=false 231done 232IFS=$as_save_IFS 233if $as_found 234then : 235 236else $as_nop 237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 239then : 240 CONFIG_SHELL=$SHELL as_have_required=yes 241fi 242fi 243 244 245 if test "x$CONFIG_SHELL" != x 246then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in @%:@ (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno 269then : 270 printf "%s\n" "$0: This script requires a shell more modern than all" 271 printf "%s\n" "$0: the shells that I found on your system." 272 if test ${ZSH_VERSION+y} ; then 273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 275 else 276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, 277$0: including any error possibly output before this 278$0: message. Then install a modern shell, or manually run 279$0: the script under such a shell if you do have one." 280 fi 281 exit 1 282fi 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294@%:@ as_fn_unset VAR 295@%:@ --------------- 296@%:@ Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304@%:@ as_fn_set_status STATUS 305@%:@ ----------------------- 306@%:@ Set @S|@? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} @%:@ as_fn_set_status 311 312@%:@ as_fn_exit STATUS 313@%:@ ----------------- 314@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} @%:@ as_fn_exit 321@%:@ as_fn_nop 322@%:@ --------- 323@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. 324as_fn_nop () 325{ 326 return $? 327} 328as_nop=as_fn_nop 329 330@%:@ as_fn_mkdir_p 331@%:@ ------------- 332@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 333as_fn_mkdir_p () 334{ 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376} @%:@ as_fn_mkdir_p 377 378@%:@ as_fn_executable_p FILE 379@%:@ ----------------------- 380@%:@ Test if FILE is an executable regular file. 381as_fn_executable_p () 382{ 383 test -f "$1" && test -x "$1" 384} @%:@ as_fn_executable_p 385@%:@ as_fn_append VAR VALUE 386@%:@ ---------------------- 387@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 388@%:@ advantage of any shell optimizations that allow amortized linear growth over 389@%:@ repeated appends, instead of the typical quadratic growth present in naive 390@%:@ implementations. 391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397else $as_nop 398 as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } 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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments 408@%:@ must be portable across @S|@(()) and expr. 409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415else $as_nop 416 as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } 420fi # as_fn_arith 421 422@%:@ as_fn_nop 423@%:@ --------- 424@%:@ Do nothing but, unlike ":", preserve the value of @S|@?. 425as_fn_nop () 426{ 427 return $? 428} 429as_nop=as_fn_nop 430 431@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 432@%:@ ---------------------------------------- 433@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 434@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 435@%:@ script with STATUS, using 1 if that was 0. 436as_fn_error () 437{ 438 as_status=$1; test $as_status -eq 0 && as_status=1 439 if test "$4"; then 440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 442 fi 443 printf "%s\n" "$as_me: error: $2" >&2 444 as_fn_exit $as_status 445} @%:@ as_fn_error 446 447if expr a : '\(a\)' >/dev/null 2>&1 && 448 test "X`expr 00001 : '.*\(...\)'`" = X001; then 449 as_expr=expr 450else 451 as_expr=false 452fi 453 454if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 455 as_basename=basename 456else 457 as_basename=false 458fi 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466as_me=`$as_basename -- "$0" || 467$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 468 X"$0" : 'X\(//\)$' \| \ 469 X"$0" : 'X\(/\)' \| . 2>/dev/null || 470printf "%s\n" X/"$0" | 471 sed '/^.*\/\([^/][^/]*\)\/*$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\/\)$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\).*/{ 480 s//\1/ 481 q 482 } 483 s/.*/./; q'` 484 485# Avoid depending upon Character Ranges. 486as_cr_letters='abcdefghijklmnopqrstuvwxyz' 487as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 488as_cr_Letters=$as_cr_letters$as_cr_LETTERS 489as_cr_digits='0123456789' 490as_cr_alnum=$as_cr_Letters$as_cr_digits 491 492 493 as_lineno_1=$LINENO as_lineno_1a=$LINENO 494 as_lineno_2=$LINENO as_lineno_2a=$LINENO 495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 498 sed -n ' 499 p 500 /[$]LINENO/= 501 ' <$as_myself | 502 sed ' 503 s/[$]LINENO.*/&-/ 504 t lineno 505 b 506 :lineno 507 N 508 :loop 509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 510 t loop 511 s/-\n.*// 512 ' >$as_me.lineno && 513 chmod +x "$as_me.lineno" || 514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 515 516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 517 # already done that, so ensure we don't try to do so again and fall 518 # in an infinite loop. This has already happened in practice. 519 _as_can_reexec=no; export _as_can_reexec 520 # Don't try to exec as it changes $[0], causing all sort of problems 521 # (the dirname of $[0] is not the place where we might find the 522 # original and so on. Autoconf is especially sensitive to this). 523 . "./$as_me.lineno" 524 # Exit status is that of the last command. 525 exit 526} 527 528 529# Determine whether it's possible to make 'echo' print without a newline. 530# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 531# for compatibility with existing Makefiles. 532ECHO_C= ECHO_N= ECHO_T= 533case `echo -n x` in @%:@((((( 534-n*) 535 case `echo 'xy\c'` in 536 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 537 xy) ECHO_C='\c';; 538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 539 ECHO_T=' ';; 540 esac;; 541*) 542 ECHO_N='-n';; 543esac 544 545# For backward compatibility with old third-party macros, we provide 546# the shell variables $as_echo and $as_echo_n. New code should use 547# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 548as_@&t@echo='printf %s\n' 549as_@&t@echo_n='printf %s' 550 551 552rm -f conf$$ conf$$.exe conf$$.file 553if test -d conf$$.dir; then 554 rm -f conf$$.dir/conf$$.file 555else 556 rm -f conf$$.dir 557 mkdir conf$$.dir 2>/dev/null 558fi 559if (echo >conf$$.file) 2>/dev/null; then 560 if ln -s conf$$.file conf$$ 2>/dev/null; then 561 as_ln_s='ln -s' 562 # ... but there are two gotchas: 563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 565 # In both cases, we have to default to `cp -pR'. 566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 567 as_ln_s='cp -pR' 568 elif ln conf$$.file conf$$ 2>/dev/null; then 569 as_ln_s=ln 570 else 571 as_ln_s='cp -pR' 572 fi 573else 574 as_ln_s='cp -pR' 575fi 576rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 577rmdir conf$$.dir 2>/dev/null 578 579if mkdir -p . 2>/dev/null; then 580 as_mkdir_p='mkdir -p "$as_dir"' 581else 582 test -d ./-p && rmdir ./-p 583 as_mkdir_p=false 584fi 585 586as_test_x='test -x' 587as_executable_p=as_fn_executable_p 588 589# Sed expression to map a string onto a valid CPP name. 590as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 591 592# Sed expression to map a string onto a valid variable name. 593as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 594 595SHELL=${CONFIG_SHELL-/bin/sh} 596 597 598test -n "$DJDIR" || exec 7<&0 </dev/null 599exec 6>&1 600 601# Name of the host. 602# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 603# so uname gets run too. 604ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 605 606# 607# Initializations. 608# 609ac_default_prefix=/usr/local 610ac_clean_files= 611ac_config_libobj_dir=. 612LIB@&t@OBJS= 613cross_compiling=no 614subdirs= 615MFLAGS= 616MAKEFLAGS= 617 618# Identity of this package. 619PACKAGE_NAME='libedit' 620PACKAGE_TARNAME='libedit-20250417' 621PACKAGE_VERSION='3.1' 622PACKAGE_STRING='libedit 3.1' 623PACKAGE_BUGREPORT='' 624PACKAGE_URL='' 625 626ac_unique_file="src/strlcat.c" 627# Factoring default headers for most tests. 628ac_includes_default="\ 629#include <stddef.h> 630#ifdef HAVE_STDIO_H 631# include <stdio.h> 632#endif 633#ifdef HAVE_STDLIB_H 634# include <stdlib.h> 635#endif 636#ifdef HAVE_STRING_H 637# include <string.h> 638#endif 639#ifdef HAVE_INTTYPES_H 640# include <inttypes.h> 641#endif 642#ifdef HAVE_STDINT_H 643# include <stdint.h> 644#endif 645#ifdef HAVE_STRINGS_H 646# include <strings.h> 647#endif 648#ifdef HAVE_SYS_TYPES_H 649# include <sys/types.h> 650#endif 651#ifdef HAVE_SYS_STAT_H 652# include <sys/stat.h> 653#endif 654#ifdef HAVE_UNISTD_H 655# include <unistd.h> 656#endif" 657 658ac_header_c_list= 659ac_func_c_list= 660ac_subst_vars='am__EXEEXT_FALSE 661am__EXEEXT_TRUE 662LTLIBOBJS 663HAVE_UNVIS_FALSE 664HAVE_UNVIS_TRUE 665HAVE_VIS_FALSE 666HAVE_VIS_TRUE 667HAVE_GETLINE_FALSE 668HAVE_GETLINE_TRUE 669HAVE_STRLCAT_FALSE 670HAVE_STRLCAT_TRUE 671HAVE_STRLCPY_FALSE 672HAVE_STRLCPY_TRUE 673LIB@&t@OBJS 674ENABLE_EXAMPLES_FALSE 675ENABLE_EXAMPLES_TRUE 676MANTYPE 677NROFF 678LT_VERSION 679LT_SYS_LIBRARY_PATH 680OTOOL64 681OTOOL 682LIPO 683NMEDIT 684DSYMUTIL 685MANIFEST_TOOL 686RANLIB 687ac_ct_AR 688AR 689DLLTOOL 690OBJDUMP 691LN_S 692NM 693ac_ct_DUMPBIN 694DUMPBIN 695LD 696FGREP 697EGREP 698GREP 699SED 700host_os 701host_vendor 702host_cpu 703host 704build_os 705build_vendor 706build_cpu 707build 708LIBTOOL 709AM_BACKSLASH 710AM_DEFAULT_VERBOSITY 711AM_DEFAULT_V 712AM_V 713CSCOPE 714ETAGS 715CTAGS 716am__fastdepCC_FALSE 717am__fastdepCC_TRUE 718CCDEPMODE 719am__nodep 720AMDEPBACKSLASH 721AMDEP_FALSE 722AMDEP_TRUE 723am__include 724DEPDIR 725am__untar 726am__tar 727AMTAR 728am__leading_dot 729SET_MAKE 730AWK 731mkdir_p 732MKDIR_P 733INSTALL_STRIP_PROGRAM 734STRIP 735install_sh 736MAKEINFO 737AUTOHEADER 738AUTOMAKE 739AUTOCONF 740ACLOCAL 741VERSION 742PACKAGE 743CYGPATH_W 744am__isrc 745INSTALL_DATA 746INSTALL_SCRIPT 747INSTALL_PROGRAM 748OBJEXT 749EXEEXT 750ac_ct_CC 751CPPFLAGS 752LDFLAGS 753CFLAGS 754CC 755target_alias 756host_alias 757build_alias 758LIBS 759ECHO_T 760ECHO_N 761ECHO_C 762DEFS 763mandir 764localedir 765libdir 766psdir 767pdfdir 768dvidir 769htmldir 770infodir 771docdir 772oldincludedir 773includedir 774runstatedir 775localstatedir 776sharedstatedir 777sysconfdir 778datadir 779datarootdir 780libexecdir 781sbindir 782bindir 783program_transform_name 784prefix 785exec_prefix 786PACKAGE_URL 787PACKAGE_BUGREPORT 788PACKAGE_STRING 789PACKAGE_VERSION 790PACKAGE_TARNAME 791PACKAGE_NAME 792PATH_SEPARATOR 793SHELL 794am__quote' 795ac_subst_files='' 796ac_user_opts=' 797enable_option_checking 798enable_dependency_tracking 799enable_silent_rules 800enable_shared 801enable_static 802with_pic 803enable_fast_install 804with_aix_soname 805with_gnu_ld 806with_sysroot 807enable_libtool_lock 808enable_widec 809enable_examples 810' 811 ac_precious_vars='build_alias 812host_alias 813target_alias 814CC 815CFLAGS 816LDFLAGS 817LIBS 818CPPFLAGS 819LT_SYS_LIBRARY_PATH' 820 821 822# Initialize some variables set by options. 823ac_init_help= 824ac_init_version=false 825ac_unrecognized_opts= 826ac_unrecognized_sep= 827# The variables have the same names as the options, with 828# dashes changed to underlines. 829cache_file=/dev/null 830exec_prefix=NONE 831no_create= 832no_recursion= 833prefix=NONE 834program_prefix=NONE 835program_suffix=NONE 836program_transform_name=s,x,x, 837silent= 838site= 839srcdir= 840verbose= 841x_includes=NONE 842x_libraries=NONE 843 844# Installation directory options. 845# These are left unexpanded so users can "make install exec_prefix=/foo" 846# and all the variables that are supposed to be based on exec_prefix 847# by default will actually change. 848# Use braces instead of parens because sh, perl, etc. also accept them. 849# (The list follows the same order as the GNU Coding Standards.) 850bindir='${exec_prefix}/bin' 851sbindir='${exec_prefix}/sbin' 852libexecdir='${exec_prefix}/libexec' 853datarootdir='${prefix}/share' 854datadir='${datarootdir}' 855sysconfdir='${prefix}/etc' 856sharedstatedir='${prefix}/com' 857localstatedir='${prefix}/var' 858runstatedir='${localstatedir}/run' 859includedir='${prefix}/include' 860oldincludedir='/usr/include' 861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 862infodir='${datarootdir}/info' 863htmldir='${docdir}' 864dvidir='${docdir}' 865pdfdir='${docdir}' 866psdir='${docdir}' 867libdir='${exec_prefix}/lib' 868localedir='${datarootdir}/locale' 869mandir='${datarootdir}/man' 870 871ac_prev= 872ac_dashdash= 873for ac_option 874do 875 # If the previous option needs an argument, assign it. 876 if test -n "$ac_prev"; then 877 eval $ac_prev=\$ac_option 878 ac_prev= 879 continue 880 fi 881 882 case $ac_option in 883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 884 *=) ac_optarg= ;; 885 *) ac_optarg=yes ;; 886 esac 887 888 case $ac_dashdash$ac_option in 889 --) 890 ac_dashdash=yes ;; 891 892 -bindir | --bindir | --bindi | --bind | --bin | --bi) 893 ac_prev=bindir ;; 894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 895 bindir=$ac_optarg ;; 896 897 -build | --build | --buil | --bui | --bu) 898 ac_prev=build_alias ;; 899 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 900 build_alias=$ac_optarg ;; 901 902 -cache-file | --cache-file | --cache-fil | --cache-fi \ 903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 904 ac_prev=cache_file ;; 905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 907 cache_file=$ac_optarg ;; 908 909 --config-cache | -C) 910 cache_file=config.cache ;; 911 912 -datadir | --datadir | --datadi | --datad) 913 ac_prev=datadir ;; 914 -datadir=* | --datadir=* | --datadi=* | --datad=*) 915 datadir=$ac_optarg ;; 916 917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 918 | --dataroo | --dataro | --datar) 919 ac_prev=datarootdir ;; 920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 922 datarootdir=$ac_optarg ;; 923 924 -disable-* | --disable-*) 925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 926 # Reject names that are not valid shell variable names. 927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 928 as_fn_error $? "invalid feature name: \`$ac_useropt'" 929 ac_useropt_orig=$ac_useropt 930 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 931 case $ac_user_opts in 932 *" 933"enable_$ac_useropt" 934"*) ;; 935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 936 ac_unrecognized_sep=', ';; 937 esac 938 eval enable_$ac_useropt=no ;; 939 940 -docdir | --docdir | --docdi | --doc | --do) 941 ac_prev=docdir ;; 942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 943 docdir=$ac_optarg ;; 944 945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 946 ac_prev=dvidir ;; 947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 948 dvidir=$ac_optarg ;; 949 950 -enable-* | --enable-*) 951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 954 as_fn_error $? "invalid feature name: \`$ac_useropt'" 955 ac_useropt_orig=$ac_useropt 956 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 957 case $ac_user_opts in 958 *" 959"enable_$ac_useropt" 960"*) ;; 961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 962 ac_unrecognized_sep=', ';; 963 esac 964 eval enable_$ac_useropt=\$ac_optarg ;; 965 966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 968 | --exec | --exe | --ex) 969 ac_prev=exec_prefix ;; 970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 972 | --exec=* | --exe=* | --ex=*) 973 exec_prefix=$ac_optarg ;; 974 975 -gas | --gas | --ga | --g) 976 # Obsolete; use --with-gas. 977 with_gas=yes ;; 978 979 -help | --help | --hel | --he | -h) 980 ac_init_help=long ;; 981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 982 ac_init_help=recursive ;; 983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 984 ac_init_help=short ;; 985 986 -host | --host | --hos | --ho) 987 ac_prev=host_alias ;; 988 -host=* | --host=* | --hos=* | --ho=*) 989 host_alias=$ac_optarg ;; 990 991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 992 ac_prev=htmldir ;; 993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 994 | --ht=*) 995 htmldir=$ac_optarg ;; 996 997 -includedir | --includedir | --includedi | --included | --include \ 998 | --includ | --inclu | --incl | --inc) 999 ac_prev=includedir ;; 1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1001 | --includ=* | --inclu=* | --incl=* | --inc=*) 1002 includedir=$ac_optarg ;; 1003 1004 -infodir | --infodir | --infodi | --infod | --info | --inf) 1005 ac_prev=infodir ;; 1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1007 infodir=$ac_optarg ;; 1008 1009 -libdir | --libdir | --libdi | --libd) 1010 ac_prev=libdir ;; 1011 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1012 libdir=$ac_optarg ;; 1013 1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1015 | --libexe | --libex | --libe) 1016 ac_prev=libexecdir ;; 1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1018 | --libexe=* | --libex=* | --libe=*) 1019 libexecdir=$ac_optarg ;; 1020 1021 -localedir | --localedir | --localedi | --localed | --locale) 1022 ac_prev=localedir ;; 1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1024 localedir=$ac_optarg ;; 1025 1026 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1027 | --localstate | --localstat | --localsta | --localst | --locals) 1028 ac_prev=localstatedir ;; 1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1031 localstatedir=$ac_optarg ;; 1032 1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1034 ac_prev=mandir ;; 1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1036 mandir=$ac_optarg ;; 1037 1038 -nfp | --nfp | --nf) 1039 # Obsolete; use --without-fp. 1040 with_fp=no ;; 1041 1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1043 | --no-cr | --no-c | -n) 1044 no_create=yes ;; 1045 1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1048 no_recursion=yes ;; 1049 1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1052 | --oldin | --oldi | --old | --ol | --o) 1053 ac_prev=oldincludedir ;; 1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1057 oldincludedir=$ac_optarg ;; 1058 1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1060 ac_prev=prefix ;; 1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1062 prefix=$ac_optarg ;; 1063 1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1065 | --program-pre | --program-pr | --program-p) 1066 ac_prev=program_prefix ;; 1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1069 program_prefix=$ac_optarg ;; 1070 1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1072 | --program-suf | --program-su | --program-s) 1073 ac_prev=program_suffix ;; 1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1076 program_suffix=$ac_optarg ;; 1077 1078 -program-transform-name | --program-transform-name \ 1079 | --program-transform-nam | --program-transform-na \ 1080 | --program-transform-n | --program-transform- \ 1081 | --program-transform | --program-transfor \ 1082 | --program-transfo | --program-transf \ 1083 | --program-trans | --program-tran \ 1084 | --progr-tra | --program-tr | --program-t) 1085 ac_prev=program_transform_name ;; 1086 -program-transform-name=* | --program-transform-name=* \ 1087 | --program-transform-nam=* | --program-transform-na=* \ 1088 | --program-transform-n=* | --program-transform-=* \ 1089 | --program-transform=* | --program-transfor=* \ 1090 | --program-transfo=* | --program-transf=* \ 1091 | --program-trans=* | --program-tran=* \ 1092 | --progr-tra=* | --program-tr=* | --program-t=*) 1093 program_transform_name=$ac_optarg ;; 1094 1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1096 ac_prev=pdfdir ;; 1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1098 pdfdir=$ac_optarg ;; 1099 1100 -psdir | --psdir | --psdi | --psd | --ps) 1101 ac_prev=psdir ;; 1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1103 psdir=$ac_optarg ;; 1104 1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1106 | -silent | --silent | --silen | --sile | --sil) 1107 silent=yes ;; 1108 1109 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1110 | --runstate | --runstat | --runsta | --runst | --runs \ 1111 | --run | --ru | --r) 1112 ac_prev=runstatedir ;; 1113 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1114 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1115 | --run=* | --ru=* | --r=*) 1116 runstatedir=$ac_optarg ;; 1117 1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1119 ac_prev=sbindir ;; 1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1121 | --sbi=* | --sb=*) 1122 sbindir=$ac_optarg ;; 1123 1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1126 | --sharedst | --shareds | --shared | --share | --shar \ 1127 | --sha | --sh) 1128 ac_prev=sharedstatedir ;; 1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1132 | --sha=* | --sh=*) 1133 sharedstatedir=$ac_optarg ;; 1134 1135 -site | --site | --sit) 1136 ac_prev=site ;; 1137 -site=* | --site=* | --sit=*) 1138 site=$ac_optarg ;; 1139 1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1141 ac_prev=srcdir ;; 1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1143 srcdir=$ac_optarg ;; 1144 1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1146 | --syscon | --sysco | --sysc | --sys | --sy) 1147 ac_prev=sysconfdir ;; 1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1150 sysconfdir=$ac_optarg ;; 1151 1152 -target | --target | --targe | --targ | --tar | --ta | --t) 1153 ac_prev=target_alias ;; 1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1155 target_alias=$ac_optarg ;; 1156 1157 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1158 verbose=yes ;; 1159 1160 -version | --version | --versio | --versi | --vers | -V) 1161 ac_init_version=: ;; 1162 1163 -with-* | --with-*) 1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1165 # Reject names that are not valid shell variable names. 1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1167 as_fn_error $? "invalid package name: \`$ac_useropt'" 1168 ac_useropt_orig=$ac_useropt 1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 case $ac_user_opts in 1171 *" 1172"with_$ac_useropt" 1173"*) ;; 1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1175 ac_unrecognized_sep=', ';; 1176 esac 1177 eval with_$ac_useropt=\$ac_optarg ;; 1178 1179 -without-* | --without-*) 1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1181 # Reject names that are not valid shell variable names. 1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1183 as_fn_error $? "invalid package name: \`$ac_useropt'" 1184 ac_useropt_orig=$ac_useropt 1185 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1186 case $ac_user_opts in 1187 *" 1188"with_$ac_useropt" 1189"*) ;; 1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1191 ac_unrecognized_sep=', ';; 1192 esac 1193 eval with_$ac_useropt=no ;; 1194 1195 --x) 1196 # Obsolete; use --with-x. 1197 with_x=yes ;; 1198 1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1200 | --x-incl | --x-inc | --x-in | --x-i) 1201 ac_prev=x_includes ;; 1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1204 x_includes=$ac_optarg ;; 1205 1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1208 ac_prev=x_libraries ;; 1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1211 x_libraries=$ac_optarg ;; 1212 1213 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1214Try \`$0 --help' for more information" 1215 ;; 1216 1217 *=*) 1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1219 # Reject names that are not valid shell variable names. 1220 case $ac_envvar in #( 1221 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1222 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1223 esac 1224 eval $ac_envvar=\$ac_optarg 1225 export $ac_envvar ;; 1226 1227 *) 1228 # FIXME: should be removed in autoconf 3.0. 1229 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1231 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1233 ;; 1234 1235 esac 1236done 1237 1238if test -n "$ac_prev"; then 1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1240 as_fn_error $? "missing argument to $ac_option" 1241fi 1242 1243if test -n "$ac_unrecognized_opts"; then 1244 case $enable_option_checking in 1245 no) ;; 1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1247 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1248 esac 1249fi 1250 1251# Check all directory arguments for consistency. 1252for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1253 datadir sysconfdir sharedstatedir localstatedir includedir \ 1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1255 libdir localedir mandir runstatedir 1256do 1257 eval ac_val=\$$ac_var 1258 # Remove trailing slashes. 1259 case $ac_val in 1260 */ ) 1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1262 eval $ac_var=\$ac_val;; 1263 esac 1264 # Be sure to have absolute directory names. 1265 case $ac_val in 1266 [\\/$]* | ?:[\\/]* ) continue;; 1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1268 esac 1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1270done 1271 1272# There might be people who depend on the old broken behavior: `$host' 1273# used to hold the argument of --host etc. 1274# FIXME: To remove some day. 1275build=$build_alias 1276host=$host_alias 1277target=$target_alias 1278 1279# FIXME: To remove some day. 1280if test "x$host_alias" != x; then 1281 if test "x$build_alias" = x; then 1282 cross_compiling=maybe 1283 elif test "x$build_alias" != "x$host_alias"; then 1284 cross_compiling=yes 1285 fi 1286fi 1287 1288ac_tool_prefix= 1289test -n "$host_alias" && ac_tool_prefix=$host_alias- 1290 1291test "$silent" = yes && exec 6>/dev/null 1292 1293 1294ac_pwd=`pwd` && test -n "$ac_pwd" && 1295ac_ls_di=`ls -di .` && 1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1297 as_fn_error $? "working directory cannot be determined" 1298test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1299 as_fn_error $? "pwd does not report name of working directory" 1300 1301 1302# Find the source files, if location was not specified. 1303if test -z "$srcdir"; then 1304 ac_srcdir_defaulted=yes 1305 # Try the directory containing this script, then the parent directory. 1306 ac_confdir=`$as_dirname -- "$as_myself" || 1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1308 X"$as_myself" : 'X\(//\)[^/]' \| \ 1309 X"$as_myself" : 'X\(//\)$' \| \ 1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1311printf "%s\n" X"$as_myself" | 1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1313 s//\1/ 1314 q 1315 } 1316 /^X\(\/\/\)[^/].*/{ 1317 s//\1/ 1318 q 1319 } 1320 /^X\(\/\/\)$/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\).*/{ 1325 s//\1/ 1326 q 1327 } 1328 s/.*/./; q'` 1329 srcdir=$ac_confdir 1330 if test ! -r "$srcdir/$ac_unique_file"; then 1331 srcdir=.. 1332 fi 1333else 1334 ac_srcdir_defaulted=no 1335fi 1336if test ! -r "$srcdir/$ac_unique_file"; then 1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1339fi 1340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1341ac_abs_confdir=`( 1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1343 pwd)` 1344# When building in place, set srcdir=. 1345if test "$ac_abs_confdir" = "$ac_pwd"; then 1346 srcdir=. 1347fi 1348# Remove unnecessary trailing slashes from srcdir. 1349# Double slashes in file names in object file debugging info 1350# mess up M-x gdb in Emacs. 1351case $srcdir in 1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1353esac 1354for ac_var in $ac_precious_vars; do 1355 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1356 eval ac_env_${ac_var}_value=\$${ac_var} 1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1358 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1359done 1360 1361# 1362# Report the --help message. 1363# 1364if test "$ac_init_help" = "long"; then 1365 # Omit some internal or obsolete options to make the list less imposing. 1366 # This message is too long to be a string in the A/UX 3.1 sh. 1367 cat <<_ACEOF 1368\`configure' configures libedit 3.1 to adapt to many kinds of systems. 1369 1370Usage: $0 [OPTION]... [VAR=VALUE]... 1371 1372To assign environment variables (e.g., CC, CFLAGS...), specify them as 1373VAR=VALUE. See below for descriptions of some of the useful variables. 1374 1375Defaults for the options are specified in brackets. 1376 1377Configuration: 1378 -h, --help display this help and exit 1379 --help=short display options specific to this package 1380 --help=recursive display the short help of all the included packages 1381 -V, --version display version information and exit 1382 -q, --quiet, --silent do not print \`checking ...' messages 1383 --cache-file=FILE cache test results in FILE [disabled] 1384 -C, --config-cache alias for \`--cache-file=config.cache' 1385 -n, --no-create do not create output files 1386 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1387 1388Installation directories: 1389 --prefix=PREFIX install architecture-independent files in PREFIX 1390 @<:@@S|@ac_default_prefix@:>@ 1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1392 @<:@PREFIX@:>@ 1393 1394By default, \`make install' will install all the files in 1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1396an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1397for instance \`--prefix=\$HOME'. 1398 1399For better control, use the options below. 1400 1401Fine tuning of the installation directories: 1402 --bindir=DIR user executables [EPREFIX/bin] 1403 --sbindir=DIR system admin executables [EPREFIX/sbin] 1404 --libexecdir=DIR program executables [EPREFIX/libexec] 1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1408 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1409 --libdir=DIR object code libraries [EPREFIX/lib] 1410 --includedir=DIR C header files [PREFIX/include] 1411 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1414 --infodir=DIR info documentation [DATAROOTDIR/info] 1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1416 --mandir=DIR man documentation [DATAROOTDIR/man] 1417 --docdir=DIR documentation root 1418 @<:@DATAROOTDIR/doc/libedit-20250417@:>@ 1419 --htmldir=DIR html documentation [DOCDIR] 1420 --dvidir=DIR dvi documentation [DOCDIR] 1421 --pdfdir=DIR pdf documentation [DOCDIR] 1422 --psdir=DIR ps documentation [DOCDIR] 1423_ACEOF 1424 1425 cat <<\_ACEOF 1426 1427Program names: 1428 --program-prefix=PREFIX prepend PREFIX to installed program names 1429 --program-suffix=SUFFIX append SUFFIX to installed program names 1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1431 1432System types: 1433 --build=BUILD configure for building on BUILD [guessed] 1434 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1435_ACEOF 1436fi 1437 1438if test -n "$ac_init_help"; then 1439 case $ac_init_help in 1440 short | recursive ) echo "Configuration of libedit 3.1:";; 1441 esac 1442 cat <<\_ACEOF 1443 1444Optional Features: 1445 --disable-option-checking ignore unrecognized --enable/--with options 1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1448 --enable-dependency-tracking 1449 do not reject slow dependency extractors 1450 --disable-dependency-tracking 1451 speeds up one-time build 1452 --enable-silent-rules less verbose build output (undo: "make V=1") 1453 --disable-silent-rules verbose build output (undo: "make V=0") 1454 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@ 1455 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@ 1456 --enable-fast-install@<:@=PKGS@:>@ 1457 optimize for fast installation @<:@default=yes@:>@ 1458 --disable-libtool-lock avoid locking (might break parallel builds) 1459 --enable-widec deprecated, wide-character/UTF-8 is always enabled 1460 --enable-examples build the example programs @<:@default=yes@:>@ 1461 1462Optional Packages: 1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1465 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use 1466 both@:>@ 1467 --with-aix-soname=aix|svr4|both 1468 shared library versioning (aka "SONAME") variant to 1469 provide on AIX, @<:@default=aix@:>@. 1470 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 1471 --with-sysroot@<:@=DIR@:>@ Search for dependent libraries within DIR (or the 1472 compiler's sysroot if not specified). 1473 1474Some influential environment variables: 1475 CC C compiler command 1476 CFLAGS C compiler flags 1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1478 nonstandard directory <lib dir> 1479 LIBS libraries to pass to the linker, e.g. -l<library> 1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1481 you have headers in a nonstandard directory <include dir> 1482 LT_SYS_LIBRARY_PATH 1483 User-defined run-time library search path. 1484 1485Use these variables to override the choices made by `configure' or to help 1486it to find libraries and programs with nonstandard names/locations. 1487 1488Report bugs to the package provider. 1489_ACEOF 1490ac_status=$? 1491fi 1492 1493if test "$ac_init_help" = "recursive"; then 1494 # If there are subdirs, report their specific --help. 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1496 test -d "$ac_dir" || 1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1498 continue 1499 ac_builddir=. 1500 1501case "$ac_dir" in 1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503*) 1504 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1505 # A ".." for each directory in $ac_dir_suffix. 1506 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1507 case $ac_top_builddir_sub in 1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1510 esac ;; 1511esac 1512ac_abs_top_builddir=$ac_pwd 1513ac_abs_builddir=$ac_pwd$ac_dir_suffix 1514# for backward compatibility: 1515ac_top_builddir=$ac_top_build_prefix 1516 1517case $srcdir in 1518 .) # We are building in place. 1519 ac_srcdir=. 1520 ac_top_srcdir=$ac_top_builddir_sub 1521 ac_abs_top_srcdir=$ac_pwd ;; 1522 [\\/]* | ?:[\\/]* ) # Absolute name. 1523 ac_srcdir=$srcdir$ac_dir_suffix; 1524 ac_top_srcdir=$srcdir 1525 ac_abs_top_srcdir=$srcdir ;; 1526 *) # Relative name. 1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1528 ac_top_srcdir=$ac_top_build_prefix$srcdir 1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1530esac 1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1532 1533 cd "$ac_dir" || { ac_status=$?; continue; } 1534 # Check for configure.gnu first; this name is used for a wrapper for 1535 # Metaconfig's "Configure" on case-insensitive file systems. 1536 if test -f "$ac_srcdir/configure.gnu"; then 1537 echo && 1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1539 elif test -f "$ac_srcdir/configure"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure" --help=recursive 1542 else 1543 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1544 fi || ac_status=$? 1545 cd "$ac_pwd" || { ac_status=$?; break; } 1546 done 1547fi 1548 1549test -n "$ac_init_help" && exit $ac_status 1550if $ac_init_version; then 1551 cat <<\_ACEOF 1552libedit configure 3.1 1553generated by GNU Autoconf 2.71 1554 1555Copyright (C) 2021 Free Software Foundation, Inc. 1556This configure script is free software; the Free Software Foundation 1557gives unlimited permission to copy, distribute and modify it. 1558_ACEOF 1559 exit 1560fi 1561 1562## ------------------------ ## 1563## Autoconf initialization. ## 1564## ------------------------ ## 1565 1566@%:@ ac_fn_c_try_compile LINENO 1567@%:@ -------------------------- 1568@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. 1569ac_fn_c_try_compile () 1570{ 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572 rm -f conftest.$ac_objext conftest.beam 1573 if { { ac_try="$ac_compile" 1574case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579printf "%s\n" "$ac_try_echo"; } >&5 1580 (eval "$ac_compile") 2>conftest.err 1581 ac_status=$? 1582 if test -s conftest.err; then 1583 grep -v '^ *+' conftest.err >conftest.er1 1584 cat conftest.er1 >&5 1585 mv -f conftest.er1 conftest.err 1586 fi 1587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1588 test $ac_status = 0; } && { 1589 test -z "$ac_c_werror_flag" || 1590 test ! -s conftest.err 1591 } && test -s conftest.$ac_objext 1592then : 1593 ac_retval=0 1594else $as_nop 1595 printf "%s\n" "$as_me: failed program was:" >&5 1596sed 's/^/| /' conftest.$ac_ext >&5 1597 1598 ac_retval=1 1599fi 1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1601 as_fn_set_status $ac_retval 1602 1603} @%:@ ac_fn_c_try_compile 1604 1605@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1606@%:@ ------------------------------------------------------- 1607@%:@ Tests whether HEADER exists and can be compiled using the include files in 1608@%:@ INCLUDES, setting the cache variable VAR accordingly. 1609ac_fn_c_check_header_compile () 1610{ 1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1613printf %s "checking for $2... " >&6; } 1614if eval test \${$3+y} 1615then : 1616 printf %s "(cached) " >&6 1617else $as_nop 1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1619/* end confdefs.h. */ 1620$4 1621@%:@include <$2> 1622_ACEOF 1623if ac_fn_c_try_compile "$LINENO" 1624then : 1625 eval "$3=yes" 1626else $as_nop 1627 eval "$3=no" 1628fi 1629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1630fi 1631eval ac_res=\$$3 1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1633printf "%s\n" "$ac_res" >&6; } 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 1636} @%:@ ac_fn_c_check_header_compile 1637 1638@%:@ ac_fn_c_try_link LINENO 1639@%:@ ----------------------- 1640@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. 1641ac_fn_c_try_link () 1642{ 1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1644 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1645 if { { ac_try="$ac_link" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651printf "%s\n" "$ac_try_echo"; } >&5 1652 (eval "$ac_link") 2>conftest.err 1653 ac_status=$? 1654 if test -s conftest.err; then 1655 grep -v '^ *+' conftest.err >conftest.er1 1656 cat conftest.er1 >&5 1657 mv -f conftest.er1 conftest.err 1658 fi 1659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1660 test $ac_status = 0; } && { 1661 test -z "$ac_c_werror_flag" || 1662 test ! -s conftest.err 1663 } && test -s conftest$ac_exeext && { 1664 test "$cross_compiling" = yes || 1665 test -x conftest$ac_exeext 1666 } 1667then : 1668 ac_retval=0 1669else $as_nop 1670 printf "%s\n" "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674fi 1675 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1676 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1677 # interfere with the next link command; also delete a directory that is 1678 # left behind by Apple's compiler. We do this before executing the actions. 1679 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} @%:@ ac_fn_c_try_link 1684 1685@%:@ ac_fn_c_check_func LINENO FUNC VAR 1686@%:@ ---------------------------------- 1687@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly 1688ac_fn_c_check_func () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1692printf %s "checking for $2... " >&6; } 1693if eval test \${$3+y} 1694then : 1695 printf %s "(cached) " >&6 1696else $as_nop 1697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1698/* end confdefs.h. */ 1699/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1700 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1701#define $2 innocuous_$2 1702 1703/* System header to define __stub macros and hopefully few prototypes, 1704 which can conflict with char $2 (); below. */ 1705 1706#include <limits.h> 1707#undef $2 1708 1709/* Override any GCC internal prototype to avoid an error. 1710 Use char because int might match the return type of a GCC 1711 builtin and then its argument prototype would still apply. */ 1712#ifdef __cplusplus 1713extern "C" 1714#endif 1715char $2 (); 1716/* The GNU C library defines this for functions which it implements 1717 to always fail with ENOSYS. Some functions are actually named 1718 something starting with __ and the normal name is an alias. */ 1719#if defined __stub_$2 || defined __stub___$2 1720choke me 1721#endif 1722 1723int 1724main (void) 1725{ 1726return $2 (); 1727 ; 1728 return 0; 1729} 1730_ACEOF 1731if ac_fn_c_try_link "$LINENO" 1732then : 1733 eval "$3=yes" 1734else $as_nop 1735 eval "$3=no" 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1738 conftest$ac_exeext conftest.$ac_ext 1739fi 1740eval ac_res=\$$3 1741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1742printf "%s\n" "$ac_res" >&6; } 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 1745} @%:@ ac_fn_c_check_func 1746 1747@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1748@%:@ ---------------------------------------------------- 1749@%:@ Tries to find if the field MEMBER exists in type AGGR, after including 1750@%:@ INCLUDES, setting cache variable VAR accordingly. 1751ac_fn_c_check_member () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1755printf %s "checking for $2.$3... " >&6; } 1756if eval test \${$4+y} 1757then : 1758 printf %s "(cached) " >&6 1759else $as_nop 1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1761/* end confdefs.h. */ 1762$5 1763int 1764main (void) 1765{ 1766static $2 ac_aggr; 1767if (ac_aggr.$3) 1768return 0; 1769 ; 1770 return 0; 1771} 1772_ACEOF 1773if ac_fn_c_try_compile "$LINENO" 1774then : 1775 eval "$4=yes" 1776else $as_nop 1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778/* end confdefs.h. */ 1779$5 1780int 1781main (void) 1782{ 1783static $2 ac_aggr; 1784if (sizeof ac_aggr.$3) 1785return 0; 1786 ; 1787 return 0; 1788} 1789_ACEOF 1790if ac_fn_c_try_compile "$LINENO" 1791then : 1792 eval "$4=yes" 1793else $as_nop 1794 eval "$4=no" 1795fi 1796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1797fi 1798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1799fi 1800eval ac_res=\$$4 1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1802printf "%s\n" "$ac_res" >&6; } 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 1805} @%:@ ac_fn_c_check_member 1806 1807@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1808@%:@ ------------------------------------------- 1809@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache 1810@%:@ variable VAR accordingly. 1811ac_fn_c_check_type () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815printf %s "checking for $2... " >&6; } 1816if eval test \${$3+y} 1817then : 1818 printf %s "(cached) " >&6 1819else $as_nop 1820 eval "$3=no" 1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1822/* end confdefs.h. */ 1823$4 1824int 1825main (void) 1826{ 1827if (sizeof ($2)) 1828 return 0; 1829 ; 1830 return 0; 1831} 1832_ACEOF 1833if ac_fn_c_try_compile "$LINENO" 1834then : 1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837$4 1838int 1839main (void) 1840{ 1841if (sizeof (($2))) 1842 return 0; 1843 ; 1844 return 0; 1845} 1846_ACEOF 1847if ac_fn_c_try_compile "$LINENO" 1848then : 1849 1850else $as_nop 1851 eval "$3=yes" 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1854fi 1855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1856fi 1857eval ac_res=\$$3 1858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859printf "%s\n" "$ac_res" >&6; } 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} @%:@ ac_fn_c_check_type 1863 1864@%:@ ac_fn_c_try_run LINENO 1865@%:@ ---------------------- 1866@%:@ Try to run conftest.@S|@ac_ext, and return whether this succeeded. Assumes that 1867@%:@ executables *can* be run. 1868ac_fn_c_try_run () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 if { { ac_try="$ac_link" 1872case "(($ac_try" in 1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1874 *) ac_try_echo=$ac_try;; 1875esac 1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1877printf "%s\n" "$ac_try_echo"; } >&5 1878 (eval "$ac_link") 2>&5 1879 ac_status=$? 1880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1881 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1882 { { case "(($ac_try" in 1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1884 *) ac_try_echo=$ac_try;; 1885esac 1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1887printf "%s\n" "$ac_try_echo"; } >&5 1888 (eval "$ac_try") 2>&5 1889 ac_status=$? 1890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1891 test $ac_status = 0; }; } 1892then : 1893 ac_retval=0 1894else $as_nop 1895 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1896 printf "%s\n" "$as_me: failed program was:" >&5 1897sed 's/^/| /' conftest.$ac_ext >&5 1898 1899 ac_retval=$ac_status 1900fi 1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905} @%:@ ac_fn_c_try_run 1906ac_configure_args_raw= 1907for ac_arg 1908do 1909 case $ac_arg in 1910 *\'*) 1911 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1912 esac 1913 as_fn_append ac_configure_args_raw " '$ac_arg'" 1914done 1915 1916case $ac_configure_args_raw in 1917 *$as_nl*) 1918 ac_safe_unquote= ;; 1919 *) 1920 ac_unsafe_z='|&;<>()$`\\"*?@<:@ '' ' # This string ends in space, tab. 1921 ac_unsafe_a="$ac_unsafe_z#~" 1922 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1923 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1924esac 1925 1926cat >config.log <<_ACEOF 1927This file contains any messages produced by compilers while 1928running configure, to aid debugging if configure makes a mistake. 1929 1930It was created by libedit $as_me 3.1, which was 1931generated by GNU Autoconf 2.71. Invocation command line was 1932 1933 $ $0$ac_configure_args_raw 1934 1935_ACEOF 1936exec 5>>config.log 1937{ 1938cat <<_ASUNAME 1939## --------- ## 1940## Platform. ## 1941## --------- ## 1942 1943hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1944uname -m = `(uname -m) 2>/dev/null || echo unknown` 1945uname -r = `(uname -r) 2>/dev/null || echo unknown` 1946uname -s = `(uname -s) 2>/dev/null || echo unknown` 1947uname -v = `(uname -v) 2>/dev/null || echo unknown` 1948 1949/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1950/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1951 1952/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1953/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1954/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1955/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1956/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1957/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1958/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1959 1960_ASUNAME 1961 1962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1963for as_dir in $PATH 1964do 1965 IFS=$as_save_IFS 1966 case $as_dir in #((( 1967 '') as_dir=./ ;; 1968 */) ;; 1969 *) as_dir=$as_dir/ ;; 1970 esac 1971 printf "%s\n" "PATH: $as_dir" 1972 done 1973IFS=$as_save_IFS 1974 1975} >&5 1976 1977cat >&5 <<_ACEOF 1978 1979 1980## ----------- ## 1981## Core tests. ## 1982## ----------- ## 1983 1984_ACEOF 1985 1986 1987# Keep a trace of the command line. 1988# Strip out --no-create and --no-recursion so they do not pile up. 1989# Strip out --silent because we don't want to record it for future runs. 1990# Also quote any args containing shell meta-characters. 1991# Make two passes to allow for proper duplicate-argument suppression. 1992ac_configure_args= 1993ac_configure_args0= 1994ac_configure_args1= 1995ac_must_keep_next=false 1996for ac_pass in 1 2 1997do 1998 for ac_arg 1999 do 2000 case $ac_arg in 2001 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2003 | -silent | --silent | --silen | --sile | --sil) 2004 continue ;; 2005 *\'*) 2006 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2007 esac 2008 case $ac_pass in 2009 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2010 2) 2011 as_fn_append ac_configure_args1 " '$ac_arg'" 2012 if test $ac_must_keep_next = true; then 2013 ac_must_keep_next=false # Got value, back to normal. 2014 else 2015 case $ac_arg in 2016 *=* | --config-cache | -C | -disable-* | --disable-* \ 2017 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2018 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2019 | -with-* | --with-* | -without-* | --without-* | --x) 2020 case "$ac_configure_args0 " in 2021 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2022 esac 2023 ;; 2024 -* ) ac_must_keep_next=true ;; 2025 esac 2026 fi 2027 as_fn_append ac_configure_args " '$ac_arg'" 2028 ;; 2029 esac 2030 done 2031done 2032{ ac_configure_args0=; unset ac_configure_args0;} 2033{ ac_configure_args1=; unset ac_configure_args1;} 2034 2035# When interrupted or exit'd, cleanup temporary files, and complete 2036# config.log. We remove comments because anyway the quotes in there 2037# would cause problems or look ugly. 2038# WARNING: Use '\'' to represent an apostrophe within the trap. 2039# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2040trap 'exit_status=$? 2041 # Sanitize IFS. 2042 IFS=" "" $as_nl" 2043 # Save into config.log some information that might help in debugging. 2044 { 2045 echo 2046 2047 printf "%s\n" "## ---------------- ## 2048## Cache variables. ## 2049## ---------------- ##" 2050 echo 2051 # The following way of writing the cache mishandles newlines in values, 2052( 2053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2054 eval ac_val=\$$ac_var 2055 case $ac_val in #( 2056 *${as_nl}*) 2057 case $ac_var in #( 2058 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2059printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2060 esac 2061 case $ac_var in #( 2062 _ | IFS | as_nl) ;; #( 2063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2064 *) { eval $ac_var=; unset $ac_var;} ;; 2065 esac ;; 2066 esac 2067 done 2068 (set) 2>&1 | 2069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2070 *${as_nl}ac_space=\ *) 2071 sed -n \ 2072 "s/'\''/'\''\\\\'\'''\''/g; 2073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2074 ;; #( 2075 *) 2076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2077 ;; 2078 esac | 2079 sort 2080) 2081 echo 2082 2083 printf "%s\n" "## ----------------- ## 2084## Output variables. ## 2085## ----------------- ##" 2086 echo 2087 for ac_var in $ac_subst_vars 2088 do 2089 eval ac_val=\$$ac_var 2090 case $ac_val in 2091 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2092 esac 2093 printf "%s\n" "$ac_var='\''$ac_val'\''" 2094 done | sort 2095 echo 2096 2097 if test -n "$ac_subst_files"; then 2098 printf "%s\n" "## ------------------- ## 2099## File substitutions. ## 2100## ------------------- ##" 2101 echo 2102 for ac_var in $ac_subst_files 2103 do 2104 eval ac_val=\$$ac_var 2105 case $ac_val in 2106 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2107 esac 2108 printf "%s\n" "$ac_var='\''$ac_val'\''" 2109 done | sort 2110 echo 2111 fi 2112 2113 if test -s confdefs.h; then 2114 printf "%s\n" "## ----------- ## 2115## confdefs.h. ## 2116## ----------- ##" 2117 echo 2118 cat confdefs.h 2119 echo 2120 fi 2121 test "$ac_signal" != 0 && 2122 printf "%s\n" "$as_me: caught signal $ac_signal" 2123 printf "%s\n" "$as_me: exit $exit_status" 2124 } >&5 2125 rm -f core *.core core.conftest.* && 2126 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2127 exit $exit_status 2128' 0 2129for ac_signal in 1 2 13 15; do 2130 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2131done 2132ac_signal=0 2133 2134# confdefs.h avoids OS command line length limits that DEFS can exceed. 2135rm -f -r conftest* confdefs.h 2136 2137printf "%s\n" "/* confdefs.h */" > confdefs.h 2138 2139# Predefined preprocessor variables. 2140 2141printf "%s\n" "@%:@define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2142 2143printf "%s\n" "@%:@define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2144 2145printf "%s\n" "@%:@define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2146 2147printf "%s\n" "@%:@define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2148 2149printf "%s\n" "@%:@define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2150 2151printf "%s\n" "@%:@define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2152 2153 2154# Let the site file select an alternate cache file if it wants to. 2155# Prefer an explicitly selected file to automatically selected ones. 2156if test -n "$CONFIG_SITE"; then 2157 ac_site_files="$CONFIG_SITE" 2158elif test "x$prefix" != xNONE; then 2159 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2160else 2161 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2162fi 2163 2164for ac_site_file in $ac_site_files 2165do 2166 case $ac_site_file in @%:@( 2167 */*) : 2168 ;; @%:@( 2169 *) : 2170 ac_site_file=./$ac_site_file ;; 2171esac 2172 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2174printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2175 sed 's/^/| /' "$ac_site_file" >&5 2176 . "$ac_site_file" \ 2177 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2178printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2179as_fn_error $? "failed to load site script $ac_site_file 2180See \`config.log' for more details" "$LINENO" 5; } 2181 fi 2182done 2183 2184if test -r "$cache_file"; then 2185 # Some versions of bash will fail to source /dev/null (special files 2186 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2187 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2189printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2190 case $cache_file in 2191 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2192 *) . "./$cache_file";; 2193 esac 2194 fi 2195else 2196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2197printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2198 >$cache_file 2199fi 2200 2201as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2202# Test code for whether the C compiler supports C89 (global declarations) 2203ac_c_conftest_c89_globals=' 2204/* Does the compiler advertise C89 conformance? 2205 Do not test the value of __STDC__, because some compilers set it to 0 2206 while being otherwise adequately conformant. */ 2207#if !defined __STDC__ 2208# error "Compiler does not advertise C89 conformance" 2209#endif 2210 2211#include <stddef.h> 2212#include <stdarg.h> 2213struct stat; 2214/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2215struct buf { int x; }; 2216struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2217static char *e (p, i) 2218 char **p; 2219 int i; 2220{ 2221 return p[i]; 2222} 2223static char *f (char * (*g) (char **, int), char **p, ...) 2224{ 2225 char *s; 2226 va_list v; 2227 va_start (v,p); 2228 s = g (p, va_arg (v,int)); 2229 va_end (v); 2230 return s; 2231} 2232 2233/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2234 function prototypes and stuff, but not \xHH hex character constants. 2235 These do not provoke an error unfortunately, instead are silently treated 2236 as an "x". The following induces an error, until -std is added to get 2237 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2238 array size at least. It is necessary to write \x00 == 0 to get something 2239 that is true only with -std. */ 2240int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2241 2242/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2243 inside strings and character constants. */ 2244#define FOO(x) '\''x'\'' 2245int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2246 2247int test (int i, double x); 2248struct s1 {int (*f) (int a);}; 2249struct s2 {int (*f) (double a);}; 2250int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2251 int, int);' 2252 2253# Test code for whether the C compiler supports C89 (body of main). 2254ac_c_conftest_c89_main=' 2255ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2256' 2257 2258# Test code for whether the C compiler supports C99 (global declarations) 2259ac_c_conftest_c99_globals=' 2260// Does the compiler advertise C99 conformance? 2261#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2262# error "Compiler does not advertise C99 conformance" 2263#endif 2264 2265#include <stdbool.h> 2266extern int puts (const char *); 2267extern int printf (const char *, ...); 2268extern int dprintf (int, const char *, ...); 2269extern void *malloc (size_t); 2270 2271// Check varargs macros. These examples are taken from C99 6.10.3.5. 2272// dprintf is used instead of fprintf to avoid needing to declare 2273// FILE and stderr. 2274#define debug(...) dprintf (2, __VA_ARGS__) 2275#define showlist(...) puts (#__VA_ARGS__) 2276#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2277static void 2278test_varargs_macros (void) 2279{ 2280 int x = 1234; 2281 int y = 5678; 2282 debug ("Flag"); 2283 debug ("X = %d\n", x); 2284 showlist (The first, second, and third items.); 2285 report (x>y, "x is %d but y is %d", x, y); 2286} 2287 2288// Check long long types. 2289#define BIG64 18446744073709551615ull 2290#define BIG32 4294967295ul 2291#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2292#if !BIG_OK 2293 #error "your preprocessor is broken" 2294#endif 2295#if BIG_OK 2296#else 2297 #error "your preprocessor is broken" 2298#endif 2299static long long int bignum = -9223372036854775807LL; 2300static unsigned long long int ubignum = BIG64; 2301 2302struct incomplete_array 2303{ 2304 int datasize; 2305 double data[]; 2306}; 2307 2308struct named_init { 2309 int number; 2310 const wchar_t *name; 2311 double average; 2312}; 2313 2314typedef const char *ccp; 2315 2316static inline int 2317test_restrict (ccp restrict text) 2318{ 2319 // See if C++-style comments work. 2320 // Iterate through items via the restricted pointer. 2321 // Also check for declarations in for loops. 2322 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2323 continue; 2324 return 0; 2325} 2326 2327// Check varargs and va_copy. 2328static bool 2329test_varargs (const char *format, ...) 2330{ 2331 va_list args; 2332 va_start (args, format); 2333 va_list args_copy; 2334 va_copy (args_copy, args); 2335 2336 const char *str = ""; 2337 int number = 0; 2338 float fnumber = 0; 2339 2340 while (*format) 2341 { 2342 switch (*format++) 2343 { 2344 case '\''s'\'': // string 2345 str = va_arg (args_copy, const char *); 2346 break; 2347 case '\''d'\'': // int 2348 number = va_arg (args_copy, int); 2349 break; 2350 case '\''f'\'': // float 2351 fnumber = va_arg (args_copy, double); 2352 break; 2353 default: 2354 break; 2355 } 2356 } 2357 va_end (args_copy); 2358 va_end (args); 2359 2360 return *str && number && fnumber; 2361} 2362' 2363 2364# Test code for whether the C compiler supports C99 (body of main). 2365ac_c_conftest_c99_main=' 2366 // Check bool. 2367 _Bool success = false; 2368 success |= (argc != 0); 2369 2370 // Check restrict. 2371 if (test_restrict ("String literal") == 0) 2372 success = true; 2373 char *restrict newvar = "Another string"; 2374 2375 // Check varargs. 2376 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2377 test_varargs_macros (); 2378 2379 // Check flexible array members. 2380 struct incomplete_array *ia = 2381 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2382 ia->datasize = 10; 2383 for (int i = 0; i < ia->datasize; ++i) 2384 ia->data[i] = i * 1.234; 2385 2386 // Check named initializers. 2387 struct named_init ni = { 2388 .number = 34, 2389 .name = L"Test wide string", 2390 .average = 543.34343, 2391 }; 2392 2393 ni.number = 58; 2394 2395 int dynamic_array[ni.number]; 2396 dynamic_array[0] = argv[0][0]; 2397 dynamic_array[ni.number - 1] = 543; 2398 2399 // work around unused variable warnings 2400 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2401 || dynamic_array[ni.number - 1] != 543); 2402' 2403 2404# Test code for whether the C compiler supports C11 (global declarations) 2405ac_c_conftest_c11_globals=' 2406// Does the compiler advertise C11 conformance? 2407#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2408# error "Compiler does not advertise C11 conformance" 2409#endif 2410 2411// Check _Alignas. 2412char _Alignas (double) aligned_as_double; 2413char _Alignas (0) no_special_alignment; 2414extern char aligned_as_int; 2415char _Alignas (0) _Alignas (int) aligned_as_int; 2416 2417// Check _Alignof. 2418enum 2419{ 2420 int_alignment = _Alignof (int), 2421 int_array_alignment = _Alignof (int[100]), 2422 char_alignment = _Alignof (char) 2423}; 2424_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2425 2426// Check _Noreturn. 2427int _Noreturn does_not_return (void) { for (;;) continue; } 2428 2429// Check _Static_assert. 2430struct test_static_assert 2431{ 2432 int x; 2433 _Static_assert (sizeof (int) <= sizeof (long int), 2434 "_Static_assert does not work in struct"); 2435 long int y; 2436}; 2437 2438// Check UTF-8 literals. 2439#define u8 syntax error! 2440char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2441 2442// Check duplicate typedefs. 2443typedef long *long_ptr; 2444typedef long int *long_ptr; 2445typedef long_ptr long_ptr; 2446 2447// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2448struct anonymous 2449{ 2450 union { 2451 struct { int i; int j; }; 2452 struct { int k; long int l; } w; 2453 }; 2454 int m; 2455} v1; 2456' 2457 2458# Test code for whether the C compiler supports C11 (body of main). 2459ac_c_conftest_c11_main=' 2460 _Static_assert ((offsetof (struct anonymous, i) 2461 == offsetof (struct anonymous, w.k)), 2462 "Anonymous union alignment botch"); 2463 v1.i = 2; 2464 v1.w.k = 5; 2465 ok |= v1.i != 5; 2466' 2467 2468# Test code for whether the C compiler supports C11 (complete). 2469ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2470${ac_c_conftest_c99_globals} 2471${ac_c_conftest_c11_globals} 2472 2473int 2474main (int argc, char **argv) 2475{ 2476 int ok = 0; 2477 ${ac_c_conftest_c89_main} 2478 ${ac_c_conftest_c99_main} 2479 ${ac_c_conftest_c11_main} 2480 return ok; 2481} 2482" 2483 2484# Test code for whether the C compiler supports C99 (complete). 2485ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2486${ac_c_conftest_c99_globals} 2487 2488int 2489main (int argc, char **argv) 2490{ 2491 int ok = 0; 2492 ${ac_c_conftest_c89_main} 2493 ${ac_c_conftest_c99_main} 2494 return ok; 2495} 2496" 2497 2498# Test code for whether the C compiler supports C89 (complete). 2499ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2500 2501int 2502main (int argc, char **argv) 2503{ 2504 int ok = 0; 2505 ${ac_c_conftest_c89_main} 2506 return ok; 2507} 2508" 2509 2510as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2511as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2512as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2513as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2514as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2515as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2516as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2517as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2518as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2519as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2520as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2521as_fn_append ac_func_c_list " fork HAVE_FORK" 2522as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2523 2524# Auxiliary files required by this configure script. 2525ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile" 2526 2527# Locations in which to look for auxiliary files. 2528ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2529 2530# Search for a directory containing all of the required auxiliary files, 2531# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2532# If we don't find one directory that contains all the files we need, 2533# we report the set of missing files from the *first* directory in 2534# $ac_aux_dir_candidates and give up. 2535ac_missing_aux_files="" 2536ac_first_candidate=: 2537printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539as_found=false 2540for as_dir in $ac_aux_dir_candidates 2541do 2542 IFS=$as_save_IFS 2543 case $as_dir in #((( 2544 '') as_dir=./ ;; 2545 */) ;; 2546 *) as_dir=$as_dir/ ;; 2547 esac 2548 as_found=: 2549 2550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2551 ac_aux_dir_found=yes 2552 ac_install_sh= 2553 for ac_aux in $ac_aux_files 2554 do 2555 # As a special case, if "install-sh" is required, that requirement 2556 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2557 # and $ac_install_sh is set appropriately for whichever one is found. 2558 if test x"$ac_aux" = x"install-sh" 2559 then 2560 if test -f "${as_dir}install-sh"; then 2561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2562 ac_install_sh="${as_dir}install-sh -c" 2563 elif test -f "${as_dir}install.sh"; then 2564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2565 ac_install_sh="${as_dir}install.sh -c" 2566 elif test -f "${as_dir}shtool"; then 2567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2568 ac_install_sh="${as_dir}shtool install -c" 2569 else 2570 ac_aux_dir_found=no 2571 if $ac_first_candidate; then 2572 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2573 else 2574 break 2575 fi 2576 fi 2577 else 2578 if test -f "${as_dir}${ac_aux}"; then 2579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2580 else 2581 ac_aux_dir_found=no 2582 if $ac_first_candidate; then 2583 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2584 else 2585 break 2586 fi 2587 fi 2588 fi 2589 done 2590 if test "$ac_aux_dir_found" = yes; then 2591 ac_aux_dir="$as_dir" 2592 break 2593 fi 2594 ac_first_candidate=false 2595 2596 as_found=false 2597done 2598IFS=$as_save_IFS 2599if $as_found 2600then : 2601 2602else $as_nop 2603 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2604fi 2605 2606 2607# These three variables are undocumented and unsupported, 2608# and are intended to be withdrawn in a future Autoconf release. 2609# They can cause serious problems if a builder's source tree is in a directory 2610# whose full name contains unusual characters. 2611if test -f "${ac_aux_dir}config.guess"; then 2612 ac_@&t@config_guess="$SHELL ${ac_aux_dir}config.guess" 2613fi 2614if test -f "${ac_aux_dir}config.sub"; then 2615 ac_@&t@config_sub="$SHELL ${ac_aux_dir}config.sub" 2616fi 2617if test -f "$ac_aux_dir/configure"; then 2618 ac_@&t@configure="$SHELL ${ac_aux_dir}configure" 2619fi 2620 2621# Check that the precious variables saved in the cache have kept the same 2622# value. 2623ac_cache_corrupted=false 2624for ac_var in $ac_precious_vars; do 2625 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2626 eval ac_new_set=\$ac_env_${ac_var}_set 2627 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2628 eval ac_new_val=\$ac_env_${ac_var}_value 2629 case $ac_old_set,$ac_new_set in 2630 set,) 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2632printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2633 ac_cache_corrupted=: ;; 2634 ,set) 2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2636printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2637 ac_cache_corrupted=: ;; 2638 ,);; 2639 *) 2640 if test "x$ac_old_val" != "x$ac_new_val"; then 2641 # differences in whitespace do not lead to failure. 2642 ac_old_val_w=`echo x $ac_old_val` 2643 ac_new_val_w=`echo x $ac_new_val` 2644 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2646printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2647 ac_cache_corrupted=: 2648 else 2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2650printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2651 eval $ac_var=\$ac_old_val 2652 fi 2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2654printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2656printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2657 fi;; 2658 esac 2659 # Pass precious variables to config.status. 2660 if test "$ac_new_set" = set; then 2661 case $ac_new_val in 2662 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2663 *) ac_arg=$ac_var=$ac_new_val ;; 2664 esac 2665 case " $ac_configure_args " in 2666 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2667 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2668 esac 2669 fi 2670done 2671if $ac_cache_corrupted; then 2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2673printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2675printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2676 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2677 and start over" "$LINENO" 5 2678fi 2679## -------------------- ## 2680## Main body of script. ## 2681## -------------------- ## 2682 2683ac_ext=c 2684ac_cpp='$CPP $CPPFLAGS' 2685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2687ac_compiler_gnu=$ac_cv_c_compiler_gnu 2688 2689 2690 2691 2692ac_config_headers="$ac_config_headers config.h" 2693 2694 2695# features of Posix that are extensions to C (define _GNU_SOURCE) 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707# Expand $ac_aux_dir to an absolute path. 2708am_aux_dir=`cd "$ac_aux_dir" && pwd` 2709 2710ac_ext=c 2711ac_cpp='$CPP $CPPFLAGS' 2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2714ac_compiler_gnu=$ac_cv_c_compiler_gnu 2715if test -n "$ac_tool_prefix"; then 2716 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2717set dummy ${ac_tool_prefix}gcc; ac_word=$2 2718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719printf %s "checking for $ac_word... " >&6; } 2720if test ${ac_cv_prog_CC+y} 2721then : 2722 printf %s "(cached) " >&6 2723else $as_nop 2724 if test -n "$CC"; then 2725 ac_cv_prog_CC="$CC" # Let the user override the test. 2726else 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 case $as_dir in #((( 2732 '') as_dir=./ ;; 2733 */) ;; 2734 *) as_dir=$as_dir/ ;; 2735 esac 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743 done 2744IFS=$as_save_IFS 2745 2746fi 2747fi 2748CC=$ac_cv_prog_CC 2749if test -n "$CC"; then 2750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2751printf "%s\n" "$CC" >&6; } 2752else 2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754printf "%s\n" "no" >&6; } 2755fi 2756 2757 2758fi 2759if test -z "$ac_cv_prog_CC"; then 2760 ac_ct_CC=$CC 2761 # Extract the first word of "gcc", so it can be a program name with args. 2762set dummy gcc; ac_word=$2 2763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764printf %s "checking for $ac_word... " >&6; } 2765if test ${ac_cv_prog_ac_ct_CC+y} 2766then : 2767 printf %s "(cached) " >&6 2768else $as_nop 2769 if test -n "$ac_ct_CC"; then 2770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2771else 2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773for as_dir in $PATH 2774do 2775 IFS=$as_save_IFS 2776 case $as_dir in #((( 2777 '') as_dir=./ ;; 2778 */) ;; 2779 *) as_dir=$as_dir/ ;; 2780 esac 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2783 ac_cv_prog_ac_ct_CC="gcc" 2784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791fi 2792fi 2793ac_ct_CC=$ac_cv_prog_ac_ct_CC 2794if test -n "$ac_ct_CC"; then 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2796printf "%s\n" "$ac_ct_CC" >&6; } 2797else 2798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2799printf "%s\n" "no" >&6; } 2800fi 2801 2802 if test "x$ac_ct_CC" = x; then 2803 CC="" 2804 else 2805 case $cross_compiling:$ac_tool_warned in 2806yes:) 2807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2808printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2809ac_tool_warned=yes ;; 2810esac 2811 CC=$ac_ct_CC 2812 fi 2813else 2814 CC="$ac_cv_prog_CC" 2815fi 2816 2817if test -z "$CC"; then 2818 if test -n "$ac_tool_prefix"; then 2819 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2820set dummy ${ac_tool_prefix}cc; ac_word=$2 2821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2822printf %s "checking for $ac_word... " >&6; } 2823if test ${ac_cv_prog_CC+y} 2824then : 2825 printf %s "(cached) " >&6 2826else $as_nop 2827 if test -n "$CC"; then 2828 ac_cv_prog_CC="$CC" # Let the user override the test. 2829else 2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2831for as_dir in $PATH 2832do 2833 IFS=$as_save_IFS 2834 case $as_dir in #((( 2835 '') as_dir=./ ;; 2836 */) ;; 2837 *) as_dir=$as_dir/ ;; 2838 esac 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2841 ac_cv_prog_CC="${ac_tool_prefix}cc" 2842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846 done 2847IFS=$as_save_IFS 2848 2849fi 2850fi 2851CC=$ac_cv_prog_CC 2852if test -n "$CC"; then 2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2854printf "%s\n" "$CC" >&6; } 2855else 2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857printf "%s\n" "no" >&6; } 2858fi 2859 2860 2861 fi 2862fi 2863if test -z "$CC"; then 2864 # Extract the first word of "cc", so it can be a program name with args. 2865set dummy cc; ac_word=$2 2866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867printf %s "checking for $ac_word... " >&6; } 2868if test ${ac_cv_prog_CC+y} 2869then : 2870 printf %s "(cached) " >&6 2871else $as_nop 2872 if test -n "$CC"; then 2873 ac_cv_prog_CC="$CC" # Let the user override the test. 2874else 2875 ac_prog_rejected=no 2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2877for as_dir in $PATH 2878do 2879 IFS=$as_save_IFS 2880 case $as_dir in #((( 2881 '') as_dir=./ ;; 2882 */) ;; 2883 *) as_dir=$as_dir/ ;; 2884 esac 2885 for ac_exec_ext in '' $ac_executable_extensions; do 2886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2887 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2888 ac_prog_rejected=yes 2889 continue 2890 fi 2891 ac_cv_prog_CC="cc" 2892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896 done 2897IFS=$as_save_IFS 2898 2899if test $ac_prog_rejected = yes; then 2900 # We found a bogon in the path, so make sure we never use it. 2901 set dummy $ac_cv_prog_CC 2902 shift 2903 if test $@%:@ != 0; then 2904 # We chose a different compiler from the bogus one. 2905 # However, it has the same basename, so the bogon will be chosen 2906 # first if we set CC to just the basename; use the full file name. 2907 shift 2908 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2909 fi 2910fi 2911fi 2912fi 2913CC=$ac_cv_prog_CC 2914if test -n "$CC"; then 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2916printf "%s\n" "$CC" >&6; } 2917else 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919printf "%s\n" "no" >&6; } 2920fi 2921 2922 2923fi 2924if test -z "$CC"; then 2925 if test -n "$ac_tool_prefix"; then 2926 for ac_prog in cl.exe 2927 do 2928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2929set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931printf %s "checking for $ac_word... " >&6; } 2932if test ${ac_cv_prog_CC+y} 2933then : 2934 printf %s "(cached) " >&6 2935else $as_nop 2936 if test -n "$CC"; then 2937 ac_cv_prog_CC="$CC" # Let the user override the test. 2938else 2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2940for as_dir in $PATH 2941do 2942 IFS=$as_save_IFS 2943 case $as_dir in #((( 2944 '') as_dir=./ ;; 2945 */) ;; 2946 *) as_dir=$as_dir/ ;; 2947 esac 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2950 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2952 break 2 2953 fi 2954done 2955 done 2956IFS=$as_save_IFS 2957 2958fi 2959fi 2960CC=$ac_cv_prog_CC 2961if test -n "$CC"; then 2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2963printf "%s\n" "$CC" >&6; } 2964else 2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2966printf "%s\n" "no" >&6; } 2967fi 2968 2969 2970 test -n "$CC" && break 2971 done 2972fi 2973if test -z "$CC"; then 2974 ac_ct_CC=$CC 2975 for ac_prog in cl.exe 2976do 2977 # Extract the first word of "$ac_prog", so it can be a program name with args. 2978set dummy $ac_prog; ac_word=$2 2979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2980printf %s "checking for $ac_word... " >&6; } 2981if test ${ac_cv_prog_ac_ct_CC+y} 2982then : 2983 printf %s "(cached) " >&6 2984else $as_nop 2985 if test -n "$ac_ct_CC"; then 2986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2987else 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 case $as_dir in #((( 2993 '') as_dir=./ ;; 2994 */) ;; 2995 *) as_dir=$as_dir/ ;; 2996 esac 2997 for ac_exec_ext in '' $ac_executable_extensions; do 2998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2999 ac_cv_prog_ac_ct_CC="$ac_prog" 3000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3001 break 2 3002 fi 3003done 3004 done 3005IFS=$as_save_IFS 3006 3007fi 3008fi 3009ac_ct_CC=$ac_cv_prog_ac_ct_CC 3010if test -n "$ac_ct_CC"; then 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3012printf "%s\n" "$ac_ct_CC" >&6; } 3013else 3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015printf "%s\n" "no" >&6; } 3016fi 3017 3018 3019 test -n "$ac_ct_CC" && break 3020done 3021 3022 if test "x$ac_ct_CC" = x; then 3023 CC="" 3024 else 3025 case $cross_compiling:$ac_tool_warned in 3026yes:) 3027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3028printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3029ac_tool_warned=yes ;; 3030esac 3031 CC=$ac_ct_CC 3032 fi 3033fi 3034 3035fi 3036if test -z "$CC"; then 3037 if test -n "$ac_tool_prefix"; then 3038 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3039set dummy ${ac_tool_prefix}clang; ac_word=$2 3040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3041printf %s "checking for $ac_word... " >&6; } 3042if test ${ac_cv_prog_CC+y} 3043then : 3044 printf %s "(cached) " >&6 3045else $as_nop 3046 if test -n "$CC"; then 3047 ac_cv_prog_CC="$CC" # Let the user override the test. 3048else 3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050for as_dir in $PATH 3051do 3052 IFS=$as_save_IFS 3053 case $as_dir in #((( 3054 '') as_dir=./ ;; 3055 */) ;; 3056 *) as_dir=$as_dir/ ;; 3057 esac 3058 for ac_exec_ext in '' $ac_executable_extensions; do 3059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3060 ac_cv_prog_CC="${ac_tool_prefix}clang" 3061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3062 break 2 3063 fi 3064done 3065 done 3066IFS=$as_save_IFS 3067 3068fi 3069fi 3070CC=$ac_cv_prog_CC 3071if test -n "$CC"; then 3072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3073printf "%s\n" "$CC" >&6; } 3074else 3075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076printf "%s\n" "no" >&6; } 3077fi 3078 3079 3080fi 3081if test -z "$ac_cv_prog_CC"; then 3082 ac_ct_CC=$CC 3083 # Extract the first word of "clang", so it can be a program name with args. 3084set dummy clang; ac_word=$2 3085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3086printf %s "checking for $ac_word... " >&6; } 3087if test ${ac_cv_prog_ac_ct_CC+y} 3088then : 3089 printf %s "(cached) " >&6 3090else $as_nop 3091 if test -n "$ac_ct_CC"; then 3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3093else 3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3095for as_dir in $PATH 3096do 3097 IFS=$as_save_IFS 3098 case $as_dir in #((( 3099 '') as_dir=./ ;; 3100 */) ;; 3101 *) as_dir=$as_dir/ ;; 3102 esac 3103 for ac_exec_ext in '' $ac_executable_extensions; do 3104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3105 ac_cv_prog_ac_ct_CC="clang" 3106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3107 break 2 3108 fi 3109done 3110 done 3111IFS=$as_save_IFS 3112 3113fi 3114fi 3115ac_ct_CC=$ac_cv_prog_ac_ct_CC 3116if test -n "$ac_ct_CC"; then 3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3118printf "%s\n" "$ac_ct_CC" >&6; } 3119else 3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3121printf "%s\n" "no" >&6; } 3122fi 3123 3124 if test "x$ac_ct_CC" = x; then 3125 CC="" 3126 else 3127 case $cross_compiling:$ac_tool_warned in 3128yes:) 3129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3130printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3131ac_tool_warned=yes ;; 3132esac 3133 CC=$ac_ct_CC 3134 fi 3135else 3136 CC="$ac_cv_prog_CC" 3137fi 3138 3139fi 3140 3141 3142test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3143printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3144as_fn_error $? "no acceptable C compiler found in \$PATH 3145See \`config.log' for more details" "$LINENO" 5; } 3146 3147# Provide some information about the compiler. 3148printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3149set X $ac_compile 3150ac_compiler=$2 3151for ac_option in --version -v -V -qversion -version; do 3152 { { ac_try="$ac_compiler $ac_option >&5" 3153case "(($ac_try" in 3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3155 *) ac_try_echo=$ac_try;; 3156esac 3157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3158printf "%s\n" "$ac_try_echo"; } >&5 3159 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3160 ac_status=$? 3161 if test -s conftest.err; then 3162 sed '10a\ 3163... rest of stderr output deleted ... 3164 10q' conftest.err >conftest.er1 3165 cat conftest.er1 >&5 3166 fi 3167 rm -f conftest.er1 conftest.err 3168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3169 test $ac_status = 0; } 3170done 3171 3172cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3173/* end confdefs.h. */ 3174 3175int 3176main (void) 3177{ 3178 3179 ; 3180 return 0; 3181} 3182_ACEOF 3183ac_clean_files_save=$ac_clean_files 3184ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3185# Try to create an executable without -o first, disregard a.out. 3186# It will help us diagnose broken compilers, and finding out an intuition 3187# of exeext. 3188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3189printf %s "checking whether the C compiler works... " >&6; } 3190ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3191 3192# The possible output files: 3193ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3194 3195ac_rmfiles= 3196for ac_file in $ac_files 3197do 3198 case $ac_file in 3199 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3200 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3201 esac 3202done 3203rm -f $ac_rmfiles 3204 3205if { { ac_try="$ac_link_default" 3206case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3211printf "%s\n" "$ac_try_echo"; } >&5 3212 (eval "$ac_link_default") 2>&5 3213 ac_status=$? 3214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3215 test $ac_status = 0; } 3216then : 3217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3218# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3219# in a Makefile. We should not override ac_cv_exeext if it was cached, 3220# so that the user can short-circuit this test for compilers unknown to 3221# Autoconf. 3222for ac_file in $ac_files '' 3223do 3224 test -f "$ac_file" || continue 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3227 ;; 3228 [ab].out ) 3229 # We found the default executable, but exeext='' is most 3230 # certainly right. 3231 break;; 3232 *.* ) 3233 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3234 then :; else 3235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3236 fi 3237 # We set ac_cv_exeext here because the later test for it is not 3238 # safe: cross compilers may not add the suffix if given an `-o' 3239 # argument, so we may need to know it at that point already. 3240 # Even if this section looks crufty: it has the advantage of 3241 # actually working. 3242 break;; 3243 * ) 3244 break;; 3245 esac 3246done 3247test "$ac_cv_exeext" = no && ac_cv_exeext= 3248 3249else $as_nop 3250 ac_file='' 3251fi 3252if test -z "$ac_file" 3253then : 3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3255printf "%s\n" "no" >&6; } 3256printf "%s\n" "$as_me: failed program was:" >&5 3257sed 's/^/| /' conftest.$ac_ext >&5 3258 3259{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3260printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3261as_fn_error 77 "C compiler cannot create executables 3262See \`config.log' for more details" "$LINENO" 5; } 3263else $as_nop 3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3265printf "%s\n" "yes" >&6; } 3266fi 3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3268printf %s "checking for C compiler default output file name... " >&6; } 3269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3270printf "%s\n" "$ac_file" >&6; } 3271ac_exeext=$ac_cv_exeext 3272 3273rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3274ac_clean_files=$ac_clean_files_save 3275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3276printf %s "checking for suffix of executables... " >&6; } 3277if { { ac_try="$ac_link" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3283printf "%s\n" "$ac_try_echo"; } >&5 3284 (eval "$ac_link") 2>&5 3285 ac_status=$? 3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3287 test $ac_status = 0; } 3288then : 3289 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3290# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3291# work properly (i.e., refer to `conftest.exe'), while it won't with 3292# `rm'. 3293for ac_file in conftest.exe conftest conftest.*; do 3294 test -f "$ac_file" || continue 3295 case $ac_file in 3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3298 break;; 3299 * ) break;; 3300 esac 3301done 3302else $as_nop 3303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3304printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3305as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3306See \`config.log' for more details" "$LINENO" 5; } 3307fi 3308rm -f conftest conftest$ac_cv_exeext 3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3310printf "%s\n" "$ac_cv_exeext" >&6; } 3311 3312rm -f conftest.$ac_ext 3313EXEEXT=$ac_cv_exeext 3314ac_exeext=$EXEEXT 3315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3316/* end confdefs.h. */ 3317@%:@include <stdio.h> 3318int 3319main (void) 3320{ 3321FILE *f = fopen ("conftest.out", "w"); 3322 return ferror (f) || fclose (f) != 0; 3323 3324 ; 3325 return 0; 3326} 3327_ACEOF 3328ac_clean_files="$ac_clean_files conftest.out" 3329# Check that the compiler produces executables we can run. If not, either 3330# the compiler is broken, or we cross compile. 3331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3332printf %s "checking whether we are cross compiling... " >&6; } 3333if test "$cross_compiling" != yes; then 3334 { { ac_try="$ac_link" 3335case "(($ac_try" in 3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337 *) ac_try_echo=$ac_try;; 3338esac 3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3340printf "%s\n" "$ac_try_echo"; } >&5 3341 (eval "$ac_link") 2>&5 3342 ac_status=$? 3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3344 test $ac_status = 0; } 3345 if { ac_try='./conftest$ac_cv_exeext' 3346 { { case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3351printf "%s\n" "$ac_try_echo"; } >&5 3352 (eval "$ac_try") 2>&5 3353 ac_status=$? 3354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3355 test $ac_status = 0; }; }; then 3356 cross_compiling=no 3357 else 3358 if test "$cross_compiling" = maybe; then 3359 cross_compiling=yes 3360 else 3361 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3362printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3363as_fn_error 77 "cannot run C compiled programs. 3364If you meant to cross compile, use \`--host'. 3365See \`config.log' for more details" "$LINENO" 5; } 3366 fi 3367 fi 3368fi 3369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3370printf "%s\n" "$cross_compiling" >&6; } 3371 3372rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3373ac_clean_files=$ac_clean_files_save 3374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3375printf %s "checking for suffix of object files... " >&6; } 3376if test ${ac_cv_objext+y} 3377then : 3378 printf %s "(cached) " >&6 3379else $as_nop 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382 3383int 3384main (void) 3385{ 3386 3387 ; 3388 return 0; 3389} 3390_ACEOF 3391rm -f conftest.o conftest.obj 3392if { { ac_try="$ac_compile" 3393case "(($ac_try" in 3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3395 *) ac_try_echo=$ac_try;; 3396esac 3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3398printf "%s\n" "$ac_try_echo"; } >&5 3399 (eval "$ac_compile") 2>&5 3400 ac_status=$? 3401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3402 test $ac_status = 0; } 3403then : 3404 for ac_file in conftest.o conftest.obj conftest.*; do 3405 test -f "$ac_file" || continue; 3406 case $ac_file in 3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3408 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3409 break;; 3410 esac 3411done 3412else $as_nop 3413 printf "%s\n" "$as_me: failed program was:" >&5 3414sed 's/^/| /' conftest.$ac_ext >&5 3415 3416{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3417printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3418as_fn_error $? "cannot compute suffix of object files: cannot compile 3419See \`config.log' for more details" "$LINENO" 5; } 3420fi 3421rm -f conftest.$ac_cv_objext conftest.$ac_ext 3422fi 3423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3424printf "%s\n" "$ac_cv_objext" >&6; } 3425OBJEXT=$ac_cv_objext 3426ac_objext=$OBJEXT 3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3428printf %s "checking whether the compiler supports GNU C... " >&6; } 3429if test ${ac_cv_c_compiler_gnu+y} 3430then : 3431 printf %s "(cached) " >&6 3432else $as_nop 3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3434/* end confdefs.h. */ 3435 3436int 3437main (void) 3438{ 3439#ifndef __GNUC__ 3440 choke me 3441#endif 3442 3443 ; 3444 return 0; 3445} 3446_ACEOF 3447if ac_fn_c_try_compile "$LINENO" 3448then : 3449 ac_compiler_gnu=yes 3450else $as_nop 3451 ac_compiler_gnu=no 3452fi 3453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3454ac_cv_c_compiler_gnu=$ac_compiler_gnu 3455 3456fi 3457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3458printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3459ac_compiler_gnu=$ac_cv_c_compiler_gnu 3460 3461if test $ac_compiler_gnu = yes; then 3462 GCC=yes 3463else 3464 GCC= 3465fi 3466ac_test_CFLAGS=${CFLAGS+y} 3467ac_save_CFLAGS=$CFLAGS 3468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3469printf %s "checking whether $CC accepts -g... " >&6; } 3470if test ${ac_cv_prog_cc_g+y} 3471then : 3472 printf %s "(cached) " >&6 3473else $as_nop 3474 ac_save_c_werror_flag=$ac_c_werror_flag 3475 ac_c_werror_flag=yes 3476 ac_cv_prog_cc_g=no 3477 CFLAGS="-g" 3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3479/* end confdefs.h. */ 3480 3481int 3482main (void) 3483{ 3484 3485 ; 3486 return 0; 3487} 3488_ACEOF 3489if ac_fn_c_try_compile "$LINENO" 3490then : 3491 ac_cv_prog_cc_g=yes 3492else $as_nop 3493 CFLAGS="" 3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3495/* end confdefs.h. */ 3496 3497int 3498main (void) 3499{ 3500 3501 ; 3502 return 0; 3503} 3504_ACEOF 3505if ac_fn_c_try_compile "$LINENO" 3506then : 3507 3508else $as_nop 3509 ac_c_werror_flag=$ac_save_c_werror_flag 3510 CFLAGS="-g" 3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3512/* end confdefs.h. */ 3513 3514int 3515main (void) 3516{ 3517 3518 ; 3519 return 0; 3520} 3521_ACEOF 3522if ac_fn_c_try_compile "$LINENO" 3523then : 3524 ac_cv_prog_cc_g=yes 3525fi 3526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3527fi 3528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3529fi 3530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3531 ac_c_werror_flag=$ac_save_c_werror_flag 3532fi 3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3534printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3535if test $ac_test_CFLAGS; then 3536 CFLAGS=$ac_save_CFLAGS 3537elif test $ac_cv_prog_cc_g = yes; then 3538 if test "$GCC" = yes; then 3539 CFLAGS="-g -O2" 3540 else 3541 CFLAGS="-g" 3542 fi 3543else 3544 if test "$GCC" = yes; then 3545 CFLAGS="-O2" 3546 else 3547 CFLAGS= 3548 fi 3549fi 3550ac_prog_cc_stdc=no 3551if test x$ac_prog_cc_stdc = xno 3552then : 3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3554printf %s "checking for $CC option to enable C11 features... " >&6; } 3555if test ${ac_cv_prog_cc_c11+y} 3556then : 3557 printf %s "(cached) " >&6 3558else $as_nop 3559 ac_cv_prog_cc_c11=no 3560ac_save_CC=$CC 3561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562/* end confdefs.h. */ 3563$ac_c_conftest_c11_program 3564_ACEOF 3565for ac_arg in '' -std=gnu11 3566do 3567 CC="$ac_save_CC $ac_arg" 3568 if ac_fn_c_try_compile "$LINENO" 3569then : 3570 ac_cv_prog_cc_c11=$ac_arg 3571fi 3572rm -f core conftest.err conftest.$ac_objext conftest.beam 3573 test "x$ac_cv_prog_cc_c11" != "xno" && break 3574done 3575rm -f conftest.$ac_ext 3576CC=$ac_save_CC 3577fi 3578 3579if test "x$ac_cv_prog_cc_c11" = xno 3580then : 3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3582printf "%s\n" "unsupported" >&6; } 3583else $as_nop 3584 if test "x$ac_cv_prog_cc_c11" = x 3585then : 3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3587printf "%s\n" "none needed" >&6; } 3588else $as_nop 3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3590printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3591 CC="$CC $ac_cv_prog_cc_c11" 3592fi 3593 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3594 ac_prog_cc_stdc=c11 3595fi 3596fi 3597if test x$ac_prog_cc_stdc = xno 3598then : 3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3600printf %s "checking for $CC option to enable C99 features... " >&6; } 3601if test ${ac_cv_prog_cc_c99+y} 3602then : 3603 printf %s "(cached) " >&6 3604else $as_nop 3605 ac_cv_prog_cc_c99=no 3606ac_save_CC=$CC 3607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608/* end confdefs.h. */ 3609$ac_c_conftest_c99_program 3610_ACEOF 3611for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3612do 3613 CC="$ac_save_CC $ac_arg" 3614 if ac_fn_c_try_compile "$LINENO" 3615then : 3616 ac_cv_prog_cc_c99=$ac_arg 3617fi 3618rm -f core conftest.err conftest.$ac_objext conftest.beam 3619 test "x$ac_cv_prog_cc_c99" != "xno" && break 3620done 3621rm -f conftest.$ac_ext 3622CC=$ac_save_CC 3623fi 3624 3625if test "x$ac_cv_prog_cc_c99" = xno 3626then : 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3628printf "%s\n" "unsupported" >&6; } 3629else $as_nop 3630 if test "x$ac_cv_prog_cc_c99" = x 3631then : 3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3633printf "%s\n" "none needed" >&6; } 3634else $as_nop 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3636printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3637 CC="$CC $ac_cv_prog_cc_c99" 3638fi 3639 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3640 ac_prog_cc_stdc=c99 3641fi 3642fi 3643if test x$ac_prog_cc_stdc = xno 3644then : 3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3646printf %s "checking for $CC option to enable C89 features... " >&6; } 3647if test ${ac_cv_prog_cc_c89+y} 3648then : 3649 printf %s "(cached) " >&6 3650else $as_nop 3651 ac_cv_prog_cc_c89=no 3652ac_save_CC=$CC 3653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654/* end confdefs.h. */ 3655$ac_c_conftest_c89_program 3656_ACEOF 3657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3658do 3659 CC="$ac_save_CC $ac_arg" 3660 if ac_fn_c_try_compile "$LINENO" 3661then : 3662 ac_cv_prog_cc_c89=$ac_arg 3663fi 3664rm -f core conftest.err conftest.$ac_objext conftest.beam 3665 test "x$ac_cv_prog_cc_c89" != "xno" && break 3666done 3667rm -f conftest.$ac_ext 3668CC=$ac_save_CC 3669fi 3670 3671if test "x$ac_cv_prog_cc_c89" = xno 3672then : 3673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3674printf "%s\n" "unsupported" >&6; } 3675else $as_nop 3676 if test "x$ac_cv_prog_cc_c89" = x 3677then : 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3679printf "%s\n" "none needed" >&6; } 3680else $as_nop 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3682printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3683 CC="$CC $ac_cv_prog_cc_c89" 3684fi 3685 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3686 ac_prog_cc_stdc=c89 3687fi 3688fi 3689 3690ac_ext=c 3691ac_cpp='$CPP $CPPFLAGS' 3692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3694ac_compiler_gnu=$ac_cv_c_compiler_gnu 3695 3696 3697 ac_ext=c 3698ac_cpp='$CPP $CPPFLAGS' 3699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3701ac_compiler_gnu=$ac_cv_c_compiler_gnu 3702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3703printf %s "checking whether $CC understands -c and -o together... " >&6; } 3704if test ${am_cv_prog_cc_c_o+y} 3705then : 3706 printf %s "(cached) " >&6 3707else $as_nop 3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3709/* end confdefs.h. */ 3710 3711int 3712main (void) 3713{ 3714 3715 ; 3716 return 0; 3717} 3718_ACEOF 3719 # Make sure it works both with $CC and with simple cc. 3720 # Following AC_PROG_CC_C_O, we do the test twice because some 3721 # compilers refuse to overwrite an existing .o file with -o, 3722 # though they will create one. 3723 am_cv_prog_cc_c_o=yes 3724 for am_i in 1 2; do 3725 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3726 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3727 ac_status=$? 3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3729 (exit $ac_status); } \ 3730 && test -f conftest2.$ac_objext; then 3731 : OK 3732 else 3733 am_cv_prog_cc_c_o=no 3734 break 3735 fi 3736 done 3737 rm -f core conftest* 3738 unset am_i 3739fi 3740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3741printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3742if test "$am_cv_prog_cc_c_o" != yes; then 3743 # Losing compiler, so override with the script. 3744 # FIXME: It is wrong to rewrite CC. 3745 # But if we don't then we get into trouble of one sort or another. 3746 # A longer-term fix would be to have automake use am__CC in this case, 3747 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3748 CC="$am_aux_dir/compile $CC" 3749fi 3750ac_ext=c 3751ac_cpp='$CPP $CPPFLAGS' 3752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3754ac_compiler_gnu=$ac_cv_c_compiler_gnu 3755 3756 3757 3758ac_header= ac_cache= 3759for ac_item in $ac_header_c_list 3760do 3761 if test $ac_cache; then 3762 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3763 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3764 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3765 fi 3766 ac_header= ac_cache= 3767 elif test $ac_header; then 3768 ac_cache=$ac_item 3769 else 3770 ac_header=$ac_item 3771 fi 3772done 3773 3774 3775 3776 3777 3778 3779 3780 3781if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3782then : 3783 3784printf "%s\n" "@%:@define STDC_HEADERS 1" >>confdefs.h 3785 3786fi 3787 3788 3789 3790 3791 3792 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3794printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3795if test ${ac_cv_safe_to_define___extensions__+y} 3796then : 3797 printf %s "(cached) " >&6 3798else $as_nop 3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3800/* end confdefs.h. */ 3801 3802# define __EXTENSIONS__ 1 3803 $ac_includes_default 3804int 3805main (void) 3806{ 3807 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812if ac_fn_c_try_compile "$LINENO" 3813then : 3814 ac_cv_safe_to_define___extensions__=yes 3815else $as_nop 3816 ac_cv_safe_to_define___extensions__=no 3817fi 3818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3819fi 3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3821printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3822 3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3824printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3825if test ${ac_cv_should_define__xopen_source+y} 3826then : 3827 printf %s "(cached) " >&6 3828else $as_nop 3829 ac_cv_should_define__xopen_source=no 3830 if test $ac_cv_header_wchar_h = yes 3831then : 3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3833/* end confdefs.h. */ 3834 3835 #include <wchar.h> 3836 mbstate_t x; 3837int 3838main (void) 3839{ 3840 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845if ac_fn_c_try_compile "$LINENO" 3846then : 3847 3848else $as_nop 3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3850/* end confdefs.h. */ 3851 3852 #define _XOPEN_SOURCE 500 3853 #include <wchar.h> 3854 mbstate_t x; 3855int 3856main (void) 3857{ 3858 3859 ; 3860 return 0; 3861} 3862_ACEOF 3863if ac_fn_c_try_compile "$LINENO" 3864then : 3865 ac_cv_should_define__xopen_source=yes 3866fi 3867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3868fi 3869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3870fi 3871fi 3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3873printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3874 3875 printf "%s\n" "@%:@define _ALL_SOURCE 1" >>confdefs.h 3876 3877 printf "%s\n" "@%:@define _DARWIN_C_SOURCE 1" >>confdefs.h 3878 3879 printf "%s\n" "@%:@define _GNU_SOURCE 1" >>confdefs.h 3880 3881 printf "%s\n" "@%:@define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3882 3883 printf "%s\n" "@%:@define _NETBSD_SOURCE 1" >>confdefs.h 3884 3885 printf "%s\n" "@%:@define _OPENBSD_SOURCE 1" >>confdefs.h 3886 3887 printf "%s\n" "@%:@define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3888 3889 printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3890 3891 printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3892 3893 printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3894 3895 printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3896 3897 printf "%s\n" "@%:@define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3898 3899 printf "%s\n" "@%:@define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3900 3901 printf "%s\n" "@%:@define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3902 3903 printf "%s\n" "@%:@define _TANDEM_SOURCE 1" >>confdefs.h 3904 3905 if test $ac_cv_header_minix_config_h = yes 3906then : 3907 MINIX=yes 3908 printf "%s\n" "@%:@define _MINIX 1" >>confdefs.h 3909 3910 printf "%s\n" "@%:@define _POSIX_SOURCE 1" >>confdefs.h 3911 3912 printf "%s\n" "@%:@define _POSIX_1_SOURCE 2" >>confdefs.h 3913 3914else $as_nop 3915 MINIX= 3916fi 3917 if test $ac_cv_safe_to_define___extensions__ = yes 3918then : 3919 printf "%s\n" "@%:@define __EXTENSIONS__ 1" >>confdefs.h 3920 3921fi 3922 if test $ac_cv_should_define__xopen_source = yes 3923then : 3924 printf "%s\n" "@%:@define _XOPEN_SOURCE 500" >>confdefs.h 3925 3926fi 3927 3928 3929am__api_version='1.16' 3930 3931 3932 # Find a good install program. We prefer a C program (faster), 3933# so one script is as good as another. But avoid the broken or 3934# incompatible versions: 3935# SysV /etc/install, /usr/sbin/install 3936# SunOS /usr/etc/install 3937# IRIX /sbin/install 3938# AIX /bin/install 3939# AmigaOS /C/install, which installs bootblocks on floppy discs 3940# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3941# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3942# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3943# OS/2's system install, which has a completely different semantic 3944# ./install, which can be erroneously created by make from ./install.sh. 3945# Reject install programs that cannot install multiple files. 3946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3947printf %s "checking for a BSD-compatible install... " >&6; } 3948if test -z "$INSTALL"; then 3949if test ${ac_cv_path_install+y} 3950then : 3951 printf %s "(cached) " >&6 3952else $as_nop 3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3954for as_dir in $PATH 3955do 3956 IFS=$as_save_IFS 3957 case $as_dir in #((( 3958 '') as_dir=./ ;; 3959 */) ;; 3960 *) as_dir=$as_dir/ ;; 3961 esac 3962 # Account for fact that we put trailing slashes in our PATH walk. 3963case $as_dir in @%:@(( 3964 ./ | /[cC]/* | \ 3965 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3966 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3967 /usr/ucb/* ) ;; 3968 *) 3969 # OSF1 and SCO ODT 3.0 have their own names for install. 3970 # Don't use installbsd from OSF since it installs stuff as root 3971 # by default. 3972 for ac_prog in ginstall scoinst install; do 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3975 if test $ac_prog = install && 3976 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3977 # AIX install. It has an incompatible calling convention. 3978 : 3979 elif test $ac_prog = install && 3980 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3981 # program-specific install script used by HP pwplus--don't use. 3982 : 3983 else 3984 rm -rf conftest.one conftest.two conftest.dir 3985 echo one > conftest.one 3986 echo two > conftest.two 3987 mkdir conftest.dir 3988 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3989 test -s conftest.one && test -s conftest.two && 3990 test -s conftest.dir/conftest.one && 3991 test -s conftest.dir/conftest.two 3992 then 3993 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3994 break 3 3995 fi 3996 fi 3997 fi 3998 done 3999 done 4000 ;; 4001esac 4002 4003 done 4004IFS=$as_save_IFS 4005 4006rm -rf conftest.one conftest.two conftest.dir 4007 4008fi 4009 if test ${ac_cv_path_install+y}; then 4010 INSTALL=$ac_cv_path_install 4011 else 4012 # As a last resort, use the slow shell script. Don't cache a 4013 # value for INSTALL within a source directory, because that will 4014 # break other packages using the cache if that directory is 4015 # removed, or if the value is a relative name. 4016 INSTALL=$ac_install_sh 4017 fi 4018fi 4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4020printf "%s\n" "$INSTALL" >&6; } 4021 4022# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4023# It thinks the first close brace ends the variable substitution. 4024test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4025 4026test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4027 4028test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4029 4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4031printf %s "checking whether build environment is sane... " >&6; } 4032# Reject unsafe characters in $srcdir or the absolute working directory 4033# name. Accept space and tab only in the latter. 4034am_lf=' 4035' 4036case `pwd` in 4037 *[\\\"\#\$\&\'\`$am_lf]*) 4038 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4039esac 4040case $srcdir in 4041 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4042 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4043esac 4044 4045# Do 'set' in a subshell so we don't clobber the current shell's 4046# arguments. Must try -L first in case configure is actually a 4047# symlink; some systems play weird games with the mod time of symlinks 4048# (eg FreeBSD returns the mod time of the symlink's containing 4049# directory). 4050if ( 4051 am_has_slept=no 4052 for am_try in 1 2; do 4053 echo "timestamp, slept: $am_has_slept" > conftest.file 4054 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4055 if test "$*" = "X"; then 4056 # -L didn't work. 4057 set X `ls -t "$srcdir/configure" conftest.file` 4058 fi 4059 if test "$*" != "X $srcdir/configure conftest.file" \ 4060 && test "$*" != "X conftest.file $srcdir/configure"; then 4061 4062 # If neither matched, then we have a broken ls. This can happen 4063 # if, for instance, CONFIG_SHELL is bash and it inherits a 4064 # broken ls alias from the environment. This has actually 4065 # happened. Such a system could not be considered "sane". 4066 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4067 alias in your environment" "$LINENO" 5 4068 fi 4069 if test "$2" = conftest.file || test $am_try -eq 2; then 4070 break 4071 fi 4072 # Just in case. 4073 sleep 1 4074 am_has_slept=yes 4075 done 4076 test "$2" = conftest.file 4077 ) 4078then 4079 # Ok. 4080 : 4081else 4082 as_fn_error $? "newly created file is older than distributed files! 4083Check your system clock" "$LINENO" 5 4084fi 4085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4086printf "%s\n" "yes" >&6; } 4087# If we didn't sleep, we still need to ensure time stamps of config.status and 4088# generated files are strictly newer. 4089am_sleep_pid= 4090if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4091 ( sleep 1 ) & 4092 am_sleep_pid=$! 4093fi 4094 4095rm -f conftest.file 4096 4097test "$program_prefix" != NONE && 4098 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4099# Use a double $ so make ignores it. 4100test "$program_suffix" != NONE && 4101 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4102# Double any \ or $. 4103# By default was `s,x,x', remove it if useless. 4104ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4105program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4106 4107 4108 if test x"${MISSING+set}" != xset; then 4109 MISSING="\${SHELL} '$am_aux_dir/missing'" 4110fi 4111# Use eval to expand $SHELL 4112if eval "$MISSING --is-lightweight"; then 4113 am_missing_run="$MISSING " 4114else 4115 am_missing_run= 4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4117printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4118fi 4119 4120if test x"${install_sh+set}" != xset; then 4121 case $am_aux_dir in 4122 *\ * | *\ *) 4123 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4124 *) 4125 install_sh="\${SHELL} $am_aux_dir/install-sh" 4126 esac 4127fi 4128 4129# Installed binaries are usually stripped using 'strip' when the user 4130# run "make install-strip". However 'strip' might not be the right 4131# tool to use in cross-compilation environments, therefore Automake 4132# will honor the 'STRIP' environment variable to overrule this program. 4133if test "$cross_compiling" != no; then 4134 if test -n "$ac_tool_prefix"; then 4135 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4136set dummy ${ac_tool_prefix}strip; ac_word=$2 4137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4138printf %s "checking for $ac_word... " >&6; } 4139if test ${ac_cv_prog_STRIP+y} 4140then : 4141 printf %s "(cached) " >&6 4142else $as_nop 4143 if test -n "$STRIP"; then 4144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4145else 4146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4147for as_dir in $PATH 4148do 4149 IFS=$as_save_IFS 4150 case $as_dir in #((( 4151 '') as_dir=./ ;; 4152 */) ;; 4153 *) as_dir=$as_dir/ ;; 4154 esac 4155 for ac_exec_ext in '' $ac_executable_extensions; do 4156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4157 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4159 break 2 4160 fi 4161done 4162 done 4163IFS=$as_save_IFS 4164 4165fi 4166fi 4167STRIP=$ac_cv_prog_STRIP 4168if test -n "$STRIP"; then 4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4170printf "%s\n" "$STRIP" >&6; } 4171else 4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4173printf "%s\n" "no" >&6; } 4174fi 4175 4176 4177fi 4178if test -z "$ac_cv_prog_STRIP"; then 4179 ac_ct_STRIP=$STRIP 4180 # Extract the first word of "strip", so it can be a program name with args. 4181set dummy strip; ac_word=$2 4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4183printf %s "checking for $ac_word... " >&6; } 4184if test ${ac_cv_prog_ac_ct_STRIP+y} 4185then : 4186 printf %s "(cached) " >&6 4187else $as_nop 4188 if test -n "$ac_ct_STRIP"; then 4189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4190else 4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4192for as_dir in $PATH 4193do 4194 IFS=$as_save_IFS 4195 case $as_dir in #((( 4196 '') as_dir=./ ;; 4197 */) ;; 4198 *) as_dir=$as_dir/ ;; 4199 esac 4200 for ac_exec_ext in '' $ac_executable_extensions; do 4201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4202 ac_cv_prog_ac_ct_STRIP="strip" 4203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4204 break 2 4205 fi 4206done 4207 done 4208IFS=$as_save_IFS 4209 4210fi 4211fi 4212ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4213if test -n "$ac_ct_STRIP"; then 4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4215printf "%s\n" "$ac_ct_STRIP" >&6; } 4216else 4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4218printf "%s\n" "no" >&6; } 4219fi 4220 4221 if test "x$ac_ct_STRIP" = x; then 4222 STRIP=":" 4223 else 4224 case $cross_compiling:$ac_tool_warned in 4225yes:) 4226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4227printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4228ac_tool_warned=yes ;; 4229esac 4230 STRIP=$ac_ct_STRIP 4231 fi 4232else 4233 STRIP="$ac_cv_prog_STRIP" 4234fi 4235 4236fi 4237INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4238 4239 4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4241printf %s "checking for a race-free mkdir -p... " >&6; } 4242if test -z "$MKDIR_P"; then 4243 if test ${ac_cv_path_mkdir+y} 4244then : 4245 printf %s "(cached) " >&6 4246else $as_nop 4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4248for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4249do 4250 IFS=$as_save_IFS 4251 case $as_dir in #((( 4252 '') as_dir=./ ;; 4253 */) ;; 4254 *) as_dir=$as_dir/ ;; 4255 esac 4256 for ac_prog in mkdir gmkdir; do 4257 for ac_exec_ext in '' $ac_executable_extensions; do 4258 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4259 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4260 'mkdir ('*'coreutils) '* | \ 4261 'BusyBox '* | \ 4262 'mkdir (fileutils) '4.1*) 4263 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4264 break 3;; 4265 esac 4266 done 4267 done 4268 done 4269IFS=$as_save_IFS 4270 4271fi 4272 4273 test -d ./--version && rmdir ./--version 4274 if test ${ac_cv_path_mkdir+y}; then 4275 MKDIR_P="$ac_cv_path_mkdir -p" 4276 else 4277 # As a last resort, use the slow shell script. Don't cache a 4278 # value for MKDIR_P within a source directory, because that will 4279 # break other packages using the cache if that directory is 4280 # removed, or if the value is a relative name. 4281 MKDIR_P="$ac_install_sh -d" 4282 fi 4283fi 4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4285printf "%s\n" "$MKDIR_P" >&6; } 4286 4287for ac_prog in gawk mawk nawk awk 4288do 4289 # Extract the first word of "$ac_prog", so it can be a program name with args. 4290set dummy $ac_prog; ac_word=$2 4291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4292printf %s "checking for $ac_word... " >&6; } 4293if test ${ac_cv_prog_AWK+y} 4294then : 4295 printf %s "(cached) " >&6 4296else $as_nop 4297 if test -n "$AWK"; then 4298 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4299else 4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4301for as_dir in $PATH 4302do 4303 IFS=$as_save_IFS 4304 case $as_dir in #((( 4305 '') as_dir=./ ;; 4306 */) ;; 4307 *) as_dir=$as_dir/ ;; 4308 esac 4309 for ac_exec_ext in '' $ac_executable_extensions; do 4310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4311 ac_cv_prog_AWK="$ac_prog" 4312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4313 break 2 4314 fi 4315done 4316 done 4317IFS=$as_save_IFS 4318 4319fi 4320fi 4321AWK=$ac_cv_prog_AWK 4322if test -n "$AWK"; then 4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4324printf "%s\n" "$AWK" >&6; } 4325else 4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4327printf "%s\n" "no" >&6; } 4328fi 4329 4330 4331 test -n "$AWK" && break 4332done 4333 4334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4335printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4336set x ${MAKE-make} 4337ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4338if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4339then : 4340 printf %s "(cached) " >&6 4341else $as_nop 4342 cat >conftest.make <<\_ACEOF 4343SHELL = /bin/sh 4344all: 4345 @echo '@@@%%%=$(MAKE)=@@@%%%' 4346_ACEOF 4347# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4348case `${MAKE-make} -f conftest.make 2>/dev/null` in 4349 *@@@%%%=?*=@@@%%%*) 4350 eval ac_cv_prog_make_${ac_make}_set=yes;; 4351 *) 4352 eval ac_cv_prog_make_${ac_make}_set=no;; 4353esac 4354rm -f conftest.make 4355fi 4356if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4358printf "%s\n" "yes" >&6; } 4359 SET_MAKE= 4360else 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4362printf "%s\n" "no" >&6; } 4363 SET_MAKE="MAKE=${MAKE-make}" 4364fi 4365 4366rm -rf .tst 2>/dev/null 4367mkdir .tst 2>/dev/null 4368if test -d .tst; then 4369 am__leading_dot=. 4370else 4371 am__leading_dot=_ 4372fi 4373rmdir .tst 2>/dev/null 4374 4375DEPDIR="${am__leading_dot}deps" 4376 4377ac_config_commands="$ac_config_commands depfiles" 4378 4379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4380printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4381cat > confinc.mk << 'END' 4382am__doit: 4383 @echo this is the am__doit target >confinc.out 4384.PHONY: am__doit 4385END 4386am__include="#" 4387am__quote= 4388# BSD make does it like this. 4389echo '.include "confinc.mk" # ignored' > confmf.BSD 4390# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4391echo 'include confinc.mk # ignored' > confmf.GNU 4392_am_result=no 4393for s in GNU BSD; do 4394 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4395 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4396 ac_status=$? 4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4398 (exit $ac_status); } 4399 case $?:`cat confinc.out 2>/dev/null` in @%:@( 4400 '0:this is the am__doit target') : 4401 case $s in @%:@( 4402 BSD) : 4403 am__include='.include' am__quote='"' ;; @%:@( 4404 *) : 4405 am__include='include' am__quote='' ;; 4406esac ;; @%:@( 4407 *) : 4408 ;; 4409esac 4410 if test "$am__include" != "#"; then 4411 _am_result="yes ($s style)" 4412 break 4413 fi 4414done 4415rm -f confinc.* confmf.* 4416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4417printf "%s\n" "${_am_result}" >&6; } 4418 4419@%:@ Check whether --enable-dependency-tracking was given. 4420if test ${enable_dependency_tracking+y} 4421then : 4422 enableval=$enable_dependency_tracking; 4423fi 4424 4425if test "x$enable_dependency_tracking" != xno; then 4426 am_depcomp="$ac_aux_dir/depcomp" 4427 AMDEPBACKSLASH='\' 4428 am__nodep='_no' 4429fi 4430 if test "x$enable_dependency_tracking" != xno; then 4431 AMDEP_TRUE= 4432 AMDEP_FALSE='#' 4433else 4434 AMDEP_TRUE='#' 4435 AMDEP_FALSE= 4436fi 4437 4438 4439@%:@ Check whether --enable-silent-rules was given. 4440if test ${enable_silent_rules+y} 4441then : 4442 enableval=$enable_silent_rules; 4443fi 4444 4445case $enable_silent_rules in @%:@ ((( 4446 yes) AM_DEFAULT_VERBOSITY=0;; 4447 no) AM_DEFAULT_VERBOSITY=1;; 4448 *) AM_DEFAULT_VERBOSITY=1;; 4449esac 4450am_make=${MAKE-make} 4451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4452printf %s "checking whether $am_make supports nested variables... " >&6; } 4453if test ${am_cv_make_support_nested_variables+y} 4454then : 4455 printf %s "(cached) " >&6 4456else $as_nop 4457 if printf "%s\n" 'TRUE=$(BAR$(V)) 4458BAR0=false 4459BAR1=true 4460V=1 4461am__doit: 4462 @$(TRUE) 4463.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4464 am_cv_make_support_nested_variables=yes 4465else 4466 am_cv_make_support_nested_variables=no 4467fi 4468fi 4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4470printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4471if test $am_cv_make_support_nested_variables = yes; then 4472 AM_V='$(V)' 4473 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4474else 4475 AM_V=$AM_DEFAULT_VERBOSITY 4476 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4477fi 4478AM_BACKSLASH='\' 4479 4480if test "`cd $srcdir && pwd`" != "`pwd`"; then 4481 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4482 # is not polluted with repeated "-I." 4483 am__isrc=' -I$(srcdir)' 4484 # test to see if srcdir already configured 4485 if test -f $srcdir/config.status; then 4486 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4487 fi 4488fi 4489 4490# test whether we have cygpath 4491if test -z "$CYGPATH_W"; then 4492 if (cygpath --version) >/dev/null 2>/dev/null; then 4493 CYGPATH_W='cygpath -w' 4494 else 4495 CYGPATH_W=echo 4496 fi 4497fi 4498 4499 4500# Define the identity of the package. 4501 PACKAGE='libedit-20250417' 4502 VERSION='3.1' 4503 4504 4505printf "%s\n" "@%:@define PACKAGE \"$PACKAGE\"" >>confdefs.h 4506 4507 4508printf "%s\n" "@%:@define VERSION \"$VERSION\"" >>confdefs.h 4509 4510# Some tools Automake needs. 4511 4512ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4513 4514 4515AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4516 4517 4518AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4519 4520 4521AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4522 4523 4524MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4525 4526# For better backward compatibility. To be removed once Automake 1.9.x 4527# dies out for good. For more background, see: 4528# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4529# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4530mkdir_p='$(MKDIR_P)' 4531 4532# We need awk for the "check" target (and possibly the TAP driver). The 4533# system "awk" is bad on some platforms. 4534# Always define AMTAR for backward compatibility. Yes, it's still used 4535# in the wild :-( We should find a proper way to deprecate it ... 4536AMTAR='$${TAR-tar}' 4537 4538 4539# We'll loop over all known methods to create a tar archive until one works. 4540_am_tools='gnutar pax cpio none' 4541 4542am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4543 4544 4545 4546 4547 4548depcc="$CC" am_compiler_list= 4549 4550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4551printf %s "checking dependency style of $depcc... " >&6; } 4552if test ${am_cv_CC_dependencies_compiler_type+y} 4553then : 4554 printf %s "(cached) " >&6 4555else $as_nop 4556 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4557 # We make a subdir and do the tests there. Otherwise we can end up 4558 # making bogus files that we don't know about and never remove. For 4559 # instance it was reported that on HP-UX the gcc test will end up 4560 # making a dummy file named 'D' -- because '-MD' means "put the output 4561 # in D". 4562 rm -rf conftest.dir 4563 mkdir conftest.dir 4564 # Copy depcomp to subdir because otherwise we won't find it if we're 4565 # using a relative directory. 4566 cp "$am_depcomp" conftest.dir 4567 cd conftest.dir 4568 # We will build objects and dependencies in a subdirectory because 4569 # it helps to detect inapplicable dependency modes. For instance 4570 # both Tru64's cc and ICC support -MD to output dependencies as a 4571 # side effect of compilation, but ICC will put the dependencies in 4572 # the current directory while Tru64 will put them in the object 4573 # directory. 4574 mkdir sub 4575 4576 am_cv_CC_dependencies_compiler_type=none 4577 if test "$am_compiler_list" = ""; then 4578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4579 fi 4580 am__universal=false 4581 case " $depcc " in #( 4582 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4583 esac 4584 4585 for depmode in $am_compiler_list; do 4586 # Setup a source with many dependencies, because some compilers 4587 # like to wrap large dependency lists on column 80 (with \), and 4588 # we should not choose a depcomp mode which is confused by this. 4589 # 4590 # We need to recreate these files for each test, as the compiler may 4591 # overwrite some of them when testing with obscure command lines. 4592 # This happens at least with the AIX C compiler. 4593 : > sub/conftest.c 4594 for i in 1 2 3 4 5 6; do 4595 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4596 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4597 # Solaris 10 /bin/sh. 4598 echo '/* dummy */' > sub/conftst$i.h 4599 done 4600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4601 4602 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4603 # mode. It turns out that the SunPro C++ compiler does not properly 4604 # handle '-M -o', and we need to detect this. Also, some Intel 4605 # versions had trouble with output in subdirs. 4606 am__obj=sub/conftest.${OBJEXT-o} 4607 am__minus_obj="-o $am__obj" 4608 case $depmode in 4609 gcc) 4610 # This depmode causes a compiler race in universal mode. 4611 test "$am__universal" = false || continue 4612 ;; 4613 nosideeffect) 4614 # After this tag, mechanisms are not by side-effect, so they'll 4615 # only be used when explicitly requested. 4616 if test "x$enable_dependency_tracking" = xyes; then 4617 continue 4618 else 4619 break 4620 fi 4621 ;; 4622 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4623 # This compiler won't grok '-c -o', but also, the minuso test has 4624 # not run yet. These depmodes are late enough in the game, and 4625 # so weak that their functioning should not be impacted. 4626 am__obj=conftest.${OBJEXT-o} 4627 am__minus_obj= 4628 ;; 4629 none) break ;; 4630 esac 4631 if depmode=$depmode \ 4632 source=sub/conftest.c object=$am__obj \ 4633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4634 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4635 >/dev/null 2>conftest.err && 4636 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4638 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4640 # icc doesn't choke on unknown options, it will just issue warnings 4641 # or remarks (even with -Werror). So we grep stderr for any message 4642 # that says an option was ignored or not supported. 4643 # When given -MP, icc 7.0 and 7.1 complain thusly: 4644 # icc: Command line warning: ignoring option '-M'; no argument required 4645 # The diagnosis changed in icc 8.0: 4646 # icc: Command line remark: option '-MP' not supported 4647 if (grep 'ignoring option' conftest.err || 4648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4649 am_cv_CC_dependencies_compiler_type=$depmode 4650 break 4651 fi 4652 fi 4653 done 4654 4655 cd .. 4656 rm -rf conftest.dir 4657else 4658 am_cv_CC_dependencies_compiler_type=none 4659fi 4660 4661fi 4662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4663printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4664CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4665 4666 if 4667 test "x$enable_dependency_tracking" != xno \ 4668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4669 am__fastdepCC_TRUE= 4670 am__fastdepCC_FALSE='#' 4671else 4672 am__fastdepCC_TRUE='#' 4673 am__fastdepCC_FALSE= 4674fi 4675 4676 4677# Variables for tags utilities; see am/tags.am 4678if test -z "$CTAGS"; then 4679 CTAGS=ctags 4680fi 4681 4682if test -z "$ETAGS"; then 4683 ETAGS=etags 4684fi 4685 4686if test -z "$CSCOPE"; then 4687 CSCOPE=cscope 4688fi 4689 4690 4691 4692# POSIX will say in a future version that running "rm -f" with no argument 4693# is OK; and we want to be able to make that assumption in our Makefile 4694# recipes. So use an aggressive probe to check that the usage we want is 4695# actually supported "in the wild" to an acceptable degree. 4696# See automake bug#10828. 4697# To make any issue more visible, cause the running configure to be aborted 4698# by default if the 'rm' program in use doesn't match our expectations; the 4699# user can still override this though. 4700if rm -f && rm -fr && rm -rf; then : OK; else 4701 cat >&2 <<'END' 4702Oops! 4703 4704Your 'rm' program seems unable to run without file operands specified 4705on the command line, even when the '-f' option is present. This is contrary 4706to the behaviour of most rm programs out there, and not conforming with 4707the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4708 4709Please tell bug-automake@gnu.org about your system, including the value 4710of your $PATH and any error possibly output before this message. This 4711can help us improve future automake versions. 4712 4713END 4714 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4715 echo 'Configuration will proceed anyway, since you have set the' >&2 4716 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4717 echo >&2 4718 else 4719 cat >&2 <<'END' 4720Aborting the configuration process, to ensure you take notice of the issue. 4721 4722You can download and install GNU coreutils to get an 'rm' implementation 4723that behaves properly: <https://www.gnu.org/software/coreutils/>. 4724 4725If you want to complete the configuration process using your problematic 4726'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4727to "yes", and re-run configure. 4728 4729END 4730 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4731 fi 4732fi 4733 4734case `pwd` in 4735 *\ * | *\ *) 4736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4737printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4738esac 4739 4740 4741 4742macro_version='2.4.6' 4743macro_revision='2.4.6' 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758ltmain=$ac_aux_dir/ltmain.sh 4759 4760 4761 4762 # Make sure we can run config.sub. 4763$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4764 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4765 4766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4767printf %s "checking build system type... " >&6; } 4768if test ${ac_cv_build+y} 4769then : 4770 printf %s "(cached) " >&6 4771else $as_nop 4772 ac_build_alias=$build_alias 4773test "x$ac_build_alias" = x && 4774 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4775test "x$ac_build_alias" = x && 4776 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4777ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4778 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4779 4780fi 4781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4782printf "%s\n" "$ac_cv_build" >&6; } 4783case $ac_cv_build in 4784*-*-*) ;; 4785*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4786esac 4787build=$ac_cv_build 4788ac_save_IFS=$IFS; IFS='-' 4789set x $ac_cv_build 4790shift 4791build_cpu=$1 4792build_vendor=$2 4793shift; shift 4794# Remember, the first character of IFS is used to create $*, 4795# except with old shells: 4796build_os=$* 4797IFS=$ac_save_IFS 4798case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4799 4800 4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4802printf %s "checking host system type... " >&6; } 4803if test ${ac_cv_host+y} 4804then : 4805 printf %s "(cached) " >&6 4806else $as_nop 4807 if test "x$host_alias" = x; then 4808 ac_cv_host=$ac_cv_build 4809else 4810 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4811 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4812fi 4813 4814fi 4815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4816printf "%s\n" "$ac_cv_host" >&6; } 4817case $ac_cv_host in 4818*-*-*) ;; 4819*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4820esac 4821host=$ac_cv_host 4822ac_save_IFS=$IFS; IFS='-' 4823set x $ac_cv_host 4824shift 4825host_cpu=$1 4826host_vendor=$2 4827shift; shift 4828# Remember, the first character of IFS is used to create $*, 4829# except with old shells: 4830host_os=$* 4831IFS=$ac_save_IFS 4832case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4833 4834 4835# Backslashify metacharacters that are still active within 4836# double-quoted strings. 4837sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4838 4839# Same as above, but do not quote variable references. 4840double_quote_subst='s/\(["`\\]\)/\\\1/g' 4841 4842# Sed substitution to delay expansion of an escaped shell variable in a 4843# double_quote_subst'ed string. 4844delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4845 4846# Sed substitution to delay expansion of an escaped single quote. 4847delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4848 4849# Sed substitution to avoid accidental globbing in evaled expressions 4850no_glob_subst='s/\*/\\\*/g' 4851 4852ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4853ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4854ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4855 4856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4857printf %s "checking how to print strings... " >&6; } 4858# Test print first, because it will be a builtin if present. 4859if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4860 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4861 ECHO='print -r --' 4862elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4863 ECHO='printf %s\n' 4864else 4865 # Use this function as a fallback that always works. 4866 func_fallback_echo () 4867 { 4868 eval 'cat <<_LTECHO_EOF 4869$1 4870_LTECHO_EOF' 4871 } 4872 ECHO='func_fallback_echo' 4873fi 4874 4875# func_echo_all arg... 4876# Invoke $ECHO with all args, space-separated. 4877func_echo_all () 4878{ 4879 $ECHO "" 4880} 4881 4882case $ECHO in 4883 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4884printf "%s\n" "printf" >&6; } ;; 4885 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4886printf "%s\n" "print -r" >&6; } ;; 4887 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4888printf "%s\n" "cat" >&6; } ;; 4889esac 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4905printf %s "checking for a sed that does not truncate output... " >&6; } 4906if test ${ac_cv_path_SED+y} 4907then : 4908 printf %s "(cached) " >&6 4909else $as_nop 4910 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4911 for ac_i in 1 2 3 4 5 6 7; do 4912 ac_script="$ac_script$as_nl$ac_script" 4913 done 4914 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4915 { ac_script=; unset ac_script;} 4916 if test -z "$SED"; then 4917 ac_path_SED_found=false 4918 # Loop through the user's path and test for each of PROGNAME-LIST 4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920for as_dir in $PATH 4921do 4922 IFS=$as_save_IFS 4923 case $as_dir in #((( 4924 '') as_dir=./ ;; 4925 */) ;; 4926 *) as_dir=$as_dir/ ;; 4927 esac 4928 for ac_prog in sed gsed 4929 do 4930 for ac_exec_ext in '' $ac_executable_extensions; do 4931 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4932 as_fn_executable_p "$ac_path_SED" || continue 4933# Check for GNU ac_path_SED and select it if it is found. 4934 # Check for GNU $ac_path_SED 4935case `"$ac_path_SED" --version 2>&1` in 4936*GNU*) 4937 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4938*) 4939 ac_count=0 4940 printf %s 0123456789 >"conftest.in" 4941 while : 4942 do 4943 cat "conftest.in" "conftest.in" >"conftest.tmp" 4944 mv "conftest.tmp" "conftest.in" 4945 cp "conftest.in" "conftest.nl" 4946 printf "%s\n" '' >> "conftest.nl" 4947 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4949 as_fn_arith $ac_count + 1 && ac_count=$as_val 4950 if test $ac_count -gt ${ac_path_SED_max-0}; then 4951 # Best one so far, save it but keep looking for a better one 4952 ac_cv_path_SED="$ac_path_SED" 4953 ac_path_SED_max=$ac_count 4954 fi 4955 # 10*(2^10) chars as input seems more than enough 4956 test $ac_count -gt 10 && break 4957 done 4958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4959esac 4960 4961 $ac_path_SED_found && break 3 4962 done 4963 done 4964 done 4965IFS=$as_save_IFS 4966 if test -z "$ac_cv_path_SED"; then 4967 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4968 fi 4969else 4970 ac_cv_path_SED=$SED 4971fi 4972 4973fi 4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4975printf "%s\n" "$ac_cv_path_SED" >&6; } 4976 SED="$ac_cv_path_SED" 4977 rm -f conftest.sed 4978 4979test -z "$SED" && SED=sed 4980Xsed="$SED -e 1s/^X//" 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4993printf %s "checking for grep that handles long lines and -e... " >&6; } 4994if test ${ac_cv_path_GREP+y} 4995then : 4996 printf %s "(cached) " >&6 4997else $as_nop 4998 if test -z "$GREP"; then 4999 ac_path_GREP_found=false 5000 # Loop through the user's path and test for each of PROGNAME-LIST 5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5003do 5004 IFS=$as_save_IFS 5005 case $as_dir in #((( 5006 '') as_dir=./ ;; 5007 */) ;; 5008 *) as_dir=$as_dir/ ;; 5009 esac 5010 for ac_prog in grep ggrep 5011 do 5012 for ac_exec_ext in '' $ac_executable_extensions; do 5013 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5014 as_fn_executable_p "$ac_path_GREP" || continue 5015# Check for GNU ac_path_GREP and select it if it is found. 5016 # Check for GNU $ac_path_GREP 5017case `"$ac_path_GREP" --version 2>&1` in 5018*GNU*) 5019 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5020*) 5021 ac_count=0 5022 printf %s 0123456789 >"conftest.in" 5023 while : 5024 do 5025 cat "conftest.in" "conftest.in" >"conftest.tmp" 5026 mv "conftest.tmp" "conftest.in" 5027 cp "conftest.in" "conftest.nl" 5028 printf "%s\n" 'GREP' >> "conftest.nl" 5029 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5031 as_fn_arith $ac_count + 1 && ac_count=$as_val 5032 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5033 # Best one so far, save it but keep looking for a better one 5034 ac_cv_path_GREP="$ac_path_GREP" 5035 ac_path_GREP_max=$ac_count 5036 fi 5037 # 10*(2^10) chars as input seems more than enough 5038 test $ac_count -gt 10 && break 5039 done 5040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5041esac 5042 5043 $ac_path_GREP_found && break 3 5044 done 5045 done 5046 done 5047IFS=$as_save_IFS 5048 if test -z "$ac_cv_path_GREP"; then 5049 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5050 fi 5051else 5052 ac_cv_path_GREP=$GREP 5053fi 5054 5055fi 5056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5057printf "%s\n" "$ac_cv_path_GREP" >&6; } 5058 GREP="$ac_cv_path_GREP" 5059 5060 5061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5062printf %s "checking for egrep... " >&6; } 5063if test ${ac_cv_path_EGREP+y} 5064then : 5065 printf %s "(cached) " >&6 5066else $as_nop 5067 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5068 then ac_cv_path_EGREP="$GREP -E" 5069 else 5070 if test -z "$EGREP"; then 5071 ac_path_EGREP_found=false 5072 # Loop through the user's path and test for each of PROGNAME-LIST 5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5074for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5075do 5076 IFS=$as_save_IFS 5077 case $as_dir in #((( 5078 '') as_dir=./ ;; 5079 */) ;; 5080 *) as_dir=$as_dir/ ;; 5081 esac 5082 for ac_prog in egrep 5083 do 5084 for ac_exec_ext in '' $ac_executable_extensions; do 5085 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5086 as_fn_executable_p "$ac_path_EGREP" || continue 5087# Check for GNU ac_path_EGREP and select it if it is found. 5088 # Check for GNU $ac_path_EGREP 5089case `"$ac_path_EGREP" --version 2>&1` in 5090*GNU*) 5091 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5092*) 5093 ac_count=0 5094 printf %s 0123456789 >"conftest.in" 5095 while : 5096 do 5097 cat "conftest.in" "conftest.in" >"conftest.tmp" 5098 mv "conftest.tmp" "conftest.in" 5099 cp "conftest.in" "conftest.nl" 5100 printf "%s\n" 'EGREP' >> "conftest.nl" 5101 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5103 as_fn_arith $ac_count + 1 && ac_count=$as_val 5104 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5105 # Best one so far, save it but keep looking for a better one 5106 ac_cv_path_EGREP="$ac_path_EGREP" 5107 ac_path_EGREP_max=$ac_count 5108 fi 5109 # 10*(2^10) chars as input seems more than enough 5110 test $ac_count -gt 10 && break 5111 done 5112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5113esac 5114 5115 $ac_path_EGREP_found && break 3 5116 done 5117 done 5118 done 5119IFS=$as_save_IFS 5120 if test -z "$ac_cv_path_EGREP"; then 5121 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5122 fi 5123else 5124 ac_cv_path_EGREP=$EGREP 5125fi 5126 5127 fi 5128fi 5129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5130printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5131 EGREP="$ac_cv_path_EGREP" 5132 5133 5134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5135printf %s "checking for fgrep... " >&6; } 5136if test ${ac_cv_path_FGREP+y} 5137then : 5138 printf %s "(cached) " >&6 5139else $as_nop 5140 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5141 then ac_cv_path_FGREP="$GREP -F" 5142 else 5143 if test -z "$FGREP"; then 5144 ac_path_FGREP_found=false 5145 # Loop through the user's path and test for each of PROGNAME-LIST 5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5148do 5149 IFS=$as_save_IFS 5150 case $as_dir in #((( 5151 '') as_dir=./ ;; 5152 */) ;; 5153 *) as_dir=$as_dir/ ;; 5154 esac 5155 for ac_prog in fgrep 5156 do 5157 for ac_exec_ext in '' $ac_executable_extensions; do 5158 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5159 as_fn_executable_p "$ac_path_FGREP" || continue 5160# Check for GNU ac_path_FGREP and select it if it is found. 5161 # Check for GNU $ac_path_FGREP 5162case `"$ac_path_FGREP" --version 2>&1` in 5163*GNU*) 5164 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5165*) 5166 ac_count=0 5167 printf %s 0123456789 >"conftest.in" 5168 while : 5169 do 5170 cat "conftest.in" "conftest.in" >"conftest.tmp" 5171 mv "conftest.tmp" "conftest.in" 5172 cp "conftest.in" "conftest.nl" 5173 printf "%s\n" 'FGREP' >> "conftest.nl" 5174 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5176 as_fn_arith $ac_count + 1 && ac_count=$as_val 5177 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5178 # Best one so far, save it but keep looking for a better one 5179 ac_cv_path_FGREP="$ac_path_FGREP" 5180 ac_path_FGREP_max=$ac_count 5181 fi 5182 # 10*(2^10) chars as input seems more than enough 5183 test $ac_count -gt 10 && break 5184 done 5185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5186esac 5187 5188 $ac_path_FGREP_found && break 3 5189 done 5190 done 5191 done 5192IFS=$as_save_IFS 5193 if test -z "$ac_cv_path_FGREP"; then 5194 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5195 fi 5196else 5197 ac_cv_path_FGREP=$FGREP 5198fi 5199 5200 fi 5201fi 5202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5203printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5204 FGREP="$ac_cv_path_FGREP" 5205 5206 5207test -z "$GREP" && GREP=grep 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227@%:@ Check whether --with-gnu-ld was given. 5228if test ${with_gnu_ld+y} 5229then : 5230 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5231else $as_nop 5232 with_gnu_ld=no 5233fi 5234 5235ac_prog=ld 5236if test yes = "$GCC"; then 5237 # Check if gcc -print-prog-name=ld gives a path. 5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5239printf %s "checking for ld used by $CC... " >&6; } 5240 case $host in 5241 *-*-mingw*) 5242 # gcc leaves a trailing carriage return, which upsets mingw 5243 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5244 *) 5245 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5246 esac 5247 case $ac_prog in 5248 # Accept absolute paths. 5249 [\\/]* | ?:[\\/]*) 5250 re_direlt='/[^/][^/]*/\.\./' 5251 # Canonicalize the pathname of ld 5252 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5253 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5254 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5255 done 5256 test -z "$LD" && LD=$ac_prog 5257 ;; 5258 "") 5259 # If it fails, then pretend we aren't using GCC. 5260 ac_prog=ld 5261 ;; 5262 *) 5263 # If it is relative, then search for the first ld in PATH. 5264 with_gnu_ld=unknown 5265 ;; 5266 esac 5267elif test yes = "$with_gnu_ld"; then 5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5269printf %s "checking for GNU ld... " >&6; } 5270else 5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5272printf %s "checking for non-GNU ld... " >&6; } 5273fi 5274if test ${lt_cv_path_LD+y} 5275then : 5276 printf %s "(cached) " >&6 5277else $as_nop 5278 if test -z "$LD"; then 5279 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5280 for ac_dir in $PATH; do 5281 IFS=$lt_save_ifs 5282 test -z "$ac_dir" && ac_dir=. 5283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5284 lt_cv_path_LD=$ac_dir/$ac_prog 5285 # Check to see if the program is GNU ld. I'd rather use --version, 5286 # but apparently some variants of GNU ld only accept -v. 5287 # Break only if it was the GNU/non-GNU ld that we prefer. 5288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5289 *GNU* | *'with BFD'*) 5290 test no != "$with_gnu_ld" && break 5291 ;; 5292 *) 5293 test yes != "$with_gnu_ld" && break 5294 ;; 5295 esac 5296 fi 5297 done 5298 IFS=$lt_save_ifs 5299else 5300 lt_cv_path_LD=$LD # Let the user override the test with a path. 5301fi 5302fi 5303 5304LD=$lt_cv_path_LD 5305if test -n "$LD"; then 5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5307printf "%s\n" "$LD" >&6; } 5308else 5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5310printf "%s\n" "no" >&6; } 5311fi 5312test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5314printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5315if test ${lt_cv_prog_gnu_ld+y} 5316then : 5317 printf %s "(cached) " >&6 5318else $as_nop 5319 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5320case `$LD -v 2>&1 </dev/null` in 5321*GNU* | *'with BFD'*) 5322 lt_cv_prog_gnu_ld=yes 5323 ;; 5324*) 5325 lt_cv_prog_gnu_ld=no 5326 ;; 5327esac 5328fi 5329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5330printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5331with_gnu_ld=$lt_cv_prog_gnu_ld 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5342printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5343if test ${lt_cv_path_NM+y} 5344then : 5345 printf %s "(cached) " >&6 5346else $as_nop 5347 if test -n "$NM"; then 5348 # Let the user override the test. 5349 lt_cv_path_NM=$NM 5350else 5351 lt_nm_to_check=${ac_tool_prefix}nm 5352 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5353 lt_nm_to_check="$lt_nm_to_check nm" 5354 fi 5355 for lt_tmp_nm in $lt_nm_to_check; do 5356 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5357 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5358 IFS=$lt_save_ifs 5359 test -z "$ac_dir" && ac_dir=. 5360 tmp_nm=$ac_dir/$lt_tmp_nm 5361 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5362 # Check to see if the nm accepts a BSD-compat flag. 5363 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5364 # nm: unknown option "B" ignored 5365 # Tru64's nm complains that /dev/null is an invalid object file 5366 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5367 case $build_os in 5368 mingw*) lt_bad_file=conftest.nm/nofile ;; 5369 *) lt_bad_file=/dev/null ;; 5370 esac 5371 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5372 *$lt_bad_file* | *'Invalid file or object type'*) 5373 lt_cv_path_NM="$tmp_nm -B" 5374 break 2 5375 ;; 5376 *) 5377 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5378 */dev/null*) 5379 lt_cv_path_NM="$tmp_nm -p" 5380 break 2 5381 ;; 5382 *) 5383 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5384 continue # so that we can try to find one that supports BSD flags 5385 ;; 5386 esac 5387 ;; 5388 esac 5389 fi 5390 done 5391 IFS=$lt_save_ifs 5392 done 5393 : ${lt_cv_path_NM=no} 5394fi 5395fi 5396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5397printf "%s\n" "$lt_cv_path_NM" >&6; } 5398if test no != "$lt_cv_path_NM"; then 5399 NM=$lt_cv_path_NM 5400else 5401 # Didn't find any BSD compatible name lister, look for dumpbin. 5402 if test -n "$DUMPBIN"; then : 5403 # Let the user override the test. 5404 else 5405 if test -n "$ac_tool_prefix"; then 5406 for ac_prog in dumpbin "link -dump" 5407 do 5408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5409set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5411printf %s "checking for $ac_word... " >&6; } 5412if test ${ac_cv_prog_DUMPBIN+y} 5413then : 5414 printf %s "(cached) " >&6 5415else $as_nop 5416 if test -n "$DUMPBIN"; then 5417 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5418else 5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5420for as_dir in $PATH 5421do 5422 IFS=$as_save_IFS 5423 case $as_dir in #((( 5424 '') as_dir=./ ;; 5425 */) ;; 5426 *) as_dir=$as_dir/ ;; 5427 esac 5428 for ac_exec_ext in '' $ac_executable_extensions; do 5429 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5430 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5432 break 2 5433 fi 5434done 5435 done 5436IFS=$as_save_IFS 5437 5438fi 5439fi 5440DUMPBIN=$ac_cv_prog_DUMPBIN 5441if test -n "$DUMPBIN"; then 5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5443printf "%s\n" "$DUMPBIN" >&6; } 5444else 5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5446printf "%s\n" "no" >&6; } 5447fi 5448 5449 5450 test -n "$DUMPBIN" && break 5451 done 5452fi 5453if test -z "$DUMPBIN"; then 5454 ac_ct_DUMPBIN=$DUMPBIN 5455 for ac_prog in dumpbin "link -dump" 5456do 5457 # Extract the first word of "$ac_prog", so it can be a program name with args. 5458set dummy $ac_prog; ac_word=$2 5459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5460printf %s "checking for $ac_word... " >&6; } 5461if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5462then : 5463 printf %s "(cached) " >&6 5464else $as_nop 5465 if test -n "$ac_ct_DUMPBIN"; then 5466 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5467else 5468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5469for as_dir in $PATH 5470do 5471 IFS=$as_save_IFS 5472 case $as_dir in #((( 5473 '') as_dir=./ ;; 5474 */) ;; 5475 *) as_dir=$as_dir/ ;; 5476 esac 5477 for ac_exec_ext in '' $ac_executable_extensions; do 5478 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5479 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5481 break 2 5482 fi 5483done 5484 done 5485IFS=$as_save_IFS 5486 5487fi 5488fi 5489ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5490if test -n "$ac_ct_DUMPBIN"; then 5491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5492printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5493else 5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5495printf "%s\n" "no" >&6; } 5496fi 5497 5498 5499 test -n "$ac_ct_DUMPBIN" && break 5500done 5501 5502 if test "x$ac_ct_DUMPBIN" = x; then 5503 DUMPBIN=":" 5504 else 5505 case $cross_compiling:$ac_tool_warned in 5506yes:) 5507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5508printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5509ac_tool_warned=yes ;; 5510esac 5511 DUMPBIN=$ac_ct_DUMPBIN 5512 fi 5513fi 5514 5515 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5516 *COFF*) 5517 DUMPBIN="$DUMPBIN -symbols -headers" 5518 ;; 5519 *) 5520 DUMPBIN=: 5521 ;; 5522 esac 5523 fi 5524 5525 if test : != "$DUMPBIN"; then 5526 NM=$DUMPBIN 5527 fi 5528fi 5529test -z "$NM" && NM=nm 5530 5531 5532 5533 5534 5535 5536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5537printf %s "checking the name lister ($NM) interface... " >&6; } 5538if test ${lt_cv_nm_interface+y} 5539then : 5540 printf %s "(cached) " >&6 5541else $as_nop 5542 lt_cv_nm_interface="BSD nm" 5543 echo "int some_variable = 0;" > conftest.$ac_ext 5544 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5545 (eval "$ac_compile" 2>conftest.err) 5546 cat conftest.err >&5 5547 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5548 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5549 cat conftest.err >&5 5550 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5551 cat conftest.out >&5 5552 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5553 lt_cv_nm_interface="MS dumpbin" 5554 fi 5555 rm -f conftest* 5556fi 5557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5558printf "%s\n" "$lt_cv_nm_interface" >&6; } 5559 5560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5561printf %s "checking whether ln -s works... " >&6; } 5562LN_S=$as_ln_s 5563if test "$LN_S" = "ln -s"; then 5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5565printf "%s\n" "yes" >&6; } 5566else 5567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5568printf "%s\n" "no, using $LN_S" >&6; } 5569fi 5570 5571# find the maximum length of command line arguments 5572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5573printf %s "checking the maximum length of command line arguments... " >&6; } 5574if test ${lt_cv_sys_max_cmd_len+y} 5575then : 5576 printf %s "(cached) " >&6 5577else $as_nop 5578 i=0 5579 teststring=ABCD 5580 5581 case $build_os in 5582 msdosdjgpp*) 5583 # On DJGPP, this test can blow up pretty badly due to problems in libc 5584 # (any single argument exceeding 2000 bytes causes a buffer overrun 5585 # during glob expansion). Even if it were fixed, the result of this 5586 # check would be larger than it should be. 5587 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5588 ;; 5589 5590 gnu*) 5591 # Under GNU Hurd, this test is not required because there is 5592 # no limit to the length of command line arguments. 5593 # Libtool will interpret -1 as no limit whatsoever 5594 lt_cv_sys_max_cmd_len=-1; 5595 ;; 5596 5597 cygwin* | mingw* | cegcc*) 5598 # On Win9x/ME, this test blows up -- it succeeds, but takes 5599 # about 5 minutes as the teststring grows exponentially. 5600 # Worse, since 9x/ME are not pre-emptively multitasking, 5601 # you end up with a "frozen" computer, even though with patience 5602 # the test eventually succeeds (with a max line length of 256k). 5603 # Instead, let's just punt: use the minimum linelength reported by 5604 # all of the supported platforms: 8192 (on NT/2K/XP). 5605 lt_cv_sys_max_cmd_len=8192; 5606 ;; 5607 5608 mint*) 5609 # On MiNT this can take a long time and run out of memory. 5610 lt_cv_sys_max_cmd_len=8192; 5611 ;; 5612 5613 amigaos*) 5614 # On AmigaOS with pdksh, this test takes hours, literally. 5615 # So we just punt and use a minimum line length of 8192. 5616 lt_cv_sys_max_cmd_len=8192; 5617 ;; 5618 5619 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5620 # This has been around since 386BSD, at least. Likely further. 5621 if test -x /sbin/sysctl; then 5622 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5623 elif test -x /usr/sbin/sysctl; then 5624 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5625 else 5626 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5627 fi 5628 # And add a safety zone 5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5631 ;; 5632 5633 interix*) 5634 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5635 lt_cv_sys_max_cmd_len=196608 5636 ;; 5637 5638 os2*) 5639 # The test takes a long time on OS/2. 5640 lt_cv_sys_max_cmd_len=8192 5641 ;; 5642 5643 osf*) 5644 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5645 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5646 # nice to cause kernel panics so lets avoid the loop below. 5647 # First set a reasonable default. 5648 lt_cv_sys_max_cmd_len=16384 5649 # 5650 if test -x /sbin/sysconfig; then 5651 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5652 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5653 esac 5654 fi 5655 ;; 5656 sco3.2v5*) 5657 lt_cv_sys_max_cmd_len=102400 5658 ;; 5659 sysv5* | sco5v6* | sysv4.2uw2*) 5660 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5661 if test -n "$kargmax"; then 5662 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5663 else 5664 lt_cv_sys_max_cmd_len=32768 5665 fi 5666 ;; 5667 *) 5668 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5669 if test -n "$lt_cv_sys_max_cmd_len" && \ 5670 test undefined != "$lt_cv_sys_max_cmd_len"; then 5671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5673 else 5674 # Make teststring a little bigger before we do anything with it. 5675 # a 1K string should be a reasonable start. 5676 for i in 1 2 3 4 5 6 7 8; do 5677 teststring=$teststring$teststring 5678 done 5679 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5680 # If test is not a shell built-in, we'll probably end up computing a 5681 # maximum length that is only half of the actual maximum length, but 5682 # we can't tell. 5683 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5684 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5685 test 17 != "$i" # 1/2 MB should be enough 5686 do 5687 i=`expr $i + 1` 5688 teststring=$teststring$teststring 5689 done 5690 # Only check the string length outside the loop. 5691 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5692 teststring= 5693 # Add a significant safety factor because C++ compilers can tack on 5694 # massive amounts of additional arguments before passing them to the 5695 # linker. It appears as though 1/2 is a usable value. 5696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5697 fi 5698 ;; 5699 esac 5700 5701fi 5702 5703if test -n "$lt_cv_sys_max_cmd_len"; then 5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5705printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5706else 5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5708printf "%s\n" "none" >&6; } 5709fi 5710max_cmd_len=$lt_cv_sys_max_cmd_len 5711 5712 5713 5714 5715 5716 5717: ${CP="cp -f"} 5718: ${MV="mv -f"} 5719: ${RM="rm -f"} 5720 5721if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5722 lt_unset=unset 5723else 5724 lt_unset=false 5725fi 5726 5727 5728 5729 5730 5731# test EBCDIC or ASCII 5732case `echo X|tr X '\101'` in 5733 A) # ASCII based system 5734 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5735 lt_SP2NL='tr \040 \012' 5736 lt_NL2SP='tr \015\012 \040\040' 5737 ;; 5738 *) # EBCDIC based system 5739 lt_SP2NL='tr \100 \n' 5740 lt_NL2SP='tr \r\n \100\100' 5741 ;; 5742esac 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5753printf %s "checking how to convert $build file names to $host format... " >&6; } 5754if test ${lt_cv_to_host_file_cmd+y} 5755then : 5756 printf %s "(cached) " >&6 5757else $as_nop 5758 case $host in 5759 *-*-mingw* ) 5760 case $build in 5761 *-*-mingw* ) # actually msys 5762 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5763 ;; 5764 *-*-cygwin* ) 5765 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5766 ;; 5767 * ) # otherwise, assume *nix 5768 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5769 ;; 5770 esac 5771 ;; 5772 *-*-cygwin* ) 5773 case $build in 5774 *-*-mingw* ) # actually msys 5775 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5776 ;; 5777 *-*-cygwin* ) 5778 lt_cv_to_host_file_cmd=func_convert_file_noop 5779 ;; 5780 * ) # otherwise, assume *nix 5781 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5782 ;; 5783 esac 5784 ;; 5785 * ) # unhandled hosts (and "normal" native builds) 5786 lt_cv_to_host_file_cmd=func_convert_file_noop 5787 ;; 5788esac 5789 5790fi 5791 5792to_host_file_cmd=$lt_cv_to_host_file_cmd 5793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5794printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5795 5796 5797 5798 5799 5800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5801printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5802if test ${lt_cv_to_tool_file_cmd+y} 5803then : 5804 printf %s "(cached) " >&6 5805else $as_nop 5806 #assume ordinary cross tools, or native build. 5807lt_cv_to_tool_file_cmd=func_convert_file_noop 5808case $host in 5809 *-*-mingw* ) 5810 case $build in 5811 *-*-mingw* ) # actually msys 5812 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5813 ;; 5814 esac 5815 ;; 5816esac 5817 5818fi 5819 5820to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5822printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5823 5824 5825 5826 5827 5828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5829printf %s "checking for $LD option to reload object files... " >&6; } 5830if test ${lt_cv_ld_reload_flag+y} 5831then : 5832 printf %s "(cached) " >&6 5833else $as_nop 5834 lt_cv_ld_reload_flag='-r' 5835fi 5836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5837printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5838reload_flag=$lt_cv_ld_reload_flag 5839case $reload_flag in 5840"" | " "*) ;; 5841*) reload_flag=" $reload_flag" ;; 5842esac 5843reload_cmds='$LD$reload_flag -o $output$reload_objs' 5844case $host_os in 5845 cygwin* | mingw* | pw32* | cegcc*) 5846 if test yes != "$GCC"; then 5847 reload_cmds=false 5848 fi 5849 ;; 5850 darwin*) 5851 if test yes = "$GCC"; then 5852 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5853 else 5854 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5855 fi 5856 ;; 5857esac 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867if test -n "$ac_tool_prefix"; then 5868 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5869set dummy ${ac_tool_prefix}objdump; ac_word=$2 5870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5871printf %s "checking for $ac_word... " >&6; } 5872if test ${ac_cv_prog_OBJDUMP+y} 5873then : 5874 printf %s "(cached) " >&6 5875else $as_nop 5876 if test -n "$OBJDUMP"; then 5877 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5878else 5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5880for as_dir in $PATH 5881do 5882 IFS=$as_save_IFS 5883 case $as_dir in #((( 5884 '') as_dir=./ ;; 5885 */) ;; 5886 *) as_dir=$as_dir/ ;; 5887 esac 5888 for ac_exec_ext in '' $ac_executable_extensions; do 5889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5890 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5892 break 2 5893 fi 5894done 5895 done 5896IFS=$as_save_IFS 5897 5898fi 5899fi 5900OBJDUMP=$ac_cv_prog_OBJDUMP 5901if test -n "$OBJDUMP"; then 5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5903printf "%s\n" "$OBJDUMP" >&6; } 5904else 5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5906printf "%s\n" "no" >&6; } 5907fi 5908 5909 5910fi 5911if test -z "$ac_cv_prog_OBJDUMP"; then 5912 ac_ct_OBJDUMP=$OBJDUMP 5913 # Extract the first word of "objdump", so it can be a program name with args. 5914set dummy objdump; ac_word=$2 5915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5916printf %s "checking for $ac_word... " >&6; } 5917if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5918then : 5919 printf %s "(cached) " >&6 5920else $as_nop 5921 if test -n "$ac_ct_OBJDUMP"; then 5922 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5923else 5924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5925for as_dir in $PATH 5926do 5927 IFS=$as_save_IFS 5928 case $as_dir in #((( 5929 '') as_dir=./ ;; 5930 */) ;; 5931 *) as_dir=$as_dir/ ;; 5932 esac 5933 for ac_exec_ext in '' $ac_executable_extensions; do 5934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5935 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5937 break 2 5938 fi 5939done 5940 done 5941IFS=$as_save_IFS 5942 5943fi 5944fi 5945ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5946if test -n "$ac_ct_OBJDUMP"; then 5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5948printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5949else 5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5951printf "%s\n" "no" >&6; } 5952fi 5953 5954 if test "x$ac_ct_OBJDUMP" = x; then 5955 OBJDUMP="false" 5956 else 5957 case $cross_compiling:$ac_tool_warned in 5958yes:) 5959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5961ac_tool_warned=yes ;; 5962esac 5963 OBJDUMP=$ac_ct_OBJDUMP 5964 fi 5965else 5966 OBJDUMP="$ac_cv_prog_OBJDUMP" 5967fi 5968 5969test -z "$OBJDUMP" && OBJDUMP=objdump 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5980printf %s "checking how to recognize dependent libraries... " >&6; } 5981if test ${lt_cv_deplibs_check_method+y} 5982then : 5983 printf %s "(cached) " >&6 5984else $as_nop 5985 lt_cv_file_magic_cmd='$MAGIC_CMD' 5986lt_cv_file_magic_test_file= 5987lt_cv_deplibs_check_method='unknown' 5988# Need to set the preceding variable on all platforms that support 5989# interlibrary dependencies. 5990# 'none' -- dependencies not supported. 5991# 'unknown' -- same as none, but documents that we really don't know. 5992# 'pass_all' -- all dependencies passed with no checks. 5993# 'test_compile' -- check by making test program. 5994# 'file_magic [[regex]]' -- check by looking for files in library path 5995# that responds to the $file_magic_cmd with a given extended regex. 5996# If you have 'file' or equivalent on your system and you're not sure 5997# whether 'pass_all' will *always* work, you probably want this one. 5998 5999case $host_os in 6000aix[4-9]*) 6001 lt_cv_deplibs_check_method=pass_all 6002 ;; 6003 6004beos*) 6005 lt_cv_deplibs_check_method=pass_all 6006 ;; 6007 6008bsdi[45]*) 6009 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6010 lt_cv_file_magic_cmd='/usr/bin/file -L' 6011 lt_cv_file_magic_test_file=/shlib/libc.so 6012 ;; 6013 6014cygwin*) 6015 # func_win32_libid is a shell function defined in ltmain.sh 6016 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6017 lt_cv_file_magic_cmd='func_win32_libid' 6018 ;; 6019 6020mingw* | pw32*) 6021 # Base MSYS/MinGW do not provide the 'file' command needed by 6022 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6023 # unless we find 'file', for example because we are cross-compiling. 6024 if ( file / ) >/dev/null 2>&1; then 6025 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6026 lt_cv_file_magic_cmd='func_win32_libid' 6027 else 6028 # Keep this pattern in sync with the one in func_win32_libid. 6029 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6030 lt_cv_file_magic_cmd='$OBJDUMP -f' 6031 fi 6032 ;; 6033 6034cegcc*) 6035 # use the weaker test based on 'objdump'. See mingw*. 6036 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6037 lt_cv_file_magic_cmd='$OBJDUMP -f' 6038 ;; 6039 6040darwin* | rhapsody*) 6041 lt_cv_deplibs_check_method=pass_all 6042 ;; 6043 6044freebsd* | dragonfly*) 6045 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6046 case $host_cpu in 6047 i*86 ) 6048 # Not sure whether the presence of OpenBSD here was a mistake. 6049 # Let's accept both of them until this is cleared up. 6050 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6051 lt_cv_file_magic_cmd=/usr/bin/file 6052 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6053 ;; 6054 esac 6055 else 6056 lt_cv_deplibs_check_method=pass_all 6057 fi 6058 ;; 6059 6060haiku*) 6061 lt_cv_deplibs_check_method=pass_all 6062 ;; 6063 6064hpux10.20* | hpux11*) 6065 lt_cv_file_magic_cmd=/usr/bin/file 6066 case $host_cpu in 6067 ia64*) 6068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6069 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6070 ;; 6071 hppa*64*) 6072 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]' 6073 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6074 ;; 6075 *) 6076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6077 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6078 ;; 6079 esac 6080 ;; 6081 6082interix[3-9]*) 6083 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6085 ;; 6086 6087irix5* | irix6* | nonstopux*) 6088 case $LD in 6089 *-32|*"-32 ") libmagic=32-bit;; 6090 *-n32|*"-n32 ") libmagic=N32;; 6091 *-64|*"-64 ") libmagic=64-bit;; 6092 *) libmagic=never-match;; 6093 esac 6094 lt_cv_deplibs_check_method=pass_all 6095 ;; 6096 6097# This must be glibc/ELF. 6098linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6099 lt_cv_deplibs_check_method=pass_all 6100 ;; 6101 6102netbsd* | netbsdelf*-gnu) 6103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6105 else 6106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6107 fi 6108 ;; 6109 6110newos6*) 6111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6112 lt_cv_file_magic_cmd=/usr/bin/file 6113 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6114 ;; 6115 6116*nto* | *qnx*) 6117 lt_cv_deplibs_check_method=pass_all 6118 ;; 6119 6120openbsd* | bitrig*) 6121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6123 else 6124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6125 fi 6126 ;; 6127 6128osf3* | osf4* | osf5*) 6129 lt_cv_deplibs_check_method=pass_all 6130 ;; 6131 6132rdos*) 6133 lt_cv_deplibs_check_method=pass_all 6134 ;; 6135 6136solaris*) 6137 lt_cv_deplibs_check_method=pass_all 6138 ;; 6139 6140sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6141 lt_cv_deplibs_check_method=pass_all 6142 ;; 6143 6144sysv4 | sysv4.3*) 6145 case $host_vendor in 6146 motorola) 6147 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]' 6148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6149 ;; 6150 ncr) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 sequent) 6154 lt_cv_file_magic_cmd='/bin/file' 6155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6156 ;; 6157 sni) 6158 lt_cv_file_magic_cmd='/bin/file' 6159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6160 lt_cv_file_magic_test_file=/lib/libc.so 6161 ;; 6162 siemens) 6163 lt_cv_deplibs_check_method=pass_all 6164 ;; 6165 pc) 6166 lt_cv_deplibs_check_method=pass_all 6167 ;; 6168 esac 6169 ;; 6170 6171tpf*) 6172 lt_cv_deplibs_check_method=pass_all 6173 ;; 6174os2*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177esac 6178 6179fi 6180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6181printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6182 6183file_magic_glob= 6184want_nocaseglob=no 6185if test "$build" = "$host"; then 6186 case $host_os in 6187 mingw* | pw32*) 6188 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6189 want_nocaseglob=yes 6190 else 6191 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6192 fi 6193 ;; 6194 esac 6195fi 6196 6197file_magic_cmd=$lt_cv_file_magic_cmd 6198deplibs_check_method=$lt_cv_deplibs_check_method 6199test -z "$deplibs_check_method" && deplibs_check_method=unknown 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222if test -n "$ac_tool_prefix"; then 6223 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6224set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6226printf %s "checking for $ac_word... " >&6; } 6227if test ${ac_cv_prog_DLLTOOL+y} 6228then : 6229 printf %s "(cached) " >&6 6230else $as_nop 6231 if test -n "$DLLTOOL"; then 6232 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6233else 6234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6235for as_dir in $PATH 6236do 6237 IFS=$as_save_IFS 6238 case $as_dir in #((( 6239 '') as_dir=./ ;; 6240 */) ;; 6241 *) as_dir=$as_dir/ ;; 6242 esac 6243 for ac_exec_ext in '' $ac_executable_extensions; do 6244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6245 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6247 break 2 6248 fi 6249done 6250 done 6251IFS=$as_save_IFS 6252 6253fi 6254fi 6255DLLTOOL=$ac_cv_prog_DLLTOOL 6256if test -n "$DLLTOOL"; then 6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6258printf "%s\n" "$DLLTOOL" >&6; } 6259else 6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6261printf "%s\n" "no" >&6; } 6262fi 6263 6264 6265fi 6266if test -z "$ac_cv_prog_DLLTOOL"; then 6267 ac_ct_DLLTOOL=$DLLTOOL 6268 # Extract the first word of "dlltool", so it can be a program name with args. 6269set dummy dlltool; ac_word=$2 6270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6271printf %s "checking for $ac_word... " >&6; } 6272if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6273then : 6274 printf %s "(cached) " >&6 6275else $as_nop 6276 if test -n "$ac_ct_DLLTOOL"; then 6277 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6278else 6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6280for as_dir in $PATH 6281do 6282 IFS=$as_save_IFS 6283 case $as_dir in #((( 6284 '') as_dir=./ ;; 6285 */) ;; 6286 *) as_dir=$as_dir/ ;; 6287 esac 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6290 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6292 break 2 6293 fi 6294done 6295 done 6296IFS=$as_save_IFS 6297 6298fi 6299fi 6300ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6301if test -n "$ac_ct_DLLTOOL"; then 6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6303printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6304else 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6306printf "%s\n" "no" >&6; } 6307fi 6308 6309 if test "x$ac_ct_DLLTOOL" = x; then 6310 DLLTOOL="false" 6311 else 6312 case $cross_compiling:$ac_tool_warned in 6313yes:) 6314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6315printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6316ac_tool_warned=yes ;; 6317esac 6318 DLLTOOL=$ac_ct_DLLTOOL 6319 fi 6320else 6321 DLLTOOL="$ac_cv_prog_DLLTOOL" 6322fi 6323 6324test -z "$DLLTOOL" && DLLTOOL=dlltool 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6336printf %s "checking how to associate runtime and link libraries... " >&6; } 6337if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6338then : 6339 printf %s "(cached) " >&6 6340else $as_nop 6341 lt_cv_sharedlib_from_linklib_cmd='unknown' 6342 6343case $host_os in 6344cygwin* | mingw* | pw32* | cegcc*) 6345 # two different shell functions defined in ltmain.sh; 6346 # decide which one to use based on capabilities of $DLLTOOL 6347 case `$DLLTOOL --help 2>&1` in 6348 *--identify-strict*) 6349 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6350 ;; 6351 *) 6352 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6353 ;; 6354 esac 6355 ;; 6356*) 6357 # fallback: assume linklib IS sharedlib 6358 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6359 ;; 6360esac 6361 6362fi 6363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6364printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6365sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6366test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6367 6368 6369 6370 6371 6372 6373 6374if test -n "$ac_tool_prefix"; then 6375 for ac_prog in ar 6376 do 6377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6378set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6380printf %s "checking for $ac_word... " >&6; } 6381if test ${ac_cv_prog_AR+y} 6382then : 6383 printf %s "(cached) " >&6 6384else $as_nop 6385 if test -n "$AR"; then 6386 ac_cv_prog_AR="$AR" # Let the user override the test. 6387else 6388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6389for as_dir in $PATH 6390do 6391 IFS=$as_save_IFS 6392 case $as_dir in #((( 6393 '') as_dir=./ ;; 6394 */) ;; 6395 *) as_dir=$as_dir/ ;; 6396 esac 6397 for ac_exec_ext in '' $ac_executable_extensions; do 6398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6399 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6401 break 2 6402 fi 6403done 6404 done 6405IFS=$as_save_IFS 6406 6407fi 6408fi 6409AR=$ac_cv_prog_AR 6410if test -n "$AR"; then 6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6412printf "%s\n" "$AR" >&6; } 6413else 6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6415printf "%s\n" "no" >&6; } 6416fi 6417 6418 6419 test -n "$AR" && break 6420 done 6421fi 6422if test -z "$AR"; then 6423 ac_ct_AR=$AR 6424 for ac_prog in ar 6425do 6426 # Extract the first word of "$ac_prog", so it can be a program name with args. 6427set dummy $ac_prog; ac_word=$2 6428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6429printf %s "checking for $ac_word... " >&6; } 6430if test ${ac_cv_prog_ac_ct_AR+y} 6431then : 6432 printf %s "(cached) " >&6 6433else $as_nop 6434 if test -n "$ac_ct_AR"; then 6435 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6436else 6437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6438for as_dir in $PATH 6439do 6440 IFS=$as_save_IFS 6441 case $as_dir in #((( 6442 '') as_dir=./ ;; 6443 */) ;; 6444 *) as_dir=$as_dir/ ;; 6445 esac 6446 for ac_exec_ext in '' $ac_executable_extensions; do 6447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6448 ac_cv_prog_ac_ct_AR="$ac_prog" 6449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6450 break 2 6451 fi 6452done 6453 done 6454IFS=$as_save_IFS 6455 6456fi 6457fi 6458ac_ct_AR=$ac_cv_prog_ac_ct_AR 6459if test -n "$ac_ct_AR"; then 6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6461printf "%s\n" "$ac_ct_AR" >&6; } 6462else 6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6464printf "%s\n" "no" >&6; } 6465fi 6466 6467 6468 test -n "$ac_ct_AR" && break 6469done 6470 6471 if test "x$ac_ct_AR" = x; then 6472 AR="false" 6473 else 6474 case $cross_compiling:$ac_tool_warned in 6475yes:) 6476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6477printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6478ac_tool_warned=yes ;; 6479esac 6480 AR=$ac_ct_AR 6481 fi 6482fi 6483 6484: ${AR=ar} 6485: ${AR_FLAGS=cr} 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6498printf %s "checking for archiver @FILE support... " >&6; } 6499if test ${lt_cv_ar_at_file+y} 6500then : 6501 printf %s "(cached) " >&6 6502else $as_nop 6503 lt_cv_ar_at_file=no 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506 6507int 6508main (void) 6509{ 6510 6511 ; 6512 return 0; 6513} 6514_ACEOF 6515if ac_fn_c_try_compile "$LINENO" 6516then : 6517 echo conftest.$ac_objext > conftest.lst 6518 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6520 (eval $lt_ar_try) 2>&5 6521 ac_status=$? 6522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6523 test $ac_status = 0; } 6524 if test 0 -eq "$ac_status"; then 6525 # Ensure the archiver fails upon bogus file names. 6526 rm -f conftest.$ac_objext libconftest.a 6527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6528 (eval $lt_ar_try) 2>&5 6529 ac_status=$? 6530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6531 test $ac_status = 0; } 6532 if test 0 -ne "$ac_status"; then 6533 lt_cv_ar_at_file=@ 6534 fi 6535 fi 6536 rm -f conftest.* libconftest.a 6537 6538fi 6539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6540 6541fi 6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6543printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6544 6545if test no = "$lt_cv_ar_at_file"; then 6546 archiver_list_spec= 6547else 6548 archiver_list_spec=$lt_cv_ar_at_file 6549fi 6550 6551 6552 6553 6554 6555 6556 6557if test -n "$ac_tool_prefix"; then 6558 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6559set dummy ${ac_tool_prefix}strip; ac_word=$2 6560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6561printf %s "checking for $ac_word... " >&6; } 6562if test ${ac_cv_prog_STRIP+y} 6563then : 6564 printf %s "(cached) " >&6 6565else $as_nop 6566 if test -n "$STRIP"; then 6567 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6568else 6569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6570for as_dir in $PATH 6571do 6572 IFS=$as_save_IFS 6573 case $as_dir in #((( 6574 '') as_dir=./ ;; 6575 */) ;; 6576 *) as_dir=$as_dir/ ;; 6577 esac 6578 for ac_exec_ext in '' $ac_executable_extensions; do 6579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6580 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6582 break 2 6583 fi 6584done 6585 done 6586IFS=$as_save_IFS 6587 6588fi 6589fi 6590STRIP=$ac_cv_prog_STRIP 6591if test -n "$STRIP"; then 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6593printf "%s\n" "$STRIP" >&6; } 6594else 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6596printf "%s\n" "no" >&6; } 6597fi 6598 6599 6600fi 6601if test -z "$ac_cv_prog_STRIP"; then 6602 ac_ct_STRIP=$STRIP 6603 # Extract the first word of "strip", so it can be a program name with args. 6604set dummy strip; ac_word=$2 6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6606printf %s "checking for $ac_word... " >&6; } 6607if test ${ac_cv_prog_ac_ct_STRIP+y} 6608then : 6609 printf %s "(cached) " >&6 6610else $as_nop 6611 if test -n "$ac_ct_STRIP"; then 6612 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6613else 6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615for as_dir in $PATH 6616do 6617 IFS=$as_save_IFS 6618 case $as_dir in #((( 6619 '') as_dir=./ ;; 6620 */) ;; 6621 *) as_dir=$as_dir/ ;; 6622 esac 6623 for ac_exec_ext in '' $ac_executable_extensions; do 6624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6625 ac_cv_prog_ac_ct_STRIP="strip" 6626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6627 break 2 6628 fi 6629done 6630 done 6631IFS=$as_save_IFS 6632 6633fi 6634fi 6635ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6636if test -n "$ac_ct_STRIP"; then 6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6638printf "%s\n" "$ac_ct_STRIP" >&6; } 6639else 6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6641printf "%s\n" "no" >&6; } 6642fi 6643 6644 if test "x$ac_ct_STRIP" = x; then 6645 STRIP=":" 6646 else 6647 case $cross_compiling:$ac_tool_warned in 6648yes:) 6649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6650printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6651ac_tool_warned=yes ;; 6652esac 6653 STRIP=$ac_ct_STRIP 6654 fi 6655else 6656 STRIP="$ac_cv_prog_STRIP" 6657fi 6658 6659test -z "$STRIP" && STRIP=: 6660 6661 6662 6663 6664 6665 6666if test -n "$ac_tool_prefix"; then 6667 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6668set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6670printf %s "checking for $ac_word... " >&6; } 6671if test ${ac_cv_prog_RANLIB+y} 6672then : 6673 printf %s "(cached) " >&6 6674else $as_nop 6675 if test -n "$RANLIB"; then 6676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6677else 6678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679for as_dir in $PATH 6680do 6681 IFS=$as_save_IFS 6682 case $as_dir in #((( 6683 '') as_dir=./ ;; 6684 */) ;; 6685 *) as_dir=$as_dir/ ;; 6686 esac 6687 for ac_exec_ext in '' $ac_executable_extensions; do 6688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6689 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6691 break 2 6692 fi 6693done 6694 done 6695IFS=$as_save_IFS 6696 6697fi 6698fi 6699RANLIB=$ac_cv_prog_RANLIB 6700if test -n "$RANLIB"; then 6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6702printf "%s\n" "$RANLIB" >&6; } 6703else 6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6705printf "%s\n" "no" >&6; } 6706fi 6707 6708 6709fi 6710if test -z "$ac_cv_prog_RANLIB"; then 6711 ac_ct_RANLIB=$RANLIB 6712 # Extract the first word of "ranlib", so it can be a program name with args. 6713set dummy ranlib; ac_word=$2 6714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6715printf %s "checking for $ac_word... " >&6; } 6716if test ${ac_cv_prog_ac_ct_RANLIB+y} 6717then : 6718 printf %s "(cached) " >&6 6719else $as_nop 6720 if test -n "$ac_ct_RANLIB"; then 6721 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6722else 6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6724for as_dir in $PATH 6725do 6726 IFS=$as_save_IFS 6727 case $as_dir in #((( 6728 '') as_dir=./ ;; 6729 */) ;; 6730 *) as_dir=$as_dir/ ;; 6731 esac 6732 for ac_exec_ext in '' $ac_executable_extensions; do 6733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6734 ac_cv_prog_ac_ct_RANLIB="ranlib" 6735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6736 break 2 6737 fi 6738done 6739 done 6740IFS=$as_save_IFS 6741 6742fi 6743fi 6744ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6745if test -n "$ac_ct_RANLIB"; then 6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6747printf "%s\n" "$ac_ct_RANLIB" >&6; } 6748else 6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6750printf "%s\n" "no" >&6; } 6751fi 6752 6753 if test "x$ac_ct_RANLIB" = x; then 6754 RANLIB=":" 6755 else 6756 case $cross_compiling:$ac_tool_warned in 6757yes:) 6758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6759printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6760ac_tool_warned=yes ;; 6761esac 6762 RANLIB=$ac_ct_RANLIB 6763 fi 6764else 6765 RANLIB="$ac_cv_prog_RANLIB" 6766fi 6767 6768test -z "$RANLIB" && RANLIB=: 6769 6770 6771 6772 6773 6774 6775# Determine commands to create old-style static archives. 6776old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6777old_postinstall_cmds='chmod 644 $oldlib' 6778old_postuninstall_cmds= 6779 6780if test -n "$RANLIB"; then 6781 case $host_os in 6782 bitrig* | openbsd*) 6783 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6784 ;; 6785 *) 6786 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6787 ;; 6788 esac 6789 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6790fi 6791 6792case $host_os in 6793 darwin*) 6794 lock_old_archive_extraction=yes ;; 6795 *) 6796 lock_old_archive_extraction=no ;; 6797esac 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837# If no C compiler was specified, use CC. 6838LTCC=${LTCC-"$CC"} 6839 6840# If no C compiler flags were specified, use CFLAGS. 6841LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6842 6843# Allow CC to be a program name with arguments. 6844compiler=$CC 6845 6846 6847# Check for command to grab the raw symbol name followed by C symbol from nm. 6848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6849printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6850if test ${lt_cv_sys_global_symbol_pipe+y} 6851then : 6852 printf %s "(cached) " >&6 6853else $as_nop 6854 6855# These are sane defaults that work on at least a few old systems. 6856# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6857 6858# Character class describing NM global symbol codes. 6859symcode='[BCDEGRST]' 6860 6861# Regexp to match symbols that can be accessed directly from C. 6862sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6863 6864# Define system-specific variables. 6865case $host_os in 6866aix*) 6867 symcode='[BCDT]' 6868 ;; 6869cygwin* | mingw* | pw32* | cegcc*) 6870 symcode='[ABCDGISTW]' 6871 ;; 6872hpux*) 6873 if test ia64 = "$host_cpu"; then 6874 symcode='[ABCDEGRST]' 6875 fi 6876 ;; 6877irix* | nonstopux*) 6878 symcode='[BCDEGRST]' 6879 ;; 6880osf*) 6881 symcode='[BCDEGQRST]' 6882 ;; 6883solaris*) 6884 symcode='[BDRT]' 6885 ;; 6886sco3.2v5*) 6887 symcode='[DT]' 6888 ;; 6889sysv4.2uw2*) 6890 symcode='[DT]' 6891 ;; 6892sysv5* | sco5v6* | unixware* | OpenUNIX*) 6893 symcode='[ABDT]' 6894 ;; 6895sysv4) 6896 symcode='[DFNSTU]' 6897 ;; 6898esac 6899 6900# If we're using GNU nm, then use its standard symbol codes. 6901case `$NM -V 2>&1` in 6902*GNU* | *'with BFD'*) 6903 symcode='[ABCDGIRSTW]' ;; 6904esac 6905 6906if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6907 # Gets list of data symbols to import. 6908 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6909 # Adjust the below global symbol transforms to fixup imported variables. 6910 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6911 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6912 lt_c_name_lib_hook="\ 6913 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6914 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6915else 6916 # Disable hooks by default. 6917 lt_cv_sys_global_symbol_to_import= 6918 lt_cdecl_hook= 6919 lt_c_name_hook= 6920 lt_c_name_lib_hook= 6921fi 6922 6923# Transform an extracted symbol line into a proper C declaration. 6924# Some systems (esp. on ia64) link data and code symbols differently, 6925# so use this general approach. 6926lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6927$lt_cdecl_hook\ 6928" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6929" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6930 6931# Transform an extracted symbol line into symbol name and symbol address 6932lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6933$lt_c_name_hook\ 6934" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6935" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6936 6937# Transform an extracted symbol line into symbol name with lib prefix and 6938# symbol address. 6939lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6940$lt_c_name_lib_hook\ 6941" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6942" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6943" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6944 6945# Handle CRLF in mingw tool chain 6946opt_cr= 6947case $build_os in 6948mingw*) 6949 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6950 ;; 6951esac 6952 6953# Try without a prefix underscore, then with it. 6954for ac_symprfx in "" "_"; do 6955 6956 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6957 symxfrm="\\1 $ac_symprfx\\2 \\2" 6958 6959 # Write the raw and C identifiers. 6960 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6961 # Fake it for dumpbin and say T for any non-static function, 6962 # D for any global variable and I for any imported variable. 6963 # Also find C++ and __fastcall symbols from MSVC++, 6964 # which start with @ or ?. 6965 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6966" {last_section=section; section=\$ 3};"\ 6967" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6968" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6969" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6970" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6971" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6972" \$ 0!~/External *\|/{next};"\ 6973" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6974" {if(hide[section]) next};"\ 6975" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6976" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6977" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6978" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6979" ' prfx=^$ac_symprfx" 6980 else 6981 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6982 fi 6983 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6984 6985 # Check to see that the pipe works correctly. 6986 pipe_works=no 6987 6988 rm -f conftest* 6989 cat > conftest.$ac_ext <<_LT_EOF 6990#ifdef __cplusplus 6991extern "C" { 6992#endif 6993char nm_test_var; 6994void nm_test_func(void); 6995void nm_test_func(void){} 6996#ifdef __cplusplus 6997} 6998#endif 6999int main(){nm_test_var='a';nm_test_func();return(0);} 7000_LT_EOF 7001 7002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7003 (eval $ac_compile) 2>&5 7004 ac_status=$? 7005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7006 test $ac_status = 0; }; then 7007 # Now try to grab the symbols. 7008 nlist=conftest.nm 7009 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7010 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7011 # Try sorting and uniquifying the output. 7012 if sort "$nlist" | uniq > "$nlist"T; then 7013 mv -f "$nlist"T "$nlist" 7014 else 7015 rm -f "$nlist"T 7016 fi 7017 7018 # Make sure that we snagged all the symbols we need. 7019 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7020 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7021 cat <<_LT_EOF > conftest.$ac_ext 7022/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7023#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7024/* DATA imports from DLLs on WIN32 can't be const, because runtime 7025 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7026# define LT@&t@_DLSYM_CONST 7027#elif defined __osf__ 7028/* This system does not cope well with relocations in const data. */ 7029# define LT@&t@_DLSYM_CONST 7030#else 7031# define LT@&t@_DLSYM_CONST const 7032#endif 7033 7034#ifdef __cplusplus 7035extern "C" { 7036#endif 7037 7038_LT_EOF 7039 # Now generate the symbol file. 7040 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7041 7042 cat <<_LT_EOF >> conftest.$ac_ext 7043 7044/* The mapping between symbol names and symbols. */ 7045LT@&t@_DLSYM_CONST struct { 7046 const char *name; 7047 void *address; 7048} 7049lt__PROGRAM__LTX_preloaded_symbols[] = 7050{ 7051 { "@PROGRAM@", (void *) 0 }, 7052_LT_EOF 7053 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7054 cat <<\_LT_EOF >> conftest.$ac_ext 7055 {0, (void *) 0} 7056}; 7057 7058/* This works around a problem in FreeBSD linker */ 7059#ifdef FREEBSD_WORKAROUND 7060static const void *lt_preloaded_setup() { 7061 return lt__PROGRAM__LTX_preloaded_symbols; 7062} 7063#endif 7064 7065#ifdef __cplusplus 7066} 7067#endif 7068_LT_EOF 7069 # Now try linking the two files. 7070 mv conftest.$ac_objext conftstm.$ac_objext 7071 lt_globsym_save_LIBS=$LIBS 7072 lt_globsym_save_CFLAGS=$CFLAGS 7073 LIBS=conftstm.$ac_objext 7074 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7076 (eval $ac_link) 2>&5 7077 ac_status=$? 7078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7079 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7080 pipe_works=yes 7081 fi 7082 LIBS=$lt_globsym_save_LIBS 7083 CFLAGS=$lt_globsym_save_CFLAGS 7084 else 7085 echo "cannot find nm_test_func in $nlist" >&5 7086 fi 7087 else 7088 echo "cannot find nm_test_var in $nlist" >&5 7089 fi 7090 else 7091 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7092 fi 7093 else 7094 echo "$progname: failed program was:" >&5 7095 cat conftest.$ac_ext >&5 7096 fi 7097 rm -rf conftest* conftst* 7098 7099 # Do not use the global_symbol_pipe unless it works. 7100 if test yes = "$pipe_works"; then 7101 break 7102 else 7103 lt_cv_sys_global_symbol_pipe= 7104 fi 7105done 7106 7107fi 7108 7109if test -z "$lt_cv_sys_global_symbol_pipe"; then 7110 lt_cv_sys_global_symbol_to_cdecl= 7111fi 7112if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7114printf "%s\n" "failed" >&6; } 7115else 7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7117printf "%s\n" "ok" >&6; } 7118fi 7119 7120# Response file support. 7121if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7122 nm_file_list_spec='@' 7123elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7124 nm_file_list_spec='@' 7125fi 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7164printf %s "checking for sysroot... " >&6; } 7165 7166@%:@ Check whether --with-sysroot was given. 7167if test ${with_sysroot+y} 7168then : 7169 withval=$with_sysroot; 7170else $as_nop 7171 with_sysroot=no 7172fi 7173 7174 7175lt_sysroot= 7176case $with_sysroot in #( 7177 yes) 7178 if test yes = "$GCC"; then 7179 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7180 fi 7181 ;; #( 7182 /*) 7183 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7184 ;; #( 7185 no|'') 7186 ;; #( 7187 *) 7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7189printf "%s\n" "$with_sysroot" >&6; } 7190 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7191 ;; 7192esac 7193 7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7195printf "%s\n" "${lt_sysroot:-no}" >&6; } 7196 7197 7198 7199 7200 7201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7202printf %s "checking for a working dd... " >&6; } 7203if test ${ac_cv_path_lt_DD+y} 7204then : 7205 printf %s "(cached) " >&6 7206else $as_nop 7207 printf 0123456789abcdef0123456789abcdef >conftest.i 7208cat conftest.i conftest.i >conftest2.i 7209: ${lt_DD:=$DD} 7210if test -z "$lt_DD"; then 7211 ac_path_lt_DD_found=false 7212 # Loop through the user's path and test for each of PROGNAME-LIST 7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7214for as_dir in $PATH 7215do 7216 IFS=$as_save_IFS 7217 case $as_dir in #((( 7218 '') as_dir=./ ;; 7219 */) ;; 7220 *) as_dir=$as_dir/ ;; 7221 esac 7222 for ac_prog in dd 7223 do 7224 for ac_exec_ext in '' $ac_executable_extensions; do 7225 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7226 as_fn_executable_p "$ac_path_lt_DD" || continue 7227if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7228 cmp -s conftest.i conftest.out \ 7229 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7230fi 7231 $ac_path_lt_DD_found && break 3 7232 done 7233 done 7234 done 7235IFS=$as_save_IFS 7236 if test -z "$ac_cv_path_lt_DD"; then 7237 : 7238 fi 7239else 7240 ac_cv_path_lt_DD=$lt_DD 7241fi 7242 7243rm -f conftest.i conftest2.i conftest.out 7244fi 7245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7246printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7247 7248 7249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7250printf %s "checking how to truncate binary pipes... " >&6; } 7251if test ${lt_cv_truncate_bin+y} 7252then : 7253 printf %s "(cached) " >&6 7254else $as_nop 7255 printf 0123456789abcdef0123456789abcdef >conftest.i 7256cat conftest.i conftest.i >conftest2.i 7257lt_cv_truncate_bin= 7258if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7259 cmp -s conftest.i conftest.out \ 7260 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7261fi 7262rm -f conftest.i conftest2.i conftest.out 7263test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7264fi 7265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7266printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7267 7268 7269 7270 7271 7272 7273 7274# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7275func_cc_basename () 7276{ 7277 for cc_temp in @S|@*""; do 7278 case $cc_temp in 7279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7281 \-*) ;; 7282 *) break;; 7283 esac 7284 done 7285 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7286} 7287 7288@%:@ Check whether --enable-libtool-lock was given. 7289if test ${enable_libtool_lock+y} 7290then : 7291 enableval=$enable_libtool_lock; 7292fi 7293 7294test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7295 7296# Some flags need to be propagated to the compiler or linker for good 7297# libtool support. 7298case $host in 7299ia64-*-hpux*) 7300 # Find out what ABI is being produced by ac_compile, and set mode 7301 # options accordingly. 7302 echo 'int i;' > conftest.$ac_ext 7303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7304 (eval $ac_compile) 2>&5 7305 ac_status=$? 7306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7307 test $ac_status = 0; }; then 7308 case `/usr/bin/file conftest.$ac_objext` in 7309 *ELF-32*) 7310 HPUX_IA64_MODE=32 7311 ;; 7312 *ELF-64*) 7313 HPUX_IA64_MODE=64 7314 ;; 7315 esac 7316 fi 7317 rm -rf conftest* 7318 ;; 7319*-*-irix6*) 7320 # Find out what ABI is being produced by ac_compile, and set linker 7321 # options accordingly. 7322 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7324 (eval $ac_compile) 2>&5 7325 ac_status=$? 7326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7327 test $ac_status = 0; }; then 7328 if test yes = "$lt_cv_prog_gnu_ld"; then 7329 case `/usr/bin/file conftest.$ac_objext` in 7330 *32-bit*) 7331 LD="${LD-ld} -melf32bsmip" 7332 ;; 7333 *N32*) 7334 LD="${LD-ld} -melf32bmipn32" 7335 ;; 7336 *64-bit*) 7337 LD="${LD-ld} -melf64bmip" 7338 ;; 7339 esac 7340 else 7341 case `/usr/bin/file conftest.$ac_objext` in 7342 *32-bit*) 7343 LD="${LD-ld} -32" 7344 ;; 7345 *N32*) 7346 LD="${LD-ld} -n32" 7347 ;; 7348 *64-bit*) 7349 LD="${LD-ld} -64" 7350 ;; 7351 esac 7352 fi 7353 fi 7354 rm -rf conftest* 7355 ;; 7356 7357mips64*-*linux*) 7358 # Find out what ABI is being produced by ac_compile, and set linker 7359 # options accordingly. 7360 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7362 (eval $ac_compile) 2>&5 7363 ac_status=$? 7364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7365 test $ac_status = 0; }; then 7366 emul=elf 7367 case `/usr/bin/file conftest.$ac_objext` in 7368 *32-bit*) 7369 emul="${emul}32" 7370 ;; 7371 *64-bit*) 7372 emul="${emul}64" 7373 ;; 7374 esac 7375 case `/usr/bin/file conftest.$ac_objext` in 7376 *MSB*) 7377 emul="${emul}btsmip" 7378 ;; 7379 *LSB*) 7380 emul="${emul}ltsmip" 7381 ;; 7382 esac 7383 case `/usr/bin/file conftest.$ac_objext` in 7384 *N32*) 7385 emul="${emul}n32" 7386 ;; 7387 esac 7388 LD="${LD-ld} -m $emul" 7389 fi 7390 rm -rf conftest* 7391 ;; 7392 7393x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7394s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7395 # Find out what ABI is being produced by ac_compile, and set linker 7396 # options accordingly. Note that the listed cases only cover the 7397 # situations where additional linker options are needed (such as when 7398 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7399 # vice versa); the common cases where no linker options are needed do 7400 # not appear in the list. 7401 echo 'int i;' > conftest.$ac_ext 7402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7403 (eval $ac_compile) 2>&5 7404 ac_status=$? 7405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7406 test $ac_status = 0; }; then 7407 case `/usr/bin/file conftest.o` in 7408 *32-bit*) 7409 case $host in 7410 x86_64-*kfreebsd*-gnu) 7411 LD="${LD-ld} -m elf_i386_fbsd" 7412 ;; 7413 x86_64-*linux*) 7414 case `/usr/bin/file conftest.o` in 7415 *x86-64*) 7416 LD="${LD-ld} -m elf32_x86_64" 7417 ;; 7418 *) 7419 LD="${LD-ld} -m elf_i386" 7420 ;; 7421 esac 7422 ;; 7423 powerpc64le-*linux*) 7424 LD="${LD-ld} -m elf32lppclinux" 7425 ;; 7426 powerpc64-*linux*) 7427 LD="${LD-ld} -m elf32ppclinux" 7428 ;; 7429 s390x-*linux*) 7430 LD="${LD-ld} -m elf_s390" 7431 ;; 7432 sparc64-*linux*) 7433 LD="${LD-ld} -m elf32_sparc" 7434 ;; 7435 esac 7436 ;; 7437 *64-bit*) 7438 case $host in 7439 x86_64-*kfreebsd*-gnu) 7440 LD="${LD-ld} -m elf_x86_64_fbsd" 7441 ;; 7442 x86_64-*linux*) 7443 LD="${LD-ld} -m elf_x86_64" 7444 ;; 7445 powerpcle-*linux*) 7446 LD="${LD-ld} -m elf64lppc" 7447 ;; 7448 powerpc-*linux*) 7449 LD="${LD-ld} -m elf64ppc" 7450 ;; 7451 s390*-*linux*|s390*-*tpf*) 7452 LD="${LD-ld} -m elf64_s390" 7453 ;; 7454 sparc*-*linux*) 7455 LD="${LD-ld} -m elf64_sparc" 7456 ;; 7457 esac 7458 ;; 7459 esac 7460 fi 7461 rm -rf conftest* 7462 ;; 7463 7464*-*-sco3.2v5*) 7465 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7466 SAVE_CFLAGS=$CFLAGS 7467 CFLAGS="$CFLAGS -belf" 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7469printf %s "checking whether the C compiler needs -belf... " >&6; } 7470if test ${lt_cv_cc_needs_belf+y} 7471then : 7472 printf %s "(cached) " >&6 7473else $as_nop 7474 ac_ext=c 7475ac_cpp='$CPP $CPPFLAGS' 7476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7478ac_compiler_gnu=$ac_cv_c_compiler_gnu 7479 7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7481/* end confdefs.h. */ 7482 7483int 7484main (void) 7485{ 7486 7487 ; 7488 return 0; 7489} 7490_ACEOF 7491if ac_fn_c_try_link "$LINENO" 7492then : 7493 lt_cv_cc_needs_belf=yes 7494else $as_nop 7495 lt_cv_cc_needs_belf=no 7496fi 7497rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7498 conftest$ac_exeext conftest.$ac_ext 7499 ac_ext=c 7500ac_cpp='$CPP $CPPFLAGS' 7501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7503ac_compiler_gnu=$ac_cv_c_compiler_gnu 7504 7505fi 7506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7507printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7508 if test yes != "$lt_cv_cc_needs_belf"; then 7509 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7510 CFLAGS=$SAVE_CFLAGS 7511 fi 7512 ;; 7513*-*solaris*) 7514 # Find out what ABI is being produced by ac_compile, and set linker 7515 # options accordingly. 7516 echo 'int i;' > conftest.$ac_ext 7517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7518 (eval $ac_compile) 2>&5 7519 ac_status=$? 7520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7521 test $ac_status = 0; }; then 7522 case `/usr/bin/file conftest.o` in 7523 *64-bit*) 7524 case $lt_cv_prog_gnu_ld in 7525 yes*) 7526 case $host in 7527 i?86-*-solaris*|x86_64-*-solaris*) 7528 LD="${LD-ld} -m elf_x86_64" 7529 ;; 7530 sparc*-*-solaris*) 7531 LD="${LD-ld} -m elf64_sparc" 7532 ;; 7533 esac 7534 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7535 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7536 LD=${LD-ld}_sol2 7537 fi 7538 ;; 7539 *) 7540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7541 LD="${LD-ld} -64" 7542 fi 7543 ;; 7544 esac 7545 ;; 7546 esac 7547 fi 7548 rm -rf conftest* 7549 ;; 7550esac 7551 7552need_locks=$enable_libtool_lock 7553 7554if test -n "$ac_tool_prefix"; then 7555 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7556set dummy ${ac_tool_prefix}mt; ac_word=$2 7557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7558printf %s "checking for $ac_word... " >&6; } 7559if test ${ac_cv_prog_MANIFEST_TOOL+y} 7560then : 7561 printf %s "(cached) " >&6 7562else $as_nop 7563 if test -n "$MANIFEST_TOOL"; then 7564 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7565else 7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7567for as_dir in $PATH 7568do 7569 IFS=$as_save_IFS 7570 case $as_dir in #((( 7571 '') as_dir=./ ;; 7572 */) ;; 7573 *) as_dir=$as_dir/ ;; 7574 esac 7575 for ac_exec_ext in '' $ac_executable_extensions; do 7576 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7577 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7578 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7579 break 2 7580 fi 7581done 7582 done 7583IFS=$as_save_IFS 7584 7585fi 7586fi 7587MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7588if test -n "$MANIFEST_TOOL"; then 7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7590printf "%s\n" "$MANIFEST_TOOL" >&6; } 7591else 7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7593printf "%s\n" "no" >&6; } 7594fi 7595 7596 7597fi 7598if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7599 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7600 # Extract the first word of "mt", so it can be a program name with args. 7601set dummy mt; ac_word=$2 7602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7603printf %s "checking for $ac_word... " >&6; } 7604if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7605then : 7606 printf %s "(cached) " >&6 7607else $as_nop 7608 if test -n "$ac_ct_MANIFEST_TOOL"; then 7609 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7610else 7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7612for as_dir in $PATH 7613do 7614 IFS=$as_save_IFS 7615 case $as_dir in #((( 7616 '') as_dir=./ ;; 7617 */) ;; 7618 *) as_dir=$as_dir/ ;; 7619 esac 7620 for ac_exec_ext in '' $ac_executable_extensions; do 7621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7622 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7624 break 2 7625 fi 7626done 7627 done 7628IFS=$as_save_IFS 7629 7630fi 7631fi 7632ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7633if test -n "$ac_ct_MANIFEST_TOOL"; then 7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7635printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7636else 7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7638printf "%s\n" "no" >&6; } 7639fi 7640 7641 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7642 MANIFEST_TOOL=":" 7643 else 7644 case $cross_compiling:$ac_tool_warned in 7645yes:) 7646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7647printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7648ac_tool_warned=yes ;; 7649esac 7650 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7651 fi 7652else 7653 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7654fi 7655 7656test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7658printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7659if test ${lt_cv_path_mainfest_tool+y} 7660then : 7661 printf %s "(cached) " >&6 7662else $as_nop 7663 lt_cv_path_mainfest_tool=no 7664 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7665 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7666 cat conftest.err >&5 7667 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7668 lt_cv_path_mainfest_tool=yes 7669 fi 7670 rm -f conftest* 7671fi 7672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7673printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7674if test yes != "$lt_cv_path_mainfest_tool"; then 7675 MANIFEST_TOOL=: 7676fi 7677 7678 7679 7680 7681 7682 7683 case $host_os in 7684 rhapsody* | darwin*) 7685 if test -n "$ac_tool_prefix"; then 7686 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7687set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7688{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7689printf %s "checking for $ac_word... " >&6; } 7690if test ${ac_cv_prog_DSYMUTIL+y} 7691then : 7692 printf %s "(cached) " >&6 7693else $as_nop 7694 if test -n "$DSYMUTIL"; then 7695 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7696else 7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7698for as_dir in $PATH 7699do 7700 IFS=$as_save_IFS 7701 case $as_dir in #((( 7702 '') as_dir=./ ;; 7703 */) ;; 7704 *) as_dir=$as_dir/ ;; 7705 esac 7706 for ac_exec_ext in '' $ac_executable_extensions; do 7707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7708 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7710 break 2 7711 fi 7712done 7713 done 7714IFS=$as_save_IFS 7715 7716fi 7717fi 7718DSYMUTIL=$ac_cv_prog_DSYMUTIL 7719if test -n "$DSYMUTIL"; then 7720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7721printf "%s\n" "$DSYMUTIL" >&6; } 7722else 7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7724printf "%s\n" "no" >&6; } 7725fi 7726 7727 7728fi 7729if test -z "$ac_cv_prog_DSYMUTIL"; then 7730 ac_ct_DSYMUTIL=$DSYMUTIL 7731 # Extract the first word of "dsymutil", so it can be a program name with args. 7732set dummy dsymutil; ac_word=$2 7733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7734printf %s "checking for $ac_word... " >&6; } 7735if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7736then : 7737 printf %s "(cached) " >&6 7738else $as_nop 7739 if test -n "$ac_ct_DSYMUTIL"; then 7740 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7741else 7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7743for as_dir in $PATH 7744do 7745 IFS=$as_save_IFS 7746 case $as_dir in #((( 7747 '') as_dir=./ ;; 7748 */) ;; 7749 *) as_dir=$as_dir/ ;; 7750 esac 7751 for ac_exec_ext in '' $ac_executable_extensions; do 7752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7753 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7755 break 2 7756 fi 7757done 7758 done 7759IFS=$as_save_IFS 7760 7761fi 7762fi 7763ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7764if test -n "$ac_ct_DSYMUTIL"; then 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7766printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7767else 7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7769printf "%s\n" "no" >&6; } 7770fi 7771 7772 if test "x$ac_ct_DSYMUTIL" = x; then 7773 DSYMUTIL=":" 7774 else 7775 case $cross_compiling:$ac_tool_warned in 7776yes:) 7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7778printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7779ac_tool_warned=yes ;; 7780esac 7781 DSYMUTIL=$ac_ct_DSYMUTIL 7782 fi 7783else 7784 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7785fi 7786 7787 if test -n "$ac_tool_prefix"; then 7788 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7789set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7791printf %s "checking for $ac_word... " >&6; } 7792if test ${ac_cv_prog_NMEDIT+y} 7793then : 7794 printf %s "(cached) " >&6 7795else $as_nop 7796 if test -n "$NMEDIT"; then 7797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7798else 7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7800for as_dir in $PATH 7801do 7802 IFS=$as_save_IFS 7803 case $as_dir in #((( 7804 '') as_dir=./ ;; 7805 */) ;; 7806 *) as_dir=$as_dir/ ;; 7807 esac 7808 for ac_exec_ext in '' $ac_executable_extensions; do 7809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7810 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7812 break 2 7813 fi 7814done 7815 done 7816IFS=$as_save_IFS 7817 7818fi 7819fi 7820NMEDIT=$ac_cv_prog_NMEDIT 7821if test -n "$NMEDIT"; then 7822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7823printf "%s\n" "$NMEDIT" >&6; } 7824else 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7826printf "%s\n" "no" >&6; } 7827fi 7828 7829 7830fi 7831if test -z "$ac_cv_prog_NMEDIT"; then 7832 ac_ct_NMEDIT=$NMEDIT 7833 # Extract the first word of "nmedit", so it can be a program name with args. 7834set dummy nmedit; ac_word=$2 7835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7836printf %s "checking for $ac_word... " >&6; } 7837if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7838then : 7839 printf %s "(cached) " >&6 7840else $as_nop 7841 if test -n "$ac_ct_NMEDIT"; then 7842 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7843else 7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7845for as_dir in $PATH 7846do 7847 IFS=$as_save_IFS 7848 case $as_dir in #((( 7849 '') as_dir=./ ;; 7850 */) ;; 7851 *) as_dir=$as_dir/ ;; 7852 esac 7853 for ac_exec_ext in '' $ac_executable_extensions; do 7854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7855 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7857 break 2 7858 fi 7859done 7860 done 7861IFS=$as_save_IFS 7862 7863fi 7864fi 7865ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7866if test -n "$ac_ct_NMEDIT"; then 7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7868printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7869else 7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7871printf "%s\n" "no" >&6; } 7872fi 7873 7874 if test "x$ac_ct_NMEDIT" = x; then 7875 NMEDIT=":" 7876 else 7877 case $cross_compiling:$ac_tool_warned in 7878yes:) 7879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7880printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7881ac_tool_warned=yes ;; 7882esac 7883 NMEDIT=$ac_ct_NMEDIT 7884 fi 7885else 7886 NMEDIT="$ac_cv_prog_NMEDIT" 7887fi 7888 7889 if test -n "$ac_tool_prefix"; then 7890 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7891set dummy ${ac_tool_prefix}lipo; ac_word=$2 7892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7893printf %s "checking for $ac_word... " >&6; } 7894if test ${ac_cv_prog_LIPO+y} 7895then : 7896 printf %s "(cached) " >&6 7897else $as_nop 7898 if test -n "$LIPO"; then 7899 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7900else 7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7902for as_dir in $PATH 7903do 7904 IFS=$as_save_IFS 7905 case $as_dir in #((( 7906 '') as_dir=./ ;; 7907 */) ;; 7908 *) as_dir=$as_dir/ ;; 7909 esac 7910 for ac_exec_ext in '' $ac_executable_extensions; do 7911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7912 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7914 break 2 7915 fi 7916done 7917 done 7918IFS=$as_save_IFS 7919 7920fi 7921fi 7922LIPO=$ac_cv_prog_LIPO 7923if test -n "$LIPO"; then 7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7925printf "%s\n" "$LIPO" >&6; } 7926else 7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7928printf "%s\n" "no" >&6; } 7929fi 7930 7931 7932fi 7933if test -z "$ac_cv_prog_LIPO"; then 7934 ac_ct_LIPO=$LIPO 7935 # Extract the first word of "lipo", so it can be a program name with args. 7936set dummy lipo; ac_word=$2 7937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7938printf %s "checking for $ac_word... " >&6; } 7939if test ${ac_cv_prog_ac_ct_LIPO+y} 7940then : 7941 printf %s "(cached) " >&6 7942else $as_nop 7943 if test -n "$ac_ct_LIPO"; then 7944 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7945else 7946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7947for as_dir in $PATH 7948do 7949 IFS=$as_save_IFS 7950 case $as_dir in #((( 7951 '') as_dir=./ ;; 7952 */) ;; 7953 *) as_dir=$as_dir/ ;; 7954 esac 7955 for ac_exec_ext in '' $ac_executable_extensions; do 7956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7957 ac_cv_prog_ac_ct_LIPO="lipo" 7958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7959 break 2 7960 fi 7961done 7962 done 7963IFS=$as_save_IFS 7964 7965fi 7966fi 7967ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7968if test -n "$ac_ct_LIPO"; then 7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7970printf "%s\n" "$ac_ct_LIPO" >&6; } 7971else 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7973printf "%s\n" "no" >&6; } 7974fi 7975 7976 if test "x$ac_ct_LIPO" = x; then 7977 LIPO=":" 7978 else 7979 case $cross_compiling:$ac_tool_warned in 7980yes:) 7981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7982printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7983ac_tool_warned=yes ;; 7984esac 7985 LIPO=$ac_ct_LIPO 7986 fi 7987else 7988 LIPO="$ac_cv_prog_LIPO" 7989fi 7990 7991 if test -n "$ac_tool_prefix"; then 7992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7993set dummy ${ac_tool_prefix}otool; ac_word=$2 7994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7995printf %s "checking for $ac_word... " >&6; } 7996if test ${ac_cv_prog_OTOOL+y} 7997then : 7998 printf %s "(cached) " >&6 7999else $as_nop 8000 if test -n "$OTOOL"; then 8001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8002else 8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8004for as_dir in $PATH 8005do 8006 IFS=$as_save_IFS 8007 case $as_dir in #((( 8008 '') as_dir=./ ;; 8009 */) ;; 8010 *) as_dir=$as_dir/ ;; 8011 esac 8012 for ac_exec_ext in '' $ac_executable_extensions; do 8013 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8014 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8016 break 2 8017 fi 8018done 8019 done 8020IFS=$as_save_IFS 8021 8022fi 8023fi 8024OTOOL=$ac_cv_prog_OTOOL 8025if test -n "$OTOOL"; then 8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8027printf "%s\n" "$OTOOL" >&6; } 8028else 8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8030printf "%s\n" "no" >&6; } 8031fi 8032 8033 8034fi 8035if test -z "$ac_cv_prog_OTOOL"; then 8036 ac_ct_OTOOL=$OTOOL 8037 # Extract the first word of "otool", so it can be a program name with args. 8038set dummy otool; ac_word=$2 8039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8040printf %s "checking for $ac_word... " >&6; } 8041if test ${ac_cv_prog_ac_ct_OTOOL+y} 8042then : 8043 printf %s "(cached) " >&6 8044else $as_nop 8045 if test -n "$ac_ct_OTOOL"; then 8046 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8047else 8048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8049for as_dir in $PATH 8050do 8051 IFS=$as_save_IFS 8052 case $as_dir in #((( 8053 '') as_dir=./ ;; 8054 */) ;; 8055 *) as_dir=$as_dir/ ;; 8056 esac 8057 for ac_exec_ext in '' $ac_executable_extensions; do 8058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8059 ac_cv_prog_ac_ct_OTOOL="otool" 8060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8061 break 2 8062 fi 8063done 8064 done 8065IFS=$as_save_IFS 8066 8067fi 8068fi 8069ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8070if test -n "$ac_ct_OTOOL"; then 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8072printf "%s\n" "$ac_ct_OTOOL" >&6; } 8073else 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075printf "%s\n" "no" >&6; } 8076fi 8077 8078 if test "x$ac_ct_OTOOL" = x; then 8079 OTOOL=":" 8080 else 8081 case $cross_compiling:$ac_tool_warned in 8082yes:) 8083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8084printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8085ac_tool_warned=yes ;; 8086esac 8087 OTOOL=$ac_ct_OTOOL 8088 fi 8089else 8090 OTOOL="$ac_cv_prog_OTOOL" 8091fi 8092 8093 if test -n "$ac_tool_prefix"; then 8094 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8095set dummy ${ac_tool_prefix}otool64; ac_word=$2 8096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8097printf %s "checking for $ac_word... " >&6; } 8098if test ${ac_cv_prog_OTOOL64+y} 8099then : 8100 printf %s "(cached) " >&6 8101else $as_nop 8102 if test -n "$OTOOL64"; then 8103 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8104else 8105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8106for as_dir in $PATH 8107do 8108 IFS=$as_save_IFS 8109 case $as_dir in #((( 8110 '') as_dir=./ ;; 8111 */) ;; 8112 *) as_dir=$as_dir/ ;; 8113 esac 8114 for ac_exec_ext in '' $ac_executable_extensions; do 8115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8116 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8118 break 2 8119 fi 8120done 8121 done 8122IFS=$as_save_IFS 8123 8124fi 8125fi 8126OTOOL64=$ac_cv_prog_OTOOL64 8127if test -n "$OTOOL64"; then 8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8129printf "%s\n" "$OTOOL64" >&6; } 8130else 8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8132printf "%s\n" "no" >&6; } 8133fi 8134 8135 8136fi 8137if test -z "$ac_cv_prog_OTOOL64"; then 8138 ac_ct_OTOOL64=$OTOOL64 8139 # Extract the first word of "otool64", so it can be a program name with args. 8140set dummy otool64; ac_word=$2 8141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8142printf %s "checking for $ac_word... " >&6; } 8143if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8144then : 8145 printf %s "(cached) " >&6 8146else $as_nop 8147 if test -n "$ac_ct_OTOOL64"; then 8148 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8149else 8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8151for as_dir in $PATH 8152do 8153 IFS=$as_save_IFS 8154 case $as_dir in #((( 8155 '') as_dir=./ ;; 8156 */) ;; 8157 *) as_dir=$as_dir/ ;; 8158 esac 8159 for ac_exec_ext in '' $ac_executable_extensions; do 8160 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8161 ac_cv_prog_ac_ct_OTOOL64="otool64" 8162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8163 break 2 8164 fi 8165done 8166 done 8167IFS=$as_save_IFS 8168 8169fi 8170fi 8171ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8172if test -n "$ac_ct_OTOOL64"; then 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8174printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8175else 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8177printf "%s\n" "no" >&6; } 8178fi 8179 8180 if test "x$ac_ct_OTOOL64" = x; then 8181 OTOOL64=":" 8182 else 8183 case $cross_compiling:$ac_tool_warned in 8184yes:) 8185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8186printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8187ac_tool_warned=yes ;; 8188esac 8189 OTOOL64=$ac_ct_OTOOL64 8190 fi 8191else 8192 OTOOL64="$ac_cv_prog_OTOOL64" 8193fi 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8222printf %s "checking for -single_module linker flag... " >&6; } 8223if test ${lt_cv_apple_cc_single_mod+y} 8224then : 8225 printf %s "(cached) " >&6 8226else $as_nop 8227 lt_cv_apple_cc_single_mod=no 8228 if test -z "$LT_MULTI_MODULE"; then 8229 # By default we will add the -single_module flag. You can override 8230 # by either setting the environment variable LT_MULTI_MODULE 8231 # non-empty at configure time, or by adding -multi_module to the 8232 # link flags. 8233 rm -rf libconftest.dylib* 8234 echo "int foo(void){return 1;}" > conftest.c 8235 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8236-dynamiclib -Wl,-single_module conftest.c" >&5 8237 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8238 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8239 _lt_result=$? 8240 # If there is a non-empty error log, and "single_module" 8241 # appears in it, assume the flag caused a linker warning 8242 if test -s conftest.err && $GREP single_module conftest.err; then 8243 cat conftest.err >&5 8244 # Otherwise, if the output was created with a 0 exit code from 8245 # the compiler, it worked. 8246 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8247 lt_cv_apple_cc_single_mod=yes 8248 else 8249 cat conftest.err >&5 8250 fi 8251 rm -rf libconftest.dylib* 8252 rm -f conftest.* 8253 fi 8254fi 8255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8256printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8257 8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8259printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8260if test ${lt_cv_ld_exported_symbols_list+y} 8261then : 8262 printf %s "(cached) " >&6 8263else $as_nop 8264 lt_cv_ld_exported_symbols_list=no 8265 save_LDFLAGS=$LDFLAGS 8266 echo "_main" > conftest.sym 8267 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8269/* end confdefs.h. */ 8270 8271int 8272main (void) 8273{ 8274 8275 ; 8276 return 0; 8277} 8278_ACEOF 8279if ac_fn_c_try_link "$LINENO" 8280then : 8281 lt_cv_ld_exported_symbols_list=yes 8282else $as_nop 8283 lt_cv_ld_exported_symbols_list=no 8284fi 8285rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8286 conftest$ac_exeext conftest.$ac_ext 8287 LDFLAGS=$save_LDFLAGS 8288 8289fi 8290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8291printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8292 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8294printf %s "checking for -force_load linker flag... " >&6; } 8295if test ${lt_cv_ld_force_load+y} 8296then : 8297 printf %s "(cached) " >&6 8298else $as_nop 8299 lt_cv_ld_force_load=no 8300 cat > conftest.c << _LT_EOF 8301int forced_loaded() { return 2;} 8302_LT_EOF 8303 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8304 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8305 echo "$AR cr libconftest.a conftest.o" >&5 8306 $AR cr libconftest.a conftest.o 2>&5 8307 echo "$RANLIB libconftest.a" >&5 8308 $RANLIB libconftest.a 2>&5 8309 cat > conftest.c << _LT_EOF 8310int main() { return 0;} 8311_LT_EOF 8312 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8313 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8314 _lt_result=$? 8315 if test -s conftest.err && $GREP force_load conftest.err; then 8316 cat conftest.err >&5 8317 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8318 lt_cv_ld_force_load=yes 8319 else 8320 cat conftest.err >&5 8321 fi 8322 rm -f conftest.err libconftest.a conftest conftest.c 8323 rm -rf conftest.dSYM 8324 8325fi 8326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8327printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8328 case $host_os in 8329 rhapsody* | darwin1.[012]) 8330 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8331 darwin1.*) 8332 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8333 darwin*) # darwin 5.x on 8334 # if running on 10.5 or later, the deployment target defaults 8335 # to the OS version, if on x86, and 10.4, the deployment 8336 # target defaults to 10.4. Don't you love it? 8337 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8338 10.0,*86*-darwin8*|10.0,*-darwin[912]*) 8339 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8340 10.[012][,.]*) 8341 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8342 10.*|11.*) 8343 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8344 esac 8345 ;; 8346 esac 8347 if test yes = "$lt_cv_apple_cc_single_mod"; then 8348 _lt_dar_single_mod='$single_module' 8349 fi 8350 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8351 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8352 else 8353 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8354 fi 8355 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8356 _lt_dsymutil='~$DSYMUTIL $lib || :' 8357 else 8358 _lt_dsymutil= 8359 fi 8360 ;; 8361 esac 8362 8363# func_munge_path_list VARIABLE PATH 8364# ----------------------------------- 8365# VARIABLE is name of variable containing _space_ separated list of 8366# directories to be munged by the contents of PATH, which is string 8367# having a format: 8368# "DIR[:DIR]:" 8369# string "DIR[ DIR]" will be prepended to VARIABLE 8370# ":DIR[:DIR]" 8371# string "DIR[ DIR]" will be appended to VARIABLE 8372# "DIRP[:DIRP]::[DIRA:]DIRA" 8373# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8374# "DIRA[ DIRA]" will be appended to VARIABLE 8375# "DIR[:DIR]" 8376# VARIABLE will be replaced by "DIR[ DIR]" 8377func_munge_path_list () 8378{ 8379 case x@S|@2 in 8380 x) 8381 ;; 8382 *:) 8383 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 8384 ;; 8385 x:*) 8386 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 8387 ;; 8388 *::*) 8389 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8390 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 8391 ;; 8392 *) 8393 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 8394 ;; 8395 esac 8396} 8397 8398ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8399" 8400if test "x$ac_cv_header_dlfcn_h" = xyes 8401then : 8402 printf "%s\n" "@%:@define HAVE_DLFCN_H 1" >>confdefs.h 8403 8404fi 8405 8406 8407 8408 8409 8410# Set options 8411 8412 8413 8414 enable_dlopen=no 8415 8416 8417 enable_win32_dll=no 8418 8419 8420 @%:@ Check whether --enable-shared was given. 8421if test ${enable_shared+y} 8422then : 8423 enableval=$enable_shared; p=${PACKAGE-default} 8424 case $enableval in 8425 yes) enable_shared=yes ;; 8426 no) enable_shared=no ;; 8427 *) 8428 enable_shared=no 8429 # Look at the argument we got. We use all the common list separators. 8430 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8431 for pkg in $enableval; do 8432 IFS=$lt_save_ifs 8433 if test "X$pkg" = "X$p"; then 8434 enable_shared=yes 8435 fi 8436 done 8437 IFS=$lt_save_ifs 8438 ;; 8439 esac 8440else $as_nop 8441 enable_shared=yes 8442fi 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 @%:@ Check whether --enable-static was given. 8453if test ${enable_static+y} 8454then : 8455 enableval=$enable_static; p=${PACKAGE-default} 8456 case $enableval in 8457 yes) enable_static=yes ;; 8458 no) enable_static=no ;; 8459 *) 8460 enable_static=no 8461 # Look at the argument we got. We use all the common list separators. 8462 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8463 for pkg in $enableval; do 8464 IFS=$lt_save_ifs 8465 if test "X$pkg" = "X$p"; then 8466 enable_static=yes 8467 fi 8468 done 8469 IFS=$lt_save_ifs 8470 ;; 8471 esac 8472else $as_nop 8473 enable_static=yes 8474fi 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485@%:@ Check whether --with-pic was given. 8486if test ${with_pic+y} 8487then : 8488 withval=$with_pic; lt_p=${PACKAGE-default} 8489 case $withval in 8490 yes|no) pic_mode=$withval ;; 8491 *) 8492 pic_mode=default 8493 # Look at the argument we got. We use all the common list separators. 8494 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8495 for lt_pkg in $withval; do 8496 IFS=$lt_save_ifs 8497 if test "X$lt_pkg" = "X$lt_p"; then 8498 pic_mode=yes 8499 fi 8500 done 8501 IFS=$lt_save_ifs 8502 ;; 8503 esac 8504else $as_nop 8505 pic_mode=default 8506fi 8507 8508 8509 8510 8511 8512 8513 8514 8515 @%:@ Check whether --enable-fast-install was given. 8516if test ${enable_fast_install+y} 8517then : 8518 enableval=$enable_fast_install; p=${PACKAGE-default} 8519 case $enableval in 8520 yes) enable_fast_install=yes ;; 8521 no) enable_fast_install=no ;; 8522 *) 8523 enable_fast_install=no 8524 # Look at the argument we got. We use all the common list separators. 8525 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8526 for pkg in $enableval; do 8527 IFS=$lt_save_ifs 8528 if test "X$pkg" = "X$p"; then 8529 enable_fast_install=yes 8530 fi 8531 done 8532 IFS=$lt_save_ifs 8533 ;; 8534 esac 8535else $as_nop 8536 enable_fast_install=yes 8537fi 8538 8539 8540 8541 8542 8543 8544 8545 8546 shared_archive_member_spec= 8547case $host,$enable_shared in 8548power*-*-aix[5-9]*,yes) 8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8550printf %s "checking which variant of shared library versioning to provide... " >&6; } 8551 8552@%:@ Check whether --with-aix-soname was given. 8553if test ${with_aix_soname+y} 8554then : 8555 withval=$with_aix_soname; case $withval in 8556 aix|svr4|both) 8557 ;; 8558 *) 8559 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8560 ;; 8561 esac 8562 lt_cv_with_aix_soname=$with_aix_soname 8563else $as_nop 8564 if test ${lt_cv_with_aix_soname+y} 8565then : 8566 printf %s "(cached) " >&6 8567else $as_nop 8568 lt_cv_with_aix_soname=aix 8569fi 8570 8571 with_aix_soname=$lt_cv_with_aix_soname 8572fi 8573 8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8575printf "%s\n" "$with_aix_soname" >&6; } 8576 if test aix != "$with_aix_soname"; then 8577 # For the AIX way of multilib, we name the shared archive member 8578 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8579 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8580 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8581 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8582 if test 64 = "${OBJECT_MODE-32}"; then 8583 shared_archive_member_spec=shr_64 8584 else 8585 shared_archive_member_spec=shr 8586 fi 8587 fi 8588 ;; 8589*) 8590 with_aix_soname=aix 8591 ;; 8592esac 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603# This can be used to rebuild libtool when needed 8604LIBTOOL_DEPS=$ltmain 8605 8606# Always use our own libtool. 8607LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638test -z "$LN_S" && LN_S="ln -s" 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653if test -n "${ZSH_VERSION+set}"; then 8654 setopt NO_GLOB_SUBST 8655fi 8656 8657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8658printf %s "checking for objdir... " >&6; } 8659if test ${lt_cv_objdir+y} 8660then : 8661 printf %s "(cached) " >&6 8662else $as_nop 8663 rm -f .libs 2>/dev/null 8664mkdir .libs 2>/dev/null 8665if test -d .libs; then 8666 lt_cv_objdir=.libs 8667else 8668 # MS-DOS does not allow filenames that begin with a dot. 8669 lt_cv_objdir=_libs 8670fi 8671rmdir .libs 2>/dev/null 8672fi 8673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8674printf "%s\n" "$lt_cv_objdir" >&6; } 8675objdir=$lt_cv_objdir 8676 8677 8678 8679 8680 8681printf "%s\n" "@%:@define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8682 8683 8684 8685 8686case $host_os in 8687aix3*) 8688 # AIX sometimes has problems with the GCC collect2 program. For some 8689 # reason, if we set the COLLECT_NAMES environment variable, the problems 8690 # vanish in a puff of smoke. 8691 if test set != "${COLLECT_NAMES+set}"; then 8692 COLLECT_NAMES= 8693 export COLLECT_NAMES 8694 fi 8695 ;; 8696esac 8697 8698# Global variables: 8699ofile=libtool 8700can_build_shared=yes 8701 8702# All known linkers require a '.a' archive for static linking (except MSVC, 8703# which needs '.lib'). 8704libext=a 8705 8706with_gnu_ld=$lt_cv_prog_gnu_ld 8707 8708old_CC=$CC 8709old_CFLAGS=$CFLAGS 8710 8711# Set sane defaults for various variables 8712test -z "$CC" && CC=cc 8713test -z "$LTCC" && LTCC=$CC 8714test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8715test -z "$LD" && LD=ld 8716test -z "$ac_objext" && ac_objext=o 8717 8718func_cc_basename $compiler 8719cc_basename=$func_cc_basename_result 8720 8721 8722# Only perform the check for file, if the check method requires it 8723test -z "$MAGIC_CMD" && MAGIC_CMD=file 8724case $deplibs_check_method in 8725file_magic*) 8726 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8728printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8729if test ${lt_cv_path_MAGIC_CMD+y} 8730then : 8731 printf %s "(cached) " >&6 8732else $as_nop 8733 case $MAGIC_CMD in 8734[\\/*] | ?:[\\/]*) 8735 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8736 ;; 8737*) 8738 lt_save_MAGIC_CMD=$MAGIC_CMD 8739 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8741 for ac_dir in $ac_dummy; do 8742 IFS=$lt_save_ifs 8743 test -z "$ac_dir" && ac_dir=. 8744 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8745 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8746 if test -n "$file_magic_test_file"; then 8747 case $deplibs_check_method in 8748 "file_magic "*) 8749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8750 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8752 $EGREP "$file_magic_regex" > /dev/null; then 8753 : 8754 else 8755 cat <<_LT_EOF 1>&2 8756 8757*** Warning: the command libtool uses to detect shared libraries, 8758*** $file_magic_cmd, produces output that libtool cannot recognize. 8759*** The result is that libtool may fail to recognize shared libraries 8760*** as such. This will affect the creation of libtool libraries that 8761*** depend on shared libraries, but programs linked with such libtool 8762*** libraries will work regardless of this problem. Nevertheless, you 8763*** may want to report the problem to your system manager and/or to 8764*** bug-libtool@gnu.org 8765 8766_LT_EOF 8767 fi ;; 8768 esac 8769 fi 8770 break 8771 fi 8772 done 8773 IFS=$lt_save_ifs 8774 MAGIC_CMD=$lt_save_MAGIC_CMD 8775 ;; 8776esac 8777fi 8778 8779MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8780if test -n "$MAGIC_CMD"; then 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8782printf "%s\n" "$MAGIC_CMD" >&6; } 8783else 8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8785printf "%s\n" "no" >&6; } 8786fi 8787 8788 8789 8790 8791 8792if test -z "$lt_cv_path_MAGIC_CMD"; then 8793 if test -n "$ac_tool_prefix"; then 8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8795printf %s "checking for file... " >&6; } 8796if test ${lt_cv_path_MAGIC_CMD+y} 8797then : 8798 printf %s "(cached) " >&6 8799else $as_nop 8800 case $MAGIC_CMD in 8801[\\/*] | ?:[\\/]*) 8802 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8803 ;; 8804*) 8805 lt_save_MAGIC_CMD=$MAGIC_CMD 8806 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8808 for ac_dir in $ac_dummy; do 8809 IFS=$lt_save_ifs 8810 test -z "$ac_dir" && ac_dir=. 8811 if test -f "$ac_dir/file"; then 8812 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8813 if test -n "$file_magic_test_file"; then 8814 case $deplibs_check_method in 8815 "file_magic "*) 8816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8817 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8819 $EGREP "$file_magic_regex" > /dev/null; then 8820 : 8821 else 8822 cat <<_LT_EOF 1>&2 8823 8824*** Warning: the command libtool uses to detect shared libraries, 8825*** $file_magic_cmd, produces output that libtool cannot recognize. 8826*** The result is that libtool may fail to recognize shared libraries 8827*** as such. This will affect the creation of libtool libraries that 8828*** depend on shared libraries, but programs linked with such libtool 8829*** libraries will work regardless of this problem. Nevertheless, you 8830*** may want to report the problem to your system manager and/or to 8831*** bug-libtool@gnu.org 8832 8833_LT_EOF 8834 fi ;; 8835 esac 8836 fi 8837 break 8838 fi 8839 done 8840 IFS=$lt_save_ifs 8841 MAGIC_CMD=$lt_save_MAGIC_CMD 8842 ;; 8843esac 8844fi 8845 8846MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8847if test -n "$MAGIC_CMD"; then 8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8849printf "%s\n" "$MAGIC_CMD" >&6; } 8850else 8851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8852printf "%s\n" "no" >&6; } 8853fi 8854 8855 8856 else 8857 MAGIC_CMD=: 8858 fi 8859fi 8860 8861 fi 8862 ;; 8863esac 8864 8865# Use C for the default configuration in the libtool script 8866 8867lt_save_CC=$CC 8868ac_ext=c 8869ac_cpp='$CPP $CPPFLAGS' 8870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8872ac_compiler_gnu=$ac_cv_c_compiler_gnu 8873 8874 8875# Source file extension for C test sources. 8876ac_ext=c 8877 8878# Object file extension for compiled C test sources. 8879objext=o 8880objext=$objext 8881 8882# Code to be used in simple compile tests 8883lt_simple_compile_test_code="int some_variable = 0;" 8884 8885# Code to be used in simple link tests 8886lt_simple_link_test_code='int main(){return(0);}' 8887 8888 8889 8890 8891 8892 8893 8894# If no C compiler was specified, use CC. 8895LTCC=${LTCC-"$CC"} 8896 8897# If no C compiler flags were specified, use CFLAGS. 8898LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8899 8900# Allow CC to be a program name with arguments. 8901compiler=$CC 8902 8903# Save the default compiler, since it gets overwritten when the other 8904# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8905compiler_DEFAULT=$CC 8906 8907# save warnings/boilerplate of simple test code 8908ac_outfile=conftest.$ac_objext 8909echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8911_lt_compiler_boilerplate=`cat conftest.err` 8912$RM conftest* 8913 8914ac_outfile=conftest.$ac_objext 8915echo "$lt_simple_link_test_code" >conftest.$ac_ext 8916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8917_lt_linker_boilerplate=`cat conftest.err` 8918$RM -r conftest* 8919 8920 8921## CAVEAT EMPTOR: 8922## There is no encapsulation within the following macros, do not change 8923## the running order or otherwise move them around unless you know exactly 8924## what you are doing... 8925if test -n "$compiler"; then 8926 8927lt_prog_compiler_no_builtin_flag= 8928 8929if test yes = "$GCC"; then 8930 case $cc_basename in 8931 nvcc*) 8932 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8933 *) 8934 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8935 esac 8936 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8938printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8939if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8940then : 8941 printf %s "(cached) " >&6 8942else $as_nop 8943 lt_cv_prog_compiler_rtti_exceptions=no 8944 ac_outfile=conftest.$ac_objext 8945 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8946 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8947 # Insert the option either (1) after the last *FLAGS variable, or 8948 # (2) before a word containing "conftest.", or (3) at the end. 8949 # Note that $ac_compile itself does not contain backslashes and begins 8950 # with a dollar sign (not a hyphen), so the echo should work correctly. 8951 # The option is referenced via a variable to avoid confusing sed. 8952 lt_compile=`echo "$ac_compile" | $SED \ 8953 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8955 -e 's:$: $lt_compiler_flag:'` 8956 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8957 (eval "$lt_compile" 2>conftest.err) 8958 ac_status=$? 8959 cat conftest.err >&5 8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8961 if (exit $ac_status) && test -s "$ac_outfile"; then 8962 # The compiler can only warn and ignore the option if not recognized 8963 # So say no if there are warnings other than the usual output. 8964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8966 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8967 lt_cv_prog_compiler_rtti_exceptions=yes 8968 fi 8969 fi 8970 $RM conftest* 8971 8972fi 8973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8974printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8975 8976if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8977 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8978else 8979 : 8980fi 8981 8982fi 8983 8984 8985 8986 8987 8988 8989 lt_prog_compiler_wl= 8990lt_prog_compiler_pic= 8991lt_prog_compiler_static= 8992 8993 8994 if test yes = "$GCC"; then 8995 lt_prog_compiler_wl='-Wl,' 8996 lt_prog_compiler_static='-static' 8997 8998 case $host_os in 8999 aix*) 9000 # All AIX code is PIC. 9001 if test ia64 = "$host_cpu"; then 9002 # AIX 5 now supports IA64 processor 9003 lt_prog_compiler_static='-Bstatic' 9004 fi 9005 lt_prog_compiler_pic='-fPIC' 9006 ;; 9007 9008 amigaos*) 9009 case $host_cpu in 9010 powerpc) 9011 # see comment about AmigaOS4 .so support 9012 lt_prog_compiler_pic='-fPIC' 9013 ;; 9014 m68k) 9015 # FIXME: we need at least 68020 code to build shared libraries, but 9016 # adding the '-m68020' flag to GCC prevents building anything better, 9017 # like '-m68040'. 9018 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9019 ;; 9020 esac 9021 ;; 9022 9023 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9024 # PIC is the default for these OSes. 9025 ;; 9026 9027 mingw* | cygwin* | pw32* | os2* | cegcc*) 9028 # This hack is so that the source file can tell whether it is being 9029 # built for inclusion in a dll (and should export symbols for example). 9030 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9031 # (--disable-auto-import) libraries 9032 lt_prog_compiler_pic='-DDLL_EXPORT' 9033 case $host_os in 9034 os2*) 9035 lt_prog_compiler_static='$wl-static' 9036 ;; 9037 esac 9038 ;; 9039 9040 darwin* | rhapsody*) 9041 # PIC is the default on this platform 9042 # Common symbols not allowed in MH_DYLIB files 9043 lt_prog_compiler_pic='-fno-common' 9044 ;; 9045 9046 haiku*) 9047 # PIC is the default for Haiku. 9048 # The "-static" flag exists, but is broken. 9049 lt_prog_compiler_static= 9050 ;; 9051 9052 hpux*) 9053 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9054 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9055 # sets the default TLS model and affects inlining. 9056 case $host_cpu in 9057 hppa*64*) 9058 # +Z the default 9059 ;; 9060 *) 9061 lt_prog_compiler_pic='-fPIC' 9062 ;; 9063 esac 9064 ;; 9065 9066 interix[3-9]*) 9067 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9068 # Instead, we relocate shared libraries at runtime. 9069 ;; 9070 9071 msdosdjgpp*) 9072 # Just because we use GCC doesn't mean we suddenly get shared libraries 9073 # on systems that don't support them. 9074 lt_prog_compiler_can_build_shared=no 9075 enable_shared=no 9076 ;; 9077 9078 *nto* | *qnx*) 9079 # QNX uses GNU C++, but need to define -shared option too, otherwise 9080 # it will coredump. 9081 lt_prog_compiler_pic='-fPIC -shared' 9082 ;; 9083 9084 sysv4*MP*) 9085 if test -d /usr/nec; then 9086 lt_prog_compiler_pic=-Kconform_pic 9087 fi 9088 ;; 9089 9090 *) 9091 lt_prog_compiler_pic='-fPIC' 9092 ;; 9093 esac 9094 9095 case $cc_basename in 9096 nvcc*) # Cuda Compiler Driver 2.2 9097 lt_prog_compiler_wl='-Xlinker ' 9098 if test -n "$lt_prog_compiler_pic"; then 9099 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9100 fi 9101 ;; 9102 esac 9103 else 9104 # PORTME Check for flag to pass linker flags through the system compiler. 9105 case $host_os in 9106 aix*) 9107 lt_prog_compiler_wl='-Wl,' 9108 if test ia64 = "$host_cpu"; then 9109 # AIX 5 now supports IA64 processor 9110 lt_prog_compiler_static='-Bstatic' 9111 else 9112 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9113 fi 9114 ;; 9115 9116 darwin* | rhapsody*) 9117 # PIC is the default on this platform 9118 # Common symbols not allowed in MH_DYLIB files 9119 lt_prog_compiler_pic='-fno-common' 9120 case $cc_basename in 9121 nagfor*) 9122 # NAG Fortran compiler 9123 lt_prog_compiler_wl='-Wl,-Wl,,' 9124 lt_prog_compiler_pic='-PIC' 9125 lt_prog_compiler_static='-Bstatic' 9126 ;; 9127 esac 9128 ;; 9129 9130 mingw* | cygwin* | pw32* | os2* | cegcc*) 9131 # This hack is so that the source file can tell whether it is being 9132 # built for inclusion in a dll (and should export symbols for example). 9133 lt_prog_compiler_pic='-DDLL_EXPORT' 9134 case $host_os in 9135 os2*) 9136 lt_prog_compiler_static='$wl-static' 9137 ;; 9138 esac 9139 ;; 9140 9141 hpux9* | hpux10* | hpux11*) 9142 lt_prog_compiler_wl='-Wl,' 9143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9144 # not for PA HP-UX. 9145 case $host_cpu in 9146 hppa*64*|ia64*) 9147 # +Z the default 9148 ;; 9149 *) 9150 lt_prog_compiler_pic='+Z' 9151 ;; 9152 esac 9153 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9154 lt_prog_compiler_static='$wl-a ${wl}archive' 9155 ;; 9156 9157 irix5* | irix6* | nonstopux*) 9158 lt_prog_compiler_wl='-Wl,' 9159 # PIC (with -KPIC) is the default. 9160 lt_prog_compiler_static='-non_shared' 9161 ;; 9162 9163 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9164 case $cc_basename in 9165 # old Intel for x86_64, which still supported -KPIC. 9166 ecc*) 9167 lt_prog_compiler_wl='-Wl,' 9168 lt_prog_compiler_pic='-KPIC' 9169 lt_prog_compiler_static='-static' 9170 ;; 9171 # flang / f18. f95 an alias for gfortran or flang on Debian 9172 flang* | f18* | f95*) 9173 lt_prog_compiler_wl='-Wl,' 9174 lt_prog_compiler_pic='-fPIC' 9175 lt_prog_compiler_static='-static' 9176 ;; 9177 # icc used to be incompatible with GCC. 9178 # ICC 10 doesn't accept -KPIC any more. 9179 icc* | ifort*) 9180 lt_prog_compiler_wl='-Wl,' 9181 lt_prog_compiler_pic='-fPIC' 9182 lt_prog_compiler_static='-static' 9183 ;; 9184 # Lahey Fortran 8.1. 9185 lf95*) 9186 lt_prog_compiler_wl='-Wl,' 9187 lt_prog_compiler_pic='--shared' 9188 lt_prog_compiler_static='--static' 9189 ;; 9190 nagfor*) 9191 # NAG Fortran compiler 9192 lt_prog_compiler_wl='-Wl,-Wl,,' 9193 lt_prog_compiler_pic='-PIC' 9194 lt_prog_compiler_static='-Bstatic' 9195 ;; 9196 tcc*) 9197 # Fabrice Bellard et al's Tiny C Compiler 9198 lt_prog_compiler_wl='-Wl,' 9199 lt_prog_compiler_pic='-fPIC' 9200 lt_prog_compiler_static='-static' 9201 ;; 9202 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9203 # Portland Group compilers (*not* the Pentium gcc compiler, 9204 # which looks to be a dead project) 9205 lt_prog_compiler_wl='-Wl,' 9206 lt_prog_compiler_pic='-fpic' 9207 lt_prog_compiler_static='-Bstatic' 9208 ;; 9209 ccc*) 9210 lt_prog_compiler_wl='-Wl,' 9211 # All Alpha code is PIC. 9212 lt_prog_compiler_static='-non_shared' 9213 ;; 9214 xl* | bgxl* | bgf* | mpixl*) 9215 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9216 lt_prog_compiler_wl='-Wl,' 9217 lt_prog_compiler_pic='-qpic' 9218 lt_prog_compiler_static='-qstaticlink' 9219 ;; 9220 *) 9221 case `$CC -V 2>&1 | sed 5q` in 9222 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9223 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9224 lt_prog_compiler_pic='-KPIC' 9225 lt_prog_compiler_static='-Bstatic' 9226 lt_prog_compiler_wl='' 9227 ;; 9228 *Sun\ F* | *Sun*Fortran*) 9229 lt_prog_compiler_pic='-KPIC' 9230 lt_prog_compiler_static='-Bstatic' 9231 lt_prog_compiler_wl='-Qoption ld ' 9232 ;; 9233 *Sun\ C*) 9234 # Sun C 5.9 9235 lt_prog_compiler_pic='-KPIC' 9236 lt_prog_compiler_static='-Bstatic' 9237 lt_prog_compiler_wl='-Wl,' 9238 ;; 9239 *Intel*\ [CF]*Compiler*) 9240 lt_prog_compiler_wl='-Wl,' 9241 lt_prog_compiler_pic='-fPIC' 9242 lt_prog_compiler_static='-static' 9243 ;; 9244 *Portland\ Group*) 9245 lt_prog_compiler_wl='-Wl,' 9246 lt_prog_compiler_pic='-fpic' 9247 lt_prog_compiler_static='-Bstatic' 9248 ;; 9249 esac 9250 ;; 9251 esac 9252 ;; 9253 9254 newsos6) 9255 lt_prog_compiler_pic='-KPIC' 9256 lt_prog_compiler_static='-Bstatic' 9257 ;; 9258 9259 *nto* | *qnx*) 9260 # QNX uses GNU C++, but need to define -shared option too, otherwise 9261 # it will coredump. 9262 lt_prog_compiler_pic='-fPIC -shared' 9263 ;; 9264 9265 osf3* | osf4* | osf5*) 9266 lt_prog_compiler_wl='-Wl,' 9267 # All OSF/1 code is PIC. 9268 lt_prog_compiler_static='-non_shared' 9269 ;; 9270 9271 rdos*) 9272 lt_prog_compiler_static='-non_shared' 9273 ;; 9274 9275 solaris*) 9276 lt_prog_compiler_pic='-KPIC' 9277 lt_prog_compiler_static='-Bstatic' 9278 case $cc_basename in 9279 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9280 lt_prog_compiler_wl='-Qoption ld ';; 9281 *) 9282 lt_prog_compiler_wl='-Wl,';; 9283 esac 9284 ;; 9285 9286 sunos4*) 9287 lt_prog_compiler_wl='-Qoption ld ' 9288 lt_prog_compiler_pic='-PIC' 9289 lt_prog_compiler_static='-Bstatic' 9290 ;; 9291 9292 sysv4 | sysv4.2uw2* | sysv4.3*) 9293 lt_prog_compiler_wl='-Wl,' 9294 lt_prog_compiler_pic='-KPIC' 9295 lt_prog_compiler_static='-Bstatic' 9296 ;; 9297 9298 sysv4*MP*) 9299 if test -d /usr/nec; then 9300 lt_prog_compiler_pic='-Kconform_pic' 9301 lt_prog_compiler_static='-Bstatic' 9302 fi 9303 ;; 9304 9305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9306 lt_prog_compiler_wl='-Wl,' 9307 lt_prog_compiler_pic='-KPIC' 9308 lt_prog_compiler_static='-Bstatic' 9309 ;; 9310 9311 unicos*) 9312 lt_prog_compiler_wl='-Wl,' 9313 lt_prog_compiler_can_build_shared=no 9314 ;; 9315 9316 uts4*) 9317 lt_prog_compiler_pic='-pic' 9318 lt_prog_compiler_static='-Bstatic' 9319 ;; 9320 9321 *) 9322 lt_prog_compiler_can_build_shared=no 9323 ;; 9324 esac 9325 fi 9326 9327case $host_os in 9328 # For platforms that do not support PIC, -DPIC is meaningless: 9329 *djgpp*) 9330 lt_prog_compiler_pic= 9331 ;; 9332 *) 9333 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC" 9334 ;; 9335esac 9336 9337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9338printf %s "checking for $compiler option to produce PIC... " >&6; } 9339if test ${lt_cv_prog_compiler_pic+y} 9340then : 9341 printf %s "(cached) " >&6 9342else $as_nop 9343 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9344fi 9345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9346printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9347lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9348 9349# 9350# Check to make sure the PIC flag actually works. 9351# 9352if test -n "$lt_prog_compiler_pic"; then 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9354printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9355if test ${lt_cv_prog_compiler_pic_works+y} 9356then : 9357 printf %s "(cached) " >&6 9358else $as_nop 9359 lt_cv_prog_compiler_pic_works=no 9360 ac_outfile=conftest.$ac_objext 9361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9362 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC" ## exclude from sc_useless_quotes_in_assignment 9363 # Insert the option either (1) after the last *FLAGS variable, or 9364 # (2) before a word containing "conftest.", or (3) at the end. 9365 # Note that $ac_compile itself does not contain backslashes and begins 9366 # with a dollar sign (not a hyphen), so the echo should work correctly. 9367 # The option is referenced via a variable to avoid confusing sed. 9368 lt_compile=`echo "$ac_compile" | $SED \ 9369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9371 -e 's:$: $lt_compiler_flag:'` 9372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9373 (eval "$lt_compile" 2>conftest.err) 9374 ac_status=$? 9375 cat conftest.err >&5 9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9377 if (exit $ac_status) && test -s "$ac_outfile"; then 9378 # The compiler can only warn and ignore the option if not recognized 9379 # So say no if there are warnings other than the usual output. 9380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9383 lt_cv_prog_compiler_pic_works=yes 9384 fi 9385 fi 9386 $RM conftest* 9387 9388fi 9389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9390printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9391 9392if test yes = "$lt_cv_prog_compiler_pic_works"; then 9393 case $lt_prog_compiler_pic in 9394 "" | " "*) ;; 9395 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9396 esac 9397else 9398 lt_prog_compiler_pic= 9399 lt_prog_compiler_can_build_shared=no 9400fi 9401 9402fi 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414# 9415# Check to make sure the static flag actually works. 9416# 9417wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9419printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9420if test ${lt_cv_prog_compiler_static_works+y} 9421then : 9422 printf %s "(cached) " >&6 9423else $as_nop 9424 lt_cv_prog_compiler_static_works=no 9425 save_LDFLAGS=$LDFLAGS 9426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9427 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9429 # The linker can only warn and ignore the option if not recognized 9430 # So say no if there are warnings 9431 if test -s conftest.err; then 9432 # Append any errors to the config.log. 9433 cat conftest.err 1>&5 9434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9436 if diff conftest.exp conftest.er2 >/dev/null; then 9437 lt_cv_prog_compiler_static_works=yes 9438 fi 9439 else 9440 lt_cv_prog_compiler_static_works=yes 9441 fi 9442 fi 9443 $RM -r conftest* 9444 LDFLAGS=$save_LDFLAGS 9445 9446fi 9447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9448printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9449 9450if test yes = "$lt_cv_prog_compiler_static_works"; then 9451 : 9452else 9453 lt_prog_compiler_static= 9454fi 9455 9456 9457 9458 9459 9460 9461 9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9463printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9464if test ${lt_cv_prog_compiler_c_o+y} 9465then : 9466 printf %s "(cached) " >&6 9467else $as_nop 9468 lt_cv_prog_compiler_c_o=no 9469 $RM -r conftest 2>/dev/null 9470 mkdir conftest 9471 cd conftest 9472 mkdir out 9473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9474 9475 lt_compiler_flag="-o out/conftest2.$ac_objext" 9476 # Insert the option either (1) after the last *FLAGS variable, or 9477 # (2) before a word containing "conftest.", or (3) at the end. 9478 # Note that $ac_compile itself does not contain backslashes and begins 9479 # with a dollar sign (not a hyphen), so the echo should work correctly. 9480 lt_compile=`echo "$ac_compile" | $SED \ 9481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9483 -e 's:$: $lt_compiler_flag:'` 9484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9485 (eval "$lt_compile" 2>out/conftest.err) 9486 ac_status=$? 9487 cat out/conftest.err >&5 9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9489 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9490 then 9491 # The compiler can only warn and ignore the option if not recognized 9492 # So say no if there are warnings 9493 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9494 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9495 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9496 lt_cv_prog_compiler_c_o=yes 9497 fi 9498 fi 9499 chmod u+w . 2>&5 9500 $RM conftest* 9501 # SGI C++ compiler will create directory out/ii_files/ for 9502 # template instantiation 9503 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9504 $RM out/* && rmdir out 9505 cd .. 9506 $RM -r conftest 9507 $RM conftest* 9508 9509fi 9510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9511printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9512 9513 9514 9515 9516 9517 9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9519printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9520if test ${lt_cv_prog_compiler_c_o+y} 9521then : 9522 printf %s "(cached) " >&6 9523else $as_nop 9524 lt_cv_prog_compiler_c_o=no 9525 $RM -r conftest 2>/dev/null 9526 mkdir conftest 9527 cd conftest 9528 mkdir out 9529 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9530 9531 lt_compiler_flag="-o out/conftest2.$ac_objext" 9532 # Insert the option either (1) after the last *FLAGS variable, or 9533 # (2) before a word containing "conftest.", or (3) at the end. 9534 # Note that $ac_compile itself does not contain backslashes and begins 9535 # with a dollar sign (not a hyphen), so the echo should work correctly. 9536 lt_compile=`echo "$ac_compile" | $SED \ 9537 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9539 -e 's:$: $lt_compiler_flag:'` 9540 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9541 (eval "$lt_compile" 2>out/conftest.err) 9542 ac_status=$? 9543 cat out/conftest.err >&5 9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9545 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9546 then 9547 # The compiler can only warn and ignore the option if not recognized 9548 # So say no if there are warnings 9549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9550 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9551 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9552 lt_cv_prog_compiler_c_o=yes 9553 fi 9554 fi 9555 chmod u+w . 2>&5 9556 $RM conftest* 9557 # SGI C++ compiler will create directory out/ii_files/ for 9558 # template instantiation 9559 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9560 $RM out/* && rmdir out 9561 cd .. 9562 $RM -r conftest 9563 $RM conftest* 9564 9565fi 9566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9567printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9568 9569 9570 9571 9572hard_links=nottested 9573if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9574 # do not overwrite the value of need_locks provided by the user 9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9576printf %s "checking if we can lock with hard links... " >&6; } 9577 hard_links=yes 9578 $RM conftest* 9579 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9580 touch conftest.a 9581 ln conftest.a conftest.b 2>&5 || hard_links=no 9582 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9584printf "%s\n" "$hard_links" >&6; } 9585 if test no = "$hard_links"; then 9586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9587printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9588 need_locks=warn 9589 fi 9590else 9591 need_locks=no 9592fi 9593 9594 9595 9596 9597 9598 9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9600printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9601 9602 runpath_var= 9603 allow_undefined_flag= 9604 always_export_symbols=no 9605 archive_cmds= 9606 archive_expsym_cmds= 9607 compiler_needs_object=no 9608 enable_shared_with_static_runtimes=no 9609 export_dynamic_flag_spec= 9610 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9611 hardcode_automatic=no 9612 hardcode_direct=no 9613 hardcode_direct_absolute=no 9614 hardcode_libdir_flag_spec= 9615 hardcode_libdir_separator= 9616 hardcode_minus_L=no 9617 hardcode_shlibpath_var=unsupported 9618 inherit_rpath=no 9619 link_all_deplibs=unknown 9620 module_cmds= 9621 module_expsym_cmds= 9622 old_archive_from_new_cmds= 9623 old_archive_from_expsyms_cmds= 9624 thread_safe_flag_spec= 9625 whole_archive_flag_spec= 9626 # include_expsyms should be a list of space-separated symbols to be *always* 9627 # included in the symbol list 9628 include_expsyms= 9629 # exclude_expsyms can be an extended regexp of symbols to exclude 9630 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9631 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9632 # as well as any symbol that contains 'd'. 9633 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9634 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9635 # platforms (ab)use it in PIC code, but their linkers get confused if 9636 # the symbol is explicitly referenced. Since portable code cannot 9637 # rely on this symbol name, it's probably fine to never include it in 9638 # preloaded symbol tables. 9639 # Exclude shared library initialization/finalization symbols. 9640 extract_expsyms_cmds= 9641 9642 case $host_os in 9643 cygwin* | mingw* | pw32* | cegcc*) 9644 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9645 # When not using gcc, we currently assume that we are using 9646 # Microsoft Visual C++. 9647 if test yes != "$GCC"; then 9648 with_gnu_ld=no 9649 fi 9650 ;; 9651 interix*) 9652 # we just hope/assume this is gcc and not c89 (= MSVC++) 9653 with_gnu_ld=yes 9654 ;; 9655 openbsd* | bitrig*) 9656 with_gnu_ld=no 9657 ;; 9658 linux* | k*bsd*-gnu | gnu*) 9659 link_all_deplibs=no 9660 ;; 9661 esac 9662 9663 ld_shlibs=yes 9664 9665 # On some targets, GNU ld is compatible enough with the native linker 9666 # that we're better off using the native interface for both. 9667 lt_use_gnu_ld_interface=no 9668 if test yes = "$with_gnu_ld"; then 9669 case $host_os in 9670 aix*) 9671 # The AIX port of GNU ld has always aspired to compatibility 9672 # with the native linker. However, as the warning in the GNU ld 9673 # block says, versions before 2.19.5* couldn't really create working 9674 # shared libraries, regardless of the interface used. 9675 case `$LD -v 2>&1` in 9676 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9677 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9678 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9679 *) 9680 lt_use_gnu_ld_interface=yes 9681 ;; 9682 esac 9683 ;; 9684 *) 9685 lt_use_gnu_ld_interface=yes 9686 ;; 9687 esac 9688 fi 9689 9690 if test yes = "$lt_use_gnu_ld_interface"; then 9691 # If archive_cmds runs LD, not CC, wlarc should be empty 9692 wlarc='$wl' 9693 9694 # Set some defaults for GNU ld with shared library support. These 9695 # are reset later if shared libraries are not supported. Putting them 9696 # here allows them to be overridden if necessary. 9697 runpath_var=LD_RUN_PATH 9698 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9699 export_dynamic_flag_spec='$wl--export-dynamic' 9700 # ancient GNU ld didn't support --whole-archive et. al. 9701 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9702 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9703 else 9704 whole_archive_flag_spec= 9705 fi 9706 supports_anon_versioning=no 9707 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9708 *GNU\ gold*) supports_anon_versioning=yes ;; 9709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9712 *\ 2.11.*) ;; # other 2.11 versions 9713 *) supports_anon_versioning=yes ;; 9714 esac 9715 9716 # See if GNU ld supports shared libraries. 9717 case $host_os in 9718 aix[3-9]*) 9719 # On AIX/PPC, the GNU linker is very broken 9720 if test ia64 != "$host_cpu"; then 9721 ld_shlibs=no 9722 cat <<_LT_EOF 1>&2 9723 9724*** Warning: the GNU linker, at least up to release 2.19, is reported 9725*** to be unable to reliably create shared libraries on AIX. 9726*** Therefore, libtool is disabling shared libraries support. If you 9727*** really care for shared libraries, you may want to install binutils 9728*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9729*** You will then need to restart the configuration process. 9730 9731_LT_EOF 9732 fi 9733 ;; 9734 9735 amigaos*) 9736 case $host_cpu in 9737 powerpc) 9738 # see comment about AmigaOS4 .so support 9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9740 archive_expsym_cmds='' 9741 ;; 9742 m68k) 9743 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)' 9744 hardcode_libdir_flag_spec='-L$libdir' 9745 hardcode_minus_L=yes 9746 ;; 9747 esac 9748 ;; 9749 9750 beos*) 9751 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9752 allow_undefined_flag=unsupported 9753 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9754 # support --undefined. This deserves some investigation. FIXME 9755 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9756 else 9757 ld_shlibs=no 9758 fi 9759 ;; 9760 9761 cygwin* | mingw* | pw32* | cegcc*) 9762 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9763 # as there is no search path for DLLs. 9764 hardcode_libdir_flag_spec='-L$libdir' 9765 export_dynamic_flag_spec='$wl--export-all-symbols' 9766 allow_undefined_flag=unsupported 9767 always_export_symbols=no 9768 enable_shared_with_static_runtimes=yes 9769 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' 9770 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9771 9772 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9774 # If the export-symbols file already is a .def file, use it as 9775 # is; otherwise, prepend EXPORTS... 9776 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9777 cp $export_symbols $output_objdir/$soname.def; 9778 else 9779 echo EXPORTS > $output_objdir/$soname.def; 9780 cat $export_symbols >> $output_objdir/$soname.def; 9781 fi~ 9782 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9783 else 9784 ld_shlibs=no 9785 fi 9786 ;; 9787 9788 haiku*) 9789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9790 link_all_deplibs=yes 9791 ;; 9792 9793 os2*) 9794 hardcode_libdir_flag_spec='-L$libdir' 9795 hardcode_minus_L=yes 9796 allow_undefined_flag=unsupported 9797 shrext_cmds=.dll 9798 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9799 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9800 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9801 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9802 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9803 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9804 emximp -o $lib $output_objdir/$libname.def' 9805 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9806 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9807 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9808 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9809 prefix_cmds="$SED"~ 9810 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9811 prefix_cmds="$prefix_cmds -e 1d"; 9812 fi~ 9813 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9814 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9815 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9816 emximp -o $lib $output_objdir/$libname.def' 9817 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9818 enable_shared_with_static_runtimes=yes 9819 ;; 9820 9821 interix[3-9]*) 9822 hardcode_direct=no 9823 hardcode_shlibpath_var=no 9824 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9825 export_dynamic_flag_spec='$wl-E' 9826 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9827 # Instead, shared libraries are loaded at an image base (0x10000000 by 9828 # default) and relocated if they conflict, which is a slow very memory 9829 # consuming and fragmenting process. To avoid this, we pick a random, 9830 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9831 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9832 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9833 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' 9834 ;; 9835 9836 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9837 tmp_diet=no 9838 if test linux-dietlibc = "$host_os"; then 9839 case $cc_basename in 9840 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9841 esac 9842 fi 9843 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9844 && test no = "$tmp_diet" 9845 then 9846 tmp_addflag=' $pic_flag' 9847 tmp_sharedflag='-shared' 9848 case $cc_basename,$host_cpu in 9849 pgcc*) # Portland Group C compiler 9850 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' 9851 tmp_addflag=' $pic_flag' 9852 ;; 9853 pgf77* | pgf90* | pgf95* | pgfortran*) 9854 # Portland Group f77 and f90 compilers 9855 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' 9856 tmp_addflag=' $pic_flag -Mnomain' ;; 9857 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9858 tmp_addflag=' -i_dynamic' ;; 9859 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9860 tmp_addflag=' -i_dynamic -nofor_main' ;; 9861 ifc* | ifort*) # Intel Fortran compiler 9862 tmp_addflag=' -nofor_main' ;; 9863 lf95*) # Lahey Fortran 8.1 9864 whole_archive_flag_spec= 9865 tmp_sharedflag='--shared' ;; 9866 nagfor*) # NAGFOR 5.3 9867 tmp_sharedflag='-Wl,-shared' ;; 9868 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9869 tmp_sharedflag='-qmkshrobj' 9870 tmp_addflag= ;; 9871 nvcc*) # Cuda Compiler Driver 2.2 9872 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' 9873 compiler_needs_object=yes 9874 ;; 9875 esac 9876 case `$CC -V 2>&1 | sed 5q` in 9877 *Sun\ C*) # Sun C 5.9 9878 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' 9879 compiler_needs_object=yes 9880 tmp_sharedflag='-G' ;; 9881 *Sun\ F*) # Sun Fortran 8.3 9882 tmp_sharedflag='-G' ;; 9883 esac 9884 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9885 9886 if test yes = "$supports_anon_versioning"; then 9887 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9889 echo "local: *; };" >> $output_objdir/$libname.ver~ 9890 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9891 fi 9892 9893 case $cc_basename in 9894 tcc*) 9895 export_dynamic_flag_spec='-rdynamic' 9896 ;; 9897 xlf* | bgf* | bgxlf* | mpixlf*) 9898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9899 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9900 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9901 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9902 if test yes = "$supports_anon_versioning"; then 9903 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9904 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9905 echo "local: *; };" >> $output_objdir/$libname.ver~ 9906 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9907 fi 9908 ;; 9909 esac 9910 else 9911 ld_shlibs=no 9912 fi 9913 ;; 9914 9915 netbsd* | netbsdelf*-gnu) 9916 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9917 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9918 wlarc= 9919 else 9920 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9921 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9922 fi 9923 ;; 9924 9925 solaris*) 9926 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9927 ld_shlibs=no 9928 cat <<_LT_EOF 1>&2 9929 9930*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9931*** create shared libraries on Solaris systems. Therefore, libtool 9932*** is disabling shared libraries support. We urge you to upgrade GNU 9933*** binutils to release 2.9.1 or newer. Another option is to modify 9934*** your PATH or compiler configuration so that the native linker is 9935*** used, and then restart. 9936 9937_LT_EOF 9938 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9939 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9940 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9941 else 9942 ld_shlibs=no 9943 fi 9944 ;; 9945 9946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9947 case `$LD -v 2>&1` in 9948 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9949 ld_shlibs=no 9950 cat <<_LT_EOF 1>&2 9951 9952*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9953*** reliably create shared libraries on SCO systems. Therefore, libtool 9954*** is disabling shared libraries support. We urge you to upgrade GNU 9955*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9956*** your PATH or compiler configuration so that the native linker is 9957*** used, and then restart. 9958 9959_LT_EOF 9960 ;; 9961 *) 9962 # For security reasons, it is highly recommended that you always 9963 # use absolute paths for naming shared libraries, and exclude the 9964 # DT_RUNPATH tag from executables and libraries. But doing so 9965 # requires that you compile everything twice, which is a pain. 9966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9967 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9969 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9970 else 9971 ld_shlibs=no 9972 fi 9973 ;; 9974 esac 9975 ;; 9976 9977 sunos4*) 9978 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9979 wlarc= 9980 hardcode_direct=yes 9981 hardcode_shlibpath_var=no 9982 ;; 9983 9984 *) 9985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9986 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9987 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9988 else 9989 ld_shlibs=no 9990 fi 9991 ;; 9992 esac 9993 9994 if test no = "$ld_shlibs"; then 9995 runpath_var= 9996 hardcode_libdir_flag_spec= 9997 export_dynamic_flag_spec= 9998 whole_archive_flag_spec= 9999 fi 10000 else 10001 # PORTME fill in a description of your system's linker (not GNU ld) 10002 case $host_os in 10003 aix3*) 10004 allow_undefined_flag=unsupported 10005 always_export_symbols=yes 10006 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' 10007 # Note: this linker hardcodes the directories in LIBPATH if there 10008 # are no directories specified by -L. 10009 hardcode_minus_L=yes 10010 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10011 # Neither direct hardcoding nor static linking is supported with a 10012 # broken collect2. 10013 hardcode_direct=unsupported 10014 fi 10015 ;; 10016 10017 aix[4-9]*) 10018 if test ia64 = "$host_cpu"; then 10019 # On IA64, the linker does run time linking by default, so we don't 10020 # have to do anything special. 10021 aix_use_runtimelinking=no 10022 exp_sym_flag='-Bexport' 10023 no_entry_flag= 10024 else 10025 # If we're using GNU nm, then we don't want the "-C" option. 10026 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10027 # Without the "-l" option, or with the "-B" option, AIX nm treats 10028 # weak defined symbols like other global defined symbols, whereas 10029 # GNU nm marks them as "W". 10030 # While the 'weak' keyword is ignored in the Export File, we need 10031 # it in the Import File for the 'aix-soname' feature, so we have 10032 # to replace the "-B" option with "-P" for AIX nm. 10033 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10034 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' 10035 else 10036 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10037 fi 10038 aix_use_runtimelinking=no 10039 10040 # Test if we are trying to use run time linking or normal 10041 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10042 # have runtime linking enabled, and use it for executables. 10043 # For shared libraries, we enable/disable runtime linking 10044 # depending on the kind of the shared library created - 10045 # when "with_aix_soname,aix_use_runtimelinking" is: 10046 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10047 # "aix,yes" lib.so shared, rtl:yes, for executables 10048 # lib.a static archive 10049 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10050 # lib.a(lib.so.V) shared, rtl:no, for executables 10051 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10052 # lib.a(lib.so.V) shared, rtl:no 10053 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10054 # lib.a static archive 10055 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10056 for ld_flag in $LDFLAGS; do 10057 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10058 aix_use_runtimelinking=yes 10059 break 10060 fi 10061 done 10062 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10063 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10064 # so we don't have lib.a shared libs to link our executables. 10065 # We have to force runtime linking in this case. 10066 aix_use_runtimelinking=yes 10067 LDFLAGS="$LDFLAGS -Wl,-brtl" 10068 fi 10069 ;; 10070 esac 10071 10072 exp_sym_flag='-bexport' 10073 no_entry_flag='-bnoentry' 10074 fi 10075 10076 # When large executables or shared objects are built, AIX ld can 10077 # have problems creating the table of contents. If linking a library 10078 # or program results in "error TOC overflow" add -mminimal-toc to 10079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10081 10082 archive_cmds='' 10083 hardcode_direct=yes 10084 hardcode_direct_absolute=yes 10085 hardcode_libdir_separator=':' 10086 link_all_deplibs=yes 10087 file_list_spec='$wl-f,' 10088 case $with_aix_soname,$aix_use_runtimelinking in 10089 aix,*) ;; # traditional, no import file 10090 svr4,* | *,yes) # use import file 10091 # The Import File defines what to hardcode. 10092 hardcode_direct=no 10093 hardcode_direct_absolute=no 10094 ;; 10095 esac 10096 10097 if test yes = "$GCC"; then 10098 case $host_os in aix4.[012]|aix4.[012].*) 10099 # We only want to do this on AIX 4.2 and lower, the check 10100 # below for broken collect2 doesn't work under 4.3+ 10101 collect2name=`$CC -print-prog-name=collect2` 10102 if test -f "$collect2name" && 10103 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10104 then 10105 # We have reworked collect2 10106 : 10107 else 10108 # We have old collect2 10109 hardcode_direct=unsupported 10110 # It fails to find uninstalled libraries when the uninstalled 10111 # path is not listed in the libpath. Setting hardcode_minus_L 10112 # to unsupported forces relinking 10113 hardcode_minus_L=yes 10114 hardcode_libdir_flag_spec='-L$libdir' 10115 hardcode_libdir_separator= 10116 fi 10117 ;; 10118 esac 10119 shared_flag='-shared' 10120 if test yes = "$aix_use_runtimelinking"; then 10121 shared_flag="$shared_flag "'$wl-G' 10122 fi 10123 # Need to ensure runtime linking is disabled for the traditional 10124 # shared library, or the linker may eventually find shared libraries 10125 # /with/ Import File - we do not want to mix them. 10126 shared_flag_aix='-shared' 10127 shared_flag_svr4='-shared $wl-G' 10128 else 10129 # not using gcc 10130 if test ia64 = "$host_cpu"; then 10131 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10132 # chokes on -Wl,-G. The following line is correct: 10133 shared_flag='-G' 10134 else 10135 if test yes = "$aix_use_runtimelinking"; then 10136 shared_flag='$wl-G' 10137 else 10138 shared_flag='$wl-bM:SRE' 10139 fi 10140 shared_flag_aix='$wl-bM:SRE' 10141 shared_flag_svr4='$wl-G' 10142 fi 10143 fi 10144 10145 export_dynamic_flag_spec='$wl-bexpall' 10146 # It seems that -bexpall does not export symbols beginning with 10147 # underscore (_), so it is better to generate a list of symbols to export. 10148 always_export_symbols=yes 10149 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10150 # Warning - without using the other runtime loading flags (-brtl), 10151 # -berok will link without error, but may produce a broken library. 10152 allow_undefined_flag='-berok' 10153 # Determine the default libpath from the value encoded in an 10154 # empty executable. 10155 if test set = "${lt_cv_aix_libpath+set}"; then 10156 aix_libpath=$lt_cv_aix_libpath 10157else 10158 if test ${lt_cv_aix_libpath_+y} 10159then : 10160 printf %s "(cached) " >&6 10161else $as_nop 10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10163/* end confdefs.h. */ 10164 10165int 10166main (void) 10167{ 10168 10169 ; 10170 return 0; 10171} 10172_ACEOF 10173if ac_fn_c_try_link "$LINENO" 10174then : 10175 10176 lt_aix_libpath_sed=' 10177 /Import File Strings/,/^$/ { 10178 /^0/ { 10179 s/^0 *\([^ ]*\) *$/\1/ 10180 p 10181 } 10182 }' 10183 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10184 # Check for a 64-bit object if we didn't find anything. 10185 if test -z "$lt_cv_aix_libpath_"; then 10186 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10187 fi 10188fi 10189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10190 conftest$ac_exeext conftest.$ac_ext 10191 if test -z "$lt_cv_aix_libpath_"; then 10192 lt_cv_aix_libpath_=/usr/lib:/lib 10193 fi 10194 10195fi 10196 10197 aix_libpath=$lt_cv_aix_libpath_ 10198fi 10199 10200 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10201 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 10202 else 10203 if test ia64 = "$host_cpu"; then 10204 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10205 allow_undefined_flag="-z nodefs" 10206 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" 10207 else 10208 # Determine the default libpath from the value encoded in an 10209 # empty executable. 10210 if test set = "${lt_cv_aix_libpath+set}"; then 10211 aix_libpath=$lt_cv_aix_libpath 10212else 10213 if test ${lt_cv_aix_libpath_+y} 10214then : 10215 printf %s "(cached) " >&6 10216else $as_nop 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219 10220int 10221main (void) 10222{ 10223 10224 ; 10225 return 0; 10226} 10227_ACEOF 10228if ac_fn_c_try_link "$LINENO" 10229then : 10230 10231 lt_aix_libpath_sed=' 10232 /Import File Strings/,/^$/ { 10233 /^0/ { 10234 s/^0 *\([^ ]*\) *$/\1/ 10235 p 10236 } 10237 }' 10238 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10239 # Check for a 64-bit object if we didn't find anything. 10240 if test -z "$lt_cv_aix_libpath_"; then 10241 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10242 fi 10243fi 10244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10245 conftest$ac_exeext conftest.$ac_ext 10246 if test -z "$lt_cv_aix_libpath_"; then 10247 lt_cv_aix_libpath_=/usr/lib:/lib 10248 fi 10249 10250fi 10251 10252 aix_libpath=$lt_cv_aix_libpath_ 10253fi 10254 10255 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10256 # Warning - without using the other run time loading flags, 10257 # -berok will link without error, but may produce a broken library. 10258 no_undefined_flag=' $wl-bernotok' 10259 allow_undefined_flag=' $wl-berok' 10260 if test yes = "$with_gnu_ld"; then 10261 # We only use this code for GNU lds that support --whole-archive. 10262 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10263 else 10264 # Exported symbols can be pulled into shared objects from archives 10265 whole_archive_flag_spec='$convenience' 10266 fi 10267 archive_cmds_need_lc=yes 10268 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10269 # -brtl affects multiple linker settings, -berok does not and is overridden later 10270 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10271 if test svr4 != "$with_aix_soname"; then 10272 # This is similar to how AIX traditionally builds its shared libraries. 10273 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' 10274 fi 10275 if test aix != "$with_aix_soname"; then 10276 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' 10277 else 10278 # used by -dlpreopen to get the symbols 10279 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10280 fi 10281 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10282 fi 10283 fi 10284 ;; 10285 10286 amigaos*) 10287 case $host_cpu in 10288 powerpc) 10289 # see comment about AmigaOS4 .so support 10290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10291 archive_expsym_cmds='' 10292 ;; 10293 m68k) 10294 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)' 10295 hardcode_libdir_flag_spec='-L$libdir' 10296 hardcode_minus_L=yes 10297 ;; 10298 esac 10299 ;; 10300 10301 bsdi[45]*) 10302 export_dynamic_flag_spec=-rdynamic 10303 ;; 10304 10305 cygwin* | mingw* | pw32* | cegcc*) 10306 # When not using gcc, we currently assume that we are using 10307 # Microsoft Visual C++. 10308 # hardcode_libdir_flag_spec is actually meaningless, as there is 10309 # no search path for DLLs. 10310 case $cc_basename in 10311 cl*) 10312 # Native MSVC 10313 hardcode_libdir_flag_spec=' ' 10314 allow_undefined_flag=unsupported 10315 always_export_symbols=yes 10316 file_list_spec='@' 10317 # Tell ltmain to make .lib files, not .a files. 10318 libext=lib 10319 # Tell ltmain to make .dll files, not .so files. 10320 shrext_cmds=.dll 10321 # FIXME: Setting linknames here is a bad hack. 10322 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10323 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10324 cp "$export_symbols" "$output_objdir/$soname.def"; 10325 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10326 else 10327 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10328 fi~ 10329 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10330 linknames=' 10331 # The linker will not automatically build a static lib if we build a DLL. 10332 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10333 enable_shared_with_static_runtimes=yes 10334 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10336 # Don't use ranlib 10337 old_postinstall_cmds='chmod 644 $oldlib' 10338 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10339 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10340 case $lt_outputfile in 10341 *.exe|*.EXE) ;; 10342 *) 10343 lt_outputfile=$lt_outputfile.exe 10344 lt_tool_outputfile=$lt_tool_outputfile.exe 10345 ;; 10346 esac~ 10347 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10348 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10349 $RM "$lt_outputfile.manifest"; 10350 fi' 10351 ;; 10352 *) 10353 # Assume MSVC wrapper 10354 hardcode_libdir_flag_spec=' ' 10355 allow_undefined_flag=unsupported 10356 # Tell ltmain to make .lib files, not .a files. 10357 libext=lib 10358 # Tell ltmain to make .dll files, not .so files. 10359 shrext_cmds=.dll 10360 # FIXME: Setting linknames here is a bad hack. 10361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10362 # The linker will automatically build a .lib file if we build a DLL. 10363 old_archive_from_new_cmds='true' 10364 # FIXME: Should let the user specify the lib program. 10365 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10366 enable_shared_with_static_runtimes=yes 10367 ;; 10368 esac 10369 ;; 10370 10371 darwin* | rhapsody*) 10372 10373 10374 archive_cmds_need_lc=no 10375 hardcode_direct=no 10376 hardcode_automatic=yes 10377 hardcode_shlibpath_var=unsupported 10378 if test yes = "$lt_cv_ld_force_load"; then 10379 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\"`' 10380 10381 else 10382 whole_archive_flag_spec='' 10383 fi 10384 link_all_deplibs=yes 10385 allow_undefined_flag=$_lt_dar_allow_undefined 10386 case $cc_basename in 10387 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10388 *) _lt_dar_can_shared=$GCC ;; 10389 esac 10390 if test yes = "$_lt_dar_can_shared"; then 10391 output_verbose_link_cmd=func_echo_all 10392 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10393 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10394 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" 10395 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" 10396 10397 else 10398 ld_shlibs=no 10399 fi 10400 10401 ;; 10402 10403 dgux*) 10404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10405 hardcode_libdir_flag_spec='-L$libdir' 10406 hardcode_shlibpath_var=no 10407 ;; 10408 10409 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10410 # support. Future versions do this automatically, but an explicit c++rt0.o 10411 # does not break anything, and helps significantly (at the cost of a little 10412 # extra space). 10413 freebsd2.2*) 10414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10415 hardcode_libdir_flag_spec='-R$libdir' 10416 hardcode_direct=yes 10417 hardcode_shlibpath_var=no 10418 ;; 10419 10420 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10421 freebsd2.*) 10422 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10423 hardcode_direct=yes 10424 hardcode_minus_L=yes 10425 hardcode_shlibpath_var=no 10426 ;; 10427 10428 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10429 freebsd* | dragonfly*) 10430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10431 hardcode_libdir_flag_spec='-R$libdir' 10432 hardcode_direct=yes 10433 hardcode_shlibpath_var=no 10434 ;; 10435 10436 hpux9*) 10437 if test yes = "$GCC"; then 10438 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' 10439 else 10440 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' 10441 fi 10442 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10443 hardcode_libdir_separator=: 10444 hardcode_direct=yes 10445 10446 # hardcode_minus_L: Not really in the search PATH, 10447 # but as the default location of the library. 10448 hardcode_minus_L=yes 10449 export_dynamic_flag_spec='$wl-E' 10450 ;; 10451 10452 hpux10*) 10453 if test yes,no = "$GCC,$with_gnu_ld"; then 10454 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10455 else 10456 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10457 fi 10458 if test no = "$with_gnu_ld"; then 10459 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10460 hardcode_libdir_separator=: 10461 hardcode_direct=yes 10462 hardcode_direct_absolute=yes 10463 export_dynamic_flag_spec='$wl-E' 10464 # hardcode_minus_L: Not really in the search PATH, 10465 # but as the default location of the library. 10466 hardcode_minus_L=yes 10467 fi 10468 ;; 10469 10470 hpux11*) 10471 if test yes,no = "$GCC,$with_gnu_ld"; then 10472 case $host_cpu in 10473 hppa*64*) 10474 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10475 ;; 10476 ia64*) 10477 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10478 ;; 10479 *) 10480 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10481 ;; 10482 esac 10483 else 10484 case $host_cpu in 10485 hppa*64*) 10486 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10487 ;; 10488 ia64*) 10489 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10490 ;; 10491 *) 10492 10493 # Older versions of the 11.00 compiler do not understand -b yet 10494 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10496printf %s "checking if $CC understands -b... " >&6; } 10497if test ${lt_cv_prog_compiler__b+y} 10498then : 10499 printf %s "(cached) " >&6 10500else $as_nop 10501 lt_cv_prog_compiler__b=no 10502 save_LDFLAGS=$LDFLAGS 10503 LDFLAGS="$LDFLAGS -b" 10504 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10506 # The linker can only warn and ignore the option if not recognized 10507 # So say no if there are warnings 10508 if test -s conftest.err; then 10509 # Append any errors to the config.log. 10510 cat conftest.err 1>&5 10511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10513 if diff conftest.exp conftest.er2 >/dev/null; then 10514 lt_cv_prog_compiler__b=yes 10515 fi 10516 else 10517 lt_cv_prog_compiler__b=yes 10518 fi 10519 fi 10520 $RM -r conftest* 10521 LDFLAGS=$save_LDFLAGS 10522 10523fi 10524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10525printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10526 10527if test yes = "$lt_cv_prog_compiler__b"; then 10528 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10529else 10530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10531fi 10532 10533 ;; 10534 esac 10535 fi 10536 if test no = "$with_gnu_ld"; then 10537 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10538 hardcode_libdir_separator=: 10539 10540 case $host_cpu in 10541 hppa*64*|ia64*) 10542 hardcode_direct=no 10543 hardcode_shlibpath_var=no 10544 ;; 10545 *) 10546 hardcode_direct=yes 10547 hardcode_direct_absolute=yes 10548 export_dynamic_flag_spec='$wl-E' 10549 10550 # hardcode_minus_L: Not really in the search PATH, 10551 # but as the default location of the library. 10552 hardcode_minus_L=yes 10553 ;; 10554 esac 10555 fi 10556 ;; 10557 10558 irix5* | irix6* | nonstopux*) 10559 if test yes = "$GCC"; then 10560 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' 10561 # Try to use the -exported_symbol ld option, if it does not 10562 # work, assume that -exports_file does not work either and 10563 # implicitly export all symbols. 10564 # This should be the same for all languages, so no per-tag cache variable. 10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10566printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10567if test ${lt_cv_irix_exported_symbol+y} 10568then : 10569 printf %s "(cached) " >&6 10570else $as_nop 10571 save_LDFLAGS=$LDFLAGS 10572 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10574/* end confdefs.h. */ 10575int foo (void) { return 0; } 10576_ACEOF 10577if ac_fn_c_try_link "$LINENO" 10578then : 10579 lt_cv_irix_exported_symbol=yes 10580else $as_nop 10581 lt_cv_irix_exported_symbol=no 10582fi 10583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10584 conftest$ac_exeext conftest.$ac_ext 10585 LDFLAGS=$save_LDFLAGS 10586fi 10587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10588printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10589 if test yes = "$lt_cv_irix_exported_symbol"; then 10590 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' 10591 fi 10592 link_all_deplibs=no 10593 else 10594 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' 10595 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' 10596 fi 10597 archive_cmds_need_lc='no' 10598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10599 hardcode_libdir_separator=: 10600 inherit_rpath=yes 10601 link_all_deplibs=yes 10602 ;; 10603 10604 linux*) 10605 case $cc_basename in 10606 tcc*) 10607 # Fabrice Bellard et al's Tiny C Compiler 10608 ld_shlibs=yes 10609 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10610 ;; 10611 esac 10612 ;; 10613 10614 netbsd* | netbsdelf*-gnu) 10615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10617 else 10618 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10619 fi 10620 hardcode_libdir_flag_spec='-R$libdir' 10621 hardcode_direct=yes 10622 hardcode_shlibpath_var=no 10623 ;; 10624 10625 newsos6) 10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10627 hardcode_direct=yes 10628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10629 hardcode_libdir_separator=: 10630 hardcode_shlibpath_var=no 10631 ;; 10632 10633 *nto* | *qnx*) 10634 ;; 10635 10636 openbsd* | bitrig*) 10637 if test -f /usr/libexec/ld.so; then 10638 hardcode_direct=yes 10639 hardcode_shlibpath_var=no 10640 hardcode_direct_absolute=yes 10641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10643 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10644 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10645 export_dynamic_flag_spec='$wl-E' 10646 else 10647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10648 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10649 fi 10650 else 10651 ld_shlibs=no 10652 fi 10653 ;; 10654 10655 os2*) 10656 hardcode_libdir_flag_spec='-L$libdir' 10657 hardcode_minus_L=yes 10658 allow_undefined_flag=unsupported 10659 shrext_cmds=.dll 10660 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10661 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10662 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10663 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10664 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10666 emximp -o $lib $output_objdir/$libname.def' 10667 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10670 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10671 prefix_cmds="$SED"~ 10672 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10673 prefix_cmds="$prefix_cmds -e 1d"; 10674 fi~ 10675 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10676 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10678 emximp -o $lib $output_objdir/$libname.def' 10679 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10680 enable_shared_with_static_runtimes=yes 10681 ;; 10682 10683 osf3*) 10684 if test yes = "$GCC"; then 10685 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10686 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' 10687 else 10688 allow_undefined_flag=' -expect_unresolved \*' 10689 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' 10690 fi 10691 archive_cmds_need_lc='no' 10692 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10693 hardcode_libdir_separator=: 10694 ;; 10695 10696 osf4* | osf5*) # as osf3* with the addition of -msym flag 10697 if test yes = "$GCC"; then 10698 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10699 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' 10700 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10701 else 10702 allow_undefined_flag=' -expect_unresolved \*' 10703 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' 10704 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~ 10705 $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' 10706 10707 # Both c and cxx compiler support -rpath directly 10708 hardcode_libdir_flag_spec='-rpath $libdir' 10709 fi 10710 archive_cmds_need_lc='no' 10711 hardcode_libdir_separator=: 10712 ;; 10713 10714 solaris*) 10715 no_undefined_flag=' -z defs' 10716 if test yes = "$GCC"; then 10717 wlarc='$wl' 10718 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10719 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10720 $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' 10721 else 10722 case `$CC -V 2>&1` in 10723 *"Compilers 5.0"*) 10724 wlarc='' 10725 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10726 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10727 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10728 ;; 10729 *) 10730 wlarc='$wl' 10731 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10733 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10734 ;; 10735 esac 10736 fi 10737 hardcode_libdir_flag_spec='-R$libdir' 10738 hardcode_shlibpath_var=no 10739 case $host_os in 10740 solaris2.[0-5] | solaris2.[0-5].*) ;; 10741 *) 10742 # The compiler driver will combine and reorder linker options, 10743 # but understands '-z linker_flag'. GCC discards it without '$wl', 10744 # but is careful enough not to reorder. 10745 # Supported since Solaris 2.6 (maybe 2.5.1?) 10746 if test yes = "$GCC"; then 10747 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10748 else 10749 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10750 fi 10751 ;; 10752 esac 10753 link_all_deplibs=yes 10754 ;; 10755 10756 sunos4*) 10757 if test sequent = "$host_vendor"; then 10758 # Use $CC to link under sequent, because it throws in some extra .o 10759 # files that make .init and .fini sections work. 10760 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10761 else 10762 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10763 fi 10764 hardcode_libdir_flag_spec='-L$libdir' 10765 hardcode_direct=yes 10766 hardcode_minus_L=yes 10767 hardcode_shlibpath_var=no 10768 ;; 10769 10770 sysv4) 10771 case $host_vendor in 10772 sni) 10773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10774 hardcode_direct=yes # is this really true??? 10775 ;; 10776 siemens) 10777 ## LD is ld it makes a PLAMLIB 10778 ## CC just makes a GrossModule. 10779 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10780 reload_cmds='$CC -r -o $output$reload_objs' 10781 hardcode_direct=no 10782 ;; 10783 motorola) 10784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10785 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10786 ;; 10787 esac 10788 runpath_var='LD_RUN_PATH' 10789 hardcode_shlibpath_var=no 10790 ;; 10791 10792 sysv4.3*) 10793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10794 hardcode_shlibpath_var=no 10795 export_dynamic_flag_spec='-Bexport' 10796 ;; 10797 10798 sysv4*MP*) 10799 if test -d /usr/nec; then 10800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10801 hardcode_shlibpath_var=no 10802 runpath_var=LD_RUN_PATH 10803 hardcode_runpath_var=yes 10804 ld_shlibs=yes 10805 fi 10806 ;; 10807 10808 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10809 no_undefined_flag='$wl-z,text' 10810 archive_cmds_need_lc=no 10811 hardcode_shlibpath_var=no 10812 runpath_var='LD_RUN_PATH' 10813 10814 if test yes = "$GCC"; then 10815 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10816 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10817 else 10818 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10819 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10820 fi 10821 ;; 10822 10823 sysv5* | sco3.2v5* | sco5v6*) 10824 # Note: We CANNOT use -z defs as we might desire, because we do not 10825 # link with -lc, and that would cause any symbols used from libc to 10826 # always be unresolved, which means just about no library would 10827 # ever link correctly. If we're not using GNU ld we use -z text 10828 # though, which does catch some bad symbols but isn't as heavy-handed 10829 # as -z defs. 10830 no_undefined_flag='$wl-z,text' 10831 allow_undefined_flag='$wl-z,nodefs' 10832 archive_cmds_need_lc=no 10833 hardcode_shlibpath_var=no 10834 hardcode_libdir_flag_spec='$wl-R,$libdir' 10835 hardcode_libdir_separator=':' 10836 link_all_deplibs=yes 10837 export_dynamic_flag_spec='$wl-Bexport' 10838 runpath_var='LD_RUN_PATH' 10839 10840 if test yes = "$GCC"; then 10841 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10842 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10843 else 10844 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10845 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10846 fi 10847 ;; 10848 10849 uts4*) 10850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10851 hardcode_libdir_flag_spec='-L$libdir' 10852 hardcode_shlibpath_var=no 10853 ;; 10854 10855 *) 10856 ld_shlibs=no 10857 ;; 10858 esac 10859 10860 if test sni = "$host_vendor"; then 10861 case $host in 10862 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10863 export_dynamic_flag_spec='$wl-Blargedynsym' 10864 ;; 10865 esac 10866 fi 10867 fi 10868 10869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10870printf "%s\n" "$ld_shlibs" >&6; } 10871test no = "$ld_shlibs" && can_build_shared=no 10872 10873with_gnu_ld=$with_gnu_ld 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889# 10890# Do we need to explicitly link libc? 10891# 10892case "x$archive_cmds_need_lc" in 10893x|xyes) 10894 # Assume -lc should be added 10895 archive_cmds_need_lc=yes 10896 10897 if test yes,yes = "$GCC,$enable_shared"; then 10898 case $archive_cmds in 10899 *'~'*) 10900 # FIXME: we may have to deal with multi-command sequences. 10901 ;; 10902 '$CC '*) 10903 # Test whether the compiler implicitly links with -lc since on some 10904 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10905 # to ld, don't add -lc before -lgcc. 10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10907printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10908if test ${lt_cv_archive_cmds_need_lc+y} 10909then : 10910 printf %s "(cached) " >&6 10911else $as_nop 10912 $RM conftest* 10913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10914 10915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10916 (eval $ac_compile) 2>&5 10917 ac_status=$? 10918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10919 test $ac_status = 0; } 2>conftest.err; then 10920 soname=conftest 10921 lib=conftest 10922 libobjs=conftest.$ac_objext 10923 deplibs= 10924 wl=$lt_prog_compiler_wl 10925 pic_flag=$lt_prog_compiler_pic 10926 compiler_flags=-v 10927 linker_flags=-v 10928 verstring= 10929 output_objdir=. 10930 libname=conftest 10931 lt_save_allow_undefined_flag=$allow_undefined_flag 10932 allow_undefined_flag= 10933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10934 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10935 ac_status=$? 10936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10937 test $ac_status = 0; } 10938 then 10939 lt_cv_archive_cmds_need_lc=no 10940 else 10941 lt_cv_archive_cmds_need_lc=yes 10942 fi 10943 allow_undefined_flag=$lt_save_allow_undefined_flag 10944 else 10945 cat conftest.err 1>&5 10946 fi 10947 $RM conftest* 10948 10949fi 10950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10951printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10952 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10953 ;; 10954 esac 10955 fi 10956 ;; 10957esac 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11111printf %s "checking dynamic linker characteristics... " >&6; } 11112 11113if test yes = "$GCC"; then 11114 case $host_os in 11115 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11116 *) lt_awk_arg='/^libraries:/' ;; 11117 esac 11118 case $host_os in 11119 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11120 *) lt_sed_strip_eq='s|=/|/|g' ;; 11121 esac 11122 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11123 case $lt_search_path_spec in 11124 *\;*) 11125 # if the path contains ";" then we assume it to be the separator 11126 # otherwise default to the standard path separator (i.e. ":") - it is 11127 # assumed that no part of a normal pathname contains ";" but that should 11128 # okay in the real world where ";" in dirpaths is itself problematic. 11129 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11130 ;; 11131 *) 11132 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11133 ;; 11134 esac 11135 # Ok, now we have the path, separated by spaces, we can step through it 11136 # and add multilib dir if necessary... 11137 lt_tmp_lt_search_path_spec= 11138 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11139 # ...but if some path component already ends with the multilib dir we assume 11140 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11141 case "$lt_multi_os_dir; $lt_search_path_spec " in 11142 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11143 lt_multi_os_dir= 11144 ;; 11145 esac 11146 for lt_sys_path in $lt_search_path_spec; do 11147 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11148 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11149 elif test -n "$lt_multi_os_dir"; then 11150 test -d "$lt_sys_path" && \ 11151 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11152 fi 11153 done 11154 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11155BEGIN {RS = " "; FS = "/|\n";} { 11156 lt_foo = ""; 11157 lt_count = 0; 11158 for (lt_i = NF; lt_i > 0; lt_i--) { 11159 if ($lt_i != "" && $lt_i != ".") { 11160 if ($lt_i == "..") { 11161 lt_count++; 11162 } else { 11163 if (lt_count == 0) { 11164 lt_foo = "/" $lt_i lt_foo; 11165 } else { 11166 lt_count--; 11167 } 11168 } 11169 } 11170 } 11171 if (lt_foo != "") { lt_freq[lt_foo]++; } 11172 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11173}'` 11174 # AWK program above erroneously prepends '/' to C:/dos/paths 11175 # for these hosts. 11176 case $host_os in 11177 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11178 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11179 esac 11180 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11181else 11182 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11183fi 11184library_names_spec= 11185libname_spec='lib$name' 11186soname_spec= 11187shrext_cmds=.so 11188postinstall_cmds= 11189postuninstall_cmds= 11190finish_cmds= 11191finish_eval= 11192shlibpath_var= 11193shlibpath_overrides_runpath=unknown 11194version_type=none 11195dynamic_linker="$host_os ld.so" 11196sys_lib_dlsearch_path_spec="/lib /usr/lib" 11197need_lib_prefix=unknown 11198hardcode_into_libs=no 11199 11200# when you set need_version to no, make sure it does not cause -set_version 11201# flags to be left without arguments 11202need_version=unknown 11203 11204 11205 11206case $host_os in 11207aix3*) 11208 version_type=linux # correct to gnu/linux during the next big refactor 11209 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11210 shlibpath_var=LIBPATH 11211 11212 # AIX 3 has no versioning support, so we append a major version to the name. 11213 soname_spec='$libname$release$shared_ext$major' 11214 ;; 11215 11216aix[4-9]*) 11217 version_type=linux # correct to gnu/linux during the next big refactor 11218 need_lib_prefix=no 11219 need_version=no 11220 hardcode_into_libs=yes 11221 if test ia64 = "$host_cpu"; then 11222 # AIX 5 supports IA64 11223 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11224 shlibpath_var=LD_LIBRARY_PATH 11225 else 11226 # With GCC up to 2.95.x, collect2 would create an import file 11227 # for dependence libraries. The import file would start with 11228 # the line '#! .'. This would cause the generated library to 11229 # depend on '.', always an invalid library. This was fixed in 11230 # development snapshots of GCC prior to 3.0. 11231 case $host_os in 11232 aix4 | aix4.[01] | aix4.[01].*) 11233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11234 echo ' yes ' 11235 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11236 : 11237 else 11238 can_build_shared=no 11239 fi 11240 ;; 11241 esac 11242 # Using Import Files as archive members, it is possible to support 11243 # filename-based versioning of shared library archives on AIX. While 11244 # this would work for both with and without runtime linking, it will 11245 # prevent static linking of such archives. So we do filename-based 11246 # shared library versioning with .so extension only, which is used 11247 # when both runtime linking and shared linking is enabled. 11248 # Unfortunately, runtime linking may impact performance, so we do 11249 # not want this to be the default eventually. Also, we use the 11250 # versioned .so libs for executables only if there is the -brtl 11251 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11252 # To allow for filename-based versioning support, we need to create 11253 # libNAME.so.V as an archive file, containing: 11254 # *) an Import File, referring to the versioned filename of the 11255 # archive as well as the shared archive member, telling the 11256 # bitwidth (32 or 64) of that shared object, and providing the 11257 # list of exported symbols of that shared object, eventually 11258 # decorated with the 'weak' keyword 11259 # *) the shared object with the F_LOADONLY flag set, to really avoid 11260 # it being seen by the linker. 11261 # At run time we better use the real file rather than another symlink, 11262 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11263 11264 case $with_aix_soname,$aix_use_runtimelinking in 11265 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11266 # soname into executable. Probably we can add versioning support to 11267 # collect2, so additional links can be useful in future. 11268 aix,yes) # traditional libtool 11269 dynamic_linker='AIX unversionable lib.so' 11270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11271 # instead of lib<name>.a to let people know that these are not 11272 # typical AIX shared libraries. 11273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11274 ;; 11275 aix,no) # traditional AIX only 11276 dynamic_linker='AIX lib.a(lib.so.V)' 11277 # We preserve .a as extension for shared libraries through AIX4.2 11278 # and later when we are not doing run time linking. 11279 library_names_spec='$libname$release.a $libname.a' 11280 soname_spec='$libname$release$shared_ext$major' 11281 ;; 11282 svr4,*) # full svr4 only 11283 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11284 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11285 # We do not specify a path in Import Files, so LIBPATH fires. 11286 shlibpath_overrides_runpath=yes 11287 ;; 11288 *,yes) # both, prefer svr4 11289 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11290 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11291 # unpreferred sharedlib libNAME.a needs extra handling 11292 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"' 11293 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"' 11294 # We do not specify a path in Import Files, so LIBPATH fires. 11295 shlibpath_overrides_runpath=yes 11296 ;; 11297 *,no) # both, prefer aix 11298 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11299 library_names_spec='$libname$release.a $libname.a' 11300 soname_spec='$libname$release$shared_ext$major' 11301 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11302 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)' 11303 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"' 11304 ;; 11305 esac 11306 shlibpath_var=LIBPATH 11307 fi 11308 ;; 11309 11310amigaos*) 11311 case $host_cpu in 11312 powerpc) 11313 # Since July 2007 AmigaOS4 officially supports .so libraries. 11314 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11316 ;; 11317 m68k) 11318 library_names_spec='$libname.ixlibrary $libname.a' 11319 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11320 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' 11321 ;; 11322 esac 11323 ;; 11324 11325beos*) 11326 library_names_spec='$libname$shared_ext' 11327 dynamic_linker="$host_os ld.so" 11328 shlibpath_var=LIBRARY_PATH 11329 ;; 11330 11331bsdi[45]*) 11332 version_type=linux # correct to gnu/linux during the next big refactor 11333 need_version=no 11334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11335 soname_spec='$libname$release$shared_ext$major' 11336 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11337 shlibpath_var=LD_LIBRARY_PATH 11338 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11339 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11340 # the default ld.so.conf also contains /usr/contrib/lib and 11341 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11342 # libtool to hard-code these into programs 11343 ;; 11344 11345cygwin* | mingw* | pw32* | cegcc*) 11346 version_type=windows 11347 shrext_cmds=.dll 11348 need_version=no 11349 need_lib_prefix=no 11350 11351 case $GCC,$cc_basename in 11352 yes,*) 11353 # gcc 11354 library_names_spec='$libname.dll.a' 11355 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11356 postinstall_cmds='base_file=`basename \$file`~ 11357 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11358 dldir=$destdir/`dirname \$dlpath`~ 11359 test -d \$dldir || mkdir -p \$dldir~ 11360 $install_prog $dir/$dlname \$dldir/$dlname~ 11361 chmod a+x \$dldir/$dlname~ 11362 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11363 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11364 fi' 11365 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11366 dlpath=$dir/\$dldll~ 11367 $RM \$dlpath' 11368 shlibpath_overrides_runpath=yes 11369 11370 case $host_os in 11371 cygwin*) 11372 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11373 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11374 11375 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11376 ;; 11377 mingw* | cegcc*) 11378 # MinGW DLLs use traditional 'lib' prefix 11379 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11380 ;; 11381 pw32*) 11382 # pw32 DLLs use 'pw' prefix rather than 'lib' 11383 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11384 ;; 11385 esac 11386 dynamic_linker='Win32 ld.exe' 11387 ;; 11388 11389 *,cl*) 11390 # Native MSVC 11391 libname_spec='$name' 11392 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11393 library_names_spec='$libname.dll.lib' 11394 11395 case $build_os in 11396 mingw*) 11397 sys_lib_search_path_spec= 11398 lt_save_ifs=$IFS 11399 IFS=';' 11400 for lt_path in $LIB 11401 do 11402 IFS=$lt_save_ifs 11403 # Let DOS variable expansion print the short 8.3 style file name. 11404 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11405 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11406 done 11407 IFS=$lt_save_ifs 11408 # Convert to MSYS style. 11409 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11410 ;; 11411 cygwin*) 11412 # Convert to unix form, then to dos form, then back to unix form 11413 # but this time dos style (no spaces!) so that the unix form looks 11414 # like /cygdrive/c/PROGRA~1:/cygdr... 11415 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11416 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11417 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11418 ;; 11419 *) 11420 sys_lib_search_path_spec=$LIB 11421 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11422 # It is most probably a Windows format PATH. 11423 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11424 else 11425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11426 fi 11427 # FIXME: find the short name or the path components, as spaces are 11428 # common. (e.g. "Program Files" -> "PROGRA~1") 11429 ;; 11430 esac 11431 11432 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11433 postinstall_cmds='base_file=`basename \$file`~ 11434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11435 dldir=$destdir/`dirname \$dlpath`~ 11436 test -d \$dldir || mkdir -p \$dldir~ 11437 $install_prog $dir/$dlname \$dldir/$dlname' 11438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11439 dlpath=$dir/\$dldll~ 11440 $RM \$dlpath' 11441 shlibpath_overrides_runpath=yes 11442 dynamic_linker='Win32 link.exe' 11443 ;; 11444 11445 *) 11446 # Assume MSVC wrapper 11447 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11448 dynamic_linker='Win32 ld.exe' 11449 ;; 11450 esac 11451 # FIXME: first we should search . and the directory the executable is in 11452 shlibpath_var=PATH 11453 ;; 11454 11455darwin* | rhapsody*) 11456 dynamic_linker="$host_os dyld" 11457 version_type=darwin 11458 need_lib_prefix=no 11459 need_version=no 11460 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11461 soname_spec='$libname$release$major$shared_ext' 11462 shlibpath_overrides_runpath=yes 11463 shlibpath_var=DYLD_LIBRARY_PATH 11464 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11465 11466 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11467 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11468 ;; 11469 11470dgux*) 11471 version_type=linux # correct to gnu/linux during the next big refactor 11472 need_lib_prefix=no 11473 need_version=no 11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11475 soname_spec='$libname$release$shared_ext$major' 11476 shlibpath_var=LD_LIBRARY_PATH 11477 ;; 11478 11479freebsd* | dragonfly*) 11480 # DragonFly does not have aout. When/if they implement a new 11481 # versioning mechanism, adjust this. 11482 if test -x /usr/bin/objformat; then 11483 objformat=`/usr/bin/objformat` 11484 else 11485 case $host_os in 11486 freebsd[23].*) objformat=aout ;; 11487 *) objformat=elf ;; 11488 esac 11489 fi 11490 version_type=freebsd-$objformat 11491 case $version_type in 11492 freebsd-elf*) 11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11494 soname_spec='$libname$release$shared_ext$major' 11495 need_version=no 11496 need_lib_prefix=no 11497 ;; 11498 freebsd-*) 11499 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11500 need_version=yes 11501 ;; 11502 esac 11503 shlibpath_var=LD_LIBRARY_PATH 11504 case $host_os in 11505 freebsd2.*) 11506 shlibpath_overrides_runpath=yes 11507 ;; 11508 freebsd3.[01]* | freebsdelf3.[01]*) 11509 shlibpath_overrides_runpath=yes 11510 hardcode_into_libs=yes 11511 ;; 11512 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11513 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11514 shlibpath_overrides_runpath=no 11515 hardcode_into_libs=yes 11516 ;; 11517 *) # from 4.6 on, and DragonFly 11518 shlibpath_overrides_runpath=yes 11519 hardcode_into_libs=yes 11520 ;; 11521 esac 11522 ;; 11523 11524haiku*) 11525 version_type=linux # correct to gnu/linux during the next big refactor 11526 need_lib_prefix=no 11527 need_version=no 11528 dynamic_linker="$host_os runtime_loader" 11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11530 soname_spec='$libname$release$shared_ext$major' 11531 shlibpath_var=LIBRARY_PATH 11532 shlibpath_overrides_runpath=no 11533 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11534 hardcode_into_libs=yes 11535 ;; 11536 11537hpux9* | hpux10* | hpux11*) 11538 # Give a soname corresponding to the major version so that dld.sl refuses to 11539 # link against other versions. 11540 version_type=sunos 11541 need_lib_prefix=no 11542 need_version=no 11543 case $host_cpu in 11544 ia64*) 11545 shrext_cmds='.so' 11546 hardcode_into_libs=yes 11547 dynamic_linker="$host_os dld.so" 11548 shlibpath_var=LD_LIBRARY_PATH 11549 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11551 soname_spec='$libname$release$shared_ext$major' 11552 if test 32 = "$HPUX_IA64_MODE"; then 11553 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11554 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11555 else 11556 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11557 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11558 fi 11559 ;; 11560 hppa*64*) 11561 shrext_cmds='.sl' 11562 hardcode_into_libs=yes 11563 dynamic_linker="$host_os dld.sl" 11564 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11567 soname_spec='$libname$release$shared_ext$major' 11568 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11569 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11570 ;; 11571 *) 11572 shrext_cmds='.sl' 11573 dynamic_linker="$host_os dld.sl" 11574 shlibpath_var=SHLIB_PATH 11575 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11577 soname_spec='$libname$release$shared_ext$major' 11578 ;; 11579 esac 11580 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11581 postinstall_cmds='chmod 555 $lib' 11582 # or fails outright, so override atomically: 11583 install_override_mode=555 11584 ;; 11585 11586interix[3-9]*) 11587 version_type=linux # correct to gnu/linux during the next big refactor 11588 need_lib_prefix=no 11589 need_version=no 11590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11591 soname_spec='$libname$release$shared_ext$major' 11592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11593 shlibpath_var=LD_LIBRARY_PATH 11594 shlibpath_overrides_runpath=no 11595 hardcode_into_libs=yes 11596 ;; 11597 11598irix5* | irix6* | nonstopux*) 11599 case $host_os in 11600 nonstopux*) version_type=nonstopux ;; 11601 *) 11602 if test yes = "$lt_cv_prog_gnu_ld"; then 11603 version_type=linux # correct to gnu/linux during the next big refactor 11604 else 11605 version_type=irix 11606 fi ;; 11607 esac 11608 need_lib_prefix=no 11609 need_version=no 11610 soname_spec='$libname$release$shared_ext$major' 11611 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11612 case $host_os in 11613 irix5* | nonstopux*) 11614 libsuff= shlibsuff= 11615 ;; 11616 *) 11617 case $LD in # libtool.m4 will add one of these switches to LD 11618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11619 libsuff= shlibsuff= libmagic=32-bit;; 11620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11621 libsuff=32 shlibsuff=N32 libmagic=N32;; 11622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11623 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11624 *) libsuff= shlibsuff= libmagic=never-match;; 11625 esac 11626 ;; 11627 esac 11628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11629 shlibpath_overrides_runpath=no 11630 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11631 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11632 hardcode_into_libs=yes 11633 ;; 11634 11635# No shared lib support for Linux oldld, aout, or coff. 11636linux*oldld* | linux*aout* | linux*coff*) 11637 dynamic_linker=no 11638 ;; 11639 11640linux*android*) 11641 version_type=none # Android doesn't support versioned libraries. 11642 need_lib_prefix=no 11643 need_version=no 11644 library_names_spec='$libname$release$shared_ext' 11645 soname_spec='$libname$release$shared_ext' 11646 finish_cmds= 11647 shlibpath_var=LD_LIBRARY_PATH 11648 shlibpath_overrides_runpath=yes 11649 11650 # This implies no fast_install, which is unacceptable. 11651 # Some rework will be needed to allow for fast_install 11652 # before this can be enabled. 11653 hardcode_into_libs=yes 11654 11655 dynamic_linker='Android linker' 11656 # Don't embed -rpath directories since the linker doesn't support them. 11657 hardcode_libdir_flag_spec='-L$libdir' 11658 ;; 11659 11660# This must be glibc/ELF. 11661linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11662 version_type=linux # correct to gnu/linux during the next big refactor 11663 need_lib_prefix=no 11664 need_version=no 11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11666 soname_spec='$libname$release$shared_ext$major' 11667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11668 shlibpath_var=LD_LIBRARY_PATH 11669 shlibpath_overrides_runpath=no 11670 11671 # Some binutils ld are patched to set DT_RUNPATH 11672 if test ${lt_cv_shlibpath_overrides_runpath+y} 11673then : 11674 printf %s "(cached) " >&6 11675else $as_nop 11676 lt_cv_shlibpath_overrides_runpath=no 11677 save_LDFLAGS=$LDFLAGS 11678 save_libdir=$libdir 11679 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11680 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11682/* end confdefs.h. */ 11683 11684int 11685main (void) 11686{ 11687 11688 ; 11689 return 0; 11690} 11691_ACEOF 11692if ac_fn_c_try_link "$LINENO" 11693then : 11694 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11695then : 11696 lt_cv_shlibpath_overrides_runpath=yes 11697fi 11698fi 11699rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11700 conftest$ac_exeext conftest.$ac_ext 11701 LDFLAGS=$save_LDFLAGS 11702 libdir=$save_libdir 11703 11704fi 11705 11706 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11707 11708 # This implies no fast_install, which is unacceptable. 11709 # Some rework will be needed to allow for fast_install 11710 # before this can be enabled. 11711 hardcode_into_libs=yes 11712 11713 # Ideally, we could use ldconfig to report *all* directores which are 11714 # searched for libraries, however this is still not possible. Aside from not 11715 # being certain /sbin/ldconfig is available, command 11716 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11717 # even though it is searched at run-time. Try to do the best guess by 11718 # appending ld.so.conf contents (and includes) to the search path. 11719 if test -f /etc/ld.so.conf; then 11720 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' ' '` 11721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11722 fi 11723 11724 # We used to test for /lib/ld.so.1 and disable shared libraries on 11725 # powerpc, because MkLinux only supported shared libraries with the 11726 # GNU dynamic linker. Since this was broken with cross compilers, 11727 # most powerpc-linux boxes support dynamic linking these days and 11728 # people can always --disable-shared, the test was removed, and we 11729 # assume the GNU/Linux dynamic linker is in use. 11730 dynamic_linker='GNU/Linux ld.so' 11731 ;; 11732 11733netbsdelf*-gnu) 11734 version_type=linux 11735 need_lib_prefix=no 11736 need_version=no 11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11738 soname_spec='${libname}${release}${shared_ext}$major' 11739 shlibpath_var=LD_LIBRARY_PATH 11740 shlibpath_overrides_runpath=no 11741 hardcode_into_libs=yes 11742 dynamic_linker='NetBSD ld.elf_so' 11743 ;; 11744 11745netbsd*) 11746 version_type=sunos 11747 need_lib_prefix=no 11748 need_version=no 11749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11750 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11752 dynamic_linker='NetBSD (a.out) ld.so' 11753 else 11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11755 soname_spec='$libname$release$shared_ext$major' 11756 dynamic_linker='NetBSD ld.elf_so' 11757 fi 11758 shlibpath_var=LD_LIBRARY_PATH 11759 shlibpath_overrides_runpath=yes 11760 hardcode_into_libs=yes 11761 ;; 11762 11763newsos6) 11764 version_type=linux # correct to gnu/linux during the next big refactor 11765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11766 shlibpath_var=LD_LIBRARY_PATH 11767 shlibpath_overrides_runpath=yes 11768 ;; 11769 11770*nto* | *qnx*) 11771 version_type=qnx 11772 need_lib_prefix=no 11773 need_version=no 11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11775 soname_spec='$libname$release$shared_ext$major' 11776 shlibpath_var=LD_LIBRARY_PATH 11777 shlibpath_overrides_runpath=no 11778 hardcode_into_libs=yes 11779 dynamic_linker='ldqnx.so' 11780 ;; 11781 11782openbsd* | bitrig*) 11783 version_type=sunos 11784 sys_lib_dlsearch_path_spec=/usr/lib 11785 need_lib_prefix=no 11786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11787 need_version=no 11788 else 11789 need_version=yes 11790 fi 11791 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11793 shlibpath_var=LD_LIBRARY_PATH 11794 shlibpath_overrides_runpath=yes 11795 ;; 11796 11797os2*) 11798 libname_spec='$name' 11799 version_type=windows 11800 shrext_cmds=.dll 11801 need_version=no 11802 need_lib_prefix=no 11803 # OS/2 can only load a DLL with a base name of 8 characters or less. 11804 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11805 v=$($ECHO $release$versuffix | tr -d .-); 11806 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11807 $ECHO $n$v`$shared_ext' 11808 library_names_spec='${libname}_dll.$libext' 11809 dynamic_linker='OS/2 ld.exe' 11810 shlibpath_var=BEGINLIBPATH 11811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11813 postinstall_cmds='base_file=`basename \$file`~ 11814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11815 dldir=$destdir/`dirname \$dlpath`~ 11816 test -d \$dldir || mkdir -p \$dldir~ 11817 $install_prog $dir/$dlname \$dldir/$dlname~ 11818 chmod a+x \$dldir/$dlname~ 11819 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11820 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11821 fi' 11822 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11823 dlpath=$dir/\$dldll~ 11824 $RM \$dlpath' 11825 ;; 11826 11827osf3* | osf4* | osf5*) 11828 version_type=osf 11829 need_lib_prefix=no 11830 need_version=no 11831 soname_spec='$libname$release$shared_ext$major' 11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11833 shlibpath_var=LD_LIBRARY_PATH 11834 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11836 ;; 11837 11838rdos*) 11839 dynamic_linker=no 11840 ;; 11841 11842solaris*) 11843 version_type=linux # correct to gnu/linux during the next big refactor 11844 need_lib_prefix=no 11845 need_version=no 11846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11847 soname_spec='$libname$release$shared_ext$major' 11848 shlibpath_var=LD_LIBRARY_PATH 11849 shlibpath_overrides_runpath=yes 11850 hardcode_into_libs=yes 11851 # ldd complains unless libraries are executable 11852 postinstall_cmds='chmod +x $lib' 11853 ;; 11854 11855sunos4*) 11856 version_type=sunos 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11858 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11859 shlibpath_var=LD_LIBRARY_PATH 11860 shlibpath_overrides_runpath=yes 11861 if test yes = "$with_gnu_ld"; then 11862 need_lib_prefix=no 11863 fi 11864 need_version=yes 11865 ;; 11866 11867sysv4 | sysv4.3*) 11868 version_type=linux # correct to gnu/linux during the next big refactor 11869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11870 soname_spec='$libname$release$shared_ext$major' 11871 shlibpath_var=LD_LIBRARY_PATH 11872 case $host_vendor in 11873 sni) 11874 shlibpath_overrides_runpath=no 11875 need_lib_prefix=no 11876 runpath_var=LD_RUN_PATH 11877 ;; 11878 siemens) 11879 need_lib_prefix=no 11880 ;; 11881 motorola) 11882 need_lib_prefix=no 11883 need_version=no 11884 shlibpath_overrides_runpath=no 11885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11886 ;; 11887 esac 11888 ;; 11889 11890sysv4*MP*) 11891 if test -d /usr/nec; then 11892 version_type=linux # correct to gnu/linux during the next big refactor 11893 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11894 soname_spec='$libname$shared_ext.$major' 11895 shlibpath_var=LD_LIBRARY_PATH 11896 fi 11897 ;; 11898 11899sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11900 version_type=sco 11901 need_lib_prefix=no 11902 need_version=no 11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11904 soname_spec='$libname$release$shared_ext$major' 11905 shlibpath_var=LD_LIBRARY_PATH 11906 shlibpath_overrides_runpath=yes 11907 hardcode_into_libs=yes 11908 if test yes = "$with_gnu_ld"; then 11909 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11910 else 11911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11912 case $host_os in 11913 sco3.2v5*) 11914 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11915 ;; 11916 esac 11917 fi 11918 sys_lib_dlsearch_path_spec='/usr/lib' 11919 ;; 11920 11921tpf*) 11922 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11923 version_type=linux # correct to gnu/linux during the next big refactor 11924 need_lib_prefix=no 11925 need_version=no 11926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11927 shlibpath_var=LD_LIBRARY_PATH 11928 shlibpath_overrides_runpath=no 11929 hardcode_into_libs=yes 11930 ;; 11931 11932uts4*) 11933 version_type=linux # correct to gnu/linux during the next big refactor 11934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11935 soname_spec='$libname$release$shared_ext$major' 11936 shlibpath_var=LD_LIBRARY_PATH 11937 ;; 11938 11939*) 11940 dynamic_linker=no 11941 ;; 11942esac 11943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11944printf "%s\n" "$dynamic_linker" >&6; } 11945test no = "$dynamic_linker" && can_build_shared=no 11946 11947variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11948if test yes = "$GCC"; then 11949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11950fi 11951 11952if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11953 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11954fi 11955 11956if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11957 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11958fi 11959 11960# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11961configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11962 11963# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11964func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11965 11966# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11967configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12066printf %s "checking how to hardcode library paths into programs... " >&6; } 12067hardcode_action= 12068if test -n "$hardcode_libdir_flag_spec" || 12069 test -n "$runpath_var" || 12070 test yes = "$hardcode_automatic"; then 12071 12072 # We can hardcode non-existent directories. 12073 if test no != "$hardcode_direct" && 12074 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12075 # have to relink, otherwise we might link with an installed library 12076 # when we should be linking with a yet-to-be-installed one 12077 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12078 test no != "$hardcode_minus_L"; then 12079 # Linking always hardcodes the temporary library directory. 12080 hardcode_action=relink 12081 else 12082 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12083 hardcode_action=immediate 12084 fi 12085else 12086 # We cannot hardcode anything, or else we can only hardcode existing 12087 # directories. 12088 hardcode_action=unsupported 12089fi 12090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12091printf "%s\n" "$hardcode_action" >&6; } 12092 12093if test relink = "$hardcode_action" || 12094 test yes = "$inherit_rpath"; then 12095 # Fast installation is not supported 12096 enable_fast_install=no 12097elif test yes = "$shlibpath_overrides_runpath" || 12098 test no = "$enable_shared"; then 12099 # Fast installation is not necessary 12100 enable_fast_install=needless 12101fi 12102 12103 12104 12105 12106 12107 12108 if test yes != "$enable_dlopen"; then 12109 enable_dlopen=unknown 12110 enable_dlopen_self=unknown 12111 enable_dlopen_self_static=unknown 12112else 12113 lt_cv_dlopen=no 12114 lt_cv_dlopen_libs= 12115 12116 case $host_os in 12117 beos*) 12118 lt_cv_dlopen=load_add_on 12119 lt_cv_dlopen_libs= 12120 lt_cv_dlopen_self=yes 12121 ;; 12122 12123 mingw* | pw32* | cegcc*) 12124 lt_cv_dlopen=LoadLibrary 12125 lt_cv_dlopen_libs= 12126 ;; 12127 12128 cygwin*) 12129 lt_cv_dlopen=dlopen 12130 lt_cv_dlopen_libs= 12131 ;; 12132 12133 darwin*) 12134 # if libdl is installed we need to link against it 12135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12136printf %s "checking for dlopen in -ldl... " >&6; } 12137if test ${ac_cv_lib_dl_dlopen+y} 12138then : 12139 printf %s "(cached) " >&6 12140else $as_nop 12141 ac_check_lib_save_LIBS=$LIBS 12142LIBS="-ldl $LIBS" 12143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12144/* end confdefs.h. */ 12145 12146/* Override any GCC internal prototype to avoid an error. 12147 Use char because int might match the return type of a GCC 12148 builtin and then its argument prototype would still apply. */ 12149char dlopen (); 12150int 12151main (void) 12152{ 12153return dlopen (); 12154 ; 12155 return 0; 12156} 12157_ACEOF 12158if ac_fn_c_try_link "$LINENO" 12159then : 12160 ac_cv_lib_dl_dlopen=yes 12161else $as_nop 12162 ac_cv_lib_dl_dlopen=no 12163fi 12164rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12165 conftest$ac_exeext conftest.$ac_ext 12166LIBS=$ac_check_lib_save_LIBS 12167fi 12168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12169printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12170if test "x$ac_cv_lib_dl_dlopen" = xyes 12171then : 12172 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12173else $as_nop 12174 12175 lt_cv_dlopen=dyld 12176 lt_cv_dlopen_libs= 12177 lt_cv_dlopen_self=yes 12178 12179fi 12180 12181 ;; 12182 12183 tpf*) 12184 # Don't try to run any link tests for TPF. We know it's impossible 12185 # because TPF is a cross-compiler, and we know how we open DSOs. 12186 lt_cv_dlopen=dlopen 12187 lt_cv_dlopen_libs= 12188 lt_cv_dlopen_self=no 12189 ;; 12190 12191 *) 12192 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12193if test "x$ac_cv_func_shl_load" = xyes 12194then : 12195 lt_cv_dlopen=shl_load 12196else $as_nop 12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12198printf %s "checking for shl_load in -ldld... " >&6; } 12199if test ${ac_cv_lib_dld_shl_load+y} 12200then : 12201 printf %s "(cached) " >&6 12202else $as_nop 12203 ac_check_lib_save_LIBS=$LIBS 12204LIBS="-ldld $LIBS" 12205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12206/* end confdefs.h. */ 12207 12208/* Override any GCC internal prototype to avoid an error. 12209 Use char because int might match the return type of a GCC 12210 builtin and then its argument prototype would still apply. */ 12211char shl_load (); 12212int 12213main (void) 12214{ 12215return shl_load (); 12216 ; 12217 return 0; 12218} 12219_ACEOF 12220if ac_fn_c_try_link "$LINENO" 12221then : 12222 ac_cv_lib_dld_shl_load=yes 12223else $as_nop 12224 ac_cv_lib_dld_shl_load=no 12225fi 12226rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12227 conftest$ac_exeext conftest.$ac_ext 12228LIBS=$ac_check_lib_save_LIBS 12229fi 12230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12231printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12232if test "x$ac_cv_lib_dld_shl_load" = xyes 12233then : 12234 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12235else $as_nop 12236 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12237if test "x$ac_cv_func_dlopen" = xyes 12238then : 12239 lt_cv_dlopen=dlopen 12240else $as_nop 12241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12242printf %s "checking for dlopen in -ldl... " >&6; } 12243if test ${ac_cv_lib_dl_dlopen+y} 12244then : 12245 printf %s "(cached) " >&6 12246else $as_nop 12247 ac_check_lib_save_LIBS=$LIBS 12248LIBS="-ldl $LIBS" 12249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12250/* end confdefs.h. */ 12251 12252/* Override any GCC internal prototype to avoid an error. 12253 Use char because int might match the return type of a GCC 12254 builtin and then its argument prototype would still apply. */ 12255char dlopen (); 12256int 12257main (void) 12258{ 12259return dlopen (); 12260 ; 12261 return 0; 12262} 12263_ACEOF 12264if ac_fn_c_try_link "$LINENO" 12265then : 12266 ac_cv_lib_dl_dlopen=yes 12267else $as_nop 12268 ac_cv_lib_dl_dlopen=no 12269fi 12270rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12271 conftest$ac_exeext conftest.$ac_ext 12272LIBS=$ac_check_lib_save_LIBS 12273fi 12274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12275printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12276if test "x$ac_cv_lib_dl_dlopen" = xyes 12277then : 12278 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12279else $as_nop 12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12281printf %s "checking for dlopen in -lsvld... " >&6; } 12282if test ${ac_cv_lib_svld_dlopen+y} 12283then : 12284 printf %s "(cached) " >&6 12285else $as_nop 12286 ac_check_lib_save_LIBS=$LIBS 12287LIBS="-lsvld $LIBS" 12288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12289/* end confdefs.h. */ 12290 12291/* Override any GCC internal prototype to avoid an error. 12292 Use char because int might match the return type of a GCC 12293 builtin and then its argument prototype would still apply. */ 12294char dlopen (); 12295int 12296main (void) 12297{ 12298return dlopen (); 12299 ; 12300 return 0; 12301} 12302_ACEOF 12303if ac_fn_c_try_link "$LINENO" 12304then : 12305 ac_cv_lib_svld_dlopen=yes 12306else $as_nop 12307 ac_cv_lib_svld_dlopen=no 12308fi 12309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12310 conftest$ac_exeext conftest.$ac_ext 12311LIBS=$ac_check_lib_save_LIBS 12312fi 12313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12314printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12315if test "x$ac_cv_lib_svld_dlopen" = xyes 12316then : 12317 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12318else $as_nop 12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12320printf %s "checking for dld_link in -ldld... " >&6; } 12321if test ${ac_cv_lib_dld_dld_link+y} 12322then : 12323 printf %s "(cached) " >&6 12324else $as_nop 12325 ac_check_lib_save_LIBS=$LIBS 12326LIBS="-ldld $LIBS" 12327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12328/* end confdefs.h. */ 12329 12330/* Override any GCC internal prototype to avoid an error. 12331 Use char because int might match the return type of a GCC 12332 builtin and then its argument prototype would still apply. */ 12333char dld_link (); 12334int 12335main (void) 12336{ 12337return dld_link (); 12338 ; 12339 return 0; 12340} 12341_ACEOF 12342if ac_fn_c_try_link "$LINENO" 12343then : 12344 ac_cv_lib_dld_dld_link=yes 12345else $as_nop 12346 ac_cv_lib_dld_dld_link=no 12347fi 12348rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12349 conftest$ac_exeext conftest.$ac_ext 12350LIBS=$ac_check_lib_save_LIBS 12351fi 12352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12353printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12354if test "x$ac_cv_lib_dld_dld_link" = xyes 12355then : 12356 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12357fi 12358 12359 12360fi 12361 12362 12363fi 12364 12365 12366fi 12367 12368 12369fi 12370 12371 12372fi 12373 12374 ;; 12375 esac 12376 12377 if test no = "$lt_cv_dlopen"; then 12378 enable_dlopen=no 12379 else 12380 enable_dlopen=yes 12381 fi 12382 12383 case $lt_cv_dlopen in 12384 dlopen) 12385 save_CPPFLAGS=$CPPFLAGS 12386 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12387 12388 save_LDFLAGS=$LDFLAGS 12389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12390 12391 save_LIBS=$LIBS 12392 LIBS="$lt_cv_dlopen_libs $LIBS" 12393 12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12395printf %s "checking whether a program can dlopen itself... " >&6; } 12396if test ${lt_cv_dlopen_self+y} 12397then : 12398 printf %s "(cached) " >&6 12399else $as_nop 12400 if test yes = "$cross_compiling"; then : 12401 lt_cv_dlopen_self=cross 12402else 12403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12404 lt_status=$lt_dlunknown 12405 cat > conftest.$ac_ext <<_LT_EOF 12406#line $LINENO "configure" 12407#include "confdefs.h" 12408 12409#if HAVE_DLFCN_H 12410#include <dlfcn.h> 12411#endif 12412 12413#include <stdio.h> 12414 12415#ifdef RTLD_GLOBAL 12416# define LT_DLGLOBAL RTLD_GLOBAL 12417#else 12418# ifdef DL_GLOBAL 12419# define LT_DLGLOBAL DL_GLOBAL 12420# else 12421# define LT_DLGLOBAL 0 12422# endif 12423#endif 12424 12425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12426 find out it does not work in some platform. */ 12427#ifndef LT_DLLAZY_OR_NOW 12428# ifdef RTLD_LAZY 12429# define LT_DLLAZY_OR_NOW RTLD_LAZY 12430# else 12431# ifdef DL_LAZY 12432# define LT_DLLAZY_OR_NOW DL_LAZY 12433# else 12434# ifdef RTLD_NOW 12435# define LT_DLLAZY_OR_NOW RTLD_NOW 12436# else 12437# ifdef DL_NOW 12438# define LT_DLLAZY_OR_NOW DL_NOW 12439# else 12440# define LT_DLLAZY_OR_NOW 0 12441# endif 12442# endif 12443# endif 12444# endif 12445#endif 12446 12447/* When -fvisibility=hidden is used, assume the code has been annotated 12448 correspondingly for the symbols needed. */ 12449#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12450int fnord () __attribute__((visibility("default"))); 12451#endif 12452 12453int fnord () { return 42; } 12454int main () 12455{ 12456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12457 int status = $lt_dlunknown; 12458 12459 if (self) 12460 { 12461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12462 else 12463 { 12464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12465 else puts (dlerror ()); 12466 } 12467 /* dlclose (self); */ 12468 } 12469 else 12470 puts (dlerror ()); 12471 12472 return status; 12473} 12474_LT_EOF 12475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12476 (eval $ac_link) 2>&5 12477 ac_status=$? 12478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12479 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12480 (./conftest; exit; ) >&5 2>/dev/null 12481 lt_status=$? 12482 case x$lt_status in 12483 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12484 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12485 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12486 esac 12487 else : 12488 # compilation failed 12489 lt_cv_dlopen_self=no 12490 fi 12491fi 12492rm -fr conftest* 12493 12494 12495fi 12496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12497printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12498 12499 if test yes = "$lt_cv_dlopen_self"; then 12500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12502printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12503if test ${lt_cv_dlopen_self_static+y} 12504then : 12505 printf %s "(cached) " >&6 12506else $as_nop 12507 if test yes = "$cross_compiling"; then : 12508 lt_cv_dlopen_self_static=cross 12509else 12510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12511 lt_status=$lt_dlunknown 12512 cat > conftest.$ac_ext <<_LT_EOF 12513#line $LINENO "configure" 12514#include "confdefs.h" 12515 12516#if HAVE_DLFCN_H 12517#include <dlfcn.h> 12518#endif 12519 12520#include <stdio.h> 12521 12522#ifdef RTLD_GLOBAL 12523# define LT_DLGLOBAL RTLD_GLOBAL 12524#else 12525# ifdef DL_GLOBAL 12526# define LT_DLGLOBAL DL_GLOBAL 12527# else 12528# define LT_DLGLOBAL 0 12529# endif 12530#endif 12531 12532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12533 find out it does not work in some platform. */ 12534#ifndef LT_DLLAZY_OR_NOW 12535# ifdef RTLD_LAZY 12536# define LT_DLLAZY_OR_NOW RTLD_LAZY 12537# else 12538# ifdef DL_LAZY 12539# define LT_DLLAZY_OR_NOW DL_LAZY 12540# else 12541# ifdef RTLD_NOW 12542# define LT_DLLAZY_OR_NOW RTLD_NOW 12543# else 12544# ifdef DL_NOW 12545# define LT_DLLAZY_OR_NOW DL_NOW 12546# else 12547# define LT_DLLAZY_OR_NOW 0 12548# endif 12549# endif 12550# endif 12551# endif 12552#endif 12553 12554/* When -fvisibility=hidden is used, assume the code has been annotated 12555 correspondingly for the symbols needed. */ 12556#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12557int fnord () __attribute__((visibility("default"))); 12558#endif 12559 12560int fnord () { return 42; } 12561int main () 12562{ 12563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12564 int status = $lt_dlunknown; 12565 12566 if (self) 12567 { 12568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12569 else 12570 { 12571 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12572 else puts (dlerror ()); 12573 } 12574 /* dlclose (self); */ 12575 } 12576 else 12577 puts (dlerror ()); 12578 12579 return status; 12580} 12581_LT_EOF 12582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12583 (eval $ac_link) 2>&5 12584 ac_status=$? 12585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12586 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12587 (./conftest; exit; ) >&5 2>/dev/null 12588 lt_status=$? 12589 case x$lt_status in 12590 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12591 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12592 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12593 esac 12594 else : 12595 # compilation failed 12596 lt_cv_dlopen_self_static=no 12597 fi 12598fi 12599rm -fr conftest* 12600 12601 12602fi 12603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12604printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12605 fi 12606 12607 CPPFLAGS=$save_CPPFLAGS 12608 LDFLAGS=$save_LDFLAGS 12609 LIBS=$save_LIBS 12610 ;; 12611 esac 12612 12613 case $lt_cv_dlopen_self in 12614 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12615 *) enable_dlopen_self=unknown ;; 12616 esac 12617 12618 case $lt_cv_dlopen_self_static in 12619 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12620 *) enable_dlopen_self_static=unknown ;; 12621 esac 12622fi 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640striplib= 12641old_striplib= 12642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12643printf %s "checking whether stripping libraries is possible... " >&6; } 12644if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12645 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12646 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12648printf "%s\n" "yes" >&6; } 12649else 12650# FIXME - insert some real tests, host_os isn't really good enough 12651 case $host_os in 12652 darwin*) 12653 if test -n "$STRIP"; then 12654 striplib="$STRIP -x" 12655 old_striplib="$STRIP -S" 12656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12657printf "%s\n" "yes" >&6; } 12658 else 12659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12660printf "%s\n" "no" >&6; } 12661 fi 12662 ;; 12663 *) 12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12665printf "%s\n" "no" >&6; } 12666 ;; 12667 esac 12668fi 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 # Report what library types will actually be built 12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12683printf %s "checking if libtool supports shared libraries... " >&6; } 12684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12685printf "%s\n" "$can_build_shared" >&6; } 12686 12687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12688printf %s "checking whether to build shared libraries... " >&6; } 12689 test no = "$can_build_shared" && enable_shared=no 12690 12691 # On AIX, shared libraries and static libraries use the same namespace, and 12692 # are all built from PIC. 12693 case $host_os in 12694 aix3*) 12695 test yes = "$enable_shared" && enable_static=no 12696 if test -n "$RANLIB"; then 12697 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12698 postinstall_cmds='$RANLIB $lib' 12699 fi 12700 ;; 12701 12702 aix[4-9]*) 12703 if test ia64 != "$host_cpu"; then 12704 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12705 yes,aix,yes) ;; # shared object as lib.so file only 12706 yes,svr4,*) ;; # shared object as lib.so archive member only 12707 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12708 esac 12709 fi 12710 ;; 12711 esac 12712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12713printf "%s\n" "$enable_shared" >&6; } 12714 12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12716printf %s "checking whether to build static libraries... " >&6; } 12717 # Make sure either enable_shared or enable_static is yes. 12718 test yes = "$enable_shared" || enable_static=yes 12719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12720printf "%s\n" "$enable_static" >&6; } 12721 12722 12723 12724 12725fi 12726ac_ext=c 12727ac_cpp='$CPP $CPPFLAGS' 12728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12730ac_compiler_gnu=$ac_cv_c_compiler_gnu 12731 12732CC=$lt_save_CC 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 ac_config_commands="$ac_config_commands libtool" 12749 12750 12751 12752 12753# Only expand once: 12754 12755 12756 12757# libtool -version-info 12758LT_VERSION=0:75:0 12759 12760 12761@%:@ Check whether --enable-silent-rules was given. 12762if test ${enable_silent_rules+y} 12763then : 12764 enableval=$enable_silent_rules; 12765fi 12766 12767case $enable_silent_rules in @%:@ ((( 12768 yes) AM_DEFAULT_VERBOSITY=0;; 12769 no) AM_DEFAULT_VERBOSITY=1;; 12770 *) AM_DEFAULT_VERBOSITY=0;; 12771esac 12772am_make=${MAKE-make} 12773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 12774printf %s "checking whether $am_make supports nested variables... " >&6; } 12775if test ${am_cv_make_support_nested_variables+y} 12776then : 12777 printf %s "(cached) " >&6 12778else $as_nop 12779 if printf "%s\n" 'TRUE=$(BAR$(V)) 12780BAR0=false 12781BAR1=true 12782V=1 12783am__doit: 12784 @$(TRUE) 12785.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 12786 am_cv_make_support_nested_variables=yes 12787else 12788 am_cv_make_support_nested_variables=no 12789fi 12790fi 12791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 12792printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 12793if test $am_cv_make_support_nested_variables = yes; then 12794 AM_V='$(V)' 12795 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 12796else 12797 AM_V=$AM_DEFAULT_VERBOSITY 12798 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 12799fi 12800AM_BACKSLASH='\' 12801 12802 12803# Checks for programs. 12804ac_ext=c 12805ac_cpp='$CPP $CPPFLAGS' 12806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12808ac_compiler_gnu=$ac_cv_c_compiler_gnu 12809if test -n "$ac_tool_prefix"; then 12810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 12811set dummy ${ac_tool_prefix}gcc; ac_word=$2 12812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12813printf %s "checking for $ac_word... " >&6; } 12814if test ${ac_cv_prog_CC+y} 12815then : 12816 printf %s "(cached) " >&6 12817else $as_nop 12818 if test -n "$CC"; then 12819 ac_cv_prog_CC="$CC" # Let the user override the test. 12820else 12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12822for as_dir in $PATH 12823do 12824 IFS=$as_save_IFS 12825 case $as_dir in #((( 12826 '') as_dir=./ ;; 12827 */) ;; 12828 *) as_dir=$as_dir/ ;; 12829 esac 12830 for ac_exec_ext in '' $ac_executable_extensions; do 12831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12832 ac_cv_prog_CC="${ac_tool_prefix}gcc" 12833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12834 break 2 12835 fi 12836done 12837 done 12838IFS=$as_save_IFS 12839 12840fi 12841fi 12842CC=$ac_cv_prog_CC 12843if test -n "$CC"; then 12844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12845printf "%s\n" "$CC" >&6; } 12846else 12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12848printf "%s\n" "no" >&6; } 12849fi 12850 12851 12852fi 12853if test -z "$ac_cv_prog_CC"; then 12854 ac_ct_CC=$CC 12855 # Extract the first word of "gcc", so it can be a program name with args. 12856set dummy gcc; ac_word=$2 12857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12858printf %s "checking for $ac_word... " >&6; } 12859if test ${ac_cv_prog_ac_ct_CC+y} 12860then : 12861 printf %s "(cached) " >&6 12862else $as_nop 12863 if test -n "$ac_ct_CC"; then 12864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 12865else 12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12867for as_dir in $PATH 12868do 12869 IFS=$as_save_IFS 12870 case $as_dir in #((( 12871 '') as_dir=./ ;; 12872 */) ;; 12873 *) as_dir=$as_dir/ ;; 12874 esac 12875 for ac_exec_ext in '' $ac_executable_extensions; do 12876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12877 ac_cv_prog_ac_ct_CC="gcc" 12878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12879 break 2 12880 fi 12881done 12882 done 12883IFS=$as_save_IFS 12884 12885fi 12886fi 12887ac_ct_CC=$ac_cv_prog_ac_ct_CC 12888if test -n "$ac_ct_CC"; then 12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 12890printf "%s\n" "$ac_ct_CC" >&6; } 12891else 12892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12893printf "%s\n" "no" >&6; } 12894fi 12895 12896 if test "x$ac_ct_CC" = x; then 12897 CC="" 12898 else 12899 case $cross_compiling:$ac_tool_warned in 12900yes:) 12901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12902printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12903ac_tool_warned=yes ;; 12904esac 12905 CC=$ac_ct_CC 12906 fi 12907else 12908 CC="$ac_cv_prog_CC" 12909fi 12910 12911if test -z "$CC"; then 12912 if test -n "$ac_tool_prefix"; then 12913 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 12914set dummy ${ac_tool_prefix}cc; ac_word=$2 12915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12916printf %s "checking for $ac_word... " >&6; } 12917if test ${ac_cv_prog_CC+y} 12918then : 12919 printf %s "(cached) " >&6 12920else $as_nop 12921 if test -n "$CC"; then 12922 ac_cv_prog_CC="$CC" # Let the user override the test. 12923else 12924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12925for as_dir in $PATH 12926do 12927 IFS=$as_save_IFS 12928 case $as_dir in #((( 12929 '') as_dir=./ ;; 12930 */) ;; 12931 *) as_dir=$as_dir/ ;; 12932 esac 12933 for ac_exec_ext in '' $ac_executable_extensions; do 12934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12935 ac_cv_prog_CC="${ac_tool_prefix}cc" 12936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12937 break 2 12938 fi 12939done 12940 done 12941IFS=$as_save_IFS 12942 12943fi 12944fi 12945CC=$ac_cv_prog_CC 12946if test -n "$CC"; then 12947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 12948printf "%s\n" "$CC" >&6; } 12949else 12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12951printf "%s\n" "no" >&6; } 12952fi 12953 12954 12955 fi 12956fi 12957if test -z "$CC"; then 12958 # Extract the first word of "cc", so it can be a program name with args. 12959set dummy cc; ac_word=$2 12960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12961printf %s "checking for $ac_word... " >&6; } 12962if test ${ac_cv_prog_CC+y} 12963then : 12964 printf %s "(cached) " >&6 12965else $as_nop 12966 if test -n "$CC"; then 12967 ac_cv_prog_CC="$CC" # Let the user override the test. 12968else 12969 ac_prog_rejected=no 12970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12971for as_dir in $PATH 12972do 12973 IFS=$as_save_IFS 12974 case $as_dir in #((( 12975 '') as_dir=./ ;; 12976 */) ;; 12977 *) as_dir=$as_dir/ ;; 12978 esac 12979 for ac_exec_ext in '' $ac_executable_extensions; do 12980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12981 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 12982 ac_prog_rejected=yes 12983 continue 12984 fi 12985 ac_cv_prog_CC="cc" 12986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12987 break 2 12988 fi 12989done 12990 done 12991IFS=$as_save_IFS 12992 12993if test $ac_prog_rejected = yes; then 12994 # We found a bogon in the path, so make sure we never use it. 12995 set dummy $ac_cv_prog_CC 12996 shift 12997 if test $@%:@ != 0; then 12998 # We chose a different compiler from the bogus one. 12999 # However, it has the same basename, so the bogon will be chosen 13000 # first if we set CC to just the basename; use the full file name. 13001 shift 13002 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 13003 fi 13004fi 13005fi 13006fi 13007CC=$ac_cv_prog_CC 13008if test -n "$CC"; then 13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13010printf "%s\n" "$CC" >&6; } 13011else 13012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13013printf "%s\n" "no" >&6; } 13014fi 13015 13016 13017fi 13018if test -z "$CC"; then 13019 if test -n "$ac_tool_prefix"; then 13020 for ac_prog in cl.exe 13021 do 13022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13023set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13025printf %s "checking for $ac_word... " >&6; } 13026if test ${ac_cv_prog_CC+y} 13027then : 13028 printf %s "(cached) " >&6 13029else $as_nop 13030 if test -n "$CC"; then 13031 ac_cv_prog_CC="$CC" # Let the user override the test. 13032else 13033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13034for as_dir in $PATH 13035do 13036 IFS=$as_save_IFS 13037 case $as_dir in #((( 13038 '') as_dir=./ ;; 13039 */) ;; 13040 *) as_dir=$as_dir/ ;; 13041 esac 13042 for ac_exec_ext in '' $ac_executable_extensions; do 13043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 13045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13046 break 2 13047 fi 13048done 13049 done 13050IFS=$as_save_IFS 13051 13052fi 13053fi 13054CC=$ac_cv_prog_CC 13055if test -n "$CC"; then 13056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13057printf "%s\n" "$CC" >&6; } 13058else 13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13060printf "%s\n" "no" >&6; } 13061fi 13062 13063 13064 test -n "$CC" && break 13065 done 13066fi 13067if test -z "$CC"; then 13068 ac_ct_CC=$CC 13069 for ac_prog in cl.exe 13070do 13071 # Extract the first word of "$ac_prog", so it can be a program name with args. 13072set dummy $ac_prog; ac_word=$2 13073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13074printf %s "checking for $ac_word... " >&6; } 13075if test ${ac_cv_prog_ac_ct_CC+y} 13076then : 13077 printf %s "(cached) " >&6 13078else $as_nop 13079 if test -n "$ac_ct_CC"; then 13080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13081else 13082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13083for as_dir in $PATH 13084do 13085 IFS=$as_save_IFS 13086 case $as_dir in #((( 13087 '') as_dir=./ ;; 13088 */) ;; 13089 *) as_dir=$as_dir/ ;; 13090 esac 13091 for ac_exec_ext in '' $ac_executable_extensions; do 13092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13093 ac_cv_prog_ac_ct_CC="$ac_prog" 13094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13095 break 2 13096 fi 13097done 13098 done 13099IFS=$as_save_IFS 13100 13101fi 13102fi 13103ac_ct_CC=$ac_cv_prog_ac_ct_CC 13104if test -n "$ac_ct_CC"; then 13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13106printf "%s\n" "$ac_ct_CC" >&6; } 13107else 13108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13109printf "%s\n" "no" >&6; } 13110fi 13111 13112 13113 test -n "$ac_ct_CC" && break 13114done 13115 13116 if test "x$ac_ct_CC" = x; then 13117 CC="" 13118 else 13119 case $cross_compiling:$ac_tool_warned in 13120yes:) 13121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13122printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13123ac_tool_warned=yes ;; 13124esac 13125 CC=$ac_ct_CC 13126 fi 13127fi 13128 13129fi 13130if test -z "$CC"; then 13131 if test -n "$ac_tool_prefix"; then 13132 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 13133set dummy ${ac_tool_prefix}clang; ac_word=$2 13134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13135printf %s "checking for $ac_word... " >&6; } 13136if test ${ac_cv_prog_CC+y} 13137then : 13138 printf %s "(cached) " >&6 13139else $as_nop 13140 if test -n "$CC"; then 13141 ac_cv_prog_CC="$CC" # Let the user override the test. 13142else 13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13144for as_dir in $PATH 13145do 13146 IFS=$as_save_IFS 13147 case $as_dir in #((( 13148 '') as_dir=./ ;; 13149 */) ;; 13150 *) as_dir=$as_dir/ ;; 13151 esac 13152 for ac_exec_ext in '' $ac_executable_extensions; do 13153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13154 ac_cv_prog_CC="${ac_tool_prefix}clang" 13155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13156 break 2 13157 fi 13158done 13159 done 13160IFS=$as_save_IFS 13161 13162fi 13163fi 13164CC=$ac_cv_prog_CC 13165if test -n "$CC"; then 13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 13167printf "%s\n" "$CC" >&6; } 13168else 13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13170printf "%s\n" "no" >&6; } 13171fi 13172 13173 13174fi 13175if test -z "$ac_cv_prog_CC"; then 13176 ac_ct_CC=$CC 13177 # Extract the first word of "clang", so it can be a program name with args. 13178set dummy clang; ac_word=$2 13179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13180printf %s "checking for $ac_word... " >&6; } 13181if test ${ac_cv_prog_ac_ct_CC+y} 13182then : 13183 printf %s "(cached) " >&6 13184else $as_nop 13185 if test -n "$ac_ct_CC"; then 13186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 13187else 13188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13189for as_dir in $PATH 13190do 13191 IFS=$as_save_IFS 13192 case $as_dir in #((( 13193 '') as_dir=./ ;; 13194 */) ;; 13195 *) as_dir=$as_dir/ ;; 13196 esac 13197 for ac_exec_ext in '' $ac_executable_extensions; do 13198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13199 ac_cv_prog_ac_ct_CC="clang" 13200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13201 break 2 13202 fi 13203done 13204 done 13205IFS=$as_save_IFS 13206 13207fi 13208fi 13209ac_ct_CC=$ac_cv_prog_ac_ct_CC 13210if test -n "$ac_ct_CC"; then 13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 13212printf "%s\n" "$ac_ct_CC" >&6; } 13213else 13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13215printf "%s\n" "no" >&6; } 13216fi 13217 13218 if test "x$ac_ct_CC" = x; then 13219 CC="" 13220 else 13221 case $cross_compiling:$ac_tool_warned in 13222yes:) 13223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13224printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13225ac_tool_warned=yes ;; 13226esac 13227 CC=$ac_ct_CC 13228 fi 13229else 13230 CC="$ac_cv_prog_CC" 13231fi 13232 13233fi 13234 13235 13236test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13237printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13238as_fn_error $? "no acceptable C compiler found in \$PATH 13239See \`config.log' for more details" "$LINENO" 5; } 13240 13241# Provide some information about the compiler. 13242printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 13243set X $ac_compile 13244ac_compiler=$2 13245for ac_option in --version -v -V -qversion -version; do 13246 { { ac_try="$ac_compiler $ac_option >&5" 13247case "(($ac_try" in 13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13249 *) ac_try_echo=$ac_try;; 13250esac 13251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13252printf "%s\n" "$ac_try_echo"; } >&5 13253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13254 ac_status=$? 13255 if test -s conftest.err; then 13256 sed '10a\ 13257... rest of stderr output deleted ... 13258 10q' conftest.err >conftest.er1 13259 cat conftest.er1 >&5 13260 fi 13261 rm -f conftest.er1 conftest.err 13262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13263 test $ac_status = 0; } 13264done 13265 13266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 13267printf %s "checking whether the compiler supports GNU C... " >&6; } 13268if test ${ac_cv_c_compiler_gnu+y} 13269then : 13270 printf %s "(cached) " >&6 13271else $as_nop 13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13273/* end confdefs.h. */ 13274 13275int 13276main (void) 13277{ 13278#ifndef __GNUC__ 13279 choke me 13280#endif 13281 13282 ; 13283 return 0; 13284} 13285_ACEOF 13286if ac_fn_c_try_compile "$LINENO" 13287then : 13288 ac_compiler_gnu=yes 13289else $as_nop 13290 ac_compiler_gnu=no 13291fi 13292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13293ac_cv_c_compiler_gnu=$ac_compiler_gnu 13294 13295fi 13296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 13297printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 13298ac_compiler_gnu=$ac_cv_c_compiler_gnu 13299 13300if test $ac_compiler_gnu = yes; then 13301 GCC=yes 13302else 13303 GCC= 13304fi 13305ac_test_CFLAGS=${CFLAGS+y} 13306ac_save_CFLAGS=$CFLAGS 13307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 13308printf %s "checking whether $CC accepts -g... " >&6; } 13309if test ${ac_cv_prog_cc_g+y} 13310then : 13311 printf %s "(cached) " >&6 13312else $as_nop 13313 ac_save_c_werror_flag=$ac_c_werror_flag 13314 ac_c_werror_flag=yes 13315 ac_cv_prog_cc_g=no 13316 CFLAGS="-g" 13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13318/* end confdefs.h. */ 13319 13320int 13321main (void) 13322{ 13323 13324 ; 13325 return 0; 13326} 13327_ACEOF 13328if ac_fn_c_try_compile "$LINENO" 13329then : 13330 ac_cv_prog_cc_g=yes 13331else $as_nop 13332 CFLAGS="" 13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13334/* end confdefs.h. */ 13335 13336int 13337main (void) 13338{ 13339 13340 ; 13341 return 0; 13342} 13343_ACEOF 13344if ac_fn_c_try_compile "$LINENO" 13345then : 13346 13347else $as_nop 13348 ac_c_werror_flag=$ac_save_c_werror_flag 13349 CFLAGS="-g" 13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13351/* end confdefs.h. */ 13352 13353int 13354main (void) 13355{ 13356 13357 ; 13358 return 0; 13359} 13360_ACEOF 13361if ac_fn_c_try_compile "$LINENO" 13362then : 13363 ac_cv_prog_cc_g=yes 13364fi 13365rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13366fi 13367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13368fi 13369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13370 ac_c_werror_flag=$ac_save_c_werror_flag 13371fi 13372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 13373printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 13374if test $ac_test_CFLAGS; then 13375 CFLAGS=$ac_save_CFLAGS 13376elif test $ac_cv_prog_cc_g = yes; then 13377 if test "$GCC" = yes; then 13378 CFLAGS="-g -O2" 13379 else 13380 CFLAGS="-g" 13381 fi 13382else 13383 if test "$GCC" = yes; then 13384 CFLAGS="-O2" 13385 else 13386 CFLAGS= 13387 fi 13388fi 13389ac_prog_cc_stdc=no 13390if test x$ac_prog_cc_stdc = xno 13391then : 13392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 13393printf %s "checking for $CC option to enable C11 features... " >&6; } 13394if test ${ac_cv_prog_cc_c11+y} 13395then : 13396 printf %s "(cached) " >&6 13397else $as_nop 13398 ac_cv_prog_cc_c11=no 13399ac_save_CC=$CC 13400cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13401/* end confdefs.h. */ 13402$ac_c_conftest_c11_program 13403_ACEOF 13404for ac_arg in '' -std=gnu11 13405do 13406 CC="$ac_save_CC $ac_arg" 13407 if ac_fn_c_try_compile "$LINENO" 13408then : 13409 ac_cv_prog_cc_c11=$ac_arg 13410fi 13411rm -f core conftest.err conftest.$ac_objext conftest.beam 13412 test "x$ac_cv_prog_cc_c11" != "xno" && break 13413done 13414rm -f conftest.$ac_ext 13415CC=$ac_save_CC 13416fi 13417 13418if test "x$ac_cv_prog_cc_c11" = xno 13419then : 13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13421printf "%s\n" "unsupported" >&6; } 13422else $as_nop 13423 if test "x$ac_cv_prog_cc_c11" = x 13424then : 13425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13426printf "%s\n" "none needed" >&6; } 13427else $as_nop 13428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 13429printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 13430 CC="$CC $ac_cv_prog_cc_c11" 13431fi 13432 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 13433 ac_prog_cc_stdc=c11 13434fi 13435fi 13436if test x$ac_prog_cc_stdc = xno 13437then : 13438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 13439printf %s "checking for $CC option to enable C99 features... " >&6; } 13440if test ${ac_cv_prog_cc_c99+y} 13441then : 13442 printf %s "(cached) " >&6 13443else $as_nop 13444 ac_cv_prog_cc_c99=no 13445ac_save_CC=$CC 13446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448$ac_c_conftest_c99_program 13449_ACEOF 13450for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 13451do 13452 CC="$ac_save_CC $ac_arg" 13453 if ac_fn_c_try_compile "$LINENO" 13454then : 13455 ac_cv_prog_cc_c99=$ac_arg 13456fi 13457rm -f core conftest.err conftest.$ac_objext conftest.beam 13458 test "x$ac_cv_prog_cc_c99" != "xno" && break 13459done 13460rm -f conftest.$ac_ext 13461CC=$ac_save_CC 13462fi 13463 13464if test "x$ac_cv_prog_cc_c99" = xno 13465then : 13466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13467printf "%s\n" "unsupported" >&6; } 13468else $as_nop 13469 if test "x$ac_cv_prog_cc_c99" = x 13470then : 13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13472printf "%s\n" "none needed" >&6; } 13473else $as_nop 13474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13475printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 13476 CC="$CC $ac_cv_prog_cc_c99" 13477fi 13478 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 13479 ac_prog_cc_stdc=c99 13480fi 13481fi 13482if test x$ac_prog_cc_stdc = xno 13483then : 13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 13485printf %s "checking for $CC option to enable C89 features... " >&6; } 13486if test ${ac_cv_prog_cc_c89+y} 13487then : 13488 printf %s "(cached) " >&6 13489else $as_nop 13490 ac_cv_prog_cc_c89=no 13491ac_save_CC=$CC 13492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13493/* end confdefs.h. */ 13494$ac_c_conftest_c89_program 13495_ACEOF 13496for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 13497do 13498 CC="$ac_save_CC $ac_arg" 13499 if ac_fn_c_try_compile "$LINENO" 13500then : 13501 ac_cv_prog_cc_c89=$ac_arg 13502fi 13503rm -f core conftest.err conftest.$ac_objext conftest.beam 13504 test "x$ac_cv_prog_cc_c89" != "xno" && break 13505done 13506rm -f conftest.$ac_ext 13507CC=$ac_save_CC 13508fi 13509 13510if test "x$ac_cv_prog_cc_c89" = xno 13511then : 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13513printf "%s\n" "unsupported" >&6; } 13514else $as_nop 13515 if test "x$ac_cv_prog_cc_c89" = x 13516then : 13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13518printf "%s\n" "none needed" >&6; } 13519else $as_nop 13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 13521printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 13522 CC="$CC $ac_cv_prog_cc_c89" 13523fi 13524 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 13525 ac_prog_cc_stdc=c89 13526fi 13527fi 13528 13529ac_ext=c 13530ac_cpp='$CPP $CPPFLAGS' 13531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13533ac_compiler_gnu=$ac_cv_c_compiler_gnu 13534 13535 13536 ac_ext=c 13537ac_cpp='$CPP $CPPFLAGS' 13538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13540ac_compiler_gnu=$ac_cv_c_compiler_gnu 13541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 13542printf %s "checking whether $CC understands -c and -o together... " >&6; } 13543if test ${am_cv_prog_cc_c_o+y} 13544then : 13545 printf %s "(cached) " >&6 13546else $as_nop 13547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13548/* end confdefs.h. */ 13549 13550int 13551main (void) 13552{ 13553 13554 ; 13555 return 0; 13556} 13557_ACEOF 13558 # Make sure it works both with $CC and with simple cc. 13559 # Following AC_PROG_CC_C_O, we do the test twice because some 13560 # compilers refuse to overwrite an existing .o file with -o, 13561 # though they will create one. 13562 am_cv_prog_cc_c_o=yes 13563 for am_i in 1 2; do 13564 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 13565 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 13566 ac_status=$? 13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13568 (exit $ac_status); } \ 13569 && test -f conftest2.$ac_objext; then 13570 : OK 13571 else 13572 am_cv_prog_cc_c_o=no 13573 break 13574 fi 13575 done 13576 rm -f core conftest* 13577 unset am_i 13578fi 13579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 13580printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 13581if test "$am_cv_prog_cc_c_o" != yes; then 13582 # Losing compiler, so override with the script. 13583 # FIXME: It is wrong to rewrite CC. 13584 # But if we don't then we get into trouble of one sort or another. 13585 # A longer-term fix would be to have automake use am__CC in this case, 13586 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 13587 CC="$am_aux_dir/compile $CC" 13588fi 13589ac_ext=c 13590ac_cpp='$CPP $CPPFLAGS' 13591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13593ac_compiler_gnu=$ac_cv_c_compiler_gnu 13594 13595 13596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 13597printf %s "checking whether ln -s works... " >&6; } 13598LN_S=$as_ln_s 13599if test "$LN_S" = "ln -s"; then 13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13601printf "%s\n" "yes" >&6; } 13602else 13603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 13604printf "%s\n" "no, using $LN_S" >&6; } 13605fi 13606 13607for ac_prog in gawk mawk nawk awk 13608do 13609 # Extract the first word of "$ac_prog", so it can be a program name with args. 13610set dummy $ac_prog; ac_word=$2 13611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13612printf %s "checking for $ac_word... " >&6; } 13613if test ${ac_cv_prog_AWK+y} 13614then : 13615 printf %s "(cached) " >&6 13616else $as_nop 13617 if test -n "$AWK"; then 13618 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13619else 13620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13621for as_dir in $PATH 13622do 13623 IFS=$as_save_IFS 13624 case $as_dir in #((( 13625 '') as_dir=./ ;; 13626 */) ;; 13627 *) as_dir=$as_dir/ ;; 13628 esac 13629 for ac_exec_ext in '' $ac_executable_extensions; do 13630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13631 ac_cv_prog_AWK="$ac_prog" 13632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13633 break 2 13634 fi 13635done 13636 done 13637IFS=$as_save_IFS 13638 13639fi 13640fi 13641AWK=$ac_cv_prog_AWK 13642if test -n "$AWK"; then 13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13644printf "%s\n" "$AWK" >&6; } 13645else 13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13647printf "%s\n" "no" >&6; } 13648fi 13649 13650 13651 test -n "$AWK" && break 13652done 13653 13654 13655 MANTYPE= 13656 TestPath="/usr/bin${PATH_SEPARATOR}/usr/ucb" 13657 for ac_prog in nroff awf 13658do 13659 # Extract the first word of "$ac_prog", so it can be a program name with args. 13660set dummy $ac_prog; ac_word=$2 13661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13662printf %s "checking for $ac_word... " >&6; } 13663if test ${ac_cv_path_NROFF+y} 13664then : 13665 printf %s "(cached) " >&6 13666else $as_nop 13667 case $NROFF in 13668 [\\/]* | ?:[\\/]*) 13669 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 13670 ;; 13671 *) 13672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13673for as_dir in $TestPath 13674do 13675 IFS=$as_save_IFS 13676 case $as_dir in #((( 13677 '') as_dir=./ ;; 13678 */) ;; 13679 *) as_dir=$as_dir/ ;; 13680 esac 13681 for ac_exec_ext in '' $ac_executable_extensions; do 13682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13683 ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext" 13684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13685 break 2 13686 fi 13687done 13688 done 13689IFS=$as_save_IFS 13690 13691 ;; 13692esac 13693fi 13694NROFF=$ac_cv_path_NROFF 13695if test -n "$NROFF"; then 13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5 13697printf "%s\n" "$NROFF" >&6; } 13698else 13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13700printf "%s\n" "no" >&6; } 13701fi 13702 13703 13704 test -n "$NROFF" && break 13705done 13706test -n "$NROFF" || NROFF="/bin/false" 13707 13708 if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then 13709 MANTYPE=mdoc 13710 fi 13711 13712 13713 13714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5 13715printf %s "checking for tgetent in -lncurses... " >&6; } 13716if test ${ac_cv_lib_ncurses_tgetent+y} 13717then : 13718 printf %s "(cached) " >&6 13719else $as_nop 13720 ac_check_lib_save_LIBS=$LIBS 13721LIBS="-lncurses $LIBS" 13722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13723/* end confdefs.h. */ 13724 13725/* Override any GCC internal prototype to avoid an error. 13726 Use char because int might match the return type of a GCC 13727 builtin and then its argument prototype would still apply. */ 13728char tgetent (); 13729int 13730main (void) 13731{ 13732return tgetent (); 13733 ; 13734 return 0; 13735} 13736_ACEOF 13737if ac_fn_c_try_link "$LINENO" 13738then : 13739 ac_cv_lib_ncurses_tgetent=yes 13740else $as_nop 13741 ac_cv_lib_ncurses_tgetent=no 13742fi 13743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13744 conftest$ac_exeext conftest.$ac_ext 13745LIBS=$ac_check_lib_save_LIBS 13746fi 13747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5 13748printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; } 13749if test "x$ac_cv_lib_ncurses_tgetent" = xyes 13750then : 13751 printf "%s\n" "@%:@define HAVE_LIBNCURSES 1" >>confdefs.h 13752 13753 LIBS="-lncurses $LIBS" 13754 13755else $as_nop 13756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5 13757printf %s "checking for tgetent in -lcurses... " >&6; } 13758if test ${ac_cv_lib_curses_tgetent+y} 13759then : 13760 printf %s "(cached) " >&6 13761else $as_nop 13762 ac_check_lib_save_LIBS=$LIBS 13763LIBS="-lcurses $LIBS" 13764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13765/* end confdefs.h. */ 13766 13767/* Override any GCC internal prototype to avoid an error. 13768 Use char because int might match the return type of a GCC 13769 builtin and then its argument prototype would still apply. */ 13770char tgetent (); 13771int 13772main (void) 13773{ 13774return tgetent (); 13775 ; 13776 return 0; 13777} 13778_ACEOF 13779if ac_fn_c_try_link "$LINENO" 13780then : 13781 ac_cv_lib_curses_tgetent=yes 13782else $as_nop 13783 ac_cv_lib_curses_tgetent=no 13784fi 13785rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13786 conftest$ac_exeext conftest.$ac_ext 13787LIBS=$ac_check_lib_save_LIBS 13788fi 13789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5 13790printf "%s\n" "$ac_cv_lib_curses_tgetent" >&6; } 13791if test "x$ac_cv_lib_curses_tgetent" = xyes 13792then : 13793 printf "%s\n" "@%:@define HAVE_LIBCURSES 1" >>confdefs.h 13794 13795 LIBS="-lcurses $LIBS" 13796 13797else $as_nop 13798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5 13799printf %s "checking for tgetent in -ltermcap... " >&6; } 13800if test ${ac_cv_lib_termcap_tgetent+y} 13801then : 13802 printf %s "(cached) " >&6 13803else $as_nop 13804 ac_check_lib_save_LIBS=$LIBS 13805LIBS="-ltermcap $LIBS" 13806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13807/* end confdefs.h. */ 13808 13809/* Override any GCC internal prototype to avoid an error. 13810 Use char because int might match the return type of a GCC 13811 builtin and then its argument prototype would still apply. */ 13812char tgetent (); 13813int 13814main (void) 13815{ 13816return tgetent (); 13817 ; 13818 return 0; 13819} 13820_ACEOF 13821if ac_fn_c_try_link "$LINENO" 13822then : 13823 ac_cv_lib_termcap_tgetent=yes 13824else $as_nop 13825 ac_cv_lib_termcap_tgetent=no 13826fi 13827rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13828 conftest$ac_exeext conftest.$ac_ext 13829LIBS=$ac_check_lib_save_LIBS 13830fi 13831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5 13832printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; } 13833if test "x$ac_cv_lib_termcap_tgetent" = xyes 13834then : 13835 printf "%s\n" "@%:@define HAVE_LIBTERMCAP 1" >>confdefs.h 13836 13837 LIBS="-ltermcap $LIBS" 13838 13839else $as_nop 13840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 13841printf %s "checking for tgetent in -ltinfo... " >&6; } 13842if test ${ac_cv_lib_tinfo_tgetent+y} 13843then : 13844 printf %s "(cached) " >&6 13845else $as_nop 13846 ac_check_lib_save_LIBS=$LIBS 13847LIBS="-ltinfo $LIBS" 13848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13849/* end confdefs.h. */ 13850 13851/* Override any GCC internal prototype to avoid an error. 13852 Use char because int might match the return type of a GCC 13853 builtin and then its argument prototype would still apply. */ 13854char tgetent (); 13855int 13856main (void) 13857{ 13858return tgetent (); 13859 ; 13860 return 0; 13861} 13862_ACEOF 13863if ac_fn_c_try_link "$LINENO" 13864then : 13865 ac_cv_lib_tinfo_tgetent=yes 13866else $as_nop 13867 ac_cv_lib_tinfo_tgetent=no 13868fi 13869rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13870 conftest$ac_exeext conftest.$ac_ext 13871LIBS=$ac_check_lib_save_LIBS 13872fi 13873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 13874printf "%s\n" "$ac_cv_lib_tinfo_tgetent" >&6; } 13875if test "x$ac_cv_lib_tinfo_tgetent" = xyes 13876then : 13877 printf "%s\n" "@%:@define HAVE_LIBTINFO 1" >>confdefs.h 13878 13879 LIBS="-ltinfo $LIBS" 13880 13881else $as_nop 13882 as_fn_error $? "libncurses, libcurses, libtermcap or libtinfo is required!" "$LINENO" 5 13883 13884fi 13885 13886 13887fi 13888 13889 13890fi 13891 13892 13893fi 13894 13895 13896### deprecate option --enable-widec to turn on use of wide-character support 13897 13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if you want wide-character code" >&5 13899printf %s "checking if you want wide-character code... " >&6; } 13900 @%:@ Check whether --enable-widec was given. 13901if test ${enable_widec+y} 13902then : 13903 enableval=$enable_widec; with_widec=$enableval 13904else $as_nop 13905 with_widec=no 13906fi 13907 13908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_widec" >&5 13909printf "%s\n" "$with_widec" >&6; } 13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-widec is deprecated, wide-character/UTF-8 is always enabled" >&5 13911printf "%s\n" "$as_me: WARNING: --enable-widec is deprecated, wide-character/UTF-8 is always enabled" >&2;} 13912 13913 13914@%:@ Check whether --enable-examples was given. 13915if test ${enable_examples+y} 13916then : 13917 enableval=$enable_examples; enable_examples="$enableval" 13918else $as_nop 13919 enable_examples="yes" 13920 13921fi 13922 13923 13924 if test "$enable_examples" = "yes"; then 13925 ENABLE_EXAMPLES_TRUE= 13926 ENABLE_EXAMPLES_FALSE='#' 13927else 13928 ENABLE_EXAMPLES_TRUE='#' 13929 ENABLE_EXAMPLES_FALSE= 13930fi 13931 13932 13933# Checks for header files. 13934ac_header_dirent=no 13935for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 13936 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 13937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 13938printf %s "checking for $ac_hdr that defines DIR... " >&6; } 13939if eval test \${$as_ac_Header+y} 13940then : 13941 printf %s "(cached) " >&6 13942else $as_nop 13943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13944/* end confdefs.h. */ 13945#include <sys/types.h> 13946#include <$ac_hdr> 13947 13948int 13949main (void) 13950{ 13951if ((DIR *) 0) 13952return 0; 13953 ; 13954 return 0; 13955} 13956_ACEOF 13957if ac_fn_c_try_compile "$LINENO" 13958then : 13959 eval "$as_ac_Header=yes" 13960else $as_nop 13961 eval "$as_ac_Header=no" 13962fi 13963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13964fi 13965eval ac_res=\$$as_ac_Header 13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13967printf "%s\n" "$ac_res" >&6; } 13968if eval test \"x\$"$as_ac_Header"\" = x"yes" 13969then : 13970 cat >>confdefs.h <<_ACEOF 13971@%:@define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 13972_ACEOF 13973 13974ac_header_dirent=$ac_hdr; break 13975fi 13976 13977done 13978# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 13979if test $ac_header_dirent = dirent.h; then 13980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 13981printf %s "checking for library containing opendir... " >&6; } 13982if test ${ac_cv_search_opendir+y} 13983then : 13984 printf %s "(cached) " >&6 13985else $as_nop 13986 ac_func_search_save_LIBS=$LIBS 13987cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13988/* end confdefs.h. */ 13989 13990/* Override any GCC internal prototype to avoid an error. 13991 Use char because int might match the return type of a GCC 13992 builtin and then its argument prototype would still apply. */ 13993char opendir (); 13994int 13995main (void) 13996{ 13997return opendir (); 13998 ; 13999 return 0; 14000} 14001_ACEOF 14002for ac_lib in '' dir 14003do 14004 if test -z "$ac_lib"; then 14005 ac_res="none required" 14006 else 14007 ac_res=-l$ac_lib 14008 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14009 fi 14010 if ac_fn_c_try_link "$LINENO" 14011then : 14012 ac_cv_search_opendir=$ac_res 14013fi 14014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14015 conftest$ac_exeext 14016 if test ${ac_cv_search_opendir+y} 14017then : 14018 break 14019fi 14020done 14021if test ${ac_cv_search_opendir+y} 14022then : 14023 14024else $as_nop 14025 ac_cv_search_opendir=no 14026fi 14027rm conftest.$ac_ext 14028LIBS=$ac_func_search_save_LIBS 14029fi 14030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14031printf "%s\n" "$ac_cv_search_opendir" >&6; } 14032ac_res=$ac_cv_search_opendir 14033if test "$ac_res" != no 14034then : 14035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14036 14037fi 14038 14039else 14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 14041printf %s "checking for library containing opendir... " >&6; } 14042if test ${ac_cv_search_opendir+y} 14043then : 14044 printf %s "(cached) " >&6 14045else $as_nop 14046 ac_func_search_save_LIBS=$LIBS 14047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14048/* end confdefs.h. */ 14049 14050/* Override any GCC internal prototype to avoid an error. 14051 Use char because int might match the return type of a GCC 14052 builtin and then its argument prototype would still apply. */ 14053char opendir (); 14054int 14055main (void) 14056{ 14057return opendir (); 14058 ; 14059 return 0; 14060} 14061_ACEOF 14062for ac_lib in '' x 14063do 14064 if test -z "$ac_lib"; then 14065 ac_res="none required" 14066 else 14067 ac_res=-l$ac_lib 14068 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 14069 fi 14070 if ac_fn_c_try_link "$LINENO" 14071then : 14072 ac_cv_search_opendir=$ac_res 14073fi 14074rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14075 conftest$ac_exeext 14076 if test ${ac_cv_search_opendir+y} 14077then : 14078 break 14079fi 14080done 14081if test ${ac_cv_search_opendir+y} 14082then : 14083 14084else $as_nop 14085 ac_cv_search_opendir=no 14086fi 14087rm conftest.$ac_ext 14088LIBS=$ac_func_search_save_LIBS 14089fi 14090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 14091printf "%s\n" "$ac_cv_search_opendir" >&6; } 14092ac_res=$ac_cv_search_opendir 14093if test "$ac_res" != no 14094then : 14095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 14096 14097fi 14098 14099fi 14100 14101 14102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 14103printf %s "checking for egrep... " >&6; } 14104if test ${ac_cv_path_EGREP+y} 14105then : 14106 printf %s "(cached) " >&6 14107else $as_nop 14108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 14109 then ac_cv_path_EGREP="$GREP -E" 14110 else 14111 if test -z "$EGREP"; then 14112 ac_path_EGREP_found=false 14113 # Loop through the user's path and test for each of PROGNAME-LIST 14114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14115for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 14116do 14117 IFS=$as_save_IFS 14118 case $as_dir in #((( 14119 '') as_dir=./ ;; 14120 */) ;; 14121 *) as_dir=$as_dir/ ;; 14122 esac 14123 for ac_prog in egrep 14124 do 14125 for ac_exec_ext in '' $ac_executable_extensions; do 14126 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 14127 as_fn_executable_p "$ac_path_EGREP" || continue 14128# Check for GNU ac_path_EGREP and select it if it is found. 14129 # Check for GNU $ac_path_EGREP 14130case `"$ac_path_EGREP" --version 2>&1` in 14131*GNU*) 14132 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 14133*) 14134 ac_count=0 14135 printf %s 0123456789 >"conftest.in" 14136 while : 14137 do 14138 cat "conftest.in" "conftest.in" >"conftest.tmp" 14139 mv "conftest.tmp" "conftest.in" 14140 cp "conftest.in" "conftest.nl" 14141 printf "%s\n" 'EGREP' >> "conftest.nl" 14142 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 14143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14144 as_fn_arith $ac_count + 1 && ac_count=$as_val 14145 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 14146 # Best one so far, save it but keep looking for a better one 14147 ac_cv_path_EGREP="$ac_path_EGREP" 14148 ac_path_EGREP_max=$ac_count 14149 fi 14150 # 10*(2^10) chars as input seems more than enough 14151 test $ac_count -gt 10 && break 14152 done 14153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14154esac 14155 14156 $ac_path_EGREP_found && break 3 14157 done 14158 done 14159 done 14160IFS=$as_save_IFS 14161 if test -z "$ac_cv_path_EGREP"; then 14162 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14163 fi 14164else 14165 ac_cv_path_EGREP=$EGREP 14166fi 14167 14168 fi 14169fi 14170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 14171printf "%s\n" "$ac_cv_path_EGREP" >&6; } 14172 EGREP="$ac_cv_path_EGREP" 14173 14174 14175 14176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 14177printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 14178if test ${ac_cv_header_sys_wait_h+y} 14179then : 14180 printf %s "(cached) " >&6 14181else $as_nop 14182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14183/* end confdefs.h. */ 14184#include <sys/types.h> 14185#include <sys/wait.h> 14186#ifndef WEXITSTATUS 14187# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14188#endif 14189#ifndef WIFEXITED 14190# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14191#endif 14192 14193int 14194main (void) 14195{ 14196 int s; 14197 wait (&s); 14198 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14199 ; 14200 return 0; 14201} 14202_ACEOF 14203if ac_fn_c_try_compile "$LINENO" 14204then : 14205 ac_cv_header_sys_wait_h=yes 14206else $as_nop 14207 ac_cv_header_sys_wait_h=no 14208fi 14209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14210fi 14211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 14212printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } 14213if test $ac_cv_header_sys_wait_h = yes; then 14214 14215printf "%s\n" "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h 14216 14217fi 14218 14219ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 14220if test "x$ac_cv_header_fcntl_h" = xyes 14221then : 14222 printf "%s\n" "@%:@define HAVE_FCNTL_H 1" >>confdefs.h 14223 14224fi 14225ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 14226if test "x$ac_cv_header_limits_h" = xyes 14227then : 14228 printf "%s\n" "@%:@define HAVE_LIMITS_H 1" >>confdefs.h 14229 14230fi 14231ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 14232if test "x$ac_cv_header_malloc_h" = xyes 14233then : 14234 printf "%s\n" "@%:@define HAVE_MALLOC_H 1" >>confdefs.h 14235 14236fi 14237ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 14238if test "x$ac_cv_header_stdlib_h" = xyes 14239then : 14240 printf "%s\n" "@%:@define HAVE_STDLIB_H 1" >>confdefs.h 14241 14242fi 14243ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 14244if test "x$ac_cv_header_string_h" = xyes 14245then : 14246 printf "%s\n" "@%:@define HAVE_STRING_H 1" >>confdefs.h 14247 14248fi 14249ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 14250if test "x$ac_cv_header_sys_ioctl_h" = xyes 14251then : 14252 printf "%s\n" "@%:@define HAVE_SYS_IOCTL_H 1" >>confdefs.h 14253 14254fi 14255ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 14256if test "x$ac_cv_header_sys_param_h" = xyes 14257then : 14258 printf "%s\n" "@%:@define HAVE_SYS_PARAM_H 1" >>confdefs.h 14259 14260fi 14261ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14262if test "x$ac_cv_header_unistd_h" = xyes 14263then : 14264 printf "%s\n" "@%:@define HAVE_UNISTD_H 1" >>confdefs.h 14265 14266fi 14267ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 14268if test "x$ac_cv_header_curses_h" = xyes 14269then : 14270 printf "%s\n" "@%:@define HAVE_CURSES_H 1" >>confdefs.h 14271 14272fi 14273ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" 14274if test "x$ac_cv_header_ncurses_h" = xyes 14275then : 14276 printf "%s\n" "@%:@define HAVE_NCURSES_H 1" >>confdefs.h 14277 14278fi 14279ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default" 14280if test "x$ac_cv_header_sys_cdefs_h" = xyes 14281then : 14282 printf "%s\n" "@%:@define HAVE_SYS_CDEFS_H 1" >>confdefs.h 14283 14284fi 14285ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" 14286if test "x$ac_cv_header_termcap_h" = xyes 14287then : 14288 printf "%s\n" "@%:@define HAVE_TERMCAP_H 1" >>confdefs.h 14289 14290fi 14291 14292 14293ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" 14294if test "x$ac_cv_header_ncurses_h" = xyes 14295then : 14296 14297else $as_nop 14298 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 14299if test "x$ac_cv_header_curses_h" = xyes 14300then : 14301 14302else $as_nop 14303 ac_fn_c_check_header_compile "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default" 14304if test "x$ac_cv_header_termcap_h" = xyes 14305then : 14306 14307else $as_nop 14308 as_fn_error $? "ncurses.h, curses.h, or termcap.h is required!" "$LINENO" 5 14309fi 14310 14311fi 14312 14313fi 14314 14315 14316ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 14317if test "x$ac_cv_header_termios_h" = xyes 14318then : 14319 14320else $as_nop 14321 as_fn_error $? "termios.h is required!" "$LINENO" 5 14322fi 14323 14324 14325## include curses.h to prevent "Present But Cannot Be Compiled" 14326ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H 14327# include <curses.h> 14328#elif HAVE_NCURSES_H 14329# include <ncurses.h> 14330#endif 14331 14332" 14333if test "x$ac_cv_header_term_h" = xyes 14334then : 14335 printf "%s\n" "@%:@define HAVE_TERM_H 1" >>confdefs.h 14336 14337fi 14338 14339 14340# Check for dirent.d_namlen field explicitly 14341# (This is a bit more straightforward than, if not quite as portable as, 14342# the recipe given by the autoconf maintainers.) 14343ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H 14344#include <dirent.h> 14345#endif 14346 14347" 14348if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes 14349then : 14350 14351printf "%s\n" "@%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1" >>confdefs.h 14352 14353fi 14354 14355 14356# Checks for typedefs, structures, and compiler characteristics. 14357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14358printf %s "checking for an ANSI C-conforming const... " >&6; } 14359if test ${ac_cv_c_const+y} 14360then : 14361 printf %s "(cached) " >&6 14362else $as_nop 14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14364/* end confdefs.h. */ 14365 14366int 14367main (void) 14368{ 14369 14370#ifndef __cplusplus 14371 /* Ultrix mips cc rejects this sort of thing. */ 14372 typedef int charset[2]; 14373 const charset cs = { 0, 0 }; 14374 /* SunOS 4.1.1 cc rejects this. */ 14375 char const *const *pcpcc; 14376 char **ppc; 14377 /* NEC SVR4.0.2 mips cc rejects this. */ 14378 struct point {int x, y;}; 14379 static struct point const zero = {0,0}; 14380 /* IBM XL C 1.02.0.0 rejects this. 14381 It does not let you subtract one const X* pointer from another in 14382 an arm of an if-expression whose if-part is not a constant 14383 expression */ 14384 const char *g = "string"; 14385 pcpcc = &g + (g ? g-g : 0); 14386 /* HPUX 7.0 cc rejects these. */ 14387 ++pcpcc; 14388 ppc = (char**) pcpcc; 14389 pcpcc = (char const *const *) ppc; 14390 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14391 char tx; 14392 char *t = &tx; 14393 char const *s = 0 ? (char *) 0 : (char const *) 0; 14394 14395 *t++ = 0; 14396 if (s) return 0; 14397 } 14398 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14399 int x[] = {25, 17}; 14400 const int *foo = &x[0]; 14401 ++foo; 14402 } 14403 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14404 typedef const int *iptr; 14405 iptr p = 0; 14406 ++p; 14407 } 14408 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 14409 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14410 struct s { int j; const int *ap[3]; } bx; 14411 struct s *b = &bx; b->j = 5; 14412 } 14413 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14414 const int foo = 10; 14415 if (!foo) return 0; 14416 } 14417 return !cs[0] && !zero.x; 14418#endif 14419 14420 ; 14421 return 0; 14422} 14423_ACEOF 14424if ac_fn_c_try_compile "$LINENO" 14425then : 14426 ac_cv_c_const=yes 14427else $as_nop 14428 ac_cv_c_const=no 14429fi 14430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14431fi 14432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14433printf "%s\n" "$ac_cv_c_const" >&6; } 14434if test $ac_cv_c_const = no; then 14435 14436printf "%s\n" "@%:@define const /**/" >>confdefs.h 14437 14438fi 14439 14440 14441 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 14442" 14443if test "x$ac_cv_type_pid_t" = xyes 14444then : 14445 14446else $as_nop 14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14448/* end confdefs.h. */ 14449 14450 #if defined _WIN64 && !defined __CYGWIN__ 14451 LLP64 14452 #endif 14453 14454int 14455main (void) 14456{ 14457 14458 ; 14459 return 0; 14460} 14461 14462_ACEOF 14463if ac_fn_c_try_compile "$LINENO" 14464then : 14465 ac_pid_type='int' 14466else $as_nop 14467 ac_pid_type='__int64' 14468fi 14469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14470 14471printf "%s\n" "@%:@define pid_t $ac_pid_type" >>confdefs.h 14472 14473 14474fi 14475 14476 14477ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14478if test "x$ac_cv_type_size_t" = xyes 14479then : 14480 14481else $as_nop 14482 14483printf "%s\n" "@%:@define size_t unsigned int" >>confdefs.h 14484 14485fi 14486 14487ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" 14488if test "x$ac_cv_type_u_int32_t" = xyes 14489then : 14490 14491printf "%s\n" "@%:@define HAVE_U_INT32_T 1" >>confdefs.h 14492 14493 14494fi 14495 14496 14497# Checks for library functions. 14498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 14499printf %s "checking whether closedir returns void... " >&6; } 14500if test ${ac_cv_func_closedir_void+y} 14501then : 14502 printf %s "(cached) " >&6 14503else $as_nop 14504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505/* end confdefs.h. */ 14506 14507#include <$ac_header_dirent> 14508 14509int 14510main (void) 14511{ 14512 14513 return closedir(0); 14514 14515 ; 14516 return 0; 14517} 14518_ACEOF 14519if ac_fn_c_try_compile "$LINENO" 14520then : 14521 ac_cv_func_closedir_void=no 14522else $as_nop 14523 ac_cv_func_closedir_void=yes 14524fi 14525rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14526fi 14527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 14528printf "%s\n" "$ac_cv_func_closedir_void" >&6; } 14529if test $ac_cv_func_closedir_void = yes; then 14530 14531printf "%s\n" "@%:@define CLOSEDIR_VOID 1" >>confdefs.h 14532 14533fi 14534 14535 14536ac_func= 14537for ac_item in $ac_func_c_list 14538do 14539 if test $ac_func; then 14540 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 14541 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 14542 echo "#define $ac_item 1" >> confdefs.h 14543 fi 14544 ac_func= 14545 else 14546 ac_func=$ac_item 14547 fi 14548done 14549 14550 14551 14552if test "x$ac_cv_func_fork" = xyes; then 14553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 14554printf %s "checking for working fork... " >&6; } 14555if test ${ac_cv_func_fork_works+y} 14556then : 14557 printf %s "(cached) " >&6 14558else $as_nop 14559 if test "$cross_compiling" = yes 14560then : 14561 ac_cv_func_fork_works=cross 14562else $as_nop 14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14564/* end confdefs.h. */ 14565$ac_includes_default 14566int 14567main (void) 14568{ 14569 14570 /* By Ruediger Kuhlmann. */ 14571 return fork () < 0; 14572 14573 ; 14574 return 0; 14575} 14576_ACEOF 14577if ac_fn_c_try_run "$LINENO" 14578then : 14579 ac_cv_func_fork_works=yes 14580else $as_nop 14581 ac_cv_func_fork_works=no 14582fi 14583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14584 conftest.$ac_objext conftest.beam conftest.$ac_ext 14585fi 14586 14587fi 14588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 14589printf "%s\n" "$ac_cv_func_fork_works" >&6; } 14590 14591else 14592 ac_cv_func_fork_works=$ac_cv_func_fork 14593fi 14594if test "x$ac_cv_func_fork_works" = xcross; then 14595 case $host in 14596 *-*-amigaos* | *-*-msdosdjgpp*) 14597 # Override, as these systems have only a dummy fork() stub 14598 ac_cv_func_fork_works=no 14599 ;; 14600 *) 14601 ac_cv_func_fork_works=yes 14602 ;; 14603 esac 14604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 14605printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 14606fi 14607ac_cv_func_vfork_works=$ac_cv_func_vfork 14608if test "x$ac_cv_func_vfork" = xyes; then 14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 14610printf %s "checking for working vfork... " >&6; } 14611if test ${ac_cv_func_vfork_works+y} 14612then : 14613 printf %s "(cached) " >&6 14614else $as_nop 14615 if test "$cross_compiling" = yes 14616then : 14617 ac_cv_func_vfork_works=cross 14618else $as_nop 14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14620/* end confdefs.h. */ 14621/* Thanks to Paul Eggert for this test. */ 14622$ac_includes_default 14623#include <signal.h> 14624#include <sys/wait.h> 14625#ifdef HAVE_VFORK_H 14626# include <vfork.h> 14627#endif 14628 14629static void 14630do_nothing (int sig) 14631{ 14632 (void) sig; 14633} 14634 14635/* On some sparc systems, changes by the child to local and incoming 14636 argument registers are propagated back to the parent. The compiler 14637 is told about this with #include <vfork.h>, but some compilers 14638 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 14639 static variable whose address is put into a register that is 14640 clobbered by the vfork. */ 14641static void 14642sparc_address_test (int arg) 14643{ 14644 static pid_t child; 14645 if (!child) { 14646 child = vfork (); 14647 if (child < 0) { 14648 perror ("vfork"); 14649 _exit(2); 14650 } 14651 if (!child) { 14652 arg = getpid(); 14653 write(-1, "", 0); 14654 _exit (arg); 14655 } 14656 } 14657} 14658 14659int 14660main (void) 14661{ 14662 pid_t parent = getpid (); 14663 pid_t child; 14664 14665 sparc_address_test (0); 14666 14667 /* On Solaris 2.4, changes by the child to the signal handler 14668 also munge signal handlers in the parent. To detect this, 14669 start by putting the parent's handler in a known state. */ 14670 signal (SIGTERM, SIG_DFL); 14671 14672 child = vfork (); 14673 14674 if (child == 0) { 14675 /* Here is another test for sparc vfork register problems. This 14676 test uses lots of local variables, at least as many local 14677 variables as main has allocated so far including compiler 14678 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 14679 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 14680 reuse the register of parent for one of the local variables, 14681 since it will think that parent can't possibly be used any more 14682 in this routine. Assigning to the local variable will thus 14683 munge parent in the parent process. */ 14684 pid_t 14685 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 14686 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 14687 /* Convince the compiler that p..p7 are live; otherwise, it might 14688 use the same hardware register for all 8 local variables. */ 14689 if (p != p1 || p != p2 || p != p3 || p != p4 14690 || p != p5 || p != p6 || p != p7) 14691 _exit(1); 14692 14693 /* Alter the child's signal handler. */ 14694 if (signal (SIGTERM, do_nothing) != SIG_DFL) 14695 _exit(1); 14696 14697 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 14698 from child file descriptors. If the child closes a descriptor 14699 before it execs or exits, this munges the parent's descriptor 14700 as well. Test for this by closing stdout in the child. */ 14701 _exit(close(fileno(stdout)) != 0); 14702 } else { 14703 int status; 14704 struct stat st; 14705 14706 while (wait(&status) != child) 14707 ; 14708 return ( 14709 /* Was there some problem with vforking? */ 14710 child < 0 14711 14712 /* Did the child munge the parent's signal handler? */ 14713 || signal (SIGTERM, SIG_DFL) != SIG_DFL 14714 14715 /* Did the child fail? (This shouldn't happen.) */ 14716 || status 14717 14718 /* Did the vfork/compiler bug occur? */ 14719 || parent != getpid() 14720 14721 /* Did the file descriptor bug occur? */ 14722 || fstat(fileno(stdout), &st) != 0 14723 ); 14724 } 14725} 14726_ACEOF 14727if ac_fn_c_try_run "$LINENO" 14728then : 14729 ac_cv_func_vfork_works=yes 14730else $as_nop 14731 ac_cv_func_vfork_works=no 14732fi 14733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14734 conftest.$ac_objext conftest.beam conftest.$ac_ext 14735fi 14736 14737fi 14738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 14739printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 14740 14741fi; 14742if test "x$ac_cv_func_fork_works" = xcross; then 14743 ac_cv_func_vfork_works=$ac_cv_func_vfork 14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 14745printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 14746fi 14747 14748if test "x$ac_cv_func_vfork_works" = xyes; then 14749 14750printf "%s\n" "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h 14751 14752else 14753 14754printf "%s\n" "@%:@define vfork fork" >>confdefs.h 14755 14756fi 14757if test "x$ac_cv_func_fork_works" = xyes; then 14758 14759printf "%s\n" "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h 14760 14761fi 14762 14763ac_ext=c 14764ac_cpp='$CPP $CPPFLAGS' 14765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14767ac_compiler_gnu=$ac_cv_c_compiler_gnu 14768if test -n "$ac_tool_prefix"; then 14769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 14770set dummy ${ac_tool_prefix}gcc; ac_word=$2 14771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14772printf %s "checking for $ac_word... " >&6; } 14773if test ${ac_cv_prog_CC+y} 14774then : 14775 printf %s "(cached) " >&6 14776else $as_nop 14777 if test -n "$CC"; then 14778 ac_cv_prog_CC="$CC" # Let the user override the test. 14779else 14780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14781for as_dir in $PATH 14782do 14783 IFS=$as_save_IFS 14784 case $as_dir in #((( 14785 '') as_dir=./ ;; 14786 */) ;; 14787 *) as_dir=$as_dir/ ;; 14788 esac 14789 for ac_exec_ext in '' $ac_executable_extensions; do 14790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14791 ac_cv_prog_CC="${ac_tool_prefix}gcc" 14792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14793 break 2 14794 fi 14795done 14796 done 14797IFS=$as_save_IFS 14798 14799fi 14800fi 14801CC=$ac_cv_prog_CC 14802if test -n "$CC"; then 14803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14804printf "%s\n" "$CC" >&6; } 14805else 14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14807printf "%s\n" "no" >&6; } 14808fi 14809 14810 14811fi 14812if test -z "$ac_cv_prog_CC"; then 14813 ac_ct_CC=$CC 14814 # Extract the first word of "gcc", so it can be a program name with args. 14815set dummy gcc; ac_word=$2 14816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14817printf %s "checking for $ac_word... " >&6; } 14818if test ${ac_cv_prog_ac_ct_CC+y} 14819then : 14820 printf %s "(cached) " >&6 14821else $as_nop 14822 if test -n "$ac_ct_CC"; then 14823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 14824else 14825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14826for as_dir in $PATH 14827do 14828 IFS=$as_save_IFS 14829 case $as_dir in #((( 14830 '') as_dir=./ ;; 14831 */) ;; 14832 *) as_dir=$as_dir/ ;; 14833 esac 14834 for ac_exec_ext in '' $ac_executable_extensions; do 14835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14836 ac_cv_prog_ac_ct_CC="gcc" 14837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14838 break 2 14839 fi 14840done 14841 done 14842IFS=$as_save_IFS 14843 14844fi 14845fi 14846ac_ct_CC=$ac_cv_prog_ac_ct_CC 14847if test -n "$ac_ct_CC"; then 14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 14849printf "%s\n" "$ac_ct_CC" >&6; } 14850else 14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14852printf "%s\n" "no" >&6; } 14853fi 14854 14855 if test "x$ac_ct_CC" = x; then 14856 CC="" 14857 else 14858 case $cross_compiling:$ac_tool_warned in 14859yes:) 14860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14861printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14862ac_tool_warned=yes ;; 14863esac 14864 CC=$ac_ct_CC 14865 fi 14866else 14867 CC="$ac_cv_prog_CC" 14868fi 14869 14870if test -z "$CC"; then 14871 if test -n "$ac_tool_prefix"; then 14872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 14873set dummy ${ac_tool_prefix}cc; ac_word=$2 14874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14875printf %s "checking for $ac_word... " >&6; } 14876if test ${ac_cv_prog_CC+y} 14877then : 14878 printf %s "(cached) " >&6 14879else $as_nop 14880 if test -n "$CC"; then 14881 ac_cv_prog_CC="$CC" # Let the user override the test. 14882else 14883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14884for as_dir in $PATH 14885do 14886 IFS=$as_save_IFS 14887 case $as_dir in #((( 14888 '') as_dir=./ ;; 14889 */) ;; 14890 *) as_dir=$as_dir/ ;; 14891 esac 14892 for ac_exec_ext in '' $ac_executable_extensions; do 14893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14894 ac_cv_prog_CC="${ac_tool_prefix}cc" 14895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14896 break 2 14897 fi 14898done 14899 done 14900IFS=$as_save_IFS 14901 14902fi 14903fi 14904CC=$ac_cv_prog_CC 14905if test -n "$CC"; then 14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14907printf "%s\n" "$CC" >&6; } 14908else 14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14910printf "%s\n" "no" >&6; } 14911fi 14912 14913 14914 fi 14915fi 14916if test -z "$CC"; then 14917 # Extract the first word of "cc", so it can be a program name with args. 14918set dummy cc; ac_word=$2 14919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14920printf %s "checking for $ac_word... " >&6; } 14921if test ${ac_cv_prog_CC+y} 14922then : 14923 printf %s "(cached) " >&6 14924else $as_nop 14925 if test -n "$CC"; then 14926 ac_cv_prog_CC="$CC" # Let the user override the test. 14927else 14928 ac_prog_rejected=no 14929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14930for as_dir in $PATH 14931do 14932 IFS=$as_save_IFS 14933 case $as_dir in #((( 14934 '') as_dir=./ ;; 14935 */) ;; 14936 *) as_dir=$as_dir/ ;; 14937 esac 14938 for ac_exec_ext in '' $ac_executable_extensions; do 14939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14940 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 14941 ac_prog_rejected=yes 14942 continue 14943 fi 14944 ac_cv_prog_CC="cc" 14945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14946 break 2 14947 fi 14948done 14949 done 14950IFS=$as_save_IFS 14951 14952if test $ac_prog_rejected = yes; then 14953 # We found a bogon in the path, so make sure we never use it. 14954 set dummy $ac_cv_prog_CC 14955 shift 14956 if test $@%:@ != 0; then 14957 # We chose a different compiler from the bogus one. 14958 # However, it has the same basename, so the bogon will be chosen 14959 # first if we set CC to just the basename; use the full file name. 14960 shift 14961 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 14962 fi 14963fi 14964fi 14965fi 14966CC=$ac_cv_prog_CC 14967if test -n "$CC"; then 14968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14969printf "%s\n" "$CC" >&6; } 14970else 14971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14972printf "%s\n" "no" >&6; } 14973fi 14974 14975 14976fi 14977if test -z "$CC"; then 14978 if test -n "$ac_tool_prefix"; then 14979 for ac_prog in cl.exe 14980 do 14981 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14982set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14984printf %s "checking for $ac_word... " >&6; } 14985if test ${ac_cv_prog_CC+y} 14986then : 14987 printf %s "(cached) " >&6 14988else $as_nop 14989 if test -n "$CC"; then 14990 ac_cv_prog_CC="$CC" # Let the user override the test. 14991else 14992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14993for as_dir in $PATH 14994do 14995 IFS=$as_save_IFS 14996 case $as_dir in #((( 14997 '') as_dir=./ ;; 14998 */) ;; 14999 *) as_dir=$as_dir/ ;; 15000 esac 15001 for ac_exec_ext in '' $ac_executable_extensions; do 15002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 15004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15005 break 2 15006 fi 15007done 15008 done 15009IFS=$as_save_IFS 15010 15011fi 15012fi 15013CC=$ac_cv_prog_CC 15014if test -n "$CC"; then 15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15016printf "%s\n" "$CC" >&6; } 15017else 15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15019printf "%s\n" "no" >&6; } 15020fi 15021 15022 15023 test -n "$CC" && break 15024 done 15025fi 15026if test -z "$CC"; then 15027 ac_ct_CC=$CC 15028 for ac_prog in cl.exe 15029do 15030 # Extract the first word of "$ac_prog", so it can be a program name with args. 15031set dummy $ac_prog; ac_word=$2 15032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15033printf %s "checking for $ac_word... " >&6; } 15034if test ${ac_cv_prog_ac_ct_CC+y} 15035then : 15036 printf %s "(cached) " >&6 15037else $as_nop 15038 if test -n "$ac_ct_CC"; then 15039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15040else 15041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15042for as_dir in $PATH 15043do 15044 IFS=$as_save_IFS 15045 case $as_dir in #((( 15046 '') as_dir=./ ;; 15047 */) ;; 15048 *) as_dir=$as_dir/ ;; 15049 esac 15050 for ac_exec_ext in '' $ac_executable_extensions; do 15051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15052 ac_cv_prog_ac_ct_CC="$ac_prog" 15053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15054 break 2 15055 fi 15056done 15057 done 15058IFS=$as_save_IFS 15059 15060fi 15061fi 15062ac_ct_CC=$ac_cv_prog_ac_ct_CC 15063if test -n "$ac_ct_CC"; then 15064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 15065printf "%s\n" "$ac_ct_CC" >&6; } 15066else 15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15068printf "%s\n" "no" >&6; } 15069fi 15070 15071 15072 test -n "$ac_ct_CC" && break 15073done 15074 15075 if test "x$ac_ct_CC" = x; then 15076 CC="" 15077 else 15078 case $cross_compiling:$ac_tool_warned in 15079yes:) 15080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15081printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15082ac_tool_warned=yes ;; 15083esac 15084 CC=$ac_ct_CC 15085 fi 15086fi 15087 15088fi 15089if test -z "$CC"; then 15090 if test -n "$ac_tool_prefix"; then 15091 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 15092set dummy ${ac_tool_prefix}clang; ac_word=$2 15093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15094printf %s "checking for $ac_word... " >&6; } 15095if test ${ac_cv_prog_CC+y} 15096then : 15097 printf %s "(cached) " >&6 15098else $as_nop 15099 if test -n "$CC"; then 15100 ac_cv_prog_CC="$CC" # Let the user override the test. 15101else 15102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15103for as_dir in $PATH 15104do 15105 IFS=$as_save_IFS 15106 case $as_dir in #((( 15107 '') as_dir=./ ;; 15108 */) ;; 15109 *) as_dir=$as_dir/ ;; 15110 esac 15111 for ac_exec_ext in '' $ac_executable_extensions; do 15112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15113 ac_cv_prog_CC="${ac_tool_prefix}clang" 15114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15115 break 2 15116 fi 15117done 15118 done 15119IFS=$as_save_IFS 15120 15121fi 15122fi 15123CC=$ac_cv_prog_CC 15124if test -n "$CC"; then 15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15126printf "%s\n" "$CC" >&6; } 15127else 15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15129printf "%s\n" "no" >&6; } 15130fi 15131 15132 15133fi 15134if test -z "$ac_cv_prog_CC"; then 15135 ac_ct_CC=$CC 15136 # Extract the first word of "clang", so it can be a program name with args. 15137set dummy clang; ac_word=$2 15138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15139printf %s "checking for $ac_word... " >&6; } 15140if test ${ac_cv_prog_ac_ct_CC+y} 15141then : 15142 printf %s "(cached) " >&6 15143else $as_nop 15144 if test -n "$ac_ct_CC"; then 15145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15146else 15147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15148for as_dir in $PATH 15149do 15150 IFS=$as_save_IFS 15151 case $as_dir in #((( 15152 '') as_dir=./ ;; 15153 */) ;; 15154 *) as_dir=$as_dir/ ;; 15155 esac 15156 for ac_exec_ext in '' $ac_executable_extensions; do 15157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15158 ac_cv_prog_ac_ct_CC="clang" 15159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15160 break 2 15161 fi 15162done 15163 done 15164IFS=$as_save_IFS 15165 15166fi 15167fi 15168ac_ct_CC=$ac_cv_prog_ac_ct_CC 15169if test -n "$ac_ct_CC"; then 15170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 15171printf "%s\n" "$ac_ct_CC" >&6; } 15172else 15173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15174printf "%s\n" "no" >&6; } 15175fi 15176 15177 if test "x$ac_ct_CC" = x; then 15178 CC="" 15179 else 15180 case $cross_compiling:$ac_tool_warned in 15181yes:) 15182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15183printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15184ac_tool_warned=yes ;; 15185esac 15186 CC=$ac_ct_CC 15187 fi 15188else 15189 CC="$ac_cv_prog_CC" 15190fi 15191 15192fi 15193 15194 15195test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15196printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15197as_fn_error $? "no acceptable C compiler found in \$PATH 15198See \`config.log' for more details" "$LINENO" 5; } 15199 15200# Provide some information about the compiler. 15201printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 15202set X $ac_compile 15203ac_compiler=$2 15204for ac_option in --version -v -V -qversion -version; do 15205 { { ac_try="$ac_compiler $ac_option >&5" 15206case "(($ac_try" in 15207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15208 *) ac_try_echo=$ac_try;; 15209esac 15210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15211printf "%s\n" "$ac_try_echo"; } >&5 15212 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 15213 ac_status=$? 15214 if test -s conftest.err; then 15215 sed '10a\ 15216... rest of stderr output deleted ... 15217 10q' conftest.err >conftest.er1 15218 cat conftest.er1 >&5 15219 fi 15220 rm -f conftest.er1 conftest.err 15221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15222 test $ac_status = 0; } 15223done 15224 15225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 15226printf %s "checking whether the compiler supports GNU C... " >&6; } 15227if test ${ac_cv_c_compiler_gnu+y} 15228then : 15229 printf %s "(cached) " >&6 15230else $as_nop 15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15232/* end confdefs.h. */ 15233 15234int 15235main (void) 15236{ 15237#ifndef __GNUC__ 15238 choke me 15239#endif 15240 15241 ; 15242 return 0; 15243} 15244_ACEOF 15245if ac_fn_c_try_compile "$LINENO" 15246then : 15247 ac_compiler_gnu=yes 15248else $as_nop 15249 ac_compiler_gnu=no 15250fi 15251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15252ac_cv_c_compiler_gnu=$ac_compiler_gnu 15253 15254fi 15255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 15256printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 15257ac_compiler_gnu=$ac_cv_c_compiler_gnu 15258 15259if test $ac_compiler_gnu = yes; then 15260 GCC=yes 15261else 15262 GCC= 15263fi 15264ac_test_CFLAGS=${CFLAGS+y} 15265ac_save_CFLAGS=$CFLAGS 15266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 15267printf %s "checking whether $CC accepts -g... " >&6; } 15268if test ${ac_cv_prog_cc_g+y} 15269then : 15270 printf %s "(cached) " >&6 15271else $as_nop 15272 ac_save_c_werror_flag=$ac_c_werror_flag 15273 ac_c_werror_flag=yes 15274 ac_cv_prog_cc_g=no 15275 CFLAGS="-g" 15276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15277/* end confdefs.h. */ 15278 15279int 15280main (void) 15281{ 15282 15283 ; 15284 return 0; 15285} 15286_ACEOF 15287if ac_fn_c_try_compile "$LINENO" 15288then : 15289 ac_cv_prog_cc_g=yes 15290else $as_nop 15291 CFLAGS="" 15292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293/* end confdefs.h. */ 15294 15295int 15296main (void) 15297{ 15298 15299 ; 15300 return 0; 15301} 15302_ACEOF 15303if ac_fn_c_try_compile "$LINENO" 15304then : 15305 15306else $as_nop 15307 ac_c_werror_flag=$ac_save_c_werror_flag 15308 CFLAGS="-g" 15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15310/* end confdefs.h. */ 15311 15312int 15313main (void) 15314{ 15315 15316 ; 15317 return 0; 15318} 15319_ACEOF 15320if ac_fn_c_try_compile "$LINENO" 15321then : 15322 ac_cv_prog_cc_g=yes 15323fi 15324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15325fi 15326rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15327fi 15328rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15329 ac_c_werror_flag=$ac_save_c_werror_flag 15330fi 15331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 15332printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 15333if test $ac_test_CFLAGS; then 15334 CFLAGS=$ac_save_CFLAGS 15335elif test $ac_cv_prog_cc_g = yes; then 15336 if test "$GCC" = yes; then 15337 CFLAGS="-g -O2" 15338 else 15339 CFLAGS="-g" 15340 fi 15341else 15342 if test "$GCC" = yes; then 15343 CFLAGS="-O2" 15344 else 15345 CFLAGS= 15346 fi 15347fi 15348ac_prog_cc_stdc=no 15349if test x$ac_prog_cc_stdc = xno 15350then : 15351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 15352printf %s "checking for $CC option to enable C11 features... " >&6; } 15353if test ${ac_cv_prog_cc_c11+y} 15354then : 15355 printf %s "(cached) " >&6 15356else $as_nop 15357 ac_cv_prog_cc_c11=no 15358ac_save_CC=$CC 15359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15360/* end confdefs.h. */ 15361$ac_c_conftest_c11_program 15362_ACEOF 15363for ac_arg in '' -std=gnu11 15364do 15365 CC="$ac_save_CC $ac_arg" 15366 if ac_fn_c_try_compile "$LINENO" 15367then : 15368 ac_cv_prog_cc_c11=$ac_arg 15369fi 15370rm -f core conftest.err conftest.$ac_objext conftest.beam 15371 test "x$ac_cv_prog_cc_c11" != "xno" && break 15372done 15373rm -f conftest.$ac_ext 15374CC=$ac_save_CC 15375fi 15376 15377if test "x$ac_cv_prog_cc_c11" = xno 15378then : 15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15380printf "%s\n" "unsupported" >&6; } 15381else $as_nop 15382 if test "x$ac_cv_prog_cc_c11" = x 15383then : 15384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15385printf "%s\n" "none needed" >&6; } 15386else $as_nop 15387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 15388printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 15389 CC="$CC $ac_cv_prog_cc_c11" 15390fi 15391 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 15392 ac_prog_cc_stdc=c11 15393fi 15394fi 15395if test x$ac_prog_cc_stdc = xno 15396then : 15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 15398printf %s "checking for $CC option to enable C99 features... " >&6; } 15399if test ${ac_cv_prog_cc_c99+y} 15400then : 15401 printf %s "(cached) " >&6 15402else $as_nop 15403 ac_cv_prog_cc_c99=no 15404ac_save_CC=$CC 15405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15406/* end confdefs.h. */ 15407$ac_c_conftest_c99_program 15408_ACEOF 15409for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 15410do 15411 CC="$ac_save_CC $ac_arg" 15412 if ac_fn_c_try_compile "$LINENO" 15413then : 15414 ac_cv_prog_cc_c99=$ac_arg 15415fi 15416rm -f core conftest.err conftest.$ac_objext conftest.beam 15417 test "x$ac_cv_prog_cc_c99" != "xno" && break 15418done 15419rm -f conftest.$ac_ext 15420CC=$ac_save_CC 15421fi 15422 15423if test "x$ac_cv_prog_cc_c99" = xno 15424then : 15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15426printf "%s\n" "unsupported" >&6; } 15427else $as_nop 15428 if test "x$ac_cv_prog_cc_c99" = x 15429then : 15430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15431printf "%s\n" "none needed" >&6; } 15432else $as_nop 15433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 15434printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 15435 CC="$CC $ac_cv_prog_cc_c99" 15436fi 15437 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 15438 ac_prog_cc_stdc=c99 15439fi 15440fi 15441if test x$ac_prog_cc_stdc = xno 15442then : 15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 15444printf %s "checking for $CC option to enable C89 features... " >&6; } 15445if test ${ac_cv_prog_cc_c89+y} 15446then : 15447 printf %s "(cached) " >&6 15448else $as_nop 15449 ac_cv_prog_cc_c89=no 15450ac_save_CC=$CC 15451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15452/* end confdefs.h. */ 15453$ac_c_conftest_c89_program 15454_ACEOF 15455for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 15456do 15457 CC="$ac_save_CC $ac_arg" 15458 if ac_fn_c_try_compile "$LINENO" 15459then : 15460 ac_cv_prog_cc_c89=$ac_arg 15461fi 15462rm -f core conftest.err conftest.$ac_objext conftest.beam 15463 test "x$ac_cv_prog_cc_c89" != "xno" && break 15464done 15465rm -f conftest.$ac_ext 15466CC=$ac_save_CC 15467fi 15468 15469if test "x$ac_cv_prog_cc_c89" = xno 15470then : 15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15472printf "%s\n" "unsupported" >&6; } 15473else $as_nop 15474 if test "x$ac_cv_prog_cc_c89" = x 15475then : 15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15477printf "%s\n" "none needed" >&6; } 15478else $as_nop 15479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 15480printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 15481 CC="$CC $ac_cv_prog_cc_c89" 15482fi 15483 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 15484 ac_prog_cc_stdc=c89 15485fi 15486fi 15487 15488ac_ext=c 15489ac_cpp='$CPP $CPPFLAGS' 15490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15492ac_compiler_gnu=$ac_cv_c_compiler_gnu 15493 15494 15495 ac_ext=c 15496ac_cpp='$CPP $CPPFLAGS' 15497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15499ac_compiler_gnu=$ac_cv_c_compiler_gnu 15500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 15501printf %s "checking whether $CC understands -c and -o together... " >&6; } 15502if test ${am_cv_prog_cc_c_o+y} 15503then : 15504 printf %s "(cached) " >&6 15505else $as_nop 15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507/* end confdefs.h. */ 15508 15509int 15510main (void) 15511{ 15512 15513 ; 15514 return 0; 15515} 15516_ACEOF 15517 # Make sure it works both with $CC and with simple cc. 15518 # Following AC_PROG_CC_C_O, we do the test twice because some 15519 # compilers refuse to overwrite an existing .o file with -o, 15520 # though they will create one. 15521 am_cv_prog_cc_c_o=yes 15522 for am_i in 1 2; do 15523 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 15524 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 15525 ac_status=$? 15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15527 (exit $ac_status); } \ 15528 && test -f conftest2.$ac_objext; then 15529 : OK 15530 else 15531 am_cv_prog_cc_c_o=no 15532 break 15533 fi 15534 done 15535 rm -f core conftest* 15536 unset am_i 15537fi 15538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 15539printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 15540if test "$am_cv_prog_cc_c_o" != yes; then 15541 # Losing compiler, so override with the script. 15542 # FIXME: It is wrong to rewrite CC. 15543 # But if we don't then we get into trouble of one sort or another. 15544 # A longer-term fix would be to have automake use am__CC in this case, 15545 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 15546 CC="$am_aux_dir/compile $CC" 15547fi 15548ac_ext=c 15549ac_cpp='$CPP $CPPFLAGS' 15550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15552ac_compiler_gnu=$ac_cv_c_compiler_gnu 15553 15554 15555## _AIX is offended by rpl_malloc and rpl_realloc 15556#AC_FUNC_MALLOC 15557#AC_FUNC_REALLOC 15558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 15559printf %s "checking whether lstat correctly handles trailing slash... " >&6; } 15560if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y} 15561then : 15562 printf %s "(cached) " >&6 15563else $as_nop 15564 rm -f conftest.sym conftest.file 15565echo >conftest.file 15566if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 15567 if test "$cross_compiling" = yes 15568then : 15569 case "$host_os" in # (( 15570 # Guess yes on glibc systems. 15571 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;; 15572 # If we don't know, assume the worst. 15573 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; 15574 esac 15575else $as_nop 15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15577/* end confdefs.h. */ 15578$ac_includes_default 15579int 15580main (void) 15581{ 15582struct stat sbuf; 15583 /* Linux will dereference the symlink and fail, as required by POSIX. 15584 That is better in the sense that it means we will not 15585 have to compile and use the lstat wrapper. */ 15586 return lstat ("conftest.sym/", &sbuf) == 0; 15587 ; 15588 return 0; 15589} 15590_ACEOF 15591if ac_fn_c_try_run "$LINENO" 15592then : 15593 ac_cv_func_lstat_dereferences_slashed_symlink=yes 15594else $as_nop 15595 ac_cv_func_lstat_dereferences_slashed_symlink=no 15596fi 15597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15598 conftest.$ac_objext conftest.beam conftest.$ac_ext 15599fi 15600 15601else 15602 # If the `ln -s' command failed, then we probably don't even 15603 # have an lstat function. 15604 ac_cv_func_lstat_dereferences_slashed_symlink=no 15605fi 15606rm -f conftest.sym conftest.file 15607 15608fi 15609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 15610printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 15611 15612test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 15613 15614printf "%s\n" "@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h 15615 15616 15617if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 15618 case " $LIB@&t@OBJS " in 15619 *" lstat.$ac_objext "* ) ;; 15620 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext" 15621 ;; 15622esac 15623 15624fi 15625 15626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 15627printf %s "checking whether stat accepts an empty string... " >&6; } 15628if test ${ac_cv_func_stat_empty_string_bug+y} 15629then : 15630 printf %s "(cached) " >&6 15631else $as_nop 15632 if test "$cross_compiling" = yes 15633then : 15634 ac_cv_func_stat_empty_string_bug=yes 15635else $as_nop 15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15637/* end confdefs.h. */ 15638$ac_includes_default 15639int 15640main (void) 15641{ 15642struct stat sbuf; 15643 return stat ("", &sbuf) == 0; 15644 ; 15645 return 0; 15646} 15647_ACEOF 15648if ac_fn_c_try_run "$LINENO" 15649then : 15650 ac_cv_func_stat_empty_string_bug=no 15651else $as_nop 15652 ac_cv_func_stat_empty_string_bug=yes 15653fi 15654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15655 conftest.$ac_objext conftest.beam conftest.$ac_ext 15656fi 15657 15658fi 15659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 15660printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; } 15661if test $ac_cv_func_stat_empty_string_bug = yes; then 15662 case " $LIB@&t@OBJS " in 15663 *" stat.$ac_objext "* ) ;; 15664 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext" 15665 ;; 15666esac 15667 15668 15669printf "%s\n" "@%:@define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h 15670 15671fi 15672 15673ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent" 15674if test "x$ac_cv_func_endpwent" = xyes 15675then : 15676 printf "%s\n" "@%:@define HAVE_ENDPWENT 1" >>confdefs.h 15677 15678fi 15679ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii" 15680if test "x$ac_cv_func_isascii" = xyes 15681then : 15682 printf "%s\n" "@%:@define HAVE_ISASCII 1" >>confdefs.h 15683 15684fi 15685ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr" 15686if test "x$ac_cv_func_memchr" = xyes 15687then : 15688 printf "%s\n" "@%:@define HAVE_MEMCHR 1" >>confdefs.h 15689 15690fi 15691ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 15692if test "x$ac_cv_func_memset" = xyes 15693then : 15694 printf "%s\n" "@%:@define HAVE_MEMSET 1" >>confdefs.h 15695 15696fi 15697ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp" 15698if test "x$ac_cv_func_re_comp" = xyes 15699then : 15700 printf "%s\n" "@%:@define HAVE_RE_COMP 1" >>confdefs.h 15701 15702fi 15703ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp" 15704if test "x$ac_cv_func_regcomp" = xyes 15705then : 15706 printf "%s\n" "@%:@define HAVE_REGCOMP 1" >>confdefs.h 15707 15708fi 15709ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 15710if test "x$ac_cv_func_strcasecmp" = xyes 15711then : 15712 printf "%s\n" "@%:@define HAVE_STRCASECMP 1" >>confdefs.h 15713 15714fi 15715ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" 15716if test "x$ac_cv_func_strchr" = xyes 15717then : 15718 printf "%s\n" "@%:@define HAVE_STRCHR 1" >>confdefs.h 15719 15720fi 15721ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn" 15722if test "x$ac_cv_func_strcspn" = xyes 15723then : 15724 printf "%s\n" "@%:@define HAVE_STRCSPN 1" >>confdefs.h 15725 15726fi 15727ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 15728if test "x$ac_cv_func_strdup" = xyes 15729then : 15730 printf "%s\n" "@%:@define HAVE_STRDUP 1" >>confdefs.h 15731 15732fi 15733ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 15734if test "x$ac_cv_func_strerror" = xyes 15735then : 15736 printf "%s\n" "@%:@define HAVE_STRERROR 1" >>confdefs.h 15737 15738fi 15739ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" 15740if test "x$ac_cv_func_strrchr" = xyes 15741then : 15742 printf "%s\n" "@%:@define HAVE_STRRCHR 1" >>confdefs.h 15743 15744fi 15745ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" 15746if test "x$ac_cv_func_strstr" = xyes 15747then : 15748 printf "%s\n" "@%:@define HAVE_STRSTR 1" >>confdefs.h 15749 15750fi 15751ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" 15752if test "x$ac_cv_func_strtol" = xyes 15753then : 15754 printf "%s\n" "@%:@define HAVE_STRTOL 1" >>confdefs.h 15755 15756fi 15757ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 15758if test "x$ac_cv_func_issetugid" = xyes 15759then : 15760 printf "%s\n" "@%:@define HAVE_ISSETUGID 1" >>confdefs.h 15761 15762fi 15763ac_fn_c_check_func "$LINENO" "wcsdup" "ac_cv_func_wcsdup" 15764if test "x$ac_cv_func_wcsdup" = xyes 15765then : 15766 printf "%s\n" "@%:@define HAVE_WCSDUP 1" >>confdefs.h 15767 15768fi 15769ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15770if test "x$ac_cv_func_strlcpy" = xyes 15771then : 15772 printf "%s\n" "@%:@define HAVE_STRLCPY 1" >>confdefs.h 15773 15774fi 15775ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15776if test "x$ac_cv_func_strlcat" = xyes 15777then : 15778 printf "%s\n" "@%:@define HAVE_STRLCAT 1" >>confdefs.h 15779 15780fi 15781ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis" 15782if test "x$ac_cv_func_vis" = xyes 15783then : 15784 printf "%s\n" "@%:@define HAVE_VIS 1" >>confdefs.h 15785 15786fi 15787ac_fn_c_check_func "$LINENO" "strvis" "ac_cv_func_strvis" 15788if test "x$ac_cv_func_strvis" = xyes 15789then : 15790 printf "%s\n" "@%:@define HAVE_STRVIS 1" >>confdefs.h 15791 15792fi 15793ac_fn_c_check_func "$LINENO" "strunvis" "ac_cv_func_strunvis" 15794if test "x$ac_cv_func_strunvis" = xyes 15795then : 15796 printf "%s\n" "@%:@define HAVE_STRUNVIS 1" >>confdefs.h 15797 15798fi 15799ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv" 15800if test "x$ac_cv_func___secure_getenv" = xyes 15801then : 15802 printf "%s\n" "@%:@define HAVE___SECURE_GETENV 1" >>confdefs.h 15803 15804fi 15805ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 15806if test "x$ac_cv_func_secure_getenv" = xyes 15807then : 15808 printf "%s\n" "@%:@define HAVE_SECURE_GETENV 1" >>confdefs.h 15809 15810fi 15811ac_fn_c_check_func "$LINENO" "reallocarr" "ac_cv_func_reallocarr" 15812if test "x$ac_cv_func_reallocarr" = xyes 15813then : 15814 printf "%s\n" "@%:@define HAVE_REALLOCARR 1" >>confdefs.h 15815 15816fi 15817 15818 15819# strlcpy 15820ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15821if test "x$ac_cv_func_strlcpy" = xyes 15822then : 15823 found_strlcpy=yes 15824else $as_nop 15825 found_strlcpy=no 15826fi 15827 15828 if test "x$found_strlcpy" = xyes; then 15829 HAVE_STRLCPY_TRUE= 15830 HAVE_STRLCPY_FALSE='#' 15831else 15832 HAVE_STRLCPY_TRUE='#' 15833 HAVE_STRLCPY_FALSE= 15834fi 15835 15836 15837# strlcat 15838ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15839if test "x$ac_cv_func_strlcat" = xyes 15840then : 15841 found_strlcat=yes 15842else $as_nop 15843 found_strlcat=no 15844fi 15845 15846 if test "x$found_strlcat" = xyes; then 15847 HAVE_STRLCAT_TRUE= 15848 HAVE_STRLCAT_FALSE='#' 15849else 15850 HAVE_STRLCAT_TRUE='#' 15851 HAVE_STRLCAT_FALSE= 15852fi 15853 15854 15855# getline 15856ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 15857if test "x$ac_cv_func_getline" = xyes 15858then : 15859 found_getline=yes 15860else $as_nop 15861 found_getline=no 15862fi 15863 15864 if test "x$found_getline" = xyes; then 15865 HAVE_GETLINE_TRUE= 15866 HAVE_GETLINE_FALSE='#' 15867else 15868 HAVE_GETLINE_TRUE='#' 15869 HAVE_GETLINE_FALSE= 15870fi 15871 15872 15873# vis 15874ac_fn_c_check_func "$LINENO" "vis" "ac_cv_func_vis" 15875if test "x$ac_cv_func_vis" = xyes 15876then : 15877 found_vis=yes 15878else $as_nop 15879 found_vis=no 15880fi 15881 15882 if test "x$found_vis" = xyes; then 15883 HAVE_VIS_TRUE= 15884 HAVE_VIS_FALSE='#' 15885else 15886 HAVE_VIS_TRUE='#' 15887 HAVE_VIS_FALSE= 15888fi 15889 15890 15891# unvis 15892ac_fn_c_check_func "$LINENO" "unvis" "ac_cv_func_unvis" 15893if test "x$ac_cv_func_unvis" = xyes 15894then : 15895 found_unvis=yes 15896else $as_nop 15897 found_unvis=no 15898fi 15899 15900 if test "x$found_unvis" = xyes; then 15901 HAVE_UNVIS_TRUE= 15902 HAVE_UNVIS_FALSE='#' 15903else 15904 HAVE_UNVIS_TRUE='#' 15905 HAVE_UNVIS_FALSE= 15906fi 15907 15908 15909 15910 15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5 15912printf %s "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; } 15913 # The prototype for the POSIX version is: 15914 # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **) 15915 # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **); 15916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15917/* end confdefs.h. */ 15918#include <stdlib.h> 15919 #include <sys/types.h> 15920 #include <pwd.h> 15921int 15922main (void) 15923{ 15924getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL); 15925 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL); 15926 ; 15927 return 0; 15928} 15929_ACEOF 15930if ac_fn_c_try_link "$LINENO" 15931then : 15932 15933printf "%s\n" "@%:@define HAVE_GETPW_R_POSIX 1" >>confdefs.h 15934 15935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15936printf "%s\n" "yes" >&6; } 15937else $as_nop 15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15939printf "%s\n" "no" >&6; } 15940fi 15941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15942 conftest$ac_exeext conftest.$ac_ext 15943 15944 15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5 15946printf %s "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; } 15947 # The prototype for the POSIX draft version is: 15948 # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int); 15949 # struct passwd *getpwnam_r(char *, struct passwd *, char *, int); 15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15951/* end confdefs.h. */ 15952#include <stdlib.h> 15953 #include <sys/types.h> 15954 #include <pwd.h> 15955int 15956main (void) 15957{ 15958getpwnam_r(NULL, NULL, NULL, (size_t)0); 15959 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0); 15960 ; 15961 return 0; 15962} 15963_ACEOF 15964if ac_fn_c_try_link "$LINENO" 15965then : 15966 15967printf "%s\n" "@%:@define HAVE_GETPW_R_DRAFT 1" >>confdefs.h 15968 15969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15970printf "%s\n" "yes" >&6; } 15971else $as_nop 15972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15973printf "%s\n" "no" >&6; } 15974fi 15975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15976 conftest$ac_exeext conftest.$ac_ext 15977 15978 15979 15980 15981 15982ac_config_files="$ac_config_files Makefile libedit.pc src/Makefile doc/Makefile examples/Makefile" 15983 15984cat >confcache <<\_ACEOF 15985# This file is a shell script that caches the results of configure 15986# tests run on this system so they can be shared between configure 15987# scripts and configure runs, see configure's option --config-cache. 15988# It is not useful on other systems. If it contains results you don't 15989# want to keep, you may remove or edit it. 15990# 15991# config.status only pays attention to the cache file if you give it 15992# the --recheck option to rerun configure. 15993# 15994# `ac_cv_env_foo' variables (set or unset) will be overridden when 15995# loading this file, other *unset* `ac_cv_foo' will be assigned the 15996# following values. 15997 15998_ACEOF 15999 16000# The following way of writing the cache mishandles newlines in values, 16001# but we know of no workaround that is simple, portable, and efficient. 16002# So, we kill variables containing newlines. 16003# Ultrix sh set writes to stderr and can't be redirected directly, 16004# and sets the high bit in the cache file unless we assign to the vars. 16005( 16006 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16007 eval ac_val=\$$ac_var 16008 case $ac_val in #( 16009 *${as_nl}*) 16010 case $ac_var in #( 16011 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16012printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16013 esac 16014 case $ac_var in #( 16015 _ | IFS | as_nl) ;; #( 16016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16017 *) { eval $ac_var=; unset $ac_var;} ;; 16018 esac ;; 16019 esac 16020 done 16021 16022 (set) 2>&1 | 16023 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16024 *${as_nl}ac_space=\ *) 16025 # `set' does not quote correctly, so add quotes: double-quote 16026 # substitution turns \\\\ into \\, and sed turns \\ into \. 16027 sed -n \ 16028 "s/'/'\\\\''/g; 16029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16030 ;; #( 16031 *) 16032 # `set' quotes correctly as required by POSIX, so do not add quotes. 16033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16034 ;; 16035 esac | 16036 sort 16037) | 16038 sed ' 16039 /^ac_cv_env_/b end 16040 t clear 16041 :clear 16042 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 16043 t end 16044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16045 :end' >>confcache 16046if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16047 if test -w "$cache_file"; then 16048 if test "x$cache_file" != "x/dev/null"; then 16049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16050printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 16051 if test ! -f "$cache_file" || test -h "$cache_file"; then 16052 cat confcache >"$cache_file" 16053 else 16054 case $cache_file in #( 16055 */* | ?:*) 16056 mv -f confcache "$cache_file"$$ && 16057 mv -f "$cache_file"$$ "$cache_file" ;; #( 16058 *) 16059 mv -f confcache "$cache_file" ;; 16060 esac 16061 fi 16062 fi 16063 else 16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16065printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 16066 fi 16067fi 16068rm -f confcache 16069 16070test "x$prefix" = xNONE && prefix=$ac_default_prefix 16071# Let make expand exec_prefix. 16072test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16073 16074DEFS=-DHAVE_CONFIG_H 16075 16076ac_libobjs= 16077ac_ltlibobjs= 16078U= 16079for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 16080 # 1. Remove the extension, and $U if already installed. 16081 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16082 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 16083 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16084 # will be set to the directory where LIBOBJS objects are built. 16085 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16086 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16087done 16088LIB@&t@OBJS=$ac_libobjs 16089 16090LTLIBOBJS=$ac_ltlibobjs 16091 16092 16093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16094printf %s "checking that generated files are newer than configure... " >&6; } 16095 if test -n "$am_sleep_pid"; then 16096 # Hide warnings about reused PIDs. 16097 wait $am_sleep_pid 2>/dev/null 16098 fi 16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 16100printf "%s\n" "done" >&6; } 16101if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16102 as_fn_error $? "conditional \"AMDEP\" was never defined. 16103Usually this means the macro was only invoked conditionally." "$LINENO" 5 16104fi 16105if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16106 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16107Usually this means the macro was only invoked conditionally." "$LINENO" 5 16108fi 16109 if test -n "$EXEEXT"; then 16110 am__EXEEXT_TRUE= 16111 am__EXEEXT_FALSE='#' 16112else 16113 am__EXEEXT_TRUE='#' 16114 am__EXEEXT_FALSE= 16115fi 16116 16117if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then 16118 as_fn_error $? "conditional \"ENABLE_EXAMPLES\" was never defined. 16119Usually this means the macro was only invoked conditionally." "$LINENO" 5 16120fi 16121if test -z "${HAVE_STRLCPY_TRUE}" && test -z "${HAVE_STRLCPY_FALSE}"; then 16122 as_fn_error $? "conditional \"HAVE_STRLCPY\" was never defined. 16123Usually this means the macro was only invoked conditionally." "$LINENO" 5 16124fi 16125if test -z "${HAVE_STRLCAT_TRUE}" && test -z "${HAVE_STRLCAT_FALSE}"; then 16126 as_fn_error $? "conditional \"HAVE_STRLCAT\" was never defined. 16127Usually this means the macro was only invoked conditionally." "$LINENO" 5 16128fi 16129if test -z "${HAVE_GETLINE_TRUE}" && test -z "${HAVE_GETLINE_FALSE}"; then 16130 as_fn_error $? "conditional \"HAVE_GETLINE\" was never defined. 16131Usually this means the macro was only invoked conditionally." "$LINENO" 5 16132fi 16133if test -z "${HAVE_VIS_TRUE}" && test -z "${HAVE_VIS_FALSE}"; then 16134 as_fn_error $? "conditional \"HAVE_VIS\" was never defined. 16135Usually this means the macro was only invoked conditionally." "$LINENO" 5 16136fi 16137if test -z "${HAVE_UNVIS_TRUE}" && test -z "${HAVE_UNVIS_FALSE}"; then 16138 as_fn_error $? "conditional \"HAVE_UNVIS\" was never defined. 16139Usually this means the macro was only invoked conditionally." "$LINENO" 5 16140fi 16141 16142: "${CONFIG_STATUS=./config.status}" 16143ac_write_fail=0 16144ac_clean_files_save=$ac_clean_files 16145ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16147printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 16148as_write_fail=0 16149cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16150#! $SHELL 16151# Generated by $as_me. 16152# Run this file to recreate the current configuration. 16153# Compiler output produced by configure, useful for debugging 16154# configure, is in config.log if it exists. 16155 16156debug=false 16157ac_cs_recheck=false 16158ac_cs_silent=false 16159 16160SHELL=\${CONFIG_SHELL-$SHELL} 16161export SHELL 16162_ASEOF 16163cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16164## -------------------- ## 16165## M4sh Initialization. ## 16166## -------------------- ## 16167 16168# Be more Bourne compatible 16169DUALCASE=1; export DUALCASE # for MKS sh 16170as_nop=: 16171if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 16172then : 16173 emulate sh 16174 NULLCMD=: 16175 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16176 # is contrary to our usage. Disable this feature. 16177 alias -g '${1+"$@"}'='"$@"' 16178 setopt NO_GLOB_SUBST 16179else $as_nop 16180 case `(set -o) 2>/dev/null` in @%:@( 16181 *posix*) : 16182 set -o posix ;; @%:@( 16183 *) : 16184 ;; 16185esac 16186fi 16187 16188 16189 16190# Reset variables that may have inherited troublesome values from 16191# the environment. 16192 16193# IFS needs to be set, to space, tab, and newline, in precisely that order. 16194# (If _AS_PATH_WALK were called with IFS unset, it would have the 16195# side effect of setting IFS to empty, thus disabling word splitting.) 16196# Quoting is to prevent editors from complaining about space-tab. 16197as_nl=' 16198' 16199export as_nl 16200IFS=" "" $as_nl" 16201 16202PS1='$ ' 16203PS2='> ' 16204PS4='+ ' 16205 16206# Ensure predictable behavior from utilities with locale-dependent output. 16207LC_ALL=C 16208export LC_ALL 16209LANGUAGE=C 16210export LANGUAGE 16211 16212# We cannot yet rely on "unset" to work, but we need these variables 16213# to be unset--not just set to an empty or harmless value--now, to 16214# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 16215# also avoids known problems related to "unset" and subshell syntax 16216# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 16217for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 16218do eval test \${$as_var+y} \ 16219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16220done 16221 16222# Ensure that fds 0, 1, and 2 are open. 16223if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 16224if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 16225if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 16226 16227# The user is always right. 16228if ${PATH_SEPARATOR+false} :; then 16229 PATH_SEPARATOR=: 16230 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16231 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16232 PATH_SEPARATOR=';' 16233 } 16234fi 16235 16236 16237# Find who we are. Look in the path if we contain no directory separator. 16238as_myself= 16239case $0 in @%:@(( 16240 *[\\/]* ) as_myself=$0 ;; 16241 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16242for as_dir in $PATH 16243do 16244 IFS=$as_save_IFS 16245 case $as_dir in #((( 16246 '') as_dir=./ ;; 16247 */) ;; 16248 *) as_dir=$as_dir/ ;; 16249 esac 16250 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 16251 done 16252IFS=$as_save_IFS 16253 16254 ;; 16255esac 16256# We did not find ourselves, most probably we were run as `sh COMMAND' 16257# in which case we are not to be found in the path. 16258if test "x$as_myself" = x; then 16259 as_myself=$0 16260fi 16261if test ! -f "$as_myself"; then 16262 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16263 exit 1 16264fi 16265 16266 16267 16268@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] 16269@%:@ ---------------------------------------- 16270@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16271@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16272@%:@ script with STATUS, using 1 if that was 0. 16273as_fn_error () 16274{ 16275 as_status=$1; test $as_status -eq 0 && as_status=1 16276 if test "$4"; then 16277 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16279 fi 16280 printf "%s\n" "$as_me: error: $2" >&2 16281 as_fn_exit $as_status 16282} @%:@ as_fn_error 16283 16284 16285 16286@%:@ as_fn_set_status STATUS 16287@%:@ ----------------------- 16288@%:@ Set @S|@? to STATUS, without forking. 16289as_fn_set_status () 16290{ 16291 return $1 16292} @%:@ as_fn_set_status 16293 16294@%:@ as_fn_exit STATUS 16295@%:@ ----------------- 16296@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16297as_fn_exit () 16298{ 16299 set +e 16300 as_fn_set_status $1 16301 exit $1 16302} @%:@ as_fn_exit 16303 16304@%:@ as_fn_unset VAR 16305@%:@ --------------- 16306@%:@ Portably unset VAR. 16307as_fn_unset () 16308{ 16309 { eval $1=; unset $1;} 16310} 16311as_unset=as_fn_unset 16312 16313@%:@ as_fn_append VAR VALUE 16314@%:@ ---------------------- 16315@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take 16316@%:@ advantage of any shell optimizations that allow amortized linear growth over 16317@%:@ repeated appends, instead of the typical quadratic growth present in naive 16318@%:@ implementations. 16319if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 16320then : 16321 eval 'as_fn_append () 16322 { 16323 eval $1+=\$2 16324 }' 16325else $as_nop 16326 as_fn_append () 16327 { 16328 eval $1=\$$1\$2 16329 } 16330fi # as_fn_append 16331 16332@%:@ as_fn_arith ARG... 16333@%:@ ------------------ 16334@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the 16335@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments 16336@%:@ must be portable across @S|@(()) and expr. 16337if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 16338then : 16339 eval 'as_fn_arith () 16340 { 16341 as_val=$(( $* )) 16342 }' 16343else $as_nop 16344 as_fn_arith () 16345 { 16346 as_val=`expr "$@" || test $? -eq 1` 16347 } 16348fi # as_fn_arith 16349 16350 16351if expr a : '\(a\)' >/dev/null 2>&1 && 16352 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16353 as_expr=expr 16354else 16355 as_expr=false 16356fi 16357 16358if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16359 as_basename=basename 16360else 16361 as_basename=false 16362fi 16363 16364if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16365 as_dirname=dirname 16366else 16367 as_dirname=false 16368fi 16369 16370as_me=`$as_basename -- "$0" || 16371$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16372 X"$0" : 'X\(//\)$' \| \ 16373 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16374printf "%s\n" X/"$0" | 16375 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16376 s//\1/ 16377 q 16378 } 16379 /^X\/\(\/\/\)$/{ 16380 s//\1/ 16381 q 16382 } 16383 /^X\/\(\/\).*/{ 16384 s//\1/ 16385 q 16386 } 16387 s/.*/./; q'` 16388 16389# Avoid depending upon Character Ranges. 16390as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16391as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16392as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16393as_cr_digits='0123456789' 16394as_cr_alnum=$as_cr_Letters$as_cr_digits 16395 16396 16397# Determine whether it's possible to make 'echo' print without a newline. 16398# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 16399# for compatibility with existing Makefiles. 16400ECHO_C= ECHO_N= ECHO_T= 16401case `echo -n x` in @%:@((((( 16402-n*) 16403 case `echo 'xy\c'` in 16404 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16405 xy) ECHO_C='\c';; 16406 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16407 ECHO_T=' ';; 16408 esac;; 16409*) 16410 ECHO_N='-n';; 16411esac 16412 16413# For backward compatibility with old third-party macros, we provide 16414# the shell variables $as_echo and $as_echo_n. New code should use 16415# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 16416as_@&t@echo='printf %s\n' 16417as_@&t@echo_n='printf %s' 16418 16419rm -f conf$$ conf$$.exe conf$$.file 16420if test -d conf$$.dir; then 16421 rm -f conf$$.dir/conf$$.file 16422else 16423 rm -f conf$$.dir 16424 mkdir conf$$.dir 2>/dev/null 16425fi 16426if (echo >conf$$.file) 2>/dev/null; then 16427 if ln -s conf$$.file conf$$ 2>/dev/null; then 16428 as_ln_s='ln -s' 16429 # ... but there are two gotchas: 16430 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16431 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16432 # In both cases, we have to default to `cp -pR'. 16433 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16434 as_ln_s='cp -pR' 16435 elif ln conf$$.file conf$$ 2>/dev/null; then 16436 as_ln_s=ln 16437 else 16438 as_ln_s='cp -pR' 16439 fi 16440else 16441 as_ln_s='cp -pR' 16442fi 16443rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16444rmdir conf$$.dir 2>/dev/null 16445 16446 16447@%:@ as_fn_mkdir_p 16448@%:@ ------------- 16449@%:@ Create "@S|@as_dir" as a directory, including parents if necessary. 16450as_fn_mkdir_p () 16451{ 16452 16453 case $as_dir in #( 16454 -*) as_dir=./$as_dir;; 16455 esac 16456 test -d "$as_dir" || eval $as_mkdir_p || { 16457 as_dirs= 16458 while :; do 16459 case $as_dir in #( 16460 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16461 *) as_qdir=$as_dir;; 16462 esac 16463 as_dirs="'$as_qdir' $as_dirs" 16464 as_dir=`$as_dirname -- "$as_dir" || 16465$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16466 X"$as_dir" : 'X\(//\)[^/]' \| \ 16467 X"$as_dir" : 'X\(//\)$' \| \ 16468 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16469printf "%s\n" X"$as_dir" | 16470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16471 s//\1/ 16472 q 16473 } 16474 /^X\(\/\/\)[^/].*/{ 16475 s//\1/ 16476 q 16477 } 16478 /^X\(\/\/\)$/{ 16479 s//\1/ 16480 q 16481 } 16482 /^X\(\/\).*/{ 16483 s//\1/ 16484 q 16485 } 16486 s/.*/./; q'` 16487 test -d "$as_dir" && break 16488 done 16489 test -z "$as_dirs" || eval "mkdir $as_dirs" 16490 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16491 16492 16493} @%:@ as_fn_mkdir_p 16494if mkdir -p . 2>/dev/null; then 16495 as_mkdir_p='mkdir -p "$as_dir"' 16496else 16497 test -d ./-p && rmdir ./-p 16498 as_mkdir_p=false 16499fi 16500 16501 16502@%:@ as_fn_executable_p FILE 16503@%:@ ----------------------- 16504@%:@ Test if FILE is an executable regular file. 16505as_fn_executable_p () 16506{ 16507 test -f "$1" && test -x "$1" 16508} @%:@ as_fn_executable_p 16509as_test_x='test -x' 16510as_executable_p=as_fn_executable_p 16511 16512# Sed expression to map a string onto a valid CPP name. 16513as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16514 16515# Sed expression to map a string onto a valid variable name. 16516as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16517 16518 16519exec 6>&1 16520## ----------------------------------- ## 16521## Main body of $CONFIG_STATUS script. ## 16522## ----------------------------------- ## 16523_ASEOF 16524test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16525 16526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16527# Save the log message, to keep $0 and so on meaningful, and to 16528# report actual input values of CONFIG_FILES etc. instead of their 16529# values after options handling. 16530ac_log=" 16531This file was extended by libedit $as_me 3.1, which was 16532generated by GNU Autoconf 2.71. Invocation command line was 16533 16534 CONFIG_FILES = $CONFIG_FILES 16535 CONFIG_HEADERS = $CONFIG_HEADERS 16536 CONFIG_LINKS = $CONFIG_LINKS 16537 CONFIG_COMMANDS = $CONFIG_COMMANDS 16538 $ $0 $@ 16539 16540on `(hostname || uname -n) 2>/dev/null | sed 1q` 16541" 16542 16543_ACEOF 16544 16545case $ac_config_files in *" 16546"*) set x $ac_config_files; shift; ac_config_files=$*;; 16547esac 16548 16549case $ac_config_headers in *" 16550"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16551esac 16552 16553 16554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16555# Files that config.status was made for. 16556config_files="$ac_config_files" 16557config_headers="$ac_config_headers" 16558config_commands="$ac_config_commands" 16559 16560_ACEOF 16561 16562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16563ac_cs_usage="\ 16564\`$as_me' instantiates files and other configuration actions 16565from templates according to the current configuration. Unless the files 16566and actions are specified as TAGs, all are instantiated by default. 16567 16568Usage: $0 [OPTION]... [TAG]... 16569 16570 -h, --help print this help, then exit 16571 -V, --version print version number and configuration settings, then exit 16572 --config print configuration, then exit 16573 -q, --quiet, --silent 16574 do not print progress messages 16575 -d, --debug don't remove temporary files 16576 --recheck update $as_me by reconfiguring in the same conditions 16577 --file=FILE[:TEMPLATE] 16578 instantiate the configuration file FILE 16579 --header=FILE[:TEMPLATE] 16580 instantiate the configuration header FILE 16581 16582Configuration files: 16583$config_files 16584 16585Configuration headers: 16586$config_headers 16587 16588Configuration commands: 16589$config_commands 16590 16591Report bugs to the package provider." 16592 16593_ACEOF 16594ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 16595ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 16596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16597ac_cs_config='$ac_cs_config_escaped' 16598ac_cs_version="\\ 16599libedit config.status 3.1 16600configured by $0, generated by GNU Autoconf 2.71, 16601 with options \\"\$ac_cs_config\\" 16602 16603Copyright (C) 2021 Free Software Foundation, Inc. 16604This config.status script is free software; the Free Software Foundation 16605gives unlimited permission to copy, distribute and modify it." 16606 16607ac_pwd='$ac_pwd' 16608srcdir='$srcdir' 16609INSTALL='$INSTALL' 16610MKDIR_P='$MKDIR_P' 16611AWK='$AWK' 16612test -n "\$AWK" || AWK=awk 16613_ACEOF 16614 16615cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16616# The default lists apply if the user does not specify any file. 16617ac_need_defaults=: 16618while test $# != 0 16619do 16620 case $1 in 16621 --*=?*) 16622 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16623 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16624 ac_shift=: 16625 ;; 16626 --*=) 16627 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16628 ac_optarg= 16629 ac_shift=: 16630 ;; 16631 *) 16632 ac_option=$1 16633 ac_optarg=$2 16634 ac_shift=shift 16635 ;; 16636 esac 16637 16638 case $ac_option in 16639 # Handling of the options. 16640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16641 ac_cs_recheck=: ;; 16642 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16643 printf "%s\n" "$ac_cs_version"; exit ;; 16644 --config | --confi | --conf | --con | --co | --c ) 16645 printf "%s\n" "$ac_cs_config"; exit ;; 16646 --debug | --debu | --deb | --de | --d | -d ) 16647 debug=: ;; 16648 --file | --fil | --fi | --f ) 16649 $ac_shift 16650 case $ac_optarg in 16651 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16652 '') as_fn_error $? "missing file argument" ;; 16653 esac 16654 as_fn_append CONFIG_FILES " '$ac_optarg'" 16655 ac_need_defaults=false;; 16656 --header | --heade | --head | --hea ) 16657 $ac_shift 16658 case $ac_optarg in 16659 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16660 esac 16661 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16662 ac_need_defaults=false;; 16663 --he | --h) 16664 # Conflict between --help and --header 16665 as_fn_error $? "ambiguous option: \`$1' 16666Try \`$0 --help' for more information.";; 16667 --help | --hel | -h ) 16668 printf "%s\n" "$ac_cs_usage"; exit ;; 16669 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16670 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16671 ac_cs_silent=: ;; 16672 16673 # This is an error. 16674 -*) as_fn_error $? "unrecognized option: \`$1' 16675Try \`$0 --help' for more information." ;; 16676 16677 *) as_fn_append ac_config_targets " $1" 16678 ac_need_defaults=false ;; 16679 16680 esac 16681 shift 16682done 16683 16684ac_configure_extra_args= 16685 16686if $ac_cs_silent; then 16687 exec 6>/dev/null 16688 ac_configure_extra_args="$ac_configure_extra_args --silent" 16689fi 16690 16691_ACEOF 16692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16693if \$ac_cs_recheck; then 16694 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16695 shift 16696 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 16697 CONFIG_SHELL='$SHELL' 16698 export CONFIG_SHELL 16699 exec "\$@" 16700fi 16701 16702_ACEOF 16703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16704exec 5>>config.log 16705{ 16706 echo 16707 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 16708@%:@@%:@ Running $as_me. @%:@@%:@ 16709_ASBOX 16710 printf "%s\n" "$ac_log" 16711} >&5 16712 16713_ACEOF 16714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16715# 16716# INIT-COMMANDS 16717# 16718AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 16719 16720 16721# The HP-UX ksh and POSIX shell print the target directory to stdout 16722# if CDPATH is set. 16723(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16724 16725sed_quote_subst='$sed_quote_subst' 16726double_quote_subst='$double_quote_subst' 16727delay_variable_subst='$delay_variable_subst' 16728macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16729macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16730enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16731enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16732pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16733enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16734shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 16735SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16736ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16737PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16738host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16739host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16740host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16741build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16742build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16743build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16744SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16745Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16746GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16747EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16748FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16749LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16750NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16751LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16752max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16753ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16754exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16755lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16756lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16757lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16758lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16759lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16760reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16761reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16762OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16763deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16764file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16765file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16766want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16767DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16768sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16769AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16770AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16771archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16772STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16773RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16774old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16775old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16776old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16777lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16778CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16779CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16780compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16781GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16782lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16783lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16784lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 16785lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16786lt_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"`' 16787lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 16788nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16789lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16790lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 16791objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16792MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16793lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16794lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16795lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16796lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16797lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16798need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16799MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16800DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16801NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16802LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16803OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16804OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16805libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16806shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16807extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16808archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16809enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16810export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16811whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16812compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16813old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16814old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16815archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16816archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16817module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16818module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16819with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16820allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16821no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16822hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16823hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16824hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16825hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16826hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16827hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16828hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16829inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16830link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16831always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16832export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16833exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16834include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16835prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16836postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16837file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16838variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16839need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16840need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16841version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16842runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16843shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16844shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16845libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16846library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16847soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16848install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16849postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16850postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16851finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16852finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16853hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16854sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16855configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 16856configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 16857hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16858enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16859enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16860enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16861old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16862striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16863 16864LTCC='$LTCC' 16865LTCFLAGS='$LTCFLAGS' 16866compiler='$compiler_DEFAULT' 16867 16868# A function that is used when there is no print builtin or printf. 16869func_fallback_echo () 16870{ 16871 eval 'cat <<_LTECHO_EOF 16872\$1 16873_LTECHO_EOF' 16874} 16875 16876# Quote evaled strings. 16877for var in SHELL \ 16878ECHO \ 16879PATH_SEPARATOR \ 16880SED \ 16881GREP \ 16882EGREP \ 16883FGREP \ 16884LD \ 16885NM \ 16886LN_S \ 16887lt_SP2NL \ 16888lt_NL2SP \ 16889reload_flag \ 16890OBJDUMP \ 16891deplibs_check_method \ 16892file_magic_cmd \ 16893file_magic_glob \ 16894want_nocaseglob \ 16895DLLTOOL \ 16896sharedlib_from_linklib_cmd \ 16897AR \ 16898AR_FLAGS \ 16899archiver_list_spec \ 16900STRIP \ 16901RANLIB \ 16902CC \ 16903CFLAGS \ 16904compiler \ 16905lt_cv_sys_global_symbol_pipe \ 16906lt_cv_sys_global_symbol_to_cdecl \ 16907lt_cv_sys_global_symbol_to_import \ 16908lt_cv_sys_global_symbol_to_c_name_address \ 16909lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16910lt_cv_nm_interface \ 16911nm_file_list_spec \ 16912lt_cv_truncate_bin \ 16913lt_prog_compiler_no_builtin_flag \ 16914lt_prog_compiler_pic \ 16915lt_prog_compiler_wl \ 16916lt_prog_compiler_static \ 16917lt_cv_prog_compiler_c_o \ 16918need_locks \ 16919MANIFEST_TOOL \ 16920DSYMUTIL \ 16921NMEDIT \ 16922LIPO \ 16923OTOOL \ 16924OTOOL64 \ 16925shrext_cmds \ 16926export_dynamic_flag_spec \ 16927whole_archive_flag_spec \ 16928compiler_needs_object \ 16929with_gnu_ld \ 16930allow_undefined_flag \ 16931no_undefined_flag \ 16932hardcode_libdir_flag_spec \ 16933hardcode_libdir_separator \ 16934exclude_expsyms \ 16935include_expsyms \ 16936file_list_spec \ 16937variables_saved_for_relink \ 16938libname_spec \ 16939library_names_spec \ 16940soname_spec \ 16941install_override_mode \ 16942finish_eval \ 16943old_striplib \ 16944striplib; do 16945 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16946 *[\\\\\\\`\\"\\\$]*) 16947 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16948 ;; 16949 *) 16950 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16951 ;; 16952 esac 16953done 16954 16955# Double-quote double-evaled strings. 16956for var in reload_cmds \ 16957old_postinstall_cmds \ 16958old_postuninstall_cmds \ 16959old_archive_cmds \ 16960extract_expsyms_cmds \ 16961old_archive_from_new_cmds \ 16962old_archive_from_expsyms_cmds \ 16963archive_cmds \ 16964archive_expsym_cmds \ 16965module_cmds \ 16966module_expsym_cmds \ 16967export_symbols_cmds \ 16968prelink_cmds \ 16969postlink_cmds \ 16970postinstall_cmds \ 16971postuninstall_cmds \ 16972finish_cmds \ 16973sys_lib_search_path_spec \ 16974configure_time_dlsearch_path \ 16975configure_time_lt_sys_library_path; do 16976 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16977 *[\\\\\\\`\\"\\\$]*) 16978 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 16979 ;; 16980 *) 16981 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16982 ;; 16983 esac 16984done 16985 16986ac_aux_dir='$ac_aux_dir' 16987 16988# See if we are running on zsh, and set the options that allow our 16989# commands through without removal of \ escapes INIT. 16990if test -n "\${ZSH_VERSION+set}"; then 16991 setopt NO_GLOB_SUBST 16992fi 16993 16994 16995 PACKAGE='$PACKAGE' 16996 VERSION='$VERSION' 16997 RM='$RM' 16998 ofile='$ofile' 16999 17000 17001 17002 17003_ACEOF 17004 17005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17006 17007# Handling of arguments. 17008for ac_config_target in $ac_config_targets 17009do 17010 case $ac_config_target in 17011 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17012 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17013 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17014 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17015 "libedit.pc") CONFIG_FILES="$CONFIG_FILES libedit.pc" ;; 17016 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17017 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17018 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 17019 17020 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17021 esac 17022done 17023 17024 17025# If the user did not use the arguments to specify the items to instantiate, 17026# then the envvar interface is used. Set only those that are not. 17027# We use the long form for the default assignment because of an extremely 17028# bizarre bug on SunOS 4.1.3. 17029if $ac_need_defaults; then 17030 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 17031 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 17032 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 17033fi 17034 17035# Have a temporary directory for convenience. Make it in the build tree 17036# simply because there is no reason against having it here, and in addition, 17037# creating and moving files from /tmp can sometimes cause problems. 17038# Hook for its removal unless debugging. 17039# Note that there is a small window in which the directory will not be cleaned: 17040# after its creation but before its name has been assigned to `$tmp'. 17041$debug || 17042{ 17043 tmp= ac_tmp= 17044 trap 'exit_status=$? 17045 : "${ac_tmp:=$tmp}" 17046 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17047' 0 17048 trap 'as_fn_exit 1' 1 2 13 15 17049} 17050# Create a (secure) tmp directory for tmp files. 17051 17052{ 17053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17054 test -d "$tmp" 17055} || 17056{ 17057 tmp=./conf$$-$RANDOM 17058 (umask 077 && mkdir "$tmp") 17059} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17060ac_tmp=$tmp 17061 17062# Set up the scripts for CONFIG_FILES section. 17063# No need to generate them if there are no CONFIG_FILES. 17064# This happens for instance with `./config.status config.h'. 17065if test -n "$CONFIG_FILES"; then 17066 17067 17068ac_cr=`echo X | tr X '\015'` 17069# On cygwin, bash can eat \r inside `` if the user requested igncr. 17070# But we know of no other shell where ac_cr would be empty at this 17071# point, so we can use a bashism as a fallback. 17072if test "x$ac_cr" = x; then 17073 eval ac_cr=\$\'\\r\' 17074fi 17075ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17076if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17077 ac_cs_awk_cr='\\r' 17078else 17079 ac_cs_awk_cr=$ac_cr 17080fi 17081 17082echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17083_ACEOF 17084 17085 17086{ 17087 echo "cat >conf$$subs.awk <<_ACEOF" && 17088 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17089 echo "_ACEOF" 17090} >conf$$subs.sh || 17091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17092ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17093ac_delim='%!_!# ' 17094for ac_last_try in false false false false false :; do 17095 . ./conf$$subs.sh || 17096 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17097 17098 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17099 if test $ac_delim_n = $ac_delim_num; then 17100 break 17101 elif $ac_last_try; then 17102 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17103 else 17104 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17105 fi 17106done 17107rm -f conf$$subs.sh 17108 17109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17110cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17111_ACEOF 17112sed -n ' 17113h 17114s/^/S["/; s/!.*/"]=/ 17115p 17116g 17117s/^[^!]*!// 17118:repl 17119t repl 17120s/'"$ac_delim"'$// 17121t delim 17122:nl 17123h 17124s/\(.\{148\}\)..*/\1/ 17125t more1 17126s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17127p 17128n 17129b repl 17130:more1 17131s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17132p 17133g 17134s/.\{148\}// 17135t nl 17136:delim 17137h 17138s/\(.\{148\}\)..*/\1/ 17139t more2 17140s/["\\]/\\&/g; s/^/"/; s/$/"/ 17141p 17142b 17143:more2 17144s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17145p 17146g 17147s/.\{148\}// 17148t delim 17149' <conf$$subs.awk | sed ' 17150/^[^""]/{ 17151 N 17152 s/\n// 17153} 17154' >>$CONFIG_STATUS || ac_write_fail=1 17155rm -f conf$$subs.awk 17156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17157_ACAWK 17158cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17159 for (key in S) S_is_set[key] = 1 17160 FS = "" 17161 17162} 17163{ 17164 line = $ 0 17165 nfields = split(line, field, "@") 17166 substed = 0 17167 len = length(field[1]) 17168 for (i = 2; i < nfields; i++) { 17169 key = field[i] 17170 keylen = length(key) 17171 if (S_is_set[key]) { 17172 value = S[key] 17173 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17174 len += length(value) + length(field[++i]) 17175 substed = 1 17176 } else 17177 len += 1 + keylen 17178 } 17179 17180 print line 17181} 17182 17183_ACAWK 17184_ACEOF 17185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17186if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17187 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17188else 17189 cat 17190fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17191 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17192_ACEOF 17193 17194# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17195# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17196# trailing colons and then remove the whole line if VPATH becomes empty 17197# (actually we leave an empty line to preserve line numbers). 17198if test "x$srcdir" = x.; then 17199 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17200h 17201s/// 17202s/^/:/ 17203s/[ ]*$/:/ 17204s/:\$(srcdir):/:/g 17205s/:\${srcdir}:/:/g 17206s/:@srcdir@:/:/g 17207s/^:*// 17208s/:*$// 17209x 17210s/\(=[ ]*\).*/\1/ 17211G 17212s/\n// 17213s/^[^=]*=[ ]*$// 17214}' 17215fi 17216 17217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17218fi # test -n "$CONFIG_FILES" 17219 17220# Set up the scripts for CONFIG_HEADERS section. 17221# No need to generate them if there are no CONFIG_HEADERS. 17222# This happens for instance with `./config.status Makefile'. 17223if test -n "$CONFIG_HEADERS"; then 17224cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17225BEGIN { 17226_ACEOF 17227 17228# Transform confdefs.h into an awk script `defines.awk', embedded as 17229# here-document in config.status, that substitutes the proper values into 17230# config.h.in to produce config.h. 17231 17232# Create a delimiter string that does not exist in confdefs.h, to ease 17233# handling of long lines. 17234ac_delim='%!_!# ' 17235for ac_last_try in false false :; do 17236 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17237 if test -z "$ac_tt"; then 17238 break 17239 elif $ac_last_try; then 17240 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17241 else 17242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17243 fi 17244done 17245 17246# For the awk script, D is an array of macro values keyed by name, 17247# likewise P contains macro parameters if any. Preserve backslash 17248# newline sequences. 17249 17250ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17251sed -n ' 17252s/.\{148\}/&'"$ac_delim"'/g 17253t rset 17254:rset 17255s/^[ ]*#[ ]*define[ ][ ]*/ / 17256t def 17257d 17258:def 17259s/\\$// 17260t bsnl 17261s/["\\]/\\&/g 17262s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17263D["\1"]=" \3"/p 17264s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17265d 17266:bsnl 17267s/["\\]/\\&/g 17268s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17269D["\1"]=" \3\\\\\\n"\\/p 17270t cont 17271s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17272t cont 17273d 17274:cont 17275n 17276s/.\{148\}/&'"$ac_delim"'/g 17277t clear 17278:clear 17279s/\\$// 17280t bsnlc 17281s/["\\]/\\&/g; s/^/"/; s/$/"/p 17282d 17283:bsnlc 17284s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17285b cont 17286' <confdefs.h | sed ' 17287s/'"$ac_delim"'/"\\\ 17288"/g' >>$CONFIG_STATUS || ac_write_fail=1 17289 17290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17291 for (key in D) D_is_set[key] = 1 17292 FS = "" 17293} 17294/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17295 line = \$ 0 17296 split(line, arg, " ") 17297 if (arg[1] == "#") { 17298 defundef = arg[2] 17299 mac1 = arg[3] 17300 } else { 17301 defundef = substr(arg[1], 2) 17302 mac1 = arg[2] 17303 } 17304 split(mac1, mac2, "(") #) 17305 macro = mac2[1] 17306 prefix = substr(line, 1, index(line, defundef) - 1) 17307 if (D_is_set[macro]) { 17308 # Preserve the white space surrounding the "#". 17309 print prefix "define", macro P[macro] D[macro] 17310 next 17311 } else { 17312 # Replace #undef with comments. This is necessary, for example, 17313 # in the case of _POSIX_SOURCE, which is predefined and required 17314 # on some systems where configure will not decide to define it. 17315 if (defundef == "undef") { 17316 print "/*", prefix defundef, macro, "*/" 17317 next 17318 } 17319 } 17320} 17321{ print } 17322_ACAWK 17323_ACEOF 17324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17325 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17326fi # test -n "$CONFIG_HEADERS" 17327 17328 17329eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17330shift 17331for ac_tag 17332do 17333 case $ac_tag in 17334 :[FHLC]) ac_mode=$ac_tag; continue;; 17335 esac 17336 case $ac_mode$ac_tag in 17337 :[FHL]*:*);; 17338 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17339 :[FH]-) ac_tag=-:-;; 17340 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17341 esac 17342 ac_save_IFS=$IFS 17343 IFS=: 17344 set x $ac_tag 17345 IFS=$ac_save_IFS 17346 shift 17347 ac_file=$1 17348 shift 17349 17350 case $ac_mode in 17351 :L) ac_source=$1;; 17352 :[FH]) 17353 ac_file_inputs= 17354 for ac_f 17355 do 17356 case $ac_f in 17357 -) ac_f="$ac_tmp/stdin";; 17358 *) # Look for the file first in the build tree, then in the source tree 17359 # (if the path is not absolute). The absolute path cannot be DOS-style, 17360 # because $ac_f cannot contain `:'. 17361 test -f "$ac_f" || 17362 case $ac_f in 17363 [\\/$]*) false;; 17364 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17365 esac || 17366 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17367 esac 17368 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17369 as_fn_append ac_file_inputs " '$ac_f'" 17370 done 17371 17372 # Let's still pretend it is `configure' which instantiates (i.e., don't 17373 # use $as_me), people would be surprised to read: 17374 # /* config.h. Generated by config.status. */ 17375 configure_input='Generated from '` 17376 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17377 `' by configure.' 17378 if test x"$ac_file" != x-; then 17379 configure_input="$ac_file. $configure_input" 17380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17381printf "%s\n" "$as_me: creating $ac_file" >&6;} 17382 fi 17383 # Neutralize special characters interpreted by sed in replacement strings. 17384 case $configure_input in #( 17385 *\&* | *\|* | *\\* ) 17386 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 17387 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17388 *) ac_sed_conf_input=$configure_input;; 17389 esac 17390 17391 case $ac_tag in 17392 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17394 esac 17395 ;; 17396 esac 17397 17398 ac_dir=`$as_dirname -- "$ac_file" || 17399$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17400 X"$ac_file" : 'X\(//\)[^/]' \| \ 17401 X"$ac_file" : 'X\(//\)$' \| \ 17402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17403printf "%s\n" X"$ac_file" | 17404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17405 s//\1/ 17406 q 17407 } 17408 /^X\(\/\/\)[^/].*/{ 17409 s//\1/ 17410 q 17411 } 17412 /^X\(\/\/\)$/{ 17413 s//\1/ 17414 q 17415 } 17416 /^X\(\/\).*/{ 17417 s//\1/ 17418 q 17419 } 17420 s/.*/./; q'` 17421 as_dir="$ac_dir"; as_fn_mkdir_p 17422 ac_builddir=. 17423 17424case "$ac_dir" in 17425.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17426*) 17427 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 17428 # A ".." for each directory in $ac_dir_suffix. 17429 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17430 case $ac_top_builddir_sub in 17431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17433 esac ;; 17434esac 17435ac_abs_top_builddir=$ac_pwd 17436ac_abs_builddir=$ac_pwd$ac_dir_suffix 17437# for backward compatibility: 17438ac_top_builddir=$ac_top_build_prefix 17439 17440case $srcdir in 17441 .) # We are building in place. 17442 ac_srcdir=. 17443 ac_top_srcdir=$ac_top_builddir_sub 17444 ac_abs_top_srcdir=$ac_pwd ;; 17445 [\\/]* | ?:[\\/]* ) # Absolute name. 17446 ac_srcdir=$srcdir$ac_dir_suffix; 17447 ac_top_srcdir=$srcdir 17448 ac_abs_top_srcdir=$srcdir ;; 17449 *) # Relative name. 17450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17451 ac_top_srcdir=$ac_top_build_prefix$srcdir 17452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17453esac 17454ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17455 17456 17457 case $ac_mode in 17458 :F) 17459 # 17460 # CONFIG_FILE 17461 # 17462 17463 case $INSTALL in 17464 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17465 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17466 esac 17467 ac_MKDIR_P=$MKDIR_P 17468 case $MKDIR_P in 17469 [\\/$]* | ?:[\\/]* ) ;; 17470 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17471 esac 17472_ACEOF 17473 17474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17475# If the template does not know about datarootdir, expand it. 17476# FIXME: This hack should be removed a few years after 2.60. 17477ac_datarootdir_hack=; ac_datarootdir_seen= 17478ac_sed_dataroot=' 17479/datarootdir/ { 17480 p 17481 q 17482} 17483/@datadir@/p 17484/@docdir@/p 17485/@infodir@/p 17486/@localedir@/p 17487/@mandir@/p' 17488case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17489*datarootdir*) ac_datarootdir_seen=yes;; 17490*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17492printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17493_ACEOF 17494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17495 ac_datarootdir_hack=' 17496 s&@datadir@&$datadir&g 17497 s&@docdir@&$docdir&g 17498 s&@infodir@&$infodir&g 17499 s&@localedir@&$localedir&g 17500 s&@mandir@&$mandir&g 17501 s&\\\${datarootdir}&$datarootdir&g' ;; 17502esac 17503_ACEOF 17504 17505# Neutralize VPATH when `$srcdir' = `.'. 17506# Shell code in configure.ac might set extrasub. 17507# FIXME: do we really want to maintain this feature? 17508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17509ac_sed_extra="$ac_vpsub 17510$extrasub 17511_ACEOF 17512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17513:t 17514/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17515s|@configure_input@|$ac_sed_conf_input|;t t 17516s&@top_builddir@&$ac_top_builddir_sub&;t t 17517s&@top_build_prefix@&$ac_top_build_prefix&;t t 17518s&@srcdir@&$ac_srcdir&;t t 17519s&@abs_srcdir@&$ac_abs_srcdir&;t t 17520s&@top_srcdir@&$ac_top_srcdir&;t t 17521s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17522s&@builddir@&$ac_builddir&;t t 17523s&@abs_builddir@&$ac_abs_builddir&;t t 17524s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17525s&@INSTALL@&$ac_INSTALL&;t t 17526s&@MKDIR_P@&$ac_MKDIR_P&;t t 17527$ac_datarootdir_hack 17528" 17529eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17530 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17531 17532test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17533 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17534 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17535 "$ac_tmp/out"`; test -z "$ac_out"; } && 17536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17537which seems to be undefined. Please make sure it is defined" >&5 17538printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17539which seems to be undefined. Please make sure it is defined" >&2;} 17540 17541 rm -f "$ac_tmp/stdin" 17542 case $ac_file in 17543 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17544 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17545 esac \ 17546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17547 ;; 17548 :H) 17549 # 17550 # CONFIG_HEADER 17551 # 17552 if test x"$ac_file" != x-; then 17553 { 17554 printf "%s\n" "/* $configure_input */" >&1 \ 17555 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17556 } >"$ac_tmp/config.h" \ 17557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17558 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17560printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 17561 else 17562 rm -f "$ac_file" 17563 mv "$ac_tmp/config.h" "$ac_file" \ 17564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17565 fi 17566 else 17567 printf "%s\n" "/* $configure_input */" >&1 \ 17568 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17569 || as_fn_error $? "could not create -" "$LINENO" 5 17570 fi 17571# Compute "$ac_file"'s index in $config_headers. 17572_am_arg="$ac_file" 17573_am_stamp_count=1 17574for _am_header in $config_headers :; do 17575 case $_am_header in 17576 $_am_arg | $_am_arg:* ) 17577 break ;; 17578 * ) 17579 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17580 esac 17581done 17582echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17583$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17584 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17585 X"$_am_arg" : 'X\(//\)$' \| \ 17586 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17587printf "%s\n" X"$_am_arg" | 17588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17589 s//\1/ 17590 q 17591 } 17592 /^X\(\/\/\)[^/].*/{ 17593 s//\1/ 17594 q 17595 } 17596 /^X\(\/\/\)$/{ 17597 s//\1/ 17598 q 17599 } 17600 /^X\(\/\).*/{ 17601 s//\1/ 17602 q 17603 } 17604 s/.*/./; q'`/stamp-h$_am_stamp_count 17605 ;; 17606 17607 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17608printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 17609 ;; 17610 esac 17611 17612 17613 case $ac_file$ac_mode in 17614 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17615 # Older Autoconf quotes --file arguments for eval, but not when files 17616 # are listed without --file. Let's play safe and only enable the eval 17617 # if we detect the quoting. 17618 # TODO: see whether this extra hack can be removed once we start 17619 # requiring Autoconf 2.70 or later. 17620 case $CONFIG_FILES in @%:@( 17621 *\'*) : 17622 eval set x "$CONFIG_FILES" ;; @%:@( 17623 *) : 17624 set x $CONFIG_FILES ;; @%:@( 17625 *) : 17626 ;; 17627esac 17628 shift 17629 # Used to flag and report bootstrapping failures. 17630 am_rc=0 17631 for am_mf 17632 do 17633 # Strip MF so we end up with the name of the file. 17634 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 17635 # Check whether this is an Automake generated Makefile which includes 17636 # dependency-tracking related rules and includes. 17637 # Grep'ing the whole file directly is not great: AIX grep has a line 17638 # limit of 2048, but all sed's we know have understand at least 4000. 17639 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 17640 || continue 17641 am_dirpart=`$as_dirname -- "$am_mf" || 17642$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17643 X"$am_mf" : 'X\(//\)[^/]' \| \ 17644 X"$am_mf" : 'X\(//\)$' \| \ 17645 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17646printf "%s\n" X"$am_mf" | 17647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17648 s//\1/ 17649 q 17650 } 17651 /^X\(\/\/\)[^/].*/{ 17652 s//\1/ 17653 q 17654 } 17655 /^X\(\/\/\)$/{ 17656 s//\1/ 17657 q 17658 } 17659 /^X\(\/\).*/{ 17660 s//\1/ 17661 q 17662 } 17663 s/.*/./; q'` 17664 am_filepart=`$as_basename -- "$am_mf" || 17665$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 17666 X"$am_mf" : 'X\(//\)$' \| \ 17667 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 17668printf "%s\n" X/"$am_mf" | 17669 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17670 s//\1/ 17671 q 17672 } 17673 /^X\/\(\/\/\)$/{ 17674 s//\1/ 17675 q 17676 } 17677 /^X\/\(\/\).*/{ 17678 s//\1/ 17679 q 17680 } 17681 s/.*/./; q'` 17682 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 17683 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17684 | $MAKE -f - am--depfiles" >&5 17685 (cd "$am_dirpart" \ 17686 && sed -e '/# am--include-marker/d' "$am_filepart" \ 17687 | $MAKE -f - am--depfiles) >&5 2>&5 17688 ac_status=$? 17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17690 (exit $ac_status); } || am_rc=$? 17691 done 17692 if test $am_rc -ne 0; then 17693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17694printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 17695as_fn_error $? "Something went wrong bootstrapping makefile fragments 17696 for automatic dependency tracking. If GNU make was not used, consider 17697 re-running the configure script with MAKE=\"gmake\" (or whatever is 17698 necessary). You can also try re-running configure with the 17699 '--disable-dependency-tracking' option to at least be able to build 17700 the package (albeit without support for automatic dependency tracking). 17701See \`config.log' for more details" "$LINENO" 5; } 17702 fi 17703 { am_dirpart=; unset am_dirpart;} 17704 { am_filepart=; unset am_filepart;} 17705 { am_mf=; unset am_mf;} 17706 { am_rc=; unset am_rc;} 17707 rm -f conftest-deps.mk 17708} 17709 ;; 17710 "libtool":C) 17711 17712 # See if we are running on zsh, and set the options that allow our 17713 # commands through without removal of \ escapes. 17714 if test -n "${ZSH_VERSION+set}"; then 17715 setopt NO_GLOB_SUBST 17716 fi 17717 17718 cfgfile=${ofile}T 17719 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17720 $RM "$cfgfile" 17721 17722 cat <<_LT_EOF >> "$cfgfile" 17723#! $SHELL 17724# Generated automatically by $as_me ($PACKAGE) $VERSION 17725# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17726 17727# Provide generalized library-building support services. 17728# Written by Gordon Matzigkeit, 1996 17729 17730# Copyright (C) 2014 Free Software Foundation, Inc. 17731# This is free software; see the source for copying conditions. There is NO 17732# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 17733 17734# GNU Libtool is free software; you can redistribute it and/or modify 17735# it under the terms of the GNU General Public License as published by 17736# the Free Software Foundation; either version 2 of of the License, or 17737# (at your option) any later version. 17738# 17739# As a special exception to the GNU General Public License, if you 17740# distribute this file as part of a program or library that is built 17741# using GNU Libtool, you may include this file under the same 17742# distribution terms that you use for the rest of that program. 17743# 17744# GNU Libtool is distributed in the hope that it will be useful, but 17745# WITHOUT ANY WARRANTY; without even the implied warranty of 17746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17747# GNU General Public License for more details. 17748# 17749# You should have received a copy of the GNU General Public License 17750# along with this program. If not, see <http://www.gnu.org/licenses/>. 17751 17752 17753# The names of the tagged configurations supported by this script. 17754available_tags='' 17755 17756# Configured defaults for sys_lib_dlsearch_path munging. 17757: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 17758 17759# ### BEGIN LIBTOOL CONFIG 17760 17761# Which release of libtool.m4 was used? 17762macro_version=$macro_version 17763macro_revision=$macro_revision 17764 17765# Whether or not to build shared libraries. 17766build_libtool_libs=$enable_shared 17767 17768# Whether or not to build static libraries. 17769build_old_libs=$enable_static 17770 17771# What type of objects to build. 17772pic_mode=$pic_mode 17773 17774# Whether or not to optimize for fast installation. 17775fast_install=$enable_fast_install 17776 17777# Shared archive member basename,for filename based shared library versioning on AIX. 17778shared_archive_member_spec=$shared_archive_member_spec 17779 17780# Shell to use when invoking shell scripts. 17781SHELL=$lt_SHELL 17782 17783# An echo program that protects backslashes. 17784ECHO=$lt_ECHO 17785 17786# The PATH separator for the build system. 17787PATH_SEPARATOR=$lt_PATH_SEPARATOR 17788 17789# The host system. 17790host_alias=$host_alias 17791host=$host 17792host_os=$host_os 17793 17794# The build system. 17795build_alias=$build_alias 17796build=$build 17797build_os=$build_os 17798 17799# A sed program that does not truncate output. 17800SED=$lt_SED 17801 17802# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17803Xsed="\$SED -e 1s/^X//" 17804 17805# A grep program that handles long lines. 17806GREP=$lt_GREP 17807 17808# An ERE matcher. 17809EGREP=$lt_EGREP 17810 17811# A literal string matcher. 17812FGREP=$lt_FGREP 17813 17814# A BSD- or MS-compatible name lister. 17815NM=$lt_NM 17816 17817# Whether we need soft or hard links. 17818LN_S=$lt_LN_S 17819 17820# What is the maximum length of a command? 17821max_cmd_len=$max_cmd_len 17822 17823# Object file suffix (normally "o"). 17824objext=$ac_objext 17825 17826# Executable file suffix (normally ""). 17827exeext=$exeext 17828 17829# whether the shell understands "unset". 17830lt_unset=$lt_unset 17831 17832# turn spaces into newlines. 17833SP2NL=$lt_lt_SP2NL 17834 17835# turn newlines into spaces. 17836NL2SP=$lt_lt_NL2SP 17837 17838# convert \$build file names to \$host format. 17839to_host_file_cmd=$lt_cv_to_host_file_cmd 17840 17841# convert \$build files to toolchain format. 17842to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17843 17844# An object symbol dumper. 17845OBJDUMP=$lt_OBJDUMP 17846 17847# Method to check whether dependent libraries are shared objects. 17848deplibs_check_method=$lt_deplibs_check_method 17849 17850# Command to use when deplibs_check_method = "file_magic". 17851file_magic_cmd=$lt_file_magic_cmd 17852 17853# How to find potential files when deplibs_check_method = "file_magic". 17854file_magic_glob=$lt_file_magic_glob 17855 17856# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17857want_nocaseglob=$lt_want_nocaseglob 17858 17859# DLL creation program. 17860DLLTOOL=$lt_DLLTOOL 17861 17862# Command to associate shared and link libraries. 17863sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17864 17865# The archiver. 17866AR=$lt_AR 17867 17868# Flags to create an archive. 17869AR_FLAGS=$lt_AR_FLAGS 17870 17871# How to feed a file listing to the archiver. 17872archiver_list_spec=$lt_archiver_list_spec 17873 17874# A symbol stripping program. 17875STRIP=$lt_STRIP 17876 17877# Commands used to install an old-style archive. 17878RANLIB=$lt_RANLIB 17879old_postinstall_cmds=$lt_old_postinstall_cmds 17880old_postuninstall_cmds=$lt_old_postuninstall_cmds 17881 17882# Whether to use a lock for old archive extraction. 17883lock_old_archive_extraction=$lock_old_archive_extraction 17884 17885# A C compiler. 17886LTCC=$lt_CC 17887 17888# LTCC compiler flags. 17889LTCFLAGS=$lt_CFLAGS 17890 17891# Take the output of nm and produce a listing of raw symbols and C names. 17892global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17893 17894# Transform the output of nm in a proper C declaration. 17895global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17896 17897# Transform the output of nm into a list of symbols to manually relocate. 17898global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 17899 17900# Transform the output of nm in a C name address pair. 17901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17902 17903# Transform the output of nm in a C name address pair when lib prefix is needed. 17904global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17905 17906# The name lister interface. 17907nm_interface=$lt_lt_cv_nm_interface 17908 17909# Specify filename containing input files for \$NM. 17910nm_file_list_spec=$lt_nm_file_list_spec 17911 17912# The root where to search for dependent libraries,and where our libraries should be installed. 17913lt_sysroot=$lt_sysroot 17914 17915# Command to truncate a binary pipe. 17916lt_truncate_bin=$lt_lt_cv_truncate_bin 17917 17918# The name of the directory that contains temporary libtool files. 17919objdir=$objdir 17920 17921# Used to examine libraries when file_magic_cmd begins with "file". 17922MAGIC_CMD=$MAGIC_CMD 17923 17924# Must we lock files when doing compilation? 17925need_locks=$lt_need_locks 17926 17927# Manifest tool. 17928MANIFEST_TOOL=$lt_MANIFEST_TOOL 17929 17930# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17931DSYMUTIL=$lt_DSYMUTIL 17932 17933# Tool to change global to local symbols on Mac OS X. 17934NMEDIT=$lt_NMEDIT 17935 17936# Tool to manipulate fat objects and archives on Mac OS X. 17937LIPO=$lt_LIPO 17938 17939# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17940OTOOL=$lt_OTOOL 17941 17942# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17943OTOOL64=$lt_OTOOL64 17944 17945# Old archive suffix (normally "a"). 17946libext=$libext 17947 17948# Shared library suffix (normally ".so"). 17949shrext_cmds=$lt_shrext_cmds 17950 17951# The commands to extract the exported symbol list from a shared archive. 17952extract_expsyms_cmds=$lt_extract_expsyms_cmds 17953 17954# Variables whose values should be saved in libtool wrapper scripts and 17955# restored at link time. 17956variables_saved_for_relink=$lt_variables_saved_for_relink 17957 17958# Do we need the "lib" prefix for modules? 17959need_lib_prefix=$need_lib_prefix 17960 17961# Do we need a version for libraries? 17962need_version=$need_version 17963 17964# Library versioning type. 17965version_type=$version_type 17966 17967# Shared library runtime path variable. 17968runpath_var=$runpath_var 17969 17970# Shared library path variable. 17971shlibpath_var=$shlibpath_var 17972 17973# Is shlibpath searched before the hard-coded library search path? 17974shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17975 17976# Format of library name prefix. 17977libname_spec=$lt_libname_spec 17978 17979# List of archive names. First name is the real one, the rest are links. 17980# The last name is the one that the linker finds with -lNAME 17981library_names_spec=$lt_library_names_spec 17982 17983# The coded name of the library, if different from the real name. 17984soname_spec=$lt_soname_spec 17985 17986# Permission mode override for installation of shared libraries. 17987install_override_mode=$lt_install_override_mode 17988 17989# Command to use after installation of a shared archive. 17990postinstall_cmds=$lt_postinstall_cmds 17991 17992# Command to use after uninstallation of a shared archive. 17993postuninstall_cmds=$lt_postuninstall_cmds 17994 17995# Commands used to finish a libtool library installation in a directory. 17996finish_cmds=$lt_finish_cmds 17997 17998# As "finish_cmds", except a single script fragment to be evaled but 17999# not shown. 18000finish_eval=$lt_finish_eval 18001 18002# Whether we should hardcode library paths into libraries. 18003hardcode_into_libs=$hardcode_into_libs 18004 18005# Compile-time system search path for libraries. 18006sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18007 18008# Detected run-time system search path for libraries. 18009sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18010 18011# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18012configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18013 18014# Whether dlopen is supported. 18015dlopen_support=$enable_dlopen 18016 18017# Whether dlopen of programs is supported. 18018dlopen_self=$enable_dlopen_self 18019 18020# Whether dlopen of statically linked programs is supported. 18021dlopen_self_static=$enable_dlopen_self_static 18022 18023# Commands to strip libraries. 18024old_striplib=$lt_old_striplib 18025striplib=$lt_striplib 18026 18027 18028# The linker used to build libraries. 18029LD=$lt_LD 18030 18031# How to create reloadable object files. 18032reload_flag=$lt_reload_flag 18033reload_cmds=$lt_reload_cmds 18034 18035# Commands used to build an old-style archive. 18036old_archive_cmds=$lt_old_archive_cmds 18037 18038# A language specific compiler. 18039CC=$lt_compiler 18040 18041# Is the compiler the GNU compiler? 18042with_gcc=$GCC 18043 18044# Compiler flag to turn off builtin functions. 18045no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18046 18047# Additional compiler flags for building library objects. 18048pic_flag=$lt_lt_prog_compiler_pic 18049 18050# How to pass a linker flag through the compiler. 18051wl=$lt_lt_prog_compiler_wl 18052 18053# Compiler flag to prevent dynamic linking. 18054link_static_flag=$lt_lt_prog_compiler_static 18055 18056# Does compiler simultaneously support -c and -o options? 18057compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18058 18059# Whether or not to add -lc for building shared libraries. 18060build_libtool_need_lc=$archive_cmds_need_lc 18061 18062# Whether or not to disallow shared libs when runtime libs are static. 18063allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18064 18065# Compiler flag to allow reflexive dlopens. 18066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18067 18068# Compiler flag to generate shared objects directly from archives. 18069whole_archive_flag_spec=$lt_whole_archive_flag_spec 18070 18071# Whether the compiler copes with passing no objects directly. 18072compiler_needs_object=$lt_compiler_needs_object 18073 18074# Create an old-style archive from a shared archive. 18075old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18076 18077# Create a temporary old-style archive to link instead of a shared archive. 18078old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18079 18080# Commands used to build a shared archive. 18081archive_cmds=$lt_archive_cmds 18082archive_expsym_cmds=$lt_archive_expsym_cmds 18083 18084# Commands used to build a loadable module if different from building 18085# a shared archive. 18086module_cmds=$lt_module_cmds 18087module_expsym_cmds=$lt_module_expsym_cmds 18088 18089# Whether we are building with GNU ld or not. 18090with_gnu_ld=$lt_with_gnu_ld 18091 18092# Flag that allows shared libraries with undefined symbols to be built. 18093allow_undefined_flag=$lt_allow_undefined_flag 18094 18095# Flag that enforces no undefined symbols. 18096no_undefined_flag=$lt_no_undefined_flag 18097 18098# Flag to hardcode \$libdir into a binary during linking. 18099# This must work even if \$libdir does not exist 18100hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18101 18102# Whether we need a single "-rpath" flag with a separated argument. 18103hardcode_libdir_separator=$lt_hardcode_libdir_separator 18104 18105# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18106# DIR into the resulting binary. 18107hardcode_direct=$hardcode_direct 18108 18109# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18110# DIR into the resulting binary and the resulting library dependency is 18111# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18112# library is relocated. 18113hardcode_direct_absolute=$hardcode_direct_absolute 18114 18115# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18116# into the resulting binary. 18117hardcode_minus_L=$hardcode_minus_L 18118 18119# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18120# into the resulting binary. 18121hardcode_shlibpath_var=$hardcode_shlibpath_var 18122 18123# Set to "yes" if building a shared library automatically hardcodes DIR 18124# into the library and all subsequent libraries and executables linked 18125# against it. 18126hardcode_automatic=$hardcode_automatic 18127 18128# Set to yes if linker adds runtime paths of dependent libraries 18129# to runtime path list. 18130inherit_rpath=$inherit_rpath 18131 18132# Whether libtool must link a program against all its dependency libraries. 18133link_all_deplibs=$link_all_deplibs 18134 18135# Set to "yes" if exported symbols are required. 18136always_export_symbols=$always_export_symbols 18137 18138# The commands to list exported symbols. 18139export_symbols_cmds=$lt_export_symbols_cmds 18140 18141# Symbols that should not be listed in the preloaded symbols. 18142exclude_expsyms=$lt_exclude_expsyms 18143 18144# Symbols that must always be exported. 18145include_expsyms=$lt_include_expsyms 18146 18147# Commands necessary for linking programs (against libraries) with templates. 18148prelink_cmds=$lt_prelink_cmds 18149 18150# Commands necessary for finishing linking programs. 18151postlink_cmds=$lt_postlink_cmds 18152 18153# Specify filename containing input files. 18154file_list_spec=$lt_file_list_spec 18155 18156# How to hardcode a shared library path into an executable. 18157hardcode_action=$hardcode_action 18158 18159# ### END LIBTOOL CONFIG 18160 18161_LT_EOF 18162 18163 cat <<'_LT_EOF' >> "$cfgfile" 18164 18165# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18166 18167# func_munge_path_list VARIABLE PATH 18168# ----------------------------------- 18169# VARIABLE is name of variable containing _space_ separated list of 18170# directories to be munged by the contents of PATH, which is string 18171# having a format: 18172# "DIR[:DIR]:" 18173# string "DIR[ DIR]" will be prepended to VARIABLE 18174# ":DIR[:DIR]" 18175# string "DIR[ DIR]" will be appended to VARIABLE 18176# "DIRP[:DIRP]::[DIRA:]DIRA" 18177# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18178# "DIRA[ DIRA]" will be appended to VARIABLE 18179# "DIR[:DIR]" 18180# VARIABLE will be replaced by "DIR[ DIR]" 18181func_munge_path_list () 18182{ 18183 case x@S|@2 in 18184 x) 18185 ;; 18186 *:) 18187 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 18188 ;; 18189 x:*) 18190 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 18191 ;; 18192 *::*) 18193 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18194 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 18195 ;; 18196 *) 18197 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 18198 ;; 18199 esac 18200} 18201 18202 18203# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18204func_cc_basename () 18205{ 18206 for cc_temp in @S|@*""; do 18207 case $cc_temp in 18208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18210 \-*) ;; 18211 *) break;; 18212 esac 18213 done 18214 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18215} 18216 18217 18218# ### END FUNCTIONS SHARED WITH CONFIGURE 18219 18220_LT_EOF 18221 18222 case $host_os in 18223 aix3*) 18224 cat <<\_LT_EOF >> "$cfgfile" 18225# AIX sometimes has problems with the GCC collect2 program. For some 18226# reason, if we set the COLLECT_NAMES environment variable, the problems 18227# vanish in a puff of smoke. 18228if test set != "${COLLECT_NAMES+set}"; then 18229 COLLECT_NAMES= 18230 export COLLECT_NAMES 18231fi 18232_LT_EOF 18233 ;; 18234 esac 18235 18236 18237 18238ltmain=$ac_aux_dir/ltmain.sh 18239 18240 18241 # We use sed instead of cat because bash on DJGPP gets confused if 18242 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18243 # text mode, it properly converts lines to CR/LF. This bash problem 18244 # is reportedly fixed, but why not run on old versions too? 18245 sed '$q' "$ltmain" >> "$cfgfile" \ 18246 || (rm -f "$cfgfile"; exit 1) 18247 18248 mv -f "$cfgfile" "$ofile" || 18249 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18250 chmod +x "$ofile" 18251 18252 ;; 18253 18254 esac 18255done # for ac_tag 18256 18257 18258as_fn_exit 0 18259_ACEOF 18260ac_clean_files=$ac_clean_files_save 18261 18262test $ac_write_fail = 0 || 18263 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18264 18265 18266# configure is writing to config.log, and then calls config.status. 18267# config.status does its own redirection, appending to config.log. 18268# Unfortunately, on DOS this fails, as config.log is still kept open 18269# by configure, so config.status won't be able to write to it; its 18270# output is simply discarded. So we exec the FD to /dev/null, 18271# effectively closing config.log, so it can be properly (re)opened and 18272# appended to by config.status. When coming back to configure, we 18273# need to make the FD available again. 18274if test "$no_create" != yes; then 18275 ac_cs_success=: 18276 ac_config_status_args= 18277 test "$silent" = yes && 18278 ac_config_status_args="$ac_config_status_args --quiet" 18279 exec 5>/dev/null 18280 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18281 exec 5>>config.log 18282 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18283 # would make configure fail if this is the last instruction. 18284 $ac_cs_success || as_fn_exit 1 18285fi 18286if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18288printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18289fi 18290 18291