1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libntlm 1.6. 4# 5# Report bugs to <libntlm@nongnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and libntlm@nongnu.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libntlm' 592PACKAGE_TARNAME='libntlm' 593PACKAGE_VERSION='1.6' 594PACKAGE_STRING='libntlm 1.6' 595PACKAGE_BUGREPORT='libntlm@nongnu.org' 596PACKAGE_URL='' 597 598ac_unique_file="ntlm.h.in" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_header_list= 636ac_subst_vars='gltests_LTLIBOBJS 637gltests_LIBOBJS 638gl_LTLIBOBJS 639gl_LIBOBJS 640CONFIG_INCLUDE 641am__EXEEXT_FALSE 642am__EXEEXT_TRUE 643LTLIBOBJS 644LIBOBJS 645WARN_CFLAGS 646LIBTESTS_LIBDEPS 647HAVE_CRTDEFS_H 648HAVE_WINT_T 649HAVE_FEATURES_H 650NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 651NEXT_WCHAR_H 652REPLACE_WCSTOK 653REPLACE_WCSFTIME 654REPLACE_WCSWIDTH 655REPLACE_WCWIDTH 656REPLACE_WCSNRTOMBS 657REPLACE_WCSRTOMBS 658REPLACE_WCRTOMB 659REPLACE_MBSNRTOWCS 660REPLACE_MBSRTOWCS 661REPLACE_MBRLEN 662REPLACE_MBRTOWC 663REPLACE_MBSINIT 664REPLACE_WCTOB 665REPLACE_BTOWC 666REPLACE_MBSTATE_T 667HAVE_DECL_WCWIDTH 668HAVE_DECL_WCTOB 669HAVE_WCSFTIME 670HAVE_WCSWIDTH 671HAVE_WCSTOK 672HAVE_WCSSTR 673HAVE_WCSPBRK 674HAVE_WCSSPN 675HAVE_WCSCSPN 676HAVE_WCSRCHR 677HAVE_WCSCHR 678HAVE_WCSDUP 679HAVE_WCSXFRM 680HAVE_WCSCOLL 681HAVE_WCSNCASECMP 682HAVE_WCSCASECMP 683HAVE_WCSNCMP 684HAVE_WCSCMP 685HAVE_WCSNCAT 686HAVE_WCSCAT 687HAVE_WCPNCPY 688HAVE_WCSNCPY 689HAVE_WCPCPY 690HAVE_WCSCPY 691HAVE_WCSNLEN 692HAVE_WCSLEN 693HAVE_WMEMSET 694HAVE_WMEMMOVE 695HAVE_WMEMCPY 696HAVE_WMEMCMP 697HAVE_WMEMCHR 698HAVE_WCSNRTOMBS 699HAVE_WCSRTOMBS 700HAVE_WCRTOMB 701HAVE_MBSNRTOWCS 702HAVE_MBSRTOWCS 703HAVE_MBRLEN 704HAVE_MBRTOWC 705HAVE_MBSINIT 706HAVE_BTOWC 707GNULIB_WCSFTIME 708GNULIB_WCSWIDTH 709GNULIB_WCSTOK 710GNULIB_WCSSTR 711GNULIB_WCSPBRK 712GNULIB_WCSSPN 713GNULIB_WCSCSPN 714GNULIB_WCSRCHR 715GNULIB_WCSCHR 716GNULIB_WCSDUP 717GNULIB_WCSXFRM 718GNULIB_WCSCOLL 719GNULIB_WCSNCASECMP 720GNULIB_WCSCASECMP 721GNULIB_WCSNCMP 722GNULIB_WCSCMP 723GNULIB_WCSNCAT 724GNULIB_WCSCAT 725GNULIB_WCPNCPY 726GNULIB_WCSNCPY 727GNULIB_WCPCPY 728GNULIB_WCSCPY 729GNULIB_WCSNLEN 730GNULIB_WCSLEN 731GNULIB_WMEMSET 732GNULIB_WMEMMOVE 733GNULIB_WMEMCPY 734GNULIB_WMEMCMP 735GNULIB_WMEMCHR 736GNULIB_WCWIDTH 737GNULIB_WCSNRTOMBS 738GNULIB_WCSRTOMBS 739GNULIB_WCRTOMB 740GNULIB_MBSNRTOWCS 741GNULIB_MBSRTOWCS 742GNULIB_MBRLEN 743GNULIB_MBRTOWC 744GNULIB_MBSINIT 745GNULIB_WCTOB 746GNULIB_BTOWC 747abs_aux_dir 748NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H 749NEXT_INTTYPES_H 750UINT64_MAX_EQ_ULONG_MAX 751UINT32_MAX_LT_UINTMAX_MAX 752PRIPTR_PREFIX 753PRI_MACROS_BROKEN 754INT64_MAX_EQ_LONG_MAX 755INT32_MAX_LT_INTMAX_MAX 756REPLACE_STRTOUMAX 757REPLACE_STRTOIMAX 758HAVE_IMAXDIV_T 759HAVE_DECL_STRTOUMAX 760HAVE_DECL_STRTOIMAX 761HAVE_DECL_IMAXDIV 762HAVE_DECL_IMAXABS 763GNULIB_STRTOUMAX 764GNULIB_STRTOIMAX 765GNULIB_IMAXDIV 766GNULIB_IMAXABS 767gltests_WITNESS 768VALGRIND 769HAVE_UNISTD_H 770NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 771NEXT_UNISTD_H 772UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 773UNISTD_H_HAVE_WINSOCK2_H 774REPLACE_WRITE 775REPLACE_USLEEP 776REPLACE_UNLINKAT 777REPLACE_UNLINK 778REPLACE_TTYNAME_R 779REPLACE_TRUNCATE 780REPLACE_SYMLINKAT 781REPLACE_SYMLINK 782REPLACE_SLEEP 783REPLACE_RMDIR 784REPLACE_READLINKAT 785REPLACE_READLINK 786REPLACE_READ 787REPLACE_PWRITE 788REPLACE_PREAD 789REPLACE_LSEEK 790REPLACE_LINKAT 791REPLACE_LINK 792REPLACE_LCHOWN 793REPLACE_ISATTY 794REPLACE_GETPASS 795REPLACE_GETPAGESIZE 796REPLACE_GETGROUPS 797REPLACE_GETLOGIN_R 798REPLACE_GETDTABLESIZE 799REPLACE_GETDOMAINNAME 800REPLACE_GETCWD 801REPLACE_FTRUNCATE 802REPLACE_FCHOWNAT 803REPLACE_FACCESSAT 804REPLACE_DUP2 805REPLACE_DUP 806REPLACE_CLOSE 807REPLACE_CHOWN 808REPLACE_ACCESS 809HAVE_SYS_PARAM_H 810HAVE_OS_H 811HAVE_DECL_TTYNAME_R 812HAVE_DECL_TRUNCATE 813HAVE_DECL_SETHOSTNAME 814HAVE_DECL_GETUSERSHELL 815HAVE_DECL_GETPAGESIZE 816HAVE_DECL_GETLOGIN_R 817HAVE_DECL_GETLOGIN 818HAVE_DECL_GETDOMAINNAME 819HAVE_DECL_FDATASYNC 820HAVE_DECL_FCHDIR 821HAVE_DECL_ENVIRON 822HAVE_USLEEP 823HAVE_UNLINKAT 824HAVE_SYMLINKAT 825HAVE_SYMLINK 826HAVE_SLEEP 827HAVE_SETHOSTNAME 828HAVE_READLINKAT 829HAVE_READLINK 830HAVE_PWRITE 831HAVE_PREAD 832HAVE_PIPE2 833HAVE_PIPE 834HAVE_LINKAT 835HAVE_LINK 836HAVE_LCHOWN 837HAVE_GROUP_MEMBER 838HAVE_GETPASS 839HAVE_GETPAGESIZE 840HAVE_GETLOGIN 841HAVE_GETHOSTNAME 842HAVE_GETGROUPS 843HAVE_GETDTABLESIZE 844HAVE_FTRUNCATE 845HAVE_FSYNC 846HAVE_FDATASYNC 847HAVE_FCHOWNAT 848HAVE_FCHDIR 849HAVE_FACCESSAT 850HAVE_EUIDACCESS 851HAVE_DUP3 852HAVE_DUP2 853HAVE_COPY_FILE_RANGE 854HAVE_CHOWN 855GNULIB_WRITE 856GNULIB_USLEEP 857GNULIB_UNLINKAT 858GNULIB_UNLINK 859GNULIB_UNISTD_H_SIGPIPE 860GNULIB_UNISTD_H_NONBLOCKING 861GNULIB_TTYNAME_R 862GNULIB_TRUNCATE 863GNULIB_SYMLINKAT 864GNULIB_SYMLINK 865GNULIB_SLEEP 866GNULIB_SETHOSTNAME 867GNULIB_RMDIR 868GNULIB_READLINKAT 869GNULIB_READLINK 870GNULIB_READ 871GNULIB_PWRITE 872GNULIB_PREAD 873GNULIB_PIPE2 874GNULIB_PIPE 875GNULIB_LSEEK 876GNULIB_LINKAT 877GNULIB_LINK 878GNULIB_LCHOWN 879GNULIB_ISATTY 880GNULIB_GROUP_MEMBER 881GNULIB_GETUSERSHELL 882GNULIB_GETPASS 883GNULIB_GETPAGESIZE 884GNULIB_GETOPT_POSIX 885GNULIB_GETLOGIN_R 886GNULIB_GETLOGIN 887GNULIB_GETHOSTNAME 888GNULIB_GETGROUPS 889GNULIB_GETDTABLESIZE 890GNULIB_GETDOMAINNAME 891GNULIB_GETCWD 892GNULIB_FTRUNCATE 893GNULIB_FSYNC 894GNULIB_FDATASYNC 895GNULIB_FCHOWNAT 896GNULIB_FCHDIR 897GNULIB_FACCESSAT 898GNULIB_EUIDACCESS 899GNULIB_ENVIRON 900GNULIB_DUP3 901GNULIB_DUP2 902GNULIB_DUP 903GNULIB_COPY_FILE_RANGE 904GNULIB_CLOSE 905GNULIB_CHOWN 906GNULIB_CHDIR 907GNULIB_ACCESS 908WINDOWS_STAT_INODES 909WINDOWS_64_BIT_OFF_T 910NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 911NEXT_SYS_TYPES_H 912NEXT_AS_FIRST_DIRECTIVE_STRING_H 913NEXT_STRING_H 914UNDEFINE_STRTOK_R 915REPLACE_STRSIGNAL 916REPLACE_STRERROR_R 917REPLACE_STRERROR 918REPLACE_STRTOK_R 919REPLACE_STRCASESTR 920REPLACE_STRSTR 921REPLACE_STRNLEN 922REPLACE_STRNDUP 923REPLACE_STRNCAT 924REPLACE_STRDUP 925REPLACE_STRCHRNUL 926REPLACE_STPNCPY 927REPLACE_MEMMEM 928REPLACE_MEMCHR 929HAVE_STRVERSCMP 930HAVE_DECL_STRSIGNAL 931HAVE_DECL_STRERROR_R 932HAVE_DECL_STRTOK_R 933HAVE_STRCASESTR 934HAVE_STRSEP 935HAVE_STRPBRK 936HAVE_DECL_STRNLEN 937HAVE_DECL_STRNDUP 938HAVE_DECL_STRDUP 939HAVE_STRCHRNUL 940HAVE_STPNCPY 941HAVE_STPCPY 942HAVE_RAWMEMCHR 943HAVE_DECL_MEMRCHR 944HAVE_MEMPCPY 945HAVE_DECL_MEMMEM 946HAVE_MEMCHR 947HAVE_FFSLL 948HAVE_FFSL 949HAVE_EXPLICIT_BZERO 950HAVE_MBSLEN 951GNULIB_STRVERSCMP 952GNULIB_STRSIGNAL 953GNULIB_STRERROR_R 954GNULIB_STRERROR 955GNULIB_MBSTOK_R 956GNULIB_MBSSEP 957GNULIB_MBSSPN 958GNULIB_MBSPBRK 959GNULIB_MBSCSPN 960GNULIB_MBSCASESTR 961GNULIB_MBSPCASECMP 962GNULIB_MBSNCASECMP 963GNULIB_MBSCASECMP 964GNULIB_MBSSTR 965GNULIB_MBSRCHR 966GNULIB_MBSCHR 967GNULIB_MBSNLEN 968GNULIB_MBSLEN 969GNULIB_STRTOK_R 970GNULIB_STRCASESTR 971GNULIB_STRSTR 972GNULIB_STRSEP 973GNULIB_STRPBRK 974GNULIB_STRNLEN 975GNULIB_STRNDUP 976GNULIB_STRNCAT 977GNULIB_STRDUP 978GNULIB_STRCHRNUL 979GNULIB_STPNCPY 980GNULIB_STPCPY 981GNULIB_RAWMEMCHR 982GNULIB_MEMRCHR 983GNULIB_MEMPCPY 984GNULIB_MEMMEM 985GNULIB_MEMCHR 986GNULIB_FFSLL 987GNULIB_FFSL 988GNULIB_EXPLICIT_BZERO 989GL_GENERATE_STDINT_H_FALSE 990GL_GENERATE_STDINT_H_TRUE 991STDINT_H 992HAVE_SYS_INTTYPES_H 993HAVE_SYS_BITYPES_H 994HAVE_C99_STDINT_H 995WINT_T_SUFFIX 996WCHAR_T_SUFFIX 997SIG_ATOMIC_T_SUFFIX 998SIZE_T_SUFFIX 999PTRDIFF_T_SUFFIX 1000HAVE_SIGNED_WINT_T 1001HAVE_SIGNED_WCHAR_T 1002HAVE_SIGNED_SIG_ATOMIC_T 1003BITSIZEOF_WINT_T 1004BITSIZEOF_WCHAR_T 1005BITSIZEOF_SIG_ATOMIC_T 1006BITSIZEOF_SIZE_T 1007BITSIZEOF_PTRDIFF_T 1008HAVE_STDINT_H 1009NEXT_AS_FIRST_DIRECTIVE_STDINT_H 1010NEXT_STDINT_H 1011HAVE_SYS_TYPES_H 1012HAVE_INTTYPES_H 1013HAVE_WCHAR_H 1014GNULIB_OVERRIDES_WINT_T 1015NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 1016NEXT_STDDEF_H 1017GL_GENERATE_STDDEF_H_FALSE 1018GL_GENERATE_STDDEF_H_TRUE 1019STDDEF_H 1020HAVE_WCHAR_T 1021HAVE_MAX_ALIGN_T 1022REPLACE_NULL 1023HAVE__BOOL 1024GL_GENERATE_STDBOOL_H_FALSE 1025GL_GENERATE_STDBOOL_H_TRUE 1026STDBOOL_H 1027GL_GENERATE_STDALIGN_H_FALSE 1028GL_GENERATE_STDALIGN_H_TRUE 1029STDALIGN_H 1030APPLE_UNIVERSAL_BUILD 1031GL_GENERATE_LIMITS_H_FALSE 1032GL_GENERATE_LIMITS_H_TRUE 1033LIMITS_H 1034NEXT_AS_FIRST_DIRECTIVE_LIMITS_H 1035NEXT_LIMITS_H 1036PRAGMA_COLUMNS 1037PRAGMA_SYSTEM_HEADER 1038INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1039INCLUDE_NEXT 1040GL_GENERATE_BYTESWAP_H_FALSE 1041GL_GENERATE_BYTESWAP_H_TRUE 1042BYTESWAP_H 1043GL_COND_LIBTOOL_FALSE 1044GL_COND_LIBTOOL_TRUE 1045LT_SYS_LIBRARY_PATH 1046OTOOL64 1047OTOOL 1048LIPO 1049NMEDIT 1050DSYMUTIL 1051MANIFEST_TOOL 1052LN_S 1053NM 1054ac_ct_DUMPBIN 1055DUMPBIN 1056LD 1057FGREP 1058SED 1059LIBTOOL 1060OBJDUMP 1061DLLTOOL 1062AS 1063host_os 1064host_vendor 1065host_cpu 1066host 1067build_os 1068build_vendor 1069build_cpu 1070build 1071RANLIB 1072ARFLAGS 1073ac_ct_AR 1074AR 1075EGREP 1076GREP 1077CPP 1078am__fastdepCC_FALSE 1079am__fastdepCC_TRUE 1080CCDEPMODE 1081am__nodep 1082AMDEPBACKSLASH 1083AMDEP_FALSE 1084AMDEP_TRUE 1085am__include 1086DEPDIR 1087OBJEXT 1088EXEEXT 1089ac_ct_CC 1090CPPFLAGS 1091LDFLAGS 1092CFLAGS 1093CC 1094AM_BACKSLASH 1095AM_DEFAULT_VERBOSITY 1096AM_DEFAULT_V 1097AM_V 1098am__untar 1099am__tar 1100AMTAR 1101am__leading_dot 1102SET_MAKE 1103AWK 1104mkdir_p 1105MKDIR_P 1106INSTALL_STRIP_PROGRAM 1107STRIP 1108install_sh 1109MAKEINFO 1110AUTOHEADER 1111AUTOMAKE 1112AUTOCONF 1113ACLOCAL 1114VERSION 1115PACKAGE 1116CYGPATH_W 1117am__isrc 1118INSTALL_DATA 1119INSTALL_SCRIPT 1120INSTALL_PROGRAM 1121LT_REVISION 1122LT_AGE 1123LT_CURRENT 1124target_alias 1125host_alias 1126build_alias 1127LIBS 1128ECHO_T 1129ECHO_N 1130ECHO_C 1131DEFS 1132mandir 1133localedir 1134libdir 1135psdir 1136pdfdir 1137dvidir 1138htmldir 1139infodir 1140docdir 1141oldincludedir 1142includedir 1143runstatedir 1144localstatedir 1145sharedstatedir 1146sysconfdir 1147datadir 1148datarootdir 1149libexecdir 1150sbindir 1151bindir 1152program_transform_name 1153prefix 1154exec_prefix 1155PACKAGE_URL 1156PACKAGE_BUGREPORT 1157PACKAGE_STRING 1158PACKAGE_VERSION 1159PACKAGE_TARNAME 1160PACKAGE_NAME 1161PATH_SEPARATOR 1162SHELL 1163am__quote' 1164ac_subst_files='' 1165ac_user_opts=' 1166enable_option_checking 1167enable_silent_rules 1168enable_dependency_tracking 1169enable_shared 1170enable_static 1171with_pic 1172enable_fast_install 1173with_aix_soname 1174with_gnu_ld 1175with_sysroot 1176enable_libtool_lock 1177enable_cross_guesses 1178enable_valgrind_tests 1179' 1180 ac_precious_vars='build_alias 1181host_alias 1182target_alias 1183CC 1184CFLAGS 1185LDFLAGS 1186LIBS 1187CPPFLAGS 1188CPP 1189LT_SYS_LIBRARY_PATH' 1190 1191 1192# Initialize some variables set by options. 1193ac_init_help= 1194ac_init_version=false 1195ac_unrecognized_opts= 1196ac_unrecognized_sep= 1197# The variables have the same names as the options, with 1198# dashes changed to underlines. 1199cache_file=/dev/null 1200exec_prefix=NONE 1201no_create= 1202no_recursion= 1203prefix=NONE 1204program_prefix=NONE 1205program_suffix=NONE 1206program_transform_name=s,x,x, 1207silent= 1208site= 1209srcdir= 1210verbose= 1211x_includes=NONE 1212x_libraries=NONE 1213 1214# Installation directory options. 1215# These are left unexpanded so users can "make install exec_prefix=/foo" 1216# and all the variables that are supposed to be based on exec_prefix 1217# by default will actually change. 1218# Use braces instead of parens because sh, perl, etc. also accept them. 1219# (The list follows the same order as the GNU Coding Standards.) 1220bindir='${exec_prefix}/bin' 1221sbindir='${exec_prefix}/sbin' 1222libexecdir='${exec_prefix}/libexec' 1223datarootdir='${prefix}/share' 1224datadir='${datarootdir}' 1225sysconfdir='${prefix}/etc' 1226sharedstatedir='${prefix}/com' 1227localstatedir='${prefix}/var' 1228runstatedir='${localstatedir}/run' 1229includedir='${prefix}/include' 1230oldincludedir='/usr/include' 1231docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1232infodir='${datarootdir}/info' 1233htmldir='${docdir}' 1234dvidir='${docdir}' 1235pdfdir='${docdir}' 1236psdir='${docdir}' 1237libdir='${exec_prefix}/lib' 1238localedir='${datarootdir}/locale' 1239mandir='${datarootdir}/man' 1240 1241ac_prev= 1242ac_dashdash= 1243for ac_option 1244do 1245 # If the previous option needs an argument, assign it. 1246 if test -n "$ac_prev"; then 1247 eval $ac_prev=\$ac_option 1248 ac_prev= 1249 continue 1250 fi 1251 1252 case $ac_option in 1253 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1254 *=) ac_optarg= ;; 1255 *) ac_optarg=yes ;; 1256 esac 1257 1258 # Accept the important Cygnus configure options, so we can diagnose typos. 1259 1260 case $ac_dashdash$ac_option in 1261 --) 1262 ac_dashdash=yes ;; 1263 1264 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1265 ac_prev=bindir ;; 1266 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1267 bindir=$ac_optarg ;; 1268 1269 -build | --build | --buil | --bui | --bu) 1270 ac_prev=build_alias ;; 1271 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1272 build_alias=$ac_optarg ;; 1273 1274 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1275 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1276 ac_prev=cache_file ;; 1277 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1278 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1279 cache_file=$ac_optarg ;; 1280 1281 --config-cache | -C) 1282 cache_file=config.cache ;; 1283 1284 -datadir | --datadir | --datadi | --datad) 1285 ac_prev=datadir ;; 1286 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1287 datadir=$ac_optarg ;; 1288 1289 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1290 | --dataroo | --dataro | --datar) 1291 ac_prev=datarootdir ;; 1292 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1293 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1294 datarootdir=$ac_optarg ;; 1295 1296 -disable-* | --disable-*) 1297 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1298 # Reject names that are not valid shell variable names. 1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1300 as_fn_error $? "invalid feature name: $ac_useropt" 1301 ac_useropt_orig=$ac_useropt 1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1303 case $ac_user_opts in 1304 *" 1305"enable_$ac_useropt" 1306"*) ;; 1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1308 ac_unrecognized_sep=', ';; 1309 esac 1310 eval enable_$ac_useropt=no ;; 1311 1312 -docdir | --docdir | --docdi | --doc | --do) 1313 ac_prev=docdir ;; 1314 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1315 docdir=$ac_optarg ;; 1316 1317 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1318 ac_prev=dvidir ;; 1319 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1320 dvidir=$ac_optarg ;; 1321 1322 -enable-* | --enable-*) 1323 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1324 # Reject names that are not valid shell variable names. 1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1326 as_fn_error $? "invalid feature name: $ac_useropt" 1327 ac_useropt_orig=$ac_useropt 1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1329 case $ac_user_opts in 1330 *" 1331"enable_$ac_useropt" 1332"*) ;; 1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1334 ac_unrecognized_sep=', ';; 1335 esac 1336 eval enable_$ac_useropt=\$ac_optarg ;; 1337 1338 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1339 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1340 | --exec | --exe | --ex) 1341 ac_prev=exec_prefix ;; 1342 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1343 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1344 | --exec=* | --exe=* | --ex=*) 1345 exec_prefix=$ac_optarg ;; 1346 1347 -gas | --gas | --ga | --g) 1348 # Obsolete; use --with-gas. 1349 with_gas=yes ;; 1350 1351 -help | --help | --hel | --he | -h) 1352 ac_init_help=long ;; 1353 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1354 ac_init_help=recursive ;; 1355 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1356 ac_init_help=short ;; 1357 1358 -host | --host | --hos | --ho) 1359 ac_prev=host_alias ;; 1360 -host=* | --host=* | --hos=* | --ho=*) 1361 host_alias=$ac_optarg ;; 1362 1363 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1364 ac_prev=htmldir ;; 1365 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1366 | --ht=*) 1367 htmldir=$ac_optarg ;; 1368 1369 -includedir | --includedir | --includedi | --included | --include \ 1370 | --includ | --inclu | --incl | --inc) 1371 ac_prev=includedir ;; 1372 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1373 | --includ=* | --inclu=* | --incl=* | --inc=*) 1374 includedir=$ac_optarg ;; 1375 1376 -infodir | --infodir | --infodi | --infod | --info | --inf) 1377 ac_prev=infodir ;; 1378 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1379 infodir=$ac_optarg ;; 1380 1381 -libdir | --libdir | --libdi | --libd) 1382 ac_prev=libdir ;; 1383 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1384 libdir=$ac_optarg ;; 1385 1386 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1387 | --libexe | --libex | --libe) 1388 ac_prev=libexecdir ;; 1389 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1390 | --libexe=* | --libex=* | --libe=*) 1391 libexecdir=$ac_optarg ;; 1392 1393 -localedir | --localedir | --localedi | --localed | --locale) 1394 ac_prev=localedir ;; 1395 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1396 localedir=$ac_optarg ;; 1397 1398 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1399 | --localstate | --localstat | --localsta | --localst | --locals) 1400 ac_prev=localstatedir ;; 1401 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1402 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1403 localstatedir=$ac_optarg ;; 1404 1405 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1406 ac_prev=mandir ;; 1407 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1408 mandir=$ac_optarg ;; 1409 1410 -nfp | --nfp | --nf) 1411 # Obsolete; use --without-fp. 1412 with_fp=no ;; 1413 1414 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1415 | --no-cr | --no-c | -n) 1416 no_create=yes ;; 1417 1418 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1419 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1420 no_recursion=yes ;; 1421 1422 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1423 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1424 | --oldin | --oldi | --old | --ol | --o) 1425 ac_prev=oldincludedir ;; 1426 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1427 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1428 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1429 oldincludedir=$ac_optarg ;; 1430 1431 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1432 ac_prev=prefix ;; 1433 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1434 prefix=$ac_optarg ;; 1435 1436 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1437 | --program-pre | --program-pr | --program-p) 1438 ac_prev=program_prefix ;; 1439 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1440 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1441 program_prefix=$ac_optarg ;; 1442 1443 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1444 | --program-suf | --program-su | --program-s) 1445 ac_prev=program_suffix ;; 1446 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1447 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1448 program_suffix=$ac_optarg ;; 1449 1450 -program-transform-name | --program-transform-name \ 1451 | --program-transform-nam | --program-transform-na \ 1452 | --program-transform-n | --program-transform- \ 1453 | --program-transform | --program-transfor \ 1454 | --program-transfo | --program-transf \ 1455 | --program-trans | --program-tran \ 1456 | --progr-tra | --program-tr | --program-t) 1457 ac_prev=program_transform_name ;; 1458 -program-transform-name=* | --program-transform-name=* \ 1459 | --program-transform-nam=* | --program-transform-na=* \ 1460 | --program-transform-n=* | --program-transform-=* \ 1461 | --program-transform=* | --program-transfor=* \ 1462 | --program-transfo=* | --program-transf=* \ 1463 | --program-trans=* | --program-tran=* \ 1464 | --progr-tra=* | --program-tr=* | --program-t=*) 1465 program_transform_name=$ac_optarg ;; 1466 1467 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1468 ac_prev=pdfdir ;; 1469 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1470 pdfdir=$ac_optarg ;; 1471 1472 -psdir | --psdir | --psdi | --psd | --ps) 1473 ac_prev=psdir ;; 1474 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1475 psdir=$ac_optarg ;; 1476 1477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1478 | -silent | --silent | --silen | --sile | --sil) 1479 silent=yes ;; 1480 1481 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1482 | --runstate | --runstat | --runsta | --runst | --runs \ 1483 | --run | --ru | --r) 1484 ac_prev=runstatedir ;; 1485 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1486 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1487 | --run=* | --ru=* | --r=*) 1488 runstatedir=$ac_optarg ;; 1489 1490 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1491 ac_prev=sbindir ;; 1492 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1493 | --sbi=* | --sb=*) 1494 sbindir=$ac_optarg ;; 1495 1496 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1497 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1498 | --sharedst | --shareds | --shared | --share | --shar \ 1499 | --sha | --sh) 1500 ac_prev=sharedstatedir ;; 1501 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1502 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1503 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1504 | --sha=* | --sh=*) 1505 sharedstatedir=$ac_optarg ;; 1506 1507 -site | --site | --sit) 1508 ac_prev=site ;; 1509 -site=* | --site=* | --sit=*) 1510 site=$ac_optarg ;; 1511 1512 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1513 ac_prev=srcdir ;; 1514 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1515 srcdir=$ac_optarg ;; 1516 1517 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1518 | --syscon | --sysco | --sysc | --sys | --sy) 1519 ac_prev=sysconfdir ;; 1520 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1521 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1522 sysconfdir=$ac_optarg ;; 1523 1524 -target | --target | --targe | --targ | --tar | --ta | --t) 1525 ac_prev=target_alias ;; 1526 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1527 target_alias=$ac_optarg ;; 1528 1529 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1530 verbose=yes ;; 1531 1532 -version | --version | --versio | --versi | --vers | -V) 1533 ac_init_version=: ;; 1534 1535 -with-* | --with-*) 1536 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1537 # Reject names that are not valid shell variable names. 1538 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1539 as_fn_error $? "invalid package name: $ac_useropt" 1540 ac_useropt_orig=$ac_useropt 1541 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1542 case $ac_user_opts in 1543 *" 1544"with_$ac_useropt" 1545"*) ;; 1546 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1547 ac_unrecognized_sep=', ';; 1548 esac 1549 eval with_$ac_useropt=\$ac_optarg ;; 1550 1551 -without-* | --without-*) 1552 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1553 # Reject names that are not valid shell variable names. 1554 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1555 as_fn_error $? "invalid package name: $ac_useropt" 1556 ac_useropt_orig=$ac_useropt 1557 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1558 case $ac_user_opts in 1559 *" 1560"with_$ac_useropt" 1561"*) ;; 1562 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1563 ac_unrecognized_sep=', ';; 1564 esac 1565 eval with_$ac_useropt=no ;; 1566 1567 --x) 1568 # Obsolete; use --with-x. 1569 with_x=yes ;; 1570 1571 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1572 | --x-incl | --x-inc | --x-in | --x-i) 1573 ac_prev=x_includes ;; 1574 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1575 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1576 x_includes=$ac_optarg ;; 1577 1578 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1579 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1580 ac_prev=x_libraries ;; 1581 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1582 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1583 x_libraries=$ac_optarg ;; 1584 1585 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1586Try \`$0 --help' for more information" 1587 ;; 1588 1589 *=*) 1590 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1591 # Reject names that are not valid shell variable names. 1592 case $ac_envvar in #( 1593 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1594 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1595 esac 1596 eval $ac_envvar=\$ac_optarg 1597 export $ac_envvar ;; 1598 1599 *) 1600 # FIXME: should be removed in autoconf 3.0. 1601 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1602 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1603 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1604 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1605 ;; 1606 1607 esac 1608done 1609 1610if test -n "$ac_prev"; then 1611 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1612 as_fn_error $? "missing argument to $ac_option" 1613fi 1614 1615if test -n "$ac_unrecognized_opts"; then 1616 case $enable_option_checking in 1617 no) ;; 1618 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1619 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1620 esac 1621fi 1622 1623# Check all directory arguments for consistency. 1624for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1625 datadir sysconfdir sharedstatedir localstatedir includedir \ 1626 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1627 libdir localedir mandir runstatedir 1628do 1629 eval ac_val=\$$ac_var 1630 # Remove trailing slashes. 1631 case $ac_val in 1632 */ ) 1633 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1634 eval $ac_var=\$ac_val;; 1635 esac 1636 # Be sure to have absolute directory names. 1637 case $ac_val in 1638 [\\/$]* | ?:[\\/]* ) continue;; 1639 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1640 esac 1641 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1642done 1643 1644# There might be people who depend on the old broken behavior: `$host' 1645# used to hold the argument of --host etc. 1646# FIXME: To remove some day. 1647build=$build_alias 1648host=$host_alias 1649target=$target_alias 1650 1651# FIXME: To remove some day. 1652if test "x$host_alias" != x; then 1653 if test "x$build_alias" = x; then 1654 cross_compiling=maybe 1655 elif test "x$build_alias" != "x$host_alias"; then 1656 cross_compiling=yes 1657 fi 1658fi 1659 1660ac_tool_prefix= 1661test -n "$host_alias" && ac_tool_prefix=$host_alias- 1662 1663test "$silent" = yes && exec 6>/dev/null 1664 1665 1666ac_pwd=`pwd` && test -n "$ac_pwd" && 1667ac_ls_di=`ls -di .` && 1668ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1669 as_fn_error $? "working directory cannot be determined" 1670test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1671 as_fn_error $? "pwd does not report name of working directory" 1672 1673 1674# Find the source files, if location was not specified. 1675if test -z "$srcdir"; then 1676 ac_srcdir_defaulted=yes 1677 # Try the directory containing this script, then the parent directory. 1678 ac_confdir=`$as_dirname -- "$as_myself" || 1679$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1680 X"$as_myself" : 'X\(//\)[^/]' \| \ 1681 X"$as_myself" : 'X\(//\)$' \| \ 1682 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1683$as_echo X"$as_myself" | 1684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1685 s//\1/ 1686 q 1687 } 1688 /^X\(\/\/\)[^/].*/{ 1689 s//\1/ 1690 q 1691 } 1692 /^X\(\/\/\)$/{ 1693 s//\1/ 1694 q 1695 } 1696 /^X\(\/\).*/{ 1697 s//\1/ 1698 q 1699 } 1700 s/.*/./; q'` 1701 srcdir=$ac_confdir 1702 if test ! -r "$srcdir/$ac_unique_file"; then 1703 srcdir=.. 1704 fi 1705else 1706 ac_srcdir_defaulted=no 1707fi 1708if test ! -r "$srcdir/$ac_unique_file"; then 1709 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1710 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1711fi 1712ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1713ac_abs_confdir=`( 1714 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1715 pwd)` 1716# When building in place, set srcdir=. 1717if test "$ac_abs_confdir" = "$ac_pwd"; then 1718 srcdir=. 1719fi 1720# Remove unnecessary trailing slashes from srcdir. 1721# Double slashes in file names in object file debugging info 1722# mess up M-x gdb in Emacs. 1723case $srcdir in 1724*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1725esac 1726for ac_var in $ac_precious_vars; do 1727 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1728 eval ac_env_${ac_var}_value=\$${ac_var} 1729 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1730 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1731done 1732 1733# 1734# Report the --help message. 1735# 1736if test "$ac_init_help" = "long"; then 1737 # Omit some internal or obsolete options to make the list less imposing. 1738 # This message is too long to be a string in the A/UX 3.1 sh. 1739 cat <<_ACEOF 1740\`configure' configures libntlm 1.6 to adapt to many kinds of systems. 1741 1742Usage: $0 [OPTION]... [VAR=VALUE]... 1743 1744To assign environment variables (e.g., CC, CFLAGS...), specify them as 1745VAR=VALUE. See below for descriptions of some of the useful variables. 1746 1747Defaults for the options are specified in brackets. 1748 1749Configuration: 1750 -h, --help display this help and exit 1751 --help=short display options specific to this package 1752 --help=recursive display the short help of all the included packages 1753 -V, --version display version information and exit 1754 -q, --quiet, --silent do not print \`checking ...' messages 1755 --cache-file=FILE cache test results in FILE [disabled] 1756 -C, --config-cache alias for \`--cache-file=config.cache' 1757 -n, --no-create do not create output files 1758 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1759 1760Installation directories: 1761 --prefix=PREFIX install architecture-independent files in PREFIX 1762 [$ac_default_prefix] 1763 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1764 [PREFIX] 1765 1766By default, \`make install' will install all the files in 1767\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1768an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1769for instance \`--prefix=\$HOME'. 1770 1771For better control, use the options below. 1772 1773Fine tuning of the installation directories: 1774 --bindir=DIR user executables [EPREFIX/bin] 1775 --sbindir=DIR system admin executables [EPREFIX/sbin] 1776 --libexecdir=DIR program executables [EPREFIX/libexec] 1777 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1778 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1779 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1780 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1781 --libdir=DIR object code libraries [EPREFIX/lib] 1782 --includedir=DIR C header files [PREFIX/include] 1783 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1784 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1785 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1786 --infodir=DIR info documentation [DATAROOTDIR/info] 1787 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1788 --mandir=DIR man documentation [DATAROOTDIR/man] 1789 --docdir=DIR documentation root [DATAROOTDIR/doc/libntlm] 1790 --htmldir=DIR html documentation [DOCDIR] 1791 --dvidir=DIR dvi documentation [DOCDIR] 1792 --pdfdir=DIR pdf documentation [DOCDIR] 1793 --psdir=DIR ps documentation [DOCDIR] 1794_ACEOF 1795 1796 cat <<\_ACEOF 1797 1798Program names: 1799 --program-prefix=PREFIX prepend PREFIX to installed program names 1800 --program-suffix=SUFFIX append SUFFIX to installed program names 1801 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1802 1803System types: 1804 --build=BUILD configure for building on BUILD [guessed] 1805 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1806_ACEOF 1807fi 1808 1809if test -n "$ac_init_help"; then 1810 case $ac_init_help in 1811 short | recursive ) echo "Configuration of libntlm 1.6:";; 1812 esac 1813 cat <<\_ACEOF 1814 1815Optional Features: 1816 --disable-option-checking ignore unrecognized --enable/--with options 1817 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1818 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1819 --enable-silent-rules less verbose build output (undo: "make V=1") 1820 --disable-silent-rules verbose build output (undo: "make V=0") 1821 --enable-dependency-tracking 1822 do not reject slow dependency extractors 1823 --disable-dependency-tracking 1824 speeds up one-time build 1825 --enable-shared[=PKGS] build shared libraries [default=yes] 1826 --enable-static[=PKGS] build static libraries [default=yes] 1827 --enable-fast-install[=PKGS] 1828 optimize for fast installation [default=yes] 1829 --disable-libtool-lock avoid locking (might break parallel builds) 1830 --enable-cross-guesses={conservative|risky} 1831 specify policy for cross-compilation guesses 1832 --disable-valgrind-tests 1833 don't try to run self tests under valgrind 1834 1835Optional Packages: 1836 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1837 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1838 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1839 both] 1840 --with-aix-soname=aix|svr4|both 1841 shared library versioning (aka "SONAME") variant to 1842 provide on AIX, [default=aix]. 1843 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1844 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1845 compiler's sysroot if not specified). 1846 1847Some influential environment variables: 1848 CC C compiler command 1849 CFLAGS C compiler flags 1850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1851 nonstandard directory <lib dir> 1852 LIBS libraries to pass to the linker, e.g. -l<library> 1853 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1854 you have headers in a nonstandard directory <include dir> 1855 CPP C preprocessor 1856 LT_SYS_LIBRARY_PATH 1857 User-defined run-time library search path. 1858 1859Use these variables to override the choices made by `configure' or to help 1860it to find libraries and programs with nonstandard names/locations. 1861 1862Report bugs to <libntlm@nongnu.org>. 1863_ACEOF 1864ac_status=$? 1865fi 1866 1867if test "$ac_init_help" = "recursive"; then 1868 # If there are subdirs, report their specific --help. 1869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1870 test -d "$ac_dir" || 1871 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1872 continue 1873 ac_builddir=. 1874 1875case "$ac_dir" in 1876.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1877*) 1878 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1879 # A ".." for each directory in $ac_dir_suffix. 1880 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1881 case $ac_top_builddir_sub in 1882 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1883 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1884 esac ;; 1885esac 1886ac_abs_top_builddir=$ac_pwd 1887ac_abs_builddir=$ac_pwd$ac_dir_suffix 1888# for backward compatibility: 1889ac_top_builddir=$ac_top_build_prefix 1890 1891case $srcdir in 1892 .) # We are building in place. 1893 ac_srcdir=. 1894 ac_top_srcdir=$ac_top_builddir_sub 1895 ac_abs_top_srcdir=$ac_pwd ;; 1896 [\\/]* | ?:[\\/]* ) # Absolute name. 1897 ac_srcdir=$srcdir$ac_dir_suffix; 1898 ac_top_srcdir=$srcdir 1899 ac_abs_top_srcdir=$srcdir ;; 1900 *) # Relative name. 1901 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1902 ac_top_srcdir=$ac_top_build_prefix$srcdir 1903 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1904esac 1905ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1906 1907 cd "$ac_dir" || { ac_status=$?; continue; } 1908 # Check for guested configure. 1909 if test -f "$ac_srcdir/configure.gnu"; then 1910 echo && 1911 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1912 elif test -f "$ac_srcdir/configure"; then 1913 echo && 1914 $SHELL "$ac_srcdir/configure" --help=recursive 1915 else 1916 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1917 fi || ac_status=$? 1918 cd "$ac_pwd" || { ac_status=$?; break; } 1919 done 1920fi 1921 1922test -n "$ac_init_help" && exit $ac_status 1923if $ac_init_version; then 1924 cat <<\_ACEOF 1925libntlm configure 1.6 1926generated by GNU Autoconf 2.69 1927 1928Copyright (C) 2012 Free Software Foundation, Inc. 1929This configure script is free software; the Free Software Foundation 1930gives unlimited permission to copy, distribute and modify it. 1931_ACEOF 1932 exit 1933fi 1934 1935## ------------------------ ## 1936## Autoconf initialization. ## 1937## ------------------------ ## 1938 1939# ac_fn_c_try_compile LINENO 1940# -------------------------- 1941# Try to compile conftest.$ac_ext, and return whether this succeeded. 1942ac_fn_c_try_compile () 1943{ 1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1945 rm -f conftest.$ac_objext 1946 if { { ac_try="$ac_compile" 1947case "(($ac_try" in 1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1949 *) ac_try_echo=$ac_try;; 1950esac 1951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1952$as_echo "$ac_try_echo"; } >&5 1953 (eval "$ac_compile") 2>conftest.err 1954 ac_status=$? 1955 if test -s conftest.err; then 1956 grep -v '^ *+' conftest.err >conftest.er1 1957 cat conftest.er1 >&5 1958 mv -f conftest.er1 conftest.err 1959 fi 1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1961 test $ac_status = 0; } && { 1962 test -z "$ac_c_werror_flag" || 1963 test ! -s conftest.err 1964 } && test -s conftest.$ac_objext; then : 1965 ac_retval=0 1966else 1967 $as_echo "$as_me: failed program was:" >&5 1968sed 's/^/| /' conftest.$ac_ext >&5 1969 1970 ac_retval=1 1971fi 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 as_fn_set_status $ac_retval 1974 1975} # ac_fn_c_try_compile 1976 1977# ac_fn_c_try_cpp LINENO 1978# ---------------------- 1979# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1980ac_fn_c_try_cpp () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 if { { ac_try="$ac_cpp conftest.$ac_ext" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1991 ac_status=$? 1992 if test -s conftest.err; then 1993 grep -v '^ *+' conftest.err >conftest.er1 1994 cat conftest.er1 >&5 1995 mv -f conftest.er1 conftest.err 1996 fi 1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1998 test $ac_status = 0; } > conftest.i && { 1999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2000 test ! -s conftest.err 2001 }; then : 2002 ac_retval=0 2003else 2004 $as_echo "$as_me: failed program was:" >&5 2005sed 's/^/| /' conftest.$ac_ext >&5 2006 2007 ac_retval=1 2008fi 2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2010 as_fn_set_status $ac_retval 2011 2012} # ac_fn_c_try_cpp 2013 2014# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2015# ------------------------------------------------------- 2016# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2017# the include files in INCLUDES and setting the cache variable VAR 2018# accordingly. 2019ac_fn_c_check_header_mongrel () 2020{ 2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2022 if eval \${$3+:} false; then : 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2024$as_echo_n "checking for $2... " >&6; } 2025if eval \${$3+:} false; then : 2026 $as_echo_n "(cached) " >&6 2027fi 2028eval ac_res=\$$3 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2030$as_echo "$ac_res" >&6; } 2031else 2032 # Is the header compilable? 2033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2034$as_echo_n "checking $2 usability... " >&6; } 2035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037$4 2038#include <$2> 2039_ACEOF 2040if ac_fn_c_try_compile "$LINENO"; then : 2041 ac_header_compiler=yes 2042else 2043 ac_header_compiler=no 2044fi 2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2047$as_echo "$ac_header_compiler" >&6; } 2048 2049# Is the header present? 2050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2051$as_echo_n "checking $2 presence... " >&6; } 2052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2053/* end confdefs.h. */ 2054#include <$2> 2055_ACEOF 2056if ac_fn_c_try_cpp "$LINENO"; then : 2057 ac_header_preproc=yes 2058else 2059 ac_header_preproc=no 2060fi 2061rm -f conftest.err conftest.i conftest.$ac_ext 2062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2063$as_echo "$ac_header_preproc" >&6; } 2064 2065# So? What about this header? 2066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2067 yes:no: ) 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2069$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2071$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2072 ;; 2073 no:yes:* ) 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2075$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2077$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2079$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2081$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2083$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2084( $as_echo "## --------------------------------- ## 2085## Report this to libntlm@nongnu.org ## 2086## --------------------------------- ##" 2087 ) | sed "s/^/$as_me: WARNING: /" >&2 2088 ;; 2089esac 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2091$as_echo_n "checking for $2... " >&6; } 2092if eval \${$3+:} false; then : 2093 $as_echo_n "(cached) " >&6 2094else 2095 eval "$3=\$ac_header_compiler" 2096fi 2097eval ac_res=\$$3 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2099$as_echo "$ac_res" >&6; } 2100fi 2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2102 2103} # ac_fn_c_check_header_mongrel 2104 2105# ac_fn_c_try_run LINENO 2106# ---------------------- 2107# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2108# that executables *can* be run. 2109ac_fn_c_try_run () 2110{ 2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2112 if { { ac_try="$ac_link" 2113case "(($ac_try" in 2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2115 *) ac_try_echo=$ac_try;; 2116esac 2117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2118$as_echo "$ac_try_echo"; } >&5 2119 (eval "$ac_link") 2>&5 2120 ac_status=$? 2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2122 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2123 { { case "(($ac_try" in 2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2125 *) ac_try_echo=$ac_try;; 2126esac 2127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2128$as_echo "$ac_try_echo"; } >&5 2129 (eval "$ac_try") 2>&5 2130 ac_status=$? 2131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2132 test $ac_status = 0; }; }; then : 2133 ac_retval=0 2134else 2135 $as_echo "$as_me: program exited with status $ac_status" >&5 2136 $as_echo "$as_me: failed program was:" >&5 2137sed 's/^/| /' conftest.$ac_ext >&5 2138 2139 ac_retval=$ac_status 2140fi 2141 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2142 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2143 as_fn_set_status $ac_retval 2144 2145} # ac_fn_c_try_run 2146 2147# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2148# ------------------------------------------------------- 2149# Tests whether HEADER exists and can be compiled using the include files in 2150# INCLUDES, setting the cache variable VAR accordingly. 2151ac_fn_c_check_header_compile () 2152{ 2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2155$as_echo_n "checking for $2... " >&6; } 2156if eval \${$3+:} false; then : 2157 $as_echo_n "(cached) " >&6 2158else 2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2160/* end confdefs.h. */ 2161$4 2162#include <$2> 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 eval "$3=yes" 2166else 2167 eval "$3=no" 2168fi 2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2170fi 2171eval ac_res=\$$3 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2173$as_echo "$ac_res" >&6; } 2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2175 2176} # ac_fn_c_check_header_compile 2177 2178# ac_fn_c_try_link LINENO 2179# ----------------------- 2180# Try to link conftest.$ac_ext, and return whether this succeeded. 2181ac_fn_c_try_link () 2182{ 2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2184 rm -f conftest.$ac_objext conftest$ac_exeext 2185 if { { ac_try="$ac_link" 2186case "(($ac_try" in 2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2188 *) ac_try_echo=$ac_try;; 2189esac 2190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2191$as_echo "$ac_try_echo"; } >&5 2192 (eval "$ac_link") 2>conftest.err 2193 ac_status=$? 2194 if test -s conftest.err; then 2195 grep -v '^ *+' conftest.err >conftest.er1 2196 cat conftest.er1 >&5 2197 mv -f conftest.er1 conftest.err 2198 fi 2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2200 test $ac_status = 0; } && { 2201 test -z "$ac_c_werror_flag" || 2202 test ! -s conftest.err 2203 } && test -s conftest$ac_exeext && { 2204 test "$cross_compiling" = yes || 2205 test -x conftest$ac_exeext 2206 }; then : 2207 ac_retval=0 2208else 2209 $as_echo "$as_me: failed program was:" >&5 2210sed 's/^/| /' conftest.$ac_ext >&5 2211 2212 ac_retval=1 2213fi 2214 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2215 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2216 # interfere with the next link command; also delete a directory that is 2217 # left behind by Apple's compiler. We do this before executing the actions. 2218 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2220 as_fn_set_status $ac_retval 2221 2222} # ac_fn_c_try_link 2223 2224# ac_fn_c_check_func LINENO FUNC VAR 2225# ---------------------------------- 2226# Tests whether FUNC exists, setting the cache variable VAR accordingly 2227ac_fn_c_check_func () 2228{ 2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2231$as_echo_n "checking for $2... " >&6; } 2232if eval \${$3+:} false; then : 2233 $as_echo_n "(cached) " >&6 2234else 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2238 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2239#define $2 innocuous_$2 2240 2241/* System header to define __stub macros and hopefully few prototypes, 2242 which can conflict with char $2 (); below. 2243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2244 <limits.h> exists even on freestanding compilers. */ 2245 2246#ifdef __STDC__ 2247# include <limits.h> 2248#else 2249# include <assert.h> 2250#endif 2251 2252#undef $2 2253 2254/* Override any GCC internal prototype to avoid an error. 2255 Use char because int might match the return type of a GCC 2256 builtin and then its argument prototype would still apply. */ 2257#ifdef __cplusplus 2258extern "C" 2259#endif 2260char $2 (); 2261/* The GNU C library defines this for functions which it implements 2262 to always fail with ENOSYS. Some functions are actually named 2263 something starting with __ and the normal name is an alias. */ 2264#if defined __stub_$2 || defined __stub___$2 2265choke me 2266#endif 2267 2268int 2269main () 2270{ 2271return $2 (); 2272 ; 2273 return 0; 2274} 2275_ACEOF 2276if ac_fn_c_try_link "$LINENO"; then : 2277 eval "$3=yes" 2278else 2279 eval "$3=no" 2280fi 2281rm -f core conftest.err conftest.$ac_objext \ 2282 conftest$ac_exeext conftest.$ac_ext 2283fi 2284eval ac_res=\$$3 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2286$as_echo "$ac_res" >&6; } 2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2288 2289} # ac_fn_c_check_func 2290 2291# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2292# ------------------------------------------- 2293# Tests whether TYPE exists after having included INCLUDES, setting cache 2294# variable VAR accordingly. 2295ac_fn_c_check_type () 2296{ 2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2299$as_echo_n "checking for $2... " >&6; } 2300if eval \${$3+:} false; then : 2301 $as_echo_n "(cached) " >&6 2302else 2303 eval "$3=no" 2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2305/* end confdefs.h. */ 2306$4 2307int 2308main () 2309{ 2310if (sizeof ($2)) 2311 return 0; 2312 ; 2313 return 0; 2314} 2315_ACEOF 2316if ac_fn_c_try_compile "$LINENO"; then : 2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2318/* end confdefs.h. */ 2319$4 2320int 2321main () 2322{ 2323if (sizeof (($2))) 2324 return 0; 2325 ; 2326 return 0; 2327} 2328_ACEOF 2329if ac_fn_c_try_compile "$LINENO"; then : 2330 2331else 2332 eval "$3=yes" 2333fi 2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2335fi 2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2337fi 2338eval ac_res=\$$3 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2340$as_echo "$ac_res" >&6; } 2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2342 2343} # ac_fn_c_check_type 2344 2345# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2346# -------------------------------------------- 2347# Tries to find the compile-time value of EXPR in a program that includes 2348# INCLUDES, setting VAR accordingly. Returns whether the value could be 2349# computed 2350ac_fn_c_compute_int () 2351{ 2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2353 if test "$cross_compiling" = yes; then 2354 # Depending upon the size, compute the lo and hi bounds. 2355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2356/* end confdefs.h. */ 2357$4 2358int 2359main () 2360{ 2361static int test_array [1 - 2 * !(($2) >= 0)]; 2362test_array [0] = 0; 2363return test_array [0]; 2364 2365 ; 2366 return 0; 2367} 2368_ACEOF 2369if ac_fn_c_try_compile "$LINENO"; then : 2370 ac_lo=0 ac_mid=0 2371 while :; do 2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2373/* end confdefs.h. */ 2374$4 2375int 2376main () 2377{ 2378static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2379test_array [0] = 0; 2380return test_array [0]; 2381 2382 ; 2383 return 0; 2384} 2385_ACEOF 2386if ac_fn_c_try_compile "$LINENO"; then : 2387 ac_hi=$ac_mid; break 2388else 2389 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2390 if test $ac_lo -le $ac_mid; then 2391 ac_lo= ac_hi= 2392 break 2393 fi 2394 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2395fi 2396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2397 done 2398else 2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2400/* end confdefs.h. */ 2401$4 2402int 2403main () 2404{ 2405static int test_array [1 - 2 * !(($2) < 0)]; 2406test_array [0] = 0; 2407return test_array [0]; 2408 2409 ; 2410 return 0; 2411} 2412_ACEOF 2413if ac_fn_c_try_compile "$LINENO"; then : 2414 ac_hi=-1 ac_mid=-1 2415 while :; do 2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2417/* end confdefs.h. */ 2418$4 2419int 2420main () 2421{ 2422static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2423test_array [0] = 0; 2424return test_array [0]; 2425 2426 ; 2427 return 0; 2428} 2429_ACEOF 2430if ac_fn_c_try_compile "$LINENO"; then : 2431 ac_lo=$ac_mid; break 2432else 2433 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2434 if test $ac_mid -le $ac_hi; then 2435 ac_lo= ac_hi= 2436 break 2437 fi 2438 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2439fi 2440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2441 done 2442else 2443 ac_lo= ac_hi= 2444fi 2445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2446fi 2447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2448# Binary search between lo and hi bounds. 2449while test "x$ac_lo" != "x$ac_hi"; do 2450 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2452/* end confdefs.h. */ 2453$4 2454int 2455main () 2456{ 2457static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2458test_array [0] = 0; 2459return test_array [0]; 2460 2461 ; 2462 return 0; 2463} 2464_ACEOF 2465if ac_fn_c_try_compile "$LINENO"; then : 2466 ac_hi=$ac_mid 2467else 2468 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2469fi 2470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2471done 2472case $ac_lo in #(( 2473?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2474'') ac_retval=1 ;; 2475esac 2476 else 2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2478/* end confdefs.h. */ 2479$4 2480static long int longval () { return $2; } 2481static unsigned long int ulongval () { return $2; } 2482#include <stdio.h> 2483#include <stdlib.h> 2484int 2485main () 2486{ 2487 2488 FILE *f = fopen ("conftest.val", "w"); 2489 if (! f) 2490 return 1; 2491 if (($2) < 0) 2492 { 2493 long int i = longval (); 2494 if (i != ($2)) 2495 return 1; 2496 fprintf (f, "%ld", i); 2497 } 2498 else 2499 { 2500 unsigned long int i = ulongval (); 2501 if (i != ($2)) 2502 return 1; 2503 fprintf (f, "%lu", i); 2504 } 2505 /* Do not output a trailing newline, as this causes \r\n confusion 2506 on some platforms. */ 2507 return ferror (f) || fclose (f) != 0; 2508 2509 ; 2510 return 0; 2511} 2512_ACEOF 2513if ac_fn_c_try_run "$LINENO"; then : 2514 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2515else 2516 ac_retval=1 2517fi 2518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2519 conftest.$ac_objext conftest.beam conftest.$ac_ext 2520rm -f conftest.val 2521 2522 fi 2523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2524 as_fn_set_status $ac_retval 2525 2526} # ac_fn_c_compute_int 2527cat >config.log <<_ACEOF 2528This file contains any messages produced by compilers while 2529running configure, to aid debugging if configure makes a mistake. 2530 2531It was created by libntlm $as_me 1.6, which was 2532generated by GNU Autoconf 2.69. Invocation command line was 2533 2534 $ $0 $@ 2535 2536_ACEOF 2537exec 5>>config.log 2538{ 2539cat <<_ASUNAME 2540## --------- ## 2541## Platform. ## 2542## --------- ## 2543 2544hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2545uname -m = `(uname -m) 2>/dev/null || echo unknown` 2546uname -r = `(uname -r) 2>/dev/null || echo unknown` 2547uname -s = `(uname -s) 2>/dev/null || echo unknown` 2548uname -v = `(uname -v) 2>/dev/null || echo unknown` 2549 2550/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2551/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2552 2553/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2554/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2555/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2556/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2557/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2558/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2559/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2560 2561_ASUNAME 2562 2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2564for as_dir in $PATH 2565do 2566 IFS=$as_save_IFS 2567 test -z "$as_dir" && as_dir=. 2568 $as_echo "PATH: $as_dir" 2569 done 2570IFS=$as_save_IFS 2571 2572} >&5 2573 2574cat >&5 <<_ACEOF 2575 2576 2577## ----------- ## 2578## Core tests. ## 2579## ----------- ## 2580 2581_ACEOF 2582 2583 2584# Keep a trace of the command line. 2585# Strip out --no-create and --no-recursion so they do not pile up. 2586# Strip out --silent because we don't want to record it for future runs. 2587# Also quote any args containing shell meta-characters. 2588# Make two passes to allow for proper duplicate-argument suppression. 2589ac_configure_args= 2590ac_configure_args0= 2591ac_configure_args1= 2592ac_must_keep_next=false 2593for ac_pass in 1 2 2594do 2595 for ac_arg 2596 do 2597 case $ac_arg in 2598 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2600 | -silent | --silent | --silen | --sile | --sil) 2601 continue ;; 2602 *\'*) 2603 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2604 esac 2605 case $ac_pass in 2606 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2607 2) 2608 as_fn_append ac_configure_args1 " '$ac_arg'" 2609 if test $ac_must_keep_next = true; then 2610 ac_must_keep_next=false # Got value, back to normal. 2611 else 2612 case $ac_arg in 2613 *=* | --config-cache | -C | -disable-* | --disable-* \ 2614 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2615 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2616 | -with-* | --with-* | -without-* | --without-* | --x) 2617 case "$ac_configure_args0 " in 2618 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2619 esac 2620 ;; 2621 -* ) ac_must_keep_next=true ;; 2622 esac 2623 fi 2624 as_fn_append ac_configure_args " '$ac_arg'" 2625 ;; 2626 esac 2627 done 2628done 2629{ ac_configure_args0=; unset ac_configure_args0;} 2630{ ac_configure_args1=; unset ac_configure_args1;} 2631 2632# When interrupted or exit'd, cleanup temporary files, and complete 2633# config.log. We remove comments because anyway the quotes in there 2634# would cause problems or look ugly. 2635# WARNING: Use '\'' to represent an apostrophe within the trap. 2636# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2637trap 'exit_status=$? 2638 # Save into config.log some information that might help in debugging. 2639 { 2640 echo 2641 2642 $as_echo "## ---------------- ## 2643## Cache variables. ## 2644## ---------------- ##" 2645 echo 2646 # The following way of writing the cache mishandles newlines in values, 2647( 2648 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2649 eval ac_val=\$$ac_var 2650 case $ac_val in #( 2651 *${as_nl}*) 2652 case $ac_var in #( 2653 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2654$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2655 esac 2656 case $ac_var in #( 2657 _ | IFS | as_nl) ;; #( 2658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2659 *) { eval $ac_var=; unset $ac_var;} ;; 2660 esac ;; 2661 esac 2662 done 2663 (set) 2>&1 | 2664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2665 *${as_nl}ac_space=\ *) 2666 sed -n \ 2667 "s/'\''/'\''\\\\'\'''\''/g; 2668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2669 ;; #( 2670 *) 2671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2672 ;; 2673 esac | 2674 sort 2675) 2676 echo 2677 2678 $as_echo "## ----------------- ## 2679## Output variables. ## 2680## ----------------- ##" 2681 echo 2682 for ac_var in $ac_subst_vars 2683 do 2684 eval ac_val=\$$ac_var 2685 case $ac_val in 2686 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2687 esac 2688 $as_echo "$ac_var='\''$ac_val'\''" 2689 done | sort 2690 echo 2691 2692 if test -n "$ac_subst_files"; then 2693 $as_echo "## ------------------- ## 2694## File substitutions. ## 2695## ------------------- ##" 2696 echo 2697 for ac_var in $ac_subst_files 2698 do 2699 eval ac_val=\$$ac_var 2700 case $ac_val in 2701 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2702 esac 2703 $as_echo "$ac_var='\''$ac_val'\''" 2704 done | sort 2705 echo 2706 fi 2707 2708 if test -s confdefs.h; then 2709 $as_echo "## ----------- ## 2710## confdefs.h. ## 2711## ----------- ##" 2712 echo 2713 cat confdefs.h 2714 echo 2715 fi 2716 test "$ac_signal" != 0 && 2717 $as_echo "$as_me: caught signal $ac_signal" 2718 $as_echo "$as_me: exit $exit_status" 2719 } >&5 2720 rm -f core *.core core.conftest.* && 2721 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2722 exit $exit_status 2723' 0 2724for ac_signal in 1 2 13 15; do 2725 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2726done 2727ac_signal=0 2728 2729# confdefs.h avoids OS command line length limits that DEFS can exceed. 2730rm -f -r conftest* confdefs.h 2731 2732$as_echo "/* confdefs.h */" > confdefs.h 2733 2734# Predefined preprocessor variables. 2735 2736cat >>confdefs.h <<_ACEOF 2737#define PACKAGE_NAME "$PACKAGE_NAME" 2738_ACEOF 2739 2740cat >>confdefs.h <<_ACEOF 2741#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2742_ACEOF 2743 2744cat >>confdefs.h <<_ACEOF 2745#define PACKAGE_VERSION "$PACKAGE_VERSION" 2746_ACEOF 2747 2748cat >>confdefs.h <<_ACEOF 2749#define PACKAGE_STRING "$PACKAGE_STRING" 2750_ACEOF 2751 2752cat >>confdefs.h <<_ACEOF 2753#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2754_ACEOF 2755 2756cat >>confdefs.h <<_ACEOF 2757#define PACKAGE_URL "$PACKAGE_URL" 2758_ACEOF 2759 2760 2761# Let the site file select an alternate cache file if it wants to. 2762# Prefer an explicitly selected file to automatically selected ones. 2763ac_site_file1=NONE 2764ac_site_file2=NONE 2765if test -n "$CONFIG_SITE"; then 2766 # We do not want a PATH search for config.site. 2767 case $CONFIG_SITE in #(( 2768 -*) ac_site_file1=./$CONFIG_SITE;; 2769 */*) ac_site_file1=$CONFIG_SITE;; 2770 *) ac_site_file1=./$CONFIG_SITE;; 2771 esac 2772elif test "x$prefix" != xNONE; then 2773 ac_site_file1=$prefix/share/config.site 2774 ac_site_file2=$prefix/etc/config.site 2775else 2776 ac_site_file1=$ac_default_prefix/share/config.site 2777 ac_site_file2=$ac_default_prefix/etc/config.site 2778fi 2779for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2780do 2781 test "x$ac_site_file" = xNONE && continue 2782 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2784$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2785 sed 's/^/| /' "$ac_site_file" >&5 2786 . "$ac_site_file" \ 2787 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2788$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2789as_fn_error $? "failed to load site script $ac_site_file 2790See \`config.log' for more details" "$LINENO" 5; } 2791 fi 2792done 2793 2794if test -r "$cache_file"; then 2795 # Some versions of bash will fail to source /dev/null (special files 2796 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2797 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2799$as_echo "$as_me: loading cache $cache_file" >&6;} 2800 case $cache_file in 2801 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2802 *) . "./$cache_file";; 2803 esac 2804 fi 2805else 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2807$as_echo "$as_me: creating cache $cache_file" >&6;} 2808 >$cache_file 2809fi 2810 2811as_fn_append ac_header_list " limits.h" 2812as_fn_append ac_header_list " wchar.h" 2813as_fn_append ac_header_list " stdint.h" 2814as_fn_append ac_header_list " unistd.h" 2815as_fn_append ac_header_list " inttypes.h" 2816as_fn_append ac_header_list " features.h" 2817as_fn_append ac_header_list " crtdefs.h" 2818# Check that the precious variables saved in the cache have kept the same 2819# value. 2820ac_cache_corrupted=false 2821for ac_var in $ac_precious_vars; do 2822 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2823 eval ac_new_set=\$ac_env_${ac_var}_set 2824 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2825 eval ac_new_val=\$ac_env_${ac_var}_value 2826 case $ac_old_set,$ac_new_set in 2827 set,) 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2829$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2830 ac_cache_corrupted=: ;; 2831 ,set) 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2833$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2834 ac_cache_corrupted=: ;; 2835 ,);; 2836 *) 2837 if test "x$ac_old_val" != "x$ac_new_val"; then 2838 # differences in whitespace do not lead to failure. 2839 ac_old_val_w=`echo x $ac_old_val` 2840 ac_new_val_w=`echo x $ac_new_val` 2841 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2843$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2844 ac_cache_corrupted=: 2845 else 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2847$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2848 eval $ac_var=\$ac_old_val 2849 fi 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2851$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2853$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2854 fi;; 2855 esac 2856 # Pass precious variables to config.status. 2857 if test "$ac_new_set" = set; then 2858 case $ac_new_val in 2859 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2860 *) ac_arg=$ac_var=$ac_new_val ;; 2861 esac 2862 case " $ac_configure_args " in 2863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2864 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2865 esac 2866 fi 2867done 2868if $ac_cache_corrupted; then 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2872$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2873 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2874fi 2875## -------------------- ## 2876## Main body of script. ## 2877## -------------------- ## 2878 2879ac_ext=c 2880ac_cpp='$CPP $CPPFLAGS' 2881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2883ac_compiler_gnu=$ac_cv_c_compiler_gnu 2884 2885 2886ac_aux_dir= 2887for ac_dir in build-aux "$srcdir"/build-aux; do 2888 if test -f "$ac_dir/install-sh"; then 2889 ac_aux_dir=$ac_dir 2890 ac_install_sh="$ac_aux_dir/install-sh -c" 2891 break 2892 elif test -f "$ac_dir/install.sh"; then 2893 ac_aux_dir=$ac_dir 2894 ac_install_sh="$ac_aux_dir/install.sh -c" 2895 break 2896 elif test -f "$ac_dir/shtool"; then 2897 ac_aux_dir=$ac_dir 2898 ac_install_sh="$ac_aux_dir/shtool install -c" 2899 break 2900 fi 2901done 2902if test -z "$ac_aux_dir"; then 2903 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2904fi 2905 2906# These three variables are undocumented and unsupported, 2907# and are intended to be withdrawn in a future Autoconf release. 2908# They can cause serious problems if a builder's source tree is in a directory 2909# whose full name contains unusual characters. 2910ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2911ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2912ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2913 2914 2915 2916 2917# Interfaces removed: CURRENT++, AGE=0, REVISION=0 2918# Interfaces added: CURRENT++, AGE++, REVISION=0 2919# No interfaces changed: REVISION++ 2920LT_CURRENT=0 2921 2922LT_AGE=0 2923 2924LT_REVISION=21 2925 2926 2927am__api_version='1.16' 2928 2929# Find a good install program. We prefer a C program (faster), 2930# so one script is as good as another. But avoid the broken or 2931# incompatible versions: 2932# SysV /etc/install, /usr/sbin/install 2933# SunOS /usr/etc/install 2934# IRIX /sbin/install 2935# AIX /bin/install 2936# AmigaOS /C/install, which installs bootblocks on floppy discs 2937# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2938# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2939# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2940# OS/2's system install, which has a completely different semantic 2941# ./install, which can be erroneously created by make from ./install.sh. 2942# Reject install programs that cannot install multiple files. 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2944$as_echo_n "checking for a BSD-compatible install... " >&6; } 2945if test -z "$INSTALL"; then 2946if ${ac_cv_path_install+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2950for as_dir in $PATH 2951do 2952 IFS=$as_save_IFS 2953 test -z "$as_dir" && as_dir=. 2954 # Account for people who put trailing slashes in PATH elements. 2955case $as_dir/ in #(( 2956 ./ | .// | /[cC]/* | \ 2957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2958 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2959 /usr/ucb/* ) ;; 2960 *) 2961 # OSF1 and SCO ODT 3.0 have their own names for install. 2962 # Don't use installbsd from OSF since it installs stuff as root 2963 # by default. 2964 for ac_prog in ginstall scoinst install; do 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2967 if test $ac_prog = install && 2968 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2969 # AIX install. It has an incompatible calling convention. 2970 : 2971 elif test $ac_prog = install && 2972 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2973 # program-specific install script used by HP pwplus--don't use. 2974 : 2975 else 2976 rm -rf conftest.one conftest.two conftest.dir 2977 echo one > conftest.one 2978 echo two > conftest.two 2979 mkdir conftest.dir 2980 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2981 test -s conftest.one && test -s conftest.two && 2982 test -s conftest.dir/conftest.one && 2983 test -s conftest.dir/conftest.two 2984 then 2985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2986 break 3 2987 fi 2988 fi 2989 fi 2990 done 2991 done 2992 ;; 2993esac 2994 2995 done 2996IFS=$as_save_IFS 2997 2998rm -rf conftest.one conftest.two conftest.dir 2999 3000fi 3001 if test "${ac_cv_path_install+set}" = set; then 3002 INSTALL=$ac_cv_path_install 3003 else 3004 # As a last resort, use the slow shell script. Don't cache a 3005 # value for INSTALL within a source directory, because that will 3006 # break other packages using the cache if that directory is 3007 # removed, or if the value is a relative name. 3008 INSTALL=$ac_install_sh 3009 fi 3010fi 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3012$as_echo "$INSTALL" >&6; } 3013 3014# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3015# It thinks the first close brace ends the variable substitution. 3016test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3017 3018test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3019 3020test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3021 3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3023$as_echo_n "checking whether build environment is sane... " >&6; } 3024# Reject unsafe characters in $srcdir or the absolute working directory 3025# name. Accept space and tab only in the latter. 3026am_lf=' 3027' 3028case `pwd` in 3029 *[\\\"\#\$\&\'\`$am_lf]*) 3030 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3031esac 3032case $srcdir in 3033 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3034 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3035esac 3036 3037# Do 'set' in a subshell so we don't clobber the current shell's 3038# arguments. Must try -L first in case configure is actually a 3039# symlink; some systems play weird games with the mod time of symlinks 3040# (eg FreeBSD returns the mod time of the symlink's containing 3041# directory). 3042if ( 3043 am_has_slept=no 3044 for am_try in 1 2; do 3045 echo "timestamp, slept: $am_has_slept" > conftest.file 3046 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3047 if test "$*" = "X"; then 3048 # -L didn't work. 3049 set X `ls -t "$srcdir/configure" conftest.file` 3050 fi 3051 if test "$*" != "X $srcdir/configure conftest.file" \ 3052 && test "$*" != "X conftest.file $srcdir/configure"; then 3053 3054 # If neither matched, then we have a broken ls. This can happen 3055 # if, for instance, CONFIG_SHELL is bash and it inherits a 3056 # broken ls alias from the environment. This has actually 3057 # happened. Such a system could not be considered "sane". 3058 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3059 alias in your environment" "$LINENO" 5 3060 fi 3061 if test "$2" = conftest.file || test $am_try -eq 2; then 3062 break 3063 fi 3064 # Just in case. 3065 sleep 1 3066 am_has_slept=yes 3067 done 3068 test "$2" = conftest.file 3069 ) 3070then 3071 # Ok. 3072 : 3073else 3074 as_fn_error $? "newly created file is older than distributed files! 3075Check your system clock" "$LINENO" 5 3076fi 3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3078$as_echo "yes" >&6; } 3079# If we didn't sleep, we still need to ensure time stamps of config.status and 3080# generated files are strictly newer. 3081am_sleep_pid= 3082if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3083 ( sleep 1 ) & 3084 am_sleep_pid=$! 3085fi 3086 3087rm -f conftest.file 3088 3089test "$program_prefix" != NONE && 3090 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3091# Use a double $ so make ignores it. 3092test "$program_suffix" != NONE && 3093 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3094# Double any \ or $. 3095# By default was `s,x,x', remove it if useless. 3096ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3097program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3098 3099# Expand $ac_aux_dir to an absolute path. 3100am_aux_dir=`cd "$ac_aux_dir" && pwd` 3101 3102if test x"${MISSING+set}" != xset; then 3103 case $am_aux_dir in 3104 *\ * | *\ *) 3105 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3106 *) 3107 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3108 esac 3109fi 3110# Use eval to expand $SHELL 3111if eval "$MISSING --is-lightweight"; then 3112 am_missing_run="$MISSING " 3113else 3114 am_missing_run= 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3116$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3117fi 3118 3119if test x"${install_sh+set}" != xset; then 3120 case $am_aux_dir in 3121 *\ * | *\ *) 3122 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3123 *) 3124 install_sh="\${SHELL} $am_aux_dir/install-sh" 3125 esac 3126fi 3127 3128# Installed binaries are usually stripped using 'strip' when the user 3129# run "make install-strip". However 'strip' might not be the right 3130# tool to use in cross-compilation environments, therefore Automake 3131# will honor the 'STRIP' environment variable to overrule this program. 3132if test "$cross_compiling" != no; then 3133 if test -n "$ac_tool_prefix"; then 3134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3135set dummy ${ac_tool_prefix}strip; ac_word=$2 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3137$as_echo_n "checking for $ac_word... " >&6; } 3138if ${ac_cv_prog_STRIP+:} false; then : 3139 $as_echo_n "(cached) " >&6 3140else 3141 if test -n "$STRIP"; then 3142 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3143else 3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3145for as_dir in $PATH 3146do 3147 IFS=$as_save_IFS 3148 test -z "$as_dir" && as_dir=. 3149 for ac_exec_ext in '' $ac_executable_extensions; do 3150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3151 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3153 break 2 3154 fi 3155done 3156 done 3157IFS=$as_save_IFS 3158 3159fi 3160fi 3161STRIP=$ac_cv_prog_STRIP 3162if test -n "$STRIP"; then 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3164$as_echo "$STRIP" >&6; } 3165else 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3167$as_echo "no" >&6; } 3168fi 3169 3170 3171fi 3172if test -z "$ac_cv_prog_STRIP"; then 3173 ac_ct_STRIP=$STRIP 3174 # Extract the first word of "strip", so it can be a program name with args. 3175set dummy strip; ac_word=$2 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3177$as_echo_n "checking for $ac_word... " >&6; } 3178if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3179 $as_echo_n "(cached) " >&6 3180else 3181 if test -n "$ac_ct_STRIP"; then 3182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3183else 3184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3185for as_dir in $PATH 3186do 3187 IFS=$as_save_IFS 3188 test -z "$as_dir" && as_dir=. 3189 for ac_exec_ext in '' $ac_executable_extensions; do 3190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3191 ac_cv_prog_ac_ct_STRIP="strip" 3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3193 break 2 3194 fi 3195done 3196 done 3197IFS=$as_save_IFS 3198 3199fi 3200fi 3201ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3202if test -n "$ac_ct_STRIP"; then 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3204$as_echo "$ac_ct_STRIP" >&6; } 3205else 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3207$as_echo "no" >&6; } 3208fi 3209 3210 if test "x$ac_ct_STRIP" = x; then 3211 STRIP=":" 3212 else 3213 case $cross_compiling:$ac_tool_warned in 3214yes:) 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3217ac_tool_warned=yes ;; 3218esac 3219 STRIP=$ac_ct_STRIP 3220 fi 3221else 3222 STRIP="$ac_cv_prog_STRIP" 3223fi 3224 3225fi 3226INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3227 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3229$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3230if test -z "$MKDIR_P"; then 3231 if ${ac_cv_path_mkdir+:} false; then : 3232 $as_echo_n "(cached) " >&6 3233else 3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3236do 3237 IFS=$as_save_IFS 3238 test -z "$as_dir" && as_dir=. 3239 for ac_prog in mkdir gmkdir; do 3240 for ac_exec_ext in '' $ac_executable_extensions; do 3241 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3242 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3243 'mkdir (GNU coreutils) '* | \ 3244 'mkdir (coreutils) '* | \ 3245 'mkdir (fileutils) '4.1*) 3246 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3247 break 3;; 3248 esac 3249 done 3250 done 3251 done 3252IFS=$as_save_IFS 3253 3254fi 3255 3256 test -d ./--version && rmdir ./--version 3257 if test "${ac_cv_path_mkdir+set}" = set; then 3258 MKDIR_P="$ac_cv_path_mkdir -p" 3259 else 3260 # As a last resort, use the slow shell script. Don't cache a 3261 # value for MKDIR_P within a source directory, because that will 3262 # break other packages using the cache if that directory is 3263 # removed, or if the value is a relative name. 3264 MKDIR_P="$ac_install_sh -d" 3265 fi 3266fi 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3268$as_echo "$MKDIR_P" >&6; } 3269 3270for ac_prog in gawk mawk nawk awk 3271do 3272 # Extract the first word of "$ac_prog", so it can be a program name with args. 3273set dummy $ac_prog; ac_word=$2 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3275$as_echo_n "checking for $ac_word... " >&6; } 3276if ${ac_cv_prog_AWK+:} false; then : 3277 $as_echo_n "(cached) " >&6 3278else 3279 if test -n "$AWK"; then 3280 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3281else 3282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3283for as_dir in $PATH 3284do 3285 IFS=$as_save_IFS 3286 test -z "$as_dir" && as_dir=. 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3289 ac_cv_prog_AWK="$ac_prog" 3290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3291 break 2 3292 fi 3293done 3294 done 3295IFS=$as_save_IFS 3296 3297fi 3298fi 3299AWK=$ac_cv_prog_AWK 3300if test -n "$AWK"; then 3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3302$as_echo "$AWK" >&6; } 3303else 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305$as_echo "no" >&6; } 3306fi 3307 3308 3309 test -n "$AWK" && break 3310done 3311 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3313$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3314set x ${MAKE-make} 3315ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3316if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3317 $as_echo_n "(cached) " >&6 3318else 3319 cat >conftest.make <<\_ACEOF 3320SHELL = /bin/sh 3321all: 3322 @echo '@@@%%%=$(MAKE)=@@@%%%' 3323_ACEOF 3324# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3325case `${MAKE-make} -f conftest.make 2>/dev/null` in 3326 *@@@%%%=?*=@@@%%%*) 3327 eval ac_cv_prog_make_${ac_make}_set=yes;; 3328 *) 3329 eval ac_cv_prog_make_${ac_make}_set=no;; 3330esac 3331rm -f conftest.make 3332fi 3333if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3335$as_echo "yes" >&6; } 3336 SET_MAKE= 3337else 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3339$as_echo "no" >&6; } 3340 SET_MAKE="MAKE=${MAKE-make}" 3341fi 3342 3343rm -rf .tst 2>/dev/null 3344mkdir .tst 2>/dev/null 3345if test -d .tst; then 3346 am__leading_dot=. 3347else 3348 am__leading_dot=_ 3349fi 3350rmdir .tst 2>/dev/null 3351 3352# Check whether --enable-silent-rules was given. 3353if test "${enable_silent_rules+set}" = set; then : 3354 enableval=$enable_silent_rules; 3355fi 3356 3357case $enable_silent_rules in # ((( 3358 yes) AM_DEFAULT_VERBOSITY=0;; 3359 no) AM_DEFAULT_VERBOSITY=1;; 3360 *) AM_DEFAULT_VERBOSITY=1;; 3361esac 3362am_make=${MAKE-make} 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3364$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3365if ${am_cv_make_support_nested_variables+:} false; then : 3366 $as_echo_n "(cached) " >&6 3367else 3368 if $as_echo 'TRUE=$(BAR$(V)) 3369BAR0=false 3370BAR1=true 3371V=1 3372am__doit: 3373 @$(TRUE) 3374.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3375 am_cv_make_support_nested_variables=yes 3376else 3377 am_cv_make_support_nested_variables=no 3378fi 3379fi 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3381$as_echo "$am_cv_make_support_nested_variables" >&6; } 3382if test $am_cv_make_support_nested_variables = yes; then 3383 AM_V='$(V)' 3384 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3385else 3386 AM_V=$AM_DEFAULT_VERBOSITY 3387 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3388fi 3389AM_BACKSLASH='\' 3390 3391if test "`cd $srcdir && pwd`" != "`pwd`"; then 3392 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3393 # is not polluted with repeated "-I." 3394 am__isrc=' -I$(srcdir)' 3395 # test to see if srcdir already configured 3396 if test -f $srcdir/config.status; then 3397 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3398 fi 3399fi 3400 3401# test whether we have cygpath 3402if test -z "$CYGPATH_W"; then 3403 if (cygpath --version) >/dev/null 2>/dev/null; then 3404 CYGPATH_W='cygpath -w' 3405 else 3406 CYGPATH_W=echo 3407 fi 3408fi 3409 3410 3411# Define the identity of the package. 3412 PACKAGE='libntlm' 3413 VERSION='1.6' 3414 3415 3416cat >>confdefs.h <<_ACEOF 3417#define PACKAGE "$PACKAGE" 3418_ACEOF 3419 3420 3421cat >>confdefs.h <<_ACEOF 3422#define VERSION "$VERSION" 3423_ACEOF 3424 3425# Some tools Automake needs. 3426 3427ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3428 3429 3430AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3431 3432 3433AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3434 3435 3436AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3437 3438 3439MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3440 3441# For better backward compatibility. To be removed once Automake 1.9.x 3442# dies out for good. For more background, see: 3443# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3444# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3445mkdir_p='$(MKDIR_P)' 3446 3447# We need awk for the "check" target (and possibly the TAP driver). The 3448# system "awk" is bad on some platforms. 3449# Always define AMTAR for backward compatibility. Yes, it's still used 3450# in the wild :-( We should find a proper way to deprecate it ... 3451AMTAR='$${TAR-tar}' 3452 3453 3454# We'll loop over all known methods to create a tar archive until one works. 3455_am_tools='gnutar pax cpio none' 3456 3457am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3458 3459 3460 3461 3462 3463 3464# POSIX will say in a future version that running "rm -f" with no argument 3465# is OK; and we want to be able to make that assumption in our Makefile 3466# recipes. So use an aggressive probe to check that the usage we want is 3467# actually supported "in the wild" to an acceptable degree. 3468# See automake bug#10828. 3469# To make any issue more visible, cause the running configure to be aborted 3470# by default if the 'rm' program in use doesn't match our expectations; the 3471# user can still override this though. 3472if rm -f && rm -fr && rm -rf; then : OK; else 3473 cat >&2 <<'END' 3474Oops! 3475 3476Your 'rm' program seems unable to run without file operands specified 3477on the command line, even when the '-f' option is present. This is contrary 3478to the behaviour of most rm programs out there, and not conforming with 3479the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3480 3481Please tell bug-automake@gnu.org about your system, including the value 3482of your $PATH and any error possibly output before this message. This 3483can help us improve future automake versions. 3484 3485END 3486 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3487 echo 'Configuration will proceed anyway, since you have set the' >&2 3488 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3489 echo >&2 3490 else 3491 cat >&2 <<'END' 3492Aborting the configuration process, to ensure you take notice of the issue. 3493 3494You can download and install GNU coreutils to get an 'rm' implementation 3495that behaves properly: <https://www.gnu.org/software/coreutils/>. 3496 3497If you want to complete the configuration process using your problematic 3498'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3499to "yes", and re-run configure. 3500 3501END 3502 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3503 fi 3504fi 3505 3506ac_config_headers="$ac_config_headers config.h" 3507 3508 3509 3510# Checks for programs. 3511ac_ext=c 3512ac_cpp='$CPP $CPPFLAGS' 3513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3515ac_compiler_gnu=$ac_cv_c_compiler_gnu 3516if test -n "$ac_tool_prefix"; then 3517 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3518set dummy ${ac_tool_prefix}gcc; ac_word=$2 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3520$as_echo_n "checking for $ac_word... " >&6; } 3521if ${ac_cv_prog_CC+:} false; then : 3522 $as_echo_n "(cached) " >&6 3523else 3524 if test -n "$CC"; then 3525 ac_cv_prog_CC="$CC" # Let the user override the test. 3526else 3527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3528for as_dir in $PATH 3529do 3530 IFS=$as_save_IFS 3531 test -z "$as_dir" && as_dir=. 3532 for ac_exec_ext in '' $ac_executable_extensions; do 3533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3534 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3536 break 2 3537 fi 3538done 3539 done 3540IFS=$as_save_IFS 3541 3542fi 3543fi 3544CC=$ac_cv_prog_CC 3545if test -n "$CC"; then 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3547$as_echo "$CC" >&6; } 3548else 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3550$as_echo "no" >&6; } 3551fi 3552 3553 3554fi 3555if test -z "$ac_cv_prog_CC"; then 3556 ac_ct_CC=$CC 3557 # Extract the first word of "gcc", so it can be a program name with args. 3558set dummy gcc; ac_word=$2 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3560$as_echo_n "checking for $ac_word... " >&6; } 3561if ${ac_cv_prog_ac_ct_CC+:} false; then : 3562 $as_echo_n "(cached) " >&6 3563else 3564 if test -n "$ac_ct_CC"; then 3565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3566else 3567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3568for as_dir in $PATH 3569do 3570 IFS=$as_save_IFS 3571 test -z "$as_dir" && as_dir=. 3572 for ac_exec_ext in '' $ac_executable_extensions; do 3573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3574 ac_cv_prog_ac_ct_CC="gcc" 3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3576 break 2 3577 fi 3578done 3579 done 3580IFS=$as_save_IFS 3581 3582fi 3583fi 3584ac_ct_CC=$ac_cv_prog_ac_ct_CC 3585if test -n "$ac_ct_CC"; then 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3587$as_echo "$ac_ct_CC" >&6; } 3588else 3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3590$as_echo "no" >&6; } 3591fi 3592 3593 if test "x$ac_ct_CC" = x; then 3594 CC="" 3595 else 3596 case $cross_compiling:$ac_tool_warned in 3597yes:) 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3600ac_tool_warned=yes ;; 3601esac 3602 CC=$ac_ct_CC 3603 fi 3604else 3605 CC="$ac_cv_prog_CC" 3606fi 3607 3608if test -z "$CC"; then 3609 if test -n "$ac_tool_prefix"; then 3610 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3611set dummy ${ac_tool_prefix}cc; ac_word=$2 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3613$as_echo_n "checking for $ac_word... " >&6; } 3614if ${ac_cv_prog_CC+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 if test -n "$CC"; then 3618 ac_cv_prog_CC="$CC" # Let the user override the test. 3619else 3620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3621for as_dir in $PATH 3622do 3623 IFS=$as_save_IFS 3624 test -z "$as_dir" && as_dir=. 3625 for ac_exec_ext in '' $ac_executable_extensions; do 3626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3627 ac_cv_prog_CC="${ac_tool_prefix}cc" 3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3629 break 2 3630 fi 3631done 3632 done 3633IFS=$as_save_IFS 3634 3635fi 3636fi 3637CC=$ac_cv_prog_CC 3638if test -n "$CC"; then 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3640$as_echo "$CC" >&6; } 3641else 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3643$as_echo "no" >&6; } 3644fi 3645 3646 3647 fi 3648fi 3649if test -z "$CC"; then 3650 # Extract the first word of "cc", so it can be a program name with args. 3651set dummy cc; ac_word=$2 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3653$as_echo_n "checking for $ac_word... " >&6; } 3654if ${ac_cv_prog_CC+:} false; then : 3655 $as_echo_n "(cached) " >&6 3656else 3657 if test -n "$CC"; then 3658 ac_cv_prog_CC="$CC" # Let the user override the test. 3659else 3660 ac_prog_rejected=no 3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3662for as_dir in $PATH 3663do 3664 IFS=$as_save_IFS 3665 test -z "$as_dir" && as_dir=. 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3669 ac_prog_rejected=yes 3670 continue 3671 fi 3672 ac_cv_prog_CC="cc" 3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3674 break 2 3675 fi 3676done 3677 done 3678IFS=$as_save_IFS 3679 3680if test $ac_prog_rejected = yes; then 3681 # We found a bogon in the path, so make sure we never use it. 3682 set dummy $ac_cv_prog_CC 3683 shift 3684 if test $# != 0; then 3685 # We chose a different compiler from the bogus one. 3686 # However, it has the same basename, so the bogon will be chosen 3687 # first if we set CC to just the basename; use the full file name. 3688 shift 3689 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3690 fi 3691fi 3692fi 3693fi 3694CC=$ac_cv_prog_CC 3695if test -n "$CC"; then 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3697$as_echo "$CC" >&6; } 3698else 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3700$as_echo "no" >&6; } 3701fi 3702 3703 3704fi 3705if test -z "$CC"; then 3706 if test -n "$ac_tool_prefix"; then 3707 for ac_prog in cl.exe 3708 do 3709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3710set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3712$as_echo_n "checking for $ac_word... " >&6; } 3713if ${ac_cv_prog_CC+:} false; then : 3714 $as_echo_n "(cached) " >&6 3715else 3716 if test -n "$CC"; then 3717 ac_cv_prog_CC="$CC" # Let the user override the test. 3718else 3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3720for as_dir in $PATH 3721do 3722 IFS=$as_save_IFS 3723 test -z "$as_dir" && as_dir=. 3724 for ac_exec_ext in '' $ac_executable_extensions; do 3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3726 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3728 break 2 3729 fi 3730done 3731 done 3732IFS=$as_save_IFS 3733 3734fi 3735fi 3736CC=$ac_cv_prog_CC 3737if test -n "$CC"; then 3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3739$as_echo "$CC" >&6; } 3740else 3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3742$as_echo "no" >&6; } 3743fi 3744 3745 3746 test -n "$CC" && break 3747 done 3748fi 3749if test -z "$CC"; then 3750 ac_ct_CC=$CC 3751 for ac_prog in cl.exe 3752do 3753 # Extract the first word of "$ac_prog", so it can be a program name with args. 3754set dummy $ac_prog; ac_word=$2 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3756$as_echo_n "checking for $ac_word... " >&6; } 3757if ${ac_cv_prog_ac_ct_CC+:} false; then : 3758 $as_echo_n "(cached) " >&6 3759else 3760 if test -n "$ac_ct_CC"; then 3761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3762else 3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3764for as_dir in $PATH 3765do 3766 IFS=$as_save_IFS 3767 test -z "$as_dir" && as_dir=. 3768 for ac_exec_ext in '' $ac_executable_extensions; do 3769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3770 ac_cv_prog_ac_ct_CC="$ac_prog" 3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3772 break 2 3773 fi 3774done 3775 done 3776IFS=$as_save_IFS 3777 3778fi 3779fi 3780ac_ct_CC=$ac_cv_prog_ac_ct_CC 3781if test -n "$ac_ct_CC"; then 3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3783$as_echo "$ac_ct_CC" >&6; } 3784else 3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3786$as_echo "no" >&6; } 3787fi 3788 3789 3790 test -n "$ac_ct_CC" && break 3791done 3792 3793 if test "x$ac_ct_CC" = x; then 3794 CC="" 3795 else 3796 case $cross_compiling:$ac_tool_warned in 3797yes:) 3798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3800ac_tool_warned=yes ;; 3801esac 3802 CC=$ac_ct_CC 3803 fi 3804fi 3805 3806fi 3807 3808 3809test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3810$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3811as_fn_error $? "no acceptable C compiler found in \$PATH 3812See \`config.log' for more details" "$LINENO" 5; } 3813 3814# Provide some information about the compiler. 3815$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3816set X $ac_compile 3817ac_compiler=$2 3818for ac_option in --version -v -V -qversion; do 3819 { { ac_try="$ac_compiler $ac_option >&5" 3820case "(($ac_try" in 3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3822 *) ac_try_echo=$ac_try;; 3823esac 3824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3825$as_echo "$ac_try_echo"; } >&5 3826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3827 ac_status=$? 3828 if test -s conftest.err; then 3829 sed '10a\ 3830... rest of stderr output deleted ... 3831 10q' conftest.err >conftest.er1 3832 cat conftest.er1 >&5 3833 fi 3834 rm -f conftest.er1 conftest.err 3835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3836 test $ac_status = 0; } 3837done 3838 3839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841 3842int 3843main () 3844{ 3845 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850ac_clean_files_save=$ac_clean_files 3851ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3852# Try to create an executable without -o first, disregard a.out. 3853# It will help us diagnose broken compilers, and finding out an intuition 3854# of exeext. 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3856$as_echo_n "checking whether the C compiler works... " >&6; } 3857ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3858 3859# The possible output files: 3860ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3861 3862ac_rmfiles= 3863for ac_file in $ac_files 3864do 3865 case $ac_file in 3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3867 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3868 esac 3869done 3870rm -f $ac_rmfiles 3871 3872if { { ac_try="$ac_link_default" 3873case "(($ac_try" in 3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3875 *) ac_try_echo=$ac_try;; 3876esac 3877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3878$as_echo "$ac_try_echo"; } >&5 3879 (eval "$ac_link_default") 2>&5 3880 ac_status=$? 3881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3882 test $ac_status = 0; }; then : 3883 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3884# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3885# in a Makefile. We should not override ac_cv_exeext if it was cached, 3886# so that the user can short-circuit this test for compilers unknown to 3887# Autoconf. 3888for ac_file in $ac_files '' 3889do 3890 test -f "$ac_file" || continue 3891 case $ac_file in 3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3893 ;; 3894 [ab].out ) 3895 # We found the default executable, but exeext='' is most 3896 # certainly right. 3897 break;; 3898 *.* ) 3899 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3900 then :; else 3901 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3902 fi 3903 # We set ac_cv_exeext here because the later test for it is not 3904 # safe: cross compilers may not add the suffix if given an `-o' 3905 # argument, so we may need to know it at that point already. 3906 # Even if this section looks crufty: it has the advantage of 3907 # actually working. 3908 break;; 3909 * ) 3910 break;; 3911 esac 3912done 3913test "$ac_cv_exeext" = no && ac_cv_exeext= 3914 3915else 3916 ac_file='' 3917fi 3918if test -z "$ac_file"; then : 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3920$as_echo "no" >&6; } 3921$as_echo "$as_me: failed program was:" >&5 3922sed 's/^/| /' conftest.$ac_ext >&5 3923 3924{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3926as_fn_error 77 "C compiler cannot create executables 3927See \`config.log' for more details" "$LINENO" 5; } 3928else 3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3930$as_echo "yes" >&6; } 3931fi 3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3933$as_echo_n "checking for C compiler default output file name... " >&6; } 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3935$as_echo "$ac_file" >&6; } 3936ac_exeext=$ac_cv_exeext 3937 3938rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3939ac_clean_files=$ac_clean_files_save 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3941$as_echo_n "checking for suffix of executables... " >&6; } 3942if { { ac_try="$ac_link" 3943case "(($ac_try" in 3944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3945 *) ac_try_echo=$ac_try;; 3946esac 3947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3948$as_echo "$ac_try_echo"; } >&5 3949 (eval "$ac_link") 2>&5 3950 ac_status=$? 3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3952 test $ac_status = 0; }; then : 3953 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3954# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3955# work properly (i.e., refer to `conftest.exe'), while it won't with 3956# `rm'. 3957for ac_file in conftest.exe conftest conftest.*; do 3958 test -f "$ac_file" || continue 3959 case $ac_file in 3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3961 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3962 break;; 3963 * ) break;; 3964 esac 3965done 3966else 3967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3969as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3970See \`config.log' for more details" "$LINENO" 5; } 3971fi 3972rm -f conftest conftest$ac_cv_exeext 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3974$as_echo "$ac_cv_exeext" >&6; } 3975 3976rm -f conftest.$ac_ext 3977EXEEXT=$ac_cv_exeext 3978ac_exeext=$EXEEXT 3979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3980/* end confdefs.h. */ 3981#include <stdio.h> 3982int 3983main () 3984{ 3985FILE *f = fopen ("conftest.out", "w"); 3986 return ferror (f) || fclose (f) != 0; 3987 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992ac_clean_files="$ac_clean_files conftest.out" 3993# Check that the compiler produces executables we can run. If not, either 3994# the compiler is broken, or we cross compile. 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3996$as_echo_n "checking whether we are cross compiling... " >&6; } 3997if test "$cross_compiling" != yes; then 3998 { { ac_try="$ac_link" 3999case "(($ac_try" in 4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4001 *) ac_try_echo=$ac_try;; 4002esac 4003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4004$as_echo "$ac_try_echo"; } >&5 4005 (eval "$ac_link") 2>&5 4006 ac_status=$? 4007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4008 test $ac_status = 0; } 4009 if { ac_try='./conftest$ac_cv_exeext' 4010 { { case "(($ac_try" in 4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4012 *) ac_try_echo=$ac_try;; 4013esac 4014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4015$as_echo "$ac_try_echo"; } >&5 4016 (eval "$ac_try") 2>&5 4017 ac_status=$? 4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4019 test $ac_status = 0; }; }; then 4020 cross_compiling=no 4021 else 4022 if test "$cross_compiling" = maybe; then 4023 cross_compiling=yes 4024 else 4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4027as_fn_error $? "cannot run C compiled programs. 4028If you meant to cross compile, use \`--host'. 4029See \`config.log' for more details" "$LINENO" 5; } 4030 fi 4031 fi 4032fi 4033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4034$as_echo "$cross_compiling" >&6; } 4035 4036rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4037ac_clean_files=$ac_clean_files_save 4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4039$as_echo_n "checking for suffix of object files... " >&6; } 4040if ${ac_cv_objext+:} false; then : 4041 $as_echo_n "(cached) " >&6 4042else 4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045 4046int 4047main () 4048{ 4049 4050 ; 4051 return 0; 4052} 4053_ACEOF 4054rm -f conftest.o conftest.obj 4055if { { ac_try="$ac_compile" 4056case "(($ac_try" in 4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4058 *) ac_try_echo=$ac_try;; 4059esac 4060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4061$as_echo "$ac_try_echo"; } >&5 4062 (eval "$ac_compile") 2>&5 4063 ac_status=$? 4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4065 test $ac_status = 0; }; then : 4066 for ac_file in conftest.o conftest.obj conftest.*; do 4067 test -f "$ac_file" || continue; 4068 case $ac_file in 4069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4070 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4071 break;; 4072 esac 4073done 4074else 4075 $as_echo "$as_me: failed program was:" >&5 4076sed 's/^/| /' conftest.$ac_ext >&5 4077 4078{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4080as_fn_error $? "cannot compute suffix of object files: cannot compile 4081See \`config.log' for more details" "$LINENO" 5; } 4082fi 4083rm -f conftest.$ac_cv_objext conftest.$ac_ext 4084fi 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4086$as_echo "$ac_cv_objext" >&6; } 4087OBJEXT=$ac_cv_objext 4088ac_objext=$OBJEXT 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4090$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4091if ${ac_cv_c_compiler_gnu+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093else 4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4095/* end confdefs.h. */ 4096 4097int 4098main () 4099{ 4100#ifndef __GNUC__ 4101 choke me 4102#endif 4103 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108if ac_fn_c_try_compile "$LINENO"; then : 4109 ac_compiler_gnu=yes 4110else 4111 ac_compiler_gnu=no 4112fi 4113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4114ac_cv_c_compiler_gnu=$ac_compiler_gnu 4115 4116fi 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4118$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4119if test $ac_compiler_gnu = yes; then 4120 GCC=yes 4121else 4122 GCC= 4123fi 4124ac_test_CFLAGS=${CFLAGS+set} 4125ac_save_CFLAGS=$CFLAGS 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4127$as_echo_n "checking whether $CC accepts -g... " >&6; } 4128if ${ac_cv_prog_cc_g+:} false; then : 4129 $as_echo_n "(cached) " >&6 4130else 4131 ac_save_c_werror_flag=$ac_c_werror_flag 4132 ac_c_werror_flag=yes 4133 ac_cv_prog_cc_g=no 4134 CFLAGS="-g" 4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4136/* end confdefs.h. */ 4137 4138int 4139main () 4140{ 4141 4142 ; 4143 return 0; 4144} 4145_ACEOF 4146if ac_fn_c_try_compile "$LINENO"; then : 4147 ac_cv_prog_cc_g=yes 4148else 4149 CFLAGS="" 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152 4153int 4154main () 4155{ 4156 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161if ac_fn_c_try_compile "$LINENO"; then : 4162 4163else 4164 ac_c_werror_flag=$ac_save_c_werror_flag 4165 CFLAGS="-g" 4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4167/* end confdefs.h. */ 4168 4169int 4170main () 4171{ 4172 4173 ; 4174 return 0; 4175} 4176_ACEOF 4177if ac_fn_c_try_compile "$LINENO"; then : 4178 ac_cv_prog_cc_g=yes 4179fi 4180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4181fi 4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4183fi 4184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4185 ac_c_werror_flag=$ac_save_c_werror_flag 4186fi 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4188$as_echo "$ac_cv_prog_cc_g" >&6; } 4189if test "$ac_test_CFLAGS" = set; then 4190 CFLAGS=$ac_save_CFLAGS 4191elif test $ac_cv_prog_cc_g = yes; then 4192 if test "$GCC" = yes; then 4193 CFLAGS="-g -O2" 4194 else 4195 CFLAGS="-g" 4196 fi 4197else 4198 if test "$GCC" = yes; then 4199 CFLAGS="-O2" 4200 else 4201 CFLAGS= 4202 fi 4203fi 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4205$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4206if ${ac_cv_prog_cc_c89+:} false; then : 4207 $as_echo_n "(cached) " >&6 4208else 4209 ac_cv_prog_cc_c89=no 4210ac_save_CC=$CC 4211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212/* end confdefs.h. */ 4213#include <stdarg.h> 4214#include <stdio.h> 4215struct stat; 4216/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4217struct buf { int x; }; 4218FILE * (*rcsopen) (struct buf *, struct stat *, int); 4219static char *e (p, i) 4220 char **p; 4221 int i; 4222{ 4223 return p[i]; 4224} 4225static char *f (char * (*g) (char **, int), char **p, ...) 4226{ 4227 char *s; 4228 va_list v; 4229 va_start (v,p); 4230 s = g (p, va_arg (v,int)); 4231 va_end (v); 4232 return s; 4233} 4234 4235/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4236 function prototypes and stuff, but not '\xHH' hex character constants. 4237 These don't provoke an error unfortunately, instead are silently treated 4238 as 'x'. The following induces an error, until -std is added to get 4239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4240 array size at least. It's necessary to write '\x00'==0 to get something 4241 that's true only with -std. */ 4242int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4243 4244/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4245 inside strings and character constants. */ 4246#define FOO(x) 'x' 4247int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4248 4249int test (int i, double x); 4250struct s1 {int (*f) (int a);}; 4251struct s2 {int (*f) (double a);}; 4252int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4253int argc; 4254char **argv; 4255int 4256main () 4257{ 4258return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4259 ; 4260 return 0; 4261} 4262_ACEOF 4263for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4264 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4265do 4266 CC="$ac_save_CC $ac_arg" 4267 if ac_fn_c_try_compile "$LINENO"; then : 4268 ac_cv_prog_cc_c89=$ac_arg 4269fi 4270rm -f core conftest.err conftest.$ac_objext 4271 test "x$ac_cv_prog_cc_c89" != "xno" && break 4272done 4273rm -f conftest.$ac_ext 4274CC=$ac_save_CC 4275 4276fi 4277# AC_CACHE_VAL 4278case "x$ac_cv_prog_cc_c89" in 4279 x) 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4281$as_echo "none needed" >&6; } ;; 4282 xno) 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4284$as_echo "unsupported" >&6; } ;; 4285 *) 4286 CC="$CC $ac_cv_prog_cc_c89" 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4288$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4289esac 4290if test "x$ac_cv_prog_cc_c89" != xno; then : 4291 4292fi 4293 4294ac_ext=c 4295ac_cpp='$CPP $CPPFLAGS' 4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4298ac_compiler_gnu=$ac_cv_c_compiler_gnu 4299 4300ac_ext=c 4301ac_cpp='$CPP $CPPFLAGS' 4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4304ac_compiler_gnu=$ac_cv_c_compiler_gnu 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4306$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4307if ${am_cv_prog_cc_c_o+:} false; then : 4308 $as_echo_n "(cached) " >&6 4309else 4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4311/* end confdefs.h. */ 4312 4313int 4314main () 4315{ 4316 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321 # Make sure it works both with $CC and with simple cc. 4322 # Following AC_PROG_CC_C_O, we do the test twice because some 4323 # compilers refuse to overwrite an existing .o file with -o, 4324 # though they will create one. 4325 am_cv_prog_cc_c_o=yes 4326 for am_i in 1 2; do 4327 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4328 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4329 ac_status=$? 4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4331 (exit $ac_status); } \ 4332 && test -f conftest2.$ac_objext; then 4333 : OK 4334 else 4335 am_cv_prog_cc_c_o=no 4336 break 4337 fi 4338 done 4339 rm -f core conftest* 4340 unset am_i 4341fi 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4343$as_echo "$am_cv_prog_cc_c_o" >&6; } 4344if test "$am_cv_prog_cc_c_o" != yes; then 4345 # Losing compiler, so override with the script. 4346 # FIXME: It is wrong to rewrite CC. 4347 # But if we don't then we get into trouble of one sort or another. 4348 # A longer-term fix would be to have automake use am__CC in this case, 4349 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4350 CC="$am_aux_dir/compile $CC" 4351fi 4352ac_ext=c 4353ac_cpp='$CPP $CPPFLAGS' 4354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4356ac_compiler_gnu=$ac_cv_c_compiler_gnu 4357 4358 4359 4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 4361$as_echo_n "checking whether the compiler is clang... " >&6; } 4362if ${gl_cv_compiler_clang+:} false; then : 4363 $as_echo_n "(cached) " >&6 4364else 4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4366/* end confdefs.h. */ 4367 4368 #ifdef __clang__ 4369 barfbarf 4370 #endif 4371 4372int 4373main () 4374{ 4375 4376 ; 4377 return 0; 4378} 4379 4380_ACEOF 4381if ac_fn_c_try_compile "$LINENO"; then : 4382 gl_cv_compiler_clang=no 4383else 4384 gl_cv_compiler_clang=yes 4385fi 4386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4387 4388fi 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 4390$as_echo "$gl_cv_compiler_clang" >&6; } 4391 4392 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 4394$as_echo_n "checking for compiler option needed when checking for declarations... " >&6; } 4395if ${gl_cv_compiler_check_decl_option+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test $gl_cv_compiler_clang = yes; then 4399 save_ac_compile="$ac_compile" 4400 ac_compile="$ac_compile -Werror=implicit-function-declaration" 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402/* end confdefs.h. */ 4403 4404int 4405main () 4406{ 4407 4408 ; 4409 return 0; 4410} 4411_ACEOF 4412if ac_fn_c_try_compile "$LINENO"; then : 4413 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' 4414else 4415 gl_cv_compiler_check_decl_option=none 4416fi 4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4418 ac_compile="$save_ac_compile" 4419 else 4420 gl_cv_compiler_check_decl_option=none 4421 fi 4422 4423fi 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 4425$as_echo "$gl_cv_compiler_check_decl_option" >&6; } 4426 if test "x$gl_cv_compiler_check_decl_option" != xnone; then 4427 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" 4428 else 4429 ac_compile_for_check_decl="$ac_compile" 4430 fi 4431 4432DEPDIR="${am__leading_dot}deps" 4433 4434ac_config_commands="$ac_config_commands depfiles" 4435 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4437$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4438cat > confinc.mk << 'END' 4439am__doit: 4440 @echo this is the am__doit target >confinc.out 4441.PHONY: am__doit 4442END 4443am__include="#" 4444am__quote= 4445# BSD make does it like this. 4446echo '.include "confinc.mk" # ignored' > confmf.BSD 4447# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4448echo 'include confinc.mk # ignored' > confmf.GNU 4449_am_result=no 4450for s in GNU BSD; do 4451 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4452 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); } 4456 case $?:`cat confinc.out 2>/dev/null` in #( 4457 '0:this is the am__doit target') : 4458 case $s in #( 4459 BSD) : 4460 am__include='.include' am__quote='"' ;; #( 4461 *) : 4462 am__include='include' am__quote='' ;; 4463esac ;; #( 4464 *) : 4465 ;; 4466esac 4467 if test "$am__include" != "#"; then 4468 _am_result="yes ($s style)" 4469 break 4470 fi 4471done 4472rm -f confinc.* confmf.* 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4474$as_echo "${_am_result}" >&6; } 4475 4476# Check whether --enable-dependency-tracking was given. 4477if test "${enable_dependency_tracking+set}" = set; then : 4478 enableval=$enable_dependency_tracking; 4479fi 4480 4481if test "x$enable_dependency_tracking" != xno; then 4482 am_depcomp="$ac_aux_dir/depcomp" 4483 AMDEPBACKSLASH='\' 4484 am__nodep='_no' 4485fi 4486 if test "x$enable_dependency_tracking" != xno; then 4487 AMDEP_TRUE= 4488 AMDEP_FALSE='#' 4489else 4490 AMDEP_TRUE='#' 4491 AMDEP_FALSE= 4492fi 4493 4494 4495 4496depcc="$CC" am_compiler_list= 4497 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4499$as_echo_n "checking dependency style of $depcc... " >&6; } 4500if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502else 4503 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4504 # We make a subdir and do the tests there. Otherwise we can end up 4505 # making bogus files that we don't know about and never remove. For 4506 # instance it was reported that on HP-UX the gcc test will end up 4507 # making a dummy file named 'D' -- because '-MD' means "put the output 4508 # in D". 4509 rm -rf conftest.dir 4510 mkdir conftest.dir 4511 # Copy depcomp to subdir because otherwise we won't find it if we're 4512 # using a relative directory. 4513 cp "$am_depcomp" conftest.dir 4514 cd conftest.dir 4515 # We will build objects and dependencies in a subdirectory because 4516 # it helps to detect inapplicable dependency modes. For instance 4517 # both Tru64's cc and ICC support -MD to output dependencies as a 4518 # side effect of compilation, but ICC will put the dependencies in 4519 # the current directory while Tru64 will put them in the object 4520 # directory. 4521 mkdir sub 4522 4523 am_cv_CC_dependencies_compiler_type=none 4524 if test "$am_compiler_list" = ""; then 4525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4526 fi 4527 am__universal=false 4528 case " $depcc " in #( 4529 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4530 esac 4531 4532 for depmode in $am_compiler_list; do 4533 # Setup a source with many dependencies, because some compilers 4534 # like to wrap large dependency lists on column 80 (with \), and 4535 # we should not choose a depcomp mode which is confused by this. 4536 # 4537 # We need to recreate these files for each test, as the compiler may 4538 # overwrite some of them when testing with obscure command lines. 4539 # This happens at least with the AIX C compiler. 4540 : > sub/conftest.c 4541 for i in 1 2 3 4 5 6; do 4542 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4543 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4544 # Solaris 10 /bin/sh. 4545 echo '/* dummy */' > sub/conftst$i.h 4546 done 4547 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4548 4549 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4550 # mode. It turns out that the SunPro C++ compiler does not properly 4551 # handle '-M -o', and we need to detect this. Also, some Intel 4552 # versions had trouble with output in subdirs. 4553 am__obj=sub/conftest.${OBJEXT-o} 4554 am__minus_obj="-o $am__obj" 4555 case $depmode in 4556 gcc) 4557 # This depmode causes a compiler race in universal mode. 4558 test "$am__universal" = false || continue 4559 ;; 4560 nosideeffect) 4561 # After this tag, mechanisms are not by side-effect, so they'll 4562 # only be used when explicitly requested. 4563 if test "x$enable_dependency_tracking" = xyes; then 4564 continue 4565 else 4566 break 4567 fi 4568 ;; 4569 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4570 # This compiler won't grok '-c -o', but also, the minuso test has 4571 # not run yet. These depmodes are late enough in the game, and 4572 # so weak that their functioning should not be impacted. 4573 am__obj=conftest.${OBJEXT-o} 4574 am__minus_obj= 4575 ;; 4576 none) break ;; 4577 esac 4578 if depmode=$depmode \ 4579 source=sub/conftest.c object=$am__obj \ 4580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4581 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4582 >/dev/null 2>conftest.err && 4583 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4585 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4587 # icc doesn't choke on unknown options, it will just issue warnings 4588 # or remarks (even with -Werror). So we grep stderr for any message 4589 # that says an option was ignored or not supported. 4590 # When given -MP, icc 7.0 and 7.1 complain thusly: 4591 # icc: Command line warning: ignoring option '-M'; no argument required 4592 # The diagnosis changed in icc 8.0: 4593 # icc: Command line remark: option '-MP' not supported 4594 if (grep 'ignoring option' conftest.err || 4595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4596 am_cv_CC_dependencies_compiler_type=$depmode 4597 break 4598 fi 4599 fi 4600 done 4601 4602 cd .. 4603 rm -rf conftest.dir 4604else 4605 am_cv_CC_dependencies_compiler_type=none 4606fi 4607 4608fi 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4610$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4611CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4612 4613 if 4614 test "x$enable_dependency_tracking" != xno \ 4615 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4616 am__fastdepCC_TRUE= 4617 am__fastdepCC_FALSE='#' 4618else 4619 am__fastdepCC_TRUE='#' 4620 am__fastdepCC_FALSE= 4621fi 4622 4623 4624 4625ac_ext=c 4626ac_cpp='$CPP $CPPFLAGS' 4627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4629ac_compiler_gnu=$ac_cv_c_compiler_gnu 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4631$as_echo_n "checking how to run the C preprocessor... " >&6; } 4632# On Suns, sometimes $CPP names a directory. 4633if test -n "$CPP" && test -d "$CPP"; then 4634 CPP= 4635fi 4636if test -z "$CPP"; then 4637 if ${ac_cv_prog_CPP+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 # Double quotes because CPP needs to be expanded 4641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4642 do 4643 ac_preproc_ok=false 4644for ac_c_preproc_warn_flag in '' yes 4645do 4646 # Use a header file that comes with gcc, so configuring glibc 4647 # with a fresh cross-compiler works. 4648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4649 # <limits.h> exists even on freestanding compilers. 4650 # On the NeXT, cc -E runs the code through the compiler's parser, 4651 # not just through cpp. "Syntax error" is here to catch this case. 4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4653/* end confdefs.h. */ 4654#ifdef __STDC__ 4655# include <limits.h> 4656#else 4657# include <assert.h> 4658#endif 4659 Syntax error 4660_ACEOF 4661if ac_fn_c_try_cpp "$LINENO"; then : 4662 4663else 4664 # Broken: fails on valid input. 4665continue 4666fi 4667rm -f conftest.err conftest.i conftest.$ac_ext 4668 4669 # OK, works on sane cases. Now check whether nonexistent headers 4670 # can be detected and how. 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672/* end confdefs.h. */ 4673#include <ac_nonexistent.h> 4674_ACEOF 4675if ac_fn_c_try_cpp "$LINENO"; then : 4676 # Broken: success on invalid input. 4677continue 4678else 4679 # Passes both tests. 4680ac_preproc_ok=: 4681break 4682fi 4683rm -f conftest.err conftest.i conftest.$ac_ext 4684 4685done 4686# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4687rm -f conftest.i conftest.err conftest.$ac_ext 4688if $ac_preproc_ok; then : 4689 break 4690fi 4691 4692 done 4693 ac_cv_prog_CPP=$CPP 4694 4695fi 4696 CPP=$ac_cv_prog_CPP 4697else 4698 ac_cv_prog_CPP=$CPP 4699fi 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4701$as_echo "$CPP" >&6; } 4702ac_preproc_ok=false 4703for ac_c_preproc_warn_flag in '' yes 4704do 4705 # Use a header file that comes with gcc, so configuring glibc 4706 # with a fresh cross-compiler works. 4707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4708 # <limits.h> exists even on freestanding compilers. 4709 # On the NeXT, cc -E runs the code through the compiler's parser, 4710 # not just through cpp. "Syntax error" is here to catch this case. 4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4712/* end confdefs.h. */ 4713#ifdef __STDC__ 4714# include <limits.h> 4715#else 4716# include <assert.h> 4717#endif 4718 Syntax error 4719_ACEOF 4720if ac_fn_c_try_cpp "$LINENO"; then : 4721 4722else 4723 # Broken: fails on valid input. 4724continue 4725fi 4726rm -f conftest.err conftest.i conftest.$ac_ext 4727 4728 # OK, works on sane cases. Now check whether nonexistent headers 4729 # can be detected and how. 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4731/* end confdefs.h. */ 4732#include <ac_nonexistent.h> 4733_ACEOF 4734if ac_fn_c_try_cpp "$LINENO"; then : 4735 # Broken: success on invalid input. 4736continue 4737else 4738 # Passes both tests. 4739ac_preproc_ok=: 4740break 4741fi 4742rm -f conftest.err conftest.i conftest.$ac_ext 4743 4744done 4745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4746rm -f conftest.i conftest.err conftest.$ac_ext 4747if $ac_preproc_ok; then : 4748 4749else 4750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4752as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4753See \`config.log' for more details" "$LINENO" 5; } 4754fi 4755 4756ac_ext=c 4757ac_cpp='$CPP $CPPFLAGS' 4758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4760ac_compiler_gnu=$ac_cv_c_compiler_gnu 4761 4762 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4764$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4765if ${ac_cv_path_GREP+:} false; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 if test -z "$GREP"; then 4769 ac_path_GREP_found=false 4770 # Loop through the user's path and test for each of PROGNAME-LIST 4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4773do 4774 IFS=$as_save_IFS 4775 test -z "$as_dir" && as_dir=. 4776 for ac_prog in grep ggrep; do 4777 for ac_exec_ext in '' $ac_executable_extensions; do 4778 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4779 as_fn_executable_p "$ac_path_GREP" || continue 4780# Check for GNU ac_path_GREP and select it if it is found. 4781 # Check for GNU $ac_path_GREP 4782case `"$ac_path_GREP" --version 2>&1` in 4783*GNU*) 4784 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4785*) 4786 ac_count=0 4787 $as_echo_n 0123456789 >"conftest.in" 4788 while : 4789 do 4790 cat "conftest.in" "conftest.in" >"conftest.tmp" 4791 mv "conftest.tmp" "conftest.in" 4792 cp "conftest.in" "conftest.nl" 4793 $as_echo 'GREP' >> "conftest.nl" 4794 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4796 as_fn_arith $ac_count + 1 && ac_count=$as_val 4797 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4798 # Best one so far, save it but keep looking for a better one 4799 ac_cv_path_GREP="$ac_path_GREP" 4800 ac_path_GREP_max=$ac_count 4801 fi 4802 # 10*(2^10) chars as input seems more than enough 4803 test $ac_count -gt 10 && break 4804 done 4805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4806esac 4807 4808 $ac_path_GREP_found && break 3 4809 done 4810 done 4811 done 4812IFS=$as_save_IFS 4813 if test -z "$ac_cv_path_GREP"; then 4814 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4815 fi 4816else 4817 ac_cv_path_GREP=$GREP 4818fi 4819 4820fi 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4822$as_echo "$ac_cv_path_GREP" >&6; } 4823 GREP="$ac_cv_path_GREP" 4824 4825 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4827$as_echo_n "checking for egrep... " >&6; } 4828if ${ac_cv_path_EGREP+:} false; then : 4829 $as_echo_n "(cached) " >&6 4830else 4831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4832 then ac_cv_path_EGREP="$GREP -E" 4833 else 4834 if test -z "$EGREP"; then 4835 ac_path_EGREP_found=false 4836 # Loop through the user's path and test for each of PROGNAME-LIST 4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4839do 4840 IFS=$as_save_IFS 4841 test -z "$as_dir" && as_dir=. 4842 for ac_prog in egrep; do 4843 for ac_exec_ext in '' $ac_executable_extensions; do 4844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4845 as_fn_executable_p "$ac_path_EGREP" || continue 4846# Check for GNU ac_path_EGREP and select it if it is found. 4847 # Check for GNU $ac_path_EGREP 4848case `"$ac_path_EGREP" --version 2>&1` in 4849*GNU*) 4850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4851*) 4852 ac_count=0 4853 $as_echo_n 0123456789 >"conftest.in" 4854 while : 4855 do 4856 cat "conftest.in" "conftest.in" >"conftest.tmp" 4857 mv "conftest.tmp" "conftest.in" 4858 cp "conftest.in" "conftest.nl" 4859 $as_echo 'EGREP' >> "conftest.nl" 4860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4862 as_fn_arith $ac_count + 1 && ac_count=$as_val 4863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4864 # Best one so far, save it but keep looking for a better one 4865 ac_cv_path_EGREP="$ac_path_EGREP" 4866 ac_path_EGREP_max=$ac_count 4867 fi 4868 # 10*(2^10) chars as input seems more than enough 4869 test $ac_count -gt 10 && break 4870 done 4871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4872esac 4873 4874 $ac_path_EGREP_found && break 3 4875 done 4876 done 4877 done 4878IFS=$as_save_IFS 4879 if test -z "$ac_cv_path_EGREP"; then 4880 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4881 fi 4882else 4883 ac_cv_path_EGREP=$EGREP 4884fi 4885 4886 fi 4887fi 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4889$as_echo "$ac_cv_path_EGREP" >&6; } 4890 EGREP="$ac_cv_path_EGREP" 4891 4892 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4894$as_echo_n "checking for ANSI C header files... " >&6; } 4895if ${ac_cv_header_stdc+:} false; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4899/* end confdefs.h. */ 4900#include <stdlib.h> 4901#include <stdarg.h> 4902#include <string.h> 4903#include <float.h> 4904 4905int 4906main () 4907{ 4908 4909 ; 4910 return 0; 4911} 4912_ACEOF 4913if ac_fn_c_try_compile "$LINENO"; then : 4914 ac_cv_header_stdc=yes 4915else 4916 ac_cv_header_stdc=no 4917fi 4918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4919 4920if test $ac_cv_header_stdc = yes; then 4921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924#include <string.h> 4925 4926_ACEOF 4927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4928 $EGREP "memchr" >/dev/null 2>&1; then : 4929 4930else 4931 ac_cv_header_stdc=no 4932fi 4933rm -f conftest* 4934 4935fi 4936 4937if test $ac_cv_header_stdc = yes; then 4938 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4940/* end confdefs.h. */ 4941#include <stdlib.h> 4942 4943_ACEOF 4944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4945 $EGREP "free" >/dev/null 2>&1; then : 4946 4947else 4948 ac_cv_header_stdc=no 4949fi 4950rm -f conftest* 4951 4952fi 4953 4954if test $ac_cv_header_stdc = yes; then 4955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4956 if test "$cross_compiling" = yes; then : 4957 : 4958else 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960/* end confdefs.h. */ 4961#include <ctype.h> 4962#include <stdlib.h> 4963#if ((' ' & 0x0FF) == 0x020) 4964# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4965# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4966#else 4967# define ISLOWER(c) \ 4968 (('a' <= (c) && (c) <= 'i') \ 4969 || ('j' <= (c) && (c) <= 'r') \ 4970 || ('s' <= (c) && (c) <= 'z')) 4971# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4972#endif 4973 4974#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4975int 4976main () 4977{ 4978 int i; 4979 for (i = 0; i < 256; i++) 4980 if (XOR (islower (i), ISLOWER (i)) 4981 || toupper (i) != TOUPPER (i)) 4982 return 2; 4983 return 0; 4984} 4985_ACEOF 4986if ac_fn_c_try_run "$LINENO"; then : 4987 4988else 4989 ac_cv_header_stdc=no 4990fi 4991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4992 conftest.$ac_objext conftest.beam conftest.$ac_ext 4993fi 4994 4995fi 4996fi 4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4998$as_echo "$ac_cv_header_stdc" >&6; } 4999if test $ac_cv_header_stdc = yes; then 5000 5001$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5002 5003fi 5004 5005# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5006for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5007 inttypes.h stdint.h unistd.h 5008do : 5009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5010ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5011" 5012if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5013 cat >>confdefs.h <<_ACEOF 5014#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5015_ACEOF 5016 5017fi 5018 5019done 5020 5021 5022 5023 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5024if test "x$ac_cv_header_minix_config_h" = xyes; then : 5025 MINIX=yes 5026else 5027 MINIX= 5028fi 5029 5030 5031 if test "$MINIX" = yes; then 5032 5033$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5034 5035 5036$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5037 5038 5039$as_echo "#define _MINIX 1" >>confdefs.h 5040 5041 5042$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 5043 5044 fi 5045 5046 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5048$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5049if ${ac_cv_safe_to_define___extensions__+:} false; then : 5050 $as_echo_n "(cached) " >&6 5051else 5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053/* end confdefs.h. */ 5054 5055# define __EXTENSIONS__ 1 5056 $ac_includes_default 5057int 5058main () 5059{ 5060 5061 ; 5062 return 0; 5063} 5064_ACEOF 5065if ac_fn_c_try_compile "$LINENO"; then : 5066 ac_cv_safe_to_define___extensions__=yes 5067else 5068 ac_cv_safe_to_define___extensions__=no 5069fi 5070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5071fi 5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5073$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5074 test $ac_cv_safe_to_define___extensions__ = yes && 5075 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5076 5077 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5078 5079 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5080 5081 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5082 5083 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 5084 5085 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h 5086 5087 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5088 5089 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5090 5091 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5092 5093 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5094 5095 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5096 5097 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5098 5099 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5100 5101 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5102 5103 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5104 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5106$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5107if ${ac_cv_should_define__xopen_source+:} false; then : 5108 $as_echo_n "(cached) " >&6 5109else 5110 ac_cv_should_define__xopen_source=no 5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5112/* end confdefs.h. */ 5113 5114 #include <wchar.h> 5115 mbstate_t x; 5116int 5117main () 5118{ 5119 5120 ; 5121 return 0; 5122} 5123_ACEOF 5124if ac_fn_c_try_compile "$LINENO"; then : 5125 5126else 5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128/* end confdefs.h. */ 5129 5130 #define _XOPEN_SOURCE 500 5131 #include <wchar.h> 5132 mbstate_t x; 5133int 5134main () 5135{ 5136 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141if ac_fn_c_try_compile "$LINENO"; then : 5142 ac_cv_should_define__xopen_source=yes 5143fi 5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5145fi 5146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5147fi 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5149$as_echo "$ac_cv_should_define__xopen_source" >&6; } 5150 test $ac_cv_should_define__xopen_source = yes && 5151 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 5152 5153 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 5166$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } 5167if ${gl_cv_c_amsterdam_compiler+:} false; then : 5168 $as_echo_n "(cached) " >&6 5169else 5170 5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5172/* end confdefs.h. */ 5173 5174#ifdef __ACK__ 5175Amsterdam 5176#endif 5177 5178_ACEOF 5179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5180 $EGREP "Amsterdam" >/dev/null 2>&1; then : 5181 gl_cv_c_amsterdam_compiler=yes 5182else 5183 gl_cv_c_amsterdam_compiler=no 5184fi 5185rm -f conftest* 5186 5187 5188fi 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 5190$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } 5191 5192 if test $gl_cv_c_amsterdam_compiler = yes; then 5193 if test -z "$AR"; then 5194 AR='cc -c.a' 5195 fi 5196 if test -z "$ARFLAGS"; then 5197 ARFLAGS='-o' 5198 fi 5199 else 5200 if test -n "$ac_tool_prefix"; then 5201 for ac_prog in ar lib "link -lib" 5202 do 5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5204set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5206$as_echo_n "checking for $ac_word... " >&6; } 5207if ${ac_cv_prog_AR+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 if test -n "$AR"; then 5211 ac_cv_prog_AR="$AR" # Let the user override the test. 5212else 5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5214for as_dir in $PATH 5215do 5216 IFS=$as_save_IFS 5217 test -z "$as_dir" && as_dir=. 5218 for ac_exec_ext in '' $ac_executable_extensions; do 5219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5220 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5222 break 2 5223 fi 5224done 5225 done 5226IFS=$as_save_IFS 5227 5228fi 5229fi 5230AR=$ac_cv_prog_AR 5231if test -n "$AR"; then 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5233$as_echo "$AR" >&6; } 5234else 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5236$as_echo "no" >&6; } 5237fi 5238 5239 5240 test -n "$AR" && break 5241 done 5242fi 5243if test -z "$AR"; then 5244 ac_ct_AR=$AR 5245 for ac_prog in ar lib "link -lib" 5246do 5247 # Extract the first word of "$ac_prog", so it can be a program name with args. 5248set dummy $ac_prog; ac_word=$2 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5250$as_echo_n "checking for $ac_word... " >&6; } 5251if ${ac_cv_prog_ac_ct_AR+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 if test -n "$ac_ct_AR"; then 5255 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5256else 5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258for as_dir in $PATH 5259do 5260 IFS=$as_save_IFS 5261 test -z "$as_dir" && as_dir=. 5262 for ac_exec_ext in '' $ac_executable_extensions; do 5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5264 ac_cv_prog_ac_ct_AR="$ac_prog" 5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5266 break 2 5267 fi 5268done 5269 done 5270IFS=$as_save_IFS 5271 5272fi 5273fi 5274ac_ct_AR=$ac_cv_prog_ac_ct_AR 5275if test -n "$ac_ct_AR"; then 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5277$as_echo "$ac_ct_AR" >&6; } 5278else 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280$as_echo "no" >&6; } 5281fi 5282 5283 5284 test -n "$ac_ct_AR" && break 5285done 5286 5287 if test "x$ac_ct_AR" = x; then 5288 AR="false" 5289 else 5290 case $cross_compiling:$ac_tool_warned in 5291yes:) 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5294ac_tool_warned=yes ;; 5295esac 5296 AR=$ac_ct_AR 5297 fi 5298fi 5299 5300: ${AR=ar} 5301 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5303$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5304if ${am_cv_ar_interface+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 ac_ext=c 5308ac_cpp='$CPP $CPPFLAGS' 5309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5311ac_compiler_gnu=$ac_cv_c_compiler_gnu 5312 5313 am_cv_ar_interface=ar 5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5315/* end confdefs.h. */ 5316int some_variable = 0; 5317_ACEOF 5318if ac_fn_c_try_compile "$LINENO"; then : 5319 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5321 (eval $am_ar_try) 2>&5 5322 ac_status=$? 5323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5324 test $ac_status = 0; } 5325 if test "$ac_status" -eq 0; then 5326 am_cv_ar_interface=ar 5327 else 5328 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5330 (eval $am_ar_try) 2>&5 5331 ac_status=$? 5332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5333 test $ac_status = 0; } 5334 if test "$ac_status" -eq 0; then 5335 am_cv_ar_interface=lib 5336 else 5337 am_cv_ar_interface=unknown 5338 fi 5339 fi 5340 rm -f conftest.lib libconftest.a 5341 5342fi 5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5344 ac_ext=c 5345ac_cpp='$CPP $CPPFLAGS' 5346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5348ac_compiler_gnu=$ac_cv_c_compiler_gnu 5349 5350fi 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5352$as_echo "$am_cv_ar_interface" >&6; } 5353 5354case $am_cv_ar_interface in 5355ar) 5356 ;; 5357lib) 5358 # Microsoft lib, so override with the ar-lib wrapper script. 5359 # FIXME: It is wrong to rewrite AR. 5360 # But if we don't then we get into trouble of one sort or another. 5361 # A longer-term fix would be to have automake use am__AR in this case, 5362 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5363 # similar. 5364 AR="$am_aux_dir/ar-lib $AR" 5365 ;; 5366unknown) 5367 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5368 ;; 5369esac 5370 5371 fi 5372 5373 if test -n "$ac_tool_prefix"; then 5374 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5375set dummy ${ac_tool_prefix}ar; ac_word=$2 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5377$as_echo_n "checking for $ac_word... " >&6; } 5378if ${ac_cv_prog_AR+:} false; then : 5379 $as_echo_n "(cached) " >&6 5380else 5381 if test -n "$AR"; then 5382 ac_cv_prog_AR="$AR" # Let the user override the test. 5383else 5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5385for as_dir in $PATH 5386do 5387 IFS=$as_save_IFS 5388 test -z "$as_dir" && as_dir=. 5389 for ac_exec_ext in '' $ac_executable_extensions; do 5390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5391 ac_cv_prog_AR="${ac_tool_prefix}ar" 5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5393 break 2 5394 fi 5395done 5396 done 5397IFS=$as_save_IFS 5398 5399fi 5400fi 5401AR=$ac_cv_prog_AR 5402if test -n "$AR"; then 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5404$as_echo "$AR" >&6; } 5405else 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5407$as_echo "no" >&6; } 5408fi 5409 5410 5411fi 5412if test -z "$ac_cv_prog_AR"; then 5413 ac_ct_AR=$AR 5414 # Extract the first word of "ar", so it can be a program name with args. 5415set dummy ar; ac_word=$2 5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5417$as_echo_n "checking for $ac_word... " >&6; } 5418if ${ac_cv_prog_ac_ct_AR+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420else 5421 if test -n "$ac_ct_AR"; then 5422 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5423else 5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5425for as_dir in $PATH 5426do 5427 IFS=$as_save_IFS 5428 test -z "$as_dir" && as_dir=. 5429 for ac_exec_ext in '' $ac_executable_extensions; do 5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5431 ac_cv_prog_ac_ct_AR="ar" 5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5433 break 2 5434 fi 5435done 5436 done 5437IFS=$as_save_IFS 5438 5439fi 5440fi 5441ac_ct_AR=$ac_cv_prog_ac_ct_AR 5442if test -n "$ac_ct_AR"; then 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5444$as_echo "$ac_ct_AR" >&6; } 5445else 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5447$as_echo "no" >&6; } 5448fi 5449 5450 if test "x$ac_ct_AR" = x; then 5451 AR="ar" 5452 else 5453 case $cross_compiling:$ac_tool_warned in 5454yes:) 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5457ac_tool_warned=yes ;; 5458esac 5459 AR=$ac_ct_AR 5460 fi 5461else 5462 AR="$ac_cv_prog_AR" 5463fi 5464 5465 if test -z "$ARFLAGS"; then 5466 ARFLAGS='cr' 5467 fi 5468 5469 5470 5471 if test -z "$RANLIB"; then 5472 if test $gl_cv_c_amsterdam_compiler = yes; then 5473 RANLIB=':' 5474 else 5475 if test -n "$ac_tool_prefix"; then 5476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5477set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5479$as_echo_n "checking for $ac_word... " >&6; } 5480if ${ac_cv_prog_RANLIB+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 if test -n "$RANLIB"; then 5484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5485else 5486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5487for as_dir in $PATH 5488do 5489 IFS=$as_save_IFS 5490 test -z "$as_dir" && as_dir=. 5491 for ac_exec_ext in '' $ac_executable_extensions; do 5492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5493 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5495 break 2 5496 fi 5497done 5498 done 5499IFS=$as_save_IFS 5500 5501fi 5502fi 5503RANLIB=$ac_cv_prog_RANLIB 5504if test -n "$RANLIB"; then 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5506$as_echo "$RANLIB" >&6; } 5507else 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5509$as_echo "no" >&6; } 5510fi 5511 5512 5513fi 5514if test -z "$ac_cv_prog_RANLIB"; then 5515 ac_ct_RANLIB=$RANLIB 5516 # Extract the first word of "ranlib", so it can be a program name with args. 5517set dummy ranlib; ac_word=$2 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5519$as_echo_n "checking for $ac_word... " >&6; } 5520if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 if test -n "$ac_ct_RANLIB"; then 5524 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5525else 5526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5527for as_dir in $PATH 5528do 5529 IFS=$as_save_IFS 5530 test -z "$as_dir" && as_dir=. 5531 for ac_exec_ext in '' $ac_executable_extensions; do 5532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5533 ac_cv_prog_ac_ct_RANLIB="ranlib" 5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5535 break 2 5536 fi 5537done 5538 done 5539IFS=$as_save_IFS 5540 5541fi 5542fi 5543ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5544if test -n "$ac_ct_RANLIB"; then 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5546$as_echo "$ac_ct_RANLIB" >&6; } 5547else 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5549$as_echo "no" >&6; } 5550fi 5551 5552 if test "x$ac_ct_RANLIB" = x; then 5553 RANLIB=":" 5554 else 5555 case $cross_compiling:$ac_tool_warned in 5556yes:) 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5559ac_tool_warned=yes ;; 5560esac 5561 RANLIB=$ac_ct_RANLIB 5562 fi 5563else 5564 RANLIB="$ac_cv_prog_RANLIB" 5565fi 5566 5567 fi 5568 fi 5569 5570 5571# Make sure we can run config.sub. 5572$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5573 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5574 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5576$as_echo_n "checking build system type... " >&6; } 5577if ${ac_cv_build+:} false; then : 5578 $as_echo_n "(cached) " >&6 5579else 5580 ac_build_alias=$build_alias 5581test "x$ac_build_alias" = x && 5582 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5583test "x$ac_build_alias" = x && 5584 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5585ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5586 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5587 5588fi 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5590$as_echo "$ac_cv_build" >&6; } 5591case $ac_cv_build in 5592*-*-*) ;; 5593*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5594esac 5595build=$ac_cv_build 5596ac_save_IFS=$IFS; IFS='-' 5597set x $ac_cv_build 5598shift 5599build_cpu=$1 5600build_vendor=$2 5601shift; shift 5602# Remember, the first character of IFS is used to create $*, 5603# except with old shells: 5604build_os=$* 5605IFS=$ac_save_IFS 5606case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5607 5608 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5610$as_echo_n "checking host system type... " >&6; } 5611if ${ac_cv_host+:} false; then : 5612 $as_echo_n "(cached) " >&6 5613else 5614 if test "x$host_alias" = x; then 5615 ac_cv_host=$ac_cv_build 5616else 5617 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5618 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5619fi 5620 5621fi 5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5623$as_echo "$ac_cv_host" >&6; } 5624case $ac_cv_host in 5625*-*-*) ;; 5626*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5627esac 5628host=$ac_cv_host 5629ac_save_IFS=$IFS; IFS='-' 5630set x $ac_cv_host 5631shift 5632host_cpu=$1 5633host_vendor=$2 5634shift; shift 5635# Remember, the first character of IFS is used to create $*, 5636# except with old shells: 5637host_os=$* 5638IFS=$ac_save_IFS 5639case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5640 5641 5642 5643 5644 # Pre-early section. 5645 5646 5647 5648 # Code from module absolute-header: 5649 # Code from module autobuild: 5650 5651 5652 5653 5654 if test -z "$AB_PACKAGE"; then 5655 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE} 5656 fi 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5 5658$as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;} 5659 5660 if test -z "$AB_VERSION"; then 5661 AB_VERSION=${PACKAGE_VERSION:-$VERSION} 5662 fi 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5 5664$as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;} 5665 5666 hostname=`hostname` 5667 if test "$hostname"; then 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5 5669$as_echo "$as_me: autobuild hostname... $hostname" >&6;} 5670 fi 5671 5672 5673 5674 date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ` 5675 if test "$?" != 0; then 5676 date=`date` 5677 fi 5678 if test "$date"; then 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5 5680$as_echo "$as_me: autobuild timestamp... $date" >&6;} 5681 fi 5682 5683 # Code from module byteswap: 5684 # Code from module byteswap-tests: 5685 # Code from module check-version: 5686 # Code from module crypto/des: 5687 # Code from module crypto/des-tests: 5688 # Code from module crypto/md4: 5689 # Code from module crypto/md4-tests: 5690 # Code from module extensions: 5691 # Code from module extern-inline: 5692 # Code from module gnumakefile: 5693 # Code from module include_next: 5694 # Code from module inline: 5695 # Code from module intprops: 5696 # Code from module intprops-tests: 5697 # Code from module inttypes: 5698 # Code from module inttypes-incomplete: 5699 # Code from module inttypes-tests: 5700 # Code from module libc-config: 5701 # Code from module limits-h: 5702 # Code from module limits-h-tests: 5703 # Code from module maintainer-makefile: 5704 # Code from module manywarnings: 5705 # Code from module multiarch: 5706 # Code from module snippet/arg-nonnull: 5707 # Code from module snippet/c++defs: 5708 # Code from module snippet/warn-on-use: 5709 # Code from module ssize_t: 5710 # Code from module stdalign: 5711 # Code from module stdalign-tests: 5712 # Code from module stdbool: 5713 # Code from module stdbool-tests: 5714 # Code from module stddef: 5715 # Code from module stddef-tests: 5716 # Code from module stdint: 5717 # Code from module stdint-tests: 5718 # Code from module string: 5719 # Code from module string-tests: 5720 # Code from module strverscmp: 5721 # Code from module strverscmp-tests: 5722 # Code from module sys_types: 5723 # Code from module sys_types-tests: 5724 # Code from module test-framework-sh: 5725 # Code from module test-framework-sh-tests: 5726 # Code from module unistd: 5727 # Code from module unistd-tests: 5728 # Code from module update-copyright: 5729 # Code from module update-copyright-tests: 5730 # Code from module useless-if-before-free: 5731 # Code from module valgrind-tests: 5732 # Code from module vc-list-files: 5733 # Code from module vc-list-files-tests: 5734 # Code from module verify: 5735 # Code from module verify-tests: 5736 # Code from module warnings: 5737 # Code from module wchar: 5738 # Code from module wchar-tests: 5739 5740enable_win32_dll=yes 5741 5742case $host in 5743*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5744 if test -n "$ac_tool_prefix"; then 5745 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5746set dummy ${ac_tool_prefix}as; ac_word=$2 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5748$as_echo_n "checking for $ac_word... " >&6; } 5749if ${ac_cv_prog_AS+:} false; then : 5750 $as_echo_n "(cached) " >&6 5751else 5752 if test -n "$AS"; then 5753 ac_cv_prog_AS="$AS" # Let the user override the test. 5754else 5755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5756for as_dir in $PATH 5757do 5758 IFS=$as_save_IFS 5759 test -z "$as_dir" && as_dir=. 5760 for ac_exec_ext in '' $ac_executable_extensions; do 5761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5762 ac_cv_prog_AS="${ac_tool_prefix}as" 5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5764 break 2 5765 fi 5766done 5767 done 5768IFS=$as_save_IFS 5769 5770fi 5771fi 5772AS=$ac_cv_prog_AS 5773if test -n "$AS"; then 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5775$as_echo "$AS" >&6; } 5776else 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778$as_echo "no" >&6; } 5779fi 5780 5781 5782fi 5783if test -z "$ac_cv_prog_AS"; then 5784 ac_ct_AS=$AS 5785 # Extract the first word of "as", so it can be a program name with args. 5786set dummy as; ac_word=$2 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5788$as_echo_n "checking for $ac_word... " >&6; } 5789if ${ac_cv_prog_ac_ct_AS+:} false; then : 5790 $as_echo_n "(cached) " >&6 5791else 5792 if test -n "$ac_ct_AS"; then 5793 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5794else 5795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5796for as_dir in $PATH 5797do 5798 IFS=$as_save_IFS 5799 test -z "$as_dir" && as_dir=. 5800 for ac_exec_ext in '' $ac_executable_extensions; do 5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5802 ac_cv_prog_ac_ct_AS="as" 5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5804 break 2 5805 fi 5806done 5807 done 5808IFS=$as_save_IFS 5809 5810fi 5811fi 5812ac_ct_AS=$ac_cv_prog_ac_ct_AS 5813if test -n "$ac_ct_AS"; then 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5815$as_echo "$ac_ct_AS" >&6; } 5816else 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5818$as_echo "no" >&6; } 5819fi 5820 5821 if test "x$ac_ct_AS" = x; then 5822 AS="false" 5823 else 5824 case $cross_compiling:$ac_tool_warned in 5825yes:) 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5828ac_tool_warned=yes ;; 5829esac 5830 AS=$ac_ct_AS 5831 fi 5832else 5833 AS="$ac_cv_prog_AS" 5834fi 5835 5836 if test -n "$ac_tool_prefix"; then 5837 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5838set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5840$as_echo_n "checking for $ac_word... " >&6; } 5841if ${ac_cv_prog_DLLTOOL+:} false; then : 5842 $as_echo_n "(cached) " >&6 5843else 5844 if test -n "$DLLTOOL"; then 5845 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5846else 5847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5848for as_dir in $PATH 5849do 5850 IFS=$as_save_IFS 5851 test -z "$as_dir" && as_dir=. 5852 for ac_exec_ext in '' $ac_executable_extensions; do 5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5854 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5856 break 2 5857 fi 5858done 5859 done 5860IFS=$as_save_IFS 5861 5862fi 5863fi 5864DLLTOOL=$ac_cv_prog_DLLTOOL 5865if test -n "$DLLTOOL"; then 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5867$as_echo "$DLLTOOL" >&6; } 5868else 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5870$as_echo "no" >&6; } 5871fi 5872 5873 5874fi 5875if test -z "$ac_cv_prog_DLLTOOL"; then 5876 ac_ct_DLLTOOL=$DLLTOOL 5877 # Extract the first word of "dlltool", so it can be a program name with args. 5878set dummy dlltool; ac_word=$2 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5880$as_echo_n "checking for $ac_word... " >&6; } 5881if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5882 $as_echo_n "(cached) " >&6 5883else 5884 if test -n "$ac_ct_DLLTOOL"; then 5885 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5886else 5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5888for as_dir in $PATH 5889do 5890 IFS=$as_save_IFS 5891 test -z "$as_dir" && as_dir=. 5892 for ac_exec_ext in '' $ac_executable_extensions; do 5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5894 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5896 break 2 5897 fi 5898done 5899 done 5900IFS=$as_save_IFS 5901 5902fi 5903fi 5904ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5905if test -n "$ac_ct_DLLTOOL"; then 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5907$as_echo "$ac_ct_DLLTOOL" >&6; } 5908else 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5910$as_echo "no" >&6; } 5911fi 5912 5913 if test "x$ac_ct_DLLTOOL" = x; then 5914 DLLTOOL="false" 5915 else 5916 case $cross_compiling:$ac_tool_warned in 5917yes:) 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5920ac_tool_warned=yes ;; 5921esac 5922 DLLTOOL=$ac_ct_DLLTOOL 5923 fi 5924else 5925 DLLTOOL="$ac_cv_prog_DLLTOOL" 5926fi 5927 5928 if test -n "$ac_tool_prefix"; then 5929 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5930set dummy ${ac_tool_prefix}objdump; ac_word=$2 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932$as_echo_n "checking for $ac_word... " >&6; } 5933if ${ac_cv_prog_OBJDUMP+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -n "$OBJDUMP"; then 5937 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5938else 5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5946 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950done 5951 done 5952IFS=$as_save_IFS 5953 5954fi 5955fi 5956OBJDUMP=$ac_cv_prog_OBJDUMP 5957if test -n "$OBJDUMP"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5959$as_echo "$OBJDUMP" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962$as_echo "no" >&6; } 5963fi 5964 5965 5966fi 5967if test -z "$ac_cv_prog_OBJDUMP"; then 5968 ac_ct_OBJDUMP=$OBJDUMP 5969 # Extract the first word of "objdump", so it can be a program name with args. 5970set dummy objdump; ac_word=$2 5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5972$as_echo_n "checking for $ac_word... " >&6; } 5973if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5974 $as_echo_n "(cached) " >&6 5975else 5976 if test -n "$ac_ct_OBJDUMP"; then 5977 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5978else 5979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5980for as_dir in $PATH 5981do 5982 IFS=$as_save_IFS 5983 test -z "$as_dir" && as_dir=. 5984 for ac_exec_ext in '' $ac_executable_extensions; do 5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5986 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5988 break 2 5989 fi 5990done 5991 done 5992IFS=$as_save_IFS 5993 5994fi 5995fi 5996ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5997if test -n "$ac_ct_OBJDUMP"; then 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5999$as_echo "$ac_ct_OBJDUMP" >&6; } 6000else 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6002$as_echo "no" >&6; } 6003fi 6004 6005 if test "x$ac_ct_OBJDUMP" = x; then 6006 OBJDUMP="false" 6007 else 6008 case $cross_compiling:$ac_tool_warned in 6009yes:) 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6012ac_tool_warned=yes ;; 6013esac 6014 OBJDUMP=$ac_ct_OBJDUMP 6015 fi 6016else 6017 OBJDUMP="$ac_cv_prog_OBJDUMP" 6018fi 6019 6020 ;; 6021esac 6022 6023test -z "$AS" && AS=as 6024 6025 6026 6027 6028 6029test -z "$DLLTOOL" && DLLTOOL=dlltool 6030 6031 6032 6033 6034 6035test -z "$OBJDUMP" && OBJDUMP=objdump 6036 6037 6038 6039 6040 6041 6042 6043if test -n "$ac_tool_prefix"; then 6044 for ac_prog in ar lib "link -lib" 6045 do 6046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6047set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6049$as_echo_n "checking for $ac_word... " >&6; } 6050if ${ac_cv_prog_AR+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 if test -n "$AR"; then 6054 ac_cv_prog_AR="$AR" # Let the user override the test. 6055else 6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6057for as_dir in $PATH 6058do 6059 IFS=$as_save_IFS 6060 test -z "$as_dir" && as_dir=. 6061 for ac_exec_ext in '' $ac_executable_extensions; do 6062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6063 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6065 break 2 6066 fi 6067done 6068 done 6069IFS=$as_save_IFS 6070 6071fi 6072fi 6073AR=$ac_cv_prog_AR 6074if test -n "$AR"; then 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6076$as_echo "$AR" >&6; } 6077else 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6079$as_echo "no" >&6; } 6080fi 6081 6082 6083 test -n "$AR" && break 6084 done 6085fi 6086if test -z "$AR"; then 6087 ac_ct_AR=$AR 6088 for ac_prog in ar lib "link -lib" 6089do 6090 # Extract the first word of "$ac_prog", so it can be a program name with args. 6091set dummy $ac_prog; ac_word=$2 6092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6093$as_echo_n "checking for $ac_word... " >&6; } 6094if ${ac_cv_prog_ac_ct_AR+:} false; then : 6095 $as_echo_n "(cached) " >&6 6096else 6097 if test -n "$ac_ct_AR"; then 6098 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6099else 6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6101for as_dir in $PATH 6102do 6103 IFS=$as_save_IFS 6104 test -z "$as_dir" && as_dir=. 6105 for ac_exec_ext in '' $ac_executable_extensions; do 6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6107 ac_cv_prog_ac_ct_AR="$ac_prog" 6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6109 break 2 6110 fi 6111done 6112 done 6113IFS=$as_save_IFS 6114 6115fi 6116fi 6117ac_ct_AR=$ac_cv_prog_ac_ct_AR 6118if test -n "$ac_ct_AR"; then 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6120$as_echo "$ac_ct_AR" >&6; } 6121else 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6123$as_echo "no" >&6; } 6124fi 6125 6126 6127 test -n "$ac_ct_AR" && break 6128done 6129 6130 if test "x$ac_ct_AR" = x; then 6131 AR="false" 6132 else 6133 case $cross_compiling:$ac_tool_warned in 6134yes:) 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6137ac_tool_warned=yes ;; 6138esac 6139 AR=$ac_ct_AR 6140 fi 6141fi 6142 6143: ${AR=ar} 6144 6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6146$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6147if ${am_cv_ar_interface+:} false; then : 6148 $as_echo_n "(cached) " >&6 6149else 6150 ac_ext=c 6151ac_cpp='$CPP $CPPFLAGS' 6152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6154ac_compiler_gnu=$ac_cv_c_compiler_gnu 6155 6156 am_cv_ar_interface=ar 6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6158/* end confdefs.h. */ 6159int some_variable = 0; 6160_ACEOF 6161if ac_fn_c_try_compile "$LINENO"; then : 6162 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6164 (eval $am_ar_try) 2>&5 6165 ac_status=$? 6166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6167 test $ac_status = 0; } 6168 if test "$ac_status" -eq 0; then 6169 am_cv_ar_interface=ar 6170 else 6171 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6173 (eval $am_ar_try) 2>&5 6174 ac_status=$? 6175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6176 test $ac_status = 0; } 6177 if test "$ac_status" -eq 0; then 6178 am_cv_ar_interface=lib 6179 else 6180 am_cv_ar_interface=unknown 6181 fi 6182 fi 6183 rm -f conftest.lib libconftest.a 6184 6185fi 6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6187 ac_ext=c 6188ac_cpp='$CPP $CPPFLAGS' 6189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6191ac_compiler_gnu=$ac_cv_c_compiler_gnu 6192 6193fi 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6195$as_echo "$am_cv_ar_interface" >&6; } 6196 6197case $am_cv_ar_interface in 6198ar) 6199 ;; 6200lib) 6201 # Microsoft lib, so override with the ar-lib wrapper script. 6202 # FIXME: It is wrong to rewrite AR. 6203 # But if we don't then we get into trouble of one sort or another. 6204 # A longer-term fix would be to have automake use am__AR in this case, 6205 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6206 # similar. 6207 AR="$am_aux_dir/ar-lib $AR" 6208 ;; 6209unknown) 6210 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6211 ;; 6212esac 6213 6214case `pwd` in 6215 *\ * | *\ *) 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6217$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6218esac 6219 6220 6221 6222macro_version='2.4.6' 6223macro_revision='2.4.6' 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237ltmain=$ac_aux_dir/ltmain.sh 6238 6239# Backslashify metacharacters that are still active within 6240# double-quoted strings. 6241sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6242 6243# Same as above, but do not quote variable references. 6244double_quote_subst='s/\(["`\\]\)/\\\1/g' 6245 6246# Sed substitution to delay expansion of an escaped shell variable in a 6247# double_quote_subst'ed string. 6248delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6249 6250# Sed substitution to delay expansion of an escaped single quote. 6251delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6252 6253# Sed substitution to avoid accidental globbing in evaled expressions 6254no_glob_subst='s/\*/\\\*/g' 6255 6256ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6257ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6258ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6259 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6261$as_echo_n "checking how to print strings... " >&6; } 6262# Test print first, because it will be a builtin if present. 6263if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6264 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6265 ECHO='print -r --' 6266elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6267 ECHO='printf %s\n' 6268else 6269 # Use this function as a fallback that always works. 6270 func_fallback_echo () 6271 { 6272 eval 'cat <<_LTECHO_EOF 6273$1 6274_LTECHO_EOF' 6275 } 6276 ECHO='func_fallback_echo' 6277fi 6278 6279# func_echo_all arg... 6280# Invoke $ECHO with all args, space-separated. 6281func_echo_all () 6282{ 6283 $ECHO "" 6284} 6285 6286case $ECHO in 6287 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6288$as_echo "printf" >&6; } ;; 6289 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6290$as_echo "print -r" >&6; } ;; 6291 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6292$as_echo "cat" >&6; } ;; 6293esac 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6309$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6310if ${ac_cv_path_SED+:} false; then : 6311 $as_echo_n "(cached) " >&6 6312else 6313 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6314 for ac_i in 1 2 3 4 5 6 7; do 6315 ac_script="$ac_script$as_nl$ac_script" 6316 done 6317 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6318 { ac_script=; unset ac_script;} 6319 if test -z "$SED"; then 6320 ac_path_SED_found=false 6321 # Loop through the user's path and test for each of PROGNAME-LIST 6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6323for as_dir in $PATH 6324do 6325 IFS=$as_save_IFS 6326 test -z "$as_dir" && as_dir=. 6327 for ac_prog in sed gsed; do 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6330 as_fn_executable_p "$ac_path_SED" || continue 6331# Check for GNU ac_path_SED and select it if it is found. 6332 # Check for GNU $ac_path_SED 6333case `"$ac_path_SED" --version 2>&1` in 6334*GNU*) 6335 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6336*) 6337 ac_count=0 6338 $as_echo_n 0123456789 >"conftest.in" 6339 while : 6340 do 6341 cat "conftest.in" "conftest.in" >"conftest.tmp" 6342 mv "conftest.tmp" "conftest.in" 6343 cp "conftest.in" "conftest.nl" 6344 $as_echo '' >> "conftest.nl" 6345 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6347 as_fn_arith $ac_count + 1 && ac_count=$as_val 6348 if test $ac_count -gt ${ac_path_SED_max-0}; then 6349 # Best one so far, save it but keep looking for a better one 6350 ac_cv_path_SED="$ac_path_SED" 6351 ac_path_SED_max=$ac_count 6352 fi 6353 # 10*(2^10) chars as input seems more than enough 6354 test $ac_count -gt 10 && break 6355 done 6356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6357esac 6358 6359 $ac_path_SED_found && break 3 6360 done 6361 done 6362 done 6363IFS=$as_save_IFS 6364 if test -z "$ac_cv_path_SED"; then 6365 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6366 fi 6367else 6368 ac_cv_path_SED=$SED 6369fi 6370 6371fi 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6373$as_echo "$ac_cv_path_SED" >&6; } 6374 SED="$ac_cv_path_SED" 6375 rm -f conftest.sed 6376 6377test -z "$SED" && SED=sed 6378Xsed="$SED -e 1s/^X//" 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6391$as_echo_n "checking for fgrep... " >&6; } 6392if ${ac_cv_path_FGREP+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6396 then ac_cv_path_FGREP="$GREP -F" 6397 else 6398 if test -z "$FGREP"; then 6399 ac_path_FGREP_found=false 6400 # Loop through the user's path and test for each of PROGNAME-LIST 6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6403do 6404 IFS=$as_save_IFS 6405 test -z "$as_dir" && as_dir=. 6406 for ac_prog in fgrep; do 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6409 as_fn_executable_p "$ac_path_FGREP" || continue 6410# Check for GNU ac_path_FGREP and select it if it is found. 6411 # Check for GNU $ac_path_FGREP 6412case `"$ac_path_FGREP" --version 2>&1` in 6413*GNU*) 6414 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6415*) 6416 ac_count=0 6417 $as_echo_n 0123456789 >"conftest.in" 6418 while : 6419 do 6420 cat "conftest.in" "conftest.in" >"conftest.tmp" 6421 mv "conftest.tmp" "conftest.in" 6422 cp "conftest.in" "conftest.nl" 6423 $as_echo 'FGREP' >> "conftest.nl" 6424 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6426 as_fn_arith $ac_count + 1 && ac_count=$as_val 6427 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6428 # Best one so far, save it but keep looking for a better one 6429 ac_cv_path_FGREP="$ac_path_FGREP" 6430 ac_path_FGREP_max=$ac_count 6431 fi 6432 # 10*(2^10) chars as input seems more than enough 6433 test $ac_count -gt 10 && break 6434 done 6435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6436esac 6437 6438 $ac_path_FGREP_found && break 3 6439 done 6440 done 6441 done 6442IFS=$as_save_IFS 6443 if test -z "$ac_cv_path_FGREP"; then 6444 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6445 fi 6446else 6447 ac_cv_path_FGREP=$FGREP 6448fi 6449 6450 fi 6451fi 6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6453$as_echo "$ac_cv_path_FGREP" >&6; } 6454 FGREP="$ac_cv_path_FGREP" 6455 6456 6457test -z "$GREP" && GREP=grep 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477# Check whether --with-gnu-ld was given. 6478if test "${with_gnu_ld+set}" = set; then : 6479 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6480else 6481 with_gnu_ld=no 6482fi 6483 6484ac_prog=ld 6485if test yes = "$GCC"; then 6486 # Check if gcc -print-prog-name=ld gives a path. 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6488$as_echo_n "checking for ld used by $CC... " >&6; } 6489 case $host in 6490 *-*-mingw*) 6491 # gcc leaves a trailing carriage return, which upsets mingw 6492 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6493 *) 6494 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6495 esac 6496 case $ac_prog in 6497 # Accept absolute paths. 6498 [\\/]* | ?:[\\/]*) 6499 re_direlt='/[^/][^/]*/\.\./' 6500 # Canonicalize the pathname of ld 6501 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6502 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6503 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6504 done 6505 test -z "$LD" && LD=$ac_prog 6506 ;; 6507 "") 6508 # If it fails, then pretend we aren't using GCC. 6509 ac_prog=ld 6510 ;; 6511 *) 6512 # If it is relative, then search for the first ld in PATH. 6513 with_gnu_ld=unknown 6514 ;; 6515 esac 6516elif test yes = "$with_gnu_ld"; then 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6518$as_echo_n "checking for GNU ld... " >&6; } 6519else 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6521$as_echo_n "checking for non-GNU ld... " >&6; } 6522fi 6523if ${lt_cv_path_LD+:} false; then : 6524 $as_echo_n "(cached) " >&6 6525else 6526 if test -z "$LD"; then 6527 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6528 for ac_dir in $PATH; do 6529 IFS=$lt_save_ifs 6530 test -z "$ac_dir" && ac_dir=. 6531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6532 lt_cv_path_LD=$ac_dir/$ac_prog 6533 # Check to see if the program is GNU ld. I'd rather use --version, 6534 # but apparently some variants of GNU ld only accept -v. 6535 # Break only if it was the GNU/non-GNU ld that we prefer. 6536 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6537 *GNU* | *'with BFD'*) 6538 test no != "$with_gnu_ld" && break 6539 ;; 6540 *) 6541 test yes != "$with_gnu_ld" && break 6542 ;; 6543 esac 6544 fi 6545 done 6546 IFS=$lt_save_ifs 6547else 6548 lt_cv_path_LD=$LD # Let the user override the test with a path. 6549fi 6550fi 6551 6552LD=$lt_cv_path_LD 6553if test -n "$LD"; then 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6555$as_echo "$LD" >&6; } 6556else 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6558$as_echo "no" >&6; } 6559fi 6560test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6562$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6563if ${lt_cv_prog_gnu_ld+:} false; then : 6564 $as_echo_n "(cached) " >&6 6565else 6566 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6567case `$LD -v 2>&1 </dev/null` in 6568*GNU* | *'with BFD'*) 6569 lt_cv_prog_gnu_ld=yes 6570 ;; 6571*) 6572 lt_cv_prog_gnu_ld=no 6573 ;; 6574esac 6575fi 6576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6577$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6578with_gnu_ld=$lt_cv_prog_gnu_ld 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6589$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6590if ${lt_cv_path_NM+:} false; then : 6591 $as_echo_n "(cached) " >&6 6592else 6593 if test -n "$NM"; then 6594 # Let the user override the test. 6595 lt_cv_path_NM=$NM 6596else 6597 lt_nm_to_check=${ac_tool_prefix}nm 6598 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6599 lt_nm_to_check="$lt_nm_to_check nm" 6600 fi 6601 for lt_tmp_nm in $lt_nm_to_check; do 6602 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6603 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6604 IFS=$lt_save_ifs 6605 test -z "$ac_dir" && ac_dir=. 6606 tmp_nm=$ac_dir/$lt_tmp_nm 6607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6608 # Check to see if the nm accepts a BSD-compat flag. 6609 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6610 # nm: unknown option "B" ignored 6611 # Tru64's nm complains that /dev/null is an invalid object file 6612 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6613 case $build_os in 6614 mingw*) lt_bad_file=conftest.nm/nofile ;; 6615 *) lt_bad_file=/dev/null ;; 6616 esac 6617 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6618 *$lt_bad_file* | *'Invalid file or object type'*) 6619 lt_cv_path_NM="$tmp_nm -B" 6620 break 2 6621 ;; 6622 *) 6623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6624 */dev/null*) 6625 lt_cv_path_NM="$tmp_nm -p" 6626 break 2 6627 ;; 6628 *) 6629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6630 continue # so that we can try to find one that supports BSD flags 6631 ;; 6632 esac 6633 ;; 6634 esac 6635 fi 6636 done 6637 IFS=$lt_save_ifs 6638 done 6639 : ${lt_cv_path_NM=no} 6640fi 6641fi 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6643$as_echo "$lt_cv_path_NM" >&6; } 6644if test no != "$lt_cv_path_NM"; then 6645 NM=$lt_cv_path_NM 6646else 6647 # Didn't find any BSD compatible name lister, look for dumpbin. 6648 if test -n "$DUMPBIN"; then : 6649 # Let the user override the test. 6650 else 6651 if test -n "$ac_tool_prefix"; then 6652 for ac_prog in dumpbin "link -dump" 6653 do 6654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6655set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6657$as_echo_n "checking for $ac_word... " >&6; } 6658if ${ac_cv_prog_DUMPBIN+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660else 6661 if test -n "$DUMPBIN"; then 6662 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6663else 6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 for ac_exec_ext in '' $ac_executable_extensions; do 6670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6671 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6673 break 2 6674 fi 6675done 6676 done 6677IFS=$as_save_IFS 6678 6679fi 6680fi 6681DUMPBIN=$ac_cv_prog_DUMPBIN 6682if test -n "$DUMPBIN"; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6684$as_echo "$DUMPBIN" >&6; } 6685else 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6687$as_echo "no" >&6; } 6688fi 6689 6690 6691 test -n "$DUMPBIN" && break 6692 done 6693fi 6694if test -z "$DUMPBIN"; then 6695 ac_ct_DUMPBIN=$DUMPBIN 6696 for ac_prog in dumpbin "link -dump" 6697do 6698 # Extract the first word of "$ac_prog", so it can be a program name with args. 6699set dummy $ac_prog; ac_word=$2 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6701$as_echo_n "checking for $ac_word... " >&6; } 6702if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 if test -n "$ac_ct_DUMPBIN"; then 6706 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6707else 6708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6709for as_dir in $PATH 6710do 6711 IFS=$as_save_IFS 6712 test -z "$as_dir" && as_dir=. 6713 for ac_exec_ext in '' $ac_executable_extensions; do 6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6715 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6717 break 2 6718 fi 6719done 6720 done 6721IFS=$as_save_IFS 6722 6723fi 6724fi 6725ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6726if test -n "$ac_ct_DUMPBIN"; then 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6728$as_echo "$ac_ct_DUMPBIN" >&6; } 6729else 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6731$as_echo "no" >&6; } 6732fi 6733 6734 6735 test -n "$ac_ct_DUMPBIN" && break 6736done 6737 6738 if test "x$ac_ct_DUMPBIN" = x; then 6739 DUMPBIN=":" 6740 else 6741 case $cross_compiling:$ac_tool_warned in 6742yes:) 6743{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6745ac_tool_warned=yes ;; 6746esac 6747 DUMPBIN=$ac_ct_DUMPBIN 6748 fi 6749fi 6750 6751 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6752 *COFF*) 6753 DUMPBIN="$DUMPBIN -symbols -headers" 6754 ;; 6755 *) 6756 DUMPBIN=: 6757 ;; 6758 esac 6759 fi 6760 6761 if test : != "$DUMPBIN"; then 6762 NM=$DUMPBIN 6763 fi 6764fi 6765test -z "$NM" && NM=nm 6766 6767 6768 6769 6770 6771 6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6773$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6774if ${lt_cv_nm_interface+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 lt_cv_nm_interface="BSD nm" 6778 echo "int some_variable = 0;" > conftest.$ac_ext 6779 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6780 (eval "$ac_compile" 2>conftest.err) 6781 cat conftest.err >&5 6782 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6783 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6784 cat conftest.err >&5 6785 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6786 cat conftest.out >&5 6787 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6788 lt_cv_nm_interface="MS dumpbin" 6789 fi 6790 rm -f conftest* 6791fi 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6793$as_echo "$lt_cv_nm_interface" >&6; } 6794 6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6796$as_echo_n "checking whether ln -s works... " >&6; } 6797LN_S=$as_ln_s 6798if test "$LN_S" = "ln -s"; then 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6800$as_echo "yes" >&6; } 6801else 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6803$as_echo "no, using $LN_S" >&6; } 6804fi 6805 6806# find the maximum length of command line arguments 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6808$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6809if ${lt_cv_sys_max_cmd_len+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 i=0 6813 teststring=ABCD 6814 6815 case $build_os in 6816 msdosdjgpp*) 6817 # On DJGPP, this test can blow up pretty badly due to problems in libc 6818 # (any single argument exceeding 2000 bytes causes a buffer overrun 6819 # during glob expansion). Even if it were fixed, the result of this 6820 # check would be larger than it should be. 6821 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6822 ;; 6823 6824 gnu*) 6825 # Under GNU Hurd, this test is not required because there is 6826 # no limit to the length of command line arguments. 6827 # Libtool will interpret -1 as no limit whatsoever 6828 lt_cv_sys_max_cmd_len=-1; 6829 ;; 6830 6831 cygwin* | mingw* | cegcc*) 6832 # On Win9x/ME, this test blows up -- it succeeds, but takes 6833 # about 5 minutes as the teststring grows exponentially. 6834 # Worse, since 9x/ME are not pre-emptively multitasking, 6835 # you end up with a "frozen" computer, even though with patience 6836 # the test eventually succeeds (with a max line length of 256k). 6837 # Instead, let's just punt: use the minimum linelength reported by 6838 # all of the supported platforms: 8192 (on NT/2K/XP). 6839 lt_cv_sys_max_cmd_len=8192; 6840 ;; 6841 6842 mint*) 6843 # On MiNT this can take a long time and run out of memory. 6844 lt_cv_sys_max_cmd_len=8192; 6845 ;; 6846 6847 amigaos*) 6848 # On AmigaOS with pdksh, this test takes hours, literally. 6849 # So we just punt and use a minimum line length of 8192. 6850 lt_cv_sys_max_cmd_len=8192; 6851 ;; 6852 6853 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6854 # This has been around since 386BSD, at least. Likely further. 6855 if test -x /sbin/sysctl; then 6856 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6857 elif test -x /usr/sbin/sysctl; then 6858 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6859 else 6860 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6861 fi 6862 # And add a safety zone 6863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6865 ;; 6866 6867 interix*) 6868 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6869 lt_cv_sys_max_cmd_len=196608 6870 ;; 6871 6872 os2*) 6873 # The test takes a long time on OS/2. 6874 lt_cv_sys_max_cmd_len=8192 6875 ;; 6876 6877 osf*) 6878 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6879 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6880 # nice to cause kernel panics so lets avoid the loop below. 6881 # First set a reasonable default. 6882 lt_cv_sys_max_cmd_len=16384 6883 # 6884 if test -x /sbin/sysconfig; then 6885 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6886 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6887 esac 6888 fi 6889 ;; 6890 sco3.2v5*) 6891 lt_cv_sys_max_cmd_len=102400 6892 ;; 6893 sysv5* | sco5v6* | sysv4.2uw2*) 6894 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6895 if test -n "$kargmax"; then 6896 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6897 else 6898 lt_cv_sys_max_cmd_len=32768 6899 fi 6900 ;; 6901 *) 6902 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6903 if test -n "$lt_cv_sys_max_cmd_len" && \ 6904 test undefined != "$lt_cv_sys_max_cmd_len"; then 6905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6907 else 6908 # Make teststring a little bigger before we do anything with it. 6909 # a 1K string should be a reasonable start. 6910 for i in 1 2 3 4 5 6 7 8; do 6911 teststring=$teststring$teststring 6912 done 6913 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6914 # If test is not a shell built-in, we'll probably end up computing a 6915 # maximum length that is only half of the actual maximum length, but 6916 # we can't tell. 6917 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6918 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6919 test 17 != "$i" # 1/2 MB should be enough 6920 do 6921 i=`expr $i + 1` 6922 teststring=$teststring$teststring 6923 done 6924 # Only check the string length outside the loop. 6925 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6926 teststring= 6927 # Add a significant safety factor because C++ compilers can tack on 6928 # massive amounts of additional arguments before passing them to the 6929 # linker. It appears as though 1/2 is a usable value. 6930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6931 fi 6932 ;; 6933 esac 6934 6935fi 6936 6937if test -n "$lt_cv_sys_max_cmd_len"; then 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6939$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6940else 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6942$as_echo "none" >&6; } 6943fi 6944max_cmd_len=$lt_cv_sys_max_cmd_len 6945 6946 6947 6948 6949 6950 6951: ${CP="cp -f"} 6952: ${MV="mv -f"} 6953: ${RM="rm -f"} 6954 6955if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6956 lt_unset=unset 6957else 6958 lt_unset=false 6959fi 6960 6961 6962 6963 6964 6965# test EBCDIC or ASCII 6966case `echo X|tr X '\101'` in 6967 A) # ASCII based system 6968 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6969 lt_SP2NL='tr \040 \012' 6970 lt_NL2SP='tr \015\012 \040\040' 6971 ;; 6972 *) # EBCDIC based system 6973 lt_SP2NL='tr \100 \n' 6974 lt_NL2SP='tr \r\n \100\100' 6975 ;; 6976esac 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6987$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6988if ${lt_cv_to_host_file_cmd+:} false; then : 6989 $as_echo_n "(cached) " >&6 6990else 6991 case $host in 6992 *-*-mingw* ) 6993 case $build in 6994 *-*-mingw* ) # actually msys 6995 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6996 ;; 6997 *-*-cygwin* ) 6998 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6999 ;; 7000 * ) # otherwise, assume *nix 7001 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7002 ;; 7003 esac 7004 ;; 7005 *-*-cygwin* ) 7006 case $build in 7007 *-*-mingw* ) # actually msys 7008 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7009 ;; 7010 *-*-cygwin* ) 7011 lt_cv_to_host_file_cmd=func_convert_file_noop 7012 ;; 7013 * ) # otherwise, assume *nix 7014 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7015 ;; 7016 esac 7017 ;; 7018 * ) # unhandled hosts (and "normal" native builds) 7019 lt_cv_to_host_file_cmd=func_convert_file_noop 7020 ;; 7021esac 7022 7023fi 7024 7025to_host_file_cmd=$lt_cv_to_host_file_cmd 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7027$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7028 7029 7030 7031 7032 7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7034$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7035if ${lt_cv_to_tool_file_cmd+:} false; then : 7036 $as_echo_n "(cached) " >&6 7037else 7038 #assume ordinary cross tools, or native build. 7039lt_cv_to_tool_file_cmd=func_convert_file_noop 7040case $host in 7041 *-*-mingw* ) 7042 case $build in 7043 *-*-mingw* ) # actually msys 7044 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7045 ;; 7046 esac 7047 ;; 7048esac 7049 7050fi 7051 7052to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7054$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7055 7056 7057 7058 7059 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7061$as_echo_n "checking for $LD option to reload object files... " >&6; } 7062if ${lt_cv_ld_reload_flag+:} false; then : 7063 $as_echo_n "(cached) " >&6 7064else 7065 lt_cv_ld_reload_flag='-r' 7066fi 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7068$as_echo "$lt_cv_ld_reload_flag" >&6; } 7069reload_flag=$lt_cv_ld_reload_flag 7070case $reload_flag in 7071"" | " "*) ;; 7072*) reload_flag=" $reload_flag" ;; 7073esac 7074reload_cmds='$LD$reload_flag -o $output$reload_objs' 7075case $host_os in 7076 cygwin* | mingw* | pw32* | cegcc*) 7077 if test yes != "$GCC"; then 7078 reload_cmds=false 7079 fi 7080 ;; 7081 darwin*) 7082 if test yes = "$GCC"; then 7083 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 7084 else 7085 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7086 fi 7087 ;; 7088esac 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098if test -n "$ac_tool_prefix"; then 7099 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7100set dummy ${ac_tool_prefix}objdump; ac_word=$2 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7102$as_echo_n "checking for $ac_word... " >&6; } 7103if ${ac_cv_prog_OBJDUMP+:} false; then : 7104 $as_echo_n "(cached) " >&6 7105else 7106 if test -n "$OBJDUMP"; then 7107 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7108else 7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7110for as_dir in $PATH 7111do 7112 IFS=$as_save_IFS 7113 test -z "$as_dir" && as_dir=. 7114 for ac_exec_ext in '' $ac_executable_extensions; do 7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7116 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7118 break 2 7119 fi 7120done 7121 done 7122IFS=$as_save_IFS 7123 7124fi 7125fi 7126OBJDUMP=$ac_cv_prog_OBJDUMP 7127if test -n "$OBJDUMP"; then 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7129$as_echo "$OBJDUMP" >&6; } 7130else 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7132$as_echo "no" >&6; } 7133fi 7134 7135 7136fi 7137if test -z "$ac_cv_prog_OBJDUMP"; then 7138 ac_ct_OBJDUMP=$OBJDUMP 7139 # Extract the first word of "objdump", so it can be a program name with args. 7140set dummy objdump; ac_word=$2 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7142$as_echo_n "checking for $ac_word... " >&6; } 7143if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 if test -n "$ac_ct_OBJDUMP"; then 7147 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7148else 7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150for as_dir in $PATH 7151do 7152 IFS=$as_save_IFS 7153 test -z "$as_dir" && as_dir=. 7154 for ac_exec_ext in '' $ac_executable_extensions; do 7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7156 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7158 break 2 7159 fi 7160done 7161 done 7162IFS=$as_save_IFS 7163 7164fi 7165fi 7166ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7167if test -n "$ac_ct_OBJDUMP"; then 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7169$as_echo "$ac_ct_OBJDUMP" >&6; } 7170else 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7172$as_echo "no" >&6; } 7173fi 7174 7175 if test "x$ac_ct_OBJDUMP" = x; then 7176 OBJDUMP="false" 7177 else 7178 case $cross_compiling:$ac_tool_warned in 7179yes:) 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7182ac_tool_warned=yes ;; 7183esac 7184 OBJDUMP=$ac_ct_OBJDUMP 7185 fi 7186else 7187 OBJDUMP="$ac_cv_prog_OBJDUMP" 7188fi 7189 7190test -z "$OBJDUMP" && OBJDUMP=objdump 7191 7192 7193 7194 7195 7196 7197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7198$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7199if ${lt_cv_deplibs_check_method+:} false; then : 7200 $as_echo_n "(cached) " >&6 7201else 7202 lt_cv_file_magic_cmd='$MAGIC_CMD' 7203lt_cv_file_magic_test_file= 7204lt_cv_deplibs_check_method='unknown' 7205# Need to set the preceding variable on all platforms that support 7206# interlibrary dependencies. 7207# 'none' -- dependencies not supported. 7208# 'unknown' -- same as none, but documents that we really don't know. 7209# 'pass_all' -- all dependencies passed with no checks. 7210# 'test_compile' -- check by making test program. 7211# 'file_magic [[regex]]' -- check by looking for files in library path 7212# that responds to the $file_magic_cmd with a given extended regex. 7213# If you have 'file' or equivalent on your system and you're not sure 7214# whether 'pass_all' will *always* work, you probably want this one. 7215 7216case $host_os in 7217aix[4-9]*) 7218 lt_cv_deplibs_check_method=pass_all 7219 ;; 7220 7221beos*) 7222 lt_cv_deplibs_check_method=pass_all 7223 ;; 7224 7225bsdi[45]*) 7226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7227 lt_cv_file_magic_cmd='/usr/bin/file -L' 7228 lt_cv_file_magic_test_file=/shlib/libc.so 7229 ;; 7230 7231cygwin*) 7232 # func_win32_libid is a shell function defined in ltmain.sh 7233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7234 lt_cv_file_magic_cmd='func_win32_libid' 7235 ;; 7236 7237mingw* | pw32*) 7238 # Base MSYS/MinGW do not provide the 'file' command needed by 7239 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7240 # unless we find 'file', for example because we are cross-compiling. 7241 if ( file / ) >/dev/null 2>&1; then 7242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7243 lt_cv_file_magic_cmd='func_win32_libid' 7244 else 7245 # Keep this pattern in sync with the one in func_win32_libid. 7246 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7247 lt_cv_file_magic_cmd='$OBJDUMP -f' 7248 fi 7249 ;; 7250 7251cegcc*) 7252 # use the weaker test based on 'objdump'. See mingw*. 7253 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7254 lt_cv_file_magic_cmd='$OBJDUMP -f' 7255 ;; 7256 7257darwin* | rhapsody*) 7258 lt_cv_deplibs_check_method=pass_all 7259 ;; 7260 7261freebsd* | dragonfly*) 7262 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7263 case $host_cpu in 7264 i*86 ) 7265 # Not sure whether the presence of OpenBSD here was a mistake. 7266 # Let's accept both of them until this is cleared up. 7267 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7268 lt_cv_file_magic_cmd=/usr/bin/file 7269 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7270 ;; 7271 esac 7272 else 7273 lt_cv_deplibs_check_method=pass_all 7274 fi 7275 ;; 7276 7277haiku*) 7278 lt_cv_deplibs_check_method=pass_all 7279 ;; 7280 7281hpux10.20* | hpux11*) 7282 lt_cv_file_magic_cmd=/usr/bin/file 7283 case $host_cpu in 7284 ia64*) 7285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7286 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7287 ;; 7288 hppa*64*) 7289 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]' 7290 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7291 ;; 7292 *) 7293 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7294 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7295 ;; 7296 esac 7297 ;; 7298 7299interix[3-9]*) 7300 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7302 ;; 7303 7304irix5* | irix6* | nonstopux*) 7305 case $LD in 7306 *-32|*"-32 ") libmagic=32-bit;; 7307 *-n32|*"-n32 ") libmagic=N32;; 7308 *-64|*"-64 ") libmagic=64-bit;; 7309 *) libmagic=never-match;; 7310 esac 7311 lt_cv_deplibs_check_method=pass_all 7312 ;; 7313 7314# This must be glibc/ELF. 7315linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7316 lt_cv_deplibs_check_method=pass_all 7317 ;; 7318 7319netbsd* | netbsdelf*-gnu) 7320 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7322 else 7323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7324 fi 7325 ;; 7326 7327newos6*) 7328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7329 lt_cv_file_magic_cmd=/usr/bin/file 7330 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7331 ;; 7332 7333*nto* | *qnx*) 7334 lt_cv_deplibs_check_method=pass_all 7335 ;; 7336 7337openbsd* | bitrig*) 7338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7340 else 7341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7342 fi 7343 ;; 7344 7345osf3* | osf4* | osf5*) 7346 lt_cv_deplibs_check_method=pass_all 7347 ;; 7348 7349rdos*) 7350 lt_cv_deplibs_check_method=pass_all 7351 ;; 7352 7353solaris*) 7354 lt_cv_deplibs_check_method=pass_all 7355 ;; 7356 7357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7358 lt_cv_deplibs_check_method=pass_all 7359 ;; 7360 7361sysv4 | sysv4.3*) 7362 case $host_vendor in 7363 motorola) 7364 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]' 7365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7366 ;; 7367 ncr) 7368 lt_cv_deplibs_check_method=pass_all 7369 ;; 7370 sequent) 7371 lt_cv_file_magic_cmd='/bin/file' 7372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7373 ;; 7374 sni) 7375 lt_cv_file_magic_cmd='/bin/file' 7376 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7377 lt_cv_file_magic_test_file=/lib/libc.so 7378 ;; 7379 siemens) 7380 lt_cv_deplibs_check_method=pass_all 7381 ;; 7382 pc) 7383 lt_cv_deplibs_check_method=pass_all 7384 ;; 7385 esac 7386 ;; 7387 7388tpf*) 7389 lt_cv_deplibs_check_method=pass_all 7390 ;; 7391os2*) 7392 lt_cv_deplibs_check_method=pass_all 7393 ;; 7394esac 7395 7396fi 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7398$as_echo "$lt_cv_deplibs_check_method" >&6; } 7399 7400file_magic_glob= 7401want_nocaseglob=no 7402if test "$build" = "$host"; then 7403 case $host_os in 7404 mingw* | pw32*) 7405 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7406 want_nocaseglob=yes 7407 else 7408 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7409 fi 7410 ;; 7411 esac 7412fi 7413 7414file_magic_cmd=$lt_cv_file_magic_cmd 7415deplibs_check_method=$lt_cv_deplibs_check_method 7416test -z "$deplibs_check_method" && deplibs_check_method=unknown 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439if test -n "$ac_tool_prefix"; then 7440 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7441set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7443$as_echo_n "checking for $ac_word... " >&6; } 7444if ${ac_cv_prog_DLLTOOL+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446else 7447 if test -n "$DLLTOOL"; then 7448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7449else 7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7451for as_dir in $PATH 7452do 7453 IFS=$as_save_IFS 7454 test -z "$as_dir" && as_dir=. 7455 for ac_exec_ext in '' $ac_executable_extensions; do 7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7457 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7459 break 2 7460 fi 7461done 7462 done 7463IFS=$as_save_IFS 7464 7465fi 7466fi 7467DLLTOOL=$ac_cv_prog_DLLTOOL 7468if test -n "$DLLTOOL"; then 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7470$as_echo "$DLLTOOL" >&6; } 7471else 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7473$as_echo "no" >&6; } 7474fi 7475 7476 7477fi 7478if test -z "$ac_cv_prog_DLLTOOL"; then 7479 ac_ct_DLLTOOL=$DLLTOOL 7480 # Extract the first word of "dlltool", so it can be a program name with args. 7481set dummy dlltool; ac_word=$2 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7483$as_echo_n "checking for $ac_word... " >&6; } 7484if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7485 $as_echo_n "(cached) " >&6 7486else 7487 if test -n "$ac_ct_DLLTOOL"; then 7488 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7489else 7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491for as_dir in $PATH 7492do 7493 IFS=$as_save_IFS 7494 test -z "$as_dir" && as_dir=. 7495 for ac_exec_ext in '' $ac_executable_extensions; do 7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7497 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7499 break 2 7500 fi 7501done 7502 done 7503IFS=$as_save_IFS 7504 7505fi 7506fi 7507ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7508if test -n "$ac_ct_DLLTOOL"; then 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7510$as_echo "$ac_ct_DLLTOOL" >&6; } 7511else 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7513$as_echo "no" >&6; } 7514fi 7515 7516 if test "x$ac_ct_DLLTOOL" = x; then 7517 DLLTOOL="false" 7518 else 7519 case $cross_compiling:$ac_tool_warned in 7520yes:) 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7523ac_tool_warned=yes ;; 7524esac 7525 DLLTOOL=$ac_ct_DLLTOOL 7526 fi 7527else 7528 DLLTOOL="$ac_cv_prog_DLLTOOL" 7529fi 7530 7531test -z "$DLLTOOL" && DLLTOOL=dlltool 7532 7533 7534 7535 7536 7537 7538 7539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7540$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7541if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7542 $as_echo_n "(cached) " >&6 7543else 7544 lt_cv_sharedlib_from_linklib_cmd='unknown' 7545 7546case $host_os in 7547cygwin* | mingw* | pw32* | cegcc*) 7548 # two different shell functions defined in ltmain.sh; 7549 # decide which one to use based on capabilities of $DLLTOOL 7550 case `$DLLTOOL --help 2>&1` in 7551 *--identify-strict*) 7552 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7553 ;; 7554 *) 7555 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7556 ;; 7557 esac 7558 ;; 7559*) 7560 # fallback: assume linklib IS sharedlib 7561 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7562 ;; 7563esac 7564 7565fi 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7567$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7568sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7569test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7570 7571 7572 7573 7574 7575 7576 7577if test -n "$ac_tool_prefix"; then 7578 for ac_prog in ar 7579 do 7580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7581set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7583$as_echo_n "checking for $ac_word... " >&6; } 7584if ${ac_cv_prog_AR+:} false; then : 7585 $as_echo_n "(cached) " >&6 7586else 7587 if test -n "$AR"; then 7588 ac_cv_prog_AR="$AR" # Let the user override the test. 7589else 7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7591for as_dir in $PATH 7592do 7593 IFS=$as_save_IFS 7594 test -z "$as_dir" && as_dir=. 7595 for ac_exec_ext in '' $ac_executable_extensions; do 7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7597 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7599 break 2 7600 fi 7601done 7602 done 7603IFS=$as_save_IFS 7604 7605fi 7606fi 7607AR=$ac_cv_prog_AR 7608if test -n "$AR"; then 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7610$as_echo "$AR" >&6; } 7611else 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7613$as_echo "no" >&6; } 7614fi 7615 7616 7617 test -n "$AR" && break 7618 done 7619fi 7620if test -z "$AR"; then 7621 ac_ct_AR=$AR 7622 for ac_prog in ar 7623do 7624 # Extract the first word of "$ac_prog", so it can be a program name with args. 7625set dummy $ac_prog; ac_word=$2 7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7627$as_echo_n "checking for $ac_word... " >&6; } 7628if ${ac_cv_prog_ac_ct_AR+:} false; then : 7629 $as_echo_n "(cached) " >&6 7630else 7631 if test -n "$ac_ct_AR"; then 7632 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7633else 7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7635for as_dir in $PATH 7636do 7637 IFS=$as_save_IFS 7638 test -z "$as_dir" && as_dir=. 7639 for ac_exec_ext in '' $ac_executable_extensions; do 7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7641 ac_cv_prog_ac_ct_AR="$ac_prog" 7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7643 break 2 7644 fi 7645done 7646 done 7647IFS=$as_save_IFS 7648 7649fi 7650fi 7651ac_ct_AR=$ac_cv_prog_ac_ct_AR 7652if test -n "$ac_ct_AR"; then 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7654$as_echo "$ac_ct_AR" >&6; } 7655else 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7657$as_echo "no" >&6; } 7658fi 7659 7660 7661 test -n "$ac_ct_AR" && break 7662done 7663 7664 if test "x$ac_ct_AR" = x; then 7665 AR="false" 7666 else 7667 case $cross_compiling:$ac_tool_warned in 7668yes:) 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7671ac_tool_warned=yes ;; 7672esac 7673 AR=$ac_ct_AR 7674 fi 7675fi 7676 7677: ${AR=ar} 7678: ${AR_FLAGS=cru} 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7691$as_echo_n "checking for archiver @FILE support... " >&6; } 7692if ${lt_cv_ar_at_file+:} false; then : 7693 $as_echo_n "(cached) " >&6 7694else 7695 lt_cv_ar_at_file=no 7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7697/* end confdefs.h. */ 7698 7699int 7700main () 7701{ 7702 7703 ; 7704 return 0; 7705} 7706_ACEOF 7707if ac_fn_c_try_compile "$LINENO"; then : 7708 echo conftest.$ac_objext > conftest.lst 7709 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7711 (eval $lt_ar_try) 2>&5 7712 ac_status=$? 7713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7714 test $ac_status = 0; } 7715 if test 0 -eq "$ac_status"; then 7716 # Ensure the archiver fails upon bogus file names. 7717 rm -f conftest.$ac_objext libconftest.a 7718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7719 (eval $lt_ar_try) 2>&5 7720 ac_status=$? 7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7722 test $ac_status = 0; } 7723 if test 0 -ne "$ac_status"; then 7724 lt_cv_ar_at_file=@ 7725 fi 7726 fi 7727 rm -f conftest.* libconftest.a 7728 7729fi 7730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7731 7732fi 7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7734$as_echo "$lt_cv_ar_at_file" >&6; } 7735 7736if test no = "$lt_cv_ar_at_file"; then 7737 archiver_list_spec= 7738else 7739 archiver_list_spec=$lt_cv_ar_at_file 7740fi 7741 7742 7743 7744 7745 7746 7747 7748if test -n "$ac_tool_prefix"; then 7749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7750set dummy ${ac_tool_prefix}strip; ac_word=$2 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7752$as_echo_n "checking for $ac_word... " >&6; } 7753if ${ac_cv_prog_STRIP+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755else 7756 if test -n "$STRIP"; then 7757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7758else 7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7760for as_dir in $PATH 7761do 7762 IFS=$as_save_IFS 7763 test -z "$as_dir" && as_dir=. 7764 for ac_exec_ext in '' $ac_executable_extensions; do 7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7766 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7768 break 2 7769 fi 7770done 7771 done 7772IFS=$as_save_IFS 7773 7774fi 7775fi 7776STRIP=$ac_cv_prog_STRIP 7777if test -n "$STRIP"; then 7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7779$as_echo "$STRIP" >&6; } 7780else 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7782$as_echo "no" >&6; } 7783fi 7784 7785 7786fi 7787if test -z "$ac_cv_prog_STRIP"; then 7788 ac_ct_STRIP=$STRIP 7789 # Extract the first word of "strip", so it can be a program name with args. 7790set dummy strip; ac_word=$2 7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7792$as_echo_n "checking for $ac_word... " >&6; } 7793if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7794 $as_echo_n "(cached) " >&6 7795else 7796 if test -n "$ac_ct_STRIP"; then 7797 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 test -z "$as_dir" && as_dir=. 7804 for ac_exec_ext in '' $ac_executable_extensions; do 7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7806 ac_cv_prog_ac_ct_STRIP="strip" 7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7808 break 2 7809 fi 7810done 7811 done 7812IFS=$as_save_IFS 7813 7814fi 7815fi 7816ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7817if test -n "$ac_ct_STRIP"; then 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7819$as_echo "$ac_ct_STRIP" >&6; } 7820else 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7822$as_echo "no" >&6; } 7823fi 7824 7825 if test "x$ac_ct_STRIP" = x; then 7826 STRIP=":" 7827 else 7828 case $cross_compiling:$ac_tool_warned in 7829yes:) 7830{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7831$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7832ac_tool_warned=yes ;; 7833esac 7834 STRIP=$ac_ct_STRIP 7835 fi 7836else 7837 STRIP="$ac_cv_prog_STRIP" 7838fi 7839 7840test -z "$STRIP" && STRIP=: 7841 7842 7843 7844 7845 7846 7847if test -n "$ac_tool_prefix"; then 7848 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7849set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7851$as_echo_n "checking for $ac_word... " >&6; } 7852if ${ac_cv_prog_RANLIB+:} false; then : 7853 $as_echo_n "(cached) " >&6 7854else 7855 if test -n "$RANLIB"; then 7856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7857else 7858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7859for as_dir in $PATH 7860do 7861 IFS=$as_save_IFS 7862 test -z "$as_dir" && as_dir=. 7863 for ac_exec_ext in '' $ac_executable_extensions; do 7864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7865 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7867 break 2 7868 fi 7869done 7870 done 7871IFS=$as_save_IFS 7872 7873fi 7874fi 7875RANLIB=$ac_cv_prog_RANLIB 7876if test -n "$RANLIB"; then 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7878$as_echo "$RANLIB" >&6; } 7879else 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7881$as_echo "no" >&6; } 7882fi 7883 7884 7885fi 7886if test -z "$ac_cv_prog_RANLIB"; then 7887 ac_ct_RANLIB=$RANLIB 7888 # Extract the first word of "ranlib", so it can be a program name with args. 7889set dummy ranlib; ac_word=$2 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7891$as_echo_n "checking for $ac_word... " >&6; } 7892if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7893 $as_echo_n "(cached) " >&6 7894else 7895 if test -n "$ac_ct_RANLIB"; then 7896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7897else 7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7899for as_dir in $PATH 7900do 7901 IFS=$as_save_IFS 7902 test -z "$as_dir" && as_dir=. 7903 for ac_exec_ext in '' $ac_executable_extensions; do 7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7905 ac_cv_prog_ac_ct_RANLIB="ranlib" 7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7907 break 2 7908 fi 7909done 7910 done 7911IFS=$as_save_IFS 7912 7913fi 7914fi 7915ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7916if test -n "$ac_ct_RANLIB"; then 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7918$as_echo "$ac_ct_RANLIB" >&6; } 7919else 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7921$as_echo "no" >&6; } 7922fi 7923 7924 if test "x$ac_ct_RANLIB" = x; then 7925 RANLIB=":" 7926 else 7927 case $cross_compiling:$ac_tool_warned in 7928yes:) 7929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7931ac_tool_warned=yes ;; 7932esac 7933 RANLIB=$ac_ct_RANLIB 7934 fi 7935else 7936 RANLIB="$ac_cv_prog_RANLIB" 7937fi 7938 7939test -z "$RANLIB" && RANLIB=: 7940 7941 7942 7943 7944 7945 7946# Determine commands to create old-style static archives. 7947old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7948old_postinstall_cmds='chmod 644 $oldlib' 7949old_postuninstall_cmds= 7950 7951if test -n "$RANLIB"; then 7952 case $host_os in 7953 bitrig* | openbsd*) 7954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7955 ;; 7956 *) 7957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7958 ;; 7959 esac 7960 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7961fi 7962 7963case $host_os in 7964 darwin*) 7965 lock_old_archive_extraction=yes ;; 7966 *) 7967 lock_old_archive_extraction=no ;; 7968esac 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008# If no C compiler was specified, use CC. 8009LTCC=${LTCC-"$CC"} 8010 8011# If no C compiler flags were specified, use CFLAGS. 8012LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8013 8014# Allow CC to be a program name with arguments. 8015compiler=$CC 8016 8017 8018# Check for command to grab the raw symbol name followed by C symbol from nm. 8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8020$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8021if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8022 $as_echo_n "(cached) " >&6 8023else 8024 8025# These are sane defaults that work on at least a few old systems. 8026# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8027 8028# Character class describing NM global symbol codes. 8029symcode='[BCDEGRST]' 8030 8031# Regexp to match symbols that can be accessed directly from C. 8032sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8033 8034# Define system-specific variables. 8035case $host_os in 8036aix*) 8037 symcode='[BCDT]' 8038 ;; 8039cygwin* | mingw* | pw32* | cegcc*) 8040 symcode='[ABCDGISTW]' 8041 ;; 8042hpux*) 8043 if test ia64 = "$host_cpu"; then 8044 symcode='[ABCDEGRST]' 8045 fi 8046 ;; 8047irix* | nonstopux*) 8048 symcode='[BCDEGRST]' 8049 ;; 8050osf*) 8051 symcode='[BCDEGQRST]' 8052 ;; 8053solaris*) 8054 symcode='[BDRT]' 8055 ;; 8056sco3.2v5*) 8057 symcode='[DT]' 8058 ;; 8059sysv4.2uw2*) 8060 symcode='[DT]' 8061 ;; 8062sysv5* | sco5v6* | unixware* | OpenUNIX*) 8063 symcode='[ABDT]' 8064 ;; 8065sysv4) 8066 symcode='[DFNSTU]' 8067 ;; 8068esac 8069 8070# If we're using GNU nm, then use its standard symbol codes. 8071case `$NM -V 2>&1` in 8072*GNU* | *'with BFD'*) 8073 symcode='[ABCDGIRSTW]' ;; 8074esac 8075 8076if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8077 # Gets list of data symbols to import. 8078 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 8079 # Adjust the below global symbol transforms to fixup imported variables. 8080 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8081 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8082 lt_c_name_lib_hook="\ 8083 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8084 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8085else 8086 # Disable hooks by default. 8087 lt_cv_sys_global_symbol_to_import= 8088 lt_cdecl_hook= 8089 lt_c_name_hook= 8090 lt_c_name_lib_hook= 8091fi 8092 8093# Transform an extracted symbol line into a proper C declaration. 8094# Some systems (esp. on ia64) link data and code symbols differently, 8095# so use this general approach. 8096lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 8097$lt_cdecl_hook\ 8098" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8099" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8100 8101# Transform an extracted symbol line into symbol name and symbol address 8102lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 8103$lt_c_name_hook\ 8104" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8105" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8106 8107# Transform an extracted symbol line into symbol name with lib prefix and 8108# symbol address. 8109lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 8110$lt_c_name_lib_hook\ 8111" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8112" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8113" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8114 8115# Handle CRLF in mingw tool chain 8116opt_cr= 8117case $build_os in 8118mingw*) 8119 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8120 ;; 8121esac 8122 8123# Try without a prefix underscore, then with it. 8124for ac_symprfx in "" "_"; do 8125 8126 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8127 symxfrm="\\1 $ac_symprfx\\2 \\2" 8128 8129 # Write the raw and C identifiers. 8130 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8131 # Fake it for dumpbin and say T for any non-static function, 8132 # D for any global variable and I for any imported variable. 8133 # Also find C++ and __fastcall symbols from MSVC++, 8134 # which start with @ or ?. 8135 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8136" {last_section=section; section=\$ 3};"\ 8137" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8138" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8139" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8140" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8141" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8142" \$ 0!~/External *\|/{next};"\ 8143" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8144" {if(hide[section]) next};"\ 8145" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8146" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8147" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8148" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8149" ' prfx=^$ac_symprfx" 8150 else 8151 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8152 fi 8153 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8154 8155 # Check to see that the pipe works correctly. 8156 pipe_works=no 8157 8158 rm -f conftest* 8159 cat > conftest.$ac_ext <<_LT_EOF 8160#ifdef __cplusplus 8161extern "C" { 8162#endif 8163char nm_test_var; 8164void nm_test_func(void); 8165void nm_test_func(void){} 8166#ifdef __cplusplus 8167} 8168#endif 8169int main(){nm_test_var='a';nm_test_func();return(0);} 8170_LT_EOF 8171 8172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8173 (eval $ac_compile) 2>&5 8174 ac_status=$? 8175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8176 test $ac_status = 0; }; then 8177 # Now try to grab the symbols. 8178 nlist=conftest.nm 8179 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 8180 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 8181 # Try sorting and uniquifying the output. 8182 if sort "$nlist" | uniq > "$nlist"T; then 8183 mv -f "$nlist"T "$nlist" 8184 else 8185 rm -f "$nlist"T 8186 fi 8187 8188 # Make sure that we snagged all the symbols we need. 8189 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8190 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8191 cat <<_LT_EOF > conftest.$ac_ext 8192/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8193#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8194/* DATA imports from DLLs on WIN32 can't be const, because runtime 8195 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8196# define LT_DLSYM_CONST 8197#elif defined __osf__ 8198/* This system does not cope well with relocations in const data. */ 8199# define LT_DLSYM_CONST 8200#else 8201# define LT_DLSYM_CONST const 8202#endif 8203 8204#ifdef __cplusplus 8205extern "C" { 8206#endif 8207 8208_LT_EOF 8209 # Now generate the symbol file. 8210 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8211 8212 cat <<_LT_EOF >> conftest.$ac_ext 8213 8214/* The mapping between symbol names and symbols. */ 8215LT_DLSYM_CONST struct { 8216 const char *name; 8217 void *address; 8218} 8219lt__PROGRAM__LTX_preloaded_symbols[] = 8220{ 8221 { "@PROGRAM@", (void *) 0 }, 8222_LT_EOF 8223 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8224 cat <<\_LT_EOF >> conftest.$ac_ext 8225 {0, (void *) 0} 8226}; 8227 8228/* This works around a problem in FreeBSD linker */ 8229#ifdef FREEBSD_WORKAROUND 8230static const void *lt_preloaded_setup() { 8231 return lt__PROGRAM__LTX_preloaded_symbols; 8232} 8233#endif 8234 8235#ifdef __cplusplus 8236} 8237#endif 8238_LT_EOF 8239 # Now try linking the two files. 8240 mv conftest.$ac_objext conftstm.$ac_objext 8241 lt_globsym_save_LIBS=$LIBS 8242 lt_globsym_save_CFLAGS=$CFLAGS 8243 LIBS=conftstm.$ac_objext 8244 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8246 (eval $ac_link) 2>&5 8247 ac_status=$? 8248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8249 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8250 pipe_works=yes 8251 fi 8252 LIBS=$lt_globsym_save_LIBS 8253 CFLAGS=$lt_globsym_save_CFLAGS 8254 else 8255 echo "cannot find nm_test_func in $nlist" >&5 8256 fi 8257 else 8258 echo "cannot find nm_test_var in $nlist" >&5 8259 fi 8260 else 8261 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8262 fi 8263 else 8264 echo "$progname: failed program was:" >&5 8265 cat conftest.$ac_ext >&5 8266 fi 8267 rm -rf conftest* conftst* 8268 8269 # Do not use the global_symbol_pipe unless it works. 8270 if test yes = "$pipe_works"; then 8271 break 8272 else 8273 lt_cv_sys_global_symbol_pipe= 8274 fi 8275done 8276 8277fi 8278 8279if test -z "$lt_cv_sys_global_symbol_pipe"; then 8280 lt_cv_sys_global_symbol_to_cdecl= 8281fi 8282if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8284$as_echo "failed" >&6; } 8285else 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8287$as_echo "ok" >&6; } 8288fi 8289 8290# Response file support. 8291if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8292 nm_file_list_spec='@' 8293elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8294 nm_file_list_spec='@' 8295fi 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8334$as_echo_n "checking for sysroot... " >&6; } 8335 8336# Check whether --with-sysroot was given. 8337if test "${with_sysroot+set}" = set; then : 8338 withval=$with_sysroot; 8339else 8340 with_sysroot=no 8341fi 8342 8343 8344lt_sysroot= 8345case $with_sysroot in #( 8346 yes) 8347 if test yes = "$GCC"; then 8348 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8349 fi 8350 ;; #( 8351 /*) 8352 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8353 ;; #( 8354 no|'') 8355 ;; #( 8356 *) 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8358$as_echo "$with_sysroot" >&6; } 8359 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8360 ;; 8361esac 8362 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8364$as_echo "${lt_sysroot:-no}" >&6; } 8365 8366 8367 8368 8369 8370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8371$as_echo_n "checking for a working dd... " >&6; } 8372if ${ac_cv_path_lt_DD+:} false; then : 8373 $as_echo_n "(cached) " >&6 8374else 8375 printf 0123456789abcdef0123456789abcdef >conftest.i 8376cat conftest.i conftest.i >conftest2.i 8377: ${lt_DD:=$DD} 8378if test -z "$lt_DD"; then 8379 ac_path_lt_DD_found=false 8380 # Loop through the user's path and test for each of PROGNAME-LIST 8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8382for as_dir in $PATH 8383do 8384 IFS=$as_save_IFS 8385 test -z "$as_dir" && as_dir=. 8386 for ac_prog in dd; do 8387 for ac_exec_ext in '' $ac_executable_extensions; do 8388 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 8389 as_fn_executable_p "$ac_path_lt_DD" || continue 8390if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8391 cmp -s conftest.i conftest.out \ 8392 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8393fi 8394 $ac_path_lt_DD_found && break 3 8395 done 8396 done 8397 done 8398IFS=$as_save_IFS 8399 if test -z "$ac_cv_path_lt_DD"; then 8400 : 8401 fi 8402else 8403 ac_cv_path_lt_DD=$lt_DD 8404fi 8405 8406rm -f conftest.i conftest2.i conftest.out 8407fi 8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8409$as_echo "$ac_cv_path_lt_DD" >&6; } 8410 8411 8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8413$as_echo_n "checking how to truncate binary pipes... " >&6; } 8414if ${lt_cv_truncate_bin+:} false; then : 8415 $as_echo_n "(cached) " >&6 8416else 8417 printf 0123456789abcdef0123456789abcdef >conftest.i 8418cat conftest.i conftest.i >conftest2.i 8419lt_cv_truncate_bin= 8420if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8421 cmp -s conftest.i conftest.out \ 8422 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8423fi 8424rm -f conftest.i conftest2.i conftest.out 8425test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8428$as_echo "$lt_cv_truncate_bin" >&6; } 8429 8430 8431 8432 8433 8434 8435 8436# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8437func_cc_basename () 8438{ 8439 for cc_temp in $*""; do 8440 case $cc_temp in 8441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8443 \-*) ;; 8444 *) break;; 8445 esac 8446 done 8447 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8448} 8449 8450# Check whether --enable-libtool-lock was given. 8451if test "${enable_libtool_lock+set}" = set; then : 8452 enableval=$enable_libtool_lock; 8453fi 8454 8455test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8456 8457# Some flags need to be propagated to the compiler or linker for good 8458# libtool support. 8459case $host in 8460ia64-*-hpux*) 8461 # Find out what ABI is being produced by ac_compile, and set mode 8462 # options accordingly. 8463 echo 'int i;' > conftest.$ac_ext 8464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8465 (eval $ac_compile) 2>&5 8466 ac_status=$? 8467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8468 test $ac_status = 0; }; then 8469 case `/usr/bin/file conftest.$ac_objext` in 8470 *ELF-32*) 8471 HPUX_IA64_MODE=32 8472 ;; 8473 *ELF-64*) 8474 HPUX_IA64_MODE=64 8475 ;; 8476 esac 8477 fi 8478 rm -rf conftest* 8479 ;; 8480*-*-irix6*) 8481 # Find out what ABI is being produced by ac_compile, and set linker 8482 # options accordingly. 8483 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8485 (eval $ac_compile) 2>&5 8486 ac_status=$? 8487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8488 test $ac_status = 0; }; then 8489 if test yes = "$lt_cv_prog_gnu_ld"; then 8490 case `/usr/bin/file conftest.$ac_objext` in 8491 *32-bit*) 8492 LD="${LD-ld} -melf32bsmip" 8493 ;; 8494 *N32*) 8495 LD="${LD-ld} -melf32bmipn32" 8496 ;; 8497 *64-bit*) 8498 LD="${LD-ld} -melf64bmip" 8499 ;; 8500 esac 8501 else 8502 case `/usr/bin/file conftest.$ac_objext` in 8503 *32-bit*) 8504 LD="${LD-ld} -32" 8505 ;; 8506 *N32*) 8507 LD="${LD-ld} -n32" 8508 ;; 8509 *64-bit*) 8510 LD="${LD-ld} -64" 8511 ;; 8512 esac 8513 fi 8514 fi 8515 rm -rf conftest* 8516 ;; 8517 8518mips64*-*linux*) 8519 # Find out what ABI is being produced by ac_compile, and set linker 8520 # options accordingly. 8521 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8523 (eval $ac_compile) 2>&5 8524 ac_status=$? 8525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8526 test $ac_status = 0; }; then 8527 emul=elf 8528 case `/usr/bin/file conftest.$ac_objext` in 8529 *32-bit*) 8530 emul="${emul}32" 8531 ;; 8532 *64-bit*) 8533 emul="${emul}64" 8534 ;; 8535 esac 8536 case `/usr/bin/file conftest.$ac_objext` in 8537 *MSB*) 8538 emul="${emul}btsmip" 8539 ;; 8540 *LSB*) 8541 emul="${emul}ltsmip" 8542 ;; 8543 esac 8544 case `/usr/bin/file conftest.$ac_objext` in 8545 *N32*) 8546 emul="${emul}n32" 8547 ;; 8548 esac 8549 LD="${LD-ld} -m $emul" 8550 fi 8551 rm -rf conftest* 8552 ;; 8553 8554x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8555s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8556 # Find out what ABI is being produced by ac_compile, and set linker 8557 # options accordingly. Note that the listed cases only cover the 8558 # situations where additional linker options are needed (such as when 8559 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8560 # vice versa); the common cases where no linker options are needed do 8561 # not appear in the list. 8562 echo 'int i;' > conftest.$ac_ext 8563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8564 (eval $ac_compile) 2>&5 8565 ac_status=$? 8566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8567 test $ac_status = 0; }; then 8568 case `/usr/bin/file conftest.o` in 8569 *32-bit*) 8570 case $host in 8571 x86_64-*kfreebsd*-gnu) 8572 LD="${LD-ld} -m elf_i386_fbsd" 8573 ;; 8574 x86_64-*linux*) 8575 case `/usr/bin/file conftest.o` in 8576 *x86-64*) 8577 LD="${LD-ld} -m elf32_x86_64" 8578 ;; 8579 *) 8580 LD="${LD-ld} -m elf_i386" 8581 ;; 8582 esac 8583 ;; 8584 powerpc64le-*linux*) 8585 LD="${LD-ld} -m elf32lppclinux" 8586 ;; 8587 powerpc64-*linux*) 8588 LD="${LD-ld} -m elf32ppclinux" 8589 ;; 8590 s390x-*linux*) 8591 LD="${LD-ld} -m elf_s390" 8592 ;; 8593 sparc64-*linux*) 8594 LD="${LD-ld} -m elf32_sparc" 8595 ;; 8596 esac 8597 ;; 8598 *64-bit*) 8599 case $host in 8600 x86_64-*kfreebsd*-gnu) 8601 LD="${LD-ld} -m elf_x86_64_fbsd" 8602 ;; 8603 x86_64-*linux*) 8604 LD="${LD-ld} -m elf_x86_64" 8605 ;; 8606 powerpcle-*linux*) 8607 LD="${LD-ld} -m elf64lppc" 8608 ;; 8609 powerpc-*linux*) 8610 LD="${LD-ld} -m elf64ppc" 8611 ;; 8612 s390*-*linux*|s390*-*tpf*) 8613 LD="${LD-ld} -m elf64_s390" 8614 ;; 8615 sparc*-*linux*) 8616 LD="${LD-ld} -m elf64_sparc" 8617 ;; 8618 esac 8619 ;; 8620 esac 8621 fi 8622 rm -rf conftest* 8623 ;; 8624 8625*-*-sco3.2v5*) 8626 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8627 SAVE_CFLAGS=$CFLAGS 8628 CFLAGS="$CFLAGS -belf" 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8630$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8631if ${lt_cv_cc_needs_belf+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633else 8634 ac_ext=c 8635ac_cpp='$CPP $CPPFLAGS' 8636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8638ac_compiler_gnu=$ac_cv_c_compiler_gnu 8639 8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8641/* end confdefs.h. */ 8642 8643int 8644main () 8645{ 8646 8647 ; 8648 return 0; 8649} 8650_ACEOF 8651if ac_fn_c_try_link "$LINENO"; then : 8652 lt_cv_cc_needs_belf=yes 8653else 8654 lt_cv_cc_needs_belf=no 8655fi 8656rm -f core conftest.err conftest.$ac_objext \ 8657 conftest$ac_exeext conftest.$ac_ext 8658 ac_ext=c 8659ac_cpp='$CPP $CPPFLAGS' 8660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8662ac_compiler_gnu=$ac_cv_c_compiler_gnu 8663 8664fi 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8666$as_echo "$lt_cv_cc_needs_belf" >&6; } 8667 if test yes != "$lt_cv_cc_needs_belf"; then 8668 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8669 CFLAGS=$SAVE_CFLAGS 8670 fi 8671 ;; 8672*-*solaris*) 8673 # Find out what ABI is being produced by ac_compile, and set linker 8674 # options accordingly. 8675 echo 'int i;' > conftest.$ac_ext 8676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8677 (eval $ac_compile) 2>&5 8678 ac_status=$? 8679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8680 test $ac_status = 0; }; then 8681 case `/usr/bin/file conftest.o` in 8682 *64-bit*) 8683 case $lt_cv_prog_gnu_ld in 8684 yes*) 8685 case $host in 8686 i?86-*-solaris*|x86_64-*-solaris*) 8687 LD="${LD-ld} -m elf_x86_64" 8688 ;; 8689 sparc*-*-solaris*) 8690 LD="${LD-ld} -m elf64_sparc" 8691 ;; 8692 esac 8693 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8694 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8695 LD=${LD-ld}_sol2 8696 fi 8697 ;; 8698 *) 8699 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8700 LD="${LD-ld} -64" 8701 fi 8702 ;; 8703 esac 8704 ;; 8705 esac 8706 fi 8707 rm -rf conftest* 8708 ;; 8709esac 8710 8711need_locks=$enable_libtool_lock 8712 8713if test -n "$ac_tool_prefix"; then 8714 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8715set dummy ${ac_tool_prefix}mt; ac_word=$2 8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8717$as_echo_n "checking for $ac_word... " >&6; } 8718if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8719 $as_echo_n "(cached) " >&6 8720else 8721 if test -n "$MANIFEST_TOOL"; then 8722 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8723else 8724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8725for as_dir in $PATH 8726do 8727 IFS=$as_save_IFS 8728 test -z "$as_dir" && as_dir=. 8729 for ac_exec_ext in '' $ac_executable_extensions; do 8730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8731 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8733 break 2 8734 fi 8735done 8736 done 8737IFS=$as_save_IFS 8738 8739fi 8740fi 8741MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8742if test -n "$MANIFEST_TOOL"; then 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8744$as_echo "$MANIFEST_TOOL" >&6; } 8745else 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8747$as_echo "no" >&6; } 8748fi 8749 8750 8751fi 8752if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8753 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8754 # Extract the first word of "mt", so it can be a program name with args. 8755set dummy mt; ac_word=$2 8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8757$as_echo_n "checking for $ac_word... " >&6; } 8758if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8759 $as_echo_n "(cached) " >&6 8760else 8761 if test -n "$ac_ct_MANIFEST_TOOL"; then 8762 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8763else 8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8765for as_dir in $PATH 8766do 8767 IFS=$as_save_IFS 8768 test -z "$as_dir" && as_dir=. 8769 for ac_exec_ext in '' $ac_executable_extensions; do 8770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8771 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8773 break 2 8774 fi 8775done 8776 done 8777IFS=$as_save_IFS 8778 8779fi 8780fi 8781ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8782if test -n "$ac_ct_MANIFEST_TOOL"; then 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8784$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8785else 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8787$as_echo "no" >&6; } 8788fi 8789 8790 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8791 MANIFEST_TOOL=":" 8792 else 8793 case $cross_compiling:$ac_tool_warned in 8794yes:) 8795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8797ac_tool_warned=yes ;; 8798esac 8799 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8800 fi 8801else 8802 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8803fi 8804 8805test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8807$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8808if ${lt_cv_path_mainfest_tool+:} false; then : 8809 $as_echo_n "(cached) " >&6 8810else 8811 lt_cv_path_mainfest_tool=no 8812 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8813 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8814 cat conftest.err >&5 8815 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8816 lt_cv_path_mainfest_tool=yes 8817 fi 8818 rm -f conftest* 8819fi 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8821$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8822if test yes != "$lt_cv_path_mainfest_tool"; then 8823 MANIFEST_TOOL=: 8824fi 8825 8826 8827 8828 8829 8830 8831 case $host_os in 8832 rhapsody* | darwin*) 8833 if test -n "$ac_tool_prefix"; then 8834 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8835set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8837$as_echo_n "checking for $ac_word... " >&6; } 8838if ${ac_cv_prog_DSYMUTIL+:} false; then : 8839 $as_echo_n "(cached) " >&6 8840else 8841 if test -n "$DSYMUTIL"; then 8842 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8843else 8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8845for as_dir in $PATH 8846do 8847 IFS=$as_save_IFS 8848 test -z "$as_dir" && as_dir=. 8849 for ac_exec_ext in '' $ac_executable_extensions; do 8850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8851 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8853 break 2 8854 fi 8855done 8856 done 8857IFS=$as_save_IFS 8858 8859fi 8860fi 8861DSYMUTIL=$ac_cv_prog_DSYMUTIL 8862if test -n "$DSYMUTIL"; then 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8864$as_echo "$DSYMUTIL" >&6; } 8865else 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8867$as_echo "no" >&6; } 8868fi 8869 8870 8871fi 8872if test -z "$ac_cv_prog_DSYMUTIL"; then 8873 ac_ct_DSYMUTIL=$DSYMUTIL 8874 # Extract the first word of "dsymutil", so it can be a program name with args. 8875set dummy dsymutil; ac_word=$2 8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8877$as_echo_n "checking for $ac_word... " >&6; } 8878if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8879 $as_echo_n "(cached) " >&6 8880else 8881 if test -n "$ac_ct_DSYMUTIL"; then 8882 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8883else 8884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8885for as_dir in $PATH 8886do 8887 IFS=$as_save_IFS 8888 test -z "$as_dir" && as_dir=. 8889 for ac_exec_ext in '' $ac_executable_extensions; do 8890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8891 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8893 break 2 8894 fi 8895done 8896 done 8897IFS=$as_save_IFS 8898 8899fi 8900fi 8901ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8902if test -n "$ac_ct_DSYMUTIL"; then 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8904$as_echo "$ac_ct_DSYMUTIL" >&6; } 8905else 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8907$as_echo "no" >&6; } 8908fi 8909 8910 if test "x$ac_ct_DSYMUTIL" = x; then 8911 DSYMUTIL=":" 8912 else 8913 case $cross_compiling:$ac_tool_warned in 8914yes:) 8915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8917ac_tool_warned=yes ;; 8918esac 8919 DSYMUTIL=$ac_ct_DSYMUTIL 8920 fi 8921else 8922 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8923fi 8924 8925 if test -n "$ac_tool_prefix"; then 8926 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8927set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8929$as_echo_n "checking for $ac_word... " >&6; } 8930if ${ac_cv_prog_NMEDIT+:} false; then : 8931 $as_echo_n "(cached) " >&6 8932else 8933 if test -n "$NMEDIT"; then 8934 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8935else 8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8937for as_dir in $PATH 8938do 8939 IFS=$as_save_IFS 8940 test -z "$as_dir" && as_dir=. 8941 for ac_exec_ext in '' $ac_executable_extensions; do 8942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8943 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8945 break 2 8946 fi 8947done 8948 done 8949IFS=$as_save_IFS 8950 8951fi 8952fi 8953NMEDIT=$ac_cv_prog_NMEDIT 8954if test -n "$NMEDIT"; then 8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8956$as_echo "$NMEDIT" >&6; } 8957else 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8959$as_echo "no" >&6; } 8960fi 8961 8962 8963fi 8964if test -z "$ac_cv_prog_NMEDIT"; then 8965 ac_ct_NMEDIT=$NMEDIT 8966 # Extract the first word of "nmedit", so it can be a program name with args. 8967set dummy nmedit; ac_word=$2 8968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8969$as_echo_n "checking for $ac_word... " >&6; } 8970if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8971 $as_echo_n "(cached) " >&6 8972else 8973 if test -n "$ac_ct_NMEDIT"; then 8974 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8975else 8976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8977for as_dir in $PATH 8978do 8979 IFS=$as_save_IFS 8980 test -z "$as_dir" && as_dir=. 8981 for ac_exec_ext in '' $ac_executable_extensions; do 8982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8983 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8985 break 2 8986 fi 8987done 8988 done 8989IFS=$as_save_IFS 8990 8991fi 8992fi 8993ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8994if test -n "$ac_ct_NMEDIT"; then 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8996$as_echo "$ac_ct_NMEDIT" >&6; } 8997else 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8999$as_echo "no" >&6; } 9000fi 9001 9002 if test "x$ac_ct_NMEDIT" = x; then 9003 NMEDIT=":" 9004 else 9005 case $cross_compiling:$ac_tool_warned in 9006yes:) 9007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9009ac_tool_warned=yes ;; 9010esac 9011 NMEDIT=$ac_ct_NMEDIT 9012 fi 9013else 9014 NMEDIT="$ac_cv_prog_NMEDIT" 9015fi 9016 9017 if test -n "$ac_tool_prefix"; then 9018 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9019set dummy ${ac_tool_prefix}lipo; ac_word=$2 9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9021$as_echo_n "checking for $ac_word... " >&6; } 9022if ${ac_cv_prog_LIPO+:} false; then : 9023 $as_echo_n "(cached) " >&6 9024else 9025 if test -n "$LIPO"; then 9026 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9027else 9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9029for as_dir in $PATH 9030do 9031 IFS=$as_save_IFS 9032 test -z "$as_dir" && as_dir=. 9033 for ac_exec_ext in '' $ac_executable_extensions; do 9034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9035 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9037 break 2 9038 fi 9039done 9040 done 9041IFS=$as_save_IFS 9042 9043fi 9044fi 9045LIPO=$ac_cv_prog_LIPO 9046if test -n "$LIPO"; then 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9048$as_echo "$LIPO" >&6; } 9049else 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9051$as_echo "no" >&6; } 9052fi 9053 9054 9055fi 9056if test -z "$ac_cv_prog_LIPO"; then 9057 ac_ct_LIPO=$LIPO 9058 # Extract the first word of "lipo", so it can be a program name with args. 9059set dummy lipo; ac_word=$2 9060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9061$as_echo_n "checking for $ac_word... " >&6; } 9062if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9063 $as_echo_n "(cached) " >&6 9064else 9065 if test -n "$ac_ct_LIPO"; then 9066 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9067else 9068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9069for as_dir in $PATH 9070do 9071 IFS=$as_save_IFS 9072 test -z "$as_dir" && as_dir=. 9073 for ac_exec_ext in '' $ac_executable_extensions; do 9074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9075 ac_cv_prog_ac_ct_LIPO="lipo" 9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9077 break 2 9078 fi 9079done 9080 done 9081IFS=$as_save_IFS 9082 9083fi 9084fi 9085ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9086if test -n "$ac_ct_LIPO"; then 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9088$as_echo "$ac_ct_LIPO" >&6; } 9089else 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9091$as_echo "no" >&6; } 9092fi 9093 9094 if test "x$ac_ct_LIPO" = x; then 9095 LIPO=":" 9096 else 9097 case $cross_compiling:$ac_tool_warned in 9098yes:) 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9101ac_tool_warned=yes ;; 9102esac 9103 LIPO=$ac_ct_LIPO 9104 fi 9105else 9106 LIPO="$ac_cv_prog_LIPO" 9107fi 9108 9109 if test -n "$ac_tool_prefix"; then 9110 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9111set dummy ${ac_tool_prefix}otool; ac_word=$2 9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9113$as_echo_n "checking for $ac_word... " >&6; } 9114if ${ac_cv_prog_OTOOL+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116else 9117 if test -n "$OTOOL"; then 9118 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9119else 9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9121for as_dir in $PATH 9122do 9123 IFS=$as_save_IFS 9124 test -z "$as_dir" && as_dir=. 9125 for ac_exec_ext in '' $ac_executable_extensions; do 9126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9127 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9129 break 2 9130 fi 9131done 9132 done 9133IFS=$as_save_IFS 9134 9135fi 9136fi 9137OTOOL=$ac_cv_prog_OTOOL 9138if test -n "$OTOOL"; then 9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9140$as_echo "$OTOOL" >&6; } 9141else 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9143$as_echo "no" >&6; } 9144fi 9145 9146 9147fi 9148if test -z "$ac_cv_prog_OTOOL"; then 9149 ac_ct_OTOOL=$OTOOL 9150 # Extract the first word of "otool", so it can be a program name with args. 9151set dummy otool; ac_word=$2 9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9153$as_echo_n "checking for $ac_word... " >&6; } 9154if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9155 $as_echo_n "(cached) " >&6 9156else 9157 if test -n "$ac_ct_OTOOL"; then 9158 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9159else 9160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9161for as_dir in $PATH 9162do 9163 IFS=$as_save_IFS 9164 test -z "$as_dir" && as_dir=. 9165 for ac_exec_ext in '' $ac_executable_extensions; do 9166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9167 ac_cv_prog_ac_ct_OTOOL="otool" 9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9169 break 2 9170 fi 9171done 9172 done 9173IFS=$as_save_IFS 9174 9175fi 9176fi 9177ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9178if test -n "$ac_ct_OTOOL"; then 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9180$as_echo "$ac_ct_OTOOL" >&6; } 9181else 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9183$as_echo "no" >&6; } 9184fi 9185 9186 if test "x$ac_ct_OTOOL" = x; then 9187 OTOOL=":" 9188 else 9189 case $cross_compiling:$ac_tool_warned in 9190yes:) 9191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9193ac_tool_warned=yes ;; 9194esac 9195 OTOOL=$ac_ct_OTOOL 9196 fi 9197else 9198 OTOOL="$ac_cv_prog_OTOOL" 9199fi 9200 9201 if test -n "$ac_tool_prefix"; then 9202 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9203set dummy ${ac_tool_prefix}otool64; ac_word=$2 9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9205$as_echo_n "checking for $ac_word... " >&6; } 9206if ${ac_cv_prog_OTOOL64+:} false; then : 9207 $as_echo_n "(cached) " >&6 9208else 9209 if test -n "$OTOOL64"; then 9210 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9211else 9212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9213for as_dir in $PATH 9214do 9215 IFS=$as_save_IFS 9216 test -z "$as_dir" && as_dir=. 9217 for ac_exec_ext in '' $ac_executable_extensions; do 9218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9219 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9221 break 2 9222 fi 9223done 9224 done 9225IFS=$as_save_IFS 9226 9227fi 9228fi 9229OTOOL64=$ac_cv_prog_OTOOL64 9230if test -n "$OTOOL64"; then 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9232$as_echo "$OTOOL64" >&6; } 9233else 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9235$as_echo "no" >&6; } 9236fi 9237 9238 9239fi 9240if test -z "$ac_cv_prog_OTOOL64"; then 9241 ac_ct_OTOOL64=$OTOOL64 9242 # Extract the first word of "otool64", so it can be a program name with args. 9243set dummy otool64; ac_word=$2 9244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9245$as_echo_n "checking for $ac_word... " >&6; } 9246if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9247 $as_echo_n "(cached) " >&6 9248else 9249 if test -n "$ac_ct_OTOOL64"; then 9250 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9251else 9252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9253for as_dir in $PATH 9254do 9255 IFS=$as_save_IFS 9256 test -z "$as_dir" && as_dir=. 9257 for ac_exec_ext in '' $ac_executable_extensions; do 9258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9259 ac_cv_prog_ac_ct_OTOOL64="otool64" 9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9261 break 2 9262 fi 9263done 9264 done 9265IFS=$as_save_IFS 9266 9267fi 9268fi 9269ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9270if test -n "$ac_ct_OTOOL64"; then 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9272$as_echo "$ac_ct_OTOOL64" >&6; } 9273else 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9275$as_echo "no" >&6; } 9276fi 9277 9278 if test "x$ac_ct_OTOOL64" = x; then 9279 OTOOL64=":" 9280 else 9281 case $cross_compiling:$ac_tool_warned in 9282yes:) 9283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9285ac_tool_warned=yes ;; 9286esac 9287 OTOOL64=$ac_ct_OTOOL64 9288 fi 9289else 9290 OTOOL64="$ac_cv_prog_OTOOL64" 9291fi 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9320$as_echo_n "checking for -single_module linker flag... " >&6; } 9321if ${lt_cv_apple_cc_single_mod+:} false; then : 9322 $as_echo_n "(cached) " >&6 9323else 9324 lt_cv_apple_cc_single_mod=no 9325 if test -z "$LT_MULTI_MODULE"; then 9326 # By default we will add the -single_module flag. You can override 9327 # by either setting the environment variable LT_MULTI_MODULE 9328 # non-empty at configure time, or by adding -multi_module to the 9329 # link flags. 9330 rm -rf libconftest.dylib* 9331 echo "int foo(void){return 1;}" > conftest.c 9332 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9333-dynamiclib -Wl,-single_module conftest.c" >&5 9334 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9335 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9336 _lt_result=$? 9337 # If there is a non-empty error log, and "single_module" 9338 # appears in it, assume the flag caused a linker warning 9339 if test -s conftest.err && $GREP single_module conftest.err; then 9340 cat conftest.err >&5 9341 # Otherwise, if the output was created with a 0 exit code from 9342 # the compiler, it worked. 9343 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9344 lt_cv_apple_cc_single_mod=yes 9345 else 9346 cat conftest.err >&5 9347 fi 9348 rm -rf libconftest.dylib* 9349 rm -f conftest.* 9350 fi 9351fi 9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9353$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9354 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9356$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9357if ${lt_cv_ld_exported_symbols_list+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359else 9360 lt_cv_ld_exported_symbols_list=no 9361 save_LDFLAGS=$LDFLAGS 9362 echo "_main" > conftest.sym 9363 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9365/* end confdefs.h. */ 9366 9367int 9368main () 9369{ 9370 9371 ; 9372 return 0; 9373} 9374_ACEOF 9375if ac_fn_c_try_link "$LINENO"; then : 9376 lt_cv_ld_exported_symbols_list=yes 9377else 9378 lt_cv_ld_exported_symbols_list=no 9379fi 9380rm -f core conftest.err conftest.$ac_objext \ 9381 conftest$ac_exeext conftest.$ac_ext 9382 LDFLAGS=$save_LDFLAGS 9383 9384fi 9385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9386$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9387 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9389$as_echo_n "checking for -force_load linker flag... " >&6; } 9390if ${lt_cv_ld_force_load+:} false; then : 9391 $as_echo_n "(cached) " >&6 9392else 9393 lt_cv_ld_force_load=no 9394 cat > conftest.c << _LT_EOF 9395int forced_loaded() { return 2;} 9396_LT_EOF 9397 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9398 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9399 echo "$AR cru libconftest.a conftest.o" >&5 9400 $AR cru libconftest.a conftest.o 2>&5 9401 echo "$RANLIB libconftest.a" >&5 9402 $RANLIB libconftest.a 2>&5 9403 cat > conftest.c << _LT_EOF 9404int main() { return 0;} 9405_LT_EOF 9406 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9407 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9408 _lt_result=$? 9409 if test -s conftest.err && $GREP force_load conftest.err; then 9410 cat conftest.err >&5 9411 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9412 lt_cv_ld_force_load=yes 9413 else 9414 cat conftest.err >&5 9415 fi 9416 rm -f conftest.err libconftest.a conftest conftest.c 9417 rm -rf conftest.dSYM 9418 9419fi 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9421$as_echo "$lt_cv_ld_force_load" >&6; } 9422 case $host_os in 9423 rhapsody* | darwin1.[012]) 9424 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9425 darwin1.*) 9426 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9427 darwin*) # darwin 5.x on 9428 # if running on 10.5 or later, the deployment target defaults 9429 # to the OS version, if on x86, and 10.4, the deployment 9430 # target defaults to 10.4. Don't you love it? 9431 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9432 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9433 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9434 10.[012][,.]*) 9435 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9436 10.*) 9437 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9438 esac 9439 ;; 9440 esac 9441 if test yes = "$lt_cv_apple_cc_single_mod"; then 9442 _lt_dar_single_mod='$single_module' 9443 fi 9444 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9445 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9446 else 9447 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9448 fi 9449 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9450 _lt_dsymutil='~$DSYMUTIL $lib || :' 9451 else 9452 _lt_dsymutil= 9453 fi 9454 ;; 9455 esac 9456 9457# func_munge_path_list VARIABLE PATH 9458# ----------------------------------- 9459# VARIABLE is name of variable containing _space_ separated list of 9460# directories to be munged by the contents of PATH, which is string 9461# having a format: 9462# "DIR[:DIR]:" 9463# string "DIR[ DIR]" will be prepended to VARIABLE 9464# ":DIR[:DIR]" 9465# string "DIR[ DIR]" will be appended to VARIABLE 9466# "DIRP[:DIRP]::[DIRA:]DIRA" 9467# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9468# "DIRA[ DIRA]" will be appended to VARIABLE 9469# "DIR[:DIR]" 9470# VARIABLE will be replaced by "DIR[ DIR]" 9471func_munge_path_list () 9472{ 9473 case x$2 in 9474 x) 9475 ;; 9476 *:) 9477 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9478 ;; 9479 x:*) 9480 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9481 ;; 9482 *::*) 9483 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9484 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9485 ;; 9486 *) 9487 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9488 ;; 9489 esac 9490} 9491 9492for ac_header in dlfcn.h 9493do : 9494 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9495" 9496if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9497 cat >>confdefs.h <<_ACEOF 9498#define HAVE_DLFCN_H 1 9499_ACEOF 9500 9501fi 9502 9503done 9504 9505 9506 9507 9508 9509# Set options 9510 9511 9512 9513 enable_dlopen=no 9514 9515 9516 9517 # Check whether --enable-shared was given. 9518if test "${enable_shared+set}" = set; then : 9519 enableval=$enable_shared; p=${PACKAGE-default} 9520 case $enableval in 9521 yes) enable_shared=yes ;; 9522 no) enable_shared=no ;; 9523 *) 9524 enable_shared=no 9525 # Look at the argument we got. We use all the common list separators. 9526 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9527 for pkg in $enableval; do 9528 IFS=$lt_save_ifs 9529 if test "X$pkg" = "X$p"; then 9530 enable_shared=yes 9531 fi 9532 done 9533 IFS=$lt_save_ifs 9534 ;; 9535 esac 9536else 9537 enable_shared=yes 9538fi 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 # Check whether --enable-static was given. 9549if test "${enable_static+set}" = set; then : 9550 enableval=$enable_static; p=${PACKAGE-default} 9551 case $enableval in 9552 yes) enable_static=yes ;; 9553 no) enable_static=no ;; 9554 *) 9555 enable_static=no 9556 # Look at the argument we got. We use all the common list separators. 9557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9558 for pkg in $enableval; do 9559 IFS=$lt_save_ifs 9560 if test "X$pkg" = "X$p"; then 9561 enable_static=yes 9562 fi 9563 done 9564 IFS=$lt_save_ifs 9565 ;; 9566 esac 9567else 9568 enable_static=yes 9569fi 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580# Check whether --with-pic was given. 9581if test "${with_pic+set}" = set; then : 9582 withval=$with_pic; lt_p=${PACKAGE-default} 9583 case $withval in 9584 yes|no) pic_mode=$withval ;; 9585 *) 9586 pic_mode=default 9587 # Look at the argument we got. We use all the common list separators. 9588 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9589 for lt_pkg in $withval; do 9590 IFS=$lt_save_ifs 9591 if test "X$lt_pkg" = "X$lt_p"; then 9592 pic_mode=yes 9593 fi 9594 done 9595 IFS=$lt_save_ifs 9596 ;; 9597 esac 9598else 9599 pic_mode=default 9600fi 9601 9602 9603 9604 9605 9606 9607 9608 9609 # Check whether --enable-fast-install was given. 9610if test "${enable_fast_install+set}" = set; then : 9611 enableval=$enable_fast_install; p=${PACKAGE-default} 9612 case $enableval in 9613 yes) enable_fast_install=yes ;; 9614 no) enable_fast_install=no ;; 9615 *) 9616 enable_fast_install=no 9617 # Look at the argument we got. We use all the common list separators. 9618 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9619 for pkg in $enableval; do 9620 IFS=$lt_save_ifs 9621 if test "X$pkg" = "X$p"; then 9622 enable_fast_install=yes 9623 fi 9624 done 9625 IFS=$lt_save_ifs 9626 ;; 9627 esac 9628else 9629 enable_fast_install=yes 9630fi 9631 9632 9633 9634 9635 9636 9637 9638 9639 shared_archive_member_spec= 9640case $host,$enable_shared in 9641power*-*-aix[5-9]*,yes) 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9643$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9644 9645# Check whether --with-aix-soname was given. 9646if test "${with_aix_soname+set}" = set; then : 9647 withval=$with_aix_soname; case $withval in 9648 aix|svr4|both) 9649 ;; 9650 *) 9651 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9652 ;; 9653 esac 9654 lt_cv_with_aix_soname=$with_aix_soname 9655else 9656 if ${lt_cv_with_aix_soname+:} false; then : 9657 $as_echo_n "(cached) " >&6 9658else 9659 lt_cv_with_aix_soname=aix 9660fi 9661 9662 with_aix_soname=$lt_cv_with_aix_soname 9663fi 9664 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9666$as_echo "$with_aix_soname" >&6; } 9667 if test aix != "$with_aix_soname"; then 9668 # For the AIX way of multilib, we name the shared archive member 9669 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9670 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9671 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9672 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9673 if test 64 = "${OBJECT_MODE-32}"; then 9674 shared_archive_member_spec=shr_64 9675 else 9676 shared_archive_member_spec=shr 9677 fi 9678 fi 9679 ;; 9680*) 9681 with_aix_soname=aix 9682 ;; 9683esac 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694# This can be used to rebuild libtool when needed 9695LIBTOOL_DEPS=$ltmain 9696 9697# Always use our own libtool. 9698LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729test -z "$LN_S" && LN_S="ln -s" 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744if test -n "${ZSH_VERSION+set}"; then 9745 setopt NO_GLOB_SUBST 9746fi 9747 9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9749$as_echo_n "checking for objdir... " >&6; } 9750if ${lt_cv_objdir+:} false; then : 9751 $as_echo_n "(cached) " >&6 9752else 9753 rm -f .libs 2>/dev/null 9754mkdir .libs 2>/dev/null 9755if test -d .libs; then 9756 lt_cv_objdir=.libs 9757else 9758 # MS-DOS does not allow filenames that begin with a dot. 9759 lt_cv_objdir=_libs 9760fi 9761rmdir .libs 2>/dev/null 9762fi 9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9764$as_echo "$lt_cv_objdir" >&6; } 9765objdir=$lt_cv_objdir 9766 9767 9768 9769 9770 9771cat >>confdefs.h <<_ACEOF 9772#define LT_OBJDIR "$lt_cv_objdir/" 9773_ACEOF 9774 9775 9776 9777 9778case $host_os in 9779aix3*) 9780 # AIX sometimes has problems with the GCC collect2 program. For some 9781 # reason, if we set the COLLECT_NAMES environment variable, the problems 9782 # vanish in a puff of smoke. 9783 if test set != "${COLLECT_NAMES+set}"; then 9784 COLLECT_NAMES= 9785 export COLLECT_NAMES 9786 fi 9787 ;; 9788esac 9789 9790# Global variables: 9791ofile=libtool 9792can_build_shared=yes 9793 9794# All known linkers require a '.a' archive for static linking (except MSVC, 9795# which needs '.lib'). 9796libext=a 9797 9798with_gnu_ld=$lt_cv_prog_gnu_ld 9799 9800old_CC=$CC 9801old_CFLAGS=$CFLAGS 9802 9803# Set sane defaults for various variables 9804test -z "$CC" && CC=cc 9805test -z "$LTCC" && LTCC=$CC 9806test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9807test -z "$LD" && LD=ld 9808test -z "$ac_objext" && ac_objext=o 9809 9810func_cc_basename $compiler 9811cc_basename=$func_cc_basename_result 9812 9813 9814# Only perform the check for file, if the check method requires it 9815test -z "$MAGIC_CMD" && MAGIC_CMD=file 9816case $deplibs_check_method in 9817file_magic*) 9818 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9820$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9821if ${lt_cv_path_MAGIC_CMD+:} false; then : 9822 $as_echo_n "(cached) " >&6 9823else 9824 case $MAGIC_CMD in 9825[\\/*] | ?:[\\/]*) 9826 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9827 ;; 9828*) 9829 lt_save_MAGIC_CMD=$MAGIC_CMD 9830 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9831 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9832 for ac_dir in $ac_dummy; do 9833 IFS=$lt_save_ifs 9834 test -z "$ac_dir" && ac_dir=. 9835 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9836 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9837 if test -n "$file_magic_test_file"; then 9838 case $deplibs_check_method in 9839 "file_magic "*) 9840 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9841 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9842 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9843 $EGREP "$file_magic_regex" > /dev/null; then 9844 : 9845 else 9846 cat <<_LT_EOF 1>&2 9847 9848*** Warning: the command libtool uses to detect shared libraries, 9849*** $file_magic_cmd, produces output that libtool cannot recognize. 9850*** The result is that libtool may fail to recognize shared libraries 9851*** as such. This will affect the creation of libtool libraries that 9852*** depend on shared libraries, but programs linked with such libtool 9853*** libraries will work regardless of this problem. Nevertheless, you 9854*** may want to report the problem to your system manager and/or to 9855*** bug-libtool@gnu.org 9856 9857_LT_EOF 9858 fi ;; 9859 esac 9860 fi 9861 break 9862 fi 9863 done 9864 IFS=$lt_save_ifs 9865 MAGIC_CMD=$lt_save_MAGIC_CMD 9866 ;; 9867esac 9868fi 9869 9870MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9871if test -n "$MAGIC_CMD"; then 9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9873$as_echo "$MAGIC_CMD" >&6; } 9874else 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9876$as_echo "no" >&6; } 9877fi 9878 9879 9880 9881 9882 9883if test -z "$lt_cv_path_MAGIC_CMD"; then 9884 if test -n "$ac_tool_prefix"; then 9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9886$as_echo_n "checking for file... " >&6; } 9887if ${lt_cv_path_MAGIC_CMD+:} false; then : 9888 $as_echo_n "(cached) " >&6 9889else 9890 case $MAGIC_CMD in 9891[\\/*] | ?:[\\/]*) 9892 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9893 ;; 9894*) 9895 lt_save_MAGIC_CMD=$MAGIC_CMD 9896 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9898 for ac_dir in $ac_dummy; do 9899 IFS=$lt_save_ifs 9900 test -z "$ac_dir" && ac_dir=. 9901 if test -f "$ac_dir/file"; then 9902 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9903 if test -n "$file_magic_test_file"; then 9904 case $deplibs_check_method in 9905 "file_magic "*) 9906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9907 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9909 $EGREP "$file_magic_regex" > /dev/null; then 9910 : 9911 else 9912 cat <<_LT_EOF 1>&2 9913 9914*** Warning: the command libtool uses to detect shared libraries, 9915*** $file_magic_cmd, produces output that libtool cannot recognize. 9916*** The result is that libtool may fail to recognize shared libraries 9917*** as such. This will affect the creation of libtool libraries that 9918*** depend on shared libraries, but programs linked with such libtool 9919*** libraries will work regardless of this problem. Nevertheless, you 9920*** may want to report the problem to your system manager and/or to 9921*** bug-libtool@gnu.org 9922 9923_LT_EOF 9924 fi ;; 9925 esac 9926 fi 9927 break 9928 fi 9929 done 9930 IFS=$lt_save_ifs 9931 MAGIC_CMD=$lt_save_MAGIC_CMD 9932 ;; 9933esac 9934fi 9935 9936MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9937if test -n "$MAGIC_CMD"; then 9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9939$as_echo "$MAGIC_CMD" >&6; } 9940else 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9942$as_echo "no" >&6; } 9943fi 9944 9945 9946 else 9947 MAGIC_CMD=: 9948 fi 9949fi 9950 9951 fi 9952 ;; 9953esac 9954 9955# Use C for the default configuration in the libtool script 9956 9957lt_save_CC=$CC 9958ac_ext=c 9959ac_cpp='$CPP $CPPFLAGS' 9960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9962ac_compiler_gnu=$ac_cv_c_compiler_gnu 9963 9964 9965# Source file extension for C test sources. 9966ac_ext=c 9967 9968# Object file extension for compiled C test sources. 9969objext=o 9970objext=$objext 9971 9972# Code to be used in simple compile tests 9973lt_simple_compile_test_code="int some_variable = 0;" 9974 9975# Code to be used in simple link tests 9976lt_simple_link_test_code='int main(){return(0);}' 9977 9978 9979 9980 9981 9982 9983 9984# If no C compiler was specified, use CC. 9985LTCC=${LTCC-"$CC"} 9986 9987# If no C compiler flags were specified, use CFLAGS. 9988LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9989 9990# Allow CC to be a program name with arguments. 9991compiler=$CC 9992 9993# Save the default compiler, since it gets overwritten when the other 9994# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9995compiler_DEFAULT=$CC 9996 9997# save warnings/boilerplate of simple test code 9998ac_outfile=conftest.$ac_objext 9999echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10000eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10001_lt_compiler_boilerplate=`cat conftest.err` 10002$RM conftest* 10003 10004ac_outfile=conftest.$ac_objext 10005echo "$lt_simple_link_test_code" >conftest.$ac_ext 10006eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10007_lt_linker_boilerplate=`cat conftest.err` 10008$RM -r conftest* 10009 10010 10011## CAVEAT EMPTOR: 10012## There is no encapsulation within the following macros, do not change 10013## the running order or otherwise move them around unless you know exactly 10014## what you are doing... 10015if test -n "$compiler"; then 10016 10017lt_prog_compiler_no_builtin_flag= 10018 10019if test yes = "$GCC"; then 10020 case $cc_basename in 10021 nvcc*) 10022 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10023 *) 10024 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10025 esac 10026 10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10028$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10029if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10030 $as_echo_n "(cached) " >&6 10031else 10032 lt_cv_prog_compiler_rtti_exceptions=no 10033 ac_outfile=conftest.$ac_objext 10034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10035 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10036 # Insert the option either (1) after the last *FLAGS variable, or 10037 # (2) before a word containing "conftest.", or (3) at the end. 10038 # Note that $ac_compile itself does not contain backslashes and begins 10039 # with a dollar sign (not a hyphen), so the echo should work correctly. 10040 # The option is referenced via a variable to avoid confusing sed. 10041 lt_compile=`echo "$ac_compile" | $SED \ 10042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10044 -e 's:$: $lt_compiler_flag:'` 10045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10046 (eval "$lt_compile" 2>conftest.err) 10047 ac_status=$? 10048 cat conftest.err >&5 10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10050 if (exit $ac_status) && test -s "$ac_outfile"; then 10051 # The compiler can only warn and ignore the option if not recognized 10052 # So say no if there are warnings other than the usual output. 10053 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10054 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10055 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10056 lt_cv_prog_compiler_rtti_exceptions=yes 10057 fi 10058 fi 10059 $RM conftest* 10060 10061fi 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10063$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10064 10065if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10066 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10067else 10068 : 10069fi 10070 10071fi 10072 10073 10074 10075 10076 10077 10078 lt_prog_compiler_wl= 10079lt_prog_compiler_pic= 10080lt_prog_compiler_static= 10081 10082 10083 if test yes = "$GCC"; then 10084 lt_prog_compiler_wl='-Wl,' 10085 lt_prog_compiler_static='-static' 10086 10087 case $host_os in 10088 aix*) 10089 # All AIX code is PIC. 10090 if test ia64 = "$host_cpu"; then 10091 # AIX 5 now supports IA64 processor 10092 lt_prog_compiler_static='-Bstatic' 10093 fi 10094 lt_prog_compiler_pic='-fPIC' 10095 ;; 10096 10097 amigaos*) 10098 case $host_cpu in 10099 powerpc) 10100 # see comment about AmigaOS4 .so support 10101 lt_prog_compiler_pic='-fPIC' 10102 ;; 10103 m68k) 10104 # FIXME: we need at least 68020 code to build shared libraries, but 10105 # adding the '-m68020' flag to GCC prevents building anything better, 10106 # like '-m68040'. 10107 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10108 ;; 10109 esac 10110 ;; 10111 10112 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10113 # PIC is the default for these OSes. 10114 ;; 10115 10116 mingw* | cygwin* | pw32* | os2* | cegcc*) 10117 # This hack is so that the source file can tell whether it is being 10118 # built for inclusion in a dll (and should export symbols for example). 10119 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10120 # (--disable-auto-import) libraries 10121 lt_prog_compiler_pic='-DDLL_EXPORT' 10122 case $host_os in 10123 os2*) 10124 lt_prog_compiler_static='$wl-static' 10125 ;; 10126 esac 10127 ;; 10128 10129 darwin* | rhapsody*) 10130 # PIC is the default on this platform 10131 # Common symbols not allowed in MH_DYLIB files 10132 lt_prog_compiler_pic='-fno-common' 10133 ;; 10134 10135 haiku*) 10136 # PIC is the default for Haiku. 10137 # The "-static" flag exists, but is broken. 10138 lt_prog_compiler_static= 10139 ;; 10140 10141 hpux*) 10142 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10143 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10144 # sets the default TLS model and affects inlining. 10145 case $host_cpu in 10146 hppa*64*) 10147 # +Z the default 10148 ;; 10149 *) 10150 lt_prog_compiler_pic='-fPIC' 10151 ;; 10152 esac 10153 ;; 10154 10155 interix[3-9]*) 10156 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10157 # Instead, we relocate shared libraries at runtime. 10158 ;; 10159 10160 msdosdjgpp*) 10161 # Just because we use GCC doesn't mean we suddenly get shared libraries 10162 # on systems that don't support them. 10163 lt_prog_compiler_can_build_shared=no 10164 enable_shared=no 10165 ;; 10166 10167 *nto* | *qnx*) 10168 # QNX uses GNU C++, but need to define -shared option too, otherwise 10169 # it will coredump. 10170 lt_prog_compiler_pic='-fPIC -shared' 10171 ;; 10172 10173 sysv4*MP*) 10174 if test -d /usr/nec; then 10175 lt_prog_compiler_pic=-Kconform_pic 10176 fi 10177 ;; 10178 10179 *) 10180 lt_prog_compiler_pic='-fPIC' 10181 ;; 10182 esac 10183 10184 case $cc_basename in 10185 nvcc*) # Cuda Compiler Driver 2.2 10186 lt_prog_compiler_wl='-Xlinker ' 10187 if test -n "$lt_prog_compiler_pic"; then 10188 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10189 fi 10190 ;; 10191 esac 10192 else 10193 # PORTME Check for flag to pass linker flags through the system compiler. 10194 case $host_os in 10195 aix*) 10196 lt_prog_compiler_wl='-Wl,' 10197 if test ia64 = "$host_cpu"; then 10198 # AIX 5 now supports IA64 processor 10199 lt_prog_compiler_static='-Bstatic' 10200 else 10201 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10202 fi 10203 ;; 10204 10205 darwin* | rhapsody*) 10206 # PIC is the default on this platform 10207 # Common symbols not allowed in MH_DYLIB files 10208 lt_prog_compiler_pic='-fno-common' 10209 case $cc_basename in 10210 nagfor*) 10211 # NAG Fortran compiler 10212 lt_prog_compiler_wl='-Wl,-Wl,,' 10213 lt_prog_compiler_pic='-PIC' 10214 lt_prog_compiler_static='-Bstatic' 10215 ;; 10216 esac 10217 ;; 10218 10219 mingw* | cygwin* | pw32* | os2* | cegcc*) 10220 # This hack is so that the source file can tell whether it is being 10221 # built for inclusion in a dll (and should export symbols for example). 10222 lt_prog_compiler_pic='-DDLL_EXPORT' 10223 case $host_os in 10224 os2*) 10225 lt_prog_compiler_static='$wl-static' 10226 ;; 10227 esac 10228 ;; 10229 10230 hpux9* | hpux10* | hpux11*) 10231 lt_prog_compiler_wl='-Wl,' 10232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10233 # not for PA HP-UX. 10234 case $host_cpu in 10235 hppa*64*|ia64*) 10236 # +Z the default 10237 ;; 10238 *) 10239 lt_prog_compiler_pic='+Z' 10240 ;; 10241 esac 10242 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10243 lt_prog_compiler_static='$wl-a ${wl}archive' 10244 ;; 10245 10246 irix5* | irix6* | nonstopux*) 10247 lt_prog_compiler_wl='-Wl,' 10248 # PIC (with -KPIC) is the default. 10249 lt_prog_compiler_static='-non_shared' 10250 ;; 10251 10252 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10253 case $cc_basename in 10254 # old Intel for x86_64, which still supported -KPIC. 10255 ecc*) 10256 lt_prog_compiler_wl='-Wl,' 10257 lt_prog_compiler_pic='-KPIC' 10258 lt_prog_compiler_static='-static' 10259 ;; 10260 # icc used to be incompatible with GCC. 10261 # ICC 10 doesn't accept -KPIC any more. 10262 icc* | ifort*) 10263 lt_prog_compiler_wl='-Wl,' 10264 lt_prog_compiler_pic='-fPIC' 10265 lt_prog_compiler_static='-static' 10266 ;; 10267 # Lahey Fortran 8.1. 10268 lf95*) 10269 lt_prog_compiler_wl='-Wl,' 10270 lt_prog_compiler_pic='--shared' 10271 lt_prog_compiler_static='--static' 10272 ;; 10273 nagfor*) 10274 # NAG Fortran compiler 10275 lt_prog_compiler_wl='-Wl,-Wl,,' 10276 lt_prog_compiler_pic='-PIC' 10277 lt_prog_compiler_static='-Bstatic' 10278 ;; 10279 tcc*) 10280 # Fabrice Bellard et al's Tiny C Compiler 10281 lt_prog_compiler_wl='-Wl,' 10282 lt_prog_compiler_pic='-fPIC' 10283 lt_prog_compiler_static='-static' 10284 ;; 10285 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10286 # Portland Group compilers (*not* the Pentium gcc compiler, 10287 # which looks to be a dead project) 10288 lt_prog_compiler_wl='-Wl,' 10289 lt_prog_compiler_pic='-fpic' 10290 lt_prog_compiler_static='-Bstatic' 10291 ;; 10292 ccc*) 10293 lt_prog_compiler_wl='-Wl,' 10294 # All Alpha code is PIC. 10295 lt_prog_compiler_static='-non_shared' 10296 ;; 10297 xl* | bgxl* | bgf* | mpixl*) 10298 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10299 lt_prog_compiler_wl='-Wl,' 10300 lt_prog_compiler_pic='-qpic' 10301 lt_prog_compiler_static='-qstaticlink' 10302 ;; 10303 *) 10304 case `$CC -V 2>&1 | sed 5q` in 10305 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10306 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10307 lt_prog_compiler_pic='-KPIC' 10308 lt_prog_compiler_static='-Bstatic' 10309 lt_prog_compiler_wl='' 10310 ;; 10311 *Sun\ F* | *Sun*Fortran*) 10312 lt_prog_compiler_pic='-KPIC' 10313 lt_prog_compiler_static='-Bstatic' 10314 lt_prog_compiler_wl='-Qoption ld ' 10315 ;; 10316 *Sun\ C*) 10317 # Sun C 5.9 10318 lt_prog_compiler_pic='-KPIC' 10319 lt_prog_compiler_static='-Bstatic' 10320 lt_prog_compiler_wl='-Wl,' 10321 ;; 10322 *Intel*\ [CF]*Compiler*) 10323 lt_prog_compiler_wl='-Wl,' 10324 lt_prog_compiler_pic='-fPIC' 10325 lt_prog_compiler_static='-static' 10326 ;; 10327 *Portland\ Group*) 10328 lt_prog_compiler_wl='-Wl,' 10329 lt_prog_compiler_pic='-fpic' 10330 lt_prog_compiler_static='-Bstatic' 10331 ;; 10332 esac 10333 ;; 10334 esac 10335 ;; 10336 10337 newsos6) 10338 lt_prog_compiler_pic='-KPIC' 10339 lt_prog_compiler_static='-Bstatic' 10340 ;; 10341 10342 *nto* | *qnx*) 10343 # QNX uses GNU C++, but need to define -shared option too, otherwise 10344 # it will coredump. 10345 lt_prog_compiler_pic='-fPIC -shared' 10346 ;; 10347 10348 osf3* | osf4* | osf5*) 10349 lt_prog_compiler_wl='-Wl,' 10350 # All OSF/1 code is PIC. 10351 lt_prog_compiler_static='-non_shared' 10352 ;; 10353 10354 rdos*) 10355 lt_prog_compiler_static='-non_shared' 10356 ;; 10357 10358 solaris*) 10359 lt_prog_compiler_pic='-KPIC' 10360 lt_prog_compiler_static='-Bstatic' 10361 case $cc_basename in 10362 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10363 lt_prog_compiler_wl='-Qoption ld ';; 10364 *) 10365 lt_prog_compiler_wl='-Wl,';; 10366 esac 10367 ;; 10368 10369 sunos4*) 10370 lt_prog_compiler_wl='-Qoption ld ' 10371 lt_prog_compiler_pic='-PIC' 10372 lt_prog_compiler_static='-Bstatic' 10373 ;; 10374 10375 sysv4 | sysv4.2uw2* | sysv4.3*) 10376 lt_prog_compiler_wl='-Wl,' 10377 lt_prog_compiler_pic='-KPIC' 10378 lt_prog_compiler_static='-Bstatic' 10379 ;; 10380 10381 sysv4*MP*) 10382 if test -d /usr/nec; then 10383 lt_prog_compiler_pic='-Kconform_pic' 10384 lt_prog_compiler_static='-Bstatic' 10385 fi 10386 ;; 10387 10388 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10389 lt_prog_compiler_wl='-Wl,' 10390 lt_prog_compiler_pic='-KPIC' 10391 lt_prog_compiler_static='-Bstatic' 10392 ;; 10393 10394 unicos*) 10395 lt_prog_compiler_wl='-Wl,' 10396 lt_prog_compiler_can_build_shared=no 10397 ;; 10398 10399 uts4*) 10400 lt_prog_compiler_pic='-pic' 10401 lt_prog_compiler_static='-Bstatic' 10402 ;; 10403 10404 *) 10405 lt_prog_compiler_can_build_shared=no 10406 ;; 10407 esac 10408 fi 10409 10410case $host_os in 10411 # For platforms that do not support PIC, -DPIC is meaningless: 10412 *djgpp*) 10413 lt_prog_compiler_pic= 10414 ;; 10415 *) 10416 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10417 ;; 10418esac 10419 10420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10421$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10422if ${lt_cv_prog_compiler_pic+:} false; then : 10423 $as_echo_n "(cached) " >&6 10424else 10425 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10426fi 10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10428$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10429lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10430 10431# 10432# Check to make sure the PIC flag actually works. 10433# 10434if test -n "$lt_prog_compiler_pic"; then 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10436$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10437if ${lt_cv_prog_compiler_pic_works+:} false; then : 10438 $as_echo_n "(cached) " >&6 10439else 10440 lt_cv_prog_compiler_pic_works=no 10441 ac_outfile=conftest.$ac_objext 10442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10443 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10444 # Insert the option either (1) after the last *FLAGS variable, or 10445 # (2) before a word containing "conftest.", or (3) at the end. 10446 # Note that $ac_compile itself does not contain backslashes and begins 10447 # with a dollar sign (not a hyphen), so the echo should work correctly. 10448 # The option is referenced via a variable to avoid confusing sed. 10449 lt_compile=`echo "$ac_compile" | $SED \ 10450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10452 -e 's:$: $lt_compiler_flag:'` 10453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10454 (eval "$lt_compile" 2>conftest.err) 10455 ac_status=$? 10456 cat conftest.err >&5 10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10458 if (exit $ac_status) && test -s "$ac_outfile"; then 10459 # The compiler can only warn and ignore the option if not recognized 10460 # So say no if there are warnings other than the usual output. 10461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10464 lt_cv_prog_compiler_pic_works=yes 10465 fi 10466 fi 10467 $RM conftest* 10468 10469fi 10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10471$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10472 10473if test yes = "$lt_cv_prog_compiler_pic_works"; then 10474 case $lt_prog_compiler_pic in 10475 "" | " "*) ;; 10476 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10477 esac 10478else 10479 lt_prog_compiler_pic= 10480 lt_prog_compiler_can_build_shared=no 10481fi 10482 10483fi 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495# 10496# Check to make sure the static flag actually works. 10497# 10498wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10500$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10501if ${lt_cv_prog_compiler_static_works+:} false; then : 10502 $as_echo_n "(cached) " >&6 10503else 10504 lt_cv_prog_compiler_static_works=no 10505 save_LDFLAGS=$LDFLAGS 10506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10507 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10509 # The linker can only warn and ignore the option if not recognized 10510 # So say no if there are warnings 10511 if test -s conftest.err; then 10512 # Append any errors to the config.log. 10513 cat conftest.err 1>&5 10514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10516 if diff conftest.exp conftest.er2 >/dev/null; then 10517 lt_cv_prog_compiler_static_works=yes 10518 fi 10519 else 10520 lt_cv_prog_compiler_static_works=yes 10521 fi 10522 fi 10523 $RM -r conftest* 10524 LDFLAGS=$save_LDFLAGS 10525 10526fi 10527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10528$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10529 10530if test yes = "$lt_cv_prog_compiler_static_works"; then 10531 : 10532else 10533 lt_prog_compiler_static= 10534fi 10535 10536 10537 10538 10539 10540 10541 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10543$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10544if ${lt_cv_prog_compiler_c_o+:} false; then : 10545 $as_echo_n "(cached) " >&6 10546else 10547 lt_cv_prog_compiler_c_o=no 10548 $RM -r conftest 2>/dev/null 10549 mkdir conftest 10550 cd conftest 10551 mkdir out 10552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10553 10554 lt_compiler_flag="-o out/conftest2.$ac_objext" 10555 # Insert the option either (1) after the last *FLAGS variable, or 10556 # (2) before a word containing "conftest.", or (3) at the end. 10557 # Note that $ac_compile itself does not contain backslashes and begins 10558 # with a dollar sign (not a hyphen), so the echo should work correctly. 10559 lt_compile=`echo "$ac_compile" | $SED \ 10560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10562 -e 's:$: $lt_compiler_flag:'` 10563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10564 (eval "$lt_compile" 2>out/conftest.err) 10565 ac_status=$? 10566 cat out/conftest.err >&5 10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10568 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10569 then 10570 # The compiler can only warn and ignore the option if not recognized 10571 # So say no if there are warnings 10572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10575 lt_cv_prog_compiler_c_o=yes 10576 fi 10577 fi 10578 chmod u+w . 2>&5 10579 $RM conftest* 10580 # SGI C++ compiler will create directory out/ii_files/ for 10581 # template instantiation 10582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10583 $RM out/* && rmdir out 10584 cd .. 10585 $RM -r conftest 10586 $RM conftest* 10587 10588fi 10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10590$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10591 10592 10593 10594 10595 10596 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10598$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10599if ${lt_cv_prog_compiler_c_o+:} false; then : 10600 $as_echo_n "(cached) " >&6 10601else 10602 lt_cv_prog_compiler_c_o=no 10603 $RM -r conftest 2>/dev/null 10604 mkdir conftest 10605 cd conftest 10606 mkdir out 10607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10608 10609 lt_compiler_flag="-o out/conftest2.$ac_objext" 10610 # Insert the option either (1) after the last *FLAGS variable, or 10611 # (2) before a word containing "conftest.", or (3) at the end. 10612 # Note that $ac_compile itself does not contain backslashes and begins 10613 # with a dollar sign (not a hyphen), so the echo should work correctly. 10614 lt_compile=`echo "$ac_compile" | $SED \ 10615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10617 -e 's:$: $lt_compiler_flag:'` 10618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10619 (eval "$lt_compile" 2>out/conftest.err) 10620 ac_status=$? 10621 cat out/conftest.err >&5 10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10623 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10624 then 10625 # The compiler can only warn and ignore the option if not recognized 10626 # So say no if there are warnings 10627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10630 lt_cv_prog_compiler_c_o=yes 10631 fi 10632 fi 10633 chmod u+w . 2>&5 10634 $RM conftest* 10635 # SGI C++ compiler will create directory out/ii_files/ for 10636 # template instantiation 10637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10638 $RM out/* && rmdir out 10639 cd .. 10640 $RM -r conftest 10641 $RM conftest* 10642 10643fi 10644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10645$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10646 10647 10648 10649 10650hard_links=nottested 10651if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10652 # do not overwrite the value of need_locks provided by the user 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10654$as_echo_n "checking if we can lock with hard links... " >&6; } 10655 hard_links=yes 10656 $RM conftest* 10657 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10658 touch conftest.a 10659 ln conftest.a conftest.b 2>&5 || hard_links=no 10660 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10662$as_echo "$hard_links" >&6; } 10663 if test no = "$hard_links"; then 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10665$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10666 need_locks=warn 10667 fi 10668else 10669 need_locks=no 10670fi 10671 10672 10673 10674 10675 10676 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10678$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10679 10680 runpath_var= 10681 allow_undefined_flag= 10682 always_export_symbols=no 10683 archive_cmds= 10684 archive_expsym_cmds= 10685 compiler_needs_object=no 10686 enable_shared_with_static_runtimes=no 10687 export_dynamic_flag_spec= 10688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10689 hardcode_automatic=no 10690 hardcode_direct=no 10691 hardcode_direct_absolute=no 10692 hardcode_libdir_flag_spec= 10693 hardcode_libdir_separator= 10694 hardcode_minus_L=no 10695 hardcode_shlibpath_var=unsupported 10696 inherit_rpath=no 10697 link_all_deplibs=unknown 10698 module_cmds= 10699 module_expsym_cmds= 10700 old_archive_from_new_cmds= 10701 old_archive_from_expsyms_cmds= 10702 thread_safe_flag_spec= 10703 whole_archive_flag_spec= 10704 # include_expsyms should be a list of space-separated symbols to be *always* 10705 # included in the symbol list 10706 include_expsyms= 10707 # exclude_expsyms can be an extended regexp of symbols to exclude 10708 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10709 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10710 # as well as any symbol that contains 'd'. 10711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10713 # platforms (ab)use it in PIC code, but their linkers get confused if 10714 # the symbol is explicitly referenced. Since portable code cannot 10715 # rely on this symbol name, it's probably fine to never include it in 10716 # preloaded symbol tables. 10717 # Exclude shared library initialization/finalization symbols. 10718 extract_expsyms_cmds= 10719 10720 case $host_os in 10721 cygwin* | mingw* | pw32* | cegcc*) 10722 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10723 # When not using gcc, we currently assume that we are using 10724 # Microsoft Visual C++. 10725 if test yes != "$GCC"; then 10726 with_gnu_ld=no 10727 fi 10728 ;; 10729 interix*) 10730 # we just hope/assume this is gcc and not c89 (= MSVC++) 10731 with_gnu_ld=yes 10732 ;; 10733 openbsd* | bitrig*) 10734 with_gnu_ld=no 10735 ;; 10736 linux* | k*bsd*-gnu | gnu*) 10737 link_all_deplibs=no 10738 ;; 10739 esac 10740 10741 ld_shlibs=yes 10742 10743 # On some targets, GNU ld is compatible enough with the native linker 10744 # that we're better off using the native interface for both. 10745 lt_use_gnu_ld_interface=no 10746 if test yes = "$with_gnu_ld"; then 10747 case $host_os in 10748 aix*) 10749 # The AIX port of GNU ld has always aspired to compatibility 10750 # with the native linker. However, as the warning in the GNU ld 10751 # block says, versions before 2.19.5* couldn't really create working 10752 # shared libraries, regardless of the interface used. 10753 case `$LD -v 2>&1` in 10754 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10755 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10756 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10757 *) 10758 lt_use_gnu_ld_interface=yes 10759 ;; 10760 esac 10761 ;; 10762 *) 10763 lt_use_gnu_ld_interface=yes 10764 ;; 10765 esac 10766 fi 10767 10768 if test yes = "$lt_use_gnu_ld_interface"; then 10769 # If archive_cmds runs LD, not CC, wlarc should be empty 10770 wlarc='$wl' 10771 10772 # Set some defaults for GNU ld with shared library support. These 10773 # are reset later if shared libraries are not supported. Putting them 10774 # here allows them to be overridden if necessary. 10775 runpath_var=LD_RUN_PATH 10776 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10777 export_dynamic_flag_spec='$wl--export-dynamic' 10778 # ancient GNU ld didn't support --whole-archive et. al. 10779 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10780 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10781 else 10782 whole_archive_flag_spec= 10783 fi 10784 supports_anon_versioning=no 10785 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10786 *GNU\ gold*) supports_anon_versioning=yes ;; 10787 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10788 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10789 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10790 *\ 2.11.*) ;; # other 2.11 versions 10791 *) supports_anon_versioning=yes ;; 10792 esac 10793 10794 # See if GNU ld supports shared libraries. 10795 case $host_os in 10796 aix[3-9]*) 10797 # On AIX/PPC, the GNU linker is very broken 10798 if test ia64 != "$host_cpu"; then 10799 ld_shlibs=no 10800 cat <<_LT_EOF 1>&2 10801 10802*** Warning: the GNU linker, at least up to release 2.19, is reported 10803*** to be unable to reliably create shared libraries on AIX. 10804*** Therefore, libtool is disabling shared libraries support. If you 10805*** really care for shared libraries, you may want to install binutils 10806*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10807*** You will then need to restart the configuration process. 10808 10809_LT_EOF 10810 fi 10811 ;; 10812 10813 amigaos*) 10814 case $host_cpu in 10815 powerpc) 10816 # see comment about AmigaOS4 .so support 10817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10818 archive_expsym_cmds='' 10819 ;; 10820 m68k) 10821 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)' 10822 hardcode_libdir_flag_spec='-L$libdir' 10823 hardcode_minus_L=yes 10824 ;; 10825 esac 10826 ;; 10827 10828 beos*) 10829 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10830 allow_undefined_flag=unsupported 10831 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10832 # support --undefined. This deserves some investigation. FIXME 10833 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10834 else 10835 ld_shlibs=no 10836 fi 10837 ;; 10838 10839 cygwin* | mingw* | pw32* | cegcc*) 10840 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10841 # as there is no search path for DLLs. 10842 hardcode_libdir_flag_spec='-L$libdir' 10843 export_dynamic_flag_spec='$wl--export-all-symbols' 10844 allow_undefined_flag=unsupported 10845 always_export_symbols=no 10846 enable_shared_with_static_runtimes=yes 10847 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' 10848 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10849 10850 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10852 # If the export-symbols file already is a .def file, use it as 10853 # is; otherwise, prepend EXPORTS... 10854 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10855 cp $export_symbols $output_objdir/$soname.def; 10856 else 10857 echo EXPORTS > $output_objdir/$soname.def; 10858 cat $export_symbols >> $output_objdir/$soname.def; 10859 fi~ 10860 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10861 else 10862 ld_shlibs=no 10863 fi 10864 ;; 10865 10866 haiku*) 10867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10868 link_all_deplibs=yes 10869 ;; 10870 10871 os2*) 10872 hardcode_libdir_flag_spec='-L$libdir' 10873 hardcode_minus_L=yes 10874 allow_undefined_flag=unsupported 10875 shrext_cmds=.dll 10876 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10877 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10878 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10879 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10880 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10881 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10882 emximp -o $lib $output_objdir/$libname.def' 10883 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10884 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10885 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10886 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10887 prefix_cmds="$SED"~ 10888 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10889 prefix_cmds="$prefix_cmds -e 1d"; 10890 fi~ 10891 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10892 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10893 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10894 emximp -o $lib $output_objdir/$libname.def' 10895 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10896 enable_shared_with_static_runtimes=yes 10897 ;; 10898 10899 interix[3-9]*) 10900 hardcode_direct=no 10901 hardcode_shlibpath_var=no 10902 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10903 export_dynamic_flag_spec='$wl-E' 10904 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10905 # Instead, shared libraries are loaded at an image base (0x10000000 by 10906 # default) and relocated if they conflict, which is a slow very memory 10907 # consuming and fragmenting process. To avoid this, we pick a random, 10908 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10909 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10910 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10911 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' 10912 ;; 10913 10914 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10915 tmp_diet=no 10916 if test linux-dietlibc = "$host_os"; then 10917 case $cc_basename in 10918 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10919 esac 10920 fi 10921 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10922 && test no = "$tmp_diet" 10923 then 10924 tmp_addflag=' $pic_flag' 10925 tmp_sharedflag='-shared' 10926 case $cc_basename,$host_cpu in 10927 pgcc*) # Portland Group C compiler 10928 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' 10929 tmp_addflag=' $pic_flag' 10930 ;; 10931 pgf77* | pgf90* | pgf95* | pgfortran*) 10932 # Portland Group f77 and f90 compilers 10933 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' 10934 tmp_addflag=' $pic_flag -Mnomain' ;; 10935 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10936 tmp_addflag=' -i_dynamic' ;; 10937 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10938 tmp_addflag=' -i_dynamic -nofor_main' ;; 10939 ifc* | ifort*) # Intel Fortran compiler 10940 tmp_addflag=' -nofor_main' ;; 10941 lf95*) # Lahey Fortran 8.1 10942 whole_archive_flag_spec= 10943 tmp_sharedflag='--shared' ;; 10944 nagfor*) # NAGFOR 5.3 10945 tmp_sharedflag='-Wl,-shared' ;; 10946 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10947 tmp_sharedflag='-qmkshrobj' 10948 tmp_addflag= ;; 10949 nvcc*) # Cuda Compiler Driver 2.2 10950 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' 10951 compiler_needs_object=yes 10952 ;; 10953 esac 10954 case `$CC -V 2>&1 | sed 5q` in 10955 *Sun\ C*) # Sun C 5.9 10956 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' 10957 compiler_needs_object=yes 10958 tmp_sharedflag='-G' ;; 10959 *Sun\ F*) # Sun Fortran 8.3 10960 tmp_sharedflag='-G' ;; 10961 esac 10962 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10963 10964 if test yes = "$supports_anon_versioning"; then 10965 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10966 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10967 echo "local: *; };" >> $output_objdir/$libname.ver~ 10968 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10969 fi 10970 10971 case $cc_basename in 10972 tcc*) 10973 export_dynamic_flag_spec='-rdynamic' 10974 ;; 10975 xlf* | bgf* | bgxlf* | mpixlf*) 10976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10978 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10979 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10980 if test yes = "$supports_anon_versioning"; then 10981 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10982 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10983 echo "local: *; };" >> $output_objdir/$libname.ver~ 10984 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10985 fi 10986 ;; 10987 esac 10988 else 10989 ld_shlibs=no 10990 fi 10991 ;; 10992 10993 netbsd* | netbsdelf*-gnu) 10994 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10995 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10996 wlarc= 10997 else 10998 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10999 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11000 fi 11001 ;; 11002 11003 solaris*) 11004 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11005 ld_shlibs=no 11006 cat <<_LT_EOF 1>&2 11007 11008*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11009*** create shared libraries on Solaris systems. Therefore, libtool 11010*** is disabling shared libraries support. We urge you to upgrade GNU 11011*** binutils to release 2.9.1 or newer. Another option is to modify 11012*** your PATH or compiler configuration so that the native linker is 11013*** used, and then restart. 11014 11015_LT_EOF 11016 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11017 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11018 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11019 else 11020 ld_shlibs=no 11021 fi 11022 ;; 11023 11024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11025 case `$LD -v 2>&1` in 11026 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11027 ld_shlibs=no 11028 cat <<_LT_EOF 1>&2 11029 11030*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11031*** reliably create shared libraries on SCO systems. Therefore, libtool 11032*** is disabling shared libraries support. We urge you to upgrade GNU 11033*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11034*** your PATH or compiler configuration so that the native linker is 11035*** used, and then restart. 11036 11037_LT_EOF 11038 ;; 11039 *) 11040 # For security reasons, it is highly recommended that you always 11041 # use absolute paths for naming shared libraries, and exclude the 11042 # DT_RUNPATH tag from executables and libraries. But doing so 11043 # requires that you compile everything twice, which is a pain. 11044 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11045 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11048 else 11049 ld_shlibs=no 11050 fi 11051 ;; 11052 esac 11053 ;; 11054 11055 sunos4*) 11056 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11057 wlarc= 11058 hardcode_direct=yes 11059 hardcode_shlibpath_var=no 11060 ;; 11061 11062 *) 11063 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11064 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11065 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11066 else 11067 ld_shlibs=no 11068 fi 11069 ;; 11070 esac 11071 11072 if test no = "$ld_shlibs"; then 11073 runpath_var= 11074 hardcode_libdir_flag_spec= 11075 export_dynamic_flag_spec= 11076 whole_archive_flag_spec= 11077 fi 11078 else 11079 # PORTME fill in a description of your system's linker (not GNU ld) 11080 case $host_os in 11081 aix3*) 11082 allow_undefined_flag=unsupported 11083 always_export_symbols=yes 11084 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' 11085 # Note: this linker hardcodes the directories in LIBPATH if there 11086 # are no directories specified by -L. 11087 hardcode_minus_L=yes 11088 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11089 # Neither direct hardcoding nor static linking is supported with a 11090 # broken collect2. 11091 hardcode_direct=unsupported 11092 fi 11093 ;; 11094 11095 aix[4-9]*) 11096 if test ia64 = "$host_cpu"; then 11097 # On IA64, the linker does run time linking by default, so we don't 11098 # have to do anything special. 11099 aix_use_runtimelinking=no 11100 exp_sym_flag='-Bexport' 11101 no_entry_flag= 11102 else 11103 # If we're using GNU nm, then we don't want the "-C" option. 11104 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11105 # Without the "-l" option, or with the "-B" option, AIX nm treats 11106 # weak defined symbols like other global defined symbols, whereas 11107 # GNU nm marks them as "W". 11108 # While the 'weak' keyword is ignored in the Export File, we need 11109 # it in the Import File for the 'aix-soname' feature, so we have 11110 # to replace the "-B" option with "-P" for AIX nm. 11111 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11112 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' 11113 else 11114 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' 11115 fi 11116 aix_use_runtimelinking=no 11117 11118 # Test if we are trying to use run time linking or normal 11119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11120 # have runtime linking enabled, and use it for executables. 11121 # For shared libraries, we enable/disable runtime linking 11122 # depending on the kind of the shared library created - 11123 # when "with_aix_soname,aix_use_runtimelinking" is: 11124 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11125 # "aix,yes" lib.so shared, rtl:yes, for executables 11126 # lib.a static archive 11127 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11128 # lib.a(lib.so.V) shared, rtl:no, for executables 11129 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11130 # lib.a(lib.so.V) shared, rtl:no 11131 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11132 # lib.a static archive 11133 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11134 for ld_flag in $LDFLAGS; do 11135 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11136 aix_use_runtimelinking=yes 11137 break 11138 fi 11139 done 11140 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11141 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11142 # so we don't have lib.a shared libs to link our executables. 11143 # We have to force runtime linking in this case. 11144 aix_use_runtimelinking=yes 11145 LDFLAGS="$LDFLAGS -Wl,-brtl" 11146 fi 11147 ;; 11148 esac 11149 11150 exp_sym_flag='-bexport' 11151 no_entry_flag='-bnoentry' 11152 fi 11153 11154 # When large executables or shared objects are built, AIX ld can 11155 # have problems creating the table of contents. If linking a library 11156 # or program results in "error TOC overflow" add -mminimal-toc to 11157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11159 11160 archive_cmds='' 11161 hardcode_direct=yes 11162 hardcode_direct_absolute=yes 11163 hardcode_libdir_separator=':' 11164 link_all_deplibs=yes 11165 file_list_spec='$wl-f,' 11166 case $with_aix_soname,$aix_use_runtimelinking in 11167 aix,*) ;; # traditional, no import file 11168 svr4,* | *,yes) # use import file 11169 # The Import File defines what to hardcode. 11170 hardcode_direct=no 11171 hardcode_direct_absolute=no 11172 ;; 11173 esac 11174 11175 if test yes = "$GCC"; then 11176 case $host_os in aix4.[012]|aix4.[012].*) 11177 # We only want to do this on AIX 4.2 and lower, the check 11178 # below for broken collect2 doesn't work under 4.3+ 11179 collect2name=`$CC -print-prog-name=collect2` 11180 if test -f "$collect2name" && 11181 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11182 then 11183 # We have reworked collect2 11184 : 11185 else 11186 # We have old collect2 11187 hardcode_direct=unsupported 11188 # It fails to find uninstalled libraries when the uninstalled 11189 # path is not listed in the libpath. Setting hardcode_minus_L 11190 # to unsupported forces relinking 11191 hardcode_minus_L=yes 11192 hardcode_libdir_flag_spec='-L$libdir' 11193 hardcode_libdir_separator= 11194 fi 11195 ;; 11196 esac 11197 shared_flag='-shared' 11198 if test yes = "$aix_use_runtimelinking"; then 11199 shared_flag="$shared_flag "'$wl-G' 11200 fi 11201 # Need to ensure runtime linking is disabled for the traditional 11202 # shared library, or the linker may eventually find shared libraries 11203 # /with/ Import File - we do not want to mix them. 11204 shared_flag_aix='-shared' 11205 shared_flag_svr4='-shared $wl-G' 11206 else 11207 # not using gcc 11208 if test ia64 = "$host_cpu"; then 11209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11210 # chokes on -Wl,-G. The following line is correct: 11211 shared_flag='-G' 11212 else 11213 if test yes = "$aix_use_runtimelinking"; then 11214 shared_flag='$wl-G' 11215 else 11216 shared_flag='$wl-bM:SRE' 11217 fi 11218 shared_flag_aix='$wl-bM:SRE' 11219 shared_flag_svr4='$wl-G' 11220 fi 11221 fi 11222 11223 export_dynamic_flag_spec='$wl-bexpall' 11224 # It seems that -bexpall does not export symbols beginning with 11225 # underscore (_), so it is better to generate a list of symbols to export. 11226 always_export_symbols=yes 11227 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11228 # Warning - without using the other runtime loading flags (-brtl), 11229 # -berok will link without error, but may produce a broken library. 11230 allow_undefined_flag='-berok' 11231 # Determine the default libpath from the value encoded in an 11232 # empty executable. 11233 if test set = "${lt_cv_aix_libpath+set}"; then 11234 aix_libpath=$lt_cv_aix_libpath 11235else 11236 if ${lt_cv_aix_libpath_+:} false; then : 11237 $as_echo_n "(cached) " >&6 11238else 11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11240/* end confdefs.h. */ 11241 11242int 11243main () 11244{ 11245 11246 ; 11247 return 0; 11248} 11249_ACEOF 11250if ac_fn_c_try_link "$LINENO"; then : 11251 11252 lt_aix_libpath_sed=' 11253 /Import File Strings/,/^$/ { 11254 /^0/ { 11255 s/^0 *\([^ ]*\) *$/\1/ 11256 p 11257 } 11258 }' 11259 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11260 # Check for a 64-bit object if we didn't find anything. 11261 if test -z "$lt_cv_aix_libpath_"; then 11262 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11263 fi 11264fi 11265rm -f core conftest.err conftest.$ac_objext \ 11266 conftest$ac_exeext conftest.$ac_ext 11267 if test -z "$lt_cv_aix_libpath_"; then 11268 lt_cv_aix_libpath_=/usr/lib:/lib 11269 fi 11270 11271fi 11272 11273 aix_libpath=$lt_cv_aix_libpath_ 11274fi 11275 11276 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11277 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 11278 else 11279 if test ia64 = "$host_cpu"; then 11280 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11281 allow_undefined_flag="-z nodefs" 11282 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" 11283 else 11284 # Determine the default libpath from the value encoded in an 11285 # empty executable. 11286 if test set = "${lt_cv_aix_libpath+set}"; then 11287 aix_libpath=$lt_cv_aix_libpath 11288else 11289 if ${lt_cv_aix_libpath_+:} false; then : 11290 $as_echo_n "(cached) " >&6 11291else 11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11293/* end confdefs.h. */ 11294 11295int 11296main () 11297{ 11298 11299 ; 11300 return 0; 11301} 11302_ACEOF 11303if ac_fn_c_try_link "$LINENO"; then : 11304 11305 lt_aix_libpath_sed=' 11306 /Import File Strings/,/^$/ { 11307 /^0/ { 11308 s/^0 *\([^ ]*\) *$/\1/ 11309 p 11310 } 11311 }' 11312 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11313 # Check for a 64-bit object if we didn't find anything. 11314 if test -z "$lt_cv_aix_libpath_"; then 11315 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11316 fi 11317fi 11318rm -f core conftest.err conftest.$ac_objext \ 11319 conftest$ac_exeext conftest.$ac_ext 11320 if test -z "$lt_cv_aix_libpath_"; then 11321 lt_cv_aix_libpath_=/usr/lib:/lib 11322 fi 11323 11324fi 11325 11326 aix_libpath=$lt_cv_aix_libpath_ 11327fi 11328 11329 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11330 # Warning - without using the other run time loading flags, 11331 # -berok will link without error, but may produce a broken library. 11332 no_undefined_flag=' $wl-bernotok' 11333 allow_undefined_flag=' $wl-berok' 11334 if test yes = "$with_gnu_ld"; then 11335 # We only use this code for GNU lds that support --whole-archive. 11336 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11337 else 11338 # Exported symbols can be pulled into shared objects from archives 11339 whole_archive_flag_spec='$convenience' 11340 fi 11341 archive_cmds_need_lc=yes 11342 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11343 # -brtl affects multiple linker settings, -berok does not and is overridden later 11344 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11345 if test svr4 != "$with_aix_soname"; then 11346 # This is similar to how AIX traditionally builds its shared libraries. 11347 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' 11348 fi 11349 if test aix != "$with_aix_soname"; then 11350 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' 11351 else 11352 # used by -dlpreopen to get the symbols 11353 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11354 fi 11355 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11356 fi 11357 fi 11358 ;; 11359 11360 amigaos*) 11361 case $host_cpu in 11362 powerpc) 11363 # see comment about AmigaOS4 .so support 11364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11365 archive_expsym_cmds='' 11366 ;; 11367 m68k) 11368 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)' 11369 hardcode_libdir_flag_spec='-L$libdir' 11370 hardcode_minus_L=yes 11371 ;; 11372 esac 11373 ;; 11374 11375 bsdi[45]*) 11376 export_dynamic_flag_spec=-rdynamic 11377 ;; 11378 11379 cygwin* | mingw* | pw32* | cegcc*) 11380 # When not using gcc, we currently assume that we are using 11381 # Microsoft Visual C++. 11382 # hardcode_libdir_flag_spec is actually meaningless, as there is 11383 # no search path for DLLs. 11384 case $cc_basename in 11385 cl*) 11386 # Native MSVC 11387 hardcode_libdir_flag_spec=' ' 11388 allow_undefined_flag=unsupported 11389 always_export_symbols=yes 11390 file_list_spec='@' 11391 # Tell ltmain to make .lib files, not .a files. 11392 libext=lib 11393 # Tell ltmain to make .dll files, not .so files. 11394 shrext_cmds=.dll 11395 # FIXME: Setting linknames here is a bad hack. 11396 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11397 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11398 cp "$export_symbols" "$output_objdir/$soname.def"; 11399 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11400 else 11401 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11402 fi~ 11403 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11404 linknames=' 11405 # The linker will not automatically build a static lib if we build a DLL. 11406 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11407 enable_shared_with_static_runtimes=yes 11408 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11409 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11410 # Don't use ranlib 11411 old_postinstall_cmds='chmod 644 $oldlib' 11412 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11413 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11414 case $lt_outputfile in 11415 *.exe|*.EXE) ;; 11416 *) 11417 lt_outputfile=$lt_outputfile.exe 11418 lt_tool_outputfile=$lt_tool_outputfile.exe 11419 ;; 11420 esac~ 11421 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11422 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11423 $RM "$lt_outputfile.manifest"; 11424 fi' 11425 ;; 11426 *) 11427 # Assume MSVC wrapper 11428 hardcode_libdir_flag_spec=' ' 11429 allow_undefined_flag=unsupported 11430 # Tell ltmain to make .lib files, not .a files. 11431 libext=lib 11432 # Tell ltmain to make .dll files, not .so files. 11433 shrext_cmds=.dll 11434 # FIXME: Setting linknames here is a bad hack. 11435 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11436 # The linker will automatically build a .lib file if we build a DLL. 11437 old_archive_from_new_cmds='true' 11438 # FIXME: Should let the user specify the lib program. 11439 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11440 enable_shared_with_static_runtimes=yes 11441 ;; 11442 esac 11443 ;; 11444 11445 darwin* | rhapsody*) 11446 11447 11448 archive_cmds_need_lc=no 11449 hardcode_direct=no 11450 hardcode_automatic=yes 11451 hardcode_shlibpath_var=unsupported 11452 if test yes = "$lt_cv_ld_force_load"; then 11453 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\"`' 11454 11455 else 11456 whole_archive_flag_spec='' 11457 fi 11458 link_all_deplibs=yes 11459 allow_undefined_flag=$_lt_dar_allow_undefined 11460 case $cc_basename in 11461 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11462 *) _lt_dar_can_shared=$GCC ;; 11463 esac 11464 if test yes = "$_lt_dar_can_shared"; then 11465 output_verbose_link_cmd=func_echo_all 11466 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11467 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11468 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" 11469 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" 11470 11471 else 11472 ld_shlibs=no 11473 fi 11474 11475 ;; 11476 11477 dgux*) 11478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11479 hardcode_libdir_flag_spec='-L$libdir' 11480 hardcode_shlibpath_var=no 11481 ;; 11482 11483 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11484 # support. Future versions do this automatically, but an explicit c++rt0.o 11485 # does not break anything, and helps significantly (at the cost of a little 11486 # extra space). 11487 freebsd2.2*) 11488 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11489 hardcode_libdir_flag_spec='-R$libdir' 11490 hardcode_direct=yes 11491 hardcode_shlibpath_var=no 11492 ;; 11493 11494 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11495 freebsd2.*) 11496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11497 hardcode_direct=yes 11498 hardcode_minus_L=yes 11499 hardcode_shlibpath_var=no 11500 ;; 11501 11502 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11503 freebsd* | dragonfly*) 11504 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11505 hardcode_libdir_flag_spec='-R$libdir' 11506 hardcode_direct=yes 11507 hardcode_shlibpath_var=no 11508 ;; 11509 11510 hpux9*) 11511 if test yes = "$GCC"; then 11512 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' 11513 else 11514 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' 11515 fi 11516 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11517 hardcode_libdir_separator=: 11518 hardcode_direct=yes 11519 11520 # hardcode_minus_L: Not really in the search PATH, 11521 # but as the default location of the library. 11522 hardcode_minus_L=yes 11523 export_dynamic_flag_spec='$wl-E' 11524 ;; 11525 11526 hpux10*) 11527 if test yes,no = "$GCC,$with_gnu_ld"; then 11528 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11529 else 11530 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11531 fi 11532 if test no = "$with_gnu_ld"; then 11533 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11534 hardcode_libdir_separator=: 11535 hardcode_direct=yes 11536 hardcode_direct_absolute=yes 11537 export_dynamic_flag_spec='$wl-E' 11538 # hardcode_minus_L: Not really in the search PATH, 11539 # but as the default location of the library. 11540 hardcode_minus_L=yes 11541 fi 11542 ;; 11543 11544 hpux11*) 11545 if test yes,no = "$GCC,$with_gnu_ld"; then 11546 case $host_cpu in 11547 hppa*64*) 11548 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11549 ;; 11550 ia64*) 11551 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11552 ;; 11553 *) 11554 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11555 ;; 11556 esac 11557 else 11558 case $host_cpu in 11559 hppa*64*) 11560 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11561 ;; 11562 ia64*) 11563 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11564 ;; 11565 *) 11566 11567 # Older versions of the 11.00 compiler do not understand -b yet 11568 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11570$as_echo_n "checking if $CC understands -b... " >&6; } 11571if ${lt_cv_prog_compiler__b+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 lt_cv_prog_compiler__b=no 11575 save_LDFLAGS=$LDFLAGS 11576 LDFLAGS="$LDFLAGS -b" 11577 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11578 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11579 # The linker can only warn and ignore the option if not recognized 11580 # So say no if there are warnings 11581 if test -s conftest.err; then 11582 # Append any errors to the config.log. 11583 cat conftest.err 1>&5 11584 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11585 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11586 if diff conftest.exp conftest.er2 >/dev/null; then 11587 lt_cv_prog_compiler__b=yes 11588 fi 11589 else 11590 lt_cv_prog_compiler__b=yes 11591 fi 11592 fi 11593 $RM -r conftest* 11594 LDFLAGS=$save_LDFLAGS 11595 11596fi 11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11598$as_echo "$lt_cv_prog_compiler__b" >&6; } 11599 11600if test yes = "$lt_cv_prog_compiler__b"; then 11601 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11602else 11603 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11604fi 11605 11606 ;; 11607 esac 11608 fi 11609 if test no = "$with_gnu_ld"; then 11610 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11611 hardcode_libdir_separator=: 11612 11613 case $host_cpu in 11614 hppa*64*|ia64*) 11615 hardcode_direct=no 11616 hardcode_shlibpath_var=no 11617 ;; 11618 *) 11619 hardcode_direct=yes 11620 hardcode_direct_absolute=yes 11621 export_dynamic_flag_spec='$wl-E' 11622 11623 # hardcode_minus_L: Not really in the search PATH, 11624 # but as the default location of the library. 11625 hardcode_minus_L=yes 11626 ;; 11627 esac 11628 fi 11629 ;; 11630 11631 irix5* | irix6* | nonstopux*) 11632 if test yes = "$GCC"; then 11633 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' 11634 # Try to use the -exported_symbol ld option, if it does not 11635 # work, assume that -exports_file does not work either and 11636 # implicitly export all symbols. 11637 # This should be the same for all languages, so no per-tag cache variable. 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11639$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11640if ${lt_cv_irix_exported_symbol+:} false; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 save_LDFLAGS=$LDFLAGS 11644 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11646/* end confdefs.h. */ 11647int foo (void) { return 0; } 11648_ACEOF 11649if ac_fn_c_try_link "$LINENO"; then : 11650 lt_cv_irix_exported_symbol=yes 11651else 11652 lt_cv_irix_exported_symbol=no 11653fi 11654rm -f core conftest.err conftest.$ac_objext \ 11655 conftest$ac_exeext conftest.$ac_ext 11656 LDFLAGS=$save_LDFLAGS 11657fi 11658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11659$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11660 if test yes = "$lt_cv_irix_exported_symbol"; then 11661 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' 11662 fi 11663 link_all_deplibs=no 11664 else 11665 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' 11666 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' 11667 fi 11668 archive_cmds_need_lc='no' 11669 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11670 hardcode_libdir_separator=: 11671 inherit_rpath=yes 11672 link_all_deplibs=yes 11673 ;; 11674 11675 linux*) 11676 case $cc_basename in 11677 tcc*) 11678 # Fabrice Bellard et al's Tiny C Compiler 11679 ld_shlibs=yes 11680 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11681 ;; 11682 esac 11683 ;; 11684 11685 netbsd* | netbsdelf*-gnu) 11686 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11688 else 11689 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11690 fi 11691 hardcode_libdir_flag_spec='-R$libdir' 11692 hardcode_direct=yes 11693 hardcode_shlibpath_var=no 11694 ;; 11695 11696 newsos6) 11697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11698 hardcode_direct=yes 11699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11700 hardcode_libdir_separator=: 11701 hardcode_shlibpath_var=no 11702 ;; 11703 11704 *nto* | *qnx*) 11705 ;; 11706 11707 openbsd* | bitrig*) 11708 if test -f /usr/libexec/ld.so; then 11709 hardcode_direct=yes 11710 hardcode_shlibpath_var=no 11711 hardcode_direct_absolute=yes 11712 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11713 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11714 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11715 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11716 export_dynamic_flag_spec='$wl-E' 11717 else 11718 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11719 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11720 fi 11721 else 11722 ld_shlibs=no 11723 fi 11724 ;; 11725 11726 os2*) 11727 hardcode_libdir_flag_spec='-L$libdir' 11728 hardcode_minus_L=yes 11729 allow_undefined_flag=unsupported 11730 shrext_cmds=.dll 11731 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11732 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11733 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11734 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11735 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11736 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11737 emximp -o $lib $output_objdir/$libname.def' 11738 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11739 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11740 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11741 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11742 prefix_cmds="$SED"~ 11743 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11744 prefix_cmds="$prefix_cmds -e 1d"; 11745 fi~ 11746 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11747 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11748 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11749 emximp -o $lib $output_objdir/$libname.def' 11750 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11751 enable_shared_with_static_runtimes=yes 11752 ;; 11753 11754 osf3*) 11755 if test yes = "$GCC"; then 11756 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11757 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' 11758 else 11759 allow_undefined_flag=' -expect_unresolved \*' 11760 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' 11761 fi 11762 archive_cmds_need_lc='no' 11763 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11764 hardcode_libdir_separator=: 11765 ;; 11766 11767 osf4* | osf5*) # as osf3* with the addition of -msym flag 11768 if test yes = "$GCC"; then 11769 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11770 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' 11771 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11772 else 11773 allow_undefined_flag=' -expect_unresolved \*' 11774 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' 11775 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~ 11776 $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' 11777 11778 # Both c and cxx compiler support -rpath directly 11779 hardcode_libdir_flag_spec='-rpath $libdir' 11780 fi 11781 archive_cmds_need_lc='no' 11782 hardcode_libdir_separator=: 11783 ;; 11784 11785 solaris*) 11786 no_undefined_flag=' -z defs' 11787 if test yes = "$GCC"; then 11788 wlarc='$wl' 11789 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11790 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11791 $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' 11792 else 11793 case `$CC -V 2>&1` in 11794 *"Compilers 5.0"*) 11795 wlarc='' 11796 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11797 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11798 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11799 ;; 11800 *) 11801 wlarc='$wl' 11802 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11803 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11804 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11805 ;; 11806 esac 11807 fi 11808 hardcode_libdir_flag_spec='-R$libdir' 11809 hardcode_shlibpath_var=no 11810 case $host_os in 11811 solaris2.[0-5] | solaris2.[0-5].*) ;; 11812 *) 11813 # The compiler driver will combine and reorder linker options, 11814 # but understands '-z linker_flag'. GCC discards it without '$wl', 11815 # but is careful enough not to reorder. 11816 # Supported since Solaris 2.6 (maybe 2.5.1?) 11817 if test yes = "$GCC"; then 11818 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11819 else 11820 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11821 fi 11822 ;; 11823 esac 11824 link_all_deplibs=yes 11825 ;; 11826 11827 sunos4*) 11828 if test sequent = "$host_vendor"; then 11829 # Use $CC to link under sequent, because it throws in some extra .o 11830 # files that make .init and .fini sections work. 11831 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11832 else 11833 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11834 fi 11835 hardcode_libdir_flag_spec='-L$libdir' 11836 hardcode_direct=yes 11837 hardcode_minus_L=yes 11838 hardcode_shlibpath_var=no 11839 ;; 11840 11841 sysv4) 11842 case $host_vendor in 11843 sni) 11844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11845 hardcode_direct=yes # is this really true??? 11846 ;; 11847 siemens) 11848 ## LD is ld it makes a PLAMLIB 11849 ## CC just makes a GrossModule. 11850 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11851 reload_cmds='$CC -r -o $output$reload_objs' 11852 hardcode_direct=no 11853 ;; 11854 motorola) 11855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11856 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11857 ;; 11858 esac 11859 runpath_var='LD_RUN_PATH' 11860 hardcode_shlibpath_var=no 11861 ;; 11862 11863 sysv4.3*) 11864 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11865 hardcode_shlibpath_var=no 11866 export_dynamic_flag_spec='-Bexport' 11867 ;; 11868 11869 sysv4*MP*) 11870 if test -d /usr/nec; then 11871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11872 hardcode_shlibpath_var=no 11873 runpath_var=LD_RUN_PATH 11874 hardcode_runpath_var=yes 11875 ld_shlibs=yes 11876 fi 11877 ;; 11878 11879 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11880 no_undefined_flag='$wl-z,text' 11881 archive_cmds_need_lc=no 11882 hardcode_shlibpath_var=no 11883 runpath_var='LD_RUN_PATH' 11884 11885 if test yes = "$GCC"; then 11886 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11887 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11888 else 11889 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11890 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11891 fi 11892 ;; 11893 11894 sysv5* | sco3.2v5* | sco5v6*) 11895 # Note: We CANNOT use -z defs as we might desire, because we do not 11896 # link with -lc, and that would cause any symbols used from libc to 11897 # always be unresolved, which means just about no library would 11898 # ever link correctly. If we're not using GNU ld we use -z text 11899 # though, which does catch some bad symbols but isn't as heavy-handed 11900 # as -z defs. 11901 no_undefined_flag='$wl-z,text' 11902 allow_undefined_flag='$wl-z,nodefs' 11903 archive_cmds_need_lc=no 11904 hardcode_shlibpath_var=no 11905 hardcode_libdir_flag_spec='$wl-R,$libdir' 11906 hardcode_libdir_separator=':' 11907 link_all_deplibs=yes 11908 export_dynamic_flag_spec='$wl-Bexport' 11909 runpath_var='LD_RUN_PATH' 11910 11911 if test yes = "$GCC"; then 11912 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11913 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11914 else 11915 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11916 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11917 fi 11918 ;; 11919 11920 uts4*) 11921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11922 hardcode_libdir_flag_spec='-L$libdir' 11923 hardcode_shlibpath_var=no 11924 ;; 11925 11926 *) 11927 ld_shlibs=no 11928 ;; 11929 esac 11930 11931 if test sni = "$host_vendor"; then 11932 case $host in 11933 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11934 export_dynamic_flag_spec='$wl-Blargedynsym' 11935 ;; 11936 esac 11937 fi 11938 fi 11939 11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11941$as_echo "$ld_shlibs" >&6; } 11942test no = "$ld_shlibs" && can_build_shared=no 11943 11944with_gnu_ld=$with_gnu_ld 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960# 11961# Do we need to explicitly link libc? 11962# 11963case "x$archive_cmds_need_lc" in 11964x|xyes) 11965 # Assume -lc should be added 11966 archive_cmds_need_lc=yes 11967 11968 if test yes,yes = "$GCC,$enable_shared"; then 11969 case $archive_cmds in 11970 *'~'*) 11971 # FIXME: we may have to deal with multi-command sequences. 11972 ;; 11973 '$CC '*) 11974 # Test whether the compiler implicitly links with -lc since on some 11975 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11976 # to ld, don't add -lc before -lgcc. 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11978$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11979if ${lt_cv_archive_cmds_need_lc+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 $RM conftest* 11983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11984 11985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11986 (eval $ac_compile) 2>&5 11987 ac_status=$? 11988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11989 test $ac_status = 0; } 2>conftest.err; then 11990 soname=conftest 11991 lib=conftest 11992 libobjs=conftest.$ac_objext 11993 deplibs= 11994 wl=$lt_prog_compiler_wl 11995 pic_flag=$lt_prog_compiler_pic 11996 compiler_flags=-v 11997 linker_flags=-v 11998 verstring= 11999 output_objdir=. 12000 libname=conftest 12001 lt_save_allow_undefined_flag=$allow_undefined_flag 12002 allow_undefined_flag= 12003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12004 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12005 ac_status=$? 12006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12007 test $ac_status = 0; } 12008 then 12009 lt_cv_archive_cmds_need_lc=no 12010 else 12011 lt_cv_archive_cmds_need_lc=yes 12012 fi 12013 allow_undefined_flag=$lt_save_allow_undefined_flag 12014 else 12015 cat conftest.err 1>&5 12016 fi 12017 $RM conftest* 12018 12019fi 12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12021$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12022 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12023 ;; 12024 esac 12025 fi 12026 ;; 12027esac 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12181$as_echo_n "checking dynamic linker characteristics... " >&6; } 12182 12183if test yes = "$GCC"; then 12184 case $host_os in 12185 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12186 *) lt_awk_arg='/^libraries:/' ;; 12187 esac 12188 case $host_os in 12189 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12190 *) lt_sed_strip_eq='s|=/|/|g' ;; 12191 esac 12192 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12193 case $lt_search_path_spec in 12194 *\;*) 12195 # if the path contains ";" then we assume it to be the separator 12196 # otherwise default to the standard path separator (i.e. ":") - it is 12197 # assumed that no part of a normal pathname contains ";" but that should 12198 # okay in the real world where ";" in dirpaths is itself problematic. 12199 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12200 ;; 12201 *) 12202 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12203 ;; 12204 esac 12205 # Ok, now we have the path, separated by spaces, we can step through it 12206 # and add multilib dir if necessary... 12207 lt_tmp_lt_search_path_spec= 12208 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12209 # ...but if some path component already ends with the multilib dir we assume 12210 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12211 case "$lt_multi_os_dir; $lt_search_path_spec " in 12212 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12213 lt_multi_os_dir= 12214 ;; 12215 esac 12216 for lt_sys_path in $lt_search_path_spec; do 12217 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12218 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12219 elif test -n "$lt_multi_os_dir"; then 12220 test -d "$lt_sys_path" && \ 12221 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12222 fi 12223 done 12224 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12225BEGIN {RS = " "; FS = "/|\n";} { 12226 lt_foo = ""; 12227 lt_count = 0; 12228 for (lt_i = NF; lt_i > 0; lt_i--) { 12229 if ($lt_i != "" && $lt_i != ".") { 12230 if ($lt_i == "..") { 12231 lt_count++; 12232 } else { 12233 if (lt_count == 0) { 12234 lt_foo = "/" $lt_i lt_foo; 12235 } else { 12236 lt_count--; 12237 } 12238 } 12239 } 12240 } 12241 if (lt_foo != "") { lt_freq[lt_foo]++; } 12242 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12243}'` 12244 # AWK program above erroneously prepends '/' to C:/dos/paths 12245 # for these hosts. 12246 case $host_os in 12247 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12248 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12249 esac 12250 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12251else 12252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12253fi 12254library_names_spec= 12255libname_spec='lib$name' 12256soname_spec= 12257shrext_cmds=.so 12258postinstall_cmds= 12259postuninstall_cmds= 12260finish_cmds= 12261finish_eval= 12262shlibpath_var= 12263shlibpath_overrides_runpath=unknown 12264version_type=none 12265dynamic_linker="$host_os ld.so" 12266sys_lib_dlsearch_path_spec="/lib /usr/lib" 12267need_lib_prefix=unknown 12268hardcode_into_libs=no 12269 12270# when you set need_version to no, make sure it does not cause -set_version 12271# flags to be left without arguments 12272need_version=unknown 12273 12274 12275 12276case $host_os in 12277aix3*) 12278 version_type=linux # correct to gnu/linux during the next big refactor 12279 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12280 shlibpath_var=LIBPATH 12281 12282 # AIX 3 has no versioning support, so we append a major version to the name. 12283 soname_spec='$libname$release$shared_ext$major' 12284 ;; 12285 12286aix[4-9]*) 12287 version_type=linux # correct to gnu/linux during the next big refactor 12288 need_lib_prefix=no 12289 need_version=no 12290 hardcode_into_libs=yes 12291 if test ia64 = "$host_cpu"; then 12292 # AIX 5 supports IA64 12293 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12294 shlibpath_var=LD_LIBRARY_PATH 12295 else 12296 # With GCC up to 2.95.x, collect2 would create an import file 12297 # for dependence libraries. The import file would start with 12298 # the line '#! .'. This would cause the generated library to 12299 # depend on '.', always an invalid library. This was fixed in 12300 # development snapshots of GCC prior to 3.0. 12301 case $host_os in 12302 aix4 | aix4.[01] | aix4.[01].*) 12303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12304 echo ' yes ' 12305 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12306 : 12307 else 12308 can_build_shared=no 12309 fi 12310 ;; 12311 esac 12312 # Using Import Files as archive members, it is possible to support 12313 # filename-based versioning of shared library archives on AIX. While 12314 # this would work for both with and without runtime linking, it will 12315 # prevent static linking of such archives. So we do filename-based 12316 # shared library versioning with .so extension only, which is used 12317 # when both runtime linking and shared linking is enabled. 12318 # Unfortunately, runtime linking may impact performance, so we do 12319 # not want this to be the default eventually. Also, we use the 12320 # versioned .so libs for executables only if there is the -brtl 12321 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12322 # To allow for filename-based versioning support, we need to create 12323 # libNAME.so.V as an archive file, containing: 12324 # *) an Import File, referring to the versioned filename of the 12325 # archive as well as the shared archive member, telling the 12326 # bitwidth (32 or 64) of that shared object, and providing the 12327 # list of exported symbols of that shared object, eventually 12328 # decorated with the 'weak' keyword 12329 # *) the shared object with the F_LOADONLY flag set, to really avoid 12330 # it being seen by the linker. 12331 # At run time we better use the real file rather than another symlink, 12332 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12333 12334 case $with_aix_soname,$aix_use_runtimelinking in 12335 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12336 # soname into executable. Probably we can add versioning support to 12337 # collect2, so additional links can be useful in future. 12338 aix,yes) # traditional libtool 12339 dynamic_linker='AIX unversionable lib.so' 12340 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12341 # instead of lib<name>.a to let people know that these are not 12342 # typical AIX shared libraries. 12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12344 ;; 12345 aix,no) # traditional AIX only 12346 dynamic_linker='AIX lib.a(lib.so.V)' 12347 # We preserve .a as extension for shared libraries through AIX4.2 12348 # and later when we are not doing run time linking. 12349 library_names_spec='$libname$release.a $libname.a' 12350 soname_spec='$libname$release$shared_ext$major' 12351 ;; 12352 svr4,*) # full svr4 only 12353 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12354 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12355 # We do not specify a path in Import Files, so LIBPATH fires. 12356 shlibpath_overrides_runpath=yes 12357 ;; 12358 *,yes) # both, prefer svr4 12359 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12360 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12361 # unpreferred sharedlib libNAME.a needs extra handling 12362 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"' 12363 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"' 12364 # We do not specify a path in Import Files, so LIBPATH fires. 12365 shlibpath_overrides_runpath=yes 12366 ;; 12367 *,no) # both, prefer aix 12368 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12369 library_names_spec='$libname$release.a $libname.a' 12370 soname_spec='$libname$release$shared_ext$major' 12371 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12372 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)' 12373 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"' 12374 ;; 12375 esac 12376 shlibpath_var=LIBPATH 12377 fi 12378 ;; 12379 12380amigaos*) 12381 case $host_cpu in 12382 powerpc) 12383 # Since July 2007 AmigaOS4 officially supports .so libraries. 12384 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12386 ;; 12387 m68k) 12388 library_names_spec='$libname.ixlibrary $libname.a' 12389 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12390 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' 12391 ;; 12392 esac 12393 ;; 12394 12395beos*) 12396 library_names_spec='$libname$shared_ext' 12397 dynamic_linker="$host_os ld.so" 12398 shlibpath_var=LIBRARY_PATH 12399 ;; 12400 12401bsdi[45]*) 12402 version_type=linux # correct to gnu/linux during the next big refactor 12403 need_version=no 12404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12405 soname_spec='$libname$release$shared_ext$major' 12406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12407 shlibpath_var=LD_LIBRARY_PATH 12408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12410 # the default ld.so.conf also contains /usr/contrib/lib and 12411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12412 # libtool to hard-code these into programs 12413 ;; 12414 12415cygwin* | mingw* | pw32* | cegcc*) 12416 version_type=windows 12417 shrext_cmds=.dll 12418 need_version=no 12419 need_lib_prefix=no 12420 12421 case $GCC,$cc_basename in 12422 yes,*) 12423 # gcc 12424 library_names_spec='$libname.dll.a' 12425 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12426 postinstall_cmds='base_file=`basename \$file`~ 12427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12428 dldir=$destdir/`dirname \$dlpath`~ 12429 test -d \$dldir || mkdir -p \$dldir~ 12430 $install_prog $dir/$dlname \$dldir/$dlname~ 12431 chmod a+x \$dldir/$dlname~ 12432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12433 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12434 fi' 12435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12436 dlpath=$dir/\$dldll~ 12437 $RM \$dlpath' 12438 shlibpath_overrides_runpath=yes 12439 12440 case $host_os in 12441 cygwin*) 12442 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12443 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12444 12445 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12446 ;; 12447 mingw* | cegcc*) 12448 # MinGW DLLs use traditional 'lib' prefix 12449 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12450 ;; 12451 pw32*) 12452 # pw32 DLLs use 'pw' prefix rather than 'lib' 12453 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12454 ;; 12455 esac 12456 dynamic_linker='Win32 ld.exe' 12457 ;; 12458 12459 *,cl*) 12460 # Native MSVC 12461 libname_spec='$name' 12462 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12463 library_names_spec='$libname.dll.lib' 12464 12465 case $build_os in 12466 mingw*) 12467 sys_lib_search_path_spec= 12468 lt_save_ifs=$IFS 12469 IFS=';' 12470 for lt_path in $LIB 12471 do 12472 IFS=$lt_save_ifs 12473 # Let DOS variable expansion print the short 8.3 style file name. 12474 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12475 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12476 done 12477 IFS=$lt_save_ifs 12478 # Convert to MSYS style. 12479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12480 ;; 12481 cygwin*) 12482 # Convert to unix form, then to dos form, then back to unix form 12483 # but this time dos style (no spaces!) so that the unix form looks 12484 # like /cygdrive/c/PROGRA~1:/cygdr... 12485 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12486 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12487 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12488 ;; 12489 *) 12490 sys_lib_search_path_spec=$LIB 12491 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12492 # It is most probably a Windows format PATH. 12493 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12494 else 12495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12496 fi 12497 # FIXME: find the short name or the path components, as spaces are 12498 # common. (e.g. "Program Files" -> "PROGRA~1") 12499 ;; 12500 esac 12501 12502 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12503 postinstall_cmds='base_file=`basename \$file`~ 12504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12505 dldir=$destdir/`dirname \$dlpath`~ 12506 test -d \$dldir || mkdir -p \$dldir~ 12507 $install_prog $dir/$dlname \$dldir/$dlname' 12508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12509 dlpath=$dir/\$dldll~ 12510 $RM \$dlpath' 12511 shlibpath_overrides_runpath=yes 12512 dynamic_linker='Win32 link.exe' 12513 ;; 12514 12515 *) 12516 # Assume MSVC wrapper 12517 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12518 dynamic_linker='Win32 ld.exe' 12519 ;; 12520 esac 12521 # FIXME: first we should search . and the directory the executable is in 12522 shlibpath_var=PATH 12523 ;; 12524 12525darwin* | rhapsody*) 12526 dynamic_linker="$host_os dyld" 12527 version_type=darwin 12528 need_lib_prefix=no 12529 need_version=no 12530 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12531 soname_spec='$libname$release$major$shared_ext' 12532 shlibpath_overrides_runpath=yes 12533 shlibpath_var=DYLD_LIBRARY_PATH 12534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12535 12536 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12538 ;; 12539 12540dgux*) 12541 version_type=linux # correct to gnu/linux during the next big refactor 12542 need_lib_prefix=no 12543 need_version=no 12544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12545 soname_spec='$libname$release$shared_ext$major' 12546 shlibpath_var=LD_LIBRARY_PATH 12547 ;; 12548 12549freebsd* | dragonfly*) 12550 # DragonFly does not have aout. When/if they implement a new 12551 # versioning mechanism, adjust this. 12552 if test -x /usr/bin/objformat; then 12553 objformat=`/usr/bin/objformat` 12554 else 12555 case $host_os in 12556 freebsd[23].*) objformat=aout ;; 12557 *) objformat=elf ;; 12558 esac 12559 fi 12560 version_type=freebsd-$objformat 12561 case $version_type in 12562 freebsd-elf*) 12563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12564 soname_spec='$libname$release$shared_ext$major' 12565 need_version=no 12566 need_lib_prefix=no 12567 ;; 12568 freebsd-*) 12569 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12570 need_version=yes 12571 ;; 12572 esac 12573 shlibpath_var=LD_LIBRARY_PATH 12574 case $host_os in 12575 freebsd2.*) 12576 shlibpath_overrides_runpath=yes 12577 ;; 12578 freebsd3.[01]* | freebsdelf3.[01]*) 12579 shlibpath_overrides_runpath=yes 12580 hardcode_into_libs=yes 12581 ;; 12582 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12583 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12584 shlibpath_overrides_runpath=no 12585 hardcode_into_libs=yes 12586 ;; 12587 *) # from 4.6 on, and DragonFly 12588 shlibpath_overrides_runpath=yes 12589 hardcode_into_libs=yes 12590 ;; 12591 esac 12592 ;; 12593 12594haiku*) 12595 version_type=linux # correct to gnu/linux during the next big refactor 12596 need_lib_prefix=no 12597 need_version=no 12598 dynamic_linker="$host_os runtime_loader" 12599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12600 soname_spec='$libname$release$shared_ext$major' 12601 shlibpath_var=LIBRARY_PATH 12602 shlibpath_overrides_runpath=no 12603 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12604 hardcode_into_libs=yes 12605 ;; 12606 12607hpux9* | hpux10* | hpux11*) 12608 # Give a soname corresponding to the major version so that dld.sl refuses to 12609 # link against other versions. 12610 version_type=sunos 12611 need_lib_prefix=no 12612 need_version=no 12613 case $host_cpu in 12614 ia64*) 12615 shrext_cmds='.so' 12616 hardcode_into_libs=yes 12617 dynamic_linker="$host_os dld.so" 12618 shlibpath_var=LD_LIBRARY_PATH 12619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12621 soname_spec='$libname$release$shared_ext$major' 12622 if test 32 = "$HPUX_IA64_MODE"; then 12623 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12624 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12625 else 12626 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12627 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12628 fi 12629 ;; 12630 hppa*64*) 12631 shrext_cmds='.sl' 12632 hardcode_into_libs=yes 12633 dynamic_linker="$host_os dld.sl" 12634 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12637 soname_spec='$libname$release$shared_ext$major' 12638 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12640 ;; 12641 *) 12642 shrext_cmds='.sl' 12643 dynamic_linker="$host_os dld.sl" 12644 shlibpath_var=SHLIB_PATH 12645 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12647 soname_spec='$libname$release$shared_ext$major' 12648 ;; 12649 esac 12650 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12651 postinstall_cmds='chmod 555 $lib' 12652 # or fails outright, so override atomically: 12653 install_override_mode=555 12654 ;; 12655 12656interix[3-9]*) 12657 version_type=linux # correct to gnu/linux during the next big refactor 12658 need_lib_prefix=no 12659 need_version=no 12660 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12661 soname_spec='$libname$release$shared_ext$major' 12662 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12663 shlibpath_var=LD_LIBRARY_PATH 12664 shlibpath_overrides_runpath=no 12665 hardcode_into_libs=yes 12666 ;; 12667 12668irix5* | irix6* | nonstopux*) 12669 case $host_os in 12670 nonstopux*) version_type=nonstopux ;; 12671 *) 12672 if test yes = "$lt_cv_prog_gnu_ld"; then 12673 version_type=linux # correct to gnu/linux during the next big refactor 12674 else 12675 version_type=irix 12676 fi ;; 12677 esac 12678 need_lib_prefix=no 12679 need_version=no 12680 soname_spec='$libname$release$shared_ext$major' 12681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12682 case $host_os in 12683 irix5* | nonstopux*) 12684 libsuff= shlibsuff= 12685 ;; 12686 *) 12687 case $LD in # libtool.m4 will add one of these switches to LD 12688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12689 libsuff= shlibsuff= libmagic=32-bit;; 12690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12691 libsuff=32 shlibsuff=N32 libmagic=N32;; 12692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12693 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12694 *) libsuff= shlibsuff= libmagic=never-match;; 12695 esac 12696 ;; 12697 esac 12698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12699 shlibpath_overrides_runpath=no 12700 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12701 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12702 hardcode_into_libs=yes 12703 ;; 12704 12705# No shared lib support for Linux oldld, aout, or coff. 12706linux*oldld* | linux*aout* | linux*coff*) 12707 dynamic_linker=no 12708 ;; 12709 12710linux*android*) 12711 version_type=none # Android doesn't support versioned libraries. 12712 need_lib_prefix=no 12713 need_version=no 12714 library_names_spec='$libname$release$shared_ext' 12715 soname_spec='$libname$release$shared_ext' 12716 finish_cmds= 12717 shlibpath_var=LD_LIBRARY_PATH 12718 shlibpath_overrides_runpath=yes 12719 12720 # This implies no fast_install, which is unacceptable. 12721 # Some rework will be needed to allow for fast_install 12722 # before this can be enabled. 12723 hardcode_into_libs=yes 12724 12725 dynamic_linker='Android linker' 12726 # Don't embed -rpath directories since the linker doesn't support them. 12727 hardcode_libdir_flag_spec='-L$libdir' 12728 ;; 12729 12730# This must be glibc/ELF. 12731linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12732 version_type=linux # correct to gnu/linux during the next big refactor 12733 need_lib_prefix=no 12734 need_version=no 12735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12736 soname_spec='$libname$release$shared_ext$major' 12737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12738 shlibpath_var=LD_LIBRARY_PATH 12739 shlibpath_overrides_runpath=no 12740 12741 # Some binutils ld are patched to set DT_RUNPATH 12742 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12743 $as_echo_n "(cached) " >&6 12744else 12745 lt_cv_shlibpath_overrides_runpath=no 12746 save_LDFLAGS=$LDFLAGS 12747 save_libdir=$libdir 12748 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12749 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12751/* end confdefs.h. */ 12752 12753int 12754main () 12755{ 12756 12757 ; 12758 return 0; 12759} 12760_ACEOF 12761if ac_fn_c_try_link "$LINENO"; then : 12762 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12763 lt_cv_shlibpath_overrides_runpath=yes 12764fi 12765fi 12766rm -f core conftest.err conftest.$ac_objext \ 12767 conftest$ac_exeext conftest.$ac_ext 12768 LDFLAGS=$save_LDFLAGS 12769 libdir=$save_libdir 12770 12771fi 12772 12773 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12774 12775 # This implies no fast_install, which is unacceptable. 12776 # Some rework will be needed to allow for fast_install 12777 # before this can be enabled. 12778 hardcode_into_libs=yes 12779 12780 # Ideally, we could use ldconfig to report *all* directores which are 12781 # searched for libraries, however this is still not possible. Aside from not 12782 # being certain /sbin/ldconfig is available, command 12783 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12784 # even though it is searched at run-time. Try to do the best guess by 12785 # appending ld.so.conf contents (and includes) to the search path. 12786 if test -f /etc/ld.so.conf; then 12787 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' ' '` 12788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12789 fi 12790 12791 # We used to test for /lib/ld.so.1 and disable shared libraries on 12792 # powerpc, because MkLinux only supported shared libraries with the 12793 # GNU dynamic linker. Since this was broken with cross compilers, 12794 # most powerpc-linux boxes support dynamic linking these days and 12795 # people can always --disable-shared, the test was removed, and we 12796 # assume the GNU/Linux dynamic linker is in use. 12797 dynamic_linker='GNU/Linux ld.so' 12798 ;; 12799 12800netbsdelf*-gnu) 12801 version_type=linux 12802 need_lib_prefix=no 12803 need_version=no 12804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12805 soname_spec='${libname}${release}${shared_ext}$major' 12806 shlibpath_var=LD_LIBRARY_PATH 12807 shlibpath_overrides_runpath=no 12808 hardcode_into_libs=yes 12809 dynamic_linker='NetBSD ld.elf_so' 12810 ;; 12811 12812netbsd*) 12813 version_type=sunos 12814 need_lib_prefix=no 12815 need_version=no 12816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12817 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12819 dynamic_linker='NetBSD (a.out) ld.so' 12820 else 12821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12822 soname_spec='$libname$release$shared_ext$major' 12823 dynamic_linker='NetBSD ld.elf_so' 12824 fi 12825 shlibpath_var=LD_LIBRARY_PATH 12826 shlibpath_overrides_runpath=yes 12827 hardcode_into_libs=yes 12828 ;; 12829 12830newsos6) 12831 version_type=linux # correct to gnu/linux during the next big refactor 12832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12833 shlibpath_var=LD_LIBRARY_PATH 12834 shlibpath_overrides_runpath=yes 12835 ;; 12836 12837*nto* | *qnx*) 12838 version_type=qnx 12839 need_lib_prefix=no 12840 need_version=no 12841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12842 soname_spec='$libname$release$shared_ext$major' 12843 shlibpath_var=LD_LIBRARY_PATH 12844 shlibpath_overrides_runpath=no 12845 hardcode_into_libs=yes 12846 dynamic_linker='ldqnx.so' 12847 ;; 12848 12849openbsd* | bitrig*) 12850 version_type=sunos 12851 sys_lib_dlsearch_path_spec=/usr/lib 12852 need_lib_prefix=no 12853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12854 need_version=no 12855 else 12856 need_version=yes 12857 fi 12858 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12860 shlibpath_var=LD_LIBRARY_PATH 12861 shlibpath_overrides_runpath=yes 12862 ;; 12863 12864os2*) 12865 libname_spec='$name' 12866 version_type=windows 12867 shrext_cmds=.dll 12868 need_version=no 12869 need_lib_prefix=no 12870 # OS/2 can only load a DLL with a base name of 8 characters or less. 12871 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12872 v=$($ECHO $release$versuffix | tr -d .-); 12873 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12874 $ECHO $n$v`$shared_ext' 12875 library_names_spec='${libname}_dll.$libext' 12876 dynamic_linker='OS/2 ld.exe' 12877 shlibpath_var=BEGINLIBPATH 12878 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12880 postinstall_cmds='base_file=`basename \$file`~ 12881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12882 dldir=$destdir/`dirname \$dlpath`~ 12883 test -d \$dldir || mkdir -p \$dldir~ 12884 $install_prog $dir/$dlname \$dldir/$dlname~ 12885 chmod a+x \$dldir/$dlname~ 12886 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12887 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12888 fi' 12889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12890 dlpath=$dir/\$dldll~ 12891 $RM \$dlpath' 12892 ;; 12893 12894osf3* | osf4* | osf5*) 12895 version_type=osf 12896 need_lib_prefix=no 12897 need_version=no 12898 soname_spec='$libname$release$shared_ext$major' 12899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12900 shlibpath_var=LD_LIBRARY_PATH 12901 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12903 ;; 12904 12905rdos*) 12906 dynamic_linker=no 12907 ;; 12908 12909solaris*) 12910 version_type=linux # correct to gnu/linux during the next big refactor 12911 need_lib_prefix=no 12912 need_version=no 12913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12914 soname_spec='$libname$release$shared_ext$major' 12915 shlibpath_var=LD_LIBRARY_PATH 12916 shlibpath_overrides_runpath=yes 12917 hardcode_into_libs=yes 12918 # ldd complains unless libraries are executable 12919 postinstall_cmds='chmod +x $lib' 12920 ;; 12921 12922sunos4*) 12923 version_type=sunos 12924 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12926 shlibpath_var=LD_LIBRARY_PATH 12927 shlibpath_overrides_runpath=yes 12928 if test yes = "$with_gnu_ld"; then 12929 need_lib_prefix=no 12930 fi 12931 need_version=yes 12932 ;; 12933 12934sysv4 | sysv4.3*) 12935 version_type=linux # correct to gnu/linux during the next big refactor 12936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12937 soname_spec='$libname$release$shared_ext$major' 12938 shlibpath_var=LD_LIBRARY_PATH 12939 case $host_vendor in 12940 sni) 12941 shlibpath_overrides_runpath=no 12942 need_lib_prefix=no 12943 runpath_var=LD_RUN_PATH 12944 ;; 12945 siemens) 12946 need_lib_prefix=no 12947 ;; 12948 motorola) 12949 need_lib_prefix=no 12950 need_version=no 12951 shlibpath_overrides_runpath=no 12952 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12953 ;; 12954 esac 12955 ;; 12956 12957sysv4*MP*) 12958 if test -d /usr/nec; then 12959 version_type=linux # correct to gnu/linux during the next big refactor 12960 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12961 soname_spec='$libname$shared_ext.$major' 12962 shlibpath_var=LD_LIBRARY_PATH 12963 fi 12964 ;; 12965 12966sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12967 version_type=sco 12968 need_lib_prefix=no 12969 need_version=no 12970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12971 soname_spec='$libname$release$shared_ext$major' 12972 shlibpath_var=LD_LIBRARY_PATH 12973 shlibpath_overrides_runpath=yes 12974 hardcode_into_libs=yes 12975 if test yes = "$with_gnu_ld"; then 12976 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12977 else 12978 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12979 case $host_os in 12980 sco3.2v5*) 12981 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12982 ;; 12983 esac 12984 fi 12985 sys_lib_dlsearch_path_spec='/usr/lib' 12986 ;; 12987 12988tpf*) 12989 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12990 version_type=linux # correct to gnu/linux during the next big refactor 12991 need_lib_prefix=no 12992 need_version=no 12993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12994 shlibpath_var=LD_LIBRARY_PATH 12995 shlibpath_overrides_runpath=no 12996 hardcode_into_libs=yes 12997 ;; 12998 12999uts4*) 13000 version_type=linux # correct to gnu/linux during the next big refactor 13001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13002 soname_spec='$libname$release$shared_ext$major' 13003 shlibpath_var=LD_LIBRARY_PATH 13004 ;; 13005 13006*) 13007 dynamic_linker=no 13008 ;; 13009esac 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13011$as_echo "$dynamic_linker" >&6; } 13012test no = "$dynamic_linker" && can_build_shared=no 13013 13014variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13015if test yes = "$GCC"; then 13016 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13017fi 13018 13019if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13020 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13021fi 13022 13023if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13024 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13025fi 13026 13027# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13028configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13029 13030# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13031func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13032 13033# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13034configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13133$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13134hardcode_action= 13135if test -n "$hardcode_libdir_flag_spec" || 13136 test -n "$runpath_var" || 13137 test yes = "$hardcode_automatic"; then 13138 13139 # We can hardcode non-existent directories. 13140 if test no != "$hardcode_direct" && 13141 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13142 # have to relink, otherwise we might link with an installed library 13143 # when we should be linking with a yet-to-be-installed one 13144 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13145 test no != "$hardcode_minus_L"; then 13146 # Linking always hardcodes the temporary library directory. 13147 hardcode_action=relink 13148 else 13149 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13150 hardcode_action=immediate 13151 fi 13152else 13153 # We cannot hardcode anything, or else we can only hardcode existing 13154 # directories. 13155 hardcode_action=unsupported 13156fi 13157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13158$as_echo "$hardcode_action" >&6; } 13159 13160if test relink = "$hardcode_action" || 13161 test yes = "$inherit_rpath"; then 13162 # Fast installation is not supported 13163 enable_fast_install=no 13164elif test yes = "$shlibpath_overrides_runpath" || 13165 test no = "$enable_shared"; then 13166 # Fast installation is not necessary 13167 enable_fast_install=needless 13168fi 13169 13170 13171 13172 13173 13174 13175 if test yes != "$enable_dlopen"; then 13176 enable_dlopen=unknown 13177 enable_dlopen_self=unknown 13178 enable_dlopen_self_static=unknown 13179else 13180 lt_cv_dlopen=no 13181 lt_cv_dlopen_libs= 13182 13183 case $host_os in 13184 beos*) 13185 lt_cv_dlopen=load_add_on 13186 lt_cv_dlopen_libs= 13187 lt_cv_dlopen_self=yes 13188 ;; 13189 13190 mingw* | pw32* | cegcc*) 13191 lt_cv_dlopen=LoadLibrary 13192 lt_cv_dlopen_libs= 13193 ;; 13194 13195 cygwin*) 13196 lt_cv_dlopen=dlopen 13197 lt_cv_dlopen_libs= 13198 ;; 13199 13200 darwin*) 13201 # if libdl is installed we need to link against it 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13203$as_echo_n "checking for dlopen in -ldl... " >&6; } 13204if ${ac_cv_lib_dl_dlopen+:} false; then : 13205 $as_echo_n "(cached) " >&6 13206else 13207 ac_check_lib_save_LIBS=$LIBS 13208LIBS="-ldl $LIBS" 13209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13210/* end confdefs.h. */ 13211 13212/* Override any GCC internal prototype to avoid an error. 13213 Use char because int might match the return type of a GCC 13214 builtin and then its argument prototype would still apply. */ 13215#ifdef __cplusplus 13216extern "C" 13217#endif 13218char dlopen (); 13219int 13220main () 13221{ 13222return dlopen (); 13223 ; 13224 return 0; 13225} 13226_ACEOF 13227if ac_fn_c_try_link "$LINENO"; then : 13228 ac_cv_lib_dl_dlopen=yes 13229else 13230 ac_cv_lib_dl_dlopen=no 13231fi 13232rm -f core conftest.err conftest.$ac_objext \ 13233 conftest$ac_exeext conftest.$ac_ext 13234LIBS=$ac_check_lib_save_LIBS 13235fi 13236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13237$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13238if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13239 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13240else 13241 13242 lt_cv_dlopen=dyld 13243 lt_cv_dlopen_libs= 13244 lt_cv_dlopen_self=yes 13245 13246fi 13247 13248 ;; 13249 13250 tpf*) 13251 # Don't try to run any link tests for TPF. We know it's impossible 13252 # because TPF is a cross-compiler, and we know how we open DSOs. 13253 lt_cv_dlopen=dlopen 13254 lt_cv_dlopen_libs= 13255 lt_cv_dlopen_self=no 13256 ;; 13257 13258 *) 13259 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13260if test "x$ac_cv_func_shl_load" = xyes; then : 13261 lt_cv_dlopen=shl_load 13262else 13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13264$as_echo_n "checking for shl_load in -ldld... " >&6; } 13265if ${ac_cv_lib_dld_shl_load+:} false; then : 13266 $as_echo_n "(cached) " >&6 13267else 13268 ac_check_lib_save_LIBS=$LIBS 13269LIBS="-ldld $LIBS" 13270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13271/* end confdefs.h. */ 13272 13273/* Override any GCC internal prototype to avoid an error. 13274 Use char because int might match the return type of a GCC 13275 builtin and then its argument prototype would still apply. */ 13276#ifdef __cplusplus 13277extern "C" 13278#endif 13279char shl_load (); 13280int 13281main () 13282{ 13283return shl_load (); 13284 ; 13285 return 0; 13286} 13287_ACEOF 13288if ac_fn_c_try_link "$LINENO"; then : 13289 ac_cv_lib_dld_shl_load=yes 13290else 13291 ac_cv_lib_dld_shl_load=no 13292fi 13293rm -f core conftest.err conftest.$ac_objext \ 13294 conftest$ac_exeext conftest.$ac_ext 13295LIBS=$ac_check_lib_save_LIBS 13296fi 13297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13298$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13299if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13300 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13301else 13302 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13303if test "x$ac_cv_func_dlopen" = xyes; then : 13304 lt_cv_dlopen=dlopen 13305else 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13307$as_echo_n "checking for dlopen in -ldl... " >&6; } 13308if ${ac_cv_lib_dl_dlopen+:} false; then : 13309 $as_echo_n "(cached) " >&6 13310else 13311 ac_check_lib_save_LIBS=$LIBS 13312LIBS="-ldl $LIBS" 13313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13314/* end confdefs.h. */ 13315 13316/* Override any GCC internal prototype to avoid an error. 13317 Use char because int might match the return type of a GCC 13318 builtin and then its argument prototype would still apply. */ 13319#ifdef __cplusplus 13320extern "C" 13321#endif 13322char dlopen (); 13323int 13324main () 13325{ 13326return dlopen (); 13327 ; 13328 return 0; 13329} 13330_ACEOF 13331if ac_fn_c_try_link "$LINENO"; then : 13332 ac_cv_lib_dl_dlopen=yes 13333else 13334 ac_cv_lib_dl_dlopen=no 13335fi 13336rm -f core conftest.err conftest.$ac_objext \ 13337 conftest$ac_exeext conftest.$ac_ext 13338LIBS=$ac_check_lib_save_LIBS 13339fi 13340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13341$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13342if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13343 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13344else 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13346$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13347if ${ac_cv_lib_svld_dlopen+:} false; then : 13348 $as_echo_n "(cached) " >&6 13349else 13350 ac_check_lib_save_LIBS=$LIBS 13351LIBS="-lsvld $LIBS" 13352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13353/* end confdefs.h. */ 13354 13355/* Override any GCC internal prototype to avoid an error. 13356 Use char because int might match the return type of a GCC 13357 builtin and then its argument prototype would still apply. */ 13358#ifdef __cplusplus 13359extern "C" 13360#endif 13361char dlopen (); 13362int 13363main () 13364{ 13365return dlopen (); 13366 ; 13367 return 0; 13368} 13369_ACEOF 13370if ac_fn_c_try_link "$LINENO"; then : 13371 ac_cv_lib_svld_dlopen=yes 13372else 13373 ac_cv_lib_svld_dlopen=no 13374fi 13375rm -f core conftest.err conftest.$ac_objext \ 13376 conftest$ac_exeext conftest.$ac_ext 13377LIBS=$ac_check_lib_save_LIBS 13378fi 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13380$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13381if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13382 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13383else 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13385$as_echo_n "checking for dld_link in -ldld... " >&6; } 13386if ${ac_cv_lib_dld_dld_link+:} false; then : 13387 $as_echo_n "(cached) " >&6 13388else 13389 ac_check_lib_save_LIBS=$LIBS 13390LIBS="-ldld $LIBS" 13391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13392/* end confdefs.h. */ 13393 13394/* Override any GCC internal prototype to avoid an error. 13395 Use char because int might match the return type of a GCC 13396 builtin and then its argument prototype would still apply. */ 13397#ifdef __cplusplus 13398extern "C" 13399#endif 13400char dld_link (); 13401int 13402main () 13403{ 13404return dld_link (); 13405 ; 13406 return 0; 13407} 13408_ACEOF 13409if ac_fn_c_try_link "$LINENO"; then : 13410 ac_cv_lib_dld_dld_link=yes 13411else 13412 ac_cv_lib_dld_dld_link=no 13413fi 13414rm -f core conftest.err conftest.$ac_objext \ 13415 conftest$ac_exeext conftest.$ac_ext 13416LIBS=$ac_check_lib_save_LIBS 13417fi 13418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13419$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13420if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13421 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13422fi 13423 13424 13425fi 13426 13427 13428fi 13429 13430 13431fi 13432 13433 13434fi 13435 13436 13437fi 13438 13439 ;; 13440 esac 13441 13442 if test no = "$lt_cv_dlopen"; then 13443 enable_dlopen=no 13444 else 13445 enable_dlopen=yes 13446 fi 13447 13448 case $lt_cv_dlopen in 13449 dlopen) 13450 save_CPPFLAGS=$CPPFLAGS 13451 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13452 13453 save_LDFLAGS=$LDFLAGS 13454 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13455 13456 save_LIBS=$LIBS 13457 LIBS="$lt_cv_dlopen_libs $LIBS" 13458 13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13460$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13461if ${lt_cv_dlopen_self+:} false; then : 13462 $as_echo_n "(cached) " >&6 13463else 13464 if test yes = "$cross_compiling"; then : 13465 lt_cv_dlopen_self=cross 13466else 13467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13468 lt_status=$lt_dlunknown 13469 cat > conftest.$ac_ext <<_LT_EOF 13470#line $LINENO "configure" 13471#include "confdefs.h" 13472 13473#if HAVE_DLFCN_H 13474#include <dlfcn.h> 13475#endif 13476 13477#include <stdio.h> 13478 13479#ifdef RTLD_GLOBAL 13480# define LT_DLGLOBAL RTLD_GLOBAL 13481#else 13482# ifdef DL_GLOBAL 13483# define LT_DLGLOBAL DL_GLOBAL 13484# else 13485# define LT_DLGLOBAL 0 13486# endif 13487#endif 13488 13489/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13490 find out it does not work in some platform. */ 13491#ifndef LT_DLLAZY_OR_NOW 13492# ifdef RTLD_LAZY 13493# define LT_DLLAZY_OR_NOW RTLD_LAZY 13494# else 13495# ifdef DL_LAZY 13496# define LT_DLLAZY_OR_NOW DL_LAZY 13497# else 13498# ifdef RTLD_NOW 13499# define LT_DLLAZY_OR_NOW RTLD_NOW 13500# else 13501# ifdef DL_NOW 13502# define LT_DLLAZY_OR_NOW DL_NOW 13503# else 13504# define LT_DLLAZY_OR_NOW 0 13505# endif 13506# endif 13507# endif 13508# endif 13509#endif 13510 13511/* When -fvisibility=hidden is used, assume the code has been annotated 13512 correspondingly for the symbols needed. */ 13513#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13514int fnord () __attribute__((visibility("default"))); 13515#endif 13516 13517int fnord () { return 42; } 13518int main () 13519{ 13520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13521 int status = $lt_dlunknown; 13522 13523 if (self) 13524 { 13525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13526 else 13527 { 13528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13529 else puts (dlerror ()); 13530 } 13531 /* dlclose (self); */ 13532 } 13533 else 13534 puts (dlerror ()); 13535 13536 return status; 13537} 13538_LT_EOF 13539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13540 (eval $ac_link) 2>&5 13541 ac_status=$? 13542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13543 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13544 (./conftest; exit; ) >&5 2>/dev/null 13545 lt_status=$? 13546 case x$lt_status in 13547 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13548 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13549 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13550 esac 13551 else : 13552 # compilation failed 13553 lt_cv_dlopen_self=no 13554 fi 13555fi 13556rm -fr conftest* 13557 13558 13559fi 13560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13561$as_echo "$lt_cv_dlopen_self" >&6; } 13562 13563 if test yes = "$lt_cv_dlopen_self"; then 13564 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13566$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13567if ${lt_cv_dlopen_self_static+:} false; then : 13568 $as_echo_n "(cached) " >&6 13569else 13570 if test yes = "$cross_compiling"; then : 13571 lt_cv_dlopen_self_static=cross 13572else 13573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13574 lt_status=$lt_dlunknown 13575 cat > conftest.$ac_ext <<_LT_EOF 13576#line $LINENO "configure" 13577#include "confdefs.h" 13578 13579#if HAVE_DLFCN_H 13580#include <dlfcn.h> 13581#endif 13582 13583#include <stdio.h> 13584 13585#ifdef RTLD_GLOBAL 13586# define LT_DLGLOBAL RTLD_GLOBAL 13587#else 13588# ifdef DL_GLOBAL 13589# define LT_DLGLOBAL DL_GLOBAL 13590# else 13591# define LT_DLGLOBAL 0 13592# endif 13593#endif 13594 13595/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13596 find out it does not work in some platform. */ 13597#ifndef LT_DLLAZY_OR_NOW 13598# ifdef RTLD_LAZY 13599# define LT_DLLAZY_OR_NOW RTLD_LAZY 13600# else 13601# ifdef DL_LAZY 13602# define LT_DLLAZY_OR_NOW DL_LAZY 13603# else 13604# ifdef RTLD_NOW 13605# define LT_DLLAZY_OR_NOW RTLD_NOW 13606# else 13607# ifdef DL_NOW 13608# define LT_DLLAZY_OR_NOW DL_NOW 13609# else 13610# define LT_DLLAZY_OR_NOW 0 13611# endif 13612# endif 13613# endif 13614# endif 13615#endif 13616 13617/* When -fvisibility=hidden is used, assume the code has been annotated 13618 correspondingly for the symbols needed. */ 13619#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13620int fnord () __attribute__((visibility("default"))); 13621#endif 13622 13623int fnord () { return 42; } 13624int main () 13625{ 13626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13627 int status = $lt_dlunknown; 13628 13629 if (self) 13630 { 13631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13632 else 13633 { 13634 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13635 else puts (dlerror ()); 13636 } 13637 /* dlclose (self); */ 13638 } 13639 else 13640 puts (dlerror ()); 13641 13642 return status; 13643} 13644_LT_EOF 13645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13646 (eval $ac_link) 2>&5 13647 ac_status=$? 13648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13649 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13650 (./conftest; exit; ) >&5 2>/dev/null 13651 lt_status=$? 13652 case x$lt_status in 13653 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13654 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13655 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13656 esac 13657 else : 13658 # compilation failed 13659 lt_cv_dlopen_self_static=no 13660 fi 13661fi 13662rm -fr conftest* 13663 13664 13665fi 13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13667$as_echo "$lt_cv_dlopen_self_static" >&6; } 13668 fi 13669 13670 CPPFLAGS=$save_CPPFLAGS 13671 LDFLAGS=$save_LDFLAGS 13672 LIBS=$save_LIBS 13673 ;; 13674 esac 13675 13676 case $lt_cv_dlopen_self in 13677 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13678 *) enable_dlopen_self=unknown ;; 13679 esac 13680 13681 case $lt_cv_dlopen_self_static in 13682 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13683 *) enable_dlopen_self_static=unknown ;; 13684 esac 13685fi 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703striplib= 13704old_striplib= 13705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13706$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13707if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13708 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13709 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13711$as_echo "yes" >&6; } 13712else 13713# FIXME - insert some real tests, host_os isn't really good enough 13714 case $host_os in 13715 darwin*) 13716 if test -n "$STRIP"; then 13717 striplib="$STRIP -x" 13718 old_striplib="$STRIP -S" 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13720$as_echo "yes" >&6; } 13721 else 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13723$as_echo "no" >&6; } 13724 fi 13725 ;; 13726 *) 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13728$as_echo "no" >&6; } 13729 ;; 13730 esac 13731fi 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 # Report what library types will actually be built 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13746$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13748$as_echo "$can_build_shared" >&6; } 13749 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13751$as_echo_n "checking whether to build shared libraries... " >&6; } 13752 test no = "$can_build_shared" && enable_shared=no 13753 13754 # On AIX, shared libraries and static libraries use the same namespace, and 13755 # are all built from PIC. 13756 case $host_os in 13757 aix3*) 13758 test yes = "$enable_shared" && enable_static=no 13759 if test -n "$RANLIB"; then 13760 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13761 postinstall_cmds='$RANLIB $lib' 13762 fi 13763 ;; 13764 13765 aix[4-9]*) 13766 if test ia64 != "$host_cpu"; then 13767 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13768 yes,aix,yes) ;; # shared object as lib.so file only 13769 yes,svr4,*) ;; # shared object as lib.so archive member only 13770 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13771 esac 13772 fi 13773 ;; 13774 esac 13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13776$as_echo "$enable_shared" >&6; } 13777 13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13779$as_echo_n "checking whether to build static libraries... " >&6; } 13780 # Make sure either enable_shared or enable_static is yes. 13781 test yes = "$enable_shared" || enable_static=yes 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13783$as_echo "$enable_static" >&6; } 13784 13785 13786 13787 13788fi 13789ac_ext=c 13790ac_cpp='$CPP $CPPFLAGS' 13791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13793ac_compiler_gnu=$ac_cv_c_compiler_gnu 13794 13795CC=$lt_save_CC 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 ac_config_commands="$ac_config_commands libtool" 13812 13813 13814 13815 13816# Only expand once: 13817 13818 13819 13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13821$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13822if ${ac_cv_c_bigendian+:} false; then : 13823 $as_echo_n "(cached) " >&6 13824else 13825 ac_cv_c_bigendian=unknown 13826 # See if we're dealing with a universal compiler. 13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13828/* end confdefs.h. */ 13829#ifndef __APPLE_CC__ 13830 not a universal capable compiler 13831 #endif 13832 typedef int dummy; 13833 13834_ACEOF 13835if ac_fn_c_try_compile "$LINENO"; then : 13836 13837 # Check for potential -arch flags. It is not universal unless 13838 # there are at least two -arch flags with different values. 13839 ac_arch= 13840 ac_prev= 13841 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13842 if test -n "$ac_prev"; then 13843 case $ac_word in 13844 i?86 | x86_64 | ppc | ppc64) 13845 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13846 ac_arch=$ac_word 13847 else 13848 ac_cv_c_bigendian=universal 13849 break 13850 fi 13851 ;; 13852 esac 13853 ac_prev= 13854 elif test "x$ac_word" = "x-arch"; then 13855 ac_prev=arch 13856 fi 13857 done 13858fi 13859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13860 if test $ac_cv_c_bigendian = unknown; then 13861 # See if sys/param.h defines the BYTE_ORDER macro. 13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13863/* end confdefs.h. */ 13864#include <sys/types.h> 13865 #include <sys/param.h> 13866 13867int 13868main () 13869{ 13870#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13871 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13872 && LITTLE_ENDIAN) 13873 bogus endian macros 13874 #endif 13875 13876 ; 13877 return 0; 13878} 13879_ACEOF 13880if ac_fn_c_try_compile "$LINENO"; then : 13881 # It does; now see whether it defined to BIG_ENDIAN or not. 13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13883/* end confdefs.h. */ 13884#include <sys/types.h> 13885 #include <sys/param.h> 13886 13887int 13888main () 13889{ 13890#if BYTE_ORDER != BIG_ENDIAN 13891 not big endian 13892 #endif 13893 13894 ; 13895 return 0; 13896} 13897_ACEOF 13898if ac_fn_c_try_compile "$LINENO"; then : 13899 ac_cv_c_bigendian=yes 13900else 13901 ac_cv_c_bigendian=no 13902fi 13903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13904fi 13905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13906 fi 13907 if test $ac_cv_c_bigendian = unknown; then 13908 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13910/* end confdefs.h. */ 13911#include <limits.h> 13912 13913int 13914main () 13915{ 13916#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13917 bogus endian macros 13918 #endif 13919 13920 ; 13921 return 0; 13922} 13923_ACEOF 13924if ac_fn_c_try_compile "$LINENO"; then : 13925 # It does; now see whether it defined to _BIG_ENDIAN or not. 13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13927/* end confdefs.h. */ 13928#include <limits.h> 13929 13930int 13931main () 13932{ 13933#ifndef _BIG_ENDIAN 13934 not big endian 13935 #endif 13936 13937 ; 13938 return 0; 13939} 13940_ACEOF 13941if ac_fn_c_try_compile "$LINENO"; then : 13942 ac_cv_c_bigendian=yes 13943else 13944 ac_cv_c_bigendian=no 13945fi 13946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13947fi 13948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13949 fi 13950 if test $ac_cv_c_bigendian = unknown; then 13951 # Compile a test program. 13952 if test "$cross_compiling" = yes; then : 13953 # Try to guess by grepping values from an object file. 13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13955/* end confdefs.h. */ 13956short int ascii_mm[] = 13957 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13958 short int ascii_ii[] = 13959 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13960 int use_ascii (int i) { 13961 return ascii_mm[i] + ascii_ii[i]; 13962 } 13963 short int ebcdic_ii[] = 13964 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13965 short int ebcdic_mm[] = 13966 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13967 int use_ebcdic (int i) { 13968 return ebcdic_mm[i] + ebcdic_ii[i]; 13969 } 13970 extern int foo; 13971 13972int 13973main () 13974{ 13975return use_ascii (foo) == use_ebcdic (foo); 13976 ; 13977 return 0; 13978} 13979_ACEOF 13980if ac_fn_c_try_compile "$LINENO"; then : 13981 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13982 ac_cv_c_bigendian=yes 13983 fi 13984 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13985 if test "$ac_cv_c_bigendian" = unknown; then 13986 ac_cv_c_bigendian=no 13987 else 13988 # finding both strings is unlikely to happen, but who knows? 13989 ac_cv_c_bigendian=unknown 13990 fi 13991 fi 13992fi 13993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13994else 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997$ac_includes_default 13998int 13999main () 14000{ 14001 14002 /* Are we little or big endian? From Harbison&Steele. */ 14003 union 14004 { 14005 long int l; 14006 char c[sizeof (long int)]; 14007 } u; 14008 u.l = 1; 14009 return u.c[sizeof (long int) - 1] == 1; 14010 14011 ; 14012 return 0; 14013} 14014_ACEOF 14015if ac_fn_c_try_run "$LINENO"; then : 14016 ac_cv_c_bigendian=no 14017else 14018 ac_cv_c_bigendian=yes 14019fi 14020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14021 conftest.$ac_objext conftest.beam conftest.$ac_ext 14022fi 14023 14024 fi 14025fi 14026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14027$as_echo "$ac_cv_c_bigendian" >&6; } 14028 case $ac_cv_c_bigendian in #( 14029 yes) 14030 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14031;; #( 14032 no) 14033 ;; #( 14034 universal) 14035 14036$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14037 14038 ;; #( 14039 *) 14040 as_fn_error $? "unknown endianness 14041 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14042 esac 14043 14044 14045# For gnulib. 14046 14047 14048 14049 14050 14051 14052 # Check whether --enable-cross-guesses was given. 14053if test "${enable_cross_guesses+set}" = set; then : 14054 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 14056$as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} 14057 enableval=conservative 14058 fi 14059 gl_cross_guesses="$enableval" 14060else 14061 gl_cross_guesses=conservative 14062fi 14063 14064 if test $gl_cross_guesses = risky; then 14065 gl_cross_guess_normal="guessing yes" 14066 gl_cross_guess_inverted="guessing no" 14067 else 14068 gl_cross_guess_normal="guessing no" 14069 gl_cross_guess_inverted="guessing yes" 14070 fi 14071 LIBC_FATAL_STDERR_=1 14072 export LIBC_FATAL_STDERR_ 14073 14074 14075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 14076$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 14077if ${ac_cv_c_restrict+:} false; then : 14078 $as_echo_n "(cached) " >&6 14079else 14080 ac_cv_c_restrict=no 14081 # The order here caters to the fact that C++ does not require restrict. 14082 for ac_kw in __restrict __restrict__ _Restrict restrict; do 14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14084/* end confdefs.h. */ 14085typedef int *int_ptr; 14086 int foo (int_ptr $ac_kw ip) { return ip[0]; } 14087 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 14088 int bar (int ip[$ac_kw]) { return ip[0]; } 14089 14090int 14091main () 14092{ 14093int s[1]; 14094 int *$ac_kw t = s; 14095 t[0] = 0; 14096 return foo (t) + bar (t); 14097 14098 ; 14099 return 0; 14100} 14101_ACEOF 14102if ac_fn_c_try_compile "$LINENO"; then : 14103 ac_cv_c_restrict=$ac_kw 14104fi 14105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14106 test "$ac_cv_c_restrict" != no && break 14107 done 14108 14109fi 14110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 14111$as_echo "$ac_cv_c_restrict" >&6; } 14112 14113 case $ac_cv_c_restrict in 14114 restrict) ;; 14115 no) $as_echo "#define restrict /**/" >>confdefs.h 14116 ;; 14117 *) cat >>confdefs.h <<_ACEOF 14118#define restrict $ac_cv_c_restrict 14119_ACEOF 14120 ;; 14121 esac 14122 14123 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14125$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14126if ${ac_cv_c_bigendian+:} false; then : 14127 $as_echo_n "(cached) " >&6 14128else 14129 ac_cv_c_bigendian=unknown 14130 # See if we're dealing with a universal compiler. 14131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14132/* end confdefs.h. */ 14133#ifndef __APPLE_CC__ 14134 not a universal capable compiler 14135 #endif 14136 typedef int dummy; 14137 14138_ACEOF 14139if ac_fn_c_try_compile "$LINENO"; then : 14140 14141 # Check for potential -arch flags. It is not universal unless 14142 # there are at least two -arch flags with different values. 14143 ac_arch= 14144 ac_prev= 14145 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14146 if test -n "$ac_prev"; then 14147 case $ac_word in 14148 i?86 | x86_64 | ppc | ppc64) 14149 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14150 ac_arch=$ac_word 14151 else 14152 ac_cv_c_bigendian=universal 14153 break 14154 fi 14155 ;; 14156 esac 14157 ac_prev= 14158 elif test "x$ac_word" = "x-arch"; then 14159 ac_prev=arch 14160 fi 14161 done 14162fi 14163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14164 if test $ac_cv_c_bigendian = unknown; then 14165 # See if sys/param.h defines the BYTE_ORDER macro. 14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14167/* end confdefs.h. */ 14168#include <sys/types.h> 14169 #include <sys/param.h> 14170 14171int 14172main () 14173{ 14174#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14175 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14176 && LITTLE_ENDIAN) 14177 bogus endian macros 14178 #endif 14179 14180 ; 14181 return 0; 14182} 14183_ACEOF 14184if ac_fn_c_try_compile "$LINENO"; then : 14185 # It does; now see whether it defined to BIG_ENDIAN or not. 14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14187/* end confdefs.h. */ 14188#include <sys/types.h> 14189 #include <sys/param.h> 14190 14191int 14192main () 14193{ 14194#if BYTE_ORDER != BIG_ENDIAN 14195 not big endian 14196 #endif 14197 14198 ; 14199 return 0; 14200} 14201_ACEOF 14202if ac_fn_c_try_compile "$LINENO"; then : 14203 ac_cv_c_bigendian=yes 14204else 14205 ac_cv_c_bigendian=no 14206fi 14207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14208fi 14209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14210 fi 14211 if test $ac_cv_c_bigendian = unknown; then 14212 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14214/* end confdefs.h. */ 14215#include <limits.h> 14216 14217int 14218main () 14219{ 14220#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14221 bogus endian macros 14222 #endif 14223 14224 ; 14225 return 0; 14226} 14227_ACEOF 14228if ac_fn_c_try_compile "$LINENO"; then : 14229 # It does; now see whether it defined to _BIG_ENDIAN or not. 14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14231/* end confdefs.h. */ 14232#include <limits.h> 14233 14234int 14235main () 14236{ 14237#ifndef _BIG_ENDIAN 14238 not big endian 14239 #endif 14240 14241 ; 14242 return 0; 14243} 14244_ACEOF 14245if ac_fn_c_try_compile "$LINENO"; then : 14246 ac_cv_c_bigendian=yes 14247else 14248 ac_cv_c_bigendian=no 14249fi 14250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14251fi 14252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14253 fi 14254 if test $ac_cv_c_bigendian = unknown; then 14255 # Compile a test program. 14256 if test "$cross_compiling" = yes; then : 14257 # Try to guess by grepping values from an object file. 14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14259/* end confdefs.h. */ 14260short int ascii_mm[] = 14261 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14262 short int ascii_ii[] = 14263 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14264 int use_ascii (int i) { 14265 return ascii_mm[i] + ascii_ii[i]; 14266 } 14267 short int ebcdic_ii[] = 14268 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14269 short int ebcdic_mm[] = 14270 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14271 int use_ebcdic (int i) { 14272 return ebcdic_mm[i] + ebcdic_ii[i]; 14273 } 14274 extern int foo; 14275 14276int 14277main () 14278{ 14279return use_ascii (foo) == use_ebcdic (foo); 14280 ; 14281 return 0; 14282} 14283_ACEOF 14284if ac_fn_c_try_compile "$LINENO"; then : 14285 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14286 ac_cv_c_bigendian=yes 14287 fi 14288 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14289 if test "$ac_cv_c_bigendian" = unknown; then 14290 ac_cv_c_bigendian=no 14291 else 14292 # finding both strings is unlikely to happen, but who knows? 14293 ac_cv_c_bigendian=unknown 14294 fi 14295 fi 14296fi 14297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14298else 14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14300/* end confdefs.h. */ 14301$ac_includes_default 14302int 14303main () 14304{ 14305 14306 /* Are we little or big endian? From Harbison&Steele. */ 14307 union 14308 { 14309 long int l; 14310 char c[sizeof (long int)]; 14311 } u; 14312 u.l = 1; 14313 return u.c[sizeof (long int) - 1] == 1; 14314 14315 ; 14316 return 0; 14317} 14318_ACEOF 14319if ac_fn_c_try_run "$LINENO"; then : 14320 ac_cv_c_bigendian=no 14321else 14322 ac_cv_c_bigendian=yes 14323fi 14324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14325 conftest.$ac_objext conftest.beam conftest.$ac_ext 14326fi 14327 14328 fi 14329fi 14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14331$as_echo "$ac_cv_c_bigendian" >&6; } 14332 case $ac_cv_c_bigendian in #( 14333 yes) 14334 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14335;; #( 14336 no) 14337 ;; #( 14338 universal) 14339 14340$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14341 14342 ;; #( 14343 *) 14344 as_fn_error $? "unknown endianness 14345 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14346 esac 14347 14348 14349 14350 14351 14352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 14353$as_echo_n "checking for inline... " >&6; } 14354if ${ac_cv_c_inline+:} false; then : 14355 $as_echo_n "(cached) " >&6 14356else 14357 ac_cv_c_inline=no 14358for ac_kw in inline __inline__ __inline; do 14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14360/* end confdefs.h. */ 14361#ifndef __cplusplus 14362typedef int foo_t; 14363static $ac_kw foo_t static_foo () {return 0; } 14364$ac_kw foo_t foo () {return 0; } 14365#endif 14366 14367_ACEOF 14368if ac_fn_c_try_compile "$LINENO"; then : 14369 ac_cv_c_inline=$ac_kw 14370fi 14371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14372 test "$ac_cv_c_inline" != no && break 14373done 14374 14375fi 14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 14377$as_echo "$ac_cv_c_inline" >&6; } 14378 14379case $ac_cv_c_inline in 14380 inline | yes) ;; 14381 *) 14382 case $ac_cv_c_inline in 14383 no) ac_val=;; 14384 *) ac_val=$ac_cv_c_inline;; 14385 esac 14386 cat >>confdefs.h <<_ACEOF 14387#ifndef __cplusplus 14388#define inline $ac_val 14389#endif 14390_ACEOF 14391 ;; 14392esac 14393 14394 14395 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 14397$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 14398if ${gl_cv_have_include_next+:} false; then : 14399 $as_echo_n "(cached) " >&6 14400else 14401 rm -rf conftestd1a conftestd1b conftestd2 14402 mkdir conftestd1a conftestd1b conftestd2 14403 cat <<EOF > conftestd1a/conftest.h 14404#define DEFINED_IN_CONFTESTD1 14405#include_next <conftest.h> 14406#ifdef DEFINED_IN_CONFTESTD2 14407int foo; 14408#else 14409#error "include_next doesn't work" 14410#endif 14411EOF 14412 cat <<EOF > conftestd1b/conftest.h 14413#define DEFINED_IN_CONFTESTD1 14414#include <stdio.h> 14415#include_next <conftest.h> 14416#ifdef DEFINED_IN_CONFTESTD2 14417int foo; 14418#else 14419#error "include_next doesn't work" 14420#endif 14421EOF 14422 cat <<EOF > conftestd2/conftest.h 14423#ifndef DEFINED_IN_CONFTESTD1 14424#error "include_next test doesn't work" 14425#endif 14426#define DEFINED_IN_CONFTESTD2 14427EOF 14428 gl_save_CPPFLAGS="$CPPFLAGS" 14429 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 14430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14431/* end confdefs.h. */ 14432#include <conftest.h> 14433_ACEOF 14434if ac_fn_c_try_compile "$LINENO"; then : 14435 gl_cv_have_include_next=yes 14436else 14437 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 14438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14439/* end confdefs.h. */ 14440#include <conftest.h> 14441_ACEOF 14442if ac_fn_c_try_compile "$LINENO"; then : 14443 gl_cv_have_include_next=buggy 14444else 14445 gl_cv_have_include_next=no 14446fi 14447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14448 14449fi 14450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14451 CPPFLAGS="$gl_save_CPPFLAGS" 14452 rm -rf conftestd1a conftestd1b conftestd2 14453 14454fi 14455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 14456$as_echo "$gl_cv_have_include_next" >&6; } 14457 PRAGMA_SYSTEM_HEADER= 14458 if test $gl_cv_have_include_next = yes; then 14459 INCLUDE_NEXT=include_next 14460 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 14461 if test -n "$GCC"; then 14462 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 14463 fi 14464 else 14465 if test $gl_cv_have_include_next = buggy; then 14466 INCLUDE_NEXT=include 14467 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 14468 else 14469 INCLUDE_NEXT=include 14470 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 14471 fi 14472 fi 14473 14474 14475 14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 14477$as_echo_n "checking whether system header files limit the line length... " >&6; } 14478if ${gl_cv_pragma_columns+:} false; then : 14479 $as_echo_n "(cached) " >&6 14480else 14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482/* end confdefs.h. */ 14483 14484#ifdef __TANDEM 14485choke me 14486#endif 14487 14488_ACEOF 14489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14490 $EGREP "choke me" >/dev/null 2>&1; then : 14491 gl_cv_pragma_columns=yes 14492else 14493 gl_cv_pragma_columns=no 14494fi 14495rm -f conftest* 14496 14497 14498fi 14499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 14500$as_echo "$gl_cv_pragma_columns" >&6; } 14501 if test $gl_cv_pragma_columns = yes; then 14502 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 14503 else 14504 PRAGMA_COLUMNS= 14505 fi 14506 14507 14508 14509 14510 14511 for ac_header in $ac_header_list 14512do : 14513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14514ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 14515" 14516if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14517 cat >>confdefs.h <<_ACEOF 14518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14519_ACEOF 14520 14521fi 14522 14523done 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 if test $gl_cv_have_include_next = yes; then 14538 gl_cv_next_limits_h='<'limits.h'>' 14539 else 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5 14541$as_echo_n "checking absolute name of <limits.h>... " >&6; } 14542if ${gl_cv_next_limits_h+:} false; then : 14543 $as_echo_n "(cached) " >&6 14544else 14545 14546 if test $ac_cv_header_limits_h = yes; then 14547 14548 14549 14550 14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552/* end confdefs.h. */ 14553#include <limits.h> 14554_ACEOF 14555 case "$host_os" in 14556 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14557 *) gl_absname_cpp="$ac_cpp" ;; 14558 esac 14559 14560 case "$host_os" in 14561 mingw*) 14562 gl_dirsep_regex='[/\\]' 14563 ;; 14564 *) 14565 gl_dirsep_regex='\/' 14566 ;; 14567 esac 14568 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14569 gl_header_literal_regex=`echo 'limits.h' \ 14570 | sed -e "$gl_make_literal_regex_sed"` 14571 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14572 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14573 s|^/[^/]|//&| 14574 p 14575 q 14576 }' 14577 14578 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 14579 sed -n "$gl_absolute_header_sed"` 14580 14581 gl_header=$gl_cv_absolute_limits_h 14582 gl_cv_next_limits_h='"'$gl_header'"' 14583 else 14584 gl_cv_next_limits_h='<'limits.h'>' 14585 fi 14586 14587 14588fi 14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 14590$as_echo "$gl_cv_next_limits_h" >&6; } 14591 fi 14592 NEXT_LIMITS_H=$gl_cv_next_limits_h 14593 14594 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 14595 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 14596 gl_next_as_first_directive='<'limits.h'>' 14597 else 14598 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 14599 gl_next_as_first_directive=$gl_cv_next_limits_h 14600 fi 14601 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive 14602 14603 14604 14605 14606 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5 14608$as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; } 14609if ${gl_cv_header_limits_width+:} false; then : 14610 $as_echo_n "(cached) " >&6 14611else 14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14613/* end confdefs.h. */ 14614#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 14615 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 14616 #endif 14617 #include <limits.h> 14618 long long llm = LLONG_MAX; 14619 int wb = WORD_BIT; 14620 int ullw = ULLONG_WIDTH; 14621 14622int 14623main () 14624{ 14625 14626 ; 14627 return 0; 14628} 14629_ACEOF 14630if ac_fn_c_try_compile "$LINENO"; then : 14631 gl_cv_header_limits_width=yes 14632else 14633 gl_cv_header_limits_width=no 14634fi 14635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14636fi 14637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 14638$as_echo "$gl_cv_header_limits_width" >&6; } 14639 if test "$gl_cv_header_limits_width" = yes; then 14640 LIMITS_H= 14641 else 14642 LIMITS_H=limits.h 14643 fi 14644 14645 if test -n "$LIMITS_H"; then 14646 GL_GENERATE_LIMITS_H_TRUE= 14647 GL_GENERATE_LIMITS_H_FALSE='#' 14648else 14649 GL_GENERATE_LIMITS_H_TRUE='#' 14650 GL_GENERATE_LIMITS_H_FALSE= 14651fi 14652 14653 14654 14655 gl_cv_c_multiarch=no 14656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14657/* end confdefs.h. */ 14658#ifndef __APPLE_CC__ 14659 not a universal capable compiler 14660 #endif 14661 typedef int dummy; 14662 14663_ACEOF 14664if ac_fn_c_try_compile "$LINENO"; then : 14665 14666 arch= 14667 prev= 14668 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 14669 if test -n "$prev"; then 14670 case $word in 14671 i?86 | x86_64 | ppc | ppc64) 14672 if test -z "$arch" || test "$arch" = "$word"; then 14673 arch="$word" 14674 else 14675 gl_cv_c_multiarch=yes 14676 fi 14677 ;; 14678 esac 14679 prev= 14680 else 14681 if test "x$word" = "x-arch"; then 14682 prev=arch 14683 fi 14684 fi 14685 done 14686 14687fi 14688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14689 if test $gl_cv_c_multiarch = yes; then 14690 APPLE_UNIVERSAL_BUILD=1 14691 else 14692 APPLE_UNIVERSAL_BUILD=0 14693 fi 14694 14695 14696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 14697$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 14698if ${ac_cv_header_stdbool_h+:} false; then : 14699 $as_echo_n "(cached) " >&6 14700else 14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14702/* end confdefs.h. */ 14703 14704 #include <stdbool.h> 14705 14706 #ifdef __cplusplus 14707 typedef bool Bool; 14708 #else 14709 typedef _Bool Bool; 14710 #ifndef bool 14711 "error: bool is not defined" 14712 #endif 14713 #ifndef false 14714 "error: false is not defined" 14715 #endif 14716 #if false 14717 "error: false is not 0" 14718 #endif 14719 #ifndef true 14720 "error: true is not defined" 14721 #endif 14722 #if true != 1 14723 "error: true is not 1" 14724 #endif 14725 #endif 14726 14727 #ifndef __bool_true_false_are_defined 14728 "error: __bool_true_false_are_defined is not defined" 14729 #endif 14730 14731 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s; 14732 14733 char a[true == 1 ? 1 : -1]; 14734 char b[false == 0 ? 1 : -1]; 14735 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 14736 char d[(bool) 0.5 == true ? 1 : -1]; 14737 /* See body of main program for 'e'. */ 14738 char f[(Bool) 0.0 == false ? 1 : -1]; 14739 char g[true]; 14740 char h[sizeof (Bool)]; 14741 char i[sizeof s.t]; 14742 enum { j = false, k = true, l = false * true, m = true * 256 }; 14743 /* The following fails for 14744 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 14745 Bool n[m]; 14746 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 14747 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 14748 /* Catch a bug in an HP-UX C compiler. See 14749 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 14750 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html 14751 */ 14752 Bool q = true; 14753 Bool *pq = &q; 14754 bool *qq = &q; 14755 14756int 14757main () 14758{ 14759 14760 bool e = &s; 14761 *pq |= q; *pq |= ! q; 14762 *qq |= q; *qq |= ! q; 14763 /* Refer to every declared value, to avoid compiler optimizations. */ 14764 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 14765 + !m + !n + !o + !p + !q + !pq + !qq); 14766 14767 ; 14768 return 0; 14769} 14770_ACEOF 14771if ac_fn_c_try_compile "$LINENO"; then : 14772 ac_cv_header_stdbool_h=yes 14773else 14774 ac_cv_header_stdbool_h=no 14775fi 14776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14777fi 14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 14779$as_echo "$ac_cv_header_stdbool_h" >&6; } 14780 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 14781if test "x$ac_cv_type__Bool" = xyes; then : 14782 14783cat >>confdefs.h <<_ACEOF 14784#define HAVE__BOOL 1 14785_ACEOF 14786 14787 14788fi 14789 14790 14791 14792 REPLACE_NULL=0; 14793 HAVE_MAX_ALIGN_T=1; 14794 HAVE_WCHAR_T=1; 14795 14796 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 14798$as_echo_n "checking for wchar_t... " >&6; } 14799if ${gt_cv_c_wchar_t+:} false; then : 14800 $as_echo_n "(cached) " >&6 14801else 14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14803/* end confdefs.h. */ 14804#include <stddef.h> 14805 wchar_t foo = (wchar_t)'\0'; 14806int 14807main () 14808{ 14809 14810 ; 14811 return 0; 14812} 14813_ACEOF 14814if ac_fn_c_try_compile "$LINENO"; then : 14815 gt_cv_c_wchar_t=yes 14816else 14817 gt_cv_c_wchar_t=no 14818fi 14819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14820fi 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 14822$as_echo "$gt_cv_c_wchar_t" >&6; } 14823 if test $gt_cv_c_wchar_t = yes; then 14824 14825$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 14826 14827 fi 14828 14829 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 14831$as_echo_n "checking for wint_t... " >&6; } 14832if ${gt_cv_c_wint_t+:} false; then : 14833 $as_echo_n "(cached) " >&6 14834else 14835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14836/* end confdefs.h. */ 14837 14838/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 14839 <wchar.h>. 14840 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 14841 before <wchar.h>. */ 14842#include <stddef.h> 14843#include <stdio.h> 14844#include <time.h> 14845#include <wchar.h> 14846 wint_t foo = (wchar_t)'\0'; 14847int 14848main () 14849{ 14850 14851 ; 14852 return 0; 14853} 14854_ACEOF 14855if ac_fn_c_try_compile "$LINENO"; then : 14856 gt_cv_c_wint_t=yes 14857else 14858 gt_cv_c_wint_t=no 14859fi 14860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14861fi 14862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 14863$as_echo "$gt_cv_c_wint_t" >&6; } 14864 if test $gt_cv_c_wint_t = yes; then 14865 14866$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 14867 14868 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5 14870$as_echo_n "checking whether wint_t is too small... " >&6; } 14871if ${gl_cv_type_wint_t_too_small+:} false; then : 14872 $as_echo_n "(cached) " >&6 14873else 14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14875/* end confdefs.h. */ 14876 14877/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 14878 <wchar.h>. 14879 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 14880 included before <wchar.h>. */ 14881#if !(defined __GLIBC__ && !defined __UCLIBC__) 14882# include <stddef.h> 14883# include <stdio.h> 14884# include <time.h> 14885#endif 14886#include <wchar.h> 14887 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; 14888 14889int 14890main () 14891{ 14892 14893 ; 14894 return 0; 14895} 14896_ACEOF 14897if ac_fn_c_try_compile "$LINENO"; then : 14898 gl_cv_type_wint_t_too_small=no 14899else 14900 gl_cv_type_wint_t_too_small=yes 14901fi 14902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14903fi 14904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5 14905$as_echo "$gl_cv_type_wint_t_too_small" >&6; } 14906 if test $gl_cv_type_wint_t_too_small = yes; then 14907 GNULIB_OVERRIDES_WINT_T=1 14908 else 14909 GNULIB_OVERRIDES_WINT_T=0 14910 fi 14911 else 14912 GNULIB_OVERRIDES_WINT_T=0 14913 fi 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 14927 14928 14929$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 14930 14931 14932 14933 if test $ac_cv_header_wchar_h = yes; then 14934 HAVE_WCHAR_H=1 14935 else 14936 HAVE_WCHAR_H=0 14937 fi 14938 14939 14940 if test $ac_cv_header_inttypes_h = yes; then 14941 HAVE_INTTYPES_H=1 14942 else 14943 HAVE_INTTYPES_H=0 14944 fi 14945 14946 14947 if test $ac_cv_header_sys_types_h = yes; then 14948 HAVE_SYS_TYPES_H=1 14949 else 14950 HAVE_SYS_TYPES_H=0 14951 fi 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 if test $gl_cv_have_include_next = yes; then 14964 gl_cv_next_stdint_h='<'stdint.h'>' 14965 else 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 14967$as_echo_n "checking absolute name of <stdint.h>... " >&6; } 14968if ${gl_cv_next_stdint_h+:} false; then : 14969 $as_echo_n "(cached) " >&6 14970else 14971 14972 if test $ac_cv_header_stdint_h = yes; then 14973 14974 14975 14976 14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14978/* end confdefs.h. */ 14979#include <stdint.h> 14980_ACEOF 14981 case "$host_os" in 14982 aix*) gl_absname_cpp="$ac_cpp -C" ;; 14983 *) gl_absname_cpp="$ac_cpp" ;; 14984 esac 14985 14986 case "$host_os" in 14987 mingw*) 14988 gl_dirsep_regex='[/\\]' 14989 ;; 14990 *) 14991 gl_dirsep_regex='\/' 14992 ;; 14993 esac 14994 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 14995 gl_header_literal_regex=`echo 'stdint.h' \ 14996 | sed -e "$gl_make_literal_regex_sed"` 14997 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 14998 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 14999 s|^/[^/]|//&| 15000 p 15001 q 15002 }' 15003 15004 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 15005 sed -n "$gl_absolute_header_sed"` 15006 15007 gl_header=$gl_cv_absolute_stdint_h 15008 gl_cv_next_stdint_h='"'$gl_header'"' 15009 else 15010 gl_cv_next_stdint_h='<'stdint.h'>' 15011 fi 15012 15013 15014fi 15015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 15016$as_echo "$gl_cv_next_stdint_h" >&6; } 15017 fi 15018 NEXT_STDINT_H=$gl_cv_next_stdint_h 15019 15020 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 15021 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 15022 gl_next_as_first_directive='<'stdint.h'>' 15023 else 15024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 15025 gl_next_as_first_directive=$gl_cv_next_stdint_h 15026 fi 15027 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 15028 15029 15030 15031 15032 if test $ac_cv_header_stdint_h = yes; then 15033 HAVE_STDINT_H=1 15034 else 15035 HAVE_STDINT_H=0 15036 fi 15037 15038 15039 if test $ac_cv_header_stdint_h = yes; then 15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 15041$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } 15042if ${gl_cv_header_working_stdint_h+:} false; then : 15043 $as_echo_n "(cached) " >&6 15044else 15045 gl_cv_header_working_stdint_h=no 15046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15047/* end confdefs.h. */ 15048 15049 15050#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 15051#define __STDC_CONSTANT_MACROS 1 15052#define __STDC_LIMIT_MACROS 1 15053#include <stdint.h> 15054/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 15055#if !(defined WCHAR_MIN && defined WCHAR_MAX) 15056#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 15057#endif 15058 15059 15060 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15061 included before <wchar.h>. */ 15062 #include <stddef.h> 15063 #include <signal.h> 15064 #if HAVE_WCHAR_H 15065 # include <stdio.h> 15066 # include <time.h> 15067 # include <wchar.h> 15068 #endif 15069 15070 15071#ifdef INT8_MAX 15072int8_t a1 = INT8_MAX; 15073int8_t a1min = INT8_MIN; 15074#endif 15075#ifdef INT16_MAX 15076int16_t a2 = INT16_MAX; 15077int16_t a2min = INT16_MIN; 15078#endif 15079#ifdef INT32_MAX 15080int32_t a3 = INT32_MAX; 15081int32_t a3min = INT32_MIN; 15082#endif 15083#ifdef INT64_MAX 15084int64_t a4 = INT64_MAX; 15085int64_t a4min = INT64_MIN; 15086#endif 15087#ifdef UINT8_MAX 15088uint8_t b1 = UINT8_MAX; 15089#else 15090typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 15091#endif 15092#ifdef UINT16_MAX 15093uint16_t b2 = UINT16_MAX; 15094#endif 15095#ifdef UINT32_MAX 15096uint32_t b3 = UINT32_MAX; 15097#endif 15098#ifdef UINT64_MAX 15099uint64_t b4 = UINT64_MAX; 15100#endif 15101int_least8_t c1 = INT8_C (0x7f); 15102int_least8_t c1max = INT_LEAST8_MAX; 15103int_least8_t c1min = INT_LEAST8_MIN; 15104int_least16_t c2 = INT16_C (0x7fff); 15105int_least16_t c2max = INT_LEAST16_MAX; 15106int_least16_t c2min = INT_LEAST16_MIN; 15107int_least32_t c3 = INT32_C (0x7fffffff); 15108int_least32_t c3max = INT_LEAST32_MAX; 15109int_least32_t c3min = INT_LEAST32_MIN; 15110int_least64_t c4 = INT64_C (0x7fffffffffffffff); 15111int_least64_t c4max = INT_LEAST64_MAX; 15112int_least64_t c4min = INT_LEAST64_MIN; 15113uint_least8_t d1 = UINT8_C (0xff); 15114uint_least8_t d1max = UINT_LEAST8_MAX; 15115uint_least16_t d2 = UINT16_C (0xffff); 15116uint_least16_t d2max = UINT_LEAST16_MAX; 15117uint_least32_t d3 = UINT32_C (0xffffffff); 15118uint_least32_t d3max = UINT_LEAST32_MAX; 15119uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 15120uint_least64_t d4max = UINT_LEAST64_MAX; 15121int_fast8_t e1 = INT_FAST8_MAX; 15122int_fast8_t e1min = INT_FAST8_MIN; 15123int_fast16_t e2 = INT_FAST16_MAX; 15124int_fast16_t e2min = INT_FAST16_MIN; 15125int_fast32_t e3 = INT_FAST32_MAX; 15126int_fast32_t e3min = INT_FAST32_MIN; 15127int_fast64_t e4 = INT_FAST64_MAX; 15128int_fast64_t e4min = INT_FAST64_MIN; 15129uint_fast8_t f1 = UINT_FAST8_MAX; 15130uint_fast16_t f2 = UINT_FAST16_MAX; 15131uint_fast32_t f3 = UINT_FAST32_MAX; 15132uint_fast64_t f4 = UINT_FAST64_MAX; 15133#ifdef INTPTR_MAX 15134intptr_t g = INTPTR_MAX; 15135intptr_t gmin = INTPTR_MIN; 15136#endif 15137#ifdef UINTPTR_MAX 15138uintptr_t h = UINTPTR_MAX; 15139#endif 15140intmax_t i = INTMAX_MAX; 15141uintmax_t j = UINTMAX_MAX; 15142 15143/* Check that SIZE_MAX has the correct type, if possible. */ 15144#if 201112 <= __STDC_VERSION__ 15145int k = _Generic (SIZE_MAX, size_t: 0); 15146#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \ 15147 || (0x5110 <= __SUNPRO_C && !__STDC__)) 15148extern size_t k; 15149extern __typeof__ (SIZE_MAX) k; 15150#endif 15151 15152#include <limits.h> /* for CHAR_BIT */ 15153#define TYPE_MINIMUM(t) \ 15154 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 15155#define TYPE_MAXIMUM(t) \ 15156 ((t) ((t) 0 < (t) -1 \ 15157 ? (t) -1 \ 15158 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 15159struct s { 15160 int check_PTRDIFF: 15161 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 15162 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 15163 ? 1 : -1; 15164 /* Detect bug in FreeBSD 6.0 / ia64. */ 15165 int check_SIG_ATOMIC: 15166 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 15167 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 15168 ? 1 : -1; 15169 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 15170 int check_WCHAR: 15171 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 15172 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 15173 ? 1 : -1; 15174 /* Detect bug in mingw. */ 15175 int check_WINT: 15176 WINT_MIN == TYPE_MINIMUM (wint_t) 15177 && WINT_MAX == TYPE_MAXIMUM (wint_t) 15178 ? 1 : -1; 15179 15180 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 15181 int check_UINT8_C: 15182 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 15183 int check_UINT16_C: 15184 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 15185 15186 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 15187#ifdef UINT8_MAX 15188 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 15189#endif 15190#ifdef UINT16_MAX 15191 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 15192#endif 15193#ifdef UINT32_MAX 15194 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 15195#endif 15196#ifdef UINT64_MAX 15197 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 15198#endif 15199 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 15200 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 15201 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 15202 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 15203 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 15204 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 15205 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 15206 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 15207 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 15208 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 15209 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 15210}; 15211 15212int 15213main () 15214{ 15215 15216 ; 15217 return 0; 15218} 15219_ACEOF 15220if ac_fn_c_try_compile "$LINENO"; then : 15221 if test "$cross_compiling" = yes; then : 15222 case "$host_os" in 15223 # Guess yes on native Windows. 15224 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; 15225 # In general, assume it works. 15226 *) gl_cv_header_working_stdint_h="guessing yes" ;; 15227 esac 15228 15229else 15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15231/* end confdefs.h. */ 15232 15233 15234#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 15235#define __STDC_CONSTANT_MACROS 1 15236#define __STDC_LIMIT_MACROS 1 15237#include <stdint.h> 15238 15239 15240 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15241 included before <wchar.h>. */ 15242 #include <stddef.h> 15243 #include <signal.h> 15244 #if HAVE_WCHAR_H 15245 # include <stdio.h> 15246 # include <time.h> 15247 # include <wchar.h> 15248 #endif 15249 15250 15251#include <stdio.h> 15252#include <string.h> 15253#define MVAL(macro) MVAL1(macro) 15254#define MVAL1(expression) #expression 15255static const char *macro_values[] = 15256 { 15257#ifdef INT8_MAX 15258 MVAL (INT8_MAX), 15259#endif 15260#ifdef INT16_MAX 15261 MVAL (INT16_MAX), 15262#endif 15263#ifdef INT32_MAX 15264 MVAL (INT32_MAX), 15265#endif 15266#ifdef INT64_MAX 15267 MVAL (INT64_MAX), 15268#endif 15269#ifdef UINT8_MAX 15270 MVAL (UINT8_MAX), 15271#endif 15272#ifdef UINT16_MAX 15273 MVAL (UINT16_MAX), 15274#endif 15275#ifdef UINT32_MAX 15276 MVAL (UINT32_MAX), 15277#endif 15278#ifdef UINT64_MAX 15279 MVAL (UINT64_MAX), 15280#endif 15281 NULL 15282 }; 15283 15284int 15285main () 15286{ 15287 15288 const char **mv; 15289 for (mv = macro_values; *mv != NULL; mv++) 15290 { 15291 const char *value = *mv; 15292 /* Test whether it looks like a cast expression. */ 15293 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 15294 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 15295 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 15296 || strncmp (value, "((int)"/*)*/, 6) == 0 15297 || strncmp (value, "((signed short)"/*)*/, 15) == 0 15298 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 15299 return mv - macro_values + 1; 15300 } 15301 return 0; 15302 15303 ; 15304 return 0; 15305} 15306_ACEOF 15307if ac_fn_c_try_run "$LINENO"; then : 15308 gl_cv_header_working_stdint_h=yes 15309fi 15310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15311 conftest.$ac_objext conftest.beam conftest.$ac_ext 15312fi 15313 15314 15315fi 15316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15317 15318fi 15319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 15320$as_echo "$gl_cv_header_working_stdint_h" >&6; } 15321 fi 15322 15323 HAVE_C99_STDINT_H=0 15324 HAVE_SYS_BITYPES_H=0 15325 HAVE_SYS_INTTYPES_H=0 15326 STDINT_H=stdint.h 15327 case "$gl_cv_header_working_stdint_h" in 15328 *yes) 15329 HAVE_C99_STDINT_H=1 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5 15331$as_echo_n "checking whether stdint.h predates C++11... " >&6; } 15332if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then : 15333 $as_echo_n "(cached) " >&6 15334else 15335 gl_cv_header_stdint_predates_cxx11_h=yes 15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337/* end confdefs.h. */ 15338 15339 15340#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 15341#include <stdint.h> 15342 15343 15344 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15345 included before <wchar.h>. */ 15346 #include <stddef.h> 15347 #include <signal.h> 15348 #if HAVE_WCHAR_H 15349 # include <stdio.h> 15350 # include <time.h> 15351 # include <wchar.h> 15352 #endif 15353 15354 15355intmax_t im = INTMAX_MAX; 15356int32_t i32 = INT32_C (0x7fffffff); 15357 15358int 15359main () 15360{ 15361 15362 ; 15363 return 0; 15364} 15365_ACEOF 15366if ac_fn_c_try_compile "$LINENO"; then : 15367 gl_cv_header_stdint_predates_cxx11_h=no 15368fi 15369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15370fi 15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5 15372$as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; } 15373 15374 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then 15375 15376$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h 15377 15378 15379$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h 15380 15381 fi 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 15383$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } 15384if ${gl_cv_header_stdint_width+:} false; then : 15385 $as_echo_n "(cached) " >&6 15386else 15387 gl_cv_header_stdint_width=no 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389/* end confdefs.h. */ 15390 15391 /* Work if build is not clean. */ 15392 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 15393 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 15394 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 15395 #endif 15396 #include <stdint.h> 15397 15398 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15399 included before <wchar.h>. */ 15400 #include <stddef.h> 15401 #include <signal.h> 15402 #if HAVE_WCHAR_H 15403 # include <stdio.h> 15404 # include <time.h> 15405 # include <wchar.h> 15406 #endif 15407 15408 int iw = UINTMAX_WIDTH; 15409 15410int 15411main () 15412{ 15413 15414 ; 15415 return 0; 15416} 15417_ACEOF 15418if ac_fn_c_try_compile "$LINENO"; then : 15419 gl_cv_header_stdint_width=yes 15420fi 15421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15422fi 15423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 15424$as_echo "$gl_cv_header_stdint_width" >&6; } 15425 if test "$gl_cv_header_stdint_width" = yes; then 15426 STDINT_H= 15427 fi 15428 ;; 15429 *) 15430 for ac_header in sys/inttypes.h sys/bitypes.h 15431do : 15432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15433ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15434if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15435 cat >>confdefs.h <<_ACEOF 15436#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15437_ACEOF 15438 15439fi 15440 15441done 15442 15443 if test $ac_cv_header_sys_inttypes_h = yes; then 15444 HAVE_SYS_INTTYPES_H=1 15445 fi 15446 if test $ac_cv_header_sys_bitypes_h = yes; then 15447 HAVE_SYS_BITYPES_H=1 15448 fi 15449 15450 15451 if test $APPLE_UNIVERSAL_BUILD = 0; then 15452 15453 15454 for gltype in ptrdiff_t size_t ; do 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 15456$as_echo_n "checking for bit size of $gltype... " >&6; } 15457if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 15458 $as_echo_n "(cached) " >&6 15459else 15460 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 15461 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15462 included before <wchar.h>. */ 15463 #include <stddef.h> 15464 #include <signal.h> 15465 #if HAVE_WCHAR_H 15466 # include <stdio.h> 15467 # include <time.h> 15468 # include <wchar.h> 15469 #endif 15470 15471#include <limits.h>"; then : 15472 15473else 15474 result=unknown 15475fi 15476 15477 eval gl_cv_bitsizeof_${gltype}=\$result 15478 15479fi 15480eval ac_res=\$gl_cv_bitsizeof_${gltype} 15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15482$as_echo "$ac_res" >&6; } 15483 eval result=\$gl_cv_bitsizeof_${gltype} 15484 if test $result = unknown; then 15485 result=0 15486 fi 15487 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 15488 cat >>confdefs.h <<_ACEOF 15489#define BITSIZEOF_${GLTYPE} $result 15490_ACEOF 15491 15492 eval BITSIZEOF_${GLTYPE}=\$result 15493 done 15494 15495 15496 fi 15497 15498 15499 for gltype in sig_atomic_t wchar_t wint_t ; do 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 15501$as_echo_n "checking for bit size of $gltype... " >&6; } 15502if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 15503 $as_echo_n "(cached) " >&6 15504else 15505 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 15506 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15507 included before <wchar.h>. */ 15508 #include <stddef.h> 15509 #include <signal.h> 15510 #if HAVE_WCHAR_H 15511 # include <stdio.h> 15512 # include <time.h> 15513 # include <wchar.h> 15514 #endif 15515 15516#include <limits.h>"; then : 15517 15518else 15519 result=unknown 15520fi 15521 15522 eval gl_cv_bitsizeof_${gltype}=\$result 15523 15524fi 15525eval ac_res=\$gl_cv_bitsizeof_${gltype} 15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15527$as_echo "$ac_res" >&6; } 15528 eval result=\$gl_cv_bitsizeof_${gltype} 15529 if test $result = unknown; then 15530 result=0 15531 fi 15532 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 15533 cat >>confdefs.h <<_ACEOF 15534#define BITSIZEOF_${GLTYPE} $result 15535_ACEOF 15536 15537 eval BITSIZEOF_${GLTYPE}=\$result 15538 done 15539 15540 15541 15542 15543 for gltype in sig_atomic_t wchar_t wint_t ; do 15544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 15545$as_echo_n "checking whether $gltype is signed... " >&6; } 15546if eval \${gl_cv_type_${gltype}_signed+:} false; then : 15547 $as_echo_n "(cached) " >&6 15548else 15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15550/* end confdefs.h. */ 15551 15552 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15553 included before <wchar.h>. */ 15554 #include <stddef.h> 15555 #include <signal.h> 15556 #if HAVE_WCHAR_H 15557 # include <stdio.h> 15558 # include <time.h> 15559 # include <wchar.h> 15560 #endif 15561 15562 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 15563int 15564main () 15565{ 15566 15567 ; 15568 return 0; 15569} 15570_ACEOF 15571if ac_fn_c_try_compile "$LINENO"; then : 15572 result=yes 15573else 15574 result=no 15575fi 15576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15577 eval gl_cv_type_${gltype}_signed=\$result 15578 15579fi 15580eval ac_res=\$gl_cv_type_${gltype}_signed 15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15582$as_echo "$ac_res" >&6; } 15583 eval result=\$gl_cv_type_${gltype}_signed 15584 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 15585 if test "$result" = yes; then 15586 cat >>confdefs.h <<_ACEOF 15587#define HAVE_SIGNED_${GLTYPE} 1 15588_ACEOF 15589 15590 eval HAVE_SIGNED_${GLTYPE}=1 15591 else 15592 eval HAVE_SIGNED_${GLTYPE}=0 15593 fi 15594 done 15595 15596 15597 gl_cv_type_ptrdiff_t_signed=yes 15598 gl_cv_type_size_t_signed=no 15599 if test $APPLE_UNIVERSAL_BUILD = 0; then 15600 15601 15602 for gltype in ptrdiff_t size_t ; do 15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 15604$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 15605if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607else 15608 eval gl_cv_type_${gltype}_suffix=no 15609 eval result=\$gl_cv_type_${gltype}_signed 15610 if test "$result" = yes; then 15611 glsufu= 15612 else 15613 glsufu=u 15614 fi 15615 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 15616 case $glsuf in 15617 '') gltype1='int';; 15618 l) gltype1='long int';; 15619 ll) gltype1='long long int';; 15620 i64) gltype1='__int64';; 15621 u) gltype1='unsigned int';; 15622 ul) gltype1='unsigned long int';; 15623 ull) gltype1='unsigned long long int';; 15624 ui64)gltype1='unsigned __int64';; 15625 esac 15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15627/* end confdefs.h. */ 15628 15629 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15630 included before <wchar.h>. */ 15631 #include <stddef.h> 15632 #include <signal.h> 15633 #if HAVE_WCHAR_H 15634 # include <stdio.h> 15635 # include <time.h> 15636 # include <wchar.h> 15637 #endif 15638 15639 extern $gltype foo; 15640 extern $gltype1 foo; 15641int 15642main () 15643{ 15644 15645 ; 15646 return 0; 15647} 15648_ACEOF 15649if ac_fn_c_try_compile "$LINENO"; then : 15650 eval gl_cv_type_${gltype}_suffix=\$glsuf 15651fi 15652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15653 eval result=\$gl_cv_type_${gltype}_suffix 15654 test "$result" != no && break 15655 done 15656fi 15657eval ac_res=\$gl_cv_type_${gltype}_suffix 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15659$as_echo "$ac_res" >&6; } 15660 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 15661 eval result=\$gl_cv_type_${gltype}_suffix 15662 test "$result" = no && result= 15663 eval ${GLTYPE}_SUFFIX=\$result 15664 cat >>confdefs.h <<_ACEOF 15665#define ${GLTYPE}_SUFFIX $result 15666_ACEOF 15667 15668 done 15669 15670 15671 fi 15672 15673 15674 for gltype in sig_atomic_t wchar_t wint_t ; do 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 15676$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 15677if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 15678 $as_echo_n "(cached) " >&6 15679else 15680 eval gl_cv_type_${gltype}_suffix=no 15681 eval result=\$gl_cv_type_${gltype}_signed 15682 if test "$result" = yes; then 15683 glsufu= 15684 else 15685 glsufu=u 15686 fi 15687 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 15688 case $glsuf in 15689 '') gltype1='int';; 15690 l) gltype1='long int';; 15691 ll) gltype1='long long int';; 15692 i64) gltype1='__int64';; 15693 u) gltype1='unsigned int';; 15694 ul) gltype1='unsigned long int';; 15695 ull) gltype1='unsigned long long int';; 15696 ui64)gltype1='unsigned __int64';; 15697 esac 15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15699/* end confdefs.h. */ 15700 15701 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 15702 included before <wchar.h>. */ 15703 #include <stddef.h> 15704 #include <signal.h> 15705 #if HAVE_WCHAR_H 15706 # include <stdio.h> 15707 # include <time.h> 15708 # include <wchar.h> 15709 #endif 15710 15711 extern $gltype foo; 15712 extern $gltype1 foo; 15713int 15714main () 15715{ 15716 15717 ; 15718 return 0; 15719} 15720_ACEOF 15721if ac_fn_c_try_compile "$LINENO"; then : 15722 eval gl_cv_type_${gltype}_suffix=\$glsuf 15723fi 15724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15725 eval result=\$gl_cv_type_${gltype}_suffix 15726 test "$result" != no && break 15727 done 15728fi 15729eval ac_res=\$gl_cv_type_${gltype}_suffix 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15731$as_echo "$ac_res" >&6; } 15732 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 15733 eval result=\$gl_cv_type_${gltype}_suffix 15734 test "$result" = no && result= 15735 eval ${GLTYPE}_SUFFIX=\$result 15736 cat >>confdefs.h <<_ACEOF 15737#define ${GLTYPE}_SUFFIX $result 15738_ACEOF 15739 15740 done 15741 15742 15743 15744 if test $GNULIB_OVERRIDES_WINT_T = 1; then 15745 BITSIZEOF_WINT_T=32 15746 fi 15747 15748 ;; 15749 esac 15750 15751 15752 15753 LIMITS_H='limits.h' 15754 if test -n "$LIMITS_H"; then 15755 GL_GENERATE_LIMITS_H_TRUE= 15756 GL_GENERATE_LIMITS_H_FALSE='#' 15757else 15758 GL_GENERATE_LIMITS_H_TRUE='#' 15759 GL_GENERATE_LIMITS_H_FALSE= 15760fi 15761 15762 15763 15764 15765 15766 15767 15768 if test -n "$STDINT_H"; then 15769 GL_GENERATE_STDINT_H_TRUE= 15770 GL_GENERATE_STDINT_H_FALSE='#' 15771else 15772 GL_GENERATE_STDINT_H_TRUE='#' 15773 GL_GENERATE_STDINT_H_FALSE= 15774fi 15775 15776 15777 15778 GNULIB_EXPLICIT_BZERO=0; 15779 GNULIB_FFSL=0; 15780 GNULIB_FFSLL=0; 15781 GNULIB_MEMCHR=0; 15782 GNULIB_MEMMEM=0; 15783 GNULIB_MEMPCPY=0; 15784 GNULIB_MEMRCHR=0; 15785 GNULIB_RAWMEMCHR=0; 15786 GNULIB_STPCPY=0; 15787 GNULIB_STPNCPY=0; 15788 GNULIB_STRCHRNUL=0; 15789 GNULIB_STRDUP=0; 15790 GNULIB_STRNCAT=0; 15791 GNULIB_STRNDUP=0; 15792 GNULIB_STRNLEN=0; 15793 GNULIB_STRPBRK=0; 15794 GNULIB_STRSEP=0; 15795 GNULIB_STRSTR=0; 15796 GNULIB_STRCASESTR=0; 15797 GNULIB_STRTOK_R=0; 15798 GNULIB_MBSLEN=0; 15799 GNULIB_MBSNLEN=0; 15800 GNULIB_MBSCHR=0; 15801 GNULIB_MBSRCHR=0; 15802 GNULIB_MBSSTR=0; 15803 GNULIB_MBSCASECMP=0; 15804 GNULIB_MBSNCASECMP=0; 15805 GNULIB_MBSPCASECMP=0; 15806 GNULIB_MBSCASESTR=0; 15807 GNULIB_MBSCSPN=0; 15808 GNULIB_MBSPBRK=0; 15809 GNULIB_MBSSPN=0; 15810 GNULIB_MBSSEP=0; 15811 GNULIB_MBSTOK_R=0; 15812 GNULIB_STRERROR=0; 15813 GNULIB_STRERROR_R=0; 15814 GNULIB_STRSIGNAL=0; 15815 GNULIB_STRVERSCMP=0; 15816 HAVE_MBSLEN=0; 15817 HAVE_EXPLICIT_BZERO=1; 15818 HAVE_FFSL=1; 15819 HAVE_FFSLL=1; 15820 HAVE_MEMCHR=1; 15821 HAVE_DECL_MEMMEM=1; 15822 HAVE_MEMPCPY=1; 15823 HAVE_DECL_MEMRCHR=1; 15824 HAVE_RAWMEMCHR=1; 15825 HAVE_STPCPY=1; 15826 HAVE_STPNCPY=1; 15827 HAVE_STRCHRNUL=1; 15828 HAVE_DECL_STRDUP=1; 15829 HAVE_DECL_STRNDUP=1; 15830 HAVE_DECL_STRNLEN=1; 15831 HAVE_STRPBRK=1; 15832 HAVE_STRSEP=1; 15833 HAVE_STRCASESTR=1; 15834 HAVE_DECL_STRTOK_R=1; 15835 HAVE_DECL_STRERROR_R=1; 15836 HAVE_DECL_STRSIGNAL=1; 15837 HAVE_STRVERSCMP=1; 15838 REPLACE_MEMCHR=0; 15839 REPLACE_MEMMEM=0; 15840 REPLACE_STPNCPY=0; 15841 REPLACE_STRCHRNUL=0; 15842 REPLACE_STRDUP=0; 15843 REPLACE_STRNCAT=0; 15844 REPLACE_STRNDUP=0; 15845 REPLACE_STRNLEN=0; 15846 REPLACE_STRSTR=0; 15847 REPLACE_STRCASESTR=0; 15848 REPLACE_STRTOK_R=0; 15849 REPLACE_STRERROR=0; 15850 REPLACE_STRERROR_R=0; 15851 REPLACE_STRSIGNAL=0; 15852 UNDEFINE_STRTOK_R=0; 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 if test $gl_cv_have_include_next = yes; then 15865 gl_cv_next_string_h='<'string.h'>' 15866 else 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 15868$as_echo_n "checking absolute name of <string.h>... " >&6; } 15869if ${gl_cv_next_string_h+:} false; then : 15870 $as_echo_n "(cached) " >&6 15871else 15872 15873 15874 15875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15876/* end confdefs.h. */ 15877#include <string.h> 15878_ACEOF 15879 case "$host_os" in 15880 aix*) gl_absname_cpp="$ac_cpp -C" ;; 15881 *) gl_absname_cpp="$ac_cpp" ;; 15882 esac 15883 15884 case "$host_os" in 15885 mingw*) 15886 gl_dirsep_regex='[/\\]' 15887 ;; 15888 *) 15889 gl_dirsep_regex='\/' 15890 ;; 15891 esac 15892 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 15893 gl_header_literal_regex=`echo 'string.h' \ 15894 | sed -e "$gl_make_literal_regex_sed"` 15895 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 15896 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 15897 s|^/[^/]|//&| 15898 p 15899 q 15900 }' 15901 15902 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 15903 sed -n "$gl_absolute_header_sed"` 15904 15905 gl_header=$gl_cv_absolute_string_h 15906 gl_cv_next_string_h='"'$gl_header'"' 15907 15908 15909fi 15910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 15911$as_echo "$gl_cv_next_string_h" >&6; } 15912 fi 15913 NEXT_STRING_H=$gl_cv_next_string_h 15914 15915 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 15916 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 15917 gl_next_as_first_directive='<'string.h'>' 15918 else 15919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 15920 gl_next_as_first_directive=$gl_cv_next_string_h 15921 fi 15922 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15937if test "x$ac_cv_type_pid_t" = xyes; then : 15938 15939else 15940 15941cat >>confdefs.h <<_ACEOF 15942#define pid_t int 15943_ACEOF 15944 15945fi 15946 15947ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 15948if test "x$ac_cv_type_mode_t" = xyes; then : 15949 15950else 15951 15952cat >>confdefs.h <<_ACEOF 15953#define mode_t int 15954_ACEOF 15955 15956fi 15957 15958 15959 15960 WINDOWS_64_BIT_OFF_T=0 15961 15962 15963 15964 15965 15966$as_echo "#define _USE_STD_STAT 1" >>confdefs.h 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 if test $gl_cv_have_include_next = yes; then 15979 gl_cv_next_sys_types_h='<'sys/types.h'>' 15980 else 15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 15982$as_echo_n "checking absolute name of <sys/types.h>... " >&6; } 15983if ${gl_cv_next_sys_types_h+:} false; then : 15984 $as_echo_n "(cached) " >&6 15985else 15986 15987 15988 15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15990/* end confdefs.h. */ 15991#include <sys/types.h> 15992_ACEOF 15993 case "$host_os" in 15994 aix*) gl_absname_cpp="$ac_cpp -C" ;; 15995 *) gl_absname_cpp="$ac_cpp" ;; 15996 esac 15997 15998 case "$host_os" in 15999 mingw*) 16000 gl_dirsep_regex='[/\\]' 16001 ;; 16002 *) 16003 gl_dirsep_regex='\/' 16004 ;; 16005 esac 16006 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 16007 gl_header_literal_regex=`echo 'sys/types.h' \ 16008 | sed -e "$gl_make_literal_regex_sed"` 16009 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 16010 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 16011 s|^/[^/]|//&| 16012 p 16013 q 16014 }' 16015 16016 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 16017 sed -n "$gl_absolute_header_sed"` 16018 16019 gl_header=$gl_cv_absolute_sys_types_h 16020 gl_cv_next_sys_types_h='"'$gl_header'"' 16021 16022 16023fi 16024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 16025$as_echo "$gl_cv_next_sys_types_h" >&6; } 16026 fi 16027 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 16028 16029 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 16030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 16031 gl_next_as_first_directive='<'sys/types.h'>' 16032 else 16033 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 16034 gl_next_as_first_directive=$gl_cv_next_sys_types_h 16035 fi 16036 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 WINDOWS_STAT_INODES=0 16050 16051 16052 16053 16054 GNULIB_ACCESS=0; 16055 GNULIB_CHDIR=0; 16056 GNULIB_CHOWN=0; 16057 GNULIB_CLOSE=0; 16058 GNULIB_COPY_FILE_RANGE=0; 16059 GNULIB_DUP=0; 16060 GNULIB_DUP2=0; 16061 GNULIB_DUP3=0; 16062 GNULIB_ENVIRON=0; 16063 GNULIB_EUIDACCESS=0; 16064 GNULIB_FACCESSAT=0; 16065 GNULIB_FCHDIR=0; 16066 GNULIB_FCHOWNAT=0; 16067 GNULIB_FDATASYNC=0; 16068 GNULIB_FSYNC=0; 16069 GNULIB_FTRUNCATE=0; 16070 GNULIB_GETCWD=0; 16071 GNULIB_GETDOMAINNAME=0; 16072 GNULIB_GETDTABLESIZE=0; 16073 GNULIB_GETGROUPS=0; 16074 GNULIB_GETHOSTNAME=0; 16075 GNULIB_GETLOGIN=0; 16076 GNULIB_GETLOGIN_R=0; 16077 GNULIB_GETOPT_POSIX=0; 16078 GNULIB_GETPAGESIZE=0; 16079 GNULIB_GETPASS=0; 16080 GNULIB_GETUSERSHELL=0; 16081 GNULIB_GROUP_MEMBER=0; 16082 GNULIB_ISATTY=0; 16083 GNULIB_LCHOWN=0; 16084 GNULIB_LINK=0; 16085 GNULIB_LINKAT=0; 16086 GNULIB_LSEEK=0; 16087 GNULIB_PIPE=0; 16088 GNULIB_PIPE2=0; 16089 GNULIB_PREAD=0; 16090 GNULIB_PWRITE=0; 16091 GNULIB_READ=0; 16092 GNULIB_READLINK=0; 16093 GNULIB_READLINKAT=0; 16094 GNULIB_RMDIR=0; 16095 GNULIB_SETHOSTNAME=0; 16096 GNULIB_SLEEP=0; 16097 GNULIB_SYMLINK=0; 16098 GNULIB_SYMLINKAT=0; 16099 GNULIB_TRUNCATE=0; 16100 GNULIB_TTYNAME_R=0; 16101 GNULIB_UNISTD_H_NONBLOCKING=0; 16102 GNULIB_UNISTD_H_SIGPIPE=0; 16103 GNULIB_UNLINK=0; 16104 GNULIB_UNLINKAT=0; 16105 GNULIB_USLEEP=0; 16106 GNULIB_WRITE=0; 16107 HAVE_CHOWN=1; 16108 HAVE_COPY_FILE_RANGE=1; 16109 HAVE_DUP2=1; 16110 HAVE_DUP3=1; 16111 HAVE_EUIDACCESS=1; 16112 HAVE_FACCESSAT=1; 16113 HAVE_FCHDIR=1; 16114 HAVE_FCHOWNAT=1; 16115 HAVE_FDATASYNC=1; 16116 HAVE_FSYNC=1; 16117 HAVE_FTRUNCATE=1; 16118 HAVE_GETDTABLESIZE=1; 16119 HAVE_GETGROUPS=1; 16120 HAVE_GETHOSTNAME=1; 16121 HAVE_GETLOGIN=1; 16122 HAVE_GETPAGESIZE=1; 16123 HAVE_GETPASS=1; 16124 HAVE_GROUP_MEMBER=1; 16125 HAVE_LCHOWN=1; 16126 HAVE_LINK=1; 16127 HAVE_LINKAT=1; 16128 HAVE_PIPE=1; 16129 HAVE_PIPE2=1; 16130 HAVE_PREAD=1; 16131 HAVE_PWRITE=1; 16132 HAVE_READLINK=1; 16133 HAVE_READLINKAT=1; 16134 HAVE_SETHOSTNAME=1; 16135 HAVE_SLEEP=1; 16136 HAVE_SYMLINK=1; 16137 HAVE_SYMLINKAT=1; 16138 HAVE_UNLINKAT=1; 16139 HAVE_USLEEP=1; 16140 HAVE_DECL_ENVIRON=1; 16141 HAVE_DECL_FCHDIR=1; 16142 HAVE_DECL_FDATASYNC=1; 16143 HAVE_DECL_GETDOMAINNAME=1; 16144 HAVE_DECL_GETLOGIN=1; 16145 HAVE_DECL_GETLOGIN_R=1; 16146 HAVE_DECL_GETPAGESIZE=1; 16147 HAVE_DECL_GETUSERSHELL=1; 16148 HAVE_DECL_SETHOSTNAME=1; 16149 HAVE_DECL_TRUNCATE=1; 16150 HAVE_DECL_TTYNAME_R=1; 16151 HAVE_OS_H=0; 16152 HAVE_SYS_PARAM_H=0; 16153 REPLACE_ACCESS=0; 16154 REPLACE_CHOWN=0; 16155 REPLACE_CLOSE=0; 16156 REPLACE_DUP=0; 16157 REPLACE_DUP2=0; 16158 REPLACE_FACCESSAT=0; 16159 REPLACE_FCHOWNAT=0; 16160 REPLACE_FTRUNCATE=0; 16161 REPLACE_GETCWD=0; 16162 REPLACE_GETDOMAINNAME=0; 16163 REPLACE_GETDTABLESIZE=0; 16164 REPLACE_GETLOGIN_R=0; 16165 REPLACE_GETGROUPS=0; 16166 REPLACE_GETPAGESIZE=0; 16167 REPLACE_GETPASS=0; 16168 REPLACE_ISATTY=0; 16169 REPLACE_LCHOWN=0; 16170 REPLACE_LINK=0; 16171 REPLACE_LINKAT=0; 16172 REPLACE_LSEEK=0; 16173 REPLACE_PREAD=0; 16174 REPLACE_PWRITE=0; 16175 REPLACE_READ=0; 16176 REPLACE_READLINK=0; 16177 REPLACE_READLINKAT=0; 16178 REPLACE_RMDIR=0; 16179 REPLACE_SLEEP=0; 16180 REPLACE_SYMLINK=0; 16181 REPLACE_SYMLINKAT=0; 16182 REPLACE_TRUNCATE=0; 16183 REPLACE_TTYNAME_R=0; 16184 REPLACE_UNLINK=0; 16185 REPLACE_UNLINKAT=0; 16186 REPLACE_USLEEP=0; 16187 REPLACE_WRITE=0; 16188 UNISTD_H_HAVE_WINSOCK2_H=0; 16189 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 16190 16191 16192 16193 16194 16195 16196 16197 GNULIB_IMAXABS=0; 16198 GNULIB_IMAXDIV=0; 16199 GNULIB_STRTOIMAX=0; 16200 GNULIB_STRTOUMAX=0; 16201 HAVE_DECL_IMAXABS=1; 16202 HAVE_DECL_IMAXDIV=1; 16203 HAVE_DECL_STRTOIMAX=1; 16204 HAVE_DECL_STRTOUMAX=1; 16205 HAVE_IMAXDIV_T=1; 16206 REPLACE_STRTOIMAX=0; 16207 REPLACE_STRTOUMAX=0; 16208 INT32_MAX_LT_INTMAX_MAX=1; 16209 INT64_MAX_EQ_LONG_MAX='defined _LP64'; 16210 PRI_MACROS_BROKEN=0; 16211 PRIPTR_PREFIX=__PRIPTR_PREFIX; 16212 UINT32_MAX_LT_UINTMAX_MAX=1; 16213 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 if test $gl_cv_have_include_next = yes; then 16230 gl_cv_next_inttypes_h='<'inttypes.h'>' 16231 else 16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 16233$as_echo_n "checking absolute name of <inttypes.h>... " >&6; } 16234if ${gl_cv_next_inttypes_h+:} false; then : 16235 $as_echo_n "(cached) " >&6 16236else 16237 16238 if test $ac_cv_header_inttypes_h = yes; then 16239 16240 16241 16242 16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16244/* end confdefs.h. */ 16245#include <inttypes.h> 16246_ACEOF 16247 case "$host_os" in 16248 aix*) gl_absname_cpp="$ac_cpp -C" ;; 16249 *) gl_absname_cpp="$ac_cpp" ;; 16250 esac 16251 16252 case "$host_os" in 16253 mingw*) 16254 gl_dirsep_regex='[/\\]' 16255 ;; 16256 *) 16257 gl_dirsep_regex='\/' 16258 ;; 16259 esac 16260 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 16261 gl_header_literal_regex=`echo 'inttypes.h' \ 16262 | sed -e "$gl_make_literal_regex_sed"` 16263 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 16264 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 16265 s|^/[^/]|//&| 16266 p 16267 q 16268 }' 16269 16270 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 16271 sed -n "$gl_absolute_header_sed"` 16272 16273 gl_header=$gl_cv_absolute_inttypes_h 16274 gl_cv_next_inttypes_h='"'$gl_header'"' 16275 else 16276 gl_cv_next_inttypes_h='<'inttypes.h'>' 16277 fi 16278 16279 16280fi 16281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 16282$as_echo "$gl_cv_next_inttypes_h" >&6; } 16283 fi 16284 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h 16285 16286 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 16287 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 16288 gl_next_as_first_directive='<'inttypes.h'>' 16289 else 16290 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 16291 gl_next_as_first_directive=$gl_cv_next_inttypes_h 16292 fi 16293 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 for ac_header in inttypes.h 16309do : 16310 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 16311if test "x$ac_cv_header_inttypes_h" = xyes; then : 16312 cat >>confdefs.h <<_ACEOF 16313#define HAVE_INTTYPES_H 1 16314_ACEOF 16315 16316fi 16317 16318done 16319 16320 if test $ac_cv_header_inttypes_h = yes; then 16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 16322$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 16323if ${gt_cv_inttypes_pri_broken+:} false; then : 16324 $as_echo_n "(cached) " >&6 16325else 16326 16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16328/* end confdefs.h. */ 16329 16330#include <inttypes.h> 16331#ifdef PRId32 16332char *p = PRId32; 16333#endif 16334 16335int 16336main () 16337{ 16338 16339 ; 16340 return 0; 16341} 16342_ACEOF 16343if ac_fn_c_try_compile "$LINENO"; then : 16344 gt_cv_inttypes_pri_broken=no 16345else 16346 gt_cv_inttypes_pri_broken=yes 16347fi 16348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16349 16350fi 16351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 16352$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 16353 fi 16354 if test "$gt_cv_inttypes_pri_broken" = yes; then 16355 16356cat >>confdefs.h <<_ACEOF 16357#define PRI_MACROS_BROKEN 1 16358_ACEOF 16359 16360 PRI_MACROS_BROKEN=1 16361 else 16362 PRI_MACROS_BROKEN=0 16363 fi 16364 16365 16366 16367 GNULIB_BTOWC=0; 16368 GNULIB_WCTOB=0; 16369 GNULIB_MBSINIT=0; 16370 GNULIB_MBRTOWC=0; 16371 GNULIB_MBRLEN=0; 16372 GNULIB_MBSRTOWCS=0; 16373 GNULIB_MBSNRTOWCS=0; 16374 GNULIB_WCRTOMB=0; 16375 GNULIB_WCSRTOMBS=0; 16376 GNULIB_WCSNRTOMBS=0; 16377 GNULIB_WCWIDTH=0; 16378 GNULIB_WMEMCHR=0; 16379 GNULIB_WMEMCMP=0; 16380 GNULIB_WMEMCPY=0; 16381 GNULIB_WMEMMOVE=0; 16382 GNULIB_WMEMSET=0; 16383 GNULIB_WCSLEN=0; 16384 GNULIB_WCSNLEN=0; 16385 GNULIB_WCSCPY=0; 16386 GNULIB_WCPCPY=0; 16387 GNULIB_WCSNCPY=0; 16388 GNULIB_WCPNCPY=0; 16389 GNULIB_WCSCAT=0; 16390 GNULIB_WCSNCAT=0; 16391 GNULIB_WCSCMP=0; 16392 GNULIB_WCSNCMP=0; 16393 GNULIB_WCSCASECMP=0; 16394 GNULIB_WCSNCASECMP=0; 16395 GNULIB_WCSCOLL=0; 16396 GNULIB_WCSXFRM=0; 16397 GNULIB_WCSDUP=0; 16398 GNULIB_WCSCHR=0; 16399 GNULIB_WCSRCHR=0; 16400 GNULIB_WCSCSPN=0; 16401 GNULIB_WCSSPN=0; 16402 GNULIB_WCSPBRK=0; 16403 GNULIB_WCSSTR=0; 16404 GNULIB_WCSTOK=0; 16405 GNULIB_WCSWIDTH=0; 16406 GNULIB_WCSFTIME=0; 16407 HAVE_BTOWC=1; 16408 HAVE_MBSINIT=1; 16409 HAVE_MBRTOWC=1; 16410 HAVE_MBRLEN=1; 16411 HAVE_MBSRTOWCS=1; 16412 HAVE_MBSNRTOWCS=1; 16413 HAVE_WCRTOMB=1; 16414 HAVE_WCSRTOMBS=1; 16415 HAVE_WCSNRTOMBS=1; 16416 HAVE_WMEMCHR=1; 16417 HAVE_WMEMCMP=1; 16418 HAVE_WMEMCPY=1; 16419 HAVE_WMEMMOVE=1; 16420 HAVE_WMEMSET=1; 16421 HAVE_WCSLEN=1; 16422 HAVE_WCSNLEN=1; 16423 HAVE_WCSCPY=1; 16424 HAVE_WCPCPY=1; 16425 HAVE_WCSNCPY=1; 16426 HAVE_WCPNCPY=1; 16427 HAVE_WCSCAT=1; 16428 HAVE_WCSNCAT=1; 16429 HAVE_WCSCMP=1; 16430 HAVE_WCSNCMP=1; 16431 HAVE_WCSCASECMP=1; 16432 HAVE_WCSNCASECMP=1; 16433 HAVE_WCSCOLL=1; 16434 HAVE_WCSXFRM=1; 16435 HAVE_WCSDUP=1; 16436 HAVE_WCSCHR=1; 16437 HAVE_WCSRCHR=1; 16438 HAVE_WCSCSPN=1; 16439 HAVE_WCSSPN=1; 16440 HAVE_WCSPBRK=1; 16441 HAVE_WCSSTR=1; 16442 HAVE_WCSTOK=1; 16443 HAVE_WCSWIDTH=1; 16444 HAVE_WCSFTIME=1; 16445 HAVE_DECL_WCTOB=1; 16446 HAVE_DECL_WCWIDTH=1; 16447 REPLACE_MBSTATE_T=0; 16448 REPLACE_BTOWC=0; 16449 REPLACE_WCTOB=0; 16450 REPLACE_MBSINIT=0; 16451 REPLACE_MBRTOWC=0; 16452 REPLACE_MBRLEN=0; 16453 REPLACE_MBSRTOWCS=0; 16454 REPLACE_MBSNRTOWCS=0; 16455 REPLACE_WCRTOMB=0; 16456 REPLACE_WCSRTOMBS=0; 16457 REPLACE_WCSNRTOMBS=0; 16458 REPLACE_WCWIDTH=0; 16459 REPLACE_WCSWIDTH=0; 16460 REPLACE_WCSFTIME=0; 16461 REPLACE_WCSTOK=0; 16462 16463 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 16465$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 16466if ${gl_cv_header_wchar_h_correct_inline+:} false; then : 16467 $as_echo_n "(cached) " >&6 16468else 16469 gl_cv_header_wchar_h_correct_inline=yes 16470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16471/* end confdefs.h. */ 16472 16473 #define wcstod renamed_wcstod 16474/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 16475 <wchar.h>. 16476 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 16477 included before <wchar.h>. */ 16478#include <stddef.h> 16479#include <stdio.h> 16480#include <time.h> 16481#include <wchar.h> 16482extern int zero (void); 16483int main () { return zero(); } 16484 16485_ACEOF 16486 save_ac_compile="$ac_compile" 16487 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` 16488 if echo '#include "conftest.c"' >conftest1.c && 16489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16490 (eval $ac_compile) 2>&5 16491 ac_status=$? 16492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16493 test $ac_status = 0; }; then 16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16495/* end confdefs.h. */ 16496 16497 #define wcstod renamed_wcstod 16498/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 16499 <wchar.h>. 16500 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 16501 included before <wchar.h>. */ 16502#include <stddef.h> 16503#include <stdio.h> 16504#include <time.h> 16505#include <wchar.h> 16506int zero (void) { return 0; } 16507 16508_ACEOF 16509 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` 16510 if echo '#include "conftest.c"' >conftest2.c && 16511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16512 (eval $ac_compile) 2>&5 16513 ac_status=$? 16514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16515 test $ac_status = 0; }; then 16516 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 16517 : 16518 else 16519 gl_cv_header_wchar_h_correct_inline=no 16520 fi 16521 fi 16522 fi 16523 ac_compile="$save_ac_compile" 16524 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext 16525 16526fi 16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 16528$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } 16529 if test $gl_cv_header_wchar_h_correct_inline = no; then 16530 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 16531This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 16532C99 mode. You have four options: 16533 - Add the flag -fgnu89-inline to CC and reconfigure, or 16534 - Fix your include files, using parts of 16535 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 16536 - Use a gcc version older than 4.3, or 16537 - Don't use the flags -std=c99 or -std=gnu99. 16538Configuration aborted." "$LINENO" 5 16539 fi 16540 16541 16542 16543 16544 16545 if test $ac_cv_header_features_h = yes; then 16546 HAVE_FEATURES_H=1 16547 else 16548 HAVE_FEATURES_H=0 16549 fi 16550 16551 16552 16553 16554 16555 16556 if test $ac_cv_header_crtdefs_h = yes; then 16557 HAVE_CRTDEFS_H=1 16558 else 16559 HAVE_CRTDEFS_H=0 16560 fi 16561 16562 16563 16564 if true; then 16565 GL_COND_LIBTOOL_TRUE= 16566 GL_COND_LIBTOOL_FALSE='#' 16567else 16568 GL_COND_LIBTOOL_TRUE='#' 16569 GL_COND_LIBTOOL_FALSE= 16570fi 16571 16572 gl_cond_libtool=true 16573 gl_m4_base='gl/m4' 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 gl_source_base='gl' 16585 16586 for ac_header in byteswap.h 16587do : 16588 ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 16589if test "x$ac_cv_header_byteswap_h" = xyes; then : 16590 cat >>confdefs.h <<_ACEOF 16591#define HAVE_BYTESWAP_H 1 16592_ACEOF 16593 16594 BYTESWAP_H='' 16595 16596else 16597 16598 BYTESWAP_H='byteswap.h' 16599 16600fi 16601 16602done 16603 16604 16605 if test -n "$BYTESWAP_H"; then 16606 GL_GENERATE_BYTESWAP_H_TRUE= 16607 GL_GENERATE_BYTESWAP_H_FALSE='#' 16608else 16609 GL_GENERATE_BYTESWAP_H_TRUE='#' 16610 GL_GENERATE_BYTESWAP_H_FALSE= 16611fi 16612 16613 16614 16615 16616 16617 : 16618 16619 16620 # Autoconf 2.61a.99 and earlier don't support linking a file only 16621 # in VPATH builds. But since GNUmakefile is for maintainer use 16622 # only, it does not matter if we skip the link with older autoconf. 16623 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH 16624 # builds, so use a shell variable to bypass this. 16625 GNUmakefile=GNUmakefile 16626 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" 16627 16628 16629 16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 16631$as_echo_n "checking whether the compiler generally respects inline... " >&6; } 16632if ${gl_cv_c_inline_effective+:} false; then : 16633 $as_echo_n "(cached) " >&6 16634else 16635 if test $ac_cv_c_inline = no; then 16636 gl_cv_c_inline_effective=no 16637 else 16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16639/* end confdefs.h. */ 16640 16641int 16642main () 16643{ 16644#ifdef __NO_INLINE__ 16645 #error "inline is not effective" 16646 #endif 16647 ; 16648 return 0; 16649} 16650_ACEOF 16651if ac_fn_c_try_compile "$LINENO"; then : 16652 gl_cv_c_inline_effective=yes 16653else 16654 gl_cv_c_inline_effective=no 16655fi 16656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16657 fi 16658 16659fi 16660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 16661$as_echo "$gl_cv_c_inline_effective" >&6; } 16662 if test $gl_cv_c_inline_effective = yes; then 16663 16664$as_echo "#define HAVE_INLINE 1" >>confdefs.h 16665 16666 fi 16667 16668 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5 16670$as_echo_n "checking whether the compiler supports the __inline keyword... " >&6; } 16671if ${gl_cv_c___inline+:} false; then : 16672 $as_echo_n "(cached) " >&6 16673else 16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16675/* end confdefs.h. */ 16676typedef int foo_t; 16677 static __inline foo_t foo (void) { return 0; } 16678int 16679main () 16680{ 16681return foo (); 16682 ; 16683 return 0; 16684} 16685_ACEOF 16686if ac_fn_c_try_compile "$LINENO"; then : 16687 gl_cv_c___inline=yes 16688else 16689 gl_cv_c___inline=no 16690fi 16691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16692fi 16693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5 16694$as_echo "$gl_cv_c___inline" >&6; } 16695 if test $gl_cv_c___inline = yes; then 16696 16697$as_echo "#define HAVE___INLINE 1" >>confdefs.h 16698 16699 fi 16700 16701 16702 16703 16704 16705 16706 16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 16708$as_echo_n "checking for ssize_t... " >&6; } 16709if ${gt_cv_ssize_t+:} false; then : 16710 $as_echo_n "(cached) " >&6 16711else 16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16713/* end confdefs.h. */ 16714#include <sys/types.h> 16715int 16716main () 16717{ 16718int x = sizeof (ssize_t *) + sizeof (ssize_t); 16719 return !x; 16720 ; 16721 return 0; 16722} 16723_ACEOF 16724if ac_fn_c_try_compile "$LINENO"; then : 16725 gt_cv_ssize_t=yes 16726else 16727 gt_cv_ssize_t=no 16728fi 16729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16730fi 16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 16732$as_echo "$gt_cv_ssize_t" >&6; } 16733 if test $gt_cv_ssize_t = no; then 16734 16735$as_echo "#define ssize_t int" >>confdefs.h 16736 16737 fi 16738 16739 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 16741$as_echo_n "checking for working stdalign.h... " >&6; } 16742if ${gl_cv_header_working_stdalign_h+:} false; then : 16743 $as_echo_n "(cached) " >&6 16744else 16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16746/* end confdefs.h. */ 16747#include <stdalign.h> 16748 #include <stddef.h> 16749 16750 /* Test that alignof yields a result consistent with offsetof. 16751 This catches GCC bug 52023 16752 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ 16753 #ifdef __cplusplus 16754 template <class t> struct alignof_helper { char a; t b; }; 16755 # define ao(type) offsetof (alignof_helper<type>, b) 16756 #else 16757 # define ao(type) offsetof (struct { char a; type b; }, b) 16758 #endif 16759 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; 16760 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; 16761 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; 16762 16763 /* Test _Alignas only on platforms where gnulib can help. */ 16764 #if \ 16765 ((defined __cplusplus && 201103 <= __cplusplus) \ 16766 || (defined __APPLE__ && defined __MACH__ \ 16767 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ 16768 : __GNUC__) \ 16769 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ 16770 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \ 16771 || 1300 <= _MSC_VER) 16772 struct alignas_test { char c; char alignas (8) alignas_8; }; 16773 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 16774 ? 1 : -1]; 16775 #endif 16776 16777int 16778main () 16779{ 16780 16781 ; 16782 return 0; 16783} 16784_ACEOF 16785if ac_fn_c_try_compile "$LINENO"; then : 16786 gl_cv_header_working_stdalign_h=yes 16787else 16788 gl_cv_header_working_stdalign_h=no 16789fi 16790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16791fi 16792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 16793$as_echo "$gl_cv_header_working_stdalign_h" >&6; } 16794 16795 if test $gl_cv_header_working_stdalign_h = yes; then 16796 STDALIGN_H='' 16797 else 16798 STDALIGN_H='stdalign.h' 16799 fi 16800 16801 16802 if test -n "$STDALIGN_H"; then 16803 GL_GENERATE_STDALIGN_H_TRUE= 16804 GL_GENERATE_STDALIGN_H_FALSE='#' 16805else 16806 GL_GENERATE_STDALIGN_H_TRUE='#' 16807 GL_GENERATE_STDALIGN_H_FALSE= 16808fi 16809 16810 16811 16812 16813 16814 16815 if test "$ac_cv_header_stdbool_h" = yes; then 16816 case "$host_os" in 16817 solaris*) 16818 if test -z "$GCC"; then 16819 STDBOOL_H='stdbool.h' 16820 else 16821 STDBOOL_H='' 16822 fi 16823 ;; 16824 *) 16825 STDBOOL_H='' 16826 ;; 16827 esac 16828 else 16829 STDBOOL_H='stdbool.h' 16830 fi 16831 16832 if test -n "$STDBOOL_H"; then 16833 GL_GENERATE_STDBOOL_H_TRUE= 16834 GL_GENERATE_STDBOOL_H_FALSE='#' 16835else 16836 GL_GENERATE_STDBOOL_H_TRUE='#' 16837 GL_GENERATE_STDBOOL_H_FALSE= 16838fi 16839 16840 16841 if test "$ac_cv_type__Bool" = yes; then 16842 HAVE__BOOL=1 16843 else 16844 HAVE__BOOL=0 16845 fi 16846 16847 16848 16849 16850 16851 STDDEF_H= 16852 16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 16854$as_echo_n "checking for good max_align_t... " >&6; } 16855if ${gl_cv_type_max_align_t+:} false; then : 16856 $as_echo_n "(cached) " >&6 16857else 16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16859/* end confdefs.h. */ 16860#include <stddef.h> 16861 unsigned int s = sizeof (max_align_t); 16862 #if defined __GNUC__ || defined __IBM__ALIGNOF__ 16863 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; 16864 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; 16865 #endif 16866 16867int 16868main () 16869{ 16870 16871 ; 16872 return 0; 16873} 16874_ACEOF 16875if ac_fn_c_try_compile "$LINENO"; then : 16876 gl_cv_type_max_align_t=yes 16877else 16878 gl_cv_type_max_align_t=no 16879fi 16880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16881 16882fi 16883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 16884$as_echo "$gl_cv_type_max_align_t" >&6; } 16885 if test $gl_cv_type_max_align_t = no; then 16886 HAVE_MAX_ALIGN_T=0 16887 STDDEF_H=stddef.h 16888 fi 16889 16890 if test $gt_cv_c_wchar_t = no; then 16891 HAVE_WCHAR_T=0 16892 STDDEF_H=stddef.h 16893 fi 16894 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 16896$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 16897if ${gl_cv_decl_null_works+:} false; then : 16898 $as_echo_n "(cached) " >&6 16899else 16900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16901/* end confdefs.h. */ 16902#include <stddef.h> 16903 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 16904 16905int 16906main () 16907{ 16908 16909 ; 16910 return 0; 16911} 16912_ACEOF 16913if ac_fn_c_try_compile "$LINENO"; then : 16914 gl_cv_decl_null_works=yes 16915else 16916 gl_cv_decl_null_works=no 16917fi 16918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16919fi 16920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 16921$as_echo "$gl_cv_decl_null_works" >&6; } 16922 if test $gl_cv_decl_null_works = no; then 16923 REPLACE_NULL=1 16924 STDDEF_H=stddef.h 16925 fi 16926 16927 16928 if test -n "$STDDEF_H"; then 16929 GL_GENERATE_STDDEF_H_TRUE= 16930 GL_GENERATE_STDDEF_H_FALSE='#' 16931else 16932 GL_GENERATE_STDDEF_H_TRUE='#' 16933 GL_GENERATE_STDDEF_H_FALSE= 16934fi 16935 16936 if test -n "$STDDEF_H"; then 16937 16938 16939 16940 16941 16942 16943 16944 16945 if test $gl_cv_have_include_next = yes; then 16946 gl_cv_next_stddef_h='<'stddef.h'>' 16947 else 16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 16949$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 16950if ${gl_cv_next_stddef_h+:} false; then : 16951 $as_echo_n "(cached) " >&6 16952else 16953 16954 16955 16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16957/* end confdefs.h. */ 16958#include <stddef.h> 16959_ACEOF 16960 case "$host_os" in 16961 aix*) gl_absname_cpp="$ac_cpp -C" ;; 16962 *) gl_absname_cpp="$ac_cpp" ;; 16963 esac 16964 16965 case "$host_os" in 16966 mingw*) 16967 gl_dirsep_regex='[/\\]' 16968 ;; 16969 *) 16970 gl_dirsep_regex='\/' 16971 ;; 16972 esac 16973 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 16974 gl_header_literal_regex=`echo 'stddef.h' \ 16975 | sed -e "$gl_make_literal_regex_sed"` 16976 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 16977 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 16978 s|^/[^/]|//&| 16979 p 16980 q 16981 }' 16982 16983 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 16984 sed -n "$gl_absolute_header_sed"` 16985 16986 gl_header=$gl_cv_absolute_stddef_h 16987 gl_cv_next_stddef_h='"'$gl_header'"' 16988 16989 16990fi 16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 16992$as_echo "$gl_cv_next_stddef_h" >&6; } 16993 fi 16994 NEXT_STDDEF_H=$gl_cv_next_stddef_h 16995 16996 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 16997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 16998 gl_next_as_first_directive='<'stddef.h'>' 16999 else 17000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 17001 gl_next_as_first_directive=$gl_cv_next_stddef_h 17002 fi 17003 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 17004 17005 17006 17007 17008 fi 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 for ac_func in strverscmp 17019do : 17020 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp" 17021if test "x$ac_cv_func_strverscmp" = xyes; then : 17022 cat >>confdefs.h <<_ACEOF 17023#define HAVE_STRVERSCMP 1 17024_ACEOF 17025 17026fi 17027done 17028 17029 if test $ac_cv_func_strverscmp = no; then 17030 HAVE_STRVERSCMP=0 17031 fi 17032 17033 if test $HAVE_STRVERSCMP = 0; then 17034 17035 17036 17037 17038 17039 17040 17041 17042 gl_LIBOBJS="$gl_LIBOBJS strverscmp.$ac_objext" 17043 17044 17045 : 17046 17047 fi 17048 17049 17050 17051 17052 17053 GNULIB_STRVERSCMP=1 17054 17055 17056 17057 17058 17059$as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 if test $gl_cv_have_include_next = yes; then 17078 gl_cv_next_unistd_h='<'unistd.h'>' 17079 else 17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 17081$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 17082if ${gl_cv_next_unistd_h+:} false; then : 17083 $as_echo_n "(cached) " >&6 17084else 17085 17086 if test $ac_cv_header_unistd_h = yes; then 17087 17088 17089 17090 17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17092/* end confdefs.h. */ 17093#include <unistd.h> 17094_ACEOF 17095 case "$host_os" in 17096 aix*) gl_absname_cpp="$ac_cpp -C" ;; 17097 *) gl_absname_cpp="$ac_cpp" ;; 17098 esac 17099 17100 case "$host_os" in 17101 mingw*) 17102 gl_dirsep_regex='[/\\]' 17103 ;; 17104 *) 17105 gl_dirsep_regex='\/' 17106 ;; 17107 esac 17108 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 17109 gl_header_literal_regex=`echo 'unistd.h' \ 17110 | sed -e "$gl_make_literal_regex_sed"` 17111 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 17112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 17113 s|^/[^/]|//&| 17114 p 17115 q 17116 }' 17117 17118 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 17119 sed -n "$gl_absolute_header_sed"` 17120 17121 gl_header=$gl_cv_absolute_unistd_h 17122 gl_cv_next_unistd_h='"'$gl_header'"' 17123 else 17124 gl_cv_next_unistd_h='<'unistd.h'>' 17125 fi 17126 17127 17128fi 17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 17130$as_echo "$gl_cv_next_unistd_h" >&6; } 17131 fi 17132 NEXT_UNISTD_H=$gl_cv_next_unistd_h 17133 17134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 17135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 17136 gl_next_as_first_directive='<'unistd.h'>' 17137 else 17138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 17139 gl_next_as_first_directive=$gl_cv_next_unistd_h 17140 fi 17141 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 17142 17143 17144 17145 17146 if test $ac_cv_header_unistd_h = yes; then 17147 HAVE_UNISTD_H=1 17148 else 17149 HAVE_UNISTD_H=0 17150 fi 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 # Check whether --enable-valgrind-tests was given. 17165if test "${enable_valgrind_tests+set}" = set; then : 17166 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval 17167else 17168 opt_valgrind_tests=yes 17169fi 17170 17171 17172 # Run self-tests under valgrind? 17173 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then 17174 for ac_prog in valgrind 17175do 17176 # Extract the first word of "$ac_prog", so it can be a program name with args. 17177set dummy $ac_prog; ac_word=$2 17178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17179$as_echo_n "checking for $ac_word... " >&6; } 17180if ${ac_cv_prog_VALGRIND+:} false; then : 17181 $as_echo_n "(cached) " >&6 17182else 17183 if test -n "$VALGRIND"; then 17184 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 17185else 17186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17187for as_dir in $PATH 17188do 17189 IFS=$as_save_IFS 17190 test -z "$as_dir" && as_dir=. 17191 for ac_exec_ext in '' $ac_executable_extensions; do 17192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17193 ac_cv_prog_VALGRIND="$ac_prog" 17194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17195 break 2 17196 fi 17197done 17198 done 17199IFS=$as_save_IFS 17200 17201fi 17202fi 17203VALGRIND=$ac_cv_prog_VALGRIND 17204if test -n "$VALGRIND"; then 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 17206$as_echo "$VALGRIND" >&6; } 17207else 17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17209$as_echo "no" >&6; } 17210fi 17211 17212 17213 test -n "$VALGRIND" && break 17214done 17215 17216 17217 if test "$VALGRIND"; then 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5 17219$as_echo_n "checking for valgrind options for tests... " >&6; } 17220if ${gl_cv_opt_valgrind_tests+:} false; then : 17221 $as_echo_n "(cached) " >&6 17222else 17223 gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full" 17224 $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 || 17225 gl_cv_opt_valgrind_tests=no 17226fi 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5 17228$as_echo "$gl_cv_opt_valgrind_tests" >&6; } 17229 17230 if test "$gl_cv_opt_valgrind_tests" != no; then 17231 VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests" 17232 else 17233 VALGRIND= 17234 fi 17235 fi 17236 fi 17237 17238 # End of code from modules 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 gltests_libdeps= 17249 gltests_ltlibdeps= 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 gl_source_base='gl/tests' 17261 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS 17262 17263 gl_module_indicator_condition=$gltests_WITNESS 17264 17265 17266 17267 17268 17269 17270 PRIPTR_PREFIX= 17271 if test -n "$STDINT_H"; then 17272 PRIPTR_PREFIX='"l"' 17273 else 17274 for glpfx in '' l ll I64; do 17275 case $glpfx in 17276 '') gltype1='int';; 17277 l) gltype1='long int';; 17278 ll) gltype1='long long int';; 17279 I64) gltype1='__int64';; 17280 esac 17281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17282/* end confdefs.h. */ 17283#include <stdint.h> 17284 extern intptr_t foo; 17285 extern $gltype1 foo; 17286int 17287main () 17288{ 17289 17290 ; 17291 return 0; 17292} 17293_ACEOF 17294if ac_fn_c_try_compile "$LINENO"; then : 17295 PRIPTR_PREFIX='"'$glpfx'"' 17296fi 17297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17298 test -n "$PRIPTR_PREFIX" && break 17299 done 17300 fi 17301 17302 17303 17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5 17305$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; } 17306if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then : 17307 $as_echo_n "(cached) " >&6 17308else 17309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17310/* end confdefs.h. */ 17311/* Work also in C++ mode. */ 17312 #define __STDC_LIMIT_MACROS 1 17313 17314 /* Work if build is not clean. */ 17315 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 17316 17317 #include <limits.h> 17318 #if HAVE_STDINT_H 17319 #include <stdint.h> 17320 #endif 17321 17322 #if defined INT32_MAX && defined INTMAX_MAX 17323 #define CONDITION (INT32_MAX < INTMAX_MAX) 17324 #else 17325 #define CONDITION (sizeof (int) < sizeof (long long int)) 17326 #endif 17327 int test[CONDITION ? 1 : -1]; 17328int 17329main () 17330{ 17331 17332 ; 17333 return 0; 17334} 17335_ACEOF 17336if ac_fn_c_try_compile "$LINENO"; then : 17337 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes 17338else 17339 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no 17340fi 17341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17342fi 17343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5 17344$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } 17345 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then 17346 INT32_MAX_LT_INTMAX_MAX=1; 17347 else 17348 INT32_MAX_LT_INTMAX_MAX=0; 17349 fi 17350 17351 17352 if test $APPLE_UNIVERSAL_BUILD = 0; then 17353 17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5 17355$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; } 17356if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then : 17357 $as_echo_n "(cached) " >&6 17358else 17359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17360/* end confdefs.h. */ 17361/* Work also in C++ mode. */ 17362 #define __STDC_LIMIT_MACROS 1 17363 17364 /* Work if build is not clean. */ 17365 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 17366 17367 #include <limits.h> 17368 #if HAVE_STDINT_H 17369 #include <stdint.h> 17370 #endif 17371 17372 #if defined INT64_MAX 17373 #define CONDITION (INT64_MAX == LONG_MAX) 17374 #else 17375 #define CONDITION (sizeof (long long int) == sizeof (long int)) 17376 #endif 17377 int test[CONDITION ? 1 : -1]; 17378int 17379main () 17380{ 17381 17382 ; 17383 return 0; 17384} 17385_ACEOF 17386if ac_fn_c_try_compile "$LINENO"; then : 17387 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes 17388else 17389 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no 17390fi 17391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17392fi 17393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5 17394$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } 17395 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then 17396 INT64_MAX_EQ_LONG_MAX=1; 17397 else 17398 INT64_MAX_EQ_LONG_MAX=0; 17399 fi 17400 17401 17402 else 17403 INT64_MAX_EQ_LONG_MAX=-1 17404 fi 17405 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5 17407$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } 17408if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then : 17409 $as_echo_n "(cached) " >&6 17410else 17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17412/* end confdefs.h. */ 17413/* Work also in C++ mode. */ 17414 #define __STDC_LIMIT_MACROS 1 17415 17416 /* Work if build is not clean. */ 17417 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 17418 17419 #include <limits.h> 17420 #if HAVE_STDINT_H 17421 #include <stdint.h> 17422 #endif 17423 17424 #if defined UINT32_MAX && defined UINTMAX_MAX 17425 #define CONDITION (UINT32_MAX < UINTMAX_MAX) 17426 #else 17427 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int)) 17428 #endif 17429 int test[CONDITION ? 1 : -1]; 17430int 17431main () 17432{ 17433 17434 ; 17435 return 0; 17436} 17437_ACEOF 17438if ac_fn_c_try_compile "$LINENO"; then : 17439 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes 17440else 17441 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no 17442fi 17443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17444fi 17445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5 17446$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } 17447 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then 17448 UINT32_MAX_LT_UINTMAX_MAX=1; 17449 else 17450 UINT32_MAX_LT_UINTMAX_MAX=0; 17451 fi 17452 17453 17454 if test $APPLE_UNIVERSAL_BUILD = 0; then 17455 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5 17457$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; } 17458if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then : 17459 $as_echo_n "(cached) " >&6 17460else 17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17462/* end confdefs.h. */ 17463/* Work also in C++ mode. */ 17464 #define __STDC_LIMIT_MACROS 1 17465 17466 /* Work if build is not clean. */ 17467 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 17468 17469 #include <limits.h> 17470 #if HAVE_STDINT_H 17471 #include <stdint.h> 17472 #endif 17473 17474 #if defined UINT64_MAX 17475 #define CONDITION (UINT64_MAX == ULONG_MAX) 17476 #else 17477 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int)) 17478 #endif 17479 int test[CONDITION ? 1 : -1]; 17480int 17481main () 17482{ 17483 17484 ; 17485 return 0; 17486} 17487_ACEOF 17488if ac_fn_c_try_compile "$LINENO"; then : 17489 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes 17490else 17491 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no 17492fi 17493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17494fi 17495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5 17496$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } 17497 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then 17498 UINT64_MAX_EQ_ULONG_MAX=1; 17499 else 17500 UINT64_MAX_EQ_ULONG_MAX=0; 17501 fi 17502 17503 17504 else 17505 UINT64_MAX_EQ_ULONG_MAX=-1 17506 fi 17507 17508 17509 17510 17511 17512 abs_aux_dir=`cd "$ac_aux_dir"; pwd` 17513 17514 17515 # Check whether --enable-valgrind-tests was given. 17516if test "${enable_valgrind_tests+set}" = set; then : 17517 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval 17518else 17519 opt_valgrind_tests=yes 17520fi 17521 17522 17523 # Run self-tests under valgrind? 17524 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then 17525 for ac_prog in valgrind 17526do 17527 # Extract the first word of "$ac_prog", so it can be a program name with args. 17528set dummy $ac_prog; ac_word=$2 17529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17530$as_echo_n "checking for $ac_word... " >&6; } 17531if ${ac_cv_prog_VALGRIND+:} false; then : 17532 $as_echo_n "(cached) " >&6 17533else 17534 if test -n "$VALGRIND"; then 17535 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 17536else 17537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17538for as_dir in $PATH 17539do 17540 IFS=$as_save_IFS 17541 test -z "$as_dir" && as_dir=. 17542 for ac_exec_ext in '' $ac_executable_extensions; do 17543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17544 ac_cv_prog_VALGRIND="$ac_prog" 17545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17546 break 2 17547 fi 17548done 17549 done 17550IFS=$as_save_IFS 17551 17552fi 17553fi 17554VALGRIND=$ac_cv_prog_VALGRIND 17555if test -n "$VALGRIND"; then 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 17557$as_echo "$VALGRIND" >&6; } 17558else 17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17560$as_echo "no" >&6; } 17561fi 17562 17563 17564 test -n "$VALGRIND" && break 17565done 17566 17567 17568 if test "$VALGRIND"; then 17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5 17570$as_echo_n "checking for valgrind options for tests... " >&6; } 17571if ${gl_cv_opt_valgrind_tests+:} false; then : 17572 $as_echo_n "(cached) " >&6 17573else 17574 gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full" 17575 $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 || 17576 gl_cv_opt_valgrind_tests=no 17577fi 17578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5 17579$as_echo "$gl_cv_opt_valgrind_tests" >&6; } 17580 17581 if test "$gl_cv_opt_valgrind_tests" != no; then 17582 VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests" 17583 else 17584 VALGRIND= 17585 fi 17586 fi 17587 fi 17588 17589 abs_aux_dir=`cd "$ac_aux_dir"; pwd` 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 if test $gl_cv_have_include_next = yes; then 17604 gl_cv_next_wchar_h='<'wchar.h'>' 17605 else 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 17607$as_echo_n "checking absolute name of <wchar.h>... " >&6; } 17608if ${gl_cv_next_wchar_h+:} false; then : 17609 $as_echo_n "(cached) " >&6 17610else 17611 17612 if test $ac_cv_header_wchar_h = yes; then 17613 17614 17615 17616 17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17618/* end confdefs.h. */ 17619#include <wchar.h> 17620_ACEOF 17621 case "$host_os" in 17622 aix*) gl_absname_cpp="$ac_cpp -C" ;; 17623 *) gl_absname_cpp="$ac_cpp" ;; 17624 esac 17625 17626 case "$host_os" in 17627 mingw*) 17628 gl_dirsep_regex='[/\\]' 17629 ;; 17630 *) 17631 gl_dirsep_regex='\/' 17632 ;; 17633 esac 17634 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 17635 gl_header_literal_regex=`echo 'wchar.h' \ 17636 | sed -e "$gl_make_literal_regex_sed"` 17637 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 17638 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 17639 s|^/[^/]|//&| 17640 p 17641 q 17642 }' 17643 17644 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 17645 sed -n "$gl_absolute_header_sed"` 17646 17647 gl_header=$gl_cv_absolute_wchar_h 17648 gl_cv_next_wchar_h='"'$gl_header'"' 17649 else 17650 gl_cv_next_wchar_h='<'wchar.h'>' 17651 fi 17652 17653 17654fi 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 17656$as_echo "$gl_cv_next_wchar_h" >&6; } 17657 fi 17658 NEXT_WCHAR_H=$gl_cv_next_wchar_h 17659 17660 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 17661 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 17662 gl_next_as_first_directive='<'wchar.h'>' 17663 else 17664 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 17665 gl_next_as_first_directive=$gl_cv_next_wchar_h 17666 fi 17667 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 17668 17669 17670 17671 17672 if test $ac_cv_header_wchar_h = yes; then 17673 HAVE_WCHAR_H=1 17674 else 17675 HAVE_WCHAR_H=0 17676 fi 17677 17678 17679 17680 17681 17682 if test $gt_cv_c_wint_t = yes; then 17683 HAVE_WINT_T=1 17684 else 17685 HAVE_WINT_T=0 17686 fi 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 LIBTESTS_LIBDEPS="$gltests_libdeps" 17706 17707 17708 17709$as_echo "#define check_version ntlm_check_version" >>confdefs.h 17710 17711 17712# Add many warnings, except some... 17713if test "$GCC" = "yes"; then 17714 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings 17715 nw="$nw -Wconversion" # Too many warnings for now 17716 nw="$nw -Wsign-conversion" # Too many warnings for now 17717 nw="$nw -Wtraditional" # Warns on #elif which we use often 17718 nw="$nw -Wtraditional-conversion" # Too many warnings for now 17719 nw="$nw -Wunreachable-code" # Too many false positives 17720 17721 ac_ext=c 17722ac_cpp='$CPP $CPPFLAGS' 17723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17725ac_compiler_gnu=$ac_cv_c_compiler_gnu 17726 17727 17728 17729 if test -n "$GCC"; then 17730 17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 17732$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; } 17733if ${gl_cv_cc_nomfi_supported+:} false; then : 17734 $as_echo_n "(cached) " >&6 17735else 17736 gl_save_CFLAGS="$CFLAGS" 17737 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers" 17738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17739/* end confdefs.h. */ 17740 17741int 17742main () 17743{ 17744 17745 ; 17746 return 0; 17747} 17748_ACEOF 17749if ac_fn_c_try_compile "$LINENO"; then : 17750 gl_cv_cc_nomfi_supported=yes 17751else 17752 gl_cv_cc_nomfi_supported=no 17753fi 17754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17755 CFLAGS="$gl_save_CFLAGS" 17756 17757fi 17758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 17759$as_echo "$gl_cv_cc_nomfi_supported" >&6; } 17760 17761 if test "$gl_cv_cc_nomfi_supported" = yes; then 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 17763$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; } 17764if ${gl_cv_cc_nomfi_needed+:} false; then : 17765 $as_echo_n "(cached) " >&6 17766else 17767 gl_save_CFLAGS="$CFLAGS" 17768 CFLAGS="$CFLAGS -W -Werror" 17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17770/* end confdefs.h. */ 17771int f (void) 17772 { 17773 typedef struct { int a; int b; } s_t; 17774 s_t s1 = { 0, }; 17775 return s1.b; 17776 } 17777 17778int 17779main () 17780{ 17781 17782 ; 17783 return 0; 17784} 17785_ACEOF 17786if ac_fn_c_try_compile "$LINENO"; then : 17787 gl_cv_cc_nomfi_needed=no 17788else 17789 gl_cv_cc_nomfi_needed=yes 17790fi 17791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17792 CFLAGS="$gl_save_CFLAGS" 17793 17794fi 17795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 17796$as_echo "$gl_cv_cc_nomfi_needed" >&6; } 17797 fi 17798 17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 17800$as_echo_n "checking whether -Wuninitialized is supported... " >&6; } 17801if ${gl_cv_cc_uninitialized_supported+:} false; then : 17802 $as_echo_n "(cached) " >&6 17803else 17804 gl_save_CFLAGS="$CFLAGS" 17805 CFLAGS="$CFLAGS -Werror -Wuninitialized" 17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17807/* end confdefs.h. */ 17808 17809int 17810main () 17811{ 17812 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817if ac_fn_c_try_compile "$LINENO"; then : 17818 gl_cv_cc_uninitialized_supported=yes 17819else 17820 gl_cv_cc_uninitialized_supported=no 17821fi 17822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17823 CFLAGS="$gl_save_CFLAGS" 17824 17825fi 17826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 17827$as_echo "$gl_cv_cc_uninitialized_supported" >&6; } 17828 17829 fi 17830 17831 # List all gcc warning categories. 17832 # To compare this list to your installed GCC's, run this Bash command: 17833 # 17834 # comm -3 \ 17835 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\) .*/\1/p' manywarnings.m4; \ 17836 # awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec) | sort) \ 17837 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort) 17838 17839 gl_manywarn_set= 17840 for gl_manywarn_item in -fno-common \ 17841 -W \ 17842 -Wabsolute-value \ 17843 -Waddress \ 17844 -Waddress-of-packed-member \ 17845 -Waggressive-loop-optimizations \ 17846 -Wall \ 17847 -Wattribute-warning \ 17848 -Wattributes \ 17849 -Wbad-function-cast \ 17850 -Wbool-compare \ 17851 -Wbool-operation \ 17852 -Wbuiltin-declaration-mismatch \ 17853 -Wbuiltin-macro-redefined \ 17854 -Wcannot-profile \ 17855 -Wcast-align \ 17856 -Wcast-align=strict \ 17857 -Wcast-function-type \ 17858 -Wchar-subscripts \ 17859 -Wclobbered \ 17860 -Wcomment \ 17861 -Wcomments \ 17862 -Wcoverage-mismatch \ 17863 -Wcpp \ 17864 -Wdangling-else \ 17865 -Wdate-time \ 17866 -Wdeprecated \ 17867 -Wdeprecated-declarations \ 17868 -Wdesignated-init \ 17869 -Wdisabled-optimization \ 17870 -Wdiscarded-array-qualifiers \ 17871 -Wdiscarded-qualifiers \ 17872 -Wdiv-by-zero \ 17873 -Wdouble-promotion \ 17874 -Wduplicated-branches \ 17875 -Wduplicated-cond \ 17876 -Wduplicate-decl-specifier \ 17877 -Wempty-body \ 17878 -Wendif-labels \ 17879 -Wenum-compare \ 17880 -Wexpansion-to-defined \ 17881 -Wextra \ 17882 -Wformat-contains-nul \ 17883 -Wformat-extra-args \ 17884 -Wformat-nonliteral \ 17885 -Wformat-security \ 17886 -Wformat-signedness \ 17887 -Wformat-y2k \ 17888 -Wformat-zero-length \ 17889 -Wframe-address \ 17890 -Wfree-nonheap-object \ 17891 -Whsa \ 17892 -Wif-not-aligned \ 17893 -Wignored-attributes \ 17894 -Wignored-qualifiers \ 17895 -Wimplicit \ 17896 -Wimplicit-function-declaration \ 17897 -Wimplicit-int \ 17898 -Wincompatible-pointer-types \ 17899 -Winit-self \ 17900 -Winline \ 17901 -Wint-conversion \ 17902 -Wint-in-bool-context \ 17903 -Wint-to-pointer-cast \ 17904 -Winvalid-memory-model \ 17905 -Winvalid-pch \ 17906 -Wlogical-not-parentheses \ 17907 -Wlogical-op \ 17908 -Wmain \ 17909 -Wmaybe-uninitialized \ 17910 -Wmemset-elt-size \ 17911 -Wmemset-transposed-args \ 17912 -Wmisleading-indentation \ 17913 -Wmissing-attributes \ 17914 -Wmissing-braces \ 17915 -Wmissing-declarations \ 17916 -Wmissing-field-initializers \ 17917 -Wmissing-include-dirs \ 17918 -Wmissing-parameter-type \ 17919 -Wmissing-profile \ 17920 -Wmissing-prototypes \ 17921 -Wmultichar \ 17922 -Wmultistatement-macros \ 17923 -Wnarrowing \ 17924 -Wnested-externs \ 17925 -Wnonnull \ 17926 -Wnonnull-compare \ 17927 -Wnull-dereference \ 17928 -Wodr \ 17929 -Wold-style-declaration \ 17930 -Wold-style-definition \ 17931 -Wopenmp-simd \ 17932 -Woverflow \ 17933 -Woverlength-strings \ 17934 -Woverride-init \ 17935 -Wpacked \ 17936 -Wpacked-bitfield-compat \ 17937 -Wpacked-not-aligned \ 17938 -Wparentheses \ 17939 -Wpointer-arith \ 17940 -Wpointer-compare \ 17941 -Wpointer-sign \ 17942 -Wpointer-to-int-cast \ 17943 -Wpragmas \ 17944 -Wpsabi \ 17945 -Wrestrict \ 17946 -Wreturn-local-addr \ 17947 -Wreturn-type \ 17948 -Wscalar-storage-order \ 17949 -Wsequence-point \ 17950 -Wshadow \ 17951 -Wshift-count-negative \ 17952 -Wshift-count-overflow \ 17953 -Wshift-negative-value \ 17954 -Wsizeof-array-argument \ 17955 -Wsizeof-pointer-div \ 17956 -Wsizeof-pointer-memaccess \ 17957 -Wstack-protector \ 17958 -Wstrict-aliasing \ 17959 -Wstrict-overflow \ 17960 -Wstrict-prototypes \ 17961 -Wstringop-truncation \ 17962 -Wsuggest-attribute=cold \ 17963 -Wsuggest-attribute=const \ 17964 -Wsuggest-attribute=format \ 17965 -Wsuggest-attribute=malloc \ 17966 -Wsuggest-attribute=noreturn \ 17967 -Wsuggest-attribute=pure \ 17968 -Wsuggest-final-methods \ 17969 -Wsuggest-final-types \ 17970 -Wswitch \ 17971 -Wswitch-bool \ 17972 -Wswitch-unreachable \ 17973 -Wsync-nand \ 17974 -Wsystem-headers \ 17975 -Wtautological-compare \ 17976 -Wtrampolines \ 17977 -Wtrigraphs \ 17978 -Wtype-limits \ 17979 -Wuninitialized \ 17980 -Wunknown-pragmas \ 17981 -Wunsafe-loop-optimizations \ 17982 -Wunused \ 17983 -Wunused-but-set-parameter \ 17984 -Wunused-but-set-variable \ 17985 -Wunused-function \ 17986 -Wunused-label \ 17987 -Wunused-local-typedefs \ 17988 -Wunused-macros \ 17989 -Wunused-parameter \ 17990 -Wunused-result \ 17991 -Wunused-value \ 17992 -Wunused-variable \ 17993 -Wvarargs \ 17994 -Wvariadic-macros \ 17995 -Wvector-operation-performance \ 17996 -Wvla \ 17997 -Wvolatile-register-var \ 17998 -Wwrite-strings \ 17999 \ 18000 ; do 18001 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" 18002 done 18003 18004 # gcc --help=warnings outputs an unusual form for these options; list 18005 # them here so that the above 'comm' command doesn't report a false match. 18006 # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal. 18007 # Also, AC_COMPUTE_INT requires it to fit in a long; it is 2**63 on 18008 # the only platforms where it does not fit in a long, so make that 18009 # a special case. 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max safe object size" >&5 18011$as_echo_n "checking max safe object size... " >&6; } 18012 if ac_fn_c_compute_int "$LINENO" "LONG_MAX < (PTRDIFF_MAX < (size_t) -1 ? PTRDIFF_MAX : (size_t) -1) 18013 ? -1 18014 : PTRDIFF_MAX < (size_t) -1 ? (long) PTRDIFF_MAX : (long) (size_t) -1" "gl_alloc_max" "#include <limits.h> 18015 #include <stddef.h> 18016 #include <stdint.h> 18017 "; then : 18018 18019else 18020 gl_alloc_max=2147483647 18021fi 18022 18023 case $gl_alloc_max in 18024 -1) gl_alloc_max=9223372036854775807;; 18025 esac 18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_alloc_max" >&5 18027$as_echo "$gl_alloc_max" >&6; } 18028 gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max" 18029 gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" 18030 gl_manywarn_set="$gl_manywarn_set -Wattribute-alias=2" 18031 gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2" 18032 gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2" 18033 gl_manywarn_set="$gl_manywarn_set -Wimplicit-fallthrough=5" 18034 gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc" 18035 gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2" 18036 gl_manywarn_set="$gl_manywarn_set -Wstringop-overflow=2" 18037 gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2" 18038 gl_manywarn_set="$gl_manywarn_set -Wvla-larger-than=4031" 18039 18040 # These are needed for older GCC versions. 18041 if test -n "$GCC"; then 18042 case `($CC --version) 2>/dev/null` in 18043 'gcc (GCC) '[0-3].* | \ 18044 'gcc (GCC) '4.[0-7].*) 18045 gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option" 18046 gl_manywarn_set="$gl_manywarn_set -funit-at-a-time" 18047 ;; 18048 esac 18049 fi 18050 18051 # Disable specific options as needed. 18052 if test "$gl_cv_cc_nomfi_needed" = yes; then 18053 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" 18054 fi 18055 18056 if test "$gl_cv_cc_uninitialized_supported" = no; then 18057 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized" 18058 fi 18059 18060 ws=$gl_manywarn_set 18061 18062 ac_ext=c 18063ac_cpp='$CPP $CPPFLAGS' 18064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18066ac_compiler_gnu=$ac_cv_c_compiler_gnu 18067 18068 18069 18070 gl_warn_set= 18071 set x $ws; shift 18072 for gl_warn_item 18073 do 18074 case " $nw " in 18075 *" $gl_warn_item "*) 18076 ;; 18077 *) 18078 gl_warn_set="$gl_warn_set $gl_warn_item" 18079 ;; 18080 esac 18081 done 18082 ws=$gl_warn_set 18083 18084 for w in $ws; do 18085 18086 ac_ext=c 18087ac_cpp='$CPP $CPPFLAGS' 18088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18090ac_compiler_gnu=$ac_cv_c_compiler_gnu 18091 18092 18093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5 18094$as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; } 18095if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then : 18096 $as_echo_n "(cached) " >&6 18097else 18098 18099 gl_save_compiler_FLAGS="$CFLAGS" 18100 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 18101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18102/* end confdefs.h. */ 18103 18104int 18105main () 18106{ 18107 18108 ; 18109 return 0; 18110} 18111_ACEOF 18112if ac_fn_c_try_link "$LINENO"; then : 18113 gl_cv_warn_c__Werror__Wunknown_warning_option=yes 18114else 18115 gl_cv_warn_c__Werror__Wunknown_warning_option=no 18116fi 18117rm -f core conftest.err conftest.$ac_objext \ 18118 conftest$ac_exeext conftest.$ac_ext 18119 CFLAGS="$gl_save_compiler_FLAGS" 18120 18121fi 18122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5 18123$as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; } 18124if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then : 18125 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 18126else 18127 gl_unknown_warnings_are_errors= 18128fi 18129 18130 ac_ext=c 18131ac_cpp='$CPP $CPPFLAGS' 18132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18134ac_compiler_gnu=$ac_cv_c_compiler_gnu 18135 18136 18137 18138 18139as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh` 18140gl_positive="$w" 18141case $gl_positive in 18142 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; 18143esac 18144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 18145$as_echo_n "checking whether C compiler handles $w... " >&6; } 18146if eval \${$as_gl_Warn+:} false; then : 18147 $as_echo_n "(cached) " >&6 18148else 18149 18150 gl_save_compiler_FLAGS="$CFLAGS" 18151 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive" 18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18153/* end confdefs.h. */ 18154 18155int 18156main () 18157{ 18158 18159 ; 18160 return 0; 18161} 18162_ACEOF 18163if ac_fn_c_try_link "$LINENO"; then : 18164 eval "$as_gl_Warn=yes" 18165else 18166 eval "$as_gl_Warn=no" 18167fi 18168rm -f core conftest.err conftest.$ac_objext \ 18169 conftest$ac_exeext conftest.$ac_ext 18170 CFLAGS="$gl_save_compiler_FLAGS" 18171 18172fi 18173eval ac_res=\$$as_gl_Warn 18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18175$as_echo "$ac_res" >&6; } 18176if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then : 18177 as_fn_append WARN_CFLAGS " $w" 18178fi 18179 18180 18181 done 18182 18183 18184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-pointer-sign" >&5 18185$as_echo_n "checking whether C compiler handles -Wno-pointer-sign... " >&6; } 18186if ${gl_cv_warn_c__Wno_pointer_sign+:} false; then : 18187 $as_echo_n "(cached) " >&6 18188else 18189 18190 gl_save_compiler_FLAGS="$CFLAGS" 18191 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wpointer-sign" 18192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18193/* end confdefs.h. */ 18194 18195int 18196main () 18197{ 18198 18199 ; 18200 return 0; 18201} 18202_ACEOF 18203if ac_fn_c_try_link "$LINENO"; then : 18204 gl_cv_warn_c__Wno_pointer_sign=yes 18205else 18206 gl_cv_warn_c__Wno_pointer_sign=no 18207fi 18208rm -f core conftest.err conftest.$ac_objext \ 18209 conftest$ac_exeext conftest.$ac_ext 18210 CFLAGS="$gl_save_compiler_FLAGS" 18211 18212fi 18213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_pointer_sign" >&5 18214$as_echo "$gl_cv_warn_c__Wno_pointer_sign" >&6; } 18215if test "x$gl_cv_warn_c__Wno_pointer_sign" = xyes; then : 18216 as_fn_append WARN_CFLAGS " -Wno-pointer-sign" 18217fi 18218 18219 # Too many warnings for now 18220 18221 18222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5 18223$as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; } 18224if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then : 18225 $as_echo_n "(cached) " >&6 18226else 18227 18228 gl_save_compiler_FLAGS="$CFLAGS" 18229 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option" 18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232 18233int 18234main () 18235{ 18236 18237 ; 18238 return 0; 18239} 18240_ACEOF 18241if ac_fn_c_try_link "$LINENO"; then : 18242 gl_cv_warn_c__fdiagnostics_show_option=yes 18243else 18244 gl_cv_warn_c__fdiagnostics_show_option=no 18245fi 18246rm -f core conftest.err conftest.$ac_objext \ 18247 conftest$ac_exeext conftest.$ac_ext 18248 CFLAGS="$gl_save_compiler_FLAGS" 18249 18250fi 18251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5 18252$as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; } 18253if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then : 18254 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option" 18255fi 18256 18257 18258 export WARN_CFLAGS 18259fi 18260 18261ac_config_files="$ac_config_files Makefile gl/Makefile gl/tests/Makefile libntlm.pc libntlm.spec ntlm.h" 18262 18263cat >confcache <<\_ACEOF 18264# This file is a shell script that caches the results of configure 18265# tests run on this system so they can be shared between configure 18266# scripts and configure runs, see configure's option --config-cache. 18267# It is not useful on other systems. If it contains results you don't 18268# want to keep, you may remove or edit it. 18269# 18270# config.status only pays attention to the cache file if you give it 18271# the --recheck option to rerun configure. 18272# 18273# `ac_cv_env_foo' variables (set or unset) will be overridden when 18274# loading this file, other *unset* `ac_cv_foo' will be assigned the 18275# following values. 18276 18277_ACEOF 18278 18279# The following way of writing the cache mishandles newlines in values, 18280# but we know of no workaround that is simple, portable, and efficient. 18281# So, we kill variables containing newlines. 18282# Ultrix sh set writes to stderr and can't be redirected directly, 18283# and sets the high bit in the cache file unless we assign to the vars. 18284( 18285 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18286 eval ac_val=\$$ac_var 18287 case $ac_val in #( 18288 *${as_nl}*) 18289 case $ac_var in #( 18290 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18292 esac 18293 case $ac_var in #( 18294 _ | IFS | as_nl) ;; #( 18295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18296 *) { eval $ac_var=; unset $ac_var;} ;; 18297 esac ;; 18298 esac 18299 done 18300 18301 (set) 2>&1 | 18302 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18303 *${as_nl}ac_space=\ *) 18304 # `set' does not quote correctly, so add quotes: double-quote 18305 # substitution turns \\\\ into \\, and sed turns \\ into \. 18306 sed -n \ 18307 "s/'/'\\\\''/g; 18308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18309 ;; #( 18310 *) 18311 # `set' quotes correctly as required by POSIX, so do not add quotes. 18312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18313 ;; 18314 esac | 18315 sort 18316) | 18317 sed ' 18318 /^ac_cv_env_/b end 18319 t clear 18320 :clear 18321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18322 t end 18323 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18324 :end' >>confcache 18325if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18326 if test -w "$cache_file"; then 18327 if test "x$cache_file" != "x/dev/null"; then 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18329$as_echo "$as_me: updating cache $cache_file" >&6;} 18330 if test ! -f "$cache_file" || test -h "$cache_file"; then 18331 cat confcache >"$cache_file" 18332 else 18333 case $cache_file in #( 18334 */* | ?:*) 18335 mv -f confcache "$cache_file"$$ && 18336 mv -f "$cache_file"$$ "$cache_file" ;; #( 18337 *) 18338 mv -f confcache "$cache_file" ;; 18339 esac 18340 fi 18341 fi 18342 else 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18344$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18345 fi 18346fi 18347rm -f confcache 18348 18349test "x$prefix" = xNONE && prefix=$ac_default_prefix 18350# Let make expand exec_prefix. 18351test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18352 18353DEFS=-DHAVE_CONFIG_H 18354 18355ac_libobjs= 18356ac_ltlibobjs= 18357for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18358 # 1. Remove the extension, and $U if already installed. 18359 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18360 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18361 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18362 # will be set to the directory where LIBOBJS objects are built. 18363 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18364 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18365done 18366LIBOBJS=$ac_libobjs 18367 18368LTLIBOBJS=$ac_ltlibobjs 18369 18370 18371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18372$as_echo_n "checking that generated files are newer than configure... " >&6; } 18373 if test -n "$am_sleep_pid"; then 18374 # Hide warnings about reused PIDs. 18375 wait $am_sleep_pid 2>/dev/null 18376 fi 18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18378$as_echo "done" >&6; } 18379 if test -n "$EXEEXT"; then 18380 am__EXEEXT_TRUE= 18381 am__EXEEXT_FALSE='#' 18382else 18383 am__EXEEXT_TRUE='#' 18384 am__EXEEXT_FALSE= 18385fi 18386 18387if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18388 as_fn_error $? "conditional \"AMDEP\" was never defined. 18389Usually this means the macro was only invoked conditionally." "$LINENO" 5 18390fi 18391if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18392 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18393Usually this means the macro was only invoked conditionally." "$LINENO" 5 18394fi 18395 18396if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 18397 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 18398Usually this means the macro was only invoked conditionally." "$LINENO" 5 18399fi 18400if test -z "${GL_GENERATE_BYTESWAP_H_TRUE}" && test -z "${GL_GENERATE_BYTESWAP_H_FALSE}"; then 18401 as_fn_error $? "conditional \"GL_GENERATE_BYTESWAP_H\" was never defined. 18402Usually this means the macro was only invoked conditionally." "$LINENO" 5 18403fi 18404 18405if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 18406 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 18407Usually this means the macro was only invoked conditionally." "$LINENO" 5 18408fi 18409CONFIG_INCLUDE=config.h 18410 18411if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then 18412 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined. 18413Usually this means the macro was only invoked conditionally." "$LINENO" 5 18414fi 18415if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 18416 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 18417Usually this means the macro was only invoked conditionally." "$LINENO" 5 18418fi 18419if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 18420 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 18421Usually this means the macro was only invoked conditionally." "$LINENO" 5 18422fi 18423if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 18424 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 18425Usually this means the macro was only invoked conditionally." "$LINENO" 5 18426fi 18427if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then 18428 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined. 18429Usually this means the macro was only invoked conditionally." "$LINENO" 5 18430fi 18431 18432 gl_libobjs= 18433 gl_ltlibobjs= 18434 if test -n "$gl_LIBOBJS"; then 18435 # Remove the extension. 18436 sed_drop_objext='s/\.o$//;s/\.obj$//' 18437 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 18438 gl_libobjs="$gl_libobjs $i.$ac_objext" 18439 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 18440 done 18441 fi 18442 gl_LIBOBJS=$gl_libobjs 18443 18444 gl_LTLIBOBJS=$gl_ltlibobjs 18445 18446 18447 18448 gltests_libobjs= 18449 gltests_ltlibobjs= 18450 if test -n "$gltests_LIBOBJS"; then 18451 # Remove the extension. 18452 sed_drop_objext='s/\.o$//;s/\.obj$//' 18453 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 18454 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 18455 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 18456 done 18457 fi 18458 gltests_LIBOBJS=$gltests_libobjs 18459 18460 gltests_LTLIBOBJS=$gltests_ltlibobjs 18461 18462 18463 18464: "${CONFIG_STATUS=./config.status}" 18465ac_write_fail=0 18466ac_clean_files_save=$ac_clean_files 18467ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18468{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18469$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18470as_write_fail=0 18471cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18472#! $SHELL 18473# Generated by $as_me. 18474# Run this file to recreate the current configuration. 18475# Compiler output produced by configure, useful for debugging 18476# configure, is in config.log if it exists. 18477 18478debug=false 18479ac_cs_recheck=false 18480ac_cs_silent=false 18481 18482SHELL=\${CONFIG_SHELL-$SHELL} 18483export SHELL 18484_ASEOF 18485cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18486## -------------------- ## 18487## M4sh Initialization. ## 18488## -------------------- ## 18489 18490# Be more Bourne compatible 18491DUALCASE=1; export DUALCASE # for MKS sh 18492if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18493 emulate sh 18494 NULLCMD=: 18495 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18496 # is contrary to our usage. Disable this feature. 18497 alias -g '${1+"$@"}'='"$@"' 18498 setopt NO_GLOB_SUBST 18499else 18500 case `(set -o) 2>/dev/null` in #( 18501 *posix*) : 18502 set -o posix ;; #( 18503 *) : 18504 ;; 18505esac 18506fi 18507 18508 18509as_nl=' 18510' 18511export as_nl 18512# Printing a long string crashes Solaris 7 /usr/bin/printf. 18513as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18514as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18515as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18516# Prefer a ksh shell builtin over an external printf program on Solaris, 18517# but without wasting forks for bash or zsh. 18518if test -z "$BASH_VERSION$ZSH_VERSION" \ 18519 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18520 as_echo='print -r --' 18521 as_echo_n='print -rn --' 18522elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18523 as_echo='printf %s\n' 18524 as_echo_n='printf %s' 18525else 18526 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18527 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18528 as_echo_n='/usr/ucb/echo -n' 18529 else 18530 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18531 as_echo_n_body='eval 18532 arg=$1; 18533 case $arg in #( 18534 *"$as_nl"*) 18535 expr "X$arg" : "X\\(.*\\)$as_nl"; 18536 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18537 esac; 18538 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18539 ' 18540 export as_echo_n_body 18541 as_echo_n='sh -c $as_echo_n_body as_echo' 18542 fi 18543 export as_echo_body 18544 as_echo='sh -c $as_echo_body as_echo' 18545fi 18546 18547# The user is always right. 18548if test "${PATH_SEPARATOR+set}" != set; then 18549 PATH_SEPARATOR=: 18550 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18551 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18552 PATH_SEPARATOR=';' 18553 } 18554fi 18555 18556 18557# IFS 18558# We need space, tab and new line, in precisely that order. Quoting is 18559# there to prevent editors from complaining about space-tab. 18560# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18561# splitting by setting IFS to empty value.) 18562IFS=" "" $as_nl" 18563 18564# Find who we are. Look in the path if we contain no directory separator. 18565as_myself= 18566case $0 in #(( 18567 *[\\/]* ) as_myself=$0 ;; 18568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18569for as_dir in $PATH 18570do 18571 IFS=$as_save_IFS 18572 test -z "$as_dir" && as_dir=. 18573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18574 done 18575IFS=$as_save_IFS 18576 18577 ;; 18578esac 18579# We did not find ourselves, most probably we were run as `sh COMMAND' 18580# in which case we are not to be found in the path. 18581if test "x$as_myself" = x; then 18582 as_myself=$0 18583fi 18584if test ! -f "$as_myself"; then 18585 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18586 exit 1 18587fi 18588 18589# Unset variables that we do not need and which cause bugs (e.g. in 18590# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18591# suppresses any "Segmentation fault" message there. '((' could 18592# trigger a bug in pdksh 5.2.14. 18593for as_var in BASH_ENV ENV MAIL MAILPATH 18594do eval test x\${$as_var+set} = xset \ 18595 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18596done 18597PS1='$ ' 18598PS2='> ' 18599PS4='+ ' 18600 18601# NLS nuisances. 18602LC_ALL=C 18603export LC_ALL 18604LANGUAGE=C 18605export LANGUAGE 18606 18607# CDPATH. 18608(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18609 18610 18611# as_fn_error STATUS ERROR [LINENO LOG_FD] 18612# ---------------------------------------- 18613# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18614# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18615# script with STATUS, using 1 if that was 0. 18616as_fn_error () 18617{ 18618 as_status=$1; test $as_status -eq 0 && as_status=1 18619 if test "$4"; then 18620 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18621 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18622 fi 18623 $as_echo "$as_me: error: $2" >&2 18624 as_fn_exit $as_status 18625} # as_fn_error 18626 18627 18628# as_fn_set_status STATUS 18629# ----------------------- 18630# Set $? to STATUS, without forking. 18631as_fn_set_status () 18632{ 18633 return $1 18634} # as_fn_set_status 18635 18636# as_fn_exit STATUS 18637# ----------------- 18638# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18639as_fn_exit () 18640{ 18641 set +e 18642 as_fn_set_status $1 18643 exit $1 18644} # as_fn_exit 18645 18646# as_fn_unset VAR 18647# --------------- 18648# Portably unset VAR. 18649as_fn_unset () 18650{ 18651 { eval $1=; unset $1;} 18652} 18653as_unset=as_fn_unset 18654# as_fn_append VAR VALUE 18655# ---------------------- 18656# Append the text in VALUE to the end of the definition contained in VAR. Take 18657# advantage of any shell optimizations that allow amortized linear growth over 18658# repeated appends, instead of the typical quadratic growth present in naive 18659# implementations. 18660if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18661 eval 'as_fn_append () 18662 { 18663 eval $1+=\$2 18664 }' 18665else 18666 as_fn_append () 18667 { 18668 eval $1=\$$1\$2 18669 } 18670fi # as_fn_append 18671 18672# as_fn_arith ARG... 18673# ------------------ 18674# Perform arithmetic evaluation on the ARGs, and store the result in the 18675# global $as_val. Take advantage of shells that can avoid forks. The arguments 18676# must be portable across $(()) and expr. 18677if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18678 eval 'as_fn_arith () 18679 { 18680 as_val=$(( $* )) 18681 }' 18682else 18683 as_fn_arith () 18684 { 18685 as_val=`expr "$@" || test $? -eq 1` 18686 } 18687fi # as_fn_arith 18688 18689 18690if expr a : '\(a\)' >/dev/null 2>&1 && 18691 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18692 as_expr=expr 18693else 18694 as_expr=false 18695fi 18696 18697if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18698 as_basename=basename 18699else 18700 as_basename=false 18701fi 18702 18703if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18704 as_dirname=dirname 18705else 18706 as_dirname=false 18707fi 18708 18709as_me=`$as_basename -- "$0" || 18710$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18711 X"$0" : 'X\(//\)$' \| \ 18712 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18713$as_echo X/"$0" | 18714 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18715 s//\1/ 18716 q 18717 } 18718 /^X\/\(\/\/\)$/{ 18719 s//\1/ 18720 q 18721 } 18722 /^X\/\(\/\).*/{ 18723 s//\1/ 18724 q 18725 } 18726 s/.*/./; q'` 18727 18728# Avoid depending upon Character Ranges. 18729as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18730as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18731as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18732as_cr_digits='0123456789' 18733as_cr_alnum=$as_cr_Letters$as_cr_digits 18734 18735ECHO_C= ECHO_N= ECHO_T= 18736case `echo -n x` in #((((( 18737-n*) 18738 case `echo 'xy\c'` in 18739 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18740 xy) ECHO_C='\c';; 18741 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18742 ECHO_T=' ';; 18743 esac;; 18744*) 18745 ECHO_N='-n';; 18746esac 18747 18748rm -f conf$$ conf$$.exe conf$$.file 18749if test -d conf$$.dir; then 18750 rm -f conf$$.dir/conf$$.file 18751else 18752 rm -f conf$$.dir 18753 mkdir conf$$.dir 2>/dev/null 18754fi 18755if (echo >conf$$.file) 2>/dev/null; then 18756 if ln -s conf$$.file conf$$ 2>/dev/null; then 18757 as_ln_s='ln -s' 18758 # ... but there are two gotchas: 18759 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18760 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18761 # In both cases, we have to default to `cp -pR'. 18762 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18763 as_ln_s='cp -pR' 18764 elif ln conf$$.file conf$$ 2>/dev/null; then 18765 as_ln_s=ln 18766 else 18767 as_ln_s='cp -pR' 18768 fi 18769else 18770 as_ln_s='cp -pR' 18771fi 18772rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18773rmdir conf$$.dir 2>/dev/null 18774 18775 18776# as_fn_mkdir_p 18777# ------------- 18778# Create "$as_dir" as a directory, including parents if necessary. 18779as_fn_mkdir_p () 18780{ 18781 18782 case $as_dir in #( 18783 -*) as_dir=./$as_dir;; 18784 esac 18785 test -d "$as_dir" || eval $as_mkdir_p || { 18786 as_dirs= 18787 while :; do 18788 case $as_dir in #( 18789 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18790 *) as_qdir=$as_dir;; 18791 esac 18792 as_dirs="'$as_qdir' $as_dirs" 18793 as_dir=`$as_dirname -- "$as_dir" || 18794$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18795 X"$as_dir" : 'X\(//\)[^/]' \| \ 18796 X"$as_dir" : 'X\(//\)$' \| \ 18797 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18798$as_echo X"$as_dir" | 18799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18800 s//\1/ 18801 q 18802 } 18803 /^X\(\/\/\)[^/].*/{ 18804 s//\1/ 18805 q 18806 } 18807 /^X\(\/\/\)$/{ 18808 s//\1/ 18809 q 18810 } 18811 /^X\(\/\).*/{ 18812 s//\1/ 18813 q 18814 } 18815 s/.*/./; q'` 18816 test -d "$as_dir" && break 18817 done 18818 test -z "$as_dirs" || eval "mkdir $as_dirs" 18819 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18820 18821 18822} # as_fn_mkdir_p 18823if mkdir -p . 2>/dev/null; then 18824 as_mkdir_p='mkdir -p "$as_dir"' 18825else 18826 test -d ./-p && rmdir ./-p 18827 as_mkdir_p=false 18828fi 18829 18830 18831# as_fn_executable_p FILE 18832# ----------------------- 18833# Test if FILE is an executable regular file. 18834as_fn_executable_p () 18835{ 18836 test -f "$1" && test -x "$1" 18837} # as_fn_executable_p 18838as_test_x='test -x' 18839as_executable_p=as_fn_executable_p 18840 18841# Sed expression to map a string onto a valid CPP name. 18842as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18843 18844# Sed expression to map a string onto a valid variable name. 18845as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18846 18847 18848exec 6>&1 18849## ----------------------------------- ## 18850## Main body of $CONFIG_STATUS script. ## 18851## ----------------------------------- ## 18852_ASEOF 18853test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18854 18855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18856# Save the log message, to keep $0 and so on meaningful, and to 18857# report actual input values of CONFIG_FILES etc. instead of their 18858# values after options handling. 18859ac_log=" 18860This file was extended by libntlm $as_me 1.6, which was 18861generated by GNU Autoconf 2.69. Invocation command line was 18862 18863 CONFIG_FILES = $CONFIG_FILES 18864 CONFIG_HEADERS = $CONFIG_HEADERS 18865 CONFIG_LINKS = $CONFIG_LINKS 18866 CONFIG_COMMANDS = $CONFIG_COMMANDS 18867 $ $0 $@ 18868 18869on `(hostname || uname -n) 2>/dev/null | sed 1q` 18870" 18871 18872_ACEOF 18873 18874case $ac_config_files in *" 18875"*) set x $ac_config_files; shift; ac_config_files=$*;; 18876esac 18877 18878case $ac_config_headers in *" 18879"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18880esac 18881 18882 18883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18884# Files that config.status was made for. 18885config_files="$ac_config_files" 18886config_headers="$ac_config_headers" 18887config_links="$ac_config_links" 18888config_commands="$ac_config_commands" 18889 18890_ACEOF 18891 18892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18893ac_cs_usage="\ 18894\`$as_me' instantiates files and other configuration actions 18895from templates according to the current configuration. Unless the files 18896and actions are specified as TAGs, all are instantiated by default. 18897 18898Usage: $0 [OPTION]... [TAG]... 18899 18900 -h, --help print this help, then exit 18901 -V, --version print version number and configuration settings, then exit 18902 --config print configuration, then exit 18903 -q, --quiet, --silent 18904 do not print progress messages 18905 -d, --debug don't remove temporary files 18906 --recheck update $as_me by reconfiguring in the same conditions 18907 --file=FILE[:TEMPLATE] 18908 instantiate the configuration file FILE 18909 --header=FILE[:TEMPLATE] 18910 instantiate the configuration header FILE 18911 18912Configuration files: 18913$config_files 18914 18915Configuration headers: 18916$config_headers 18917 18918Configuration links: 18919$config_links 18920 18921Configuration commands: 18922$config_commands 18923 18924Report bugs to <libntlm@nongnu.org>." 18925 18926_ACEOF 18927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18928ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18929ac_cs_version="\\ 18930libntlm config.status 1.6 18931configured by $0, generated by GNU Autoconf 2.69, 18932 with options \\"\$ac_cs_config\\" 18933 18934Copyright (C) 2012 Free Software Foundation, Inc. 18935This config.status script is free software; the Free Software Foundation 18936gives unlimited permission to copy, distribute and modify it." 18937 18938ac_pwd='$ac_pwd' 18939srcdir='$srcdir' 18940INSTALL='$INSTALL' 18941MKDIR_P='$MKDIR_P' 18942AWK='$AWK' 18943test -n "\$AWK" || AWK=awk 18944_ACEOF 18945 18946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18947# The default lists apply if the user does not specify any file. 18948ac_need_defaults=: 18949while test $# != 0 18950do 18951 case $1 in 18952 --*=?*) 18953 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18955 ac_shift=: 18956 ;; 18957 --*=) 18958 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18959 ac_optarg= 18960 ac_shift=: 18961 ;; 18962 *) 18963 ac_option=$1 18964 ac_optarg=$2 18965 ac_shift=shift 18966 ;; 18967 esac 18968 18969 case $ac_option in 18970 # Handling of the options. 18971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18972 ac_cs_recheck=: ;; 18973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18974 $as_echo "$ac_cs_version"; exit ;; 18975 --config | --confi | --conf | --con | --co | --c ) 18976 $as_echo "$ac_cs_config"; exit ;; 18977 --debug | --debu | --deb | --de | --d | -d ) 18978 debug=: ;; 18979 --file | --fil | --fi | --f ) 18980 $ac_shift 18981 case $ac_optarg in 18982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18983 '') as_fn_error $? "missing file argument" ;; 18984 esac 18985 as_fn_append CONFIG_FILES " '$ac_optarg'" 18986 ac_need_defaults=false;; 18987 --header | --heade | --head | --hea ) 18988 $ac_shift 18989 case $ac_optarg in 18990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18991 esac 18992 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18993 ac_need_defaults=false;; 18994 --he | --h) 18995 # Conflict between --help and --header 18996 as_fn_error $? "ambiguous option: \`$1' 18997Try \`$0 --help' for more information.";; 18998 --help | --hel | -h ) 18999 $as_echo "$ac_cs_usage"; exit ;; 19000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19001 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19002 ac_cs_silent=: ;; 19003 19004 # This is an error. 19005 -*) as_fn_error $? "unrecognized option: \`$1' 19006Try \`$0 --help' for more information." ;; 19007 19008 *) as_fn_append ac_config_targets " $1" 19009 ac_need_defaults=false ;; 19010 19011 esac 19012 shift 19013done 19014 19015ac_configure_extra_args= 19016 19017if $ac_cs_silent; then 19018 exec 6>/dev/null 19019 ac_configure_extra_args="$ac_configure_extra_args --silent" 19020fi 19021 19022_ACEOF 19023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19024if \$ac_cs_recheck; then 19025 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19026 shift 19027 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19028 CONFIG_SHELL='$SHELL' 19029 export CONFIG_SHELL 19030 exec "\$@" 19031fi 19032 19033_ACEOF 19034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19035exec 5>>config.log 19036{ 19037 echo 19038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19039## Running $as_me. ## 19040_ASBOX 19041 $as_echo "$ac_log" 19042} >&5 19043 19044_ACEOF 19045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19046# 19047# INIT-COMMANDS 19048# 19049AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 19050 19051 19052# The HP-UX ksh and POSIX shell print the target directory to stdout 19053# if CDPATH is set. 19054(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19055 19056sed_quote_subst='$sed_quote_subst' 19057double_quote_subst='$double_quote_subst' 19058delay_variable_subst='$delay_variable_subst' 19059AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 19060DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19061OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19062macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19063macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19064enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19065enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19066pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19067enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19068shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19069SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19070ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19071PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19072host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19073host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19074host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19075build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19076build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19077build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19078SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19079Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19080GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19081EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19082FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19083LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19084NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19085LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19086max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19087ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19088exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19089lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19090lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19091lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19092lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19093lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19094reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19095reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19096deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19097file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19098file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19099want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19100sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19101AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19102AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19103archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19104STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19105RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19106old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19107old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19108old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19109lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19110CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19111CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19112compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19113GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19114lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19115lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19116lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19117lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19118lt_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"`' 19119lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19120nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19121lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19122lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19123objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19124MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19125lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19126lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19127lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19128lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19129lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19130need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19131MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19132DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19133NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19134LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19135OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19136OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19137libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19138shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19139extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19140archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19141enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19142export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19143whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19144compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19145old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19146old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19147archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19148archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19149module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19150module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19151with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19152allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19153no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19154hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19155hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19156hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19157hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19158hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19159hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19160hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19161inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19162link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19163always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19164export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19165exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19166include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19167prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19168postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19169file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19170variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19171need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19172need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19173version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19174runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19175shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19176shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19177libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19178library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19179soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19180install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19181postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19182postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19183finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19184finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19185hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19186sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19187configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19188configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19189hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19190enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19191enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19192enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19193old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19194striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19195 19196LTCC='$LTCC' 19197LTCFLAGS='$LTCFLAGS' 19198compiler='$compiler_DEFAULT' 19199 19200# A function that is used when there is no print builtin or printf. 19201func_fallback_echo () 19202{ 19203 eval 'cat <<_LTECHO_EOF 19204\$1 19205_LTECHO_EOF' 19206} 19207 19208# Quote evaled strings. 19209for var in AS \ 19210DLLTOOL \ 19211OBJDUMP \ 19212SHELL \ 19213ECHO \ 19214PATH_SEPARATOR \ 19215SED \ 19216GREP \ 19217EGREP \ 19218FGREP \ 19219LD \ 19220NM \ 19221LN_S \ 19222lt_SP2NL \ 19223lt_NL2SP \ 19224reload_flag \ 19225deplibs_check_method \ 19226file_magic_cmd \ 19227file_magic_glob \ 19228want_nocaseglob \ 19229sharedlib_from_linklib_cmd \ 19230AR \ 19231AR_FLAGS \ 19232archiver_list_spec \ 19233STRIP \ 19234RANLIB \ 19235CC \ 19236CFLAGS \ 19237compiler \ 19238lt_cv_sys_global_symbol_pipe \ 19239lt_cv_sys_global_symbol_to_cdecl \ 19240lt_cv_sys_global_symbol_to_import \ 19241lt_cv_sys_global_symbol_to_c_name_address \ 19242lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19243lt_cv_nm_interface \ 19244nm_file_list_spec \ 19245lt_cv_truncate_bin \ 19246lt_prog_compiler_no_builtin_flag \ 19247lt_prog_compiler_pic \ 19248lt_prog_compiler_wl \ 19249lt_prog_compiler_static \ 19250lt_cv_prog_compiler_c_o \ 19251need_locks \ 19252MANIFEST_TOOL \ 19253DSYMUTIL \ 19254NMEDIT \ 19255LIPO \ 19256OTOOL \ 19257OTOOL64 \ 19258shrext_cmds \ 19259export_dynamic_flag_spec \ 19260whole_archive_flag_spec \ 19261compiler_needs_object \ 19262with_gnu_ld \ 19263allow_undefined_flag \ 19264no_undefined_flag \ 19265hardcode_libdir_flag_spec \ 19266hardcode_libdir_separator \ 19267exclude_expsyms \ 19268include_expsyms \ 19269file_list_spec \ 19270variables_saved_for_relink \ 19271libname_spec \ 19272library_names_spec \ 19273soname_spec \ 19274install_override_mode \ 19275finish_eval \ 19276old_striplib \ 19277striplib; do 19278 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19279 *[\\\\\\\`\\"\\\$]*) 19280 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19281 ;; 19282 *) 19283 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19284 ;; 19285 esac 19286done 19287 19288# Double-quote double-evaled strings. 19289for var in reload_cmds \ 19290old_postinstall_cmds \ 19291old_postuninstall_cmds \ 19292old_archive_cmds \ 19293extract_expsyms_cmds \ 19294old_archive_from_new_cmds \ 19295old_archive_from_expsyms_cmds \ 19296archive_cmds \ 19297archive_expsym_cmds \ 19298module_cmds \ 19299module_expsym_cmds \ 19300export_symbols_cmds \ 19301prelink_cmds \ 19302postlink_cmds \ 19303postinstall_cmds \ 19304postuninstall_cmds \ 19305finish_cmds \ 19306sys_lib_search_path_spec \ 19307configure_time_dlsearch_path \ 19308configure_time_lt_sys_library_path; do 19309 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19310 *[\\\\\\\`\\"\\\$]*) 19311 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19312 ;; 19313 *) 19314 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19315 ;; 19316 esac 19317done 19318 19319ac_aux_dir='$ac_aux_dir' 19320 19321# See if we are running on zsh, and set the options that allow our 19322# commands through without removal of \ escapes INIT. 19323if test -n "\${ZSH_VERSION+set}"; then 19324 setopt NO_GLOB_SUBST 19325fi 19326 19327 19328 PACKAGE='$PACKAGE' 19329 VERSION='$VERSION' 19330 RM='$RM' 19331 ofile='$ofile' 19332 19333 19334 19335GNUmakefile=$GNUmakefile 19336 19337_ACEOF 19338 19339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19340 19341# Handling of arguments. 19342for ac_config_target in $ac_config_targets 19343do 19344 case $ac_config_target in 19345 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19346 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19347 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19348 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;; 19349 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19350 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;; 19351 "gl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gl/tests/Makefile" ;; 19352 "libntlm.pc") CONFIG_FILES="$CONFIG_FILES libntlm.pc" ;; 19353 "libntlm.spec") CONFIG_FILES="$CONFIG_FILES libntlm.spec" ;; 19354 "ntlm.h") CONFIG_FILES="$CONFIG_FILES ntlm.h" ;; 19355 19356 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19357 esac 19358done 19359 19360 19361# If the user did not use the arguments to specify the items to instantiate, 19362# then the envvar interface is used. Set only those that are not. 19363# We use the long form for the default assignment because of an extremely 19364# bizarre bug on SunOS 4.1.3. 19365if $ac_need_defaults; then 19366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19368 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 19369 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19370fi 19371 19372# Have a temporary directory for convenience. Make it in the build tree 19373# simply because there is no reason against having it here, and in addition, 19374# creating and moving files from /tmp can sometimes cause problems. 19375# Hook for its removal unless debugging. 19376# Note that there is a small window in which the directory will not be cleaned: 19377# after its creation but before its name has been assigned to `$tmp'. 19378$debug || 19379{ 19380 tmp= ac_tmp= 19381 trap 'exit_status=$? 19382 : "${ac_tmp:=$tmp}" 19383 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19384' 0 19385 trap 'as_fn_exit 1' 1 2 13 15 19386} 19387# Create a (secure) tmp directory for tmp files. 19388 19389{ 19390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19391 test -d "$tmp" 19392} || 19393{ 19394 tmp=./conf$$-$RANDOM 19395 (umask 077 && mkdir "$tmp") 19396} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19397ac_tmp=$tmp 19398 19399# Set up the scripts for CONFIG_FILES section. 19400# No need to generate them if there are no CONFIG_FILES. 19401# This happens for instance with `./config.status config.h'. 19402if test -n "$CONFIG_FILES"; then 19403 19404 19405ac_cr=`echo X | tr X '\015'` 19406# On cygwin, bash can eat \r inside `` if the user requested igncr. 19407# But we know of no other shell where ac_cr would be empty at this 19408# point, so we can use a bashism as a fallback. 19409if test "x$ac_cr" = x; then 19410 eval ac_cr=\$\'\\r\' 19411fi 19412ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19413if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19414 ac_cs_awk_cr='\\r' 19415else 19416 ac_cs_awk_cr=$ac_cr 19417fi 19418 19419echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19420_ACEOF 19421 19422 19423{ 19424 echo "cat >conf$$subs.awk <<_ACEOF" && 19425 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19426 echo "_ACEOF" 19427} >conf$$subs.sh || 19428 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19429ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19430ac_delim='%!_!# ' 19431for ac_last_try in false false false false false :; do 19432 . ./conf$$subs.sh || 19433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19434 19435 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19436 if test $ac_delim_n = $ac_delim_num; then 19437 break 19438 elif $ac_last_try; then 19439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19440 else 19441 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19442 fi 19443done 19444rm -f conf$$subs.sh 19445 19446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19447cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19448_ACEOF 19449sed -n ' 19450h 19451s/^/S["/; s/!.*/"]=/ 19452p 19453g 19454s/^[^!]*!// 19455:repl 19456t repl 19457s/'"$ac_delim"'$// 19458t delim 19459:nl 19460h 19461s/\(.\{148\}\)..*/\1/ 19462t more1 19463s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19464p 19465n 19466b repl 19467:more1 19468s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19469p 19470g 19471s/.\{148\}// 19472t nl 19473:delim 19474h 19475s/\(.\{148\}\)..*/\1/ 19476t more2 19477s/["\\]/\\&/g; s/^/"/; s/$/"/ 19478p 19479b 19480:more2 19481s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19482p 19483g 19484s/.\{148\}// 19485t delim 19486' <conf$$subs.awk | sed ' 19487/^[^""]/{ 19488 N 19489 s/\n// 19490} 19491' >>$CONFIG_STATUS || ac_write_fail=1 19492rm -f conf$$subs.awk 19493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19494_ACAWK 19495cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19496 for (key in S) S_is_set[key] = 1 19497 FS = "" 19498 19499} 19500{ 19501 line = $ 0 19502 nfields = split(line, field, "@") 19503 substed = 0 19504 len = length(field[1]) 19505 for (i = 2; i < nfields; i++) { 19506 key = field[i] 19507 keylen = length(key) 19508 if (S_is_set[key]) { 19509 value = S[key] 19510 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19511 len += length(value) + length(field[++i]) 19512 substed = 1 19513 } else 19514 len += 1 + keylen 19515 } 19516 19517 print line 19518} 19519 19520_ACAWK 19521_ACEOF 19522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19523if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19524 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19525else 19526 cat 19527fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19528 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19529_ACEOF 19530 19531# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19532# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19533# trailing colons and then remove the whole line if VPATH becomes empty 19534# (actually we leave an empty line to preserve line numbers). 19535if test "x$srcdir" = x.; then 19536 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19537h 19538s/// 19539s/^/:/ 19540s/[ ]*$/:/ 19541s/:\$(srcdir):/:/g 19542s/:\${srcdir}:/:/g 19543s/:@srcdir@:/:/g 19544s/^:*// 19545s/:*$// 19546x 19547s/\(=[ ]*\).*/\1/ 19548G 19549s/\n// 19550s/^[^=]*=[ ]*$// 19551}' 19552fi 19553 19554cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19555fi # test -n "$CONFIG_FILES" 19556 19557# Set up the scripts for CONFIG_HEADERS section. 19558# No need to generate them if there are no CONFIG_HEADERS. 19559# This happens for instance with `./config.status Makefile'. 19560if test -n "$CONFIG_HEADERS"; then 19561cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19562BEGIN { 19563_ACEOF 19564 19565# Transform confdefs.h into an awk script `defines.awk', embedded as 19566# here-document in config.status, that substitutes the proper values into 19567# config.h.in to produce config.h. 19568 19569# Create a delimiter string that does not exist in confdefs.h, to ease 19570# handling of long lines. 19571ac_delim='%!_!# ' 19572for ac_last_try in false false :; do 19573 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19574 if test -z "$ac_tt"; then 19575 break 19576 elif $ac_last_try; then 19577 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19578 else 19579 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19580 fi 19581done 19582 19583# For the awk script, D is an array of macro values keyed by name, 19584# likewise P contains macro parameters if any. Preserve backslash 19585# newline sequences. 19586 19587ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19588sed -n ' 19589s/.\{148\}/&'"$ac_delim"'/g 19590t rset 19591:rset 19592s/^[ ]*#[ ]*define[ ][ ]*/ / 19593t def 19594d 19595:def 19596s/\\$// 19597t bsnl 19598s/["\\]/\\&/g 19599s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19600D["\1"]=" \3"/p 19601s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19602d 19603:bsnl 19604s/["\\]/\\&/g 19605s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19606D["\1"]=" \3\\\\\\n"\\/p 19607t cont 19608s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19609t cont 19610d 19611:cont 19612n 19613s/.\{148\}/&'"$ac_delim"'/g 19614t clear 19615:clear 19616s/\\$// 19617t bsnlc 19618s/["\\]/\\&/g; s/^/"/; s/$/"/p 19619d 19620:bsnlc 19621s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19622b cont 19623' <confdefs.h | sed ' 19624s/'"$ac_delim"'/"\\\ 19625"/g' >>$CONFIG_STATUS || ac_write_fail=1 19626 19627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19628 for (key in D) D_is_set[key] = 1 19629 FS = "" 19630} 19631/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19632 line = \$ 0 19633 split(line, arg, " ") 19634 if (arg[1] == "#") { 19635 defundef = arg[2] 19636 mac1 = arg[3] 19637 } else { 19638 defundef = substr(arg[1], 2) 19639 mac1 = arg[2] 19640 } 19641 split(mac1, mac2, "(") #) 19642 macro = mac2[1] 19643 prefix = substr(line, 1, index(line, defundef) - 1) 19644 if (D_is_set[macro]) { 19645 # Preserve the white space surrounding the "#". 19646 print prefix "define", macro P[macro] D[macro] 19647 next 19648 } else { 19649 # Replace #undef with comments. This is necessary, for example, 19650 # in the case of _POSIX_SOURCE, which is predefined and required 19651 # on some systems where configure will not decide to define it. 19652 if (defundef == "undef") { 19653 print "/*", prefix defundef, macro, "*/" 19654 next 19655 } 19656 } 19657} 19658{ print } 19659_ACAWK 19660_ACEOF 19661cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19662 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19663fi # test -n "$CONFIG_HEADERS" 19664 19665 19666eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 19667shift 19668for ac_tag 19669do 19670 case $ac_tag in 19671 :[FHLC]) ac_mode=$ac_tag; continue;; 19672 esac 19673 case $ac_mode$ac_tag in 19674 :[FHL]*:*);; 19675 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19676 :[FH]-) ac_tag=-:-;; 19677 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19678 esac 19679 ac_save_IFS=$IFS 19680 IFS=: 19681 set x $ac_tag 19682 IFS=$ac_save_IFS 19683 shift 19684 ac_file=$1 19685 shift 19686 19687 case $ac_mode in 19688 :L) ac_source=$1;; 19689 :[FH]) 19690 ac_file_inputs= 19691 for ac_f 19692 do 19693 case $ac_f in 19694 -) ac_f="$ac_tmp/stdin";; 19695 *) # Look for the file first in the build tree, then in the source tree 19696 # (if the path is not absolute). The absolute path cannot be DOS-style, 19697 # because $ac_f cannot contain `:'. 19698 test -f "$ac_f" || 19699 case $ac_f in 19700 [\\/$]*) false;; 19701 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19702 esac || 19703 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19704 esac 19705 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19706 as_fn_append ac_file_inputs " '$ac_f'" 19707 done 19708 19709 # Let's still pretend it is `configure' which instantiates (i.e., don't 19710 # use $as_me), people would be surprised to read: 19711 # /* config.h. Generated by config.status. */ 19712 configure_input='Generated from '` 19713 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19714 `' by configure.' 19715 if test x"$ac_file" != x-; then 19716 configure_input="$ac_file. $configure_input" 19717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19718$as_echo "$as_me: creating $ac_file" >&6;} 19719 fi 19720 # Neutralize special characters interpreted by sed in replacement strings. 19721 case $configure_input in #( 19722 *\&* | *\|* | *\\* ) 19723 ac_sed_conf_input=`$as_echo "$configure_input" | 19724 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19725 *) ac_sed_conf_input=$configure_input;; 19726 esac 19727 19728 case $ac_tag in 19729 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19730 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19731 esac 19732 ;; 19733 esac 19734 19735 ac_dir=`$as_dirname -- "$ac_file" || 19736$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19737 X"$ac_file" : 'X\(//\)[^/]' \| \ 19738 X"$ac_file" : 'X\(//\)$' \| \ 19739 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19740$as_echo X"$ac_file" | 19741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19742 s//\1/ 19743 q 19744 } 19745 /^X\(\/\/\)[^/].*/{ 19746 s//\1/ 19747 q 19748 } 19749 /^X\(\/\/\)$/{ 19750 s//\1/ 19751 q 19752 } 19753 /^X\(\/\).*/{ 19754 s//\1/ 19755 q 19756 } 19757 s/.*/./; q'` 19758 as_dir="$ac_dir"; as_fn_mkdir_p 19759 ac_builddir=. 19760 19761case "$ac_dir" in 19762.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19763*) 19764 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19765 # A ".." for each directory in $ac_dir_suffix. 19766 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19767 case $ac_top_builddir_sub in 19768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19770 esac ;; 19771esac 19772ac_abs_top_builddir=$ac_pwd 19773ac_abs_builddir=$ac_pwd$ac_dir_suffix 19774# for backward compatibility: 19775ac_top_builddir=$ac_top_build_prefix 19776 19777case $srcdir in 19778 .) # We are building in place. 19779 ac_srcdir=. 19780 ac_top_srcdir=$ac_top_builddir_sub 19781 ac_abs_top_srcdir=$ac_pwd ;; 19782 [\\/]* | ?:[\\/]* ) # Absolute name. 19783 ac_srcdir=$srcdir$ac_dir_suffix; 19784 ac_top_srcdir=$srcdir 19785 ac_abs_top_srcdir=$srcdir ;; 19786 *) # Relative name. 19787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19788 ac_top_srcdir=$ac_top_build_prefix$srcdir 19789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19790esac 19791ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19792 19793 19794 case $ac_mode in 19795 :F) 19796 # 19797 # CONFIG_FILE 19798 # 19799 19800 case $INSTALL in 19801 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19802 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19803 esac 19804 ac_MKDIR_P=$MKDIR_P 19805 case $MKDIR_P in 19806 [\\/$]* | ?:[\\/]* ) ;; 19807 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19808 esac 19809_ACEOF 19810 19811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19812# If the template does not know about datarootdir, expand it. 19813# FIXME: This hack should be removed a few years after 2.60. 19814ac_datarootdir_hack=; ac_datarootdir_seen= 19815ac_sed_dataroot=' 19816/datarootdir/ { 19817 p 19818 q 19819} 19820/@datadir@/p 19821/@docdir@/p 19822/@infodir@/p 19823/@localedir@/p 19824/@mandir@/p' 19825case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19826*datarootdir*) ac_datarootdir_seen=yes;; 19827*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19829$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19830_ACEOF 19831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19832 ac_datarootdir_hack=' 19833 s&@datadir@&$datadir&g 19834 s&@docdir@&$docdir&g 19835 s&@infodir@&$infodir&g 19836 s&@localedir@&$localedir&g 19837 s&@mandir@&$mandir&g 19838 s&\\\${datarootdir}&$datarootdir&g' ;; 19839esac 19840_ACEOF 19841 19842# Neutralize VPATH when `$srcdir' = `.'. 19843# Shell code in configure.ac might set extrasub. 19844# FIXME: do we really want to maintain this feature? 19845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19846ac_sed_extra="$ac_vpsub 19847$extrasub 19848_ACEOF 19849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19850:t 19851/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19852s|@configure_input@|$ac_sed_conf_input|;t t 19853s&@top_builddir@&$ac_top_builddir_sub&;t t 19854s&@top_build_prefix@&$ac_top_build_prefix&;t t 19855s&@srcdir@&$ac_srcdir&;t t 19856s&@abs_srcdir@&$ac_abs_srcdir&;t t 19857s&@top_srcdir@&$ac_top_srcdir&;t t 19858s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19859s&@builddir@&$ac_builddir&;t t 19860s&@abs_builddir@&$ac_abs_builddir&;t t 19861s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19862s&@INSTALL@&$ac_INSTALL&;t t 19863s&@MKDIR_P@&$ac_MKDIR_P&;t t 19864$ac_datarootdir_hack 19865" 19866eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19867 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19868 19869test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19870 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19872 "$ac_tmp/out"`; test -z "$ac_out"; } && 19873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19874which seems to be undefined. Please make sure it is defined" >&5 19875$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19876which seems to be undefined. Please make sure it is defined" >&2;} 19877 19878 rm -f "$ac_tmp/stdin" 19879 case $ac_file in 19880 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19881 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19882 esac \ 19883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19884 ;; 19885 :H) 19886 # 19887 # CONFIG_HEADER 19888 # 19889 if test x"$ac_file" != x-; then 19890 { 19891 $as_echo "/* $configure_input */" \ 19892 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19893 } >"$ac_tmp/config.h" \ 19894 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19895 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19896 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19897$as_echo "$as_me: $ac_file is unchanged" >&6;} 19898 else 19899 rm -f "$ac_file" 19900 mv "$ac_tmp/config.h" "$ac_file" \ 19901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19902 fi 19903 else 19904 $as_echo "/* $configure_input */" \ 19905 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19906 || as_fn_error $? "could not create -" "$LINENO" 5 19907 fi 19908# Compute "$ac_file"'s index in $config_headers. 19909_am_arg="$ac_file" 19910_am_stamp_count=1 19911for _am_header in $config_headers :; do 19912 case $_am_header in 19913 $_am_arg | $_am_arg:* ) 19914 break ;; 19915 * ) 19916 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19917 esac 19918done 19919echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19920$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19921 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19922 X"$_am_arg" : 'X\(//\)$' \| \ 19923 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19924$as_echo X"$_am_arg" | 19925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19926 s//\1/ 19927 q 19928 } 19929 /^X\(\/\/\)[^/].*/{ 19930 s//\1/ 19931 q 19932 } 19933 /^X\(\/\/\)$/{ 19934 s//\1/ 19935 q 19936 } 19937 /^X\(\/\).*/{ 19938 s//\1/ 19939 q 19940 } 19941 s/.*/./; q'`/stamp-h$_am_stamp_count 19942 ;; 19943 :L) 19944 # 19945 # CONFIG_LINK 19946 # 19947 19948 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 19949 : 19950 else 19951 # Prefer the file from the source tree if names are identical. 19952 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 19953 ac_source=$srcdir/$ac_source 19954 fi 19955 19956 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 19957$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 19958 19959 if test ! -r "$ac_source"; then 19960 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 19961 fi 19962 rm -f "$ac_file" 19963 19964 # Try a relative symlink, then a hard link, then a copy. 19965 case $ac_source in 19966 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 19967 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 19968 esac 19969 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 19970 ln "$ac_source" "$ac_file" 2>/dev/null || 19971 cp -p "$ac_source" "$ac_file" || 19972 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 19973 fi 19974 ;; 19975 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19976$as_echo "$as_me: executing $ac_file commands" >&6;} 19977 ;; 19978 esac 19979 19980 19981 case $ac_file$ac_mode in 19982 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19983 # Older Autoconf quotes --file arguments for eval, but not when files 19984 # are listed without --file. Let's play safe and only enable the eval 19985 # if we detect the quoting. 19986 # TODO: see whether this extra hack can be removed once we start 19987 # requiring Autoconf 2.70 or later. 19988 case $CONFIG_FILES in #( 19989 *\'*) : 19990 eval set x "$CONFIG_FILES" ;; #( 19991 *) : 19992 set x $CONFIG_FILES ;; #( 19993 *) : 19994 ;; 19995esac 19996 shift 19997 # Used to flag and report bootstrapping failures. 19998 am_rc=0 19999 for am_mf 20000 do 20001 # Strip MF so we end up with the name of the file. 20002 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 20003 # Check whether this is an Automake generated Makefile which includes 20004 # dependency-tracking related rules and includes. 20005 # Grep'ing the whole file directly is not great: AIX grep has a line 20006 # limit of 2048, but all sed's we know have understand at least 4000. 20007 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 20008 || continue 20009 am_dirpart=`$as_dirname -- "$am_mf" || 20010$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20011 X"$am_mf" : 'X\(//\)[^/]' \| \ 20012 X"$am_mf" : 'X\(//\)$' \| \ 20013 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20014$as_echo X"$am_mf" | 20015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20016 s//\1/ 20017 q 20018 } 20019 /^X\(\/\/\)[^/].*/{ 20020 s//\1/ 20021 q 20022 } 20023 /^X\(\/\/\)$/{ 20024 s//\1/ 20025 q 20026 } 20027 /^X\(\/\).*/{ 20028 s//\1/ 20029 q 20030 } 20031 s/.*/./; q'` 20032 am_filepart=`$as_basename -- "$am_mf" || 20033$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 20034 X"$am_mf" : 'X\(//\)$' \| \ 20035 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 20036$as_echo X/"$am_mf" | 20037 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20038 s//\1/ 20039 q 20040 } 20041 /^X\/\(\/\/\)$/{ 20042 s//\1/ 20043 q 20044 } 20045 /^X\/\(\/\).*/{ 20046 s//\1/ 20047 q 20048 } 20049 s/.*/./; q'` 20050 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 20051 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20052 | $MAKE -f - am--depfiles" >&5 20053 (cd "$am_dirpart" \ 20054 && sed -e '/# am--include-marker/d' "$am_filepart" \ 20055 | $MAKE -f - am--depfiles) >&5 2>&5 20056 ac_status=$? 20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20058 (exit $ac_status); } || am_rc=$? 20059 done 20060 if test $am_rc -ne 0; then 20061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 20062$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 20063as_fn_error $? "Something went wrong bootstrapping makefile fragments 20064 for automatic dependency tracking. Try re-running configure with the 20065 '--disable-dependency-tracking' option to at least be able to build 20066 the package (albeit without support for automatic dependency tracking). 20067See \`config.log' for more details" "$LINENO" 5; } 20068 fi 20069 { am_dirpart=; unset am_dirpart;} 20070 { am_filepart=; unset am_filepart;} 20071 { am_mf=; unset am_mf;} 20072 { am_rc=; unset am_rc;} 20073 rm -f conftest-deps.mk 20074} 20075 ;; 20076 "libtool":C) 20077 20078 # See if we are running on zsh, and set the options that allow our 20079 # commands through without removal of \ escapes. 20080 if test -n "${ZSH_VERSION+set}"; then 20081 setopt NO_GLOB_SUBST 20082 fi 20083 20084 cfgfile=${ofile}T 20085 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20086 $RM "$cfgfile" 20087 20088 cat <<_LT_EOF >> "$cfgfile" 20089#! $SHELL 20090# Generated automatically by $as_me ($PACKAGE) $VERSION 20091# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20092 20093# Provide generalized library-building support services. 20094# Written by Gordon Matzigkeit, 1996 20095 20096# Copyright (C) 2014 Free Software Foundation, Inc. 20097# This is free software; see the source for copying conditions. There is NO 20098# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20099 20100# GNU Libtool is free software; you can redistribute it and/or modify 20101# it under the terms of the GNU General Public License as published by 20102# the Free Software Foundation; either version 2 of of the License, or 20103# (at your option) any later version. 20104# 20105# As a special exception to the GNU General Public License, if you 20106# distribute this file as part of a program or library that is built 20107# using GNU Libtool, you may include this file under the same 20108# distribution terms that you use for the rest of that program. 20109# 20110# GNU Libtool is distributed in the hope that it will be useful, but 20111# WITHOUT ANY WARRANTY; without even the implied warranty of 20112# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20113# GNU General Public License for more details. 20114# 20115# You should have received a copy of the GNU General Public License 20116# along with this program. If not, see <http://www.gnu.org/licenses/>. 20117 20118 20119# The names of the tagged configurations supported by this script. 20120available_tags='' 20121 20122# Configured defaults for sys_lib_dlsearch_path munging. 20123: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20124 20125# ### BEGIN LIBTOOL CONFIG 20126 20127# Assembler program. 20128AS=$lt_AS 20129 20130# DLL creation program. 20131DLLTOOL=$lt_DLLTOOL 20132 20133# Object dumper program. 20134OBJDUMP=$lt_OBJDUMP 20135 20136# Which release of libtool.m4 was used? 20137macro_version=$macro_version 20138macro_revision=$macro_revision 20139 20140# Whether or not to build shared libraries. 20141build_libtool_libs=$enable_shared 20142 20143# Whether or not to build static libraries. 20144build_old_libs=$enable_static 20145 20146# What type of objects to build. 20147pic_mode=$pic_mode 20148 20149# Whether or not to optimize for fast installation. 20150fast_install=$enable_fast_install 20151 20152# Shared archive member basename,for filename based shared library versioning on AIX. 20153shared_archive_member_spec=$shared_archive_member_spec 20154 20155# Shell to use when invoking shell scripts. 20156SHELL=$lt_SHELL 20157 20158# An echo program that protects backslashes. 20159ECHO=$lt_ECHO 20160 20161# The PATH separator for the build system. 20162PATH_SEPARATOR=$lt_PATH_SEPARATOR 20163 20164# The host system. 20165host_alias=$host_alias 20166host=$host 20167host_os=$host_os 20168 20169# The build system. 20170build_alias=$build_alias 20171build=$build 20172build_os=$build_os 20173 20174# A sed program that does not truncate output. 20175SED=$lt_SED 20176 20177# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20178Xsed="\$SED -e 1s/^X//" 20179 20180# A grep program that handles long lines. 20181GREP=$lt_GREP 20182 20183# An ERE matcher. 20184EGREP=$lt_EGREP 20185 20186# A literal string matcher. 20187FGREP=$lt_FGREP 20188 20189# A BSD- or MS-compatible name lister. 20190NM=$lt_NM 20191 20192# Whether we need soft or hard links. 20193LN_S=$lt_LN_S 20194 20195# What is the maximum length of a command? 20196max_cmd_len=$max_cmd_len 20197 20198# Object file suffix (normally "o"). 20199objext=$ac_objext 20200 20201# Executable file suffix (normally ""). 20202exeext=$exeext 20203 20204# whether the shell understands "unset". 20205lt_unset=$lt_unset 20206 20207# turn spaces into newlines. 20208SP2NL=$lt_lt_SP2NL 20209 20210# turn newlines into spaces. 20211NL2SP=$lt_lt_NL2SP 20212 20213# convert \$build file names to \$host format. 20214to_host_file_cmd=$lt_cv_to_host_file_cmd 20215 20216# convert \$build files to toolchain format. 20217to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20218 20219# Method to check whether dependent libraries are shared objects. 20220deplibs_check_method=$lt_deplibs_check_method 20221 20222# Command to use when deplibs_check_method = "file_magic". 20223file_magic_cmd=$lt_file_magic_cmd 20224 20225# How to find potential files when deplibs_check_method = "file_magic". 20226file_magic_glob=$lt_file_magic_glob 20227 20228# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20229want_nocaseglob=$lt_want_nocaseglob 20230 20231# Command to associate shared and link libraries. 20232sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20233 20234# The archiver. 20235AR=$lt_AR 20236 20237# Flags to create an archive. 20238AR_FLAGS=$lt_AR_FLAGS 20239 20240# How to feed a file listing to the archiver. 20241archiver_list_spec=$lt_archiver_list_spec 20242 20243# A symbol stripping program. 20244STRIP=$lt_STRIP 20245 20246# Commands used to install an old-style archive. 20247RANLIB=$lt_RANLIB 20248old_postinstall_cmds=$lt_old_postinstall_cmds 20249old_postuninstall_cmds=$lt_old_postuninstall_cmds 20250 20251# Whether to use a lock for old archive extraction. 20252lock_old_archive_extraction=$lock_old_archive_extraction 20253 20254# A C compiler. 20255LTCC=$lt_CC 20256 20257# LTCC compiler flags. 20258LTCFLAGS=$lt_CFLAGS 20259 20260# Take the output of nm and produce a listing of raw symbols and C names. 20261global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20262 20263# Transform the output of nm in a proper C declaration. 20264global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20265 20266# Transform the output of nm into a list of symbols to manually relocate. 20267global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20268 20269# Transform the output of nm in a C name address pair. 20270global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20271 20272# Transform the output of nm in a C name address pair when lib prefix is needed. 20273global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20274 20275# The name lister interface. 20276nm_interface=$lt_lt_cv_nm_interface 20277 20278# Specify filename containing input files for \$NM. 20279nm_file_list_spec=$lt_nm_file_list_spec 20280 20281# The root where to search for dependent libraries,and where our libraries should be installed. 20282lt_sysroot=$lt_sysroot 20283 20284# Command to truncate a binary pipe. 20285lt_truncate_bin=$lt_lt_cv_truncate_bin 20286 20287# The name of the directory that contains temporary libtool files. 20288objdir=$objdir 20289 20290# Used to examine libraries when file_magic_cmd begins with "file". 20291MAGIC_CMD=$MAGIC_CMD 20292 20293# Must we lock files when doing compilation? 20294need_locks=$lt_need_locks 20295 20296# Manifest tool. 20297MANIFEST_TOOL=$lt_MANIFEST_TOOL 20298 20299# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20300DSYMUTIL=$lt_DSYMUTIL 20301 20302# Tool to change global to local symbols on Mac OS X. 20303NMEDIT=$lt_NMEDIT 20304 20305# Tool to manipulate fat objects and archives on Mac OS X. 20306LIPO=$lt_LIPO 20307 20308# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20309OTOOL=$lt_OTOOL 20310 20311# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20312OTOOL64=$lt_OTOOL64 20313 20314# Old archive suffix (normally "a"). 20315libext=$libext 20316 20317# Shared library suffix (normally ".so"). 20318shrext_cmds=$lt_shrext_cmds 20319 20320# The commands to extract the exported symbol list from a shared archive. 20321extract_expsyms_cmds=$lt_extract_expsyms_cmds 20322 20323# Variables whose values should be saved in libtool wrapper scripts and 20324# restored at link time. 20325variables_saved_for_relink=$lt_variables_saved_for_relink 20326 20327# Do we need the "lib" prefix for modules? 20328need_lib_prefix=$need_lib_prefix 20329 20330# Do we need a version for libraries? 20331need_version=$need_version 20332 20333# Library versioning type. 20334version_type=$version_type 20335 20336# Shared library runtime path variable. 20337runpath_var=$runpath_var 20338 20339# Shared library path variable. 20340shlibpath_var=$shlibpath_var 20341 20342# Is shlibpath searched before the hard-coded library search path? 20343shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20344 20345# Format of library name prefix. 20346libname_spec=$lt_libname_spec 20347 20348# List of archive names. First name is the real one, the rest are links. 20349# The last name is the one that the linker finds with -lNAME 20350library_names_spec=$lt_library_names_spec 20351 20352# The coded name of the library, if different from the real name. 20353soname_spec=$lt_soname_spec 20354 20355# Permission mode override for installation of shared libraries. 20356install_override_mode=$lt_install_override_mode 20357 20358# Command to use after installation of a shared archive. 20359postinstall_cmds=$lt_postinstall_cmds 20360 20361# Command to use after uninstallation of a shared archive. 20362postuninstall_cmds=$lt_postuninstall_cmds 20363 20364# Commands used to finish a libtool library installation in a directory. 20365finish_cmds=$lt_finish_cmds 20366 20367# As "finish_cmds", except a single script fragment to be evaled but 20368# not shown. 20369finish_eval=$lt_finish_eval 20370 20371# Whether we should hardcode library paths into libraries. 20372hardcode_into_libs=$hardcode_into_libs 20373 20374# Compile-time system search path for libraries. 20375sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20376 20377# Detected run-time system search path for libraries. 20378sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20379 20380# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20381configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20382 20383# Whether dlopen is supported. 20384dlopen_support=$enable_dlopen 20385 20386# Whether dlopen of programs is supported. 20387dlopen_self=$enable_dlopen_self 20388 20389# Whether dlopen of statically linked programs is supported. 20390dlopen_self_static=$enable_dlopen_self_static 20391 20392# Commands to strip libraries. 20393old_striplib=$lt_old_striplib 20394striplib=$lt_striplib 20395 20396 20397# The linker used to build libraries. 20398LD=$lt_LD 20399 20400# How to create reloadable object files. 20401reload_flag=$lt_reload_flag 20402reload_cmds=$lt_reload_cmds 20403 20404# Commands used to build an old-style archive. 20405old_archive_cmds=$lt_old_archive_cmds 20406 20407# A language specific compiler. 20408CC=$lt_compiler 20409 20410# Is the compiler the GNU compiler? 20411with_gcc=$GCC 20412 20413# Compiler flag to turn off builtin functions. 20414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20415 20416# Additional compiler flags for building library objects. 20417pic_flag=$lt_lt_prog_compiler_pic 20418 20419# How to pass a linker flag through the compiler. 20420wl=$lt_lt_prog_compiler_wl 20421 20422# Compiler flag to prevent dynamic linking. 20423link_static_flag=$lt_lt_prog_compiler_static 20424 20425# Does compiler simultaneously support -c and -o options? 20426compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20427 20428# Whether or not to add -lc for building shared libraries. 20429build_libtool_need_lc=$archive_cmds_need_lc 20430 20431# Whether or not to disallow shared libs when runtime libs are static. 20432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20433 20434# Compiler flag to allow reflexive dlopens. 20435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20436 20437# Compiler flag to generate shared objects directly from archives. 20438whole_archive_flag_spec=$lt_whole_archive_flag_spec 20439 20440# Whether the compiler copes with passing no objects directly. 20441compiler_needs_object=$lt_compiler_needs_object 20442 20443# Create an old-style archive from a shared archive. 20444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20445 20446# Create a temporary old-style archive to link instead of a shared archive. 20447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20448 20449# Commands used to build a shared archive. 20450archive_cmds=$lt_archive_cmds 20451archive_expsym_cmds=$lt_archive_expsym_cmds 20452 20453# Commands used to build a loadable module if different from building 20454# a shared archive. 20455module_cmds=$lt_module_cmds 20456module_expsym_cmds=$lt_module_expsym_cmds 20457 20458# Whether we are building with GNU ld or not. 20459with_gnu_ld=$lt_with_gnu_ld 20460 20461# Flag that allows shared libraries with undefined symbols to be built. 20462allow_undefined_flag=$lt_allow_undefined_flag 20463 20464# Flag that enforces no undefined symbols. 20465no_undefined_flag=$lt_no_undefined_flag 20466 20467# Flag to hardcode \$libdir into a binary during linking. 20468# This must work even if \$libdir does not exist 20469hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20470 20471# Whether we need a single "-rpath" flag with a separated argument. 20472hardcode_libdir_separator=$lt_hardcode_libdir_separator 20473 20474# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20475# DIR into the resulting binary. 20476hardcode_direct=$hardcode_direct 20477 20478# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20479# DIR into the resulting binary and the resulting library dependency is 20480# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20481# library is relocated. 20482hardcode_direct_absolute=$hardcode_direct_absolute 20483 20484# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20485# into the resulting binary. 20486hardcode_minus_L=$hardcode_minus_L 20487 20488# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20489# into the resulting binary. 20490hardcode_shlibpath_var=$hardcode_shlibpath_var 20491 20492# Set to "yes" if building a shared library automatically hardcodes DIR 20493# into the library and all subsequent libraries and executables linked 20494# against it. 20495hardcode_automatic=$hardcode_automatic 20496 20497# Set to yes if linker adds runtime paths of dependent libraries 20498# to runtime path list. 20499inherit_rpath=$inherit_rpath 20500 20501# Whether libtool must link a program against all its dependency libraries. 20502link_all_deplibs=$link_all_deplibs 20503 20504# Set to "yes" if exported symbols are required. 20505always_export_symbols=$always_export_symbols 20506 20507# The commands to list exported symbols. 20508export_symbols_cmds=$lt_export_symbols_cmds 20509 20510# Symbols that should not be listed in the preloaded symbols. 20511exclude_expsyms=$lt_exclude_expsyms 20512 20513# Symbols that must always be exported. 20514include_expsyms=$lt_include_expsyms 20515 20516# Commands necessary for linking programs (against libraries) with templates. 20517prelink_cmds=$lt_prelink_cmds 20518 20519# Commands necessary for finishing linking programs. 20520postlink_cmds=$lt_postlink_cmds 20521 20522# Specify filename containing input files. 20523file_list_spec=$lt_file_list_spec 20524 20525# How to hardcode a shared library path into an executable. 20526hardcode_action=$hardcode_action 20527 20528# ### END LIBTOOL CONFIG 20529 20530_LT_EOF 20531 20532 cat <<'_LT_EOF' >> "$cfgfile" 20533 20534# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20535 20536# func_munge_path_list VARIABLE PATH 20537# ----------------------------------- 20538# VARIABLE is name of variable containing _space_ separated list of 20539# directories to be munged by the contents of PATH, which is string 20540# having a format: 20541# "DIR[:DIR]:" 20542# string "DIR[ DIR]" will be prepended to VARIABLE 20543# ":DIR[:DIR]" 20544# string "DIR[ DIR]" will be appended to VARIABLE 20545# "DIRP[:DIRP]::[DIRA:]DIRA" 20546# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20547# "DIRA[ DIRA]" will be appended to VARIABLE 20548# "DIR[:DIR]" 20549# VARIABLE will be replaced by "DIR[ DIR]" 20550func_munge_path_list () 20551{ 20552 case x$2 in 20553 x) 20554 ;; 20555 *:) 20556 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20557 ;; 20558 x:*) 20559 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20560 ;; 20561 *::*) 20562 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20563 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20564 ;; 20565 *) 20566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20567 ;; 20568 esac 20569} 20570 20571 20572# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20573func_cc_basename () 20574{ 20575 for cc_temp in $*""; do 20576 case $cc_temp in 20577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20579 \-*) ;; 20580 *) break;; 20581 esac 20582 done 20583 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20584} 20585 20586 20587# ### END FUNCTIONS SHARED WITH CONFIGURE 20588 20589_LT_EOF 20590 20591 case $host_os in 20592 aix3*) 20593 cat <<\_LT_EOF >> "$cfgfile" 20594# AIX sometimes has problems with the GCC collect2 program. For some 20595# reason, if we set the COLLECT_NAMES environment variable, the problems 20596# vanish in a puff of smoke. 20597if test set != "${COLLECT_NAMES+set}"; then 20598 COLLECT_NAMES= 20599 export COLLECT_NAMES 20600fi 20601_LT_EOF 20602 ;; 20603 esac 20604 20605 20606ltmain=$ac_aux_dir/ltmain.sh 20607 20608 20609 # We use sed instead of cat because bash on DJGPP gets confused if 20610 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20611 # text mode, it properly converts lines to CR/LF. This bash problem 20612 # is reportedly fixed, but why not run on old versions too? 20613 sed '$q' "$ltmain" >> "$cfgfile" \ 20614 || (rm -f "$cfgfile"; exit 1) 20615 20616 mv -f "$cfgfile" "$ofile" || 20617 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20618 chmod +x "$ofile" 20619 20620 ;; 20621 20622 esac 20623done # for ac_tag 20624 20625 20626as_fn_exit 0 20627_ACEOF 20628ac_clean_files=$ac_clean_files_save 20629 20630test $ac_write_fail = 0 || 20631 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20632 20633 20634# configure is writing to config.log, and then calls config.status. 20635# config.status does its own redirection, appending to config.log. 20636# Unfortunately, on DOS this fails, as config.log is still kept open 20637# by configure, so config.status won't be able to write to it; its 20638# output is simply discarded. So we exec the FD to /dev/null, 20639# effectively closing config.log, so it can be properly (re)opened and 20640# appended to by config.status. When coming back to configure, we 20641# need to make the FD available again. 20642if test "$no_create" != yes; then 20643 ac_cs_success=: 20644 ac_config_status_args= 20645 test "$silent" = yes && 20646 ac_config_status_args="$ac_config_status_args --quiet" 20647 exec 5>/dev/null 20648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20649 exec 5>>config.log 20650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20651 # would make configure fail if this is the last instruction. 20652 $ac_cs_success || as_fn_exit 1 20653fi 20654if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20656$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20657fi 20658 20659