1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.70 for GNU SASL 1.10.0. 4# 5# Report bugs to <bug-gsasl@gnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020 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 19as_nop=: 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else $as_nop 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38 39# Reset variables that may have inherited troublesome values from 40# the environment. 41 42# IFS needs to be set, to space, tab, and newline, in precisely that order. 43# (If _AS_PATH_WALK were called with IFS unset, it would have the 44# side effect of setting IFS to empty, thus disabling word splitting.) 45# Quoting is to prevent editors from complaining about space-tab. 46as_nl=' 47' 48export as_nl 49IFS=" "" $as_nl" 50 51PS1='$ ' 52PS2='> ' 53PS4='+ ' 54 55# Ensure predictable behavior from utilities with locale-dependent output. 56LC_ALL=C 57export LC_ALL 58LANGUAGE=C 59export LANGUAGE 60 61# We cannot yet rely on "unset" to work, but we need these variables 62# to be unset--not just set to an empty or harmless value--now, to 63# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 64# also avoids known problems related to "unset" and subshell syntax 65# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 66for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 67do eval test \${$as_var+y} \ 68 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 69done 70 71# Ensure that fds 0, 1, and 2 are open. 72if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 73if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 74if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 75 76# The user is always right. 77if ${PATH_SEPARATOR+false} :; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# Find who we are. Look in the path if we contain no directory separator. 87as_myself= 88case $0 in #(( 89 *[\\/]* ) as_myself=$0 ;; 90 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 91for as_dir in $PATH 92do 93 IFS=$as_save_IFS 94 case $as_dir in #((( 95 '') as_dir=./ ;; 96 */) ;; 97 *) as_dir=$as_dir/ ;; 98 esac 99 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115 116# Use a proper internal environment variable to ensure we don't fall 117 # into an infinite loop, continuously re-executing ourselves. 118 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 119 _as_can_reexec=no; export _as_can_reexec; 120 # We cannot yet assume a decent shell, so we have to provide a 121# neutralization value for shells without unset; and this also 122# works around shells that cannot unset nonexistent variables. 123# Preserve -v and -x to the replacement shell. 124BASH_ENV=/dev/null 125ENV=/dev/null 126(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 127case $- in # (((( 128 *v*x* | *x*v* ) as_opts=-vx ;; 129 *v* ) as_opts=-v ;; 130 *x* ) as_opts=-x ;; 131 * ) as_opts= ;; 132esac 133exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 134# Admittedly, this is quite paranoid, since all the known shells bail 135# out after a failed `exec'. 136printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 137exit 255 138 fi 139 # We don't want this to propagate to other subprocesses. 140 { _as_can_reexec=; unset _as_can_reexec;} 141if test "x$CONFIG_SHELL" = x; then 142 as_bourne_compatible="as_nop=: 143if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else \$as_nop 152 case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac 158fi 159" 160 as_required="as_fn_return () { (exit \$1); } 161as_fn_success () { as_fn_return 0; } 162as_fn_failure () { as_fn_return 1; } 163as_fn_ret_success () { return 0; } 164as_fn_ret_failure () { return 1; } 165 166exitcode=0 167as_fn_success || { exitcode=1; echo as_fn_success failed.; } 168as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 169as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 170as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 171if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 172then : 173 174else \$as_nop 175 exitcode=1; echo positional parameters were not saved. 176fi 177test x\$exitcode = x0 || exit 1 178blah=\$(echo \$(echo blah)) 179test x\"\$blah\" = xblah || exit 1 180test -x / || exit 1" 181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 194 if (eval "$as_required") 2>/dev/null 195then : 196 as_have_required=yes 197else $as_nop 198 as_have_required=no 199fi 200 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 201then : 202 203else $as_nop 204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 205as_found=false 206for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 207do 208 IFS=$as_save_IFS 209 case $as_dir in #((( 210 '') as_dir=./ ;; 211 */) ;; 212 *) as_dir=$as_dir/ ;; 213 esac 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 222then : 223 CONFIG_SHELL=$as_shell as_have_required=yes 224 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 225then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233IFS=$as_save_IFS 234if $as_found 235then : 236 237else $as_nop 238 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 239 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 240then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi 243fi 244 245 246 if test "x$CONFIG_SHELL" != x 247then : 248 export CONFIG_SHELL 249 # We cannot yet assume a decent shell, so we have to provide a 250# neutralization value for shells without unset; and this also 251# works around shells that cannot unset nonexistent variables. 252# Preserve -v and -x to the replacement shell. 253BASH_ENV=/dev/null 254ENV=/dev/null 255(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 256case $- in # (((( 257 *v*x* | *x*v* ) as_opts=-vx ;; 258 *v* ) as_opts=-v ;; 259 *x* ) as_opts=-x ;; 260 * ) as_opts= ;; 261esac 262exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 263# Admittedly, this is quite paranoid, since all the known shells bail 264# out after a failed `exec'. 265printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 266exit 255 267fi 268 269 if test x$as_have_required = xno 270then : 271 printf "%s\n" "$0: This script requires a shell more modern than all" 272 printf "%s\n" "$0: the shells that I found on your system." 273 if test ${ZSH_VERSION+y} ; then 274 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and bug-gsasl@gnu.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 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323# as_fn_nop 324# --------- 325# Do nothing but, unlike ":", preserve the value of $?. 326as_fn_nop () 327{ 328 return $? 329} 330as_nop=as_fn_nop 331 332# as_fn_mkdir_p 333# ------------- 334# Create "$as_dir" as a directory, including parents if necessary. 335as_fn_mkdir_p () 336{ 337 338 case $as_dir in #( 339 -*) as_dir=./$as_dir;; 340 esac 341 test -d "$as_dir" || eval $as_mkdir_p || { 342 as_dirs= 343 while :; do 344 case $as_dir in #( 345 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 346 *) as_qdir=$as_dir;; 347 esac 348 as_dirs="'$as_qdir' $as_dirs" 349 as_dir=`$as_dirname -- "$as_dir" || 350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 351 X"$as_dir" : 'X\(//\)[^/]' \| \ 352 X"$as_dir" : 'X\(//\)$' \| \ 353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 354printf "%s\n" X"$as_dir" | 355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\/\)[^/].*/{ 360 s//\1/ 361 q 362 } 363 /^X\(\/\/\)$/{ 364 s//\1/ 365 q 366 } 367 /^X\(\/\).*/{ 368 s//\1/ 369 q 370 } 371 s/.*/./; q'` 372 test -d "$as_dir" && break 373 done 374 test -z "$as_dirs" || eval "mkdir $as_dirs" 375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 376 377 378} # as_fn_mkdir_p 379 380# as_fn_executable_p FILE 381# ----------------------- 382# Test if FILE is an executable regular file. 383as_fn_executable_p () 384{ 385 test -f "$1" && test -x "$1" 386} # as_fn_executable_p 387# as_fn_append VAR VALUE 388# ---------------------- 389# Append the text in VALUE to the end of the definition contained in VAR. Take 390# advantage of any shell optimizations that allow amortized linear growth over 391# repeated appends, instead of the typical quadratic growth present in naive 392# implementations. 393if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 394then : 395 eval 'as_fn_append () 396 { 397 eval $1+=\$2 398 }' 399else $as_nop 400 as_fn_append () 401 { 402 eval $1=\$$1\$2 403 } 404fi # as_fn_append 405 406# as_fn_arith ARG... 407# ------------------ 408# Perform arithmetic evaluation on the ARGs, and store the result in the 409# global $as_val. Take advantage of shells that can avoid forks. The arguments 410# must be portable across $(()) and expr. 411if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 412then : 413 eval 'as_fn_arith () 414 { 415 as_val=$(( $* )) 416 }' 417else $as_nop 418 as_fn_arith () 419 { 420 as_val=`expr "$@" || test $? -eq 1` 421 } 422fi # as_fn_arith 423 424# as_fn_nop 425# --------- 426# Do nothing but, unlike ":", preserve the value of $?. 427as_fn_nop () 428{ 429 return $? 430} 431as_nop=as_fn_nop 432 433# as_fn_error STATUS ERROR [LINENO LOG_FD] 434# ---------------------------------------- 435# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 436# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 437# script with STATUS, using 1 if that was 0. 438as_fn_error () 439{ 440 as_status=$1; test $as_status -eq 0 && as_status=1 441 if test "$4"; then 442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 444 fi 445 printf "%s\n" "$as_me: error: $2" >&2 446 as_fn_exit $as_status 447} # as_fn_error 448 449if expr a : '\(a\)' >/dev/null 2>&1 && 450 test "X`expr 00001 : '.*\(...\)'`" = X001; then 451 as_expr=expr 452else 453 as_expr=false 454fi 455 456if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 457 as_basename=basename 458else 459 as_basename=false 460fi 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468as_me=`$as_basename -- "$0" || 469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 470 X"$0" : 'X\(//\)$' \| \ 471 X"$0" : 'X\(/\)' \| . 2>/dev/null || 472printf "%s\n" X/"$0" | 473 sed '/^.*\/\([^/][^/]*\)\/*$/{ 474 s//\1/ 475 q 476 } 477 /^X\/\(\/\/\)$/{ 478 s//\1/ 479 q 480 } 481 /^X\/\(\/\).*/{ 482 s//\1/ 483 q 484 } 485 s/.*/./; q'` 486 487# Avoid depending upon Character Ranges. 488as_cr_letters='abcdefghijklmnopqrstuvwxyz' 489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 490as_cr_Letters=$as_cr_letters$as_cr_LETTERS 491as_cr_digits='0123456789' 492as_cr_alnum=$as_cr_Letters$as_cr_digits 493 494 495 as_lineno_1=$LINENO as_lineno_1a=$LINENO 496 as_lineno_2=$LINENO as_lineno_2a=$LINENO 497 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 498 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 499 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 500 sed -n ' 501 p 502 /[$]LINENO/= 503 ' <$as_myself | 504 sed ' 505 s/[$]LINENO.*/&-/ 506 t lineno 507 b 508 :lineno 509 N 510 :loop 511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 512 t loop 513 s/-\n.*// 514 ' >$as_me.lineno && 515 chmod +x "$as_me.lineno" || 516 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 517 518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 519 # already done that, so ensure we don't try to do so again and fall 520 # in an infinite loop. This has already happened in practice. 521 _as_can_reexec=no; export _as_can_reexec 522 # Don't try to exec as it changes $[0], causing all sort of problems 523 # (the dirname of $[0] is not the place where we might find the 524 # original and so on. Autoconf is especially sensitive to this). 525 . "./$as_me.lineno" 526 # Exit status is that of the last command. 527 exit 528} 529 530 531# Determine whether it's possible to make 'echo' print without a newline. 532# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 533# for compatibility with existing Makefiles. 534ECHO_C= ECHO_N= ECHO_T= 535case `echo -n x` in #((((( 536-n*) 537 case `echo 'xy\c'` in 538 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 539 xy) ECHO_C='\c';; 540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 541 ECHO_T=' ';; 542 esac;; 543*) 544 ECHO_N='-n';; 545esac 546 547# For backward compatibility with old third-party macros, we provide 548# the shell variables $as_echo and $as_echo_n. New code should use 549# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 550as_echo='printf %s\n' 551as_echo_n='printf %s' 552 553 554rm -f conf$$ conf$$.exe conf$$.file 555if test -d conf$$.dir; then 556 rm -f conf$$.dir/conf$$.file 557else 558 rm -f conf$$.dir 559 mkdir conf$$.dir 2>/dev/null 560fi 561if (echo >conf$$.file) 2>/dev/null; then 562 if ln -s conf$$.file conf$$ 2>/dev/null; then 563 as_ln_s='ln -s' 564 # ... but there are two gotchas: 565 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 566 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 567 # In both cases, we have to default to `cp -pR'. 568 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 569 as_ln_s='cp -pR' 570 elif ln conf$$.file conf$$ 2>/dev/null; then 571 as_ln_s=ln 572 else 573 as_ln_s='cp -pR' 574 fi 575else 576 as_ln_s='cp -pR' 577fi 578rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 579rmdir conf$$.dir 2>/dev/null 580 581if mkdir -p . 2>/dev/null; then 582 as_mkdir_p='mkdir -p "$as_dir"' 583else 584 test -d ./-p && rmdir ./-p 585 as_mkdir_p=false 586fi 587 588as_test_x='test -x' 589as_executable_p=as_fn_executable_p 590 591# Sed expression to map a string onto a valid CPP name. 592as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 593 594# Sed expression to map a string onto a valid variable name. 595as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 596 597SHELL=${CONFIG_SHELL-/bin/sh} 598 599 600test -n "$DJDIR" || exec 7<&0 </dev/null 601exec 6>&1 602 603# Name of the host. 604# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 605# so uname gets run too. 606ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 607 608# 609# Initializations. 610# 611ac_default_prefix=/usr/local 612ac_clean_files= 613ac_config_libobj_dir=. 614LIBOBJS= 615cross_compiling=no 616subdirs= 617MFLAGS= 618MAKEFLAGS= 619 620# Identity of this package. 621PACKAGE_NAME='GNU SASL' 622PACKAGE_TARNAME='gsasl' 623PACKAGE_VERSION='1.10.0' 624PACKAGE_STRING='GNU SASL 1.10.0' 625PACKAGE_BUGREPORT='bug-gsasl@gnu.org' 626PACKAGE_URL='https://www.gnu.org/software/gsasl/' 627 628# Factoring default headers for most tests. 629ac_includes_default="\ 630#include <stddef.h> 631#ifdef HAVE_STDIO_H 632# include <stdio.h> 633#endif 634#ifdef HAVE_STDLIB_H 635# include <stdlib.h> 636#endif 637#ifdef HAVE_STRING_H 638# include <string.h> 639#endif 640#ifdef HAVE_INTTYPES_H 641# include <inttypes.h> 642#endif 643#ifdef HAVE_STDINT_H 644# include <stdint.h> 645#endif 646#ifdef HAVE_STRINGS_H 647# include <strings.h> 648#endif 649#ifdef HAVE_SYS_TYPES_H 650# include <sys/types.h> 651#endif 652#ifdef HAVE_SYS_STAT_H 653# include <sys/stat.h> 654#endif 655#ifdef HAVE_UNISTD_H 656# include <unistd.h> 657#endif" 658 659ac_header_c_list= 660gl_use_threads_default= 661gl_use_winpthreads_default= 662gt_needs= 663ac_func_c_list= 664gl_getopt_required=POSIX 665enable_option_checking=no 666ac_subst_vars='gltests_LTLIBOBJS 667gltests_LIBOBJS 668gl_LTLIBOBJS 669gl_LIBOBJS 670CONFIG_INCLUDE 671am__EXEEXT_FALSE 672am__EXEEXT_TRUE 673LTLIBOBJS 674LIBOBJS 675subdirs 676WARN_CFLAGS 677WEASY_CFLAGS 678WERROR_CFLAGS 679LASSO_FALSE 680LASSO_TRUE 681LASSO_LIBS 682LASSO_CFLAGS 683WINDOWS_FALSE 684WINDOWS_TRUE 685LIBTESTS_LIBDEPS 686YIELD_LIB 687abs_aux_dir 688LIB_SETLOCALE 689HAVE_STRUCT_SCHED_PARAM 690HAVE_SCHED_H 691NEXT_AS_FIRST_DIRECTIVE_SCHED_H 692NEXT_SCHED_H 693REPLACE_SCHED_YIELD 694HAVE_SCHED_YIELD 695GNULIB_SCHED_YIELD 696LIB_PTHREAD_SIGMASK 697LIB_PTHREAD 698HAVE_PTHREAD_H 699NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H 700NEXT_PTHREAD_H 701REPLACE_PTHREAD_SPIN_DESTROY 702REPLACE_PTHREAD_SPIN_UNLOCK 703REPLACE_PTHREAD_SPIN_TRYLOCK 704REPLACE_PTHREAD_SPIN_LOCK 705REPLACE_PTHREAD_SPIN_INIT 706REPLACE_PTHREAD_KEY_DELETE 707REPLACE_PTHREAD_GETSPECIFIC 708REPLACE_PTHREAD_SETSPECIFIC 709REPLACE_PTHREAD_KEY_CREATE 710REPLACE_PTHREAD_COND_DESTROY 711REPLACE_PTHREAD_COND_BROADCAST 712REPLACE_PTHREAD_COND_SIGNAL 713REPLACE_PTHREAD_COND_TIMEDWAIT 714REPLACE_PTHREAD_COND_WAIT 715REPLACE_PTHREAD_CONDATTR_DESTROY 716REPLACE_PTHREAD_CONDATTR_INIT 717REPLACE_PTHREAD_COND_INIT 718REPLACE_PTHREAD_RWLOCK_DESTROY 719REPLACE_PTHREAD_RWLOCK_UNLOCK 720REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK 721REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK 722REPLACE_PTHREAD_RWLOCK_TRYWRLOCK 723REPLACE_PTHREAD_RWLOCK_TRYRDLOCK 724REPLACE_PTHREAD_RWLOCK_WRLOCK 725REPLACE_PTHREAD_RWLOCK_RDLOCK 726REPLACE_PTHREAD_RWLOCKATTR_DESTROY 727REPLACE_PTHREAD_RWLOCKATTR_INIT 728REPLACE_PTHREAD_RWLOCK_INIT 729REPLACE_PTHREAD_MUTEX_DESTROY 730REPLACE_PTHREAD_MUTEX_UNLOCK 731REPLACE_PTHREAD_MUTEX_TIMEDLOCK 732REPLACE_PTHREAD_MUTEX_TRYLOCK 733REPLACE_PTHREAD_MUTEX_LOCK 734REPLACE_PTHREAD_MUTEXATTR_DESTROY 735REPLACE_PTHREAD_MUTEXATTR_SETROBUST 736REPLACE_PTHREAD_MUTEXATTR_GETROBUST 737REPLACE_PTHREAD_MUTEXATTR_SETTYPE 738REPLACE_PTHREAD_MUTEXATTR_GETTYPE 739REPLACE_PTHREAD_MUTEXATTR_INIT 740REPLACE_PTHREAD_MUTEX_INIT 741REPLACE_PTHREAD_ONCE 742REPLACE_PTHREAD_EXIT 743REPLACE_PTHREAD_JOIN 744REPLACE_PTHREAD_DETACH 745REPLACE_PTHREAD_EQUAL 746REPLACE_PTHREAD_SELF 747REPLACE_PTHREAD_ATTR_DESTROY 748REPLACE_PTHREAD_ATTR_SETDETACHSTATE 749REPLACE_PTHREAD_ATTR_GETDETACHSTATE 750REPLACE_PTHREAD_ATTR_INIT 751REPLACE_PTHREAD_CREATE 752HAVE_PTHREAD_SPIN_DESTROY 753HAVE_PTHREAD_SPIN_UNLOCK 754HAVE_PTHREAD_SPIN_TRYLOCK 755HAVE_PTHREAD_SPIN_LOCK 756HAVE_PTHREAD_SPIN_INIT 757HAVE_PTHREAD_KEY_DELETE 758HAVE_PTHREAD_GETSPECIFIC 759HAVE_PTHREAD_SETSPECIFIC 760HAVE_PTHREAD_KEY_CREATE 761HAVE_PTHREAD_COND_DESTROY 762HAVE_PTHREAD_COND_BROADCAST 763HAVE_PTHREAD_COND_SIGNAL 764HAVE_PTHREAD_COND_TIMEDWAIT 765HAVE_PTHREAD_COND_WAIT 766HAVE_PTHREAD_CONDATTR_DESTROY 767HAVE_PTHREAD_CONDATTR_INIT 768HAVE_PTHREAD_COND_INIT 769HAVE_PTHREAD_RWLOCK_DESTROY 770HAVE_PTHREAD_RWLOCK_UNLOCK 771HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 772HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK 773HAVE_PTHREAD_RWLOCK_TRYWRLOCK 774HAVE_PTHREAD_RWLOCK_TRYRDLOCK 775HAVE_PTHREAD_RWLOCK_WRLOCK 776HAVE_PTHREAD_RWLOCK_RDLOCK 777HAVE_PTHREAD_RWLOCKATTR_DESTROY 778HAVE_PTHREAD_RWLOCKATTR_INIT 779HAVE_PTHREAD_RWLOCK_INIT 780HAVE_PTHREAD_MUTEX_DESTROY 781HAVE_PTHREAD_MUTEX_UNLOCK 782HAVE_PTHREAD_MUTEX_TIMEDLOCK 783HAVE_PTHREAD_MUTEX_TRYLOCK 784HAVE_PTHREAD_MUTEX_LOCK 785HAVE_PTHREAD_MUTEXATTR_DESTROY 786HAVE_PTHREAD_MUTEXATTR_SETROBUST 787HAVE_PTHREAD_MUTEXATTR_GETROBUST 788HAVE_PTHREAD_MUTEXATTR_SETTYPE 789HAVE_PTHREAD_MUTEXATTR_GETTYPE 790HAVE_PTHREAD_MUTEXATTR_INIT 791HAVE_PTHREAD_MUTEX_INIT 792HAVE_PTHREAD_ONCE 793HAVE_PTHREAD_EXIT 794HAVE_PTHREAD_JOIN 795HAVE_PTHREAD_DETACH 796HAVE_PTHREAD_EQUAL 797HAVE_PTHREAD_SELF 798HAVE_PTHREAD_ATTR_DESTROY 799HAVE_PTHREAD_ATTR_SETDETACHSTATE 800HAVE_PTHREAD_ATTR_GETDETACHSTATE 801HAVE_PTHREAD_ATTR_INIT 802HAVE_PTHREAD_CREATE 803HAVE_PTHREAD_PROCESS_SHARED 804HAVE_PTHREAD_MUTEX_ROBUST 805HAVE_PTHREAD_MUTEX_RECURSIVE 806HAVE_PTHREAD_CREATE_DETACHED 807HAVE_PTHREAD_SPINLOCK_T 808HAVE_PTHREAD_T 809GNULIB_PTHREAD_MUTEX_TIMEDLOCK 810GNULIB_PTHREAD_SPIN 811GNULIB_PTHREAD_TSS 812GNULIB_PTHREAD_COND 813GNULIB_PTHREAD_RWLOCK 814GNULIB_PTHREAD_MUTEX 815GNULIB_PTHREAD_ONCE 816GNULIB_PTHREAD_THREAD 817LIB_NANOSLEEP 818LIB_SEMAPHORE 819LTLIBMULTITHREAD 820LIBMULTITHREAD 821LTLIBTHREAD 822LIBTHREAD 823LIBSTDTHREAD 824HAVE_LANGINFO_YESEXPR 825HAVE_LANGINFO_ERA 826HAVE_LANGINFO_ALTMON 827HAVE_LANGINFO_T_FMT_AMPM 828HAVE_LANGINFO_CODESET 829HAVE_LANGINFO_H 830NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H 831NEXT_LANGINFO_H 832REPLACE_NL_LANGINFO 833HAVE_NL_LANGINFO 834GNULIB_NL_LANGINFO 835INET_PTON_LIB 836NEXT_AS_FIRST_DIRECTIVE_CTYPE_H 837NEXT_CTYPE_H 838HAVE_ISBLANK 839GNULIB_ISBLANK 840LOCALE_TR_UTF8 841LOCALE_FR 842gltests_WITNESS 843REPLACE_TOWLOWER 844REPLACE_ISWCNTRL 845HAVE_WCTYPE_H 846NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H 847NEXT_WCTYPE_H 848HAVE_ISWCNTRL 849REPLACE_ISWXDIGIT 850REPLACE_ISWDIGIT 851REPLACE_ISWBLANK 852HAVE_WCTRANS_T 853HAVE_WCTYPE_T 854HAVE_ISWBLANK 855GNULIB_TOWCTRANS 856GNULIB_WCTRANS 857GNULIB_ISWCTYPE 858GNULIB_WCTYPE 859GNULIB_ISWXDIGIT 860GNULIB_ISWDIGIT 861GNULIB_ISWBLANK 862HAVE_CRTDEFS_H 863HAVE_WINT_T 864NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 865NEXT_WCHAR_H 866VALGRIND 867LIBUNISTRING_UNITYPES_H 868LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE 869LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE 870LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE 871LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE 872LIBUNISTRING_UNISTR_H 873HAVE_UNISTD_H 874NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 875NEXT_UNISTD_H 876UNISTD_H_DEFINES_STRUCT_TIMESPEC 877PTHREAD_H_DEFINES_STRUCT_TIMESPEC 878SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 879TIME_H_DEFINES_STRUCT_TIMESPEC 880NEXT_AS_FIRST_DIRECTIVE_TIME_H 881NEXT_TIME_H 882REPLACE_LOCALTIME 883REPLACE_GMTIME 884REPLACE_TZSET 885REPLACE_TIMEGM 886REPLACE_STRFTIME 887REPLACE_NANOSLEEP 888REPLACE_MKTIME 889REPLACE_LOCALTIME_R 890REPLACE_CTIME 891HAVE_TIMEZONE_T 892HAVE_TIMEGM 893HAVE_STRPTIME 894HAVE_NANOSLEEP 895HAVE_DECL_LOCALTIME_R 896GNULIB_MDA_TZSET 897GNULIB_TZSET 898GNULIB_TIME_RZ 899GNULIB_TIME_R 900GNULIB_TIMEGM 901GNULIB_STRPTIME 902GNULIB_STRFTIME 903GNULIB_NANOSLEEP 904GNULIB_LOCALTIME 905GNULIB_MKTIME 906GNULIB_CTIME 907HAVE_SYS_UIO_H 908NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H 909NEXT_SYS_UIO_H 910NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H 911NEXT_SYS_TIME_H 912REPLACE_STRUCT_TIMEVAL 913REPLACE_GETTIMEOFDAY 914HAVE_SYS_TIME_H 915HAVE_STRUCT_TIMEVAL 916HAVE_GETTIMEOFDAY 917GNULIB_GETTIMEOFDAY 918NEXT_AS_FIRST_DIRECTIVE_STRING_H 919NEXT_STRING_H 920NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 921NEXT_STDLIB_H 922NEXT_AS_FIRST_DIRECTIVE_STDIO_H 923NEXT_STDIO_H 924HAVE__BOOL 925GL_GENERATE_STDBOOL_H_FALSE 926GL_GENERATE_STDBOOL_H_TRUE 927STDBOOL_H 928GL_GENERATE_STDARG_H_FALSE 929GL_GENERATE_STDARG_H_TRUE 930STDARG_H 931NEXT_AS_FIRST_DIRECTIVE_STDARG_H 932NEXT_STDARG_H 933GL_GENERATE_STDALIGN_H_FALSE 934GL_GENERATE_STDALIGN_H_TRUE 935STDALIGN_H 936NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H 937NEXT_SIGNAL_H 938REPLACE_RAISE 939REPLACE_PTHREAD_SIGMASK 940HAVE_SIGHANDLER_T 941HAVE_TYPE_VOLATILE_SIG_ATOMIC_T 942HAVE_STRUCT_SIGACTION_SA_SIGACTION 943HAVE_SIGACTION 944HAVE_SIGINFO_T 945HAVE_SIGSET_T 946HAVE_RAISE 947HAVE_PTHREAD_SIGMASK 948HAVE_POSIX_SIGNALBLOCKING 949GNULIB_SIGACTION 950GNULIB_SIGPROCMASK 951GNULIB_SIGNAL_H_SIGPIPE 952GNULIB_RAISE 953GNULIB_PTHREAD_SIGMASK 954LIB_SELECT 955HAVE_SYS_SELECT_H 956NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H 957NEXT_SYS_SELECT_H 958REPLACE_SELECT 959REPLACE_PSELECT 960HAVE_PSELECT 961GNULIB_SELECT 962GNULIB_PSELECT 963LTLIBREADLINE 964LIBREADLINE 965LIB_POLL 966LIBSOCKET 967NEXT_AS_FIRST_DIRECTIVE_POLL_H 968NEXT_POLL_H 969HAVE_POLL_H 970REPLACE_POLL 971HAVE_POLL 972GNULIB_POLL 973PMCCABE 974GL_GENERATE_NETINET_IN_H_FALSE 975GL_GENERATE_NETINET_IN_H_TRUE 976NETINET_IN_H 977HAVE_NETINET_IN_H 978NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H 979NEXT_NETINET_IN_H 980UNDEFINE_STRTOK_R 981REPLACE_STRSIGNAL 982REPLACE_STRERRORNAME_NP 983REPLACE_STRERROR_R 984REPLACE_STRERROR 985REPLACE_STRTOK_R 986REPLACE_STRCASESTR 987REPLACE_STRSTR 988REPLACE_STRNLEN 989REPLACE_STRNDUP 990REPLACE_STRNCAT 991REPLACE_STRDUP 992REPLACE_STRCHRNUL 993REPLACE_STPNCPY 994REPLACE_MEMMEM 995REPLACE_MEMCHR 996HAVE_STRVERSCMP 997HAVE_DECL_STRSIGNAL 998HAVE_SIGDESCR_NP 999HAVE_SIGABBREV_NP 1000HAVE_STRERRORNAME_NP 1001HAVE_DECL_STRERROR_R 1002HAVE_DECL_STRTOK_R 1003HAVE_STRCASESTR 1004HAVE_STRSEP 1005HAVE_STRPBRK 1006HAVE_DECL_STRNLEN 1007HAVE_DECL_STRNDUP 1008HAVE_DECL_STRDUP 1009HAVE_STRCHRNUL 1010HAVE_STPNCPY 1011HAVE_STPCPY 1012HAVE_RAWMEMCHR 1013HAVE_DECL_MEMRCHR 1014HAVE_MEMPCPY 1015HAVE_DECL_MEMMEM 1016HAVE_FFSLL 1017HAVE_FFSL 1018HAVE_EXPLICIT_BZERO 1019GNULIB_MDA_STRDUP 1020GNULIB_MDA_MEMCCPY 1021HAVE_MBSLEN 1022GNULIB_STRVERSCMP 1023GNULIB_STRSIGNAL 1024GNULIB_SIGDESCR_NP 1025GNULIB_SIGABBREV_NP 1026GNULIB_STRERRORNAME_NP 1027GNULIB_STRERROR_R 1028GNULIB_STRERROR 1029GNULIB_MBSTOK_R 1030GNULIB_MBSSEP 1031GNULIB_MBSSPN 1032GNULIB_MBSPBRK 1033GNULIB_MBSCSPN 1034GNULIB_MBSCASESTR 1035GNULIB_MBSPCASECMP 1036GNULIB_MBSNCASECMP 1037GNULIB_MBSCASECMP 1038GNULIB_MBSSTR 1039GNULIB_MBSRCHR 1040GNULIB_MBSCHR 1041GNULIB_MBSNLEN 1042GNULIB_MBSLEN 1043GNULIB_STRTOK_R 1044GNULIB_STRCASESTR 1045GNULIB_STRSTR 1046GNULIB_STRSEP 1047GNULIB_STRPBRK 1048GNULIB_STRNLEN 1049GNULIB_STRNDUP 1050GNULIB_STRNCAT 1051GNULIB_STRDUP 1052GNULIB_STRCHRNUL 1053GNULIB_STPNCPY 1054GNULIB_STPCPY 1055GNULIB_RAWMEMCHR 1056GNULIB_MEMRCHR 1057GNULIB_MEMPCPY 1058GNULIB_MEMMEM 1059GNULIB_MEMCHR 1060GNULIB_FFSLL 1061GNULIB_FFSL 1062GNULIB_EXPLICIT_BZERO 1063HAVE_VISIBILITY 1064CFLAG_VISIBILITY 1065LIB_MBRTOWC 1066LOCALE_ZH_CN 1067LOCALE_FR_UTF8 1068LOCALE_JA 1069REPLACE_WCSTOK 1070REPLACE_WCSFTIME 1071REPLACE_WCSWIDTH 1072REPLACE_WCWIDTH 1073REPLACE_WCSNRTOMBS 1074REPLACE_WCSRTOMBS 1075REPLACE_WCRTOMB 1076REPLACE_MBSNRTOWCS 1077REPLACE_MBSRTOWCS 1078REPLACE_MBRLEN 1079REPLACE_MBRTOWC 1080REPLACE_MBSINIT 1081REPLACE_WCTOB 1082REPLACE_BTOWC 1083REPLACE_MBSTATE_T 1084HAVE_DECL_WCWIDTH 1085HAVE_DECL_WCSDUP 1086HAVE_DECL_WCTOB 1087HAVE_WCSFTIME 1088HAVE_WCSWIDTH 1089HAVE_WCSTOK 1090HAVE_WCSSTR 1091HAVE_WCSPBRK 1092HAVE_WCSSPN 1093HAVE_WCSCSPN 1094HAVE_WCSRCHR 1095HAVE_WCSCHR 1096HAVE_WCSDUP 1097HAVE_WCSXFRM 1098HAVE_WCSCOLL 1099HAVE_WCSNCASECMP 1100HAVE_WCSCASECMP 1101HAVE_WCSNCMP 1102HAVE_WCSCMP 1103HAVE_WCSNCAT 1104HAVE_WCSCAT 1105HAVE_WCPNCPY 1106HAVE_WCSNCPY 1107HAVE_WCPCPY 1108HAVE_WCSCPY 1109HAVE_WCSNLEN 1110HAVE_WCSLEN 1111HAVE_WMEMSET 1112HAVE_WMEMPCPY 1113HAVE_WMEMMOVE 1114HAVE_WMEMCPY 1115HAVE_WMEMCMP 1116HAVE_WMEMCHR 1117HAVE_WCSNRTOMBS 1118HAVE_WCSRTOMBS 1119HAVE_WCRTOMB 1120HAVE_MBSNRTOWCS 1121HAVE_MBSRTOWCS 1122HAVE_MBRLEN 1123HAVE_MBRTOWC 1124HAVE_MBSINIT 1125HAVE_BTOWC 1126GNULIB_MDA_WCSDUP 1127GNULIB_WCSFTIME 1128GNULIB_WCSWIDTH 1129GNULIB_WCSTOK 1130GNULIB_WCSSTR 1131GNULIB_WCSPBRK 1132GNULIB_WCSSPN 1133GNULIB_WCSCSPN 1134GNULIB_WCSRCHR 1135GNULIB_WCSCHR 1136GNULIB_WCSDUP 1137GNULIB_WCSXFRM 1138GNULIB_WCSCOLL 1139GNULIB_WCSNCASECMP 1140GNULIB_WCSCASECMP 1141GNULIB_WCSNCMP 1142GNULIB_WCSCMP 1143GNULIB_WCSNCAT 1144GNULIB_WCSCAT 1145GNULIB_WCPNCPY 1146GNULIB_WCSNCPY 1147GNULIB_WCPCPY 1148GNULIB_WCSCPY 1149GNULIB_WCSNLEN 1150GNULIB_WCSLEN 1151GNULIB_WMEMSET 1152GNULIB_WMEMPCPY 1153GNULIB_WMEMMOVE 1154GNULIB_WMEMCPY 1155GNULIB_WMEMCMP 1156GNULIB_WMEMCHR 1157GNULIB_WCWIDTH 1158GNULIB_WCSNRTOMBS 1159GNULIB_WCSRTOMBS 1160GNULIB_WCRTOMB 1161GNULIB_MBSNRTOWCS 1162GNULIB_MBSRTOWCS 1163GNULIB_MBRLEN 1164GNULIB_MBRTOWC 1165GNULIB_MBSINIT 1166GNULIB_WCTOB 1167GNULIB_BTOWC 1168REPLACE_WCTOMB 1169REPLACE_UNSETENV 1170REPLACE_STRTOLD 1171REPLACE_STRTOD 1172REPLACE_SETSTATE 1173REPLACE_SETENV 1174REPLACE_REALPATH 1175REPLACE_REALLOC 1176REPLACE_RANDOM_R 1177REPLACE_RANDOM 1178REPLACE_QSORT_R 1179REPLACE_PUTENV 1180REPLACE_PTSNAME_R 1181REPLACE_PTSNAME 1182REPLACE_POSIX_MEMALIGN 1183REPLACE_MKSTEMP 1184REPLACE_MBTOWC 1185REPLACE_MALLOC 1186REPLACE_INITSTATE 1187REPLACE_FREE 1188REPLACE_CANONICALIZE_FILE_NAME 1189REPLACE_CALLOC 1190REPLACE_ALIGNED_ALLOC 1191HAVE_DECL_UNSETENV 1192HAVE_UNLOCKPT 1193HAVE_SYS_LOADAVG_H 1194HAVE_STRUCT_RANDOM_DATA 1195HAVE_STRTOULL 1196HAVE_STRTOLL 1197HAVE_STRTOLD 1198HAVE_STRTOD 1199HAVE_DECL_SETSTATE 1200HAVE_SETSTATE 1201HAVE_DECL_SETENV 1202HAVE_SETENV 1203HAVE_SECURE_GETENV 1204HAVE_RPMATCH 1205HAVE_REALPATH 1206HAVE_REALLOCARRAY 1207HAVE_RANDOM_R 1208HAVE_RANDOM_H 1209HAVE_RANDOM 1210HAVE_QSORT_R 1211HAVE_PTSNAME_R 1212HAVE_PTSNAME 1213HAVE_POSIX_OPENPT 1214HAVE_POSIX_MEMALIGN 1215HAVE_MKSTEMPS 1216HAVE_MKSTEMP 1217HAVE_MKOSTEMPS 1218HAVE_MKOSTEMP 1219HAVE_MKDTEMP 1220HAVE_MBTOWC 1221HAVE_DECL_INITSTATE 1222HAVE_INITSTATE 1223HAVE_GRANTPT 1224HAVE_GETSUBOPT 1225HAVE_DECL_GETLOADAVG 1226HAVE_DECL_GCVT 1227HAVE_DECL_FCVT 1228HAVE_DECL_ECVT 1229HAVE_CANONICALIZE_FILE_NAME 1230HAVE_ATOLL 1231HAVE_ALIGNED_ALLOC 1232HAVE__EXIT 1233GNULIB_MDA_PUTENV 1234GNULIB_MDA_MKTEMP 1235GNULIB_MDA_GCVT 1236GNULIB_MDA_FCVT 1237GNULIB_MDA_ECVT 1238GNULIB_WCTOMB 1239GNULIB_UNSETENV 1240GNULIB_UNLOCKPT 1241GNULIB_SYSTEM_POSIX 1242GNULIB_STRTOULL 1243GNULIB_STRTOLL 1244GNULIB_STRTOLD 1245GNULIB_STRTOD 1246GNULIB_SETENV 1247GNULIB_SECURE_GETENV 1248GNULIB_RPMATCH 1249GNULIB_REALPATH 1250GNULIB_REALLOC_POSIX 1251GNULIB_REALLOCARRAY 1252GNULIB_RANDOM_R 1253GNULIB_RANDOM 1254GNULIB_QSORT_R 1255GNULIB_PUTENV 1256GNULIB_PTSNAME_R 1257GNULIB_PTSNAME 1258GNULIB_POSIX_OPENPT 1259GNULIB_POSIX_MEMALIGN 1260GNULIB_MKSTEMPS 1261GNULIB_MKSTEMP 1262GNULIB_MKOSTEMPS 1263GNULIB_MKOSTEMP 1264GNULIB_MKDTEMP 1265GNULIB_MBTOWC 1266GNULIB_MALLOC_POSIX 1267GNULIB_GRANTPT 1268GNULIB_GETSUBOPT 1269GNULIB_GETLOADAVG 1270GNULIB_FREE_POSIX 1271GNULIB_CANONICALIZE_FILE_NAME 1272GNULIB_CALLOC_POSIX 1273GNULIB_ATOLL 1274GNULIB_ALIGNED_ALLOC 1275GNULIB__EXIT 1276NEXT_AS_FIRST_DIRECTIVE_LOCALE_H 1277NEXT_LOCALE_H 1278HAVE_XLOCALE_H 1279NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 1280NEXT_STDDEF_H 1281GL_GENERATE_STDDEF_H_FALSE 1282GL_GENERATE_STDDEF_H_TRUE 1283STDDEF_H 1284HAVE_WCHAR_T 1285HAVE_MAX_ALIGN_T 1286REPLACE_NULL 1287REPLACE_STRUCT_LCONV 1288REPLACE_FREELOCALE 1289REPLACE_DUPLOCALE 1290REPLACE_NEWLOCALE 1291REPLACE_SETLOCALE 1292REPLACE_LOCALECONV 1293HAVE_FREELOCALE 1294HAVE_DUPLOCALE 1295HAVE_NEWLOCALE 1296GNULIB_LOCALENAME 1297GNULIB_DUPLOCALE 1298GNULIB_SETLOCALE_NULL 1299GNULIB_SETLOCALE 1300GNULIB_LOCALECONV 1301LOCALCHARSET_TESTS_ENVIRONMENT 1302NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H 1303NEXT_INTTYPES_H 1304UINT64_MAX_EQ_ULONG_MAX 1305UINT32_MAX_LT_UINTMAX_MAX 1306PRIPTR_PREFIX 1307INT64_MAX_EQ_LONG_MAX 1308INT32_MAX_LT_INTMAX_MAX 1309REPLACE_STRTOUMAX 1310REPLACE_STRTOIMAX 1311HAVE_IMAXDIV_T 1312HAVE_DECL_STRTOUMAX 1313HAVE_DECL_STRTOIMAX 1314HAVE_DECL_IMAXDIV 1315HAVE_DECL_IMAXABS 1316GNULIB_STRTOUMAX 1317GNULIB_STRTOIMAX 1318GNULIB_IMAXDIV 1319GNULIB_IMAXABS 1320GL_GENERATE_STDINT_H_FALSE 1321GL_GENERATE_STDINT_H_TRUE 1322STDINT_H 1323HAVE_SYS_INTTYPES_H 1324HAVE_SYS_BITYPES_H 1325HAVE_C99_STDINT_H 1326WINT_T_SUFFIX 1327WCHAR_T_SUFFIX 1328SIG_ATOMIC_T_SUFFIX 1329SIZE_T_SUFFIX 1330PTRDIFF_T_SUFFIX 1331HAVE_SIGNED_WINT_T 1332HAVE_SIGNED_WCHAR_T 1333HAVE_SIGNED_SIG_ATOMIC_T 1334BITSIZEOF_WINT_T 1335BITSIZEOF_WCHAR_T 1336BITSIZEOF_SIG_ATOMIC_T 1337BITSIZEOF_SIZE_T 1338BITSIZEOF_PTRDIFF_T 1339APPLE_UNIVERSAL_BUILD 1340HAVE_STDINT_H 1341NEXT_AS_FIRST_DIRECTIVE_STDINT_H 1342NEXT_STDINT_H 1343HAVE_SYS_TYPES_H 1344HAVE_INTTYPES_H 1345HAVE_WCHAR_H 1346GNULIB_OVERRIDES_WINT_T 1347GL_GENERATE_LIMITS_H_FALSE 1348GL_GENERATE_LIMITS_H_TRUE 1349LIMITS_H 1350NEXT_AS_FIRST_DIRECTIVE_LIMITS_H 1351NEXT_LIMITS_H 1352NEXT_AS_FIRST_DIRECTIVE_ICONV_H 1353NEXT_ICONV_H 1354GL_GENERATE_ICONV_H_FALSE 1355GL_GENERATE_ICONV_H_TRUE 1356ICONV_H 1357REPLACE_ICONV_UTF 1358REPLACE_ICONV_OPEN 1359REPLACE_ICONV 1360ICONV_CONST 1361GNULIB_ICONV 1362LIB_HARD_LOCALE 1363LIB_SETLOCALE_NULL 1364LIB_SCHED_YIELD 1365LIBPMULTITHREAD 1366LIBPTHREAD 1367GNULIB_GL_UNISTD_H_GETOPT 1368GETOPT_CDEFS_H 1369GETOPT_H 1370HAVE_SYS_CDEFS_H 1371HAVE_GETOPT_H 1372NEXT_AS_FIRST_DIRECTIVE_GETOPT_H 1373NEXT_GETOPT_H 1374GETADDRINFO_LIB 1375INET_NTOP_LIB 1376SERVENT_LIB 1377HOSTENT_LIB 1378HAVE_NETDB_H 1379NEXT_AS_FIRST_DIRECTIVE_NETDB_H 1380NEXT_NETDB_H 1381REPLACE_GETADDRINFO 1382REPLACE_GAI_STRERROR 1383HAVE_DECL_GETNAMEINFO 1384HAVE_DECL_GETADDRINFO 1385HAVE_DECL_GAI_STRERROR 1386HAVE_DECL_FREEADDRINFO 1387HAVE_STRUCT_ADDRINFO 1388GNULIB_GETADDRINFO 1389WINDOWS_64_BIT_ST_SIZE 1390WINDOWS_STAT_TIMESPEC 1391NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 1392NEXT_SYS_STAT_H 1393REPLACE_UTIMENSAT 1394REPLACE_STAT 1395REPLACE_MKNOD 1396REPLACE_MKFIFO 1397REPLACE_MKDIR 1398REPLACE_LSTAT 1399REPLACE_FUTIMENS 1400REPLACE_FSTATAT 1401REPLACE_FSTAT 1402REPLACE_FCHMODAT 1403HAVE_UTIMENSAT 1404HAVE_MKNODAT 1405HAVE_MKNOD 1406HAVE_MKFIFOAT 1407HAVE_MKFIFO 1408HAVE_MKDIRAT 1409HAVE_LSTAT 1410HAVE_LCHMOD 1411HAVE_GETUMASK 1412HAVE_FUTIMENS 1413HAVE_FSTATAT 1414HAVE_FCHMODAT 1415GNULIB_MDA_UMASK 1416GNULIB_MDA_MKDIR 1417GNULIB_MDA_CHMOD 1418GNULIB_OVERRIDES_STRUCT_STAT 1419GNULIB_UTIMENSAT 1420GNULIB_STAT 1421GNULIB_MKNODAT 1422GNULIB_MKNOD 1423GNULIB_MKFIFOAT 1424GNULIB_MKFIFO 1425GNULIB_MKDIRAT 1426GNULIB_MKDIR 1427GNULIB_LSTAT 1428GNULIB_LCHMOD 1429GNULIB_GETUMASK 1430GNULIB_FUTIMENS 1431GNULIB_FSTATAT 1432GNULIB_FSTAT 1433GNULIB_FCHMODAT 1434WINDOWS_STAT_INODES 1435WINDOWS_64_BIT_OFF_T 1436NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 1437NEXT_SYS_TYPES_H 1438REPLACE_VSPRINTF 1439REPLACE_VSNPRINTF 1440REPLACE_VPRINTF 1441REPLACE_VFPRINTF 1442REPLACE_VDPRINTF 1443REPLACE_VASPRINTF 1444REPLACE_TMPFILE 1445REPLACE_STDIO_WRITE_FUNCS 1446REPLACE_STDIO_READ_FUNCS 1447REPLACE_SPRINTF 1448REPLACE_SNPRINTF 1449REPLACE_RENAMEAT 1450REPLACE_RENAME 1451REPLACE_REMOVE 1452REPLACE_PRINTF 1453REPLACE_POPEN 1454REPLACE_PERROR 1455REPLACE_OBSTACK_PRINTF 1456REPLACE_GETLINE 1457REPLACE_GETDELIM 1458REPLACE_FTELLO 1459REPLACE_FTELL 1460REPLACE_FSEEKO 1461REPLACE_FSEEK 1462REPLACE_FREOPEN 1463REPLACE_FPURGE 1464REPLACE_FPRINTF 1465REPLACE_FOPEN 1466REPLACE_FFLUSH 1467REPLACE_FDOPEN 1468REPLACE_FCLOSE 1469REPLACE_DPRINTF 1470HAVE_VDPRINTF 1471HAVE_VASPRINTF 1472HAVE_RENAMEAT 1473HAVE_POPEN 1474HAVE_PCLOSE 1475HAVE_FTELLO 1476HAVE_FSEEKO 1477HAVE_DPRINTF 1478HAVE_DECL_VSNPRINTF 1479HAVE_DECL_SNPRINTF 1480HAVE_DECL_OBSTACK_PRINTF 1481HAVE_DECL_GETLINE 1482HAVE_DECL_GETDELIM 1483HAVE_DECL_FTELLO 1484HAVE_DECL_FSEEKO 1485HAVE_DECL_FPURGE 1486HAVE_DECL_FCLOSEALL 1487GNULIB_MDA_TEMPNAM 1488GNULIB_MDA_PUTW 1489GNULIB_MDA_GETW 1490GNULIB_MDA_FILENO 1491GNULIB_MDA_FDOPEN 1492GNULIB_MDA_FCLOSEALL 1493GNULIB_VSPRINTF_POSIX 1494GNULIB_VSNPRINTF 1495GNULIB_VPRINTF_POSIX 1496GNULIB_VPRINTF 1497GNULIB_VFPRINTF_POSIX 1498GNULIB_VFPRINTF 1499GNULIB_VDPRINTF 1500GNULIB_VSCANF 1501GNULIB_VFSCANF 1502GNULIB_VASPRINTF 1503GNULIB_TMPFILE 1504GNULIB_STDIO_H_SIGPIPE 1505GNULIB_STDIO_H_NONBLOCKING 1506GNULIB_SPRINTF_POSIX 1507GNULIB_SNPRINTF 1508GNULIB_SCANF 1509GNULIB_RENAMEAT 1510GNULIB_RENAME 1511GNULIB_REMOVE 1512GNULIB_PUTS 1513GNULIB_PUTCHAR 1514GNULIB_PUTC 1515GNULIB_PRINTF_POSIX 1516GNULIB_PRINTF 1517GNULIB_POPEN 1518GNULIB_PERROR 1519GNULIB_PCLOSE 1520GNULIB_OBSTACK_PRINTF_POSIX 1521GNULIB_OBSTACK_PRINTF 1522GNULIB_GETLINE 1523GNULIB_GETDELIM 1524GNULIB_GETCHAR 1525GNULIB_GETC 1526GNULIB_FWRITE 1527GNULIB_FTELLO 1528GNULIB_FTELL 1529GNULIB_FSEEKO 1530GNULIB_FSEEK 1531GNULIB_FSCANF 1532GNULIB_FREOPEN 1533GNULIB_FREAD 1534GNULIB_FPUTS 1535GNULIB_FPUTC 1536GNULIB_FPURGE 1537GNULIB_FPRINTF_POSIX 1538GNULIB_FPRINTF 1539GNULIB_FOPEN 1540GNULIB_FGETS 1541GNULIB_FGETC 1542GNULIB_FFLUSH 1543GNULIB_FDOPEN 1544GNULIB_FCLOSE 1545GNULIB_DPRINTF 1546REPLACE_ITOLD 1547GL_GENERATE_FLOAT_H_FALSE 1548GL_GENERATE_FLOAT_H_TRUE 1549FLOAT_H 1550NEXT_AS_FIRST_DIRECTIVE_FLOAT_H 1551NEXT_FLOAT_H 1552NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 1553NEXT_FCNTL_H 1554REPLACE_OPENAT 1555REPLACE_OPEN 1556REPLACE_FCNTL 1557REPLACE_CREAT 1558HAVE_OPENAT 1559HAVE_FCNTL 1560GNULIB_MDA_OPEN 1561GNULIB_MDA_CREAT 1562GNULIB_OPENAT 1563GNULIB_OPEN 1564GNULIB_NONBLOCKING 1565GNULIB_FCNTL 1566GNULIB_CREAT 1567EOVERFLOW_VALUE 1568EOVERFLOW_HIDDEN 1569ENOLINK_VALUE 1570ENOLINK_HIDDEN 1571EMULTIHOP_VALUE 1572EMULTIHOP_HIDDEN 1573GL_GENERATE_ERRNO_H_FALSE 1574GL_GENERATE_ERRNO_H_TRUE 1575ERRNO_H 1576NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1577NEXT_ERRNO_H 1578HAVE_SYS_SOCKET_H 1579NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H 1580NEXT_SYS_SOCKET_H 1581HAVE_ACCEPT4 1582HAVE_SA_FAMILY_T 1583HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1584HAVE_STRUCT_SOCKADDR_STORAGE 1585GNULIB_ACCEPT4 1586GNULIB_SHUTDOWN 1587GNULIB_SETSOCKOPT 1588GNULIB_SENDTO 1589GNULIB_RECVFROM 1590GNULIB_SEND 1591GNULIB_RECV 1592GNULIB_LISTEN 1593GNULIB_GETSOCKOPT 1594GNULIB_GETSOCKNAME 1595GNULIB_GETPEERNAME 1596GNULIB_BIND 1597GNULIB_ACCEPT 1598GNULIB_CONNECT 1599GNULIB_SOCKET 1600HAVE_WINSOCK2_H 1601HAVE_MSVC_INVALID_PARAMETER_HANDLER 1602UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1603UNISTD_H_HAVE_WINSOCK2_H 1604UNISTD_H_HAVE_SYS_RANDOM_H 1605REPLACE_WRITE 1606REPLACE_USLEEP 1607REPLACE_UNLINKAT 1608REPLACE_UNLINK 1609REPLACE_TTYNAME_R 1610REPLACE_TRUNCATE 1611REPLACE_SYMLINKAT 1612REPLACE_SYMLINK 1613REPLACE_SLEEP 1614REPLACE_RMDIR 1615REPLACE_READLINKAT 1616REPLACE_READLINK 1617REPLACE_READ 1618REPLACE_PWRITE 1619REPLACE_PREAD 1620REPLACE_LSEEK 1621REPLACE_LINKAT 1622REPLACE_LINK 1623REPLACE_LCHOWN 1624REPLACE_ISATTY 1625REPLACE_GETPASS 1626REPLACE_GETPAGESIZE 1627REPLACE_GETGROUPS 1628REPLACE_GETLOGIN_R 1629REPLACE_GETDTABLESIZE 1630REPLACE_GETDOMAINNAME 1631REPLACE_GETCWD 1632REPLACE_FTRUNCATE 1633REPLACE_FCHOWNAT 1634REPLACE_FACCESSAT 1635REPLACE_EXECVPE 1636REPLACE_EXECVP 1637REPLACE_EXECVE 1638REPLACE_EXECV 1639REPLACE_EXECLP 1640REPLACE_EXECLE 1641REPLACE_EXECL 1642REPLACE_DUP2 1643REPLACE_DUP 1644REPLACE_CLOSE 1645REPLACE_CHOWN 1646REPLACE_ACCESS 1647HAVE_SYS_PARAM_H 1648HAVE_OS_H 1649HAVE_DECL_TTYNAME_R 1650HAVE_DECL_TRUNCATE 1651HAVE_DECL_SETHOSTNAME 1652HAVE_DECL_GETUSERSHELL 1653HAVE_DECL_GETPAGESIZE 1654HAVE_DECL_GETLOGIN_R 1655HAVE_DECL_GETLOGIN 1656HAVE_DECL_GETDOMAINNAME 1657HAVE_DECL_FDATASYNC 1658HAVE_DECL_FCHDIR 1659HAVE_DECL_EXECVPE 1660HAVE_DECL_ENVIRON 1661HAVE_USLEEP 1662HAVE_UNLINKAT 1663HAVE_SYMLINKAT 1664HAVE_SYMLINK 1665HAVE_SLEEP 1666HAVE_SETHOSTNAME 1667HAVE_READLINKAT 1668HAVE_READLINK 1669HAVE_PWRITE 1670HAVE_PREAD 1671HAVE_PIPE2 1672HAVE_PIPE 1673HAVE_LINKAT 1674HAVE_LINK 1675HAVE_LCHOWN 1676HAVE_GROUP_MEMBER 1677HAVE_GETPASS 1678HAVE_GETPAGESIZE 1679HAVE_GETLOGIN 1680HAVE_GETHOSTNAME 1681HAVE_GETGROUPS 1682HAVE_GETENTROPY 1683HAVE_GETDTABLESIZE 1684HAVE_FTRUNCATE 1685HAVE_FSYNC 1686HAVE_FDATASYNC 1687HAVE_FCHOWNAT 1688HAVE_FCHDIR 1689HAVE_FACCESSAT 1690HAVE_EXECVPE 1691HAVE_EUIDACCESS 1692HAVE_DUP3 1693HAVE_COPY_FILE_RANGE 1694HAVE_CHOWN 1695GNULIB_MDA_WRITE 1696GNULIB_MDA_UNLINK 1697GNULIB_MDA_SWAB 1698GNULIB_MDA_RMDIR 1699GNULIB_MDA_READ 1700GNULIB_MDA_LSEEK 1701GNULIB_MDA_ISATTY 1702GNULIB_MDA_GETPID 1703GNULIB_MDA_GETCWD 1704GNULIB_MDA_EXECVPE 1705GNULIB_MDA_EXECVP 1706GNULIB_MDA_EXECVE 1707GNULIB_MDA_EXECV 1708GNULIB_MDA_EXECLP 1709GNULIB_MDA_EXECLE 1710GNULIB_MDA_EXECL 1711GNULIB_MDA_DUP2 1712GNULIB_MDA_DUP 1713GNULIB_MDA_CLOSE 1714GNULIB_MDA_CHDIR 1715GNULIB_MDA_ACCESS 1716GNULIB_WRITE 1717GNULIB_USLEEP 1718GNULIB_UNLINKAT 1719GNULIB_UNLINK 1720GNULIB_UNISTD_H_SIGPIPE 1721GNULIB_UNISTD_H_NONBLOCKING 1722GNULIB_TTYNAME_R 1723GNULIB_TRUNCATE 1724GNULIB_SYMLINKAT 1725GNULIB_SYMLINK 1726GNULIB_SLEEP 1727GNULIB_SETHOSTNAME 1728GNULIB_RMDIR 1729GNULIB_READLINKAT 1730GNULIB_READLINK 1731GNULIB_READ 1732GNULIB_PWRITE 1733GNULIB_PREAD 1734GNULIB_PIPE2 1735GNULIB_PIPE 1736GNULIB_LSEEK 1737GNULIB_LINKAT 1738GNULIB_LINK 1739GNULIB_LCHOWN 1740GNULIB_ISATTY 1741GNULIB_GROUP_MEMBER 1742GNULIB_GETUSERSHELL 1743GNULIB_GETPASS 1744GNULIB_GETPAGESIZE 1745GNULIB_GETOPT_POSIX 1746GNULIB_GETLOGIN_R 1747GNULIB_GETLOGIN 1748GNULIB_GETHOSTNAME 1749GNULIB_GETGROUPS 1750GNULIB_GETENTROPY 1751GNULIB_GETDTABLESIZE 1752GNULIB_GETDOMAINNAME 1753GNULIB_GETCWD 1754GNULIB_FTRUNCATE 1755GNULIB_FSYNC 1756GNULIB_FDATASYNC 1757GNULIB_FCHOWNAT 1758GNULIB_FCHDIR 1759GNULIB_FACCESSAT 1760GNULIB_EXECVPE 1761GNULIB_EXECVP 1762GNULIB_EXECVE 1763GNULIB_EXECV 1764GNULIB_EXECLP 1765GNULIB_EXECLE 1766GNULIB_EXECL 1767GNULIB_EUIDACCESS 1768GNULIB_ENVIRON 1769GNULIB_DUP3 1770GNULIB_DUP2 1771GNULIB_DUP 1772GNULIB_COPY_FILE_RANGE 1773GNULIB_CLOSE 1774GNULIB_CHOWN 1775GNULIB_CHDIR 1776GNULIB_ACCESS 1777HAVE_WS2TCPIP_H 1778HAVE_FEATURES_H 1779NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H 1780NEXT_ARPA_INET_H 1781PRAGMA_COLUMNS 1782PRAGMA_SYSTEM_HEADER 1783INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1784INCLUDE_NEXT 1785HAVE_ARPA_INET_H 1786REPLACE_INET_PTON 1787REPLACE_INET_NTOP 1788HAVE_DECL_INET_PTON 1789HAVE_DECL_INET_NTOP 1790GNULIB_INET_PTON 1791GNULIB_INET_NTOP 1792HAVE_ALLOCA_H 1793GL_GENERATE_ALLOCA_H_FALSE 1794GL_GENERATE_ALLOCA_H_TRUE 1795ALLOCA_H 1796ALLOCA 1797LTALLOCA 1798GL_COND_LIBTOOL_FALSE 1799GL_COND_LIBTOOL_TRUE 1800GTK_DOC_USE_REBASE_FALSE 1801GTK_DOC_USE_REBASE_TRUE 1802GTK_DOC_USE_LIBTOOL_FALSE 1803GTK_DOC_USE_LIBTOOL_TRUE 1804GTK_DOC_BUILD_PDF_FALSE 1805GTK_DOC_BUILD_PDF_TRUE 1806GTK_DOC_BUILD_HTML_FALSE 1807GTK_DOC_BUILD_HTML_TRUE 1808ENABLE_GTK_DOC_FALSE 1809ENABLE_GTK_DOC_TRUE 1810HAVE_GTK_DOC_FALSE 1811HAVE_GTK_DOC_TRUE 1812GTKDOC_DEPS_LIBS 1813GTKDOC_DEPS_CFLAGS 1814HTML_DIR 1815GTKDOC_MKPDF 1816GTKDOC_REBASE 1817GTKDOC_CHECK_PATH 1818GTKDOC_CHECK 1819PKG_CONFIG 1820LIBGNUTLS_PREFIX 1821LTLIBGNUTLS 1822LIBGNUTLS 1823HAVE_LIBGNUTLS 1824OBSOLETE_FALSE 1825OBSOLETE_TRUE 1826POSUB 1827LTLIBINTL 1828LIBINTL 1829INTLLIBS 1830LTLIBICONV 1831LIBICONV 1832INTL_MACOSX_LIBS 1833XGETTEXT_EXTRA_OPTIONS 1834MSGMERGE 1835XGETTEXT_015 1836XGETTEXT 1837GMSGFMT_015 1838MSGFMT_015 1839GMSGFMT 1840MSGFMT 1841GETTEXT_MACRO_VERSION 1842USE_NLS 1843EPSTOPDF 1844DIA 1845HELP2MAN 1846PERL 1847LT_SYS_LIBRARY_PATH 1848OTOOL64 1849OTOOL 1850LIPO 1851NMEDIT 1852DSYMUTIL 1853MANIFEST_TOOL 1854LN_S 1855NM 1856ac_ct_DUMPBIN 1857DUMPBIN 1858LD 1859FGREP 1860SED 1861LIBTOOL 1862OBJDUMP 1863DLLTOOL 1864AS 1865host_os 1866host_vendor 1867host_cpu 1868host 1869build_os 1870build_vendor 1871build_cpu 1872build 1873RANLIB 1874ARFLAGS 1875ac_ct_AR 1876AR 1877EGREP 1878GREP 1879CPP 1880am__fastdepCC_FALSE 1881am__fastdepCC_TRUE 1882CCDEPMODE 1883am__nodep 1884AMDEPBACKSLASH 1885AMDEP_FALSE 1886AMDEP_TRUE 1887am__include 1888DEPDIR 1889OBJEXT 1890EXEEXT 1891ac_ct_CC 1892CPPFLAGS 1893LDFLAGS 1894CFLAGS 1895CC 1896AM_BACKSLASH 1897AM_DEFAULT_VERBOSITY 1898AM_DEFAULT_V 1899AM_V 1900am__untar 1901am__tar 1902AMTAR 1903am__leading_dot 1904SET_MAKE 1905AWK 1906mkdir_p 1907MKDIR_P 1908INSTALL_STRIP_PROGRAM 1909STRIP 1910install_sh 1911MAKEINFO 1912AUTOHEADER 1913AUTOMAKE 1914AUTOCONF 1915ACLOCAL 1916VERSION 1917PACKAGE 1918CYGPATH_W 1919am__isrc 1920INSTALL_DATA 1921INSTALL_SCRIPT 1922INSTALL_PROGRAM 1923target_alias 1924host_alias 1925build_alias 1926LIBS 1927ECHO_T 1928ECHO_N 1929ECHO_C 1930DEFS 1931mandir 1932localedir 1933libdir 1934psdir 1935pdfdir 1936dvidir 1937htmldir 1938infodir 1939docdir 1940oldincludedir 1941includedir 1942runstatedir 1943localstatedir 1944sharedstatedir 1945sysconfdir 1946datadir 1947datarootdir 1948libexecdir 1949sbindir 1950bindir 1951program_transform_name 1952prefix 1953exec_prefix 1954PACKAGE_URL 1955PACKAGE_BUGREPORT 1956PACKAGE_STRING 1957PACKAGE_VERSION 1958PACKAGE_TARNAME 1959PACKAGE_NAME 1960PATH_SEPARATOR 1961SHELL 1962am__quote' 1963ac_subst_files='' 1964ac_user_opts=' 1965enable_option_checking 1966enable_silent_rules 1967enable_dependency_tracking 1968enable_largefile 1969enable_threads 1970enable_shared 1971enable_static 1972with_pic 1973enable_fast_install 1974with_aix_soname 1975with_gnu_ld 1976with_sysroot 1977enable_libtool_lock 1978enable_nls 1979enable_rpath 1980with_libiconv_prefix 1981with_libintl_prefix 1982enable_obsolete 1983with_gnutls 1984with_libgnutls_prefix 1985with_html_dir 1986enable_gtk_doc 1987enable_gtk_doc_html 1988enable_gtk_doc_pdf 1989enable_cross_guesses 1990with_libreadline_prefix 1991enable_valgrind_tests 1992with_packager 1993with_packager_version 1994with_packager_bug_reports 1995with_lasso 1996enable_gcc_warnings 1997' 1998 ac_precious_vars='build_alias 1999host_alias 2000target_alias 2001CC 2002CFLAGS 2003LDFLAGS 2004LIBS 2005CPPFLAGS 2006CPP 2007LT_SYS_LIBRARY_PATH 2008PKG_CONFIG 2009GTKDOC_DEPS_CFLAGS 2010GTKDOC_DEPS_LIBS 2011LASSO_CFLAGS 2012LASSO_LIBS' 2013ac_subdirs_all='lib' 2014 2015# Initialize some variables set by options. 2016ac_init_help= 2017ac_init_version=false 2018ac_unrecognized_opts= 2019ac_unrecognized_sep= 2020# The variables have the same names as the options, with 2021# dashes changed to underlines. 2022cache_file=/dev/null 2023exec_prefix=NONE 2024no_create= 2025no_recursion= 2026prefix=NONE 2027program_prefix=NONE 2028program_suffix=NONE 2029program_transform_name=s,x,x, 2030silent= 2031site= 2032srcdir= 2033verbose= 2034x_includes=NONE 2035x_libraries=NONE 2036 2037# Installation directory options. 2038# These are left unexpanded so users can "make install exec_prefix=/foo" 2039# and all the variables that are supposed to be based on exec_prefix 2040# by default will actually change. 2041# Use braces instead of parens because sh, perl, etc. also accept them. 2042# (The list follows the same order as the GNU Coding Standards.) 2043bindir='${exec_prefix}/bin' 2044sbindir='${exec_prefix}/sbin' 2045libexecdir='${exec_prefix}/libexec' 2046datarootdir='${prefix}/share' 2047datadir='${datarootdir}' 2048sysconfdir='${prefix}/etc' 2049sharedstatedir='${prefix}/com' 2050localstatedir='${prefix}/var' 2051runstatedir='${localstatedir}/run' 2052includedir='${prefix}/include' 2053oldincludedir='/usr/include' 2054docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 2055infodir='${datarootdir}/info' 2056htmldir='${docdir}' 2057dvidir='${docdir}' 2058pdfdir='${docdir}' 2059psdir='${docdir}' 2060libdir='${exec_prefix}/lib' 2061localedir='${datarootdir}/locale' 2062mandir='${datarootdir}/man' 2063 2064ac_prev= 2065ac_dashdash= 2066for ac_option 2067do 2068 # If the previous option needs an argument, assign it. 2069 if test -n "$ac_prev"; then 2070 eval $ac_prev=\$ac_option 2071 ac_prev= 2072 continue 2073 fi 2074 2075 case $ac_option in 2076 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 2077 *=) ac_optarg= ;; 2078 *) ac_optarg=yes ;; 2079 esac 2080 2081 case $ac_dashdash$ac_option in 2082 --) 2083 ac_dashdash=yes ;; 2084 2085 -bindir | --bindir | --bindi | --bind | --bin | --bi) 2086 ac_prev=bindir ;; 2087 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 2088 bindir=$ac_optarg ;; 2089 2090 -build | --build | --buil | --bui | --bu) 2091 ac_prev=build_alias ;; 2092 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 2093 build_alias=$ac_optarg ;; 2094 2095 -cache-file | --cache-file | --cache-fil | --cache-fi \ 2096 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 2097 ac_prev=cache_file ;; 2098 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 2099 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 2100 cache_file=$ac_optarg ;; 2101 2102 --config-cache | -C) 2103 cache_file=config.cache ;; 2104 2105 -datadir | --datadir | --datadi | --datad) 2106 ac_prev=datadir ;; 2107 -datadir=* | --datadir=* | --datadi=* | --datad=*) 2108 datadir=$ac_optarg ;; 2109 2110 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 2111 | --dataroo | --dataro | --datar) 2112 ac_prev=datarootdir ;; 2113 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 2114 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 2115 datarootdir=$ac_optarg ;; 2116 2117 -disable-* | --disable-*) 2118 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 2119 # Reject names that are not valid shell variable names. 2120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2121 as_fn_error $? "invalid feature name: \`$ac_useropt'" 2122 ac_useropt_orig=$ac_useropt 2123 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2124 case $ac_user_opts in 2125 *" 2126"enable_$ac_useropt" 2127"*) ;; 2128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 2129 ac_unrecognized_sep=', ';; 2130 esac 2131 eval enable_$ac_useropt=no ;; 2132 2133 -docdir | --docdir | --docdi | --doc | --do) 2134 ac_prev=docdir ;; 2135 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 2136 docdir=$ac_optarg ;; 2137 2138 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 2139 ac_prev=dvidir ;; 2140 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 2141 dvidir=$ac_optarg ;; 2142 2143 -enable-* | --enable-*) 2144 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 2145 # Reject names that are not valid shell variable names. 2146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2147 as_fn_error $? "invalid feature name: \`$ac_useropt'" 2148 ac_useropt_orig=$ac_useropt 2149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2150 case $ac_user_opts in 2151 *" 2152"enable_$ac_useropt" 2153"*) ;; 2154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 2155 ac_unrecognized_sep=', ';; 2156 esac 2157 eval enable_$ac_useropt=\$ac_optarg ;; 2158 2159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 2160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 2161 | --exec | --exe | --ex) 2162 ac_prev=exec_prefix ;; 2163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 2164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 2165 | --exec=* | --exe=* | --ex=*) 2166 exec_prefix=$ac_optarg ;; 2167 2168 -gas | --gas | --ga | --g) 2169 # Obsolete; use --with-gas. 2170 with_gas=yes ;; 2171 2172 -help | --help | --hel | --he | -h) 2173 ac_init_help=long ;; 2174 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 2175 ac_init_help=recursive ;; 2176 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 2177 ac_init_help=short ;; 2178 2179 -host | --host | --hos | --ho) 2180 ac_prev=host_alias ;; 2181 -host=* | --host=* | --hos=* | --ho=*) 2182 host_alias=$ac_optarg ;; 2183 2184 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 2185 ac_prev=htmldir ;; 2186 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 2187 | --ht=*) 2188 htmldir=$ac_optarg ;; 2189 2190 -includedir | --includedir | --includedi | --included | --include \ 2191 | --includ | --inclu | --incl | --inc) 2192 ac_prev=includedir ;; 2193 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 2194 | --includ=* | --inclu=* | --incl=* | --inc=*) 2195 includedir=$ac_optarg ;; 2196 2197 -infodir | --infodir | --infodi | --infod | --info | --inf) 2198 ac_prev=infodir ;; 2199 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 2200 infodir=$ac_optarg ;; 2201 2202 -libdir | --libdir | --libdi | --libd) 2203 ac_prev=libdir ;; 2204 -libdir=* | --libdir=* | --libdi=* | --libd=*) 2205 libdir=$ac_optarg ;; 2206 2207 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 2208 | --libexe | --libex | --libe) 2209 ac_prev=libexecdir ;; 2210 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 2211 | --libexe=* | --libex=* | --libe=*) 2212 libexecdir=$ac_optarg ;; 2213 2214 -localedir | --localedir | --localedi | --localed | --locale) 2215 ac_prev=localedir ;; 2216 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 2217 localedir=$ac_optarg ;; 2218 2219 -localstatedir | --localstatedir | --localstatedi | --localstated \ 2220 | --localstate | --localstat | --localsta | --localst | --locals) 2221 ac_prev=localstatedir ;; 2222 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 2223 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 2224 localstatedir=$ac_optarg ;; 2225 2226 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 2227 ac_prev=mandir ;; 2228 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 2229 mandir=$ac_optarg ;; 2230 2231 -nfp | --nfp | --nf) 2232 # Obsolete; use --without-fp. 2233 with_fp=no ;; 2234 2235 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 2236 | --no-cr | --no-c | -n) 2237 no_create=yes ;; 2238 2239 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 2240 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 2241 no_recursion=yes ;; 2242 2243 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 2244 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 2245 | --oldin | --oldi | --old | --ol | --o) 2246 ac_prev=oldincludedir ;; 2247 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 2248 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 2249 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 2250 oldincludedir=$ac_optarg ;; 2251 2252 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 2253 ac_prev=prefix ;; 2254 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 2255 prefix=$ac_optarg ;; 2256 2257 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 2258 | --program-pre | --program-pr | --program-p) 2259 ac_prev=program_prefix ;; 2260 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 2261 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 2262 program_prefix=$ac_optarg ;; 2263 2264 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 2265 | --program-suf | --program-su | --program-s) 2266 ac_prev=program_suffix ;; 2267 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 2268 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 2269 program_suffix=$ac_optarg ;; 2270 2271 -program-transform-name | --program-transform-name \ 2272 | --program-transform-nam | --program-transform-na \ 2273 | --program-transform-n | --program-transform- \ 2274 | --program-transform | --program-transfor \ 2275 | --program-transfo | --program-transf \ 2276 | --program-trans | --program-tran \ 2277 | --progr-tra | --program-tr | --program-t) 2278 ac_prev=program_transform_name ;; 2279 -program-transform-name=* | --program-transform-name=* \ 2280 | --program-transform-nam=* | --program-transform-na=* \ 2281 | --program-transform-n=* | --program-transform-=* \ 2282 | --program-transform=* | --program-transfor=* \ 2283 | --program-transfo=* | --program-transf=* \ 2284 | --program-trans=* | --program-tran=* \ 2285 | --progr-tra=* | --program-tr=* | --program-t=*) 2286 program_transform_name=$ac_optarg ;; 2287 2288 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 2289 ac_prev=pdfdir ;; 2290 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 2291 pdfdir=$ac_optarg ;; 2292 2293 -psdir | --psdir | --psdi | --psd | --ps) 2294 ac_prev=psdir ;; 2295 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 2296 psdir=$ac_optarg ;; 2297 2298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2299 | -silent | --silent | --silen | --sile | --sil) 2300 silent=yes ;; 2301 2302 -runstatedir | --runstatedir | --runstatedi | --runstated \ 2303 | --runstate | --runstat | --runsta | --runst | --runs \ 2304 | --run | --ru | --r) 2305 ac_prev=runstatedir ;; 2306 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 2307 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 2308 | --run=* | --ru=* | --r=*) 2309 runstatedir=$ac_optarg ;; 2310 2311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 2312 ac_prev=sbindir ;; 2313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 2314 | --sbi=* | --sb=*) 2315 sbindir=$ac_optarg ;; 2316 2317 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 2318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 2319 | --sharedst | --shareds | --shared | --share | --shar \ 2320 | --sha | --sh) 2321 ac_prev=sharedstatedir ;; 2322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 2323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 2324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 2325 | --sha=* | --sh=*) 2326 sharedstatedir=$ac_optarg ;; 2327 2328 -site | --site | --sit) 2329 ac_prev=site ;; 2330 -site=* | --site=* | --sit=*) 2331 site=$ac_optarg ;; 2332 2333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 2334 ac_prev=srcdir ;; 2335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 2336 srcdir=$ac_optarg ;; 2337 2338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 2339 | --syscon | --sysco | --sysc | --sys | --sy) 2340 ac_prev=sysconfdir ;; 2341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 2342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 2343 sysconfdir=$ac_optarg ;; 2344 2345 -target | --target | --targe | --targ | --tar | --ta | --t) 2346 ac_prev=target_alias ;; 2347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 2348 target_alias=$ac_optarg ;; 2349 2350 -v | -verbose | --verbose | --verbos | --verbo | --verb) 2351 verbose=yes ;; 2352 2353 -version | --version | --versio | --versi | --vers | -V) 2354 ac_init_version=: ;; 2355 2356 -with-* | --with-*) 2357 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 2358 # Reject names that are not valid shell variable names. 2359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2360 as_fn_error $? "invalid package name: \`$ac_useropt'" 2361 ac_useropt_orig=$ac_useropt 2362 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2363 case $ac_user_opts in 2364 *" 2365"with_$ac_useropt" 2366"*) ;; 2367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 2368 ac_unrecognized_sep=', ';; 2369 esac 2370 eval with_$ac_useropt=\$ac_optarg ;; 2371 2372 -without-* | --without-*) 2373 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 2374 # Reject names that are not valid shell variable names. 2375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2376 as_fn_error $? "invalid package name: \`$ac_useropt'" 2377 ac_useropt_orig=$ac_useropt 2378 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 2379 case $ac_user_opts in 2380 *" 2381"with_$ac_useropt" 2382"*) ;; 2383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 2384 ac_unrecognized_sep=', ';; 2385 esac 2386 eval with_$ac_useropt=no ;; 2387 2388 --x) 2389 # Obsolete; use --with-x. 2390 with_x=yes ;; 2391 2392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 2393 | --x-incl | --x-inc | --x-in | --x-i) 2394 ac_prev=x_includes ;; 2395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 2396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 2397 x_includes=$ac_optarg ;; 2398 2399 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 2400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 2401 ac_prev=x_libraries ;; 2402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 2403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 2404 x_libraries=$ac_optarg ;; 2405 2406 -*) as_fn_error $? "unrecognized option: \`$ac_option' 2407Try \`$0 --help' for more information" 2408 ;; 2409 2410 *=*) 2411 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 2412 # Reject names that are not valid shell variable names. 2413 case $ac_envvar in #( 2414 '' | [0-9]* | *[!_$as_cr_alnum]* ) 2415 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 2416 esac 2417 eval $ac_envvar=\$ac_optarg 2418 export $ac_envvar ;; 2419 2420 *) 2421 # FIXME: should be removed in autoconf 3.0. 2422 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 2423 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 2424 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 2425 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 2426 ;; 2427 2428 esac 2429done 2430 2431if test -n "$ac_prev"; then 2432 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 2433 as_fn_error $? "missing argument to $ac_option" 2434fi 2435 2436if test -n "$ac_unrecognized_opts"; then 2437 case $enable_option_checking in 2438 no) ;; 2439 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 2440 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 2441 esac 2442fi 2443 2444# Check all directory arguments for consistency. 2445for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 2446 datadir sysconfdir sharedstatedir localstatedir includedir \ 2447 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 2448 libdir localedir mandir runstatedir 2449do 2450 eval ac_val=\$$ac_var 2451 # Remove trailing slashes. 2452 case $ac_val in 2453 */ ) 2454 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 2455 eval $ac_var=\$ac_val;; 2456 esac 2457 # Be sure to have absolute directory names. 2458 case $ac_val in 2459 [\\/$]* | ?:[\\/]* ) continue;; 2460 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 2461 esac 2462 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 2463done 2464 2465# There might be people who depend on the old broken behavior: `$host' 2466# used to hold the argument of --host etc. 2467# FIXME: To remove some day. 2468build=$build_alias 2469host=$host_alias 2470target=$target_alias 2471 2472# FIXME: To remove some day. 2473if test "x$host_alias" != x; then 2474 if test "x$build_alias" = x; then 2475 cross_compiling=maybe 2476 elif test "x$build_alias" != "x$host_alias"; then 2477 cross_compiling=yes 2478 fi 2479fi 2480 2481ac_tool_prefix= 2482test -n "$host_alias" && ac_tool_prefix=$host_alias- 2483 2484test "$silent" = yes && exec 6>/dev/null 2485 2486 2487ac_pwd=`pwd` && test -n "$ac_pwd" && 2488ac_ls_di=`ls -di .` && 2489ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 2490 as_fn_error $? "working directory cannot be determined" 2491test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 2492 as_fn_error $? "pwd does not report name of working directory" 2493 2494 2495# Find the source files, if location was not specified. 2496if test -z "$srcdir"; then 2497 ac_srcdir_defaulted=yes 2498 # Try the directory containing this script, then the parent directory. 2499 ac_confdir=`$as_dirname -- "$as_myself" || 2500$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2501 X"$as_myself" : 'X\(//\)[^/]' \| \ 2502 X"$as_myself" : 'X\(//\)$' \| \ 2503 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 2504printf "%s\n" X"$as_myself" | 2505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2506 s//\1/ 2507 q 2508 } 2509 /^X\(\/\/\)[^/].*/{ 2510 s//\1/ 2511 q 2512 } 2513 /^X\(\/\/\)$/{ 2514 s//\1/ 2515 q 2516 } 2517 /^X\(\/\).*/{ 2518 s//\1/ 2519 q 2520 } 2521 s/.*/./; q'` 2522 srcdir=$ac_confdir 2523 if test ! -r "$srcdir/$ac_unique_file"; then 2524 srcdir=.. 2525 fi 2526else 2527 ac_srcdir_defaulted=no 2528fi 2529if test ! -r "$srcdir/$ac_unique_file"; then 2530 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2531 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2532fi 2533ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2534ac_abs_confdir=`( 2535 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2536 pwd)` 2537# When building in place, set srcdir=. 2538if test "$ac_abs_confdir" = "$ac_pwd"; then 2539 srcdir=. 2540fi 2541# Remove unnecessary trailing slashes from srcdir. 2542# Double slashes in file names in object file debugging info 2543# mess up M-x gdb in Emacs. 2544case $srcdir in 2545*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2546esac 2547for ac_var in $ac_precious_vars; do 2548 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2549 eval ac_env_${ac_var}_value=\$${ac_var} 2550 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2551 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2552done 2553 2554# 2555# Report the --help message. 2556# 2557if test "$ac_init_help" = "long"; then 2558 # Omit some internal or obsolete options to make the list less imposing. 2559 # This message is too long to be a string in the A/UX 3.1 sh. 2560 cat <<_ACEOF 2561\`configure' configures GNU SASL 1.10.0 to adapt to many kinds of systems. 2562 2563Usage: $0 [OPTION]... [VAR=VALUE]... 2564 2565To assign environment variables (e.g., CC, CFLAGS...), specify them as 2566VAR=VALUE. See below for descriptions of some of the useful variables. 2567 2568Defaults for the options are specified in brackets. 2569 2570Configuration: 2571 -h, --help display this help and exit 2572 --help=short display options specific to this package 2573 --help=recursive display the short help of all the included packages 2574 -V, --version display version information and exit 2575 -q, --quiet, --silent do not print \`checking ...' messages 2576 --cache-file=FILE cache test results in FILE [disabled] 2577 -C, --config-cache alias for \`--cache-file=config.cache' 2578 -n, --no-create do not create output files 2579 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2580 2581Installation directories: 2582 --prefix=PREFIX install architecture-independent files in PREFIX 2583 [$ac_default_prefix] 2584 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2585 [PREFIX] 2586 2587By default, \`make install' will install all the files in 2588\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2589an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2590for instance \`--prefix=\$HOME'. 2591 2592For better control, use the options below. 2593 2594Fine tuning of the installation directories: 2595 --bindir=DIR user executables [EPREFIX/bin] 2596 --sbindir=DIR system admin executables [EPREFIX/sbin] 2597 --libexecdir=DIR program executables [EPREFIX/libexec] 2598 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2599 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2600 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2601 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2602 --libdir=DIR object code libraries [EPREFIX/lib] 2603 --includedir=DIR C header files [PREFIX/include] 2604 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2607 --infodir=DIR info documentation [DATAROOTDIR/info] 2608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2609 --mandir=DIR man documentation [DATAROOTDIR/man] 2610 --docdir=DIR documentation root [DATAROOTDIR/doc/gsasl] 2611 --htmldir=DIR html documentation [DOCDIR] 2612 --dvidir=DIR dvi documentation [DOCDIR] 2613 --pdfdir=DIR pdf documentation [DOCDIR] 2614 --psdir=DIR ps documentation [DOCDIR] 2615_ACEOF 2616 2617 cat <<\_ACEOF 2618 2619Program names: 2620 --program-prefix=PREFIX prepend PREFIX to installed program names 2621 --program-suffix=SUFFIX append SUFFIX to installed program names 2622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2623 2624System types: 2625 --build=BUILD configure for building on BUILD [guessed] 2626 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2627_ACEOF 2628fi 2629 2630if test -n "$ac_init_help"; then 2631 case $ac_init_help in 2632 short | recursive ) echo "Configuration of GNU SASL 1.10.0:";; 2633 esac 2634 cat <<\_ACEOF 2635 2636Optional Features: 2637 --disable-option-checking ignore unrecognized --enable/--with options 2638 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2639 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2640 --enable-silent-rules less verbose build output (undo: "make V=1") 2641 --disable-silent-rules verbose build output (undo: "make V=0") 2642 --enable-dependency-tracking 2643 do not reject slow dependency extractors 2644 --disable-dependency-tracking 2645 speeds up one-time build 2646 --disable-largefile omit support for large files 2647 --enable-threads={isoc|posix|isoc+posix|windows} 2648 specify multithreading API 2649 --disable-threads build without multithread safety 2650 --enable-shared[=PKGS] build shared libraries [default=yes] 2651 --enable-static[=PKGS] build static libraries [default=yes] 2652 --enable-fast-install[=PKGS] 2653 optimize for fast installation [default=yes] 2654 --disable-libtool-lock avoid locking (might break parallel builds) 2655 --disable-nls do not use Native Language Support 2656 --disable-rpath do not hardcode runtime library paths 2657 --disable-obsolete disable backwards compatibility code 2658 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 2659 --enable-gtk-doc-html build documentation in html format [[default=yes]] 2660 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 2661 --enable-cross-guesses={conservative|risky} 2662 specify policy for cross-compilation guesses 2663 --disable-valgrind-tests 2664 don't try to run self tests under valgrind 2665 --enable-gcc-warnings turn on lots of GCC warnings (for developers) 2666 2667Optional Packages: 2668 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2669 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2670 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2671 both] 2672 --with-aix-soname=aix|svr4|both 2673 shared library versioning (aka "SONAME") variant to 2674 provide on AIX, [default=aix]. 2675 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2676 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2677 compiler's sysroot if not specified). 2678 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2679 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 2680 --without-libiconv-prefix don't search for libiconv in includedir and libdir 2681 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 2682 --without-libintl-prefix don't search for libintl in includedir and libdir 2683 --without-gnutls disable GnuTLS support 2684 --with-libgnutls-prefix[=DIR] search for libgnutls in DIR/include and DIR/lib 2685 --without-libgnutls-prefix don't search for libgnutls in includedir and libdir 2686 --with-html-dir=PATH path to installed docs 2687 --with-libreadline-prefix[=DIR] search for libreadline in DIR/include and DIR/lib 2688 --without-libreadline-prefix don't search for libreadline in includedir and libdir 2689 --with-packager String identifying the packager of this software 2690 --with-packager-version Packager-specific version information 2691 --with-packager-bug-reports 2692 Packager info for bug reports (URL/e-mail/...) 2693 --without-lasso disable Lasso (used by examples/saml20/) 2694 2695Some influential environment variables: 2696 CC C compiler command 2697 CFLAGS C compiler flags 2698 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2699 nonstandard directory <lib dir> 2700 LIBS libraries to pass to the linker, e.g. -l<library> 2701 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2702 you have headers in a nonstandard directory <include dir> 2703 CPP C preprocessor 2704 LT_SYS_LIBRARY_PATH 2705 User-defined run-time library search path. 2706 PKG_CONFIG path to pkg-config utility 2707 GTKDOC_DEPS_CFLAGS 2708 C compiler flags for GTKDOC_DEPS, overriding pkg-config 2709 GTKDOC_DEPS_LIBS 2710 linker flags for GTKDOC_DEPS, overriding pkg-config 2711 LASSO_CFLAGS 2712 C compiler flags for LASSO, overriding pkg-config 2713 LASSO_LIBS linker flags for LASSO, overriding pkg-config 2714 2715Use these variables to override the choices made by `configure' or to help 2716it to find libraries and programs with nonstandard names/locations. 2717 2718Report bugs to <bug-gsasl@gnu.org>. 2719GNU SASL home page: <https://www.gnu.org/software/gsasl/>. 2720General help using GNU software: <https://www.gnu.org/gethelp/>. 2721_ACEOF 2722ac_status=$? 2723fi 2724 2725if test "$ac_init_help" = "recursive"; then 2726 # If there are subdirs, report their specific --help. 2727 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2728 test -d "$ac_dir" || 2729 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2730 continue 2731 ac_builddir=. 2732 2733case "$ac_dir" in 2734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2735*) 2736 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2737 # A ".." for each directory in $ac_dir_suffix. 2738 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2739 case $ac_top_builddir_sub in 2740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2742 esac ;; 2743esac 2744ac_abs_top_builddir=$ac_pwd 2745ac_abs_builddir=$ac_pwd$ac_dir_suffix 2746# for backward compatibility: 2747ac_top_builddir=$ac_top_build_prefix 2748 2749case $srcdir in 2750 .) # We are building in place. 2751 ac_srcdir=. 2752 ac_top_srcdir=$ac_top_builddir_sub 2753 ac_abs_top_srcdir=$ac_pwd ;; 2754 [\\/]* | ?:[\\/]* ) # Absolute name. 2755 ac_srcdir=$srcdir$ac_dir_suffix; 2756 ac_top_srcdir=$srcdir 2757 ac_abs_top_srcdir=$srcdir ;; 2758 *) # Relative name. 2759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2760 ac_top_srcdir=$ac_top_build_prefix$srcdir 2761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2762esac 2763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2764 2765 cd "$ac_dir" || { ac_status=$?; continue; } 2766 # Check for configure.gnu first; this name is used for a wrapper for 2767 # Metaconfig's "Configure" on case-insensitive file systems. 2768 if test -f "$ac_srcdir/configure.gnu"; then 2769 echo && 2770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2771 elif test -f "$ac_srcdir/configure"; then 2772 echo && 2773 $SHELL "$ac_srcdir/configure" --help=recursive 2774 else 2775 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2776 fi || ac_status=$? 2777 cd "$ac_pwd" || { ac_status=$?; break; } 2778 done 2779fi 2780 2781test -n "$ac_init_help" && exit $ac_status 2782if $ac_init_version; then 2783 cat <<\_ACEOF 2784GNU SASL configure 1.10.0 2785generated by GNU Autoconf 2.70 2786 2787Copyright (C) 2020 Free Software Foundation, Inc. 2788This configure script is free software; the Free Software Foundation 2789gives unlimited permission to copy, distribute and modify it. 2790_ACEOF 2791 exit 2792fi 2793 2794## ------------------------ ## 2795## Autoconf initialization. ## 2796## ------------------------ ## 2797 2798# ac_fn_c_try_compile LINENO 2799# -------------------------- 2800# Try to compile conftest.$ac_ext, and return whether this succeeded. 2801ac_fn_c_try_compile () 2802{ 2803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2804 rm -f conftest.$ac_objext conftest.beam 2805 if { { ac_try="$ac_compile" 2806case "(($ac_try" in 2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2808 *) ac_try_echo=$ac_try;; 2809esac 2810eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2811printf "%s\n" "$ac_try_echo"; } >&5 2812 (eval "$ac_compile") 2>conftest.err 2813 ac_status=$? 2814 if test -s conftest.err; then 2815 grep -v '^ *+' conftest.err >conftest.er1 2816 cat conftest.er1 >&5 2817 mv -f conftest.er1 conftest.err 2818 fi 2819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2820 test $ac_status = 0; } && { 2821 test -z "$ac_c_werror_flag" || 2822 test ! -s conftest.err 2823 } && test -s conftest.$ac_objext 2824then : 2825 ac_retval=0 2826else $as_nop 2827 printf "%s\n" "$as_me: failed program was:" >&5 2828sed 's/^/| /' conftest.$ac_ext >&5 2829 2830 ac_retval=1 2831fi 2832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2833 as_fn_set_status $ac_retval 2834 2835} # ac_fn_c_try_compile 2836 2837# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2838# ------------------------------------------------------- 2839# Tests whether HEADER exists and can be compiled using the include files in 2840# INCLUDES, setting the cache variable VAR accordingly. 2841ac_fn_c_check_header_compile () 2842{ 2843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2845printf %s "checking for $2... " >&6; } 2846if eval test \${$3+y} 2847then : 2848 printf %s "(cached) " >&6 2849else $as_nop 2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2851/* end confdefs.h. */ 2852$4 2853#include <$2> 2854_ACEOF 2855if ac_fn_c_try_compile "$LINENO" 2856then : 2857 eval "$3=yes" 2858else $as_nop 2859 eval "$3=no" 2860fi 2861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2862fi 2863eval ac_res=\$$3 2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2865printf "%s\n" "$ac_res" >&6; } 2866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2867 2868} # ac_fn_c_check_header_compile 2869 2870# ac_fn_c_try_cpp LINENO 2871# ---------------------- 2872# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2873ac_fn_c_try_cpp () 2874{ 2875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2876 if { { ac_try="$ac_cpp conftest.$ac_ext" 2877case "(($ac_try" in 2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2879 *) ac_try_echo=$ac_try;; 2880esac 2881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2882printf "%s\n" "$ac_try_echo"; } >&5 2883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2884 ac_status=$? 2885 if test -s conftest.err; then 2886 grep -v '^ *+' conftest.err >conftest.er1 2887 cat conftest.er1 >&5 2888 mv -f conftest.er1 conftest.err 2889 fi 2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2891 test $ac_status = 0; } > conftest.i && { 2892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2893 test ! -s conftest.err 2894 } 2895then : 2896 ac_retval=0 2897else $as_nop 2898 printf "%s\n" "$as_me: failed program was:" >&5 2899sed 's/^/| /' conftest.$ac_ext >&5 2900 2901 ac_retval=1 2902fi 2903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2904 as_fn_set_status $ac_retval 2905 2906} # ac_fn_c_try_cpp 2907 2908# ac_fn_c_try_link LINENO 2909# ----------------------- 2910# Try to link conftest.$ac_ext, and return whether this succeeded. 2911ac_fn_c_try_link () 2912{ 2913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2914 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2915 if { { ac_try="$ac_link" 2916case "(($ac_try" in 2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2918 *) ac_try_echo=$ac_try;; 2919esac 2920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2921printf "%s\n" "$ac_try_echo"; } >&5 2922 (eval "$ac_link") 2>conftest.err 2923 ac_status=$? 2924 if test -s conftest.err; then 2925 grep -v '^ *+' conftest.err >conftest.er1 2926 cat conftest.er1 >&5 2927 mv -f conftest.er1 conftest.err 2928 fi 2929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2930 test $ac_status = 0; } && { 2931 test -z "$ac_c_werror_flag" || 2932 test ! -s conftest.err 2933 } && test -s conftest$ac_exeext && { 2934 test "$cross_compiling" = yes || 2935 test -x conftest$ac_exeext 2936 } 2937then : 2938 ac_retval=0 2939else $as_nop 2940 printf "%s\n" "$as_me: failed program was:" >&5 2941sed 's/^/| /' conftest.$ac_ext >&5 2942 2943 ac_retval=1 2944fi 2945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2947 # interfere with the next link command; also delete a directory that is 2948 # left behind by Apple's compiler. We do this before executing the actions. 2949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2951 as_fn_set_status $ac_retval 2952 2953} # ac_fn_c_try_link 2954 2955# ac_fn_c_check_func LINENO FUNC VAR 2956# ---------------------------------- 2957# Tests whether FUNC exists, setting the cache variable VAR accordingly 2958ac_fn_c_check_func () 2959{ 2960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2962printf %s "checking for $2... " >&6; } 2963if eval test \${$3+y} 2964then : 2965 printf %s "(cached) " >&6 2966else $as_nop 2967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2968/* end confdefs.h. */ 2969/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2970 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2971#define $2 innocuous_$2 2972 2973/* System header to define __stub macros and hopefully few prototypes, 2974 which can conflict with char $2 (); below. */ 2975 2976#include <limits.h> 2977#undef $2 2978 2979/* Override any GCC internal prototype to avoid an error. 2980 Use char because int might match the return type of a GCC 2981 builtin and then its argument prototype would still apply. */ 2982#ifdef __cplusplus 2983extern "C" 2984#endif 2985char $2 (); 2986/* The GNU C library defines this for functions which it implements 2987 to always fail with ENOSYS. Some functions are actually named 2988 something starting with __ and the normal name is an alias. */ 2989#if defined __stub_$2 || defined __stub___$2 2990choke me 2991#endif 2992 2993int 2994main (void) 2995{ 2996return $2 (); 2997 ; 2998 return 0; 2999} 3000_ACEOF 3001if ac_fn_c_try_link "$LINENO" 3002then : 3003 eval "$3=yes" 3004else $as_nop 3005 eval "$3=no" 3006fi 3007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 3008 conftest$ac_exeext conftest.$ac_ext 3009fi 3010eval ac_res=\$$3 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3012printf "%s\n" "$ac_res" >&6; } 3013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3014 3015} # ac_fn_c_check_func 3016 3017# ac_fn_c_try_run LINENO 3018# ---------------------- 3019# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 3020# executables *can* be run. 3021ac_fn_c_try_run () 3022{ 3023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3024 if { { ac_try="$ac_link" 3025case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3030printf "%s\n" "$ac_try_echo"; } >&5 3031 (eval "$ac_link") 2>&5 3032 ac_status=$? 3033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3034 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 3035 { { case "(($ac_try" in 3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3037 *) ac_try_echo=$ac_try;; 3038esac 3039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3040printf "%s\n" "$ac_try_echo"; } >&5 3041 (eval "$ac_try") 2>&5 3042 ac_status=$? 3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3044 test $ac_status = 0; }; } 3045then : 3046 ac_retval=0 3047else $as_nop 3048 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 3049 printf "%s\n" "$as_me: failed program was:" >&5 3050sed 's/^/| /' conftest.$ac_ext >&5 3051 3052 ac_retval=$ac_status 3053fi 3054 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 3055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3056 as_fn_set_status $ac_retval 3057 3058} # ac_fn_c_try_run 3059 3060# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3061# ------------------------------------------- 3062# Tests whether TYPE exists after having included INCLUDES, setting cache 3063# variable VAR accordingly. 3064ac_fn_c_check_type () 3065{ 3066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3068printf %s "checking for $2... " >&6; } 3069if eval test \${$3+y} 3070then : 3071 printf %s "(cached) " >&6 3072else $as_nop 3073 eval "$3=no" 3074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3075/* end confdefs.h. */ 3076$4 3077int 3078main (void) 3079{ 3080if (sizeof ($2)) 3081 return 0; 3082 ; 3083 return 0; 3084} 3085_ACEOF 3086if ac_fn_c_try_compile "$LINENO" 3087then : 3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3089/* end confdefs.h. */ 3090$4 3091int 3092main (void) 3093{ 3094if (sizeof (($2))) 3095 return 0; 3096 ; 3097 return 0; 3098} 3099_ACEOF 3100if ac_fn_c_try_compile "$LINENO" 3101then : 3102 3103else $as_nop 3104 eval "$3=yes" 3105fi 3106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3107fi 3108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3109fi 3110eval ac_res=\$$3 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3112printf "%s\n" "$ac_res" >&6; } 3113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3114 3115} # ac_fn_c_check_type 3116 3117# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3118# ---------------------------------------------------- 3119# Tries to find if the field MEMBER exists in type AGGR, after including 3120# INCLUDES, setting cache variable VAR accordingly. 3121ac_fn_c_check_member () 3122{ 3123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3125printf %s "checking for $2.$3... " >&6; } 3126if eval test \${$4+y} 3127then : 3128 printf %s "(cached) " >&6 3129else $as_nop 3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3131/* end confdefs.h. */ 3132$5 3133int 3134main (void) 3135{ 3136static $2 ac_aggr; 3137if (ac_aggr.$3) 3138return 0; 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143if ac_fn_c_try_compile "$LINENO" 3144then : 3145 eval "$4=yes" 3146else $as_nop 3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3148/* end confdefs.h. */ 3149$5 3150int 3151main (void) 3152{ 3153static $2 ac_aggr; 3154if (sizeof ac_aggr.$3) 3155return 0; 3156 ; 3157 return 0; 3158} 3159_ACEOF 3160if ac_fn_c_try_compile "$LINENO" 3161then : 3162 eval "$4=yes" 3163else $as_nop 3164 eval "$4=no" 3165fi 3166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3167fi 3168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3169fi 3170eval ac_res=\$$4 3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3172printf "%s\n" "$ac_res" >&6; } 3173 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3174 3175} # ac_fn_c_check_member 3176 3177# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 3178# -------------------------------------------- 3179# Tries to find the compile-time value of EXPR in a program that includes 3180# INCLUDES, setting VAR accordingly. Returns whether the value could be 3181# computed 3182ac_fn_c_compute_int () 3183{ 3184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3185 if test "$cross_compiling" = yes; then 3186 # Depending upon the size, compute the lo and hi bounds. 3187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3188/* end confdefs.h. */ 3189$4 3190int 3191main (void) 3192{ 3193static int test_array [1 - 2 * !(($2) >= 0)]; 3194test_array [0] = 0; 3195return test_array [0]; 3196 3197 ; 3198 return 0; 3199} 3200_ACEOF 3201if ac_fn_c_try_compile "$LINENO" 3202then : 3203 ac_lo=0 ac_mid=0 3204 while :; do 3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3206/* end confdefs.h. */ 3207$4 3208int 3209main (void) 3210{ 3211static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3212test_array [0] = 0; 3213return test_array [0]; 3214 3215 ; 3216 return 0; 3217} 3218_ACEOF 3219if ac_fn_c_try_compile "$LINENO" 3220then : 3221 ac_hi=$ac_mid; break 3222else $as_nop 3223 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 3224 if test $ac_lo -le $ac_mid; then 3225 ac_lo= ac_hi= 3226 break 3227 fi 3228 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 3229fi 3230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3231 done 3232else $as_nop 3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3234/* end confdefs.h. */ 3235$4 3236int 3237main (void) 3238{ 3239static int test_array [1 - 2 * !(($2) < 0)]; 3240test_array [0] = 0; 3241return test_array [0]; 3242 3243 ; 3244 return 0; 3245} 3246_ACEOF 3247if ac_fn_c_try_compile "$LINENO" 3248then : 3249 ac_hi=-1 ac_mid=-1 3250 while :; do 3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3252/* end confdefs.h. */ 3253$4 3254int 3255main (void) 3256{ 3257static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 3258test_array [0] = 0; 3259return test_array [0]; 3260 3261 ; 3262 return 0; 3263} 3264_ACEOF 3265if ac_fn_c_try_compile "$LINENO" 3266then : 3267 ac_lo=$ac_mid; break 3268else $as_nop 3269 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 3270 if test $ac_mid -le $ac_hi; then 3271 ac_lo= ac_hi= 3272 break 3273 fi 3274 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 3275fi 3276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3277 done 3278else $as_nop 3279 ac_lo= ac_hi= 3280fi 3281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3282fi 3283rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3284# Binary search between lo and hi bounds. 3285while test "x$ac_lo" != "x$ac_hi"; do 3286 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3288/* end confdefs.h. */ 3289$4 3290int 3291main (void) 3292{ 3293static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3294test_array [0] = 0; 3295return test_array [0]; 3296 3297 ; 3298 return 0; 3299} 3300_ACEOF 3301if ac_fn_c_try_compile "$LINENO" 3302then : 3303 ac_hi=$ac_mid 3304else $as_nop 3305 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3306fi 3307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3308done 3309case $ac_lo in #(( 3310?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3311'') ac_retval=1 ;; 3312esac 3313 else 3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3315/* end confdefs.h. */ 3316$4 3317static long int longval (void) { return $2; } 3318static unsigned long int ulongval (void) { return $2; } 3319#include <stdio.h> 3320#include <stdlib.h> 3321int 3322main (void) 3323{ 3324 3325 FILE *f = fopen ("conftest.val", "w"); 3326 if (! f) 3327 return 1; 3328 if (($2) < 0) 3329 { 3330 long int i = longval (); 3331 if (i != ($2)) 3332 return 1; 3333 fprintf (f, "%ld", i); 3334 } 3335 else 3336 { 3337 unsigned long int i = ulongval (); 3338 if (i != ($2)) 3339 return 1; 3340 fprintf (f, "%lu", i); 3341 } 3342 /* Do not output a trailing newline, as this causes \r\n confusion 3343 on some platforms. */ 3344 return ferror (f) || fclose (f) != 0; 3345 3346 ; 3347 return 0; 3348} 3349_ACEOF 3350if ac_fn_c_try_run "$LINENO" 3351then : 3352 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3353else $as_nop 3354 ac_retval=1 3355fi 3356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3357 conftest.$ac_objext conftest.beam conftest.$ac_ext 3358rm -f conftest.val 3359 3360 fi 3361 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3362 as_fn_set_status $ac_retval 3363 3364} # ac_fn_c_compute_int 3365 3366# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 3367# --------------------------------------------- 3368# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 3369# accordingly. 3370ac_fn_c_check_decl () 3371{ 3372 ac_save_ac_compile="$ac_compile" 3373 if test -n "$ac_compile_for_check_decl"; then 3374 ac_compile="$ac_compile_for_check_decl" 3375 fi 3376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3377 # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once. 3378 as_decl_name=`echo $2|sed 's/ *(.*//'` 3379 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 3381printf %s "checking whether $as_decl_name is declared... " >&6; } 3382if eval test \${$3+y} 3383then : 3384 printf %s "(cached) " >&6 3385else $as_nop 3386 ac_save_werror_flag=$ac_c_werror_flag 3387 ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag" 3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3389/* end confdefs.h. */ 3390$4 3391int 3392main (void) 3393{ 3394#ifndef $as_decl_name 3395#ifdef __cplusplus 3396 (void) $as_decl_use; 3397#else 3398 (void) $as_decl_name; 3399#endif 3400#endif 3401 3402 ; 3403 return 0; 3404} 3405_ACEOF 3406if ac_fn_c_try_compile "$LINENO" 3407then : 3408 eval "$3=yes" 3409else $as_nop 3410 eval "$3=no" 3411fi 3412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3413 ac_c_werror_flag=$ac_save_werror_flag 3414fi 3415eval ac_res=\$$3 3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3417printf "%s\n" "$ac_res" >&6; } 3418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3419 ac_compile="$ac_save_ac_compile" 3420 3421} # ac_fn_c_check_decl 3422ac_configure_args_raw= 3423for ac_arg 3424do 3425 case $ac_arg in 3426 *\'*) 3427 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3428 esac 3429 as_fn_append ac_configure_args_raw " '$ac_arg'" 3430done 3431 3432case $ac_configure_args_raw in 3433 *$as_nl*) 3434 ac_safe_unquote= ;; 3435 *) 3436 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 3437 ac_unsafe_a="$ac_unsafe_z#~" 3438 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 3439 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 3440esac 3441 3442cat >config.log <<_ACEOF 3443This file contains any messages produced by compilers while 3444running configure, to aid debugging if configure makes a mistake. 3445 3446It was created by GNU SASL $as_me 1.10.0, which was 3447generated by GNU Autoconf 2.70. Invocation command line was 3448 3449 $ $0$ac_configure_args_raw 3450 3451_ACEOF 3452exec 5>>config.log 3453{ 3454cat <<_ASUNAME 3455## --------- ## 3456## Platform. ## 3457## --------- ## 3458 3459hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3460uname -m = `(uname -m) 2>/dev/null || echo unknown` 3461uname -r = `(uname -r) 2>/dev/null || echo unknown` 3462uname -s = `(uname -s) 2>/dev/null || echo unknown` 3463uname -v = `(uname -v) 2>/dev/null || echo unknown` 3464 3465/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3466/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3467 3468/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3469/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3470/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3471/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3472/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3473/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3474/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3475 3476_ASUNAME 3477 3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3479for as_dir in $PATH 3480do 3481 IFS=$as_save_IFS 3482 case $as_dir in #((( 3483 '') as_dir=./ ;; 3484 */) ;; 3485 *) as_dir=$as_dir/ ;; 3486 esac 3487 printf "%s\n" "PATH: $as_dir" 3488 done 3489IFS=$as_save_IFS 3490 3491} >&5 3492 3493cat >&5 <<_ACEOF 3494 3495 3496## ----------- ## 3497## Core tests. ## 3498## ----------- ## 3499 3500_ACEOF 3501 3502 3503# Keep a trace of the command line. 3504# Strip out --no-create and --no-recursion so they do not pile up. 3505# Strip out --silent because we don't want to record it for future runs. 3506# Also quote any args containing shell meta-characters. 3507# Make two passes to allow for proper duplicate-argument suppression. 3508ac_configure_args= 3509ac_configure_args0= 3510ac_configure_args1= 3511ac_must_keep_next=false 3512for ac_pass in 1 2 3513do 3514 for ac_arg 3515 do 3516 case $ac_arg in 3517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3519 | -silent | --silent | --silen | --sile | --sil) 3520 continue ;; 3521 *\'*) 3522 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3523 esac 3524 case $ac_pass in 3525 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3526 2) 3527 as_fn_append ac_configure_args1 " '$ac_arg'" 3528 if test $ac_must_keep_next = true; then 3529 ac_must_keep_next=false # Got value, back to normal. 3530 else 3531 case $ac_arg in 3532 *=* | --config-cache | -C | -disable-* | --disable-* \ 3533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3535 | -with-* | --with-* | -without-* | --without-* | --x) 3536 case "$ac_configure_args0 " in 3537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3538 esac 3539 ;; 3540 -* ) ac_must_keep_next=true ;; 3541 esac 3542 fi 3543 as_fn_append ac_configure_args " '$ac_arg'" 3544 ;; 3545 esac 3546 done 3547done 3548{ ac_configure_args0=; unset ac_configure_args0;} 3549{ ac_configure_args1=; unset ac_configure_args1;} 3550 3551# When interrupted or exit'd, cleanup temporary files, and complete 3552# config.log. We remove comments because anyway the quotes in there 3553# would cause problems or look ugly. 3554# WARNING: Use '\'' to represent an apostrophe within the trap. 3555# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3556trap 'exit_status=$? 3557 # Sanitize IFS. 3558 IFS=" "" $as_nl" 3559 # Save into config.log some information that might help in debugging. 3560 { 3561 echo 3562 3563 printf "%s\n" "## ---------------- ## 3564## Cache variables. ## 3565## ---------------- ##" 3566 echo 3567 # The following way of writing the cache mishandles newlines in values, 3568( 3569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3570 eval ac_val=\$$ac_var 3571 case $ac_val in #( 3572 *${as_nl}*) 3573 case $ac_var in #( 3574 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3575printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3576 esac 3577 case $ac_var in #( 3578 _ | IFS | as_nl) ;; #( 3579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3580 *) { eval $ac_var=; unset $ac_var;} ;; 3581 esac ;; 3582 esac 3583 done 3584 (set) 2>&1 | 3585 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3586 *${as_nl}ac_space=\ *) 3587 sed -n \ 3588 "s/'\''/'\''\\\\'\'''\''/g; 3589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3590 ;; #( 3591 *) 3592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3593 ;; 3594 esac | 3595 sort 3596) 3597 echo 3598 3599 printf "%s\n" "## ----------------- ## 3600## Output variables. ## 3601## ----------------- ##" 3602 echo 3603 for ac_var in $ac_subst_vars 3604 do 3605 eval ac_val=\$$ac_var 3606 case $ac_val in 3607 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3608 esac 3609 printf "%s\n" "$ac_var='\''$ac_val'\''" 3610 done | sort 3611 echo 3612 3613 if test -n "$ac_subst_files"; then 3614 printf "%s\n" "## ------------------- ## 3615## File substitutions. ## 3616## ------------------- ##" 3617 echo 3618 for ac_var in $ac_subst_files 3619 do 3620 eval ac_val=\$$ac_var 3621 case $ac_val in 3622 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3623 esac 3624 printf "%s\n" "$ac_var='\''$ac_val'\''" 3625 done | sort 3626 echo 3627 fi 3628 3629 if test -s confdefs.h; then 3630 printf "%s\n" "## ----------- ## 3631## confdefs.h. ## 3632## ----------- ##" 3633 echo 3634 cat confdefs.h 3635 echo 3636 fi 3637 test "$ac_signal" != 0 && 3638 printf "%s\n" "$as_me: caught signal $ac_signal" 3639 printf "%s\n" "$as_me: exit $exit_status" 3640 } >&5 3641 rm -f core *.core core.conftest.* && 3642 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3643 exit $exit_status 3644' 0 3645for ac_signal in 1 2 13 15; do 3646 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3647done 3648ac_signal=0 3649 3650# confdefs.h avoids OS command line length limits that DEFS can exceed. 3651rm -f -r conftest* confdefs.h 3652 3653printf "%s\n" "/* confdefs.h */" > confdefs.h 3654 3655# Predefined preprocessor variables. 3656 3657printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 3658 3659printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 3660 3661printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 3662 3663printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 3664 3665printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 3666 3667printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 3668 3669 3670# Let the site file select an alternate cache file if it wants to. 3671# Prefer an explicitly selected file to automatically selected ones. 3672if test -n "$CONFIG_SITE"; then 3673 ac_site_files="$CONFIG_SITE" 3674elif test "x$prefix" != xNONE; then 3675 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 3676else 3677 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 3678fi 3679 3680for ac_site_file in $ac_site_files 3681do 3682 case $ac_site_file in #( 3683 */*) : 3684 ;; #( 3685 *) : 3686 ac_site_file=./$ac_site_file ;; 3687esac 3688 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3690printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 3691 sed 's/^/| /' "$ac_site_file" >&5 3692 . "$ac_site_file" \ 3693 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3694printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3695as_fn_error $? "failed to load site script $ac_site_file 3696See \`config.log' for more details" "$LINENO" 5; } 3697 fi 3698done 3699 3700if test -r "$cache_file"; then 3701 # Some versions of bash will fail to source /dev/null (special files 3702 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3705printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3706 case $cache_file in 3707 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3708 *) . "./$cache_file";; 3709 esac 3710 fi 3711else 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3713printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3714 >$cache_file 3715fi 3716 3717# Test code for whether the C compiler supports C89 (global declarations) 3718ac_c_conftest_c89_globals=' 3719/* Does the compiler advertise C89 conformance? 3720 Do not test the value of __STDC__, because some compilers set it to 0 3721 while being otherwise adequately conformant. */ 3722#if !defined __STDC__ 3723# error "Compiler does not advertise C89 conformance" 3724#endif 3725 3726#include <stddef.h> 3727#include <stdarg.h> 3728struct stat; 3729/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3730struct buf { int x; }; 3731struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3732static char *e (p, i) 3733 char **p; 3734 int i; 3735{ 3736 return p[i]; 3737} 3738static char *f (char * (*g) (char **, int), char **p, ...) 3739{ 3740 char *s; 3741 va_list v; 3742 va_start (v,p); 3743 s = g (p, va_arg (v,int)); 3744 va_end (v); 3745 return s; 3746} 3747 3748/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3749 function prototypes and stuff, but not \xHH hex character constants. 3750 These do not provoke an error unfortunately, instead are silently treated 3751 as an "x". The following induces an error, until -std is added to get 3752 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3753 array size at least. It is necessary to write \x00 == 0 to get something 3754 that is true only with -std. */ 3755int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3756 3757/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3758 inside strings and character constants. */ 3759#define FOO(x) '\''x'\'' 3760int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3761 3762int test (int i, double x); 3763struct s1 {int (*f) (int a);}; 3764struct s2 {int (*f) (double a);}; 3765int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3766 int, int);' 3767 3768# Test code for whether the C compiler supports C89 (body of main). 3769ac_c_conftest_c89_main=' 3770ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3771' 3772 3773# Test code for whether the C compiler supports C99 (global declarations) 3774ac_c_conftest_c99_globals=' 3775// Does the compiler advertise C99 conformance? 3776#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3777# error "Compiler does not advertise C99 conformance" 3778#endif 3779 3780#include <stdbool.h> 3781extern int puts (const char *); 3782extern int printf (const char *, ...); 3783extern int dprintf (int, const char *, ...); 3784extern void *malloc (size_t); 3785 3786// Check varargs macros. These examples are taken from C99 6.10.3.5. 3787// dprintf is used instead of fprintf to avoid needing to declare 3788// FILE and stderr. 3789#define debug(...) dprintf (2, __VA_ARGS__) 3790#define showlist(...) puts (#__VA_ARGS__) 3791#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3792static void 3793test_varargs_macros (void) 3794{ 3795 int x = 1234; 3796 int y = 5678; 3797 debug ("Flag"); 3798 debug ("X = %d\n", x); 3799 showlist (The first, second, and third items.); 3800 report (x>y, "x is %d but y is %d", x, y); 3801} 3802 3803// Check long long types. 3804#define BIG64 18446744073709551615ull 3805#define BIG32 4294967295ul 3806#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3807#if !BIG_OK 3808 #error "your preprocessor is broken" 3809#endif 3810#if BIG_OK 3811#else 3812 #error "your preprocessor is broken" 3813#endif 3814static long long int bignum = -9223372036854775807LL; 3815static unsigned long long int ubignum = BIG64; 3816 3817struct incomplete_array 3818{ 3819 int datasize; 3820 double data[]; 3821}; 3822 3823struct named_init { 3824 int number; 3825 const wchar_t *name; 3826 double average; 3827}; 3828 3829typedef const char *ccp; 3830 3831static inline int 3832test_restrict (ccp restrict text) 3833{ 3834 // See if C++-style comments work. 3835 // Iterate through items via the restricted pointer. 3836 // Also check for declarations in for loops. 3837 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3838 continue; 3839 return 0; 3840} 3841 3842// Check varargs and va_copy. 3843static bool 3844test_varargs (const char *format, ...) 3845{ 3846 va_list args; 3847 va_start (args, format); 3848 va_list args_copy; 3849 va_copy (args_copy, args); 3850 3851 const char *str = ""; 3852 int number = 0; 3853 float fnumber = 0; 3854 3855 while (*format) 3856 { 3857 switch (*format++) 3858 { 3859 case '\''s'\'': // string 3860 str = va_arg (args_copy, const char *); 3861 break; 3862 case '\''d'\'': // int 3863 number = va_arg (args_copy, int); 3864 break; 3865 case '\''f'\'': // float 3866 fnumber = va_arg (args_copy, double); 3867 break; 3868 default: 3869 break; 3870 } 3871 } 3872 va_end (args_copy); 3873 va_end (args); 3874 3875 return *str && number && fnumber; 3876} 3877' 3878 3879# Test code for whether the C compiler supports C99 (body of main). 3880ac_c_conftest_c99_main=' 3881 // Check bool. 3882 _Bool success = false; 3883 success |= (argc != 0); 3884 3885 // Check restrict. 3886 if (test_restrict ("String literal") == 0) 3887 success = true; 3888 char *restrict newvar = "Another string"; 3889 3890 // Check varargs. 3891 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3892 test_varargs_macros (); 3893 3894 // Check flexible array members. 3895 struct incomplete_array *ia = 3896 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3897 ia->datasize = 10; 3898 for (int i = 0; i < ia->datasize; ++i) 3899 ia->data[i] = i * 1.234; 3900 3901 // Check named initializers. 3902 struct named_init ni = { 3903 .number = 34, 3904 .name = L"Test wide string", 3905 .average = 543.34343, 3906 }; 3907 3908 ni.number = 58; 3909 3910 int dynamic_array[ni.number]; 3911 dynamic_array[0] = argv[0][0]; 3912 dynamic_array[ni.number - 1] = 543; 3913 3914 // work around unused variable warnings 3915 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3916 || dynamic_array[ni.number - 1] != 543); 3917' 3918 3919# Test code for whether the C compiler supports C11 (global declarations) 3920ac_c_conftest_c11_globals=' 3921// Does the compiler advertise C11 conformance? 3922#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3923# error "Compiler does not advertise C11 conformance" 3924#endif 3925 3926// Check _Alignas. 3927char _Alignas (double) aligned_as_double; 3928char _Alignas (0) no_special_alignment; 3929extern char aligned_as_int; 3930char _Alignas (0) _Alignas (int) aligned_as_int; 3931 3932// Check _Alignof. 3933enum 3934{ 3935 int_alignment = _Alignof (int), 3936 int_array_alignment = _Alignof (int[100]), 3937 char_alignment = _Alignof (char) 3938}; 3939_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3940 3941// Check _Noreturn. 3942int _Noreturn does_not_return (void) { for (;;) continue; } 3943 3944// Check _Static_assert. 3945struct test_static_assert 3946{ 3947 int x; 3948 _Static_assert (sizeof (int) <= sizeof (long int), 3949 "_Static_assert does not work in struct"); 3950 long int y; 3951}; 3952 3953// Check UTF-8 literals. 3954#define u8 syntax error! 3955char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3956 3957// Check duplicate typedefs. 3958typedef long *long_ptr; 3959typedef long int *long_ptr; 3960typedef long_ptr long_ptr; 3961 3962// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3963struct anonymous 3964{ 3965 union { 3966 struct { int i; int j; }; 3967 struct { int k; long int l; } w; 3968 }; 3969 int m; 3970} v1; 3971' 3972 3973# Test code for whether the C compiler supports C11 (body of main). 3974ac_c_conftest_c11_main=' 3975 _Static_assert ((offsetof (struct anonymous, i) 3976 == offsetof (struct anonymous, w.k)), 3977 "Anonymous union alignment botch"); 3978 v1.i = 2; 3979 v1.w.k = 5; 3980 ok |= v1.i != 5; 3981' 3982 3983# Test code for whether the C compiler supports C11 (complete). 3984ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3985${ac_c_conftest_c99_globals} 3986${ac_c_conftest_c11_globals} 3987 3988int 3989main (int argc, char **argv) 3990{ 3991 int ok = 0; 3992 ${ac_c_conftest_c89_main} 3993 ${ac_c_conftest_c99_main} 3994 ${ac_c_conftest_c11_main} 3995 return ok; 3996} 3997" 3998 3999# Test code for whether the C compiler supports C99 (complete). 4000ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 4001${ac_c_conftest_c99_globals} 4002 4003int 4004main (int argc, char **argv) 4005{ 4006 int ok = 0; 4007 ${ac_c_conftest_c89_main} 4008 ${ac_c_conftest_c99_main} 4009 return ok; 4010} 4011" 4012 4013# Test code for whether the C compiler supports C89 (complete). 4014ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 4015 4016int 4017main (int argc, char **argv) 4018{ 4019 int ok = 0; 4020 ${ac_c_conftest_c89_main} 4021 return ok; 4022} 4023" 4024 4025as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 4026as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 4027as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 4028as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 4029as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 4030as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 4031as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 4032as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 4033as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 4034as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 4035as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 4036gt_needs="$gt_needs " 4037as_fn_append ac_header_c_list " arpa/inet.h arpa_inet_h HAVE_ARPA_INET_H" 4038as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H" 4039as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H" 4040as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER" 4041as_fn_append ac_func_c_list " fcntl HAVE_FCNTL" 4042as_fn_append ac_func_c_list " symlink HAVE_SYMLINK" 4043as_fn_append ac_header_c_list " netdb.h netdb_h HAVE_NETDB_H" 4044as_fn_append ac_header_c_list " netinet/in.h netinet_in_h HAVE_NETINET_IN_H" 4045as_fn_append ac_func_c_list " getdelim HAVE_GETDELIM" 4046as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE" 4047gl_getopt_required=GNU 4048as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H" 4049as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H" 4050as_fn_append ac_func_c_list " getpass HAVE_GETPASS" 4051as_fn_append ac_header_c_list " stdio_ext.h stdio_ext_h HAVE_STDIO_EXT_H" 4052as_fn_append ac_header_c_list " termios.h termios_h HAVE_TERMIOS_H" 4053as_fn_append ac_func_c_list " __fsetlocking HAVE___FSETLOCKING" 4054as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME" 4055as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME" 4056as_fn_append ac_header_c_list " threads.h threads_h HAVE_THREADS_H" 4057as_fn_append ac_header_c_list " iconv.h iconv_h HAVE_ICONV_H" 4058as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H" 4059as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H" 4060as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT" 4061as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC" 4062as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H" 4063as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT" 4064as_fn_append ac_func_c_list " lstat HAVE_LSTAT" 4065as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 4066as_fn_append ac_header_c_list " poll.h poll_h HAVE_POLL_H" 4067as_fn_append ac_header_c_list " sys/ioctl.h sys_ioctl_h HAVE_SYS_IOCTL_H" 4068as_fn_append ac_header_c_list " sys/filio.h sys_filio_h HAVE_SYS_FILIO_H" 4069as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H" 4070as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF" 4071as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" 4072as_fn_append ac_header_c_list " sys/uio.h sys_uio_h HAVE_SYS_UIO_H" 4073as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF" 4074as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H" 4075as_fn_append ac_func_c_list " iswcntrl HAVE_ISWCNTRL" 4076as_fn_append ac_header_c_list " wctype.h wctype_h HAVE_WCTYPE_H" 4077as_fn_append ac_func_c_list " btowc HAVE_BTOWC" 4078as_fn_append ac_func_c_list " duplocale HAVE_DUPLOCALE" 4079as_fn_append ac_func_c_list " isblank HAVE_ISBLANK" 4080as_fn_append ac_header_c_list " langinfo.h langinfo_h HAVE_LANGINFO_H" 4081as_fn_append ac_func_c_list " newlocale HAVE_NEWLOCALE" 4082as_fn_append ac_func_c_list " uselocale HAVE_USELOCALE" 4083as_fn_append ac_func_c_list " freelocale HAVE_FREELOCALE" 4084as_fn_append ac_header_c_list " semaphore.h semaphore_h HAVE_SEMAPHORE_H" 4085as_fn_append ac_header_c_list " pthread.h pthread_h HAVE_PTHREAD_H" 4086as_fn_append ac_func_c_list " pthread_sigmask HAVE_PTHREAD_SIGMASK" 4087as_fn_append ac_func_c_list " setenv HAVE_SETENV" 4088as_fn_append ac_func_c_list " sigaction HAVE_SIGACTION" 4089as_fn_append ac_func_c_list " sigaltstack HAVE_SIGALTSTACK" 4090as_fn_append ac_func_c_list " siginterrupt HAVE_SIGINTERRUPT" 4091as_fn_append ac_func_c_list " sleep HAVE_SLEEP" 4092as_fn_append ac_func_c_list " shutdown HAVE_SHUTDOWN" 4093as_fn_append ac_func_c_list " usleep HAVE_USLEEP" 4094as_fn_append ac_func_c_list " wcrtomb HAVE_WCRTOMB" 4095as_fn_append ac_func_c_list " wctob HAVE_WCTOB" 4096 4097# Auxiliary files required by this configure script. 4098ac_aux_files="config.rpath ltmain.sh config.guess config.sub ar-lib compile missing install-sh" 4099 4100# Locations in which to look for auxiliary files. 4101ac_aux_dir_candidates="${srcdir}/lib/build-aux" 4102 4103# Search for a directory containing all of the required auxiliary files, 4104# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 4105# If we don't find one directory that contains all the files we need, 4106# we report the set of missing files from the *first* directory in 4107# $ac_aux_dir_candidates and give up. 4108ac_missing_aux_files="" 4109ac_first_candidate=: 4110printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 4111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4112as_found=false 4113for as_dir in $ac_aux_dir_candidates 4114do 4115 IFS=$as_save_IFS 4116 case $as_dir in #((( 4117 '') as_dir=./ ;; 4118 */) ;; 4119 *) as_dir=$as_dir/ ;; 4120 esac 4121 as_found=: 4122 4123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 4124 ac_aux_dir_found=yes 4125 ac_install_sh= 4126 for ac_aux in $ac_aux_files 4127 do 4128 # As a special case, if "install-sh" is required, that requirement 4129 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 4130 # and $ac_install_sh is set appropriately for whichever one is found. 4131 if test x"$ac_aux" = x"install-sh" 4132 then 4133 if test -f "${as_dir}install-sh"; then 4134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 4135 ac_install_sh="${as_dir}install-sh -c" 4136 elif test -f "${as_dir}install.sh"; then 4137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 4138 ac_install_sh="${as_dir}install.sh -c" 4139 elif test -f "${as_dir}shtool"; then 4140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 4141 ac_install_sh="${as_dir}shtool install -c" 4142 else 4143 ac_aux_dir_found=no 4144 if $ac_first_candidate; then 4145 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 4146 else 4147 break 4148 fi 4149 fi 4150 else 4151 if test -f "${as_dir}${ac_aux}"; then 4152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 4153 else 4154 ac_aux_dir_found=no 4155 if $ac_first_candidate; then 4156 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 4157 else 4158 break 4159 fi 4160 fi 4161 fi 4162 done 4163 if test "$ac_aux_dir_found" = yes; then 4164 ac_aux_dir="$as_dir" 4165 break 4166 fi 4167 ac_first_candidate=false 4168 4169 as_found=false 4170done 4171IFS=$as_save_IFS 4172if $as_found 4173then : 4174 4175else $as_nop 4176 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 4177fi 4178 4179 4180# These three variables are undocumented and unsupported, 4181# and are intended to be withdrawn in a future Autoconf release. 4182# They can cause serious problems if a builder's source tree is in a directory 4183# whose full name contains unusual characters. 4184if test -f "${ac_aux_dir}config.guess"; then 4185 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 4186fi 4187if test -f "${ac_aux_dir}config.sub"; then 4188 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 4189fi 4190if test -f "$ac_aux_dir/configure"; then 4191 ac_configure="$SHELL ${ac_aux_dir}configure" 4192fi 4193 4194# Check that the precious variables saved in the cache have kept the same 4195# value. 4196ac_cache_corrupted=false 4197for ac_var in $ac_precious_vars; do 4198 eval ac_old_set=\$ac_cv_env_${ac_var}_set 4199 eval ac_new_set=\$ac_env_${ac_var}_set 4200 eval ac_old_val=\$ac_cv_env_${ac_var}_value 4201 eval ac_new_val=\$ac_env_${ac_var}_value 4202 case $ac_old_set,$ac_new_set in 4203 set,) 4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 4205printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 4206 ac_cache_corrupted=: ;; 4207 ,set) 4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 4209printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 4210 ac_cache_corrupted=: ;; 4211 ,);; 4212 *) 4213 if test "x$ac_old_val" != "x$ac_new_val"; then 4214 # differences in whitespace do not lead to failure. 4215 ac_old_val_w=`echo x $ac_old_val` 4216 ac_new_val_w=`echo x $ac_new_val` 4217 if test "$ac_old_val_w" != "$ac_new_val_w"; then 4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 4219printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 4220 ac_cache_corrupted=: 4221 else 4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 4223printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 4224 eval $ac_var=\$ac_old_val 4225 fi 4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 4227printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 4229printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 4230 fi;; 4231 esac 4232 # Pass precious variables to config.status. 4233 if test "$ac_new_set" = set; then 4234 case $ac_new_val in 4235 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 4236 *) ac_arg=$ac_var=$ac_new_val ;; 4237 esac 4238 case " $ac_configure_args " in 4239 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 4240 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 4241 esac 4242 fi 4243done 4244if $ac_cache_corrupted; then 4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4246printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 4248printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 4249 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 4250 and start over" "$LINENO" 5 4251fi 4252## -------------------- ## 4253## Main body of script. ## 4254## -------------------- ## 4255 4256ac_ext=c 4257ac_cpp='$CPP $CPPFLAGS' 4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4260ac_compiler_gnu=$ac_cv_c_compiler_gnu 4261 4262 4263 4264 4265 4266am__api_version='1.16' 4267 4268 4269 4270 # Find a good install program. We prefer a C program (faster), 4271# so one script is as good as another. But avoid the broken or 4272# incompatible versions: 4273# SysV /etc/install, /usr/sbin/install 4274# SunOS /usr/etc/install 4275# IRIX /sbin/install 4276# AIX /bin/install 4277# AmigaOS /C/install, which installs bootblocks on floppy discs 4278# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4279# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4280# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4281# OS/2's system install, which has a completely different semantic 4282# ./install, which can be erroneously created by make from ./install.sh. 4283# Reject install programs that cannot install multiple files. 4284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4285printf %s "checking for a BSD-compatible install... " >&6; } 4286if test -z "$INSTALL"; then 4287if test ${ac_cv_path_install+y} 4288then : 4289 printf %s "(cached) " >&6 4290else $as_nop 4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4292for as_dir in $PATH 4293do 4294 IFS=$as_save_IFS 4295 case $as_dir in #((( 4296 '') as_dir=./ ;; 4297 */) ;; 4298 *) as_dir=$as_dir/ ;; 4299 esac 4300 # Account for fact that we put trailing slashes in our PATH walk. 4301case $as_dir in #(( 4302 ./ | /[cC]/* | \ 4303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4304 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4305 /usr/ucb/* ) ;; 4306 *) 4307 # OSF1 and SCO ODT 3.0 have their own names for install. 4308 # Don't use installbsd from OSF since it installs stuff as root 4309 # by default. 4310 for ac_prog in ginstall scoinst install; do 4311 for ac_exec_ext in '' $ac_executable_extensions; do 4312 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4313 if test $ac_prog = install && 4314 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4315 # AIX install. It has an incompatible calling convention. 4316 : 4317 elif test $ac_prog = install && 4318 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4319 # program-specific install script used by HP pwplus--don't use. 4320 : 4321 else 4322 rm -rf conftest.one conftest.two conftest.dir 4323 echo one > conftest.one 4324 echo two > conftest.two 4325 mkdir conftest.dir 4326 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4327 test -s conftest.one && test -s conftest.two && 4328 test -s conftest.dir/conftest.one && 4329 test -s conftest.dir/conftest.two 4330 then 4331 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4332 break 3 4333 fi 4334 fi 4335 fi 4336 done 4337 done 4338 ;; 4339esac 4340 4341 done 4342IFS=$as_save_IFS 4343 4344rm -rf conftest.one conftest.two conftest.dir 4345 4346fi 4347 if test ${ac_cv_path_install+y}; then 4348 INSTALL=$ac_cv_path_install 4349 else 4350 # As a last resort, use the slow shell script. Don't cache a 4351 # value for INSTALL within a source directory, because that will 4352 # break other packages using the cache if that directory is 4353 # removed, or if the value is a relative name. 4354 INSTALL=$ac_install_sh 4355 fi 4356fi 4357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4358printf "%s\n" "$INSTALL" >&6; } 4359 4360# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4361# It thinks the first close brace ends the variable substitution. 4362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4363 4364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4365 4366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4367 4368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4369printf %s "checking whether build environment is sane... " >&6; } 4370# Reject unsafe characters in $srcdir or the absolute working directory 4371# name. Accept space and tab only in the latter. 4372am_lf=' 4373' 4374case `pwd` in 4375 *[\\\"\#\$\&\'\`$am_lf]*) 4376 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4377esac 4378case $srcdir in 4379 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4380 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4381esac 4382 4383# Do 'set' in a subshell so we don't clobber the current shell's 4384# arguments. Must try -L first in case configure is actually a 4385# symlink; some systems play weird games with the mod time of symlinks 4386# (eg FreeBSD returns the mod time of the symlink's containing 4387# directory). 4388if ( 4389 am_has_slept=no 4390 for am_try in 1 2; do 4391 echo "timestamp, slept: $am_has_slept" > conftest.file 4392 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4393 if test "$*" = "X"; then 4394 # -L didn't work. 4395 set X `ls -t "$srcdir/configure" conftest.file` 4396 fi 4397 if test "$*" != "X $srcdir/configure conftest.file" \ 4398 && test "$*" != "X conftest.file $srcdir/configure"; then 4399 4400 # If neither matched, then we have a broken ls. This can happen 4401 # if, for instance, CONFIG_SHELL is bash and it inherits a 4402 # broken ls alias from the environment. This has actually 4403 # happened. Such a system could not be considered "sane". 4404 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 4405 alias in your environment" "$LINENO" 5 4406 fi 4407 if test "$2" = conftest.file || test $am_try -eq 2; then 4408 break 4409 fi 4410 # Just in case. 4411 sleep 1 4412 am_has_slept=yes 4413 done 4414 test "$2" = conftest.file 4415 ) 4416then 4417 # Ok. 4418 : 4419else 4420 as_fn_error $? "newly created file is older than distributed files! 4421Check your system clock" "$LINENO" 5 4422fi 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4424printf "%s\n" "yes" >&6; } 4425# If we didn't sleep, we still need to ensure time stamps of config.status and 4426# generated files are strictly newer. 4427am_sleep_pid= 4428if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4429 ( sleep 1 ) & 4430 am_sleep_pid=$! 4431fi 4432 4433rm -f conftest.file 4434 4435test "$program_prefix" != NONE && 4436 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4437# Use a double $ so make ignores it. 4438test "$program_suffix" != NONE && 4439 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4440# Double any \ or $. 4441# By default was `s,x,x', remove it if useless. 4442ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4443program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4444 4445 4446# Expand $ac_aux_dir to an absolute path. 4447am_aux_dir=`cd "$ac_aux_dir" && pwd` 4448 4449 4450 if test x"${MISSING+set}" != xset; then 4451 MISSING="\${SHELL} '$am_aux_dir/missing'" 4452fi 4453# Use eval to expand $SHELL 4454if eval "$MISSING --is-lightweight"; then 4455 am_missing_run="$MISSING " 4456else 4457 am_missing_run= 4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4459printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4460fi 4461 4462if test x"${install_sh+set}" != xset; then 4463 case $am_aux_dir in 4464 *\ * | *\ *) 4465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4466 *) 4467 install_sh="\${SHELL} $am_aux_dir/install-sh" 4468 esac 4469fi 4470 4471# Installed binaries are usually stripped using 'strip' when the user 4472# run "make install-strip". However 'strip' might not be the right 4473# tool to use in cross-compilation environments, therefore Automake 4474# will honor the 'STRIP' environment variable to overrule this program. 4475if test "$cross_compiling" != no; then 4476 if test -n "$ac_tool_prefix"; then 4477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4478set dummy ${ac_tool_prefix}strip; ac_word=$2 4479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4480printf %s "checking for $ac_word... " >&6; } 4481if test ${ac_cv_prog_STRIP+y} 4482then : 4483 printf %s "(cached) " >&6 4484else $as_nop 4485 if test -n "$STRIP"; then 4486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4487else 4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4489for as_dir in $PATH 4490do 4491 IFS=$as_save_IFS 4492 case $as_dir in #((( 4493 '') as_dir=./ ;; 4494 */) ;; 4495 *) as_dir=$as_dir/ ;; 4496 esac 4497 for ac_exec_ext in '' $ac_executable_extensions; do 4498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4499 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4501 break 2 4502 fi 4503done 4504 done 4505IFS=$as_save_IFS 4506 4507fi 4508fi 4509STRIP=$ac_cv_prog_STRIP 4510if test -n "$STRIP"; then 4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4512printf "%s\n" "$STRIP" >&6; } 4513else 4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4515printf "%s\n" "no" >&6; } 4516fi 4517 4518 4519fi 4520if test -z "$ac_cv_prog_STRIP"; then 4521 ac_ct_STRIP=$STRIP 4522 # Extract the first word of "strip", so it can be a program name with args. 4523set dummy strip; ac_word=$2 4524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4525printf %s "checking for $ac_word... " >&6; } 4526if test ${ac_cv_prog_ac_ct_STRIP+y} 4527then : 4528 printf %s "(cached) " >&6 4529else $as_nop 4530 if test -n "$ac_ct_STRIP"; then 4531 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4532else 4533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4534for as_dir in $PATH 4535do 4536 IFS=$as_save_IFS 4537 case $as_dir in #((( 4538 '') as_dir=./ ;; 4539 */) ;; 4540 *) as_dir=$as_dir/ ;; 4541 esac 4542 for ac_exec_ext in '' $ac_executable_extensions; do 4543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4544 ac_cv_prog_ac_ct_STRIP="strip" 4545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4546 break 2 4547 fi 4548done 4549 done 4550IFS=$as_save_IFS 4551 4552fi 4553fi 4554ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4555if test -n "$ac_ct_STRIP"; then 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4557printf "%s\n" "$ac_ct_STRIP" >&6; } 4558else 4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4560printf "%s\n" "no" >&6; } 4561fi 4562 4563 if test "x$ac_ct_STRIP" = x; then 4564 STRIP=":" 4565 else 4566 case $cross_compiling:$ac_tool_warned in 4567yes:) 4568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4569printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4570ac_tool_warned=yes ;; 4571esac 4572 STRIP=$ac_ct_STRIP 4573 fi 4574else 4575 STRIP="$ac_cv_prog_STRIP" 4576fi 4577 4578fi 4579INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4580 4581 4582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4583printf %s "checking for a race-free mkdir -p... " >&6; } 4584if test -z "$MKDIR_P"; then 4585 if test ${ac_cv_path_mkdir+y} 4586then : 4587 printf %s "(cached) " >&6 4588else $as_nop 4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4590for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4591do 4592 IFS=$as_save_IFS 4593 case $as_dir in #((( 4594 '') as_dir=./ ;; 4595 */) ;; 4596 *) as_dir=$as_dir/ ;; 4597 esac 4598 for ac_prog in mkdir gmkdir; do 4599 for ac_exec_ext in '' $ac_executable_extensions; do 4600 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4601 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4602 'mkdir ('*'coreutils) '* | \ 4603 'BusyBox '* | \ 4604 'mkdir (fileutils) '4.1*) 4605 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4606 break 3;; 4607 esac 4608 done 4609 done 4610 done 4611IFS=$as_save_IFS 4612 4613fi 4614 4615 test -d ./--version && rmdir ./--version 4616 if test ${ac_cv_path_mkdir+y}; then 4617 MKDIR_P="$ac_cv_path_mkdir -p" 4618 else 4619 # As a last resort, use the slow shell script. Don't cache a 4620 # value for MKDIR_P within a source directory, because that will 4621 # break other packages using the cache if that directory is 4622 # removed, or if the value is a relative name. 4623 MKDIR_P="$ac_install_sh -d" 4624 fi 4625fi 4626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4627printf "%s\n" "$MKDIR_P" >&6; } 4628 4629for ac_prog in gawk mawk nawk awk 4630do 4631 # Extract the first word of "$ac_prog", so it can be a program name with args. 4632set dummy $ac_prog; ac_word=$2 4633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4634printf %s "checking for $ac_word... " >&6; } 4635if test ${ac_cv_prog_AWK+y} 4636then : 4637 printf %s "(cached) " >&6 4638else $as_nop 4639 if test -n "$AWK"; then 4640 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4641else 4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643for as_dir in $PATH 4644do 4645 IFS=$as_save_IFS 4646 case $as_dir in #((( 4647 '') as_dir=./ ;; 4648 */) ;; 4649 *) as_dir=$as_dir/ ;; 4650 esac 4651 for ac_exec_ext in '' $ac_executable_extensions; do 4652 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4653 ac_cv_prog_AWK="$ac_prog" 4654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4655 break 2 4656 fi 4657done 4658 done 4659IFS=$as_save_IFS 4660 4661fi 4662fi 4663AWK=$ac_cv_prog_AWK 4664if test -n "$AWK"; then 4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4666printf "%s\n" "$AWK" >&6; } 4667else 4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4669printf "%s\n" "no" >&6; } 4670fi 4671 4672 4673 test -n "$AWK" && break 4674done 4675 4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4677printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4678set x ${MAKE-make} 4679ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4680if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4681then : 4682 printf %s "(cached) " >&6 4683else $as_nop 4684 cat >conftest.make <<\_ACEOF 4685SHELL = /bin/sh 4686all: 4687 @echo '@@@%%%=$(MAKE)=@@@%%%' 4688_ACEOF 4689# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4690case `${MAKE-make} -f conftest.make 2>/dev/null` in 4691 *@@@%%%=?*=@@@%%%*) 4692 eval ac_cv_prog_make_${ac_make}_set=yes;; 4693 *) 4694 eval ac_cv_prog_make_${ac_make}_set=no;; 4695esac 4696rm -f conftest.make 4697fi 4698if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4700printf "%s\n" "yes" >&6; } 4701 SET_MAKE= 4702else 4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4704printf "%s\n" "no" >&6; } 4705 SET_MAKE="MAKE=${MAKE-make}" 4706fi 4707 4708rm -rf .tst 2>/dev/null 4709mkdir .tst 2>/dev/null 4710if test -d .tst; then 4711 am__leading_dot=. 4712else 4713 am__leading_dot=_ 4714fi 4715rmdir .tst 2>/dev/null 4716 4717# Check whether --enable-silent-rules was given. 4718if test ${enable_silent_rules+y} 4719then : 4720 enableval=$enable_silent_rules; 4721fi 4722 4723case $enable_silent_rules in # ((( 4724 yes) AM_DEFAULT_VERBOSITY=0;; 4725 no) AM_DEFAULT_VERBOSITY=1;; 4726 *) AM_DEFAULT_VERBOSITY=1;; 4727esac 4728am_make=${MAKE-make} 4729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4730printf %s "checking whether $am_make supports nested variables... " >&6; } 4731if test ${am_cv_make_support_nested_variables+y} 4732then : 4733 printf %s "(cached) " >&6 4734else $as_nop 4735 if printf "%s\n" 'TRUE=$(BAR$(V)) 4736BAR0=false 4737BAR1=true 4738V=1 4739am__doit: 4740 @$(TRUE) 4741.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4742 am_cv_make_support_nested_variables=yes 4743else 4744 am_cv_make_support_nested_variables=no 4745fi 4746fi 4747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4748printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4749if test $am_cv_make_support_nested_variables = yes; then 4750 AM_V='$(V)' 4751 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4752else 4753 AM_V=$AM_DEFAULT_VERBOSITY 4754 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4755fi 4756AM_BACKSLASH='\' 4757 4758if test "`cd $srcdir && pwd`" != "`pwd`"; then 4759 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4760 # is not polluted with repeated "-I." 4761 am__isrc=' -I$(srcdir)' 4762 # test to see if srcdir already configured 4763 if test -f $srcdir/config.status; then 4764 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4765 fi 4766fi 4767 4768# test whether we have cygpath 4769if test -z "$CYGPATH_W"; then 4770 if (cygpath --version) >/dev/null 2>/dev/null; then 4771 CYGPATH_W='cygpath -w' 4772 else 4773 CYGPATH_W=echo 4774 fi 4775fi 4776 4777 4778# Define the identity of the package. 4779 PACKAGE='gsasl' 4780 VERSION='1.10.0' 4781 4782 4783printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4784 4785 4786printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4787 4788# Some tools Automake needs. 4789 4790ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4791 4792 4793AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4794 4795 4796AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4797 4798 4799AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4800 4801 4802MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4803 4804# For better backward compatibility. To be removed once Automake 1.9.x 4805# dies out for good. For more background, see: 4806# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4807# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4808mkdir_p='$(MKDIR_P)' 4809 4810# We need awk for the "check" target (and possibly the TAP driver). The 4811# system "awk" is bad on some platforms. 4812# Always define AMTAR for backward compatibility. Yes, it's still used 4813# in the wild :-( We should find a proper way to deprecate it ... 4814AMTAR='$${TAR-tar}' 4815 4816 4817# We'll loop over all known methods to create a tar archive until one works. 4818_am_tools='gnutar pax cpio none' 4819 4820am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4821 4822 4823 4824 4825 4826 4827# POSIX will say in a future version that running "rm -f" with no argument 4828# is OK; and we want to be able to make that assumption in our Makefile 4829# recipes. So use an aggressive probe to check that the usage we want is 4830# actually supported "in the wild" to an acceptable degree. 4831# See automake bug#10828. 4832# To make any issue more visible, cause the running configure to be aborted 4833# by default if the 'rm' program in use doesn't match our expectations; the 4834# user can still override this though. 4835if rm -f && rm -fr && rm -rf; then : OK; else 4836 cat >&2 <<'END' 4837Oops! 4838 4839Your 'rm' program seems unable to run without file operands specified 4840on the command line, even when the '-f' option is present. This is contrary 4841to the behaviour of most rm programs out there, and not conforming with 4842the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4843 4844Please tell bug-automake@gnu.org about your system, including the value 4845of your $PATH and any error possibly output before this message. This 4846can help us improve future automake versions. 4847 4848END 4849 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4850 echo 'Configuration will proceed anyway, since you have set the' >&2 4851 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4852 echo >&2 4853 else 4854 cat >&2 <<'END' 4855Aborting the configuration process, to ensure you take notice of the issue. 4856 4857You can download and install GNU coreutils to get an 'rm' implementation 4858that behaves properly: <https://www.gnu.org/software/coreutils/>. 4859 4860If you want to complete the configuration process using your problematic 4861'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4862to "yes", and re-run configure. 4863 4864END 4865 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4866 fi 4867fi 4868 4869# Check whether --enable-silent-rules was given. 4870if test ${enable_silent_rules+y} 4871then : 4872 enableval=$enable_silent_rules; 4873fi 4874 4875case $enable_silent_rules in # ((( 4876 yes) AM_DEFAULT_VERBOSITY=0;; 4877 no) AM_DEFAULT_VERBOSITY=1;; 4878 *) AM_DEFAULT_VERBOSITY=0;; 4879esac 4880am_make=${MAKE-make} 4881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4882printf %s "checking whether $am_make supports nested variables... " >&6; } 4883if test ${am_cv_make_support_nested_variables+y} 4884then : 4885 printf %s "(cached) " >&6 4886else $as_nop 4887 if printf "%s\n" 'TRUE=$(BAR$(V)) 4888BAR0=false 4889BAR1=true 4890V=1 4891am__doit: 4892 @$(TRUE) 4893.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4894 am_cv_make_support_nested_variables=yes 4895else 4896 am_cv_make_support_nested_variables=no 4897fi 4898fi 4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4900printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4901if test $am_cv_make_support_nested_variables = yes; then 4902 AM_V='$(V)' 4903 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4904else 4905 AM_V=$AM_DEFAULT_VERBOSITY 4906 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4907fi 4908AM_BACKSLASH='\' 4909 4910ac_config_headers="$ac_config_headers config.h" 4911 4912 4913# Checks for programs. 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923ac_ext=c 4924ac_cpp='$CPP $CPPFLAGS' 4925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4927ac_compiler_gnu=$ac_cv_c_compiler_gnu 4928if test -n "$ac_tool_prefix"; then 4929 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4930set dummy ${ac_tool_prefix}gcc; ac_word=$2 4931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4932printf %s "checking for $ac_word... " >&6; } 4933if test ${ac_cv_prog_CC+y} 4934then : 4935 printf %s "(cached) " >&6 4936else $as_nop 4937 if test -n "$CC"; then 4938 ac_cv_prog_CC="$CC" # Let the user override the test. 4939else 4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4941for as_dir in $PATH 4942do 4943 IFS=$as_save_IFS 4944 case $as_dir in #((( 4945 '') as_dir=./ ;; 4946 */) ;; 4947 *) as_dir=$as_dir/ ;; 4948 esac 4949 for ac_exec_ext in '' $ac_executable_extensions; do 4950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4951 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4953 break 2 4954 fi 4955done 4956 done 4957IFS=$as_save_IFS 4958 4959fi 4960fi 4961CC=$ac_cv_prog_CC 4962if test -n "$CC"; then 4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4964printf "%s\n" "$CC" >&6; } 4965else 4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4967printf "%s\n" "no" >&6; } 4968fi 4969 4970 4971fi 4972if test -z "$ac_cv_prog_CC"; then 4973 ac_ct_CC=$CC 4974 # Extract the first word of "gcc", so it can be a program name with args. 4975set dummy gcc; ac_word=$2 4976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4977printf %s "checking for $ac_word... " >&6; } 4978if test ${ac_cv_prog_ac_ct_CC+y} 4979then : 4980 printf %s "(cached) " >&6 4981else $as_nop 4982 if test -n "$ac_ct_CC"; then 4983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4984else 4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4986for as_dir in $PATH 4987do 4988 IFS=$as_save_IFS 4989 case $as_dir in #((( 4990 '') as_dir=./ ;; 4991 */) ;; 4992 *) as_dir=$as_dir/ ;; 4993 esac 4994 for ac_exec_ext in '' $ac_executable_extensions; do 4995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4996 ac_cv_prog_ac_ct_CC="gcc" 4997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4998 break 2 4999 fi 5000done 5001 done 5002IFS=$as_save_IFS 5003 5004fi 5005fi 5006ac_ct_CC=$ac_cv_prog_ac_ct_CC 5007if test -n "$ac_ct_CC"; then 5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5009printf "%s\n" "$ac_ct_CC" >&6; } 5010else 5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5012printf "%s\n" "no" >&6; } 5013fi 5014 5015 if test "x$ac_ct_CC" = x; then 5016 CC="" 5017 else 5018 case $cross_compiling:$ac_tool_warned in 5019yes:) 5020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5021printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5022ac_tool_warned=yes ;; 5023esac 5024 CC=$ac_ct_CC 5025 fi 5026else 5027 CC="$ac_cv_prog_CC" 5028fi 5029 5030if test -z "$CC"; then 5031 if test -n "$ac_tool_prefix"; then 5032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5033set dummy ${ac_tool_prefix}cc; ac_word=$2 5034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5035printf %s "checking for $ac_word... " >&6; } 5036if test ${ac_cv_prog_CC+y} 5037then : 5038 printf %s "(cached) " >&6 5039else $as_nop 5040 if test -n "$CC"; then 5041 ac_cv_prog_CC="$CC" # Let the user override the test. 5042else 5043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5044for as_dir in $PATH 5045do 5046 IFS=$as_save_IFS 5047 case $as_dir in #((( 5048 '') as_dir=./ ;; 5049 */) ;; 5050 *) as_dir=$as_dir/ ;; 5051 esac 5052 for ac_exec_ext in '' $ac_executable_extensions; do 5053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5054 ac_cv_prog_CC="${ac_tool_prefix}cc" 5055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5056 break 2 5057 fi 5058done 5059 done 5060IFS=$as_save_IFS 5061 5062fi 5063fi 5064CC=$ac_cv_prog_CC 5065if test -n "$CC"; then 5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5067printf "%s\n" "$CC" >&6; } 5068else 5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5070printf "%s\n" "no" >&6; } 5071fi 5072 5073 5074 fi 5075fi 5076if test -z "$CC"; then 5077 # Extract the first word of "cc", so it can be a program name with args. 5078set dummy cc; ac_word=$2 5079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5080printf %s "checking for $ac_word... " >&6; } 5081if test ${ac_cv_prog_CC+y} 5082then : 5083 printf %s "(cached) " >&6 5084else $as_nop 5085 if test -n "$CC"; then 5086 ac_cv_prog_CC="$CC" # Let the user override the test. 5087else 5088 ac_prog_rejected=no 5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5090for as_dir in $PATH 5091do 5092 IFS=$as_save_IFS 5093 case $as_dir in #((( 5094 '') as_dir=./ ;; 5095 */) ;; 5096 *) as_dir=$as_dir/ ;; 5097 esac 5098 for ac_exec_ext in '' $ac_executable_extensions; do 5099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5100 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5101 ac_prog_rejected=yes 5102 continue 5103 fi 5104 ac_cv_prog_CC="cc" 5105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5106 break 2 5107 fi 5108done 5109 done 5110IFS=$as_save_IFS 5111 5112if test $ac_prog_rejected = yes; then 5113 # We found a bogon in the path, so make sure we never use it. 5114 set dummy $ac_cv_prog_CC 5115 shift 5116 if test $# != 0; then 5117 # We chose a different compiler from the bogus one. 5118 # However, it has the same basename, so the bogon will be chosen 5119 # first if we set CC to just the basename; use the full file name. 5120 shift 5121 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5122 fi 5123fi 5124fi 5125fi 5126CC=$ac_cv_prog_CC 5127if test -n "$CC"; then 5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5129printf "%s\n" "$CC" >&6; } 5130else 5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5132printf "%s\n" "no" >&6; } 5133fi 5134 5135 5136fi 5137if test -z "$CC"; then 5138 if test -n "$ac_tool_prefix"; then 5139 for ac_prog in cl.exe 5140 do 5141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5142set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5144printf %s "checking for $ac_word... " >&6; } 5145if test ${ac_cv_prog_CC+y} 5146then : 5147 printf %s "(cached) " >&6 5148else $as_nop 5149 if test -n "$CC"; then 5150 ac_cv_prog_CC="$CC" # Let the user override the test. 5151else 5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5153for as_dir in $PATH 5154do 5155 IFS=$as_save_IFS 5156 case $as_dir in #((( 5157 '') as_dir=./ ;; 5158 */) ;; 5159 *) as_dir=$as_dir/ ;; 5160 esac 5161 for ac_exec_ext in '' $ac_executable_extensions; do 5162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5163 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5165 break 2 5166 fi 5167done 5168 done 5169IFS=$as_save_IFS 5170 5171fi 5172fi 5173CC=$ac_cv_prog_CC 5174if test -n "$CC"; then 5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5176printf "%s\n" "$CC" >&6; } 5177else 5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5179printf "%s\n" "no" >&6; } 5180fi 5181 5182 5183 test -n "$CC" && break 5184 done 5185fi 5186if test -z "$CC"; then 5187 ac_ct_CC=$CC 5188 for ac_prog in cl.exe 5189do 5190 # Extract the first word of "$ac_prog", so it can be a program name with args. 5191set dummy $ac_prog; ac_word=$2 5192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5193printf %s "checking for $ac_word... " >&6; } 5194if test ${ac_cv_prog_ac_ct_CC+y} 5195then : 5196 printf %s "(cached) " >&6 5197else $as_nop 5198 if test -n "$ac_ct_CC"; then 5199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5200else 5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5202for as_dir in $PATH 5203do 5204 IFS=$as_save_IFS 5205 case $as_dir in #((( 5206 '') as_dir=./ ;; 5207 */) ;; 5208 *) as_dir=$as_dir/ ;; 5209 esac 5210 for ac_exec_ext in '' $ac_executable_extensions; do 5211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5212 ac_cv_prog_ac_ct_CC="$ac_prog" 5213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5214 break 2 5215 fi 5216done 5217 done 5218IFS=$as_save_IFS 5219 5220fi 5221fi 5222ac_ct_CC=$ac_cv_prog_ac_ct_CC 5223if test -n "$ac_ct_CC"; then 5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5225printf "%s\n" "$ac_ct_CC" >&6; } 5226else 5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5228printf "%s\n" "no" >&6; } 5229fi 5230 5231 5232 test -n "$ac_ct_CC" && break 5233done 5234 5235 if test "x$ac_ct_CC" = x; then 5236 CC="" 5237 else 5238 case $cross_compiling:$ac_tool_warned in 5239yes:) 5240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5241printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5242ac_tool_warned=yes ;; 5243esac 5244 CC=$ac_ct_CC 5245 fi 5246fi 5247 5248fi 5249if test -z "$CC"; then 5250 if test -n "$ac_tool_prefix"; then 5251 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5252set dummy ${ac_tool_prefix}clang; ac_word=$2 5253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5254printf %s "checking for $ac_word... " >&6; } 5255if test ${ac_cv_prog_CC+y} 5256then : 5257 printf %s "(cached) " >&6 5258else $as_nop 5259 if test -n "$CC"; then 5260 ac_cv_prog_CC="$CC" # Let the user override the test. 5261else 5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5263for as_dir in $PATH 5264do 5265 IFS=$as_save_IFS 5266 case $as_dir in #((( 5267 '') as_dir=./ ;; 5268 */) ;; 5269 *) as_dir=$as_dir/ ;; 5270 esac 5271 for ac_exec_ext in '' $ac_executable_extensions; do 5272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5273 ac_cv_prog_CC="${ac_tool_prefix}clang" 5274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5275 break 2 5276 fi 5277done 5278 done 5279IFS=$as_save_IFS 5280 5281fi 5282fi 5283CC=$ac_cv_prog_CC 5284if test -n "$CC"; then 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5286printf "%s\n" "$CC" >&6; } 5287else 5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289printf "%s\n" "no" >&6; } 5290fi 5291 5292 5293fi 5294if test -z "$ac_cv_prog_CC"; then 5295 ac_ct_CC=$CC 5296 # Extract the first word of "clang", so it can be a program name with args. 5297set dummy clang; ac_word=$2 5298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5299printf %s "checking for $ac_word... " >&6; } 5300if test ${ac_cv_prog_ac_ct_CC+y} 5301then : 5302 printf %s "(cached) " >&6 5303else $as_nop 5304 if test -n "$ac_ct_CC"; then 5305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5306else 5307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5308for as_dir in $PATH 5309do 5310 IFS=$as_save_IFS 5311 case $as_dir in #((( 5312 '') as_dir=./ ;; 5313 */) ;; 5314 *) as_dir=$as_dir/ ;; 5315 esac 5316 for ac_exec_ext in '' $ac_executable_extensions; do 5317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5318 ac_cv_prog_ac_ct_CC="clang" 5319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5320 break 2 5321 fi 5322done 5323 done 5324IFS=$as_save_IFS 5325 5326fi 5327fi 5328ac_ct_CC=$ac_cv_prog_ac_ct_CC 5329if test -n "$ac_ct_CC"; then 5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5331printf "%s\n" "$ac_ct_CC" >&6; } 5332else 5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334printf "%s\n" "no" >&6; } 5335fi 5336 5337 if test "x$ac_ct_CC" = x; then 5338 CC="" 5339 else 5340 case $cross_compiling:$ac_tool_warned in 5341yes:) 5342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5343printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5344ac_tool_warned=yes ;; 5345esac 5346 CC=$ac_ct_CC 5347 fi 5348else 5349 CC="$ac_cv_prog_CC" 5350fi 5351 5352fi 5353 5354 5355test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5356printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5357as_fn_error $? "no acceptable C compiler found in \$PATH 5358See \`config.log' for more details" "$LINENO" 5; } 5359 5360# Provide some information about the compiler. 5361printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5362set X $ac_compile 5363ac_compiler=$2 5364for ac_option in --version -v -V -qversion -version; do 5365 { { ac_try="$ac_compiler $ac_option >&5" 5366case "(($ac_try" in 5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5368 *) ac_try_echo=$ac_try;; 5369esac 5370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5371printf "%s\n" "$ac_try_echo"; } >&5 5372 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5373 ac_status=$? 5374 if test -s conftest.err; then 5375 sed '10a\ 5376... rest of stderr output deleted ... 5377 10q' conftest.err >conftest.er1 5378 cat conftest.er1 >&5 5379 fi 5380 rm -f conftest.er1 conftest.err 5381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5382 test $ac_status = 0; } 5383done 5384 5385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5386/* end confdefs.h. */ 5387 5388int 5389main (void) 5390{ 5391 5392 ; 5393 return 0; 5394} 5395_ACEOF 5396ac_clean_files_save=$ac_clean_files 5397ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5398# Try to create an executable without -o first, disregard a.out. 5399# It will help us diagnose broken compilers, and finding out an intuition 5400# of exeext. 5401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5402printf %s "checking whether the C compiler works... " >&6; } 5403ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5404 5405# The possible output files: 5406ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5407 5408ac_rmfiles= 5409for ac_file in $ac_files 5410do 5411 case $ac_file in 5412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5413 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5414 esac 5415done 5416rm -f $ac_rmfiles 5417 5418if { { ac_try="$ac_link_default" 5419case "(($ac_try" in 5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5421 *) ac_try_echo=$ac_try;; 5422esac 5423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5424printf "%s\n" "$ac_try_echo"; } >&5 5425 (eval "$ac_link_default") 2>&5 5426 ac_status=$? 5427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5428 test $ac_status = 0; } 5429then : 5430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5431# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5432# in a Makefile. We should not override ac_cv_exeext if it was cached, 5433# so that the user can short-circuit this test for compilers unknown to 5434# Autoconf. 5435for ac_file in $ac_files '' 5436do 5437 test -f "$ac_file" || continue 5438 case $ac_file in 5439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5440 ;; 5441 [ab].out ) 5442 # We found the default executable, but exeext='' is most 5443 # certainly right. 5444 break;; 5445 *.* ) 5446 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5447 then :; else 5448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5449 fi 5450 # We set ac_cv_exeext here because the later test for it is not 5451 # safe: cross compilers may not add the suffix if given an `-o' 5452 # argument, so we may need to know it at that point already. 5453 # Even if this section looks crufty: it has the advantage of 5454 # actually working. 5455 break;; 5456 * ) 5457 break;; 5458 esac 5459done 5460test "$ac_cv_exeext" = no && ac_cv_exeext= 5461 5462else $as_nop 5463 ac_file='' 5464fi 5465if test -z "$ac_file" 5466then : 5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5468printf "%s\n" "no" >&6; } 5469printf "%s\n" "$as_me: failed program was:" >&5 5470sed 's/^/| /' conftest.$ac_ext >&5 5471 5472{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5473printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5474as_fn_error 77 "C compiler cannot create executables 5475See \`config.log' for more details" "$LINENO" 5; } 5476else $as_nop 5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5478printf "%s\n" "yes" >&6; } 5479fi 5480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5481printf %s "checking for C compiler default output file name... " >&6; } 5482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5483printf "%s\n" "$ac_file" >&6; } 5484ac_exeext=$ac_cv_exeext 5485 5486rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5487ac_clean_files=$ac_clean_files_save 5488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5489printf %s "checking for suffix of executables... " >&6; } 5490if { { ac_try="$ac_link" 5491case "(($ac_try" in 5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5493 *) ac_try_echo=$ac_try;; 5494esac 5495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5496printf "%s\n" "$ac_try_echo"; } >&5 5497 (eval "$ac_link") 2>&5 5498 ac_status=$? 5499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5500 test $ac_status = 0; } 5501then : 5502 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5503# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5504# work properly (i.e., refer to `conftest.exe'), while it won't with 5505# `rm'. 5506for ac_file in conftest.exe conftest conftest.*; do 5507 test -f "$ac_file" || continue 5508 case $ac_file in 5509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5510 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5511 break;; 5512 * ) break;; 5513 esac 5514done 5515else $as_nop 5516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5517printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5518as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5519See \`config.log' for more details" "$LINENO" 5; } 5520fi 5521rm -f conftest conftest$ac_cv_exeext 5522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5523printf "%s\n" "$ac_cv_exeext" >&6; } 5524 5525rm -f conftest.$ac_ext 5526EXEEXT=$ac_cv_exeext 5527ac_exeext=$EXEEXT 5528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5529/* end confdefs.h. */ 5530#include <stdio.h> 5531int 5532main (void) 5533{ 5534FILE *f = fopen ("conftest.out", "w"); 5535 return ferror (f) || fclose (f) != 0; 5536 5537 ; 5538 return 0; 5539} 5540_ACEOF 5541ac_clean_files="$ac_clean_files conftest.out" 5542# Check that the compiler produces executables we can run. If not, either 5543# the compiler is broken, or we cross compile. 5544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5545printf %s "checking whether we are cross compiling... " >&6; } 5546if test "$cross_compiling" != yes; then 5547 { { ac_try="$ac_link" 5548case "(($ac_try" in 5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5550 *) ac_try_echo=$ac_try;; 5551esac 5552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5553printf "%s\n" "$ac_try_echo"; } >&5 5554 (eval "$ac_link") 2>&5 5555 ac_status=$? 5556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5557 test $ac_status = 0; } 5558 if { ac_try='./conftest$ac_cv_exeext' 5559 { { case "(($ac_try" in 5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5561 *) ac_try_echo=$ac_try;; 5562esac 5563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5564printf "%s\n" "$ac_try_echo"; } >&5 5565 (eval "$ac_try") 2>&5 5566 ac_status=$? 5567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5568 test $ac_status = 0; }; }; then 5569 cross_compiling=no 5570 else 5571 if test "$cross_compiling" = maybe; then 5572 cross_compiling=yes 5573 else 5574 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5575printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5576as_fn_error 77 "cannot run C compiled programs. 5577If you meant to cross compile, use \`--host'. 5578See \`config.log' for more details" "$LINENO" 5; } 5579 fi 5580 fi 5581fi 5582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5583printf "%s\n" "$cross_compiling" >&6; } 5584 5585rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5586ac_clean_files=$ac_clean_files_save 5587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5588printf %s "checking for suffix of object files... " >&6; } 5589if test ${ac_cv_objext+y} 5590then : 5591 printf %s "(cached) " >&6 5592else $as_nop 5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5594/* end confdefs.h. */ 5595 5596int 5597main (void) 5598{ 5599 5600 ; 5601 return 0; 5602} 5603_ACEOF 5604rm -f conftest.o conftest.obj 5605if { { ac_try="$ac_compile" 5606case "(($ac_try" in 5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5608 *) ac_try_echo=$ac_try;; 5609esac 5610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5611printf "%s\n" "$ac_try_echo"; } >&5 5612 (eval "$ac_compile") 2>&5 5613 ac_status=$? 5614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5615 test $ac_status = 0; } 5616then : 5617 for ac_file in conftest.o conftest.obj conftest.*; do 5618 test -f "$ac_file" || continue; 5619 case $ac_file in 5620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5622 break;; 5623 esac 5624done 5625else $as_nop 5626 printf "%s\n" "$as_me: failed program was:" >&5 5627sed 's/^/| /' conftest.$ac_ext >&5 5628 5629{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5630printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5631as_fn_error $? "cannot compute suffix of object files: cannot compile 5632See \`config.log' for more details" "$LINENO" 5; } 5633fi 5634rm -f conftest.$ac_cv_objext conftest.$ac_ext 5635fi 5636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5637printf "%s\n" "$ac_cv_objext" >&6; } 5638OBJEXT=$ac_cv_objext 5639ac_objext=$OBJEXT 5640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5641printf %s "checking whether the compiler supports GNU C... " >&6; } 5642if test ${ac_cv_c_compiler_gnu+y} 5643then : 5644 printf %s "(cached) " >&6 5645else $as_nop 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648 5649int 5650main (void) 5651{ 5652#ifndef __GNUC__ 5653 choke me 5654#endif 5655 5656 ; 5657 return 0; 5658} 5659_ACEOF 5660if ac_fn_c_try_compile "$LINENO" 5661then : 5662 ac_compiler_gnu=yes 5663else $as_nop 5664 ac_compiler_gnu=no 5665fi 5666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5667ac_cv_c_compiler_gnu=$ac_compiler_gnu 5668 5669fi 5670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5671printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5672ac_compiler_gnu=$ac_cv_c_compiler_gnu 5673 5674if test $ac_compiler_gnu = yes; then 5675 GCC=yes 5676else 5677 GCC= 5678fi 5679ac_test_CFLAGS=${CFLAGS+y} 5680ac_save_CFLAGS=$CFLAGS 5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5682printf %s "checking whether $CC accepts -g... " >&6; } 5683if test ${ac_cv_prog_cc_g+y} 5684then : 5685 printf %s "(cached) " >&6 5686else $as_nop 5687 ac_save_c_werror_flag=$ac_c_werror_flag 5688 ac_c_werror_flag=yes 5689 ac_cv_prog_cc_g=no 5690 CFLAGS="-g" 5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5692/* end confdefs.h. */ 5693 5694int 5695main (void) 5696{ 5697 5698 ; 5699 return 0; 5700} 5701_ACEOF 5702if ac_fn_c_try_compile "$LINENO" 5703then : 5704 ac_cv_prog_cc_g=yes 5705else $as_nop 5706 CFLAGS="" 5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5708/* end confdefs.h. */ 5709 5710int 5711main (void) 5712{ 5713 5714 ; 5715 return 0; 5716} 5717_ACEOF 5718if ac_fn_c_try_compile "$LINENO" 5719then : 5720 5721else $as_nop 5722 ac_c_werror_flag=$ac_save_c_werror_flag 5723 CFLAGS="-g" 5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725/* end confdefs.h. */ 5726 5727int 5728main (void) 5729{ 5730 5731 ; 5732 return 0; 5733} 5734_ACEOF 5735if ac_fn_c_try_compile "$LINENO" 5736then : 5737 ac_cv_prog_cc_g=yes 5738fi 5739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5740fi 5741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5742fi 5743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5744 ac_c_werror_flag=$ac_save_c_werror_flag 5745fi 5746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5747printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5748if test $ac_test_CFLAGS; then 5749 CFLAGS=$ac_save_CFLAGS 5750elif test $ac_cv_prog_cc_g = yes; then 5751 if test "$GCC" = yes; then 5752 CFLAGS="-g -O2" 5753 else 5754 CFLAGS="-g" 5755 fi 5756else 5757 if test "$GCC" = yes; then 5758 CFLAGS="-O2" 5759 else 5760 CFLAGS= 5761 fi 5762fi 5763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5764printf %s "checking for $CC option to enable C11 features... " >&6; } 5765if test ${ac_cv_prog_cc_c11+y} 5766then : 5767 printf %s "(cached) " >&6 5768else $as_nop 5769 ac_cv_prog_cc_c11=no 5770ac_save_CC=$CC 5771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772/* end confdefs.h. */ 5773$ac_c_conftest_c11_program 5774_ACEOF 5775for ac_arg in '' -std=gnu11 5776do 5777 CC="$ac_save_CC $ac_arg" 5778 if ac_fn_c_try_compile "$LINENO" 5779then : 5780 ac_cv_prog_cc_c11=$ac_arg 5781fi 5782rm -f core conftest.err conftest.$ac_objext conftest.beam 5783 test "x$ac_cv_prog_cc_c11" != "xno" && break 5784done 5785rm -f conftest.$ac_ext 5786CC=$ac_save_CC 5787 5788fi 5789# AC_CACHE_VAL 5790ac_prog_cc_stdc_options= 5791case "x$ac_cv_prog_cc_c11" in #( 5792 x) : 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5794printf "%s\n" "none needed" >&6; } ;; #( 5795 xno) : 5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5797printf "%s\n" "unsupported" >&6; } ;; #( 5798 *) : 5799 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11" 5800 CC="$CC$ac_prog_cc_stdc_options" 5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5802printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;; 5803esac 5804if test "x$ac_cv_prog_cc_c11" != xno 5805then : 5806 ac_prog_cc_stdc=c11 5807 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5808else $as_nop 5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5810printf %s "checking for $CC option to enable C99 features... " >&6; } 5811if test ${ac_cv_prog_cc_c99+y} 5812then : 5813 printf %s "(cached) " >&6 5814else $as_nop 5815 ac_cv_prog_cc_c99=no 5816ac_save_CC=$CC 5817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5818/* end confdefs.h. */ 5819$ac_c_conftest_c89_program 5820_ACEOF 5821for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99 5822do 5823 CC="$ac_save_CC $ac_arg" 5824 if ac_fn_c_try_compile "$LINENO" 5825then : 5826 ac_cv_prog_cc_c99=$ac_arg 5827fi 5828rm -f core conftest.err conftest.$ac_objext conftest.beam 5829 test "x$ac_cv_prog_cc_c99" != "xno" && break 5830done 5831rm -f conftest.$ac_ext 5832CC=$ac_save_CC 5833 5834fi 5835# AC_CACHE_VAL 5836ac_prog_cc_stdc_options= 5837case "x$ac_cv_prog_cc_c99" in #( 5838 x) : 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5840printf "%s\n" "none needed" >&6; } ;; #( 5841 xno) : 5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5843printf "%s\n" "unsupported" >&6; } ;; #( 5844 *) : 5845 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99" 5846 CC="$CC$ac_prog_cc_stdc_options" 5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5848printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;; 5849esac 5850if test "x$ac_cv_prog_cc_c99" != xno 5851then : 5852 ac_prog_cc_stdc=c99 5853 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5854else $as_nop 5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5856printf %s "checking for $CC option to enable C89 features... " >&6; } 5857if test ${ac_cv_prog_cc_c89+y} 5858then : 5859 printf %s "(cached) " >&6 5860else $as_nop 5861 ac_cv_prog_cc_c89=no 5862ac_save_CC=$CC 5863cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5864/* end confdefs.h. */ 5865$ac_c_conftest_c89_program 5866_ACEOF 5867for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5868 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5869do 5870 CC="$ac_save_CC $ac_arg" 5871 if ac_fn_c_try_compile "$LINENO" 5872then : 5873 ac_cv_prog_cc_c89=$ac_arg 5874fi 5875rm -f core conftest.err conftest.$ac_objext conftest.beam 5876 test "x$ac_cv_prog_cc_c89" != "xno" && break 5877done 5878rm -f conftest.$ac_ext 5879CC=$ac_save_CC 5880 5881fi 5882# AC_CACHE_VAL 5883ac_prog_cc_stdc_options= 5884case "x$ac_cv_prog_cc_c89" in #( 5885 x) : 5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5887printf "%s\n" "none needed" >&6; } ;; #( 5888 xno) : 5889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5890printf "%s\n" "unsupported" >&6; } ;; #( 5891 *) : 5892 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89" 5893 CC="$CC$ac_prog_cc_stdc_options" 5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5895printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;; 5896esac 5897if test "x$ac_cv_prog_cc_c89" != xno 5898then : 5899 ac_prog_cc_stdc=c89 5900 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5901else $as_nop 5902 ac_prog_cc_stdc=no 5903 ac_cv_prog_cc_stdc=no 5904fi 5905 5906fi 5907 5908fi 5909 5910ac_ext=c 5911ac_cpp='$CPP $CPPFLAGS' 5912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5914ac_compiler_gnu=$ac_cv_c_compiler_gnu 5915 5916 5917 ac_ext=c 5918ac_cpp='$CPP $CPPFLAGS' 5919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5921ac_compiler_gnu=$ac_cv_c_compiler_gnu 5922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5923printf %s "checking whether $CC understands -c and -o together... " >&6; } 5924if test ${am_cv_prog_cc_c_o+y} 5925then : 5926 printf %s "(cached) " >&6 5927else $as_nop 5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5929/* end confdefs.h. */ 5930 5931int 5932main (void) 5933{ 5934 5935 ; 5936 return 0; 5937} 5938_ACEOF 5939 # Make sure it works both with $CC and with simple cc. 5940 # Following AC_PROG_CC_C_O, we do the test twice because some 5941 # compilers refuse to overwrite an existing .o file with -o, 5942 # though they will create one. 5943 am_cv_prog_cc_c_o=yes 5944 for am_i in 1 2; do 5945 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5946 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5947 ac_status=$? 5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5949 (exit $ac_status); } \ 5950 && test -f conftest2.$ac_objext; then 5951 : OK 5952 else 5953 am_cv_prog_cc_c_o=no 5954 break 5955 fi 5956 done 5957 rm -f core conftest* 5958 unset am_i 5959fi 5960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5961printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5962if test "$am_cv_prog_cc_c_o" != yes; then 5963 # Losing compiler, so override with the script. 5964 # FIXME: It is wrong to rewrite CC. 5965 # But if we don't then we get into trouble of one sort or another. 5966 # A longer-term fix would be to have automake use am__CC in this case, 5967 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5968 CC="$am_aux_dir/compile $CC" 5969fi 5970ac_ext=c 5971ac_cpp='$CPP $CPPFLAGS' 5972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5974ac_compiler_gnu=$ac_cv_c_compiler_gnu 5975 5976 5977 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5 5979printf %s "checking whether the compiler is clang... " >&6; } 5980if test ${gl_cv_compiler_clang+y} 5981then : 5982 printf %s "(cached) " >&6 5983else $as_nop 5984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5985/* end confdefs.h. */ 5986 5987 #ifdef __clang__ 5988 barfbarf 5989 #endif 5990 5991int 5992main (void) 5993{ 5994 5995 ; 5996 return 0; 5997} 5998 5999_ACEOF 6000if ac_fn_c_try_compile "$LINENO" 6001then : 6002 gl_cv_compiler_clang=no 6003else $as_nop 6004 gl_cv_compiler_clang=yes 6005fi 6006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6007 6008fi 6009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5 6010printf "%s\n" "$gl_cv_compiler_clang" >&6; } 6011 6012 6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5 6014printf %s "checking for compiler option needed when checking for declarations... " >&6; } 6015if test ${gl_cv_compiler_check_decl_option+y} 6016then : 6017 printf %s "(cached) " >&6 6018else $as_nop 6019 if test $gl_cv_compiler_clang = yes; then 6020 save_ac_compile="$ac_compile" 6021 ac_compile="$ac_compile -Werror=implicit-function-declaration" 6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6023/* end confdefs.h. */ 6024 6025int 6026main (void) 6027{ 6028 6029 ; 6030 return 0; 6031} 6032_ACEOF 6033if ac_fn_c_try_compile "$LINENO" 6034then : 6035 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration' 6036else $as_nop 6037 gl_cv_compiler_check_decl_option=none 6038fi 6039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6040 ac_compile="$save_ac_compile" 6041 else 6042 gl_cv_compiler_check_decl_option=none 6043 fi 6044 6045fi 6046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5 6047printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; } 6048 if test "x$gl_cv_compiler_check_decl_option" != xnone; then 6049 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option" 6050 else 6051 ac_compile_for_check_decl="$ac_compile" 6052 fi 6053 6054DEPDIR="${am__leading_dot}deps" 6055 6056ac_config_commands="$ac_config_commands depfiles" 6057 6058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 6059printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 6060cat > confinc.mk << 'END' 6061am__doit: 6062 @echo this is the am__doit target >confinc.out 6063.PHONY: am__doit 6064END 6065am__include="#" 6066am__quote= 6067# BSD make does it like this. 6068echo '.include "confinc.mk" # ignored' > confmf.BSD 6069# Other make implementations (GNU, Solaris 10, AIX) do it like this. 6070echo 'include confinc.mk # ignored' > confmf.GNU 6071_am_result=no 6072for s in GNU BSD; do 6073 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 6074 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 6075 ac_status=$? 6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6077 (exit $ac_status); } 6078 case $?:`cat confinc.out 2>/dev/null` in #( 6079 '0:this is the am__doit target') : 6080 case $s in #( 6081 BSD) : 6082 am__include='.include' am__quote='"' ;; #( 6083 *) : 6084 am__include='include' am__quote='' ;; 6085esac ;; #( 6086 *) : 6087 ;; 6088esac 6089 if test "$am__include" != "#"; then 6090 _am_result="yes ($s style)" 6091 break 6092 fi 6093done 6094rm -f confinc.* confmf.* 6095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 6096printf "%s\n" "${_am_result}" >&6; } 6097 6098# Check whether --enable-dependency-tracking was given. 6099if test ${enable_dependency_tracking+y} 6100then : 6101 enableval=$enable_dependency_tracking; 6102fi 6103 6104if test "x$enable_dependency_tracking" != xno; then 6105 am_depcomp="$ac_aux_dir/depcomp" 6106 AMDEPBACKSLASH='\' 6107 am__nodep='_no' 6108fi 6109 if test "x$enable_dependency_tracking" != xno; then 6110 AMDEP_TRUE= 6111 AMDEP_FALSE='#' 6112else 6113 AMDEP_TRUE='#' 6114 AMDEP_FALSE= 6115fi 6116 6117 6118 6119depcc="$CC" am_compiler_list= 6120 6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6122printf %s "checking dependency style of $depcc... " >&6; } 6123if test ${am_cv_CC_dependencies_compiler_type+y} 6124then : 6125 printf %s "(cached) " >&6 6126else $as_nop 6127 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6128 # We make a subdir and do the tests there. Otherwise we can end up 6129 # making bogus files that we don't know about and never remove. For 6130 # instance it was reported that on HP-UX the gcc test will end up 6131 # making a dummy file named 'D' -- because '-MD' means "put the output 6132 # in D". 6133 rm -rf conftest.dir 6134 mkdir conftest.dir 6135 # Copy depcomp to subdir because otherwise we won't find it if we're 6136 # using a relative directory. 6137 cp "$am_depcomp" conftest.dir 6138 cd conftest.dir 6139 # We will build objects and dependencies in a subdirectory because 6140 # it helps to detect inapplicable dependency modes. For instance 6141 # both Tru64's cc and ICC support -MD to output dependencies as a 6142 # side effect of compilation, but ICC will put the dependencies in 6143 # the current directory while Tru64 will put them in the object 6144 # directory. 6145 mkdir sub 6146 6147 am_cv_CC_dependencies_compiler_type=none 6148 if test "$am_compiler_list" = ""; then 6149 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6150 fi 6151 am__universal=false 6152 case " $depcc " in #( 6153 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6154 esac 6155 6156 for depmode in $am_compiler_list; do 6157 # Setup a source with many dependencies, because some compilers 6158 # like to wrap large dependency lists on column 80 (with \), and 6159 # we should not choose a depcomp mode which is confused by this. 6160 # 6161 # We need to recreate these files for each test, as the compiler may 6162 # overwrite some of them when testing with obscure command lines. 6163 # This happens at least with the AIX C compiler. 6164 : > sub/conftest.c 6165 for i in 1 2 3 4 5 6; do 6166 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6167 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6168 # Solaris 10 /bin/sh. 6169 echo '/* dummy */' > sub/conftst$i.h 6170 done 6171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6172 6173 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6174 # mode. It turns out that the SunPro C++ compiler does not properly 6175 # handle '-M -o', and we need to detect this. Also, some Intel 6176 # versions had trouble with output in subdirs. 6177 am__obj=sub/conftest.${OBJEXT-o} 6178 am__minus_obj="-o $am__obj" 6179 case $depmode in 6180 gcc) 6181 # This depmode causes a compiler race in universal mode. 6182 test "$am__universal" = false || continue 6183 ;; 6184 nosideeffect) 6185 # After this tag, mechanisms are not by side-effect, so they'll 6186 # only be used when explicitly requested. 6187 if test "x$enable_dependency_tracking" = xyes; then 6188 continue 6189 else 6190 break 6191 fi 6192 ;; 6193 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6194 # This compiler won't grok '-c -o', but also, the minuso test has 6195 # not run yet. These depmodes are late enough in the game, and 6196 # so weak that their functioning should not be impacted. 6197 am__obj=conftest.${OBJEXT-o} 6198 am__minus_obj= 6199 ;; 6200 none) break ;; 6201 esac 6202 if depmode=$depmode \ 6203 source=sub/conftest.c object=$am__obj \ 6204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6206 >/dev/null 2>conftest.err && 6207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6211 # icc doesn't choke on unknown options, it will just issue warnings 6212 # or remarks (even with -Werror). So we grep stderr for any message 6213 # that says an option was ignored or not supported. 6214 # When given -MP, icc 7.0 and 7.1 complain thusly: 6215 # icc: Command line warning: ignoring option '-M'; no argument required 6216 # The diagnosis changed in icc 8.0: 6217 # icc: Command line remark: option '-MP' not supported 6218 if (grep 'ignoring option' conftest.err || 6219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6220 am_cv_CC_dependencies_compiler_type=$depmode 6221 break 6222 fi 6223 fi 6224 done 6225 6226 cd .. 6227 rm -rf conftest.dir 6228else 6229 am_cv_CC_dependencies_compiler_type=none 6230fi 6231 6232fi 6233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6234printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 6235CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6236 6237 if 6238 test "x$enable_dependency_tracking" != xno \ 6239 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6240 am__fastdepCC_TRUE= 6241 am__fastdepCC_FALSE='#' 6242else 6243 am__fastdepCC_TRUE='#' 6244 am__fastdepCC_FALSE= 6245fi 6246 6247 6248 6249ac_header= ac_cache= 6250for ac_item in $ac_header_c_list 6251do 6252 if test $ac_cache; then 6253 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 6254 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 6255 printf "%s\n" "#define $ac_item 1" >> confdefs.h 6256 fi 6257 ac_header= ac_cache= 6258 elif test $ac_header; then 6259 ac_cache=$ac_item 6260 else 6261 ac_header=$ac_item 6262 fi 6263done 6264 6265 6266 6267 6268 6269 6270 6271 6272if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 6273then : 6274 6275printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 6276 6277fi 6278 6279 6280 6281 6282 6283 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6285printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6286if test ${ac_cv_safe_to_define___extensions__+y} 6287then : 6288 printf %s "(cached) " >&6 6289else $as_nop 6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6291/* end confdefs.h. */ 6292 6293# define __EXTENSIONS__ 1 6294 $ac_includes_default 6295int 6296main (void) 6297{ 6298 6299 ; 6300 return 0; 6301} 6302_ACEOF 6303if ac_fn_c_try_compile "$LINENO" 6304then : 6305 ac_cv_safe_to_define___extensions__=yes 6306else $as_nop 6307 ac_cv_safe_to_define___extensions__=no 6308fi 6309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6310fi 6311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6312printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 6313 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 6315printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 6316if test ${ac_cv_should_define__xopen_source+y} 6317then : 6318 printf %s "(cached) " >&6 6319else $as_nop 6320 ac_cv_should_define__xopen_source=no 6321 if test $ac_cv_header_wchar_h = yes 6322then : 6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6324/* end confdefs.h. */ 6325 6326 #include <wchar.h> 6327 mbstate_t x; 6328int 6329main (void) 6330{ 6331 6332 ; 6333 return 0; 6334} 6335_ACEOF 6336if ac_fn_c_try_compile "$LINENO" 6337then : 6338 6339else $as_nop 6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6341/* end confdefs.h. */ 6342 6343 #define _XOPEN_SOURCE 500 6344 #include <wchar.h> 6345 mbstate_t x; 6346int 6347main (void) 6348{ 6349 6350 ; 6351 return 0; 6352} 6353_ACEOF 6354if ac_fn_c_try_compile "$LINENO" 6355then : 6356 ac_cv_should_define__xopen_source=yes 6357fi 6358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6359fi 6360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6361fi 6362fi 6363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 6364printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 6365 6366 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 6367 6368 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 6369 6370 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 6371 6372 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 6373 6374 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 6375 6376 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 6377 6378 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6379 6380 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 6381 6382 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 6383 6384 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 6385 6386 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 6387 6388 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 6389 6390 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 6391 6392 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 6393 6394 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 6395 6396 if test $ac_cv_header_minix_config_h = yes 6397then : 6398 MINIX=yes 6399 printf "%s\n" "#define _MINIX 1" >>confdefs.h 6400 6401 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 6402 6403 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 6404 6405else $as_nop 6406 MINIX= 6407fi 6408 if test $ac_cv_safe_to_define___extensions__ = yes 6409then : 6410 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 6411 6412fi 6413 if test $ac_cv_should_define__xopen_source = yes 6414then : 6415 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 6416 6417fi 6418 6419 6420 6421 6422ac_ext=c 6423ac_cpp='$CPP $CPPFLAGS' 6424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6426ac_compiler_gnu=$ac_cv_c_compiler_gnu 6427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6428printf %s "checking how to run the C preprocessor... " >&6; } 6429# On Suns, sometimes $CPP names a directory. 6430if test -n "$CPP" && test -d "$CPP"; then 6431 CPP= 6432fi 6433if test -z "$CPP"; then 6434 if test ${ac_cv_prog_CPP+y} 6435then : 6436 printf %s "(cached) " >&6 6437else $as_nop 6438 # Double quotes because $CC needs to be expanded 6439 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 6440 do 6441 ac_preproc_ok=false 6442for ac_c_preproc_warn_flag in '' yes 6443do 6444 # Use a header file that comes with gcc, so configuring glibc 6445 # with a fresh cross-compiler works. 6446 # On the NeXT, cc -E runs the code through the compiler's parser, 6447 # not just through cpp. "Syntax error" is here to catch this case. 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450#include <limits.h> 6451 Syntax error 6452_ACEOF 6453if ac_fn_c_try_cpp "$LINENO" 6454then : 6455 6456else $as_nop 6457 # Broken: fails on valid input. 6458continue 6459fi 6460rm -f conftest.err conftest.i conftest.$ac_ext 6461 6462 # OK, works on sane cases. Now check whether nonexistent headers 6463 # can be detected and how. 6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6465/* end confdefs.h. */ 6466#include <ac_nonexistent.h> 6467_ACEOF 6468if ac_fn_c_try_cpp "$LINENO" 6469then : 6470 # Broken: success on invalid input. 6471continue 6472else $as_nop 6473 # Passes both tests. 6474ac_preproc_ok=: 6475break 6476fi 6477rm -f conftest.err conftest.i conftest.$ac_ext 6478 6479done 6480# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6481rm -f conftest.i conftest.err conftest.$ac_ext 6482if $ac_preproc_ok 6483then : 6484 break 6485fi 6486 6487 done 6488 ac_cv_prog_CPP=$CPP 6489 6490fi 6491 CPP=$ac_cv_prog_CPP 6492else 6493 ac_cv_prog_CPP=$CPP 6494fi 6495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6496printf "%s\n" "$CPP" >&6; } 6497ac_preproc_ok=false 6498for ac_c_preproc_warn_flag in '' yes 6499do 6500 # Use a header file that comes with gcc, so configuring glibc 6501 # with a fresh cross-compiler works. 6502 # On the NeXT, cc -E runs the code through the compiler's parser, 6503 # not just through cpp. "Syntax error" is here to catch this case. 6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6505/* end confdefs.h. */ 6506#include <limits.h> 6507 Syntax error 6508_ACEOF 6509if ac_fn_c_try_cpp "$LINENO" 6510then : 6511 6512else $as_nop 6513 # Broken: fails on valid input. 6514continue 6515fi 6516rm -f conftest.err conftest.i conftest.$ac_ext 6517 6518 # OK, works on sane cases. Now check whether nonexistent headers 6519 # can be detected and how. 6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6521/* end confdefs.h. */ 6522#include <ac_nonexistent.h> 6523_ACEOF 6524if ac_fn_c_try_cpp "$LINENO" 6525then : 6526 # Broken: success on invalid input. 6527continue 6528else $as_nop 6529 # Passes both tests. 6530ac_preproc_ok=: 6531break 6532fi 6533rm -f conftest.err conftest.i conftest.$ac_ext 6534 6535done 6536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6537rm -f conftest.i conftest.err conftest.$ac_ext 6538if $ac_preproc_ok 6539then : 6540 6541else $as_nop 6542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6543printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 6544as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6545See \`config.log' for more details" "$LINENO" 5; } 6546fi 6547 6548ac_ext=c 6549ac_cpp='$CPP $CPPFLAGS' 6550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6552ac_compiler_gnu=$ac_cv_c_compiler_gnu 6553 6554 6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6556printf %s "checking for grep that handles long lines and -e... " >&6; } 6557if test ${ac_cv_path_GREP+y} 6558then : 6559 printf %s "(cached) " >&6 6560else $as_nop 6561 if test -z "$GREP"; then 6562 ac_path_GREP_found=false 6563 # Loop through the user's path and test for each of PROGNAME-LIST 6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6565for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6566do 6567 IFS=$as_save_IFS 6568 case $as_dir in #((( 6569 '') as_dir=./ ;; 6570 */) ;; 6571 *) as_dir=$as_dir/ ;; 6572 esac 6573 for ac_prog in grep ggrep 6574 do 6575 for ac_exec_ext in '' $ac_executable_extensions; do 6576 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 6577 as_fn_executable_p "$ac_path_GREP" || continue 6578# Check for GNU ac_path_GREP and select it if it is found. 6579 # Check for GNU $ac_path_GREP 6580case `"$ac_path_GREP" --version 2>&1` in 6581*GNU*) 6582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6583*) 6584 ac_count=0 6585 printf %s 0123456789 >"conftest.in" 6586 while : 6587 do 6588 cat "conftest.in" "conftest.in" >"conftest.tmp" 6589 mv "conftest.tmp" "conftest.in" 6590 cp "conftest.in" "conftest.nl" 6591 printf "%s\n" 'GREP' >> "conftest.nl" 6592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6594 as_fn_arith $ac_count + 1 && ac_count=$as_val 6595 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6596 # Best one so far, save it but keep looking for a better one 6597 ac_cv_path_GREP="$ac_path_GREP" 6598 ac_path_GREP_max=$ac_count 6599 fi 6600 # 10*(2^10) chars as input seems more than enough 6601 test $ac_count -gt 10 && break 6602 done 6603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6604esac 6605 6606 $ac_path_GREP_found && break 3 6607 done 6608 done 6609 done 6610IFS=$as_save_IFS 6611 if test -z "$ac_cv_path_GREP"; then 6612 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6613 fi 6614else 6615 ac_cv_path_GREP=$GREP 6616fi 6617 6618fi 6619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6620printf "%s\n" "$ac_cv_path_GREP" >&6; } 6621 GREP="$ac_cv_path_GREP" 6622 6623 6624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6625printf %s "checking for egrep... " >&6; } 6626if test ${ac_cv_path_EGREP+y} 6627then : 6628 printf %s "(cached) " >&6 6629else $as_nop 6630 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6631 then ac_cv_path_EGREP="$GREP -E" 6632 else 6633 if test -z "$EGREP"; then 6634 ac_path_EGREP_found=false 6635 # Loop through the user's path and test for each of PROGNAME-LIST 6636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6637for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6638do 6639 IFS=$as_save_IFS 6640 case $as_dir in #((( 6641 '') as_dir=./ ;; 6642 */) ;; 6643 *) as_dir=$as_dir/ ;; 6644 esac 6645 for ac_prog in egrep 6646 do 6647 for ac_exec_ext in '' $ac_executable_extensions; do 6648 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6649 as_fn_executable_p "$ac_path_EGREP" || continue 6650# Check for GNU ac_path_EGREP and select it if it is found. 6651 # Check for GNU $ac_path_EGREP 6652case `"$ac_path_EGREP" --version 2>&1` in 6653*GNU*) 6654 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6655*) 6656 ac_count=0 6657 printf %s 0123456789 >"conftest.in" 6658 while : 6659 do 6660 cat "conftest.in" "conftest.in" >"conftest.tmp" 6661 mv "conftest.tmp" "conftest.in" 6662 cp "conftest.in" "conftest.nl" 6663 printf "%s\n" 'EGREP' >> "conftest.nl" 6664 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6666 as_fn_arith $ac_count + 1 && ac_count=$as_val 6667 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6668 # Best one so far, save it but keep looking for a better one 6669 ac_cv_path_EGREP="$ac_path_EGREP" 6670 ac_path_EGREP_max=$ac_count 6671 fi 6672 # 10*(2^10) chars as input seems more than enough 6673 test $ac_count -gt 10 && break 6674 done 6675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6676esac 6677 6678 $ac_path_EGREP_found && break 3 6679 done 6680 done 6681 done 6682IFS=$as_save_IFS 6683 if test -z "$ac_cv_path_EGREP"; then 6684 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6685 fi 6686else 6687 ac_cv_path_EGREP=$EGREP 6688fi 6689 6690 fi 6691fi 6692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6693printf "%s\n" "$ac_cv_path_EGREP" >&6; } 6694 EGREP="$ac_cv_path_EGREP" 6695 6696 6697 6698 6699 6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 6701printf %s "checking for Minix Amsterdam compiler... " >&6; } 6702if test ${gl_cv_c_amsterdam_compiler+y} 6703then : 6704 printf %s "(cached) " >&6 6705else $as_nop 6706 6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6708/* end confdefs.h. */ 6709 6710#ifdef __ACK__ 6711Amsterdam 6712#endif 6713 6714_ACEOF 6715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6716 $EGREP "Amsterdam" >/dev/null 2>&1 6717then : 6718 gl_cv_c_amsterdam_compiler=yes 6719else $as_nop 6720 gl_cv_c_amsterdam_compiler=no 6721fi 6722rm -rf conftest* 6723 6724 6725fi 6726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 6727printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; } 6728 6729 if test $gl_cv_c_amsterdam_compiler = yes; then 6730 if test -z "$AR"; then 6731 AR='cc -c.a' 6732 fi 6733 if test -z "$ARFLAGS"; then 6734 ARFLAGS='-o' 6735 fi 6736 else 6737 6738 if test -n "$ac_tool_prefix"; then 6739 for ac_prog in ar lib "link -lib" 6740 do 6741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6742set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6744printf %s "checking for $ac_word... " >&6; } 6745if test ${ac_cv_prog_AR+y} 6746then : 6747 printf %s "(cached) " >&6 6748else $as_nop 6749 if test -n "$AR"; then 6750 ac_cv_prog_AR="$AR" # Let the user override the test. 6751else 6752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6753for as_dir in $PATH 6754do 6755 IFS=$as_save_IFS 6756 case $as_dir in #((( 6757 '') as_dir=./ ;; 6758 */) ;; 6759 *) as_dir=$as_dir/ ;; 6760 esac 6761 for ac_exec_ext in '' $ac_executable_extensions; do 6762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6763 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6765 break 2 6766 fi 6767done 6768 done 6769IFS=$as_save_IFS 6770 6771fi 6772fi 6773AR=$ac_cv_prog_AR 6774if test -n "$AR"; then 6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6776printf "%s\n" "$AR" >&6; } 6777else 6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6779printf "%s\n" "no" >&6; } 6780fi 6781 6782 6783 test -n "$AR" && break 6784 done 6785fi 6786if test -z "$AR"; then 6787 ac_ct_AR=$AR 6788 for ac_prog in ar lib "link -lib" 6789do 6790 # Extract the first word of "$ac_prog", so it can be a program name with args. 6791set dummy $ac_prog; ac_word=$2 6792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6793printf %s "checking for $ac_word... " >&6; } 6794if test ${ac_cv_prog_ac_ct_AR+y} 6795then : 6796 printf %s "(cached) " >&6 6797else $as_nop 6798 if test -n "$ac_ct_AR"; then 6799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6800else 6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6802for as_dir in $PATH 6803do 6804 IFS=$as_save_IFS 6805 case $as_dir in #((( 6806 '') as_dir=./ ;; 6807 */) ;; 6808 *) as_dir=$as_dir/ ;; 6809 esac 6810 for ac_exec_ext in '' $ac_executable_extensions; do 6811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6812 ac_cv_prog_ac_ct_AR="$ac_prog" 6813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6814 break 2 6815 fi 6816done 6817 done 6818IFS=$as_save_IFS 6819 6820fi 6821fi 6822ac_ct_AR=$ac_cv_prog_ac_ct_AR 6823if test -n "$ac_ct_AR"; then 6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6825printf "%s\n" "$ac_ct_AR" >&6; } 6826else 6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6828printf "%s\n" "no" >&6; } 6829fi 6830 6831 6832 test -n "$ac_ct_AR" && break 6833done 6834 6835 if test "x$ac_ct_AR" = x; then 6836 AR="false" 6837 else 6838 case $cross_compiling:$ac_tool_warned in 6839yes:) 6840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6841printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6842ac_tool_warned=yes ;; 6843esac 6844 AR=$ac_ct_AR 6845 fi 6846fi 6847 6848: ${AR=ar} 6849 6850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6851printf %s "checking the archiver ($AR) interface... " >&6; } 6852if test ${am_cv_ar_interface+y} 6853then : 6854 printf %s "(cached) " >&6 6855else $as_nop 6856 ac_ext=c 6857ac_cpp='$CPP $CPPFLAGS' 6858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6860ac_compiler_gnu=$ac_cv_c_compiler_gnu 6861 6862 am_cv_ar_interface=ar 6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6864/* end confdefs.h. */ 6865int some_variable = 0; 6866_ACEOF 6867if ac_fn_c_try_compile "$LINENO" 6868then : 6869 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6871 (eval $am_ar_try) 2>&5 6872 ac_status=$? 6873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6874 test $ac_status = 0; } 6875 if test "$ac_status" -eq 0; then 6876 am_cv_ar_interface=ar 6877 else 6878 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6880 (eval $am_ar_try) 2>&5 6881 ac_status=$? 6882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6883 test $ac_status = 0; } 6884 if test "$ac_status" -eq 0; then 6885 am_cv_ar_interface=lib 6886 else 6887 am_cv_ar_interface=unknown 6888 fi 6889 fi 6890 rm -f conftest.lib libconftest.a 6891 6892fi 6893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6894 ac_ext=c 6895ac_cpp='$CPP $CPPFLAGS' 6896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6898ac_compiler_gnu=$ac_cv_c_compiler_gnu 6899 6900fi 6901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6902printf "%s\n" "$am_cv_ar_interface" >&6; } 6903 6904case $am_cv_ar_interface in 6905ar) 6906 ;; 6907lib) 6908 # Microsoft lib, so override with the ar-lib wrapper script. 6909 # FIXME: It is wrong to rewrite AR. 6910 # But if we don't then we get into trouble of one sort or another. 6911 # A longer-term fix would be to have automake use am__AR in this case, 6912 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6913 # similar. 6914 AR="$am_aux_dir/ar-lib $AR" 6915 ;; 6916unknown) 6917 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6918 ;; 6919esac 6920 6921 fi 6922 6923 if test -n "$ac_tool_prefix"; then 6924 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6925set dummy ${ac_tool_prefix}ar; ac_word=$2 6926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6927printf %s "checking for $ac_word... " >&6; } 6928if test ${ac_cv_prog_AR+y} 6929then : 6930 printf %s "(cached) " >&6 6931else $as_nop 6932 if test -n "$AR"; then 6933 ac_cv_prog_AR="$AR" # Let the user override the test. 6934else 6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6936for as_dir in $PATH 6937do 6938 IFS=$as_save_IFS 6939 case $as_dir in #((( 6940 '') as_dir=./ ;; 6941 */) ;; 6942 *) as_dir=$as_dir/ ;; 6943 esac 6944 for ac_exec_ext in '' $ac_executable_extensions; do 6945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6946 ac_cv_prog_AR="${ac_tool_prefix}ar" 6947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6948 break 2 6949 fi 6950done 6951 done 6952IFS=$as_save_IFS 6953 6954fi 6955fi 6956AR=$ac_cv_prog_AR 6957if test -n "$AR"; then 6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6959printf "%s\n" "$AR" >&6; } 6960else 6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6962printf "%s\n" "no" >&6; } 6963fi 6964 6965 6966fi 6967if test -z "$ac_cv_prog_AR"; then 6968 ac_ct_AR=$AR 6969 # Extract the first word of "ar", so it can be a program name with args. 6970set dummy ar; ac_word=$2 6971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6972printf %s "checking for $ac_word... " >&6; } 6973if test ${ac_cv_prog_ac_ct_AR+y} 6974then : 6975 printf %s "(cached) " >&6 6976else $as_nop 6977 if test -n "$ac_ct_AR"; then 6978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6979else 6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6981for as_dir in $PATH 6982do 6983 IFS=$as_save_IFS 6984 case $as_dir in #((( 6985 '') as_dir=./ ;; 6986 */) ;; 6987 *) as_dir=$as_dir/ ;; 6988 esac 6989 for ac_exec_ext in '' $ac_executable_extensions; do 6990 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6991 ac_cv_prog_ac_ct_AR="ar" 6992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6993 break 2 6994 fi 6995done 6996 done 6997IFS=$as_save_IFS 6998 6999fi 7000fi 7001ac_ct_AR=$ac_cv_prog_ac_ct_AR 7002if test -n "$ac_ct_AR"; then 7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7004printf "%s\n" "$ac_ct_AR" >&6; } 7005else 7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7007printf "%s\n" "no" >&6; } 7008fi 7009 7010 if test "x$ac_ct_AR" = x; then 7011 AR="ar" 7012 else 7013 case $cross_compiling:$ac_tool_warned in 7014yes:) 7015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7016printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7017ac_tool_warned=yes ;; 7018esac 7019 AR=$ac_ct_AR 7020 fi 7021else 7022 AR="$ac_cv_prog_AR" 7023fi 7024 7025 if test -z "$ARFLAGS"; then 7026 ARFLAGS='cr' 7027 fi 7028 7029 7030 7031 if test -z "$RANLIB"; then 7032 if test $gl_cv_c_amsterdam_compiler = yes; then 7033 RANLIB=':' 7034 else 7035 if test -n "$ac_tool_prefix"; then 7036 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7037set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7039printf %s "checking for $ac_word... " >&6; } 7040if test ${ac_cv_prog_RANLIB+y} 7041then : 7042 printf %s "(cached) " >&6 7043else $as_nop 7044 if test -n "$RANLIB"; then 7045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7046else 7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048for as_dir in $PATH 7049do 7050 IFS=$as_save_IFS 7051 case $as_dir in #((( 7052 '') as_dir=./ ;; 7053 */) ;; 7054 *) as_dir=$as_dir/ ;; 7055 esac 7056 for ac_exec_ext in '' $ac_executable_extensions; do 7057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7060 break 2 7061 fi 7062done 7063 done 7064IFS=$as_save_IFS 7065 7066fi 7067fi 7068RANLIB=$ac_cv_prog_RANLIB 7069if test -n "$RANLIB"; then 7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7071printf "%s\n" "$RANLIB" >&6; } 7072else 7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7074printf "%s\n" "no" >&6; } 7075fi 7076 7077 7078fi 7079if test -z "$ac_cv_prog_RANLIB"; then 7080 ac_ct_RANLIB=$RANLIB 7081 # Extract the first word of "ranlib", so it can be a program name with args. 7082set dummy ranlib; ac_word=$2 7083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7084printf %s "checking for $ac_word... " >&6; } 7085if test ${ac_cv_prog_ac_ct_RANLIB+y} 7086then : 7087 printf %s "(cached) " >&6 7088else $as_nop 7089 if test -n "$ac_ct_RANLIB"; then 7090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7091else 7092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7093for as_dir in $PATH 7094do 7095 IFS=$as_save_IFS 7096 case $as_dir in #((( 7097 '') as_dir=./ ;; 7098 */) ;; 7099 *) as_dir=$as_dir/ ;; 7100 esac 7101 for ac_exec_ext in '' $ac_executable_extensions; do 7102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7103 ac_cv_prog_ac_ct_RANLIB="ranlib" 7104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7105 break 2 7106 fi 7107done 7108 done 7109IFS=$as_save_IFS 7110 7111fi 7112fi 7113ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7114if test -n "$ac_ct_RANLIB"; then 7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7116printf "%s\n" "$ac_ct_RANLIB" >&6; } 7117else 7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7119printf "%s\n" "no" >&6; } 7120fi 7121 7122 if test "x$ac_ct_RANLIB" = x; then 7123 RANLIB=":" 7124 else 7125 case $cross_compiling:$ac_tool_warned in 7126yes:) 7127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7128printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7129ac_tool_warned=yes ;; 7130esac 7131 RANLIB=$ac_ct_RANLIB 7132 fi 7133else 7134 RANLIB="$ac_cv_prog_RANLIB" 7135fi 7136 7137 fi 7138 fi 7139 7140 7141 7142 7143 7144 # Make sure we can run config.sub. 7145$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 7146 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 7147 7148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7149printf %s "checking build system type... " >&6; } 7150if test ${ac_cv_build+y} 7151then : 7152 printf %s "(cached) " >&6 7153else $as_nop 7154 ac_build_alias=$build_alias 7155test "x$ac_build_alias" = x && 7156 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 7157test "x$ac_build_alias" = x && 7158 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7159ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 7160 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 7161 7162fi 7163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7164printf "%s\n" "$ac_cv_build" >&6; } 7165case $ac_cv_build in 7166*-*-*) ;; 7167*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7168esac 7169build=$ac_cv_build 7170ac_save_IFS=$IFS; IFS='-' 7171set x $ac_cv_build 7172shift 7173build_cpu=$1 7174build_vendor=$2 7175shift; shift 7176# Remember, the first character of IFS is used to create $*, 7177# except with old shells: 7178build_os=$* 7179IFS=$ac_save_IFS 7180case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7181 7182 7183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7184printf %s "checking host system type... " >&6; } 7185if test ${ac_cv_host+y} 7186then : 7187 printf %s "(cached) " >&6 7188else $as_nop 7189 if test "x$host_alias" = x; then 7190 ac_cv_host=$ac_cv_build 7191else 7192 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 7193 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 7194fi 7195 7196fi 7197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7198printf "%s\n" "$ac_cv_host" >&6; } 7199case $ac_cv_host in 7200*-*-*) ;; 7201*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7202esac 7203host=$ac_cv_host 7204ac_save_IFS=$IFS; IFS='-' 7205set x $ac_cv_host 7206shift 7207host_cpu=$1 7208host_vendor=$2 7209shift; shift 7210# Remember, the first character of IFS is used to create $*, 7211# except with old shells: 7212host_os=$* 7213IFS=$ac_save_IFS 7214case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7215 7216 7217 7218 7219 7220 # IEEE behaviour is the default on all CPUs except Alpha and SH 7221 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4 7222 # and the GCC 4.1.2 manual). 7223 case "$host_cpu" in 7224 alpha*) 7225 # On Alpha systems, a compiler option provides the behaviour. 7226 # See the ieee(3) manual page, also available at 7227 # <https://backdrift.org/man/tru64/man3/ieee.3.html> 7228 if test -n "$GCC"; then 7229 # GCC has the option -mieee. 7230 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact. 7231 CPPFLAGS="$CPPFLAGS -mieee" 7232 else 7233 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact. 7234 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact. 7235 CPPFLAGS="$CPPFLAGS -ieee" 7236 fi 7237 ;; 7238 sh*) 7239 if test -n "$GCC"; then 7240 # GCC has the option -mieee. 7241 CPPFLAGS="$CPPFLAGS -mieee" 7242 fi 7243 ;; 7244 esac 7245 7246 7247 7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 7249printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 7250if test ${ac_cv_sys_largefile_source+y} 7251then : 7252 printf %s "(cached) " >&6 7253else $as_nop 7254 while :; do 7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7256/* end confdefs.h. */ 7257#include <sys/types.h> /* for off_t */ 7258 #include <stdio.h> 7259int 7260main (void) 7261{ 7262int (*fp) (FILE *, off_t, int) = fseeko; 7263 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 7264 ; 7265 return 0; 7266} 7267_ACEOF 7268if ac_fn_c_try_link "$LINENO" 7269then : 7270 ac_cv_sys_largefile_source=no; break 7271fi 7272rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7273 conftest$ac_exeext conftest.$ac_ext 7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275/* end confdefs.h. */ 7276#define _LARGEFILE_SOURCE 1 7277#include <sys/types.h> /* for off_t */ 7278 #include <stdio.h> 7279int 7280main (void) 7281{ 7282int (*fp) (FILE *, off_t, int) = fseeko; 7283 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 7284 ; 7285 return 0; 7286} 7287_ACEOF 7288if ac_fn_c_try_link "$LINENO" 7289then : 7290 ac_cv_sys_largefile_source=1; break 7291fi 7292rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7293 conftest$ac_exeext conftest.$ac_ext 7294 ac_cv_sys_largefile_source=unknown 7295 break 7296done 7297fi 7298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 7299printf "%s\n" "$ac_cv_sys_largefile_source" >&6; } 7300case $ac_cv_sys_largefile_source in #( 7301 no | unknown) ;; 7302 *) 7303printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h 7304;; 7305esac 7306rm -rf conftest* 7307 7308# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 7309# in glibc 2.1.3, but that breaks too many other things. 7310# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 7311if test $ac_cv_sys_largefile_source != unknown; then 7312 7313printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 7314 7315fi 7316 7317 case "$host_os" in 7318 hpux*) 7319 7320printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h 7321 7322 ;; 7323 esac 7324 7325# Check whether --enable-largefile was given. 7326if test ${enable_largefile+y} 7327then : 7328 enableval=$enable_largefile; 7329fi 7330 7331if test "$enable_largefile" != no; then 7332 7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 7334printf %s "checking for special C compiler options needed for large files... " >&6; } 7335if test ${ac_cv_sys_largefile_CC+y} 7336then : 7337 printf %s "(cached) " >&6 7338else $as_nop 7339 ac_cv_sys_largefile_CC=no 7340 if test "$GCC" != yes; then 7341 ac_save_CC=$CC 7342 while :; do 7343 # IRIX 6.2 and later do not support large files by default, 7344 # so use the C compiler's -n32 option if that helps. 7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7346/* end confdefs.h. */ 7347#include <sys/types.h> 7348 /* Check that off_t can represent 2**63 - 1 correctly. 7349 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7350 since some C++ compilers masquerading as C compilers 7351 incorrectly reject 9223372036854775807. */ 7352#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7354 && LARGE_OFF_T % 2147483647 == 1) 7355 ? 1 : -1]; 7356int 7357main (void) 7358{ 7359 7360 ; 7361 return 0; 7362} 7363_ACEOF 7364 if ac_fn_c_try_compile "$LINENO" 7365then : 7366 break 7367fi 7368rm -f core conftest.err conftest.$ac_objext conftest.beam 7369 CC="$CC -n32" 7370 if ac_fn_c_try_compile "$LINENO" 7371then : 7372 ac_cv_sys_largefile_CC=' -n32'; break 7373fi 7374rm -f core conftest.err conftest.$ac_objext conftest.beam 7375 break 7376 done 7377 CC=$ac_save_CC 7378 rm -f conftest.$ac_ext 7379 fi 7380fi 7381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 7382printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } 7383 if test "$ac_cv_sys_largefile_CC" != no; then 7384 CC=$CC$ac_cv_sys_largefile_CC 7385 fi 7386 7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 7388printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 7389if test ${ac_cv_sys_file_offset_bits+y} 7390then : 7391 printf %s "(cached) " >&6 7392else $as_nop 7393 while :; do 7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395/* end confdefs.h. */ 7396#include <sys/types.h> 7397 /* Check that off_t can represent 2**63 - 1 correctly. 7398 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7399 since some C++ compilers masquerading as C compilers 7400 incorrectly reject 9223372036854775807. */ 7401#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7403 && LARGE_OFF_T % 2147483647 == 1) 7404 ? 1 : -1]; 7405int 7406main (void) 7407{ 7408 7409 ; 7410 return 0; 7411} 7412_ACEOF 7413if ac_fn_c_try_compile "$LINENO" 7414then : 7415 ac_cv_sys_file_offset_bits=no; break 7416fi 7417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7419/* end confdefs.h. */ 7420#define _FILE_OFFSET_BITS 64 7421#include <sys/types.h> 7422 /* Check that off_t can represent 2**63 - 1 correctly. 7423 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7424 since some C++ compilers masquerading as C compilers 7425 incorrectly reject 9223372036854775807. */ 7426#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7427 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7428 && LARGE_OFF_T % 2147483647 == 1) 7429 ? 1 : -1]; 7430int 7431main (void) 7432{ 7433 7434 ; 7435 return 0; 7436} 7437_ACEOF 7438if ac_fn_c_try_compile "$LINENO" 7439then : 7440 ac_cv_sys_file_offset_bits=64; break 7441fi 7442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7443 ac_cv_sys_file_offset_bits=unknown 7444 break 7445done 7446fi 7447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 7448printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } 7449case $ac_cv_sys_file_offset_bits in #( 7450 no | unknown) ;; 7451 *) 7452printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h 7453;; 7454esac 7455rm -rf conftest* 7456 if test $ac_cv_sys_file_offset_bits = unknown; then 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 7458printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } 7459if test ${ac_cv_sys_large_files+y} 7460then : 7461 printf %s "(cached) " >&6 7462else $as_nop 7463 while :; do 7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7465/* end confdefs.h. */ 7466#include <sys/types.h> 7467 /* Check that off_t can represent 2**63 - 1 correctly. 7468 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7469 since some C++ compilers masquerading as C compilers 7470 incorrectly reject 9223372036854775807. */ 7471#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7472 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7473 && LARGE_OFF_T % 2147483647 == 1) 7474 ? 1 : -1]; 7475int 7476main (void) 7477{ 7478 7479 ; 7480 return 0; 7481} 7482_ACEOF 7483if ac_fn_c_try_compile "$LINENO" 7484then : 7485 ac_cv_sys_large_files=no; break 7486fi 7487rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7489/* end confdefs.h. */ 7490#define _LARGE_FILES 1 7491#include <sys/types.h> 7492 /* Check that off_t can represent 2**63 - 1 correctly. 7493 We can't simply define LARGE_OFF_T to be 9223372036854775807, 7494 since some C++ compilers masquerading as C compilers 7495 incorrectly reject 9223372036854775807. */ 7496#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) 7497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 7498 && LARGE_OFF_T % 2147483647 == 1) 7499 ? 1 : -1]; 7500int 7501main (void) 7502{ 7503 7504 ; 7505 return 0; 7506} 7507_ACEOF 7508if ac_fn_c_try_compile "$LINENO" 7509then : 7510 ac_cv_sys_large_files=1; break 7511fi 7512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7513 ac_cv_sys_large_files=unknown 7514 break 7515done 7516fi 7517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 7518printf "%s\n" "$ac_cv_sys_large_files" >&6; } 7519case $ac_cv_sys_large_files in #( 7520 no | unknown) ;; 7521 *) 7522printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h 7523;; 7524esac 7525rm -rf conftest* 7526 fi 7527fi 7528 7529 7530 7531 7532 7533 7534 7535 # Check whether --enable-threads was given. 7536if test ${enable_threads+y} 7537then : 7538 enableval=$enable_threads; gl_use_threads=$enableval 7539else $as_nop 7540 if test -n "$gl_use_threads_default"; then 7541 gl_use_threads="$gl_use_threads_default" 7542 else 7543 case "$host_os" in 7544 osf*) gl_use_threads=no ;; 7545 cygwin*) 7546 case `uname -r` in 7547 1.[0-5].*) gl_use_threads=no ;; 7548 *) gl_use_threads=yes ;; 7549 esac 7550 ;; 7551 mingw*) 7552 case "$gl_use_winpthreads_default" in 7553 yes) gl_use_threads=posix ;; 7554 no) gl_use_threads=windows ;; 7555 *) gl_use_threads=yes ;; 7556 esac 7557 ;; 7558 *) gl_use_threads=yes ;; 7559 esac 7560 fi 7561 7562fi 7563 7564 if test "$gl_use_threads" = yes \ 7565 || test "$gl_use_threads" = isoc \ 7566 || test "$gl_use_threads" = posix \ 7567 || test "$gl_use_threads" = isoc+posix; then 7568 # For using <threads.h> or <pthread.h>: 7569 7570 7571 if test -z "$gl_anythreadlib_early_done"; then 7572 case "$host_os" in 7573 osf*) 7574 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7575 # groks <pthread.h>. cc also understands the flag -pthread, but 7576 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7577 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7578 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 7579 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7580 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7581 ;; 7582 esac 7583 # Some systems optimize for single-threaded programs by default, and 7584 # need special flags to disable these optimizations. For example, the 7585 # definition of 'errno' in <errno.h>. 7586 case "$host_os" in 7587 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7588 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7589 esac 7590 gl_anythreadlib_early_done=done 7591 fi 7592 7593 fi 7594 7595 7596 7597 # Pre-early section. 7598 7599 7600 7601 7602 # Code from module absolute-header: 7603 # Code from module alloca: 7604 # Code from module alloca-opt: 7605 # Code from module alloca-opt-tests: 7606 # Code from module arpa_inet: 7607 # Code from module arpa_inet-tests: 7608 # Code from module assure: 7609 # Code from module attribute: 7610 # Code from module autobuild: 7611 7612 7613 7614 7615 if test -z "$AB_PACKAGE"; then 7616 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE} 7617 fi 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5 7619printf "%s\n" "$as_me: autobuild project... $AB_PACKAGE" >&6;} 7620 7621 if test -z "$AB_VERSION"; then 7622 AB_VERSION=${PACKAGE_VERSION:-$VERSION} 7623 fi 7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5 7625printf "%s\n" "$as_me: autobuild revision... $AB_VERSION" >&6;} 7626 7627 hostname=`hostname` 7628 if test "$hostname"; then 7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5 7630printf "%s\n" "$as_me: autobuild hostname... $hostname" >&6;} 7631 fi 7632 7633 7634 7635 date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ` 7636 if test "$?" != 0; then 7637 date=`date` 7638 fi 7639 if test "$date"; then 7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5 7641printf "%s\n" "$as_me: autobuild timestamp... $date" >&6;} 7642 fi 7643 7644 # Code from module basename-lgpl: 7645 # Code from module binary-io: 7646 # Code from module binary-io-tests: 7647 # Code from module btowc: 7648 # Code from module btowc-tests: 7649 # Code from module c-ctype: 7650 # Code from module c-ctype-tests: 7651 # Code from module c-strcase: 7652 # Code from module c-strcase-tests: 7653 # Code from module c-strcaseeq: 7654 # Code from module c99: 7655 # Code from module cloexec: 7656 # Code from module cloexec-tests: 7657 # Code from module close: 7658 # Code from module close-tests: 7659 # Code from module connect: 7660 # Code from module connect-tests: 7661 # Code from module ctype: 7662 # Code from module ctype-tests: 7663 # Code from module double-slash-root: 7664 # Code from module dup2: 7665 # Code from module dup2-tests: 7666 # Code from module environ: 7667 # Code from module environ-tests: 7668 # Code from module errno: 7669 # Code from module errno-tests: 7670 # Code from module error: 7671 # Code from module exitfail: 7672 # Code from module extensions: 7673 # Code from module extern-inline: 7674 # Code from module fcntl: 7675 # Code from module fcntl-h: 7676 # Code from module fcntl-h-tests: 7677 # Code from module fcntl-tests: 7678 # Code from module fd-hook: 7679 # Code from module fdl-1.3: 7680 # Code from module fdopen: 7681 # Code from module fdopen-tests: 7682 # Code from module fgetc-tests: 7683 # Code from module filename: 7684 # Code from module flexmember: 7685 # Code from module float: 7686 # Code from module float-tests: 7687 # Code from module fopen: 7688 # Code from module fopen-gnu: 7689 # Code from module fopen-gnu-tests: 7690 # Code from module fopen-tests: 7691 # Code from module fpieee: 7692 7693 # Code from module fpucw: 7694 # Code from module fputc-tests: 7695 # Code from module fread-tests: 7696 # Code from module fseek: 7697 # Code from module fseek-tests: 7698 # Code from module fseeko: 7699 7700 # Code from module fseeko-tests: 7701 # Code from module fstat: 7702 # Code from module fstat-tests: 7703 # Code from module fwrite-tests: 7704 # Code from module gendocs: 7705 # Code from module getaddrinfo: 7706 # Code from module getaddrinfo-tests: 7707 # Code from module getcwd-lgpl: 7708 # Code from module getcwd-lgpl-tests: 7709 # Code from module getdelim: 7710 # Code from module getdelim-tests: 7711 # Code from module getdtablesize: 7712 # Code from module getdtablesize-tests: 7713 # Code from module getline: 7714 # Code from module getline-tests: 7715 # Code from module getopt-gnu: 7716 # Code from module getopt-gnu-tests: 7717 # Code from module getopt-posix: 7718 # Code from module getopt-posix-tests: 7719 # Code from module getpagesize: 7720 # Code from module getpass: 7721 # Code from module getpass-gnu: 7722 # Code from module getprogname: 7723 # Code from module getprogname-tests: 7724 # Code from module gettext-h: 7725 # Code from module gnumakefile: 7726 # Code from module gnupload: 7727 # Code from module gperf: 7728 # Code from module hard-locale: 7729 # Code from module hard-locale-tests: 7730 # Code from module havelib: 7731 # Code from module hostent: 7732 # Code from module iconv: 7733 # Code from module iconv-h: 7734 # Code from module iconv-h-tests: 7735 # Code from module iconv-tests: 7736 # Code from module iconv_open: 7737 # Code from module ignore-value: 7738 # Code from module ignore-value-tests: 7739 # Code from module include_next: 7740 # Code from module inet_ntop: 7741 # Code from module inet_ntop-tests: 7742 # Code from module inet_pton: 7743 # Code from module inet_pton-tests: 7744 # Code from module inline: 7745 # Code from module intprops: 7746 # Code from module intprops-tests: 7747 # Code from module inttypes: 7748 # Code from module inttypes-incomplete: 7749 # Code from module inttypes-tests: 7750 # Code from module isblank: 7751 # Code from module isblank-tests: 7752 # Code from module langinfo: 7753 # Code from module langinfo-tests: 7754 # Code from module largefile: 7755 7756 # Code from module limits-h: 7757 # Code from module limits-h-tests: 7758 # Code from module localcharset: 7759 # Code from module localcharset-tests: 7760 # Code from module locale: 7761 # Code from module locale-tests: 7762 # Code from module localename: 7763 # Code from module localename-tests: 7764 # Code from module lock: 7765 # Code from module lock-tests: 7766 # Code from module lseek: 7767 # Code from module lseek-tests: 7768 # Code from module lstat: 7769 # Code from module lstat-tests: 7770 # Code from module maintainer-makefile: 7771 # Code from module malloc-posix: 7772 # Code from module malloca: 7773 # Code from module malloca-tests: 7774 # Code from module manywarnings: 7775 # Code from module mbrtowc: 7776 # Code from module mbrtowc-tests: 7777 # Code from module mbsinit: 7778 # Code from module mbsinit-tests: 7779 # Code from module mbtowc: 7780 # Code from module memchr: 7781 # Code from module memchr-tests: 7782 # Code from module minmax: 7783 # Code from module msvc-inval: 7784 # Code from module msvc-nothrow: 7785 # Code from module multiarch: 7786 # Code from module nanosleep: 7787 # Code from module nanosleep-tests: 7788 # Code from module netdb: 7789 # Code from module netdb-tests: 7790 # Code from module netinet_in: 7791 # Code from module netinet_in-tests: 7792 # Code from module nocrash: 7793 # Code from module open: 7794 # Code from module open-tests: 7795 # Code from module pathmax: 7796 # Code from module pathmax-tests: 7797 # Code from module pmccabe2html: 7798 # Code from module poll: 7799 # Code from module poll-h: 7800 # Code from module poll-h-tests: 7801 # Code from module progname: 7802 # Code from module pthread-h: 7803 7804 7805 if test -z "$gl_anythreadlib_early_done"; then 7806 case "$host_os" in 7807 osf*) 7808 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7809 # groks <pthread.h>. cc also understands the flag -pthread, but 7810 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7811 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7812 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 7813 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7814 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7815 ;; 7816 esac 7817 # Some systems optimize for single-threaded programs by default, and 7818 # need special flags to disable these optimizations. For example, the 7819 # definition of 'errno' in <errno.h>. 7820 case "$host_os" in 7821 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7822 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7823 esac 7824 gl_anythreadlib_early_done=done 7825 fi 7826 7827 # Code from module pthread-h-tests: 7828 # Code from module pthread-thread: 7829 # Code from module pthread-thread-tests: 7830 # Code from module pthread_sigmask: 7831 # Code from module pthread_sigmask-tests: 7832 # Code from module putenv: 7833 # Code from module quote: 7834 # Code from module quotearg: 7835 # Code from module quotearg-simple: 7836 # Code from module quotearg-simple-tests: 7837 # Code from module raise: 7838 # Code from module raise-tests: 7839 # Code from module readline: 7840 # Code from module recv: 7841 # Code from module recv-tests: 7842 # Code from module same-inode: 7843 # Code from module sched: 7844 # Code from module sched-tests: 7845 # Code from module select: 7846 # Code from module servent: 7847 # Code from module setenv: 7848 # Code from module setenv-tests: 7849 # Code from module setlocale: 7850 # Code from module setlocale-null: 7851 # Code from module setlocale-null-tests: 7852 # Code from module setlocale-tests: 7853 # Code from module shutdown: 7854 # Code from module shutdown-tests: 7855 # Code from module sigaction: 7856 # Code from module sigaction-tests: 7857 # Code from module signal-h: 7858 # Code from module signal-h-tests: 7859 # Code from module sigprocmask: 7860 # Code from module sigprocmask-tests: 7861 # Code from module size_max: 7862 # Code from module sleep: 7863 # Code from module sleep-tests: 7864 # Code from module snippet/_Noreturn: 7865 # Code from module snippet/arg-nonnull: 7866 # Code from module snippet/c++defs: 7867 # Code from module snippet/unused-parameter: 7868 # Code from module snippet/warn-on-use: 7869 # Code from module snprintf: 7870 # Code from module snprintf-tests: 7871 # Code from module socket: 7872 # Code from module socketlib: 7873 # Code from module sockets: 7874 # Code from module sockets-tests: 7875 # Code from module socklen: 7876 # Code from module ssize_t: 7877 # Code from module stat: 7878 # Code from module stat-tests: 7879 # Code from module stat-time: 7880 # Code from module stat-time-tests: 7881 # Code from module std-gnu11: 7882 # Code from module stdalign: 7883 # Code from module stdalign-tests: 7884 # Code from module stdarg: 7885 7886 7887 7888 # Code from module stdarg-tests: 7889 # Code from module stdbool: 7890 # Code from module stdbool-tests: 7891 # Code from module stddef: 7892 # Code from module stddef-tests: 7893 # Code from module stdint: 7894 # Code from module stdint-tests: 7895 # Code from module stdio: 7896 # Code from module stdio-tests: 7897 # Code from module stdlib: 7898 # Code from module stdlib-tests: 7899 # Code from module strdup-posix: 7900 # Code from module streq: 7901 # Code from module strerror: 7902 # Code from module strerror-override: 7903 # Code from module strerror-tests: 7904 # Code from module striconv: 7905 # Code from module striconv-tests: 7906 # Code from module string: 7907 # Code from module string-tests: 7908 # Code from module strtok_r: 7909 # Code from module symlink: 7910 # Code from module symlink-tests: 7911 # Code from module sys_select: 7912 # Code from module sys_select-tests: 7913 # Code from module sys_socket: 7914 # Code from module sys_socket-tests: 7915 # Code from module sys_stat: 7916 # Code from module sys_stat-tests: 7917 # Code from module sys_time: 7918 # Code from module sys_time-tests: 7919 # Code from module sys_types: 7920 # Code from module sys_types-tests: 7921 # Code from module sys_uio: 7922 # Code from module sys_uio-tests: 7923 # Code from module test-framework-sh: 7924 # Code from module test-framework-sh-tests: 7925 # Code from module thread: 7926 # Code from module thread-optim: 7927 # Code from module thread-tests: 7928 # Code from module threadlib: 7929 7930 7931 7932 # Code from module time: 7933 # Code from module time-tests: 7934 # Code from module unistd: 7935 # Code from module unistd-tests: 7936 # Code from module unistr/base: 7937 # Code from module unistr/u8-mbtoucr: 7938 # Code from module unistr/u8-mbtoucr-tests: 7939 # Code from module unistr/u8-uctomb: 7940 # Code from module unistr/u8-uctomb-tests: 7941 # Code from module unitypes: 7942 # Code from module unsetenv: 7943 # Code from module unsetenv-tests: 7944 # Code from module update-copyright: 7945 # Code from module useless-if-before-free: 7946 # Code from module usleep: 7947 # Code from module usleep-tests: 7948 # Code from module valgrind-tests: 7949 # Code from module vasnprintf: 7950 # Code from module vasnprintf-tests: 7951 # Code from module vasprintf: 7952 # Code from module vasprintf-tests: 7953 # Code from module vc-list-files: 7954 # Code from module vc-list-files-tests: 7955 # Code from module verify: 7956 # Code from module verify-tests: 7957 # Code from module version-etc: 7958 # Code from module version-etc-fsf: 7959 # Code from module version-etc-tests: 7960 # Code from module warnings: 7961 # Code from module wchar: 7962 # Code from module wchar-tests: 7963 # Code from module wcrtomb: 7964 # Code from module wcrtomb-tests: 7965 # Code from module wctob: 7966 # Code from module wctomb: 7967 # Code from module wctype-h: 7968 # Code from module wctype-h-tests: 7969 # Code from module windows-mutex: 7970 # Code from module windows-once: 7971 # Code from module windows-recmutex: 7972 # Code from module windows-rwlock: 7973 # Code from module windows-thread: 7974 # Code from module windows-tls: 7975 # Code from module xalloc: 7976 # Code from module xalloc-die: 7977 # Code from module xalloc-die-tests: 7978 # Code from module xalloc-oversized: 7979 # Code from module xsize: 7980 # Code from module yield: 7981 7982 7983 7984 if test -n "$ac_tool_prefix"; then 7985 for ac_prog in ar lib "link -lib" 7986 do 7987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7988set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7990printf %s "checking for $ac_word... " >&6; } 7991if test ${ac_cv_prog_AR+y} 7992then : 7993 printf %s "(cached) " >&6 7994else $as_nop 7995 if test -n "$AR"; then 7996 ac_cv_prog_AR="$AR" # Let the user override the test. 7997else 7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7999for as_dir in $PATH 8000do 8001 IFS=$as_save_IFS 8002 case $as_dir in #((( 8003 '') as_dir=./ ;; 8004 */) ;; 8005 *) as_dir=$as_dir/ ;; 8006 esac 8007 for ac_exec_ext in '' $ac_executable_extensions; do 8008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8009 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8011 break 2 8012 fi 8013done 8014 done 8015IFS=$as_save_IFS 8016 8017fi 8018fi 8019AR=$ac_cv_prog_AR 8020if test -n "$AR"; then 8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8022printf "%s\n" "$AR" >&6; } 8023else 8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8025printf "%s\n" "no" >&6; } 8026fi 8027 8028 8029 test -n "$AR" && break 8030 done 8031fi 8032if test -z "$AR"; then 8033 ac_ct_AR=$AR 8034 for ac_prog in ar lib "link -lib" 8035do 8036 # Extract the first word of "$ac_prog", so it can be a program name with args. 8037set dummy $ac_prog; ac_word=$2 8038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8039printf %s "checking for $ac_word... " >&6; } 8040if test ${ac_cv_prog_ac_ct_AR+y} 8041then : 8042 printf %s "(cached) " >&6 8043else $as_nop 8044 if test -n "$ac_ct_AR"; then 8045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8046else 8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8048for as_dir in $PATH 8049do 8050 IFS=$as_save_IFS 8051 case $as_dir in #((( 8052 '') as_dir=./ ;; 8053 */) ;; 8054 *) as_dir=$as_dir/ ;; 8055 esac 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8058 ac_cv_prog_ac_ct_AR="$ac_prog" 8059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8060 break 2 8061 fi 8062done 8063 done 8064IFS=$as_save_IFS 8065 8066fi 8067fi 8068ac_ct_AR=$ac_cv_prog_ac_ct_AR 8069if test -n "$ac_ct_AR"; then 8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8071printf "%s\n" "$ac_ct_AR" >&6; } 8072else 8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8074printf "%s\n" "no" >&6; } 8075fi 8076 8077 8078 test -n "$ac_ct_AR" && break 8079done 8080 8081 if test "x$ac_ct_AR" = x; then 8082 AR="false" 8083 else 8084 case $cross_compiling:$ac_tool_warned in 8085yes:) 8086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8087printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8088ac_tool_warned=yes ;; 8089esac 8090 AR=$ac_ct_AR 8091 fi 8092fi 8093 8094: ${AR=ar} 8095 8096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 8097printf %s "checking the archiver ($AR) interface... " >&6; } 8098if test ${am_cv_ar_interface+y} 8099then : 8100 printf %s "(cached) " >&6 8101else $as_nop 8102 ac_ext=c 8103ac_cpp='$CPP $CPPFLAGS' 8104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8106ac_compiler_gnu=$ac_cv_c_compiler_gnu 8107 8108 am_cv_ar_interface=ar 8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110/* end confdefs.h. */ 8111int some_variable = 0; 8112_ACEOF 8113if ac_fn_c_try_compile "$LINENO" 8114then : 8115 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 8116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8117 (eval $am_ar_try) 2>&5 8118 ac_status=$? 8119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8120 test $ac_status = 0; } 8121 if test "$ac_status" -eq 0; then 8122 am_cv_ar_interface=ar 8123 else 8124 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 8125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 8126 (eval $am_ar_try) 2>&5 8127 ac_status=$? 8128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8129 test $ac_status = 0; } 8130 if test "$ac_status" -eq 0; then 8131 am_cv_ar_interface=lib 8132 else 8133 am_cv_ar_interface=unknown 8134 fi 8135 fi 8136 rm -f conftest.lib libconftest.a 8137 8138fi 8139rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8140 ac_ext=c 8141ac_cpp='$CPP $CPPFLAGS' 8142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8144ac_compiler_gnu=$ac_cv_c_compiler_gnu 8145 8146fi 8147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 8148printf "%s\n" "$am_cv_ar_interface" >&6; } 8149 8150case $am_cv_ar_interface in 8151ar) 8152 ;; 8153lib) 8154 # Microsoft lib, so override with the ar-lib wrapper script. 8155 # FIXME: It is wrong to rewrite AR. 8156 # But if we don't then we get into trouble of one sort or another. 8157 # A longer-term fix would be to have automake use am__AR in this case, 8158 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 8159 # similar. 8160 AR="$am_aux_dir/ar-lib $AR" 8161 ;; 8162unknown) 8163 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 8164 ;; 8165esac 8166 8167case `pwd` in 8168 *\ * | *\ *) 8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8170printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8171esac 8172 8173 8174 8175macro_version='2.4.6' 8176macro_revision='2.4.6' 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191ltmain=$ac_aux_dir/ltmain.sh 8192 8193# Backslashify metacharacters that are still active within 8194# double-quoted strings. 8195sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8196 8197# Same as above, but do not quote variable references. 8198double_quote_subst='s/\(["`\\]\)/\\\1/g' 8199 8200# Sed substitution to delay expansion of an escaped shell variable in a 8201# double_quote_subst'ed string. 8202delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8203 8204# Sed substitution to delay expansion of an escaped single quote. 8205delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8206 8207# Sed substitution to avoid accidental globbing in evaled expressions 8208no_glob_subst='s/\*/\\\*/g' 8209 8210ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8211ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8212ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8213 8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8215printf %s "checking how to print strings... " >&6; } 8216# Test print first, because it will be a builtin if present. 8217if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8218 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8219 ECHO='print -r --' 8220elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8221 ECHO='printf %s\n' 8222else 8223 # Use this function as a fallback that always works. 8224 func_fallback_echo () 8225 { 8226 eval 'cat <<_LTECHO_EOF 8227$1 8228_LTECHO_EOF' 8229 } 8230 ECHO='func_fallback_echo' 8231fi 8232 8233# func_echo_all arg... 8234# Invoke $ECHO with all args, space-separated. 8235func_echo_all () 8236{ 8237 $ECHO "" 8238} 8239 8240case $ECHO in 8241 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8242printf "%s\n" "printf" >&6; } ;; 8243 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8244printf "%s\n" "print -r" >&6; } ;; 8245 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8246printf "%s\n" "cat" >&6; } ;; 8247esac 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8263printf %s "checking for a sed that does not truncate output... " >&6; } 8264if test ${ac_cv_path_SED+y} 8265then : 8266 printf %s "(cached) " >&6 8267else $as_nop 8268 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8269 for ac_i in 1 2 3 4 5 6 7; do 8270 ac_script="$ac_script$as_nl$ac_script" 8271 done 8272 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8273 { ac_script=; unset ac_script;} 8274 if test -z "$SED"; then 8275 ac_path_SED_found=false 8276 # Loop through the user's path and test for each of PROGNAME-LIST 8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8278for as_dir in $PATH 8279do 8280 IFS=$as_save_IFS 8281 case $as_dir in #((( 8282 '') as_dir=./ ;; 8283 */) ;; 8284 *) as_dir=$as_dir/ ;; 8285 esac 8286 for ac_prog in sed gsed 8287 do 8288 for ac_exec_ext in '' $ac_executable_extensions; do 8289 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 8290 as_fn_executable_p "$ac_path_SED" || continue 8291# Check for GNU ac_path_SED and select it if it is found. 8292 # Check for GNU $ac_path_SED 8293case `"$ac_path_SED" --version 2>&1` in 8294*GNU*) 8295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8296*) 8297 ac_count=0 8298 printf %s 0123456789 >"conftest.in" 8299 while : 8300 do 8301 cat "conftest.in" "conftest.in" >"conftest.tmp" 8302 mv "conftest.tmp" "conftest.in" 8303 cp "conftest.in" "conftest.nl" 8304 printf "%s\n" '' >> "conftest.nl" 8305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8307 as_fn_arith $ac_count + 1 && ac_count=$as_val 8308 if test $ac_count -gt ${ac_path_SED_max-0}; then 8309 # Best one so far, save it but keep looking for a better one 8310 ac_cv_path_SED="$ac_path_SED" 8311 ac_path_SED_max=$ac_count 8312 fi 8313 # 10*(2^10) chars as input seems more than enough 8314 test $ac_count -gt 10 && break 8315 done 8316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8317esac 8318 8319 $ac_path_SED_found && break 3 8320 done 8321 done 8322 done 8323IFS=$as_save_IFS 8324 if test -z "$ac_cv_path_SED"; then 8325 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8326 fi 8327else 8328 ac_cv_path_SED=$SED 8329fi 8330 8331fi 8332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8333printf "%s\n" "$ac_cv_path_SED" >&6; } 8334 SED="$ac_cv_path_SED" 8335 rm -f conftest.sed 8336 8337test -z "$SED" && SED=sed 8338Xsed="$SED -e 1s/^X//" 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8351printf %s "checking for fgrep... " >&6; } 8352if test ${ac_cv_path_FGREP+y} 8353then : 8354 printf %s "(cached) " >&6 8355else $as_nop 8356 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8357 then ac_cv_path_FGREP="$GREP -F" 8358 else 8359 if test -z "$FGREP"; then 8360 ac_path_FGREP_found=false 8361 # Loop through the user's path and test for each of PROGNAME-LIST 8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8363for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8364do 8365 IFS=$as_save_IFS 8366 case $as_dir in #((( 8367 '') as_dir=./ ;; 8368 */) ;; 8369 *) as_dir=$as_dir/ ;; 8370 esac 8371 for ac_prog in fgrep 8372 do 8373 for ac_exec_ext in '' $ac_executable_extensions; do 8374 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 8375 as_fn_executable_p "$ac_path_FGREP" || continue 8376# Check for GNU ac_path_FGREP and select it if it is found. 8377 # Check for GNU $ac_path_FGREP 8378case `"$ac_path_FGREP" --version 2>&1` in 8379*GNU*) 8380 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8381*) 8382 ac_count=0 8383 printf %s 0123456789 >"conftest.in" 8384 while : 8385 do 8386 cat "conftest.in" "conftest.in" >"conftest.tmp" 8387 mv "conftest.tmp" "conftest.in" 8388 cp "conftest.in" "conftest.nl" 8389 printf "%s\n" 'FGREP' >> "conftest.nl" 8390 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8392 as_fn_arith $ac_count + 1 && ac_count=$as_val 8393 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8394 # Best one so far, save it but keep looking for a better one 8395 ac_cv_path_FGREP="$ac_path_FGREP" 8396 ac_path_FGREP_max=$ac_count 8397 fi 8398 # 10*(2^10) chars as input seems more than enough 8399 test $ac_count -gt 10 && break 8400 done 8401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8402esac 8403 8404 $ac_path_FGREP_found && break 3 8405 done 8406 done 8407 done 8408IFS=$as_save_IFS 8409 if test -z "$ac_cv_path_FGREP"; then 8410 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8411 fi 8412else 8413 ac_cv_path_FGREP=$FGREP 8414fi 8415 8416 fi 8417fi 8418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8419printf "%s\n" "$ac_cv_path_FGREP" >&6; } 8420 FGREP="$ac_cv_path_FGREP" 8421 8422 8423test -z "$GREP" && GREP=grep 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443# Check whether --with-gnu-ld was given. 8444if test ${with_gnu_ld+y} 8445then : 8446 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8447else $as_nop 8448 with_gnu_ld=no 8449fi 8450 8451ac_prog=ld 8452if test yes = "$GCC"; then 8453 # Check if gcc -print-prog-name=ld gives a path. 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8455printf %s "checking for ld used by $CC... " >&6; } 8456 case $host in 8457 *-*-mingw*) 8458 # gcc leaves a trailing carriage return, which upsets mingw 8459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8460 *) 8461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8462 esac 8463 case $ac_prog in 8464 # Accept absolute paths. 8465 [\\/]* | ?:[\\/]*) 8466 re_direlt='/[^/][^/]*/\.\./' 8467 # Canonicalize the pathname of ld 8468 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8469 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8470 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8471 done 8472 test -z "$LD" && LD=$ac_prog 8473 ;; 8474 "") 8475 # If it fails, then pretend we aren't using GCC. 8476 ac_prog=ld 8477 ;; 8478 *) 8479 # If it is relative, then search for the first ld in PATH. 8480 with_gnu_ld=unknown 8481 ;; 8482 esac 8483elif test yes = "$with_gnu_ld"; then 8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8485printf %s "checking for GNU ld... " >&6; } 8486else 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8488printf %s "checking for non-GNU ld... " >&6; } 8489fi 8490if test ${lt_cv_path_LD+y} 8491then : 8492 printf %s "(cached) " >&6 8493else $as_nop 8494 if test -z "$LD"; then 8495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8496 for ac_dir in $PATH; do 8497 IFS=$lt_save_ifs 8498 test -z "$ac_dir" && ac_dir=. 8499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8500 lt_cv_path_LD=$ac_dir/$ac_prog 8501 # Check to see if the program is GNU ld. I'd rather use --version, 8502 # but apparently some variants of GNU ld only accept -v. 8503 # Break only if it was the GNU/non-GNU ld that we prefer. 8504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8505 *GNU* | *'with BFD'*) 8506 test no != "$with_gnu_ld" && break 8507 ;; 8508 *) 8509 test yes != "$with_gnu_ld" && break 8510 ;; 8511 esac 8512 fi 8513 done 8514 IFS=$lt_save_ifs 8515else 8516 lt_cv_path_LD=$LD # Let the user override the test with a path. 8517fi 8518fi 8519 8520LD=$lt_cv_path_LD 8521if test -n "$LD"; then 8522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8523printf "%s\n" "$LD" >&6; } 8524else 8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8526printf "%s\n" "no" >&6; } 8527fi 8528test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8530printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 8531if test ${lt_cv_prog_gnu_ld+y} 8532then : 8533 printf %s "(cached) " >&6 8534else $as_nop 8535 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8536case `$LD -v 2>&1 </dev/null` in 8537*GNU* | *'with BFD'*) 8538 lt_cv_prog_gnu_ld=yes 8539 ;; 8540*) 8541 lt_cv_prog_gnu_ld=no 8542 ;; 8543esac 8544fi 8545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8546printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 8547with_gnu_ld=$lt_cv_prog_gnu_ld 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8558printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8559if test ${lt_cv_path_NM+y} 8560then : 8561 printf %s "(cached) " >&6 8562else $as_nop 8563 if test -n "$NM"; then 8564 # Let the user override the test. 8565 lt_cv_path_NM=$NM 8566else 8567 lt_nm_to_check=${ac_tool_prefix}nm 8568 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8569 lt_nm_to_check="$lt_nm_to_check nm" 8570 fi 8571 for lt_tmp_nm in $lt_nm_to_check; do 8572 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8573 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8574 IFS=$lt_save_ifs 8575 test -z "$ac_dir" && ac_dir=. 8576 tmp_nm=$ac_dir/$lt_tmp_nm 8577 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8578 # Check to see if the nm accepts a BSD-compat flag. 8579 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8580 # nm: unknown option "B" ignored 8581 # Tru64's nm complains that /dev/null is an invalid object file 8582 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8583 case $build_os in 8584 mingw*) lt_bad_file=conftest.nm/nofile ;; 8585 *) lt_bad_file=/dev/null ;; 8586 esac 8587 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 8588 *$lt_bad_file* | *'Invalid file or object type'*) 8589 lt_cv_path_NM="$tmp_nm -B" 8590 break 2 8591 ;; 8592 *) 8593 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8594 */dev/null*) 8595 lt_cv_path_NM="$tmp_nm -p" 8596 break 2 8597 ;; 8598 *) 8599 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8600 continue # so that we can try to find one that supports BSD flags 8601 ;; 8602 esac 8603 ;; 8604 esac 8605 fi 8606 done 8607 IFS=$lt_save_ifs 8608 done 8609 : ${lt_cv_path_NM=no} 8610fi 8611fi 8612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8613printf "%s\n" "$lt_cv_path_NM" >&6; } 8614if test no != "$lt_cv_path_NM"; then 8615 NM=$lt_cv_path_NM 8616else 8617 # Didn't find any BSD compatible name lister, look for dumpbin. 8618 if test -n "$DUMPBIN"; then : 8619 # Let the user override the test. 8620 else 8621 if test -n "$ac_tool_prefix"; then 8622 for ac_prog in dumpbin "link -dump" 8623 do 8624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8625set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8627printf %s "checking for $ac_word... " >&6; } 8628if test ${ac_cv_prog_DUMPBIN+y} 8629then : 8630 printf %s "(cached) " >&6 8631else $as_nop 8632 if test -n "$DUMPBIN"; then 8633 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8634else 8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8636for as_dir in $PATH 8637do 8638 IFS=$as_save_IFS 8639 case $as_dir in #((( 8640 '') as_dir=./ ;; 8641 */) ;; 8642 *) as_dir=$as_dir/ ;; 8643 esac 8644 for ac_exec_ext in '' $ac_executable_extensions; do 8645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8646 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8648 break 2 8649 fi 8650done 8651 done 8652IFS=$as_save_IFS 8653 8654fi 8655fi 8656DUMPBIN=$ac_cv_prog_DUMPBIN 8657if test -n "$DUMPBIN"; then 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8659printf "%s\n" "$DUMPBIN" >&6; } 8660else 8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8662printf "%s\n" "no" >&6; } 8663fi 8664 8665 8666 test -n "$DUMPBIN" && break 8667 done 8668fi 8669if test -z "$DUMPBIN"; then 8670 ac_ct_DUMPBIN=$DUMPBIN 8671 for ac_prog in dumpbin "link -dump" 8672do 8673 # Extract the first word of "$ac_prog", so it can be a program name with args. 8674set dummy $ac_prog; ac_word=$2 8675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8676printf %s "checking for $ac_word... " >&6; } 8677if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 8678then : 8679 printf %s "(cached) " >&6 8680else $as_nop 8681 if test -n "$ac_ct_DUMPBIN"; then 8682 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8683else 8684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8685for as_dir in $PATH 8686do 8687 IFS=$as_save_IFS 8688 case $as_dir in #((( 8689 '') as_dir=./ ;; 8690 */) ;; 8691 *) as_dir=$as_dir/ ;; 8692 esac 8693 for ac_exec_ext in '' $ac_executable_extensions; do 8694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8695 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8697 break 2 8698 fi 8699done 8700 done 8701IFS=$as_save_IFS 8702 8703fi 8704fi 8705ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8706if test -n "$ac_ct_DUMPBIN"; then 8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8708printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 8709else 8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8711printf "%s\n" "no" >&6; } 8712fi 8713 8714 8715 test -n "$ac_ct_DUMPBIN" && break 8716done 8717 8718 if test "x$ac_ct_DUMPBIN" = x; then 8719 DUMPBIN=":" 8720 else 8721 case $cross_compiling:$ac_tool_warned in 8722yes:) 8723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8724printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8725ac_tool_warned=yes ;; 8726esac 8727 DUMPBIN=$ac_ct_DUMPBIN 8728 fi 8729fi 8730 8731 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8732 *COFF*) 8733 DUMPBIN="$DUMPBIN -symbols -headers" 8734 ;; 8735 *) 8736 DUMPBIN=: 8737 ;; 8738 esac 8739 fi 8740 8741 if test : != "$DUMPBIN"; then 8742 NM=$DUMPBIN 8743 fi 8744fi 8745test -z "$NM" && NM=nm 8746 8747 8748 8749 8750 8751 8752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8753printf %s "checking the name lister ($NM) interface... " >&6; } 8754if test ${lt_cv_nm_interface+y} 8755then : 8756 printf %s "(cached) " >&6 8757else $as_nop 8758 lt_cv_nm_interface="BSD nm" 8759 echo "int some_variable = 0;" > conftest.$ac_ext 8760 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8761 (eval "$ac_compile" 2>conftest.err) 8762 cat conftest.err >&5 8763 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8764 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8765 cat conftest.err >&5 8766 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8767 cat conftest.out >&5 8768 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8769 lt_cv_nm_interface="MS dumpbin" 8770 fi 8771 rm -f conftest* 8772fi 8773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8774printf "%s\n" "$lt_cv_nm_interface" >&6; } 8775 8776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8777printf %s "checking whether ln -s works... " >&6; } 8778LN_S=$as_ln_s 8779if test "$LN_S" = "ln -s"; then 8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8781printf "%s\n" "yes" >&6; } 8782else 8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8784printf "%s\n" "no, using $LN_S" >&6; } 8785fi 8786 8787# find the maximum length of command line arguments 8788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8789printf %s "checking the maximum length of command line arguments... " >&6; } 8790if test ${lt_cv_sys_max_cmd_len+y} 8791then : 8792 printf %s "(cached) " >&6 8793else $as_nop 8794 i=0 8795 teststring=ABCD 8796 8797 case $build_os in 8798 msdosdjgpp*) 8799 # On DJGPP, this test can blow up pretty badly due to problems in libc 8800 # (any single argument exceeding 2000 bytes causes a buffer overrun 8801 # during glob expansion). Even if it were fixed, the result of this 8802 # check would be larger than it should be. 8803 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8804 ;; 8805 8806 gnu*) 8807 # Under GNU Hurd, this test is not required because there is 8808 # no limit to the length of command line arguments. 8809 # Libtool will interpret -1 as no limit whatsoever 8810 lt_cv_sys_max_cmd_len=-1; 8811 ;; 8812 8813 cygwin* | mingw* | cegcc*) 8814 # On Win9x/ME, this test blows up -- it succeeds, but takes 8815 # about 5 minutes as the teststring grows exponentially. 8816 # Worse, since 9x/ME are not pre-emptively multitasking, 8817 # you end up with a "frozen" computer, even though with patience 8818 # the test eventually succeeds (with a max line length of 256k). 8819 # Instead, let's just punt: use the minimum linelength reported by 8820 # all of the supported platforms: 8192 (on NT/2K/XP). 8821 lt_cv_sys_max_cmd_len=8192; 8822 ;; 8823 8824 mint*) 8825 # On MiNT this can take a long time and run out of memory. 8826 lt_cv_sys_max_cmd_len=8192; 8827 ;; 8828 8829 amigaos*) 8830 # On AmigaOS with pdksh, this test takes hours, literally. 8831 # So we just punt and use a minimum line length of 8192. 8832 lt_cv_sys_max_cmd_len=8192; 8833 ;; 8834 8835 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8836 # This has been around since 386BSD, at least. Likely further. 8837 if test -x /sbin/sysctl; then 8838 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8839 elif test -x /usr/sbin/sysctl; then 8840 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8841 else 8842 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8843 fi 8844 # And add a safety zone 8845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8846 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8847 ;; 8848 8849 interix*) 8850 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8851 lt_cv_sys_max_cmd_len=196608 8852 ;; 8853 8854 os2*) 8855 # The test takes a long time on OS/2. 8856 lt_cv_sys_max_cmd_len=8192 8857 ;; 8858 8859 osf*) 8860 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8861 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8862 # nice to cause kernel panics so lets avoid the loop below. 8863 # First set a reasonable default. 8864 lt_cv_sys_max_cmd_len=16384 8865 # 8866 if test -x /sbin/sysconfig; then 8867 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8868 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8869 esac 8870 fi 8871 ;; 8872 sco3.2v5*) 8873 lt_cv_sys_max_cmd_len=102400 8874 ;; 8875 sysv5* | sco5v6* | sysv4.2uw2*) 8876 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8877 if test -n "$kargmax"; then 8878 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8879 else 8880 lt_cv_sys_max_cmd_len=32768 8881 fi 8882 ;; 8883 *) 8884 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8885 if test -n "$lt_cv_sys_max_cmd_len" && \ 8886 test undefined != "$lt_cv_sys_max_cmd_len"; then 8887 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8889 else 8890 # Make teststring a little bigger before we do anything with it. 8891 # a 1K string should be a reasonable start. 8892 for i in 1 2 3 4 5 6 7 8; do 8893 teststring=$teststring$teststring 8894 done 8895 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8896 # If test is not a shell built-in, we'll probably end up computing a 8897 # maximum length that is only half of the actual maximum length, but 8898 # we can't tell. 8899 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8900 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8901 test 17 != "$i" # 1/2 MB should be enough 8902 do 8903 i=`expr $i + 1` 8904 teststring=$teststring$teststring 8905 done 8906 # Only check the string length outside the loop. 8907 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8908 teststring= 8909 # Add a significant safety factor because C++ compilers can tack on 8910 # massive amounts of additional arguments before passing them to the 8911 # linker. It appears as though 1/2 is a usable value. 8912 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8913 fi 8914 ;; 8915 esac 8916 8917fi 8918 8919if test -n "$lt_cv_sys_max_cmd_len"; then 8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8921printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 8922else 8923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 8924printf "%s\n" "none" >&6; } 8925fi 8926max_cmd_len=$lt_cv_sys_max_cmd_len 8927 8928 8929 8930 8931 8932 8933: ${CP="cp -f"} 8934: ${MV="mv -f"} 8935: ${RM="rm -f"} 8936 8937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8938 lt_unset=unset 8939else 8940 lt_unset=false 8941fi 8942 8943 8944 8945 8946 8947# test EBCDIC or ASCII 8948case `echo X|tr X '\101'` in 8949 A) # ASCII based system 8950 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8951 lt_SP2NL='tr \040 \012' 8952 lt_NL2SP='tr \015\012 \040\040' 8953 ;; 8954 *) # EBCDIC based system 8955 lt_SP2NL='tr \100 \n' 8956 lt_NL2SP='tr \r\n \100\100' 8957 ;; 8958esac 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8969printf %s "checking how to convert $build file names to $host format... " >&6; } 8970if test ${lt_cv_to_host_file_cmd+y} 8971then : 8972 printf %s "(cached) " >&6 8973else $as_nop 8974 case $host in 8975 *-*-mingw* ) 8976 case $build in 8977 *-*-mingw* ) # actually msys 8978 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8979 ;; 8980 *-*-cygwin* ) 8981 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8982 ;; 8983 * ) # otherwise, assume *nix 8984 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8985 ;; 8986 esac 8987 ;; 8988 *-*-cygwin* ) 8989 case $build in 8990 *-*-mingw* ) # actually msys 8991 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8992 ;; 8993 *-*-cygwin* ) 8994 lt_cv_to_host_file_cmd=func_convert_file_noop 8995 ;; 8996 * ) # otherwise, assume *nix 8997 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8998 ;; 8999 esac 9000 ;; 9001 * ) # unhandled hosts (and "normal" native builds) 9002 lt_cv_to_host_file_cmd=func_convert_file_noop 9003 ;; 9004esac 9005 9006fi 9007 9008to_host_file_cmd=$lt_cv_to_host_file_cmd 9009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 9010printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 9011 9012 9013 9014 9015 9016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 9017printf %s "checking how to convert $build file names to toolchain format... " >&6; } 9018if test ${lt_cv_to_tool_file_cmd+y} 9019then : 9020 printf %s "(cached) " >&6 9021else $as_nop 9022 #assume ordinary cross tools, or native build. 9023lt_cv_to_tool_file_cmd=func_convert_file_noop 9024case $host in 9025 *-*-mingw* ) 9026 case $build in 9027 *-*-mingw* ) # actually msys 9028 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 9029 ;; 9030 esac 9031 ;; 9032esac 9033 9034fi 9035 9036to_tool_file_cmd=$lt_cv_to_tool_file_cmd 9037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 9038printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 9039 9040 9041 9042 9043 9044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 9045printf %s "checking for $LD option to reload object files... " >&6; } 9046if test ${lt_cv_ld_reload_flag+y} 9047then : 9048 printf %s "(cached) " >&6 9049else $as_nop 9050 lt_cv_ld_reload_flag='-r' 9051fi 9052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 9053printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 9054reload_flag=$lt_cv_ld_reload_flag 9055case $reload_flag in 9056"" | " "*) ;; 9057*) reload_flag=" $reload_flag" ;; 9058esac 9059reload_cmds='$LD$reload_flag -o $output$reload_objs' 9060case $host_os in 9061 cygwin* | mingw* | pw32* | cegcc*) 9062 if test yes != "$GCC"; then 9063 reload_cmds=false 9064 fi 9065 ;; 9066 darwin*) 9067 if test yes = "$GCC"; then 9068 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 9069 else 9070 reload_cmds='$LD$reload_flag -o $output$reload_objs' 9071 fi 9072 ;; 9073esac 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083if test -n "$ac_tool_prefix"; then 9084 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 9085set dummy ${ac_tool_prefix}objdump; ac_word=$2 9086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9087printf %s "checking for $ac_word... " >&6; } 9088if test ${ac_cv_prog_OBJDUMP+y} 9089then : 9090 printf %s "(cached) " >&6 9091else $as_nop 9092 if test -n "$OBJDUMP"; then 9093 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9094else 9095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9096for as_dir in $PATH 9097do 9098 IFS=$as_save_IFS 9099 case $as_dir in #((( 9100 '') as_dir=./ ;; 9101 */) ;; 9102 *) as_dir=$as_dir/ ;; 9103 esac 9104 for ac_exec_ext in '' $ac_executable_extensions; do 9105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9106 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9108 break 2 9109 fi 9110done 9111 done 9112IFS=$as_save_IFS 9113 9114fi 9115fi 9116OBJDUMP=$ac_cv_prog_OBJDUMP 9117if test -n "$OBJDUMP"; then 9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9119printf "%s\n" "$OBJDUMP" >&6; } 9120else 9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9122printf "%s\n" "no" >&6; } 9123fi 9124 9125 9126fi 9127if test -z "$ac_cv_prog_OBJDUMP"; then 9128 ac_ct_OBJDUMP=$OBJDUMP 9129 # Extract the first word of "objdump", so it can be a program name with args. 9130set dummy objdump; ac_word=$2 9131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9132printf %s "checking for $ac_word... " >&6; } 9133if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 9134then : 9135 printf %s "(cached) " >&6 9136else $as_nop 9137 if test -n "$ac_ct_OBJDUMP"; then 9138 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9139else 9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9141for as_dir in $PATH 9142do 9143 IFS=$as_save_IFS 9144 case $as_dir in #((( 9145 '') as_dir=./ ;; 9146 */) ;; 9147 *) as_dir=$as_dir/ ;; 9148 esac 9149 for ac_exec_ext in '' $ac_executable_extensions; do 9150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9151 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9153 break 2 9154 fi 9155done 9156 done 9157IFS=$as_save_IFS 9158 9159fi 9160fi 9161ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9162if test -n "$ac_ct_OBJDUMP"; then 9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9164printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 9165else 9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9167printf "%s\n" "no" >&6; } 9168fi 9169 9170 if test "x$ac_ct_OBJDUMP" = x; then 9171 OBJDUMP="false" 9172 else 9173 case $cross_compiling:$ac_tool_warned in 9174yes:) 9175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9176printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9177ac_tool_warned=yes ;; 9178esac 9179 OBJDUMP=$ac_ct_OBJDUMP 9180 fi 9181else 9182 OBJDUMP="$ac_cv_prog_OBJDUMP" 9183fi 9184 9185test -z "$OBJDUMP" && OBJDUMP=objdump 9186 9187 9188 9189 9190 9191 9192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9193printf %s "checking how to recognize dependent libraries... " >&6; } 9194if test ${lt_cv_deplibs_check_method+y} 9195then : 9196 printf %s "(cached) " >&6 9197else $as_nop 9198 lt_cv_file_magic_cmd='$MAGIC_CMD' 9199lt_cv_file_magic_test_file= 9200lt_cv_deplibs_check_method='unknown' 9201# Need to set the preceding variable on all platforms that support 9202# interlibrary dependencies. 9203# 'none' -- dependencies not supported. 9204# 'unknown' -- same as none, but documents that we really don't know. 9205# 'pass_all' -- all dependencies passed with no checks. 9206# 'test_compile' -- check by making test program. 9207# 'file_magic [[regex]]' -- check by looking for files in library path 9208# that responds to the $file_magic_cmd with a given extended regex. 9209# If you have 'file' or equivalent on your system and you're not sure 9210# whether 'pass_all' will *always* work, you probably want this one. 9211 9212case $host_os in 9213aix[4-9]*) 9214 lt_cv_deplibs_check_method=pass_all 9215 ;; 9216 9217beos*) 9218 lt_cv_deplibs_check_method=pass_all 9219 ;; 9220 9221bsdi[45]*) 9222 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9223 lt_cv_file_magic_cmd='/usr/bin/file -L' 9224 lt_cv_file_magic_test_file=/shlib/libc.so 9225 ;; 9226 9227cygwin*) 9228 # func_win32_libid is a shell function defined in ltmain.sh 9229 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9230 lt_cv_file_magic_cmd='func_win32_libid' 9231 ;; 9232 9233mingw* | pw32*) 9234 # Base MSYS/MinGW do not provide the 'file' command needed by 9235 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9236 # unless we find 'file', for example because we are cross-compiling. 9237 if ( file / ) >/dev/null 2>&1; then 9238 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9239 lt_cv_file_magic_cmd='func_win32_libid' 9240 else 9241 # Keep this pattern in sync with the one in func_win32_libid. 9242 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9243 lt_cv_file_magic_cmd='$OBJDUMP -f' 9244 fi 9245 ;; 9246 9247cegcc*) 9248 # use the weaker test based on 'objdump'. See mingw*. 9249 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9250 lt_cv_file_magic_cmd='$OBJDUMP -f' 9251 ;; 9252 9253darwin* | rhapsody*) 9254 lt_cv_deplibs_check_method=pass_all 9255 ;; 9256 9257freebsd* | dragonfly*) 9258 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9259 case $host_cpu in 9260 i*86 ) 9261 # Not sure whether the presence of OpenBSD here was a mistake. 9262 # Let's accept both of them until this is cleared up. 9263 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9264 lt_cv_file_magic_cmd=/usr/bin/file 9265 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9266 ;; 9267 esac 9268 else 9269 lt_cv_deplibs_check_method=pass_all 9270 fi 9271 ;; 9272 9273haiku*) 9274 lt_cv_deplibs_check_method=pass_all 9275 ;; 9276 9277hpux10.20* | hpux11*) 9278 lt_cv_file_magic_cmd=/usr/bin/file 9279 case $host_cpu in 9280 ia64*) 9281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9282 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9283 ;; 9284 hppa*64*) 9285 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]' 9286 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9287 ;; 9288 *) 9289 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9290 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9291 ;; 9292 esac 9293 ;; 9294 9295interix[3-9]*) 9296 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9298 ;; 9299 9300irix5* | irix6* | nonstopux*) 9301 case $LD in 9302 *-32|*"-32 ") libmagic=32-bit;; 9303 *-n32|*"-n32 ") libmagic=N32;; 9304 *-64|*"-64 ") libmagic=64-bit;; 9305 *) libmagic=never-match;; 9306 esac 9307 lt_cv_deplibs_check_method=pass_all 9308 ;; 9309 9310# This must be glibc/ELF. 9311linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9312 lt_cv_deplibs_check_method=pass_all 9313 ;; 9314 9315netbsd* | netbsdelf*-gnu) 9316 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9318 else 9319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9320 fi 9321 ;; 9322 9323newos6*) 9324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9325 lt_cv_file_magic_cmd=/usr/bin/file 9326 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9327 ;; 9328 9329*nto* | *qnx*) 9330 lt_cv_deplibs_check_method=pass_all 9331 ;; 9332 9333openbsd* | bitrig*) 9334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9336 else 9337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9338 fi 9339 ;; 9340 9341osf3* | osf4* | osf5*) 9342 lt_cv_deplibs_check_method=pass_all 9343 ;; 9344 9345rdos*) 9346 lt_cv_deplibs_check_method=pass_all 9347 ;; 9348 9349solaris*) 9350 lt_cv_deplibs_check_method=pass_all 9351 ;; 9352 9353sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9354 lt_cv_deplibs_check_method=pass_all 9355 ;; 9356 9357sysv4 | sysv4.3*) 9358 case $host_vendor in 9359 motorola) 9360 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]' 9361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9362 ;; 9363 ncr) 9364 lt_cv_deplibs_check_method=pass_all 9365 ;; 9366 sequent) 9367 lt_cv_file_magic_cmd='/bin/file' 9368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9369 ;; 9370 sni) 9371 lt_cv_file_magic_cmd='/bin/file' 9372 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9373 lt_cv_file_magic_test_file=/lib/libc.so 9374 ;; 9375 siemens) 9376 lt_cv_deplibs_check_method=pass_all 9377 ;; 9378 pc) 9379 lt_cv_deplibs_check_method=pass_all 9380 ;; 9381 esac 9382 ;; 9383 9384tpf*) 9385 lt_cv_deplibs_check_method=pass_all 9386 ;; 9387os2*) 9388 lt_cv_deplibs_check_method=pass_all 9389 ;; 9390esac 9391 9392fi 9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9394printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 9395 9396file_magic_glob= 9397want_nocaseglob=no 9398if test "$build" = "$host"; then 9399 case $host_os in 9400 mingw* | pw32*) 9401 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9402 want_nocaseglob=yes 9403 else 9404 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9405 fi 9406 ;; 9407 esac 9408fi 9409 9410file_magic_cmd=$lt_cv_file_magic_cmd 9411deplibs_check_method=$lt_cv_deplibs_check_method 9412test -z "$deplibs_check_method" && deplibs_check_method=unknown 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435if test -n "$ac_tool_prefix"; then 9436 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9437set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9439printf %s "checking for $ac_word... " >&6; } 9440if test ${ac_cv_prog_DLLTOOL+y} 9441then : 9442 printf %s "(cached) " >&6 9443else $as_nop 9444 if test -n "$DLLTOOL"; then 9445 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9446else 9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9448for as_dir in $PATH 9449do 9450 IFS=$as_save_IFS 9451 case $as_dir in #((( 9452 '') as_dir=./ ;; 9453 */) ;; 9454 *) as_dir=$as_dir/ ;; 9455 esac 9456 for ac_exec_ext in '' $ac_executable_extensions; do 9457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9458 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9460 break 2 9461 fi 9462done 9463 done 9464IFS=$as_save_IFS 9465 9466fi 9467fi 9468DLLTOOL=$ac_cv_prog_DLLTOOL 9469if test -n "$DLLTOOL"; then 9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9471printf "%s\n" "$DLLTOOL" >&6; } 9472else 9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9474printf "%s\n" "no" >&6; } 9475fi 9476 9477 9478fi 9479if test -z "$ac_cv_prog_DLLTOOL"; then 9480 ac_ct_DLLTOOL=$DLLTOOL 9481 # Extract the first word of "dlltool", so it can be a program name with args. 9482set dummy dlltool; ac_word=$2 9483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9484printf %s "checking for $ac_word... " >&6; } 9485if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 9486then : 9487 printf %s "(cached) " >&6 9488else $as_nop 9489 if test -n "$ac_ct_DLLTOOL"; then 9490 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9491else 9492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9493for as_dir in $PATH 9494do 9495 IFS=$as_save_IFS 9496 case $as_dir in #((( 9497 '') as_dir=./ ;; 9498 */) ;; 9499 *) as_dir=$as_dir/ ;; 9500 esac 9501 for ac_exec_ext in '' $ac_executable_extensions; do 9502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9503 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9505 break 2 9506 fi 9507done 9508 done 9509IFS=$as_save_IFS 9510 9511fi 9512fi 9513ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9514if test -n "$ac_ct_DLLTOOL"; then 9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9516printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 9517else 9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9519printf "%s\n" "no" >&6; } 9520fi 9521 9522 if test "x$ac_ct_DLLTOOL" = x; then 9523 DLLTOOL="false" 9524 else 9525 case $cross_compiling:$ac_tool_warned in 9526yes:) 9527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9528printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9529ac_tool_warned=yes ;; 9530esac 9531 DLLTOOL=$ac_ct_DLLTOOL 9532 fi 9533else 9534 DLLTOOL="$ac_cv_prog_DLLTOOL" 9535fi 9536 9537test -z "$DLLTOOL" && DLLTOOL=dlltool 9538 9539 9540 9541 9542 9543 9544 9545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9546printf %s "checking how to associate runtime and link libraries... " >&6; } 9547if test ${lt_cv_sharedlib_from_linklib_cmd+y} 9548then : 9549 printf %s "(cached) " >&6 9550else $as_nop 9551 lt_cv_sharedlib_from_linklib_cmd='unknown' 9552 9553case $host_os in 9554cygwin* | mingw* | pw32* | cegcc*) 9555 # two different shell functions defined in ltmain.sh; 9556 # decide which one to use based on capabilities of $DLLTOOL 9557 case `$DLLTOOL --help 2>&1` in 9558 *--identify-strict*) 9559 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9560 ;; 9561 *) 9562 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9563 ;; 9564 esac 9565 ;; 9566*) 9567 # fallback: assume linklib IS sharedlib 9568 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9569 ;; 9570esac 9571 9572fi 9573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9574printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9575sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9576test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9577 9578 9579 9580 9581 9582 9583 9584if test -n "$ac_tool_prefix"; then 9585 for ac_prog in ar 9586 do 9587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9588set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9590printf %s "checking for $ac_word... " >&6; } 9591if test ${ac_cv_prog_AR+y} 9592then : 9593 printf %s "(cached) " >&6 9594else $as_nop 9595 if test -n "$AR"; then 9596 ac_cv_prog_AR="$AR" # Let the user override the test. 9597else 9598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9599for as_dir in $PATH 9600do 9601 IFS=$as_save_IFS 9602 case $as_dir in #((( 9603 '') as_dir=./ ;; 9604 */) ;; 9605 *) as_dir=$as_dir/ ;; 9606 esac 9607 for ac_exec_ext in '' $ac_executable_extensions; do 9608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9609 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9611 break 2 9612 fi 9613done 9614 done 9615IFS=$as_save_IFS 9616 9617fi 9618fi 9619AR=$ac_cv_prog_AR 9620if test -n "$AR"; then 9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9622printf "%s\n" "$AR" >&6; } 9623else 9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9625printf "%s\n" "no" >&6; } 9626fi 9627 9628 9629 test -n "$AR" && break 9630 done 9631fi 9632if test -z "$AR"; then 9633 ac_ct_AR=$AR 9634 for ac_prog in ar 9635do 9636 # Extract the first word of "$ac_prog", so it can be a program name with args. 9637set dummy $ac_prog; ac_word=$2 9638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9639printf %s "checking for $ac_word... " >&6; } 9640if test ${ac_cv_prog_ac_ct_AR+y} 9641then : 9642 printf %s "(cached) " >&6 9643else $as_nop 9644 if test -n "$ac_ct_AR"; then 9645 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9646else 9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9648for as_dir in $PATH 9649do 9650 IFS=$as_save_IFS 9651 case $as_dir in #((( 9652 '') as_dir=./ ;; 9653 */) ;; 9654 *) as_dir=$as_dir/ ;; 9655 esac 9656 for ac_exec_ext in '' $ac_executable_extensions; do 9657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9658 ac_cv_prog_ac_ct_AR="$ac_prog" 9659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9660 break 2 9661 fi 9662done 9663 done 9664IFS=$as_save_IFS 9665 9666fi 9667fi 9668ac_ct_AR=$ac_cv_prog_ac_ct_AR 9669if test -n "$ac_ct_AR"; then 9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9671printf "%s\n" "$ac_ct_AR" >&6; } 9672else 9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9674printf "%s\n" "no" >&6; } 9675fi 9676 9677 9678 test -n "$ac_ct_AR" && break 9679done 9680 9681 if test "x$ac_ct_AR" = x; then 9682 AR="false" 9683 else 9684 case $cross_compiling:$ac_tool_warned in 9685yes:) 9686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9687printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9688ac_tool_warned=yes ;; 9689esac 9690 AR=$ac_ct_AR 9691 fi 9692fi 9693 9694: ${AR=ar} 9695: ${AR_FLAGS=cru} 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9708printf %s "checking for archiver @FILE support... " >&6; } 9709if test ${lt_cv_ar_at_file+y} 9710then : 9711 printf %s "(cached) " >&6 9712else $as_nop 9713 lt_cv_ar_at_file=no 9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9715/* end confdefs.h. */ 9716 9717int 9718main (void) 9719{ 9720 9721 ; 9722 return 0; 9723} 9724_ACEOF 9725if ac_fn_c_try_compile "$LINENO" 9726then : 9727 echo conftest.$ac_objext > conftest.lst 9728 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9730 (eval $lt_ar_try) 2>&5 9731 ac_status=$? 9732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9733 test $ac_status = 0; } 9734 if test 0 -eq "$ac_status"; then 9735 # Ensure the archiver fails upon bogus file names. 9736 rm -f conftest.$ac_objext libconftest.a 9737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9738 (eval $lt_ar_try) 2>&5 9739 ac_status=$? 9740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9741 test $ac_status = 0; } 9742 if test 0 -ne "$ac_status"; then 9743 lt_cv_ar_at_file=@ 9744 fi 9745 fi 9746 rm -f conftest.* libconftest.a 9747 9748fi 9749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9750 9751fi 9752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9753printf "%s\n" "$lt_cv_ar_at_file" >&6; } 9754 9755if test no = "$lt_cv_ar_at_file"; then 9756 archiver_list_spec= 9757else 9758 archiver_list_spec=$lt_cv_ar_at_file 9759fi 9760 9761 9762 9763 9764 9765 9766 9767if test -n "$ac_tool_prefix"; then 9768 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9769set dummy ${ac_tool_prefix}strip; ac_word=$2 9770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9771printf %s "checking for $ac_word... " >&6; } 9772if test ${ac_cv_prog_STRIP+y} 9773then : 9774 printf %s "(cached) " >&6 9775else $as_nop 9776 if test -n "$STRIP"; then 9777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9778else 9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9780for as_dir in $PATH 9781do 9782 IFS=$as_save_IFS 9783 case $as_dir in #((( 9784 '') as_dir=./ ;; 9785 */) ;; 9786 *) as_dir=$as_dir/ ;; 9787 esac 9788 for ac_exec_ext in '' $ac_executable_extensions; do 9789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9790 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9792 break 2 9793 fi 9794done 9795 done 9796IFS=$as_save_IFS 9797 9798fi 9799fi 9800STRIP=$ac_cv_prog_STRIP 9801if test -n "$STRIP"; then 9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9803printf "%s\n" "$STRIP" >&6; } 9804else 9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9806printf "%s\n" "no" >&6; } 9807fi 9808 9809 9810fi 9811if test -z "$ac_cv_prog_STRIP"; then 9812 ac_ct_STRIP=$STRIP 9813 # Extract the first word of "strip", so it can be a program name with args. 9814set dummy strip; ac_word=$2 9815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9816printf %s "checking for $ac_word... " >&6; } 9817if test ${ac_cv_prog_ac_ct_STRIP+y} 9818then : 9819 printf %s "(cached) " >&6 9820else $as_nop 9821 if test -n "$ac_ct_STRIP"; then 9822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9823else 9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9825for as_dir in $PATH 9826do 9827 IFS=$as_save_IFS 9828 case $as_dir in #((( 9829 '') as_dir=./ ;; 9830 */) ;; 9831 *) as_dir=$as_dir/ ;; 9832 esac 9833 for ac_exec_ext in '' $ac_executable_extensions; do 9834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9835 ac_cv_prog_ac_ct_STRIP="strip" 9836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9837 break 2 9838 fi 9839done 9840 done 9841IFS=$as_save_IFS 9842 9843fi 9844fi 9845ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9846if test -n "$ac_ct_STRIP"; then 9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9848printf "%s\n" "$ac_ct_STRIP" >&6; } 9849else 9850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9851printf "%s\n" "no" >&6; } 9852fi 9853 9854 if test "x$ac_ct_STRIP" = x; then 9855 STRIP=":" 9856 else 9857 case $cross_compiling:$ac_tool_warned in 9858yes:) 9859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9860printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9861ac_tool_warned=yes ;; 9862esac 9863 STRIP=$ac_ct_STRIP 9864 fi 9865else 9866 STRIP="$ac_cv_prog_STRIP" 9867fi 9868 9869test -z "$STRIP" && STRIP=: 9870 9871 9872 9873 9874 9875 9876if test -n "$ac_tool_prefix"; then 9877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9878set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9880printf %s "checking for $ac_word... " >&6; } 9881if test ${ac_cv_prog_RANLIB+y} 9882then : 9883 printf %s "(cached) " >&6 9884else $as_nop 9885 if test -n "$RANLIB"; then 9886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9887else 9888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9889for as_dir in $PATH 9890do 9891 IFS=$as_save_IFS 9892 case $as_dir in #((( 9893 '') as_dir=./ ;; 9894 */) ;; 9895 *) as_dir=$as_dir/ ;; 9896 esac 9897 for ac_exec_ext in '' $ac_executable_extensions; do 9898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9899 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9901 break 2 9902 fi 9903done 9904 done 9905IFS=$as_save_IFS 9906 9907fi 9908fi 9909RANLIB=$ac_cv_prog_RANLIB 9910if test -n "$RANLIB"; then 9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9912printf "%s\n" "$RANLIB" >&6; } 9913else 9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9915printf "%s\n" "no" >&6; } 9916fi 9917 9918 9919fi 9920if test -z "$ac_cv_prog_RANLIB"; then 9921 ac_ct_RANLIB=$RANLIB 9922 # Extract the first word of "ranlib", so it can be a program name with args. 9923set dummy ranlib; ac_word=$2 9924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9925printf %s "checking for $ac_word... " >&6; } 9926if test ${ac_cv_prog_ac_ct_RANLIB+y} 9927then : 9928 printf %s "(cached) " >&6 9929else $as_nop 9930 if test -n "$ac_ct_RANLIB"; then 9931 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9932else 9933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9934for as_dir in $PATH 9935do 9936 IFS=$as_save_IFS 9937 case $as_dir in #((( 9938 '') as_dir=./ ;; 9939 */) ;; 9940 *) as_dir=$as_dir/ ;; 9941 esac 9942 for ac_exec_ext in '' $ac_executable_extensions; do 9943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9944 ac_cv_prog_ac_ct_RANLIB="ranlib" 9945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9946 break 2 9947 fi 9948done 9949 done 9950IFS=$as_save_IFS 9951 9952fi 9953fi 9954ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9955if test -n "$ac_ct_RANLIB"; then 9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9957printf "%s\n" "$ac_ct_RANLIB" >&6; } 9958else 9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9960printf "%s\n" "no" >&6; } 9961fi 9962 9963 if test "x$ac_ct_RANLIB" = x; then 9964 RANLIB=":" 9965 else 9966 case $cross_compiling:$ac_tool_warned in 9967yes:) 9968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9969printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9970ac_tool_warned=yes ;; 9971esac 9972 RANLIB=$ac_ct_RANLIB 9973 fi 9974else 9975 RANLIB="$ac_cv_prog_RANLIB" 9976fi 9977 9978test -z "$RANLIB" && RANLIB=: 9979 9980 9981 9982 9983 9984 9985# Determine commands to create old-style static archives. 9986old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9987old_postinstall_cmds='chmod 644 $oldlib' 9988old_postuninstall_cmds= 9989 9990if test -n "$RANLIB"; then 9991 case $host_os in 9992 bitrig* | openbsd*) 9993 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9994 ;; 9995 *) 9996 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9997 ;; 9998 esac 9999 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 10000fi 10001 10002case $host_os in 10003 darwin*) 10004 lock_old_archive_extraction=yes ;; 10005 *) 10006 lock_old_archive_extraction=no ;; 10007esac 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047# If no C compiler was specified, use CC. 10048LTCC=${LTCC-"$CC"} 10049 10050# If no C compiler flags were specified, use CFLAGS. 10051LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10052 10053# Allow CC to be a program name with arguments. 10054compiler=$CC 10055 10056 10057# Check for command to grab the raw symbol name followed by C symbol from nm. 10058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 10059printf %s "checking command to parse $NM output from $compiler object... " >&6; } 10060if test ${lt_cv_sys_global_symbol_pipe+y} 10061then : 10062 printf %s "(cached) " >&6 10063else $as_nop 10064 10065# These are sane defaults that work on at least a few old systems. 10066# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10067 10068# Character class describing NM global symbol codes. 10069symcode='[BCDEGRST]' 10070 10071# Regexp to match symbols that can be accessed directly from C. 10072sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 10073 10074# Define system-specific variables. 10075case $host_os in 10076aix*) 10077 symcode='[BCDT]' 10078 ;; 10079cygwin* | mingw* | pw32* | cegcc*) 10080 symcode='[ABCDGISTW]' 10081 ;; 10082hpux*) 10083 if test ia64 = "$host_cpu"; then 10084 symcode='[ABCDEGRST]' 10085 fi 10086 ;; 10087irix* | nonstopux*) 10088 symcode='[BCDEGRST]' 10089 ;; 10090osf*) 10091 symcode='[BCDEGQRST]' 10092 ;; 10093solaris*) 10094 symcode='[BCDRT]' 10095 ;; 10096sco3.2v5*) 10097 symcode='[DT]' 10098 ;; 10099sysv4.2uw2*) 10100 symcode='[DT]' 10101 ;; 10102sysv5* | sco5v6* | unixware* | OpenUNIX*) 10103 symcode='[ABDT]' 10104 ;; 10105sysv4) 10106 symcode='[DFNSTU]' 10107 ;; 10108esac 10109 10110# If we're using GNU nm, then use its standard symbol codes. 10111case `$NM -V 2>&1` in 10112*GNU* | *'with BFD'*) 10113 symcode='[ABCDGIRSTW]' ;; 10114esac 10115 10116if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10117 # Gets list of data symbols to import. 10118 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 10119 # Adjust the below global symbol transforms to fixup imported variables. 10120 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 10121 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 10122 lt_c_name_lib_hook="\ 10123 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 10124 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 10125else 10126 # Disable hooks by default. 10127 lt_cv_sys_global_symbol_to_import= 10128 lt_cdecl_hook= 10129 lt_c_name_hook= 10130 lt_c_name_lib_hook= 10131fi 10132 10133# Transform an extracted symbol line into a proper C declaration. 10134# Some systems (esp. on ia64) link data and code symbols differently, 10135# so use this general approach. 10136lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 10137$lt_cdecl_hook\ 10138" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10139" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10140 10141# Transform an extracted symbol line into symbol name and symbol address 10142lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 10143$lt_c_name_hook\ 10144" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10145" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10146 10147# Transform an extracted symbol line into symbol name with lib prefix and 10148# symbol address. 10149lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 10150$lt_c_name_lib_hook\ 10151" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10152" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10153" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10154 10155# Handle CRLF in mingw tool chain 10156opt_cr= 10157case $build_os in 10158mingw*) 10159 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10160 ;; 10161esac 10162 10163# Try without a prefix underscore, then with it. 10164for ac_symprfx in "" "_"; do 10165 10166 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10167 symxfrm="\\1 $ac_symprfx\\2 \\2" 10168 10169 # Write the raw and C identifiers. 10170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10171 # Fake it for dumpbin and say T for any non-static function, 10172 # D for any global variable and I for any imported variable. 10173 # Also find C++ and __fastcall symbols from MSVC++, 10174 # which start with @ or ?. 10175 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10176" {last_section=section; section=\$ 3};"\ 10177" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10178" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10179" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10180" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10181" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10182" \$ 0!~/External *\|/{next};"\ 10183" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10184" {if(hide[section]) next};"\ 10185" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10186" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10187" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10188" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10189" ' prfx=^$ac_symprfx" 10190 else 10191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10192 fi 10193 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 10194 10195 # Check to see that the pipe works correctly. 10196 pipe_works=no 10197 10198 rm -f conftest* 10199 cat > conftest.$ac_ext <<_LT_EOF 10200#ifdef __cplusplus 10201extern "C" { 10202#endif 10203char nm_test_var; 10204void nm_test_func(void); 10205void nm_test_func(void){} 10206#ifdef __cplusplus 10207} 10208#endif 10209int main(){nm_test_var='a';nm_test_func();return(0);} 10210_LT_EOF 10211 10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10213 (eval $ac_compile) 2>&5 10214 ac_status=$? 10215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10216 test $ac_status = 0; }; then 10217 # Now try to grab the symbols. 10218 nlist=conftest.nm 10219 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 10220 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 10221 # Try sorting and uniquifying the output. 10222 if sort "$nlist" | uniq > "$nlist"T; then 10223 mv -f "$nlist"T "$nlist" 10224 else 10225 rm -f "$nlist"T 10226 fi 10227 10228 # Make sure that we snagged all the symbols we need. 10229 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10230 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10231 cat <<_LT_EOF > conftest.$ac_ext 10232/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10233#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10234/* DATA imports from DLLs on WIN32 can't be const, because runtime 10235 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10236# define LT_DLSYM_CONST 10237#elif defined __osf__ 10238/* This system does not cope well with relocations in const data. */ 10239# define LT_DLSYM_CONST 10240#else 10241# define LT_DLSYM_CONST const 10242#endif 10243 10244#ifdef __cplusplus 10245extern "C" { 10246#endif 10247 10248_LT_EOF 10249 # Now generate the symbol file. 10250 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10251 10252 cat <<_LT_EOF >> conftest.$ac_ext 10253 10254/* The mapping between symbol names and symbols. */ 10255LT_DLSYM_CONST struct { 10256 const char *name; 10257 void *address; 10258} 10259lt__PROGRAM__LTX_preloaded_symbols[] = 10260{ 10261 { "@PROGRAM@", (void *) 0 }, 10262_LT_EOF 10263 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10264 cat <<\_LT_EOF >> conftest.$ac_ext 10265 {0, (void *) 0} 10266}; 10267 10268/* This works around a problem in FreeBSD linker */ 10269#ifdef FREEBSD_WORKAROUND 10270static const void *lt_preloaded_setup() { 10271 return lt__PROGRAM__LTX_preloaded_symbols; 10272} 10273#endif 10274 10275#ifdef __cplusplus 10276} 10277#endif 10278_LT_EOF 10279 # Now try linking the two files. 10280 mv conftest.$ac_objext conftstm.$ac_objext 10281 lt_globsym_save_LIBS=$LIBS 10282 lt_globsym_save_CFLAGS=$CFLAGS 10283 LIBS=conftstm.$ac_objext 10284 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10286 (eval $ac_link) 2>&5 10287 ac_status=$? 10288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10289 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10290 pipe_works=yes 10291 fi 10292 LIBS=$lt_globsym_save_LIBS 10293 CFLAGS=$lt_globsym_save_CFLAGS 10294 else 10295 echo "cannot find nm_test_func in $nlist" >&5 10296 fi 10297 else 10298 echo "cannot find nm_test_var in $nlist" >&5 10299 fi 10300 else 10301 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10302 fi 10303 else 10304 echo "$progname: failed program was:" >&5 10305 cat conftest.$ac_ext >&5 10306 fi 10307 rm -rf conftest* conftst* 10308 10309 # Do not use the global_symbol_pipe unless it works. 10310 if test yes = "$pipe_works"; then 10311 break 10312 else 10313 lt_cv_sys_global_symbol_pipe= 10314 fi 10315done 10316 10317fi 10318 10319if test -z "$lt_cv_sys_global_symbol_pipe"; then 10320 lt_cv_sys_global_symbol_to_cdecl= 10321fi 10322if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10324printf "%s\n" "failed" >&6; } 10325else 10326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10327printf "%s\n" "ok" >&6; } 10328fi 10329 10330# Response file support. 10331if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10332 nm_file_list_spec='@' 10333elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10334 nm_file_list_spec='@' 10335fi 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10374printf %s "checking for sysroot... " >&6; } 10375 10376# Check whether --with-sysroot was given. 10377if test ${with_sysroot+y} 10378then : 10379 withval=$with_sysroot; 10380else $as_nop 10381 with_sysroot=no 10382fi 10383 10384 10385lt_sysroot= 10386case $with_sysroot in #( 10387 yes) 10388 if test yes = "$GCC"; then 10389 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10390 fi 10391 ;; #( 10392 /*) 10393 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10394 ;; #( 10395 no|'') 10396 ;; #( 10397 *) 10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10399printf "%s\n" "$with_sysroot" >&6; } 10400 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10401 ;; 10402esac 10403 10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10405printf "%s\n" "${lt_sysroot:-no}" >&6; } 10406 10407 10408 10409 10410 10411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10412printf %s "checking for a working dd... " >&6; } 10413if test ${ac_cv_path_lt_DD+y} 10414then : 10415 printf %s "(cached) " >&6 10416else $as_nop 10417 printf 0123456789abcdef0123456789abcdef >conftest.i 10418cat conftest.i conftest.i >conftest2.i 10419: ${lt_DD:=$DD} 10420if test -z "$lt_DD"; then 10421 ac_path_lt_DD_found=false 10422 # Loop through the user's path and test for each of PROGNAME-LIST 10423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10424for as_dir in $PATH 10425do 10426 IFS=$as_save_IFS 10427 case $as_dir in #((( 10428 '') as_dir=./ ;; 10429 */) ;; 10430 *) as_dir=$as_dir/ ;; 10431 esac 10432 for ac_prog in dd 10433 do 10434 for ac_exec_ext in '' $ac_executable_extensions; do 10435 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 10436 as_fn_executable_p "$ac_path_lt_DD" || continue 10437if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10438 cmp -s conftest.i conftest.out \ 10439 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10440fi 10441 $ac_path_lt_DD_found && break 3 10442 done 10443 done 10444 done 10445IFS=$as_save_IFS 10446 if test -z "$ac_cv_path_lt_DD"; then 10447 : 10448 fi 10449else 10450 ac_cv_path_lt_DD=$lt_DD 10451fi 10452 10453rm -f conftest.i conftest2.i conftest.out 10454fi 10455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10456printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 10457 10458 10459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10460printf %s "checking how to truncate binary pipes... " >&6; } 10461if test ${lt_cv_truncate_bin+y} 10462then : 10463 printf %s "(cached) " >&6 10464else $as_nop 10465 printf 0123456789abcdef0123456789abcdef >conftest.i 10466cat conftest.i conftest.i >conftest2.i 10467lt_cv_truncate_bin= 10468if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10469 cmp -s conftest.i conftest.out \ 10470 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10471fi 10472rm -f conftest.i conftest2.i conftest.out 10473test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10474fi 10475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10476printf "%s\n" "$lt_cv_truncate_bin" >&6; } 10477 10478 10479 10480 10481 10482 10483 10484# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10485func_cc_basename () 10486{ 10487 for cc_temp in $*""; do 10488 case $cc_temp in 10489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10491 \-*) ;; 10492 *) break;; 10493 esac 10494 done 10495 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10496} 10497 10498# Check whether --enable-libtool-lock was given. 10499if test ${enable_libtool_lock+y} 10500then : 10501 enableval=$enable_libtool_lock; 10502fi 10503 10504test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10505 10506# Some flags need to be propagated to the compiler or linker for good 10507# libtool support. 10508case $host in 10509ia64-*-hpux*) 10510 # Find out what ABI is being produced by ac_compile, and set mode 10511 # options accordingly. 10512 echo 'int i;' > conftest.$ac_ext 10513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10514 (eval $ac_compile) 2>&5 10515 ac_status=$? 10516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10517 test $ac_status = 0; }; then 10518 case `/usr/bin/file conftest.$ac_objext` in 10519 *ELF-32*) 10520 HPUX_IA64_MODE=32 10521 ;; 10522 *ELF-64*) 10523 HPUX_IA64_MODE=64 10524 ;; 10525 esac 10526 fi 10527 rm -rf conftest* 10528 ;; 10529*-*-irix6*) 10530 # Find out what ABI is being produced by ac_compile, and set linker 10531 # options accordingly. 10532 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10534 (eval $ac_compile) 2>&5 10535 ac_status=$? 10536 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10537 test $ac_status = 0; }; then 10538 if test yes = "$lt_cv_prog_gnu_ld"; then 10539 case `/usr/bin/file conftest.$ac_objext` in 10540 *32-bit*) 10541 LD="${LD-ld} -melf32bsmip" 10542 ;; 10543 *N32*) 10544 LD="${LD-ld} -melf32bmipn32" 10545 ;; 10546 *64-bit*) 10547 LD="${LD-ld} -melf64bmip" 10548 ;; 10549 esac 10550 else 10551 case `/usr/bin/file conftest.$ac_objext` in 10552 *32-bit*) 10553 LD="${LD-ld} -32" 10554 ;; 10555 *N32*) 10556 LD="${LD-ld} -n32" 10557 ;; 10558 *64-bit*) 10559 LD="${LD-ld} -64" 10560 ;; 10561 esac 10562 fi 10563 fi 10564 rm -rf conftest* 10565 ;; 10566 10567mips64*-*linux*) 10568 # Find out what ABI is being produced by ac_compile, and set linker 10569 # options accordingly. 10570 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10572 (eval $ac_compile) 2>&5 10573 ac_status=$? 10574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10575 test $ac_status = 0; }; then 10576 emul=elf 10577 case `/usr/bin/file conftest.$ac_objext` in 10578 *32-bit*) 10579 emul="${emul}32" 10580 ;; 10581 *64-bit*) 10582 emul="${emul}64" 10583 ;; 10584 esac 10585 case `/usr/bin/file conftest.$ac_objext` in 10586 *MSB*) 10587 emul="${emul}btsmip" 10588 ;; 10589 *LSB*) 10590 emul="${emul}ltsmip" 10591 ;; 10592 esac 10593 case `/usr/bin/file conftest.$ac_objext` in 10594 *N32*) 10595 emul="${emul}n32" 10596 ;; 10597 esac 10598 LD="${LD-ld} -m $emul" 10599 fi 10600 rm -rf conftest* 10601 ;; 10602 10603x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10604s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10605 # Find out what ABI is being produced by ac_compile, and set linker 10606 # options accordingly. Note that the listed cases only cover the 10607 # situations where additional linker options are needed (such as when 10608 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10609 # vice versa); the common cases where no linker options are needed do 10610 # not appear in the list. 10611 echo 'int i;' > conftest.$ac_ext 10612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10613 (eval $ac_compile) 2>&5 10614 ac_status=$? 10615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10616 test $ac_status = 0; }; then 10617 case `/usr/bin/file conftest.o` in 10618 *32-bit*) 10619 case $host in 10620 x86_64-*kfreebsd*-gnu) 10621 LD="${LD-ld} -m elf_i386_fbsd" 10622 ;; 10623 x86_64-*linux*) 10624 case `/usr/bin/file conftest.o` in 10625 *x86-64*) 10626 LD="${LD-ld} -m elf32_x86_64" 10627 ;; 10628 *) 10629 LD="${LD-ld} -m elf_i386" 10630 ;; 10631 esac 10632 ;; 10633 powerpc64le-*linux*) 10634 LD="${LD-ld} -m elf32lppclinux" 10635 ;; 10636 powerpc64-*linux*) 10637 LD="${LD-ld} -m elf32ppclinux" 10638 ;; 10639 s390x-*linux*) 10640 LD="${LD-ld} -m elf_s390" 10641 ;; 10642 sparc64-*linux*) 10643 LD="${LD-ld} -m elf32_sparc" 10644 ;; 10645 esac 10646 ;; 10647 *64-bit*) 10648 case $host in 10649 x86_64-*kfreebsd*-gnu) 10650 LD="${LD-ld} -m elf_x86_64_fbsd" 10651 ;; 10652 x86_64-*linux*) 10653 LD="${LD-ld} -m elf_x86_64" 10654 ;; 10655 powerpcle-*linux*) 10656 LD="${LD-ld} -m elf64lppc" 10657 ;; 10658 powerpc-*linux*) 10659 LD="${LD-ld} -m elf64ppc" 10660 ;; 10661 s390*-*linux*|s390*-*tpf*) 10662 LD="${LD-ld} -m elf64_s390" 10663 ;; 10664 sparc*-*linux*) 10665 LD="${LD-ld} -m elf64_sparc" 10666 ;; 10667 esac 10668 ;; 10669 esac 10670 fi 10671 rm -rf conftest* 10672 ;; 10673 10674*-*-sco3.2v5*) 10675 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10676 SAVE_CFLAGS=$CFLAGS 10677 CFLAGS="$CFLAGS -belf" 10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10679printf %s "checking whether the C compiler needs -belf... " >&6; } 10680if test ${lt_cv_cc_needs_belf+y} 10681then : 10682 printf %s "(cached) " >&6 10683else $as_nop 10684 ac_ext=c 10685ac_cpp='$CPP $CPPFLAGS' 10686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10688ac_compiler_gnu=$ac_cv_c_compiler_gnu 10689 10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10691/* end confdefs.h. */ 10692 10693int 10694main (void) 10695{ 10696 10697 ; 10698 return 0; 10699} 10700_ACEOF 10701if ac_fn_c_try_link "$LINENO" 10702then : 10703 lt_cv_cc_needs_belf=yes 10704else $as_nop 10705 lt_cv_cc_needs_belf=no 10706fi 10707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10708 conftest$ac_exeext conftest.$ac_ext 10709 ac_ext=c 10710ac_cpp='$CPP $CPPFLAGS' 10711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10713ac_compiler_gnu=$ac_cv_c_compiler_gnu 10714 10715fi 10716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10717printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 10718 if test yes != "$lt_cv_cc_needs_belf"; then 10719 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10720 CFLAGS=$SAVE_CFLAGS 10721 fi 10722 ;; 10723*-*solaris*) 10724 # Find out what ABI is being produced by ac_compile, and set linker 10725 # options accordingly. 10726 echo 'int i;' > conftest.$ac_ext 10727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10728 (eval $ac_compile) 2>&5 10729 ac_status=$? 10730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10731 test $ac_status = 0; }; then 10732 case `/usr/bin/file conftest.o` in 10733 *64-bit*) 10734 case $lt_cv_prog_gnu_ld in 10735 yes*) 10736 case $host in 10737 i?86-*-solaris*|x86_64-*-solaris*) 10738 LD="${LD-ld} -m elf_x86_64" 10739 ;; 10740 sparc*-*-solaris*) 10741 LD="${LD-ld} -m elf64_sparc" 10742 ;; 10743 esac 10744 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10745 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10746 LD=${LD-ld}_sol2 10747 fi 10748 ;; 10749 *) 10750 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10751 LD="${LD-ld} -64" 10752 fi 10753 ;; 10754 esac 10755 ;; 10756 esac 10757 fi 10758 rm -rf conftest* 10759 ;; 10760esac 10761 10762need_locks=$enable_libtool_lock 10763 10764if test -n "$ac_tool_prefix"; then 10765 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10766set dummy ${ac_tool_prefix}mt; ac_word=$2 10767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10768printf %s "checking for $ac_word... " >&6; } 10769if test ${ac_cv_prog_MANIFEST_TOOL+y} 10770then : 10771 printf %s "(cached) " >&6 10772else $as_nop 10773 if test -n "$MANIFEST_TOOL"; then 10774 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10775else 10776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10777for as_dir in $PATH 10778do 10779 IFS=$as_save_IFS 10780 case $as_dir in #((( 10781 '') as_dir=./ ;; 10782 */) ;; 10783 *) as_dir=$as_dir/ ;; 10784 esac 10785 for ac_exec_ext in '' $ac_executable_extensions; do 10786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10787 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10789 break 2 10790 fi 10791done 10792 done 10793IFS=$as_save_IFS 10794 10795fi 10796fi 10797MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10798if test -n "$MANIFEST_TOOL"; then 10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10800printf "%s\n" "$MANIFEST_TOOL" >&6; } 10801else 10802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10803printf "%s\n" "no" >&6; } 10804fi 10805 10806 10807fi 10808if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10809 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10810 # Extract the first word of "mt", so it can be a program name with args. 10811set dummy mt; ac_word=$2 10812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10813printf %s "checking for $ac_word... " >&6; } 10814if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 10815then : 10816 printf %s "(cached) " >&6 10817else $as_nop 10818 if test -n "$ac_ct_MANIFEST_TOOL"; then 10819 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10820else 10821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10822for as_dir in $PATH 10823do 10824 IFS=$as_save_IFS 10825 case $as_dir in #((( 10826 '') as_dir=./ ;; 10827 */) ;; 10828 *) as_dir=$as_dir/ ;; 10829 esac 10830 for ac_exec_ext in '' $ac_executable_extensions; do 10831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10832 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10834 break 2 10835 fi 10836done 10837 done 10838IFS=$as_save_IFS 10839 10840fi 10841fi 10842ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10843if test -n "$ac_ct_MANIFEST_TOOL"; then 10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10845printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 10846else 10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10848printf "%s\n" "no" >&6; } 10849fi 10850 10851 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10852 MANIFEST_TOOL=":" 10853 else 10854 case $cross_compiling:$ac_tool_warned in 10855yes:) 10856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10857printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10858ac_tool_warned=yes ;; 10859esac 10860 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10861 fi 10862else 10863 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10864fi 10865 10866test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10868printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10869if test ${lt_cv_path_mainfest_tool+y} 10870then : 10871 printf %s "(cached) " >&6 10872else $as_nop 10873 lt_cv_path_mainfest_tool=no 10874 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10875 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10876 cat conftest.err >&5 10877 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10878 lt_cv_path_mainfest_tool=yes 10879 fi 10880 rm -f conftest* 10881fi 10882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10883printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 10884if test yes != "$lt_cv_path_mainfest_tool"; then 10885 MANIFEST_TOOL=: 10886fi 10887 10888 10889 10890 10891 10892 10893 case $host_os in 10894 rhapsody* | darwin*) 10895 if test -n "$ac_tool_prefix"; then 10896 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10897set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10899printf %s "checking for $ac_word... " >&6; } 10900if test ${ac_cv_prog_DSYMUTIL+y} 10901then : 10902 printf %s "(cached) " >&6 10903else $as_nop 10904 if test -n "$DSYMUTIL"; then 10905 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10906else 10907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10908for as_dir in $PATH 10909do 10910 IFS=$as_save_IFS 10911 case $as_dir in #((( 10912 '') as_dir=./ ;; 10913 */) ;; 10914 *) as_dir=$as_dir/ ;; 10915 esac 10916 for ac_exec_ext in '' $ac_executable_extensions; do 10917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10918 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10920 break 2 10921 fi 10922done 10923 done 10924IFS=$as_save_IFS 10925 10926fi 10927fi 10928DSYMUTIL=$ac_cv_prog_DSYMUTIL 10929if test -n "$DSYMUTIL"; then 10930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10931printf "%s\n" "$DSYMUTIL" >&6; } 10932else 10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10934printf "%s\n" "no" >&6; } 10935fi 10936 10937 10938fi 10939if test -z "$ac_cv_prog_DSYMUTIL"; then 10940 ac_ct_DSYMUTIL=$DSYMUTIL 10941 # Extract the first word of "dsymutil", so it can be a program name with args. 10942set dummy dsymutil; ac_word=$2 10943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10944printf %s "checking for $ac_word... " >&6; } 10945if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 10946then : 10947 printf %s "(cached) " >&6 10948else $as_nop 10949 if test -n "$ac_ct_DSYMUTIL"; then 10950 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10951else 10952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10953for as_dir in $PATH 10954do 10955 IFS=$as_save_IFS 10956 case $as_dir in #((( 10957 '') as_dir=./ ;; 10958 */) ;; 10959 *) as_dir=$as_dir/ ;; 10960 esac 10961 for ac_exec_ext in '' $ac_executable_extensions; do 10962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 10963 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 10965 break 2 10966 fi 10967done 10968 done 10969IFS=$as_save_IFS 10970 10971fi 10972fi 10973ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10974if test -n "$ac_ct_DSYMUTIL"; then 10975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10976printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 10977else 10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10979printf "%s\n" "no" >&6; } 10980fi 10981 10982 if test "x$ac_ct_DSYMUTIL" = x; then 10983 DSYMUTIL=":" 10984 else 10985 case $cross_compiling:$ac_tool_warned in 10986yes:) 10987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10988printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10989ac_tool_warned=yes ;; 10990esac 10991 DSYMUTIL=$ac_ct_DSYMUTIL 10992 fi 10993else 10994 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10995fi 10996 10997 if test -n "$ac_tool_prefix"; then 10998 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10999set dummy ${ac_tool_prefix}nmedit; ac_word=$2 11000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11001printf %s "checking for $ac_word... " >&6; } 11002if test ${ac_cv_prog_NMEDIT+y} 11003then : 11004 printf %s "(cached) " >&6 11005else $as_nop 11006 if test -n "$NMEDIT"; then 11007 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 11008else 11009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11010for as_dir in $PATH 11011do 11012 IFS=$as_save_IFS 11013 case $as_dir in #((( 11014 '') as_dir=./ ;; 11015 */) ;; 11016 *) as_dir=$as_dir/ ;; 11017 esac 11018 for ac_exec_ext in '' $ac_executable_extensions; do 11019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11020 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 11021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11022 break 2 11023 fi 11024done 11025 done 11026IFS=$as_save_IFS 11027 11028fi 11029fi 11030NMEDIT=$ac_cv_prog_NMEDIT 11031if test -n "$NMEDIT"; then 11032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 11033printf "%s\n" "$NMEDIT" >&6; } 11034else 11035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11036printf "%s\n" "no" >&6; } 11037fi 11038 11039 11040fi 11041if test -z "$ac_cv_prog_NMEDIT"; then 11042 ac_ct_NMEDIT=$NMEDIT 11043 # Extract the first word of "nmedit", so it can be a program name with args. 11044set dummy nmedit; ac_word=$2 11045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11046printf %s "checking for $ac_word... " >&6; } 11047if test ${ac_cv_prog_ac_ct_NMEDIT+y} 11048then : 11049 printf %s "(cached) " >&6 11050else $as_nop 11051 if test -n "$ac_ct_NMEDIT"; then 11052 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 11053else 11054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11055for as_dir in $PATH 11056do 11057 IFS=$as_save_IFS 11058 case $as_dir in #((( 11059 '') as_dir=./ ;; 11060 */) ;; 11061 *) as_dir=$as_dir/ ;; 11062 esac 11063 for ac_exec_ext in '' $ac_executable_extensions; do 11064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11065 ac_cv_prog_ac_ct_NMEDIT="nmedit" 11066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11067 break 2 11068 fi 11069done 11070 done 11071IFS=$as_save_IFS 11072 11073fi 11074fi 11075ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 11076if test -n "$ac_ct_NMEDIT"; then 11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 11078printf "%s\n" "$ac_ct_NMEDIT" >&6; } 11079else 11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11081printf "%s\n" "no" >&6; } 11082fi 11083 11084 if test "x$ac_ct_NMEDIT" = x; then 11085 NMEDIT=":" 11086 else 11087 case $cross_compiling:$ac_tool_warned in 11088yes:) 11089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11090printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11091ac_tool_warned=yes ;; 11092esac 11093 NMEDIT=$ac_ct_NMEDIT 11094 fi 11095else 11096 NMEDIT="$ac_cv_prog_NMEDIT" 11097fi 11098 11099 if test -n "$ac_tool_prefix"; then 11100 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 11101set dummy ${ac_tool_prefix}lipo; ac_word=$2 11102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11103printf %s "checking for $ac_word... " >&6; } 11104if test ${ac_cv_prog_LIPO+y} 11105then : 11106 printf %s "(cached) " >&6 11107else $as_nop 11108 if test -n "$LIPO"; then 11109 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 11110else 11111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11112for as_dir in $PATH 11113do 11114 IFS=$as_save_IFS 11115 case $as_dir in #((( 11116 '') as_dir=./ ;; 11117 */) ;; 11118 *) as_dir=$as_dir/ ;; 11119 esac 11120 for ac_exec_ext in '' $ac_executable_extensions; do 11121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11122 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 11123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11124 break 2 11125 fi 11126done 11127 done 11128IFS=$as_save_IFS 11129 11130fi 11131fi 11132LIPO=$ac_cv_prog_LIPO 11133if test -n "$LIPO"; then 11134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 11135printf "%s\n" "$LIPO" >&6; } 11136else 11137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11138printf "%s\n" "no" >&6; } 11139fi 11140 11141 11142fi 11143if test -z "$ac_cv_prog_LIPO"; then 11144 ac_ct_LIPO=$LIPO 11145 # Extract the first word of "lipo", so it can be a program name with args. 11146set dummy lipo; ac_word=$2 11147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11148printf %s "checking for $ac_word... " >&6; } 11149if test ${ac_cv_prog_ac_ct_LIPO+y} 11150then : 11151 printf %s "(cached) " >&6 11152else $as_nop 11153 if test -n "$ac_ct_LIPO"; then 11154 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 11155else 11156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11157for as_dir in $PATH 11158do 11159 IFS=$as_save_IFS 11160 case $as_dir in #((( 11161 '') as_dir=./ ;; 11162 */) ;; 11163 *) as_dir=$as_dir/ ;; 11164 esac 11165 for ac_exec_ext in '' $ac_executable_extensions; do 11166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11167 ac_cv_prog_ac_ct_LIPO="lipo" 11168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11169 break 2 11170 fi 11171done 11172 done 11173IFS=$as_save_IFS 11174 11175fi 11176fi 11177ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11178if test -n "$ac_ct_LIPO"; then 11179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11180printf "%s\n" "$ac_ct_LIPO" >&6; } 11181else 11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11183printf "%s\n" "no" >&6; } 11184fi 11185 11186 if test "x$ac_ct_LIPO" = x; then 11187 LIPO=":" 11188 else 11189 case $cross_compiling:$ac_tool_warned in 11190yes:) 11191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11192printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11193ac_tool_warned=yes ;; 11194esac 11195 LIPO=$ac_ct_LIPO 11196 fi 11197else 11198 LIPO="$ac_cv_prog_LIPO" 11199fi 11200 11201 if test -n "$ac_tool_prefix"; then 11202 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11203set dummy ${ac_tool_prefix}otool; ac_word=$2 11204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11205printf %s "checking for $ac_word... " >&6; } 11206if test ${ac_cv_prog_OTOOL+y} 11207then : 11208 printf %s "(cached) " >&6 11209else $as_nop 11210 if test -n "$OTOOL"; then 11211 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11212else 11213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11214for as_dir in $PATH 11215do 11216 IFS=$as_save_IFS 11217 case $as_dir in #((( 11218 '') as_dir=./ ;; 11219 */) ;; 11220 *) as_dir=$as_dir/ ;; 11221 esac 11222 for ac_exec_ext in '' $ac_executable_extensions; do 11223 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11224 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11226 break 2 11227 fi 11228done 11229 done 11230IFS=$as_save_IFS 11231 11232fi 11233fi 11234OTOOL=$ac_cv_prog_OTOOL 11235if test -n "$OTOOL"; then 11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11237printf "%s\n" "$OTOOL" >&6; } 11238else 11239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11240printf "%s\n" "no" >&6; } 11241fi 11242 11243 11244fi 11245if test -z "$ac_cv_prog_OTOOL"; then 11246 ac_ct_OTOOL=$OTOOL 11247 # Extract the first word of "otool", so it can be a program name with args. 11248set dummy otool; ac_word=$2 11249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11250printf %s "checking for $ac_word... " >&6; } 11251if test ${ac_cv_prog_ac_ct_OTOOL+y} 11252then : 11253 printf %s "(cached) " >&6 11254else $as_nop 11255 if test -n "$ac_ct_OTOOL"; then 11256 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11257else 11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11259for as_dir in $PATH 11260do 11261 IFS=$as_save_IFS 11262 case $as_dir in #((( 11263 '') as_dir=./ ;; 11264 */) ;; 11265 *) as_dir=$as_dir/ ;; 11266 esac 11267 for ac_exec_ext in '' $ac_executable_extensions; do 11268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11269 ac_cv_prog_ac_ct_OTOOL="otool" 11270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11271 break 2 11272 fi 11273done 11274 done 11275IFS=$as_save_IFS 11276 11277fi 11278fi 11279ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11280if test -n "$ac_ct_OTOOL"; then 11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11282printf "%s\n" "$ac_ct_OTOOL" >&6; } 11283else 11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11285printf "%s\n" "no" >&6; } 11286fi 11287 11288 if test "x$ac_ct_OTOOL" = x; then 11289 OTOOL=":" 11290 else 11291 case $cross_compiling:$ac_tool_warned in 11292yes:) 11293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11294printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11295ac_tool_warned=yes ;; 11296esac 11297 OTOOL=$ac_ct_OTOOL 11298 fi 11299else 11300 OTOOL="$ac_cv_prog_OTOOL" 11301fi 11302 11303 if test -n "$ac_tool_prefix"; then 11304 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11305set dummy ${ac_tool_prefix}otool64; ac_word=$2 11306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11307printf %s "checking for $ac_word... " >&6; } 11308if test ${ac_cv_prog_OTOOL64+y} 11309then : 11310 printf %s "(cached) " >&6 11311else $as_nop 11312 if test -n "$OTOOL64"; then 11313 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11314else 11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11316for as_dir in $PATH 11317do 11318 IFS=$as_save_IFS 11319 case $as_dir in #((( 11320 '') as_dir=./ ;; 11321 */) ;; 11322 *) as_dir=$as_dir/ ;; 11323 esac 11324 for ac_exec_ext in '' $ac_executable_extensions; do 11325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11326 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11328 break 2 11329 fi 11330done 11331 done 11332IFS=$as_save_IFS 11333 11334fi 11335fi 11336OTOOL64=$ac_cv_prog_OTOOL64 11337if test -n "$OTOOL64"; then 11338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11339printf "%s\n" "$OTOOL64" >&6; } 11340else 11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11342printf "%s\n" "no" >&6; } 11343fi 11344 11345 11346fi 11347if test -z "$ac_cv_prog_OTOOL64"; then 11348 ac_ct_OTOOL64=$OTOOL64 11349 # Extract the first word of "otool64", so it can be a program name with args. 11350set dummy otool64; ac_word=$2 11351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11352printf %s "checking for $ac_word... " >&6; } 11353if test ${ac_cv_prog_ac_ct_OTOOL64+y} 11354then : 11355 printf %s "(cached) " >&6 11356else $as_nop 11357 if test -n "$ac_ct_OTOOL64"; then 11358 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11359else 11360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11361for as_dir in $PATH 11362do 11363 IFS=$as_save_IFS 11364 case $as_dir in #((( 11365 '') as_dir=./ ;; 11366 */) ;; 11367 *) as_dir=$as_dir/ ;; 11368 esac 11369 for ac_exec_ext in '' $ac_executable_extensions; do 11370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11371 ac_cv_prog_ac_ct_OTOOL64="otool64" 11372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11373 break 2 11374 fi 11375done 11376 done 11377IFS=$as_save_IFS 11378 11379fi 11380fi 11381ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11382if test -n "$ac_ct_OTOOL64"; then 11383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11384printf "%s\n" "$ac_ct_OTOOL64" >&6; } 11385else 11386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11387printf "%s\n" "no" >&6; } 11388fi 11389 11390 if test "x$ac_ct_OTOOL64" = x; then 11391 OTOOL64=":" 11392 else 11393 case $cross_compiling:$ac_tool_warned in 11394yes:) 11395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11396printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11397ac_tool_warned=yes ;; 11398esac 11399 OTOOL64=$ac_ct_OTOOL64 11400 fi 11401else 11402 OTOOL64="$ac_cv_prog_OTOOL64" 11403fi 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11432printf %s "checking for -single_module linker flag... " >&6; } 11433if test ${lt_cv_apple_cc_single_mod+y} 11434then : 11435 printf %s "(cached) " >&6 11436else $as_nop 11437 lt_cv_apple_cc_single_mod=no 11438 if test -z "$LT_MULTI_MODULE"; then 11439 # By default we will add the -single_module flag. You can override 11440 # by either setting the environment variable LT_MULTI_MODULE 11441 # non-empty at configure time, or by adding -multi_module to the 11442 # link flags. 11443 rm -rf libconftest.dylib* 11444 echo "int foo(void){return 1;}" > conftest.c 11445 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11446-dynamiclib -Wl,-single_module conftest.c" >&5 11447 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11448 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11449 _lt_result=$? 11450 # If there is a non-empty error log, and "single_module" 11451 # appears in it, assume the flag caused a linker warning 11452 if test -s conftest.err && $GREP single_module conftest.err; then 11453 cat conftest.err >&5 11454 # Otherwise, if the output was created with a 0 exit code from 11455 # the compiler, it worked. 11456 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11457 lt_cv_apple_cc_single_mod=yes 11458 else 11459 cat conftest.err >&5 11460 fi 11461 rm -rf libconftest.dylib* 11462 rm -f conftest.* 11463 fi 11464fi 11465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11466printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 11467 11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11469printf %s "checking for -exported_symbols_list linker flag... " >&6; } 11470if test ${lt_cv_ld_exported_symbols_list+y} 11471then : 11472 printf %s "(cached) " >&6 11473else $as_nop 11474 lt_cv_ld_exported_symbols_list=no 11475 save_LDFLAGS=$LDFLAGS 11476 echo "_main" > conftest.sym 11477 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11479/* end confdefs.h. */ 11480 11481int 11482main (void) 11483{ 11484 11485 ; 11486 return 0; 11487} 11488_ACEOF 11489if ac_fn_c_try_link "$LINENO" 11490then : 11491 lt_cv_ld_exported_symbols_list=yes 11492else $as_nop 11493 lt_cv_ld_exported_symbols_list=no 11494fi 11495rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11496 conftest$ac_exeext conftest.$ac_ext 11497 LDFLAGS=$save_LDFLAGS 11498 11499fi 11500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11501printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 11502 11503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11504printf %s "checking for -force_load linker flag... " >&6; } 11505if test ${lt_cv_ld_force_load+y} 11506then : 11507 printf %s "(cached) " >&6 11508else $as_nop 11509 lt_cv_ld_force_load=no 11510 cat > conftest.c << _LT_EOF 11511int forced_loaded() { return 2;} 11512_LT_EOF 11513 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11514 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11515 echo "$AR cru libconftest.a conftest.o" >&5 11516 $AR cru libconftest.a conftest.o 2>&5 11517 echo "$RANLIB libconftest.a" >&5 11518 $RANLIB libconftest.a 2>&5 11519 cat > conftest.c << _LT_EOF 11520int main() { return 0;} 11521_LT_EOF 11522 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11523 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11524 _lt_result=$? 11525 if test -s conftest.err && $GREP force_load conftest.err; then 11526 cat conftest.err >&5 11527 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11528 lt_cv_ld_force_load=yes 11529 else 11530 cat conftest.err >&5 11531 fi 11532 rm -f conftest.err libconftest.a conftest conftest.c 11533 rm -rf conftest.dSYM 11534 11535fi 11536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11537printf "%s\n" "$lt_cv_ld_force_load" >&6; } 11538 case $host_os in 11539 rhapsody* | darwin1.[012]) 11540 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11541 darwin1.*) 11542 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11543 darwin*) # darwin 5.x on 11544 # if running on 10.5 or later, the deployment target defaults 11545 # to the OS version, if on x86, and 10.4, the deployment 11546 # target defaults to 10.4. Don't you love it? 11547 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11548 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11549 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11550 10.[012][,.]*) 11551 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11552 10.*) 11553 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11554 esac 11555 ;; 11556 esac 11557 if test yes = "$lt_cv_apple_cc_single_mod"; then 11558 _lt_dar_single_mod='$single_module' 11559 fi 11560 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11561 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11562 else 11563 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11564 fi 11565 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11566 _lt_dsymutil='~$DSYMUTIL $lib || :' 11567 else 11568 _lt_dsymutil= 11569 fi 11570 ;; 11571 esac 11572 11573# func_munge_path_list VARIABLE PATH 11574# ----------------------------------- 11575# VARIABLE is name of variable containing _space_ separated list of 11576# directories to be munged by the contents of PATH, which is string 11577# having a format: 11578# "DIR[:DIR]:" 11579# string "DIR[ DIR]" will be prepended to VARIABLE 11580# ":DIR[:DIR]" 11581# string "DIR[ DIR]" will be appended to VARIABLE 11582# "DIRP[:DIRP]::[DIRA:]DIRA" 11583# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11584# "DIRA[ DIRA]" will be appended to VARIABLE 11585# "DIR[:DIR]" 11586# VARIABLE will be replaced by "DIR[ DIR]" 11587func_munge_path_list () 11588{ 11589 case x$2 in 11590 x) 11591 ;; 11592 *:) 11593 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11594 ;; 11595 x:*) 11596 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11597 ;; 11598 *::*) 11599 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11600 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11601 ;; 11602 *) 11603 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11604 ;; 11605 esac 11606} 11607 11608ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11609" 11610if test "x$ac_cv_header_dlfcn_h" = xyes 11611then : 11612 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 11613 11614fi 11615 11616 11617 11618 11619 11620# Set options 11621enable_win32_dll=yes 11622 11623case $host in 11624*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 11625 if test -n "$ac_tool_prefix"; then 11626 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 11627set dummy ${ac_tool_prefix}as; ac_word=$2 11628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11629printf %s "checking for $ac_word... " >&6; } 11630if test ${ac_cv_prog_AS+y} 11631then : 11632 printf %s "(cached) " >&6 11633else $as_nop 11634 if test -n "$AS"; then 11635 ac_cv_prog_AS="$AS" # Let the user override the test. 11636else 11637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11638for as_dir in $PATH 11639do 11640 IFS=$as_save_IFS 11641 case $as_dir in #((( 11642 '') as_dir=./ ;; 11643 */) ;; 11644 *) as_dir=$as_dir/ ;; 11645 esac 11646 for ac_exec_ext in '' $ac_executable_extensions; do 11647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11648 ac_cv_prog_AS="${ac_tool_prefix}as" 11649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11650 break 2 11651 fi 11652done 11653 done 11654IFS=$as_save_IFS 11655 11656fi 11657fi 11658AS=$ac_cv_prog_AS 11659if test -n "$AS"; then 11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 11661printf "%s\n" "$AS" >&6; } 11662else 11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11664printf "%s\n" "no" >&6; } 11665fi 11666 11667 11668fi 11669if test -z "$ac_cv_prog_AS"; then 11670 ac_ct_AS=$AS 11671 # Extract the first word of "as", so it can be a program name with args. 11672set dummy as; ac_word=$2 11673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11674printf %s "checking for $ac_word... " >&6; } 11675if test ${ac_cv_prog_ac_ct_AS+y} 11676then : 11677 printf %s "(cached) " >&6 11678else $as_nop 11679 if test -n "$ac_ct_AS"; then 11680 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 11681else 11682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11683for as_dir in $PATH 11684do 11685 IFS=$as_save_IFS 11686 case $as_dir in #((( 11687 '') as_dir=./ ;; 11688 */) ;; 11689 *) as_dir=$as_dir/ ;; 11690 esac 11691 for ac_exec_ext in '' $ac_executable_extensions; do 11692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11693 ac_cv_prog_ac_ct_AS="as" 11694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11695 break 2 11696 fi 11697done 11698 done 11699IFS=$as_save_IFS 11700 11701fi 11702fi 11703ac_ct_AS=$ac_cv_prog_ac_ct_AS 11704if test -n "$ac_ct_AS"; then 11705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 11706printf "%s\n" "$ac_ct_AS" >&6; } 11707else 11708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11709printf "%s\n" "no" >&6; } 11710fi 11711 11712 if test "x$ac_ct_AS" = x; then 11713 AS="false" 11714 else 11715 case $cross_compiling:$ac_tool_warned in 11716yes:) 11717{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11718printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11719ac_tool_warned=yes ;; 11720esac 11721 AS=$ac_ct_AS 11722 fi 11723else 11724 AS="$ac_cv_prog_AS" 11725fi 11726 11727 if test -n "$ac_tool_prefix"; then 11728 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11729set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11731printf %s "checking for $ac_word... " >&6; } 11732if test ${ac_cv_prog_DLLTOOL+y} 11733then : 11734 printf %s "(cached) " >&6 11735else $as_nop 11736 if test -n "$DLLTOOL"; then 11737 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11738else 11739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11740for as_dir in $PATH 11741do 11742 IFS=$as_save_IFS 11743 case $as_dir in #((( 11744 '') as_dir=./ ;; 11745 */) ;; 11746 *) as_dir=$as_dir/ ;; 11747 esac 11748 for ac_exec_ext in '' $ac_executable_extensions; do 11749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11750 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11752 break 2 11753 fi 11754done 11755 done 11756IFS=$as_save_IFS 11757 11758fi 11759fi 11760DLLTOOL=$ac_cv_prog_DLLTOOL 11761if test -n "$DLLTOOL"; then 11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11763printf "%s\n" "$DLLTOOL" >&6; } 11764else 11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11766printf "%s\n" "no" >&6; } 11767fi 11768 11769 11770fi 11771if test -z "$ac_cv_prog_DLLTOOL"; then 11772 ac_ct_DLLTOOL=$DLLTOOL 11773 # Extract the first word of "dlltool", so it can be a program name with args. 11774set dummy dlltool; ac_word=$2 11775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11776printf %s "checking for $ac_word... " >&6; } 11777if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 11778then : 11779 printf %s "(cached) " >&6 11780else $as_nop 11781 if test -n "$ac_ct_DLLTOOL"; then 11782 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11783else 11784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11785for as_dir in $PATH 11786do 11787 IFS=$as_save_IFS 11788 case $as_dir in #((( 11789 '') as_dir=./ ;; 11790 */) ;; 11791 *) as_dir=$as_dir/ ;; 11792 esac 11793 for ac_exec_ext in '' $ac_executable_extensions; do 11794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11795 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11797 break 2 11798 fi 11799done 11800 done 11801IFS=$as_save_IFS 11802 11803fi 11804fi 11805ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11806if test -n "$ac_ct_DLLTOOL"; then 11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11808printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 11809else 11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11811printf "%s\n" "no" >&6; } 11812fi 11813 11814 if test "x$ac_ct_DLLTOOL" = x; then 11815 DLLTOOL="false" 11816 else 11817 case $cross_compiling:$ac_tool_warned in 11818yes:) 11819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11820printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11821ac_tool_warned=yes ;; 11822esac 11823 DLLTOOL=$ac_ct_DLLTOOL 11824 fi 11825else 11826 DLLTOOL="$ac_cv_prog_DLLTOOL" 11827fi 11828 11829 if test -n "$ac_tool_prefix"; then 11830 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11831set dummy ${ac_tool_prefix}objdump; ac_word=$2 11832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11833printf %s "checking for $ac_word... " >&6; } 11834if test ${ac_cv_prog_OBJDUMP+y} 11835then : 11836 printf %s "(cached) " >&6 11837else $as_nop 11838 if test -n "$OBJDUMP"; then 11839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11840else 11841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11842for as_dir in $PATH 11843do 11844 IFS=$as_save_IFS 11845 case $as_dir in #((( 11846 '') as_dir=./ ;; 11847 */) ;; 11848 *) as_dir=$as_dir/ ;; 11849 esac 11850 for ac_exec_ext in '' $ac_executable_extensions; do 11851 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11854 break 2 11855 fi 11856done 11857 done 11858IFS=$as_save_IFS 11859 11860fi 11861fi 11862OBJDUMP=$ac_cv_prog_OBJDUMP 11863if test -n "$OBJDUMP"; then 11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11865printf "%s\n" "$OBJDUMP" >&6; } 11866else 11867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11868printf "%s\n" "no" >&6; } 11869fi 11870 11871 11872fi 11873if test -z "$ac_cv_prog_OBJDUMP"; then 11874 ac_ct_OBJDUMP=$OBJDUMP 11875 # Extract the first word of "objdump", so it can be a program name with args. 11876set dummy objdump; ac_word=$2 11877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11878printf %s "checking for $ac_word... " >&6; } 11879if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 11880then : 11881 printf %s "(cached) " >&6 11882else $as_nop 11883 if test -n "$ac_ct_OBJDUMP"; then 11884 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11885else 11886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11887for as_dir in $PATH 11888do 11889 IFS=$as_save_IFS 11890 case $as_dir in #((( 11891 '') as_dir=./ ;; 11892 */) ;; 11893 *) as_dir=$as_dir/ ;; 11894 esac 11895 for ac_exec_ext in '' $ac_executable_extensions; do 11896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11897 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11899 break 2 11900 fi 11901done 11902 done 11903IFS=$as_save_IFS 11904 11905fi 11906fi 11907ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11908if test -n "$ac_ct_OBJDUMP"; then 11909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11910printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 11911else 11912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11913printf "%s\n" "no" >&6; } 11914fi 11915 11916 if test "x$ac_ct_OBJDUMP" = x; then 11917 OBJDUMP="false" 11918 else 11919 case $cross_compiling:$ac_tool_warned in 11920yes:) 11921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11923ac_tool_warned=yes ;; 11924esac 11925 OBJDUMP=$ac_ct_OBJDUMP 11926 fi 11927else 11928 OBJDUMP="$ac_cv_prog_OBJDUMP" 11929fi 11930 11931 ;; 11932esac 11933 11934test -z "$AS" && AS=as 11935 11936 11937 11938 11939 11940test -z "$DLLTOOL" && DLLTOOL=dlltool 11941 11942 11943 11944 11945 11946test -z "$OBJDUMP" && OBJDUMP=objdump 11947 11948 11949 11950 11951 11952 11953 11954 enable_dlopen=no 11955 11956 11957 11958 # Check whether --enable-shared was given. 11959if test ${enable_shared+y} 11960then : 11961 enableval=$enable_shared; p=${PACKAGE-default} 11962 case $enableval in 11963 yes) enable_shared=yes ;; 11964 no) enable_shared=no ;; 11965 *) 11966 enable_shared=no 11967 # Look at the argument we got. We use all the common list separators. 11968 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11969 for pkg in $enableval; do 11970 IFS=$lt_save_ifs 11971 if test "X$pkg" = "X$p"; then 11972 enable_shared=yes 11973 fi 11974 done 11975 IFS=$lt_save_ifs 11976 ;; 11977 esac 11978else $as_nop 11979 enable_shared=yes 11980fi 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 # Check whether --enable-static was given. 11991if test ${enable_static+y} 11992then : 11993 enableval=$enable_static; p=${PACKAGE-default} 11994 case $enableval in 11995 yes) enable_static=yes ;; 11996 no) enable_static=no ;; 11997 *) 11998 enable_static=no 11999 # Look at the argument we got. We use all the common list separators. 12000 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12001 for pkg in $enableval; do 12002 IFS=$lt_save_ifs 12003 if test "X$pkg" = "X$p"; then 12004 enable_static=yes 12005 fi 12006 done 12007 IFS=$lt_save_ifs 12008 ;; 12009 esac 12010else $as_nop 12011 enable_static=yes 12012fi 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023# Check whether --with-pic was given. 12024if test ${with_pic+y} 12025then : 12026 withval=$with_pic; lt_p=${PACKAGE-default} 12027 case $withval in 12028 yes|no) pic_mode=$withval ;; 12029 *) 12030 pic_mode=default 12031 # Look at the argument we got. We use all the common list separators. 12032 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12033 for lt_pkg in $withval; do 12034 IFS=$lt_save_ifs 12035 if test "X$lt_pkg" = "X$lt_p"; then 12036 pic_mode=yes 12037 fi 12038 done 12039 IFS=$lt_save_ifs 12040 ;; 12041 esac 12042else $as_nop 12043 pic_mode=default 12044fi 12045 12046 12047 12048 12049 12050 12051 12052 12053 # Check whether --enable-fast-install was given. 12054if test ${enable_fast_install+y} 12055then : 12056 enableval=$enable_fast_install; p=${PACKAGE-default} 12057 case $enableval in 12058 yes) enable_fast_install=yes ;; 12059 no) enable_fast_install=no ;; 12060 *) 12061 enable_fast_install=no 12062 # Look at the argument we got. We use all the common list separators. 12063 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 12064 for pkg in $enableval; do 12065 IFS=$lt_save_ifs 12066 if test "X$pkg" = "X$p"; then 12067 enable_fast_install=yes 12068 fi 12069 done 12070 IFS=$lt_save_ifs 12071 ;; 12072 esac 12073else $as_nop 12074 enable_fast_install=yes 12075fi 12076 12077 12078 12079 12080 12081 12082 12083 12084 shared_archive_member_spec= 12085case $host,$enable_shared in 12086power*-*-aix[5-9]*,yes) 12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 12088printf %s "checking which variant of shared library versioning to provide... " >&6; } 12089 12090# Check whether --with-aix-soname was given. 12091if test ${with_aix_soname+y} 12092then : 12093 withval=$with_aix_soname; case $withval in 12094 aix|svr4|both) 12095 ;; 12096 *) 12097 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 12098 ;; 12099 esac 12100 lt_cv_with_aix_soname=$with_aix_soname 12101else $as_nop 12102 if test ${lt_cv_with_aix_soname+y} 12103then : 12104 printf %s "(cached) " >&6 12105else $as_nop 12106 lt_cv_with_aix_soname=aix 12107fi 12108 12109 with_aix_soname=$lt_cv_with_aix_soname 12110fi 12111 12112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 12113printf "%s\n" "$with_aix_soname" >&6; } 12114 if test aix != "$with_aix_soname"; then 12115 # For the AIX way of multilib, we name the shared archive member 12116 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 12117 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 12118 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 12119 # the AIX toolchain works better with OBJECT_MODE set (default 32). 12120 if test 64 = "${OBJECT_MODE-32}"; then 12121 shared_archive_member_spec=shr_64 12122 else 12123 shared_archive_member_spec=shr 12124 fi 12125 fi 12126 ;; 12127*) 12128 with_aix_soname=aix 12129 ;; 12130esac 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141# This can be used to rebuild libtool when needed 12142LIBTOOL_DEPS=$ltmain 12143 12144# Always use our own libtool. 12145LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 12176test -z "$LN_S" && LN_S="ln -s" 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191if test -n "${ZSH_VERSION+set}"; then 12192 setopt NO_GLOB_SUBST 12193fi 12194 12195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 12196printf %s "checking for objdir... " >&6; } 12197if test ${lt_cv_objdir+y} 12198then : 12199 printf %s "(cached) " >&6 12200else $as_nop 12201 rm -f .libs 2>/dev/null 12202mkdir .libs 2>/dev/null 12203if test -d .libs; then 12204 lt_cv_objdir=.libs 12205else 12206 # MS-DOS does not allow filenames that begin with a dot. 12207 lt_cv_objdir=_libs 12208fi 12209rmdir .libs 2>/dev/null 12210fi 12211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 12212printf "%s\n" "$lt_cv_objdir" >&6; } 12213objdir=$lt_cv_objdir 12214 12215 12216 12217 12218 12219printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 12220 12221 12222 12223 12224case $host_os in 12225aix3*) 12226 # AIX sometimes has problems with the GCC collect2 program. For some 12227 # reason, if we set the COLLECT_NAMES environment variable, the problems 12228 # vanish in a puff of smoke. 12229 if test set != "${COLLECT_NAMES+set}"; then 12230 COLLECT_NAMES= 12231 export COLLECT_NAMES 12232 fi 12233 ;; 12234esac 12235 12236# Global variables: 12237ofile=libtool 12238can_build_shared=yes 12239 12240# All known linkers require a '.a' archive for static linking (except MSVC, 12241# which needs '.lib'). 12242libext=a 12243 12244with_gnu_ld=$lt_cv_prog_gnu_ld 12245 12246old_CC=$CC 12247old_CFLAGS=$CFLAGS 12248 12249# Set sane defaults for various variables 12250test -z "$CC" && CC=cc 12251test -z "$LTCC" && LTCC=$CC 12252test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 12253test -z "$LD" && LD=ld 12254test -z "$ac_objext" && ac_objext=o 12255 12256func_cc_basename $compiler 12257cc_basename=$func_cc_basename_result 12258 12259 12260# Only perform the check for file, if the check method requires it 12261test -z "$MAGIC_CMD" && MAGIC_CMD=file 12262case $deplibs_check_method in 12263file_magic*) 12264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 12265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 12266printf %s "checking for ${ac_tool_prefix}file... " >&6; } 12267if test ${lt_cv_path_MAGIC_CMD+y} 12268then : 12269 printf %s "(cached) " >&6 12270else $as_nop 12271 case $MAGIC_CMD in 12272[\\/*] | ?:[\\/]*) 12273 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12274 ;; 12275*) 12276 lt_save_MAGIC_CMD=$MAGIC_CMD 12277 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12278 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12279 for ac_dir in $ac_dummy; do 12280 IFS=$lt_save_ifs 12281 test -z "$ac_dir" && ac_dir=. 12282 if test -f "$ac_dir/${ac_tool_prefix}file"; then 12283 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 12284 if test -n "$file_magic_test_file"; then 12285 case $deplibs_check_method in 12286 "file_magic "*) 12287 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12288 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12289 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12290 $EGREP "$file_magic_regex" > /dev/null; then 12291 : 12292 else 12293 cat <<_LT_EOF 1>&2 12294 12295*** Warning: the command libtool uses to detect shared libraries, 12296*** $file_magic_cmd, produces output that libtool cannot recognize. 12297*** The result is that libtool may fail to recognize shared libraries 12298*** as such. This will affect the creation of libtool libraries that 12299*** depend on shared libraries, but programs linked with such libtool 12300*** libraries will work regardless of this problem. Nevertheless, you 12301*** may want to report the problem to your system manager and/or to 12302*** bug-libtool@gnu.org 12303 12304_LT_EOF 12305 fi ;; 12306 esac 12307 fi 12308 break 12309 fi 12310 done 12311 IFS=$lt_save_ifs 12312 MAGIC_CMD=$lt_save_MAGIC_CMD 12313 ;; 12314esac 12315fi 12316 12317MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12318if test -n "$MAGIC_CMD"; then 12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12320printf "%s\n" "$MAGIC_CMD" >&6; } 12321else 12322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12323printf "%s\n" "no" >&6; } 12324fi 12325 12326 12327 12328 12329 12330if test -z "$lt_cv_path_MAGIC_CMD"; then 12331 if test -n "$ac_tool_prefix"; then 12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 12333printf %s "checking for file... " >&6; } 12334if test ${lt_cv_path_MAGIC_CMD+y} 12335then : 12336 printf %s "(cached) " >&6 12337else $as_nop 12338 case $MAGIC_CMD in 12339[\\/*] | ?:[\\/]*) 12340 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 12341 ;; 12342*) 12343 lt_save_MAGIC_CMD=$MAGIC_CMD 12344 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 12346 for ac_dir in $ac_dummy; do 12347 IFS=$lt_save_ifs 12348 test -z "$ac_dir" && ac_dir=. 12349 if test -f "$ac_dir/file"; then 12350 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 12351 if test -n "$file_magic_test_file"; then 12352 case $deplibs_check_method in 12353 "file_magic "*) 12354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 12355 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 12357 $EGREP "$file_magic_regex" > /dev/null; then 12358 : 12359 else 12360 cat <<_LT_EOF 1>&2 12361 12362*** Warning: the command libtool uses to detect shared libraries, 12363*** $file_magic_cmd, produces output that libtool cannot recognize. 12364*** The result is that libtool may fail to recognize shared libraries 12365*** as such. This will affect the creation of libtool libraries that 12366*** depend on shared libraries, but programs linked with such libtool 12367*** libraries will work regardless of this problem. Nevertheless, you 12368*** may want to report the problem to your system manager and/or to 12369*** bug-libtool@gnu.org 12370 12371_LT_EOF 12372 fi ;; 12373 esac 12374 fi 12375 break 12376 fi 12377 done 12378 IFS=$lt_save_ifs 12379 MAGIC_CMD=$lt_save_MAGIC_CMD 12380 ;; 12381esac 12382fi 12383 12384MAGIC_CMD=$lt_cv_path_MAGIC_CMD 12385if test -n "$MAGIC_CMD"; then 12386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 12387printf "%s\n" "$MAGIC_CMD" >&6; } 12388else 12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12390printf "%s\n" "no" >&6; } 12391fi 12392 12393 12394 else 12395 MAGIC_CMD=: 12396 fi 12397fi 12398 12399 fi 12400 ;; 12401esac 12402 12403# Use C for the default configuration in the libtool script 12404 12405lt_save_CC=$CC 12406ac_ext=c 12407ac_cpp='$CPP $CPPFLAGS' 12408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12410ac_compiler_gnu=$ac_cv_c_compiler_gnu 12411 12412 12413# Source file extension for C test sources. 12414ac_ext=c 12415 12416# Object file extension for compiled C test sources. 12417objext=o 12418objext=$objext 12419 12420# Code to be used in simple compile tests 12421lt_simple_compile_test_code="int some_variable = 0;" 12422 12423# Code to be used in simple link tests 12424lt_simple_link_test_code='int main(){return(0);}' 12425 12426 12427 12428 12429 12430 12431 12432# If no C compiler was specified, use CC. 12433LTCC=${LTCC-"$CC"} 12434 12435# If no C compiler flags were specified, use CFLAGS. 12436LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12437 12438# Allow CC to be a program name with arguments. 12439compiler=$CC 12440 12441# Save the default compiler, since it gets overwritten when the other 12442# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 12443compiler_DEFAULT=$CC 12444 12445# save warnings/boilerplate of simple test code 12446ac_outfile=conftest.$ac_objext 12447echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12448eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12449_lt_compiler_boilerplate=`cat conftest.err` 12450$RM conftest* 12451 12452ac_outfile=conftest.$ac_objext 12453echo "$lt_simple_link_test_code" >conftest.$ac_ext 12454eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12455_lt_linker_boilerplate=`cat conftest.err` 12456$RM -r conftest* 12457 12458 12459## CAVEAT EMPTOR: 12460## There is no encapsulation within the following macros, do not change 12461## the running order or otherwise move them around unless you know exactly 12462## what you are doing... 12463if test -n "$compiler"; then 12464 12465lt_prog_compiler_no_builtin_flag= 12466 12467if test yes = "$GCC"; then 12468 case $cc_basename in 12469 nvcc*) 12470 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 12471 *) 12472 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 12473 esac 12474 12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 12476printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 12477if test ${lt_cv_prog_compiler_rtti_exceptions+y} 12478then : 12479 printf %s "(cached) " >&6 12480else $as_nop 12481 lt_cv_prog_compiler_rtti_exceptions=no 12482 ac_outfile=conftest.$ac_objext 12483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12484 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 12485 # Insert the option either (1) after the last *FLAGS variable, or 12486 # (2) before a word containing "conftest.", or (3) at the end. 12487 # Note that $ac_compile itself does not contain backslashes and begins 12488 # with a dollar sign (not a hyphen), so the echo should work correctly. 12489 # The option is referenced via a variable to avoid confusing sed. 12490 lt_compile=`echo "$ac_compile" | $SED \ 12491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12493 -e 's:$: $lt_compiler_flag:'` 12494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12495 (eval "$lt_compile" 2>conftest.err) 12496 ac_status=$? 12497 cat conftest.err >&5 12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12499 if (exit $ac_status) && test -s "$ac_outfile"; then 12500 # The compiler can only warn and ignore the option if not recognized 12501 # So say no if there are warnings other than the usual output. 12502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12505 lt_cv_prog_compiler_rtti_exceptions=yes 12506 fi 12507 fi 12508 $RM conftest* 12509 12510fi 12511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 12512printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 12513 12514if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 12515 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 12516else 12517 : 12518fi 12519 12520fi 12521 12522 12523 12524 12525 12526 12527 lt_prog_compiler_wl= 12528lt_prog_compiler_pic= 12529lt_prog_compiler_static= 12530 12531 12532 if test yes = "$GCC"; then 12533 lt_prog_compiler_wl='-Wl,' 12534 lt_prog_compiler_static='-static' 12535 12536 case $host_os in 12537 aix*) 12538 # All AIX code is PIC. 12539 if test ia64 = "$host_cpu"; then 12540 # AIX 5 now supports IA64 processor 12541 lt_prog_compiler_static='-Bstatic' 12542 fi 12543 lt_prog_compiler_pic='-fPIC' 12544 ;; 12545 12546 amigaos*) 12547 case $host_cpu in 12548 powerpc) 12549 # see comment about AmigaOS4 .so support 12550 lt_prog_compiler_pic='-fPIC' 12551 ;; 12552 m68k) 12553 # FIXME: we need at least 68020 code to build shared libraries, but 12554 # adding the '-m68020' flag to GCC prevents building anything better, 12555 # like '-m68040'. 12556 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12557 ;; 12558 esac 12559 ;; 12560 12561 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12562 # PIC is the default for these OSes. 12563 ;; 12564 12565 mingw* | cygwin* | pw32* | os2* | cegcc*) 12566 # This hack is so that the source file can tell whether it is being 12567 # built for inclusion in a dll (and should export symbols for example). 12568 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12569 # (--disable-auto-import) libraries 12570 lt_prog_compiler_pic='-DDLL_EXPORT' 12571 case $host_os in 12572 os2*) 12573 lt_prog_compiler_static='$wl-static' 12574 ;; 12575 esac 12576 ;; 12577 12578 darwin* | rhapsody*) 12579 # PIC is the default on this platform 12580 # Common symbols not allowed in MH_DYLIB files 12581 lt_prog_compiler_pic='-fno-common' 12582 ;; 12583 12584 haiku*) 12585 # PIC is the default for Haiku. 12586 # The "-static" flag exists, but is broken. 12587 lt_prog_compiler_static= 12588 ;; 12589 12590 hpux*) 12591 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12592 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12593 # sets the default TLS model and affects inlining. 12594 case $host_cpu in 12595 hppa*64*) 12596 # +Z the default 12597 ;; 12598 *) 12599 lt_prog_compiler_pic='-fPIC' 12600 ;; 12601 esac 12602 ;; 12603 12604 interix[3-9]*) 12605 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12606 # Instead, we relocate shared libraries at runtime. 12607 ;; 12608 12609 msdosdjgpp*) 12610 # Just because we use GCC doesn't mean we suddenly get shared libraries 12611 # on systems that don't support them. 12612 lt_prog_compiler_can_build_shared=no 12613 enable_shared=no 12614 ;; 12615 12616 *nto* | *qnx*) 12617 # QNX uses GNU C++, but need to define -shared option too, otherwise 12618 # it will coredump. 12619 lt_prog_compiler_pic='-fPIC -shared' 12620 ;; 12621 12622 sysv4*MP*) 12623 if test -d /usr/nec; then 12624 lt_prog_compiler_pic=-Kconform_pic 12625 fi 12626 ;; 12627 12628 *) 12629 lt_prog_compiler_pic='-fPIC' 12630 ;; 12631 esac 12632 12633 case $cc_basename in 12634 nvcc*) # Cuda Compiler Driver 2.2 12635 lt_prog_compiler_wl='-Xlinker ' 12636 if test -n "$lt_prog_compiler_pic"; then 12637 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12638 fi 12639 ;; 12640 esac 12641 else 12642 # PORTME Check for flag to pass linker flags through the system compiler. 12643 case $host_os in 12644 aix*) 12645 lt_prog_compiler_wl='-Wl,' 12646 if test ia64 = "$host_cpu"; then 12647 # AIX 5 now supports IA64 processor 12648 lt_prog_compiler_static='-Bstatic' 12649 else 12650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12651 fi 12652 ;; 12653 12654 darwin* | rhapsody*) 12655 # PIC is the default on this platform 12656 # Common symbols not allowed in MH_DYLIB files 12657 lt_prog_compiler_pic='-fno-common' 12658 case $cc_basename in 12659 nagfor*) 12660 # NAG Fortran compiler 12661 lt_prog_compiler_wl='-Wl,-Wl,,' 12662 lt_prog_compiler_pic='-PIC' 12663 lt_prog_compiler_static='-Bstatic' 12664 ;; 12665 esac 12666 ;; 12667 12668 mingw* | cygwin* | pw32* | os2* | cegcc*) 12669 # This hack is so that the source file can tell whether it is being 12670 # built for inclusion in a dll (and should export symbols for example). 12671 lt_prog_compiler_pic='-DDLL_EXPORT' 12672 case $host_os in 12673 os2*) 12674 lt_prog_compiler_static='$wl-static' 12675 ;; 12676 esac 12677 ;; 12678 12679 hpux9* | hpux10* | hpux11*) 12680 lt_prog_compiler_wl='-Wl,' 12681 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12682 # not for PA HP-UX. 12683 case $host_cpu in 12684 hppa*64*|ia64*) 12685 # +Z the default 12686 ;; 12687 *) 12688 lt_prog_compiler_pic='+Z' 12689 ;; 12690 esac 12691 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12692 lt_prog_compiler_static='$wl-a ${wl}archive' 12693 ;; 12694 12695 irix5* | irix6* | nonstopux*) 12696 lt_prog_compiler_wl='-Wl,' 12697 # PIC (with -KPIC) is the default. 12698 lt_prog_compiler_static='-non_shared' 12699 ;; 12700 12701 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12702 case $cc_basename in 12703 # old Intel for x86_64, which still supported -KPIC. 12704 ecc*) 12705 lt_prog_compiler_wl='-Wl,' 12706 lt_prog_compiler_pic='-KPIC' 12707 lt_prog_compiler_static='-static' 12708 ;; 12709 # icc used to be incompatible with GCC. 12710 # ICC 10 doesn't accept -KPIC any more. 12711 icc* | ifort*) 12712 lt_prog_compiler_wl='-Wl,' 12713 lt_prog_compiler_pic='-fPIC' 12714 lt_prog_compiler_static='-static' 12715 ;; 12716 # Lahey Fortran 8.1. 12717 lf95*) 12718 lt_prog_compiler_wl='-Wl,' 12719 lt_prog_compiler_pic='--shared' 12720 lt_prog_compiler_static='--static' 12721 ;; 12722 nagfor*) 12723 # NAG Fortran compiler 12724 lt_prog_compiler_wl='-Wl,-Wl,,' 12725 lt_prog_compiler_pic='-PIC' 12726 lt_prog_compiler_static='-Bstatic' 12727 ;; 12728 tcc*) 12729 # Fabrice Bellard et al's Tiny C Compiler 12730 lt_prog_compiler_wl='-Wl,' 12731 lt_prog_compiler_pic='-fPIC' 12732 lt_prog_compiler_static='-static' 12733 ;; 12734 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12735 # Portland Group compilers (*not* the Pentium gcc compiler, 12736 # which looks to be a dead project) 12737 lt_prog_compiler_wl='-Wl,' 12738 lt_prog_compiler_pic='-fpic' 12739 lt_prog_compiler_static='-Bstatic' 12740 ;; 12741 ccc*) 12742 lt_prog_compiler_wl='-Wl,' 12743 # All Alpha code is PIC. 12744 lt_prog_compiler_static='-non_shared' 12745 ;; 12746 xl* | bgxl* | bgf* | mpixl*) 12747 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12748 lt_prog_compiler_wl='-Wl,' 12749 lt_prog_compiler_pic='-qpic' 12750 lt_prog_compiler_static='-qstaticlink' 12751 ;; 12752 *) 12753 case `$CC -V 2>&1 | sed 5q` in 12754 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12755 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12756 lt_prog_compiler_pic='-KPIC' 12757 lt_prog_compiler_static='-Bstatic' 12758 lt_prog_compiler_wl='' 12759 ;; 12760 *Sun\ F* | *Sun*Fortran*) 12761 lt_prog_compiler_pic='-KPIC' 12762 lt_prog_compiler_static='-Bstatic' 12763 lt_prog_compiler_wl='-Qoption ld ' 12764 ;; 12765 *Sun\ C*) 12766 # Sun C 5.9 12767 lt_prog_compiler_pic='-KPIC' 12768 lt_prog_compiler_static='-Bstatic' 12769 lt_prog_compiler_wl='-Wl,' 12770 ;; 12771 *Intel*\ [CF]*Compiler*) 12772 lt_prog_compiler_wl='-Wl,' 12773 lt_prog_compiler_pic='-fPIC' 12774 lt_prog_compiler_static='-static' 12775 ;; 12776 *Portland\ Group*) 12777 lt_prog_compiler_wl='-Wl,' 12778 lt_prog_compiler_pic='-fpic' 12779 lt_prog_compiler_static='-Bstatic' 12780 ;; 12781 esac 12782 ;; 12783 esac 12784 ;; 12785 12786 newsos6) 12787 lt_prog_compiler_pic='-KPIC' 12788 lt_prog_compiler_static='-Bstatic' 12789 ;; 12790 12791 *nto* | *qnx*) 12792 # QNX uses GNU C++, but need to define -shared option too, otherwise 12793 # it will coredump. 12794 lt_prog_compiler_pic='-fPIC -shared' 12795 ;; 12796 12797 osf3* | osf4* | osf5*) 12798 lt_prog_compiler_wl='-Wl,' 12799 # All OSF/1 code is PIC. 12800 lt_prog_compiler_static='-non_shared' 12801 ;; 12802 12803 rdos*) 12804 lt_prog_compiler_static='-non_shared' 12805 ;; 12806 12807 solaris*) 12808 lt_prog_compiler_pic='-KPIC' 12809 lt_prog_compiler_static='-Bstatic' 12810 case $cc_basename in 12811 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12812 lt_prog_compiler_wl='-Qoption ld ';; 12813 *) 12814 lt_prog_compiler_wl='-Wl,';; 12815 esac 12816 ;; 12817 12818 sunos4*) 12819 lt_prog_compiler_wl='-Qoption ld ' 12820 lt_prog_compiler_pic='-PIC' 12821 lt_prog_compiler_static='-Bstatic' 12822 ;; 12823 12824 sysv4 | sysv4.2uw2* | sysv4.3*) 12825 lt_prog_compiler_wl='-Wl,' 12826 lt_prog_compiler_pic='-KPIC' 12827 lt_prog_compiler_static='-Bstatic' 12828 ;; 12829 12830 sysv4*MP*) 12831 if test -d /usr/nec; then 12832 lt_prog_compiler_pic='-Kconform_pic' 12833 lt_prog_compiler_static='-Bstatic' 12834 fi 12835 ;; 12836 12837 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12838 lt_prog_compiler_wl='-Wl,' 12839 lt_prog_compiler_pic='-KPIC' 12840 lt_prog_compiler_static='-Bstatic' 12841 ;; 12842 12843 unicos*) 12844 lt_prog_compiler_wl='-Wl,' 12845 lt_prog_compiler_can_build_shared=no 12846 ;; 12847 12848 uts4*) 12849 lt_prog_compiler_pic='-pic' 12850 lt_prog_compiler_static='-Bstatic' 12851 ;; 12852 12853 *) 12854 lt_prog_compiler_can_build_shared=no 12855 ;; 12856 esac 12857 fi 12858 12859case $host_os in 12860 # For platforms that do not support PIC, -DPIC is meaningless: 12861 *djgpp*) 12862 lt_prog_compiler_pic= 12863 ;; 12864 *) 12865 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12866 ;; 12867esac 12868 12869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12870printf %s "checking for $compiler option to produce PIC... " >&6; } 12871if test ${lt_cv_prog_compiler_pic+y} 12872then : 12873 printf %s "(cached) " >&6 12874else $as_nop 12875 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12876fi 12877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12878printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12879lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12880 12881# 12882# Check to make sure the PIC flag actually works. 12883# 12884if test -n "$lt_prog_compiler_pic"; then 12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12886printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12887if test ${lt_cv_prog_compiler_pic_works+y} 12888then : 12889 printf %s "(cached) " >&6 12890else $as_nop 12891 lt_cv_prog_compiler_pic_works=no 12892 ac_outfile=conftest.$ac_objext 12893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12894 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12895 # Insert the option either (1) after the last *FLAGS variable, or 12896 # (2) before a word containing "conftest.", or (3) at the end. 12897 # Note that $ac_compile itself does not contain backslashes and begins 12898 # with a dollar sign (not a hyphen), so the echo should work correctly. 12899 # The option is referenced via a variable to avoid confusing sed. 12900 lt_compile=`echo "$ac_compile" | $SED \ 12901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12903 -e 's:$: $lt_compiler_flag:'` 12904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12905 (eval "$lt_compile" 2>conftest.err) 12906 ac_status=$? 12907 cat conftest.err >&5 12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12909 if (exit $ac_status) && test -s "$ac_outfile"; then 12910 # The compiler can only warn and ignore the option if not recognized 12911 # So say no if there are warnings other than the usual output. 12912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12915 lt_cv_prog_compiler_pic_works=yes 12916 fi 12917 fi 12918 $RM conftest* 12919 12920fi 12921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12922printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12923 12924if test yes = "$lt_cv_prog_compiler_pic_works"; then 12925 case $lt_prog_compiler_pic in 12926 "" | " "*) ;; 12927 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12928 esac 12929else 12930 lt_prog_compiler_pic= 12931 lt_prog_compiler_can_build_shared=no 12932fi 12933 12934fi 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946# 12947# Check to make sure the static flag actually works. 12948# 12949wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12951printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12952if test ${lt_cv_prog_compiler_static_works+y} 12953then : 12954 printf %s "(cached) " >&6 12955else $as_nop 12956 lt_cv_prog_compiler_static_works=no 12957 save_LDFLAGS=$LDFLAGS 12958 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12959 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12960 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12961 # The linker can only warn and ignore the option if not recognized 12962 # So say no if there are warnings 12963 if test -s conftest.err; then 12964 # Append any errors to the config.log. 12965 cat conftest.err 1>&5 12966 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12968 if diff conftest.exp conftest.er2 >/dev/null; then 12969 lt_cv_prog_compiler_static_works=yes 12970 fi 12971 else 12972 lt_cv_prog_compiler_static_works=yes 12973 fi 12974 fi 12975 $RM -r conftest* 12976 LDFLAGS=$save_LDFLAGS 12977 12978fi 12979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12980printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12981 12982if test yes = "$lt_cv_prog_compiler_static_works"; then 12983 : 12984else 12985 lt_prog_compiler_static= 12986fi 12987 12988 12989 12990 12991 12992 12993 12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12995printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12996if test ${lt_cv_prog_compiler_c_o+y} 12997then : 12998 printf %s "(cached) " >&6 12999else $as_nop 13000 lt_cv_prog_compiler_c_o=no 13001 $RM -r conftest 2>/dev/null 13002 mkdir conftest 13003 cd conftest 13004 mkdir out 13005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13006 13007 lt_compiler_flag="-o out/conftest2.$ac_objext" 13008 # Insert the option either (1) after the last *FLAGS variable, or 13009 # (2) before a word containing "conftest.", or (3) at the end. 13010 # Note that $ac_compile itself does not contain backslashes and begins 13011 # with a dollar sign (not a hyphen), so the echo should work correctly. 13012 lt_compile=`echo "$ac_compile" | $SED \ 13013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13015 -e 's:$: $lt_compiler_flag:'` 13016 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13017 (eval "$lt_compile" 2>out/conftest.err) 13018 ac_status=$? 13019 cat out/conftest.err >&5 13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13021 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13022 then 13023 # The compiler can only warn and ignore the option if not recognized 13024 # So say no if there are warnings 13025 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13026 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13027 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13028 lt_cv_prog_compiler_c_o=yes 13029 fi 13030 fi 13031 chmod u+w . 2>&5 13032 $RM conftest* 13033 # SGI C++ compiler will create directory out/ii_files/ for 13034 # template instantiation 13035 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13036 $RM out/* && rmdir out 13037 cd .. 13038 $RM -r conftest 13039 $RM conftest* 13040 13041fi 13042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13043printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13044 13045 13046 13047 13048 13049 13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13051printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13052if test ${lt_cv_prog_compiler_c_o+y} 13053then : 13054 printf %s "(cached) " >&6 13055else $as_nop 13056 lt_cv_prog_compiler_c_o=no 13057 $RM -r conftest 2>/dev/null 13058 mkdir conftest 13059 cd conftest 13060 mkdir out 13061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13062 13063 lt_compiler_flag="-o out/conftest2.$ac_objext" 13064 # Insert the option either (1) after the last *FLAGS variable, or 13065 # (2) before a word containing "conftest.", or (3) at the end. 13066 # Note that $ac_compile itself does not contain backslashes and begins 13067 # with a dollar sign (not a hyphen), so the echo should work correctly. 13068 lt_compile=`echo "$ac_compile" | $SED \ 13069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13071 -e 's:$: $lt_compiler_flag:'` 13072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13073 (eval "$lt_compile" 2>out/conftest.err) 13074 ac_status=$? 13075 cat out/conftest.err >&5 13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13077 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13078 then 13079 # The compiler can only warn and ignore the option if not recognized 13080 # So say no if there are warnings 13081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13084 lt_cv_prog_compiler_c_o=yes 13085 fi 13086 fi 13087 chmod u+w . 2>&5 13088 $RM conftest* 13089 # SGI C++ compiler will create directory out/ii_files/ for 13090 # template instantiation 13091 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13092 $RM out/* && rmdir out 13093 cd .. 13094 $RM -r conftest 13095 $RM conftest* 13096 13097fi 13098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 13099printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 13100 13101 13102 13103 13104hard_links=nottested 13105if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 13106 # do not overwrite the value of need_locks provided by the user 13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13108printf %s "checking if we can lock with hard links... " >&6; } 13109 hard_links=yes 13110 $RM conftest* 13111 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13112 touch conftest.a 13113 ln conftest.a conftest.b 2>&5 || hard_links=no 13114 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13116printf "%s\n" "$hard_links" >&6; } 13117 if test no = "$hard_links"; then 13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 13119printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 13120 need_locks=warn 13121 fi 13122else 13123 need_locks=no 13124fi 13125 13126 13127 13128 13129 13130 13131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13132printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13133 13134 runpath_var= 13135 allow_undefined_flag= 13136 always_export_symbols=no 13137 archive_cmds= 13138 archive_expsym_cmds= 13139 compiler_needs_object=no 13140 enable_shared_with_static_runtimes=no 13141 export_dynamic_flag_spec= 13142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13143 hardcode_automatic=no 13144 hardcode_direct=no 13145 hardcode_direct_absolute=no 13146 hardcode_libdir_flag_spec= 13147 hardcode_libdir_separator= 13148 hardcode_minus_L=no 13149 hardcode_shlibpath_var=unsupported 13150 inherit_rpath=no 13151 link_all_deplibs=unknown 13152 module_cmds= 13153 module_expsym_cmds= 13154 old_archive_from_new_cmds= 13155 old_archive_from_expsyms_cmds= 13156 thread_safe_flag_spec= 13157 whole_archive_flag_spec= 13158 # include_expsyms should be a list of space-separated symbols to be *always* 13159 # included in the symbol list 13160 include_expsyms= 13161 # exclude_expsyms can be an extended regexp of symbols to exclude 13162 # it will be wrapped by ' (' and ')$', so one must not match beginning or 13163 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 13164 # as well as any symbol that contains 'd'. 13165 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13166 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13167 # platforms (ab)use it in PIC code, but their linkers get confused if 13168 # the symbol is explicitly referenced. Since portable code cannot 13169 # rely on this symbol name, it's probably fine to never include it in 13170 # preloaded symbol tables. 13171 # Exclude shared library initialization/finalization symbols. 13172 extract_expsyms_cmds= 13173 13174 case $host_os in 13175 cygwin* | mingw* | pw32* | cegcc*) 13176 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13177 # When not using gcc, we currently assume that we are using 13178 # Microsoft Visual C++. 13179 if test yes != "$GCC"; then 13180 with_gnu_ld=no 13181 fi 13182 ;; 13183 interix*) 13184 # we just hope/assume this is gcc and not c89 (= MSVC++) 13185 with_gnu_ld=yes 13186 ;; 13187 openbsd* | bitrig*) 13188 with_gnu_ld=no 13189 ;; 13190 linux* | k*bsd*-gnu | gnu*) 13191 link_all_deplibs=no 13192 ;; 13193 esac 13194 13195 ld_shlibs=yes 13196 13197 # On some targets, GNU ld is compatible enough with the native linker 13198 # that we're better off using the native interface for both. 13199 lt_use_gnu_ld_interface=no 13200 if test yes = "$with_gnu_ld"; then 13201 case $host_os in 13202 aix*) 13203 # The AIX port of GNU ld has always aspired to compatibility 13204 # with the native linker. However, as the warning in the GNU ld 13205 # block says, versions before 2.19.5* couldn't really create working 13206 # shared libraries, regardless of the interface used. 13207 case `$LD -v 2>&1` in 13208 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13209 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13210 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13211 *) 13212 lt_use_gnu_ld_interface=yes 13213 ;; 13214 esac 13215 ;; 13216 *) 13217 lt_use_gnu_ld_interface=yes 13218 ;; 13219 esac 13220 fi 13221 13222 if test yes = "$lt_use_gnu_ld_interface"; then 13223 # If archive_cmds runs LD, not CC, wlarc should be empty 13224 wlarc='$wl' 13225 13226 # Set some defaults for GNU ld with shared library support. These 13227 # are reset later if shared libraries are not supported. Putting them 13228 # here allows them to be overridden if necessary. 13229 runpath_var=LD_RUN_PATH 13230 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13231 export_dynamic_flag_spec='$wl--export-dynamic' 13232 # ancient GNU ld didn't support --whole-archive et. al. 13233 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13234 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13235 else 13236 whole_archive_flag_spec= 13237 fi 13238 supports_anon_versioning=no 13239 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 13240 *GNU\ gold*) supports_anon_versioning=yes ;; 13241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13244 *\ 2.11.*) ;; # other 2.11 versions 13245 *) supports_anon_versioning=yes ;; 13246 esac 13247 13248 # See if GNU ld supports shared libraries. 13249 case $host_os in 13250 aix[3-9]*) 13251 # On AIX/PPC, the GNU linker is very broken 13252 if test ia64 != "$host_cpu"; then 13253 ld_shlibs=no 13254 cat <<_LT_EOF 1>&2 13255 13256*** Warning: the GNU linker, at least up to release 2.19, is reported 13257*** to be unable to reliably create shared libraries on AIX. 13258*** Therefore, libtool is disabling shared libraries support. If you 13259*** really care for shared libraries, you may want to install binutils 13260*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13261*** You will then need to restart the configuration process. 13262 13263_LT_EOF 13264 fi 13265 ;; 13266 13267 amigaos*) 13268 case $host_cpu in 13269 powerpc) 13270 # see comment about AmigaOS4 .so support 13271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13272 archive_expsym_cmds='' 13273 ;; 13274 m68k) 13275 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)' 13276 hardcode_libdir_flag_spec='-L$libdir' 13277 hardcode_minus_L=yes 13278 ;; 13279 esac 13280 ;; 13281 13282 beos*) 13283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13284 allow_undefined_flag=unsupported 13285 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13286 # support --undefined. This deserves some investigation. FIXME 13287 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13288 else 13289 ld_shlibs=no 13290 fi 13291 ;; 13292 13293 cygwin* | mingw* | pw32* | cegcc*) 13294 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 13295 # as there is no search path for DLLs. 13296 hardcode_libdir_flag_spec='-L$libdir' 13297 export_dynamic_flag_spec='$wl--export-all-symbols' 13298 allow_undefined_flag=unsupported 13299 always_export_symbols=no 13300 enable_shared_with_static_runtimes=yes 13301 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' 13302 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13303 13304 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13306 # If the export-symbols file already is a .def file, use it as 13307 # is; otherwise, prepend EXPORTS... 13308 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13309 cp $export_symbols $output_objdir/$soname.def; 13310 else 13311 echo EXPORTS > $output_objdir/$soname.def; 13312 cat $export_symbols >> $output_objdir/$soname.def; 13313 fi~ 13314 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13315 else 13316 ld_shlibs=no 13317 fi 13318 ;; 13319 13320 haiku*) 13321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13322 link_all_deplibs=yes 13323 ;; 13324 13325 os2*) 13326 hardcode_libdir_flag_spec='-L$libdir' 13327 hardcode_minus_L=yes 13328 allow_undefined_flag=unsupported 13329 shrext_cmds=.dll 13330 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13331 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13332 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13333 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13334 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13335 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13336 emximp -o $lib $output_objdir/$libname.def' 13337 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13338 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13339 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13340 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13341 prefix_cmds="$SED"~ 13342 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13343 prefix_cmds="$prefix_cmds -e 1d"; 13344 fi~ 13345 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13346 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13347 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13348 emximp -o $lib $output_objdir/$libname.def' 13349 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13350 enable_shared_with_static_runtimes=yes 13351 ;; 13352 13353 interix[3-9]*) 13354 hardcode_direct=no 13355 hardcode_shlibpath_var=no 13356 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13357 export_dynamic_flag_spec='$wl-E' 13358 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13359 # Instead, shared libraries are loaded at an image base (0x10000000 by 13360 # default) and relocated if they conflict, which is a slow very memory 13361 # consuming and fragmenting process. To avoid this, we pick a random, 13362 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13363 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13365 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' 13366 ;; 13367 13368 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13369 tmp_diet=no 13370 if test linux-dietlibc = "$host_os"; then 13371 case $cc_basename in 13372 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13373 esac 13374 fi 13375 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13376 && test no = "$tmp_diet" 13377 then 13378 tmp_addflag=' $pic_flag' 13379 tmp_sharedflag='-shared' 13380 case $cc_basename,$host_cpu in 13381 pgcc*) # Portland Group C compiler 13382 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' 13383 tmp_addflag=' $pic_flag' 13384 ;; 13385 pgf77* | pgf90* | pgf95* | pgfortran*) 13386 # Portland Group f77 and f90 compilers 13387 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' 13388 tmp_addflag=' $pic_flag -Mnomain' ;; 13389 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13390 tmp_addflag=' -i_dynamic' ;; 13391 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13392 tmp_addflag=' -i_dynamic -nofor_main' ;; 13393 ifc* | ifort*) # Intel Fortran compiler 13394 tmp_addflag=' -nofor_main' ;; 13395 lf95*) # Lahey Fortran 8.1 13396 whole_archive_flag_spec= 13397 tmp_sharedflag='--shared' ;; 13398 nagfor*) # NAGFOR 5.3 13399 tmp_sharedflag='-Wl,-shared' ;; 13400 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13401 tmp_sharedflag='-qmkshrobj' 13402 tmp_addflag= ;; 13403 nvcc*) # Cuda Compiler Driver 2.2 13404 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' 13405 compiler_needs_object=yes 13406 ;; 13407 esac 13408 case `$CC -V 2>&1 | sed 5q` in 13409 *Sun\ C*) # Sun C 5.9 13410 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' 13411 compiler_needs_object=yes 13412 tmp_sharedflag='-G' ;; 13413 *Sun\ F*) # Sun Fortran 8.3 13414 tmp_sharedflag='-G' ;; 13415 esac 13416 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13417 13418 if test yes = "$supports_anon_versioning"; then 13419 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13420 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13421 echo "local: *; };" >> $output_objdir/$libname.ver~ 13422 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13423 fi 13424 13425 case $cc_basename in 13426 tcc*) 13427 export_dynamic_flag_spec='-rdynamic' 13428 ;; 13429 xlf* | bgf* | bgxlf* | mpixlf*) 13430 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13431 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 13432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13433 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13434 if test yes = "$supports_anon_versioning"; then 13435 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 13436 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13437 echo "local: *; };" >> $output_objdir/$libname.ver~ 13438 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13439 fi 13440 ;; 13441 esac 13442 else 13443 ld_shlibs=no 13444 fi 13445 ;; 13446 13447 netbsd* | netbsdelf*-gnu) 13448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13449 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13450 wlarc= 13451 else 13452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13453 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13454 fi 13455 ;; 13456 13457 solaris*) 13458 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13459 ld_shlibs=no 13460 cat <<_LT_EOF 1>&2 13461 13462*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13463*** create shared libraries on Solaris systems. Therefore, libtool 13464*** is disabling shared libraries support. We urge you to upgrade GNU 13465*** binutils to release 2.9.1 or newer. Another option is to modify 13466*** your PATH or compiler configuration so that the native linker is 13467*** used, and then restart. 13468 13469_LT_EOF 13470 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13471 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13472 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13473 else 13474 ld_shlibs=no 13475 fi 13476 ;; 13477 13478 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13479 case `$LD -v 2>&1` in 13480 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13481 ld_shlibs=no 13482 cat <<_LT_EOF 1>&2 13483 13484*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13485*** reliably create shared libraries on SCO systems. Therefore, libtool 13486*** is disabling shared libraries support. We urge you to upgrade GNU 13487*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13488*** your PATH or compiler configuration so that the native linker is 13489*** used, and then restart. 13490 13491_LT_EOF 13492 ;; 13493 *) 13494 # For security reasons, it is highly recommended that you always 13495 # use absolute paths for naming shared libraries, and exclude the 13496 # DT_RUNPATH tag from executables and libraries. But doing so 13497 # requires that you compile everything twice, which is a pain. 13498 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13499 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13501 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13502 else 13503 ld_shlibs=no 13504 fi 13505 ;; 13506 esac 13507 ;; 13508 13509 sunos4*) 13510 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13511 wlarc= 13512 hardcode_direct=yes 13513 hardcode_shlibpath_var=no 13514 ;; 13515 13516 *) 13517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13518 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13519 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13520 else 13521 ld_shlibs=no 13522 fi 13523 ;; 13524 esac 13525 13526 if test no = "$ld_shlibs"; then 13527 runpath_var= 13528 hardcode_libdir_flag_spec= 13529 export_dynamic_flag_spec= 13530 whole_archive_flag_spec= 13531 fi 13532 else 13533 # PORTME fill in a description of your system's linker (not GNU ld) 13534 case $host_os in 13535 aix3*) 13536 allow_undefined_flag=unsupported 13537 always_export_symbols=yes 13538 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' 13539 # Note: this linker hardcodes the directories in LIBPATH if there 13540 # are no directories specified by -L. 13541 hardcode_minus_L=yes 13542 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13543 # Neither direct hardcoding nor static linking is supported with a 13544 # broken collect2. 13545 hardcode_direct=unsupported 13546 fi 13547 ;; 13548 13549 aix[4-9]*) 13550 if test ia64 = "$host_cpu"; then 13551 # On IA64, the linker does run time linking by default, so we don't 13552 # have to do anything special. 13553 aix_use_runtimelinking=no 13554 exp_sym_flag='-Bexport' 13555 no_entry_flag= 13556 else 13557 # If we're using GNU nm, then we don't want the "-C" option. 13558 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13559 # Without the "-l" option, or with the "-B" option, AIX nm treats 13560 # weak defined symbols like other global defined symbols, whereas 13561 # GNU nm marks them as "W". 13562 # While the 'weak' keyword is ignored in the Export File, we need 13563 # it in the Import File for the 'aix-soname' feature, so we have 13564 # to replace the "-B" option with "-P" for AIX nm. 13565 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13566 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' 13567 else 13568 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' 13569 fi 13570 aix_use_runtimelinking=no 13571 13572 # Test if we are trying to use run time linking or normal 13573 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13574 # have runtime linking enabled, and use it for executables. 13575 # For shared libraries, we enable/disable runtime linking 13576 # depending on the kind of the shared library created - 13577 # when "with_aix_soname,aix_use_runtimelinking" is: 13578 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13579 # "aix,yes" lib.so shared, rtl:yes, for executables 13580 # lib.a static archive 13581 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13582 # lib.a(lib.so.V) shared, rtl:no, for executables 13583 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13584 # lib.a(lib.so.V) shared, rtl:no 13585 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13586 # lib.a static archive 13587 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13588 for ld_flag in $LDFLAGS; do 13589 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 13590 aix_use_runtimelinking=yes 13591 break 13592 fi 13593 done 13594 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13595 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13596 # so we don't have lib.a shared libs to link our executables. 13597 # We have to force runtime linking in this case. 13598 aix_use_runtimelinking=yes 13599 LDFLAGS="$LDFLAGS -Wl,-brtl" 13600 fi 13601 ;; 13602 esac 13603 13604 exp_sym_flag='-bexport' 13605 no_entry_flag='-bnoentry' 13606 fi 13607 13608 # When large executables or shared objects are built, AIX ld can 13609 # have problems creating the table of contents. If linking a library 13610 # or program results in "error TOC overflow" add -mminimal-toc to 13611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13613 13614 archive_cmds='' 13615 hardcode_direct=yes 13616 hardcode_direct_absolute=yes 13617 hardcode_libdir_separator=':' 13618 link_all_deplibs=yes 13619 file_list_spec='$wl-f,' 13620 case $with_aix_soname,$aix_use_runtimelinking in 13621 aix,*) ;; # traditional, no import file 13622 svr4,* | *,yes) # use import file 13623 # The Import File defines what to hardcode. 13624 hardcode_direct=no 13625 hardcode_direct_absolute=no 13626 ;; 13627 esac 13628 13629 if test yes = "$GCC"; then 13630 case $host_os in aix4.[012]|aix4.[012].*) 13631 # We only want to do this on AIX 4.2 and lower, the check 13632 # below for broken collect2 doesn't work under 4.3+ 13633 collect2name=`$CC -print-prog-name=collect2` 13634 if test -f "$collect2name" && 13635 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13636 then 13637 # We have reworked collect2 13638 : 13639 else 13640 # We have old collect2 13641 hardcode_direct=unsupported 13642 # It fails to find uninstalled libraries when the uninstalled 13643 # path is not listed in the libpath. Setting hardcode_minus_L 13644 # to unsupported forces relinking 13645 hardcode_minus_L=yes 13646 hardcode_libdir_flag_spec='-L$libdir' 13647 hardcode_libdir_separator= 13648 fi 13649 ;; 13650 esac 13651 shared_flag='-shared' 13652 if test yes = "$aix_use_runtimelinking"; then 13653 shared_flag="$shared_flag "'$wl-G' 13654 fi 13655 # Need to ensure runtime linking is disabled for the traditional 13656 # shared library, or the linker may eventually find shared libraries 13657 # /with/ Import File - we do not want to mix them. 13658 shared_flag_aix='-shared' 13659 shared_flag_svr4='-shared $wl-G' 13660 else 13661 # not using gcc 13662 if test ia64 = "$host_cpu"; then 13663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13664 # chokes on -Wl,-G. The following line is correct: 13665 shared_flag='-G' 13666 else 13667 if test yes = "$aix_use_runtimelinking"; then 13668 shared_flag='$wl-G' 13669 else 13670 shared_flag='$wl-bM:SRE' 13671 fi 13672 shared_flag_aix='$wl-bM:SRE' 13673 shared_flag_svr4='$wl-G' 13674 fi 13675 fi 13676 13677 export_dynamic_flag_spec='$wl-bexpall' 13678 # It seems that -bexpall does not export symbols beginning with 13679 # underscore (_), so it is better to generate a list of symbols to export. 13680 always_export_symbols=yes 13681 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13682 # Warning - without using the other runtime loading flags (-brtl), 13683 # -berok will link without error, but may produce a broken library. 13684 allow_undefined_flag='-berok' 13685 # Determine the default libpath from the value encoded in an 13686 # empty executable. 13687 if test set = "${lt_cv_aix_libpath+set}"; then 13688 aix_libpath=$lt_cv_aix_libpath 13689else 13690 if test ${lt_cv_aix_libpath_+y} 13691then : 13692 printf %s "(cached) " >&6 13693else $as_nop 13694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13695/* end confdefs.h. */ 13696 13697int 13698main (void) 13699{ 13700 13701 ; 13702 return 0; 13703} 13704_ACEOF 13705if ac_fn_c_try_link "$LINENO" 13706then : 13707 13708 lt_aix_libpath_sed=' 13709 /Import File Strings/,/^$/ { 13710 /^0/ { 13711 s/^0 *\([^ ]*\) *$/\1/ 13712 p 13713 } 13714 }' 13715 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13716 # Check for a 64-bit object if we didn't find anything. 13717 if test -z "$lt_cv_aix_libpath_"; then 13718 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13719 fi 13720fi 13721rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13722 conftest$ac_exeext conftest.$ac_ext 13723 if test -z "$lt_cv_aix_libpath_"; then 13724 lt_cv_aix_libpath_=/usr/lib:/lib 13725 fi 13726 13727fi 13728 13729 aix_libpath=$lt_cv_aix_libpath_ 13730fi 13731 13732 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13733 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 13734 else 13735 if test ia64 = "$host_cpu"; then 13736 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13737 allow_undefined_flag="-z nodefs" 13738 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" 13739 else 13740 # Determine the default libpath from the value encoded in an 13741 # empty executable. 13742 if test set = "${lt_cv_aix_libpath+set}"; then 13743 aix_libpath=$lt_cv_aix_libpath 13744else 13745 if test ${lt_cv_aix_libpath_+y} 13746then : 13747 printf %s "(cached) " >&6 13748else $as_nop 13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13750/* end confdefs.h. */ 13751 13752int 13753main (void) 13754{ 13755 13756 ; 13757 return 0; 13758} 13759_ACEOF 13760if ac_fn_c_try_link "$LINENO" 13761then : 13762 13763 lt_aix_libpath_sed=' 13764 /Import File Strings/,/^$/ { 13765 /^0/ { 13766 s/^0 *\([^ ]*\) *$/\1/ 13767 p 13768 } 13769 }' 13770 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13771 # Check for a 64-bit object if we didn't find anything. 13772 if test -z "$lt_cv_aix_libpath_"; then 13773 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13774 fi 13775fi 13776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13777 conftest$ac_exeext conftest.$ac_ext 13778 if test -z "$lt_cv_aix_libpath_"; then 13779 lt_cv_aix_libpath_=/usr/lib:/lib 13780 fi 13781 13782fi 13783 13784 aix_libpath=$lt_cv_aix_libpath_ 13785fi 13786 13787 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13788 # Warning - without using the other run time loading flags, 13789 # -berok will link without error, but may produce a broken library. 13790 no_undefined_flag=' $wl-bernotok' 13791 allow_undefined_flag=' $wl-berok' 13792 if test yes = "$with_gnu_ld"; then 13793 # We only use this code for GNU lds that support --whole-archive. 13794 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13795 else 13796 # Exported symbols can be pulled into shared objects from archives 13797 whole_archive_flag_spec='$convenience' 13798 fi 13799 archive_cmds_need_lc=yes 13800 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13801 # -brtl affects multiple linker settings, -berok does not and is overridden later 13802 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13803 if test svr4 != "$with_aix_soname"; then 13804 # This is similar to how AIX traditionally builds its shared libraries. 13805 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' 13806 fi 13807 if test aix != "$with_aix_soname"; then 13808 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' 13809 else 13810 # used by -dlpreopen to get the symbols 13811 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13812 fi 13813 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13814 fi 13815 fi 13816 ;; 13817 13818 amigaos*) 13819 case $host_cpu in 13820 powerpc) 13821 # see comment about AmigaOS4 .so support 13822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13823 archive_expsym_cmds='' 13824 ;; 13825 m68k) 13826 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)' 13827 hardcode_libdir_flag_spec='-L$libdir' 13828 hardcode_minus_L=yes 13829 ;; 13830 esac 13831 ;; 13832 13833 bsdi[45]*) 13834 export_dynamic_flag_spec=-rdynamic 13835 ;; 13836 13837 cygwin* | mingw* | pw32* | cegcc*) 13838 # When not using gcc, we currently assume that we are using 13839 # Microsoft Visual C++. 13840 # hardcode_libdir_flag_spec is actually meaningless, as there is 13841 # no search path for DLLs. 13842 case $cc_basename in 13843 cl*) 13844 # Native MSVC 13845 hardcode_libdir_flag_spec=' ' 13846 allow_undefined_flag=unsupported 13847 always_export_symbols=yes 13848 file_list_spec='@' 13849 # Tell ltmain to make .lib files, not .a files. 13850 libext=lib 13851 # Tell ltmain to make .dll files, not .so files. 13852 shrext_cmds=.dll 13853 # FIXME: Setting linknames here is a bad hack. 13854 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13855 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13856 cp "$export_symbols" "$output_objdir/$soname.def"; 13857 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13858 else 13859 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13860 fi~ 13861 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13862 linknames=' 13863 # The linker will not automatically build a static lib if we build a DLL. 13864 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13865 enable_shared_with_static_runtimes=yes 13866 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13867 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13868 # Don't use ranlib 13869 old_postinstall_cmds='chmod 644 $oldlib' 13870 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13871 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13872 case $lt_outputfile in 13873 *.exe|*.EXE) ;; 13874 *) 13875 lt_outputfile=$lt_outputfile.exe 13876 lt_tool_outputfile=$lt_tool_outputfile.exe 13877 ;; 13878 esac~ 13879 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13880 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13881 $RM "$lt_outputfile.manifest"; 13882 fi' 13883 ;; 13884 *) 13885 # Assume MSVC wrapper 13886 hardcode_libdir_flag_spec=' ' 13887 allow_undefined_flag=unsupported 13888 # Tell ltmain to make .lib files, not .a files. 13889 libext=lib 13890 # Tell ltmain to make .dll files, not .so files. 13891 shrext_cmds=.dll 13892 # FIXME: Setting linknames here is a bad hack. 13893 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13894 # The linker will automatically build a .lib file if we build a DLL. 13895 old_archive_from_new_cmds='true' 13896 # FIXME: Should let the user specify the lib program. 13897 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13898 enable_shared_with_static_runtimes=yes 13899 ;; 13900 esac 13901 ;; 13902 13903 darwin* | rhapsody*) 13904 13905 13906 archive_cmds_need_lc=no 13907 hardcode_direct=no 13908 hardcode_automatic=yes 13909 hardcode_shlibpath_var=unsupported 13910 if test yes = "$lt_cv_ld_force_load"; then 13911 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\"`' 13912 13913 else 13914 whole_archive_flag_spec='' 13915 fi 13916 link_all_deplibs=yes 13917 allow_undefined_flag=$_lt_dar_allow_undefined 13918 case $cc_basename in 13919 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13920 *) _lt_dar_can_shared=$GCC ;; 13921 esac 13922 if test yes = "$_lt_dar_can_shared"; then 13923 output_verbose_link_cmd=func_echo_all 13924 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13925 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13926 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" 13927 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" 13928 13929 else 13930 ld_shlibs=no 13931 fi 13932 13933 ;; 13934 13935 dgux*) 13936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13937 hardcode_libdir_flag_spec='-L$libdir' 13938 hardcode_shlibpath_var=no 13939 ;; 13940 13941 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13942 # support. Future versions do this automatically, but an explicit c++rt0.o 13943 # does not break anything, and helps significantly (at the cost of a little 13944 # extra space). 13945 freebsd2.2*) 13946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13947 hardcode_libdir_flag_spec='-R$libdir' 13948 hardcode_direct=yes 13949 hardcode_shlibpath_var=no 13950 ;; 13951 13952 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13953 freebsd2.*) 13954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13955 hardcode_direct=yes 13956 hardcode_minus_L=yes 13957 hardcode_shlibpath_var=no 13958 ;; 13959 13960 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13961 freebsd* | dragonfly*) 13962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13963 hardcode_libdir_flag_spec='-R$libdir' 13964 hardcode_direct=yes 13965 hardcode_shlibpath_var=no 13966 ;; 13967 13968 hpux9*) 13969 if test yes = "$GCC"; then 13970 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' 13971 else 13972 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' 13973 fi 13974 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13975 hardcode_libdir_separator=: 13976 hardcode_direct=yes 13977 13978 # hardcode_minus_L: Not really in the search PATH, 13979 # but as the default location of the library. 13980 hardcode_minus_L=yes 13981 export_dynamic_flag_spec='$wl-E' 13982 ;; 13983 13984 hpux10*) 13985 if test yes,no = "$GCC,$with_gnu_ld"; then 13986 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13987 else 13988 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13989 fi 13990 if test no = "$with_gnu_ld"; then 13991 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13992 hardcode_libdir_separator=: 13993 hardcode_direct=yes 13994 hardcode_direct_absolute=yes 13995 export_dynamic_flag_spec='$wl-E' 13996 # hardcode_minus_L: Not really in the search PATH, 13997 # but as the default location of the library. 13998 hardcode_minus_L=yes 13999 fi 14000 ;; 14001 14002 hpux11*) 14003 if test yes,no = "$GCC,$with_gnu_ld"; then 14004 case $host_cpu in 14005 hppa*64*) 14006 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14007 ;; 14008 ia64*) 14009 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14010 ;; 14011 *) 14012 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14013 ;; 14014 esac 14015 else 14016 case $host_cpu in 14017 hppa*64*) 14018 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14019 ;; 14020 ia64*) 14021 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14022 ;; 14023 *) 14024 14025 # Older versions of the 11.00 compiler do not understand -b yet 14026 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 14027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 14028printf %s "checking if $CC understands -b... " >&6; } 14029if test ${lt_cv_prog_compiler__b+y} 14030then : 14031 printf %s "(cached) " >&6 14032else $as_nop 14033 lt_cv_prog_compiler__b=no 14034 save_LDFLAGS=$LDFLAGS 14035 LDFLAGS="$LDFLAGS -b" 14036 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14038 # The linker can only warn and ignore the option if not recognized 14039 # So say no if there are warnings 14040 if test -s conftest.err; then 14041 # Append any errors to the config.log. 14042 cat conftest.err 1>&5 14043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14045 if diff conftest.exp conftest.er2 >/dev/null; then 14046 lt_cv_prog_compiler__b=yes 14047 fi 14048 else 14049 lt_cv_prog_compiler__b=yes 14050 fi 14051 fi 14052 $RM -r conftest* 14053 LDFLAGS=$save_LDFLAGS 14054 14055fi 14056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 14057printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 14058 14059if test yes = "$lt_cv_prog_compiler__b"; then 14060 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14061else 14062 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14063fi 14064 14065 ;; 14066 esac 14067 fi 14068 if test no = "$with_gnu_ld"; then 14069 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 14070 hardcode_libdir_separator=: 14071 14072 case $host_cpu in 14073 hppa*64*|ia64*) 14074 hardcode_direct=no 14075 hardcode_shlibpath_var=no 14076 ;; 14077 *) 14078 hardcode_direct=yes 14079 hardcode_direct_absolute=yes 14080 export_dynamic_flag_spec='$wl-E' 14081 14082 # hardcode_minus_L: Not really in the search PATH, 14083 # but as the default location of the library. 14084 hardcode_minus_L=yes 14085 ;; 14086 esac 14087 fi 14088 ;; 14089 14090 irix5* | irix6* | nonstopux*) 14091 if test yes = "$GCC"; then 14092 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' 14093 # Try to use the -exported_symbol ld option, if it does not 14094 # work, assume that -exports_file does not work either and 14095 # implicitly export all symbols. 14096 # This should be the same for all languages, so no per-tag cache variable. 14097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14098printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14099if test ${lt_cv_irix_exported_symbol+y} 14100then : 14101 printf %s "(cached) " >&6 14102else $as_nop 14103 save_LDFLAGS=$LDFLAGS 14104 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14106/* end confdefs.h. */ 14107int foo (void) { return 0; } 14108_ACEOF 14109if ac_fn_c_try_link "$LINENO" 14110then : 14111 lt_cv_irix_exported_symbol=yes 14112else $as_nop 14113 lt_cv_irix_exported_symbol=no 14114fi 14115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14116 conftest$ac_exeext conftest.$ac_ext 14117 LDFLAGS=$save_LDFLAGS 14118fi 14119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14120printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 14121 if test yes = "$lt_cv_irix_exported_symbol"; then 14122 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' 14123 fi 14124 link_all_deplibs=no 14125 else 14126 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' 14127 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' 14128 fi 14129 archive_cmds_need_lc='no' 14130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14131 hardcode_libdir_separator=: 14132 inherit_rpath=yes 14133 link_all_deplibs=yes 14134 ;; 14135 14136 linux*) 14137 case $cc_basename in 14138 tcc*) 14139 # Fabrice Bellard et al's Tiny C Compiler 14140 ld_shlibs=yes 14141 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14142 ;; 14143 esac 14144 ;; 14145 14146 netbsd* | netbsdelf*-gnu) 14147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14148 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14149 else 14150 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14151 fi 14152 hardcode_libdir_flag_spec='-R$libdir' 14153 hardcode_direct=yes 14154 hardcode_shlibpath_var=no 14155 ;; 14156 14157 newsos6) 14158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14159 hardcode_direct=yes 14160 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14161 hardcode_libdir_separator=: 14162 hardcode_shlibpath_var=no 14163 ;; 14164 14165 *nto* | *qnx*) 14166 ;; 14167 14168 openbsd* | bitrig*) 14169 if test -f /usr/libexec/ld.so; then 14170 hardcode_direct=yes 14171 hardcode_shlibpath_var=no 14172 hardcode_direct_absolute=yes 14173 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14174 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14175 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 14176 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14177 export_dynamic_flag_spec='$wl-E' 14178 else 14179 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14180 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 14181 fi 14182 else 14183 ld_shlibs=no 14184 fi 14185 ;; 14186 14187 os2*) 14188 hardcode_libdir_flag_spec='-L$libdir' 14189 hardcode_minus_L=yes 14190 allow_undefined_flag=unsupported 14191 shrext_cmds=.dll 14192 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14193 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14194 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14195 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14196 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14197 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14198 emximp -o $lib $output_objdir/$libname.def' 14199 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14200 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14201 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14202 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14203 prefix_cmds="$SED"~ 14204 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14205 prefix_cmds="$prefix_cmds -e 1d"; 14206 fi~ 14207 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14208 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14209 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14210 emximp -o $lib $output_objdir/$libname.def' 14211 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14212 enable_shared_with_static_runtimes=yes 14213 ;; 14214 14215 osf3*) 14216 if test yes = "$GCC"; then 14217 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14218 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' 14219 else 14220 allow_undefined_flag=' -expect_unresolved \*' 14221 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' 14222 fi 14223 archive_cmds_need_lc='no' 14224 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14225 hardcode_libdir_separator=: 14226 ;; 14227 14228 osf4* | osf5*) # as osf3* with the addition of -msym flag 14229 if test yes = "$GCC"; then 14230 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 14231 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' 14232 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 14233 else 14234 allow_undefined_flag=' -expect_unresolved \*' 14235 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' 14236 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~ 14237 $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' 14238 14239 # Both c and cxx compiler support -rpath directly 14240 hardcode_libdir_flag_spec='-rpath $libdir' 14241 fi 14242 archive_cmds_need_lc='no' 14243 hardcode_libdir_separator=: 14244 ;; 14245 14246 solaris*) 14247 no_undefined_flag=' -z defs' 14248 if test yes = "$GCC"; then 14249 wlarc='$wl' 14250 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14251 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14252 $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' 14253 else 14254 case `$CC -V 2>&1` in 14255 *"Compilers 5.0"*) 14256 wlarc='' 14257 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 14258 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14259 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14260 ;; 14261 *) 14262 wlarc='$wl' 14263 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14265 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14266 ;; 14267 esac 14268 fi 14269 hardcode_libdir_flag_spec='-R$libdir' 14270 hardcode_shlibpath_var=no 14271 case $host_os in 14272 solaris2.[0-5] | solaris2.[0-5].*) ;; 14273 *) 14274 # The compiler driver will combine and reorder linker options, 14275 # but understands '-z linker_flag'. GCC discards it without '$wl', 14276 # but is careful enough not to reorder. 14277 # Supported since Solaris 2.6 (maybe 2.5.1?) 14278 if test yes = "$GCC"; then 14279 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14280 else 14281 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 14282 fi 14283 ;; 14284 esac 14285 link_all_deplibs=yes 14286 ;; 14287 14288 sunos4*) 14289 if test sequent = "$host_vendor"; then 14290 # Use $CC to link under sequent, because it throws in some extra .o 14291 # files that make .init and .fini sections work. 14292 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14293 else 14294 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14295 fi 14296 hardcode_libdir_flag_spec='-L$libdir' 14297 hardcode_direct=yes 14298 hardcode_minus_L=yes 14299 hardcode_shlibpath_var=no 14300 ;; 14301 14302 sysv4) 14303 case $host_vendor in 14304 sni) 14305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14306 hardcode_direct=yes # is this really true??? 14307 ;; 14308 siemens) 14309 ## LD is ld it makes a PLAMLIB 14310 ## CC just makes a GrossModule. 14311 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14312 reload_cmds='$CC -r -o $output$reload_objs' 14313 hardcode_direct=no 14314 ;; 14315 motorola) 14316 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14317 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 14318 ;; 14319 esac 14320 runpath_var='LD_RUN_PATH' 14321 hardcode_shlibpath_var=no 14322 ;; 14323 14324 sysv4.3*) 14325 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14326 hardcode_shlibpath_var=no 14327 export_dynamic_flag_spec='-Bexport' 14328 ;; 14329 14330 sysv4*MP*) 14331 if test -d /usr/nec; then 14332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14333 hardcode_shlibpath_var=no 14334 runpath_var=LD_RUN_PATH 14335 hardcode_runpath_var=yes 14336 ld_shlibs=yes 14337 fi 14338 ;; 14339 14340 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14341 no_undefined_flag='$wl-z,text' 14342 archive_cmds_need_lc=no 14343 hardcode_shlibpath_var=no 14344 runpath_var='LD_RUN_PATH' 14345 14346 if test yes = "$GCC"; then 14347 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14348 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14349 else 14350 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14351 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14352 fi 14353 ;; 14354 14355 sysv5* | sco3.2v5* | sco5v6*) 14356 # Note: We CANNOT use -z defs as we might desire, because we do not 14357 # link with -lc, and that would cause any symbols used from libc to 14358 # always be unresolved, which means just about no library would 14359 # ever link correctly. If we're not using GNU ld we use -z text 14360 # though, which does catch some bad symbols but isn't as heavy-handed 14361 # as -z defs. 14362 no_undefined_flag='$wl-z,text' 14363 allow_undefined_flag='$wl-z,nodefs' 14364 archive_cmds_need_lc=no 14365 hardcode_shlibpath_var=no 14366 hardcode_libdir_flag_spec='$wl-R,$libdir' 14367 hardcode_libdir_separator=':' 14368 link_all_deplibs=yes 14369 export_dynamic_flag_spec='$wl-Bexport' 14370 runpath_var='LD_RUN_PATH' 14371 14372 if test yes = "$GCC"; then 14373 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14374 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14375 else 14376 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14377 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14378 fi 14379 ;; 14380 14381 uts4*) 14382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14383 hardcode_libdir_flag_spec='-L$libdir' 14384 hardcode_shlibpath_var=no 14385 ;; 14386 14387 *) 14388 ld_shlibs=no 14389 ;; 14390 esac 14391 14392 if test sni = "$host_vendor"; then 14393 case $host in 14394 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14395 export_dynamic_flag_spec='$wl-Blargedynsym' 14396 ;; 14397 esac 14398 fi 14399 fi 14400 14401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 14402printf "%s\n" "$ld_shlibs" >&6; } 14403test no = "$ld_shlibs" && can_build_shared=no 14404 14405with_gnu_ld=$with_gnu_ld 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421# 14422# Do we need to explicitly link libc? 14423# 14424case "x$archive_cmds_need_lc" in 14425x|xyes) 14426 # Assume -lc should be added 14427 archive_cmds_need_lc=yes 14428 14429 if test yes,yes = "$GCC,$enable_shared"; then 14430 case $archive_cmds in 14431 *'~'*) 14432 # FIXME: we may have to deal with multi-command sequences. 14433 ;; 14434 '$CC '*) 14435 # Test whether the compiler implicitly links with -lc since on some 14436 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14437 # to ld, don't add -lc before -lgcc. 14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14439printf %s "checking whether -lc should be explicitly linked in... " >&6; } 14440if test ${lt_cv_archive_cmds_need_lc+y} 14441then : 14442 printf %s "(cached) " >&6 14443else $as_nop 14444 $RM conftest* 14445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14446 14447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14448 (eval $ac_compile) 2>&5 14449 ac_status=$? 14450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14451 test $ac_status = 0; } 2>conftest.err; then 14452 soname=conftest 14453 lib=conftest 14454 libobjs=conftest.$ac_objext 14455 deplibs= 14456 wl=$lt_prog_compiler_wl 14457 pic_flag=$lt_prog_compiler_pic 14458 compiler_flags=-v 14459 linker_flags=-v 14460 verstring= 14461 output_objdir=. 14462 libname=conftest 14463 lt_save_allow_undefined_flag=$allow_undefined_flag 14464 allow_undefined_flag= 14465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14467 ac_status=$? 14468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14469 test $ac_status = 0; } 14470 then 14471 lt_cv_archive_cmds_need_lc=no 14472 else 14473 lt_cv_archive_cmds_need_lc=yes 14474 fi 14475 allow_undefined_flag=$lt_save_allow_undefined_flag 14476 else 14477 cat conftest.err 1>&5 14478 fi 14479 $RM conftest* 14480 14481fi 14482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 14483printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 14484 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 14485 ;; 14486 esac 14487 fi 14488 ;; 14489esac 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14643printf %s "checking dynamic linker characteristics... " >&6; } 14644 14645if test yes = "$GCC"; then 14646 case $host_os in 14647 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 14648 *) lt_awk_arg='/^libraries:/' ;; 14649 esac 14650 case $host_os in 14651 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 14652 *) lt_sed_strip_eq='s|=/|/|g' ;; 14653 esac 14654 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14655 case $lt_search_path_spec in 14656 *\;*) 14657 # if the path contains ";" then we assume it to be the separator 14658 # otherwise default to the standard path separator (i.e. ":") - it is 14659 # assumed that no part of a normal pathname contains ";" but that should 14660 # okay in the real world where ";" in dirpaths is itself problematic. 14661 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14662 ;; 14663 *) 14664 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14665 ;; 14666 esac 14667 # Ok, now we have the path, separated by spaces, we can step through it 14668 # and add multilib dir if necessary... 14669 lt_tmp_lt_search_path_spec= 14670 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14671 # ...but if some path component already ends with the multilib dir we assume 14672 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 14673 case "$lt_multi_os_dir; $lt_search_path_spec " in 14674 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 14675 lt_multi_os_dir= 14676 ;; 14677 esac 14678 for lt_sys_path in $lt_search_path_spec; do 14679 if test -d "$lt_sys_path$lt_multi_os_dir"; then 14680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 14681 elif test -n "$lt_multi_os_dir"; then 14682 test -d "$lt_sys_path" && \ 14683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14684 fi 14685 done 14686 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14687BEGIN {RS = " "; FS = "/|\n";} { 14688 lt_foo = ""; 14689 lt_count = 0; 14690 for (lt_i = NF; lt_i > 0; lt_i--) { 14691 if ($lt_i != "" && $lt_i != ".") { 14692 if ($lt_i == "..") { 14693 lt_count++; 14694 } else { 14695 if (lt_count == 0) { 14696 lt_foo = "/" $lt_i lt_foo; 14697 } else { 14698 lt_count--; 14699 } 14700 } 14701 } 14702 } 14703 if (lt_foo != "") { lt_freq[lt_foo]++; } 14704 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14705}'` 14706 # AWK program above erroneously prepends '/' to C:/dos/paths 14707 # for these hosts. 14708 case $host_os in 14709 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14710 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 14711 esac 14712 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14713else 14714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14715fi 14716library_names_spec= 14717libname_spec='lib$name' 14718soname_spec= 14719shrext_cmds=.so 14720postinstall_cmds= 14721postuninstall_cmds= 14722finish_cmds= 14723finish_eval= 14724shlibpath_var= 14725shlibpath_overrides_runpath=unknown 14726version_type=none 14727dynamic_linker="$host_os ld.so" 14728sys_lib_dlsearch_path_spec="/lib /usr/lib" 14729need_lib_prefix=unknown 14730hardcode_into_libs=no 14731 14732# when you set need_version to no, make sure it does not cause -set_version 14733# flags to be left without arguments 14734need_version=unknown 14735 14736 14737 14738case $host_os in 14739aix3*) 14740 version_type=linux # correct to gnu/linux during the next big refactor 14741 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14742 shlibpath_var=LIBPATH 14743 14744 # AIX 3 has no versioning support, so we append a major version to the name. 14745 soname_spec='$libname$release$shared_ext$major' 14746 ;; 14747 14748aix[4-9]*) 14749 version_type=linux # correct to gnu/linux during the next big refactor 14750 need_lib_prefix=no 14751 need_version=no 14752 hardcode_into_libs=yes 14753 if test ia64 = "$host_cpu"; then 14754 # AIX 5 supports IA64 14755 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14756 shlibpath_var=LD_LIBRARY_PATH 14757 else 14758 # With GCC up to 2.95.x, collect2 would create an import file 14759 # for dependence libraries. The import file would start with 14760 # the line '#! .'. This would cause the generated library to 14761 # depend on '.', always an invalid library. This was fixed in 14762 # development snapshots of GCC prior to 3.0. 14763 case $host_os in 14764 aix4 | aix4.[01] | aix4.[01].*) 14765 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14766 echo ' yes ' 14767 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14768 : 14769 else 14770 can_build_shared=no 14771 fi 14772 ;; 14773 esac 14774 # Using Import Files as archive members, it is possible to support 14775 # filename-based versioning of shared library archives on AIX. While 14776 # this would work for both with and without runtime linking, it will 14777 # prevent static linking of such archives. So we do filename-based 14778 # shared library versioning with .so extension only, which is used 14779 # when both runtime linking and shared linking is enabled. 14780 # Unfortunately, runtime linking may impact performance, so we do 14781 # not want this to be the default eventually. Also, we use the 14782 # versioned .so libs for executables only if there is the -brtl 14783 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14784 # To allow for filename-based versioning support, we need to create 14785 # libNAME.so.V as an archive file, containing: 14786 # *) an Import File, referring to the versioned filename of the 14787 # archive as well as the shared archive member, telling the 14788 # bitwidth (32 or 64) of that shared object, and providing the 14789 # list of exported symbols of that shared object, eventually 14790 # decorated with the 'weak' keyword 14791 # *) the shared object with the F_LOADONLY flag set, to really avoid 14792 # it being seen by the linker. 14793 # At run time we better use the real file rather than another symlink, 14794 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14795 14796 case $with_aix_soname,$aix_use_runtimelinking in 14797 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14798 # soname into executable. Probably we can add versioning support to 14799 # collect2, so additional links can be useful in future. 14800 aix,yes) # traditional libtool 14801 dynamic_linker='AIX unversionable lib.so' 14802 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14803 # instead of lib<name>.a to let people know that these are not 14804 # typical AIX shared libraries. 14805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14806 ;; 14807 aix,no) # traditional AIX only 14808 dynamic_linker='AIX lib.a(lib.so.V)' 14809 # We preserve .a as extension for shared libraries through AIX4.2 14810 # and later when we are not doing run time linking. 14811 library_names_spec='$libname$release.a $libname.a' 14812 soname_spec='$libname$release$shared_ext$major' 14813 ;; 14814 svr4,*) # full svr4 only 14815 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14816 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14817 # We do not specify a path in Import Files, so LIBPATH fires. 14818 shlibpath_overrides_runpath=yes 14819 ;; 14820 *,yes) # both, prefer svr4 14821 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14822 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14823 # unpreferred sharedlib libNAME.a needs extra handling 14824 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"' 14825 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"' 14826 # We do not specify a path in Import Files, so LIBPATH fires. 14827 shlibpath_overrides_runpath=yes 14828 ;; 14829 *,no) # both, prefer aix 14830 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14831 library_names_spec='$libname$release.a $libname.a' 14832 soname_spec='$libname$release$shared_ext$major' 14833 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14834 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)' 14835 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"' 14836 ;; 14837 esac 14838 shlibpath_var=LIBPATH 14839 fi 14840 ;; 14841 14842amigaos*) 14843 case $host_cpu in 14844 powerpc) 14845 # Since July 2007 AmigaOS4 officially supports .so libraries. 14846 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14848 ;; 14849 m68k) 14850 library_names_spec='$libname.ixlibrary $libname.a' 14851 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14852 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' 14853 ;; 14854 esac 14855 ;; 14856 14857beos*) 14858 library_names_spec='$libname$shared_ext' 14859 dynamic_linker="$host_os ld.so" 14860 shlibpath_var=LIBRARY_PATH 14861 ;; 14862 14863bsdi[45]*) 14864 version_type=linux # correct to gnu/linux during the next big refactor 14865 need_version=no 14866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14867 soname_spec='$libname$release$shared_ext$major' 14868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14869 shlibpath_var=LD_LIBRARY_PATH 14870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14872 # the default ld.so.conf also contains /usr/contrib/lib and 14873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14874 # libtool to hard-code these into programs 14875 ;; 14876 14877cygwin* | mingw* | pw32* | cegcc*) 14878 version_type=windows 14879 shrext_cmds=.dll 14880 need_version=no 14881 need_lib_prefix=no 14882 14883 case $GCC,$cc_basename in 14884 yes,*) 14885 # gcc 14886 library_names_spec='$libname.dll.a' 14887 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14888 postinstall_cmds='base_file=`basename \$file`~ 14889 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14890 dldir=$destdir/`dirname \$dlpath`~ 14891 test -d \$dldir || mkdir -p \$dldir~ 14892 $install_prog $dir/$dlname \$dldir/$dlname~ 14893 chmod a+x \$dldir/$dlname~ 14894 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14895 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14896 fi' 14897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14898 dlpath=$dir/\$dldll~ 14899 $RM \$dlpath' 14900 shlibpath_overrides_runpath=yes 14901 14902 case $host_os in 14903 cygwin*) 14904 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14905 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14906 14907 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14908 ;; 14909 mingw* | cegcc*) 14910 # MinGW DLLs use traditional 'lib' prefix 14911 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14912 ;; 14913 pw32*) 14914 # pw32 DLLs use 'pw' prefix rather than 'lib' 14915 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14916 ;; 14917 esac 14918 dynamic_linker='Win32 ld.exe' 14919 ;; 14920 14921 *,cl*) 14922 # Native MSVC 14923 libname_spec='$name' 14924 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14925 library_names_spec='$libname.dll.lib' 14926 14927 case $build_os in 14928 mingw*) 14929 sys_lib_search_path_spec= 14930 lt_save_ifs=$IFS 14931 IFS=';' 14932 for lt_path in $LIB 14933 do 14934 IFS=$lt_save_ifs 14935 # Let DOS variable expansion print the short 8.3 style file name. 14936 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14937 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14938 done 14939 IFS=$lt_save_ifs 14940 # Convert to MSYS style. 14941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14942 ;; 14943 cygwin*) 14944 # Convert to unix form, then to dos form, then back to unix form 14945 # but this time dos style (no spaces!) so that the unix form looks 14946 # like /cygdrive/c/PROGRA~1:/cygdr... 14947 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14948 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14949 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14950 ;; 14951 *) 14952 sys_lib_search_path_spec=$LIB 14953 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14954 # It is most probably a Windows format PATH. 14955 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14956 else 14957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14958 fi 14959 # FIXME: find the short name or the path components, as spaces are 14960 # common. (e.g. "Program Files" -> "PROGRA~1") 14961 ;; 14962 esac 14963 14964 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14965 postinstall_cmds='base_file=`basename \$file`~ 14966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14967 dldir=$destdir/`dirname \$dlpath`~ 14968 test -d \$dldir || mkdir -p \$dldir~ 14969 $install_prog $dir/$dlname \$dldir/$dlname' 14970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14971 dlpath=$dir/\$dldll~ 14972 $RM \$dlpath' 14973 shlibpath_overrides_runpath=yes 14974 dynamic_linker='Win32 link.exe' 14975 ;; 14976 14977 *) 14978 # Assume MSVC wrapper 14979 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14980 dynamic_linker='Win32 ld.exe' 14981 ;; 14982 esac 14983 # FIXME: first we should search . and the directory the executable is in 14984 shlibpath_var=PATH 14985 ;; 14986 14987darwin* | rhapsody*) 14988 dynamic_linker="$host_os dyld" 14989 version_type=darwin 14990 need_lib_prefix=no 14991 need_version=no 14992 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14993 soname_spec='$libname$release$major$shared_ext' 14994 shlibpath_overrides_runpath=yes 14995 shlibpath_var=DYLD_LIBRARY_PATH 14996 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14997 14998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15000 ;; 15001 15002dgux*) 15003 version_type=linux # correct to gnu/linux during the next big refactor 15004 need_lib_prefix=no 15005 need_version=no 15006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15007 soname_spec='$libname$release$shared_ext$major' 15008 shlibpath_var=LD_LIBRARY_PATH 15009 ;; 15010 15011freebsd* | dragonfly*) 15012 # DragonFly does not have aout. When/if they implement a new 15013 # versioning mechanism, adjust this. 15014 if test -x /usr/bin/objformat; then 15015 objformat=`/usr/bin/objformat` 15016 else 15017 case $host_os in 15018 freebsd[23].*) objformat=aout ;; 15019 *) objformat=elf ;; 15020 esac 15021 fi 15022 version_type=freebsd-$objformat 15023 case $version_type in 15024 freebsd-elf*) 15025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15026 soname_spec='$libname$release$shared_ext$major' 15027 need_version=no 15028 need_lib_prefix=no 15029 ;; 15030 freebsd-*) 15031 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15032 need_version=yes 15033 ;; 15034 esac 15035 shlibpath_var=LD_LIBRARY_PATH 15036 case $host_os in 15037 freebsd2.*) 15038 shlibpath_overrides_runpath=yes 15039 ;; 15040 freebsd3.[01]* | freebsdelf3.[01]*) 15041 shlibpath_overrides_runpath=yes 15042 hardcode_into_libs=yes 15043 ;; 15044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15046 shlibpath_overrides_runpath=no 15047 hardcode_into_libs=yes 15048 ;; 15049 *) # from 4.6 on, and DragonFly 15050 shlibpath_overrides_runpath=yes 15051 hardcode_into_libs=yes 15052 ;; 15053 esac 15054 ;; 15055 15056haiku*) 15057 version_type=linux # correct to gnu/linux during the next big refactor 15058 need_lib_prefix=no 15059 need_version=no 15060 dynamic_linker="$host_os runtime_loader" 15061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15062 soname_spec='$libname$release$shared_ext$major' 15063 shlibpath_var=LIBRARY_PATH 15064 shlibpath_overrides_runpath=no 15065 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15066 hardcode_into_libs=yes 15067 ;; 15068 15069hpux9* | hpux10* | hpux11*) 15070 # Give a soname corresponding to the major version so that dld.sl refuses to 15071 # link against other versions. 15072 version_type=sunos 15073 need_lib_prefix=no 15074 need_version=no 15075 case $host_cpu in 15076 ia64*) 15077 shrext_cmds='.so' 15078 hardcode_into_libs=yes 15079 dynamic_linker="$host_os dld.so" 15080 shlibpath_var=LD_LIBRARY_PATH 15081 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15083 soname_spec='$libname$release$shared_ext$major' 15084 if test 32 = "$HPUX_IA64_MODE"; then 15085 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15086 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15087 else 15088 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15089 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15090 fi 15091 ;; 15092 hppa*64*) 15093 shrext_cmds='.sl' 15094 hardcode_into_libs=yes 15095 dynamic_linker="$host_os dld.sl" 15096 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15097 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15099 soname_spec='$libname$release$shared_ext$major' 15100 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15101 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15102 ;; 15103 *) 15104 shrext_cmds='.sl' 15105 dynamic_linker="$host_os dld.sl" 15106 shlibpath_var=SHLIB_PATH 15107 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15109 soname_spec='$libname$release$shared_ext$major' 15110 ;; 15111 esac 15112 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15113 postinstall_cmds='chmod 555 $lib' 15114 # or fails outright, so override atomically: 15115 install_override_mode=555 15116 ;; 15117 15118interix[3-9]*) 15119 version_type=linux # correct to gnu/linux during the next big refactor 15120 need_lib_prefix=no 15121 need_version=no 15122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15123 soname_spec='$libname$release$shared_ext$major' 15124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15125 shlibpath_var=LD_LIBRARY_PATH 15126 shlibpath_overrides_runpath=no 15127 hardcode_into_libs=yes 15128 ;; 15129 15130irix5* | irix6* | nonstopux*) 15131 case $host_os in 15132 nonstopux*) version_type=nonstopux ;; 15133 *) 15134 if test yes = "$lt_cv_prog_gnu_ld"; then 15135 version_type=linux # correct to gnu/linux during the next big refactor 15136 else 15137 version_type=irix 15138 fi ;; 15139 esac 15140 need_lib_prefix=no 15141 need_version=no 15142 soname_spec='$libname$release$shared_ext$major' 15143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15144 case $host_os in 15145 irix5* | nonstopux*) 15146 libsuff= shlibsuff= 15147 ;; 15148 *) 15149 case $LD in # libtool.m4 will add one of these switches to LD 15150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15151 libsuff= shlibsuff= libmagic=32-bit;; 15152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15153 libsuff=32 shlibsuff=N32 libmagic=N32;; 15154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15155 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15156 *) libsuff= shlibsuff= libmagic=never-match;; 15157 esac 15158 ;; 15159 esac 15160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15161 shlibpath_overrides_runpath=no 15162 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15163 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15164 hardcode_into_libs=yes 15165 ;; 15166 15167# No shared lib support for Linux oldld, aout, or coff. 15168linux*oldld* | linux*aout* | linux*coff*) 15169 dynamic_linker=no 15170 ;; 15171 15172linux*android*) 15173 version_type=none # Android doesn't support versioned libraries. 15174 need_lib_prefix=no 15175 need_version=no 15176 library_names_spec='$libname$release$shared_ext' 15177 soname_spec='$libname$release$shared_ext' 15178 finish_cmds= 15179 shlibpath_var=LD_LIBRARY_PATH 15180 shlibpath_overrides_runpath=yes 15181 15182 # This implies no fast_install, which is unacceptable. 15183 # Some rework will be needed to allow for fast_install 15184 # before this can be enabled. 15185 hardcode_into_libs=yes 15186 15187 dynamic_linker='Android linker' 15188 # Don't embed -rpath directories since the linker doesn't support them. 15189 hardcode_libdir_flag_spec='-L$libdir' 15190 ;; 15191 15192# This must be glibc/ELF. 15193linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15194 version_type=linux # correct to gnu/linux during the next big refactor 15195 need_lib_prefix=no 15196 need_version=no 15197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15198 soname_spec='$libname$release$shared_ext$major' 15199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15200 shlibpath_var=LD_LIBRARY_PATH 15201 shlibpath_overrides_runpath=no 15202 15203 # Some binutils ld are patched to set DT_RUNPATH 15204 if test ${lt_cv_shlibpath_overrides_runpath+y} 15205then : 15206 printf %s "(cached) " >&6 15207else $as_nop 15208 lt_cv_shlibpath_overrides_runpath=no 15209 save_LDFLAGS=$LDFLAGS 15210 save_libdir=$libdir 15211 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 15212 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15214/* end confdefs.h. */ 15215 15216int 15217main (void) 15218{ 15219 15220 ; 15221 return 0; 15222} 15223_ACEOF 15224if ac_fn_c_try_link "$LINENO" 15225then : 15226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 15227then : 15228 lt_cv_shlibpath_overrides_runpath=yes 15229fi 15230fi 15231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15232 conftest$ac_exeext conftest.$ac_ext 15233 LDFLAGS=$save_LDFLAGS 15234 libdir=$save_libdir 15235 15236fi 15237 15238 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15239 15240 # This implies no fast_install, which is unacceptable. 15241 # Some rework will be needed to allow for fast_install 15242 # before this can be enabled. 15243 hardcode_into_libs=yes 15244 15245 # Ideally, we could use ldconfig to report *all* directores which are 15246 # searched for libraries, however this is still not possible. Aside from not 15247 # being certain /sbin/ldconfig is available, command 15248 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15249 # even though it is searched at run-time. Try to do the best guess by 15250 # appending ld.so.conf contents (and includes) to the search path. 15251 if test -f /etc/ld.so.conf; then 15252 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' ' '` 15253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15254 fi 15255 15256 # We used to test for /lib/ld.so.1 and disable shared libraries on 15257 # powerpc, because MkLinux only supported shared libraries with the 15258 # GNU dynamic linker. Since this was broken with cross compilers, 15259 # most powerpc-linux boxes support dynamic linking these days and 15260 # people can always --disable-shared, the test was removed, and we 15261 # assume the GNU/Linux dynamic linker is in use. 15262 dynamic_linker='GNU/Linux ld.so' 15263 ;; 15264 15265netbsdelf*-gnu) 15266 version_type=linux 15267 need_lib_prefix=no 15268 need_version=no 15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15270 soname_spec='${libname}${release}${shared_ext}$major' 15271 shlibpath_var=LD_LIBRARY_PATH 15272 shlibpath_overrides_runpath=no 15273 hardcode_into_libs=yes 15274 dynamic_linker='NetBSD ld.elf_so' 15275 ;; 15276 15277netbsd*) 15278 version_type=sunos 15279 need_lib_prefix=no 15280 need_version=no 15281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15282 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15284 dynamic_linker='NetBSD (a.out) ld.so' 15285 else 15286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15287 soname_spec='$libname$release$shared_ext$major' 15288 dynamic_linker='NetBSD ld.elf_so' 15289 fi 15290 shlibpath_var=LD_LIBRARY_PATH 15291 shlibpath_overrides_runpath=yes 15292 hardcode_into_libs=yes 15293 ;; 15294 15295newsos6) 15296 version_type=linux # correct to gnu/linux during the next big refactor 15297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15298 shlibpath_var=LD_LIBRARY_PATH 15299 shlibpath_overrides_runpath=yes 15300 ;; 15301 15302*nto* | *qnx*) 15303 version_type=qnx 15304 need_lib_prefix=no 15305 need_version=no 15306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15307 soname_spec='$libname$release$shared_ext$major' 15308 shlibpath_var=LD_LIBRARY_PATH 15309 shlibpath_overrides_runpath=no 15310 hardcode_into_libs=yes 15311 dynamic_linker='ldqnx.so' 15312 ;; 15313 15314openbsd* | bitrig*) 15315 version_type=sunos 15316 sys_lib_dlsearch_path_spec=/usr/lib 15317 need_lib_prefix=no 15318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15319 need_version=no 15320 else 15321 need_version=yes 15322 fi 15323 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15325 shlibpath_var=LD_LIBRARY_PATH 15326 shlibpath_overrides_runpath=yes 15327 ;; 15328 15329os2*) 15330 libname_spec='$name' 15331 version_type=windows 15332 shrext_cmds=.dll 15333 need_version=no 15334 need_lib_prefix=no 15335 # OS/2 can only load a DLL with a base name of 8 characters or less. 15336 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15337 v=$($ECHO $release$versuffix | tr -d .-); 15338 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15339 $ECHO $n$v`$shared_ext' 15340 library_names_spec='${libname}_dll.$libext' 15341 dynamic_linker='OS/2 ld.exe' 15342 shlibpath_var=BEGINLIBPATH 15343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15345 postinstall_cmds='base_file=`basename \$file`~ 15346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15347 dldir=$destdir/`dirname \$dlpath`~ 15348 test -d \$dldir || mkdir -p \$dldir~ 15349 $install_prog $dir/$dlname \$dldir/$dlname~ 15350 chmod a+x \$dldir/$dlname~ 15351 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15352 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15353 fi' 15354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15355 dlpath=$dir/\$dldll~ 15356 $RM \$dlpath' 15357 ;; 15358 15359osf3* | osf4* | osf5*) 15360 version_type=osf 15361 need_lib_prefix=no 15362 need_version=no 15363 soname_spec='$libname$release$shared_ext$major' 15364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15365 shlibpath_var=LD_LIBRARY_PATH 15366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15368 ;; 15369 15370rdos*) 15371 dynamic_linker=no 15372 ;; 15373 15374solaris*) 15375 version_type=linux # correct to gnu/linux during the next big refactor 15376 need_lib_prefix=no 15377 need_version=no 15378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15379 soname_spec='$libname$release$shared_ext$major' 15380 shlibpath_var=LD_LIBRARY_PATH 15381 shlibpath_overrides_runpath=yes 15382 hardcode_into_libs=yes 15383 # ldd complains unless libraries are executable 15384 postinstall_cmds='chmod +x $lib' 15385 ;; 15386 15387sunos4*) 15388 version_type=sunos 15389 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15391 shlibpath_var=LD_LIBRARY_PATH 15392 shlibpath_overrides_runpath=yes 15393 if test yes = "$with_gnu_ld"; then 15394 need_lib_prefix=no 15395 fi 15396 need_version=yes 15397 ;; 15398 15399sysv4 | sysv4.3*) 15400 version_type=linux # correct to gnu/linux during the next big refactor 15401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15402 soname_spec='$libname$release$shared_ext$major' 15403 shlibpath_var=LD_LIBRARY_PATH 15404 case $host_vendor in 15405 sni) 15406 shlibpath_overrides_runpath=no 15407 need_lib_prefix=no 15408 runpath_var=LD_RUN_PATH 15409 ;; 15410 siemens) 15411 need_lib_prefix=no 15412 ;; 15413 motorola) 15414 need_lib_prefix=no 15415 need_version=no 15416 shlibpath_overrides_runpath=no 15417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15418 ;; 15419 esac 15420 ;; 15421 15422sysv4*MP*) 15423 if test -d /usr/nec; then 15424 version_type=linux # correct to gnu/linux during the next big refactor 15425 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15426 soname_spec='$libname$shared_ext.$major' 15427 shlibpath_var=LD_LIBRARY_PATH 15428 fi 15429 ;; 15430 15431sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15432 version_type=sco 15433 need_lib_prefix=no 15434 need_version=no 15435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15436 soname_spec='$libname$release$shared_ext$major' 15437 shlibpath_var=LD_LIBRARY_PATH 15438 shlibpath_overrides_runpath=yes 15439 hardcode_into_libs=yes 15440 if test yes = "$with_gnu_ld"; then 15441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15442 else 15443 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15444 case $host_os in 15445 sco3.2v5*) 15446 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15447 ;; 15448 esac 15449 fi 15450 sys_lib_dlsearch_path_spec='/usr/lib' 15451 ;; 15452 15453tpf*) 15454 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15455 version_type=linux # correct to gnu/linux during the next big refactor 15456 need_lib_prefix=no 15457 need_version=no 15458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15459 shlibpath_var=LD_LIBRARY_PATH 15460 shlibpath_overrides_runpath=no 15461 hardcode_into_libs=yes 15462 ;; 15463 15464uts4*) 15465 version_type=linux # correct to gnu/linux during the next big refactor 15466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15467 soname_spec='$libname$release$shared_ext$major' 15468 shlibpath_var=LD_LIBRARY_PATH 15469 ;; 15470 15471*) 15472 dynamic_linker=no 15473 ;; 15474esac 15475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15476printf "%s\n" "$dynamic_linker" >&6; } 15477test no = "$dynamic_linker" && can_build_shared=no 15478 15479variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15480if test yes = "$GCC"; then 15481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15482fi 15483 15484if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15485 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15486fi 15487 15488if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15489 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15490fi 15491 15492# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15493configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15494 15495# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15496func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15497 15498# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15499configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15598printf %s "checking how to hardcode library paths into programs... " >&6; } 15599hardcode_action= 15600if test -n "$hardcode_libdir_flag_spec" || 15601 test -n "$runpath_var" || 15602 test yes = "$hardcode_automatic"; then 15603 15604 # We can hardcode non-existent directories. 15605 if test no != "$hardcode_direct" && 15606 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15607 # have to relink, otherwise we might link with an installed library 15608 # when we should be linking with a yet-to-be-installed one 15609 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 15610 test no != "$hardcode_minus_L"; then 15611 # Linking always hardcodes the temporary library directory. 15612 hardcode_action=relink 15613 else 15614 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15615 hardcode_action=immediate 15616 fi 15617else 15618 # We cannot hardcode anything, or else we can only hardcode existing 15619 # directories. 15620 hardcode_action=unsupported 15621fi 15622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15623printf "%s\n" "$hardcode_action" >&6; } 15624 15625if test relink = "$hardcode_action" || 15626 test yes = "$inherit_rpath"; then 15627 # Fast installation is not supported 15628 enable_fast_install=no 15629elif test yes = "$shlibpath_overrides_runpath" || 15630 test no = "$enable_shared"; then 15631 # Fast installation is not necessary 15632 enable_fast_install=needless 15633fi 15634 15635 15636 15637 15638 15639 15640 if test yes != "$enable_dlopen"; then 15641 enable_dlopen=unknown 15642 enable_dlopen_self=unknown 15643 enable_dlopen_self_static=unknown 15644else 15645 lt_cv_dlopen=no 15646 lt_cv_dlopen_libs= 15647 15648 case $host_os in 15649 beos*) 15650 lt_cv_dlopen=load_add_on 15651 lt_cv_dlopen_libs= 15652 lt_cv_dlopen_self=yes 15653 ;; 15654 15655 mingw* | pw32* | cegcc*) 15656 lt_cv_dlopen=LoadLibrary 15657 lt_cv_dlopen_libs= 15658 ;; 15659 15660 cygwin*) 15661 lt_cv_dlopen=dlopen 15662 lt_cv_dlopen_libs= 15663 ;; 15664 15665 darwin*) 15666 # if libdl is installed we need to link against it 15667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15668printf %s "checking for dlopen in -ldl... " >&6; } 15669if test ${ac_cv_lib_dl_dlopen+y} 15670then : 15671 printf %s "(cached) " >&6 15672else $as_nop 15673 ac_check_lib_save_LIBS=$LIBS 15674LIBS="-ldl $LIBS" 15675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15676/* end confdefs.h. */ 15677 15678/* Override any GCC internal prototype to avoid an error. 15679 Use char because int might match the return type of a GCC 15680 builtin and then its argument prototype would still apply. */ 15681char dlopen (); 15682int 15683main (void) 15684{ 15685return dlopen (); 15686 ; 15687 return 0; 15688} 15689_ACEOF 15690if ac_fn_c_try_link "$LINENO" 15691then : 15692 ac_cv_lib_dl_dlopen=yes 15693else $as_nop 15694 ac_cv_lib_dl_dlopen=no 15695fi 15696rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15697 conftest$ac_exeext conftest.$ac_ext 15698LIBS=$ac_check_lib_save_LIBS 15699fi 15700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15701printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15702if test "x$ac_cv_lib_dl_dlopen" = xyes 15703then : 15704 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15705else $as_nop 15706 15707 lt_cv_dlopen=dyld 15708 lt_cv_dlopen_libs= 15709 lt_cv_dlopen_self=yes 15710 15711fi 15712 15713 ;; 15714 15715 tpf*) 15716 # Don't try to run any link tests for TPF. We know it's impossible 15717 # because TPF is a cross-compiler, and we know how we open DSOs. 15718 lt_cv_dlopen=dlopen 15719 lt_cv_dlopen_libs= 15720 lt_cv_dlopen_self=no 15721 ;; 15722 15723 *) 15724 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15725if test "x$ac_cv_func_shl_load" = xyes 15726then : 15727 lt_cv_dlopen=shl_load 15728else $as_nop 15729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15730printf %s "checking for shl_load in -ldld... " >&6; } 15731if test ${ac_cv_lib_dld_shl_load+y} 15732then : 15733 printf %s "(cached) " >&6 15734else $as_nop 15735 ac_check_lib_save_LIBS=$LIBS 15736LIBS="-ldld $LIBS" 15737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15738/* end confdefs.h. */ 15739 15740/* Override any GCC internal prototype to avoid an error. 15741 Use char because int might match the return type of a GCC 15742 builtin and then its argument prototype would still apply. */ 15743char shl_load (); 15744int 15745main (void) 15746{ 15747return shl_load (); 15748 ; 15749 return 0; 15750} 15751_ACEOF 15752if ac_fn_c_try_link "$LINENO" 15753then : 15754 ac_cv_lib_dld_shl_load=yes 15755else $as_nop 15756 ac_cv_lib_dld_shl_load=no 15757fi 15758rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15759 conftest$ac_exeext conftest.$ac_ext 15760LIBS=$ac_check_lib_save_LIBS 15761fi 15762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15763printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 15764if test "x$ac_cv_lib_dld_shl_load" = xyes 15765then : 15766 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15767else $as_nop 15768 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15769if test "x$ac_cv_func_dlopen" = xyes 15770then : 15771 lt_cv_dlopen=dlopen 15772else $as_nop 15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15774printf %s "checking for dlopen in -ldl... " >&6; } 15775if test ${ac_cv_lib_dl_dlopen+y} 15776then : 15777 printf %s "(cached) " >&6 15778else $as_nop 15779 ac_check_lib_save_LIBS=$LIBS 15780LIBS="-ldl $LIBS" 15781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15782/* end confdefs.h. */ 15783 15784/* Override any GCC internal prototype to avoid an error. 15785 Use char because int might match the return type of a GCC 15786 builtin and then its argument prototype would still apply. */ 15787char dlopen (); 15788int 15789main (void) 15790{ 15791return dlopen (); 15792 ; 15793 return 0; 15794} 15795_ACEOF 15796if ac_fn_c_try_link "$LINENO" 15797then : 15798 ac_cv_lib_dl_dlopen=yes 15799else $as_nop 15800 ac_cv_lib_dl_dlopen=no 15801fi 15802rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15803 conftest$ac_exeext conftest.$ac_ext 15804LIBS=$ac_check_lib_save_LIBS 15805fi 15806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15807printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 15808if test "x$ac_cv_lib_dl_dlopen" = xyes 15809then : 15810 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15811else $as_nop 15812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15813printf %s "checking for dlopen in -lsvld... " >&6; } 15814if test ${ac_cv_lib_svld_dlopen+y} 15815then : 15816 printf %s "(cached) " >&6 15817else $as_nop 15818 ac_check_lib_save_LIBS=$LIBS 15819LIBS="-lsvld $LIBS" 15820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15821/* end confdefs.h. */ 15822 15823/* Override any GCC internal prototype to avoid an error. 15824 Use char because int might match the return type of a GCC 15825 builtin and then its argument prototype would still apply. */ 15826char dlopen (); 15827int 15828main (void) 15829{ 15830return dlopen (); 15831 ; 15832 return 0; 15833} 15834_ACEOF 15835if ac_fn_c_try_link "$LINENO" 15836then : 15837 ac_cv_lib_svld_dlopen=yes 15838else $as_nop 15839 ac_cv_lib_svld_dlopen=no 15840fi 15841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15842 conftest$ac_exeext conftest.$ac_ext 15843LIBS=$ac_check_lib_save_LIBS 15844fi 15845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15846printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 15847if test "x$ac_cv_lib_svld_dlopen" = xyes 15848then : 15849 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15850else $as_nop 15851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15852printf %s "checking for dld_link in -ldld... " >&6; } 15853if test ${ac_cv_lib_dld_dld_link+y} 15854then : 15855 printf %s "(cached) " >&6 15856else $as_nop 15857 ac_check_lib_save_LIBS=$LIBS 15858LIBS="-ldld $LIBS" 15859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15860/* end confdefs.h. */ 15861 15862/* Override any GCC internal prototype to avoid an error. 15863 Use char because int might match the return type of a GCC 15864 builtin and then its argument prototype would still apply. */ 15865char dld_link (); 15866int 15867main (void) 15868{ 15869return dld_link (); 15870 ; 15871 return 0; 15872} 15873_ACEOF 15874if ac_fn_c_try_link "$LINENO" 15875then : 15876 ac_cv_lib_dld_dld_link=yes 15877else $as_nop 15878 ac_cv_lib_dld_dld_link=no 15879fi 15880rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15881 conftest$ac_exeext conftest.$ac_ext 15882LIBS=$ac_check_lib_save_LIBS 15883fi 15884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15885printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 15886if test "x$ac_cv_lib_dld_dld_link" = xyes 15887then : 15888 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15889fi 15890 15891 15892fi 15893 15894 15895fi 15896 15897 15898fi 15899 15900 15901fi 15902 15903 15904fi 15905 15906 ;; 15907 esac 15908 15909 if test no = "$lt_cv_dlopen"; then 15910 enable_dlopen=no 15911 else 15912 enable_dlopen=yes 15913 fi 15914 15915 case $lt_cv_dlopen in 15916 dlopen) 15917 save_CPPFLAGS=$CPPFLAGS 15918 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15919 15920 save_LDFLAGS=$LDFLAGS 15921 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15922 15923 save_LIBS=$LIBS 15924 LIBS="$lt_cv_dlopen_libs $LIBS" 15925 15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15927printf %s "checking whether a program can dlopen itself... " >&6; } 15928if test ${lt_cv_dlopen_self+y} 15929then : 15930 printf %s "(cached) " >&6 15931else $as_nop 15932 if test yes = "$cross_compiling"; then : 15933 lt_cv_dlopen_self=cross 15934else 15935 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15936 lt_status=$lt_dlunknown 15937 cat > conftest.$ac_ext <<_LT_EOF 15938#line $LINENO "configure" 15939#include "confdefs.h" 15940 15941#if HAVE_DLFCN_H 15942#include <dlfcn.h> 15943#endif 15944 15945#include <stdio.h> 15946 15947#ifdef RTLD_GLOBAL 15948# define LT_DLGLOBAL RTLD_GLOBAL 15949#else 15950# ifdef DL_GLOBAL 15951# define LT_DLGLOBAL DL_GLOBAL 15952# else 15953# define LT_DLGLOBAL 0 15954# endif 15955#endif 15956 15957/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15958 find out it does not work in some platform. */ 15959#ifndef LT_DLLAZY_OR_NOW 15960# ifdef RTLD_LAZY 15961# define LT_DLLAZY_OR_NOW RTLD_LAZY 15962# else 15963# ifdef DL_LAZY 15964# define LT_DLLAZY_OR_NOW DL_LAZY 15965# else 15966# ifdef RTLD_NOW 15967# define LT_DLLAZY_OR_NOW RTLD_NOW 15968# else 15969# ifdef DL_NOW 15970# define LT_DLLAZY_OR_NOW DL_NOW 15971# else 15972# define LT_DLLAZY_OR_NOW 0 15973# endif 15974# endif 15975# endif 15976# endif 15977#endif 15978 15979/* When -fvisibility=hidden is used, assume the code has been annotated 15980 correspondingly for the symbols needed. */ 15981#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15982int fnord () __attribute__((visibility("default"))); 15983#endif 15984 15985int fnord () { return 42; } 15986int main () 15987{ 15988 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15989 int status = $lt_dlunknown; 15990 15991 if (self) 15992 { 15993 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15994 else 15995 { 15996 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15997 else puts (dlerror ()); 15998 } 15999 /* dlclose (self); */ 16000 } 16001 else 16002 puts (dlerror ()); 16003 16004 return status; 16005} 16006_LT_EOF 16007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16008 (eval $ac_link) 2>&5 16009 ac_status=$? 16010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16011 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16012 (./conftest; exit; ) >&5 2>/dev/null 16013 lt_status=$? 16014 case x$lt_status in 16015 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 16016 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 16017 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 16018 esac 16019 else : 16020 # compilation failed 16021 lt_cv_dlopen_self=no 16022 fi 16023fi 16024rm -fr conftest* 16025 16026 16027fi 16028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 16029printf "%s\n" "$lt_cv_dlopen_self" >&6; } 16030 16031 if test yes = "$lt_cv_dlopen_self"; then 16032 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 16033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 16034printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 16035if test ${lt_cv_dlopen_self_static+y} 16036then : 16037 printf %s "(cached) " >&6 16038else $as_nop 16039 if test yes = "$cross_compiling"; then : 16040 lt_cv_dlopen_self_static=cross 16041else 16042 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 16043 lt_status=$lt_dlunknown 16044 cat > conftest.$ac_ext <<_LT_EOF 16045#line $LINENO "configure" 16046#include "confdefs.h" 16047 16048#if HAVE_DLFCN_H 16049#include <dlfcn.h> 16050#endif 16051 16052#include <stdio.h> 16053 16054#ifdef RTLD_GLOBAL 16055# define LT_DLGLOBAL RTLD_GLOBAL 16056#else 16057# ifdef DL_GLOBAL 16058# define LT_DLGLOBAL DL_GLOBAL 16059# else 16060# define LT_DLGLOBAL 0 16061# endif 16062#endif 16063 16064/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 16065 find out it does not work in some platform. */ 16066#ifndef LT_DLLAZY_OR_NOW 16067# ifdef RTLD_LAZY 16068# define LT_DLLAZY_OR_NOW RTLD_LAZY 16069# else 16070# ifdef DL_LAZY 16071# define LT_DLLAZY_OR_NOW DL_LAZY 16072# else 16073# ifdef RTLD_NOW 16074# define LT_DLLAZY_OR_NOW RTLD_NOW 16075# else 16076# ifdef DL_NOW 16077# define LT_DLLAZY_OR_NOW DL_NOW 16078# else 16079# define LT_DLLAZY_OR_NOW 0 16080# endif 16081# endif 16082# endif 16083# endif 16084#endif 16085 16086/* When -fvisibility=hidden is used, assume the code has been annotated 16087 correspondingly for the symbols needed. */ 16088#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 16089int fnord () __attribute__((visibility("default"))); 16090#endif 16091 16092int fnord () { return 42; } 16093int main () 16094{ 16095 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 16096 int status = $lt_dlunknown; 16097 16098 if (self) 16099 { 16100 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 16101 else 16102 { 16103 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 16104 else puts (dlerror ()); 16105 } 16106 /* dlclose (self); */ 16107 } 16108 else 16109 puts (dlerror ()); 16110 16111 return status; 16112} 16113_LT_EOF 16114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 16115 (eval $ac_link) 2>&5 16116 ac_status=$? 16117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16118 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 16119 (./conftest; exit; ) >&5 2>/dev/null 16120 lt_status=$? 16121 case x$lt_status in 16122 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 16123 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 16124 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 16125 esac 16126 else : 16127 # compilation failed 16128 lt_cv_dlopen_self_static=no 16129 fi 16130fi 16131rm -fr conftest* 16132 16133 16134fi 16135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 16136printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 16137 fi 16138 16139 CPPFLAGS=$save_CPPFLAGS 16140 LDFLAGS=$save_LDFLAGS 16141 LIBS=$save_LIBS 16142 ;; 16143 esac 16144 16145 case $lt_cv_dlopen_self in 16146 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 16147 *) enable_dlopen_self=unknown ;; 16148 esac 16149 16150 case $lt_cv_dlopen_self_static in 16151 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 16152 *) enable_dlopen_self_static=unknown ;; 16153 esac 16154fi 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172striplib= 16173old_striplib= 16174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 16175printf %s "checking whether stripping libraries is possible... " >&6; } 16176if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 16177 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16178 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16180printf "%s\n" "yes" >&6; } 16181else 16182# FIXME - insert some real tests, host_os isn't really good enough 16183 case $host_os in 16184 darwin*) 16185 if test -n "$STRIP"; then 16186 striplib="$STRIP -x" 16187 old_striplib="$STRIP -S" 16188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16189printf "%s\n" "yes" >&6; } 16190 else 16191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16192printf "%s\n" "no" >&6; } 16193 fi 16194 ;; 16195 *) 16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16197printf "%s\n" "no" >&6; } 16198 ;; 16199 esac 16200fi 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 # Report what library types will actually be built 16214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 16215printf %s "checking if libtool supports shared libraries... " >&6; } 16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 16217printf "%s\n" "$can_build_shared" >&6; } 16218 16219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 16220printf %s "checking whether to build shared libraries... " >&6; } 16221 test no = "$can_build_shared" && enable_shared=no 16222 16223 # On AIX, shared libraries and static libraries use the same namespace, and 16224 # are all built from PIC. 16225 case $host_os in 16226 aix3*) 16227 test yes = "$enable_shared" && enable_static=no 16228 if test -n "$RANLIB"; then 16229 archive_cmds="$archive_cmds~\$RANLIB \$lib" 16230 postinstall_cmds='$RANLIB $lib' 16231 fi 16232 ;; 16233 16234 aix[4-9]*) 16235 if test ia64 != "$host_cpu"; then 16236 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 16237 yes,aix,yes) ;; # shared object as lib.so file only 16238 yes,svr4,*) ;; # shared object as lib.so archive member only 16239 yes,*) enable_static=no ;; # shared object in lib.a archive as well 16240 esac 16241 fi 16242 ;; 16243 esac 16244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 16245printf "%s\n" "$enable_shared" >&6; } 16246 16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 16248printf %s "checking whether to build static libraries... " >&6; } 16249 # Make sure either enable_shared or enable_static is yes. 16250 test yes = "$enable_shared" || enable_static=yes 16251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 16252printf "%s\n" "$enable_static" >&6; } 16253 16254 16255 16256 16257fi 16258ac_ext=c 16259ac_cpp='$CPP $CPPFLAGS' 16260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16262ac_compiler_gnu=$ac_cv_c_compiler_gnu 16263 16264CC=$lt_save_CC 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 ac_config_commands="$ac_config_commands libtool" 16281 16282 16283 16284 16285# Only expand once: 16286 16287 16288 16289PERL=${PERL-"${am_missing_run}perl"} 16290 16291 16292HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 16293 16294 16295DIA=${DIA-"${am_missing_run}dia"} 16296 16297 16298EPSTOPDF=${EPSTOPDF-"${am_missing_run}epstopdf"} 16299 16300 16301# Internationalization. 16302 16303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 16304printf %s "checking whether NLS is requested... " >&6; } 16305 # Check whether --enable-nls was given. 16306if test ${enable_nls+y} 16307then : 16308 enableval=$enable_nls; USE_NLS=$enableval 16309else $as_nop 16310 USE_NLS=yes 16311fi 16312 16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 16314printf "%s\n" "$USE_NLS" >&6; } 16315 16316 16317 16318 16319 GETTEXT_MACRO_VERSION=0.19 16320 16321 16322 16323 16324# Prepare PATH_SEPARATOR. 16325# The user is always right. 16326if test "${PATH_SEPARATOR+set}" != set; then 16327 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 16328 # contains only /bin. Note that ksh looks also at the FPATH variable, 16329 # so we have to set that as well for the test. 16330 PATH_SEPARATOR=: 16331 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16332 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16333 || PATH_SEPARATOR=';' 16334 } 16335fi 16336 16337# Find out how to test for executable files. Don't use a zero-byte file, 16338# as systems may use methods other than mode bits to determine executability. 16339cat >conf$$.file <<_ASEOF 16340#! /bin/sh 16341exit 0 16342_ASEOF 16343chmod +x conf$$.file 16344if test -x conf$$.file >/dev/null 2>&1; then 16345 ac_executable_p="test -x" 16346else 16347 ac_executable_p="test -f" 16348fi 16349rm -f conf$$.file 16350 16351# Extract the first word of "msgfmt", so it can be a program name with args. 16352set dummy msgfmt; ac_word=$2 16353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16354printf %s "checking for $ac_word... " >&6; } 16355if test ${ac_cv_path_MSGFMT+y} 16356then : 16357 printf %s "(cached) " >&6 16358else $as_nop 16359 case "$MSGFMT" in 16360 [\\/]* | ?:[\\/]*) 16361 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 16362 ;; 16363 *) 16364 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 16365 for ac_dir in $PATH; do 16366 IFS="$ac_save_IFS" 16367 test -z "$ac_dir" && ac_dir=. 16368 for ac_exec_ext in '' $ac_executable_extensions; do 16369 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 16370 echo "$as_me: trying $ac_dir/$ac_word..." >&5 16371 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 16372 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 16373 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 16374 break 2 16375 fi 16376 fi 16377 done 16378 done 16379 IFS="$ac_save_IFS" 16380 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 16381 ;; 16382esac 16383fi 16384MSGFMT="$ac_cv_path_MSGFMT" 16385if test "$MSGFMT" != ":"; then 16386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 16387printf "%s\n" "$MSGFMT" >&6; } 16388else 16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16390printf "%s\n" "no" >&6; } 16391fi 16392 16393 # Extract the first word of "gmsgfmt", so it can be a program name with args. 16394set dummy gmsgfmt; ac_word=$2 16395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16396printf %s "checking for $ac_word... " >&6; } 16397if test ${ac_cv_path_GMSGFMT+y} 16398then : 16399 printf %s "(cached) " >&6 16400else $as_nop 16401 case $GMSGFMT in 16402 [\\/]* | ?:[\\/]*) 16403 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 16404 ;; 16405 *) 16406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16407for as_dir in $PATH 16408do 16409 IFS=$as_save_IFS 16410 case $as_dir in #((( 16411 '') as_dir=./ ;; 16412 */) ;; 16413 *) as_dir=$as_dir/ ;; 16414 esac 16415 for ac_exec_ext in '' $ac_executable_extensions; do 16416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 16417 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext" 16418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 16419 break 2 16420 fi 16421done 16422 done 16423IFS=$as_save_IFS 16424 16425 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 16426 ;; 16427esac 16428fi 16429GMSGFMT=$ac_cv_path_GMSGFMT 16430if test -n "$GMSGFMT"; then 16431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 16432printf "%s\n" "$GMSGFMT" >&6; } 16433else 16434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16435printf "%s\n" "no" >&6; } 16436fi 16437 16438 16439 16440 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 16441 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 16442 *) MSGFMT_015=$MSGFMT ;; 16443 esac 16444 16445 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 16446 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 16447 *) GMSGFMT_015=$GMSGFMT ;; 16448 esac 16449 16450 16451 16452# Prepare PATH_SEPARATOR. 16453# The user is always right. 16454if test "${PATH_SEPARATOR+set}" != set; then 16455 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 16456 # contains only /bin. Note that ksh looks also at the FPATH variable, 16457 # so we have to set that as well for the test. 16458 PATH_SEPARATOR=: 16459 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16460 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16461 || PATH_SEPARATOR=';' 16462 } 16463fi 16464 16465# Find out how to test for executable files. Don't use a zero-byte file, 16466# as systems may use methods other than mode bits to determine executability. 16467cat >conf$$.file <<_ASEOF 16468#! /bin/sh 16469exit 0 16470_ASEOF 16471chmod +x conf$$.file 16472if test -x conf$$.file >/dev/null 2>&1; then 16473 ac_executable_p="test -x" 16474else 16475 ac_executable_p="test -f" 16476fi 16477rm -f conf$$.file 16478 16479# Extract the first word of "xgettext", so it can be a program name with args. 16480set dummy xgettext; ac_word=$2 16481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16482printf %s "checking for $ac_word... " >&6; } 16483if test ${ac_cv_path_XGETTEXT+y} 16484then : 16485 printf %s "(cached) " >&6 16486else $as_nop 16487 case "$XGETTEXT" in 16488 [\\/]* | ?:[\\/]*) 16489 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 16490 ;; 16491 *) 16492 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 16493 for ac_dir in $PATH; do 16494 IFS="$ac_save_IFS" 16495 test -z "$ac_dir" && ac_dir=. 16496 for ac_exec_ext in '' $ac_executable_extensions; do 16497 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 16498 echo "$as_me: trying $ac_dir/$ac_word..." >&5 16499 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 16500 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 16501 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 16502 break 2 16503 fi 16504 fi 16505 done 16506 done 16507 IFS="$ac_save_IFS" 16508 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 16509 ;; 16510esac 16511fi 16512XGETTEXT="$ac_cv_path_XGETTEXT" 16513if test "$XGETTEXT" != ":"; then 16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 16515printf "%s\n" "$XGETTEXT" >&6; } 16516else 16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16518printf "%s\n" "no" >&6; } 16519fi 16520 16521 rm -f messages.po 16522 16523 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 16524 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 16525 *) XGETTEXT_015=$XGETTEXT ;; 16526 esac 16527 16528 16529 16530# Prepare PATH_SEPARATOR. 16531# The user is always right. 16532if test "${PATH_SEPARATOR+set}" != set; then 16533 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 16534 # contains only /bin. Note that ksh looks also at the FPATH variable, 16535 # so we have to set that as well for the test. 16536 PATH_SEPARATOR=: 16537 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16538 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16539 || PATH_SEPARATOR=';' 16540 } 16541fi 16542 16543# Find out how to test for executable files. Don't use a zero-byte file, 16544# as systems may use methods other than mode bits to determine executability. 16545cat >conf$$.file <<_ASEOF 16546#! /bin/sh 16547exit 0 16548_ASEOF 16549chmod +x conf$$.file 16550if test -x conf$$.file >/dev/null 2>&1; then 16551 ac_executable_p="test -x" 16552else 16553 ac_executable_p="test -f" 16554fi 16555rm -f conf$$.file 16556 16557# Extract the first word of "msgmerge", so it can be a program name with args. 16558set dummy msgmerge; ac_word=$2 16559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16560printf %s "checking for $ac_word... " >&6; } 16561if test ${ac_cv_path_MSGMERGE+y} 16562then : 16563 printf %s "(cached) " >&6 16564else $as_nop 16565 case "$MSGMERGE" in 16566 [\\/]* | ?:[\\/]*) 16567 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 16568 ;; 16569 *) 16570 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 16571 for ac_dir in $PATH; do 16572 IFS="$ac_save_IFS" 16573 test -z "$ac_dir" && ac_dir=. 16574 for ac_exec_ext in '' $ac_executable_extensions; do 16575 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 16576 echo "$as_me: trying $ac_dir/$ac_word..." >&5 16577 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 16578 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 16579 break 2 16580 fi 16581 fi 16582 done 16583 done 16584 IFS="$ac_save_IFS" 16585 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 16586 ;; 16587esac 16588fi 16589MSGMERGE="$ac_cv_path_MSGMERGE" 16590if test "$MSGMERGE" != ":"; then 16591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 16592printf "%s\n" "$MSGMERGE" >&6; } 16593else 16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16595printf "%s\n" "no" >&6; } 16596fi 16597 16598 16599 test -n "$localedir" || localedir='${datadir}/locale' 16600 16601 16602 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 16603 16604 16605 ac_config_commands="$ac_config_commands po-directories" 16606 16607 16608 16609 if test "X$prefix" = "XNONE"; then 16610 acl_final_prefix="$ac_default_prefix" 16611 else 16612 acl_final_prefix="$prefix" 16613 fi 16614 if test "X$exec_prefix" = "XNONE"; then 16615 acl_final_exec_prefix='${prefix}' 16616 else 16617 acl_final_exec_prefix="$exec_prefix" 16618 fi 16619 acl_save_prefix="$prefix" 16620 prefix="$acl_final_prefix" 16621 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 16622 prefix="$acl_save_prefix" 16623 16624 16625 16626# Check whether --with-gnu-ld was given. 16627if test ${with_gnu_ld+y} 16628then : 16629 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 16630else $as_nop 16631 with_gnu_ld=no 16632fi 16633 16634# Prepare PATH_SEPARATOR. 16635# The user is always right. 16636if test "${PATH_SEPARATOR+set}" != set; then 16637 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 16638 # contains only /bin. Note that ksh looks also at the FPATH variable, 16639 # so we have to set that as well for the test. 16640 PATH_SEPARATOR=: 16641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16642 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 16643 || PATH_SEPARATOR=';' 16644 } 16645fi 16646 16647if test -n "$LD"; then 16648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 16649printf %s "checking for ld... " >&6; } 16650elif test "$GCC" = yes; then 16651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 16652printf %s "checking for ld used by $CC... " >&6; } 16653elif test "$with_gnu_ld" = yes; then 16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 16655printf %s "checking for GNU ld... " >&6; } 16656else 16657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 16658printf %s "checking for non-GNU ld... " >&6; } 16659fi 16660if test -n "$LD"; then 16661 # Let the user override the test with a path. 16662 : 16663else 16664 if test ${acl_cv_path_LD+y} 16665then : 16666 printf %s "(cached) " >&6 16667else $as_nop 16668 16669 acl_cv_path_LD= # Final result of this test 16670 ac_prog=ld # Program to search in $PATH 16671 if test "$GCC" = yes; then 16672 # Check if gcc -print-prog-name=ld gives a path. 16673 case $host in 16674 *-*-mingw*) 16675 # gcc leaves a trailing carriage return which upsets mingw 16676 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 16677 *) 16678 acl_output=`($CC -print-prog-name=ld) 2>&5` ;; 16679 esac 16680 case $acl_output in 16681 # Accept absolute paths. 16682 [\\/]* | ?:[\\/]*) 16683 re_direlt='/[^/][^/]*/\.\./' 16684 # Canonicalize the pathname of ld 16685 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` 16686 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do 16687 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` 16688 done 16689 # Got the pathname. No search in PATH is needed. 16690 acl_cv_path_LD="$acl_output" 16691 ac_prog= 16692 ;; 16693 "") 16694 # If it fails, then pretend we aren't using GCC. 16695 ;; 16696 *) 16697 # If it is relative, then search for the first ld in PATH. 16698 with_gnu_ld=unknown 16699 ;; 16700 esac 16701 fi 16702 if test -n "$ac_prog"; then 16703 # Search for $ac_prog in $PATH. 16704 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 16705 for ac_dir in $PATH; do 16706 IFS="$acl_save_ifs" 16707 test -z "$ac_dir" && ac_dir=. 16708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 16709 acl_cv_path_LD="$ac_dir/$ac_prog" 16710 # Check to see if the program is GNU ld. I'd rather use --version, 16711 # but apparently some variants of GNU ld only accept -v. 16712 # Break only if it was the GNU/non-GNU ld that we prefer. 16713 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 16714 *GNU* | *'with BFD'*) 16715 test "$with_gnu_ld" != no && break 16716 ;; 16717 *) 16718 test "$with_gnu_ld" != yes && break 16719 ;; 16720 esac 16721 fi 16722 done 16723 IFS="$acl_save_ifs" 16724 fi 16725 case $host in 16726 *-*-aix*) 16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16728/* end confdefs.h. */ 16729#if defined __powerpc64__ || defined _ARCH_PPC64 16730 int ok; 16731 #else 16732 error fail 16733 #endif 16734 16735_ACEOF 16736if ac_fn_c_try_compile "$LINENO" 16737then : 16738 # The compiler produces 64-bit code. Add option '-b64' so that the 16739 # linker groks 64-bit object files. 16740 case "$acl_cv_path_LD " in 16741 *" -b64 "*) ;; 16742 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; 16743 esac 16744 16745fi 16746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16747 ;; 16748 sparc64-*-netbsd*) 16749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16750/* end confdefs.h. */ 16751#if defined __sparcv9 || defined __arch64__ 16752 int ok; 16753 #else 16754 error fail 16755 #endif 16756 16757_ACEOF 16758if ac_fn_c_try_compile "$LINENO" 16759then : 16760 16761else $as_nop 16762 # The compiler produces 32-bit code. Add option '-m elf32_sparc' 16763 # so that the linker groks 32-bit object files. 16764 case "$acl_cv_path_LD " in 16765 *" -m elf32_sparc "*) ;; 16766 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; 16767 esac 16768 16769fi 16770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16771 ;; 16772 esac 16773 16774fi 16775 16776 LD="$acl_cv_path_LD" 16777fi 16778if test -n "$LD"; then 16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 16780printf "%s\n" "$LD" >&6; } 16781else 16782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16783printf "%s\n" "no" >&6; } 16784 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 16785fi 16786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 16787printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 16788if test ${acl_cv_prog_gnu_ld+y} 16789then : 16790 printf %s "(cached) " >&6 16791else $as_nop 16792 # I'd rather use --version here, but apparently some GNU lds only accept -v. 16793case `$LD -v 2>&1 </dev/null` in 16794*GNU* | *'with BFD'*) 16795 acl_cv_prog_gnu_ld=yes 16796 ;; 16797*) 16798 acl_cv_prog_gnu_ld=no 16799 ;; 16800esac 16801fi 16802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 16803printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } 16804with_gnu_ld=$acl_cv_prog_gnu_ld 16805 16806 16807 16808 16809 16810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 16811printf %s "checking for shared library run path origin... " >&6; } 16812if test ${acl_cv_rpath+y} 16813then : 16814 printf %s "(cached) " >&6 16815else $as_nop 16816 16817 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 16818 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 16819 . ./conftest.sh 16820 rm -f ./conftest.sh 16821 acl_cv_rpath=done 16822 16823fi 16824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 16825printf "%s\n" "$acl_cv_rpath" >&6; } 16826 wl="$acl_cv_wl" 16827 acl_libext="$acl_cv_libext" 16828 acl_shlibext="$acl_cv_shlibext" 16829 acl_libname_spec="$acl_cv_libname_spec" 16830 acl_library_names_spec="$acl_cv_library_names_spec" 16831 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 16832 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 16833 acl_hardcode_direct="$acl_cv_hardcode_direct" 16834 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 16835 # Check whether --enable-rpath was given. 16836if test ${enable_rpath+y} 16837then : 16838 enableval=$enable_rpath; : 16839else $as_nop 16840 enable_rpath=yes 16841fi 16842 16843 16844 16845 16846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 16847printf %s "checking 32-bit host C ABI... " >&6; } 16848if test ${gl_cv_host_cpu_c_abi_32bit+y} 16849then : 16850 printf %s "(cached) " >&6 16851else $as_nop 16852 if test -n "$gl_cv_host_cpu_c_abi"; then 16853 case "$gl_cv_host_cpu_c_abi" in 16854 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) 16855 gl_cv_host_cpu_c_abi_32bit=yes ;; 16856 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) 16857 gl_cv_host_cpu_c_abi_32bit=no ;; 16858 *) 16859 gl_cv_host_cpu_c_abi_32bit=unknown ;; 16860 esac 16861 else 16862 case "$host_cpu" in 16863 16864 # CPUs that only support a 32-bit ABI. 16865 arc \ 16866 | bfin \ 16867 | cris* \ 16868 | csky \ 16869 | epiphany \ 16870 | ft32 \ 16871 | h8300 \ 16872 | m68k \ 16873 | microblaze | microblazeel \ 16874 | nds32 | nds32le | nds32be \ 16875 | nios2 | nios2eb | nios2el \ 16876 | or1k* \ 16877 | or32 \ 16878 | sh | sh1234 | sh1234elb \ 16879 | tic6x \ 16880 | xtensa* ) 16881 gl_cv_host_cpu_c_abi_32bit=yes 16882 ;; 16883 16884 # CPUs that only support a 64-bit ABI. 16885 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ 16886 | mmix ) 16887 gl_cv_host_cpu_c_abi_32bit=no 16888 ;; 16889 16890 i[34567]86 ) 16891 gl_cv_host_cpu_c_abi_32bit=yes 16892 ;; 16893 16894 x86_64 ) 16895 # On x86_64 systems, the C compiler may be generating code in one of 16896 # these ABIs: 16897 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. 16898 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 16899 # with native Windows (mingw, MSVC). 16900 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. 16901 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. 16902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16903/* end confdefs.h. */ 16904#if (defined __x86_64__ || defined __amd64__ \ 16905 || defined _M_X64 || defined _M_AMD64) \ 16906 && !(defined __ILP32__ || defined _ILP32) 16907 int ok; 16908 #else 16909 error fail 16910 #endif 16911 16912_ACEOF 16913if ac_fn_c_try_compile "$LINENO" 16914then : 16915 gl_cv_host_cpu_c_abi_32bit=no 16916else $as_nop 16917 gl_cv_host_cpu_c_abi_32bit=yes 16918fi 16919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16920 ;; 16921 16922 arm* | aarch64 ) 16923 # Assume arm with EABI. 16924 # On arm64 systems, the C compiler may be generating code in one of 16925 # these ABIs: 16926 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. 16927 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. 16928 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. 16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16930/* end confdefs.h. */ 16931#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) 16932 int ok; 16933 #else 16934 error fail 16935 #endif 16936 16937_ACEOF 16938if ac_fn_c_try_compile "$LINENO" 16939then : 16940 gl_cv_host_cpu_c_abi_32bit=no 16941else $as_nop 16942 gl_cv_host_cpu_c_abi_32bit=yes 16943fi 16944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16945 ;; 16946 16947 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) 16948 # On hppa, the C compiler may be generating 32-bit code or 64-bit 16949 # code. In the latter case, it defines _LP64 and __LP64__. 16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16951/* end confdefs.h. */ 16952#ifdef __LP64__ 16953 int ok; 16954 #else 16955 error fail 16956 #endif 16957 16958_ACEOF 16959if ac_fn_c_try_compile "$LINENO" 16960then : 16961 gl_cv_host_cpu_c_abi_32bit=no 16962else $as_nop 16963 gl_cv_host_cpu_c_abi_32bit=yes 16964fi 16965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16966 ;; 16967 16968 ia64* ) 16969 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or 16970 # 32-bit code. In the latter case, it defines _ILP32. 16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16972/* end confdefs.h. */ 16973#ifdef _ILP32 16974 int ok; 16975 #else 16976 error fail 16977 #endif 16978 16979_ACEOF 16980if ac_fn_c_try_compile "$LINENO" 16981then : 16982 gl_cv_host_cpu_c_abi_32bit=yes 16983else $as_nop 16984 gl_cv_host_cpu_c_abi_32bit=no 16985fi 16986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16987 ;; 16988 16989 mips* ) 16990 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this 16991 # at 32. 16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16993/* end confdefs.h. */ 16994#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) 16995 int ok; 16996 #else 16997 error fail 16998 #endif 16999 17000_ACEOF 17001if ac_fn_c_try_compile "$LINENO" 17002then : 17003 gl_cv_host_cpu_c_abi_32bit=no 17004else $as_nop 17005 gl_cv_host_cpu_c_abi_32bit=yes 17006fi 17007rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17008 ;; 17009 17010 powerpc* ) 17011 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. 17012 # No need to distinguish them here; the caller may distinguish 17013 # them based on the OS. 17014 # On powerpc64 systems, the C compiler may still be generating 17015 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may 17016 # be generating 64-bit code. 17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17018/* end confdefs.h. */ 17019#if defined __powerpc64__ || defined _ARCH_PPC64 17020 int ok; 17021 #else 17022 error fail 17023 #endif 17024 17025_ACEOF 17026if ac_fn_c_try_compile "$LINENO" 17027then : 17028 gl_cv_host_cpu_c_abi_32bit=no 17029else $as_nop 17030 gl_cv_host_cpu_c_abi_32bit=yes 17031fi 17032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17033 ;; 17034 17035 rs6000 ) 17036 gl_cv_host_cpu_c_abi_32bit=yes 17037 ;; 17038 17039 riscv32 | riscv64 ) 17040 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. 17041 # Size of 'long' and 'void *': 17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17043/* end confdefs.h. */ 17044#if defined __LP64__ 17045 int ok; 17046 #else 17047 error fail 17048 #endif 17049 17050_ACEOF 17051if ac_fn_c_try_compile "$LINENO" 17052then : 17053 gl_cv_host_cpu_c_abi_32bit=no 17054else $as_nop 17055 gl_cv_host_cpu_c_abi_32bit=yes 17056fi 17057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17058 ;; 17059 17060 s390* ) 17061 # On s390x, the C compiler may be generating 64-bit (= s390x) code 17062 # or 31-bit (= s390) code. 17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17064/* end confdefs.h. */ 17065#if defined __LP64__ || defined __s390x__ 17066 int ok; 17067 #else 17068 error fail 17069 #endif 17070 17071_ACEOF 17072if ac_fn_c_try_compile "$LINENO" 17073then : 17074 gl_cv_host_cpu_c_abi_32bit=no 17075else $as_nop 17076 gl_cv_host_cpu_c_abi_32bit=yes 17077fi 17078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17079 ;; 17080 17081 sparc | sparc64 ) 17082 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the 17083 # C compiler still generates 32-bit code. 17084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17085/* end confdefs.h. */ 17086#if defined __sparcv9 || defined __arch64__ 17087 int ok; 17088 #else 17089 error fail 17090 #endif 17091 17092_ACEOF 17093if ac_fn_c_try_compile "$LINENO" 17094then : 17095 gl_cv_host_cpu_c_abi_32bit=no 17096else $as_nop 17097 gl_cv_host_cpu_c_abi_32bit=yes 17098fi 17099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17100 ;; 17101 17102 *) 17103 gl_cv_host_cpu_c_abi_32bit=unknown 17104 ;; 17105 esac 17106 fi 17107 17108fi 17109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 17110printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } 17111 17112 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" 17113 17114 17115 17116 17117 17118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 17119printf %s "checking for ELF binary format... " >&6; } 17120if test ${gl_cv_elf+y} 17121then : 17122 printf %s "(cached) " >&6 17123else $as_nop 17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17125/* end confdefs.h. */ 17126#ifdef __ELF__ 17127 Extensible Linking Format 17128 #endif 17129 17130_ACEOF 17131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17132 $EGREP "Extensible Linking Format" >/dev/null 2>&1 17133then : 17134 gl_cv_elf=yes 17135else $as_nop 17136 gl_cv_elf=no 17137fi 17138rm -rf conftest* 17139 17140 17141fi 17142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 17143printf "%s\n" "$gl_cv_elf" >&6; } 17144 if test $gl_cv_elf = yes; then 17145 # Extract the ELF class of a file (5th byte) in decimal. 17146 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header 17147 if od -A x < /dev/null >/dev/null 2>/dev/null; then 17148 # Use POSIX od. 17149 func_elfclass () 17150 { 17151 od -A n -t d1 -j 4 -N 1 17152 } 17153 else 17154 # Use BSD hexdump. 17155 func_elfclass () 17156 { 17157 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' 17158 echo 17159 } 17160 fi 17161 # Use 'expr', not 'test', to compare the values of func_elfclass, because on 17162 # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002, 17163 # not 1 or 2. 17164 case $HOST_CPU_C_ABI_32BIT in 17165 yes) 17166 # 32-bit ABI. 17167 acl_is_expected_elfclass () 17168 { 17169 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 1 > /dev/null 17170 } 17171 ;; 17172 no) 17173 # 64-bit ABI. 17174 acl_is_expected_elfclass () 17175 { 17176 expr "`func_elfclass | sed -e 's/[ ]//g'`" = 2 > /dev/null 17177 } 17178 ;; 17179 *) 17180 # Unknown. 17181 acl_is_expected_elfclass () 17182 { 17183 : 17184 } 17185 ;; 17186 esac 17187 else 17188 acl_is_expected_elfclass () 17189 { 17190 : 17191 } 17192 fi 17193 17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 17195printf %s "checking for the common suffixes of directories in the library search path... " >&6; } 17196if test ${acl_cv_libdirstems+y} 17197then : 17198 printf %s "(cached) " >&6 17199else $as_nop 17200 acl_libdirstem=lib 17201 acl_libdirstem2= 17202 acl_libdirstem3= 17203 case "$host_os" in 17204 solaris*) 17205 if test $HOST_CPU_C_ABI_32BIT = no; then 17206 acl_libdirstem2=lib/64 17207 case "$host_cpu" in 17208 sparc*) acl_libdirstem3=lib/sparcv9 ;; 17209 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; 17210 esac 17211 fi 17212 ;; 17213 *) 17214 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ 17215 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 17216 if test $HOST_CPU_C_ABI_32BIT != no; then 17217 # 32-bit or unknown ABI. 17218 if test -d /usr/lib32; then 17219 acl_libdirstem2=lib32 17220 fi 17221 fi 17222 if test $HOST_CPU_C_ABI_32BIT != yes; then 17223 # 64-bit or unknown ABI. 17224 if test -d /usr/lib64; then 17225 acl_libdirstem3=lib64 17226 fi 17227 fi 17228 if test -n "$searchpath"; then 17229 acl_save_IFS="${IFS= }"; IFS=":" 17230 for searchdir in $searchpath; do 17231 if test -d "$searchdir"; then 17232 case "$searchdir" in 17233 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; 17234 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; 17235 */../ | */.. ) 17236 # Better ignore directories of this form. They are misleading. 17237 ;; 17238 *) searchdir=`cd "$searchdir" && pwd` 17239 case "$searchdir" in 17240 */lib32 ) acl_libdirstem2=lib32 ;; 17241 */lib64 ) acl_libdirstem3=lib64 ;; 17242 esac ;; 17243 esac 17244 fi 17245 done 17246 IFS="$acl_save_IFS" 17247 if test $HOST_CPU_C_ABI_32BIT = yes; then 17248 # 32-bit ABI. 17249 acl_libdirstem3= 17250 fi 17251 if test $HOST_CPU_C_ABI_32BIT = no; then 17252 # 64-bit ABI. 17253 acl_libdirstem2= 17254 fi 17255 fi 17256 ;; 17257 esac 17258 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 17259 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" 17260 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" 17261 17262fi 17263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 17264printf "%s\n" "$acl_cv_libdirstems" >&6; } 17265 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` 17266 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` 17267 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 use_additional=yes 17280 17281 acl_save_prefix="$prefix" 17282 prefix="$acl_final_prefix" 17283 acl_save_exec_prefix="$exec_prefix" 17284 exec_prefix="$acl_final_exec_prefix" 17285 17286 eval additional_includedir=\"$includedir\" 17287 eval additional_libdir=\"$libdir\" 17288 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 17289 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 17290 17291 exec_prefix="$acl_save_exec_prefix" 17292 prefix="$acl_save_prefix" 17293 17294 17295# Check whether --with-libiconv-prefix was given. 17296if test ${with_libiconv_prefix+y} 17297then : 17298 withval=$with_libiconv_prefix; 17299 if test "X$withval" = "Xno"; then 17300 use_additional=no 17301 else 17302 if test "X$withval" = "X"; then 17303 17304 acl_save_prefix="$prefix" 17305 prefix="$acl_final_prefix" 17306 acl_save_exec_prefix="$exec_prefix" 17307 exec_prefix="$acl_final_exec_prefix" 17308 17309 eval additional_includedir=\"$includedir\" 17310 eval additional_libdir=\"$libdir\" 17311 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 17312 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 17313 17314 exec_prefix="$acl_save_exec_prefix" 17315 prefix="$acl_save_prefix" 17316 17317 else 17318 additional_includedir="$withval/include" 17319 additional_libdir="$withval/$acl_libdirstem" 17320 additional_libdir2="$withval/$acl_libdirstem2" 17321 additional_libdir3="$withval/$acl_libdirstem3" 17322 fi 17323 fi 17324 17325fi 17326 17327 if test "X$additional_libdir2" = "X$additional_libdir"; then 17328 additional_libdir2= 17329 fi 17330 if test "X$additional_libdir3" = "X$additional_libdir"; then 17331 additional_libdir3= 17332 fi 17333 LIBICONV= 17334 LTLIBICONV= 17335 INCICONV= 17336 LIBICONV_PREFIX= 17337 HAVE_LIBICONV= 17338 rpathdirs= 17339 ltrpathdirs= 17340 names_already_handled= 17341 names_next_round='iconv ' 17342 while test -n "$names_next_round"; do 17343 names_this_round="$names_next_round" 17344 names_next_round= 17345 for name in $names_this_round; do 17346 already_handled= 17347 for n in $names_already_handled; do 17348 if test "$n" = "$name"; then 17349 already_handled=yes 17350 break 17351 fi 17352 done 17353 if test -z "$already_handled"; then 17354 names_already_handled="$names_already_handled $name" 17355 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 17356 eval value=\"\$HAVE_LIB$uppername\" 17357 if test -n "$value"; then 17358 if test "$value" = yes; then 17359 eval value=\"\$LIB$uppername\" 17360 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 17361 eval value=\"\$LTLIB$uppername\" 17362 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 17363 else 17364 : 17365 fi 17366 else 17367 found_dir= 17368 found_la= 17369 found_so= 17370 found_a= 17371 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 17372 if test -n "$acl_shlibext"; then 17373 shrext=".$acl_shlibext" # typically: shrext=.so 17374 else 17375 shrext= 17376 fi 17377 if test $use_additional = yes; then 17378 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 17379 if test "X$found_dir" = "X"; then 17380 eval dir=\$$additional_libdir_variable 17381 if test -n "$dir"; then 17382 if test -n "$acl_shlibext"; then 17383 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 17384 found_dir="$dir" 17385 found_so="$dir/$libname$shrext" 17386 else 17387 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 17388 ver=`(cd "$dir" && \ 17389 for f in "$libname$shrext".*; do echo "$f"; done \ 17390 | sed -e "s,^$libname$shrext\\\\.,," \ 17391 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 17392 | sed 1q ) 2>/dev/null` 17393 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 17394 found_dir="$dir" 17395 found_so="$dir/$libname$shrext.$ver" 17396 fi 17397 else 17398 eval library_names=\"$acl_library_names_spec\" 17399 for f in $library_names; do 17400 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 17401 found_dir="$dir" 17402 found_so="$dir/$f" 17403 break 17404 fi 17405 done 17406 fi 17407 fi 17408 fi 17409 if test "X$found_dir" = "X"; then 17410 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 17411 found_dir="$dir" 17412 found_a="$dir/$libname.$acl_libext" 17413 fi 17414 fi 17415 if test "X$found_dir" != "X"; then 17416 if test -f "$dir/$libname.la"; then 17417 found_la="$dir/$libname.la" 17418 fi 17419 fi 17420 fi 17421 fi 17422 done 17423 fi 17424 if test "X$found_dir" = "X"; then 17425 for x in $LDFLAGS $LTLIBICONV; do 17426 17427 acl_save_prefix="$prefix" 17428 prefix="$acl_final_prefix" 17429 acl_save_exec_prefix="$exec_prefix" 17430 exec_prefix="$acl_final_exec_prefix" 17431 eval x=\"$x\" 17432 exec_prefix="$acl_save_exec_prefix" 17433 prefix="$acl_save_prefix" 17434 17435 case "$x" in 17436 -L*) 17437 dir=`echo "X$x" | sed -e 's/^X-L//'` 17438 if test -n "$acl_shlibext"; then 17439 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 17440 found_dir="$dir" 17441 found_so="$dir/$libname$shrext" 17442 else 17443 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 17444 ver=`(cd "$dir" && \ 17445 for f in "$libname$shrext".*; do echo "$f"; done \ 17446 | sed -e "s,^$libname$shrext\\\\.,," \ 17447 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 17448 | sed 1q ) 2>/dev/null` 17449 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 17450 found_dir="$dir" 17451 found_so="$dir/$libname$shrext.$ver" 17452 fi 17453 else 17454 eval library_names=\"$acl_library_names_spec\" 17455 for f in $library_names; do 17456 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 17457 found_dir="$dir" 17458 found_so="$dir/$f" 17459 break 17460 fi 17461 done 17462 fi 17463 fi 17464 fi 17465 if test "X$found_dir" = "X"; then 17466 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 17467 found_dir="$dir" 17468 found_a="$dir/$libname.$acl_libext" 17469 fi 17470 fi 17471 if test "X$found_dir" != "X"; then 17472 if test -f "$dir/$libname.la"; then 17473 found_la="$dir/$libname.la" 17474 fi 17475 fi 17476 ;; 17477 esac 17478 if test "X$found_dir" != "X"; then 17479 break 17480 fi 17481 done 17482 fi 17483 if test "X$found_dir" != "X"; then 17484 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 17485 if test "X$found_so" != "X"; then 17486 if test "$enable_rpath" = no \ 17487 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 17488 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 17489 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 17490 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 17491 else 17492 haveit= 17493 for x in $ltrpathdirs; do 17494 if test "X$x" = "X$found_dir"; then 17495 haveit=yes 17496 break 17497 fi 17498 done 17499 if test -z "$haveit"; then 17500 ltrpathdirs="$ltrpathdirs $found_dir" 17501 fi 17502 if test "$acl_hardcode_direct" = yes; then 17503 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 17504 else 17505 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 17506 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 17507 haveit= 17508 for x in $rpathdirs; do 17509 if test "X$x" = "X$found_dir"; then 17510 haveit=yes 17511 break 17512 fi 17513 done 17514 if test -z "$haveit"; then 17515 rpathdirs="$rpathdirs $found_dir" 17516 fi 17517 else 17518 haveit= 17519 for x in $LDFLAGS $LIBICONV; do 17520 17521 acl_save_prefix="$prefix" 17522 prefix="$acl_final_prefix" 17523 acl_save_exec_prefix="$exec_prefix" 17524 exec_prefix="$acl_final_exec_prefix" 17525 eval x=\"$x\" 17526 exec_prefix="$acl_save_exec_prefix" 17527 prefix="$acl_save_prefix" 17528 17529 if test "X$x" = "X-L$found_dir"; then 17530 haveit=yes 17531 break 17532 fi 17533 done 17534 if test -z "$haveit"; then 17535 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 17536 fi 17537 if test "$acl_hardcode_minus_L" != no; then 17538 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 17539 else 17540 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 17541 fi 17542 fi 17543 fi 17544 fi 17545 else 17546 if test "X$found_a" != "X"; then 17547 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 17548 else 17549 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 17550 fi 17551 fi 17552 additional_includedir= 17553 case "$found_dir" in 17554 */$acl_libdirstem | */$acl_libdirstem/) 17555 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 17556 if test "$name" = 'iconv'; then 17557 LIBICONV_PREFIX="$basedir" 17558 fi 17559 additional_includedir="$basedir/include" 17560 ;; 17561 */$acl_libdirstem2 | */$acl_libdirstem2/) 17562 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 17563 if test "$name" = 'iconv'; then 17564 LIBICONV_PREFIX="$basedir" 17565 fi 17566 additional_includedir="$basedir/include" 17567 ;; 17568 */$acl_libdirstem3 | */$acl_libdirstem3/) 17569 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 17570 if test "$name" = 'iconv'; then 17571 LIBICONV_PREFIX="$basedir" 17572 fi 17573 additional_includedir="$basedir/include" 17574 ;; 17575 esac 17576 if test "X$additional_includedir" != "X"; then 17577 if test "X$additional_includedir" != "X/usr/include"; then 17578 haveit= 17579 if test "X$additional_includedir" = "X/usr/local/include"; then 17580 if test -n "$GCC"; then 17581 case $host_os in 17582 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 17583 esac 17584 fi 17585 fi 17586 if test -z "$haveit"; then 17587 for x in $CPPFLAGS $INCICONV; do 17588 17589 acl_save_prefix="$prefix" 17590 prefix="$acl_final_prefix" 17591 acl_save_exec_prefix="$exec_prefix" 17592 exec_prefix="$acl_final_exec_prefix" 17593 eval x=\"$x\" 17594 exec_prefix="$acl_save_exec_prefix" 17595 prefix="$acl_save_prefix" 17596 17597 if test "X$x" = "X-I$additional_includedir"; then 17598 haveit=yes 17599 break 17600 fi 17601 done 17602 if test -z "$haveit"; then 17603 if test -d "$additional_includedir"; then 17604 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 17605 fi 17606 fi 17607 fi 17608 fi 17609 fi 17610 if test -n "$found_la"; then 17611 save_libdir="$libdir" 17612 case "$found_la" in 17613 */* | *\\*) . "$found_la" ;; 17614 *) . "./$found_la" ;; 17615 esac 17616 libdir="$save_libdir" 17617 for dep in $dependency_libs; do 17618 case "$dep" in 17619 -L*) 17620 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 17621 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 17622 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 17623 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 17624 haveit= 17625 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 17626 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 17627 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 17628 if test -n "$GCC"; then 17629 case $host_os in 17630 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 17631 esac 17632 fi 17633 fi 17634 if test -z "$haveit"; then 17635 haveit= 17636 for x in $LDFLAGS $LIBICONV; do 17637 17638 acl_save_prefix="$prefix" 17639 prefix="$acl_final_prefix" 17640 acl_save_exec_prefix="$exec_prefix" 17641 exec_prefix="$acl_final_exec_prefix" 17642 eval x=\"$x\" 17643 exec_prefix="$acl_save_exec_prefix" 17644 prefix="$acl_save_prefix" 17645 17646 if test "X$x" = "X-L$dependency_libdir"; then 17647 haveit=yes 17648 break 17649 fi 17650 done 17651 if test -z "$haveit"; then 17652 if test -d "$dependency_libdir"; then 17653 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" 17654 fi 17655 fi 17656 haveit= 17657 for x in $LDFLAGS $LTLIBICONV; do 17658 17659 acl_save_prefix="$prefix" 17660 prefix="$acl_final_prefix" 17661 acl_save_exec_prefix="$exec_prefix" 17662 exec_prefix="$acl_final_exec_prefix" 17663 eval x=\"$x\" 17664 exec_prefix="$acl_save_exec_prefix" 17665 prefix="$acl_save_prefix" 17666 17667 if test "X$x" = "X-L$dependency_libdir"; then 17668 haveit=yes 17669 break 17670 fi 17671 done 17672 if test -z "$haveit"; then 17673 if test -d "$dependency_libdir"; then 17674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" 17675 fi 17676 fi 17677 fi 17678 fi 17679 ;; 17680 -R*) 17681 dir=`echo "X$dep" | sed -e 's/^X-R//'` 17682 if test "$enable_rpath" != no; then 17683 haveit= 17684 for x in $rpathdirs; do 17685 if test "X$x" = "X$dir"; then 17686 haveit=yes 17687 break 17688 fi 17689 done 17690 if test -z "$haveit"; then 17691 rpathdirs="$rpathdirs $dir" 17692 fi 17693 haveit= 17694 for x in $ltrpathdirs; do 17695 if test "X$x" = "X$dir"; then 17696 haveit=yes 17697 break 17698 fi 17699 done 17700 if test -z "$haveit"; then 17701 ltrpathdirs="$ltrpathdirs $dir" 17702 fi 17703 fi 17704 ;; 17705 -l*) 17706 dep=`echo "X$dep" | sed -e 's/^X-l//'` 17707 if test "X$dep" != Xc \ 17708 || case $host_os in 17709 linux* | gnu* | k*bsd*-gnu) false ;; 17710 *) true ;; 17711 esac; then 17712 names_next_round="$names_next_round $dep" 17713 fi 17714 ;; 17715 *.la) 17716 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 17717 ;; 17718 *) 17719 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 17720 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 17721 ;; 17722 esac 17723 done 17724 fi 17725 else 17726 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 17727 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 17728 fi 17729 fi 17730 fi 17731 done 17732 done 17733 if test "X$rpathdirs" != "X"; then 17734 if test -n "$acl_hardcode_libdir_separator"; then 17735 alldirs= 17736 for found_dir in $rpathdirs; do 17737 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 17738 done 17739 acl_save_libdir="$libdir" 17740 libdir="$alldirs" 17741 eval flag=\"$acl_hardcode_libdir_flag_spec\" 17742 libdir="$acl_save_libdir" 17743 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 17744 else 17745 for found_dir in $rpathdirs; do 17746 acl_save_libdir="$libdir" 17747 libdir="$found_dir" 17748 eval flag=\"$acl_hardcode_libdir_flag_spec\" 17749 libdir="$acl_save_libdir" 17750 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 17751 done 17752 fi 17753 fi 17754 if test "X$ltrpathdirs" != "X"; then 17755 for found_dir in $ltrpathdirs; do 17756 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 17757 done 17758 fi 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 17790printf %s "checking for CFPreferencesCopyAppValue... " >&6; } 17791if test ${gt_cv_func_CFPreferencesCopyAppValue+y} 17792then : 17793 printf %s "(cached) " >&6 17794else $as_nop 17795 gt_save_LIBS="$LIBS" 17796 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17798/* end confdefs.h. */ 17799#include <CoreFoundation/CFPreferences.h> 17800int 17801main (void) 17802{ 17803CFPreferencesCopyAppValue(NULL, NULL) 17804 ; 17805 return 0; 17806} 17807_ACEOF 17808if ac_fn_c_try_link "$LINENO" 17809then : 17810 gt_cv_func_CFPreferencesCopyAppValue=yes 17811else $as_nop 17812 gt_cv_func_CFPreferencesCopyAppValue=no 17813fi 17814rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17815 conftest$ac_exeext conftest.$ac_ext 17816 LIBS="$gt_save_LIBS" 17817fi 17818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 17819printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 17820 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 17821 17822printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 17823 17824 fi 17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 17826printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } 17827if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} 17828then : 17829 printf %s "(cached) " >&6 17830else $as_nop 17831 gt_save_LIBS="$LIBS" 17832 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17834/* end confdefs.h. */ 17835#include <CoreFoundation/CFLocale.h> 17836int 17837main (void) 17838{ 17839CFLocaleCopyPreferredLanguages(); 17840 ; 17841 return 0; 17842} 17843_ACEOF 17844if ac_fn_c_try_link "$LINENO" 17845then : 17846 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 17847else $as_nop 17848 gt_cv_func_CFLocaleCopyPreferredLanguages=no 17849fi 17850rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17851 conftest$ac_exeext conftest.$ac_ext 17852 LIBS="$gt_save_LIBS" 17853fi 17854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 17855printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 17856 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 17857 17858printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 17859 17860 fi 17861 INTL_MACOSX_LIBS= 17862 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 17863 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 17864 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 17865 fi 17866 17867 17868 17869 17870 17871 17872 LIBINTL= 17873 LTLIBINTL= 17874 POSUB= 17875 17876 case " $gt_needs " in 17877 *" need-formatstring-macros "*) gt_api_version=3 ;; 17878 *" need-ngettext "*) gt_api_version=2 ;; 17879 *) gt_api_version=1 ;; 17880 esac 17881 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 17882 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 17883 17884 if test "$USE_NLS" = "yes"; then 17885 gt_use_preinstalled_gnugettext=no 17886 17887 17888 if test $gt_api_version -ge 3; then 17889 gt_revision_test_code=' 17890#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 17891#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 17892#endif 17893typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 17894' 17895 else 17896 gt_revision_test_code= 17897 fi 17898 if test $gt_api_version -ge 2; then 17899 gt_expression_test_code=' + * ngettext ("", "", 0)' 17900 else 17901 gt_expression_test_code= 17902 fi 17903 17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 17905printf %s "checking for GNU gettext in libc... " >&6; } 17906if eval test \${$gt_func_gnugettext_libc+y} 17907then : 17908 printf %s "(cached) " >&6 17909else $as_nop 17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17911/* end confdefs.h. */ 17912 17913#include <libintl.h> 17914#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 17915extern int _nl_msg_cat_cntr; 17916extern int *_nl_domain_bindings; 17917#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 17918#else 17919#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 17920#endif 17921$gt_revision_test_code 17922 17923int 17924main (void) 17925{ 17926 17927bindtextdomain ("", ""); 17928return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 17929 17930 ; 17931 return 0; 17932} 17933_ACEOF 17934if ac_fn_c_try_link "$LINENO" 17935then : 17936 eval "$gt_func_gnugettext_libc=yes" 17937else $as_nop 17938 eval "$gt_func_gnugettext_libc=no" 17939fi 17940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17941 conftest$ac_exeext conftest.$ac_ext 17942fi 17943eval ac_res=\$$gt_func_gnugettext_libc 17944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17945printf "%s\n" "$ac_res" >&6; } 17946 17947 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 17948 17949 17950 17951 17952 17953 am_save_CPPFLAGS="$CPPFLAGS" 17954 17955 for element in $INCICONV; do 17956 haveit= 17957 for x in $CPPFLAGS; do 17958 17959 acl_save_prefix="$prefix" 17960 prefix="$acl_final_prefix" 17961 acl_save_exec_prefix="$exec_prefix" 17962 exec_prefix="$acl_final_exec_prefix" 17963 eval x=\"$x\" 17964 exec_prefix="$acl_save_exec_prefix" 17965 prefix="$acl_save_prefix" 17966 17967 if test "X$x" = "X$element"; then 17968 haveit=yes 17969 break 17970 fi 17971 done 17972 if test -z "$haveit"; then 17973 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 17974 fi 17975 done 17976 17977 17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 17979printf %s "checking for iconv... " >&6; } 17980if test ${am_cv_func_iconv+y} 17981then : 17982 printf %s "(cached) " >&6 17983else $as_nop 17984 17985 am_cv_func_iconv="no, consider installing GNU libiconv" 17986 am_cv_lib_iconv=no 17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17988/* end confdefs.h. */ 17989 17990#include <stdlib.h> 17991#include <iconv.h> 17992 17993int 17994main (void) 17995{ 17996iconv_t cd = iconv_open("",""); 17997 iconv(cd,NULL,NULL,NULL,NULL); 17998 iconv_close(cd); 17999 ; 18000 return 0; 18001} 18002_ACEOF 18003if ac_fn_c_try_link "$LINENO" 18004then : 18005 am_cv_func_iconv=yes 18006fi 18007rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18008 conftest$ac_exeext conftest.$ac_ext 18009 if test "$am_cv_func_iconv" != yes; then 18010 am_save_LIBS="$LIBS" 18011 LIBS="$LIBS $LIBICONV" 18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18013/* end confdefs.h. */ 18014 18015#include <stdlib.h> 18016#include <iconv.h> 18017 18018int 18019main (void) 18020{ 18021iconv_t cd = iconv_open("",""); 18022 iconv(cd,NULL,NULL,NULL,NULL); 18023 iconv_close(cd); 18024 ; 18025 return 0; 18026} 18027_ACEOF 18028if ac_fn_c_try_link "$LINENO" 18029then : 18030 am_cv_lib_iconv=yes 18031 am_cv_func_iconv=yes 18032fi 18033rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18034 conftest$ac_exeext conftest.$ac_ext 18035 LIBS="$am_save_LIBS" 18036 fi 18037 18038fi 18039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 18040printf "%s\n" "$am_cv_func_iconv" >&6; } 18041 if test "$am_cv_func_iconv" = yes; then 18042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 18043printf %s "checking for working iconv... " >&6; } 18044if test ${am_cv_func_iconv_works+y} 18045then : 18046 printf %s "(cached) " >&6 18047else $as_nop 18048 18049 am_save_LIBS="$LIBS" 18050 if test $am_cv_lib_iconv = yes; then 18051 LIBS="$LIBS $LIBICONV" 18052 fi 18053 am_cv_func_iconv_works=no 18054 for ac_iconv_const in '' 'const'; do 18055 if test "$cross_compiling" = yes 18056then : 18057 case "$host_os" in 18058 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 18059 *) am_cv_func_iconv_works="guessing yes" ;; 18060 esac 18061else $as_nop 18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18063/* end confdefs.h. */ 18064 18065#include <iconv.h> 18066#include <string.h> 18067 18068#ifndef ICONV_CONST 18069# define ICONV_CONST $ac_iconv_const 18070#endif 18071 18072int 18073main (void) 18074{ 18075int result = 0; 18076 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 18077 returns. */ 18078 { 18079 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 18080 if (cd_utf8_to_88591 != (iconv_t)(-1)) 18081 { 18082 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 18083 char buf[10]; 18084 ICONV_CONST char *inptr = input; 18085 size_t inbytesleft = strlen (input); 18086 char *outptr = buf; 18087 size_t outbytesleft = sizeof (buf); 18088 size_t res = iconv (cd_utf8_to_88591, 18089 &inptr, &inbytesleft, 18090 &outptr, &outbytesleft); 18091 if (res == 0) 18092 result |= 1; 18093 iconv_close (cd_utf8_to_88591); 18094 } 18095 } 18096 /* Test against Solaris 10 bug: Failures are not distinguishable from 18097 successful returns. */ 18098 { 18099 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 18100 if (cd_ascii_to_88591 != (iconv_t)(-1)) 18101 { 18102 static ICONV_CONST char input[] = "\263"; 18103 char buf[10]; 18104 ICONV_CONST char *inptr = input; 18105 size_t inbytesleft = strlen (input); 18106 char *outptr = buf; 18107 size_t outbytesleft = sizeof (buf); 18108 size_t res = iconv (cd_ascii_to_88591, 18109 &inptr, &inbytesleft, 18110 &outptr, &outbytesleft); 18111 if (res == 0) 18112 result |= 2; 18113 iconv_close (cd_ascii_to_88591); 18114 } 18115 } 18116 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 18117 { 18118 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 18119 if (cd_88591_to_utf8 != (iconv_t)(-1)) 18120 { 18121 static ICONV_CONST char input[] = "\304"; 18122 static char buf[2] = { (char)0xDE, (char)0xAD }; 18123 ICONV_CONST char *inptr = input; 18124 size_t inbytesleft = 1; 18125 char *outptr = buf; 18126 size_t outbytesleft = 1; 18127 size_t res = iconv (cd_88591_to_utf8, 18128 &inptr, &inbytesleft, 18129 &outptr, &outbytesleft); 18130 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 18131 result |= 4; 18132 iconv_close (cd_88591_to_utf8); 18133 } 18134 } 18135#if 0 /* This bug could be worked around by the caller. */ 18136 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 18137 { 18138 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 18139 if (cd_88591_to_utf8 != (iconv_t)(-1)) 18140 { 18141 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 18142 char buf[50]; 18143 ICONV_CONST char *inptr = input; 18144 size_t inbytesleft = strlen (input); 18145 char *outptr = buf; 18146 size_t outbytesleft = sizeof (buf); 18147 size_t res = iconv (cd_88591_to_utf8, 18148 &inptr, &inbytesleft, 18149 &outptr, &outbytesleft); 18150 if ((int)res > 0) 18151 result |= 8; 18152 iconv_close (cd_88591_to_utf8); 18153 } 18154 } 18155#endif 18156 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 18157 provided. */ 18158 { 18159 /* Try standardized names. */ 18160 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 18161 /* Try IRIX, OSF/1 names. */ 18162 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 18163 /* Try AIX names. */ 18164 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 18165 /* Try HP-UX names. */ 18166 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 18167 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 18168 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 18169 result |= 16; 18170 if (cd1 != (iconv_t)(-1)) 18171 iconv_close (cd1); 18172 if (cd2 != (iconv_t)(-1)) 18173 iconv_close (cd2); 18174 if (cd3 != (iconv_t)(-1)) 18175 iconv_close (cd3); 18176 if (cd4 != (iconv_t)(-1)) 18177 iconv_close (cd4); 18178 } 18179 return result; 18180 18181 ; 18182 return 0; 18183} 18184_ACEOF 18185if ac_fn_c_try_run "$LINENO" 18186then : 18187 am_cv_func_iconv_works=yes 18188fi 18189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18190 conftest.$ac_objext conftest.beam conftest.$ac_ext 18191fi 18192 18193 test "$am_cv_func_iconv_works" = no || break 18194 done 18195 LIBS="$am_save_LIBS" 18196 18197fi 18198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 18199printf "%s\n" "$am_cv_func_iconv_works" >&6; } 18200 case "$am_cv_func_iconv_works" in 18201 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 18202 *) am_func_iconv=yes ;; 18203 esac 18204 else 18205 am_func_iconv=no am_cv_lib_iconv=no 18206 fi 18207 if test "$am_func_iconv" = yes; then 18208 18209printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h 18210 18211 fi 18212 if test "$am_cv_lib_iconv" = yes; then 18213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 18214printf %s "checking how to link with libiconv... " >&6; } 18215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 18216printf "%s\n" "$LIBICONV" >&6; } 18217 else 18218 CPPFLAGS="$am_save_CPPFLAGS" 18219 LIBICONV= 18220 LTLIBICONV= 18221 fi 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 use_additional=yes 18233 18234 acl_save_prefix="$prefix" 18235 prefix="$acl_final_prefix" 18236 acl_save_exec_prefix="$exec_prefix" 18237 exec_prefix="$acl_final_exec_prefix" 18238 18239 eval additional_includedir=\"$includedir\" 18240 eval additional_libdir=\"$libdir\" 18241 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 18242 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 18243 18244 exec_prefix="$acl_save_exec_prefix" 18245 prefix="$acl_save_prefix" 18246 18247 18248# Check whether --with-libintl-prefix was given. 18249if test ${with_libintl_prefix+y} 18250then : 18251 withval=$with_libintl_prefix; 18252 if test "X$withval" = "Xno"; then 18253 use_additional=no 18254 else 18255 if test "X$withval" = "X"; then 18256 18257 acl_save_prefix="$prefix" 18258 prefix="$acl_final_prefix" 18259 acl_save_exec_prefix="$exec_prefix" 18260 exec_prefix="$acl_final_exec_prefix" 18261 18262 eval additional_includedir=\"$includedir\" 18263 eval additional_libdir=\"$libdir\" 18264 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 18265 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 18266 18267 exec_prefix="$acl_save_exec_prefix" 18268 prefix="$acl_save_prefix" 18269 18270 else 18271 additional_includedir="$withval/include" 18272 additional_libdir="$withval/$acl_libdirstem" 18273 additional_libdir2="$withval/$acl_libdirstem2" 18274 additional_libdir3="$withval/$acl_libdirstem3" 18275 fi 18276 fi 18277 18278fi 18279 18280 if test "X$additional_libdir2" = "X$additional_libdir"; then 18281 additional_libdir2= 18282 fi 18283 if test "X$additional_libdir3" = "X$additional_libdir"; then 18284 additional_libdir3= 18285 fi 18286 LIBINTL= 18287 LTLIBINTL= 18288 INCINTL= 18289 LIBINTL_PREFIX= 18290 HAVE_LIBINTL= 18291 rpathdirs= 18292 ltrpathdirs= 18293 names_already_handled= 18294 names_next_round='intl ' 18295 while test -n "$names_next_round"; do 18296 names_this_round="$names_next_round" 18297 names_next_round= 18298 for name in $names_this_round; do 18299 already_handled= 18300 for n in $names_already_handled; do 18301 if test "$n" = "$name"; then 18302 already_handled=yes 18303 break 18304 fi 18305 done 18306 if test -z "$already_handled"; then 18307 names_already_handled="$names_already_handled $name" 18308 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 18309 eval value=\"\$HAVE_LIB$uppername\" 18310 if test -n "$value"; then 18311 if test "$value" = yes; then 18312 eval value=\"\$LIB$uppername\" 18313 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 18314 eval value=\"\$LTLIB$uppername\" 18315 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 18316 else 18317 : 18318 fi 18319 else 18320 found_dir= 18321 found_la= 18322 found_so= 18323 found_a= 18324 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 18325 if test -n "$acl_shlibext"; then 18326 shrext=".$acl_shlibext" # typically: shrext=.so 18327 else 18328 shrext= 18329 fi 18330 if test $use_additional = yes; then 18331 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 18332 if test "X$found_dir" = "X"; then 18333 eval dir=\$$additional_libdir_variable 18334 if test -n "$dir"; then 18335 if test -n "$acl_shlibext"; then 18336 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 18337 found_dir="$dir" 18338 found_so="$dir/$libname$shrext" 18339 else 18340 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18341 ver=`(cd "$dir" && \ 18342 for f in "$libname$shrext".*; do echo "$f"; done \ 18343 | sed -e "s,^$libname$shrext\\\\.,," \ 18344 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18345 | sed 1q ) 2>/dev/null` 18346 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 18347 found_dir="$dir" 18348 found_so="$dir/$libname$shrext.$ver" 18349 fi 18350 else 18351 eval library_names=\"$acl_library_names_spec\" 18352 for f in $library_names; do 18353 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 18354 found_dir="$dir" 18355 found_so="$dir/$f" 18356 break 18357 fi 18358 done 18359 fi 18360 fi 18361 fi 18362 if test "X$found_dir" = "X"; then 18363 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 18364 found_dir="$dir" 18365 found_a="$dir/$libname.$acl_libext" 18366 fi 18367 fi 18368 if test "X$found_dir" != "X"; then 18369 if test -f "$dir/$libname.la"; then 18370 found_la="$dir/$libname.la" 18371 fi 18372 fi 18373 fi 18374 fi 18375 done 18376 fi 18377 if test "X$found_dir" = "X"; then 18378 for x in $LDFLAGS $LTLIBINTL; do 18379 18380 acl_save_prefix="$prefix" 18381 prefix="$acl_final_prefix" 18382 acl_save_exec_prefix="$exec_prefix" 18383 exec_prefix="$acl_final_exec_prefix" 18384 eval x=\"$x\" 18385 exec_prefix="$acl_save_exec_prefix" 18386 prefix="$acl_save_prefix" 18387 18388 case "$x" in 18389 -L*) 18390 dir=`echo "X$x" | sed -e 's/^X-L//'` 18391 if test -n "$acl_shlibext"; then 18392 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 18393 found_dir="$dir" 18394 found_so="$dir/$libname$shrext" 18395 else 18396 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 18397 ver=`(cd "$dir" && \ 18398 for f in "$libname$shrext".*; do echo "$f"; done \ 18399 | sed -e "s,^$libname$shrext\\\\.,," \ 18400 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 18401 | sed 1q ) 2>/dev/null` 18402 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 18403 found_dir="$dir" 18404 found_so="$dir/$libname$shrext.$ver" 18405 fi 18406 else 18407 eval library_names=\"$acl_library_names_spec\" 18408 for f in $library_names; do 18409 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 18410 found_dir="$dir" 18411 found_so="$dir/$f" 18412 break 18413 fi 18414 done 18415 fi 18416 fi 18417 fi 18418 if test "X$found_dir" = "X"; then 18419 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 18420 found_dir="$dir" 18421 found_a="$dir/$libname.$acl_libext" 18422 fi 18423 fi 18424 if test "X$found_dir" != "X"; then 18425 if test -f "$dir/$libname.la"; then 18426 found_la="$dir/$libname.la" 18427 fi 18428 fi 18429 ;; 18430 esac 18431 if test "X$found_dir" != "X"; then 18432 break 18433 fi 18434 done 18435 fi 18436 if test "X$found_dir" != "X"; then 18437 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 18438 if test "X$found_so" != "X"; then 18439 if test "$enable_rpath" = no \ 18440 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 18441 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 18442 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 18443 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 18444 else 18445 haveit= 18446 for x in $ltrpathdirs; do 18447 if test "X$x" = "X$found_dir"; then 18448 haveit=yes 18449 break 18450 fi 18451 done 18452 if test -z "$haveit"; then 18453 ltrpathdirs="$ltrpathdirs $found_dir" 18454 fi 18455 if test "$acl_hardcode_direct" = yes; then 18456 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 18457 else 18458 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 18459 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 18460 haveit= 18461 for x in $rpathdirs; do 18462 if test "X$x" = "X$found_dir"; then 18463 haveit=yes 18464 break 18465 fi 18466 done 18467 if test -z "$haveit"; then 18468 rpathdirs="$rpathdirs $found_dir" 18469 fi 18470 else 18471 haveit= 18472 for x in $LDFLAGS $LIBINTL; do 18473 18474 acl_save_prefix="$prefix" 18475 prefix="$acl_final_prefix" 18476 acl_save_exec_prefix="$exec_prefix" 18477 exec_prefix="$acl_final_exec_prefix" 18478 eval x=\"$x\" 18479 exec_prefix="$acl_save_exec_prefix" 18480 prefix="$acl_save_prefix" 18481 18482 if test "X$x" = "X-L$found_dir"; then 18483 haveit=yes 18484 break 18485 fi 18486 done 18487 if test -z "$haveit"; then 18488 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 18489 fi 18490 if test "$acl_hardcode_minus_L" != no; then 18491 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 18492 else 18493 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 18494 fi 18495 fi 18496 fi 18497 fi 18498 else 18499 if test "X$found_a" != "X"; then 18500 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 18501 else 18502 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 18503 fi 18504 fi 18505 additional_includedir= 18506 case "$found_dir" in 18507 */$acl_libdirstem | */$acl_libdirstem/) 18508 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 18509 if test "$name" = 'intl'; then 18510 LIBINTL_PREFIX="$basedir" 18511 fi 18512 additional_includedir="$basedir/include" 18513 ;; 18514 */$acl_libdirstem2 | */$acl_libdirstem2/) 18515 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 18516 if test "$name" = 'intl'; then 18517 LIBINTL_PREFIX="$basedir" 18518 fi 18519 additional_includedir="$basedir/include" 18520 ;; 18521 */$acl_libdirstem3 | */$acl_libdirstem3/) 18522 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 18523 if test "$name" = 'intl'; then 18524 LIBINTL_PREFIX="$basedir" 18525 fi 18526 additional_includedir="$basedir/include" 18527 ;; 18528 esac 18529 if test "X$additional_includedir" != "X"; then 18530 if test "X$additional_includedir" != "X/usr/include"; then 18531 haveit= 18532 if test "X$additional_includedir" = "X/usr/local/include"; then 18533 if test -n "$GCC"; then 18534 case $host_os in 18535 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 18536 esac 18537 fi 18538 fi 18539 if test -z "$haveit"; then 18540 for x in $CPPFLAGS $INCINTL; do 18541 18542 acl_save_prefix="$prefix" 18543 prefix="$acl_final_prefix" 18544 acl_save_exec_prefix="$exec_prefix" 18545 exec_prefix="$acl_final_exec_prefix" 18546 eval x=\"$x\" 18547 exec_prefix="$acl_save_exec_prefix" 18548 prefix="$acl_save_prefix" 18549 18550 if test "X$x" = "X-I$additional_includedir"; then 18551 haveit=yes 18552 break 18553 fi 18554 done 18555 if test -z "$haveit"; then 18556 if test -d "$additional_includedir"; then 18557 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 18558 fi 18559 fi 18560 fi 18561 fi 18562 fi 18563 if test -n "$found_la"; then 18564 save_libdir="$libdir" 18565 case "$found_la" in 18566 */* | *\\*) . "$found_la" ;; 18567 *) . "./$found_la" ;; 18568 esac 18569 libdir="$save_libdir" 18570 for dep in $dependency_libs; do 18571 case "$dep" in 18572 -L*) 18573 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 18574 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 18575 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 18576 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 18577 haveit= 18578 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 18579 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 18580 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 18581 if test -n "$GCC"; then 18582 case $host_os in 18583 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 18584 esac 18585 fi 18586 fi 18587 if test -z "$haveit"; then 18588 haveit= 18589 for x in $LDFLAGS $LIBINTL; do 18590 18591 acl_save_prefix="$prefix" 18592 prefix="$acl_final_prefix" 18593 acl_save_exec_prefix="$exec_prefix" 18594 exec_prefix="$acl_final_exec_prefix" 18595 eval x=\"$x\" 18596 exec_prefix="$acl_save_exec_prefix" 18597 prefix="$acl_save_prefix" 18598 18599 if test "X$x" = "X-L$dependency_libdir"; then 18600 haveit=yes 18601 break 18602 fi 18603 done 18604 if test -z "$haveit"; then 18605 if test -d "$dependency_libdir"; then 18606 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" 18607 fi 18608 fi 18609 haveit= 18610 for x in $LDFLAGS $LTLIBINTL; do 18611 18612 acl_save_prefix="$prefix" 18613 prefix="$acl_final_prefix" 18614 acl_save_exec_prefix="$exec_prefix" 18615 exec_prefix="$acl_final_exec_prefix" 18616 eval x=\"$x\" 18617 exec_prefix="$acl_save_exec_prefix" 18618 prefix="$acl_save_prefix" 18619 18620 if test "X$x" = "X-L$dependency_libdir"; then 18621 haveit=yes 18622 break 18623 fi 18624 done 18625 if test -z "$haveit"; then 18626 if test -d "$dependency_libdir"; then 18627 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" 18628 fi 18629 fi 18630 fi 18631 fi 18632 ;; 18633 -R*) 18634 dir=`echo "X$dep" | sed -e 's/^X-R//'` 18635 if test "$enable_rpath" != no; then 18636 haveit= 18637 for x in $rpathdirs; do 18638 if test "X$x" = "X$dir"; then 18639 haveit=yes 18640 break 18641 fi 18642 done 18643 if test -z "$haveit"; then 18644 rpathdirs="$rpathdirs $dir" 18645 fi 18646 haveit= 18647 for x in $ltrpathdirs; do 18648 if test "X$x" = "X$dir"; then 18649 haveit=yes 18650 break 18651 fi 18652 done 18653 if test -z "$haveit"; then 18654 ltrpathdirs="$ltrpathdirs $dir" 18655 fi 18656 fi 18657 ;; 18658 -l*) 18659 dep=`echo "X$dep" | sed -e 's/^X-l//'` 18660 if test "X$dep" != Xc \ 18661 || case $host_os in 18662 linux* | gnu* | k*bsd*-gnu) false ;; 18663 *) true ;; 18664 esac; then 18665 names_next_round="$names_next_round $dep" 18666 fi 18667 ;; 18668 *.la) 18669 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 18670 ;; 18671 *) 18672 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 18673 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 18674 ;; 18675 esac 18676 done 18677 fi 18678 else 18679 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 18680 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 18681 fi 18682 fi 18683 fi 18684 done 18685 done 18686 if test "X$rpathdirs" != "X"; then 18687 if test -n "$acl_hardcode_libdir_separator"; then 18688 alldirs= 18689 for found_dir in $rpathdirs; do 18690 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 18691 done 18692 acl_save_libdir="$libdir" 18693 libdir="$alldirs" 18694 eval flag=\"$acl_hardcode_libdir_flag_spec\" 18695 libdir="$acl_save_libdir" 18696 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 18697 else 18698 for found_dir in $rpathdirs; do 18699 acl_save_libdir="$libdir" 18700 libdir="$found_dir" 18701 eval flag=\"$acl_hardcode_libdir_flag_spec\" 18702 libdir="$acl_save_libdir" 18703 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 18704 done 18705 fi 18706 fi 18707 if test "X$ltrpathdirs" != "X"; then 18708 for found_dir in $ltrpathdirs; do 18709 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 18710 done 18711 fi 18712 18713 18714 18715 18716 18717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 18718printf %s "checking for GNU gettext in libintl... " >&6; } 18719if eval test \${$gt_func_gnugettext_libintl+y} 18720then : 18721 printf %s "(cached) " >&6 18722else $as_nop 18723 gt_save_CPPFLAGS="$CPPFLAGS" 18724 CPPFLAGS="$CPPFLAGS $INCINTL" 18725 gt_save_LIBS="$LIBS" 18726 LIBS="$LIBS $LIBINTL" 18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18728/* end confdefs.h. */ 18729 18730#include <libintl.h> 18731#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 18732extern int _nl_msg_cat_cntr; 18733extern 18734#ifdef __cplusplus 18735"C" 18736#endif 18737const char *_nl_expand_alias (const char *); 18738#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 18739#else 18740#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 18741#endif 18742$gt_revision_test_code 18743 18744int 18745main (void) 18746{ 18747 18748bindtextdomain ("", ""); 18749return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 18750 18751 ; 18752 return 0; 18753} 18754_ACEOF 18755if ac_fn_c_try_link "$LINENO" 18756then : 18757 eval "$gt_func_gnugettext_libintl=yes" 18758else $as_nop 18759 eval "$gt_func_gnugettext_libintl=no" 18760fi 18761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18762 conftest$ac_exeext conftest.$ac_ext 18763 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 18764 LIBS="$LIBS $LIBICONV" 18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18766/* end confdefs.h. */ 18767 18768#include <libintl.h> 18769#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 18770extern int _nl_msg_cat_cntr; 18771extern 18772#ifdef __cplusplus 18773"C" 18774#endif 18775const char *_nl_expand_alias (const char *); 18776#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 18777#else 18778#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 18779#endif 18780$gt_revision_test_code 18781 18782int 18783main (void) 18784{ 18785 18786bindtextdomain ("", ""); 18787return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 18788 18789 ; 18790 return 0; 18791} 18792_ACEOF 18793if ac_fn_c_try_link "$LINENO" 18794then : 18795 LIBINTL="$LIBINTL $LIBICONV" 18796 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 18797 eval "$gt_func_gnugettext_libintl=yes" 18798 18799fi 18800rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18801 conftest$ac_exeext conftest.$ac_ext 18802 fi 18803 CPPFLAGS="$gt_save_CPPFLAGS" 18804 LIBS="$gt_save_LIBS" 18805fi 18806eval ac_res=\$$gt_func_gnugettext_libintl 18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18808printf "%s\n" "$ac_res" >&6; } 18809 fi 18810 18811 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 18812 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 18813 && test "$PACKAGE" != gettext-runtime \ 18814 && test "$PACKAGE" != gettext-tools; }; then 18815 gt_use_preinstalled_gnugettext=yes 18816 else 18817 LIBINTL= 18818 LTLIBINTL= 18819 INCINTL= 18820 fi 18821 18822 18823 18824 if test -n "$INTL_MACOSX_LIBS"; then 18825 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 18826 || test "$nls_cv_use_gnu_gettext" = "yes"; then 18827 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 18828 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 18829 fi 18830 fi 18831 18832 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 18833 || test "$nls_cv_use_gnu_gettext" = "yes"; then 18834 18835printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h 18836 18837 else 18838 USE_NLS=no 18839 fi 18840 fi 18841 18842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 18843printf %s "checking whether to use NLS... " >&6; } 18844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 18845printf "%s\n" "$USE_NLS" >&6; } 18846 if test "$USE_NLS" = "yes"; then 18847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 18848printf %s "checking where the gettext function comes from... " >&6; } 18849 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 18850 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 18851 gt_source="external libintl" 18852 else 18853 gt_source="libc" 18854 fi 18855 else 18856 gt_source="included intl directory" 18857 fi 18858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 18859printf "%s\n" "$gt_source" >&6; } 18860 fi 18861 18862 if test "$USE_NLS" = "yes"; then 18863 18864 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 18865 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 18867printf %s "checking how to link with libintl... " >&6; } 18868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 18869printf "%s\n" "$LIBINTL" >&6; } 18870 18871 for element in $INCINTL; do 18872 haveit= 18873 for x in $CPPFLAGS; do 18874 18875 acl_save_prefix="$prefix" 18876 prefix="$acl_final_prefix" 18877 acl_save_exec_prefix="$exec_prefix" 18878 exec_prefix="$acl_final_exec_prefix" 18879 eval x=\"$x\" 18880 exec_prefix="$acl_save_exec_prefix" 18881 prefix="$acl_save_prefix" 18882 18883 if test "X$x" = "X$element"; then 18884 haveit=yes 18885 break 18886 fi 18887 done 18888 if test -z "$haveit"; then 18889 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 18890 fi 18891 done 18892 18893 fi 18894 18895 18896printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h 18897 18898 18899printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h 18900 18901 fi 18902 18903 POSUB=po 18904 fi 18905 18906 18907 18908 INTLLIBS="$LIBINTL" 18909 18910 18911 18912 18913 18914 18915 18916 18917# Checks for header files. 18918ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" 18919if test "x$ac_cv_header_pwd_h" = xyes 18920then : 18921 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h 18922 18923fi 18924 18925 18926# Checks for library functions. 18927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 18928printf %s "checking for library containing socket... " >&6; } 18929if test ${ac_cv_search_socket+y} 18930then : 18931 printf %s "(cached) " >&6 18932else $as_nop 18933 ac_func_search_save_LIBS=$LIBS 18934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18935/* end confdefs.h. */ 18936 18937/* Override any GCC internal prototype to avoid an error. 18938 Use char because int might match the return type of a GCC 18939 builtin and then its argument prototype would still apply. */ 18940char socket (); 18941int 18942main (void) 18943{ 18944return socket (); 18945 ; 18946 return 0; 18947} 18948_ACEOF 18949for ac_lib in '' socket 18950do 18951 if test -z "$ac_lib"; then 18952 ac_res="none required" 18953 else 18954 ac_res=-l$ac_lib 18955 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18956 fi 18957 if ac_fn_c_try_link "$LINENO" 18958then : 18959 ac_cv_search_socket=$ac_res 18960fi 18961rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18962 conftest$ac_exeext 18963 if test ${ac_cv_search_socket+y} 18964then : 18965 break 18966fi 18967done 18968if test ${ac_cv_search_socket+y} 18969then : 18970 18971else $as_nop 18972 ac_cv_search_socket=no 18973fi 18974rm conftest.$ac_ext 18975LIBS=$ac_func_search_save_LIBS 18976fi 18977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 18978printf "%s\n" "$ac_cv_search_socket" >&6; } 18979ac_res=$ac_cv_search_socket 18980if test "$ac_res" != no 18981then : 18982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18983 18984fi 18985 18986ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" 18987if test "x$ac_cv_func_getpwuid" = xyes 18988then : 18989 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h 18990 18991fi 18992 18993 18994# Allow disabling of obsolete stuff. 18995# Check whether --enable-obsolete was given. 18996if test ${enable_obsolete+y} 18997then : 18998 enableval=$enable_obsolete; obsolete=$enableval 18999fi 19000 19001if test "$obsolete" = "no"; then 19002 19003printf "%s\n" "#define GSASL_NO_OBSOLETE 1" >>confdefs.h 19004 19005else 19006 obsolete=yes 19007fi 19008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if backwards compatibility code should be present" >&5 19009printf %s "checking if backwards compatibility code should be present... " >&6; } 19010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $obsolete" >&5 19011printf "%s\n" "$obsolete" >&6; } 19012 if test "$obsolete" = "yes"; then 19013 OBSOLETE_TRUE= 19014 OBSOLETE_FALSE='#' 19015else 19016 OBSOLETE_TRUE='#' 19017 OBSOLETE_FALSE= 19018fi 19019 19020 19021# Check for GnuTLS. 19022 19023# Check whether --with-gnutls was given. 19024if test ${with_gnutls+y} 19025then : 19026 withval=$with_gnutls; gnutls=$withval 19027else $as_nop 19028 gnutls=yes 19029fi 19030 19031if test "$gnutls" != "no"; then 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 use_additional=yes 19045 19046 acl_save_prefix="$prefix" 19047 prefix="$acl_final_prefix" 19048 acl_save_exec_prefix="$exec_prefix" 19049 exec_prefix="$acl_final_exec_prefix" 19050 19051 eval additional_includedir=\"$includedir\" 19052 eval additional_libdir=\"$libdir\" 19053 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 19054 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 19055 19056 exec_prefix="$acl_save_exec_prefix" 19057 prefix="$acl_save_prefix" 19058 19059 19060# Check whether --with-libgnutls-prefix was given. 19061if test ${with_libgnutls_prefix+y} 19062then : 19063 withval=$with_libgnutls_prefix; 19064 if test "X$withval" = "Xno"; then 19065 use_additional=no 19066 else 19067 if test "X$withval" = "X"; then 19068 19069 acl_save_prefix="$prefix" 19070 prefix="$acl_final_prefix" 19071 acl_save_exec_prefix="$exec_prefix" 19072 exec_prefix="$acl_final_exec_prefix" 19073 19074 eval additional_includedir=\"$includedir\" 19075 eval additional_libdir=\"$libdir\" 19076 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 19077 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 19078 19079 exec_prefix="$acl_save_exec_prefix" 19080 prefix="$acl_save_prefix" 19081 19082 else 19083 additional_includedir="$withval/include" 19084 additional_libdir="$withval/$acl_libdirstem" 19085 additional_libdir2="$withval/$acl_libdirstem2" 19086 additional_libdir3="$withval/$acl_libdirstem3" 19087 fi 19088 fi 19089 19090fi 19091 19092 if test "X$additional_libdir2" = "X$additional_libdir"; then 19093 additional_libdir2= 19094 fi 19095 if test "X$additional_libdir3" = "X$additional_libdir"; then 19096 additional_libdir3= 19097 fi 19098 LIBGNUTLS= 19099 LTLIBGNUTLS= 19100 INCGNUTLS= 19101 LIBGNUTLS_PREFIX= 19102 HAVE_LIBGNUTLS= 19103 rpathdirs= 19104 ltrpathdirs= 19105 names_already_handled= 19106 names_next_round='gnutls ' 19107 while test -n "$names_next_round"; do 19108 names_this_round="$names_next_round" 19109 names_next_round= 19110 for name in $names_this_round; do 19111 already_handled= 19112 for n in $names_already_handled; do 19113 if test "$n" = "$name"; then 19114 already_handled=yes 19115 break 19116 fi 19117 done 19118 if test -z "$already_handled"; then 19119 names_already_handled="$names_already_handled $name" 19120 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 19121 eval value=\"\$HAVE_LIB$uppername\" 19122 if test -n "$value"; then 19123 if test "$value" = yes; then 19124 eval value=\"\$LIB$uppername\" 19125 test -z "$value" || LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$value" 19126 eval value=\"\$LTLIB$uppername\" 19127 test -z "$value" || LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$value" 19128 else 19129 : 19130 fi 19131 else 19132 found_dir= 19133 found_la= 19134 found_so= 19135 found_a= 19136 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 19137 if test -n "$acl_shlibext"; then 19138 shrext=".$acl_shlibext" # typically: shrext=.so 19139 else 19140 shrext= 19141 fi 19142 if test $use_additional = yes; then 19143 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 19144 if test "X$found_dir" = "X"; then 19145 eval dir=\$$additional_libdir_variable 19146 if test -n "$dir"; then 19147 if test -n "$acl_shlibext"; then 19148 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 19149 found_dir="$dir" 19150 found_so="$dir/$libname$shrext" 19151 else 19152 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19153 ver=`(cd "$dir" && \ 19154 for f in "$libname$shrext".*; do echo "$f"; done \ 19155 | sed -e "s,^$libname$shrext\\\\.,," \ 19156 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19157 | sed 1q ) 2>/dev/null` 19158 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 19159 found_dir="$dir" 19160 found_so="$dir/$libname$shrext.$ver" 19161 fi 19162 else 19163 eval library_names=\"$acl_library_names_spec\" 19164 for f in $library_names; do 19165 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 19166 found_dir="$dir" 19167 found_so="$dir/$f" 19168 break 19169 fi 19170 done 19171 fi 19172 fi 19173 fi 19174 if test "X$found_dir" = "X"; then 19175 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 19176 found_dir="$dir" 19177 found_a="$dir/$libname.$acl_libext" 19178 fi 19179 fi 19180 if test "X$found_dir" != "X"; then 19181 if test -f "$dir/$libname.la"; then 19182 found_la="$dir/$libname.la" 19183 fi 19184 fi 19185 fi 19186 fi 19187 done 19188 fi 19189 if test "X$found_dir" = "X"; then 19190 for x in $LDFLAGS $LTLIBGNUTLS; do 19191 19192 acl_save_prefix="$prefix" 19193 prefix="$acl_final_prefix" 19194 acl_save_exec_prefix="$exec_prefix" 19195 exec_prefix="$acl_final_exec_prefix" 19196 eval x=\"$x\" 19197 exec_prefix="$acl_save_exec_prefix" 19198 prefix="$acl_save_prefix" 19199 19200 case "$x" in 19201 -L*) 19202 dir=`echo "X$x" | sed -e 's/^X-L//'` 19203 if test -n "$acl_shlibext"; then 19204 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 19205 found_dir="$dir" 19206 found_so="$dir/$libname$shrext" 19207 else 19208 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19209 ver=`(cd "$dir" && \ 19210 for f in "$libname$shrext".*; do echo "$f"; done \ 19211 | sed -e "s,^$libname$shrext\\\\.,," \ 19212 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19213 | sed 1q ) 2>/dev/null` 19214 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 19215 found_dir="$dir" 19216 found_so="$dir/$libname$shrext.$ver" 19217 fi 19218 else 19219 eval library_names=\"$acl_library_names_spec\" 19220 for f in $library_names; do 19221 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 19222 found_dir="$dir" 19223 found_so="$dir/$f" 19224 break 19225 fi 19226 done 19227 fi 19228 fi 19229 fi 19230 if test "X$found_dir" = "X"; then 19231 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 19232 found_dir="$dir" 19233 found_a="$dir/$libname.$acl_libext" 19234 fi 19235 fi 19236 if test "X$found_dir" != "X"; then 19237 if test -f "$dir/$libname.la"; then 19238 found_la="$dir/$libname.la" 19239 fi 19240 fi 19241 ;; 19242 esac 19243 if test "X$found_dir" != "X"; then 19244 break 19245 fi 19246 done 19247 fi 19248 if test "X$found_dir" != "X"; then 19249 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$found_dir -l$name" 19250 if test "X$found_so" != "X"; then 19251 if test "$enable_rpath" = no \ 19252 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 19253 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 19254 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 19255 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so" 19256 else 19257 haveit= 19258 for x in $ltrpathdirs; do 19259 if test "X$x" = "X$found_dir"; then 19260 haveit=yes 19261 break 19262 fi 19263 done 19264 if test -z "$haveit"; then 19265 ltrpathdirs="$ltrpathdirs $found_dir" 19266 fi 19267 if test "$acl_hardcode_direct" = yes; then 19268 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so" 19269 else 19270 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19271 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so" 19272 haveit= 19273 for x in $rpathdirs; do 19274 if test "X$x" = "X$found_dir"; then 19275 haveit=yes 19276 break 19277 fi 19278 done 19279 if test -z "$haveit"; then 19280 rpathdirs="$rpathdirs $found_dir" 19281 fi 19282 else 19283 haveit= 19284 for x in $LDFLAGS $LIBGNUTLS; do 19285 19286 acl_save_prefix="$prefix" 19287 prefix="$acl_final_prefix" 19288 acl_save_exec_prefix="$exec_prefix" 19289 exec_prefix="$acl_final_exec_prefix" 19290 eval x=\"$x\" 19291 exec_prefix="$acl_save_exec_prefix" 19292 prefix="$acl_save_prefix" 19293 19294 if test "X$x" = "X-L$found_dir"; then 19295 haveit=yes 19296 break 19297 fi 19298 done 19299 if test -z "$haveit"; then 19300 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir" 19301 fi 19302 if test "$acl_hardcode_minus_L" != no; then 19303 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so" 19304 else 19305 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name" 19306 fi 19307 fi 19308 fi 19309 fi 19310 else 19311 if test "X$found_a" != "X"; then 19312 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_a" 19313 else 19314 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir -l$name" 19315 fi 19316 fi 19317 additional_includedir= 19318 case "$found_dir" in 19319 */$acl_libdirstem | */$acl_libdirstem/) 19320 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19321 if test "$name" = 'gnutls'; then 19322 LIBGNUTLS_PREFIX="$basedir" 19323 fi 19324 additional_includedir="$basedir/include" 19325 ;; 19326 */$acl_libdirstem2 | */$acl_libdirstem2/) 19327 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 19328 if test "$name" = 'gnutls'; then 19329 LIBGNUTLS_PREFIX="$basedir" 19330 fi 19331 additional_includedir="$basedir/include" 19332 ;; 19333 */$acl_libdirstem3 | */$acl_libdirstem3/) 19334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 19335 if test "$name" = 'gnutls'; then 19336 LIBGNUTLS_PREFIX="$basedir" 19337 fi 19338 additional_includedir="$basedir/include" 19339 ;; 19340 esac 19341 if test "X$additional_includedir" != "X"; then 19342 if test "X$additional_includedir" != "X/usr/include"; then 19343 haveit= 19344 if test "X$additional_includedir" = "X/usr/local/include"; then 19345 if test -n "$GCC"; then 19346 case $host_os in 19347 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19348 esac 19349 fi 19350 fi 19351 if test -z "$haveit"; then 19352 for x in $CPPFLAGS $INCGNUTLS; do 19353 19354 acl_save_prefix="$prefix" 19355 prefix="$acl_final_prefix" 19356 acl_save_exec_prefix="$exec_prefix" 19357 exec_prefix="$acl_final_exec_prefix" 19358 eval x=\"$x\" 19359 exec_prefix="$acl_save_exec_prefix" 19360 prefix="$acl_save_prefix" 19361 19362 if test "X$x" = "X-I$additional_includedir"; then 19363 haveit=yes 19364 break 19365 fi 19366 done 19367 if test -z "$haveit"; then 19368 if test -d "$additional_includedir"; then 19369 INCGNUTLS="${INCGNUTLS}${INCGNUTLS:+ }-I$additional_includedir" 19370 fi 19371 fi 19372 fi 19373 fi 19374 fi 19375 if test -n "$found_la"; then 19376 save_libdir="$libdir" 19377 case "$found_la" in 19378 */* | *\\*) . "$found_la" ;; 19379 *) . "./$found_la" ;; 19380 esac 19381 libdir="$save_libdir" 19382 for dep in $dependency_libs; do 19383 case "$dep" in 19384 -L*) 19385 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19386 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 19387 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 19388 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 19389 haveit= 19390 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 19391 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 19392 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 19393 if test -n "$GCC"; then 19394 case $host_os in 19395 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19396 esac 19397 fi 19398 fi 19399 if test -z "$haveit"; then 19400 haveit= 19401 for x in $LDFLAGS $LIBGNUTLS; do 19402 19403 acl_save_prefix="$prefix" 19404 prefix="$acl_final_prefix" 19405 acl_save_exec_prefix="$exec_prefix" 19406 exec_prefix="$acl_final_exec_prefix" 19407 eval x=\"$x\" 19408 exec_prefix="$acl_save_exec_prefix" 19409 prefix="$acl_save_prefix" 19410 19411 if test "X$x" = "X-L$dependency_libdir"; then 19412 haveit=yes 19413 break 19414 fi 19415 done 19416 if test -z "$haveit"; then 19417 if test -d "$dependency_libdir"; then 19418 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$dependency_libdir" 19419 fi 19420 fi 19421 haveit= 19422 for x in $LDFLAGS $LTLIBGNUTLS; do 19423 19424 acl_save_prefix="$prefix" 19425 prefix="$acl_final_prefix" 19426 acl_save_exec_prefix="$exec_prefix" 19427 exec_prefix="$acl_final_exec_prefix" 19428 eval x=\"$x\" 19429 exec_prefix="$acl_save_exec_prefix" 19430 prefix="$acl_save_prefix" 19431 19432 if test "X$x" = "X-L$dependency_libdir"; then 19433 haveit=yes 19434 break 19435 fi 19436 done 19437 if test -z "$haveit"; then 19438 if test -d "$dependency_libdir"; then 19439 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$dependency_libdir" 19440 fi 19441 fi 19442 fi 19443 fi 19444 ;; 19445 -R*) 19446 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19447 if test "$enable_rpath" != no; then 19448 haveit= 19449 for x in $rpathdirs; do 19450 if test "X$x" = "X$dir"; then 19451 haveit=yes 19452 break 19453 fi 19454 done 19455 if test -z "$haveit"; then 19456 rpathdirs="$rpathdirs $dir" 19457 fi 19458 haveit= 19459 for x in $ltrpathdirs; do 19460 if test "X$x" = "X$dir"; then 19461 haveit=yes 19462 break 19463 fi 19464 done 19465 if test -z "$haveit"; then 19466 ltrpathdirs="$ltrpathdirs $dir" 19467 fi 19468 fi 19469 ;; 19470 -l*) 19471 dep=`echo "X$dep" | sed -e 's/^X-l//'` 19472 if test "X$dep" != Xc \ 19473 || case $host_os in 19474 linux* | gnu* | k*bsd*-gnu) false ;; 19475 *) true ;; 19476 esac; then 19477 names_next_round="$names_next_round $dep" 19478 fi 19479 ;; 19480 *.la) 19481 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19482 ;; 19483 *) 19484 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$dep" 19485 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$dep" 19486 ;; 19487 esac 19488 done 19489 fi 19490 else 19491 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name" 19492 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-l$name" 19493 fi 19494 fi 19495 fi 19496 done 19497 done 19498 if test "X$rpathdirs" != "X"; then 19499 if test -n "$acl_hardcode_libdir_separator"; then 19500 alldirs= 19501 for found_dir in $rpathdirs; do 19502 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 19503 done 19504 acl_save_libdir="$libdir" 19505 libdir="$alldirs" 19506 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19507 libdir="$acl_save_libdir" 19508 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag" 19509 else 19510 for found_dir in $rpathdirs; do 19511 acl_save_libdir="$libdir" 19512 libdir="$found_dir" 19513 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19514 libdir="$acl_save_libdir" 19515 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag" 19516 done 19517 fi 19518 fi 19519 if test "X$ltrpathdirs" != "X"; then 19520 for found_dir in $ltrpathdirs; do 19521 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-R$found_dir" 19522 done 19523 fi 19524 19525 19526 19527 19528 19529 19530 ac_save_CPPFLAGS="$CPPFLAGS" 19531 19532 for element in $INCGNUTLS; do 19533 haveit= 19534 for x in $CPPFLAGS; do 19535 19536 acl_save_prefix="$prefix" 19537 prefix="$acl_final_prefix" 19538 acl_save_exec_prefix="$exec_prefix" 19539 exec_prefix="$acl_final_exec_prefix" 19540 eval x=\"$x\" 19541 exec_prefix="$acl_save_exec_prefix" 19542 prefix="$acl_save_prefix" 19543 19544 if test "X$x" = "X$element"; then 19545 haveit=yes 19546 break 19547 fi 19548 done 19549 if test -z "$haveit"; then 19550 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19551 fi 19552 done 19553 19554 19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgnutls" >&5 19556printf %s "checking for libgnutls... " >&6; } 19557if test ${ac_cv_libgnutls+y} 19558then : 19559 printf %s "(cached) " >&6 19560else $as_nop 19561 19562 ac_save_LIBS="$LIBS" 19563 case " $LIBGNUTLS" in 19564 *" -l"*) LIBS="$LIBS $LIBGNUTLS" ;; 19565 *) LIBS="$LIBGNUTLS $LIBS" ;; 19566 esac 19567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19568/* end confdefs.h. */ 19569#include <gnutls/gnutls.h> 19570int 19571main (void) 19572{ 19573gnutls_session_set_verify_cert (NULL, NULL, 0); 19574 ; 19575 return 0; 19576} 19577_ACEOF 19578if ac_fn_c_try_link "$LINENO" 19579then : 19580 ac_cv_libgnutls=yes 19581else $as_nop 19582 ac_cv_libgnutls='no' 19583fi 19584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19585 conftest$ac_exeext conftest.$ac_ext 19586 LIBS="$ac_save_LIBS" 19587 19588fi 19589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libgnutls" >&5 19590printf "%s\n" "$ac_cv_libgnutls" >&6; } 19591 if test "$ac_cv_libgnutls" = yes; then 19592 HAVE_LIBGNUTLS=yes 19593 19594printf "%s\n" "#define HAVE_LIBGNUTLS 1" >>confdefs.h 19595 19596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libgnutls" >&5 19597printf %s "checking how to link with libgnutls... " >&6; } 19598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS" >&5 19599printf "%s\n" "$LIBGNUTLS" >&6; } 19600 else 19601 HAVE_LIBGNUTLS=no 19602 CPPFLAGS="$ac_save_CPPFLAGS" 19603 LIBGNUTLS= 19604 LTLIBGNUTLS= 19605 LIBGNUTLS_PREFIX= 19606 fi 19607 19608 19609 19610 19611 19612 19613 19614fi 19615if test "$ac_cv_libgnutls" != yes; then 19616 gnutls=no 19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GnuTLS >= 3.4 not found. STARTTLS support disabled." >&5 19618printf "%s\n" "$as_me: WARNING: GnuTLS >= 3.4 not found. STARTTLS support disabled." >&2;} 19619fi 19620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if STARTTLS support via GnuTLS should be built" >&5 19621printf %s "checking if STARTTLS support via GnuTLS should be built... " >&6; } 19622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnutls" >&5 19623printf "%s\n" "$gnutls" >&6; } 19624 19625if test "$ac_cv_libgnutls" = yes; then 19626 save_LIBS="$LIBS" 19627 LIBS="$LIBS $LIBGNUTLS" 19628 ac_fn_c_check_func "$LINENO" "gnutls_session_channel_binding" "ac_cv_func_gnutls_session_channel_binding" 19629if test "x$ac_cv_func_gnutls_session_channel_binding" = xyes 19630then : 19631 printf "%s\n" "#define HAVE_GNUTLS_SESSION_CHANNEL_BINDING 1" >>confdefs.h 19632 19633fi 19634 19635 LIBS="$save_LIBS" 19636fi 19637 19638# Check for gtk-doc. 19639 19640 19641if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19642 if test -n "$ac_tool_prefix"; then 19643 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19644set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19646printf %s "checking for $ac_word... " >&6; } 19647if test ${ac_cv_path_PKG_CONFIG+y} 19648then : 19649 printf %s "(cached) " >&6 19650else $as_nop 19651 case $PKG_CONFIG in 19652 [\\/]* | ?:[\\/]*) 19653 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19654 ;; 19655 *) 19656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19657for as_dir in $PATH 19658do 19659 IFS=$as_save_IFS 19660 case $as_dir in #((( 19661 '') as_dir=./ ;; 19662 */) ;; 19663 *) as_dir=$as_dir/ ;; 19664 esac 19665 for ac_exec_ext in '' $ac_executable_extensions; do 19666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19667 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 19668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19669 break 2 19670 fi 19671done 19672 done 19673IFS=$as_save_IFS 19674 19675 ;; 19676esac 19677fi 19678PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19679if test -n "$PKG_CONFIG"; then 19680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19681printf "%s\n" "$PKG_CONFIG" >&6; } 19682else 19683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19684printf "%s\n" "no" >&6; } 19685fi 19686 19687 19688fi 19689if test -z "$ac_cv_path_PKG_CONFIG"; then 19690 ac_pt_PKG_CONFIG=$PKG_CONFIG 19691 # Extract the first word of "pkg-config", so it can be a program name with args. 19692set dummy pkg-config; ac_word=$2 19693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19694printf %s "checking for $ac_word... " >&6; } 19695if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 19696then : 19697 printf %s "(cached) " >&6 19698else $as_nop 19699 case $ac_pt_PKG_CONFIG in 19700 [\\/]* | ?:[\\/]*) 19701 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19702 ;; 19703 *) 19704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19705for as_dir in $PATH 19706do 19707 IFS=$as_save_IFS 19708 case $as_dir in #((( 19709 '') as_dir=./ ;; 19710 */) ;; 19711 *) as_dir=$as_dir/ ;; 19712 esac 19713 for ac_exec_ext in '' $ac_executable_extensions; do 19714 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19715 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 19716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19717 break 2 19718 fi 19719done 19720 done 19721IFS=$as_save_IFS 19722 19723 ;; 19724esac 19725fi 19726ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19727if test -n "$ac_pt_PKG_CONFIG"; then 19728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19729printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 19730else 19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19732printf "%s\n" "no" >&6; } 19733fi 19734 19735 if test "x$ac_pt_PKG_CONFIG" = x; then 19736 PKG_CONFIG="" 19737 else 19738 case $cross_compiling:$ac_tool_warned in 19739yes:) 19740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19741printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19742ac_tool_warned=yes ;; 19743esac 19744 PKG_CONFIG=$ac_pt_PKG_CONFIG 19745 fi 19746else 19747 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19748fi 19749 19750fi 19751if test -n "$PKG_CONFIG"; then 19752 _pkg_min_version=0.9.0 19753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19754printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19755 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19757printf "%s\n" "yes" >&6; } 19758 else 19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19760printf "%s\n" "no" >&6; } 19761 PKG_CONFIG="" 19762 fi 19763 19764fi 19765 19766 19767 19768 gtk_doc_requires="gtk-doc >= 1.1" 19769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 19770printf %s "checking for gtk-doc... " >&6; } 19771 if test -n "$PKG_CONFIG" && \ 19772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 19773 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 19774 ac_status=$? 19775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19776 test $ac_status = 0; }; then 19777 have_gtk_doc=yes 19778else 19779 have_gtk_doc=no 19780fi 19781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 19782printf "%s\n" "$have_gtk_doc" >&6; } 19783 19784 if test "$have_gtk_doc" = "no"; then 19785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 19786 You will not be able to create source packages with 'make dist' 19787 because $gtk_doc_requires is not found." >&5 19788printf "%s\n" "$as_me: WARNING: 19789 You will not be able to create source packages with 'make dist' 19790 because $gtk_doc_requires is not found." >&2;} 19791 fi 19792 19793 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 19794set dummy gtkdoc-check; ac_word=$2 19795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19796printf %s "checking for $ac_word... " >&6; } 19797if test ${ac_cv_prog_GTKDOC_CHECK+y} 19798then : 19799 printf %s "(cached) " >&6 19800else $as_nop 19801 if test -n "$GTKDOC_CHECK"; then 19802 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. 19803else 19804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19805for as_dir in $PATH 19806do 19807 IFS=$as_save_IFS 19808 case $as_dir in #((( 19809 '') as_dir=./ ;; 19810 */) ;; 19811 *) as_dir=$as_dir/ ;; 19812 esac 19813 for ac_exec_ext in '' $ac_executable_extensions; do 19814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19815 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" 19816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19817 break 2 19818 fi 19819done 19820 done 19821IFS=$as_save_IFS 19822 19823fi 19824fi 19825GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK 19826if test -n "$GTKDOC_CHECK"; then 19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 19828printf "%s\n" "$GTKDOC_CHECK" >&6; } 19829else 19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19831printf "%s\n" "no" >&6; } 19832fi 19833 19834 19835 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 19836set dummy gtkdoc-check; ac_word=$2 19837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19838printf %s "checking for $ac_word... " >&6; } 19839if test ${ac_cv_path_GTKDOC_CHECK_PATH+y} 19840then : 19841 printf %s "(cached) " >&6 19842else $as_nop 19843 case $GTKDOC_CHECK_PATH in 19844 [\\/]* | ?:[\\/]*) 19845 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. 19846 ;; 19847 *) 19848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19849for as_dir in $PATH 19850do 19851 IFS=$as_save_IFS 19852 case $as_dir in #((( 19853 '') as_dir=./ ;; 19854 */) ;; 19855 *) as_dir=$as_dir/ ;; 19856 esac 19857 for ac_exec_ext in '' $ac_executable_extensions; do 19858 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19859 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir$ac_word$ac_exec_ext" 19860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19861 break 2 19862 fi 19863done 19864 done 19865IFS=$as_save_IFS 19866 19867 ;; 19868esac 19869fi 19870GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH 19871if test -n "$GTKDOC_CHECK_PATH"; then 19872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 19873printf "%s\n" "$GTKDOC_CHECK_PATH" >&6; } 19874else 19875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19876printf "%s\n" "no" >&6; } 19877fi 19878 19879 19880 for ac_prog in gtkdoc-rebase 19881do 19882 # Extract the first word of "$ac_prog", so it can be a program name with args. 19883set dummy $ac_prog; ac_word=$2 19884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19885printf %s "checking for $ac_word... " >&6; } 19886if test ${ac_cv_path_GTKDOC_REBASE+y} 19887then : 19888 printf %s "(cached) " >&6 19889else $as_nop 19890 case $GTKDOC_REBASE in 19891 [\\/]* | ?:[\\/]*) 19892 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 19893 ;; 19894 *) 19895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19896for as_dir in $PATH 19897do 19898 IFS=$as_save_IFS 19899 case $as_dir in #((( 19900 '') as_dir=./ ;; 19901 */) ;; 19902 *) as_dir=$as_dir/ ;; 19903 esac 19904 for ac_exec_ext in '' $ac_executable_extensions; do 19905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19906 ac_cv_path_GTKDOC_REBASE="$as_dir$ac_word$ac_exec_ext" 19907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19908 break 2 19909 fi 19910done 19911 done 19912IFS=$as_save_IFS 19913 19914 ;; 19915esac 19916fi 19917GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 19918if test -n "$GTKDOC_REBASE"; then 19919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 19920printf "%s\n" "$GTKDOC_REBASE" >&6; } 19921else 19922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19923printf "%s\n" "no" >&6; } 19924fi 19925 19926 19927 test -n "$GTKDOC_REBASE" && break 19928done 19929test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 19930 19931 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 19932set dummy gtkdoc-mkpdf; ac_word=$2 19933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19934printf %s "checking for $ac_word... " >&6; } 19935if test ${ac_cv_path_GTKDOC_MKPDF+y} 19936then : 19937 printf %s "(cached) " >&6 19938else $as_nop 19939 case $GTKDOC_MKPDF in 19940 [\\/]* | ?:[\\/]*) 19941 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 19942 ;; 19943 *) 19944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19945for as_dir in $PATH 19946do 19947 IFS=$as_save_IFS 19948 case $as_dir in #((( 19949 '') as_dir=./ ;; 19950 */) ;; 19951 *) as_dir=$as_dir/ ;; 19952 esac 19953 for ac_exec_ext in '' $ac_executable_extensions; do 19954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19955 ac_cv_path_GTKDOC_MKPDF="$as_dir$ac_word$ac_exec_ext" 19956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19957 break 2 19958 fi 19959done 19960 done 19961IFS=$as_save_IFS 19962 19963 ;; 19964esac 19965fi 19966GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 19967if test -n "$GTKDOC_MKPDF"; then 19968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 19969printf "%s\n" "$GTKDOC_MKPDF" >&6; } 19970else 19971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19972printf "%s\n" "no" >&6; } 19973fi 19974 19975 19976 19977 19978# Check whether --with-html-dir was given. 19979if test ${with_html_dir+y} 19980then : 19981 withval=$with_html_dir; 19982else $as_nop 19983 with_html_dir='${datadir}/gtk-doc/html' 19984fi 19985 19986 HTML_DIR="$with_html_dir" 19987 19988 19989 # Check whether --enable-gtk-doc was given. 19990if test ${enable_gtk_doc+y} 19991then : 19992 enableval=$enable_gtk_doc; 19993else $as_nop 19994 enable_gtk_doc=no 19995fi 19996 19997 19998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 19999printf %s "checking whether to build gtk-doc documentation... " >&6; } 20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 20001printf "%s\n" "$enable_gtk_doc" >&6; } 20002 20003 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then 20004 as_fn_error $? " 20005 You must have $gtk_doc_requires installed to build documentation for 20006 $PACKAGE_NAME. Please install gtk-doc or disable building the 20007 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 20008 fi 20009 20010 if test "x$PACKAGE_NAME" != "xglib"; then 20011 20012pkg_failed=no 20013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 20014printf %s "checking for GTKDOC_DEPS... " >&6; } 20015 20016if test -n "$PKG_CONFIG"; then 20017 if test -n "$GTKDOC_DEPS_CFLAGS"; then 20018 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 20019 else 20020 if test -n "$PKG_CONFIG" && \ 20021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 20022 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 20023 ac_status=$? 20024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20025 test $ac_status = 0; }; then 20026 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 20027else 20028 pkg_failed=yes 20029fi 20030 fi 20031else 20032 pkg_failed=untried 20033fi 20034if test -n "$PKG_CONFIG"; then 20035 if test -n "$GTKDOC_DEPS_LIBS"; then 20036 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 20037 else 20038 if test -n "$PKG_CONFIG" && \ 20039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 20040 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 20041 ac_status=$? 20042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20043 test $ac_status = 0; }; then 20044 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 20045else 20046 pkg_failed=yes 20047fi 20048 fi 20049else 20050 pkg_failed=untried 20051fi 20052 20053 20054 20055if test $pkg_failed = yes; then 20056 20057if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20058 _pkg_short_errors_supported=yes 20059else 20060 _pkg_short_errors_supported=no 20061fi 20062 if test $_pkg_short_errors_supported = yes; then 20063 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"` 20064 else 20065 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"` 20066 fi 20067 # Put the nasty error message in config.log where it belongs 20068 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 20069 20070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20071printf "%s\n" "no" >&6; } 20072 : 20073elif test $pkg_failed = untried; then 20074 : 20075else 20076 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 20077 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 20078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20079printf "%s\n" "yes" >&6; } 20080 : 20081fi 20082 fi 20083 20084 # Check whether --enable-gtk-doc-html was given. 20085if test ${enable_gtk_doc_html+y} 20086then : 20087 enableval=$enable_gtk_doc_html; 20088else $as_nop 20089 enable_gtk_doc_html=yes 20090fi 20091 20092 # Check whether --enable-gtk-doc-pdf was given. 20093if test ${enable_gtk_doc_pdf+y} 20094then : 20095 enableval=$enable_gtk_doc_pdf; 20096else $as_nop 20097 enable_gtk_doc_pdf=no 20098fi 20099 20100 20101 if test -z "$GTKDOC_MKPDF"; then 20102 enable_gtk_doc_pdf=no 20103 fi 20104 20105 if test -z "$AM_DEFAULT_VERBOSITY"; then 20106 AM_DEFAULT_VERBOSITY=1 20107 fi 20108 20109 20110 if test x$have_gtk_doc = xyes; then 20111 HAVE_GTK_DOC_TRUE= 20112 HAVE_GTK_DOC_FALSE='#' 20113else 20114 HAVE_GTK_DOC_TRUE='#' 20115 HAVE_GTK_DOC_FALSE= 20116fi 20117 20118 if test x$enable_gtk_doc = xyes; then 20119 ENABLE_GTK_DOC_TRUE= 20120 ENABLE_GTK_DOC_FALSE='#' 20121else 20122 ENABLE_GTK_DOC_TRUE='#' 20123 ENABLE_GTK_DOC_FALSE= 20124fi 20125 20126 if test x$enable_gtk_doc_html = xyes; then 20127 GTK_DOC_BUILD_HTML_TRUE= 20128 GTK_DOC_BUILD_HTML_FALSE='#' 20129else 20130 GTK_DOC_BUILD_HTML_TRUE='#' 20131 GTK_DOC_BUILD_HTML_FALSE= 20132fi 20133 20134 if test x$enable_gtk_doc_pdf = xyes; then 20135 GTK_DOC_BUILD_PDF_TRUE= 20136 GTK_DOC_BUILD_PDF_FALSE='#' 20137else 20138 GTK_DOC_BUILD_PDF_TRUE='#' 20139 GTK_DOC_BUILD_PDF_FALSE= 20140fi 20141 20142 if test -n "$LIBTOOL"; then 20143 GTK_DOC_USE_LIBTOOL_TRUE= 20144 GTK_DOC_USE_LIBTOOL_FALSE='#' 20145else 20146 GTK_DOC_USE_LIBTOOL_TRUE='#' 20147 GTK_DOC_USE_LIBTOOL_FALSE= 20148fi 20149 20150 if test -n "$GTKDOC_REBASE"; then 20151 GTK_DOC_USE_REBASE_TRUE= 20152 GTK_DOC_USE_REBASE_FALSE='#' 20153else 20154 GTK_DOC_USE_REBASE_TRUE='#' 20155 GTK_DOC_USE_REBASE_FALSE= 20156fi 20157 20158 20159 20160# For gnulib stuff in gl/. 20161 20162 20163 20164 20165 20166 20167 20168 20169 # Check whether --enable-cross-guesses was given. 20170if test ${enable_cross_guesses+y} 20171then : 20172 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then 20173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5 20174printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;} 20175 enableval=conservative 20176 fi 20177 gl_cross_guesses="$enableval" 20178else $as_nop 20179 gl_cross_guesses=conservative 20180fi 20181 20182 if test $gl_cross_guesses = risky; then 20183 gl_cross_guess_normal="guessing yes" 20184 gl_cross_guess_inverted="guessing no" 20185 else 20186 gl_cross_guess_normal="guessing no" 20187 gl_cross_guess_inverted="guessing yes" 20188 fi 20189 LIBC_FATAL_STDERR_=1 20190 export LIBC_FATAL_STDERR_ 20191 20192 20193ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 20194if test "x$ac_cv_type_size_t" = xyes 20195then : 20196 20197else $as_nop 20198 20199printf "%s\n" "#define size_t unsigned int" >>confdefs.h 20200 20201fi 20202 20203# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 20204# for constant arguments. Useless! 20205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 20206printf %s "checking for working alloca.h... " >&6; } 20207if test ${ac_cv_working_alloca_h+y} 20208then : 20209 printf %s "(cached) " >&6 20210else $as_nop 20211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20212/* end confdefs.h. */ 20213#include <alloca.h> 20214int 20215main (void) 20216{ 20217char *p = (char *) alloca (2 * sizeof (int)); 20218 if (p) return 0; 20219 ; 20220 return 0; 20221} 20222_ACEOF 20223if ac_fn_c_try_link "$LINENO" 20224then : 20225 ac_cv_working_alloca_h=yes 20226else $as_nop 20227 ac_cv_working_alloca_h=no 20228fi 20229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20230 conftest$ac_exeext conftest.$ac_ext 20231fi 20232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 20233printf "%s\n" "$ac_cv_working_alloca_h" >&6; } 20234if test $ac_cv_working_alloca_h = yes; then 20235 20236printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h 20237 20238fi 20239 20240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 20241printf %s "checking for alloca... " >&6; } 20242if test ${ac_cv_func_alloca_works+y} 20243then : 20244 printf %s "(cached) " >&6 20245else $as_nop 20246 if test $ac_cv_working_alloca_h = yes; then 20247 ac_cv_func_alloca_works=yes 20248else 20249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20250/* end confdefs.h. */ 20251#include <stdlib.h> 20252#include <stddef.h> 20253#ifndef alloca 20254# ifdef __GNUC__ 20255# define alloca __builtin_alloca 20256# elif defined _MSC_VER 20257# include <malloc.h> 20258# define alloca _alloca 20259# else 20260# ifdef __cplusplus 20261extern "C" 20262# endif 20263void *alloca (size_t); 20264# endif 20265#endif 20266 20267int 20268main (void) 20269{ 20270char *p = (char *) alloca (1); 20271 if (p) return 0; 20272 ; 20273 return 0; 20274} 20275_ACEOF 20276if ac_fn_c_try_link "$LINENO" 20277then : 20278 ac_cv_func_alloca_works=yes 20279else $as_nop 20280 ac_cv_func_alloca_works=no 20281fi 20282rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20283 conftest$ac_exeext conftest.$ac_ext 20284fi 20285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 20286printf "%s\n" "$ac_cv_func_alloca_works" >&6; } 20287fi 20288 20289if test $ac_cv_func_alloca_works = yes; then 20290 20291printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h 20292 20293else 20294 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 20295# that cause trouble. Some versions do not even contain alloca or 20296# contain a buggy version. If you still want to use their alloca, 20297# use ar to extract alloca.o from them instead of compiling alloca.c. 20298 20299 20300 20301 20302 20303ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 20304 20305printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h 20306 20307 20308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 20309printf %s "checking stack direction for C alloca... " >&6; } 20310if test ${ac_cv_c_stack_direction+y} 20311then : 20312 printf %s "(cached) " >&6 20313else $as_nop 20314 if test "$cross_compiling" = yes 20315then : 20316 ac_cv_c_stack_direction=0 20317else $as_nop 20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20319/* end confdefs.h. */ 20320$ac_includes_default 20321int 20322find_stack_direction (int *addr, int depth) 20323{ 20324 int dir, dummy = 0; 20325 if (! addr) 20326 addr = &dummy; 20327 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 20328 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 20329 return dir + dummy; 20330} 20331 20332int 20333main (int argc, char **argv) 20334{ 20335 return find_stack_direction (0, argc + !argv + 20) < 0; 20336} 20337_ACEOF 20338if ac_fn_c_try_run "$LINENO" 20339then : 20340 ac_cv_c_stack_direction=1 20341else $as_nop 20342 ac_cv_c_stack_direction=-1 20343fi 20344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20345 conftest.$ac_objext conftest.beam conftest.$ac_ext 20346fi 20347 20348fi 20349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 20350printf "%s\n" "$ac_cv_c_stack_direction" >&6; } 20351printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h 20352 20353 20354fi 20355 20356 20357 GNULIB_INET_NTOP=0; 20358 GNULIB_INET_PTON=0; 20359 HAVE_DECL_INET_NTOP=1; 20360 HAVE_DECL_INET_PTON=1; 20361 REPLACE_INET_NTOP=0; 20362 REPLACE_INET_PTON=0; 20363 20364 20365 20366 20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 20368printf %s "checking whether the preprocessor supports include_next... " >&6; } 20369if test ${gl_cv_have_include_next+y} 20370then : 20371 printf %s "(cached) " >&6 20372else $as_nop 20373 rm -rf conftestd1a conftestd1b conftestd2 20374 mkdir conftestd1a conftestd1b conftestd2 20375 cat <<EOF > conftestd1a/conftest.h 20376#define DEFINED_IN_CONFTESTD1 20377#include_next <conftest.h> 20378#ifdef DEFINED_IN_CONFTESTD2 20379int foo; 20380#else 20381#error "include_next doesn't work" 20382#endif 20383EOF 20384 cat <<EOF > conftestd1b/conftest.h 20385#define DEFINED_IN_CONFTESTD1 20386#include <stdio.h> 20387#include_next <conftest.h> 20388#ifdef DEFINED_IN_CONFTESTD2 20389int foo; 20390#else 20391#error "include_next doesn't work" 20392#endif 20393EOF 20394 cat <<EOF > conftestd2/conftest.h 20395#ifndef DEFINED_IN_CONFTESTD1 20396#error "include_next test doesn't work" 20397#endif 20398#define DEFINED_IN_CONFTESTD2 20399EOF 20400 gl_save_CPPFLAGS="$CPPFLAGS" 20401 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 20402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20403/* end confdefs.h. */ 20404#include <conftest.h> 20405_ACEOF 20406if ac_fn_c_try_compile "$LINENO" 20407then : 20408 gl_cv_have_include_next=yes 20409else $as_nop 20410 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 20411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20412/* end confdefs.h. */ 20413#include <conftest.h> 20414_ACEOF 20415if ac_fn_c_try_compile "$LINENO" 20416then : 20417 gl_cv_have_include_next=buggy 20418else $as_nop 20419 gl_cv_have_include_next=no 20420fi 20421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20422 20423fi 20424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20425 CPPFLAGS="$gl_save_CPPFLAGS" 20426 rm -rf conftestd1a conftestd1b conftestd2 20427 20428fi 20429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 20430printf "%s\n" "$gl_cv_have_include_next" >&6; } 20431 PRAGMA_SYSTEM_HEADER= 20432 if test $gl_cv_have_include_next = yes; then 20433 INCLUDE_NEXT=include_next 20434 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 20435 if test -n "$GCC"; then 20436 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 20437 fi 20438 else 20439 if test $gl_cv_have_include_next = buggy; then 20440 INCLUDE_NEXT=include 20441 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 20442 else 20443 INCLUDE_NEXT=include 20444 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 20445 fi 20446 fi 20447 20448 20449 20450 20451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5 20452printf %s "checking whether source code line length is unlimited... " >&6; } 20453if test ${gl_cv_source_line_length_unlimited+y} 20454then : 20455 printf %s "(cached) " >&6 20456else $as_nop 20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20458/* end confdefs.h. */ 20459 20460#ifdef __TANDEM 20461choke me 20462#endif 20463 20464_ACEOF 20465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20466 $EGREP "choke me" >/dev/null 2>&1 20467then : 20468 gl_cv_source_line_length_unlimited=no 20469else $as_nop 20470 gl_cv_source_line_length_unlimited=yes 20471fi 20472rm -rf conftest* 20473 20474 20475fi 20476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5 20477printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; } 20478 if test $gl_cv_source_line_length_unlimited = no; then 20479 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 20480 else 20481 PRAGMA_COLUMNS= 20482 fi 20483 20484 20485 20486 20487 20488 if test $ac_cv_header_features_h = yes; then 20489 HAVE_FEATURES_H=1 20490 else 20491 HAVE_FEATURES_H=0 20492 fi 20493 20494 20495 20496 20497 if test $ac_cv_header_sys_socket_h = no; then 20498 ac_fn_c_check_header_compile "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 20499if test "x$ac_cv_header_ws2tcpip_h" = xyes 20500then : 20501 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h 20502 20503fi 20504 20505 fi 20506 20507 20508 GNULIB_ACCESS=0; 20509 GNULIB_CHDIR=0; 20510 GNULIB_CHOWN=0; 20511 GNULIB_CLOSE=0; 20512 GNULIB_COPY_FILE_RANGE=0; 20513 GNULIB_DUP=0; 20514 GNULIB_DUP2=0; 20515 GNULIB_DUP3=0; 20516 GNULIB_ENVIRON=0; 20517 GNULIB_EUIDACCESS=0; 20518 GNULIB_EXECL=0; 20519 GNULIB_EXECLE=0; 20520 GNULIB_EXECLP=0; 20521 GNULIB_EXECV=0; 20522 GNULIB_EXECVE=0; 20523 GNULIB_EXECVP=0; 20524 GNULIB_EXECVPE=0; 20525 GNULIB_FACCESSAT=0; 20526 GNULIB_FCHDIR=0; 20527 GNULIB_FCHOWNAT=0; 20528 GNULIB_FDATASYNC=0; 20529 GNULIB_FSYNC=0; 20530 GNULIB_FTRUNCATE=0; 20531 GNULIB_GETCWD=0; 20532 GNULIB_GETDOMAINNAME=0; 20533 GNULIB_GETDTABLESIZE=0; 20534 GNULIB_GETENTROPY=0; 20535 GNULIB_GETGROUPS=0; 20536 GNULIB_GETHOSTNAME=0; 20537 GNULIB_GETLOGIN=0; 20538 GNULIB_GETLOGIN_R=0; 20539 GNULIB_GETOPT_POSIX=0; 20540 GNULIB_GETPAGESIZE=0; 20541 GNULIB_GETPASS=0; 20542 GNULIB_GETUSERSHELL=0; 20543 GNULIB_GROUP_MEMBER=0; 20544 GNULIB_ISATTY=0; 20545 GNULIB_LCHOWN=0; 20546 GNULIB_LINK=0; 20547 GNULIB_LINKAT=0; 20548 GNULIB_LSEEK=0; 20549 GNULIB_PIPE=0; 20550 GNULIB_PIPE2=0; 20551 GNULIB_PREAD=0; 20552 GNULIB_PWRITE=0; 20553 GNULIB_READ=0; 20554 GNULIB_READLINK=0; 20555 GNULIB_READLINKAT=0; 20556 GNULIB_RMDIR=0; 20557 GNULIB_SETHOSTNAME=0; 20558 GNULIB_SLEEP=0; 20559 GNULIB_SYMLINK=0; 20560 GNULIB_SYMLINKAT=0; 20561 GNULIB_TRUNCATE=0; 20562 GNULIB_TTYNAME_R=0; 20563 GNULIB_UNISTD_H_NONBLOCKING=0; 20564 GNULIB_UNISTD_H_SIGPIPE=0; 20565 GNULIB_UNLINK=0; 20566 GNULIB_UNLINKAT=0; 20567 GNULIB_USLEEP=0; 20568 GNULIB_WRITE=0; 20569 GNULIB_MDA_ACCESS=1; 20570 GNULIB_MDA_CHDIR=1; 20571 GNULIB_MDA_CLOSE=1; 20572 GNULIB_MDA_DUP=1; 20573 GNULIB_MDA_DUP2=1; 20574 GNULIB_MDA_EXECL=1; 20575 GNULIB_MDA_EXECLE=1; 20576 GNULIB_MDA_EXECLP=1; 20577 GNULIB_MDA_EXECV=1; 20578 GNULIB_MDA_EXECVE=1; 20579 GNULIB_MDA_EXECVP=1; 20580 GNULIB_MDA_EXECVPE=1; 20581 GNULIB_MDA_GETCWD=1; 20582 GNULIB_MDA_GETPID=1; 20583 GNULIB_MDA_ISATTY=1; 20584 GNULIB_MDA_LSEEK=1; 20585 GNULIB_MDA_READ=1; 20586 GNULIB_MDA_RMDIR=1; 20587 GNULIB_MDA_SWAB=1; 20588 GNULIB_MDA_UNLINK=1; 20589 GNULIB_MDA_WRITE=1; 20590 HAVE_CHOWN=1; 20591 HAVE_COPY_FILE_RANGE=1; 20592 HAVE_DUP3=1; 20593 HAVE_EUIDACCESS=1; 20594 HAVE_EXECVPE=1; 20595 HAVE_FACCESSAT=1; 20596 HAVE_FCHDIR=1; 20597 HAVE_FCHOWNAT=1; 20598 HAVE_FDATASYNC=1; 20599 HAVE_FSYNC=1; 20600 HAVE_FTRUNCATE=1; 20601 HAVE_GETDTABLESIZE=1; 20602 HAVE_GETENTROPY=1; 20603 HAVE_GETGROUPS=1; 20604 HAVE_GETHOSTNAME=1; 20605 HAVE_GETLOGIN=1; 20606 HAVE_GETPAGESIZE=1; 20607 HAVE_GETPASS=1; 20608 HAVE_GROUP_MEMBER=1; 20609 HAVE_LCHOWN=1; 20610 HAVE_LINK=1; 20611 HAVE_LINKAT=1; 20612 HAVE_PIPE=1; 20613 HAVE_PIPE2=1; 20614 HAVE_PREAD=1; 20615 HAVE_PWRITE=1; 20616 HAVE_READLINK=1; 20617 HAVE_READLINKAT=1; 20618 HAVE_SETHOSTNAME=1; 20619 HAVE_SLEEP=1; 20620 HAVE_SYMLINK=1; 20621 HAVE_SYMLINKAT=1; 20622 HAVE_UNLINKAT=1; 20623 HAVE_USLEEP=1; 20624 HAVE_DECL_ENVIRON=1; 20625 HAVE_DECL_EXECVPE=1; 20626 HAVE_DECL_FCHDIR=1; 20627 HAVE_DECL_FDATASYNC=1; 20628 HAVE_DECL_GETDOMAINNAME=1; 20629 HAVE_DECL_GETLOGIN=1; 20630 HAVE_DECL_GETLOGIN_R=1; 20631 HAVE_DECL_GETPAGESIZE=1; 20632 HAVE_DECL_GETUSERSHELL=1; 20633 HAVE_DECL_SETHOSTNAME=1; 20634 HAVE_DECL_TRUNCATE=1; 20635 HAVE_DECL_TTYNAME_R=1; 20636 HAVE_OS_H=0; 20637 HAVE_SYS_PARAM_H=0; 20638 REPLACE_ACCESS=0; 20639 REPLACE_CHOWN=0; 20640 REPLACE_CLOSE=0; 20641 REPLACE_DUP=0; 20642 REPLACE_DUP2=0; 20643 REPLACE_EXECL=0; 20644 REPLACE_EXECLE=0; 20645 REPLACE_EXECLP=0; 20646 REPLACE_EXECV=0; 20647 REPLACE_EXECVE=0; 20648 REPLACE_EXECVP=0; 20649 REPLACE_EXECVPE=0; 20650 REPLACE_FACCESSAT=0; 20651 REPLACE_FCHOWNAT=0; 20652 REPLACE_FTRUNCATE=0; 20653 REPLACE_GETCWD=0; 20654 REPLACE_GETDOMAINNAME=0; 20655 REPLACE_GETDTABLESIZE=0; 20656 REPLACE_GETLOGIN_R=0; 20657 REPLACE_GETGROUPS=0; 20658 REPLACE_GETPAGESIZE=0; 20659 REPLACE_GETPASS=0; 20660 REPLACE_ISATTY=0; 20661 REPLACE_LCHOWN=0; 20662 REPLACE_LINK=0; 20663 REPLACE_LINKAT=0; 20664 REPLACE_LSEEK=0; 20665 REPLACE_PREAD=0; 20666 REPLACE_PWRITE=0; 20667 REPLACE_READ=0; 20668 REPLACE_READLINK=0; 20669 REPLACE_READLINKAT=0; 20670 REPLACE_RMDIR=0; 20671 REPLACE_SLEEP=0; 20672 REPLACE_SYMLINK=0; 20673 REPLACE_SYMLINKAT=0; 20674 REPLACE_TRUNCATE=0; 20675 REPLACE_TTYNAME_R=0; 20676 REPLACE_UNLINK=0; 20677 REPLACE_UNLINKAT=0; 20678 REPLACE_USLEEP=0; 20679 REPLACE_WRITE=0; 20680 UNISTD_H_HAVE_SYS_RANDOM_H=0; 20681 UNISTD_H_HAVE_WINSOCK2_H=0; 20682 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 20683 20684 20685ac_func= 20686for ac_item in $ac_func_c_list 20687do 20688 if test $ac_func; then 20689 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 20690 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 20691 echo "#define $ac_item 1" >> confdefs.h 20692 fi 20693 ac_func= 20694 else 20695 ac_func=$ac_item 20696 fi 20697done 20698 20699 20700 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 20701 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 20702 20703printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 20704 20705 else 20706 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 20707 fi 20708 20709 20710 20711 GNULIB_SOCKET=0; 20712 GNULIB_CONNECT=0; 20713 GNULIB_ACCEPT=0; 20714 GNULIB_BIND=0; 20715 GNULIB_GETPEERNAME=0; 20716 GNULIB_GETSOCKNAME=0; 20717 GNULIB_GETSOCKOPT=0; 20718 GNULIB_LISTEN=0; 20719 GNULIB_RECV=0; 20720 GNULIB_SEND=0; 20721 GNULIB_RECVFROM=0; 20722 GNULIB_SENDTO=0; 20723 GNULIB_SETSOCKOPT=0; 20724 GNULIB_SHUTDOWN=0; 20725 GNULIB_ACCEPT4=0; 20726 HAVE_STRUCT_SOCKADDR_STORAGE=1; 20727 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1; 20728 20729 HAVE_SA_FAMILY_T=1; 20730 HAVE_ACCEPT4=1; 20731 20732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 20733printf %s "checking for C/C++ restrict keyword... " >&6; } 20734if test ${ac_cv_c_restrict+y} 20735then : 20736 printf %s "(cached) " >&6 20737else $as_nop 20738 ac_cv_c_restrict=no 20739 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: 20740 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html 20741 # Put 'restrict' last, because C++ lacks it. 20742 for ac_kw in __restrict__ __restrict _Restrict restrict; do 20743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20744/* end confdefs.h. */ 20745typedef int *int_ptr; 20746 int foo (int_ptr $ac_kw ip) { return ip[0]; } 20747 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 20748 int bar (int ip[$ac_kw]) { return ip[0]; } 20749 20750int 20751main (void) 20752{ 20753int s[1]; 20754 int *$ac_kw t = s; 20755 t[0] = 0; 20756 return foo (t) + bar (t); 20757 20758 ; 20759 return 0; 20760} 20761_ACEOF 20762if ac_fn_c_try_compile "$LINENO" 20763then : 20764 ac_cv_c_restrict=$ac_kw 20765fi 20766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20767 test "$ac_cv_c_restrict" != no && break 20768 done 20769 20770fi 20771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 20772printf "%s\n" "$ac_cv_c_restrict" >&6; } 20773 20774 case $ac_cv_c_restrict in 20775 restrict) ;; 20776 no) printf "%s\n" "#define restrict /**/" >>confdefs.h 20777 ;; 20778 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h 20779 ;; 20780 esac 20781 20782 20783 20784 20785 20786 case "$host_os" in 20787 osf*) 20788 20789printf "%s\n" "#define _POSIX_PII_SOCKET 1" >>confdefs.h 20790 20791 ;; 20792 esac 20793 20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5 20795printf %s "checking whether <sys/socket.h> is self-contained... " >&6; } 20796if test ${gl_cv_header_sys_socket_h_selfcontained+y} 20797then : 20798 printf %s "(cached) " >&6 20799else $as_nop 20800 20801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20802/* end confdefs.h. */ 20803#include <sys/socket.h> 20804int 20805main (void) 20806{ 20807 20808 ; 20809 return 0; 20810} 20811_ACEOF 20812if ac_fn_c_try_compile "$LINENO" 20813then : 20814 gl_cv_header_sys_socket_h_selfcontained=yes 20815else $as_nop 20816 gl_cv_header_sys_socket_h_selfcontained=no 20817fi 20818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20819 20820fi 20821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5 20822printf "%s\n" "$gl_cv_header_sys_socket_h_selfcontained" >&6; } 20823 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then 20824 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" 20825if test "x$ac_cv_func_shutdown" = xyes 20826then : 20827 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h 20828 20829fi 20830 20831 if test $ac_cv_func_shutdown = yes; then 20832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5 20833printf %s "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; } 20834if test ${gl_cv_header_sys_socket_h_shut+y} 20835then : 20836 printf %s "(cached) " >&6 20837else $as_nop 20838 20839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20840/* end confdefs.h. */ 20841#include <sys/socket.h> 20842int 20843main (void) 20844{ 20845int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; 20846 ; 20847 return 0; 20848} 20849_ACEOF 20850if ac_fn_c_try_compile "$LINENO" 20851then : 20852 gl_cv_header_sys_socket_h_shut=yes 20853else $as_nop 20854 gl_cv_header_sys_socket_h_shut=no 20855fi 20856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20857 20858fi 20859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5 20860printf "%s\n" "$gl_cv_header_sys_socket_h_shut" >&6; } 20861 if test $gl_cv_header_sys_socket_h_shut = no; then 20862 SYS_SOCKET_H='sys/socket.h' 20863 fi 20864 fi 20865 fi 20866 # We need to check for ws2tcpip.h now. 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 if test $gl_cv_have_include_next = yes; then 20879 gl_cv_next_sys_socket_h='<'sys/socket.h'>' 20880 else 20881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5 20882printf %s "checking absolute name of <sys/socket.h>... " >&6; } 20883if test ${gl_cv_next_sys_socket_h+y} 20884then : 20885 printf %s "(cached) " >&6 20886else $as_nop 20887 20888 if test $ac_cv_header_sys_socket_h = yes; then 20889 20890 20891 20892 20893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20894/* end confdefs.h. */ 20895#include <sys/socket.h> 20896_ACEOF 20897 case "$host_os" in 20898 aix*) gl_absname_cpp="$ac_cpp -C" ;; 20899 *) gl_absname_cpp="$ac_cpp" ;; 20900 esac 20901 20902 case "$host_os" in 20903 mingw*) 20904 gl_dirsep_regex='[/\\]' 20905 ;; 20906 *) 20907 gl_dirsep_regex='\/' 20908 ;; 20909 esac 20910 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 20911 gl_header_literal_regex=`echo 'sys/socket.h' \ 20912 | sed -e "$gl_make_literal_regex_sed"` 20913 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 20914 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 20915 s|^/[^/]|//&| 20916 p 20917 q 20918 }' 20919 20920 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 20921 sed -n "$gl_absolute_header_sed"` 20922 20923 gl_header=$gl_cv_absolute_sys_socket_h 20924 gl_cv_next_sys_socket_h='"'$gl_header'"' 20925 else 20926 gl_cv_next_sys_socket_h='<'sys/socket.h'>' 20927 fi 20928 20929 20930fi 20931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5 20932printf "%s\n" "$gl_cv_next_sys_socket_h" >&6; } 20933 fi 20934 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h 20935 20936 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 20937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 20938 gl_next_as_first_directive='<'sys/socket.h'>' 20939 else 20940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 20941 gl_next_as_first_directive=$gl_cv_next_sys_socket_h 20942 fi 20943 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive 20944 20945 20946 20947 20948 if test $ac_cv_header_sys_socket_h = yes; then 20949 HAVE_SYS_SOCKET_H=1 20950 else 20951 HAVE_SYS_SOCKET_H=0 20952 fi 20953 20954 20955 20956 if test $ac_cv_header_sys_socket_h = yes; then 20957 HAVE_WS2TCPIP_H=0 20958 else 20959 if test $ac_cv_header_ws2tcpip_h = yes; then 20960 HAVE_WS2TCPIP_H=1 20961 else 20962 HAVE_WS2TCPIP_H=0 20963 fi 20964 fi 20965 20966 20967 20968 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 20969 /* sys/types.h is not needed according to POSIX, but the 20970 sys/socket.h in i386-unknown-freebsd4.10 and 20971 powerpc-apple-darwin5.5 required it. */ 20972#include <sys/types.h> 20973#ifdef HAVE_SYS_SOCKET_H 20974#include <sys/socket.h> 20975#endif 20976#ifdef HAVE_WS2TCPIP_H 20977#include <ws2tcpip.h> 20978#endif 20979 20980" 20981if test "x$ac_cv_type_struct_sockaddr_storage" = xyes 20982then : 20983 20984printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h 20985 20986 20987fi 20988ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " 20989 /* sys/types.h is not needed according to POSIX, but the 20990 sys/socket.h in i386-unknown-freebsd4.10 and 20991 powerpc-apple-darwin5.5 required it. */ 20992#include <sys/types.h> 20993#ifdef HAVE_SYS_SOCKET_H 20994#include <sys/socket.h> 20995#endif 20996#ifdef HAVE_WS2TCPIP_H 20997#include <ws2tcpip.h> 20998#endif 20999 21000" 21001if test "x$ac_cv_type_sa_family_t" = xyes 21002then : 21003 21004printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h 21005 21006 21007fi 21008 21009 if test $ac_cv_type_struct_sockaddr_storage = no; then 21010 HAVE_STRUCT_SOCKADDR_STORAGE=0 21011 fi 21012 if test $ac_cv_type_sa_family_t = no; then 21013 HAVE_SA_FAMILY_T=0 21014 fi 21015 if test $ac_cv_type_struct_sockaddr_storage != no; then 21016 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 21017 #ifdef HAVE_SYS_SOCKET_H 21018 #include <sys/socket.h> 21019 #endif 21020 #ifdef HAVE_WS2TCPIP_H 21021 #include <ws2tcpip.h> 21022 #endif 21023 21024" 21025if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes 21026then : 21027 21028printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h 21029 21030 21031else $as_nop 21032 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0 21033fi 21034 21035 fi 21036 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ 21037 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then 21038 SYS_SOCKET_H='sys/socket.h' 21039 fi 21040 21041 21042 21043 21044 if test $ac_cv_header_sys_socket_h != yes; then 21045 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 21046if test "x$ac_cv_header_winsock2_h" = xyes 21047then : 21048 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 21049 21050fi 21051 21052 fi 21053 if test "$ac_cv_header_winsock2_h" = yes; then 21054 HAVE_WINSOCK2_H=1 21055 UNISTD_H_HAVE_WINSOCK2_H=1 21056 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 21057 else 21058 HAVE_WINSOCK2_H=0 21059 fi 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069gl_mda_defines=' 21070#if defined _WIN32 && !defined __CYGWIN__ 21071#define access _access 21072#define chdir _chdir 21073#define chmod _chmod 21074#define close _close 21075#define creat _creat 21076#define dup _dup 21077#define dup2 _dup2 21078#define ecvt _ecvt 21079#define execl _execl 21080#define execle _execle 21081#define execlp _execlp 21082#define execv _execv 21083#define execve _execve 21084#define execvp _execvp 21085#define execvpe _execvpe 21086#define fcloseall _fcloseall 21087#define fcvt _fcvt 21088#define fdopen _fdopen 21089#define fileno _fileno 21090#define gcvt _gcvt 21091#define getcwd _getcwd 21092#define getpid _getpid 21093#define getw _getw 21094#define isatty _isatty 21095#define j0 _j0 21096#define j1 _j1 21097#define jn _jn 21098#define lfind _lfind 21099#define lsearch _lsearch 21100#define lseek _lseek 21101#define memccpy _memccpy 21102#define mkdir _mkdir 21103#define mktemp _mktemp 21104#define open _open 21105#define putenv _putenv 21106#define putw _putw 21107#define read _read 21108#define rmdir _rmdir 21109#define strdup _strdup 21110#define swab _swab 21111#define tempnam _tempnam 21112#define tzset _tzset 21113#define umask _umask 21114#define unlink _unlink 21115#define utime _utime 21116#define wcsdup _wcsdup 21117#define write _write 21118#define y0 _y0 21119#define y1 _y1 21120#define yn _yn 21121#endif 21122' 21123 21124 21125 21126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 21127printf %s "checking for complete errno.h... " >&6; } 21128if test ${gl_cv_header_errno_h_complete+y} 21129then : 21130 printf %s "(cached) " >&6 21131else $as_nop 21132 21133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21134/* end confdefs.h. */ 21135 21136#include <errno.h> 21137#if !defined ETXTBSY 21138booboo 21139#endif 21140#if !defined ENOMSG 21141booboo 21142#endif 21143#if !defined EIDRM 21144booboo 21145#endif 21146#if !defined ENOLINK 21147booboo 21148#endif 21149#if !defined EPROTO 21150booboo 21151#endif 21152#if !defined EMULTIHOP 21153booboo 21154#endif 21155#if !defined EBADMSG 21156booboo 21157#endif 21158#if !defined EOVERFLOW 21159booboo 21160#endif 21161#if !defined ENOTSUP 21162booboo 21163#endif 21164#if !defined ENETRESET 21165booboo 21166#endif 21167#if !defined ECONNABORTED 21168booboo 21169#endif 21170#if !defined ESTALE 21171booboo 21172#endif 21173#if !defined EDQUOT 21174booboo 21175#endif 21176#if !defined ECANCELED 21177booboo 21178#endif 21179#if !defined EOWNERDEAD 21180booboo 21181#endif 21182#if !defined ENOTRECOVERABLE 21183booboo 21184#endif 21185#if !defined EILSEQ 21186booboo 21187#endif 21188 21189_ACEOF 21190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21191 $EGREP "booboo" >/dev/null 2>&1 21192then : 21193 gl_cv_header_errno_h_complete=no 21194else $as_nop 21195 gl_cv_header_errno_h_complete=yes 21196fi 21197rm -rf conftest* 21198 21199 21200fi 21201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 21202printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; } 21203 if test $gl_cv_header_errno_h_complete = yes; then 21204 ERRNO_H='' 21205 else 21206 21207 21208 21209 21210 21211 21212 21213 21214 if test $gl_cv_have_include_next = yes; then 21215 gl_cv_next_errno_h='<'errno.h'>' 21216 else 21217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 21218printf %s "checking absolute name of <errno.h>... " >&6; } 21219if test ${gl_cv_next_errno_h+y} 21220then : 21221 printf %s "(cached) " >&6 21222else $as_nop 21223 21224 21225 21226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21227/* end confdefs.h. */ 21228#include <errno.h> 21229_ACEOF 21230 case "$host_os" in 21231 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21232 *) gl_absname_cpp="$ac_cpp" ;; 21233 esac 21234 21235 case "$host_os" in 21236 mingw*) 21237 gl_dirsep_regex='[/\\]' 21238 ;; 21239 *) 21240 gl_dirsep_regex='\/' 21241 ;; 21242 esac 21243 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21244 gl_header_literal_regex=`echo 'errno.h' \ 21245 | sed -e "$gl_make_literal_regex_sed"` 21246 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21247 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21248 s|^/[^/]|//&| 21249 p 21250 q 21251 }' 21252 21253 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21254 sed -n "$gl_absolute_header_sed"` 21255 21256 gl_header=$gl_cv_absolute_errno_h 21257 gl_cv_next_errno_h='"'$gl_header'"' 21258 21259 21260fi 21261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 21262printf "%s\n" "$gl_cv_next_errno_h" >&6; } 21263 fi 21264 NEXT_ERRNO_H=$gl_cv_next_errno_h 21265 21266 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21268 gl_next_as_first_directive='<'errno.h'>' 21269 else 21270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21271 gl_next_as_first_directive=$gl_cv_next_errno_h 21272 fi 21273 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 21274 21275 21276 21277 21278 ERRNO_H='errno.h' 21279 fi 21280 21281 if test -n "$ERRNO_H"; then 21282 GL_GENERATE_ERRNO_H_TRUE= 21283 GL_GENERATE_ERRNO_H_FALSE='#' 21284else 21285 GL_GENERATE_ERRNO_H_TRUE='#' 21286 GL_GENERATE_ERRNO_H_FALSE= 21287fi 21288 21289 21290 if test -n "$ERRNO_H"; then 21291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 21292printf %s "checking for EMULTIHOP value... " >&6; } 21293if test ${gl_cv_header_errno_h_EMULTIHOP+y} 21294then : 21295 printf %s "(cached) " >&6 21296else $as_nop 21297 21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21299/* end confdefs.h. */ 21300 21301#include <errno.h> 21302#ifdef EMULTIHOP 21303yes 21304#endif 21305 21306_ACEOF 21307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21308 $EGREP "yes" >/dev/null 2>&1 21309then : 21310 gl_cv_header_errno_h_EMULTIHOP=yes 21311else $as_nop 21312 gl_cv_header_errno_h_EMULTIHOP=no 21313fi 21314rm -rf conftest* 21315 21316 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 21317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21318/* end confdefs.h. */ 21319 21320#define _XOPEN_SOURCE_EXTENDED 1 21321#include <errno.h> 21322#ifdef EMULTIHOP 21323yes 21324#endif 21325 21326_ACEOF 21327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21328 $EGREP "yes" >/dev/null 2>&1 21329then : 21330 gl_cv_header_errno_h_EMULTIHOP=hidden 21331fi 21332rm -rf conftest* 21333 21334 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 21335 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 21336#define _XOPEN_SOURCE_EXTENDED 1 21337#include <errno.h> 21338/* The following two lines are a workaround against an autoconf-2.52 bug. */ 21339#include <stdio.h> 21340#include <stdlib.h> 21341" 21342then : 21343 21344fi 21345 21346 fi 21347 fi 21348 21349fi 21350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 21351printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 21352 case $gl_cv_header_errno_h_EMULTIHOP in 21353 yes | no) 21354 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 21355 ;; 21356 *) 21357 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 21358 ;; 21359 esac 21360 21361 21362 fi 21363 21364 21365 if test -n "$ERRNO_H"; then 21366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 21367printf %s "checking for ENOLINK value... " >&6; } 21368if test ${gl_cv_header_errno_h_ENOLINK+y} 21369then : 21370 printf %s "(cached) " >&6 21371else $as_nop 21372 21373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21374/* end confdefs.h. */ 21375 21376#include <errno.h> 21377#ifdef ENOLINK 21378yes 21379#endif 21380 21381_ACEOF 21382if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21383 $EGREP "yes" >/dev/null 2>&1 21384then : 21385 gl_cv_header_errno_h_ENOLINK=yes 21386else $as_nop 21387 gl_cv_header_errno_h_ENOLINK=no 21388fi 21389rm -rf conftest* 21390 21391 if test $gl_cv_header_errno_h_ENOLINK = no; then 21392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21393/* end confdefs.h. */ 21394 21395#define _XOPEN_SOURCE_EXTENDED 1 21396#include <errno.h> 21397#ifdef ENOLINK 21398yes 21399#endif 21400 21401_ACEOF 21402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21403 $EGREP "yes" >/dev/null 2>&1 21404then : 21405 gl_cv_header_errno_h_ENOLINK=hidden 21406fi 21407rm -rf conftest* 21408 21409 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 21410 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 21411#define _XOPEN_SOURCE_EXTENDED 1 21412#include <errno.h> 21413/* The following two lines are a workaround against an autoconf-2.52 bug. */ 21414#include <stdio.h> 21415#include <stdlib.h> 21416" 21417then : 21418 21419fi 21420 21421 fi 21422 fi 21423 21424fi 21425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 21426printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; } 21427 case $gl_cv_header_errno_h_ENOLINK in 21428 yes | no) 21429 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 21430 ;; 21431 *) 21432 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 21433 ;; 21434 esac 21435 21436 21437 fi 21438 21439 21440 if test -n "$ERRNO_H"; then 21441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 21442printf %s "checking for EOVERFLOW value... " >&6; } 21443if test ${gl_cv_header_errno_h_EOVERFLOW+y} 21444then : 21445 printf %s "(cached) " >&6 21446else $as_nop 21447 21448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21449/* end confdefs.h. */ 21450 21451#include <errno.h> 21452#ifdef EOVERFLOW 21453yes 21454#endif 21455 21456_ACEOF 21457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21458 $EGREP "yes" >/dev/null 2>&1 21459then : 21460 gl_cv_header_errno_h_EOVERFLOW=yes 21461else $as_nop 21462 gl_cv_header_errno_h_EOVERFLOW=no 21463fi 21464rm -rf conftest* 21465 21466 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 21467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21468/* end confdefs.h. */ 21469 21470#define _XOPEN_SOURCE_EXTENDED 1 21471#include <errno.h> 21472#ifdef EOVERFLOW 21473yes 21474#endif 21475 21476_ACEOF 21477if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21478 $EGREP "yes" >/dev/null 2>&1 21479then : 21480 gl_cv_header_errno_h_EOVERFLOW=hidden 21481fi 21482rm -rf conftest* 21483 21484 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 21485 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 21486#define _XOPEN_SOURCE_EXTENDED 1 21487#include <errno.h> 21488/* The following two lines are a workaround against an autoconf-2.52 bug. */ 21489#include <stdio.h> 21490#include <stdlib.h> 21491" 21492then : 21493 21494fi 21495 21496 fi 21497 fi 21498 21499fi 21500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 21501printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 21502 case $gl_cv_header_errno_h_EOVERFLOW in 21503 yes | no) 21504 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 21505 ;; 21506 *) 21507 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 21508 ;; 21509 esac 21510 21511 21512 fi 21513 21514 21515# The Clang compiler raises a warning for an undeclared identifier that matches 21516# a compiler builtin function. All extant Clang versions are affected, as of 21517# Clang 3.6.0. Test a builtin known to every version. This problem affects the 21518# C and Objective C languages, but Clang does report an error under C++ and 21519# Objective C++. 21520# 21521# Passing -fno-builtin to the compiler would suppress this problem. That 21522# strategy would have the advantage of being insensitive to stray warnings, but 21523# it would make tests less realistic. 21524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5 21525printf %s "checking how $CC reports undeclared, standard C functions... " >&6; } 21526if test ${ac_cv_c_decl_report+y} 21527then : 21528 printf %s "(cached) " >&6 21529else $as_nop 21530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21531/* end confdefs.h. */ 21532 21533int 21534main (void) 21535{ 21536(void) strchr; 21537 ; 21538 return 0; 21539} 21540_ACEOF 21541if ac_fn_c_try_compile "$LINENO" 21542then : 21543 if test -s conftest.err 21544then : 21545 # For AC_CHECK_DECL to react to warnings, the compiler must be silent on 21546 # valid AC_CHECK_DECL input. No library function is consistently available 21547 # on freestanding implementations, so test against a dummy declaration. 21548 # Include always-available headers on the off chance that they somehow 21549 # elicit warnings. 21550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21551/* end confdefs.h. */ 21552#include <float.h> 21553#include <limits.h> 21554#include <stdarg.h> 21555#include <stddef.h> 21556extern void ac_decl (int, char *); 21557int 21558main (void) 21559{ 21560#ifdef __cplusplus 21561 (void) ac_decl ((int) 0, (char *) 0); 21562 (void) ac_decl; 21563#else 21564 (void) ac_decl; 21565#endif 21566 21567 ; 21568 return 0; 21569} 21570_ACEOF 21571if ac_fn_c_try_compile "$LINENO" 21572then : 21573 if test -s conftest.err 21574then : 21575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21576printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21577as_fn_error $? "cannot detect from compiler exit status or warnings 21578See \`config.log' for more details" "$LINENO" 5; } 21579else $as_nop 21580 ac_cv_c_decl_report=warning 21581fi 21582else $as_nop 21583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21584printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21585as_fn_error $? "cannot compile a simple declaration test 21586See \`config.log' for more details" "$LINENO" 5; } 21587fi 21588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21589else $as_nop 21590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21591printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21592as_fn_error $? "compiler does not report undeclared identifiers 21593See \`config.log' for more details" "$LINENO" 5; } 21594fi 21595else $as_nop 21596 ac_cv_c_decl_report=error 21597fi 21598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21599fi 21600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5 21601printf "%s\n" "$ac_cv_c_decl_report" >&6; } 21602 21603case $ac_cv_c_decl_report in 21604 warning) ac_c_decl_warn_flag=yes ;; 21605 *) ac_c_decl_warn_flag= ;; 21606esac 21607 21608ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 21609if test "x$ac_cv_have_decl_strerror_r" = xyes 21610then : 21611 ac_have_decl=1 21612else $as_nop 21613 ac_have_decl=0 21614fi 21615 21616printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h 21617 21618 21619if test $ac_cv_have_decl_strerror_r = yes; then 21620 # For backward compatibility's sake, define HAVE_STRERROR_R. 21621 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well 21622 # as AC_CHECK_DECLS_ONCE.) 21623 21624printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h 21625 21626fi 21627 21628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 21629printf %s "checking whether strerror_r returns char *... " >&6; } 21630if test ${ac_cv_func_strerror_r_char_p+y} 21631then : 21632 printf %s "(cached) " >&6 21633else $as_nop 21634 21635 ac_cv_func_strerror_r_char_p=no 21636 if test $ac_cv_have_decl_strerror_r = yes; then 21637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21638/* end confdefs.h. */ 21639#include <string.h> 21640int 21641main (void) 21642{ 21643 21644 char buf[100]; 21645 char x = *strerror_r (0, buf, sizeof buf); 21646 char *p = strerror_r (0, buf, sizeof buf); 21647 return !p || x; 21648 21649 ; 21650 return 0; 21651} 21652_ACEOF 21653if ac_fn_c_try_compile "$LINENO" 21654then : 21655 ac_cv_func_strerror_r_char_p=yes 21656fi 21657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21658 21659 fi 21660 21661fi 21662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 21663printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } 21664if test $ac_cv_func_strerror_r_char_p = yes; then 21665 21666printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h 21667 21668fi 21669 21670 21671 XGETTEXT_EXTRA_OPTIONS= 21672 21673 21674 21675 21676 21677 GNULIB_CREAT=0; 21678 GNULIB_FCNTL=0; 21679 GNULIB_NONBLOCKING=0; 21680 GNULIB_OPEN=0; 21681 GNULIB_OPENAT=0; 21682 GNULIB_MDA_CREAT=1; 21683 GNULIB_MDA_OPEN=1; 21684 HAVE_FCNTL=1; 21685 HAVE_OPENAT=1; 21686 REPLACE_CREAT=0; 21687 REPLACE_FCNTL=0; 21688 REPLACE_OPEN=0; 21689 REPLACE_OPENAT=0; 21690 21691 21692 21693 21694 21695 21696 21697 21698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 21699printf %s "checking for working fcntl.h... " >&6; } 21700if test ${gl_cv_header_working_fcntl_h+y} 21701then : 21702 printf %s "(cached) " >&6 21703else $as_nop 21704 if test "$cross_compiling" = yes 21705then : 21706 case "$host_os" in 21707 # Guess 'no' on native Windows. 21708 mingw*) gl_cv_header_working_fcntl_h='no' ;; 21709 *) gl_cv_header_working_fcntl_h=cross-compiling ;; 21710 esac 21711 21712else $as_nop 21713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21714/* end confdefs.h. */ 21715#include <sys/types.h> 21716 #include <sys/stat.h> 21717 #if HAVE_UNISTD_H 21718 # include <unistd.h> 21719 #else /* on Windows with MSVC */ 21720 # include <io.h> 21721 # include <stdlib.h> 21722 # defined sleep(n) _sleep ((n) * 1000) 21723 #endif 21724 #include <fcntl.h> 21725 21726 21727$gl_mda_defines 21728 21729 #ifndef O_NOATIME 21730 #define O_NOATIME 0 21731 #endif 21732 #ifndef O_NOFOLLOW 21733 #define O_NOFOLLOW 0 21734 #endif 21735 static int const constants[] = 21736 { 21737 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 21738 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 21739 }; 21740 21741int 21742main (void) 21743{ 21744 21745 int result = !constants; 21746 #if HAVE_SYMLINK 21747 { 21748 static char const sym[] = "conftest.sym"; 21749 if (symlink ("/dev/null", sym) != 0) 21750 result |= 2; 21751 else 21752 { 21753 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 21754 if (fd >= 0) 21755 { 21756 close (fd); 21757 result |= 4; 21758 } 21759 } 21760 if (unlink (sym) != 0 || symlink (".", sym) != 0) 21761 result |= 2; 21762 else 21763 { 21764 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 21765 if (fd >= 0) 21766 { 21767 close (fd); 21768 result |= 4; 21769 } 21770 } 21771 unlink (sym); 21772 } 21773 #endif 21774 { 21775 static char const file[] = "confdefs.h"; 21776 int fd = open (file, O_RDONLY | O_NOATIME); 21777 if (fd < 0) 21778 result |= 8; 21779 else 21780 { 21781 struct stat st0; 21782 if (fstat (fd, &st0) != 0) 21783 result |= 16; 21784 else 21785 { 21786 char c; 21787 sleep (1); 21788 if (read (fd, &c, 1) != 1) 21789 result |= 24; 21790 else 21791 { 21792 if (close (fd) != 0) 21793 result |= 32; 21794 else 21795 { 21796 struct stat st1; 21797 if (stat (file, &st1) != 0) 21798 result |= 40; 21799 else 21800 if (st0.st_atime != st1.st_atime) 21801 result |= 64; 21802 } 21803 } 21804 } 21805 } 21806 } 21807 return result; 21808 ; 21809 return 0; 21810} 21811_ACEOF 21812if ac_fn_c_try_run "$LINENO" 21813then : 21814 gl_cv_header_working_fcntl_h=yes 21815else $as_nop 21816 case $? in #( 21817 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 21818 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 21819 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 21820 *) gl_cv_header_working_fcntl_h='no';; 21821 esac 21822fi 21823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21824 conftest.$ac_objext conftest.beam conftest.$ac_ext 21825fi 21826 21827 21828fi 21829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 21830printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; } 21831 21832 case $gl_cv_header_working_fcntl_h in #( 21833 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 21834 *) ac_val=1;; 21835 esac 21836 21837printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h 21838 21839 21840 case $gl_cv_header_working_fcntl_h in #( 21841 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 21842 *) ac_val=1;; 21843 esac 21844 21845printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h 21846 21847 21848 21849 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 21850" 21851if test "x$ac_cv_type_pid_t" = xyes 21852then : 21853 21854else $as_nop 21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21856/* end confdefs.h. */ 21857 21858 #if defined _WIN64 && !defined __CYGWIN__ 21859 LLP64 21860 #endif 21861 21862int 21863main (void) 21864{ 21865 21866 ; 21867 return 0; 21868} 21869 21870_ACEOF 21871if ac_fn_c_try_compile "$LINENO" 21872then : 21873 ac_pid_type='int' 21874else $as_nop 21875 ac_pid_type='__int64' 21876fi 21877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21878 21879printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 21880 21881 21882fi 21883 21884 21885ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 21886if test "x$ac_cv_type_mode_t" = xyes 21887then : 21888 21889else $as_nop 21890 21891printf "%s\n" "#define mode_t int" >>confdefs.h 21892 21893fi 21894 21895 21896 GNULIB_DPRINTF=0; 21897 GNULIB_FCLOSE=0; 21898 GNULIB_FDOPEN=0; 21899 GNULIB_FFLUSH=0; 21900 GNULIB_FGETC=0; 21901 GNULIB_FGETS=0; 21902 GNULIB_FOPEN=0; 21903 GNULIB_FPRINTF=0; 21904 GNULIB_FPRINTF_POSIX=0; 21905 GNULIB_FPURGE=0; 21906 GNULIB_FPUTC=0; 21907 GNULIB_FPUTS=0; 21908 GNULIB_FREAD=0; 21909 GNULIB_FREOPEN=0; 21910 GNULIB_FSCANF=0; 21911 GNULIB_FSEEK=0; 21912 GNULIB_FSEEKO=0; 21913 GNULIB_FTELL=0; 21914 GNULIB_FTELLO=0; 21915 GNULIB_FWRITE=0; 21916 GNULIB_GETC=0; 21917 GNULIB_GETCHAR=0; 21918 GNULIB_GETDELIM=0; 21919 GNULIB_GETLINE=0; 21920 GNULIB_OBSTACK_PRINTF=0; 21921 GNULIB_OBSTACK_PRINTF_POSIX=0; 21922 GNULIB_PCLOSE=0; 21923 GNULIB_PERROR=0; 21924 GNULIB_POPEN=0; 21925 GNULIB_PRINTF=0; 21926 GNULIB_PRINTF_POSIX=0; 21927 GNULIB_PUTC=0; 21928 GNULIB_PUTCHAR=0; 21929 GNULIB_PUTS=0; 21930 GNULIB_REMOVE=0; 21931 GNULIB_RENAME=0; 21932 GNULIB_RENAMEAT=0; 21933 GNULIB_SCANF=0; 21934 GNULIB_SNPRINTF=0; 21935 GNULIB_SPRINTF_POSIX=0; 21936 GNULIB_STDIO_H_NONBLOCKING=0; 21937 GNULIB_STDIO_H_SIGPIPE=0; 21938 GNULIB_TMPFILE=0; 21939 GNULIB_VASPRINTF=0; 21940 GNULIB_VFSCANF=0; 21941 GNULIB_VSCANF=0; 21942 GNULIB_VDPRINTF=0; 21943 GNULIB_VFPRINTF=0; 21944 GNULIB_VFPRINTF_POSIX=0; 21945 GNULIB_VPRINTF=0; 21946 GNULIB_VPRINTF_POSIX=0; 21947 GNULIB_VSNPRINTF=0; 21948 GNULIB_VSPRINTF_POSIX=0; 21949 GNULIB_MDA_FCLOSEALL=1; 21950 GNULIB_MDA_FDOPEN=1; 21951 GNULIB_MDA_FILENO=1; 21952 GNULIB_MDA_GETW=1; 21953 GNULIB_MDA_PUTW=1; 21954 GNULIB_MDA_TEMPNAM=1; 21955 HAVE_DECL_FCLOSEALL=1; 21956 HAVE_DECL_FPURGE=1; 21957 HAVE_DECL_FSEEKO=1; 21958 HAVE_DECL_FTELLO=1; 21959 HAVE_DECL_GETDELIM=1; 21960 HAVE_DECL_GETLINE=1; 21961 HAVE_DECL_OBSTACK_PRINTF=1; 21962 HAVE_DECL_SNPRINTF=1; 21963 HAVE_DECL_VSNPRINTF=1; 21964 HAVE_DPRINTF=1; 21965 HAVE_FSEEKO=1; 21966 HAVE_FTELLO=1; 21967 HAVE_PCLOSE=1; 21968 HAVE_POPEN=1; 21969 HAVE_RENAMEAT=1; 21970 HAVE_VASPRINTF=1; 21971 HAVE_VDPRINTF=1; 21972 REPLACE_DPRINTF=0; 21973 REPLACE_FCLOSE=0; 21974 REPLACE_FDOPEN=0; 21975 REPLACE_FFLUSH=0; 21976 REPLACE_FOPEN=0; 21977 REPLACE_FPRINTF=0; 21978 REPLACE_FPURGE=0; 21979 REPLACE_FREOPEN=0; 21980 REPLACE_FSEEK=0; 21981 REPLACE_FSEEKO=0; 21982 REPLACE_FTELL=0; 21983 REPLACE_FTELLO=0; 21984 REPLACE_GETDELIM=0; 21985 REPLACE_GETLINE=0; 21986 REPLACE_OBSTACK_PRINTF=0; 21987 REPLACE_PERROR=0; 21988 REPLACE_POPEN=0; 21989 REPLACE_PRINTF=0; 21990 REPLACE_REMOVE=0; 21991 REPLACE_RENAME=0; 21992 REPLACE_RENAMEAT=0; 21993 REPLACE_SNPRINTF=0; 21994 REPLACE_SPRINTF=0; 21995 REPLACE_STDIO_READ_FUNCS=0; 21996 REPLACE_STDIO_WRITE_FUNCS=0; 21997 REPLACE_TMPFILE=0; 21998 REPLACE_VASPRINTF=0; 21999 REPLACE_VDPRINTF=0; 22000 REPLACE_VFPRINTF=0; 22001 REPLACE_VPRINTF=0; 22002 REPLACE_VSNPRINTF=0; 22003 REPLACE_VSPRINTF=0; 22004 22005 22006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5 22007printf %s "checking whether stdin defaults to large file offsets... " >&6; } 22008if test ${gl_cv_var_stdin_large_offset+y} 22009then : 22010 printf %s "(cached) " >&6 22011else $as_nop 22012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22013/* end confdefs.h. */ 22014#include <stdio.h> 22015int 22016main (void) 22017{ 22018#if defined __SL64 && defined __SCLE /* cygwin */ 22019 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making 22020 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and 22021 it is easier to do a version check than building a runtime test. */ 22022# include <cygwin/version.h> 22023# if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25) 22024 choke me 22025# endif 22026#endif 22027 ; 22028 return 0; 22029} 22030_ACEOF 22031if ac_fn_c_try_link "$LINENO" 22032then : 22033 gl_cv_var_stdin_large_offset=yes 22034else $as_nop 22035 gl_cv_var_stdin_large_offset=no 22036fi 22037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22038 conftest$ac_exeext conftest.$ac_ext 22039fi 22040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5 22041printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; } 22042 22043 22044 22045 22046 22047 case "$host_os" in 22048 mingw*) 22049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 22050printf %s "checking for 64-bit off_t... " >&6; } 22051if test ${gl_cv_type_off_t_64+y} 22052then : 22053 printf %s "(cached) " >&6 22054else $as_nop 22055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22056/* end confdefs.h. */ 22057#include <sys/types.h> 22058 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 22059 22060int 22061main (void) 22062{ 22063 22064 ; 22065 return 0; 22066} 22067_ACEOF 22068if ac_fn_c_try_compile "$LINENO" 22069then : 22070 gl_cv_type_off_t_64=yes 22071else $as_nop 22072 gl_cv_type_off_t_64=no 22073fi 22074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22075 22076fi 22077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 22078printf "%s\n" "$gl_cv_type_off_t_64" >&6; } 22079 if test $gl_cv_type_off_t_64 = no; then 22080 WINDOWS_64_BIT_OFF_T=1 22081 else 22082 WINDOWS_64_BIT_OFF_T=0 22083 fi 22084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 22085printf %s "checking for 64-bit st_size... " >&6; } 22086if test ${gl_cv_member_st_size_64+y} 22087then : 22088 printf %s "(cached) " >&6 22089else $as_nop 22090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22091/* end confdefs.h. */ 22092#include <sys/types.h> 22093 struct stat buf; 22094 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; 22095 22096int 22097main (void) 22098{ 22099 22100 ; 22101 return 0; 22102} 22103_ACEOF 22104if ac_fn_c_try_compile "$LINENO" 22105then : 22106 gl_cv_member_st_size_64=yes 22107else $as_nop 22108 gl_cv_member_st_size_64=no 22109fi 22110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22111 22112fi 22113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 22114printf "%s\n" "$gl_cv_member_st_size_64" >&6; } 22115 if test $gl_cv_member_st_size_64 = no; then 22116 WINDOWS_64_BIT_ST_SIZE=1 22117 else 22118 WINDOWS_64_BIT_ST_SIZE=0 22119 fi 22120 ;; 22121 *) 22122 WINDOWS_64_BIT_OFF_T=0 22123 WINDOWS_64_BIT_ST_SIZE=0 22124 ;; 22125 esac 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 if test $gl_cv_have_include_next = yes; then 22148 gl_cv_next_sys_types_h='<'sys/types.h'>' 22149 else 22150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 22151printf %s "checking absolute name of <sys/types.h>... " >&6; } 22152if test ${gl_cv_next_sys_types_h+y} 22153then : 22154 printf %s "(cached) " >&6 22155else $as_nop 22156 22157 22158 22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22160/* end confdefs.h. */ 22161#include <sys/types.h> 22162_ACEOF 22163 case "$host_os" in 22164 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22165 *) gl_absname_cpp="$ac_cpp" ;; 22166 esac 22167 22168 case "$host_os" in 22169 mingw*) 22170 gl_dirsep_regex='[/\\]' 22171 ;; 22172 *) 22173 gl_dirsep_regex='\/' 22174 ;; 22175 esac 22176 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22177 gl_header_literal_regex=`echo 'sys/types.h' \ 22178 | sed -e "$gl_make_literal_regex_sed"` 22179 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22180 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22181 s|^/[^/]|//&| 22182 p 22183 q 22184 }' 22185 22186 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22187 sed -n "$gl_absolute_header_sed"` 22188 22189 gl_header=$gl_cv_absolute_sys_types_h 22190 gl_cv_next_sys_types_h='"'$gl_header'"' 22191 22192 22193fi 22194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 22195printf "%s\n" "$gl_cv_next_sys_types_h" >&6; } 22196 fi 22197 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 22198 22199 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22201 gl_next_as_first_directive='<'sys/types.h'>' 22202 else 22203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22204 gl_next_as_first_directive=$gl_cv_next_sys_types_h 22205 fi 22206 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 WINDOWS_STAT_INODES=0 22220 22221 22222 22223ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" 22224if test "x$ac_cv_have_decl_fseeko" = xyes 22225then : 22226 ac_have_decl=1 22227else $as_nop 22228 ac_have_decl=0 22229fi 22230 22231printf "%s\n" "#define HAVE_DECL_FSEEKO $ac_have_decl" >>confdefs.h 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 22242printf %s "checking for fseeko... " >&6; } 22243if test ${gl_cv_func_fseeko+y} 22244then : 22245 printf %s "(cached) " >&6 22246else $as_nop 22247 22248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22249/* end confdefs.h. */ 22250#include <stdio.h> 22251 22252int 22253main (void) 22254{ 22255fseeko (stdin, 0, 0); 22256 ; 22257 return 0; 22258} 22259_ACEOF 22260if ac_fn_c_try_link "$LINENO" 22261then : 22262 gl_cv_func_fseeko=yes 22263else $as_nop 22264 gl_cv_func_fseeko=no 22265fi 22266rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22267 conftest$ac_exeext conftest.$ac_ext 22268 22269fi 22270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 22271printf "%s\n" "$gl_cv_func_fseeko" >&6; } 22272 22273 22274 if test $ac_cv_have_decl_fseeko = no; then 22275 HAVE_DECL_FSEEKO=0 22276 fi 22277 22278 if test $gl_cv_func_fseeko = no; then 22279 HAVE_FSEEKO=0 22280 else 22281 if test $WINDOWS_64_BIT_OFF_T = 1; then 22282 REPLACE_FSEEKO=1 22283 fi 22284 if test $gl_cv_var_stdin_large_offset = no; then 22285 REPLACE_FSEEKO=1 22286 fi 22287 22288 fi 22289 22290 22291 GNULIB_FCHMODAT=0; 22292 GNULIB_FSTAT=0; 22293 GNULIB_FSTATAT=0; 22294 GNULIB_FUTIMENS=0; 22295 GNULIB_GETUMASK=0; 22296 GNULIB_LCHMOD=0; 22297 GNULIB_LSTAT=0; 22298 GNULIB_MKDIR=0; 22299 GNULIB_MKDIRAT=0; 22300 GNULIB_MKFIFO=0; 22301 GNULIB_MKFIFOAT=0; 22302 GNULIB_MKNOD=0; 22303 GNULIB_MKNODAT=0; 22304 GNULIB_STAT=0; 22305 GNULIB_UTIMENSAT=0; 22306 GNULIB_OVERRIDES_STRUCT_STAT=0; 22307 GNULIB_MDA_CHMOD=1; 22308 GNULIB_MDA_MKDIR=1; 22309 GNULIB_MDA_UMASK=1; 22310 HAVE_FCHMODAT=1; 22311 HAVE_FSTATAT=1; 22312 HAVE_FUTIMENS=1; 22313 HAVE_GETUMASK=1; 22314 HAVE_LCHMOD=1; 22315 HAVE_LSTAT=1; 22316 HAVE_MKDIRAT=1; 22317 HAVE_MKFIFO=1; 22318 HAVE_MKFIFOAT=1; 22319 HAVE_MKNOD=1; 22320 HAVE_MKNODAT=1; 22321 HAVE_UTIMENSAT=1; 22322 REPLACE_FCHMODAT=0; 22323 REPLACE_FSTAT=0; 22324 REPLACE_FSTATAT=0; 22325 REPLACE_FUTIMENS=0; 22326 REPLACE_LSTAT=0; 22327 REPLACE_MKDIR=0; 22328 REPLACE_MKFIFO=0; 22329 REPLACE_MKNOD=0; 22330 REPLACE_STAT=0; 22331 REPLACE_UTIMENSAT=0; 22332 22333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 22334printf %s "checking whether stat file-mode macros are broken... " >&6; } 22335if test ${ac_cv_header_stat_broken+y} 22336then : 22337 printf %s "(cached) " >&6 22338else $as_nop 22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22340/* end confdefs.h. */ 22341#include <sys/types.h> 22342#include <sys/stat.h> 22343 22344#if defined S_ISBLK && defined S_IFDIR 22345extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 22346#endif 22347 22348#if defined S_ISBLK && defined S_IFCHR 22349extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 22350#endif 22351 22352#if defined S_ISLNK && defined S_IFREG 22353extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 22354#endif 22355 22356#if defined S_ISSOCK && defined S_IFREG 22357extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 22358#endif 22359 22360_ACEOF 22361if ac_fn_c_try_compile "$LINENO" 22362then : 22363 ac_cv_header_stat_broken=no 22364else $as_nop 22365 ac_cv_header_stat_broken=yes 22366fi 22367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22368fi 22369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 22370printf "%s\n" "$ac_cv_header_stat_broken" >&6; } 22371if test $ac_cv_header_stat_broken = yes; then 22372 22373printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h 22374 22375fi 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 if test $gl_cv_have_include_next = yes; then 22392 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 22393 else 22394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 22395printf %s "checking absolute name of <sys/stat.h>... " >&6; } 22396if test ${gl_cv_next_sys_stat_h+y} 22397then : 22398 printf %s "(cached) " >&6 22399else $as_nop 22400 22401 if test $ac_cv_header_sys_stat_h = yes; then 22402 22403 22404 22405 22406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22407/* end confdefs.h. */ 22408#include <sys/stat.h> 22409_ACEOF 22410 case "$host_os" in 22411 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22412 *) gl_absname_cpp="$ac_cpp" ;; 22413 esac 22414 22415 case "$host_os" in 22416 mingw*) 22417 gl_dirsep_regex='[/\\]' 22418 ;; 22419 *) 22420 gl_dirsep_regex='\/' 22421 ;; 22422 esac 22423 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22424 gl_header_literal_regex=`echo 'sys/stat.h' \ 22425 | sed -e "$gl_make_literal_regex_sed"` 22426 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22427 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22428 s|^/[^/]|//&| 22429 p 22430 q 22431 }' 22432 22433 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22434 sed -n "$gl_absolute_header_sed"` 22435 22436 gl_header=$gl_cv_absolute_sys_stat_h 22437 gl_cv_next_sys_stat_h='"'$gl_header'"' 22438 else 22439 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 22440 fi 22441 22442 22443fi 22444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 22445printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; } 22446 fi 22447 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 22448 22449 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22450 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22451 gl_next_as_first_directive='<'sys/stat.h'>' 22452 else 22453 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22454 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 22455 fi 22456 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 22457 22458 22459 22460 22461 22462 22463 22464 22465 WINDOWS_STAT_TIMESPEC=0 22466 22467 22468 22469 22470 22471 22472 22473 22474 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 22475 #include <sys/stat.h> 22476" 22477if test "x$ac_cv_type_nlink_t" = xyes 22478then : 22479 22480else $as_nop 22481 22482printf "%s\n" "#define nlink_t int" >>confdefs.h 22483 22484fi 22485 22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 case "$host_os" in 22496 mingw*) 22497 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default" 22498if test "x$ac_cv_header_sdkddkver_h" = xyes 22499then : 22500 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h 22501 22502fi 22503 22504 ;; 22505 esac 22506 22507 22508 GNULIB_GETADDRINFO=0; 22509 HAVE_STRUCT_ADDRINFO=1; 22510 HAVE_DECL_FREEADDRINFO=1; 22511 HAVE_DECL_GAI_STRERROR=1; 22512 HAVE_DECL_GETADDRINFO=1; 22513 HAVE_DECL_GETNAMEINFO=1; 22514 REPLACE_GAI_STRERROR=0; 22515 REPLACE_GETADDRINFO=0; 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 if test $gl_cv_have_include_next = yes; then 22530 gl_cv_next_netdb_h='<'netdb.h'>' 22531 else 22532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5 22533printf %s "checking absolute name of <netdb.h>... " >&6; } 22534if test ${gl_cv_next_netdb_h+y} 22535then : 22536 printf %s "(cached) " >&6 22537else $as_nop 22538 22539 if test $ac_cv_header_netdb_h = yes; then 22540 22541 22542 22543 22544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22545/* end confdefs.h. */ 22546#include <netdb.h> 22547_ACEOF 22548 case "$host_os" in 22549 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22550 *) gl_absname_cpp="$ac_cpp" ;; 22551 esac 22552 22553 case "$host_os" in 22554 mingw*) 22555 gl_dirsep_regex='[/\\]' 22556 ;; 22557 *) 22558 gl_dirsep_regex='\/' 22559 ;; 22560 esac 22561 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22562 gl_header_literal_regex=`echo 'netdb.h' \ 22563 | sed -e "$gl_make_literal_regex_sed"` 22564 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22565 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22566 s|^/[^/]|//&| 22567 p 22568 q 22569 }' 22570 22571 gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22572 sed -n "$gl_absolute_header_sed"` 22573 22574 gl_header=$gl_cv_absolute_netdb_h 22575 gl_cv_next_netdb_h='"'$gl_header'"' 22576 else 22577 gl_cv_next_netdb_h='<'netdb.h'>' 22578 fi 22579 22580 22581fi 22582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5 22583printf "%s\n" "$gl_cv_next_netdb_h" >&6; } 22584 fi 22585 NEXT_NETDB_H=$gl_cv_next_netdb_h 22586 22587 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22589 gl_next_as_first_directive='<'netdb.h'>' 22590 else 22591 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22592 gl_next_as_first_directive=$gl_cv_next_netdb_h 22593 fi 22594 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive 22595 22596 22597 22598 22599 if test $ac_cv_header_netdb_h = yes; then 22600 HAVE_NETDB_H=1 22601 else 22602 HAVE_NETDB_H=0 22603 fi 22604 22605 22606 22607 22608 22609 22610 22611 HOSTENT_LIB= 22612 gl_saved_libs="$LIBS" 22613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 22614printf %s "checking for library containing gethostbyname... " >&6; } 22615if test ${ac_cv_search_gethostbyname+y} 22616then : 22617 printf %s "(cached) " >&6 22618else $as_nop 22619 ac_func_search_save_LIBS=$LIBS 22620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22621/* end confdefs.h. */ 22622 22623/* Override any GCC internal prototype to avoid an error. 22624 Use char because int might match the return type of a GCC 22625 builtin and then its argument prototype would still apply. */ 22626char gethostbyname (); 22627int 22628main (void) 22629{ 22630return gethostbyname (); 22631 ; 22632 return 0; 22633} 22634_ACEOF 22635for ac_lib in '' nsl network net 22636do 22637 if test -z "$ac_lib"; then 22638 ac_res="none required" 22639 else 22640 ac_res=-l$ac_lib 22641 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22642 fi 22643 if ac_fn_c_try_link "$LINENO" 22644then : 22645 ac_cv_search_gethostbyname=$ac_res 22646fi 22647rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22648 conftest$ac_exeext 22649 if test ${ac_cv_search_gethostbyname+y} 22650then : 22651 break 22652fi 22653done 22654if test ${ac_cv_search_gethostbyname+y} 22655then : 22656 22657else $as_nop 22658 ac_cv_search_gethostbyname=no 22659fi 22660rm conftest.$ac_ext 22661LIBS=$ac_func_search_save_LIBS 22662fi 22663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 22664printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 22665ac_res=$ac_cv_search_gethostbyname 22666if test "$ac_res" != no 22667then : 22668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22669 if test "$ac_cv_search_gethostbyname" != "none required"; then 22670 HOSTENT_LIB="$ac_cv_search_gethostbyname" 22671 fi 22672fi 22673 22674 LIBS="$gl_saved_libs" 22675 if test -z "$HOSTENT_LIB"; then 22676 22677 for ac_func in gethostbyname 22678do : 22679 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 22680if test "x$ac_cv_func_gethostbyname" = xyes 22681then : 22682 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 22683 22684else $as_nop 22685 22686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5 22687printf %s "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; } 22688if test ${gl_cv_w32_gethostbyname+y} 22689then : 22690 printf %s "(cached) " >&6 22691else $as_nop 22692 gl_cv_w32_gethostbyname=no 22693 gl_save_LIBS="$LIBS" 22694 LIBS="$LIBS -lws2_32" 22695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22696/* end confdefs.h. */ 22697 22698#ifdef HAVE_WINSOCK2_H 22699#include <winsock2.h> 22700#endif 22701#include <stddef.h> 22702 22703int 22704main (void) 22705{ 22706gethostbyname(NULL); 22707 ; 22708 return 0; 22709} 22710_ACEOF 22711if ac_fn_c_try_link "$LINENO" 22712then : 22713 gl_cv_w32_gethostbyname=yes 22714fi 22715rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22716 conftest$ac_exeext conftest.$ac_ext 22717 LIBS="$gl_save_LIBS" 22718 22719fi 22720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5 22721printf "%s\n" "$gl_cv_w32_gethostbyname" >&6; } 22722 if test "$gl_cv_w32_gethostbyname" = "yes"; then 22723 HOSTENT_LIB="-lws2_32" 22724 fi 22725 22726fi 22727 22728done 22729 fi 22730 22731 22732 22733 SERVENT_LIB= 22734 gl_saved_libs="$LIBS" 22735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 22736printf %s "checking for library containing getservbyname... " >&6; } 22737if test ${ac_cv_search_getservbyname+y} 22738then : 22739 printf %s "(cached) " >&6 22740else $as_nop 22741 ac_func_search_save_LIBS=$LIBS 22742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22743/* end confdefs.h. */ 22744 22745/* Override any GCC internal prototype to avoid an error. 22746 Use char because int might match the return type of a GCC 22747 builtin and then its argument prototype would still apply. */ 22748char getservbyname (); 22749int 22750main (void) 22751{ 22752return getservbyname (); 22753 ; 22754 return 0; 22755} 22756_ACEOF 22757for ac_lib in '' socket network net 22758do 22759 if test -z "$ac_lib"; then 22760 ac_res="none required" 22761 else 22762 ac_res=-l$ac_lib 22763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22764 fi 22765 if ac_fn_c_try_link "$LINENO" 22766then : 22767 ac_cv_search_getservbyname=$ac_res 22768fi 22769rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22770 conftest$ac_exeext 22771 if test ${ac_cv_search_getservbyname+y} 22772then : 22773 break 22774fi 22775done 22776if test ${ac_cv_search_getservbyname+y} 22777then : 22778 22779else $as_nop 22780 ac_cv_search_getservbyname=no 22781fi 22782rm conftest.$ac_ext 22783LIBS=$ac_func_search_save_LIBS 22784fi 22785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 22786printf "%s\n" "$ac_cv_search_getservbyname" >&6; } 22787ac_res=$ac_cv_search_getservbyname 22788if test "$ac_res" != no 22789then : 22790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22791 if test "$ac_cv_search_getservbyname" != "none required"; then 22792 SERVENT_LIB="$ac_cv_search_getservbyname" 22793 fi 22794fi 22795 22796 LIBS="$gl_saved_libs" 22797 if test -z "$SERVENT_LIB"; then 22798 22799 for ac_func in getservbyname 22800do : 22801 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" 22802if test "x$ac_cv_func_getservbyname" = xyes 22803then : 22804 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h 22805 22806else $as_nop 22807 22808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5 22809printf %s "checking for getservbyname in winsock2.h and -lws2_32... " >&6; } 22810if test ${gl_cv_w32_getservbyname+y} 22811then : 22812 printf %s "(cached) " >&6 22813else $as_nop 22814 gl_cv_w32_getservbyname=no 22815 gl_save_LIBS="$LIBS" 22816 LIBS="$LIBS -lws2_32" 22817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22818/* end confdefs.h. */ 22819 22820#ifdef HAVE_WINSOCK2_H 22821#include <winsock2.h> 22822#endif 22823#include <stddef.h> 22824 22825int 22826main (void) 22827{ 22828getservbyname(NULL,NULL); 22829 ; 22830 return 0; 22831} 22832_ACEOF 22833if ac_fn_c_try_link "$LINENO" 22834then : 22835 gl_cv_w32_getservbyname=yes 22836fi 22837rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22838 conftest$ac_exeext conftest.$ac_ext 22839 LIBS="$gl_save_LIBS" 22840 22841fi 22842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5 22843printf "%s\n" "$gl_cv_w32_getservbyname" >&6; } 22844 if test "$gl_cv_w32_getservbyname" = "yes"; then 22845 SERVENT_LIB="-lws2_32" 22846 fi 22847 22848fi 22849 22850done 22851 fi 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 HAVE_INET_NTOP=1 22862 INET_NTOP_LIB= 22863 22864 22865 22866 22867 if test $ac_cv_header_sys_socket_h != yes; then 22868 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 22869if test "x$ac_cv_header_winsock2_h" = xyes 22870then : 22871 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 22872 22873fi 22874 22875 fi 22876 if test "$ac_cv_header_winsock2_h" = yes; then 22877 HAVE_WINSOCK2_H=1 22878 UNISTD_H_HAVE_WINSOCK2_H=1 22879 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 22880 else 22881 HAVE_WINSOCK2_H=0 22882 fi 22883 22884 22885 if test $HAVE_WINSOCK2_H = 1; then 22886 REPLACE_INET_NTOP=1 22887 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h> 22888" 22889if test "x$ac_cv_have_decl_inet_ntop" = xyes 22890then : 22891 ac_have_decl=1 22892else $as_nop 22893 ac_have_decl=0 22894fi 22895 22896printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h 22897 22898 if test $ac_cv_have_decl_inet_ntop = yes; then 22899 INET_NTOP_LIB="-lws2_32" 22900 else 22901 HAVE_DECL_INET_NTOP=0 22902 fi 22903 else 22904 gl_save_LIBS=$LIBS 22905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 22906printf %s "checking for library containing inet_ntop... " >&6; } 22907if test ${ac_cv_search_inet_ntop+y} 22908then : 22909 printf %s "(cached) " >&6 22910else $as_nop 22911 ac_func_search_save_LIBS=$LIBS 22912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22913/* end confdefs.h. */ 22914 22915/* Override any GCC internal prototype to avoid an error. 22916 Use char because int might match the return type of a GCC 22917 builtin and then its argument prototype would still apply. */ 22918char inet_ntop (); 22919int 22920main (void) 22921{ 22922return inet_ntop (); 22923 ; 22924 return 0; 22925} 22926_ACEOF 22927for ac_lib in '' nsl resolv network 22928do 22929 if test -z "$ac_lib"; then 22930 ac_res="none required" 22931 else 22932 ac_res=-l$ac_lib 22933 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22934 fi 22935 if ac_fn_c_try_link "$LINENO" 22936then : 22937 ac_cv_search_inet_ntop=$ac_res 22938fi 22939rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22940 conftest$ac_exeext 22941 if test ${ac_cv_search_inet_ntop+y} 22942then : 22943 break 22944fi 22945done 22946if test ${ac_cv_search_inet_ntop+y} 22947then : 22948 22949else $as_nop 22950 ac_cv_search_inet_ntop=no 22951fi 22952rm conftest.$ac_ext 22953LIBS=$ac_func_search_save_LIBS 22954fi 22955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 22956printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } 22957ac_res=$ac_cv_search_inet_ntop 22958if test "$ac_res" != no 22959then : 22960 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22961 22962else $as_nop 22963 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 22964if test "x$ac_cv_func_inet_ntop" = xyes 22965then : 22966 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 22967 22968fi 22969 22970 if test $ac_cv_func_inet_ntop = no; then 22971 HAVE_INET_NTOP=0 22972 fi 22973 22974fi 22975 22976 LIBS=$gl_save_LIBS 22977 22978 if test "$ac_cv_search_inet_ntop" != "no" \ 22979 && test "$ac_cv_search_inet_ntop" != "none required"; then 22980 INET_NTOP_LIB="$ac_cv_search_inet_ntop" 22981 fi 22982 22983 22984 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h> 22985 #if HAVE_NETDB_H 22986 # include <netdb.h> 22987 #endif 22988 22989" 22990if test "x$ac_cv_have_decl_inet_ntop" = xyes 22991then : 22992 ac_have_decl=1 22993else $as_nop 22994 ac_have_decl=0 22995fi 22996 22997printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h 22998 22999 if test $ac_cv_have_decl_inet_ntop = no; then 23000 HAVE_DECL_INET_NTOP=0 23001 fi 23002 fi 23003 23004 23005 23006 23007 23008 23009 23010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5 23011printf %s "checking for IPv4 sockets... " >&6; } 23012if test ${gl_cv_socket_ipv4+y} 23013then : 23014 printf %s "(cached) " >&6 23015else $as_nop 23016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23017/* end confdefs.h. */ 23018#include <sys/types.h> 23019#ifdef HAVE_SYS_SOCKET_H 23020#include <sys/socket.h> 23021#endif 23022#ifdef HAVE_NETINET_IN_H 23023#include <netinet/in.h> 23024#endif 23025#ifdef HAVE_WINSOCK2_H 23026#include <winsock2.h> 23027#endif 23028int 23029main (void) 23030{ 23031int x = AF_INET; struct in_addr y; struct sockaddr_in z; 23032 if (&x && &y && &z) return 0; 23033 ; 23034 return 0; 23035} 23036_ACEOF 23037if ac_fn_c_try_compile "$LINENO" 23038then : 23039 gl_cv_socket_ipv4=yes 23040else $as_nop 23041 gl_cv_socket_ipv4=no 23042fi 23043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23044fi 23045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5 23046printf "%s\n" "$gl_cv_socket_ipv4" >&6; } 23047 if test $gl_cv_socket_ipv4 = yes; then 23048 23049printf "%s\n" "#define HAVE_IPV4 1" >>confdefs.h 23050 23051 fi 23052 23053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 23054printf %s "checking for IPv6 sockets... " >&6; } 23055if test ${gl_cv_socket_ipv6+y} 23056then : 23057 printf %s "(cached) " >&6 23058else $as_nop 23059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23060/* end confdefs.h. */ 23061#include <sys/types.h> 23062#ifdef HAVE_SYS_SOCKET_H 23063#include <sys/socket.h> 23064#endif 23065#ifdef HAVE_NETINET_IN_H 23066#include <netinet/in.h> 23067#endif 23068#ifdef HAVE_WINSOCK2_H 23069#include <winsock2.h> 23070#endif 23071#ifdef HAVE_WS2TCPIP_H 23072#include <ws2tcpip.h> 23073#endif 23074int 23075main (void) 23076{ 23077int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; 23078 if (&x && &y && &z) return 0; 23079 ; 23080 return 0; 23081} 23082_ACEOF 23083if ac_fn_c_try_compile "$LINENO" 23084then : 23085 gl_cv_socket_ipv6=yes 23086else $as_nop 23087 gl_cv_socket_ipv6=no 23088fi 23089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23090fi 23091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5 23092printf "%s\n" "$gl_cv_socket_ipv6" >&6; } 23093 if test $gl_cv_socket_ipv6 = yes; then 23094 23095printf "%s\n" "#define HAVE_IPV6 1" >>confdefs.h 23096 23097 fi 23098 23099ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" 23100if test "x$ac_cv_have_decl_getdelim" = xyes 23101then : 23102 ac_have_decl=1 23103else $as_nop 23104 ac_have_decl=0 23105fi 23106 23107printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h 23108 23109 23110 23111ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" 23112if test "x$ac_cv_have_decl_getdtablesize" = xyes 23113then : 23114 ac_have_decl=1 23115else $as_nop 23116 ac_have_decl=0 23117fi 23118 23119printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h 23120 23121ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" 23122if test "x$ac_cv_have_decl_getline" = xyes 23123then : 23124 ac_have_decl=1 23125else $as_nop 23126 ac_have_decl=0 23127fi 23128 23129printf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 if test $gl_cv_have_include_next = yes; then 23146 gl_cv_next_getopt_h='<'getopt.h'>' 23147 else 23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 23149printf %s "checking absolute name of <getopt.h>... " >&6; } 23150if test ${gl_cv_next_getopt_h+y} 23151then : 23152 printf %s "(cached) " >&6 23153else $as_nop 23154 23155 if test $ac_cv_header_getopt_h = yes; then 23156 23157 23158 23159 23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23161/* end confdefs.h. */ 23162#include <getopt.h> 23163_ACEOF 23164 case "$host_os" in 23165 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23166 *) gl_absname_cpp="$ac_cpp" ;; 23167 esac 23168 23169 case "$host_os" in 23170 mingw*) 23171 gl_dirsep_regex='[/\\]' 23172 ;; 23173 *) 23174 gl_dirsep_regex='\/' 23175 ;; 23176 esac 23177 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23178 gl_header_literal_regex=`echo 'getopt.h' \ 23179 | sed -e "$gl_make_literal_regex_sed"` 23180 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23181 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23182 s|^/[^/]|//&| 23183 p 23184 q 23185 }' 23186 23187 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23188 sed -n "$gl_absolute_header_sed"` 23189 23190 gl_header=$gl_cv_absolute_getopt_h 23191 gl_cv_next_getopt_h='"'$gl_header'"' 23192 else 23193 gl_cv_next_getopt_h='<'getopt.h'>' 23194 fi 23195 23196 23197fi 23198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 23199printf "%s\n" "$gl_cv_next_getopt_h" >&6; } 23200 fi 23201 NEXT_GETOPT_H=$gl_cv_next_getopt_h 23202 23203 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23204 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23205 gl_next_as_first_directive='<'getopt.h'>' 23206 else 23207 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23208 gl_next_as_first_directive=$gl_cv_next_getopt_h 23209 fi 23210 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive 23211 23212 23213 23214 23215 if test $ac_cv_header_getopt_h = yes; then 23216 HAVE_GETOPT_H=1 23217 else 23218 HAVE_GETOPT_H=0 23219 fi 23220 23221 23222 gl_replace_getopt= 23223 23224 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 23225 for ac_header in getopt.h 23226do : 23227 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 23228if test "x$ac_cv_header_getopt_h" = xyes 23229then : 23230 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 23231 23232else $as_nop 23233 gl_replace_getopt=yes 23234fi 23235 23236done 23237 fi 23238 23239 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 23240 23241 for ac_func in getopt_long_only 23242do : 23243 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 23244if test "x$ac_cv_func_getopt_long_only" = xyes 23245then : 23246 printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h 23247 23248else $as_nop 23249 gl_replace_getopt=yes 23250fi 23251 23252done 23253 fi 23254 23255 if test -z "$gl_replace_getopt"; then 23256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 23257printf %s "checking whether getopt is POSIX compatible... " >&6; } 23258if test ${gl_cv_func_getopt_posix+y} 23259then : 23260 printf %s "(cached) " >&6 23261else $as_nop 23262 23263 if test $cross_compiling = no; then 23264 if test "$cross_compiling" = yes 23265then : 23266 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23267printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23268as_fn_error $? "cannot run test program while cross compiling 23269See \`config.log' for more details" "$LINENO" 5; } 23270else $as_nop 23271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23272/* end confdefs.h. */ 23273 23274#include <unistd.h> 23275#include <stdlib.h> 23276#include <string.h> 23277 23278int 23279main () 23280{ 23281 static char program[] = "program"; 23282 static char a[] = "-a"; 23283 static char foo[] = "foo"; 23284 static char bar[] = "bar"; 23285 char *argv[] = { program, a, foo, bar, NULL }; 23286 int c; 23287 23288 c = getopt (4, argv, "ab"); 23289 if (!(c == 'a')) 23290 return 1; 23291 c = getopt (4, argv, "ab"); 23292 if (!(c == -1)) 23293 return 2; 23294 if (!(optind == 2)) 23295 return 3; 23296 return 0; 23297} 23298 23299_ACEOF 23300if ac_fn_c_try_run "$LINENO" 23301then : 23302 gl_cv_func_getopt_posix=maybe 23303else $as_nop 23304 gl_cv_func_getopt_posix=no 23305fi 23306rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23307 conftest.$ac_objext conftest.beam conftest.$ac_ext 23308fi 23309 23310 if test $gl_cv_func_getopt_posix = maybe; then 23311 if test "$cross_compiling" = yes 23312then : 23313 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23314printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23315as_fn_error $? "cannot run test program while cross compiling 23316See \`config.log' for more details" "$LINENO" 5; } 23317else $as_nop 23318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23319/* end confdefs.h. */ 23320 23321#include <unistd.h> 23322#include <stdlib.h> 23323#include <string.h> 23324 23325int 23326main () 23327{ 23328 static char program[] = "program"; 23329 static char donald[] = "donald"; 23330 static char p[] = "-p"; 23331 static char billy[] = "billy"; 23332 static char duck[] = "duck"; 23333 static char a[] = "-a"; 23334 static char bar[] = "bar"; 23335 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; 23336 int c; 23337 23338 c = getopt (7, argv, "+abp:q:"); 23339 if (!(c == -1)) 23340 return 4; 23341 if (!(strcmp (argv[0], "program") == 0)) 23342 return 5; 23343 if (!(strcmp (argv[1], "donald") == 0)) 23344 return 6; 23345 if (!(strcmp (argv[2], "-p") == 0)) 23346 return 7; 23347 if (!(strcmp (argv[3], "billy") == 0)) 23348 return 8; 23349 if (!(strcmp (argv[4], "duck") == 0)) 23350 return 9; 23351 if (!(strcmp (argv[5], "-a") == 0)) 23352 return 10; 23353 if (!(strcmp (argv[6], "bar") == 0)) 23354 return 11; 23355 if (!(optind == 1)) 23356 return 12; 23357 return 0; 23358} 23359 23360_ACEOF 23361if ac_fn_c_try_run "$LINENO" 23362then : 23363 gl_cv_func_getopt_posix=maybe 23364else $as_nop 23365 gl_cv_func_getopt_posix=no 23366fi 23367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23368 conftest.$ac_objext conftest.beam conftest.$ac_ext 23369fi 23370 23371 fi 23372 if test $gl_cv_func_getopt_posix = maybe; then 23373 if test "$cross_compiling" = yes 23374then : 23375 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23376printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 23377as_fn_error $? "cannot run test program while cross compiling 23378See \`config.log' for more details" "$LINENO" 5; } 23379else $as_nop 23380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23381/* end confdefs.h. */ 23382 23383#include <unistd.h> 23384#include <stdlib.h> 23385#include <string.h> 23386 23387int 23388main () 23389{ 23390 static char program[] = "program"; 23391 static char ab[] = "-ab"; 23392 char *argv[3] = { program, ab, NULL }; 23393 if (getopt (2, argv, "ab:") != 'a') 23394 return 13; 23395 if (getopt (2, argv, "ab:") != '?') 23396 return 14; 23397 if (optopt != 'b') 23398 return 15; 23399 if (optind != 2) 23400 return 16; 23401 return 0; 23402} 23403 23404_ACEOF 23405if ac_fn_c_try_run "$LINENO" 23406then : 23407 gl_cv_func_getopt_posix=yes 23408else $as_nop 23409 gl_cv_func_getopt_posix=no 23410fi 23411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23412 conftest.$ac_objext conftest.beam conftest.$ac_ext 23413fi 23414 23415 fi 23416 else 23417 case "$host_os" in 23418 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; 23419 *) gl_cv_func_getopt_posix="guessing yes";; 23420 esac 23421 fi 23422 23423fi 23424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 23425printf "%s\n" "$gl_cv_func_getopt_posix" >&6; } 23426 case "$gl_cv_func_getopt_posix" in 23427 *no) gl_replace_getopt=yes ;; 23428 esac 23429 fi 23430 23431 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 23432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 23433printf %s "checking for working GNU getopt function... " >&6; } 23434if test ${gl_cv_func_getopt_gnu+y} 23435then : 23436 printf %s "(cached) " >&6 23437else $as_nop 23438 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the 23439 # optstring is necessary for programs like m4 that have POSIX-mandated 23440 # semantics for supporting options interspersed with files. 23441 # Also, since getopt_long is a GNU extension, we require optind=0. 23442 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; 23443 # so take care to revert to the correct (non-)export state. 23444 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 23445 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 23446 xx) gl_had_POSIXLY_CORRECT=exported ;; 23447 x) gl_had_POSIXLY_CORRECT=yes ;; 23448 *) gl_had_POSIXLY_CORRECT= ;; 23449 esac 23450 POSIXLY_CORRECT=1 23451 export POSIXLY_CORRECT 23452 if test "$cross_compiling" = yes 23453then : 23454 gl_cv_func_getopt_gnu="$gl_cross_guess_normal" 23455 23456else $as_nop 23457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23458/* end confdefs.h. */ 23459#include <getopt.h> 23460 #include <stddef.h> 23461 #include <string.h> 23462 23463#include <stdlib.h> 23464#if defined __MACH__ && defined __APPLE__ 23465/* Avoid a crash on Mac OS X. */ 23466#include <mach/mach.h> 23467#include <mach/mach_error.h> 23468#include <mach/thread_status.h> 23469#include <mach/exception.h> 23470#include <mach/task.h> 23471#include <pthread.h> 23472/* The exception port on which our thread listens. */ 23473static mach_port_t our_exception_port; 23474/* The main function of the thread listening for exceptions of type 23475 EXC_BAD_ACCESS. */ 23476static void * 23477mach_exception_thread (void *arg) 23478{ 23479 /* Buffer for a message to be received. */ 23480 struct { 23481 mach_msg_header_t head; 23482 mach_msg_body_t msgh_body; 23483 char data[1024]; 23484 } msg; 23485 mach_msg_return_t retval; 23486 /* Wait for a message on the exception port. */ 23487 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 23488 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 23489 if (retval != MACH_MSG_SUCCESS) 23490 abort (); 23491 exit (1); 23492} 23493static void 23494nocrash_init (void) 23495{ 23496 mach_port_t self = mach_task_self (); 23497 /* Allocate a port on which the thread shall listen for exceptions. */ 23498 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 23499 == KERN_SUCCESS) { 23500 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 23501 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 23502 MACH_MSG_TYPE_MAKE_SEND) 23503 == KERN_SUCCESS) { 23504 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 23505 for us. */ 23506 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 23507 /* Create the thread listening on the exception port. */ 23508 pthread_attr_t attr; 23509 pthread_t thread; 23510 if (pthread_attr_init (&attr) == 0 23511 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 23512 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 23513 pthread_attr_destroy (&attr); 23514 /* Replace the exception port info for these exceptions with our own. 23515 Note that we replace the exception port for the entire task, not only 23516 for a particular thread. This has the effect that when our exception 23517 port gets the message, the thread specific exception port has already 23518 been asked, and we don't need to bother about it. 23519 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 23520 task_set_exception_ports (self, mask, our_exception_port, 23521 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 23522 } 23523 } 23524 } 23525} 23526#elif defined _WIN32 && ! defined __CYGWIN__ 23527/* Avoid a crash on native Windows. */ 23528#define WIN32_LEAN_AND_MEAN 23529#include <windows.h> 23530#include <winerror.h> 23531static LONG WINAPI 23532exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 23533{ 23534 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 23535 { 23536 case EXCEPTION_ACCESS_VIOLATION: 23537 case EXCEPTION_IN_PAGE_ERROR: 23538 case EXCEPTION_STACK_OVERFLOW: 23539 case EXCEPTION_GUARD_PAGE: 23540 case EXCEPTION_PRIV_INSTRUCTION: 23541 case EXCEPTION_ILLEGAL_INSTRUCTION: 23542 case EXCEPTION_DATATYPE_MISALIGNMENT: 23543 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 23544 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 23545 exit (1); 23546 } 23547 return EXCEPTION_CONTINUE_SEARCH; 23548} 23549static void 23550nocrash_init (void) 23551{ 23552 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 23553} 23554#else 23555/* Avoid a crash on POSIX systems. */ 23556#include <signal.h> 23557#include <unistd.h> 23558/* A POSIX signal handler. */ 23559static void 23560exception_handler (int sig) 23561{ 23562 _exit (1); 23563} 23564static void 23565nocrash_init (void) 23566{ 23567#ifdef SIGSEGV 23568 signal (SIGSEGV, exception_handler); 23569#endif 23570#ifdef SIGBUS 23571 signal (SIGBUS, exception_handler); 23572#endif 23573} 23574#endif 23575 23576 23577int 23578main (void) 23579{ 23580 23581 int result = 0; 23582 23583 nocrash_init(); 23584 23585 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 23586 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 23587 OSF/1 5.1, Solaris 10. */ 23588 { 23589 static char conftest[] = "conftest"; 23590 static char plus[] = "-+"; 23591 char *argv[3] = { conftest, plus, NULL }; 23592 opterr = 0; 23593 if (getopt (2, argv, "+a") != '?') 23594 result |= 1; 23595 } 23596 /* This code succeeds on glibc 2.8, mingw, 23597 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 23598 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 23599 { 23600 static char program[] = "program"; 23601 static char p[] = "-p"; 23602 static char foo[] = "foo"; 23603 static char bar[] = "bar"; 23604 char *argv[] = { program, p, foo, bar, NULL }; 23605 23606 optind = 1; 23607 if (getopt (4, argv, "p::") != 'p') 23608 result |= 2; 23609 else if (optarg != NULL) 23610 result |= 4; 23611 else if (getopt (4, argv, "p::") != -1) 23612 result |= 6; 23613 else if (optind != 2) 23614 result |= 8; 23615 } 23616 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ 23617 { 23618 static char program[] = "program"; 23619 static char foo[] = "foo"; 23620 static char p[] = "-p"; 23621 char *argv[] = { program, foo, p, NULL }; 23622 optind = 0; 23623 if (getopt (3, argv, "-p") != 1) 23624 result |= 16; 23625 else if (getopt (3, argv, "-p") != 'p') 23626 result |= 16; 23627 } 23628 /* This code fails on glibc 2.11. */ 23629 { 23630 static char program[] = "program"; 23631 static char b[] = "-b"; 23632 static char a[] = "-a"; 23633 char *argv[] = { program, b, a, NULL }; 23634 optind = opterr = 0; 23635 if (getopt (3, argv, "+:a:b") != 'b') 23636 result |= 32; 23637 else if (getopt (3, argv, "+:a:b") != ':') 23638 result |= 32; 23639 } 23640 /* This code dumps core on glibc 2.14. */ 23641 { 23642 static char program[] = "program"; 23643 static char w[] = "-W"; 23644 static char dummy[] = "dummy"; 23645 char *argv[] = { program, w, dummy, NULL }; 23646 optind = opterr = 1; 23647 if (getopt (3, argv, "W;") != 'W') 23648 result |= 64; 23649 } 23650 return result; 23651 23652 ; 23653 return 0; 23654} 23655_ACEOF 23656if ac_fn_c_try_run "$LINENO" 23657then : 23658 gl_cv_func_getopt_gnu=yes 23659else $as_nop 23660 gl_cv_func_getopt_gnu=no 23661fi 23662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23663 conftest.$ac_objext conftest.beam conftest.$ac_ext 23664fi 23665 23666 case $gl_had_POSIXLY_CORRECT in 23667 exported) ;; 23668 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 23669 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 23670 esac 23671 23672fi 23673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 23674printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; } 23675 if test "$gl_cv_func_getopt_gnu" != yes; then 23676 gl_replace_getopt=yes 23677 else 23678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 23679printf %s "checking for working GNU getopt_long function... " >&6; } 23680if test ${gl_cv_func_getopt_long_gnu+y} 23681then : 23682 printf %s "(cached) " >&6 23683else $as_nop 23684 if test "$cross_compiling" = yes 23685then : 23686 case "$host_os" in 23687 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; 23688 *) gl_cv_func_getopt_long_gnu="guessing yes";; 23689 esac 23690 23691else $as_nop 23692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23693/* end confdefs.h. */ 23694#include <getopt.h> 23695 #include <stddef.h> 23696 #include <string.h> 23697 23698int 23699main (void) 23700{ 23701static const struct option long_options[] = 23702 { 23703 { "xtremely-",no_argument, NULL, 1003 }, 23704 { "xtra", no_argument, NULL, 1001 }, 23705 { "xtreme", no_argument, NULL, 1002 }, 23706 { "xtremely", no_argument, NULL, 1003 }, 23707 { NULL, 0, NULL, 0 } 23708 }; 23709 /* This code fails on OpenBSD 5.0. */ 23710 { 23711 static char program[] = "program"; 23712 static char xtremel[] = "--xtremel"; 23713 char *argv[] = { program, xtremel, NULL }; 23714 int option_index; 23715 optind = 1; opterr = 0; 23716 if (getopt_long (2, argv, "", long_options, &option_index) != 1003) 23717 return 1; 23718 } 23719 return 0; 23720 23721 ; 23722 return 0; 23723} 23724_ACEOF 23725if ac_fn_c_try_run "$LINENO" 23726then : 23727 gl_cv_func_getopt_long_gnu=yes 23728else $as_nop 23729 gl_cv_func_getopt_long_gnu=no 23730fi 23731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23732 conftest.$ac_objext conftest.beam conftest.$ac_ext 23733fi 23734 23735 23736fi 23737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 23738printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; } 23739 case "$gl_cv_func_getopt_long_gnu" in 23740 *yes) ;; 23741 *) gl_replace_getopt=yes ;; 23742 esac 23743 fi 23744 fi 23745 23746 23747 23748 23749 23750 23751 23752 23753 23754 if test $ac_cv_func_getpass = no; then 23755 HAVE_GETPASS=0 23756 fi 23757 23758 23759 23760 23761ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" 23762if test "x$ac_cv_have_decl_fflush_unlocked" = xyes 23763then : 23764 ac_have_decl=1 23765else $as_nop 23766 ac_have_decl=0 23767fi 23768 23769printf "%s\n" "#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl" >>confdefs.h 23770 23771ac_fn_c_check_decl "$LINENO" "flockfile" "ac_cv_have_decl_flockfile" "$ac_includes_default" 23772if test "x$ac_cv_have_decl_flockfile" = xyes 23773then : 23774 ac_have_decl=1 23775else $as_nop 23776 ac_have_decl=0 23777fi 23778 23779printf "%s\n" "#define HAVE_DECL_FLOCKFILE $ac_have_decl" >>confdefs.h 23780 23781ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" 23782if test "x$ac_cv_have_decl_fputs_unlocked" = xyes 23783then : 23784 ac_have_decl=1 23785else $as_nop 23786 ac_have_decl=0 23787fi 23788 23789printf "%s\n" "#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl" >>confdefs.h 23790 23791ac_fn_c_check_decl "$LINENO" "funlockfile" "ac_cv_have_decl_funlockfile" "$ac_includes_default" 23792if test "x$ac_cv_have_decl_funlockfile" = xyes 23793then : 23794 ac_have_decl=1 23795else $as_nop 23796 ac_have_decl=0 23797fi 23798 23799printf "%s\n" "#define HAVE_DECL_FUNLOCKFILE $ac_have_decl" >>confdefs.h 23800 23801ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" 23802if test "x$ac_cv_have_decl_putc_unlocked" = xyes 23803then : 23804 ac_have_decl=1 23805else $as_nop 23806 ac_have_decl=0 23807fi 23808 23809printf "%s\n" "#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl" >>confdefs.h 23810 23811 23812 23813 23814 23815 23816 23817 if test -z "$gl_pthreadlib_body_done"; then 23818 gl_pthread_api=no 23819 LIBPTHREAD= 23820 LIBPMULTITHREAD= 23821 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 23822 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 23823 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 23824if test "x$ac_cv_header_pthread_h" = xyes 23825then : 23826 gl_have_pthread_h=yes 23827else $as_nop 23828 gl_have_pthread_h=no 23829fi 23830 23831 if test "$gl_have_pthread_h" = yes; then 23832 # Other possible tests: 23833 # -lpthreads (FSU threads, PCthreads) 23834 # -lgthreads 23835 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 23836 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 23837 # the second one only in libpthread, and lock.c needs it. 23838 # 23839 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 23840 # needs -pthread for some reason. See: 23841 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 23842 save_LIBS=$LIBS 23843 for gl_pthread in '' '-pthread'; do 23844 LIBS="$LIBS $gl_pthread" 23845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23846/* end confdefs.h. */ 23847#include <pthread.h> 23848 pthread_mutex_t m; 23849 pthread_mutexattr_t ma; 23850 23851int 23852main (void) 23853{ 23854pthread_mutex_lock (&m); 23855 pthread_mutexattr_init (&ma); 23856 ; 23857 return 0; 23858} 23859_ACEOF 23860if ac_fn_c_try_link "$LINENO" 23861then : 23862 gl_pthread_api=yes 23863 LIBPTHREAD=$gl_pthread 23864 LIBPMULTITHREAD=$gl_pthread 23865fi 23866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23867 conftest$ac_exeext conftest.$ac_ext 23868 LIBS=$save_LIBS 23869 test $gl_pthread_api = yes && break 23870 done 23871 23872 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 23873 # since it is defined as a macro on OSF/1.) 23874 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 23875 # The program links fine without libpthread. But it may actually 23876 # need to link with libpthread in order to create multiple threads. 23877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 23878printf %s "checking for pthread_kill in -lpthread... " >&6; } 23879if test ${ac_cv_lib_pthread_pthread_kill+y} 23880then : 23881 printf %s "(cached) " >&6 23882else $as_nop 23883 ac_check_lib_save_LIBS=$LIBS 23884LIBS="-lpthread $LIBS" 23885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23886/* end confdefs.h. */ 23887 23888/* Override any GCC internal prototype to avoid an error. 23889 Use char because int might match the return type of a GCC 23890 builtin and then its argument prototype would still apply. */ 23891char pthread_kill (); 23892int 23893main (void) 23894{ 23895return pthread_kill (); 23896 ; 23897 return 0; 23898} 23899_ACEOF 23900if ac_fn_c_try_link "$LINENO" 23901then : 23902 ac_cv_lib_pthread_pthread_kill=yes 23903else $as_nop 23904 ac_cv_lib_pthread_pthread_kill=no 23905fi 23906rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23907 conftest$ac_exeext conftest.$ac_ext 23908LIBS=$ac_check_lib_save_LIBS 23909fi 23910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 23911printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 23912if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 23913then : 23914 LIBPMULTITHREAD=-lpthread 23915 # On Solaris and HP-UX, most pthread functions exist also in libc. 23916 # Therefore pthread_in_use() needs to actually try to create a 23917 # thread: pthread_create from libc will fail, whereas 23918 # pthread_create will actually create a thread. 23919 # On Solaris 10 or newer, this test is no longer needed, because 23920 # libc contains the fully functional pthread functions. 23921 case "$host_os" in 23922 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 23923 23924printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 23925 23926 esac 23927 23928fi 23929 23930 elif test $gl_pthread_api != yes; then 23931 # Some library is needed. Try libpthread and libc_r. 23932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 23933printf %s "checking for pthread_kill in -lpthread... " >&6; } 23934if test ${ac_cv_lib_pthread_pthread_kill+y} 23935then : 23936 printf %s "(cached) " >&6 23937else $as_nop 23938 ac_check_lib_save_LIBS=$LIBS 23939LIBS="-lpthread $LIBS" 23940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23941/* end confdefs.h. */ 23942 23943/* Override any GCC internal prototype to avoid an error. 23944 Use char because int might match the return type of a GCC 23945 builtin and then its argument prototype would still apply. */ 23946char pthread_kill (); 23947int 23948main (void) 23949{ 23950return pthread_kill (); 23951 ; 23952 return 0; 23953} 23954_ACEOF 23955if ac_fn_c_try_link "$LINENO" 23956then : 23957 ac_cv_lib_pthread_pthread_kill=yes 23958else $as_nop 23959 ac_cv_lib_pthread_pthread_kill=no 23960fi 23961rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23962 conftest$ac_exeext conftest.$ac_ext 23963LIBS=$ac_check_lib_save_LIBS 23964fi 23965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 23966printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 23967if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 23968then : 23969 gl_pthread_api=yes 23970 LIBPTHREAD=-lpthread 23971 LIBPMULTITHREAD=-lpthread 23972fi 23973 23974 if test $gl_pthread_api != yes; then 23975 # For FreeBSD 4. 23976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 23977printf %s "checking for pthread_kill in -lc_r... " >&6; } 23978if test ${ac_cv_lib_c_r_pthread_kill+y} 23979then : 23980 printf %s "(cached) " >&6 23981else $as_nop 23982 ac_check_lib_save_LIBS=$LIBS 23983LIBS="-lc_r $LIBS" 23984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23985/* end confdefs.h. */ 23986 23987/* Override any GCC internal prototype to avoid an error. 23988 Use char because int might match the return type of a GCC 23989 builtin and then its argument prototype would still apply. */ 23990char pthread_kill (); 23991int 23992main (void) 23993{ 23994return pthread_kill (); 23995 ; 23996 return 0; 23997} 23998_ACEOF 23999if ac_fn_c_try_link "$LINENO" 24000then : 24001 ac_cv_lib_c_r_pthread_kill=yes 24002else $as_nop 24003 ac_cv_lib_c_r_pthread_kill=no 24004fi 24005rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24006 conftest$ac_exeext conftest.$ac_ext 24007LIBS=$ac_check_lib_save_LIBS 24008fi 24009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 24010printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 24011if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 24012then : 24013 gl_pthread_api=yes 24014 LIBPTHREAD=-lc_r 24015 LIBPMULTITHREAD=-lc_r 24016fi 24017 24018 fi 24019 fi 24020 fi 24021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 24022printf %s "checking whether POSIX threads API is available... " >&6; } 24023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 24024printf "%s\n" "$gl_pthread_api" >&6; } 24025 24026 24027 if test $gl_pthread_api = yes; then 24028 24029printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 24030 24031 fi 24032 24033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24034/* end confdefs.h. */ 24035#include <sched.h> 24036int 24037main (void) 24038{ 24039sched_yield (); 24040 ; 24041 return 0; 24042} 24043_ACEOF 24044if ac_fn_c_try_link "$LINENO" 24045then : 24046 LIB_SCHED_YIELD= 24047 24048else $as_nop 24049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 24050printf %s "checking for sched_yield in -lrt... " >&6; } 24051if test ${ac_cv_lib_rt_sched_yield+y} 24052then : 24053 printf %s "(cached) " >&6 24054else $as_nop 24055 ac_check_lib_save_LIBS=$LIBS 24056LIBS="-lrt $LIBS" 24057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24058/* end confdefs.h. */ 24059 24060/* Override any GCC internal prototype to avoid an error. 24061 Use char because int might match the return type of a GCC 24062 builtin and then its argument prototype would still apply. */ 24063char sched_yield (); 24064int 24065main (void) 24066{ 24067return sched_yield (); 24068 ; 24069 return 0; 24070} 24071_ACEOF 24072if ac_fn_c_try_link "$LINENO" 24073then : 24074 ac_cv_lib_rt_sched_yield=yes 24075else $as_nop 24076 ac_cv_lib_rt_sched_yield=no 24077fi 24078rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24079 conftest$ac_exeext conftest.$ac_ext 24080LIBS=$ac_check_lib_save_LIBS 24081fi 24082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 24083printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 24084if test "x$ac_cv_lib_rt_sched_yield" = xyes 24085then : 24086 LIB_SCHED_YIELD=-lrt 24087else $as_nop 24088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 24089printf %s "checking for sched_yield in -lposix4... " >&6; } 24090if test ${ac_cv_lib_posix4_sched_yield+y} 24091then : 24092 printf %s "(cached) " >&6 24093else $as_nop 24094 ac_check_lib_save_LIBS=$LIBS 24095LIBS="-lposix4 $LIBS" 24096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24097/* end confdefs.h. */ 24098 24099/* Override any GCC internal prototype to avoid an error. 24100 Use char because int might match the return type of a GCC 24101 builtin and then its argument prototype would still apply. */ 24102char sched_yield (); 24103int 24104main (void) 24105{ 24106return sched_yield (); 24107 ; 24108 return 0; 24109} 24110_ACEOF 24111if ac_fn_c_try_link "$LINENO" 24112then : 24113 ac_cv_lib_posix4_sched_yield=yes 24114else $as_nop 24115 ac_cv_lib_posix4_sched_yield=no 24116fi 24117rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24118 conftest$ac_exeext conftest.$ac_ext 24119LIBS=$ac_check_lib_save_LIBS 24120fi 24121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 24122printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 24123if test "x$ac_cv_lib_posix4_sched_yield" = xyes 24124then : 24125 LIB_SCHED_YIELD=-lposix4 24126fi 24127 24128fi 24129 24130 24131fi 24132rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24133 conftest$ac_exeext conftest.$ac_ext 24134 24135 24136 gl_pthreadlib_body_done=done 24137 fi 24138 24139 24140 24141 24142 24143 24144 24145 24146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 24147printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } 24148if test ${gl_cv_func_setlocale_null_all_mtsafe+y} 24149then : 24150 printf %s "(cached) " >&6 24151else $as_nop 24152 case "$host_os" in 24153 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. 24154 *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) 24155 gl_cv_func_setlocale_null_all_mtsafe=no ;; 24156 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 24157 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*) 24158 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 24159 # If we don't know, obey --enable-cross-guesses. 24160 *) 24161 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;; 24162 esac 24163 24164fi 24165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 24166printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } 24167 case "$host_os" in 24168 mingw*) ;; 24169 *) 24170 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 24171 gl_cv_func_setlocale_null_all_mtsafe="trivially yes" 24172 fi 24173 ;; 24174 esac 24175 case "$gl_cv_func_setlocale_null_all_mtsafe" in 24176 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;; 24177 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; 24178 esac 24179 24180printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h 24181 24182 24183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 24184printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } 24185if test ${gl_cv_func_setlocale_null_one_mtsafe+y} 24186then : 24187 printf %s "(cached) " >&6 24188else $as_nop 24189 case "$host_os" in 24190 # Guess no on OpenBSD, AIX. 24191 openbsd* | aix*) 24192 gl_cv_func_setlocale_null_one_mtsafe=no ;; 24193 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 24194 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*) 24195 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 24196 # If we don't know, obey --enable-cross-guesses. 24197 *) 24198 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;; 24199 esac 24200 24201fi 24202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 24203printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } 24204 case "$host_os" in 24205 mingw*) ;; 24206 *) 24207 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 24208 gl_cv_func_setlocale_null_one_mtsafe="trivially yes" 24209 fi 24210 ;; 24211 esac 24212 case "$gl_cv_func_setlocale_null_one_mtsafe" in 24213 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;; 24214 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; 24215 esac 24216 24217printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h 24218 24219 24220 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 24221 case "$host_os" in 24222 mingw*) LIB_SETLOCALE_NULL= ;; 24223 *) 24224 24225 24226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 24227printf %s "checking whether imported symbols can be declared weak... " >&6; } 24228if test ${gl_cv_have_weak+y} 24229then : 24230 printf %s "(cached) " >&6 24231else $as_nop 24232 gl_cv_have_weak=no 24233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24234/* end confdefs.h. */ 24235extern void xyzzy (); 24236#pragma weak xyzzy 24237int 24238main (void) 24239{ 24240xyzzy(); 24241 ; 24242 return 0; 24243} 24244_ACEOF 24245if ac_fn_c_try_link "$LINENO" 24246then : 24247 gl_cv_have_weak=maybe 24248fi 24249rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24250 conftest$ac_exeext conftest.$ac_ext 24251 if test $gl_cv_have_weak = maybe; then 24252 if test "$cross_compiling" = yes 24253then : 24254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24255/* end confdefs.h. */ 24256#ifdef __ELF__ 24257 Extensible Linking Format 24258 #endif 24259 24260_ACEOF 24261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24262 $EGREP "Extensible Linking Format" >/dev/null 2>&1 24263then : 24264 gl_cv_have_weak="guessing yes" 24265else $as_nop 24266 gl_cv_have_weak="guessing no" 24267fi 24268rm -rf conftest* 24269 24270 24271else $as_nop 24272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24273/* end confdefs.h. */ 24274 24275#include <stdio.h> 24276#pragma weak fputs 24277int main () 24278{ 24279 return (fputs == NULL); 24280} 24281_ACEOF 24282if ac_fn_c_try_run "$LINENO" 24283then : 24284 gl_cv_have_weak=yes 24285else $as_nop 24286 gl_cv_have_weak=no 24287fi 24288rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24289 conftest.$ac_objext conftest.beam conftest.$ac_ext 24290fi 24291 24292 fi 24293 case " $LDFLAGS " in 24294 *" -static "*) gl_cv_have_weak=no ;; 24295 esac 24296 case "$gl_cv_have_weak" in 24297 *yes) 24298 case "$host_os" in 24299 freebsd* | dragonfly*) 24300 : > conftest1.c 24301 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 24302 cat <<EOF > conftest2.c 24303#include <pthread.h> 24304#pragma weak pthread_mutexattr_gettype 24305int main () 24306{ 24307 return (pthread_mutexattr_gettype != NULL); 24308} 24309EOF 24310 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 24311 || gl_cv_have_weak=no 24312 rm -f conftest1.c libempty.so conftest2.c conftest 24313 ;; 24314 esac 24315 ;; 24316 esac 24317 24318fi 24319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 24320printf "%s\n" "$gl_cv_have_weak" >&6; } 24321 case "$gl_cv_have_weak" in 24322 *yes) 24323 24324printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 24325 24326 ;; 24327 esac 24328 24329 case "$gl_cv_have_weak" in 24330 *yes) LIB_SETLOCALE_NULL= ;; 24331 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;; 24332 esac 24333 ;; 24334 esac 24335 else 24336 LIB_SETLOCALE_NULL= 24337 fi 24338 24339 24340 24341 24342 GNULIB_ICONV=0; 24343 ICONV_CONST=; 24344 REPLACE_ICONV=0; 24345 REPLACE_ICONV_OPEN=0; 24346 REPLACE_ICONV_UTF=0; 24347 ICONV_H=''; 24348 if false; then 24349 ICONV_H='iconv.h' 24350 fi 24351 24352 if test -n "$ICONV_H"; then 24353 GL_GENERATE_ICONV_H_TRUE= 24354 GL_GENERATE_ICONV_H_FALSE='#' 24355else 24356 GL_GENERATE_ICONV_H_TRUE='#' 24357 GL_GENERATE_ICONV_H_FALSE= 24358fi 24359 24360 24361 24362 24363 24364 24365 24366 am_save_CPPFLAGS="$CPPFLAGS" 24367 24368 for element in $INCICONV; do 24369 haveit= 24370 for x in $CPPFLAGS; do 24371 24372 acl_save_prefix="$prefix" 24373 prefix="$acl_final_prefix" 24374 acl_save_exec_prefix="$exec_prefix" 24375 exec_prefix="$acl_final_exec_prefix" 24376 eval x=\"$x\" 24377 exec_prefix="$acl_save_exec_prefix" 24378 prefix="$acl_save_prefix" 24379 24380 if test "X$x" = "X$element"; then 24381 haveit=yes 24382 break 24383 fi 24384 done 24385 if test -z "$haveit"; then 24386 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 24387 fi 24388 done 24389 24390 24391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 24392printf %s "checking for iconv... " >&6; } 24393if test ${am_cv_func_iconv+y} 24394then : 24395 printf %s "(cached) " >&6 24396else $as_nop 24397 24398 am_cv_func_iconv="no, consider installing GNU libiconv" 24399 am_cv_lib_iconv=no 24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24401/* end confdefs.h. */ 24402 24403#include <stdlib.h> 24404#include <iconv.h> 24405 24406int 24407main (void) 24408{ 24409iconv_t cd = iconv_open("",""); 24410 iconv(cd,NULL,NULL,NULL,NULL); 24411 iconv_close(cd); 24412 ; 24413 return 0; 24414} 24415_ACEOF 24416if ac_fn_c_try_link "$LINENO" 24417then : 24418 am_cv_func_iconv=yes 24419fi 24420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24421 conftest$ac_exeext conftest.$ac_ext 24422 if test "$am_cv_func_iconv" != yes; then 24423 am_save_LIBS="$LIBS" 24424 LIBS="$LIBS $LIBICONV" 24425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24426/* end confdefs.h. */ 24427 24428#include <stdlib.h> 24429#include <iconv.h> 24430 24431int 24432main (void) 24433{ 24434iconv_t cd = iconv_open("",""); 24435 iconv(cd,NULL,NULL,NULL,NULL); 24436 iconv_close(cd); 24437 ; 24438 return 0; 24439} 24440_ACEOF 24441if ac_fn_c_try_link "$LINENO" 24442then : 24443 am_cv_lib_iconv=yes 24444 am_cv_func_iconv=yes 24445fi 24446rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24447 conftest$ac_exeext conftest.$ac_ext 24448 LIBS="$am_save_LIBS" 24449 fi 24450 24451fi 24452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 24453printf "%s\n" "$am_cv_func_iconv" >&6; } 24454 if test "$am_cv_func_iconv" = yes; then 24455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 24456printf %s "checking for working iconv... " >&6; } 24457if test ${am_cv_func_iconv_works+y} 24458then : 24459 printf %s "(cached) " >&6 24460else $as_nop 24461 24462 am_save_LIBS="$LIBS" 24463 if test $am_cv_lib_iconv = yes; then 24464 LIBS="$LIBS $LIBICONV" 24465 fi 24466 am_cv_func_iconv_works=no 24467 for ac_iconv_const in '' 'const'; do 24468 if test "$cross_compiling" = yes 24469then : 24470 case "$host_os" in 24471 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 24472 *) am_cv_func_iconv_works="guessing yes" ;; 24473 esac 24474else $as_nop 24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24476/* end confdefs.h. */ 24477 24478#include <iconv.h> 24479#include <string.h> 24480 24481#ifndef ICONV_CONST 24482# define ICONV_CONST $ac_iconv_const 24483#endif 24484 24485int 24486main (void) 24487{ 24488int result = 0; 24489 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 24490 returns. */ 24491 { 24492 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 24493 if (cd_utf8_to_88591 != (iconv_t)(-1)) 24494 { 24495 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 24496 char buf[10]; 24497 ICONV_CONST char *inptr = input; 24498 size_t inbytesleft = strlen (input); 24499 char *outptr = buf; 24500 size_t outbytesleft = sizeof (buf); 24501 size_t res = iconv (cd_utf8_to_88591, 24502 &inptr, &inbytesleft, 24503 &outptr, &outbytesleft); 24504 if (res == 0) 24505 result |= 1; 24506 iconv_close (cd_utf8_to_88591); 24507 } 24508 } 24509 /* Test against Solaris 10 bug: Failures are not distinguishable from 24510 successful returns. */ 24511 { 24512 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 24513 if (cd_ascii_to_88591 != (iconv_t)(-1)) 24514 { 24515 static ICONV_CONST char input[] = "\263"; 24516 char buf[10]; 24517 ICONV_CONST char *inptr = input; 24518 size_t inbytesleft = strlen (input); 24519 char *outptr = buf; 24520 size_t outbytesleft = sizeof (buf); 24521 size_t res = iconv (cd_ascii_to_88591, 24522 &inptr, &inbytesleft, 24523 &outptr, &outbytesleft); 24524 if (res == 0) 24525 result |= 2; 24526 iconv_close (cd_ascii_to_88591); 24527 } 24528 } 24529 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 24530 { 24531 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 24532 if (cd_88591_to_utf8 != (iconv_t)(-1)) 24533 { 24534 static ICONV_CONST char input[] = "\304"; 24535 static char buf[2] = { (char)0xDE, (char)0xAD }; 24536 ICONV_CONST char *inptr = input; 24537 size_t inbytesleft = 1; 24538 char *outptr = buf; 24539 size_t outbytesleft = 1; 24540 size_t res = iconv (cd_88591_to_utf8, 24541 &inptr, &inbytesleft, 24542 &outptr, &outbytesleft); 24543 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 24544 result |= 4; 24545 iconv_close (cd_88591_to_utf8); 24546 } 24547 } 24548#if 0 /* This bug could be worked around by the caller. */ 24549 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 24550 { 24551 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 24552 if (cd_88591_to_utf8 != (iconv_t)(-1)) 24553 { 24554 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 24555 char buf[50]; 24556 ICONV_CONST char *inptr = input; 24557 size_t inbytesleft = strlen (input); 24558 char *outptr = buf; 24559 size_t outbytesleft = sizeof (buf); 24560 size_t res = iconv (cd_88591_to_utf8, 24561 &inptr, &inbytesleft, 24562 &outptr, &outbytesleft); 24563 if ((int)res > 0) 24564 result |= 8; 24565 iconv_close (cd_88591_to_utf8); 24566 } 24567 } 24568#endif 24569 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 24570 provided. */ 24571 { 24572 /* Try standardized names. */ 24573 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 24574 /* Try IRIX, OSF/1 names. */ 24575 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 24576 /* Try AIX names. */ 24577 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 24578 /* Try HP-UX names. */ 24579 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 24580 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 24581 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 24582 result |= 16; 24583 if (cd1 != (iconv_t)(-1)) 24584 iconv_close (cd1); 24585 if (cd2 != (iconv_t)(-1)) 24586 iconv_close (cd2); 24587 if (cd3 != (iconv_t)(-1)) 24588 iconv_close (cd3); 24589 if (cd4 != (iconv_t)(-1)) 24590 iconv_close (cd4); 24591 } 24592 return result; 24593 24594 ; 24595 return 0; 24596} 24597_ACEOF 24598if ac_fn_c_try_run "$LINENO" 24599then : 24600 am_cv_func_iconv_works=yes 24601fi 24602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24603 conftest.$ac_objext conftest.beam conftest.$ac_ext 24604fi 24605 24606 test "$am_cv_func_iconv_works" = no || break 24607 done 24608 LIBS="$am_save_LIBS" 24609 24610fi 24611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 24612printf "%s\n" "$am_cv_func_iconv_works" >&6; } 24613 case "$am_cv_func_iconv_works" in 24614 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 24615 *) am_func_iconv=yes ;; 24616 esac 24617 else 24618 am_func_iconv=no am_cv_lib_iconv=no 24619 fi 24620 if test "$am_func_iconv" = yes; then 24621 24622printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h 24623 24624 fi 24625 if test "$am_cv_lib_iconv" = yes; then 24626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 24627printf %s "checking how to link with libiconv... " >&6; } 24628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 24629printf "%s\n" "$LIBICONV" >&6; } 24630 else 24631 CPPFLAGS="$am_save_CPPFLAGS" 24632 LIBICONV= 24633 LTLIBICONV= 24634 fi 24635 24636 24637 24638 if test "$am_cv_func_iconv" = yes; then 24639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5 24640printf %s "checking whether iconv is compatible with its POSIX signature... " >&6; } 24641if test ${gl_cv_iconv_nonconst+y} 24642then : 24643 printf %s "(cached) " >&6 24644else $as_nop 24645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24646/* end confdefs.h. */ 24647 24648#include <stdlib.h> 24649#include <iconv.h> 24650extern 24651#ifdef __cplusplus 24652"C" 24653#endif 24654size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 24655 24656int 24657main (void) 24658{ 24659 24660 ; 24661 return 0; 24662} 24663_ACEOF 24664if ac_fn_c_try_compile "$LINENO" 24665then : 24666 gl_cv_iconv_nonconst=yes 24667else $as_nop 24668 gl_cv_iconv_nonconst=no 24669fi 24670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24671 24672fi 24673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5 24674printf "%s\n" "$gl_cv_iconv_nonconst" >&6; } 24675 else 24676 gl_cv_iconv_nonconst=yes 24677 fi 24678 if test $gl_cv_iconv_nonconst = yes; then 24679 iconv_arg1="" 24680 else 24681 iconv_arg1="const" 24682 fi 24683 24684printf "%s\n" "#define ICONV_CONST $iconv_arg1" >>confdefs.h 24685 24686 24687 if test $gl_cv_iconv_nonconst != yes; then 24688 ICONV_CONST="const" 24689 fi 24690 24691 24692 24693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 24694printf %s "checking for inline... " >&6; } 24695if test ${ac_cv_c_inline+y} 24696then : 24697 printf %s "(cached) " >&6 24698else $as_nop 24699 ac_cv_c_inline=no 24700for ac_kw in inline __inline__ __inline; do 24701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24702/* end confdefs.h. */ 24703#ifndef __cplusplus 24704typedef int foo_t; 24705static $ac_kw foo_t static_foo (void) {return 0; } 24706$ac_kw foo_t foo (void) {return 0; } 24707#endif 24708 24709_ACEOF 24710if ac_fn_c_try_compile "$LINENO" 24711then : 24712 ac_cv_c_inline=$ac_kw 24713fi 24714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24715 test "$ac_cv_c_inline" != no && break 24716done 24717 24718fi 24719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 24720printf "%s\n" "$ac_cv_c_inline" >&6; } 24721 24722case $ac_cv_c_inline in 24723 inline | yes) ;; 24724 *) 24725 case $ac_cv_c_inline in 24726 no) ac_val=;; 24727 *) ac_val=$ac_cv_c_inline;; 24728 esac 24729 cat >>confdefs.h <<_ACEOF 24730#ifndef __cplusplus 24731#define inline $ac_val 24732#endif 24733_ACEOF 24734 ;; 24735esac 24736 24737 24738 24739 24740 24741 24742 24743 24744 24745 24746 24747 24748 if test $gl_cv_have_include_next = yes; then 24749 gl_cv_next_limits_h='<'limits.h'>' 24750 else 24751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5 24752printf %s "checking absolute name of <limits.h>... " >&6; } 24753if test ${gl_cv_next_limits_h+y} 24754then : 24755 printf %s "(cached) " >&6 24756else $as_nop 24757 24758 if test $ac_cv_header_limits_h = yes; then 24759 24760 24761 24762 24763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24764/* end confdefs.h. */ 24765#include <limits.h> 24766_ACEOF 24767 case "$host_os" in 24768 aix*) gl_absname_cpp="$ac_cpp -C" ;; 24769 *) gl_absname_cpp="$ac_cpp" ;; 24770 esac 24771 24772 case "$host_os" in 24773 mingw*) 24774 gl_dirsep_regex='[/\\]' 24775 ;; 24776 *) 24777 gl_dirsep_regex='\/' 24778 ;; 24779 esac 24780 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 24781 gl_header_literal_regex=`echo 'limits.h' \ 24782 | sed -e "$gl_make_literal_regex_sed"` 24783 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 24784 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 24785 s|^/[^/]|//&| 24786 p 24787 q 24788 }' 24789 24790 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 24791 sed -n "$gl_absolute_header_sed"` 24792 24793 gl_header=$gl_cv_absolute_limits_h 24794 gl_cv_next_limits_h='"'$gl_header'"' 24795 else 24796 gl_cv_next_limits_h='<'limits.h'>' 24797 fi 24798 24799 24800fi 24801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 24802printf "%s\n" "$gl_cv_next_limits_h" >&6; } 24803 fi 24804 NEXT_LIMITS_H=$gl_cv_next_limits_h 24805 24806 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 24807 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 24808 gl_next_as_first_directive='<'limits.h'>' 24809 else 24810 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 24811 gl_next_as_first_directive=$gl_cv_next_limits_h 24812 fi 24813 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive 24814 24815 24816 24817 24818 24819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5 24820printf %s "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; } 24821if test ${gl_cv_header_limits_width+y} 24822then : 24823 printf %s "(cached) " >&6 24824else $as_nop 24825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24826/* end confdefs.h. */ 24827#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 24828 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 24829 #endif 24830 #include <limits.h> 24831 long long llm = LLONG_MAX; 24832 int wb = WORD_BIT; 24833 int ullw = ULLONG_WIDTH; 24834 24835int 24836main (void) 24837{ 24838 24839 ; 24840 return 0; 24841} 24842_ACEOF 24843if ac_fn_c_try_compile "$LINENO" 24844then : 24845 gl_cv_header_limits_width=yes 24846else $as_nop 24847 gl_cv_header_limits_width=no 24848fi 24849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24850fi 24851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 24852printf "%s\n" "$gl_cv_header_limits_width" >&6; } 24853 if test "$gl_cv_header_limits_width" = yes; then 24854 LIMITS_H= 24855 else 24856 LIMITS_H=limits.h 24857 fi 24858 24859 if test -n "$LIMITS_H"; then 24860 GL_GENERATE_LIMITS_H_TRUE= 24861 GL_GENERATE_LIMITS_H_FALSE='#' 24862else 24863 GL_GENERATE_LIMITS_H_TRUE='#' 24864 GL_GENERATE_LIMITS_H_FALSE= 24865fi 24866 24867 24868 24869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 24870printf %s "checking for wint_t... " >&6; } 24871if test ${gt_cv_c_wint_t+y} 24872then : 24873 printf %s "(cached) " >&6 24874else $as_nop 24875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24876/* end confdefs.h. */ 24877#include <wchar.h> 24878 wint_t foo = (wchar_t)'\0'; 24879int 24880main (void) 24881{ 24882 24883 ; 24884 return 0; 24885} 24886_ACEOF 24887if ac_fn_c_try_compile "$LINENO" 24888then : 24889 gt_cv_c_wint_t=yes 24890else $as_nop 24891 gt_cv_c_wint_t=no 24892fi 24893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24894fi 24895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 24896printf "%s\n" "$gt_cv_c_wint_t" >&6; } 24897 if test $gt_cv_c_wint_t = yes; then 24898 24899printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h 24900 24901 24902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5 24903printf %s "checking whether wint_t is large enough... " >&6; } 24904if test ${gl_cv_type_wint_t_large_enough+y} 24905then : 24906 printf %s "(cached) " >&6 24907else $as_nop 24908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24909/* end confdefs.h. */ 24910#include <wchar.h> 24911 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; 24912 24913int 24914main (void) 24915{ 24916 24917 ; 24918 return 0; 24919} 24920_ACEOF 24921if ac_fn_c_try_compile "$LINENO" 24922then : 24923 gl_cv_type_wint_t_large_enough=yes 24924else $as_nop 24925 gl_cv_type_wint_t_large_enough=no 24926fi 24927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24928fi 24929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5 24930printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; } 24931 if test $gl_cv_type_wint_t_large_enough = no; then 24932 GNULIB_OVERRIDES_WINT_T=1 24933 else 24934 GNULIB_OVERRIDES_WINT_T=0 24935 fi 24936 else 24937 GNULIB_OVERRIDES_WINT_T=0 24938 fi 24939 24940 24941 24942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5 24943printf %s "checking whether the compiler produces multi-arch binaries... " >&6; } 24944if test ${gl_cv_c_multiarch+y} 24945then : 24946 printf %s "(cached) " >&6 24947else $as_nop 24948 gl_cv_c_multiarch=no 24949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24950/* end confdefs.h. */ 24951#ifndef __APPLE_CC__ 24952 not a universal capable compiler 24953 #endif 24954 typedef int dummy; 24955 24956_ACEOF 24957if ac_fn_c_try_compile "$LINENO" 24958then : 24959 24960 arch= 24961 prev= 24962 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 24963 if test -n "$prev"; then 24964 case $word in 24965 i?86 | x86_64 | ppc | ppc64 | arm | arm64) 24966 if test -z "$arch" || test "$arch" = "$word"; then 24967 arch="$word" 24968 else 24969 gl_cv_c_multiarch=yes 24970 fi 24971 ;; 24972 esac 24973 prev= 24974 else 24975 if test "x$word" = "x-arch"; then 24976 prev=arch 24977 fi 24978 fi 24979 done 24980 24981fi 24982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24983 24984fi 24985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5 24986printf "%s\n" "$gl_cv_c_multiarch" >&6; } 24987 if test $gl_cv_c_multiarch = yes; then 24988 APPLE_UNIVERSAL_BUILD=1 24989 else 24990 APPLE_UNIVERSAL_BUILD=0 24991 fi 24992 24993 24994 24995 24996 24997 24998 24999 25000printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 25001 25002 25003printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 25004 25005 25006 25007 if test $ac_cv_header_wchar_h = yes; then 25008 HAVE_WCHAR_H=1 25009 else 25010 HAVE_WCHAR_H=0 25011 fi 25012 25013 25014 25015 if test $ac_cv_header_inttypes_h = yes; then 25016 HAVE_INTTYPES_H=1 25017 else 25018 HAVE_INTTYPES_H=0 25019 fi 25020 25021 25022 25023 if test $ac_cv_header_sys_types_h = yes; then 25024 HAVE_SYS_TYPES_H=1 25025 else 25026 HAVE_SYS_TYPES_H=0 25027 fi 25028 25029 25030 25031 25032 25033 25034 25035 25036 25037 25038 25039 if test $gl_cv_have_include_next = yes; then 25040 gl_cv_next_stdint_h='<'stdint.h'>' 25041 else 25042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 25043printf %s "checking absolute name of <stdint.h>... " >&6; } 25044if test ${gl_cv_next_stdint_h+y} 25045then : 25046 printf %s "(cached) " >&6 25047else $as_nop 25048 25049 if test $ac_cv_header_stdint_h = yes; then 25050 25051 25052 25053 25054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25055/* end confdefs.h. */ 25056#include <stdint.h> 25057_ACEOF 25058 case "$host_os" in 25059 aix*) gl_absname_cpp="$ac_cpp -C" ;; 25060 *) gl_absname_cpp="$ac_cpp" ;; 25061 esac 25062 25063 case "$host_os" in 25064 mingw*) 25065 gl_dirsep_regex='[/\\]' 25066 ;; 25067 *) 25068 gl_dirsep_regex='\/' 25069 ;; 25070 esac 25071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 25072 gl_header_literal_regex=`echo 'stdint.h' \ 25073 | sed -e "$gl_make_literal_regex_sed"` 25074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 25075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 25076 s|^/[^/]|//&| 25077 p 25078 q 25079 }' 25080 25081 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 25082 sed -n "$gl_absolute_header_sed"` 25083 25084 gl_header=$gl_cv_absolute_stdint_h 25085 gl_cv_next_stdint_h='"'$gl_header'"' 25086 else 25087 gl_cv_next_stdint_h='<'stdint.h'>' 25088 fi 25089 25090 25091fi 25092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 25093printf "%s\n" "$gl_cv_next_stdint_h" >&6; } 25094 fi 25095 NEXT_STDINT_H=$gl_cv_next_stdint_h 25096 25097 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 25098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 25099 gl_next_as_first_directive='<'stdint.h'>' 25100 else 25101 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 25102 gl_next_as_first_directive=$gl_cv_next_stdint_h 25103 fi 25104 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 25105 25106 25107 25108 25109 if test $ac_cv_header_stdint_h = yes; then 25110 HAVE_STDINT_H=1 25111 else 25112 HAVE_STDINT_H=0 25113 fi 25114 25115 25116 if test $ac_cv_header_stdint_h = yes; then 25117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 25118printf %s "checking whether stdint.h conforms to C99... " >&6; } 25119if test ${gl_cv_header_working_stdint_h+y} 25120then : 25121 printf %s "(cached) " >&6 25122else $as_nop 25123 gl_cv_header_working_stdint_h=no 25124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25125/* end confdefs.h. */ 25126 25127 25128#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 25129#define __STDC_CONSTANT_MACROS 1 25130#define __STDC_LIMIT_MACROS 1 25131#include <stdint.h> 25132/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 25133#if !(defined WCHAR_MIN && defined WCHAR_MAX) 25134#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 25135#endif 25136 25137 25138 #include <stddef.h> 25139 #include <signal.h> 25140 #if HAVE_WCHAR_H 25141 # include <wchar.h> 25142 #endif 25143 25144 25145#ifdef INT8_MAX 25146int8_t a1 = INT8_MAX; 25147int8_t a1min = INT8_MIN; 25148#endif 25149#ifdef INT16_MAX 25150int16_t a2 = INT16_MAX; 25151int16_t a2min = INT16_MIN; 25152#endif 25153#ifdef INT32_MAX 25154int32_t a3 = INT32_MAX; 25155int32_t a3min = INT32_MIN; 25156#endif 25157#ifdef INT64_MAX 25158int64_t a4 = INT64_MAX; 25159int64_t a4min = INT64_MIN; 25160#endif 25161#ifdef UINT8_MAX 25162uint8_t b1 = UINT8_MAX; 25163#else 25164typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 25165#endif 25166#ifdef UINT16_MAX 25167uint16_t b2 = UINT16_MAX; 25168#endif 25169#ifdef UINT32_MAX 25170uint32_t b3 = UINT32_MAX; 25171#endif 25172#ifdef UINT64_MAX 25173uint64_t b4 = UINT64_MAX; 25174#endif 25175int_least8_t c1 = INT8_C (0x7f); 25176int_least8_t c1max = INT_LEAST8_MAX; 25177int_least8_t c1min = INT_LEAST8_MIN; 25178int_least16_t c2 = INT16_C (0x7fff); 25179int_least16_t c2max = INT_LEAST16_MAX; 25180int_least16_t c2min = INT_LEAST16_MIN; 25181int_least32_t c3 = INT32_C (0x7fffffff); 25182int_least32_t c3max = INT_LEAST32_MAX; 25183int_least32_t c3min = INT_LEAST32_MIN; 25184int_least64_t c4 = INT64_C (0x7fffffffffffffff); 25185int_least64_t c4max = INT_LEAST64_MAX; 25186int_least64_t c4min = INT_LEAST64_MIN; 25187uint_least8_t d1 = UINT8_C (0xff); 25188uint_least8_t d1max = UINT_LEAST8_MAX; 25189uint_least16_t d2 = UINT16_C (0xffff); 25190uint_least16_t d2max = UINT_LEAST16_MAX; 25191uint_least32_t d3 = UINT32_C (0xffffffff); 25192uint_least32_t d3max = UINT_LEAST32_MAX; 25193uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 25194uint_least64_t d4max = UINT_LEAST64_MAX; 25195int_fast8_t e1 = INT_FAST8_MAX; 25196int_fast8_t e1min = INT_FAST8_MIN; 25197int_fast16_t e2 = INT_FAST16_MAX; 25198int_fast16_t e2min = INT_FAST16_MIN; 25199int_fast32_t e3 = INT_FAST32_MAX; 25200int_fast32_t e3min = INT_FAST32_MIN; 25201int_fast64_t e4 = INT_FAST64_MAX; 25202int_fast64_t e4min = INT_FAST64_MIN; 25203uint_fast8_t f1 = UINT_FAST8_MAX; 25204uint_fast16_t f2 = UINT_FAST16_MAX; 25205uint_fast32_t f3 = UINT_FAST32_MAX; 25206uint_fast64_t f4 = UINT_FAST64_MAX; 25207#ifdef INTPTR_MAX 25208intptr_t g = INTPTR_MAX; 25209intptr_t gmin = INTPTR_MIN; 25210#endif 25211#ifdef UINTPTR_MAX 25212uintptr_t h = UINTPTR_MAX; 25213#endif 25214intmax_t i = INTMAX_MAX; 25215uintmax_t j = UINTMAX_MAX; 25216 25217/* Check that SIZE_MAX has the correct type, if possible. */ 25218#if 201112 <= __STDC_VERSION__ 25219int k = _Generic (SIZE_MAX, size_t: 0); 25220#elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \ 25221 || (0x5110 <= __SUNPRO_C && !__STDC__)) 25222extern size_t k; 25223extern __typeof__ (SIZE_MAX) k; 25224#endif 25225 25226#include <limits.h> /* for CHAR_BIT */ 25227#define TYPE_MINIMUM(t) \ 25228 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 25229#define TYPE_MAXIMUM(t) \ 25230 ((t) ((t) 0 < (t) -1 \ 25231 ? (t) -1 \ 25232 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 25233struct s { 25234 int check_PTRDIFF: 25235 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 25236 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 25237 ? 1 : -1; 25238 /* Detect bug in FreeBSD 6.0 / ia64. */ 25239 int check_SIG_ATOMIC: 25240 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 25241 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 25242 ? 1 : -1; 25243 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 25244 int check_WCHAR: 25245 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 25246 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 25247 ? 1 : -1; 25248 /* Detect bug in mingw. */ 25249 int check_WINT: 25250 WINT_MIN == TYPE_MINIMUM (wint_t) 25251 && WINT_MAX == TYPE_MAXIMUM (wint_t) 25252 ? 1 : -1; 25253 25254 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 25255 int check_UINT8_C: 25256 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 25257 int check_UINT16_C: 25258 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 25259 25260 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 25261#ifdef UINT8_MAX 25262 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 25263#endif 25264#ifdef UINT16_MAX 25265 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 25266#endif 25267#ifdef UINT32_MAX 25268 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 25269#endif 25270#ifdef UINT64_MAX 25271 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 25272#endif 25273 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 25274 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 25275 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 25276 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 25277 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 25278 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 25279 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 25280 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 25281 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 25282 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 25283 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 25284}; 25285 25286int 25287main (void) 25288{ 25289 25290 ; 25291 return 0; 25292} 25293_ACEOF 25294if ac_fn_c_try_compile "$LINENO" 25295then : 25296 if test "$cross_compiling" = yes 25297then : 25298 case "$host_os" in 25299 # Guess yes on native Windows. 25300 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; 25301 # In general, assume it works. 25302 *) gl_cv_header_working_stdint_h="guessing yes" ;; 25303 esac 25304 25305else $as_nop 25306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25307/* end confdefs.h. */ 25308 25309 25310#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 25311#define __STDC_CONSTANT_MACROS 1 25312#define __STDC_LIMIT_MACROS 1 25313#include <stdint.h> 25314 25315 25316 #include <stddef.h> 25317 #include <signal.h> 25318 #if HAVE_WCHAR_H 25319 # include <wchar.h> 25320 #endif 25321 25322 25323#include <stdio.h> 25324#include <string.h> 25325#define MVAL(macro) MVAL1(macro) 25326#define MVAL1(expression) #expression 25327static const char *macro_values[] = 25328 { 25329#ifdef INT8_MAX 25330 MVAL (INT8_MAX), 25331#endif 25332#ifdef INT16_MAX 25333 MVAL (INT16_MAX), 25334#endif 25335#ifdef INT32_MAX 25336 MVAL (INT32_MAX), 25337#endif 25338#ifdef INT64_MAX 25339 MVAL (INT64_MAX), 25340#endif 25341#ifdef UINT8_MAX 25342 MVAL (UINT8_MAX), 25343#endif 25344#ifdef UINT16_MAX 25345 MVAL (UINT16_MAX), 25346#endif 25347#ifdef UINT32_MAX 25348 MVAL (UINT32_MAX), 25349#endif 25350#ifdef UINT64_MAX 25351 MVAL (UINT64_MAX), 25352#endif 25353 NULL 25354 }; 25355 25356int 25357main (void) 25358{ 25359 25360 const char **mv; 25361 for (mv = macro_values; *mv != NULL; mv++) 25362 { 25363 const char *value = *mv; 25364 /* Test whether it looks like a cast expression. */ 25365 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 25366 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 25367 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 25368 || strncmp (value, "((int)"/*)*/, 6) == 0 25369 || strncmp (value, "((signed short)"/*)*/, 15) == 0 25370 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 25371 return mv - macro_values + 1; 25372 } 25373 return 0; 25374 25375 ; 25376 return 0; 25377} 25378_ACEOF 25379if ac_fn_c_try_run "$LINENO" 25380then : 25381 gl_cv_header_working_stdint_h=yes 25382fi 25383rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25384 conftest.$ac_objext conftest.beam conftest.$ac_ext 25385fi 25386 25387 25388fi 25389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25390 25391fi 25392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 25393printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; } 25394 fi 25395 25396 HAVE_C99_STDINT_H=0 25397 HAVE_SYS_BITYPES_H=0 25398 HAVE_SYS_INTTYPES_H=0 25399 STDINT_H=stdint.h 25400 case "$gl_cv_header_working_stdint_h" in 25401 *yes) 25402 HAVE_C99_STDINT_H=1 25403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5 25404printf %s "checking whether stdint.h works without ISO C predefines... " >&6; } 25405if test ${gl_cv_header_stdint_without_STDC_macros+y} 25406then : 25407 printf %s "(cached) " >&6 25408else $as_nop 25409 gl_cv_header_stdint_without_STDC_macros=no 25410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25411/* end confdefs.h. */ 25412 25413 25414#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 25415#include <stdint.h> 25416 25417 25418 #include <stddef.h> 25419 #include <signal.h> 25420 #if HAVE_WCHAR_H 25421 # include <wchar.h> 25422 #endif 25423 25424 25425intmax_t im = INTMAX_MAX; 25426int32_t i32 = INT32_C (0x7fffffff); 25427 25428int 25429main (void) 25430{ 25431 25432 ; 25433 return 0; 25434} 25435_ACEOF 25436if ac_fn_c_try_compile "$LINENO" 25437then : 25438 gl_cv_header_stdint_without_STDC_macros=yes 25439fi 25440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25441 25442fi 25443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5 25444printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; } 25445 25446 if test $gl_cv_header_stdint_without_STDC_macros = no; then 25447 25448printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h 25449 25450 25451printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h 25452 25453 fi 25454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 25455printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } 25456if test ${gl_cv_header_stdint_width+y} 25457then : 25458 printf %s "(cached) " >&6 25459else $as_nop 25460 gl_cv_header_stdint_width=no 25461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25462/* end confdefs.h. */ 25463 25464 /* Work if build is not clean. */ 25465 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 25466 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 25467 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 25468 #endif 25469 #include <stdint.h> 25470 25471 #include <stddef.h> 25472 #include <signal.h> 25473 #if HAVE_WCHAR_H 25474 # include <wchar.h> 25475 #endif 25476 25477 int iw = UINTMAX_WIDTH; 25478 25479int 25480main (void) 25481{ 25482 25483 ; 25484 return 0; 25485} 25486_ACEOF 25487if ac_fn_c_try_compile "$LINENO" 25488then : 25489 gl_cv_header_stdint_width=yes 25490fi 25491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25492fi 25493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 25494printf "%s\n" "$gl_cv_header_stdint_width" >&6; } 25495 if test "$gl_cv_header_stdint_width" = yes; then 25496 STDINT_H= 25497 fi 25498 ;; 25499 *) 25500 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default" 25501if test "x$ac_cv_header_sys_inttypes_h" = xyes 25502then : 25503 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h 25504 25505fi 25506ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default" 25507if test "x$ac_cv_header_sys_bitypes_h" = xyes 25508then : 25509 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h 25510 25511fi 25512 25513 if test $ac_cv_header_sys_inttypes_h = yes; then 25514 HAVE_SYS_INTTYPES_H=1 25515 fi 25516 if test $ac_cv_header_sys_bitypes_h = yes; then 25517 HAVE_SYS_BITYPES_H=1 25518 fi 25519 25520 25521 if test $APPLE_UNIVERSAL_BUILD = 0; then 25522 25523 25524 for gltype in ptrdiff_t size_t ; do 25525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 25526printf %s "checking for bit size of $gltype... " >&6; } 25527if eval test \${gl_cv_bitsizeof_${gltype}+y} 25528then : 25529 printf %s "(cached) " >&6 25530else $as_nop 25531 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 25532 #include <stddef.h> 25533 #include <signal.h> 25534 #if HAVE_WCHAR_H 25535 # include <wchar.h> 25536 #endif 25537 25538#include <limits.h>" 25539then : 25540 25541else $as_nop 25542 result=unknown 25543fi 25544 25545 eval gl_cv_bitsizeof_${gltype}=\$result 25546 25547fi 25548eval ac_res=\$gl_cv_bitsizeof_${gltype} 25549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25550printf "%s\n" "$ac_res" >&6; } 25551 eval result=\$gl_cv_bitsizeof_${gltype} 25552 if test $result = unknown; then 25553 result=0 25554 fi 25555 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 25556 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h 25557 25558 eval BITSIZEOF_${GLTYPE}=\$result 25559 done 25560 25561 25562 fi 25563 25564 25565 for gltype in sig_atomic_t wchar_t wint_t ; do 25566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 25567printf %s "checking for bit size of $gltype... " >&6; } 25568if eval test \${gl_cv_bitsizeof_${gltype}+y} 25569then : 25570 printf %s "(cached) " >&6 25571else $as_nop 25572 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 25573 #include <stddef.h> 25574 #include <signal.h> 25575 #if HAVE_WCHAR_H 25576 # include <wchar.h> 25577 #endif 25578 25579#include <limits.h>" 25580then : 25581 25582else $as_nop 25583 result=unknown 25584fi 25585 25586 eval gl_cv_bitsizeof_${gltype}=\$result 25587 25588fi 25589eval ac_res=\$gl_cv_bitsizeof_${gltype} 25590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25591printf "%s\n" "$ac_res" >&6; } 25592 eval result=\$gl_cv_bitsizeof_${gltype} 25593 if test $result = unknown; then 25594 result=0 25595 fi 25596 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 25597 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h 25598 25599 eval BITSIZEOF_${GLTYPE}=\$result 25600 done 25601 25602 25603 25604 25605 for gltype in sig_atomic_t wchar_t wint_t ; do 25606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 25607printf %s "checking whether $gltype is signed... " >&6; } 25608if eval test \${gl_cv_type_${gltype}_signed+y} 25609then : 25610 printf %s "(cached) " >&6 25611else $as_nop 25612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25613/* end confdefs.h. */ 25614 25615 #include <stddef.h> 25616 #include <signal.h> 25617 #if HAVE_WCHAR_H 25618 # include <wchar.h> 25619 #endif 25620 25621 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 25622int 25623main (void) 25624{ 25625 25626 ; 25627 return 0; 25628} 25629_ACEOF 25630if ac_fn_c_try_compile "$LINENO" 25631then : 25632 result=yes 25633else $as_nop 25634 result=no 25635fi 25636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25637 eval gl_cv_type_${gltype}_signed=\$result 25638 25639fi 25640eval ac_res=\$gl_cv_type_${gltype}_signed 25641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25642printf "%s\n" "$ac_res" >&6; } 25643 eval result=\$gl_cv_type_${gltype}_signed 25644 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 25645 if test "$result" = yes; then 25646 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h 25647 25648 eval HAVE_SIGNED_${GLTYPE}=1 25649 else 25650 eval HAVE_SIGNED_${GLTYPE}=0 25651 fi 25652 done 25653 25654 25655 gl_cv_type_ptrdiff_t_signed=yes 25656 gl_cv_type_size_t_signed=no 25657 if test $APPLE_UNIVERSAL_BUILD = 0; then 25658 25659 25660 for gltype in ptrdiff_t size_t ; do 25661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 25662printf %s "checking for $gltype integer literal suffix... " >&6; } 25663if eval test \${gl_cv_type_${gltype}_suffix+y} 25664then : 25665 printf %s "(cached) " >&6 25666else $as_nop 25667 eval gl_cv_type_${gltype}_suffix=no 25668 eval result=\$gl_cv_type_${gltype}_signed 25669 if test "$result" = yes; then 25670 glsufu= 25671 else 25672 glsufu=u 25673 fi 25674 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 25675 case $glsuf in 25676 '') gltype1='int';; 25677 l) gltype1='long int';; 25678 ll) gltype1='long long int';; 25679 i64) gltype1='__int64';; 25680 u) gltype1='unsigned int';; 25681 ul) gltype1='unsigned long int';; 25682 ull) gltype1='unsigned long long int';; 25683 ui64)gltype1='unsigned __int64';; 25684 esac 25685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25686/* end confdefs.h. */ 25687 25688 #include <stddef.h> 25689 #include <signal.h> 25690 #if HAVE_WCHAR_H 25691 # include <wchar.h> 25692 #endif 25693 25694 extern $gltype foo; 25695 extern $gltype1 foo; 25696int 25697main (void) 25698{ 25699 25700 ; 25701 return 0; 25702} 25703_ACEOF 25704if ac_fn_c_try_compile "$LINENO" 25705then : 25706 eval gl_cv_type_${gltype}_suffix=\$glsuf 25707fi 25708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25709 eval result=\$gl_cv_type_${gltype}_suffix 25710 test "$result" != no && break 25711 done 25712fi 25713eval ac_res=\$gl_cv_type_${gltype}_suffix 25714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25715printf "%s\n" "$ac_res" >&6; } 25716 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 25717 eval result=\$gl_cv_type_${gltype}_suffix 25718 test "$result" = no && result= 25719 eval ${GLTYPE}_SUFFIX=\$result 25720 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h 25721 25722 done 25723 25724 25725 fi 25726 25727 25728 for gltype in sig_atomic_t wchar_t wint_t ; do 25729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 25730printf %s "checking for $gltype integer literal suffix... " >&6; } 25731if eval test \${gl_cv_type_${gltype}_suffix+y} 25732then : 25733 printf %s "(cached) " >&6 25734else $as_nop 25735 eval gl_cv_type_${gltype}_suffix=no 25736 eval result=\$gl_cv_type_${gltype}_signed 25737 if test "$result" = yes; then 25738 glsufu= 25739 else 25740 glsufu=u 25741 fi 25742 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 25743 case $glsuf in 25744 '') gltype1='int';; 25745 l) gltype1='long int';; 25746 ll) gltype1='long long int';; 25747 i64) gltype1='__int64';; 25748 u) gltype1='unsigned int';; 25749 ul) gltype1='unsigned long int';; 25750 ull) gltype1='unsigned long long int';; 25751 ui64)gltype1='unsigned __int64';; 25752 esac 25753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25754/* end confdefs.h. */ 25755 25756 #include <stddef.h> 25757 #include <signal.h> 25758 #if HAVE_WCHAR_H 25759 # include <wchar.h> 25760 #endif 25761 25762 extern $gltype foo; 25763 extern $gltype1 foo; 25764int 25765main (void) 25766{ 25767 25768 ; 25769 return 0; 25770} 25771_ACEOF 25772if ac_fn_c_try_compile "$LINENO" 25773then : 25774 eval gl_cv_type_${gltype}_suffix=\$glsuf 25775fi 25776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25777 eval result=\$gl_cv_type_${gltype}_suffix 25778 test "$result" != no && break 25779 done 25780fi 25781eval ac_res=\$gl_cv_type_${gltype}_suffix 25782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25783printf "%s\n" "$ac_res" >&6; } 25784 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 25785 eval result=\$gl_cv_type_${gltype}_suffix 25786 test "$result" = no && result= 25787 eval ${GLTYPE}_SUFFIX=\$result 25788 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h 25789 25790 done 25791 25792 25793 25794 if test $GNULIB_OVERRIDES_WINT_T = 1; then 25795 BITSIZEOF_WINT_T=32 25796 fi 25797 25798 ;; 25799 esac 25800 25801 25802 25803 LIMITS_H='limits.h' 25804 if test -n "$LIMITS_H"; then 25805 GL_GENERATE_LIMITS_H_TRUE= 25806 GL_GENERATE_LIMITS_H_FALSE='#' 25807else 25808 GL_GENERATE_LIMITS_H_TRUE='#' 25809 GL_GENERATE_LIMITS_H_FALSE= 25810fi 25811 25812 25813 25814 25815 25816 25817 25818 if test -n "$STDINT_H"; then 25819 GL_GENERATE_STDINT_H_TRUE= 25820 GL_GENERATE_STDINT_H_FALSE='#' 25821else 25822 GL_GENERATE_STDINT_H_TRUE='#' 25823 GL_GENERATE_STDINT_H_FALSE= 25824fi 25825 25826 25827 25828 GNULIB_IMAXABS=0; 25829 GNULIB_IMAXDIV=0; 25830 GNULIB_STRTOIMAX=0; 25831 GNULIB_STRTOUMAX=0; 25832 HAVE_DECL_IMAXABS=1; 25833 HAVE_DECL_IMAXDIV=1; 25834 HAVE_DECL_STRTOIMAX=1; 25835 HAVE_DECL_STRTOUMAX=1; 25836 HAVE_IMAXDIV_T=1; 25837 REPLACE_STRTOIMAX=0; 25838 REPLACE_STRTOUMAX=0; 25839 INT32_MAX_LT_INTMAX_MAX=1; 25840 INT64_MAX_EQ_LONG_MAX='defined _LP64'; 25841 PRIPTR_PREFIX=__PRIPTR_PREFIX; 25842 UINT32_MAX_LT_UINTMAX_MAX=1; 25843 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 if test $gl_cv_have_include_next = yes; then 25860 gl_cv_next_inttypes_h='<'inttypes.h'>' 25861 else 25862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 25863printf %s "checking absolute name of <inttypes.h>... " >&6; } 25864if test ${gl_cv_next_inttypes_h+y} 25865then : 25866 printf %s "(cached) " >&6 25867else $as_nop 25868 25869 if test $ac_cv_header_inttypes_h = yes; then 25870 25871 25872 25873 25874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25875/* end confdefs.h. */ 25876#include <inttypes.h> 25877_ACEOF 25878 case "$host_os" in 25879 aix*) gl_absname_cpp="$ac_cpp -C" ;; 25880 *) gl_absname_cpp="$ac_cpp" ;; 25881 esac 25882 25883 case "$host_os" in 25884 mingw*) 25885 gl_dirsep_regex='[/\\]' 25886 ;; 25887 *) 25888 gl_dirsep_regex='\/' 25889 ;; 25890 esac 25891 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 25892 gl_header_literal_regex=`echo 'inttypes.h' \ 25893 | sed -e "$gl_make_literal_regex_sed"` 25894 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 25895 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 25896 s|^/[^/]|//&| 25897 p 25898 q 25899 }' 25900 25901 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 25902 sed -n "$gl_absolute_header_sed"` 25903 25904 gl_header=$gl_cv_absolute_inttypes_h 25905 gl_cv_next_inttypes_h='"'$gl_header'"' 25906 else 25907 gl_cv_next_inttypes_h='<'inttypes.h'>' 25908 fi 25909 25910 25911fi 25912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 25913printf "%s\n" "$gl_cv_next_inttypes_h" >&6; } 25914 fi 25915 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h 25916 25917 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 25918 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 25919 gl_next_as_first_directive='<'inttypes.h'>' 25920 else 25921 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 25922 gl_next_as_first_directive=$gl_cv_next_inttypes_h 25923 fi 25924 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive 25925 25926 25927 25928 25929 25930 25931 25932 25933 25934 25935 25936 25937 25938 25939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 25940printf %s "checking for nl_langinfo and CODESET... " >&6; } 25941if test ${am_cv_langinfo_codeset+y} 25942then : 25943 printf %s "(cached) " >&6 25944else $as_nop 25945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25946/* end confdefs.h. */ 25947#include <langinfo.h> 25948int 25949main (void) 25950{ 25951char* cs = nl_langinfo(CODESET); return !cs; 25952 ; 25953 return 0; 25954} 25955_ACEOF 25956if ac_fn_c_try_link "$LINENO" 25957then : 25958 am_cv_langinfo_codeset=yes 25959else $as_nop 25960 am_cv_langinfo_codeset=no 25961fi 25962rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25963 conftest$ac_exeext conftest.$ac_ext 25964 25965fi 25966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 25967printf "%s\n" "$am_cv_langinfo_codeset" >&6; } 25968 if test $am_cv_langinfo_codeset = yes; then 25969 25970printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 25971 25972 fi 25973 25974 25975 GNULIB_LOCALECONV=0; 25976 GNULIB_SETLOCALE=0; 25977 GNULIB_SETLOCALE_NULL=0; 25978 GNULIB_DUPLOCALE=0; 25979 GNULIB_LOCALENAME=0; 25980 HAVE_NEWLOCALE=1; 25981 HAVE_DUPLOCALE=1; 25982 HAVE_FREELOCALE=1; 25983 REPLACE_LOCALECONV=0; 25984 REPLACE_SETLOCALE=0; 25985 REPLACE_NEWLOCALE=0; 25986 REPLACE_DUPLOCALE=0; 25987 REPLACE_FREELOCALE=0; 25988 REPLACE_STRUCT_LCONV=0; 25989 25990 25991 REPLACE_NULL=0; 25992 HAVE_MAX_ALIGN_T=1; 25993 HAVE_WCHAR_T=1; 25994 25995 25996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 25997printf %s "checking for wchar_t... " >&6; } 25998if test ${gt_cv_c_wchar_t+y} 25999then : 26000 printf %s "(cached) " >&6 26001else $as_nop 26002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26003/* end confdefs.h. */ 26004#include <stddef.h> 26005 wchar_t foo = (wchar_t)'\0'; 26006int 26007main (void) 26008{ 26009 26010 ; 26011 return 0; 26012} 26013_ACEOF 26014if ac_fn_c_try_compile "$LINENO" 26015then : 26016 gt_cv_c_wchar_t=yes 26017else $as_nop 26018 gt_cv_c_wchar_t=no 26019fi 26020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26021fi 26022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 26023printf "%s\n" "$gt_cv_c_wchar_t" >&6; } 26024 if test $gt_cv_c_wchar_t = yes; then 26025 26026printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h 26027 26028 fi 26029 26030 26031 26032 26033 STDDEF_H= 26034 26035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 26036printf %s "checking for good max_align_t... " >&6; } 26037if test ${gl_cv_type_max_align_t+y} 26038then : 26039 printf %s "(cached) " >&6 26040else $as_nop 26041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26042/* end confdefs.h. */ 26043#include <stddef.h> 26044 unsigned int s = sizeof (max_align_t); 26045 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ 26046 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; 26047 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; 26048 #endif 26049 26050int 26051main (void) 26052{ 26053 26054 ; 26055 return 0; 26056} 26057_ACEOF 26058if ac_fn_c_try_compile "$LINENO" 26059then : 26060 gl_cv_type_max_align_t=yes 26061else $as_nop 26062 gl_cv_type_max_align_t=no 26063fi 26064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26065 26066fi 26067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 26068printf "%s\n" "$gl_cv_type_max_align_t" >&6; } 26069 if test $gl_cv_type_max_align_t = no; then 26070 HAVE_MAX_ALIGN_T=0 26071 STDDEF_H=stddef.h 26072 fi 26073 26074 if test $gt_cv_c_wchar_t = no; then 26075 HAVE_WCHAR_T=0 26076 STDDEF_H=stddef.h 26077 fi 26078 26079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 26080printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; } 26081if test ${gl_cv_decl_null_works+y} 26082then : 26083 printf %s "(cached) " >&6 26084else $as_nop 26085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26086/* end confdefs.h. */ 26087#include <stddef.h> 26088 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 26089 26090int 26091main (void) 26092{ 26093 26094 ; 26095 return 0; 26096} 26097_ACEOF 26098if ac_fn_c_try_compile "$LINENO" 26099then : 26100 gl_cv_decl_null_works=yes 26101else $as_nop 26102 gl_cv_decl_null_works=no 26103fi 26104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26105fi 26106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 26107printf "%s\n" "$gl_cv_decl_null_works" >&6; } 26108 if test $gl_cv_decl_null_works = no; then 26109 REPLACE_NULL=1 26110 STDDEF_H=stddef.h 26111 fi 26112 26113 26114 if test -n "$STDDEF_H"; then 26115 GL_GENERATE_STDDEF_H_TRUE= 26116 GL_GENERATE_STDDEF_H_FALSE='#' 26117else 26118 GL_GENERATE_STDDEF_H_TRUE='#' 26119 GL_GENERATE_STDDEF_H_FALSE= 26120fi 26121 26122 if test -n "$STDDEF_H"; then 26123 26124 26125 26126 26127 26128 26129 26130 26131 if test $gl_cv_have_include_next = yes; then 26132 gl_cv_next_stddef_h='<'stddef.h'>' 26133 else 26134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 26135printf %s "checking absolute name of <stddef.h>... " >&6; } 26136if test ${gl_cv_next_stddef_h+y} 26137then : 26138 printf %s "(cached) " >&6 26139else $as_nop 26140 26141 26142 26143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26144/* end confdefs.h. */ 26145#include <stddef.h> 26146_ACEOF 26147 case "$host_os" in 26148 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26149 *) gl_absname_cpp="$ac_cpp" ;; 26150 esac 26151 26152 case "$host_os" in 26153 mingw*) 26154 gl_dirsep_regex='[/\\]' 26155 ;; 26156 *) 26157 gl_dirsep_regex='\/' 26158 ;; 26159 esac 26160 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26161 gl_header_literal_regex=`echo 'stddef.h' \ 26162 | sed -e "$gl_make_literal_regex_sed"` 26163 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26164 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26165 s|^/[^/]|//&| 26166 p 26167 q 26168 }' 26169 26170 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26171 sed -n "$gl_absolute_header_sed"` 26172 26173 gl_header=$gl_cv_absolute_stddef_h 26174 gl_cv_next_stddef_h='"'$gl_header'"' 26175 26176 26177fi 26178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 26179printf "%s\n" "$gl_cv_next_stddef_h" >&6; } 26180 fi 26181 NEXT_STDDEF_H=$gl_cv_next_stddef_h 26182 26183 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26185 gl_next_as_first_directive='<'stddef.h'>' 26186 else 26187 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26188 gl_next_as_first_directive=$gl_cv_next_stddef_h 26189 fi 26190 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 26191 26192 26193 26194 26195 fi 26196 26197 26198 26199 26200 26201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 26202printf %s "checking whether locale.h defines locale_t... " >&6; } 26203if test ${gl_cv_header_locale_has_locale_t+y} 26204then : 26205 printf %s "(cached) " >&6 26206else $as_nop 26207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26208/* end confdefs.h. */ 26209#include <locale.h> 26210 locale_t x; 26211int 26212main (void) 26213{ 26214 26215 ; 26216 return 0; 26217} 26218_ACEOF 26219if ac_fn_c_try_compile "$LINENO" 26220then : 26221 gl_cv_header_locale_has_locale_t=yes 26222else $as_nop 26223 gl_cv_header_locale_has_locale_t=no 26224fi 26225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26226 26227fi 26228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 26229printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; } 26230 26231 26232 if test $ac_cv_header_xlocale_h = yes; then 26233 HAVE_XLOCALE_H=1 26234 if test $gl_cv_header_locale_has_locale_t = yes; then 26235 gl_cv_header_locale_h_needs_xlocale_h=no 26236 else 26237 gl_cv_header_locale_h_needs_xlocale_h=yes 26238 fi 26239 HAVE_LOCALE_T=1 26240 else 26241 HAVE_XLOCALE_H=0 26242 gl_cv_header_locale_h_needs_xlocale_h=no 26243 if test $gl_cv_header_locale_has_locale_t = yes; then 26244 HAVE_LOCALE_T=1 26245 else 26246 HAVE_LOCALE_T=0 26247 fi 26248 fi 26249 26250 26251 26252 GNULIB__EXIT=0; 26253 GNULIB_ALIGNED_ALLOC=0; 26254 GNULIB_ATOLL=0; 26255 GNULIB_CALLOC_POSIX=0; 26256 GNULIB_CANONICALIZE_FILE_NAME=0; 26257 GNULIB_FREE_POSIX=0; 26258 GNULIB_GETLOADAVG=0; 26259 GNULIB_GETSUBOPT=0; 26260 GNULIB_GRANTPT=0; 26261 GNULIB_MALLOC_POSIX=0; 26262 GNULIB_MBTOWC=0; 26263 GNULIB_MKDTEMP=0; 26264 GNULIB_MKOSTEMP=0; 26265 GNULIB_MKOSTEMPS=0; 26266 GNULIB_MKSTEMP=0; 26267 GNULIB_MKSTEMPS=0; 26268 GNULIB_POSIX_MEMALIGN=0; 26269 GNULIB_POSIX_OPENPT=0; 26270 GNULIB_PTSNAME=0; 26271 GNULIB_PTSNAME_R=0; 26272 GNULIB_PUTENV=0; 26273 GNULIB_QSORT_R=0; 26274 GNULIB_RANDOM=0; 26275 GNULIB_RANDOM_R=0; 26276 GNULIB_REALLOCARRAY=0; 26277 GNULIB_REALLOC_POSIX=0; 26278 GNULIB_REALPATH=0; 26279 GNULIB_RPMATCH=0; 26280 GNULIB_SECURE_GETENV=0; 26281 GNULIB_SETENV=0; 26282 GNULIB_STRTOD=0; 26283 GNULIB_STRTOLD=0; 26284 GNULIB_STRTOLL=0; 26285 GNULIB_STRTOULL=0; 26286 GNULIB_SYSTEM_POSIX=0; 26287 GNULIB_UNLOCKPT=0; 26288 GNULIB_UNSETENV=0; 26289 GNULIB_WCTOMB=0; 26290 GNULIB_MDA_ECVT=1; 26291 GNULIB_MDA_FCVT=1; 26292 GNULIB_MDA_GCVT=1; 26293 GNULIB_MDA_MKTEMP=1; 26294 GNULIB_MDA_PUTENV=1; 26295 HAVE__EXIT=1; 26296 HAVE_ALIGNED_ALLOC=1; 26297 HAVE_ATOLL=1; 26298 HAVE_CANONICALIZE_FILE_NAME=1; 26299 HAVE_DECL_ECVT=1; 26300 HAVE_DECL_FCVT=1; 26301 HAVE_DECL_GCVT=1; 26302 HAVE_DECL_GETLOADAVG=1; 26303 HAVE_GETSUBOPT=1; 26304 HAVE_GRANTPT=1; 26305 HAVE_INITSTATE=1; 26306 HAVE_DECL_INITSTATE=1; 26307 HAVE_MBTOWC=1; 26308 HAVE_MKDTEMP=1; 26309 HAVE_MKOSTEMP=1; 26310 HAVE_MKOSTEMPS=1; 26311 HAVE_MKSTEMP=1; 26312 HAVE_MKSTEMPS=1; 26313 HAVE_POSIX_MEMALIGN=1; 26314 HAVE_POSIX_OPENPT=1; 26315 HAVE_PTSNAME=1; 26316 HAVE_PTSNAME_R=1; 26317 HAVE_QSORT_R=1; 26318 HAVE_RANDOM=1; 26319 HAVE_RANDOM_H=1; 26320 HAVE_RANDOM_R=1; 26321 HAVE_REALLOCARRAY=1; 26322 HAVE_REALPATH=1; 26323 HAVE_RPMATCH=1; 26324 HAVE_SECURE_GETENV=1; 26325 HAVE_SETENV=1; 26326 HAVE_DECL_SETENV=1; 26327 HAVE_SETSTATE=1; 26328 HAVE_DECL_SETSTATE=1; 26329 HAVE_STRTOD=1; 26330 HAVE_STRTOLD=1; 26331 HAVE_STRTOLL=1; 26332 HAVE_STRTOULL=1; 26333 HAVE_STRUCT_RANDOM_DATA=1; 26334 HAVE_SYS_LOADAVG_H=0; 26335 HAVE_UNLOCKPT=1; 26336 HAVE_DECL_UNSETENV=1; 26337 REPLACE_ALIGNED_ALLOC=0; 26338 REPLACE_CALLOC=0; 26339 REPLACE_CANONICALIZE_FILE_NAME=0; 26340 REPLACE_FREE=0; 26341 REPLACE_INITSTATE=0; 26342 REPLACE_MALLOC=0; 26343 REPLACE_MBTOWC=0; 26344 REPLACE_MKSTEMP=0; 26345 REPLACE_POSIX_MEMALIGN=0; 26346 REPLACE_PTSNAME=0; 26347 REPLACE_PTSNAME_R=0; 26348 REPLACE_PUTENV=0; 26349 REPLACE_QSORT_R=0; 26350 REPLACE_RANDOM=0; 26351 REPLACE_RANDOM_R=0; 26352 REPLACE_REALLOC=0; 26353 REPLACE_REALPATH=0; 26354 REPLACE_SETENV=0; 26355 REPLACE_SETSTATE=0; 26356 REPLACE_STRTOD=0; 26357 REPLACE_STRTOLD=0; 26358 REPLACE_UNSETENV=0; 26359 REPLACE_WCTOMB=0; 26360 26361 26362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 26363printf %s "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } 26364if test ${gl_cv_func_malloc_posix+y} 26365then : 26366 printf %s "(cached) " >&6 26367else $as_nop 26368 26369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26370/* end confdefs.h. */ 26371 26372int 26373main (void) 26374{ 26375#if defined _WIN32 && ! defined __CYGWIN__ 26376 choke me 26377 #endif 26378 26379 ; 26380 return 0; 26381} 26382_ACEOF 26383if ac_fn_c_try_compile "$LINENO" 26384then : 26385 gl_cv_func_malloc_posix=yes 26386else $as_nop 26387 gl_cv_func_malloc_posix=no 26388fi 26389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26390 26391fi 26392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 26393printf "%s\n" "$gl_cv_func_malloc_posix" >&6; } 26394 26395 26396 26397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 26398printf %s "checking for GNU libc compatible malloc... " >&6; } 26399if test ${ac_cv_func_malloc_0_nonnull+y} 26400then : 26401 printf %s "(cached) " >&6 26402else $as_nop 26403 if test "$cross_compiling" = yes 26404then : 26405 case "$host_os" in 26406 # Guess yes on platforms where we know the result. 26407 *-gnu* | gnu* | *-musl* | freebsd* | netbsd* | openbsd* \ 26408 | hpux* | solaris* | cygwin* | mingw*) 26409 ac_cv_func_malloc_0_nonnull="guessing yes" ;; 26410 # If we don't know, obey --enable-cross-guesses. 26411 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;; 26412 esac 26413 26414else $as_nop 26415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26416/* end confdefs.h. */ 26417#include <stdlib.h> 26418 26419int 26420main (void) 26421{ 26422char *p = malloc (0); 26423 int result = !p; 26424 free (p); 26425 return result; 26426 ; 26427 return 0; 26428} 26429 26430_ACEOF 26431if ac_fn_c_try_run "$LINENO" 26432then : 26433 ac_cv_func_malloc_0_nonnull=yes 26434else $as_nop 26435 ac_cv_func_malloc_0_nonnull=no 26436fi 26437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26438 conftest.$ac_objext conftest.beam conftest.$ac_ext 26439fi 26440 26441 26442fi 26443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 26444printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } 26445 case "$ac_cv_func_malloc_0_nonnull" in 26446 *yes) 26447 gl_cv_func_malloc_0_nonnull=1 26448 ;; 26449 *) 26450 gl_cv_func_malloc_0_nonnull=0 26451 ;; 26452 esac 26453 26454 26455printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h 26456 26457 26458 26459 GNULIB_BTOWC=0; 26460 GNULIB_WCTOB=0; 26461 GNULIB_MBSINIT=0; 26462 GNULIB_MBRTOWC=0; 26463 GNULIB_MBRLEN=0; 26464 GNULIB_MBSRTOWCS=0; 26465 GNULIB_MBSNRTOWCS=0; 26466 GNULIB_WCRTOMB=0; 26467 GNULIB_WCSRTOMBS=0; 26468 GNULIB_WCSNRTOMBS=0; 26469 GNULIB_WCWIDTH=0; 26470 GNULIB_WMEMCHR=0; 26471 GNULIB_WMEMCMP=0; 26472 GNULIB_WMEMCPY=0; 26473 GNULIB_WMEMMOVE=0; 26474 GNULIB_WMEMPCPY=0; 26475 GNULIB_WMEMSET=0; 26476 GNULIB_WCSLEN=0; 26477 GNULIB_WCSNLEN=0; 26478 GNULIB_WCSCPY=0; 26479 GNULIB_WCPCPY=0; 26480 GNULIB_WCSNCPY=0; 26481 GNULIB_WCPNCPY=0; 26482 GNULIB_WCSCAT=0; 26483 GNULIB_WCSNCAT=0; 26484 GNULIB_WCSCMP=0; 26485 GNULIB_WCSNCMP=0; 26486 GNULIB_WCSCASECMP=0; 26487 GNULIB_WCSNCASECMP=0; 26488 GNULIB_WCSCOLL=0; 26489 GNULIB_WCSXFRM=0; 26490 GNULIB_WCSDUP=0; 26491 GNULIB_WCSCHR=0; 26492 GNULIB_WCSRCHR=0; 26493 GNULIB_WCSCSPN=0; 26494 GNULIB_WCSSPN=0; 26495 GNULIB_WCSPBRK=0; 26496 GNULIB_WCSSTR=0; 26497 GNULIB_WCSTOK=0; 26498 GNULIB_WCSWIDTH=0; 26499 GNULIB_WCSFTIME=0; 26500 GNULIB_MDA_WCSDUP=1; 26501 HAVE_BTOWC=1; 26502 HAVE_MBSINIT=1; 26503 HAVE_MBRTOWC=1; 26504 HAVE_MBRLEN=1; 26505 HAVE_MBSRTOWCS=1; 26506 HAVE_MBSNRTOWCS=1; 26507 HAVE_WCRTOMB=1; 26508 HAVE_WCSRTOMBS=1; 26509 HAVE_WCSNRTOMBS=1; 26510 HAVE_WMEMCHR=1; 26511 HAVE_WMEMCMP=1; 26512 HAVE_WMEMCPY=1; 26513 HAVE_WMEMMOVE=1; 26514 HAVE_WMEMPCPY=1; 26515 HAVE_WMEMSET=1; 26516 HAVE_WCSLEN=1; 26517 HAVE_WCSNLEN=1; 26518 HAVE_WCSCPY=1; 26519 HAVE_WCPCPY=1; 26520 HAVE_WCSNCPY=1; 26521 HAVE_WCPNCPY=1; 26522 HAVE_WCSCAT=1; 26523 HAVE_WCSNCAT=1; 26524 HAVE_WCSCMP=1; 26525 HAVE_WCSNCMP=1; 26526 HAVE_WCSCASECMP=1; 26527 HAVE_WCSNCASECMP=1; 26528 HAVE_WCSCOLL=1; 26529 HAVE_WCSXFRM=1; 26530 HAVE_WCSDUP=1; 26531 HAVE_WCSCHR=1; 26532 HAVE_WCSRCHR=1; 26533 HAVE_WCSCSPN=1; 26534 HAVE_WCSSPN=1; 26535 HAVE_WCSPBRK=1; 26536 HAVE_WCSSTR=1; 26537 HAVE_WCSTOK=1; 26538 HAVE_WCSWIDTH=1; 26539 HAVE_WCSFTIME=1; 26540 HAVE_DECL_WCTOB=1; 26541 HAVE_DECL_WCSDUP=1; 26542 HAVE_DECL_WCWIDTH=1; 26543 REPLACE_MBSTATE_T=0; 26544 REPLACE_BTOWC=0; 26545 REPLACE_WCTOB=0; 26546 REPLACE_MBSINIT=0; 26547 REPLACE_MBRTOWC=0; 26548 REPLACE_MBRLEN=0; 26549 REPLACE_MBSRTOWCS=0; 26550 REPLACE_MBSNRTOWCS=0; 26551 REPLACE_WCRTOMB=0; 26552 REPLACE_WCSRTOMBS=0; 26553 REPLACE_WCSNRTOMBS=0; 26554 REPLACE_WCWIDTH=0; 26555 REPLACE_WCSWIDTH=0; 26556 REPLACE_WCSFTIME=0; 26557 REPLACE_WCSTOK=0; 26558 26559 26560 26561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 26562printf %s "checking for mbstate_t... " >&6; } 26563if test ${ac_cv_type_mbstate_t+y} 26564then : 26565 printf %s "(cached) " >&6 26566else $as_nop 26567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26568/* end confdefs.h. */ 26569$ac_includes_default 26570 #include <wchar.h> 26571int 26572main (void) 26573{ 26574mbstate_t x; return sizeof x; 26575 ; 26576 return 0; 26577} 26578_ACEOF 26579if ac_fn_c_try_compile "$LINENO" 26580then : 26581 ac_cv_type_mbstate_t=yes 26582else $as_nop 26583 ac_cv_type_mbstate_t=no 26584fi 26585rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26586fi 26587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 26588printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } 26589 if test $ac_cv_type_mbstate_t = yes; then 26590 26591printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h 26592 26593 else 26594 26595printf "%s\n" "#define mbstate_t int" >>confdefs.h 26596 26597 fi 26598 26599 26600 26601 26602 26603 26604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 26605printf %s "checking for a traditional japanese locale... " >&6; } 26606if test ${gt_cv_locale_ja+y} 26607then : 26608 printf %s "(cached) " >&6 26609else $as_nop 26610 26611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26612/* end confdefs.h. */ 26613 26614#include <locale.h> 26615#include <time.h> 26616#if HAVE_LANGINFO_CODESET 26617# include <langinfo.h> 26618#endif 26619#include <stdlib.h> 26620#include <string.h> 26621struct tm t; 26622char buf[16]; 26623int main () 26624{ 26625 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 26626 imitates locale dependent behaviour by looking at the environment 26627 variables, and all locales use the UTF-8 encoding. */ 26628#if defined __BEOS__ || defined __HAIKU__ 26629 return 1; 26630#else 26631 /* Check whether the given locale name is recognized by the system. */ 26632# if defined _WIN32 && !defined __CYGWIN__ 26633 /* On native Windows, setlocale(category, "") looks at the system settings, 26634 not at the environment variables. Also, when an encoding suffix such 26635 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 26636 category of the locale to "C". */ 26637 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 26638 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 26639 return 1; 26640# else 26641 if (setlocale (LC_ALL, "") == NULL) return 1; 26642# endif 26643 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 26644 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 26645 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 26646 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 26647 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 26648 some unit tests fail. 26649 On MirBSD 10, when an unsupported locale is specified, setlocale() 26650 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 26651# if HAVE_LANGINFO_CODESET 26652 { 26653 const char *cs = nl_langinfo (CODESET); 26654 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 26655 || strcmp (cs, "UTF-8") == 0) 26656 return 1; 26657 } 26658# endif 26659# ifdef __CYGWIN__ 26660 /* On Cygwin, avoid locale names without encoding suffix, because the 26661 locale_charset() function relies on the encoding suffix. Note that 26662 LC_ALL is set on the command line. */ 26663 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 26664# endif 26665 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 26666 on Cygwin 1.5.x. */ 26667 if (MB_CUR_MAX == 1) 26668 return 1; 26669 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 26670 This excludes the UTF-8 encoding (except on MirBSD). */ 26671 { 26672 const char *p; 26673 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 26674 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 26675 for (p = buf; *p != '\0'; p++) 26676 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 26677 return 1; 26678 } 26679 return 0; 26680#endif 26681} 26682 26683_ACEOF 26684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 26685 (eval $ac_link) 2>&5 26686 ac_status=$? 26687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26688 test $ac_status = 0; } && test -s conftest$ac_exeext; then 26689 case "$host_os" in 26690 # Handle native Windows specially, because there setlocale() interprets 26691 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 26692 # "fr" or "fra" as "French" or "French_France.1252", 26693 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 26694 # "ja" as "Japanese" or "Japanese_Japan.932", 26695 # and similar. 26696 mingw*) 26697 # Note that on native Windows, the Japanese locale is 26698 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 26699 # cannot use it here. 26700 gt_cv_locale_ja=none 26701 ;; 26702 *) 26703 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 26704 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 26705 # configure script would override the LC_ALL setting. Likewise for 26706 # LC_CTYPE, which is also set at the beginning of the configure script. 26707 # Test for the AIX locale name. 26708 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26709 gt_cv_locale_ja=ja_JP 26710 else 26711 # Test for the locale name with explicit encoding suffix. 26712 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26713 gt_cv_locale_ja=ja_JP.EUC-JP 26714 else 26715 # Test for the HP-UX, OSF/1, NetBSD locale name. 26716 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26717 gt_cv_locale_ja=ja_JP.eucJP 26718 else 26719 # Test for the IRIX, FreeBSD locale name. 26720 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26721 gt_cv_locale_ja=ja_JP.EUC 26722 else 26723 # Test for the Solaris 7 locale name. 26724 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26725 gt_cv_locale_ja=ja 26726 else 26727 # Special test for NetBSD 1.6. 26728 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 26729 gt_cv_locale_ja=ja_JP.eucJP 26730 else 26731 # None found. 26732 gt_cv_locale_ja=none 26733 fi 26734 fi 26735 fi 26736 fi 26737 fi 26738 fi 26739 ;; 26740 esac 26741 fi 26742 rm -fr conftest* 26743 26744fi 26745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 26746printf "%s\n" "$gt_cv_locale_ja" >&6; } 26747 LOCALE_JA=$gt_cv_locale_ja 26748 26749 26750 26751 26752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 26753printf %s "checking for a french Unicode locale... " >&6; } 26754if test ${gt_cv_locale_fr_utf8+y} 26755then : 26756 printf %s "(cached) " >&6 26757else $as_nop 26758 26759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26760/* end confdefs.h. */ 26761 26762#include <locale.h> 26763#include <time.h> 26764#if HAVE_LANGINFO_CODESET 26765# include <langinfo.h> 26766#endif 26767#include <stdlib.h> 26768#include <string.h> 26769struct tm t; 26770char buf[16]; 26771int main () { 26772 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 26773 imitates locale dependent behaviour by looking at the environment 26774 variables, and all locales use the UTF-8 encoding. */ 26775#if !(defined __BEOS__ || defined __HAIKU__) 26776 /* Check whether the given locale name is recognized by the system. */ 26777# if defined _WIN32 && !defined __CYGWIN__ 26778 /* On native Windows, setlocale(category, "") looks at the system settings, 26779 not at the environment variables. Also, when an encoding suffix such 26780 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 26781 category of the locale to "C". */ 26782 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 26783 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 26784 return 1; 26785# else 26786 if (setlocale (LC_ALL, "") == NULL) return 1; 26787# endif 26788 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 26789 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 26790 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 26791 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 26792 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 26793 some unit tests fail. */ 26794# if HAVE_LANGINFO_CODESET 26795 { 26796 const char *cs = nl_langinfo (CODESET); 26797 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 26798 return 1; 26799 } 26800# endif 26801# ifdef __CYGWIN__ 26802 /* On Cygwin, avoid locale names without encoding suffix, because the 26803 locale_charset() function relies on the encoding suffix. Note that 26804 LC_ALL is set on the command line. */ 26805 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 26806# endif 26807 /* Check whether in the abbreviation of the second month, the second 26808 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 26809 two bytes long, with UTF-8 encoding. */ 26810 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 26811 if (strftime (buf, sizeof (buf), "%b", &t) < 4 26812 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 26813 return 1; 26814#endif 26815#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 26816 /* Check whether the decimal separator is a comma. 26817 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 26818 are nl_langinfo(RADIXCHAR) are both ".". */ 26819 if (localeconv () ->decimal_point[0] != ',') return 1; 26820#endif 26821 return 0; 26822} 26823 26824_ACEOF 26825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 26826 (eval $ac_link) 2>&5 26827 ac_status=$? 26828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26829 test $ac_status = 0; } && test -s conftest$ac_exeext; then 26830 case "$host_os" in 26831 # Handle native Windows specially, because there setlocale() interprets 26832 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 26833 # "fr" or "fra" as "French" or "French_France.1252", 26834 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 26835 # "ja" as "Japanese" or "Japanese_Japan.932", 26836 # and similar. 26837 mingw*) 26838 # Test for the hypothetical native Windows locale name. 26839 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26840 gt_cv_locale_fr_utf8=French_France.65001 26841 else 26842 # None found. 26843 gt_cv_locale_fr_utf8=none 26844 fi 26845 ;; 26846 *) 26847 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 26848 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 26849 # configure script would override the LC_ALL setting. Likewise for 26850 # LC_CTYPE, which is also set at the beginning of the configure script. 26851 # Test for the usual locale name. 26852 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26853 gt_cv_locale_fr_utf8=fr_FR 26854 else 26855 # Test for the locale name with explicit encoding suffix. 26856 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26857 gt_cv_locale_fr_utf8=fr_FR.UTF-8 26858 else 26859 # Test for the Solaris 7 locale name. 26860 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26861 gt_cv_locale_fr_utf8=fr.UTF-8 26862 else 26863 # None found. 26864 gt_cv_locale_fr_utf8=none 26865 fi 26866 fi 26867 fi 26868 ;; 26869 esac 26870 fi 26871 rm -fr conftest* 26872 26873fi 26874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 26875printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 26876 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 26877 26878 26879 26880 26881 26882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 26883printf %s "checking for a transitional chinese locale... " >&6; } 26884if test ${gt_cv_locale_zh_CN+y} 26885then : 26886 printf %s "(cached) " >&6 26887else $as_nop 26888 26889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26890/* end confdefs.h. */ 26891 26892#include <locale.h> 26893#include <stdlib.h> 26894#include <time.h> 26895#if HAVE_LANGINFO_CODESET 26896# include <langinfo.h> 26897#endif 26898#include <stdlib.h> 26899#include <string.h> 26900struct tm t; 26901char buf[16]; 26902int main () 26903{ 26904 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 26905 imitates locale dependent behaviour by looking at the environment 26906 variables, and all locales use the UTF-8 encoding. */ 26907#if defined __BEOS__ || defined __HAIKU__ 26908 return 1; 26909#else 26910 /* Check whether the given locale name is recognized by the system. */ 26911# if defined _WIN32 && !defined __CYGWIN__ 26912 /* On native Windows, setlocale(category, "") looks at the system settings, 26913 not at the environment variables. Also, when an encoding suffix such 26914 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 26915 category of the locale to "C". */ 26916 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 26917 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 26918 return 1; 26919# else 26920 if (setlocale (LC_ALL, "") == NULL) return 1; 26921# endif 26922 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 26923 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 26924 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 26925 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 26926 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 26927 some unit tests fail. 26928 On MirBSD 10, when an unsupported locale is specified, setlocale() 26929 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 26930# if HAVE_LANGINFO_CODESET 26931 { 26932 const char *cs = nl_langinfo (CODESET); 26933 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 26934 || strcmp (cs, "UTF-8") == 0) 26935 return 1; 26936 } 26937# endif 26938# ifdef __CYGWIN__ 26939 /* On Cygwin, avoid locale names without encoding suffix, because the 26940 locale_charset() function relies on the encoding suffix. Note that 26941 LC_ALL is set on the command line. */ 26942 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 26943# endif 26944 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 26945 This excludes the UTF-8 encoding (except on MirBSD). */ 26946 { 26947 const char *p; 26948 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 26949 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 26950 for (p = buf; *p != '\0'; p++) 26951 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 26952 return 1; 26953 } 26954 /* Check whether a typical GB18030 multibyte sequence is recognized as a 26955 single wide character. This excludes the GB2312 and GBK encodings. */ 26956 if (mblen ("\203\062\332\066", 5) != 4) 26957 return 1; 26958 return 0; 26959#endif 26960} 26961 26962_ACEOF 26963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 26964 (eval $ac_link) 2>&5 26965 ac_status=$? 26966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26967 test $ac_status = 0; } && test -s conftest$ac_exeext; then 26968 case "$host_os" in 26969 # Handle native Windows specially, because there setlocale() interprets 26970 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 26971 # "fr" or "fra" as "French" or "French_France.1252", 26972 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 26973 # "ja" as "Japanese" or "Japanese_Japan.932", 26974 # and similar. 26975 mingw*) 26976 # Test for the hypothetical native Windows locale name. 26977 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26978 gt_cv_locale_zh_CN=Chinese_China.54936 26979 else 26980 # None found. 26981 gt_cv_locale_zh_CN=none 26982 fi 26983 ;; 26984 solaris2.8) 26985 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 26986 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 26987 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 26988 gt_cv_locale_zh_CN=none 26989 ;; 26990 *) 26991 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 26992 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 26993 # configure script would override the LC_ALL setting. Likewise for 26994 # LC_CTYPE, which is also set at the beginning of the configure script. 26995 # Test for the locale name without encoding suffix. 26996 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 26997 gt_cv_locale_zh_CN=zh_CN 26998 else 26999 # Test for the locale name with explicit encoding suffix. 27000 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 27001 gt_cv_locale_zh_CN=zh_CN.GB18030 27002 else 27003 # None found. 27004 gt_cv_locale_zh_CN=none 27005 fi 27006 fi 27007 ;; 27008 esac 27009 else 27010 # If there was a link error, due to mblen(), the system is so old that 27011 # it certainly doesn't have a chinese locale. 27012 gt_cv_locale_zh_CN=none 27013 fi 27014 rm -fr conftest* 27015 27016fi 27017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 27018printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 27019 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 27020 27021 27022 27023 27024 27025 GNULIB_EXPLICIT_BZERO=0; 27026 GNULIB_FFSL=0; 27027 GNULIB_FFSLL=0; 27028 GNULIB_MEMCHR=0; 27029 GNULIB_MEMMEM=0; 27030 GNULIB_MEMPCPY=0; 27031 GNULIB_MEMRCHR=0; 27032 GNULIB_RAWMEMCHR=0; 27033 GNULIB_STPCPY=0; 27034 GNULIB_STPNCPY=0; 27035 GNULIB_STRCHRNUL=0; 27036 GNULIB_STRDUP=0; 27037 GNULIB_STRNCAT=0; 27038 GNULIB_STRNDUP=0; 27039 GNULIB_STRNLEN=0; 27040 GNULIB_STRPBRK=0; 27041 GNULIB_STRSEP=0; 27042 GNULIB_STRSTR=0; 27043 GNULIB_STRCASESTR=0; 27044 GNULIB_STRTOK_R=0; 27045 GNULIB_MBSLEN=0; 27046 GNULIB_MBSNLEN=0; 27047 GNULIB_MBSCHR=0; 27048 GNULIB_MBSRCHR=0; 27049 GNULIB_MBSSTR=0; 27050 GNULIB_MBSCASECMP=0; 27051 GNULIB_MBSNCASECMP=0; 27052 GNULIB_MBSPCASECMP=0; 27053 GNULIB_MBSCASESTR=0; 27054 GNULIB_MBSCSPN=0; 27055 GNULIB_MBSPBRK=0; 27056 GNULIB_MBSSPN=0; 27057 GNULIB_MBSSEP=0; 27058 GNULIB_MBSTOK_R=0; 27059 GNULIB_STRERROR=0; 27060 GNULIB_STRERROR_R=0; 27061 GNULIB_STRERRORNAME_NP=0; 27062 GNULIB_SIGABBREV_NP=0; 27063 GNULIB_SIGDESCR_NP=0; 27064 GNULIB_STRSIGNAL=0; 27065 GNULIB_STRVERSCMP=0; 27066 HAVE_MBSLEN=0; 27067 GNULIB_MDA_MEMCCPY=1; 27068 GNULIB_MDA_STRDUP=1; 27069 HAVE_EXPLICIT_BZERO=1; 27070 HAVE_FFSL=1; 27071 HAVE_FFSLL=1; 27072 HAVE_DECL_MEMMEM=1; 27073 HAVE_MEMPCPY=1; 27074 HAVE_DECL_MEMRCHR=1; 27075 HAVE_RAWMEMCHR=1; 27076 HAVE_STPCPY=1; 27077 HAVE_STPNCPY=1; 27078 HAVE_STRCHRNUL=1; 27079 HAVE_DECL_STRDUP=1; 27080 HAVE_DECL_STRNDUP=1; 27081 HAVE_DECL_STRNLEN=1; 27082 HAVE_STRPBRK=1; 27083 HAVE_STRSEP=1; 27084 HAVE_STRCASESTR=1; 27085 HAVE_DECL_STRTOK_R=1; 27086 HAVE_DECL_STRERROR_R=1; 27087 HAVE_STRERRORNAME_NP=1; 27088 HAVE_SIGABBREV_NP=1; 27089 HAVE_SIGDESCR_NP=1; 27090 HAVE_DECL_STRSIGNAL=1; 27091 HAVE_STRVERSCMP=1; 27092 REPLACE_MEMCHR=0; 27093 REPLACE_MEMMEM=0; 27094 REPLACE_STPNCPY=0; 27095 REPLACE_STRCHRNUL=0; 27096 REPLACE_STRDUP=0; 27097 REPLACE_STRNCAT=0; 27098 REPLACE_STRNDUP=0; 27099 REPLACE_STRNLEN=0; 27100 REPLACE_STRSTR=0; 27101 REPLACE_STRCASESTR=0; 27102 REPLACE_STRTOK_R=0; 27103 REPLACE_STRERROR=0; 27104 REPLACE_STRERROR_R=0; 27105 REPLACE_STRERRORNAME_NP=0; 27106 REPLACE_STRSIGNAL=0; 27107 UNDEFINE_STRTOK_R=0; 27108 27109 27110 27111 27112 27113 27114 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 27115 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 27116 # irrelevant for anonymous mappings. 27117 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 27118if test "x$ac_cv_func_mmap" = xyes 27119then : 27120 gl_have_mmap=yes 27121else $as_nop 27122 gl_have_mmap=no 27123fi 27124 27125 27126 # Try to allow MAP_ANONYMOUS. 27127 gl_have_mmap_anonymous=no 27128 if test $gl_have_mmap = yes; then 27129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 27130printf %s "checking for MAP_ANONYMOUS... " >&6; } 27131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27132/* end confdefs.h. */ 27133 27134#include <sys/mman.h> 27135#ifdef MAP_ANONYMOUS 27136 I cannot identify this map 27137#endif 27138 27139_ACEOF 27140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27141 $EGREP "I cannot identify this map" >/dev/null 2>&1 27142then : 27143 gl_have_mmap_anonymous=yes 27144fi 27145rm -rf conftest* 27146 27147 if test $gl_have_mmap_anonymous != yes; then 27148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27149/* end confdefs.h. */ 27150 27151#include <sys/mman.h> 27152#ifdef MAP_ANON 27153 I cannot identify this map 27154#endif 27155 27156_ACEOF 27157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27158 $EGREP "I cannot identify this map" >/dev/null 2>&1 27159then : 27160 27161printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 27162 27163 gl_have_mmap_anonymous=yes 27164fi 27165rm -rf conftest* 27166 27167 fi 27168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 27169printf "%s\n" "$gl_have_mmap_anonymous" >&6; } 27170 if test $gl_have_mmap_anonymous = yes; then 27171 27172printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 27173 27174 fi 27175 fi 27176 27177 27178 27179 27180 27181 # Detect platform-specific bugs in some versions of glibc: 27182 # memchr should not dereference anything with length 0 27183 # https://bugzilla.redhat.com/show_bug.cgi?id=499689 27184 # memchr should not dereference overestimated length after a match 27185 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 27186 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162 27187 # memchr should cast the second argument to 'unsigned char'. 27188 # This bug exists in Android 4.3. 27189 # Assume that memchr works on platforms that lack mprotect. 27190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5 27191printf %s "checking whether memchr works... " >&6; } 27192if test ${gl_cv_func_memchr_works+y} 27193then : 27194 printf %s "(cached) " >&6 27195else $as_nop 27196 if test "$cross_compiling" = yes 27197then : 27198 case "$host_os" in 27199 # Guess no on Android. 27200 linux*-android*) gl_cv_func_memchr_works="guessing no" ;; 27201 # Guess yes on native Windows. 27202 mingw*) gl_cv_func_memchr_works="guessing yes" ;; 27203 # If we don't know, obey --enable-cross-guesses. 27204 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;; 27205 esac 27206 27207else $as_nop 27208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27209/* end confdefs.h. */ 27210 27211#include <string.h> 27212#if HAVE_SYS_MMAN_H 27213# include <fcntl.h> 27214# include <unistd.h> 27215# include <sys/types.h> 27216# include <sys/mman.h> 27217# ifndef MAP_FILE 27218# define MAP_FILE 0 27219# endif 27220#endif 27221 27222int 27223main (void) 27224{ 27225 27226 int result = 0; 27227 char *fence = NULL; 27228#if HAVE_SYS_MMAN_H && HAVE_MPROTECT 27229# if HAVE_MAP_ANONYMOUS 27230 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; 27231 const int fd = -1; 27232# else /* !HAVE_MAP_ANONYMOUS */ 27233 const int flags = MAP_FILE | MAP_PRIVATE; 27234 int fd = open ("/dev/zero", O_RDONLY, 0666); 27235 if (fd >= 0) 27236# endif 27237 { 27238 int pagesize = getpagesize (); 27239 char *two_pages = 27240 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE, 27241 flags, fd, 0); 27242 if (two_pages != (char *)(-1) 27243 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0) 27244 fence = two_pages + pagesize; 27245 } 27246#endif 27247 if (fence) 27248 { 27249 /* Test against bugs on glibc systems. */ 27250 if (memchr (fence, 0, 0)) 27251 result |= 1; 27252 strcpy (fence - 9, "12345678"); 27253 if (memchr (fence - 9, 0, 79) != fence - 1) 27254 result |= 2; 27255 if (memchr (fence - 1, 0, 3) != fence - 1) 27256 result |= 4; 27257 /* Test against bug on AIX 7.2. */ 27258 if (memchr (fence - 4, '6', 16) != fence - 4) 27259 result |= 8; 27260 } 27261 /* Test against bug on Android 4.3. */ 27262 { 27263 char input[3]; 27264 input[0] = 'a'; 27265 input[1] = 'b'; 27266 input[2] = 'c'; 27267 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1) 27268 result |= 16; 27269 } 27270 return result; 27271 27272 ; 27273 return 0; 27274} 27275_ACEOF 27276if ac_fn_c_try_run "$LINENO" 27277then : 27278 gl_cv_func_memchr_works=yes 27279else $as_nop 27280 gl_cv_func_memchr_works=no 27281fi 27282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27283 conftest.$ac_objext conftest.beam conftest.$ac_ext 27284fi 27285 27286 27287fi 27288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5 27289printf "%s\n" "$gl_cv_func_memchr_works" >&6; } 27290 case "$gl_cv_func_memchr_works" in 27291 *yes) ;; 27292 *) REPLACE_MEMCHR=1 ;; 27293 esac 27294 27295 27296 27297 27298 27299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5 27300printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; } 27301if test ${gl_cv_minmax_in_limits_h+y} 27302then : 27303 printf %s "(cached) " >&6 27304else $as_nop 27305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27306/* end confdefs.h. */ 27307#include <limits.h> 27308 int x = MIN (42, 17); 27309int 27310main (void) 27311{ 27312 27313 ; 27314 return 0; 27315} 27316_ACEOF 27317if ac_fn_c_try_compile "$LINENO" 27318then : 27319 gl_cv_minmax_in_limits_h=yes 27320else $as_nop 27321 gl_cv_minmax_in_limits_h=no 27322fi 27323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27324fi 27325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5 27326printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; } 27327 if test $gl_cv_minmax_in_limits_h = yes; then 27328 27329printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h 27330 27331 fi 27332 27333 27334 27335 27336 27337 27338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5 27339printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; } 27340if test ${gl_cv_minmax_in_sys_param_h+y} 27341then : 27342 printf %s "(cached) " >&6 27343else $as_nop 27344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27345/* end confdefs.h. */ 27346#include <sys/param.h> 27347 int x = MIN (42, 17); 27348int 27349main (void) 27350{ 27351 27352 ; 27353 return 0; 27354} 27355_ACEOF 27356if ac_fn_c_try_compile "$LINENO" 27357then : 27358 gl_cv_minmax_in_sys_param_h=yes 27359else $as_nop 27360 gl_cv_minmax_in_sys_param_h=no 27361fi 27362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27363fi 27364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5 27365printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; } 27366 if test $gl_cv_minmax_in_sys_param_h = yes; then 27367 27368printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h 27369 27370 fi 27371 27372 27373 27374 27375 27376 27377 27378 27379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 27380printf %s "checking for O_CLOEXEC... " >&6; } 27381if test ${gl_cv_macro_O_CLOEXEC+y} 27382then : 27383 printf %s "(cached) " >&6 27384else $as_nop 27385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27386/* end confdefs.h. */ 27387#include <fcntl.h> 27388 #ifndef O_CLOEXEC 27389 choke me; 27390 #endif 27391 27392int 27393main (void) 27394{ 27395return O_CLOEXEC; 27396 ; 27397 return 0; 27398} 27399_ACEOF 27400if ac_fn_c_try_compile "$LINENO" 27401then : 27402 gl_cv_macro_O_CLOEXEC=yes 27403else $as_nop 27404 gl_cv_macro_O_CLOEXEC=no 27405fi 27406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27407fi 27408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 27409printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; } 27410 27411 27412 27413 27414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 27415printf %s "checking for promoted mode_t type... " >&6; } 27416if test ${gl_cv_promoted_mode_t+y} 27417then : 27418 printf %s "(cached) " >&6 27419else $as_nop 27420 27421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27422/* end confdefs.h. */ 27423#include <sys/types.h> 27424int 27425main (void) 27426{ 27427typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; 27428 ; 27429 return 0; 27430} 27431_ACEOF 27432if ac_fn_c_try_compile "$LINENO" 27433then : 27434 gl_cv_promoted_mode_t='int' 27435else $as_nop 27436 gl_cv_promoted_mode_t='mode_t' 27437fi 27438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27439 27440fi 27441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 27442printf "%s\n" "$gl_cv_promoted_mode_t" >&6; } 27443 27444printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h 27445 27446 27447 27448 27449 GNULIB_POLL=0; 27450 HAVE_POLL=1; 27451 REPLACE_POLL=0; 27452 27453 27454 27455 27456 27457 27458 if test $ac_cv_header_poll_h = yes; then 27459 HAVE_POLL_H=1 27460 else 27461 HAVE_POLL_H=0 27462 fi 27463 27464 27465 27466 27467 27468 27469 27470 27471 27472 27473 27474 if test $gl_cv_have_include_next = yes; then 27475 gl_cv_next_poll_h='<'poll.h'>' 27476 else 27477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <poll.h>" >&5 27478printf %s "checking absolute name of <poll.h>... " >&6; } 27479if test ${gl_cv_next_poll_h+y} 27480then : 27481 printf %s "(cached) " >&6 27482else $as_nop 27483 27484 if test $ac_cv_header_poll_h = yes; then 27485 27486 27487 27488 27489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27490/* end confdefs.h. */ 27491#include <poll.h> 27492_ACEOF 27493 case "$host_os" in 27494 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27495 *) gl_absname_cpp="$ac_cpp" ;; 27496 esac 27497 27498 case "$host_os" in 27499 mingw*) 27500 gl_dirsep_regex='[/\\]' 27501 ;; 27502 *) 27503 gl_dirsep_regex='\/' 27504 ;; 27505 esac 27506 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27507 gl_header_literal_regex=`echo 'poll.h' \ 27508 | sed -e "$gl_make_literal_regex_sed"` 27509 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27510 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27511 s|^/[^/]|//&| 27512 p 27513 q 27514 }' 27515 27516 gl_cv_absolute_poll_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27517 sed -n "$gl_absolute_header_sed"` 27518 27519 gl_header=$gl_cv_absolute_poll_h 27520 gl_cv_next_poll_h='"'$gl_header'"' 27521 else 27522 gl_cv_next_poll_h='<'poll.h'>' 27523 fi 27524 27525 27526fi 27527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_poll_h" >&5 27528printf "%s\n" "$gl_cv_next_poll_h" >&6; } 27529 fi 27530 NEXT_POLL_H=$gl_cv_next_poll_h 27531 27532 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27533 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27534 gl_next_as_first_directive='<'poll.h'>' 27535 else 27536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27537 gl_next_as_first_directive=$gl_cv_next_poll_h 27538 fi 27539 NEXT_AS_FIRST_DIRECTIVE_POLL_H=$gl_next_as_first_directive 27540 27541 27542 27543 27544 27545 27546 27547 27548 27549 if test $ac_cv_header_sys_socket_h != yes; then 27550 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 27551if test "x$ac_cv_header_winsock2_h" = xyes 27552then : 27553 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 27554 27555fi 27556 27557 fi 27558 if test "$ac_cv_header_winsock2_h" = yes; then 27559 HAVE_WINSOCK2_H=1 27560 UNISTD_H_HAVE_WINSOCK2_H=1 27561 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 27562 else 27563 HAVE_WINSOCK2_H=0 27564 fi 27565 27566 27567 27568 27569 27570 27571 27572 27573 27574 27575 27576 if test $ac_cv_header_sys_socket_h != yes; then 27577 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 27578if test "x$ac_cv_header_winsock2_h" = xyes 27579then : 27580 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 27581 27582fi 27583 27584 fi 27585 if test "$ac_cv_header_winsock2_h" = yes; then 27586 HAVE_WINSOCK2_H=1 27587 UNISTD_H_HAVE_WINSOCK2_H=1 27588 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 27589 else 27590 HAVE_WINSOCK2_H=0 27591 fi 27592 27593 LIBSOCKET= 27594 if test $HAVE_WINSOCK2_H = 1; then 27595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WSAStartup" >&5 27596printf %s "checking for WSAStartup... " >&6; } 27597if test ${gl_cv_func_wsastartup+y} 27598then : 27599 printf %s "(cached) " >&6 27600else $as_nop 27601 27602 gl_save_LIBS="$LIBS" 27603 LIBS="$LIBS -lws2_32" 27604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27605/* end confdefs.h. */ 27606 27607#ifdef HAVE_WINSOCK2_H 27608# include <winsock2.h> 27609#endif 27610int 27611main (void) 27612{ 27613 27614 WORD wVersionRequested = MAKEWORD(1, 1); 27615 WSADATA wsaData; 27616 int err = WSAStartup(wVersionRequested, &wsaData); 27617 WSACleanup (); 27618 27619 ; 27620 return 0; 27621} 27622 27623_ACEOF 27624if ac_fn_c_try_link "$LINENO" 27625then : 27626 gl_cv_func_wsastartup=yes 27627else $as_nop 27628 gl_cv_func_wsastartup=no 27629fi 27630rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27631 conftest$ac_exeext conftest.$ac_ext 27632 LIBS="$gl_save_LIBS" 27633 27634fi 27635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5 27636printf "%s\n" "$gl_cv_func_wsastartup" >&6; } 27637 if test "$gl_cv_func_wsastartup" = "yes"; then 27638 27639printf "%s\n" "#define WINDOWS_SOCKETS 1" >>confdefs.h 27640 27641 LIBSOCKET='-lws2_32' 27642 fi 27643 else 27644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 27645printf %s "checking for library containing setsockopt... " >&6; } 27646if test ${gl_cv_lib_socket+y} 27647then : 27648 printf %s "(cached) " >&6 27649else $as_nop 27650 27651 gl_cv_lib_socket= 27652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27653/* end confdefs.h. */ 27654extern 27655#ifdef __cplusplus 27656"C" 27657#endif 27658char setsockopt(); 27659int 27660main (void) 27661{ 27662setsockopt(); 27663 ; 27664 return 0; 27665} 27666_ACEOF 27667if ac_fn_c_try_link "$LINENO" 27668then : 27669 27670else $as_nop 27671 gl_save_LIBS="$LIBS" 27672 LIBS="$gl_save_LIBS -lsocket" 27673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27674/* end confdefs.h. */ 27675extern 27676#ifdef __cplusplus 27677"C" 27678#endif 27679char setsockopt(); 27680int 27681main (void) 27682{ 27683setsockopt(); 27684 ; 27685 return 0; 27686} 27687_ACEOF 27688if ac_fn_c_try_link "$LINENO" 27689then : 27690 gl_cv_lib_socket="-lsocket" 27691fi 27692rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27693 conftest$ac_exeext conftest.$ac_ext 27694 if test -z "$gl_cv_lib_socket"; then 27695 LIBS="$gl_save_LIBS -lnetwork" 27696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27697/* end confdefs.h. */ 27698extern 27699#ifdef __cplusplus 27700"C" 27701#endif 27702char setsockopt(); 27703int 27704main (void) 27705{ 27706setsockopt(); 27707 ; 27708 return 0; 27709} 27710_ACEOF 27711if ac_fn_c_try_link "$LINENO" 27712then : 27713 gl_cv_lib_socket="-lnetwork" 27714fi 27715rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27716 conftest$ac_exeext conftest.$ac_ext 27717 if test -z "$gl_cv_lib_socket"; then 27718 LIBS="$gl_save_LIBS -lnet" 27719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27720/* end confdefs.h. */ 27721extern 27722#ifdef __cplusplus 27723"C" 27724#endif 27725char setsockopt(); 27726int 27727main (void) 27728{ 27729setsockopt(); 27730 ; 27731 return 0; 27732} 27733_ACEOF 27734if ac_fn_c_try_link "$LINENO" 27735then : 27736 gl_cv_lib_socket="-lnet" 27737fi 27738rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27739 conftest$ac_exeext conftest.$ac_ext 27740 fi 27741 fi 27742 LIBS="$gl_save_LIBS" 27743 27744fi 27745rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27746 conftest$ac_exeext conftest.$ac_ext 27747 if test -z "$gl_cv_lib_socket"; then 27748 gl_cv_lib_socket="none needed" 27749 fi 27750 27751fi 27752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5 27753printf "%s\n" "$gl_cv_lib_socket" >&6; } 27754 if test "$gl_cv_lib_socket" != "none needed"; then 27755 LIBSOCKET="$gl_cv_lib_socket" 27756 fi 27757 fi 27758 27759 27760 27761 27762 27763 27764 : 27765 27766 27767 27768 27769 27770 GNULIB_PSELECT=0; 27771 GNULIB_SELECT=0; 27772 HAVE_PSELECT=1; 27773 REPLACE_PSELECT=0; 27774 REPLACE_SELECT=0; 27775 27776 27777 27778 27779 27780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5 27781printf %s "checking whether <sys/select.h> is self-contained... " >&6; } 27782if test ${gl_cv_header_sys_select_h_selfcontained+y} 27783then : 27784 printf %s "(cached) " >&6 27785else $as_nop 27786 27787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27788/* end confdefs.h. */ 27789#include <sys/select.h> 27790int 27791main (void) 27792{ 27793struct timeval b; 27794 ; 27795 return 0; 27796} 27797_ACEOF 27798if ac_fn_c_try_compile "$LINENO" 27799then : 27800 gl_cv_header_sys_select_h_selfcontained=yes 27801else $as_nop 27802 gl_cv_header_sys_select_h_selfcontained=no 27803fi 27804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27805 if test $gl_cv_header_sys_select_h_selfcontained = yes; then 27806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27807/* end confdefs.h. */ 27808#include <sys/select.h> 27809int 27810main (void) 27811{ 27812int memset; int bzero; 27813 ; 27814 return 0; 27815} 27816 27817_ACEOF 27818if ac_fn_c_try_compile "$LINENO" 27819then : 27820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27821/* end confdefs.h. */ 27822#include <sys/select.h> 27823int 27824main (void) 27825{ 27826 27827 #undef memset 27828 #define memset nonexistent_memset 27829 extern 27830 #ifdef __cplusplus 27831 "C" 27832 #endif 27833 void *memset (void *, int, unsigned long); 27834 #undef bzero 27835 #define bzero nonexistent_bzero 27836 extern 27837 #ifdef __cplusplus 27838 "C" 27839 #endif 27840 void bzero (void *, unsigned long); 27841 fd_set fds; 27842 FD_ZERO (&fds); 27843 27844 ; 27845 return 0; 27846} 27847 27848_ACEOF 27849if ac_fn_c_try_link "$LINENO" 27850then : 27851 27852else $as_nop 27853 gl_cv_header_sys_select_h_selfcontained=no 27854fi 27855rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27856 conftest$ac_exeext conftest.$ac_ext 27857 27858fi 27859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27860 fi 27861 27862fi 27863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 27864printf "%s\n" "$gl_cv_header_sys_select_h_selfcontained" >&6; } 27865 27866 27867 27868 27869 27870 27871 27872 27873 27874 if test $gl_cv_have_include_next = yes; then 27875 gl_cv_next_sys_select_h='<'sys/select.h'>' 27876 else 27877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5 27878printf %s "checking absolute name of <sys/select.h>... " >&6; } 27879if test ${gl_cv_next_sys_select_h+y} 27880then : 27881 printf %s "(cached) " >&6 27882else $as_nop 27883 27884 if test $ac_cv_header_sys_select_h = yes; then 27885 27886 27887 27888 27889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27890/* end confdefs.h. */ 27891#include <sys/select.h> 27892_ACEOF 27893 case "$host_os" in 27894 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27895 *) gl_absname_cpp="$ac_cpp" ;; 27896 esac 27897 27898 case "$host_os" in 27899 mingw*) 27900 gl_dirsep_regex='[/\\]' 27901 ;; 27902 *) 27903 gl_dirsep_regex='\/' 27904 ;; 27905 esac 27906 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27907 gl_header_literal_regex=`echo 'sys/select.h' \ 27908 | sed -e "$gl_make_literal_regex_sed"` 27909 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27910 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27911 s|^/[^/]|//&| 27912 p 27913 q 27914 }' 27915 27916 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27917 sed -n "$gl_absolute_header_sed"` 27918 27919 gl_header=$gl_cv_absolute_sys_select_h 27920 gl_cv_next_sys_select_h='"'$gl_header'"' 27921 else 27922 gl_cv_next_sys_select_h='<'sys/select.h'>' 27923 fi 27924 27925 27926fi 27927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 27928printf "%s\n" "$gl_cv_next_sys_select_h" >&6; } 27929 fi 27930 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h 27931 27932 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27934 gl_next_as_first_directive='<'sys/select.h'>' 27935 else 27936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27937 gl_next_as_first_directive=$gl_cv_next_sys_select_h 27938 fi 27939 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive 27940 27941 27942 27943 27944 if test $ac_cv_header_sys_select_h = yes; then 27945 HAVE_SYS_SELECT_H=1 27946 else 27947 HAVE_SYS_SELECT_H=0 27948 fi 27949 27950 27951 27952 27953 27954 if test $ac_cv_header_sys_socket_h != yes; then 27955 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 27956if test "x$ac_cv_header_winsock2_h" = xyes 27957then : 27958 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 27959 27960fi 27961 27962 fi 27963 if test "$ac_cv_header_winsock2_h" = yes; then 27964 HAVE_WINSOCK2_H=1 27965 UNISTD_H_HAVE_WINSOCK2_H=1 27966 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 27967 else 27968 HAVE_WINSOCK2_H=0 27969 fi 27970 27971 27972 27973 27974 27975 27976 27977 27978 GNULIB_PTHREAD_SIGMASK=0; 27979 GNULIB_RAISE=0; 27980 GNULIB_SIGNAL_H_SIGPIPE=0; 27981 GNULIB_SIGPROCMASK=0; 27982 GNULIB_SIGACTION=0; 27983 HAVE_POSIX_SIGNALBLOCKING=1; 27984 HAVE_PTHREAD_SIGMASK=1; 27985 HAVE_RAISE=1; 27986 HAVE_SIGSET_T=1; 27987 HAVE_SIGINFO_T=1; 27988 HAVE_SIGACTION=1; 27989 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; 27990 27991 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; 27992 27993 HAVE_SIGHANDLER_T=1; 27994 REPLACE_PTHREAD_SIGMASK=0; 27995 REPLACE_RAISE=0; 27996 27997 27998 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " 27999 #include <signal.h> 28000 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ 28001 #include <sys/types.h> 28002 28003" 28004if test "x$ac_cv_type_sigset_t" = xyes 28005then : 28006 28007printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h 28008 28009gl_cv_type_sigset_t=yes 28010else $as_nop 28011 gl_cv_type_sigset_t=no 28012fi 28013 28014 if test $gl_cv_type_sigset_t != yes; then 28015 HAVE_SIGSET_T=0 28016 fi 28017 28018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 28019printf %s "checking for uid_t in sys/types.h... " >&6; } 28020if test ${ac_cv_type_uid_t+y} 28021then : 28022 printf %s "(cached) " >&6 28023else $as_nop 28024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28025/* end confdefs.h. */ 28026#include <sys/types.h> 28027 28028_ACEOF 28029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28030 $EGREP "uid_t" >/dev/null 2>&1 28031then : 28032 ac_cv_type_uid_t=yes 28033else $as_nop 28034 ac_cv_type_uid_t=no 28035fi 28036rm -rf conftest* 28037 28038fi 28039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 28040printf "%s\n" "$ac_cv_type_uid_t" >&6; } 28041if test $ac_cv_type_uid_t = no; then 28042 28043printf "%s\n" "#define uid_t int" >>confdefs.h 28044 28045 28046printf "%s\n" "#define gid_t int" >>confdefs.h 28047 28048fi 28049 28050 28051 28052 28053 28054 28055 28056 28057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5 28058printf %s "checking whether snprintf returns a byte count as in C99... " >&6; } 28059if test ${gl_cv_func_snprintf_retval_c99+y} 28060then : 28061 printf %s "(cached) " >&6 28062else $as_nop 28063 28064 if test "$cross_compiling" = yes 28065then : 28066 case "$host_os" in 28067 # Guess yes on glibc systems. 28068 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28069 # Guess yes on musl systems. 28070 *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28071 # Guess yes on FreeBSD >= 5. 28072 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";; 28073 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28074 # Guess yes on Mac OS X >= 10.3. 28075 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";; 28076 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28077 # Guess yes on OpenBSD >= 3.9. 28078 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) 28079 gl_cv_func_snprintf_retval_c99="guessing no";; 28080 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28081 # Guess yes on Solaris >= 2.10. 28082 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";; 28083 solaris*) gl_cv_func_printf_sizes_c99="guessing no";; 28084 # Guess yes on AIX >= 4. 28085 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";; 28086 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28087 # Guess yes on NetBSD >= 3. 28088 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 28089 gl_cv_func_snprintf_retval_c99="guessing no";; 28090 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28091 # Guess yes on BeOS. 28092 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28093 # Guess yes on Android. 28094 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";; 28095 # Guess yes on MSVC, no on mingw. 28096 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28097/* end confdefs.h. */ 28098 28099#ifdef _MSC_VER 28100 Known 28101#endif 28102 28103_ACEOF 28104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28105 $EGREP "Known" >/dev/null 2>&1 28106then : 28107 gl_cv_func_snprintf_retval_c99="guessing yes" 28108else $as_nop 28109 gl_cv_func_snprintf_retval_c99="guessing no" 28110fi 28111rm -rf conftest* 28112 28113 ;; 28114 # If we don't know, obey --enable-cross-guesses. 28115 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";; 28116 esac 28117 28118else $as_nop 28119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28120/* end confdefs.h. */ 28121 28122#include <stdio.h> 28123#include <string.h> 28124#if HAVE_SNPRINTF 28125# define my_snprintf snprintf 28126#else 28127# include <stdarg.h> 28128static int my_snprintf (char *buf, int size, const char *format, ...) 28129{ 28130 va_list args; 28131 int ret; 28132 va_start (args, format); 28133 ret = vsnprintf (buf, size, format, args); 28134 va_end (args); 28135 return ret; 28136} 28137#endif 28138static char buf[100]; 28139int main () 28140{ 28141 strcpy (buf, "ABCDEF"); 28142 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7) 28143 return 1; 28144 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7) 28145 return 2; 28146 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7) 28147 return 3; 28148 return 0; 28149} 28150_ACEOF 28151if ac_fn_c_try_run "$LINENO" 28152then : 28153 gl_cv_func_snprintf_retval_c99=yes 28154else $as_nop 28155 gl_cv_func_snprintf_retval_c99=no 28156fi 28157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28158 conftest.$ac_objext conftest.beam conftest.$ac_ext 28159fi 28160 28161 28162fi 28163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5 28164printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; } 28165 28166ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" 28167if test "x$ac_cv_have_decl_snprintf" = xyes 28168then : 28169 ac_have_decl=1 28170else $as_nop 28171 ac_have_decl=0 28172fi 28173 28174printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h 28175 28176 28177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 28178printf %s "checking for stdbool.h that conforms to C99... " >&6; } 28179if test ${ac_cv_header_stdbool_h+y} 28180then : 28181 printf %s "(cached) " >&6 28182else $as_nop 28183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28184/* end confdefs.h. */ 28185 28186 #include <stdbool.h> 28187 28188 #ifdef __cplusplus 28189 typedef bool Bool; 28190 #else 28191 typedef _Bool Bool; 28192 #ifndef bool 28193 "error: bool is not defined" 28194 #endif 28195 #ifndef false 28196 "error: false is not defined" 28197 #endif 28198 #if false 28199 "error: false is not 0" 28200 #endif 28201 #ifndef true 28202 "error: true is not defined" 28203 #endif 28204 #if true != 1 28205 "error: true is not 1" 28206 #endif 28207 #endif 28208 28209 #ifndef __bool_true_false_are_defined 28210 "error: __bool_true_false_are_defined is not defined" 28211 #endif 28212 28213 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s; 28214 28215 char a[true == 1 ? 1 : -1]; 28216 char b[false == 0 ? 1 : -1]; 28217 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 28218 char d[(bool) 0.5 == true ? 1 : -1]; 28219 /* See body of main program for 'e'. */ 28220 char f[(Bool) 0.0 == false ? 1 : -1]; 28221 char g[true]; 28222 char h[sizeof (Bool)]; 28223 char i[sizeof s.t]; 28224 enum { j = false, k = true, l = false * true, m = true * 256 }; 28225 /* The following fails for 28226 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 28227 Bool n[m]; 28228 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 28229 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 28230 /* Catch a bug in an HP-UX C compiler. See 28231 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 28232 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html 28233 */ 28234 Bool q = true; 28235 Bool *pq = &q; 28236 bool *qq = &q; 28237 28238int 28239main (void) 28240{ 28241 28242 bool e = &s; 28243 *pq |= q; *pq |= ! q; 28244 *qq |= q; *qq |= ! q; 28245 /* Refer to every declared value, to avoid compiler optimizations. */ 28246 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 28247 + !m + !n + !o + !p + !q + !pq + !qq); 28248 28249 ; 28250 return 0; 28251} 28252_ACEOF 28253if ac_fn_c_try_compile "$LINENO" 28254then : 28255 ac_cv_header_stdbool_h=yes 28256else $as_nop 28257 ac_cv_header_stdbool_h=no 28258fi 28259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28260fi 28261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 28262printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } 28263 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 28264if test "x$ac_cv_type__Bool" = xyes 28265then : 28266 28267printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h 28268 28269 28270fi 28271 28272 28273ac_fn_c_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" 28274if test "x$ac_cv_have_decl_fcloseall" = xyes 28275then : 28276 ac_have_decl=1 28277else $as_nop 28278 ac_have_decl=0 28279fi 28280 28281printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h 28282 28283ac_fn_c_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" 28284if test "x$ac_cv_have_decl_ecvt" = xyes 28285then : 28286 ac_have_decl=1 28287else $as_nop 28288 ac_have_decl=0 28289fi 28290 28291printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h 28292 28293ac_fn_c_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" 28294if test "x$ac_cv_have_decl_fcvt" = xyes 28295then : 28296 ac_have_decl=1 28297else $as_nop 28298 ac_have_decl=0 28299fi 28300 28301printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h 28302 28303ac_fn_c_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" 28304if test "x$ac_cv_have_decl_gcvt" = xyes 28305then : 28306 ac_have_decl=1 28307else $as_nop 28308 ac_have_decl=0 28309fi 28310 28311printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h 28312 28313ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default" 28314if test "x$ac_cv_have_decl_strdup" = xyes 28315then : 28316 ac_have_decl=1 28317else $as_nop 28318 ac_have_decl=0 28319fi 28320 28321printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h 28322 28323 28324 REPLACE_STRERROR_0=0 28325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 28326printf %s "checking whether strerror(0) succeeds... " >&6; } 28327if test ${gl_cv_func_strerror_0_works+y} 28328then : 28329 printf %s "(cached) " >&6 28330else $as_nop 28331 if test "$cross_compiling" = yes 28332then : 28333 case "$host_os" in 28334 # Guess yes on glibc systems. 28335 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; 28336 # Guess yes on musl systems. 28337 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;; 28338 # Guess yes on native Windows. 28339 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; 28340 # If we don't know, obey --enable-cross-guesses. 28341 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;; 28342 esac 28343 28344else $as_nop 28345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28346/* end confdefs.h. */ 28347#include <string.h> 28348 #include <errno.h> 28349 28350int 28351main (void) 28352{ 28353int result = 0; 28354 char *str; 28355 errno = 0; 28356 str = strerror (0); 28357 if (!*str) result |= 1; 28358 if (errno) result |= 2; 28359 if (strstr (str, "nknown") || strstr (str, "ndefined")) 28360 result |= 4; 28361 return result; 28362 ; 28363 return 0; 28364} 28365_ACEOF 28366if ac_fn_c_try_run "$LINENO" 28367then : 28368 gl_cv_func_strerror_0_works=yes 28369else $as_nop 28370 gl_cv_func_strerror_0_works=no 28371fi 28372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28373 conftest.$ac_objext conftest.beam conftest.$ac_ext 28374fi 28375 28376 28377fi 28378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 28379printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; } 28380 case "$gl_cv_func_strerror_0_works" in 28381 *yes) ;; 28382 *) 28383 REPLACE_STRERROR_0=1 28384 28385printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h 28386 28387 ;; 28388 esac 28389 28390 28391 28392 28393 28394 28395 28396 28397 28398 28399 28400 if test $gl_cv_have_include_next = yes; then 28401 gl_cv_next_string_h='<'string.h'>' 28402 else 28403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 28404printf %s "checking absolute name of <string.h>... " >&6; } 28405if test ${gl_cv_next_string_h+y} 28406then : 28407 printf %s "(cached) " >&6 28408else $as_nop 28409 28410 28411 28412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28413/* end confdefs.h. */ 28414#include <string.h> 28415_ACEOF 28416 case "$host_os" in 28417 aix*) gl_absname_cpp="$ac_cpp -C" ;; 28418 *) gl_absname_cpp="$ac_cpp" ;; 28419 esac 28420 28421 case "$host_os" in 28422 mingw*) 28423 gl_dirsep_regex='[/\\]' 28424 ;; 28425 *) 28426 gl_dirsep_regex='\/' 28427 ;; 28428 esac 28429 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 28430 gl_header_literal_regex=`echo 'string.h' \ 28431 | sed -e "$gl_make_literal_regex_sed"` 28432 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 28433 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 28434 s|^/[^/]|//&| 28435 p 28436 q 28437 }' 28438 28439 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 28440 sed -n "$gl_absolute_header_sed"` 28441 28442 gl_header=$gl_cv_absolute_string_h 28443 gl_cv_next_string_h='"'$gl_header'"' 28444 28445 28446fi 28447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 28448printf "%s\n" "$gl_cv_next_string_h" >&6; } 28449 fi 28450 NEXT_STRING_H=$gl_cv_next_string_h 28451 28452 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 28453 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 28454 gl_next_as_first_directive='<'string.h'>' 28455 else 28456 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 28457 gl_next_as_first_directive=$gl_cv_next_string_h 28458 fi 28459 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 28460 28461 28462 28463 28464 28465 28466 28467 28468 28469 28470 28471ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default" 28472if test "x$ac_cv_have_decl_strtok_r" = xyes 28473then : 28474 ac_have_decl=1 28475else $as_nop 28476 ac_have_decl=0 28477fi 28478 28479printf "%s\n" "#define HAVE_DECL_STRTOK_R $ac_have_decl" >>confdefs.h 28480 28481 28482 GNULIB_GETTIMEOFDAY=0; 28483 HAVE_GETTIMEOFDAY=1; 28484 HAVE_STRUCT_TIMEVAL=1; 28485 HAVE_SYS_TIME_H=1; 28486 REPLACE_GETTIMEOFDAY=0; 28487 REPLACE_STRUCT_TIMEVAL=0; 28488 28489 28490 28491 28492 28493 28494 28495 28496 28497 28498 28499 28500 28501 28502 if test $gl_cv_have_include_next = yes; then 28503 gl_cv_next_sys_time_h='<'sys/time.h'>' 28504 else 28505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 28506printf %s "checking absolute name of <sys/time.h>... " >&6; } 28507if test ${gl_cv_next_sys_time_h+y} 28508then : 28509 printf %s "(cached) " >&6 28510else $as_nop 28511 28512 if test $ac_cv_header_sys_time_h = yes; then 28513 28514 28515 28516 28517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28518/* end confdefs.h. */ 28519#include <sys/time.h> 28520_ACEOF 28521 case "$host_os" in 28522 aix*) gl_absname_cpp="$ac_cpp -C" ;; 28523 *) gl_absname_cpp="$ac_cpp" ;; 28524 esac 28525 28526 case "$host_os" in 28527 mingw*) 28528 gl_dirsep_regex='[/\\]' 28529 ;; 28530 *) 28531 gl_dirsep_regex='\/' 28532 ;; 28533 esac 28534 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 28535 gl_header_literal_regex=`echo 'sys/time.h' \ 28536 | sed -e "$gl_make_literal_regex_sed"` 28537 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 28538 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 28539 s|^/[^/]|//&| 28540 p 28541 q 28542 }' 28543 28544 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 28545 sed -n "$gl_absolute_header_sed"` 28546 28547 gl_header=$gl_cv_absolute_sys_time_h 28548 gl_cv_next_sys_time_h='"'$gl_header'"' 28549 else 28550 gl_cv_next_sys_time_h='<'sys/time.h'>' 28551 fi 28552 28553 28554fi 28555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 28556printf "%s\n" "$gl_cv_next_sys_time_h" >&6; } 28557 fi 28558 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h 28559 28560 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 28561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 28562 gl_next_as_first_directive='<'sys/time.h'>' 28563 else 28564 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 28565 gl_next_as_first_directive=$gl_cv_next_sys_time_h 28566 fi 28567 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive 28568 28569 28570 28571 28572 28573 if test $ac_cv_header_sys_time_h != yes; then 28574 HAVE_SYS_TIME_H=0 28575 fi 28576 28577 28578 28579 28580 28581 if test $ac_cv_header_sys_socket_h != yes; then 28582 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 28583if test "x$ac_cv_header_winsock2_h" = xyes 28584then : 28585 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 28586 28587fi 28588 28589 fi 28590 if test "$ac_cv_header_winsock2_h" = yes; then 28591 HAVE_WINSOCK2_H=1 28592 UNISTD_H_HAVE_WINSOCK2_H=1 28593 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 28594 else 28595 HAVE_WINSOCK2_H=0 28596 fi 28597 28598 28599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 28600printf %s "checking for struct timeval... " >&6; } 28601if test ${gl_cv_sys_struct_timeval+y} 28602then : 28603 printf %s "(cached) " >&6 28604else $as_nop 28605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28606/* end confdefs.h. */ 28607#if HAVE_SYS_TIME_H 28608 #include <sys/time.h> 28609 #endif 28610 #include <time.h> 28611 #if HAVE_WINSOCK2_H 28612 # include <winsock2.h> 28613 #endif 28614 28615int 28616main (void) 28617{ 28618static struct timeval x; x.tv_sec = x.tv_usec; 28619 ; 28620 return 0; 28621} 28622_ACEOF 28623if ac_fn_c_try_compile "$LINENO" 28624then : 28625 gl_cv_sys_struct_timeval=yes 28626else $as_nop 28627 gl_cv_sys_struct_timeval=no 28628fi 28629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28630 28631fi 28632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 28633printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; } 28634 if test $gl_cv_sys_struct_timeval != yes; then 28635 HAVE_STRUCT_TIMEVAL=0 28636 else 28637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5 28638printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; } 28639if test ${gl_cv_sys_struct_timeval_tv_sec+y} 28640then : 28641 printf %s "(cached) " >&6 28642else $as_nop 28643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28644/* end confdefs.h. */ 28645#if HAVE_SYS_TIME_H 28646 #include <sys/time.h> 28647 #endif 28648 #include <time.h> 28649 #if HAVE_WINSOCK2_H 28650 # include <winsock2.h> 28651 #endif 28652 28653int 28654main (void) 28655{ 28656static struct timeval x; 28657 typedef int verify_tv_sec_type[ 28658 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 28659 ]; 28660 28661 ; 28662 return 0; 28663} 28664_ACEOF 28665if ac_fn_c_try_compile "$LINENO" 28666then : 28667 gl_cv_sys_struct_timeval_tv_sec=yes 28668else $as_nop 28669 gl_cv_sys_struct_timeval_tv_sec=no 28670fi 28671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28672 28673fi 28674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 28675printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; } 28676 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then 28677 REPLACE_STRUCT_TIMEVAL=1 28678 fi 28679 fi 28680 28681 28682 28683 28684 28685 28686 28687 28688 28689 GNULIB_CTIME=0; 28690 GNULIB_MKTIME=0; 28691 GNULIB_LOCALTIME=0; 28692 GNULIB_NANOSLEEP=0; 28693 GNULIB_STRFTIME=0; 28694 GNULIB_STRPTIME=0; 28695 GNULIB_TIMEGM=0; 28696 GNULIB_TIME_R=0; 28697 GNULIB_TIME_RZ=0; 28698 GNULIB_TZSET=0; 28699 GNULIB_MDA_TZSET=1; 28700 HAVE_DECL_LOCALTIME_R=1; 28701 HAVE_NANOSLEEP=1; 28702 HAVE_STRPTIME=1; 28703 HAVE_TIMEGM=1; 28704 HAVE_TIMEZONE_T=0; 28705 REPLACE_CTIME=GNULIB_PORTCHECK; 28706 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; 28707 REPLACE_MKTIME=GNULIB_PORTCHECK; 28708 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; 28709 REPLACE_STRFTIME=GNULIB_PORTCHECK; 28710 REPLACE_TIMEGM=GNULIB_PORTCHECK; 28711 REPLACE_TZSET=GNULIB_PORTCHECK; 28712 28713 : ${GNULIB_GETTIMEOFDAY=0}; 28714 REPLACE_GMTIME=0; 28715 REPLACE_LOCALTIME=0; 28716 28717 28718 28719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 28720printf %s "checking for struct timespec in <time.h>... " >&6; } 28721if test ${gl_cv_sys_struct_timespec_in_time_h+y} 28722then : 28723 printf %s "(cached) " >&6 28724else $as_nop 28725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28726/* end confdefs.h. */ 28727#include <time.h> 28728 28729int 28730main (void) 28731{ 28732static struct timespec x; x.tv_sec = x.tv_nsec; 28733 ; 28734 return 0; 28735} 28736_ACEOF 28737if ac_fn_c_try_compile "$LINENO" 28738then : 28739 gl_cv_sys_struct_timespec_in_time_h=yes 28740else $as_nop 28741 gl_cv_sys_struct_timespec_in_time_h=no 28742fi 28743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28744fi 28745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 28746printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; } 28747 28748 TIME_H_DEFINES_STRUCT_TIMESPEC=0 28749 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 28750 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 28751 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 28752 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then 28753 TIME_H_DEFINES_STRUCT_TIMESPEC=1 28754 else 28755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 28756printf %s "checking for struct timespec in <sys/time.h>... " >&6; } 28757if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y} 28758then : 28759 printf %s "(cached) " >&6 28760else $as_nop 28761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28762/* end confdefs.h. */ 28763#include <sys/time.h> 28764 28765int 28766main (void) 28767{ 28768static struct timespec x; x.tv_sec = x.tv_nsec; 28769 ; 28770 return 0; 28771} 28772_ACEOF 28773if ac_fn_c_try_compile "$LINENO" 28774then : 28775 gl_cv_sys_struct_timespec_in_sys_time_h=yes 28776else $as_nop 28777 gl_cv_sys_struct_timespec_in_sys_time_h=no 28778fi 28779rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28780fi 28781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 28782printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } 28783 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then 28784 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 28785 else 28786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 28787printf %s "checking for struct timespec in <pthread.h>... " >&6; } 28788if test ${gl_cv_sys_struct_timespec_in_pthread_h+y} 28789then : 28790 printf %s "(cached) " >&6 28791else $as_nop 28792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28793/* end confdefs.h. */ 28794#include <pthread.h> 28795 28796int 28797main (void) 28798{ 28799static struct timespec x; x.tv_sec = x.tv_nsec; 28800 ; 28801 return 0; 28802} 28803_ACEOF 28804if ac_fn_c_try_compile "$LINENO" 28805then : 28806 gl_cv_sys_struct_timespec_in_pthread_h=yes 28807else $as_nop 28808 gl_cv_sys_struct_timespec_in_pthread_h=no 28809fi 28810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28811fi 28812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 28813printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } 28814 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then 28815 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 28816 else 28817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5 28818printf %s "checking for struct timespec in <unistd.h>... " >&6; } 28819if test ${gl_cv_sys_struct_timespec_in_unistd_h+y} 28820then : 28821 printf %s "(cached) " >&6 28822else $as_nop 28823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28824/* end confdefs.h. */ 28825#include <unistd.h> 28826 28827int 28828main (void) 28829{ 28830static struct timespec x; x.tv_sec = x.tv_nsec; 28831 ; 28832 return 0; 28833} 28834_ACEOF 28835if ac_fn_c_try_compile "$LINENO" 28836then : 28837 gl_cv_sys_struct_timespec_in_unistd_h=yes 28838else $as_nop 28839 gl_cv_sys_struct_timespec_in_unistd_h=no 28840fi 28841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 28842fi 28843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 28844printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } 28845 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then 28846 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 28847 fi 28848 fi 28849 fi 28850 fi 28851 28852 28853 28854 28855 28856 28857 28858 28859 28860 28861 28862 28863 28864 28865 28866 28867 if test $gl_cv_have_include_next = yes; then 28868 gl_cv_next_time_h='<'time.h'>' 28869 else 28870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 28871printf %s "checking absolute name of <time.h>... " >&6; } 28872if test ${gl_cv_next_time_h+y} 28873then : 28874 printf %s "(cached) " >&6 28875else $as_nop 28876 28877 28878 28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28880/* end confdefs.h. */ 28881#include <time.h> 28882_ACEOF 28883 case "$host_os" in 28884 aix*) gl_absname_cpp="$ac_cpp -C" ;; 28885 *) gl_absname_cpp="$ac_cpp" ;; 28886 esac 28887 28888 case "$host_os" in 28889 mingw*) 28890 gl_dirsep_regex='[/\\]' 28891 ;; 28892 *) 28893 gl_dirsep_regex='\/' 28894 ;; 28895 esac 28896 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 28897 gl_header_literal_regex=`echo 'time.h' \ 28898 | sed -e "$gl_make_literal_regex_sed"` 28899 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 28900 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 28901 s|^/[^/]|//&| 28902 p 28903 q 28904 }' 28905 28906 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 28907 sed -n "$gl_absolute_header_sed"` 28908 28909 gl_header=$gl_cv_absolute_time_h 28910 gl_cv_next_time_h='"'$gl_header'"' 28911 28912 28913fi 28914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 28915printf "%s\n" "$gl_cv_next_time_h" >&6; } 28916 fi 28917 NEXT_TIME_H=$gl_cv_next_time_h 28918 28919 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 28920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 28921 gl_next_as_first_directive='<'time.h'>' 28922 else 28923 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 28924 gl_next_as_first_directive=$gl_cv_next_time_h 28925 fi 28926 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive 28927 28928 28929 28930 28931 28932 28933 28934 28935ac_fn_c_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" 28936if test "x$ac_cv_have_decl_execvpe" = xyes 28937then : 28938 ac_have_decl=1 28939else $as_nop 28940 ac_have_decl=0 28941fi 28942 28943printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h 28944 28945 28946 28947 28948 28949 28950 28951gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;} 28952i\ 289530 28954q 28955' 28956gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;} 28957i\ 289580 28959q 28960' 28961gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;} 28962i\ 289630 28964q 28965' 28966 28967 28968 if test "$HAVE_LIBUNISTRING" = yes; then 28969 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"` 28970 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"` 28971 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"` 28972 fi 28973 28974 28975 28976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 28977printf %s "checking for inttypes.h... " >&6; } 28978if test ${gl_cv_header_inttypes_h+y} 28979then : 28980 printf %s "(cached) " >&6 28981else $as_nop 28982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28983/* end confdefs.h. */ 28984 28985#include <sys/types.h> 28986#include <inttypes.h> 28987 28988int 28989main (void) 28990{ 28991uintmax_t i = (uintmax_t) -1; return !i; 28992 ; 28993 return 0; 28994} 28995_ACEOF 28996if ac_fn_c_try_compile "$LINENO" 28997then : 28998 gl_cv_header_inttypes_h=yes 28999else $as_nop 29000 gl_cv_header_inttypes_h=no 29001fi 29002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29003fi 29004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 29005printf "%s\n" "$gl_cv_header_inttypes_h" >&6; } 29006 if test $gl_cv_header_inttypes_h = yes; then 29007 29008printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h 29009 29010 fi 29011 29012 29013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 29014printf %s "checking for stdint.h... " >&6; } 29015if test ${gl_cv_header_stdint_h+y} 29016then : 29017 printf %s "(cached) " >&6 29018else $as_nop 29019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29020/* end confdefs.h. */ 29021#include <sys/types.h> 29022 #include <stdint.h> 29023int 29024main (void) 29025{ 29026uintmax_t i = (uintmax_t) -1; return !i; 29027 ; 29028 return 0; 29029} 29030_ACEOF 29031if ac_fn_c_try_compile "$LINENO" 29032then : 29033 gl_cv_header_stdint_h=yes 29034else $as_nop 29035 gl_cv_header_stdint_h=no 29036fi 29037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29038fi 29039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 29040printf "%s\n" "$gl_cv_header_stdint_h" >&6; } 29041 if test $gl_cv_header_stdint_h = yes; then 29042 29043printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h 29044 29045 fi 29046 29047 29048 29049 29050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 29051printf %s "checking for intmax_t... " >&6; } 29052if test ${gt_cv_c_intmax_t+y} 29053then : 29054 printf %s "(cached) " >&6 29055else $as_nop 29056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29057/* end confdefs.h. */ 29058 29059#include <stddef.h> 29060#include <stdlib.h> 29061#if HAVE_STDINT_H_WITH_UINTMAX 29062#include <stdint.h> 29063#endif 29064#if HAVE_INTTYPES_H_WITH_UINTMAX 29065#include <inttypes.h> 29066#endif 29067 29068int 29069main (void) 29070{ 29071intmax_t x = -1; return !x; 29072 ; 29073 return 0; 29074} 29075_ACEOF 29076if ac_fn_c_try_compile "$LINENO" 29077then : 29078 gt_cv_c_intmax_t=yes 29079else $as_nop 29080 gt_cv_c_intmax_t=no 29081fi 29082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29083fi 29084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 29085printf "%s\n" "$gt_cv_c_intmax_t" >&6; } 29086 if test $gt_cv_c_intmax_t = yes; then 29087 29088printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h 29089 29090 else 29091 29092printf "%s\n" "#define intmax_t long long" >>confdefs.h 29093 29094 fi 29095 29096 29097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5 29098printf %s "checking where to find the exponent in a 'double'... " >&6; } 29099if test ${gl_cv_cc_double_expbit0+y} 29100then : 29101 printf %s "(cached) " >&6 29102else $as_nop 29103 29104 if test "$cross_compiling" = yes 29105then : 29106 29107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29108/* end confdefs.h. */ 29109 29110#if defined arm || defined __arm || defined __arm__ 29111 mixed_endianness 29112#endif 29113 29114_ACEOF 29115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 29116 $EGREP "mixed_endianness" >/dev/null 2>&1 29117then : 29118 gl_cv_cc_double_expbit0="unknown" 29119else $as_nop 29120 29121 : 29122if test ${ac_cv_c_bigendian+y} 29123then : 29124 printf %s "(cached) " >&6 29125else $as_nop 29126 ac_cv_c_bigendian=unknown 29127 # See if we're dealing with a universal compiler. 29128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29129/* end confdefs.h. */ 29130#ifndef __APPLE_CC__ 29131 not a universal capable compiler 29132 #endif 29133 typedef int dummy; 29134 29135_ACEOF 29136if ac_fn_c_try_compile "$LINENO" 29137then : 29138 29139 # Check for potential -arch flags. It is not universal unless 29140 # there are at least two -arch flags with different values. 29141 ac_arch= 29142 ac_prev= 29143 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 29144 if test -n "$ac_prev"; then 29145 case $ac_word in 29146 i?86 | x86_64 | ppc | ppc64) 29147 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 29148 ac_arch=$ac_word 29149 else 29150 ac_cv_c_bigendian=universal 29151 break 29152 fi 29153 ;; 29154 esac 29155 ac_prev= 29156 elif test "x$ac_word" = "x-arch"; then 29157 ac_prev=arch 29158 fi 29159 done 29160fi 29161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29162 if test $ac_cv_c_bigendian = unknown; then 29163 # See if sys/param.h defines the BYTE_ORDER macro. 29164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29165/* end confdefs.h. */ 29166#include <sys/types.h> 29167 #include <sys/param.h> 29168 29169int 29170main (void) 29171{ 29172#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 29173 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 29174 && LITTLE_ENDIAN) 29175 bogus endian macros 29176 #endif 29177 29178 ; 29179 return 0; 29180} 29181_ACEOF 29182if ac_fn_c_try_compile "$LINENO" 29183then : 29184 # It does; now see whether it defined to BIG_ENDIAN or not. 29185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29186/* end confdefs.h. */ 29187#include <sys/types.h> 29188 #include <sys/param.h> 29189 29190int 29191main (void) 29192{ 29193#if BYTE_ORDER != BIG_ENDIAN 29194 not big endian 29195 #endif 29196 29197 ; 29198 return 0; 29199} 29200_ACEOF 29201if ac_fn_c_try_compile "$LINENO" 29202then : 29203 ac_cv_c_bigendian=yes 29204else $as_nop 29205 ac_cv_c_bigendian=no 29206fi 29207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29208fi 29209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29210 fi 29211 if test $ac_cv_c_bigendian = unknown; then 29212 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 29213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29214/* end confdefs.h. */ 29215#include <limits.h> 29216 29217int 29218main (void) 29219{ 29220#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 29221 bogus endian macros 29222 #endif 29223 29224 ; 29225 return 0; 29226} 29227_ACEOF 29228if ac_fn_c_try_compile "$LINENO" 29229then : 29230 # It does; now see whether it defined to _BIG_ENDIAN or not. 29231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29232/* end confdefs.h. */ 29233#include <limits.h> 29234 29235int 29236main (void) 29237{ 29238#ifndef _BIG_ENDIAN 29239 not big endian 29240 #endif 29241 29242 ; 29243 return 0; 29244} 29245_ACEOF 29246if ac_fn_c_try_compile "$LINENO" 29247then : 29248 ac_cv_c_bigendian=yes 29249else $as_nop 29250 ac_cv_c_bigendian=no 29251fi 29252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29253fi 29254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29255 fi 29256 if test $ac_cv_c_bigendian = unknown; then 29257 # Compile a test program. 29258 if test "$cross_compiling" = yes 29259then : 29260 # Try to guess by grepping values from an object file. 29261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29262/* end confdefs.h. */ 29263unsigned short int ascii_mm[] = 29264 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 29265 unsigned short int ascii_ii[] = 29266 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 29267 int use_ascii (int i) { 29268 return ascii_mm[i] + ascii_ii[i]; 29269 } 29270 unsigned short int ebcdic_ii[] = 29271 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 29272 unsigned short int ebcdic_mm[] = 29273 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 29274 int use_ebcdic (int i) { 29275 return ebcdic_mm[i] + ebcdic_ii[i]; 29276 } 29277 extern int foo; 29278 29279int 29280main (void) 29281{ 29282return use_ascii (foo) == use_ebcdic (foo); 29283 ; 29284 return 0; 29285} 29286_ACEOF 29287if ac_fn_c_try_compile "$LINENO" 29288then : 29289 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 29290 ac_cv_c_bigendian=yes 29291 fi 29292 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 29293 if test "$ac_cv_c_bigendian" = unknown; then 29294 ac_cv_c_bigendian=no 29295 else 29296 # finding both strings is unlikely to happen, but who knows? 29297 ac_cv_c_bigendian=unknown 29298 fi 29299 fi 29300fi 29301rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29302else $as_nop 29303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29304/* end confdefs.h. */ 29305$ac_includes_default 29306int 29307main (void) 29308{ 29309 29310 /* Are we little or big endian? From Harbison&Steele. */ 29311 union 29312 { 29313 long int l; 29314 char c[sizeof (long int)]; 29315 } u; 29316 u.l = 1; 29317 return u.c[sizeof (long int) - 1] == 1; 29318 29319 ; 29320 return 0; 29321} 29322_ACEOF 29323if ac_fn_c_try_run "$LINENO" 29324then : 29325 ac_cv_c_bigendian=no 29326else $as_nop 29327 ac_cv_c_bigendian=yes 29328fi 29329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29330 conftest.$ac_objext conftest.beam conftest.$ac_ext 29331fi 29332 29333 fi 29334fi 29335: 29336 case $ac_cv_c_bigendian in #( 29337 yes) 29338 gl_cv_cc_double_expbit0="word 0 bit 20";; #( 29339 no) 29340 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #( 29341 universal) 29342 29343printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 29344 29345 ;; #( 29346 *) 29347 gl_cv_cc_double_expbit0="unknown" ;; 29348 esac 29349 29350 29351fi 29352rm -rf conftest* 29353 29354 29355else $as_nop 29356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29357/* end confdefs.h. */ 29358 29359#include <float.h> 29360#include <stddef.h> 29361#include <stdio.h> 29362#include <string.h> 29363#define NWORDS \ 29364 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 29365typedef union { double value; unsigned int word[NWORDS]; } memory_double; 29366static unsigned int ored_words[NWORDS]; 29367static unsigned int anded_words[NWORDS]; 29368static void add_to_ored_words (double x) 29369{ 29370 memory_double m; 29371 size_t i; 29372 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */ 29373 memset (&m, 0, sizeof (memory_double)); 29374 m.value = x; 29375 for (i = 0; i < NWORDS; i++) 29376 { 29377 ored_words[i] |= m.word[i]; 29378 anded_words[i] &= m.word[i]; 29379 } 29380} 29381int main () 29382{ 29383 size_t j; 29384 FILE *fp = fopen ("conftest.out", "w"); 29385 if (fp == NULL) 29386 return 1; 29387 for (j = 0; j < NWORDS; j++) 29388 anded_words[j] = ~ (unsigned int) 0; 29389 add_to_ored_words (0.25); 29390 add_to_ored_words (0.5); 29391 add_to_ored_words (1.0); 29392 add_to_ored_words (2.0); 29393 add_to_ored_words (4.0); 29394 /* Remove bits that are common (e.g. if representation of the first mantissa 29395 bit is explicit). */ 29396 for (j = 0; j < NWORDS; j++) 29397 ored_words[j] &= ~anded_words[j]; 29398 /* Now find the nonzero word. */ 29399 for (j = 0; j < NWORDS; j++) 29400 if (ored_words[j] != 0) 29401 break; 29402 if (j < NWORDS) 29403 { 29404 size_t i; 29405 for (i = j + 1; i < NWORDS; i++) 29406 if (ored_words[i] != 0) 29407 { 29408 fprintf (fp, "unknown"); 29409 return (fclose (fp) != 0); 29410 } 29411 for (i = 0; ; i++) 29412 if ((ored_words[j] >> i) & 1) 29413 { 29414 fprintf (fp, "word %d bit %d", (int) j, (int) i); 29415 return (fclose (fp) != 0); 29416 } 29417 } 29418 fprintf (fp, "unknown"); 29419 return (fclose (fp) != 0); 29420} 29421 29422_ACEOF 29423if ac_fn_c_try_run "$LINENO" 29424then : 29425 gl_cv_cc_double_expbit0=`cat conftest.out` 29426else $as_nop 29427 gl_cv_cc_double_expbit0="unknown" 29428fi 29429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29430 conftest.$ac_objext conftest.beam conftest.$ac_ext 29431fi 29432 29433 rm -f conftest.out 29434 29435fi 29436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5 29437printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; } 29438 case "$gl_cv_cc_double_expbit0" in 29439 word*bit*) 29440 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'` 29441 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'` 29442 29443printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h 29444 29445 29446printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h 29447 29448 ;; 29449 esac 29450 29451 29452 29453 29454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5 29455printf %s "checking whether snprintf truncates the result as in C99... " >&6; } 29456if test ${gl_cv_func_snprintf_truncation_c99+y} 29457then : 29458 printf %s "(cached) " >&6 29459else $as_nop 29460 29461 if test "$cross_compiling" = yes 29462then : 29463 29464 case "$host_os" in 29465 # Guess yes on glibc systems. 29466 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29467 # Guess yes on musl systems. 29468 *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29469 # Guess yes on FreeBSD >= 5. 29470 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";; 29471 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29472 # Guess yes on Mac OS X >= 10.3. 29473 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";; 29474 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29475 # Guess yes on OpenBSD >= 3.9. 29476 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*) 29477 gl_cv_func_snprintf_truncation_c99="guessing no";; 29478 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29479 # Guess yes on Solaris >= 2.6. 29480 solaris2.[0-5] | solaris2.[0-5].*) 29481 gl_cv_func_snprintf_truncation_c99="guessing no";; 29482 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29483 # Guess yes on AIX >= 4. 29484 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";; 29485 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29486 # Guess yes on HP-UX >= 11. 29487 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";; 29488 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29489 # Guess yes on IRIX >= 6.5. 29490 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29491 # Guess yes on OSF/1 >= 5. 29492 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";; 29493 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29494 # Guess yes on NetBSD >= 3. 29495 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 29496 gl_cv_func_snprintf_truncation_c99="guessing no";; 29497 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29498 # Guess yes on BeOS. 29499 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29500 # Guess yes on Android. 29501 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 29502 # Guess no on native Windows. 29503 mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";; 29504 # If we don't know, obey --enable-cross-guesses. 29505 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";; 29506 esac 29507 29508else $as_nop 29509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29510/* end confdefs.h. */ 29511 29512#include <stdio.h> 29513#include <string.h> 29514#if HAVE_SNPRINTF 29515# define my_snprintf snprintf 29516#else 29517# include <stdarg.h> 29518static int my_snprintf (char *buf, int size, const char *format, ...) 29519{ 29520 va_list args; 29521 int ret; 29522 va_start (args, format); 29523 ret = vsnprintf (buf, size, format, args); 29524 va_end (args); 29525 return ret; 29526} 29527#endif 29528static char buf[100]; 29529int main () 29530{ 29531 strcpy (buf, "ABCDEF"); 29532 my_snprintf (buf, 3, "%d %d", 4567, 89); 29533 if (memcmp (buf, "45\0DEF", 6) != 0) 29534 return 1; 29535 return 0; 29536} 29537_ACEOF 29538if ac_fn_c_try_run "$LINENO" 29539then : 29540 gl_cv_func_snprintf_truncation_c99=yes 29541else $as_nop 29542 gl_cv_func_snprintf_truncation_c99=no 29543fi 29544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29545 conftest.$ac_objext conftest.beam conftest.$ac_ext 29546fi 29547 29548 29549fi 29550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5 29551printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; } 29552 29553 29554 29555 29556 29557 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 29558if test "x$ac_cv_func_snprintf" = xyes 29559then : 29560 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 29561 29562fi 29563ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 29564if test "x$ac_cv_func_strnlen" = xyes 29565then : 29566 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 29567 29568fi 29569ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen" 29570if test "x$ac_cv_func_wcslen" = xyes 29571then : 29572 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h 29573 29574fi 29575ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen" 29576if test "x$ac_cv_func_wcsnlen" = xyes 29577then : 29578 printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h 29579 29580fi 29581ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" 29582if test "x$ac_cv_func_mbrtowc" = xyes 29583then : 29584 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h 29585 29586fi 29587ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb" 29588if test "x$ac_cv_func_wcrtomb" = xyes 29589then : 29590 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h 29591 29592fi 29593 29594 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 29595" 29596if test "x$ac_cv_have_decl__snprintf" = xyes 29597then : 29598 ac_have_decl=1 29599else $as_nop 29600 ac_have_decl=0 29601fi 29602 29603printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h 29604 29605 29606 29607 case "$gl_cv_func_snprintf_retval_c99" in 29608 *yes) 29609 29610printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h 29611 29612 ;; 29613 esac 29614 29615 case "$gl_cv_func_snprintf_truncation_c99" in 29616 *yes) 29617 29618printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h 29619 29620 ;; 29621 esac 29622 29623 29624 29625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 29626printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 29627if test ${gl_cv_header_wchar_h_correct_inline+y} 29628then : 29629 printf %s "(cached) " >&6 29630else $as_nop 29631 gl_cv_header_wchar_h_correct_inline=yes 29632 case "$host_os" in 29633 *-gnu* | gnu*) 29634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29635/* end confdefs.h. */ 29636 29637 29638 #define wcstod renamed_wcstod 29639 #include <wchar.h> 29640 extern int zero (void); 29641 int main () { return zero(); } 29642 29643_ACEOF 29644 save_ac_compile="$ac_compile" 29645 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` 29646 if echo '#include "conftest.c"' >conftest1.c \ 29647 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 29648 (eval $ac_compile) 2>&5 29649 ac_status=$? 29650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29651 test $ac_status = 0; }; then 29652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29653/* end confdefs.h. */ 29654 29655 29656 #define wcstod renamed_wcstod 29657 #include <wchar.h> 29658 int zero (void) { return 0; } 29659 29660_ACEOF 29661 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` 29662 if echo '#include "conftest.c"' >conftest2.c \ 29663 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 29664 (eval $ac_compile) 2>&5 29665 ac_status=$? 29666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29667 test $ac_status = 0; }; then 29668 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 29669 : 29670 else 29671 gl_cv_header_wchar_h_correct_inline=no 29672 fi 29673 fi 29674 fi 29675 ac_compile="$save_ac_compile" 29676 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext 29677 ;; 29678 esac 29679 29680fi 29681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 29682printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; } 29683 if test $gl_cv_header_wchar_h_correct_inline = no; then 29684 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 29685This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 29686C99 mode. You have four options: 29687 - Add the flag -fgnu89-inline to CC and reconfigure, or 29688 - Fix your include files, using parts of 29689 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 29690 - Use a gcc version older than 4.3, or 29691 - Don't use the flags -std=c99 or -std=gnu99. 29692Configuration aborted." "$LINENO" 5 29693 fi 29694 29695 29696 29697 29698 if test $ac_cv_header_crtdefs_h = yes; then 29699 HAVE_CRTDEFS_H=1 29700 else 29701 HAVE_CRTDEFS_H=0 29702 fi 29703 29704 29705 29706 GNULIB_ISWBLANK=0; 29707 GNULIB_ISWDIGIT=0; 29708 GNULIB_ISWXDIGIT=0; 29709 GNULIB_WCTYPE=0; 29710 GNULIB_ISWCTYPE=0; 29711 GNULIB_WCTRANS=0; 29712 GNULIB_TOWCTRANS=0; 29713 HAVE_ISWBLANK=1; 29714 HAVE_WCTYPE_T=1; 29715 HAVE_WCTRANS_T=1; 29716 REPLACE_ISWBLANK=0; 29717 REPLACE_ISWDIGIT=0; 29718 REPLACE_ISWXDIGIT=0; 29719 29720 29721 29722 29723 29724 29725 29726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 29727printf %s "checking for a traditional french locale... " >&6; } 29728if test ${gt_cv_locale_fr+y} 29729then : 29730 printf %s "(cached) " >&6 29731else $as_nop 29732 29733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29734/* end confdefs.h. */ 29735 29736#include <locale.h> 29737#include <time.h> 29738#if HAVE_LANGINFO_CODESET 29739# include <langinfo.h> 29740#endif 29741#include <stdlib.h> 29742#include <string.h> 29743struct tm t; 29744char buf[16]; 29745int main () { 29746 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 29747 imitates locale dependent behaviour by looking at the environment 29748 variables, and all locales use the UTF-8 encoding. */ 29749#if defined __BEOS__ || defined __HAIKU__ 29750 return 1; 29751#else 29752 /* Check whether the given locale name is recognized by the system. */ 29753# if defined _WIN32 && !defined __CYGWIN__ 29754 /* On native Windows, setlocale(category, "") looks at the system settings, 29755 not at the environment variables. Also, when an encoding suffix such 29756 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 29757 category of the locale to "C". */ 29758 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 29759 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 29760 return 1; 29761# else 29762 if (setlocale (LC_ALL, "") == NULL) return 1; 29763# endif 29764 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 29765 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 29766 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 29767 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 29768 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 29769 some unit tests fail. 29770 On MirBSD 10, when an unsupported locale is specified, setlocale() 29771 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 29772# if HAVE_LANGINFO_CODESET 29773 { 29774 const char *cs = nl_langinfo (CODESET); 29775 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 29776 || strcmp (cs, "UTF-8") == 0) 29777 return 1; 29778 } 29779# endif 29780# ifdef __CYGWIN__ 29781 /* On Cygwin, avoid locale names without encoding suffix, because the 29782 locale_charset() function relies on the encoding suffix. Note that 29783 LC_ALL is set on the command line. */ 29784 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 29785# endif 29786 /* Check whether in the abbreviation of the second month, the second 29787 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 29788 one byte long. This excludes the UTF-8 encoding. */ 29789 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 29790 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 29791# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 29792 /* Check whether the decimal separator is a comma. 29793 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 29794 are nl_langinfo(RADIXCHAR) are both ".". */ 29795 if (localeconv () ->decimal_point[0] != ',') return 1; 29796# endif 29797 return 0; 29798#endif 29799} 29800 29801_ACEOF 29802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 29803 (eval $ac_link) 2>&5 29804 ac_status=$? 29805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29806 test $ac_status = 0; } && test -s conftest$ac_exeext; then 29807 case "$host_os" in 29808 # Handle native Windows specially, because there setlocale() interprets 29809 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 29810 # "fr" or "fra" as "French" or "French_France.1252", 29811 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 29812 # "ja" as "Japanese" or "Japanese_Japan.932", 29813 # and similar. 29814 mingw*) 29815 # Test for the native Windows locale name. 29816 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 29817 gt_cv_locale_fr=French_France.1252 29818 else 29819 # None found. 29820 gt_cv_locale_fr=none 29821 fi 29822 ;; 29823 *) 29824 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 29825 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 29826 # configure script would override the LC_ALL setting. Likewise for 29827 # LC_CTYPE, which is also set at the beginning of the configure script. 29828 # Test for the usual locale name. 29829 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 29830 gt_cv_locale_fr=fr_FR 29831 else 29832 # Test for the locale name with explicit encoding suffix. 29833 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 29834 gt_cv_locale_fr=fr_FR.ISO-8859-1 29835 else 29836 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 29837 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 29838 gt_cv_locale_fr=fr_FR.ISO8859-1 29839 else 29840 # Test for the HP-UX locale name. 29841 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 29842 gt_cv_locale_fr=fr_FR.iso88591 29843 else 29844 # Test for the Solaris 7 locale name. 29845 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 29846 gt_cv_locale_fr=fr 29847 else 29848 # None found. 29849 gt_cv_locale_fr=none 29850 fi 29851 fi 29852 fi 29853 fi 29854 fi 29855 ;; 29856 esac 29857 fi 29858 rm -fr conftest* 29859 29860fi 29861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 29862printf "%s\n" "$gt_cv_locale_fr" >&6; } 29863 LOCALE_FR=$gt_cv_locale_fr 29864 29865 29866 29867 GNULIB_ISBLANK=0; 29868 HAVE_ISBLANK=1; 29869 29870 29871 29872 29873 29874 29875 29876 29877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 29878printf %s "checking if environ is properly declared... " >&6; } 29879if test ${gt_cv_var_environ_declaration+y} 29880then : 29881 printf %s "(cached) " >&6 29882else $as_nop 29883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29884/* end confdefs.h. */ 29885#if HAVE_UNISTD_H 29886 #include <unistd.h> 29887 #endif 29888 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */ 29889 #include <stdlib.h> 29890 29891 extern struct { int foo; } environ; 29892int 29893main (void) 29894{ 29895environ.foo = 1; 29896 ; 29897 return 0; 29898} 29899_ACEOF 29900if ac_fn_c_try_compile "$LINENO" 29901then : 29902 gt_cv_var_environ_declaration=no 29903else $as_nop 29904 gt_cv_var_environ_declaration=yes 29905fi 29906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 29907fi 29908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 29909printf "%s\n" "$gt_cv_var_environ_declaration" >&6; } 29910 if test $gt_cv_var_environ_declaration = yes; then 29911 29912printf "%s\n" "#define HAVE_ENVIRON_DECL 1" >>confdefs.h 29913 29914 fi 29915 29916 29917 if test $gt_cv_var_environ_declaration != yes; then 29918 HAVE_DECL_ENVIRON=0 29919 fi 29920 29921 29922 29923 29924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5 29925printf %s "checking whether ungetc works on arbitrary bytes... " >&6; } 29926if test ${gl_cv_func_ungetc_works+y} 29927then : 29928 printf %s "(cached) " >&6 29929else $as_nop 29930 if test "$cross_compiling" = yes 29931then : 29932 case "$host_os" in 29933 # Guess yes on glibc systems. 29934 *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;; 29935 # Guess yes on musl systems. 29936 *-musl*) gl_cv_func_ungetc_works="guessing yes" ;; 29937 # Guess yes on bionic systems. 29938 *-android*) gl_cv_func_ungetc_works="guessing yes" ;; 29939 # Guess yes on native Windows. 29940 mingw*) gl_cv_func_ungetc_works="guessing yes" ;; 29941 # If we don't know, obey --enable-cross-guesses. 29942 *) gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;; 29943 esac 29944 29945else $as_nop 29946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29947/* end confdefs.h. */ 29948 29949#include <stdio.h> 29950 29951int 29952main (void) 29953{ 29954FILE *f; 29955 if (!(f = fopen ("conftest.tmp", "w+"))) 29956 return 1; 29957 if (fputs ("abc", f) < 0) 29958 { fclose (f); return 2; } 29959 rewind (f); 29960 if (fgetc (f) != 'a') 29961 { fclose (f); return 3; } 29962 if (fgetc (f) != 'b') 29963 { fclose (f); return 4; } 29964 if (ungetc ('d', f) != 'd') 29965 { fclose (f); return 5; } 29966 if (ftell (f) != 1) 29967 { fclose (f); return 6; } 29968 if (fgetc (f) != 'd') 29969 { fclose (f); return 7; } 29970 if (ftell (f) != 2) 29971 { fclose (f); return 8; } 29972 if (fseek (f, 0, SEEK_CUR) != 0) 29973 { fclose (f); return 9; } 29974 if (ftell (f) != 2) 29975 { fclose (f); return 10; } 29976 if (fgetc (f) != 'c') 29977 { fclose (f); return 11; } 29978 fclose (f); 29979 remove ("conftest.tmp"); 29980 29981 ; 29982 return 0; 29983} 29984_ACEOF 29985if ac_fn_c_try_run "$LINENO" 29986then : 29987 gl_cv_func_ungetc_works=yes 29988else $as_nop 29989 gl_cv_func_ungetc_works=no 29990fi 29991rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29992 conftest.$ac_objext conftest.beam conftest.$ac_ext 29993fi 29994 29995 29996fi 29997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5 29998printf "%s\n" "$gl_cv_func_ungetc_works" >&6; } 29999 case "$gl_cv_func_ungetc_works" in 30000 *yes) ;; 30001 *) 30002 30003printf "%s\n" "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h 30004 30005 ;; 30006 esac 30007 30008 30009 30010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5 30011printf %s "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; } 30012if test ${gl_cv_func_getcwd_null+y} 30013then : 30014 printf %s "(cached) " >&6 30015else $as_nop 30016 if test "$cross_compiling" = yes 30017then : 30018 case "$host_os" in 30019 # Guess yes on glibc systems. 30020 *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";; 30021 # Guess yes on musl systems. 30022 *-musl*) gl_cv_func_getcwd_null="guessing yes";; 30023 # Guess yes on Cygwin. 30024 cygwin*) gl_cv_func_getcwd_null="guessing yes";; 30025 # If we don't know, obey --enable-cross-guesses. 30026 *) gl_cv_func_getcwd_null="$gl_cross_guess_normal";; 30027 esac 30028 30029else $as_nop 30030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30031/* end confdefs.h. */ 30032 30033# include <stdlib.h> 30034# if HAVE_UNISTD_H 30035# include <unistd.h> 30036# else /* on Windows with MSVC */ 30037# include <direct.h> 30038# endif 30039 30040 30041$gl_mda_defines 30042 30043# ifndef getcwd 30044 char *getcwd (); 30045# endif 30046 30047int 30048main (void) 30049{ 30050 30051#if defined _WIN32 && ! defined __CYGWIN__ 30052/* mingw cwd does not start with '/', but _getcwd does allocate. 30053 However, mingw fails to honor non-zero size. */ 30054#else 30055 if (chdir ("/") != 0) 30056 return 1; 30057 else 30058 { 30059 char *f = getcwd (NULL, 0); 30060 if (! f) 30061 return 2; 30062 if (f[0] != '/') 30063 { free (f); return 3; } 30064 if (f[1] != '\0') 30065 { free (f); return 4; } 30066 free (f); 30067 return 0; 30068 } 30069#endif 30070 30071 ; 30072 return 0; 30073} 30074_ACEOF 30075if ac_fn_c_try_run "$LINENO" 30076then : 30077 gl_cv_func_getcwd_null=yes 30078else $as_nop 30079 gl_cv_func_getcwd_null=no 30080fi 30081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30082 conftest.$ac_objext conftest.beam conftest.$ac_ext 30083fi 30084 30085fi 30086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5 30087printf "%s\n" "$gl_cv_func_getcwd_null" >&6; } 30088 30089 30090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5 30091printf %s "checking for getcwd with POSIX signature... " >&6; } 30092if test ${gl_cv_func_getcwd_posix_signature+y} 30093then : 30094 printf %s "(cached) " >&6 30095else $as_nop 30096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30097/* end confdefs.h. */ 30098#include <unistd.h> 30099 30100 30101$gl_mda_defines 30102 30103int 30104main (void) 30105{ 30106extern 30107 #ifdef __cplusplus 30108 "C" 30109 #endif 30110 char *getcwd (char *, size_t); 30111 30112 ; 30113 return 0; 30114} 30115 30116_ACEOF 30117if ac_fn_c_try_compile "$LINENO" 30118then : 30119 gl_cv_func_getcwd_posix_signature=yes 30120else $as_nop 30121 gl_cv_func_getcwd_posix_signature=no 30122fi 30123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30124 30125fi 30126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5 30127printf "%s\n" "$gl_cv_func_getcwd_posix_signature" >&6; } 30128 30129 30130 30131 case "$host_os" in 30132 *-musl*) 30133printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h 30134 ;; 30135 esac 30136 30137 30138 30139 30140 GNULIB_NL_LANGINFO=0; 30141 HAVE_NL_LANGINFO=1; 30142 REPLACE_NL_LANGINFO=0; 30143 30144 30145 30146 30147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 30148printf %s "checking for LC_MESSAGES... " >&6; } 30149if test ${gt_cv_val_LC_MESSAGES+y} 30150then : 30151 printf %s "(cached) " >&6 30152else $as_nop 30153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30154/* end confdefs.h. */ 30155#include <locale.h> 30156int 30157main (void) 30158{ 30159return LC_MESSAGES 30160 ; 30161 return 0; 30162} 30163_ACEOF 30164if ac_fn_c_try_link "$LINENO" 30165then : 30166 gt_cv_val_LC_MESSAGES=yes 30167else $as_nop 30168 gt_cv_val_LC_MESSAGES=no 30169fi 30170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30171 conftest$ac_exeext conftest.$ac_ext 30172fi 30173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 30174printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; } 30175 if test $gt_cv_val_LC_MESSAGES = yes; then 30176 30177printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h 30178 30179 fi 30180 30181 30182 30183 30184 30185 30186 30187 30188 30189 30190 30191 30192 30193 if test $ac_cv_func_uselocale = yes; then 30194 30195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether uselocale works" >&5 30196printf %s "checking whether uselocale works... " >&6; } 30197if test ${gt_cv_func_uselocale_works+y} 30198then : 30199 printf %s "(cached) " >&6 30200else $as_nop 30201 if test "$cross_compiling" = yes 30202then : 30203 # Guess no on AIX and z/OS, yes otherwise. 30204 case "$host_os" in 30205 aix* | openedition*) gt_cv_func_uselocale_works="guessing no" ;; 30206 *) gt_cv_func_uselocale_works="guessing yes" ;; 30207 esac 30208 30209else $as_nop 30210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30211/* end confdefs.h. */ 30212 30213#include <locale.h> 30214#if HAVE_XLOCALE_H 30215# include <xlocale.h> 30216#endif 30217locale_t loc1; 30218int main () 30219{ 30220 uselocale (NULL); 30221 setlocale (LC_ALL, "en_US.UTF-8"); 30222 return 0; 30223} 30224_ACEOF 30225if ac_fn_c_try_run "$LINENO" 30226then : 30227 gt_cv_func_uselocale_works=yes 30228else $as_nop 30229 gt_cv_func_uselocale_works=no 30230fi 30231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30232 conftest.$ac_objext conftest.beam conftest.$ac_ext 30233fi 30234 30235 30236fi 30237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_uselocale_works" >&5 30238printf "%s\n" "$gt_cv_func_uselocale_works" >&6; } 30239 else 30240 gt_cv_func_uselocale_works=no 30241 fi 30242 case "$gt_cv_func_uselocale_works" in 30243 *yes) 30244 30245printf "%s\n" "#define HAVE_WORKING_USELOCALE 1" >>confdefs.h 30246 30247 ;; 30248 esac 30249 30250 30251 case "$gt_cv_func_uselocale_works" in 30252 *yes) 30253 30254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fake locale system (OpenBSD)" >&5 30255printf %s "checking for fake locale system (OpenBSD)... " >&6; } 30256if test ${gt_cv_locale_fake+y} 30257then : 30258 printf %s "(cached) " >&6 30259else $as_nop 30260 if test "$cross_compiling" = yes 30261then : 30262 case "$host_os" in 30263 openbsd*) gt_cv_locale_fake="guessing yes" ;; 30264 *) gt_cv_locale_fake="guessing no" ;; 30265 esac 30266 30267else $as_nop 30268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30269/* end confdefs.h. */ 30270 30271#include <locale.h> 30272#if HAVE_XLOCALE_H 30273# include <xlocale.h> 30274#endif 30275int main () 30276{ 30277 locale_t loc1, loc2; 30278 if (setlocale (LC_ALL, "de_DE.UTF-8") == NULL) return 1; 30279 if (setlocale (LC_ALL, "fr_FR.UTF-8") == NULL) return 1; 30280 loc1 = newlocale (LC_ALL_MASK, "de_DE.UTF-8", (locale_t)0); 30281 loc2 = newlocale (LC_ALL_MASK, "fr_FR.UTF-8", (locale_t)0); 30282 return !(loc1 == loc2); 30283} 30284_ACEOF 30285if ac_fn_c_try_run "$LINENO" 30286then : 30287 gt_cv_locale_fake=yes 30288else $as_nop 30289 gt_cv_locale_fake=no 30290fi 30291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30292 conftest.$ac_objext conftest.beam conftest.$ac_ext 30293fi 30294 30295 30296fi 30297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fake" >&5 30298printf "%s\n" "$gt_cv_locale_fake" >&6; } 30299 ;; 30300 *) gt_cv_locale_fake=no ;; 30301 esac 30302 case "$gt_cv_locale_fake" in 30303 *yes) 30304 30305printf "%s\n" "#define HAVE_FAKE_LOCALES 1" >>confdefs.h 30306 30307 ;; 30308 esac 30309 30310 case "$gt_cv_func_uselocale_works" in 30311 *yes) 30312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris 11.4 locale system" >&5 30313printf %s "checking for Solaris 11.4 locale system... " >&6; } 30314if test ${gt_cv_locale_solaris114+y} 30315then : 30316 printf %s "(cached) " >&6 30317else $as_nop 30318 case "$host_os" in 30319 solaris*) 30320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30321/* end confdefs.h. */ 30322 30323 #include <locale.h> 30324 struct _LC_locale_t *x; 30325 locale_t y; 30326 30327int 30328main (void) 30329{ 30330*y = x; 30331 ; 30332 return 0; 30333} 30334_ACEOF 30335if ac_fn_c_try_compile "$LINENO" 30336then : 30337 gt_cv_locale_solaris114=yes 30338else $as_nop 30339 gt_cv_locale_solaris114=no 30340fi 30341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 30342 ;; 30343 *) gt_cv_locale_solaris114=no ;; 30344 esac 30345 30346fi 30347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_solaris114" >&5 30348printf "%s\n" "$gt_cv_locale_solaris114" >&6; } 30349 ;; 30350 *) gt_cv_locale_solaris114=no ;; 30351 esac 30352 if test $gt_cv_locale_solaris114 = yes; then 30353 30354printf "%s\n" "#define HAVE_SOLARIS114_LOCALES 1" >>confdefs.h 30355 30356 fi 30357 30358 case "$gt_cv_func_uselocale_works" in 30359 *yes) 30360 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l" 30361if test "x$ac_cv_func_getlocalename_l" = xyes 30362then : 30363 printf "%s\n" "#define HAVE_GETLOCALENAME_L 1" >>confdefs.h 30364 30365fi 30366 30367 ;; 30368 esac 30369 30370 gt_nameless_locales=no 30371 case "$host_os" in 30372 aix*) 30373 gt_nameless_locales=yes 30374 30375printf "%s\n" "#define HAVE_NAMELESS_LOCALES 1" >>confdefs.h 30376 30377 ;; 30378 esac 30379 30380 30381 30382 30383 gl_threads_api=none 30384 LIBTHREAD= 30385 LTLIBTHREAD= 30386 LIBMULTITHREAD= 30387 LTLIBMULTITHREAD= 30388 if test "$gl_use_threads" != no; then 30389 30390 30391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 30392printf %s "checking whether imported symbols can be declared weak... " >&6; } 30393if test ${gl_cv_have_weak+y} 30394then : 30395 printf %s "(cached) " >&6 30396else $as_nop 30397 gl_cv_have_weak=no 30398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30399/* end confdefs.h. */ 30400extern void xyzzy (); 30401#pragma weak xyzzy 30402int 30403main (void) 30404{ 30405xyzzy(); 30406 ; 30407 return 0; 30408} 30409_ACEOF 30410if ac_fn_c_try_link "$LINENO" 30411then : 30412 gl_cv_have_weak=maybe 30413fi 30414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30415 conftest$ac_exeext conftest.$ac_ext 30416 if test $gl_cv_have_weak = maybe; then 30417 if test "$cross_compiling" = yes 30418then : 30419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30420/* end confdefs.h. */ 30421#ifdef __ELF__ 30422 Extensible Linking Format 30423 #endif 30424 30425_ACEOF 30426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 30427 $EGREP "Extensible Linking Format" >/dev/null 2>&1 30428then : 30429 gl_cv_have_weak="guessing yes" 30430else $as_nop 30431 gl_cv_have_weak="guessing no" 30432fi 30433rm -rf conftest* 30434 30435 30436else $as_nop 30437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30438/* end confdefs.h. */ 30439 30440#include <stdio.h> 30441#pragma weak fputs 30442int main () 30443{ 30444 return (fputs == NULL); 30445} 30446_ACEOF 30447if ac_fn_c_try_run "$LINENO" 30448then : 30449 gl_cv_have_weak=yes 30450else $as_nop 30451 gl_cv_have_weak=no 30452fi 30453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30454 conftest.$ac_objext conftest.beam conftest.$ac_ext 30455fi 30456 30457 fi 30458 case " $LDFLAGS " in 30459 *" -static "*) gl_cv_have_weak=no ;; 30460 esac 30461 case "$gl_cv_have_weak" in 30462 *yes) 30463 case "$host_os" in 30464 freebsd* | dragonfly*) 30465 : > conftest1.c 30466 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 30467 cat <<EOF > conftest2.c 30468#include <pthread.h> 30469#pragma weak pthread_mutexattr_gettype 30470int main () 30471{ 30472 return (pthread_mutexattr_gettype != NULL); 30473} 30474EOF 30475 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 30476 || gl_cv_have_weak=no 30477 rm -f conftest1.c libempty.so conftest2.c conftest 30478 ;; 30479 esac 30480 ;; 30481 esac 30482 30483fi 30484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 30485printf "%s\n" "$gl_cv_have_weak" >&6; } 30486 case "$gl_cv_have_weak" in 30487 *yes) 30488 30489printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 30490 30491 ;; 30492 esac 30493 30494 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 30495 30496 : 30497 fi 30498 if test "$gl_use_threads" = isoc || test "$gl_use_threads" = isoc+posix; then 30499 30500 gl_have_isoc_threads="$ac_cv_header_threads_h" 30501 fi 30502 if test "$gl_use_threads" = yes \ 30503 || test "$gl_use_threads" = posix \ 30504 || test "$gl_use_threads" = isoc+posix; then 30505 30506 30507 if test -z "$gl_pthreadlib_body_done"; then 30508 gl_pthread_api=no 30509 LIBPTHREAD= 30510 LIBPMULTITHREAD= 30511 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 30512 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 30513 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 30514if test "x$ac_cv_header_pthread_h" = xyes 30515then : 30516 gl_have_pthread_h=yes 30517else $as_nop 30518 gl_have_pthread_h=no 30519fi 30520 30521 if test "$gl_have_pthread_h" = yes; then 30522 # Other possible tests: 30523 # -lpthreads (FSU threads, PCthreads) 30524 # -lgthreads 30525 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 30526 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 30527 # the second one only in libpthread, and lock.c needs it. 30528 # 30529 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 30530 # needs -pthread for some reason. See: 30531 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 30532 save_LIBS=$LIBS 30533 for gl_pthread in '' '-pthread'; do 30534 LIBS="$LIBS $gl_pthread" 30535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30536/* end confdefs.h. */ 30537#include <pthread.h> 30538 pthread_mutex_t m; 30539 pthread_mutexattr_t ma; 30540 30541int 30542main (void) 30543{ 30544pthread_mutex_lock (&m); 30545 pthread_mutexattr_init (&ma); 30546 ; 30547 return 0; 30548} 30549_ACEOF 30550if ac_fn_c_try_link "$LINENO" 30551then : 30552 gl_pthread_api=yes 30553 LIBPTHREAD=$gl_pthread 30554 LIBPMULTITHREAD=$gl_pthread 30555fi 30556rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30557 conftest$ac_exeext conftest.$ac_ext 30558 LIBS=$save_LIBS 30559 test $gl_pthread_api = yes && break 30560 done 30561 30562 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 30563 # since it is defined as a macro on OSF/1.) 30564 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 30565 # The program links fine without libpthread. But it may actually 30566 # need to link with libpthread in order to create multiple threads. 30567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 30568printf %s "checking for pthread_kill in -lpthread... " >&6; } 30569if test ${ac_cv_lib_pthread_pthread_kill+y} 30570then : 30571 printf %s "(cached) " >&6 30572else $as_nop 30573 ac_check_lib_save_LIBS=$LIBS 30574LIBS="-lpthread $LIBS" 30575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30576/* end confdefs.h. */ 30577 30578/* Override any GCC internal prototype to avoid an error. 30579 Use char because int might match the return type of a GCC 30580 builtin and then its argument prototype would still apply. */ 30581char pthread_kill (); 30582int 30583main (void) 30584{ 30585return pthread_kill (); 30586 ; 30587 return 0; 30588} 30589_ACEOF 30590if ac_fn_c_try_link "$LINENO" 30591then : 30592 ac_cv_lib_pthread_pthread_kill=yes 30593else $as_nop 30594 ac_cv_lib_pthread_pthread_kill=no 30595fi 30596rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30597 conftest$ac_exeext conftest.$ac_ext 30598LIBS=$ac_check_lib_save_LIBS 30599fi 30600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 30601printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 30602if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 30603then : 30604 LIBPMULTITHREAD=-lpthread 30605 # On Solaris and HP-UX, most pthread functions exist also in libc. 30606 # Therefore pthread_in_use() needs to actually try to create a 30607 # thread: pthread_create from libc will fail, whereas 30608 # pthread_create will actually create a thread. 30609 # On Solaris 10 or newer, this test is no longer needed, because 30610 # libc contains the fully functional pthread functions. 30611 case "$host_os" in 30612 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 30613 30614printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 30615 30616 esac 30617 30618fi 30619 30620 elif test $gl_pthread_api != yes; then 30621 # Some library is needed. Try libpthread and libc_r. 30622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 30623printf %s "checking for pthread_kill in -lpthread... " >&6; } 30624if test ${ac_cv_lib_pthread_pthread_kill+y} 30625then : 30626 printf %s "(cached) " >&6 30627else $as_nop 30628 ac_check_lib_save_LIBS=$LIBS 30629LIBS="-lpthread $LIBS" 30630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30631/* end confdefs.h. */ 30632 30633/* Override any GCC internal prototype to avoid an error. 30634 Use char because int might match the return type of a GCC 30635 builtin and then its argument prototype would still apply. */ 30636char pthread_kill (); 30637int 30638main (void) 30639{ 30640return pthread_kill (); 30641 ; 30642 return 0; 30643} 30644_ACEOF 30645if ac_fn_c_try_link "$LINENO" 30646then : 30647 ac_cv_lib_pthread_pthread_kill=yes 30648else $as_nop 30649 ac_cv_lib_pthread_pthread_kill=no 30650fi 30651rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30652 conftest$ac_exeext conftest.$ac_ext 30653LIBS=$ac_check_lib_save_LIBS 30654fi 30655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 30656printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 30657if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 30658then : 30659 gl_pthread_api=yes 30660 LIBPTHREAD=-lpthread 30661 LIBPMULTITHREAD=-lpthread 30662fi 30663 30664 if test $gl_pthread_api != yes; then 30665 # For FreeBSD 4. 30666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 30667printf %s "checking for pthread_kill in -lc_r... " >&6; } 30668if test ${ac_cv_lib_c_r_pthread_kill+y} 30669then : 30670 printf %s "(cached) " >&6 30671else $as_nop 30672 ac_check_lib_save_LIBS=$LIBS 30673LIBS="-lc_r $LIBS" 30674cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30675/* end confdefs.h. */ 30676 30677/* Override any GCC internal prototype to avoid an error. 30678 Use char because int might match the return type of a GCC 30679 builtin and then its argument prototype would still apply. */ 30680char pthread_kill (); 30681int 30682main (void) 30683{ 30684return pthread_kill (); 30685 ; 30686 return 0; 30687} 30688_ACEOF 30689if ac_fn_c_try_link "$LINENO" 30690then : 30691 ac_cv_lib_c_r_pthread_kill=yes 30692else $as_nop 30693 ac_cv_lib_c_r_pthread_kill=no 30694fi 30695rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30696 conftest$ac_exeext conftest.$ac_ext 30697LIBS=$ac_check_lib_save_LIBS 30698fi 30699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 30700printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 30701if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 30702then : 30703 gl_pthread_api=yes 30704 LIBPTHREAD=-lc_r 30705 LIBPMULTITHREAD=-lc_r 30706fi 30707 30708 fi 30709 fi 30710 fi 30711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 30712printf %s "checking whether POSIX threads API is available... " >&6; } 30713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 30714printf "%s\n" "$gl_pthread_api" >&6; } 30715 30716 30717 if test $gl_pthread_api = yes; then 30718 30719printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 30720 30721 fi 30722 30723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30724/* end confdefs.h. */ 30725#include <sched.h> 30726int 30727main (void) 30728{ 30729sched_yield (); 30730 ; 30731 return 0; 30732} 30733_ACEOF 30734if ac_fn_c_try_link "$LINENO" 30735then : 30736 LIB_SCHED_YIELD= 30737 30738else $as_nop 30739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 30740printf %s "checking for sched_yield in -lrt... " >&6; } 30741if test ${ac_cv_lib_rt_sched_yield+y} 30742then : 30743 printf %s "(cached) " >&6 30744else $as_nop 30745 ac_check_lib_save_LIBS=$LIBS 30746LIBS="-lrt $LIBS" 30747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30748/* end confdefs.h. */ 30749 30750/* Override any GCC internal prototype to avoid an error. 30751 Use char because int might match the return type of a GCC 30752 builtin and then its argument prototype would still apply. */ 30753char sched_yield (); 30754int 30755main (void) 30756{ 30757return sched_yield (); 30758 ; 30759 return 0; 30760} 30761_ACEOF 30762if ac_fn_c_try_link "$LINENO" 30763then : 30764 ac_cv_lib_rt_sched_yield=yes 30765else $as_nop 30766 ac_cv_lib_rt_sched_yield=no 30767fi 30768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30769 conftest$ac_exeext conftest.$ac_ext 30770LIBS=$ac_check_lib_save_LIBS 30771fi 30772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 30773printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 30774if test "x$ac_cv_lib_rt_sched_yield" = xyes 30775then : 30776 LIB_SCHED_YIELD=-lrt 30777else $as_nop 30778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 30779printf %s "checking for sched_yield in -lposix4... " >&6; } 30780if test ${ac_cv_lib_posix4_sched_yield+y} 30781then : 30782 printf %s "(cached) " >&6 30783else $as_nop 30784 ac_check_lib_save_LIBS=$LIBS 30785LIBS="-lposix4 $LIBS" 30786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30787/* end confdefs.h. */ 30788 30789/* Override any GCC internal prototype to avoid an error. 30790 Use char because int might match the return type of a GCC 30791 builtin and then its argument prototype would still apply. */ 30792char sched_yield (); 30793int 30794main (void) 30795{ 30796return sched_yield (); 30797 ; 30798 return 0; 30799} 30800_ACEOF 30801if ac_fn_c_try_link "$LINENO" 30802then : 30803 ac_cv_lib_posix4_sched_yield=yes 30804else $as_nop 30805 ac_cv_lib_posix4_sched_yield=no 30806fi 30807rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30808 conftest$ac_exeext conftest.$ac_ext 30809LIBS=$ac_check_lib_save_LIBS 30810fi 30811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 30812printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 30813if test "x$ac_cv_lib_posix4_sched_yield" = xyes 30814then : 30815 LIB_SCHED_YIELD=-lposix4 30816fi 30817 30818fi 30819 30820 30821fi 30822rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30823 conftest$ac_exeext conftest.$ac_ext 30824 30825 30826 gl_pthreadlib_body_done=done 30827 fi 30828 30829 LIBTHREAD=$LIBPTHREAD LTLIBTHREAD=$LIBPTHREAD 30830 LIBMULTITHREAD=$LIBPMULTITHREAD LTLIBMULTITHREAD=$LIBPMULTITHREAD 30831 if test $gl_pthread_api = yes; then 30832 if test "$gl_use_threads" = isoc+posix && test "$gl_have_isoc_threads" = yes; then 30833 gl_threads_api='isoc+posix' 30834 30835printf "%s\n" "#define USE_ISOC_AND_POSIX_THREADS 1" >>confdefs.h 30836 30837 LIBTHREAD= LTLIBTHREAD= 30838 else 30839 gl_threads_api=posix 30840 30841printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h 30842 30843 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 30844 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 30845 30846printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 30847 30848 LIBTHREAD= LTLIBTHREAD= 30849 else 30850 case "$host_os" in 30851 freebsd* | dragonfly*) 30852 if test "x$LIBTHREAD" != "x$LIBMULTITHREAD"; then 30853 30854printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 30855 30856 fi 30857 ;; 30858 esac 30859 fi 30860 fi 30861 fi 30862 fi 30863 fi 30864 if test $gl_threads_api = none; then 30865 if test "$gl_use_threads" = isoc && test "$gl_have_isoc_threads" = yes; then 30866 30867 30868 30869 if test -z "$gl_stdthreadlib_body_done"; then 30870 30871 30872 case "$host_os" in 30873 mingw*) 30874 LIBSTDTHREAD= 30875 ;; 30876 *) 30877 30878 30879 if test -z "$gl_pthreadlib_body_done"; then 30880 gl_pthread_api=no 30881 LIBPTHREAD= 30882 LIBPMULTITHREAD= 30883 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 30884 # it groks <pthread.h>. It's added above, in gl_ANYTHREADLIB_EARLY. 30885 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 30886if test "x$ac_cv_header_pthread_h" = xyes 30887then : 30888 gl_have_pthread_h=yes 30889else $as_nop 30890 gl_have_pthread_h=no 30891fi 30892 30893 if test "$gl_have_pthread_h" = yes; then 30894 # Other possible tests: 30895 # -lpthreads (FSU threads, PCthreads) 30896 # -lgthreads 30897 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 30898 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 30899 # the second one only in libpthread, and lock.c needs it. 30900 # 30901 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 30902 # needs -pthread for some reason. See: 30903 # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html 30904 save_LIBS=$LIBS 30905 for gl_pthread in '' '-pthread'; do 30906 LIBS="$LIBS $gl_pthread" 30907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30908/* end confdefs.h. */ 30909#include <pthread.h> 30910 pthread_mutex_t m; 30911 pthread_mutexattr_t ma; 30912 30913int 30914main (void) 30915{ 30916pthread_mutex_lock (&m); 30917 pthread_mutexattr_init (&ma); 30918 ; 30919 return 0; 30920} 30921_ACEOF 30922if ac_fn_c_try_link "$LINENO" 30923then : 30924 gl_pthread_api=yes 30925 LIBPTHREAD=$gl_pthread 30926 LIBPMULTITHREAD=$gl_pthread 30927fi 30928rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30929 conftest$ac_exeext conftest.$ac_ext 30930 LIBS=$save_LIBS 30931 test $gl_pthread_api = yes && break 30932 done 30933 30934 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 30935 # since it is defined as a macro on OSF/1.) 30936 if test $gl_pthread_api = yes && test -z "$LIBPTHREAD"; then 30937 # The program links fine without libpthread. But it may actually 30938 # need to link with libpthread in order to create multiple threads. 30939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 30940printf %s "checking for pthread_kill in -lpthread... " >&6; } 30941if test ${ac_cv_lib_pthread_pthread_kill+y} 30942then : 30943 printf %s "(cached) " >&6 30944else $as_nop 30945 ac_check_lib_save_LIBS=$LIBS 30946LIBS="-lpthread $LIBS" 30947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30948/* end confdefs.h. */ 30949 30950/* Override any GCC internal prototype to avoid an error. 30951 Use char because int might match the return type of a GCC 30952 builtin and then its argument prototype would still apply. */ 30953char pthread_kill (); 30954int 30955main (void) 30956{ 30957return pthread_kill (); 30958 ; 30959 return 0; 30960} 30961_ACEOF 30962if ac_fn_c_try_link "$LINENO" 30963then : 30964 ac_cv_lib_pthread_pthread_kill=yes 30965else $as_nop 30966 ac_cv_lib_pthread_pthread_kill=no 30967fi 30968rm -f core conftest.err conftest.$ac_objext conftest.beam \ 30969 conftest$ac_exeext conftest.$ac_ext 30970LIBS=$ac_check_lib_save_LIBS 30971fi 30972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 30973printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 30974if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 30975then : 30976 LIBPMULTITHREAD=-lpthread 30977 # On Solaris and HP-UX, most pthread functions exist also in libc. 30978 # Therefore pthread_in_use() needs to actually try to create a 30979 # thread: pthread_create from libc will fail, whereas 30980 # pthread_create will actually create a thread. 30981 # On Solaris 10 or newer, this test is no longer needed, because 30982 # libc contains the fully functional pthread functions. 30983 case "$host_os" in 30984 solaris | solaris2.1-9 | solaris2.1-9.* | hpux*) 30985 30986printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 30987 30988 esac 30989 30990fi 30991 30992 elif test $gl_pthread_api != yes; then 30993 # Some library is needed. Try libpthread and libc_r. 30994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 30995printf %s "checking for pthread_kill in -lpthread... " >&6; } 30996if test ${ac_cv_lib_pthread_pthread_kill+y} 30997then : 30998 printf %s "(cached) " >&6 30999else $as_nop 31000 ac_check_lib_save_LIBS=$LIBS 31001LIBS="-lpthread $LIBS" 31002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31003/* end confdefs.h. */ 31004 31005/* Override any GCC internal prototype to avoid an error. 31006 Use char because int might match the return type of a GCC 31007 builtin and then its argument prototype would still apply. */ 31008char pthread_kill (); 31009int 31010main (void) 31011{ 31012return pthread_kill (); 31013 ; 31014 return 0; 31015} 31016_ACEOF 31017if ac_fn_c_try_link "$LINENO" 31018then : 31019 ac_cv_lib_pthread_pthread_kill=yes 31020else $as_nop 31021 ac_cv_lib_pthread_pthread_kill=no 31022fi 31023rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31024 conftest$ac_exeext conftest.$ac_ext 31025LIBS=$ac_check_lib_save_LIBS 31026fi 31027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 31028printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; } 31029if test "x$ac_cv_lib_pthread_pthread_kill" = xyes 31030then : 31031 gl_pthread_api=yes 31032 LIBPTHREAD=-lpthread 31033 LIBPMULTITHREAD=-lpthread 31034fi 31035 31036 if test $gl_pthread_api != yes; then 31037 # For FreeBSD 4. 31038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 31039printf %s "checking for pthread_kill in -lc_r... " >&6; } 31040if test ${ac_cv_lib_c_r_pthread_kill+y} 31041then : 31042 printf %s "(cached) " >&6 31043else $as_nop 31044 ac_check_lib_save_LIBS=$LIBS 31045LIBS="-lc_r $LIBS" 31046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31047/* end confdefs.h. */ 31048 31049/* Override any GCC internal prototype to avoid an error. 31050 Use char because int might match the return type of a GCC 31051 builtin and then its argument prototype would still apply. */ 31052char pthread_kill (); 31053int 31054main (void) 31055{ 31056return pthread_kill (); 31057 ; 31058 return 0; 31059} 31060_ACEOF 31061if ac_fn_c_try_link "$LINENO" 31062then : 31063 ac_cv_lib_c_r_pthread_kill=yes 31064else $as_nop 31065 ac_cv_lib_c_r_pthread_kill=no 31066fi 31067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31068 conftest$ac_exeext conftest.$ac_ext 31069LIBS=$ac_check_lib_save_LIBS 31070fi 31071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 31072printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; } 31073if test "x$ac_cv_lib_c_r_pthread_kill" = xyes 31074then : 31075 gl_pthread_api=yes 31076 LIBPTHREAD=-lc_r 31077 LIBPMULTITHREAD=-lc_r 31078fi 31079 31080 fi 31081 fi 31082 fi 31083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 31084printf %s "checking whether POSIX threads API is available... " >&6; } 31085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_pthread_api" >&5 31086printf "%s\n" "$gl_pthread_api" >&6; } 31087 31088 31089 if test $gl_pthread_api = yes; then 31090 31091printf "%s\n" "#define HAVE_PTHREAD_API 1" >>confdefs.h 31092 31093 fi 31094 31095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31096/* end confdefs.h. */ 31097#include <sched.h> 31098int 31099main (void) 31100{ 31101sched_yield (); 31102 ; 31103 return 0; 31104} 31105_ACEOF 31106if ac_fn_c_try_link "$LINENO" 31107then : 31108 LIB_SCHED_YIELD= 31109 31110else $as_nop 31111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 31112printf %s "checking for sched_yield in -lrt... " >&6; } 31113if test ${ac_cv_lib_rt_sched_yield+y} 31114then : 31115 printf %s "(cached) " >&6 31116else $as_nop 31117 ac_check_lib_save_LIBS=$LIBS 31118LIBS="-lrt $LIBS" 31119cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31120/* end confdefs.h. */ 31121 31122/* Override any GCC internal prototype to avoid an error. 31123 Use char because int might match the return type of a GCC 31124 builtin and then its argument prototype would still apply. */ 31125char sched_yield (); 31126int 31127main (void) 31128{ 31129return sched_yield (); 31130 ; 31131 return 0; 31132} 31133_ACEOF 31134if ac_fn_c_try_link "$LINENO" 31135then : 31136 ac_cv_lib_rt_sched_yield=yes 31137else $as_nop 31138 ac_cv_lib_rt_sched_yield=no 31139fi 31140rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31141 conftest$ac_exeext conftest.$ac_ext 31142LIBS=$ac_check_lib_save_LIBS 31143fi 31144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 31145printf "%s\n" "$ac_cv_lib_rt_sched_yield" >&6; } 31146if test "x$ac_cv_lib_rt_sched_yield" = xyes 31147then : 31148 LIB_SCHED_YIELD=-lrt 31149else $as_nop 31150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 31151printf %s "checking for sched_yield in -lposix4... " >&6; } 31152if test ${ac_cv_lib_posix4_sched_yield+y} 31153then : 31154 printf %s "(cached) " >&6 31155else $as_nop 31156 ac_check_lib_save_LIBS=$LIBS 31157LIBS="-lposix4 $LIBS" 31158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31159/* end confdefs.h. */ 31160 31161/* Override any GCC internal prototype to avoid an error. 31162 Use char because int might match the return type of a GCC 31163 builtin and then its argument prototype would still apply. */ 31164char sched_yield (); 31165int 31166main (void) 31167{ 31168return sched_yield (); 31169 ; 31170 return 0; 31171} 31172_ACEOF 31173if ac_fn_c_try_link "$LINENO" 31174then : 31175 ac_cv_lib_posix4_sched_yield=yes 31176else $as_nop 31177 ac_cv_lib_posix4_sched_yield=no 31178fi 31179rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31180 conftest$ac_exeext conftest.$ac_ext 31181LIBS=$ac_check_lib_save_LIBS 31182fi 31183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 31184printf "%s\n" "$ac_cv_lib_posix4_sched_yield" >&6; } 31185if test "x$ac_cv_lib_posix4_sched_yield" = xyes 31186then : 31187 LIB_SCHED_YIELD=-lposix4 31188fi 31189 31190fi 31191 31192 31193fi 31194rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31195 conftest$ac_exeext conftest.$ac_ext 31196 31197 31198 gl_pthreadlib_body_done=done 31199 fi 31200 31201 if test $ac_cv_header_threads_h = yes; then 31202 ac_fn_c_check_func "$LINENO" "thrd_create" "ac_cv_func_thrd_create" 31203if test "x$ac_cv_func_thrd_create" = xyes 31204then : 31205 printf "%s\n" "#define HAVE_THRD_CREATE 1" >>confdefs.h 31206 31207fi 31208 31209 if test $ac_cv_func_thrd_create = yes; then 31210 LIBSTDTHREAD= 31211 else 31212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thrd_create in -lstdthreads" >&5 31213printf %s "checking for thrd_create in -lstdthreads... " >&6; } 31214if test ${ac_cv_lib_stdthreads_thrd_create+y} 31215then : 31216 printf %s "(cached) " >&6 31217else $as_nop 31218 ac_check_lib_save_LIBS=$LIBS 31219LIBS="-lstdthreads $LIBS" 31220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31221/* end confdefs.h. */ 31222 31223/* Override any GCC internal prototype to avoid an error. 31224 Use char because int might match the return type of a GCC 31225 builtin and then its argument prototype would still apply. */ 31226char thrd_create (); 31227int 31228main (void) 31229{ 31230return thrd_create (); 31231 ; 31232 return 0; 31233} 31234_ACEOF 31235if ac_fn_c_try_link "$LINENO" 31236then : 31237 ac_cv_lib_stdthreads_thrd_create=yes 31238else $as_nop 31239 ac_cv_lib_stdthreads_thrd_create=no 31240fi 31241rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31242 conftest$ac_exeext conftest.$ac_ext 31243LIBS=$ac_check_lib_save_LIBS 31244fi 31245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdthreads_thrd_create" >&5 31246printf "%s\n" "$ac_cv_lib_stdthreads_thrd_create" >&6; } 31247if test "x$ac_cv_lib_stdthreads_thrd_create" = xyes 31248then : 31249 31250 LIBSTDTHREAD='-lstdthreads -lpthread' 31251 31252else $as_nop 31253 31254 LIBSTDTHREAD="$LIBPMULTITHREAD" 31255 31256fi 31257 31258 fi 31259 else 31260 LIBSTDTHREAD="$LIBPMULTITHREAD $LIB_SCHED_YIELD" 31261 fi 31262 ;; 31263 esac 31264 31265 31266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ISO C threads API is available" >&5 31267printf %s "checking whether ISO C threads API is available... " >&6; } 31268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_threads_h" >&5 31269printf "%s\n" "$ac_cv_header_threads_h" >&6; } 31270 gl_stdthreadlib_body_done=done 31271 fi 31272 31273 LIBTHREAD=$LIBSTDTHREAD LTLIBTHREAD=$LIBSTDTHREAD 31274 LIBMULTITHREAD=$LIBSTDTHREAD LTLIBMULTITHREAD=$LIBSTDTHREAD 31275 gl_threads_api=isoc 31276 31277printf "%s\n" "#define USE_ISOC_THREADS 1" >>confdefs.h 31278 31279 fi 31280 fi 31281 if test $gl_threads_api = none; then 31282 case "$gl_use_threads" in 31283 yes | windows | win32) # The 'win32' is for backward compatibility. 31284 if { case "$host_os" in 31285 mingw*) true;; 31286 *) false;; 31287 esac 31288 }; then 31289 gl_threads_api=windows 31290 31291printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h 31292 31293 fi 31294 ;; 31295 esac 31296 fi 31297 fi 31298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 31299printf %s "checking for multithread API to use... " >&6; } 31300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 31301printf "%s\n" "$gl_threads_api" >&6; } 31302 31303 31304 31305 31306 31307 31308 31309 31310 31311 31312ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" 31313if test "x$ac_cv_have_decl_alarm" = xyes 31314then : 31315 ac_have_decl=1 31316else $as_nop 31317 ac_have_decl=0 31318fi 31319 31320printf "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h 31321 31322 31323 31324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library needed for semaphore functions" >&5 31325printf %s "checking for library needed for semaphore functions... " >&6; } 31326if test ${gl_cv_semaphore_lib+y} 31327then : 31328 printf %s "(cached) " >&6 31329else $as_nop 31330 save_LIBS="$LIBS" 31331 LIBS="$LIBS $LIBMULTITHREAD" 31332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31333/* end confdefs.h. */ 31334#include <semaphore.h> 31335int 31336main (void) 31337{ 31338sem_post ((sem_t *)0); 31339 ; 31340 return 0; 31341} 31342_ACEOF 31343if ac_fn_c_try_link "$LINENO" 31344then : 31345 gl_cv_semaphore_lib=none 31346else $as_nop 31347 LIBS="$LIBS -lrt" 31348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31349/* end confdefs.h. */ 31350#include <semaphore.h> 31351int 31352main (void) 31353{ 31354sem_post ((sem_t *)0); 31355 ; 31356 return 0; 31357} 31358_ACEOF 31359if ac_fn_c_try_link "$LINENO" 31360then : 31361 gl_cv_semaphore_lib='-lrt' 31362else $as_nop 31363 gl_cv_semaphore_lib=none 31364fi 31365rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31366 conftest$ac_exeext conftest.$ac_ext 31367 31368fi 31369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 31370 conftest$ac_exeext conftest.$ac_ext 31371 LIBS="$save_LIBS" 31372 31373fi 31374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_semaphore_lib" >&5 31375printf "%s\n" "$gl_cv_semaphore_lib" >&6; } 31376 if test "x$gl_cv_semaphore_lib" = xnone; then 31377 LIB_SEMAPHORE= 31378 else 31379 LIB_SEMAPHORE="$gl_cv_semaphore_lib" 31380 fi 31381 31382 31383 31384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 31385printf %s "checking whether lstat correctly handles trailing slash... " >&6; } 31386if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y} 31387then : 31388 printf %s "(cached) " >&6 31389else $as_nop 31390 rm -f conftest.sym conftest.file 31391 echo >conftest.file 31392 if test "$cross_compiling" = yes 31393then : 31394 case "$host_os" in 31395 linux-* | linux) 31396 # Guess yes on Linux systems. 31397 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; 31398 *-gnu* | gnu*) 31399 # Guess yes on glibc systems. 31400 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; 31401 mingw*) 31402 # Guess no on native Windows. 31403 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; 31404 *) 31405 # If we don't know, obey --enable-cross-guesses. 31406 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;; 31407 esac 31408 31409else $as_nop 31410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31411/* end confdefs.h. */ 31412$ac_includes_default 31413int 31414main (void) 31415{ 31416struct stat sbuf; 31417 if (symlink ("conftest.file", "conftest.sym") != 0) 31418 return 1; 31419 /* Linux will dereference the symlink and fail, as required by 31420 POSIX. That is better in the sense that it means we will not 31421 have to compile and use the lstat wrapper. */ 31422 return lstat ("conftest.sym/", &sbuf) == 0; 31423 31424 ; 31425 return 0; 31426} 31427_ACEOF 31428if ac_fn_c_try_run "$LINENO" 31429then : 31430 gl_cv_func_lstat_dereferences_slashed_symlink=yes 31431else $as_nop 31432 gl_cv_func_lstat_dereferences_slashed_symlink=no 31433fi 31434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31435 conftest.$ac_objext conftest.beam conftest.$ac_ext 31436fi 31437 31438 rm -f conftest.sym conftest.file 31439 31440fi 31441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 31442printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } 31443 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in 31444 *yes) 31445 31446printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h 31447 31448 ;; 31449 esac 31450 31451 31452 GNULIB_PTHREAD_THREAD=0; 31453 GNULIB_PTHREAD_ONCE=0; 31454 GNULIB_PTHREAD_MUTEX=0; 31455 GNULIB_PTHREAD_RWLOCK=0; 31456 GNULIB_PTHREAD_COND=0; 31457 GNULIB_PTHREAD_TSS=0; 31458 GNULIB_PTHREAD_SPIN=0; 31459 GNULIB_PTHREAD_MUTEX_TIMEDLOCK=0; 31460 HAVE_PTHREAD_T=1; 31461 HAVE_PTHREAD_SPINLOCK_T=1; 31462 HAVE_PTHREAD_CREATE_DETACHED=1; 31463 HAVE_PTHREAD_MUTEX_RECURSIVE=1; 31464 HAVE_PTHREAD_MUTEX_ROBUST=1; 31465 HAVE_PTHREAD_PROCESS_SHARED=1; 31466 HAVE_PTHREAD_CREATE=1; 31467 HAVE_PTHREAD_ATTR_INIT=1; 31468 HAVE_PTHREAD_ATTR_GETDETACHSTATE=1; 31469 HAVE_PTHREAD_ATTR_SETDETACHSTATE=1; 31470 HAVE_PTHREAD_ATTR_DESTROY=1; 31471 HAVE_PTHREAD_SELF=1; 31472 HAVE_PTHREAD_EQUAL=1; 31473 HAVE_PTHREAD_DETACH=1; 31474 HAVE_PTHREAD_JOIN=1; 31475 HAVE_PTHREAD_EXIT=1; 31476 HAVE_PTHREAD_ONCE=1; 31477 HAVE_PTHREAD_MUTEX_INIT=1; 31478 HAVE_PTHREAD_MUTEXATTR_INIT=1; 31479 HAVE_PTHREAD_MUTEXATTR_GETTYPE=1; 31480 HAVE_PTHREAD_MUTEXATTR_SETTYPE=1; 31481 HAVE_PTHREAD_MUTEXATTR_GETROBUST=1; 31482 HAVE_PTHREAD_MUTEXATTR_SETROBUST=1; 31483 HAVE_PTHREAD_MUTEXATTR_DESTROY=1; 31484 HAVE_PTHREAD_MUTEX_LOCK=1; 31485 HAVE_PTHREAD_MUTEX_TRYLOCK=1; 31486 HAVE_PTHREAD_MUTEX_TIMEDLOCK=1; 31487 HAVE_PTHREAD_MUTEX_UNLOCK=1; 31488 HAVE_PTHREAD_MUTEX_DESTROY=1; 31489 HAVE_PTHREAD_RWLOCK_INIT=1; 31490 HAVE_PTHREAD_RWLOCKATTR_INIT=1; 31491 HAVE_PTHREAD_RWLOCKATTR_DESTROY=1; 31492 HAVE_PTHREAD_RWLOCK_RDLOCK=1; 31493 HAVE_PTHREAD_RWLOCK_WRLOCK=1; 31494 HAVE_PTHREAD_RWLOCK_TRYRDLOCK=1; 31495 HAVE_PTHREAD_RWLOCK_TRYWRLOCK=1; 31496 HAVE_PTHREAD_RWLOCK_TIMEDRDLOCK=1; 31497 HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK=1; 31498 HAVE_PTHREAD_RWLOCK_UNLOCK=1; 31499 HAVE_PTHREAD_RWLOCK_DESTROY=1; 31500 HAVE_PTHREAD_COND_INIT=1; 31501 HAVE_PTHREAD_CONDATTR_INIT=1; 31502 HAVE_PTHREAD_CONDATTR_DESTROY=1; 31503 HAVE_PTHREAD_COND_WAIT=1; 31504 HAVE_PTHREAD_COND_TIMEDWAIT=1; 31505 HAVE_PTHREAD_COND_SIGNAL=1; 31506 HAVE_PTHREAD_COND_BROADCAST=1; 31507 HAVE_PTHREAD_COND_DESTROY=1; 31508 HAVE_PTHREAD_KEY_CREATE=1; 31509 HAVE_PTHREAD_SETSPECIFIC=1; 31510 HAVE_PTHREAD_GETSPECIFIC=1; 31511 HAVE_PTHREAD_KEY_DELETE=1; 31512 HAVE_PTHREAD_SPIN_INIT=1; 31513 HAVE_PTHREAD_SPIN_LOCK=1; 31514 HAVE_PTHREAD_SPIN_TRYLOCK=1; 31515 HAVE_PTHREAD_SPIN_UNLOCK=1; 31516 HAVE_PTHREAD_SPIN_DESTROY=1; 31517 REPLACE_PTHREAD_CREATE=0; 31518 REPLACE_PTHREAD_ATTR_INIT=0; 31519 REPLACE_PTHREAD_ATTR_GETDETACHSTATE=0; 31520 REPLACE_PTHREAD_ATTR_SETDETACHSTATE=0; 31521 REPLACE_PTHREAD_ATTR_DESTROY=0; 31522 REPLACE_PTHREAD_SELF=0; 31523 REPLACE_PTHREAD_EQUAL=0; 31524 REPLACE_PTHREAD_DETACH=0; 31525 REPLACE_PTHREAD_JOIN=0; 31526 REPLACE_PTHREAD_EXIT=0; 31527 REPLACE_PTHREAD_ONCE=0; 31528 REPLACE_PTHREAD_MUTEX_INIT=0; 31529 REPLACE_PTHREAD_MUTEXATTR_INIT=0; 31530 REPLACE_PTHREAD_MUTEXATTR_GETTYPE=0; 31531 REPLACE_PTHREAD_MUTEXATTR_SETTYPE=0; 31532 REPLACE_PTHREAD_MUTEXATTR_GETROBUST=0; 31533 REPLACE_PTHREAD_MUTEXATTR_SETROBUST=0; 31534 REPLACE_PTHREAD_MUTEXATTR_DESTROY=0; 31535 REPLACE_PTHREAD_MUTEX_LOCK=0; 31536 REPLACE_PTHREAD_MUTEX_TRYLOCK=0; 31537 REPLACE_PTHREAD_MUTEX_TIMEDLOCK=0; 31538 REPLACE_PTHREAD_MUTEX_UNLOCK=0; 31539 REPLACE_PTHREAD_MUTEX_DESTROY=0; 31540 REPLACE_PTHREAD_RWLOCK_INIT=0; 31541 REPLACE_PTHREAD_RWLOCKATTR_INIT=0; 31542 REPLACE_PTHREAD_RWLOCKATTR_DESTROY=0; 31543 REPLACE_PTHREAD_RWLOCK_RDLOCK=0; 31544 REPLACE_PTHREAD_RWLOCK_WRLOCK=0; 31545 REPLACE_PTHREAD_RWLOCK_TRYRDLOCK=0; 31546 REPLACE_PTHREAD_RWLOCK_TRYWRLOCK=0; 31547 REPLACE_PTHREAD_RWLOCK_TIMEDRDLOCK=0; 31548 REPLACE_PTHREAD_RWLOCK_TIMEDWRLOCK=0; 31549 REPLACE_PTHREAD_RWLOCK_UNLOCK=0; 31550 REPLACE_PTHREAD_RWLOCK_DESTROY=0; 31551 REPLACE_PTHREAD_COND_INIT=0; 31552 REPLACE_PTHREAD_CONDATTR_INIT=0; 31553 REPLACE_PTHREAD_CONDATTR_DESTROY=0; 31554 REPLACE_PTHREAD_COND_WAIT=0; 31555 REPLACE_PTHREAD_COND_TIMEDWAIT=0; 31556 REPLACE_PTHREAD_COND_SIGNAL=0; 31557 REPLACE_PTHREAD_COND_BROADCAST=0; 31558 REPLACE_PTHREAD_COND_DESTROY=0; 31559 REPLACE_PTHREAD_KEY_CREATE=0; 31560 REPLACE_PTHREAD_SETSPECIFIC=0; 31561 REPLACE_PTHREAD_GETSPECIFIC=0; 31562 REPLACE_PTHREAD_KEY_DELETE=0; 31563 REPLACE_PTHREAD_SPIN_INIT=0; 31564 REPLACE_PTHREAD_SPIN_LOCK=0; 31565 REPLACE_PTHREAD_SPIN_TRYLOCK=0; 31566 REPLACE_PTHREAD_SPIN_UNLOCK=0; 31567 REPLACE_PTHREAD_SPIN_DESTROY=0; 31568 31569 31570 31571 31572 GNULIB_SCHED_YIELD=0; 31573 HAVE_SCHED_YIELD=1; 31574 REPLACE_SCHED_YIELD=0; 31575 31576ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" 31577if test "x$ac_cv_have_decl_setenv" = xyes 31578then : 31579 ac_have_decl=1 31580else $as_nop 31581 ac_have_decl=0 31582fi 31583 31584printf "%s\n" "#define HAVE_DECL_SETENV $ac_have_decl" >>confdefs.h 31585 31586 31587 31588 31589 31590 if test $ac_cv_have_decl_setenv = no; then 31591 HAVE_DECL_SETENV=0 31592 fi 31593 31594 31595 31596 31597 31598 ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" 31599if test "x$ac_cv_header_search_h" = xyes 31600then : 31601 printf "%s\n" "#define HAVE_SEARCH_H 1" >>confdefs.h 31602 31603fi 31604 31605 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 31606if test "x$ac_cv_func_tsearch" = xyes 31607then : 31608 printf "%s\n" "#define HAVE_TSEARCH 1" >>confdefs.h 31609 31610fi 31611 31612 31613 31614 31615 31616 31617 31618 31619ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" 31620if test "x$ac_cv_have_decl_unsetenv" = xyes 31621then : 31622 ac_have_decl=1 31623else $as_nop 31624 ac_have_decl=0 31625fi 31626 31627printf "%s\n" "#define HAVE_DECL_UNSETENV $ac_have_decl" >>confdefs.h 31628 31629 31630 31631 31632 31633 31634 31635 31636 if test $gl_threads_api = posix; then 31637 YIELD_LIB="$LIB_SCHED_YIELD" 31638 else 31639 YIELD_LIB= 31640 fi 31641 31642 31643 31644 if true; then 31645 GL_COND_LIBTOOL_TRUE= 31646 GL_COND_LIBTOOL_FALSE='#' 31647else 31648 GL_COND_LIBTOOL_TRUE='#' 31649 GL_COND_LIBTOOL_FALSE= 31650fi 31651 31652 gl_cond_libtool=true 31653 gl_m4_base='m4' 31654 31655 31656 31657 31658 31659 31660 31661 31662 31663 31664 gl_source_base='gl' 31665LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'` 31666 31667 31668 31669 if test $ac_cv_func_alloca_works = no; then 31670 : 31671 fi 31672 31673 # Define an additional variable used in the Makefile substitution. 31674 if test $ac_cv_working_alloca_h = yes; then 31675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 31676printf %s "checking for alloca as a compiler built-in... " >&6; } 31677if test ${gl_cv_rpl_alloca+y} 31678then : 31679 printf %s "(cached) " >&6 31680else $as_nop 31681 31682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31683/* end confdefs.h. */ 31684 31685#if defined __GNUC__ || defined _AIX || defined _MSC_VER 31686 Need own alloca 31687#endif 31688 31689_ACEOF 31690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31691 $EGREP "Need own alloca" >/dev/null 2>&1 31692then : 31693 gl_cv_rpl_alloca=yes 31694else $as_nop 31695 gl_cv_rpl_alloca=no 31696fi 31697rm -rf conftest* 31698 31699 31700fi 31701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 31702printf "%s\n" "$gl_cv_rpl_alloca" >&6; } 31703 if test $gl_cv_rpl_alloca = yes; then 31704 31705printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h 31706 31707 ALLOCA_H=alloca.h 31708 else 31709 ALLOCA_H= 31710 fi 31711 else 31712 ALLOCA_H=alloca.h 31713 fi 31714 31715 if test -n "$ALLOCA_H"; then 31716 GL_GENERATE_ALLOCA_H_TRUE= 31717 GL_GENERATE_ALLOCA_H_FALSE='#' 31718else 31719 GL_GENERATE_ALLOCA_H_TRUE='#' 31720 GL_GENERATE_ALLOCA_H_FALSE= 31721fi 31722 31723 31724 if test $ac_cv_working_alloca_h = yes; then 31725 HAVE_ALLOCA_H=1 31726 else 31727 HAVE_ALLOCA_H=0 31728 fi 31729 31730 31731 31732 31733 31734 31735 if test $ac_cv_header_arpa_inet_h = yes; then 31736 HAVE_ARPA_INET_H=1 31737 else 31738 HAVE_ARPA_INET_H=0 31739 fi 31740 31741 31742 31743 31744 31745 31746 31747 31748 31749 31750 if test $gl_cv_have_include_next = yes; then 31751 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' 31752 else 31753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5 31754printf %s "checking absolute name of <arpa/inet.h>... " >&6; } 31755if test ${gl_cv_next_arpa_inet_h+y} 31756then : 31757 printf %s "(cached) " >&6 31758else $as_nop 31759 31760 if test $ac_cv_header_arpa_inet_h = yes; then 31761 31762 31763 31764 31765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31766/* end confdefs.h. */ 31767#include <arpa/inet.h> 31768_ACEOF 31769 case "$host_os" in 31770 aix*) gl_absname_cpp="$ac_cpp -C" ;; 31771 *) gl_absname_cpp="$ac_cpp" ;; 31772 esac 31773 31774 case "$host_os" in 31775 mingw*) 31776 gl_dirsep_regex='[/\\]' 31777 ;; 31778 *) 31779 gl_dirsep_regex='\/' 31780 ;; 31781 esac 31782 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 31783 gl_header_literal_regex=`echo 'arpa/inet.h' \ 31784 | sed -e "$gl_make_literal_regex_sed"` 31785 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 31786 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 31787 s|^/[^/]|//&| 31788 p 31789 q 31790 }' 31791 31792 gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 31793 sed -n "$gl_absolute_header_sed"` 31794 31795 gl_header=$gl_cv_absolute_arpa_inet_h 31796 gl_cv_next_arpa_inet_h='"'$gl_header'"' 31797 else 31798 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' 31799 fi 31800 31801 31802fi 31803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5 31804printf "%s\n" "$gl_cv_next_arpa_inet_h" >&6; } 31805 fi 31806 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h 31807 31808 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 31809 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 31810 gl_next_as_first_directive='<'arpa/inet.h'>' 31811 else 31812 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 31813 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h 31814 fi 31815 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive 31816 31817 31818 31819 31820 31821 31822 31823 31824 31825 if test $ac_cv_header_sys_socket_h = yes; then 31826 HAVE_WS2TCPIP_H=0 31827 else 31828 if test $ac_cv_header_ws2tcpip_h = yes; then 31829 HAVE_WS2TCPIP_H=1 31830 else 31831 HAVE_WS2TCPIP_H=0 31832 fi 31833 fi 31834 31835 31836 31837 31838 31839 31840 31841 31842 31843 31844printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h 31845 31846 31847 31848 31849 31850 31851 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 31852 REPLACE_CLOSE=1 31853 fi 31854 31855 31856 31857 31858 31859 31860 if test $ac_cv_header_sys_socket_h != yes; then 31861 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 31862if test "x$ac_cv_header_winsock2_h" = xyes 31863then : 31864 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 31865 31866fi 31867 31868 fi 31869 if test "$ac_cv_header_winsock2_h" = yes; then 31870 HAVE_WINSOCK2_H=1 31871 UNISTD_H_HAVE_WINSOCK2_H=1 31872 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 31873 else 31874 HAVE_WINSOCK2_H=0 31875 fi 31876 31877 31878 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then 31879 REPLACE_CLOSE=1 31880 fi 31881 31882 31883 31884 if test $REPLACE_CLOSE = 1; then 31885 31886 31887 31888 31889 31890 31891 31892 31893 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext" 31894 31895 fi 31896 31897 31898 31899 31900 31901 GNULIB_CLOSE=1 31902 31903 31904 31905 31906 31907printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h 31908 31909 31910 31911 31912 if test "$ac_cv_header_winsock2_h" = yes; then 31913 31914 31915 31916 31917 31918 31919 31920 31921 gl_LIBOBJS="$gl_LIBOBJS connect.$ac_objext" 31922 31923 fi 31924 31925 31926 31927 31928 31929 GNULIB_CONNECT=1 31930 31931 31932 31933 31934 31935printf "%s\n" "#define GNULIB_TEST_CONNECT 1" >>confdefs.h 31936 31937 31938 31939 31940 31941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 31942printf %s "checking whether // is distinct from /... " >&6; } 31943if test ${gl_cv_double_slash_root+y} 31944then : 31945 printf %s "(cached) " >&6 31946else $as_nop 31947 if test x"$cross_compiling" = xyes ; then 31948 # When cross-compiling, there is no way to tell whether // is special 31949 # short of a list of hosts. However, the only known hosts to date 31950 # that have a distinct // are Apollo DomainOS (too old to port to), 31951 # Cygwin, and z/OS. If anyone knows of another system for which // has 31952 # special semantics and is distinct from /, please report it to 31953 # <bug-gnulib@gnu.org>. 31954 case $host in 31955 *-cygwin | i370-ibm-openedition) 31956 gl_cv_double_slash_root=yes ;; 31957 *) 31958 # Be optimistic and assume that / and // are the same when we 31959 # don't know. 31960 gl_cv_double_slash_root='unknown, assuming no' ;; 31961 esac 31962 else 31963 set x `ls -di / // 2>/dev/null` 31964 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 31965 gl_cv_double_slash_root=no 31966 else 31967 gl_cv_double_slash_root=yes 31968 fi 31969 fi 31970fi 31971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 31972printf "%s\n" "$gl_cv_double_slash_root" >&6; } 31973 if test "$gl_cv_double_slash_root" = yes; then 31974 31975printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 31976 31977 fi 31978 31979 31980 31981 31982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 31983printf %s "checking whether dup2 works... " >&6; } 31984if test ${gl_cv_func_dup2_works+y} 31985then : 31986 printf %s "(cached) " >&6 31987else $as_nop 31988 if test "$cross_compiling" = yes 31989then : 31990 case "$host_os" in 31991 mingw*) # on this platform, dup2 always returns 0 for success 31992 gl_cv_func_dup2_works="guessing no" ;; 31993 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 31994 gl_cv_func_dup2_works="guessing no" ;; 31995 aix* | freebsd*) 31996 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, 31997 # not EBADF. 31998 gl_cv_func_dup2_works="guessing no" ;; 31999 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. 32000 gl_cv_func_dup2_works="guessing no" ;; 32001 *-android*) # implemented using dup3(), which fails if oldfd == newfd 32002 gl_cv_func_dup2_works="guessing no" ;; 32003 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. 32004 gl_cv_func_dup2_works="guessing no" ;; 32005 *) gl_cv_func_dup2_works="guessing yes" ;; 32006 esac 32007else $as_nop 32008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32009/* end confdefs.h. */ 32010 32011 #include <errno.h> 32012 #include <fcntl.h> 32013 #include <limits.h> 32014 #include <sys/resource.h> 32015 #include <unistd.h> 32016 32017 32018$gl_mda_defines 32019 32020 #ifndef RLIM_SAVED_CUR 32021 # define RLIM_SAVED_CUR RLIM_INFINITY 32022 #endif 32023 #ifndef RLIM_SAVED_MAX 32024 # define RLIM_SAVED_MAX RLIM_INFINITY 32025 #endif 32026 32027int 32028main (void) 32029{ 32030int result = 0; 32031 int bad_fd = INT_MAX; 32032 struct rlimit rlim; 32033 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 32034 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 32035 && rlim.rlim_cur != RLIM_INFINITY 32036 && rlim.rlim_cur != RLIM_SAVED_MAX 32037 && rlim.rlim_cur != RLIM_SAVED_CUR) 32038 bad_fd = rlim.rlim_cur; 32039 #ifdef FD_CLOEXEC 32040 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) 32041 result |= 1; 32042 #endif 32043 if (dup2 (1, 1) != 1) 32044 result |= 2; 32045 #ifdef FD_CLOEXEC 32046 if (fcntl (1, F_GETFD) != FD_CLOEXEC) 32047 result |= 4; 32048 #endif 32049 close (0); 32050 if (dup2 (0, 0) != -1) 32051 result |= 8; 32052 /* Many gnulib modules require POSIX conformance of EBADF. */ 32053 if (dup2 (2, bad_fd) == -1 && errno != EBADF) 32054 result |= 16; 32055 /* Flush out some cygwin core dumps. */ 32056 if (dup2 (2, -1) != -1 || errno != EBADF) 32057 result |= 32; 32058 dup2 (2, 255); 32059 dup2 (2, 256); 32060 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ 32061 { 32062 int fd = open (".", O_RDONLY); 32063 if (fd == -1) 32064 result |= 64; 32065 else if (dup2 (fd, fd + 1) == -1) 32066 result |= 128; 32067 close (fd); 32068 } 32069 return result; 32070 ; 32071 return 0; 32072} 32073 32074_ACEOF 32075if ac_fn_c_try_run "$LINENO" 32076then : 32077 gl_cv_func_dup2_works=yes 32078else $as_nop 32079 gl_cv_func_dup2_works=no 32080fi 32081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32082 conftest.$ac_objext conftest.beam conftest.$ac_ext 32083fi 32084 32085 32086fi 32087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 32088printf "%s\n" "$gl_cv_func_dup2_works" >&6; } 32089 case "$gl_cv_func_dup2_works" in 32090 *yes) ;; 32091 *) 32092 REPLACE_DUP2=1 32093 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" 32094if test "x$ac_cv_func_setdtablesize" = xyes 32095then : 32096 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h 32097 32098fi 32099 32100 ;; 32101 esac 32102 32103 32104 if test $REPLACE_DUP2 = 1; then 32105 32106 32107 32108 32109 32110 32111 32112 32113 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" 32114 32115 32116 fi 32117 32118 32119 32120 32121 32122 GNULIB_DUP2=1 32123 32124 32125 32126 32127 32128printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h 32129 32130 32131 32132 32133 32134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 32135printf %s "checking for error_at_line... " >&6; } 32136if test ${ac_cv_lib_error_at_line+y} 32137then : 32138 printf %s "(cached) " >&6 32139else $as_nop 32140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32141/* end confdefs.h. */ 32142#include <error.h> 32143int 32144main (void) 32145{ 32146error_at_line (0, 0, "", 0, "an error occurred"); 32147 ; 32148 return 0; 32149} 32150_ACEOF 32151if ac_fn_c_try_link "$LINENO" 32152then : 32153 ac_cv_lib_error_at_line=yes 32154else $as_nop 32155 ac_cv_lib_error_at_line=no 32156fi 32157rm -f core conftest.err conftest.$ac_objext conftest.beam \ 32158 conftest$ac_exeext conftest.$ac_ext 32159fi 32160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 32161printf "%s\n" "$ac_cv_lib_error_at_line" >&6; } 32162 32163 if test $ac_cv_lib_error_at_line = no; then 32164 32165 32166 32167 32168 32169 32170 32171 32172 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" 32173 32174 32175 32176 : 32177 32178 fi 32179 32180 32181 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" 32182 32183 32184 32185 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" 32186 32187 32188 32189 32190 32191 32192 32193 if test $ac_cv_func_fcntl = no; then 32194 32195 32196 32197 if test $ac_cv_func_fcntl = no; then 32198 HAVE_FCNTL=0 32199 else 32200 REPLACE_FCNTL=1 32201 fi 32202 32203 else 32204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 32205printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; } 32206if test ${gl_cv_func_fcntl_f_dupfd_works+y} 32207then : 32208 printf %s "(cached) " >&6 32209else $as_nop 32210 if test "$cross_compiling" = yes 32211then : 32212 case $host_os in 32213 aix* | cygwin* | haiku*) 32214 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; 32215 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; 32216 esac 32217else $as_nop 32218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32219/* end confdefs.h. */ 32220#include <errno.h> 32221 #include <fcntl.h> 32222 #include <limits.h> 32223 #include <sys/resource.h> 32224 #include <unistd.h> 32225 32226 32227$gl_mda_defines 32228 32229 #ifndef RLIM_SAVED_CUR 32230 # define RLIM_SAVED_CUR RLIM_INFINITY 32231 #endif 32232 #ifndef RLIM_SAVED_MAX 32233 # define RLIM_SAVED_MAX RLIM_INFINITY 32234 #endif 32235 32236int 32237main (void) 32238{ 32239int result = 0; 32240 int bad_fd = INT_MAX; 32241 struct rlimit rlim; 32242 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 32243 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 32244 && rlim.rlim_cur != RLIM_INFINITY 32245 && rlim.rlim_cur != RLIM_SAVED_MAX 32246 && rlim.rlim_cur != RLIM_SAVED_CUR) 32247 bad_fd = rlim.rlim_cur; 32248 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 32249 if (errno != EINVAL) result |= 2; 32250 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; 32251 if (errno != EINVAL) result |= 8; 32252 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ 32253 { 32254 int fd; 32255 fd = open (".", O_RDONLY); 32256 if (fd == -1) 32257 result |= 16; 32258 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) 32259 result |= 32; 32260 32261 close (fd); 32262 } 32263 return result; 32264 ; 32265 return 0; 32266} 32267_ACEOF 32268if ac_fn_c_try_run "$LINENO" 32269then : 32270 gl_cv_func_fcntl_f_dupfd_works=yes 32271else $as_nop 32272 gl_cv_func_fcntl_f_dupfd_works=no 32273fi 32274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32275 conftest.$ac_objext conftest.beam conftest.$ac_ext 32276fi 32277 32278fi 32279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 32280printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; } 32281 case $gl_cv_func_fcntl_f_dupfd_works in 32282 *yes) ;; 32283 *) 32284 32285 32286 if test $ac_cv_func_fcntl = no; then 32287 HAVE_FCNTL=0 32288 else 32289 REPLACE_FCNTL=1 32290 fi 32291 32292 32293printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h 32294 ;; 32295 esac 32296 32297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 32298printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } 32299if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y} 32300then : 32301 printf %s "(cached) " >&6 32302else $as_nop 32303 if test "$cross_compiling" = yes 32304then : 32305 case "$host_os" in 32306 # Guess no on NetBSD. 32307 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;; 32308 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;; 32309 esac 32310 32311else $as_nop 32312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32313/* end confdefs.h. */ 32314#include <fcntl.h> 32315 #include <unistd.h> 32316 int main (int argc, char *argv[]) 32317 { 32318 if (argc == 1) 32319 /* parent process */ 32320 { 32321 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0) 32322 return 1; 32323 return execl ("./conftest", "./conftest", "child", NULL); 32324 } 32325 else 32326 /* child process */ 32327 return (fcntl (10, F_GETFL) < 0 ? 0 : 42); 32328 } 32329 32330 32331_ACEOF 32332if ac_fn_c_try_run "$LINENO" 32333then : 32334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32335/* end confdefs.h. */ 32336 32337#ifdef __linux__ 32338/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace 32339 it to support the semantics on older kernels that failed with EINVAL. */ 32340choke me 32341#endif 32342 32343int 32344main (void) 32345{ 32346 32347 ; 32348 return 0; 32349} 32350_ACEOF 32351if ac_fn_c_try_compile "$LINENO" 32352then : 32353 gl_cv_func_fcntl_f_dupfd_cloexec=yes 32354else $as_nop 32355 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" 32356fi 32357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32358 32359else $as_nop 32360 gl_cv_func_fcntl_f_dupfd_cloexec=no 32361fi 32362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32363 conftest.$ac_objext conftest.beam conftest.$ac_ext 32364fi 32365 32366 32367fi 32368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 32369printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } 32370 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in 32371 *yes) ;; 32372 *) 32373 32374 32375 if test $ac_cv_func_fcntl = no; then 32376 HAVE_FCNTL=0 32377 else 32378 REPLACE_FCNTL=1 32379 fi 32380 32381 ;; 32382 esac 32383 fi 32384 32385 32386 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 32387 32388 32389 32390 32391 32392 32393 32394 32395 gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext" 32396 32397 fi 32398 32399 32400 32401 32402 32403 GNULIB_FCNTL=1 32404 32405 32406 32407 32408 32409printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h 32410 32411 32412 32413 32414 32415 32416 32417 32418 32419 32420 32421 32422 32423 32424 if test $gl_cv_have_include_next = yes; then 32425 gl_cv_next_fcntl_h='<'fcntl.h'>' 32426 else 32427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 32428printf %s "checking absolute name of <fcntl.h>... " >&6; } 32429if test ${gl_cv_next_fcntl_h+y} 32430then : 32431 printf %s "(cached) " >&6 32432else $as_nop 32433 32434 32435 32436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32437/* end confdefs.h. */ 32438#include <fcntl.h> 32439_ACEOF 32440 case "$host_os" in 32441 aix*) gl_absname_cpp="$ac_cpp -C" ;; 32442 *) gl_absname_cpp="$ac_cpp" ;; 32443 esac 32444 32445 case "$host_os" in 32446 mingw*) 32447 gl_dirsep_regex='[/\\]' 32448 ;; 32449 *) 32450 gl_dirsep_regex='\/' 32451 ;; 32452 esac 32453 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 32454 gl_header_literal_regex=`echo 'fcntl.h' \ 32455 | sed -e "$gl_make_literal_regex_sed"` 32456 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 32457 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 32458 s|^/[^/]|//&| 32459 p 32460 q 32461 }' 32462 32463 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 32464 sed -n "$gl_absolute_header_sed"` 32465 32466 gl_header=$gl_cv_absolute_fcntl_h 32467 gl_cv_next_fcntl_h='"'$gl_header'"' 32468 32469 32470fi 32471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 32472printf "%s\n" "$gl_cv_next_fcntl_h" >&6; } 32473 fi 32474 NEXT_FCNTL_H=$gl_cv_next_fcntl_h 32475 32476 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 32477 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 32478 gl_next_as_first_directive='<'fcntl.h'>' 32479 else 32480 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 32481 gl_next_as_first_directive=$gl_cv_next_fcntl_h 32482 fi 32483 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive 32484 32485 32486 32487 32488 32489 32490 32491 32492 32493 32494 32495 32496 32497 32498 32499 32500 FLOAT_H= 32501 REPLACE_FLOAT_LDBL=0 32502 case "$host_os" in 32503 aix* | beos* | openbsd* | mirbsd* | irix*) 32504 FLOAT_H=float.h 32505 ;; 32506 freebsd* | dragonfly*) 32507 case "$host_cpu" in 32508 i[34567]86 ) 32509 FLOAT_H=float.h 32510 ;; 32511 x86_64 ) 32512 # On x86_64 systems, the C compiler may still be generating 32513 # 32-bit code. 32514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32515/* end confdefs.h. */ 32516#if defined __LP64__ || defined __x86_64__ || defined __amd64__ 32517 int ok; 32518 #else 32519 error fail 32520 #endif 32521 32522_ACEOF 32523if ac_fn_c_try_compile "$LINENO" 32524then : 32525 32526else $as_nop 32527 FLOAT_H=float.h 32528fi 32529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32530 ;; 32531 esac 32532 ;; 32533 linux*) 32534 case "$host_cpu" in 32535 powerpc*) 32536 FLOAT_H=float.h 32537 ;; 32538 esac 32539 ;; 32540 esac 32541 case "$host_os" in 32542 aix* | freebsd* | dragonfly* | linux*) 32543 if test -n "$FLOAT_H"; then 32544 REPLACE_FLOAT_LDBL=1 32545 fi 32546 ;; 32547 esac 32548 32549 REPLACE_ITOLD=0 32550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5 32551printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; } 32552if test ${gl_cv_func_itold_works+y} 32553then : 32554 printf %s "(cached) " >&6 32555else $as_nop 32556 32557 if test "$cross_compiling" = yes 32558then : 32559 case "$host" in 32560 sparc*-*-linux*) 32561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32562/* end confdefs.h. */ 32563#if defined __LP64__ || defined __arch64__ 32564 int ok; 32565 #else 32566 error fail 32567 #endif 32568 32569_ACEOF 32570if ac_fn_c_try_compile "$LINENO" 32571then : 32572 gl_cv_func_itold_works="guessing no" 32573else $as_nop 32574 gl_cv_func_itold_works="guessing yes" 32575fi 32576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 32577 ;; 32578 # Guess yes on native Windows. 32579 mingw*) gl_cv_func_itold_works="guessing yes" ;; 32580 *) gl_cv_func_itold_works="guessing yes" ;; 32581 esac 32582 32583else $as_nop 32584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32585/* end confdefs.h. */ 32586 32587int i = -1; 32588volatile long double ld; 32589int main () 32590{ 32591 ld += i * 1.0L; 32592 if (ld > 0) 32593 return 1; 32594 return 0; 32595} 32596_ACEOF 32597if ac_fn_c_try_run "$LINENO" 32598then : 32599 gl_cv_func_itold_works=yes 32600else $as_nop 32601 gl_cv_func_itold_works=no 32602fi 32603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32604 conftest.$ac_objext conftest.beam conftest.$ac_ext 32605fi 32606 32607 32608fi 32609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5 32610printf "%s\n" "$gl_cv_func_itold_works" >&6; } 32611 case "$gl_cv_func_itold_works" in 32612 *no) 32613 REPLACE_ITOLD=1 32614 FLOAT_H=float.h 32615 ;; 32616 esac 32617 32618 if test -n "$FLOAT_H"; then 32619 32620 32621 32622 32623 32624 32625 32626 32627 if test $gl_cv_have_include_next = yes; then 32628 gl_cv_next_float_h='<'float.h'>' 32629 else 32630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5 32631printf %s "checking absolute name of <float.h>... " >&6; } 32632if test ${gl_cv_next_float_h+y} 32633then : 32634 printf %s "(cached) " >&6 32635else $as_nop 32636 32637 32638 32639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32640/* end confdefs.h. */ 32641#include <float.h> 32642_ACEOF 32643 case "$host_os" in 32644 aix*) gl_absname_cpp="$ac_cpp -C" ;; 32645 *) gl_absname_cpp="$ac_cpp" ;; 32646 esac 32647 32648 case "$host_os" in 32649 mingw*) 32650 gl_dirsep_regex='[/\\]' 32651 ;; 32652 *) 32653 gl_dirsep_regex='\/' 32654 ;; 32655 esac 32656 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 32657 gl_header_literal_regex=`echo 'float.h' \ 32658 | sed -e "$gl_make_literal_regex_sed"` 32659 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 32660 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 32661 s|^/[^/]|//&| 32662 p 32663 q 32664 }' 32665 32666 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 32667 sed -n "$gl_absolute_header_sed"` 32668 32669 gl_header=$gl_cv_absolute_float_h 32670 gl_cv_next_float_h='"'$gl_header'"' 32671 32672 32673fi 32674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5 32675printf "%s\n" "$gl_cv_next_float_h" >&6; } 32676 fi 32677 NEXT_FLOAT_H=$gl_cv_next_float_h 32678 32679 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 32680 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 32681 gl_next_as_first_directive='<'float.h'>' 32682 else 32683 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 32684 gl_next_as_first_directive=$gl_cv_next_float_h 32685 fi 32686 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive 32687 32688 32689 32690 32691 fi 32692 32693 if test -n "$FLOAT_H"; then 32694 GL_GENERATE_FLOAT_H_TRUE= 32695 GL_GENERATE_FLOAT_H_FALSE='#' 32696else 32697 GL_GENERATE_FLOAT_H_TRUE='#' 32698 GL_GENERATE_FLOAT_H_FALSE= 32699fi 32700 32701 32702 32703 if test $REPLACE_FLOAT_LDBL = 1; then 32704 32705 32706 32707 32708 32709 32710 32711 32712 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext" 32713 32714 fi 32715 if test $REPLACE_ITOLD = 1; then 32716 32717 32718 32719 32720 32721 32722 32723 32724 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext" 32725 32726 fi 32727 32728 32729 32730 case "$host_os" in 32731 mingw* | pw*) 32732 REPLACE_FOPEN=1 32733 gl_cv_func_fopen_slash="guessing no" 32734 ;; 32735 *) 32736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5 32737printf %s "checking whether fopen recognizes a trailing slash... " >&6; } 32738if test ${gl_cv_func_fopen_slash+y} 32739then : 32740 printf %s "(cached) " >&6 32741else $as_nop 32742 32743 if test "$cross_compiling" = yes 32744then : 32745 32746 case "$host_os" in 32747 aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) 32748 gl_cv_func_fopen_slash="guessing no" ;; 32749 *) 32750 gl_cv_func_fopen_slash="guessing yes" ;; 32751 esac 32752 32753else $as_nop 32754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32755/* end confdefs.h. */ 32756 32757#include <stddef.h> 32758#include <stdio.h> 32759int main () 32760{ 32761 FILE *fp = fopen ("conftest.sl/", "w"); 32762 int result = (fp != NULL); 32763 if (fp != NULL) 32764 fclose (fp); 32765 return result; 32766} 32767_ACEOF 32768if ac_fn_c_try_run "$LINENO" 32769then : 32770 gl_cv_func_fopen_slash=yes 32771else $as_nop 32772 gl_cv_func_fopen_slash=no 32773fi 32774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32775 conftest.$ac_objext conftest.beam conftest.$ac_ext 32776fi 32777 32778 rm -f conftest.sl 32779 32780fi 32781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5 32782printf "%s\n" "$gl_cv_func_fopen_slash" >&6; } 32783 ;; 32784 esac 32785 case "$gl_cv_func_fopen_slash" in 32786 *no) 32787 32788printf "%s\n" "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h 32789 32790 REPLACE_FOPEN=1 32791 ;; 32792 esac 32793 32794 if test $REPLACE_FOPEN = 1; then 32795 32796 32797 32798 32799 32800 32801 32802 32803 gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext" 32804 32805 : 32806 fi 32807 32808 32809 32810 32811 32812 GNULIB_FOPEN=1 32813 32814 32815 32816 32817 32818printf "%s\n" "#define GNULIB_TEST_FOPEN 1" >>confdefs.h 32819 32820 32821 32822 32823 32824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5 32825printf %s "checking whether fopen supports the mode character 'x'... " >&6; } 32826if test ${gl_cv_func_fopen_mode_x+y} 32827then : 32828 printf %s "(cached) " >&6 32829else $as_nop 32830 rm -f conftest.x 32831 if test "$cross_compiling" = yes 32832then : 32833 case "$host_os" in 32834 # Guess yes on glibc and musl systems. 32835 linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) 32836 gl_cv_func_fopen_mode_x="guessing yes" ;; 32837 # If we don't know, obey --enable-cross-guesses. 32838 *) 32839 gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;; 32840 esac 32841 32842else $as_nop 32843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32844/* end confdefs.h. */ 32845 32846#include <stdio.h> 32847#include <errno.h> 32848int main () 32849{ 32850 FILE *fp; 32851 fp = fopen ("conftest.x", "w"); 32852 fclose (fp); 32853 fp = fopen ("conftest.x", "wx"); 32854 if (fp != NULL) 32855 /* 'x' ignored */ 32856 return 1; 32857 else if (errno == EEXIST) 32858 return 0; 32859 else 32860 /* 'x' rejected */ 32861 return 2; 32862} 32863_ACEOF 32864if ac_fn_c_try_run "$LINENO" 32865then : 32866 gl_cv_func_fopen_mode_x=yes 32867else $as_nop 32868 gl_cv_func_fopen_mode_x=no 32869fi 32870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32871 conftest.$ac_objext conftest.beam conftest.$ac_ext 32872fi 32873 32874 rm -f conftest.x 32875 32876fi 32877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5 32878printf "%s\n" "$gl_cv_func_fopen_mode_x" >&6; } 32879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5 32880printf %s "checking whether fopen supports the mode character 'e'... " >&6; } 32881if test ${gl_cv_func_fopen_mode_e+y} 32882then : 32883 printf %s "(cached) " >&6 32884else $as_nop 32885 echo foo > conftest.x 32886 if test "$cross_compiling" = yes 32887then : 32888 case "$host_os" in 32889 # Guess yes on glibc and musl systems. 32890 linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl*) 32891 gl_cv_func_fopen_mode_e="guessing yes" ;; 32892 # Guess no on native Windows. 32893 mingw*) 32894 gl_cv_func_fopen_mode_e="guessing no" ;; 32895 # If we don't know, obey --enable-cross-guesses. 32896 *) 32897 gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;; 32898 esac 32899 32900else $as_nop 32901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32902/* end confdefs.h. */ 32903 32904#include <stdio.h> 32905#include <errno.h> 32906#include <fcntl.h> 32907 32908 32909$gl_mda_defines 32910 32911int main () 32912{ 32913 FILE *fp = fopen ("conftest.x", "re"); 32914 if (fp != NULL) 32915 { 32916 if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC) 32917 return 0; 32918 else 32919 /* 'e' ignored */ 32920 return 1; 32921 } 32922 else 32923 /* 'e' rejected */ 32924 return 2; 32925} 32926_ACEOF 32927if ac_fn_c_try_run "$LINENO" 32928then : 32929 gl_cv_func_fopen_mode_e=yes 32930else $as_nop 32931 gl_cv_func_fopen_mode_e=no 32932fi 32933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32934 conftest.$ac_objext conftest.beam conftest.$ac_ext 32935fi 32936 32937 rm -f conftest.x 32938 32939fi 32940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5 32941printf "%s\n" "$gl_cv_func_fopen_mode_e" >&6; } 32942 case "$gl_cv_func_fopen_mode_x" in 32943 *no) REPLACE_FOPEN=1 ;; 32944 esac 32945 case "$gl_cv_func_fopen_mode_e" in 32946 *no) REPLACE_FOPEN=1 ;; 32947 esac 32948 32949 if test $REPLACE_FOPEN = 1; then 32950 32951 32952 32953 32954 32955 32956 32957 32958 gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext" 32959 32960 : 32961 fi 32962 32963 32964printf "%s\n" "#define GNULIB_FOPEN_GNU 1" >>confdefs.h 32965 32966 32967 32968 32969 32970 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then 32971 REPLACE_FSEEK=1 32972 fi 32973 32974 if test $REPLACE_FSEEK = 1; then 32975 32976 32977 32978 32979 32980 32981 32982 32983 gl_LIBOBJS="$gl_LIBOBJS fseek.$ac_objext" 32984 32985 fi 32986 32987 32988 32989 32990 32991 GNULIB_FSEEK=1 32992 32993 32994 32995 32996 32997printf "%s\n" "#define GNULIB_TEST_FSEEK 1" >>confdefs.h 32998 32999 33000 33001 33002 33003 33004 33005 33006 33007 33008 33009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5 33010printf %s "checking for fseeko... " >&6; } 33011if test ${gl_cv_func_fseeko+y} 33012then : 33013 printf %s "(cached) " >&6 33014else $as_nop 33015 33016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33017/* end confdefs.h. */ 33018#include <stdio.h> 33019 33020int 33021main (void) 33022{ 33023fseeko (stdin, 0, 0); 33024 ; 33025 return 0; 33026} 33027_ACEOF 33028if ac_fn_c_try_link "$LINENO" 33029then : 33030 gl_cv_func_fseeko=yes 33031else $as_nop 33032 gl_cv_func_fseeko=no 33033fi 33034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33035 conftest$ac_exeext conftest.$ac_ext 33036 33037fi 33038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5 33039printf "%s\n" "$gl_cv_func_fseeko" >&6; } 33040 33041 33042 if test $ac_cv_have_decl_fseeko = no; then 33043 HAVE_DECL_FSEEKO=0 33044 fi 33045 33046 if test $gl_cv_func_fseeko = no; then 33047 HAVE_FSEEKO=0 33048 else 33049 if test $WINDOWS_64_BIT_OFF_T = 1; then 33050 REPLACE_FSEEKO=1 33051 fi 33052 if test $gl_cv_var_stdin_large_offset = no; then 33053 REPLACE_FSEEKO=1 33054 fi 33055 33056 fi 33057 33058 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then 33059 33060 33061 33062 33063 33064 33065 33066 33067 gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext" 33068 33069 33070 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64" 33071if test "x$ac_cv_func__fseeki64" = xyes 33072then : 33073 printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h 33074 33075fi 33076 33077 if test $ac_cv_func__fseeki64 = yes; then 33078 ac_fn_c_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default" 33079if test "x$ac_cv_have_decl__fseeki64" = xyes 33080then : 33081 ac_have_decl=1 33082else $as_nop 33083 ac_have_decl=0 33084fi 33085 33086printf "%s\n" "#define HAVE_DECL__FSEEKI64 $ac_have_decl" >>confdefs.h 33087 33088 fi 33089 33090 fi 33091 33092 33093 33094 33095 33096 GNULIB_FSEEKO=1 33097 33098 33099 33100 33101 33102printf "%s\n" "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h 33103 33104 33105 33106 33107 33108 33109 33110 case "$host_os" in 33111 mingw* | solaris*) 33112 REPLACE_FSTAT=1 33113 ;; 33114 esac 33115 33116 33117 33118 if test $REPLACE_FSTAT = 1; then 33119 33120 33121 33122 33123 33124 33125 33126 33127 gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext" 33128 33129 case "$host_os" in 33130 mingw*) 33131 33132 33133 33134 33135 33136 33137 33138 33139 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" 33140 33141 ;; 33142 esac 33143 33144 33145 33146 : 33147 33148 fi 33149 33150 33151 33152 33153 33154 GNULIB_FSTAT=1 33155 33156 33157 33158 33159 33160printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h 33161 33162 33163 33164 33165 GETADDRINFO_LIB= 33166 gai_saved_LIBS="$LIBS" 33167 33168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 33169printf %s "checking for library containing getaddrinfo... " >&6; } 33170if test ${ac_cv_search_getaddrinfo+y} 33171then : 33172 printf %s "(cached) " >&6 33173else $as_nop 33174 ac_func_search_save_LIBS=$LIBS 33175cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33176/* end confdefs.h. */ 33177 33178/* Override any GCC internal prototype to avoid an error. 33179 Use char because int might match the return type of a GCC 33180 builtin and then its argument prototype would still apply. */ 33181char getaddrinfo (); 33182int 33183main (void) 33184{ 33185return getaddrinfo (); 33186 ; 33187 return 0; 33188} 33189_ACEOF 33190for ac_lib in '' socket network net 33191do 33192 if test -z "$ac_lib"; then 33193 ac_res="none required" 33194 else 33195 ac_res=-l$ac_lib 33196 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 33197 fi 33198 if ac_fn_c_try_link "$LINENO" 33199then : 33200 ac_cv_search_getaddrinfo=$ac_res 33201fi 33202rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33203 conftest$ac_exeext 33204 if test ${ac_cv_search_getaddrinfo+y} 33205then : 33206 break 33207fi 33208done 33209if test ${ac_cv_search_getaddrinfo+y} 33210then : 33211 33212else $as_nop 33213 ac_cv_search_getaddrinfo=no 33214fi 33215rm conftest.$ac_ext 33216LIBS=$ac_func_search_save_LIBS 33217fi 33218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 33219printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; } 33220ac_res=$ac_cv_search_getaddrinfo 33221if test "$ac_res" != no 33222then : 33223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 33224 if test "$ac_cv_search_getaddrinfo" != "none required"; then 33225 GETADDRINFO_LIB="$ac_cv_search_getaddrinfo" 33226 fi 33227fi 33228 33229 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB" 33230 33231 HAVE_GETADDRINFO=1 33232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 33233printf %s "checking for getaddrinfo... " >&6; } 33234if test ${gl_cv_func_getaddrinfo+y} 33235then : 33236 printf %s "(cached) " >&6 33237else $as_nop 33238 33239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33240/* end confdefs.h. */ 33241 33242#include <sys/types.h> 33243#ifdef HAVE_SYS_SOCKET_H 33244#include <sys/socket.h> 33245#endif 33246#ifdef HAVE_NETDB_H 33247#include <netdb.h> 33248#endif 33249#include <stddef.h> 33250 33251int 33252main (void) 33253{ 33254getaddrinfo("", "", NULL, NULL); 33255 ; 33256 return 0; 33257} 33258_ACEOF 33259if ac_fn_c_try_link "$LINENO" 33260then : 33261 gl_cv_func_getaddrinfo=yes 33262else $as_nop 33263 gl_cv_func_getaddrinfo=no 33264fi 33265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33266 conftest$ac_exeext conftest.$ac_ext 33267fi 33268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo" >&5 33269printf "%s\n" "$gl_cv_func_getaddrinfo" >&6; } 33270 if test $gl_cv_func_getaddrinfo = no; then 33271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5 33272printf %s "checking for getaddrinfo in ws2tcpip.h and -lws2_32... " >&6; } 33273if test ${gl_cv_w32_getaddrinfo+y} 33274then : 33275 printf %s "(cached) " >&6 33276else $as_nop 33277 33278 gl_cv_w32_getaddrinfo=no 33279 am_save_LIBS="$LIBS" 33280 LIBS="$LIBS -lws2_32" 33281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33282/* end confdefs.h. */ 33283 33284#ifdef HAVE_WS2TCPIP_H 33285#include <ws2tcpip.h> 33286#endif 33287#include <stddef.h> 33288 33289int 33290main (void) 33291{ 33292getaddrinfo(NULL, NULL, NULL, NULL); 33293 ; 33294 return 0; 33295} 33296_ACEOF 33297if ac_fn_c_try_link "$LINENO" 33298then : 33299 gl_cv_w32_getaddrinfo=yes 33300fi 33301rm -f core conftest.err conftest.$ac_objext conftest.beam \ 33302 conftest$ac_exeext conftest.$ac_ext 33303 LIBS="$am_save_LIBS" 33304 33305fi 33306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getaddrinfo" >&5 33307printf "%s\n" "$gl_cv_w32_getaddrinfo" >&6; } 33308 if test "$gl_cv_w32_getaddrinfo" = "yes"; then 33309 GETADDRINFO_LIB="-lws2_32" 33310 LIBS="$gai_saved_LIBS $GETADDRINFO_LIB" 33311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo with POSIX signature" >&5 33312printf %s "checking for getaddrinfo with POSIX signature... " >&6; } 33313if test ${gl_cv_func_getaddrinfo_posix_signature+y} 33314then : 33315 printf %s "(cached) " >&6 33316else $as_nop 33317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33318/* end confdefs.h. */ 33319 33320#include <sys/types.h> 33321#ifdef HAVE_SYS_SOCKET_H 33322#include <sys/socket.h> 33323#endif 33324#ifdef HAVE_NETDB_H 33325#include <netdb.h> 33326#endif 33327#ifdef HAVE_WS2TCPIP_H 33328#include <ws2tcpip.h> 33329#endif 33330#include <stddef.h> 33331extern 33332#ifdef __cplusplus 33333"C" 33334#endif 33335int getaddrinfo (const char *, const char *, const struct addrinfo *, struct addrinfo **); 33336 33337_ACEOF 33338if ac_fn_c_try_compile "$LINENO" 33339then : 33340 gl_cv_func_getaddrinfo_posix_signature=yes 33341else $as_nop 33342 gl_cv_func_getaddrinfo_posix_signature=no 33343fi 33344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33345 33346fi 33347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getaddrinfo_posix_signature" >&5 33348printf "%s\n" "$gl_cv_func_getaddrinfo_posix_signature" >&6; } 33349 if test $gl_cv_func_getaddrinfo_posix_signature = no; then 33350 REPLACE_GETADDRINFO=1 33351 fi 33352 else 33353 HAVE_GETADDRINFO=0 33354 fi 33355 fi 33356 33357printf "%s\n" "#define HAVE_GETADDRINFO $HAVE_GETADDRINFO" >>confdefs.h 33358 33359 33360 # We can't use AC_REPLACE_FUNCS here because gai_strerror may be an 33361 # inline function declared in ws2tcpip.h, so we need to get that 33362 # header included somehow. 33363 ac_fn_c_check_decl "$LINENO" "gai_strerror" "ac_cv_have_decl_gai_strerror" " 33364#include <sys/types.h> 33365#ifdef HAVE_SYS_SOCKET_H 33366#include <sys/socket.h> 33367#endif 33368#ifdef HAVE_NETDB_H 33369#include <netdb.h> 33370#endif 33371#ifdef HAVE_WS2TCPIP_H 33372#include <ws2tcpip.h> 33373#endif 33374#include <stddef.h> 33375 33376" 33377if test "x$ac_cv_have_decl_gai_strerror" = xyes 33378then : 33379 ac_have_decl=1 33380else $as_nop 33381 ac_have_decl=0 33382fi 33383 33384printf "%s\n" "#define HAVE_DECL_GAI_STRERROR $ac_have_decl" >>confdefs.h 33385 33386 if test $ac_cv_have_decl_gai_strerror = yes; then 33387 ac_fn_c_check_decl "$LINENO" "gai_strerrorA" "ac_cv_have_decl_gai_strerrorA" " 33388#include <sys/types.h> 33389#ifdef HAVE_SYS_SOCKET_H 33390#include <sys/socket.h> 33391#endif 33392#ifdef HAVE_NETDB_H 33393#include <netdb.h> 33394#endif 33395#ifdef HAVE_WS2TCPIP_H 33396#include <ws2tcpip.h> 33397#endif 33398#include <stddef.h> 33399 33400" 33401if test "x$ac_cv_have_decl_gai_strerrorA" = xyes 33402then : 33403 ac_have_decl=1 33404else $as_nop 33405 ac_have_decl=0 33406fi 33407 33408printf "%s\n" "#define HAVE_DECL_GAI_STRERRORA $ac_have_decl" >>confdefs.h 33409 33410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gai_strerror with POSIX signature" >&5 33411printf %s "checking for gai_strerror with POSIX signature... " >&6; } 33412if test ${gl_cv_func_gai_strerror_posix_signature+y} 33413then : 33414 printf %s "(cached) " >&6 33415else $as_nop 33416 33417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33418/* end confdefs.h. */ 33419 33420#include <sys/types.h> 33421#ifdef HAVE_SYS_SOCKET_H 33422#include <sys/socket.h> 33423#endif 33424#ifdef HAVE_NETDB_H 33425#include <netdb.h> 33426#endif 33427#ifdef HAVE_WS2TCPIP_H 33428#include <ws2tcpip.h> 33429#endif 33430#include <stddef.h> 33431extern 33432#ifdef __cplusplus 33433"C" 33434#endif 33435const char *gai_strerror(int); 33436_ACEOF 33437if ac_fn_c_try_compile "$LINENO" 33438then : 33439 gl_cv_func_gai_strerror_posix_signature=yes 33440else $as_nop 33441 gl_cv_func_gai_strerror_posix_signature=no 33442fi 33443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 33444fi 33445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gai_strerror_posix_signature" >&5 33446printf "%s\n" "$gl_cv_func_gai_strerror_posix_signature" >&6; } 33447 if test $gl_cv_func_gai_strerror_posix_signature = no; then 33448 REPLACE_GAI_STRERROR=1 33449 fi 33450 fi 33451 33452 LIBS="$gai_saved_LIBS" 33453 33454 33455 33456 33457 33458 33459 33460 33461 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " 33462#include <sys/types.h> 33463#include <sys/socket.h> 33464 33465" 33466if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes 33467then : 33468 33469printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h 33470 33471 33472fi 33473 33474 33475 33476 33477 ac_fn_c_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_getaddrinfo" " 33478 /* sys/types.h is not needed according to POSIX, but the 33479 sys/socket.h in i386-unknown-freebsd4.10 and 33480 powerpc-apple-darwin5.5 required it. */ 33481#include <sys/types.h> 33482#ifdef HAVE_SYS_SOCKET_H 33483#include <sys/socket.h> 33484#endif 33485#ifdef HAVE_NETDB_H 33486#include <netdb.h> 33487#endif 33488#ifdef HAVE_WS2TCPIP_H 33489#include <ws2tcpip.h> 33490#endif 33491 33492" 33493if test "x$ac_cv_have_decl_getaddrinfo" = xyes 33494then : 33495 ac_have_decl=1 33496else $as_nop 33497 ac_have_decl=0 33498fi 33499 33500printf "%s\n" "#define HAVE_DECL_GETADDRINFO $ac_have_decl" >>confdefs.h 33501ac_fn_c_check_decl "$LINENO" "freeaddrinfo" "ac_cv_have_decl_freeaddrinfo" " 33502 /* sys/types.h is not needed according to POSIX, but the 33503 sys/socket.h in i386-unknown-freebsd4.10 and 33504 powerpc-apple-darwin5.5 required it. */ 33505#include <sys/types.h> 33506#ifdef HAVE_SYS_SOCKET_H 33507#include <sys/socket.h> 33508#endif 33509#ifdef HAVE_NETDB_H 33510#include <netdb.h> 33511#endif 33512#ifdef HAVE_WS2TCPIP_H 33513#include <ws2tcpip.h> 33514#endif 33515 33516" 33517if test "x$ac_cv_have_decl_freeaddrinfo" = xyes 33518then : 33519 ac_have_decl=1 33520else $as_nop 33521 ac_have_decl=0 33522fi 33523 33524printf "%s\n" "#define HAVE_DECL_FREEADDRINFO $ac_have_decl" >>confdefs.h 33525ac_fn_c_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_getnameinfo" " 33526 /* sys/types.h is not needed according to POSIX, but the 33527 sys/socket.h in i386-unknown-freebsd4.10 and 33528 powerpc-apple-darwin5.5 required it. */ 33529#include <sys/types.h> 33530#ifdef HAVE_SYS_SOCKET_H 33531#include <sys/socket.h> 33532#endif 33533#ifdef HAVE_NETDB_H 33534#include <netdb.h> 33535#endif 33536#ifdef HAVE_WS2TCPIP_H 33537#include <ws2tcpip.h> 33538#endif 33539 33540" 33541if test "x$ac_cv_have_decl_getnameinfo" = xyes 33542then : 33543 ac_have_decl=1 33544else $as_nop 33545 ac_have_decl=0 33546fi 33547 33548printf "%s\n" "#define HAVE_DECL_GETNAMEINFO $ac_have_decl" >>confdefs.h 33549 33550 if test $ac_cv_have_decl_getaddrinfo = no; then 33551 HAVE_DECL_GETADDRINFO=0 33552 fi 33553 if test $ac_cv_have_decl_freeaddrinfo = no; then 33554 HAVE_DECL_FREEADDRINFO=0 33555 fi 33556 if test $ac_cv_have_decl_gai_strerror = no; then 33557 HAVE_DECL_GAI_STRERROR=0 33558 fi 33559 if test $ac_cv_have_decl_getnameinfo = no; then 33560 HAVE_DECL_GETNAMEINFO=0 33561 fi 33562 33563 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" " 33564#include <sys/types.h> 33565#ifdef HAVE_SYS_SOCKET_H 33566#include <sys/socket.h> 33567#endif 33568#ifdef HAVE_NETDB_H 33569#include <netdb.h> 33570#endif 33571#ifdef HAVE_WS2TCPIP_H 33572#include <ws2tcpip.h> 33573#endif 33574 33575" 33576if test "x$ac_cv_type_struct_addrinfo" = xyes 33577then : 33578 33579printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h 33580 33581 33582fi 33583 33584 if test $ac_cv_type_struct_addrinfo = no; then 33585 HAVE_STRUCT_ADDRINFO=0 33586 fi 33587 33588 case " $GETADDRINFO_LIB " in 33589 *" $HOSTENT_LIB "*) ;; 33590 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $HOSTENT_LIB" ;; 33591 esac 33592 33593 case " $GETADDRINFO_LIB " in 33594 *" $SERVENT_LIB "*) ;; 33595 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $SERVENT_LIB" ;; 33596 esac 33597 33598 case " $GETADDRINFO_LIB " in 33599 *" $INET_NTOP_LIB "*) ;; 33600 *) GETADDRINFO_LIB="$GETADDRINFO_LIB $INET_NTOP_LIB" ;; 33601 esac 33602 33603 33604 33605 33606 if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then 33607 33608 33609 33610 33611 33612 33613 33614 33615 gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext" 33616 33617 fi 33618 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then 33619 33620 33621 33622 33623 33624 33625 33626 33627 gl_LIBOBJS="$gl_LIBOBJS gai_strerror.$ac_objext" 33628 33629 fi 33630 33631 33632 33633 33634 33635 GNULIB_GETADDRINFO=1 33636 33637 33638 33639 33640 33641printf "%s\n" "#define GNULIB_TEST_GETADDRINFO 1" >>confdefs.h 33642 33643 33644 33645 33646 33647 33648 33649 33650 33651 33652 33653 if test $ac_cv_func_getdelim = yes; then 33654 HAVE_GETDELIM=1 33655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 33656printf %s "checking for working getdelim function... " >&6; } 33657if test ${gl_cv_func_working_getdelim+y} 33658then : 33659 printf %s "(cached) " >&6 33660else $as_nop 33661 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 33662 if test "$cross_compiling" = yes 33663then : 33664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33665/* end confdefs.h. */ 33666 33667#include <features.h> 33668#ifdef __GNU_LIBRARY__ 33669 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 33670 Lucky GNU user 33671 #endif 33672#endif 33673 33674_ACEOF 33675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33676 $EGREP "Lucky GNU user" >/dev/null 2>&1 33677then : 33678 gl_cv_func_working_getdelim="guessing yes" 33679else $as_nop 33680 case "$host_os" in 33681 *-musl*) gl_cv_func_working_getdelim="guessing yes" ;; 33682 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;; 33683 esac 33684 33685fi 33686rm -rf conftest* 33687 33688 33689else $as_nop 33690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33691/* end confdefs.h. */ 33692 33693# include <stdio.h> 33694# include <stdlib.h> 33695# include <string.h> 33696 int main () 33697 { 33698 FILE *in = fopen ("./conftest.data", "r"); 33699 if (!in) 33700 return 1; 33701 { 33702 /* Test result for a NULL buffer and a zero size. 33703 Based on a test program from Karl Heuer. */ 33704 char *line = NULL; 33705 size_t siz = 0; 33706 int len = getdelim (&line, &siz, '\n', in); 33707 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 33708 { free (line); fclose (in); return 2; } 33709 free (line); 33710 } 33711 { 33712 /* Test result for a NULL buffer and a non-zero size. 33713 This crashes on FreeBSD 8.0. */ 33714 char *line = NULL; 33715 size_t siz = (size_t)(~0) / 4; 33716 if (getdelim (&line, &siz, '\n', in) == -1) 33717 { fclose (in); return 3; } 33718 free (line); 33719 } 33720 fclose (in); 33721 return 0; 33722 } 33723 33724_ACEOF 33725if ac_fn_c_try_run "$LINENO" 33726then : 33727 gl_cv_func_working_getdelim=yes 33728else $as_nop 33729 gl_cv_func_working_getdelim=no 33730fi 33731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33732 conftest.$ac_objext conftest.beam conftest.$ac_ext 33733fi 33734 33735 33736fi 33737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 33738printf "%s\n" "$gl_cv_func_working_getdelim" >&6; } 33739 case "$gl_cv_func_working_getdelim" in 33740 *yes) ;; 33741 *) REPLACE_GETDELIM=1 ;; 33742 esac 33743 else 33744 HAVE_GETDELIM=0 33745 fi 33746 33747 if test $ac_cv_have_decl_getdelim = no; then 33748 HAVE_DECL_GETDELIM=0 33749 fi 33750 33751 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then 33752 33753 33754 33755 33756 33757 33758 33759 33760 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext" 33761 33762 33763 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile" 33764if test "x$ac_cv_func_flockfile" = xyes 33765then : 33766 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h 33767 33768fi 33769ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile" 33770if test "x$ac_cv_func_funlockfile" = xyes 33771then : 33772 printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h 33773 33774fi 33775 33776 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 33777if test "x$ac_cv_have_decl_getc_unlocked" = xyes 33778then : 33779 ac_have_decl=1 33780else $as_nop 33781 ac_have_decl=0 33782fi 33783 33784printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h 33785 33786 33787 fi 33788 33789 33790 33791 33792 33793 GNULIB_GETDELIM=1 33794 33795 33796 33797 33798 33799printf "%s\n" "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h 33800 33801 33802 33803 33804 33805 33806 33807 33808 if test $ac_cv_func_getdtablesize = yes && 33809 test $ac_cv_have_decl_getdtablesize = yes; then 33810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 33811printf %s "checking whether getdtablesize works... " >&6; } 33812if test ${gl_cv_func_getdtablesize_works+y} 33813then : 33814 printf %s "(cached) " >&6 33815else $as_nop 33816 case "$host_os" in 33817 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; 33818 *) 33819 if test "$cross_compiling" = yes 33820then : 33821 case "$host_os" in 33822 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows 33823 gl_cv_func_getdtablesize_works="guessing no" ;; 33824 *) gl_cv_func_getdtablesize_works="guessing yes" ;; 33825 esac 33826 33827else $as_nop 33828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33829/* end confdefs.h. */ 33830 33831 #include <unistd.h> 33832 33833 33834$gl_mda_defines 33835 33836 33837int 33838main (void) 33839{ 33840int size = getdtablesize(); 33841 if (dup2 (0, getdtablesize()) != -1) 33842 return 1; 33843 if (size != getdtablesize()) 33844 return 2; 33845 33846 ; 33847 return 0; 33848} 33849_ACEOF 33850if ac_fn_c_try_run "$LINENO" 33851then : 33852 gl_cv_func_getdtablesize_works=yes 33853else $as_nop 33854 gl_cv_func_getdtablesize_works=no 33855fi 33856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33857 conftest.$ac_objext conftest.beam conftest.$ac_ext 33858fi 33859 33860 ;; 33861 esac 33862 33863fi 33864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 33865printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; } 33866 case "$gl_cv_func_getdtablesize_works" in 33867 *yes | "no (limitation)") ;; 33868 *) REPLACE_GETDTABLESIZE=1 ;; 33869 esac 33870 else 33871 HAVE_GETDTABLESIZE=0 33872 fi 33873 33874 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then 33875 33876 33877 33878 33879 33880 33881 33882 33883 gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext" 33884 33885 : 33886 fi 33887 33888 33889 33890 33891 33892 GNULIB_GETDTABLESIZE=1 33893 33894 33895 33896 33897 33898printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h 33899 33900 33901 33902 33903 33904 33905 33906 33907 33908 33909 gl_getline_needs_run_time_check=no 33910 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 33911if test "x$ac_cv_func_getline" = xyes 33912then : 33913 gl_getline_needs_run_time_check=yes 33914else $as_nop 33915 am_cv_func_working_getline=no 33916fi 33917 33918 if test $gl_getline_needs_run_time_check = yes; then 33919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 33920printf %s "checking for working getline function... " >&6; } 33921if test ${am_cv_func_working_getline+y} 33922then : 33923 printf %s "(cached) " >&6 33924else $as_nop 33925 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 33926 if test "$cross_compiling" = yes 33927then : 33928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33929/* end confdefs.h. */ 33930 33931#include <features.h> 33932#ifdef __GNU_LIBRARY__ 33933 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 33934 Lucky GNU user 33935 #endif 33936#endif 33937 33938_ACEOF 33939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 33940 $EGREP "Lucky GNU user" >/dev/null 2>&1 33941then : 33942 am_cv_func_working_getline="guessing yes" 33943else $as_nop 33944 case "$host_os" in 33945 *-musl*) am_cv_func_working_getline="guessing yes" ;; 33946 *) am_cv_func_working_getline="$gl_cross_guess_normal" ;; 33947 esac 33948 33949fi 33950rm -rf conftest* 33951 33952 33953else $as_nop 33954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33955/* end confdefs.h. */ 33956 33957# include <stdio.h> 33958# include <stdlib.h> 33959# include <string.h> 33960 int main () 33961 { 33962 FILE *in = fopen ("./conftest.data", "r"); 33963 if (!in) 33964 return 1; 33965 { 33966 /* Test result for a NULL buffer and a zero size. 33967 Based on a test program from Karl Heuer. */ 33968 char *line = NULL; 33969 size_t siz = 0; 33970 int len = getline (&line, &siz, in); 33971 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 33972 { free (line); fclose (in); return 2; } 33973 free (line); 33974 } 33975 { 33976 /* Test result for a NULL buffer and a non-zero size. 33977 This crashes on FreeBSD 8.0. */ 33978 char *line = NULL; 33979 size_t siz = (size_t)(~0) / 4; 33980 if (getline (&line, &siz, in) == -1) 33981 { fclose (in); return 3; } 33982 free (line); 33983 } 33984 fclose (in); 33985 return 0; 33986 } 33987 33988_ACEOF 33989if ac_fn_c_try_run "$LINENO" 33990then : 33991 am_cv_func_working_getline=yes 33992else $as_nop 33993 am_cv_func_working_getline=no 33994fi 33995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33996 conftest.$ac_objext conftest.beam conftest.$ac_ext 33997fi 33998 33999 34000fi 34001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 34002printf "%s\n" "$am_cv_func_working_getline" >&6; } 34003 fi 34004 34005 if test $ac_cv_have_decl_getline = no; then 34006 HAVE_DECL_GETLINE=0 34007 fi 34008 34009 case "$am_cv_func_working_getline" in 34010 *yes) ;; 34011 *) 34012 REPLACE_GETLINE=1 34013 ;; 34014 esac 34015 34016 if test $REPLACE_GETLINE = 1; then 34017 34018 34019 34020 34021 34022 34023 34024 34025 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext" 34026 34027 34028 : 34029 34030 fi 34031 34032 34033 34034 34035 34036 GNULIB_GETLINE=1 34037 34038 34039 34040 34041 34042printf "%s\n" "#define GNULIB_TEST_GETLINE 1" >>confdefs.h 34043 34044 34045 34046 34047 34048 34049 34050 34051 34052 34053 34054 34055 REPLACE_GETOPT=0 34056 if test -n "$gl_replace_getopt"; then 34057 REPLACE_GETOPT=1 34058 fi 34059 34060 if test $REPLACE_GETOPT = 1; then 34061 34062 34063 if test $ac_cv_header_sys_cdefs_h = yes; then 34064 HAVE_SYS_CDEFS_H=1 34065 else 34066 HAVE_SYS_CDEFS_H=0 34067 fi 34068 34069 34070 34071printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h 34072 34073 GETOPT_H=getopt.h 34074 GETOPT_CDEFS_H=getopt-cdefs.h 34075 34076 34077 34078 fi 34079 34080 if test $REPLACE_GETOPT = 1; then 34081 34082 34083 34084 34085 34086 34087 34088 34089 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 34090 34091 34092 34093 34094 34095 34096 34097 34098 34099 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 34100 34101 GNULIB_GL_UNISTD_H_GETOPT=1 34102 fi 34103 34104 34105 34106 34107 34108 34109 GNULIB_GETOPT_POSIX=1 34110 34111 34112 34113 34114 34115printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h 34116 34117 34118 34119 34120 if test $HAVE_GETPASS = 0 || test $REPLACE_GETPASS = 1; then 34121 34122 34123 34124 34125 34126 34127 34128 34129 gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext" 34130 34131 34132 34133 34134 ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h> 34135 #if HAVE_STDIO_EXT_H 34136 #include <stdio_ext.h> 34137 #endif 34138" 34139if test "x$ac_cv_have_decl___fsetlocking" = xyes 34140then : 34141 ac_have_decl=1 34142else $as_nop 34143 ac_have_decl=0 34144fi 34145 34146printf "%s\n" "#define HAVE_DECL___FSETLOCKING $ac_have_decl" >>confdefs.h 34147 34148 34149 34150 34151 34152 34153 34154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcgetattr" >&5 34155printf %s "checking for tcgetattr... " >&6; } 34156if test ${gl_cv_func_tcgetattr+y} 34157then : 34158 printf %s "(cached) " >&6 34159else $as_nop 34160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34161/* end confdefs.h. */ 34162#include <termios.h> 34163 struct termios x; 34164 34165int 34166main (void) 34167{ 34168return tcgetattr(0,&x); 34169 ; 34170 return 0; 34171} 34172 34173_ACEOF 34174if ac_fn_c_try_link "$LINENO" 34175then : 34176 gl_cv_func_tcgetattr=yes 34177else $as_nop 34178 gl_cv_func_tcgetattr=no 34179fi 34180rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34181 conftest$ac_exeext conftest.$ac_ext 34182 34183fi 34184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcgetattr" >&5 34185printf "%s\n" "$gl_cv_func_tcgetattr" >&6; } 34186 if test $gl_cv_func_tcgetattr = yes; then 34187 HAVE_TCGETATTR=1 34188 else 34189 HAVE_TCGETATTR=0 34190 fi 34191 34192printf "%s\n" "#define HAVE_TCGETATTR $HAVE_TCGETATTR" >>confdefs.h 34193 34194 34195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcsetattr" >&5 34196printf %s "checking for tcsetattr... " >&6; } 34197if test ${gl_cv_func_tcsetattr+y} 34198then : 34199 printf %s "(cached) " >&6 34200else $as_nop 34201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34202/* end confdefs.h. */ 34203#include <termios.h> 34204 struct termios x; 34205 34206int 34207main (void) 34208{ 34209return tcsetattr(0,0,&x); 34210 ; 34211 return 0; 34212} 34213 34214_ACEOF 34215if ac_fn_c_try_link "$LINENO" 34216then : 34217 gl_cv_func_tcsetattr=yes 34218else $as_nop 34219 gl_cv_func_tcsetattr=no 34220fi 34221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34222 conftest$ac_exeext conftest.$ac_ext 34223 34224fi 34225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcsetattr" >&5 34226printf "%s\n" "$gl_cv_func_tcsetattr" >&6; } 34227 if test $gl_cv_func_tcsetattr = yes; then 34228 HAVE_TCSETATTR=1 34229 else 34230 HAVE_TCSETATTR=0 34231 fi 34232 34233printf "%s\n" "#define HAVE_TCSETATTR $HAVE_TCSETATTR" >>confdefs.h 34234 34235 34236 fi 34237 34238 34239 34240 34241 34242 GNULIB_GETPASS=1 34243 34244 34245 34246 34247 34248printf "%s\n" "#define GNULIB_TEST_GETPASS 1" >>confdefs.h 34249 34250 34251 34252 34253 34254 34255 34256 if test $ac_cv_func_getpass = yes; then 34257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpass without length limitations" >&5 34258printf %s "checking for getpass without length limitations... " >&6; } 34259if test ${gl_cv_func_getpass_good+y} 34260then : 34261 printf %s "(cached) " >&6 34262else $as_nop 34263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34264/* end confdefs.h. */ 34265 34266#include <features.h> 34267#ifdef __GNU_LIBRARY__ 34268 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 34269 Lucky GNU user 34270 #endif 34271#endif 34272 34273_ACEOF 34274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34275 $EGREP "Lucky GNU user" >/dev/null 2>&1 34276then : 34277 gl_cv_func_getpass_good=yes 34278else $as_nop 34279 gl_cv_func_getpass_good=no 34280fi 34281rm -rf conftest* 34282 34283 34284fi 34285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpass_good" >&5 34286printf "%s\n" "$gl_cv_func_getpass_good" >&6; } 34287 if test $gl_cv_func_getpass_good != yes; then 34288 REPLACE_GETPASS=1 34289 fi 34290 fi 34291 34292 if test $HAVE_GETPASS = 0 || test $REPLACE_GETPASS = 1; then 34293 34294 34295 34296 34297 34298 34299 34300 34301 gl_LIBOBJS="$gl_LIBOBJS getpass.$ac_objext" 34302 34303 34304 34305 34306 ac_fn_c_check_decl "$LINENO" "__fsetlocking" "ac_cv_have_decl___fsetlocking" "#include <stdio.h> 34307 #if HAVE_STDIO_EXT_H 34308 #include <stdio_ext.h> 34309 #endif 34310" 34311if test "x$ac_cv_have_decl___fsetlocking" = xyes 34312then : 34313 ac_have_decl=1 34314else $as_nop 34315 ac_have_decl=0 34316fi 34317 34318printf "%s\n" "#define HAVE_DECL___FSETLOCKING $ac_have_decl" >>confdefs.h 34319 34320 34321 34322 34323 34324 34325 34326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcgetattr" >&5 34327printf %s "checking for tcgetattr... " >&6; } 34328if test ${gl_cv_func_tcgetattr+y} 34329then : 34330 printf %s "(cached) " >&6 34331else $as_nop 34332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34333/* end confdefs.h. */ 34334#include <termios.h> 34335 struct termios x; 34336 34337int 34338main (void) 34339{ 34340return tcgetattr(0,&x); 34341 ; 34342 return 0; 34343} 34344 34345_ACEOF 34346if ac_fn_c_try_link "$LINENO" 34347then : 34348 gl_cv_func_tcgetattr=yes 34349else $as_nop 34350 gl_cv_func_tcgetattr=no 34351fi 34352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34353 conftest$ac_exeext conftest.$ac_ext 34354 34355fi 34356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcgetattr" >&5 34357printf "%s\n" "$gl_cv_func_tcgetattr" >&6; } 34358 if test $gl_cv_func_tcgetattr = yes; then 34359 HAVE_TCGETATTR=1 34360 else 34361 HAVE_TCGETATTR=0 34362 fi 34363 34364printf "%s\n" "#define HAVE_TCGETATTR $HAVE_TCGETATTR" >>confdefs.h 34365 34366 34367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tcsetattr" >&5 34368printf %s "checking for tcsetattr... " >&6; } 34369if test ${gl_cv_func_tcsetattr+y} 34370then : 34371 printf %s "(cached) " >&6 34372else $as_nop 34373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34374/* end confdefs.h. */ 34375#include <termios.h> 34376 struct termios x; 34377 34378int 34379main (void) 34380{ 34381return tcsetattr(0,0,&x); 34382 ; 34383 return 0; 34384} 34385 34386_ACEOF 34387if ac_fn_c_try_link "$LINENO" 34388then : 34389 gl_cv_func_tcsetattr=yes 34390else $as_nop 34391 gl_cv_func_tcsetattr=no 34392fi 34393rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34394 conftest$ac_exeext conftest.$ac_ext 34395 34396fi 34397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_tcsetattr" >&5 34398printf "%s\n" "$gl_cv_func_tcsetattr" >&6; } 34399 if test $gl_cv_func_tcsetattr = yes; then 34400 HAVE_TCSETATTR=1 34401 else 34402 HAVE_TCSETATTR=0 34403 fi 34404 34405printf "%s\n" "#define HAVE_TCSETATTR $HAVE_TCSETATTR" >>confdefs.h 34406 34407 34408 fi 34409 34410 34411 34412 34413 34414 GNULIB_GETPASS=1 34415 34416 34417 34418 34419 34420printf "%s\n" "#define GNULIB_TEST_GETPASS 1" >>confdefs.h 34421 34422 34423 34424 34425 34426 34427 ac_found=0 34428 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 34429" 34430if test "x$ac_cv_have_decl_program_invocation_name" = xyes 34431then : 34432 ac_have_decl=1 34433else $as_nop 34434 ac_have_decl=0 34435fi 34436 34437printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h 34438if test $ac_have_decl = 1 34439then : 34440 ac_found=1 34441fi 34442 34443 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 34444" 34445if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 34446then : 34447 ac_have_decl=1 34448else $as_nop 34449 ac_have_decl=0 34450fi 34451 34452printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 34453if test $ac_have_decl = 1 34454then : 34455 ac_found=1 34456fi 34457 34458 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h> 34459" 34460if test "x$ac_cv_have_decl___argv" = xyes 34461then : 34462 ac_have_decl=1 34463else $as_nop 34464 ac_have_decl=0 34465fi 34466 34467printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h 34468if test $ac_have_decl = 1 34469then : 34470 ac_found=1 34471fi 34472 34473 34474 # Incur the cost of this test only if none of the above worked. 34475 if test $ac_found = 0; then 34476 # On OpenBSD 5.1, using the global __progname variable appears to be 34477 # the only way to implement getprogname. 34478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 34479printf %s "checking whether __progname is defined in default libraries... " >&6; } 34480if test ${gl_cv_var___progname+y} 34481then : 34482 printf %s "(cached) " >&6 34483else $as_nop 34484 34485 gl_cv_var___progname= 34486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34487/* end confdefs.h. */ 34488extern char *__progname; 34489int 34490main (void) 34491{ 34492return *__progname; 34493 34494 ; 34495 return 0; 34496} 34497_ACEOF 34498if ac_fn_c_try_link "$LINENO" 34499then : 34500 gl_cv_var___progname=yes 34501 34502fi 34503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34504 conftest$ac_exeext conftest.$ac_ext 34505 34506 34507fi 34508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 34509printf "%s\n" "$gl_cv_var___progname" >&6; } 34510 if test "$gl_cv_var___progname" = yes; then 34511 34512printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h 34513 34514 fi 34515 fi 34516 34517 34518 34519 # Autoconf 2.61a.99 and earlier don't support linking a file only 34520 # in VPATH builds. But since GNUmakefile is for maintainer use 34521 # only, it does not matter if we skip the link with older autoconf. 34522 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH 34523 # builds, so use a shell variable to bypass this. 34524 GNUmakefile=GNUmakefile 34525 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" 34526 34527 34528 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL" 34529 34530 34531 34532 HOSTENT_LIB= 34533 gl_saved_libs="$LIBS" 34534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 34535printf %s "checking for library containing gethostbyname... " >&6; } 34536if test ${ac_cv_search_gethostbyname+y} 34537then : 34538 printf %s "(cached) " >&6 34539else $as_nop 34540 ac_func_search_save_LIBS=$LIBS 34541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34542/* end confdefs.h. */ 34543 34544/* Override any GCC internal prototype to avoid an error. 34545 Use char because int might match the return type of a GCC 34546 builtin and then its argument prototype would still apply. */ 34547char gethostbyname (); 34548int 34549main (void) 34550{ 34551return gethostbyname (); 34552 ; 34553 return 0; 34554} 34555_ACEOF 34556for ac_lib in '' nsl network net 34557do 34558 if test -z "$ac_lib"; then 34559 ac_res="none required" 34560 else 34561 ac_res=-l$ac_lib 34562 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 34563 fi 34564 if ac_fn_c_try_link "$LINENO" 34565then : 34566 ac_cv_search_gethostbyname=$ac_res 34567fi 34568rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34569 conftest$ac_exeext 34570 if test ${ac_cv_search_gethostbyname+y} 34571then : 34572 break 34573fi 34574done 34575if test ${ac_cv_search_gethostbyname+y} 34576then : 34577 34578else $as_nop 34579 ac_cv_search_gethostbyname=no 34580fi 34581rm conftest.$ac_ext 34582LIBS=$ac_func_search_save_LIBS 34583fi 34584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 34585printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 34586ac_res=$ac_cv_search_gethostbyname 34587if test "$ac_res" != no 34588then : 34589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 34590 if test "$ac_cv_search_gethostbyname" != "none required"; then 34591 HOSTENT_LIB="$ac_cv_search_gethostbyname" 34592 fi 34593fi 34594 34595 LIBS="$gl_saved_libs" 34596 if test -z "$HOSTENT_LIB"; then 34597 34598 for ac_func in gethostbyname 34599do : 34600 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 34601if test "x$ac_cv_func_gethostbyname" = xyes 34602then : 34603 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 34604 34605else $as_nop 34606 34607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in winsock2.h and -lws2_32" >&5 34608printf %s "checking for gethostbyname in winsock2.h and -lws2_32... " >&6; } 34609if test ${gl_cv_w32_gethostbyname+y} 34610then : 34611 printf %s "(cached) " >&6 34612else $as_nop 34613 gl_cv_w32_gethostbyname=no 34614 gl_save_LIBS="$LIBS" 34615 LIBS="$LIBS -lws2_32" 34616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34617/* end confdefs.h. */ 34618 34619#ifdef HAVE_WINSOCK2_H 34620#include <winsock2.h> 34621#endif 34622#include <stddef.h> 34623 34624int 34625main (void) 34626{ 34627gethostbyname(NULL); 34628 ; 34629 return 0; 34630} 34631_ACEOF 34632if ac_fn_c_try_link "$LINENO" 34633then : 34634 gl_cv_w32_gethostbyname=yes 34635fi 34636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34637 conftest$ac_exeext conftest.$ac_ext 34638 LIBS="$gl_save_LIBS" 34639 34640fi 34641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_gethostbyname" >&5 34642printf "%s\n" "$gl_cv_w32_gethostbyname" >&6; } 34643 if test "$gl_cv_w32_gethostbyname" = "yes"; then 34644 HOSTENT_LIB="-lws2_32" 34645 fi 34646 34647fi 34648 34649done 34650 fi 34651 34652 34653 34654 34655 34656 34657 34658 34659 GNULIB_ICONV=1 34660 34661 34662 34663 34664 34665 34666 34667 34668 34669 34670 34671 34672 34673 34674 34675 34676 if test $gl_cv_have_include_next = yes; then 34677 gl_cv_next_iconv_h='<'iconv.h'>' 34678 else 34679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5 34680printf %s "checking absolute name of <iconv.h>... " >&6; } 34681if test ${gl_cv_next_iconv_h+y} 34682then : 34683 printf %s "(cached) " >&6 34684else $as_nop 34685 34686 if test $ac_cv_header_iconv_h = yes; then 34687 34688 34689 34690 34691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34692/* end confdefs.h. */ 34693#include <iconv.h> 34694_ACEOF 34695 case "$host_os" in 34696 aix*) gl_absname_cpp="$ac_cpp -C" ;; 34697 *) gl_absname_cpp="$ac_cpp" ;; 34698 esac 34699 34700 case "$host_os" in 34701 mingw*) 34702 gl_dirsep_regex='[/\\]' 34703 ;; 34704 *) 34705 gl_dirsep_regex='\/' 34706 ;; 34707 esac 34708 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 34709 gl_header_literal_regex=`echo 'iconv.h' \ 34710 | sed -e "$gl_make_literal_regex_sed"` 34711 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 34712 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 34713 s|^/[^/]|//&| 34714 p 34715 q 34716 }' 34717 34718 gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 34719 sed -n "$gl_absolute_header_sed"` 34720 34721 gl_header=$gl_cv_absolute_iconv_h 34722 gl_cv_next_iconv_h='"'$gl_header'"' 34723 else 34724 gl_cv_next_iconv_h='<'iconv.h'>' 34725 fi 34726 34727 34728fi 34729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5 34730printf "%s\n" "$gl_cv_next_iconv_h" >&6; } 34731 fi 34732 NEXT_ICONV_H=$gl_cv_next_iconv_h 34733 34734 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 34735 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 34736 gl_next_as_first_directive='<'iconv.h'>' 34737 else 34738 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 34739 gl_next_as_first_directive=$gl_cv_next_iconv_h 34740 fi 34741 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive 34742 34743 34744 34745 34746 34747 34748 34749 34750 34751 34752 34753 34754 34755 34756 34757 if test "$am_cv_func_iconv" = yes; then 34758 34759 34760 ICONV_H='iconv.h' 34761 if test -n "$ICONV_H"; then 34762 GL_GENERATE_ICONV_H_TRUE= 34763 GL_GENERATE_ICONV_H_FALSE='#' 34764else 34765 GL_GENERATE_ICONV_H_TRUE='#' 34766 GL_GENERATE_ICONV_H_FALSE= 34767fi 34768 34769 34770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34771/* end confdefs.h. */ 34772 34773 #include <iconv.h> 34774 #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__) 34775 gnu_iconv 34776 #endif 34777 34778_ACEOF 34779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34780 $EGREP "gnu_iconv" >/dev/null 2>&1 34781then : 34782 gl_func_iconv_gnu=yes 34783else $as_nop 34784 gl_func_iconv_gnu=no 34785fi 34786rm -rf conftest* 34787 34788 if test $gl_func_iconv_gnu = no; then 34789 iconv_flavor= 34790 case "$host_os" in 34791 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; 34792 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; 34793 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; 34794 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; 34795 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;; 34796 openedition*) iconv_flavor=ICONV_FLAVOR_ZOS ;; 34797 esac 34798 if test -n "$iconv_flavor"; then 34799 34800printf "%s\n" "#define ICONV_FLAVOR $iconv_flavor" >>confdefs.h 34801 34802 34803 34804 34805 ICONV_H='iconv.h' 34806 if test -n "$ICONV_H"; then 34807 GL_GENERATE_ICONV_H_TRUE= 34808 GL_GENERATE_ICONV_H_FALSE='#' 34809else 34810 GL_GENERATE_ICONV_H_TRUE='#' 34811 GL_GENERATE_ICONV_H_FALSE= 34812fi 34813 34814 34815 REPLACE_ICONV_OPEN=1 34816 34817 fi 34818 fi 34819 34820 fi 34821 34822 if test $REPLACE_ICONV_OPEN = 1; then 34823 34824 34825 34826 34827 34828 34829 34830 34831 gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext" 34832 34833 fi 34834 if test $REPLACE_ICONV = 1; then 34835 34836 34837 34838 34839 34840 34841 34842 34843 gl_LIBOBJS="$gl_LIBOBJS iconv.$ac_objext" 34844 34845 34846 34847 34848 34849 34850 34851 34852 34853 gl_LIBOBJS="$gl_LIBOBJS iconv_close.$ac_objext" 34854 34855 fi 34856 34857 34858 34859 34860 34861 34862 34863 HAVE_INET_NTOP=1 34864 INET_NTOP_LIB= 34865 34866 34867 34868 34869 if test $ac_cv_header_sys_socket_h != yes; then 34870 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 34871if test "x$ac_cv_header_winsock2_h" = xyes 34872then : 34873 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 34874 34875fi 34876 34877 fi 34878 if test "$ac_cv_header_winsock2_h" = yes; then 34879 HAVE_WINSOCK2_H=1 34880 UNISTD_H_HAVE_WINSOCK2_H=1 34881 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 34882 else 34883 HAVE_WINSOCK2_H=0 34884 fi 34885 34886 34887 if test $HAVE_WINSOCK2_H = 1; then 34888 REPLACE_INET_NTOP=1 34889 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <ws2tcpip.h> 34890" 34891if test "x$ac_cv_have_decl_inet_ntop" = xyes 34892then : 34893 ac_have_decl=1 34894else $as_nop 34895 ac_have_decl=0 34896fi 34897 34898printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h 34899 34900 if test $ac_cv_have_decl_inet_ntop = yes; then 34901 INET_NTOP_LIB="-lws2_32" 34902 else 34903 HAVE_DECL_INET_NTOP=0 34904 fi 34905 else 34906 gl_save_LIBS=$LIBS 34907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5 34908printf %s "checking for library containing inet_ntop... " >&6; } 34909if test ${ac_cv_search_inet_ntop+y} 34910then : 34911 printf %s "(cached) " >&6 34912else $as_nop 34913 ac_func_search_save_LIBS=$LIBS 34914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34915/* end confdefs.h. */ 34916 34917/* Override any GCC internal prototype to avoid an error. 34918 Use char because int might match the return type of a GCC 34919 builtin and then its argument prototype would still apply. */ 34920char inet_ntop (); 34921int 34922main (void) 34923{ 34924return inet_ntop (); 34925 ; 34926 return 0; 34927} 34928_ACEOF 34929for ac_lib in '' nsl resolv network 34930do 34931 if test -z "$ac_lib"; then 34932 ac_res="none required" 34933 else 34934 ac_res=-l$ac_lib 34935 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 34936 fi 34937 if ac_fn_c_try_link "$LINENO" 34938then : 34939 ac_cv_search_inet_ntop=$ac_res 34940fi 34941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 34942 conftest$ac_exeext 34943 if test ${ac_cv_search_inet_ntop+y} 34944then : 34945 break 34946fi 34947done 34948if test ${ac_cv_search_inet_ntop+y} 34949then : 34950 34951else $as_nop 34952 ac_cv_search_inet_ntop=no 34953fi 34954rm conftest.$ac_ext 34955LIBS=$ac_func_search_save_LIBS 34956fi 34957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5 34958printf "%s\n" "$ac_cv_search_inet_ntop" >&6; } 34959ac_res=$ac_cv_search_inet_ntop 34960if test "$ac_res" != no 34961then : 34962 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 34963 34964else $as_nop 34965 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop" 34966if test "x$ac_cv_func_inet_ntop" = xyes 34967then : 34968 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h 34969 34970fi 34971 34972 if test $ac_cv_func_inet_ntop = no; then 34973 HAVE_INET_NTOP=0 34974 fi 34975 34976fi 34977 34978 LIBS=$gl_save_LIBS 34979 34980 if test "$ac_cv_search_inet_ntop" != "no" \ 34981 && test "$ac_cv_search_inet_ntop" != "none required"; then 34982 INET_NTOP_LIB="$ac_cv_search_inet_ntop" 34983 fi 34984 34985 34986 ac_fn_c_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_inet_ntop" "#include <arpa/inet.h> 34987 #if HAVE_NETDB_H 34988 # include <netdb.h> 34989 #endif 34990 34991" 34992if test "x$ac_cv_have_decl_inet_ntop" = xyes 34993then : 34994 ac_have_decl=1 34995else $as_nop 34996 ac_have_decl=0 34997fi 34998 34999printf "%s\n" "#define HAVE_DECL_INET_NTOP $ac_have_decl" >>confdefs.h 35000 35001 if test $ac_cv_have_decl_inet_ntop = no; then 35002 HAVE_DECL_INET_NTOP=0 35003 fi 35004 fi 35005 35006 35007 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then 35008 35009 35010 35011 35012 35013 35014 35015 35016 gl_LIBOBJS="$gl_LIBOBJS inet_ntop.$ac_objext" 35017 35018 35019 35020 35021 fi 35022 35023 35024 35025 35026 35027 GNULIB_INET_NTOP=1 35028 35029 35030 35031 35032 35033 35034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 35035printf %s "checking whether the compiler generally respects inline... " >&6; } 35036if test ${gl_cv_c_inline_effective+y} 35037then : 35038 printf %s "(cached) " >&6 35039else $as_nop 35040 if test $ac_cv_c_inline = no; then 35041 gl_cv_c_inline_effective=no 35042 else 35043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35044/* end confdefs.h. */ 35045 35046int 35047main (void) 35048{ 35049#ifdef __NO_INLINE__ 35050 #error "inline is not effective" 35051 #endif 35052 ; 35053 return 0; 35054} 35055_ACEOF 35056if ac_fn_c_try_compile "$LINENO" 35057then : 35058 gl_cv_c_inline_effective=yes 35059else $as_nop 35060 gl_cv_c_inline_effective=no 35061fi 35062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35063 fi 35064 35065fi 35066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 35067printf "%s\n" "$gl_cv_c_inline_effective" >&6; } 35068 if test $gl_cv_c_inline_effective = yes; then 35069 35070printf "%s\n" "#define HAVE_INLINE 1" >>confdefs.h 35071 35072 fi 35073 35074 35075 35076 35077 35078 35079 35080 LOCALCHARSET_TESTS_ENVIRONMENT= 35081 35082 35083 35084 35085 35086 35087 35088 35089 35090 35091 35092 case "$host_os" in 35093 solaris*) 35094 35095printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h 35096 35097 ;; 35098 esac 35099 35100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 35101printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; } 35102if test ${gl_cv_header_locale_h_posix2001+y} 35103then : 35104 printf %s "(cached) " >&6 35105else $as_nop 35106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35107/* end confdefs.h. */ 35108#include <locale.h> 35109 int x = LC_MESSAGES; 35110 int y = sizeof (((struct lconv *) 0)->decimal_point); 35111int 35112main (void) 35113{ 35114 35115 ; 35116 return 0; 35117} 35118_ACEOF 35119if ac_fn_c_try_compile "$LINENO" 35120then : 35121 gl_cv_header_locale_h_posix2001=yes 35122else $as_nop 35123 gl_cv_header_locale_h_posix2001=no 35124fi 35125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35126fi 35127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 35128printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; } 35129 35130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 35131printf %s "checking whether struct lconv is properly defined... " >&6; } 35132if test ${gl_cv_sys_struct_lconv_ok+y} 35133then : 35134 printf %s "(cached) " >&6 35135else $as_nop 35136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35137/* end confdefs.h. */ 35138#include <locale.h> 35139 struct lconv l; 35140 int x = sizeof (l.decimal_point); 35141 int y = sizeof (l.int_p_cs_precedes); 35142int 35143main (void) 35144{ 35145 35146 ; 35147 return 0; 35148} 35149_ACEOF 35150if ac_fn_c_try_compile "$LINENO" 35151then : 35152 gl_cv_sys_struct_lconv_ok=yes 35153else $as_nop 35154 gl_cv_sys_struct_lconv_ok=no 35155fi 35156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35157 35158fi 35159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 35160printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; } 35161 if test $gl_cv_sys_struct_lconv_ok = no; then 35162 case "$host_os" in 35163 mingw*) 35164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35165/* end confdefs.h. */ 35166 35167#ifdef _MSC_VER 35168 Special 35169#endif 35170 35171_ACEOF 35172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35173 $EGREP "Special" >/dev/null 2>&1 35174then : 35175 35176else $as_nop 35177 REPLACE_STRUCT_LCONV=1 35178fi 35179rm -rf conftest* 35180 35181 ;; 35182 *) REPLACE_STRUCT_LCONV=1 ;; 35183 esac 35184 fi 35185 35186 35187 35188 35189 35190 35191 35192 35193 35194 if test $gl_cv_have_include_next = yes; then 35195 gl_cv_next_locale_h='<'locale.h'>' 35196 else 35197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5 35198printf %s "checking absolute name of <locale.h>... " >&6; } 35199if test ${gl_cv_next_locale_h+y} 35200then : 35201 printf %s "(cached) " >&6 35202else $as_nop 35203 35204 35205 35206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35207/* end confdefs.h. */ 35208#include <locale.h> 35209_ACEOF 35210 case "$host_os" in 35211 aix*) gl_absname_cpp="$ac_cpp -C" ;; 35212 *) gl_absname_cpp="$ac_cpp" ;; 35213 esac 35214 35215 case "$host_os" in 35216 mingw*) 35217 gl_dirsep_regex='[/\\]' 35218 ;; 35219 *) 35220 gl_dirsep_regex='\/' 35221 ;; 35222 esac 35223 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 35224 gl_header_literal_regex=`echo 'locale.h' \ 35225 | sed -e "$gl_make_literal_regex_sed"` 35226 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 35227 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 35228 s|^/[^/]|//&| 35229 p 35230 q 35231 }' 35232 35233 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 35234 sed -n "$gl_absolute_header_sed"` 35235 35236 gl_header=$gl_cv_absolute_locale_h 35237 gl_cv_next_locale_h='"'$gl_header'"' 35238 35239 35240fi 35241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 35242printf "%s\n" "$gl_cv_next_locale_h" >&6; } 35243 fi 35244 NEXT_LOCALE_H=$gl_cv_next_locale_h 35245 35246 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 35247 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 35248 gl_next_as_first_directive='<'locale.h'>' 35249 else 35250 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 35251 gl_next_as_first_directive=$gl_cv_next_locale_h 35252 fi 35253 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive 35254 35255 35256 35257 35258 35259 35260 35261 35262 35263 35264 35265 35266 35267 35268 35269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5 35270printf %s "checking whether lseek detects pipes... " >&6; } 35271if test ${gl_cv_func_lseek_pipe+y} 35272then : 35273 printf %s "(cached) " >&6 35274else $as_nop 35275 case "$host_os" in 35276 mingw*) 35277 gl_cv_func_lseek_pipe=no 35278 ;; 35279 *) 35280 if test $cross_compiling = no; then 35281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35282/* end confdefs.h. */ 35283 35284#include <sys/types.h> /* for off_t */ 35285#include <stdio.h> /* for SEEK_CUR */ 35286#if HAVE_UNISTD_H 35287# include <unistd.h> 35288#else /* on Windows with MSVC */ 35289# include <io.h> 35290#endif 35291 35292 35293$gl_mda_defines 35294 35295int 35296main (void) 35297{ 35298 35299 /* Exit with success only if stdin is seekable. */ 35300 return lseek (0, (off_t)0, SEEK_CUR) < 0; 35301 35302 ; 35303 return 0; 35304} 35305_ACEOF 35306if ac_fn_c_try_link "$LINENO" 35307then : 35308 if test -s conftest$ac_exeext \ 35309 && ./conftest$ac_exeext < conftest.$ac_ext \ 35310 && test 1 = "`echo hi \ 35311 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then 35312 gl_cv_func_lseek_pipe=yes 35313 else 35314 gl_cv_func_lseek_pipe=no 35315 fi 35316 35317else $as_nop 35318 gl_cv_func_lseek_pipe=no 35319fi 35320rm -f core conftest.err conftest.$ac_objext conftest.beam \ 35321 conftest$ac_exeext conftest.$ac_ext 35322 else 35323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35324/* end confdefs.h. */ 35325 35326#if defined __BEOS__ 35327/* BeOS mistakenly return 0 when trying to seek on pipes. */ 35328 Choke me. 35329#endif 35330_ACEOF 35331if ac_fn_c_try_compile "$LINENO" 35332then : 35333 gl_cv_func_lseek_pipe=yes 35334else $as_nop 35335 gl_cv_func_lseek_pipe=no 35336fi 35337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 35338 fi 35339 ;; 35340 esac 35341 35342fi 35343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5 35344printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; } 35345 if test $gl_cv_func_lseek_pipe = no; then 35346 REPLACE_LSEEK=1 35347 35348printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h 35349 35350 fi 35351 35352 35353 if test $WINDOWS_64_BIT_OFF_T = 1; then 35354 REPLACE_LSEEK=1 35355 fi 35356 35357 if test $REPLACE_LSEEK = 1; then 35358 35359 35360 35361 35362 35363 35364 35365 35366 gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext" 35367 35368 fi 35369 35370 35371 35372 35373 35374 GNULIB_LSEEK=1 35375 35376 35377 35378 35379 35380printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h 35381 35382 35383 35384 35385 35386 35387 35388 35389 35390 if test $gl_cv_func_malloc_posix = yes; then 35391 35392printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h 35393 35394 else 35395 REPLACE_MALLOC=1 35396 fi 35397 35398 if test $REPLACE_MALLOC = 1; then 35399 35400 35401 35402 35403 35404 35405 35406 35407 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 35408 35409 fi 35410 35411 35412 35413 35414 35415 GNULIB_MALLOC_POSIX=1 35416 35417 35418 35419 35420 35421printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h 35422 35423 35424 35425 35426 35427 35428 35429 35430 35431 35432 35433 35434 35435 35436 35437 35438 35439 35440 35441 if case "$host_os" in 35442 mingw*) true ;; 35443 *) test $ac_cv_func_mbsinit = yes ;; 35444 esac \ 35445 && test $ac_cv_func_mbrtowc = yes; then 35446 35447 35448 35449 35450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 35451printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 35452if test ${gl_cv_func_mbrtowc_incomplete_state+y} 35453then : 35454 printf %s "(cached) " >&6 35455else $as_nop 35456 35457 case "$host_os" in 35458 # Guess no on AIX and OSF/1. 35459 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 35460 # Guess yes otherwise. 35461 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 35462 esac 35463 if test $LOCALE_JA != none; then 35464 if test "$cross_compiling" = yes 35465then : 35466 : 35467else $as_nop 35468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35469/* end confdefs.h. */ 35470 35471#include <locale.h> 35472#include <string.h> 35473#include <wchar.h> 35474int main () 35475{ 35476 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 35477 { 35478 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 35479 mbstate_t state; 35480 wchar_t wc; 35481 35482 memset (&state, '\0', sizeof (mbstate_t)); 35483 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 35484 if (mbsinit (&state)) 35485 return 2; 35486 } 35487 return 0; 35488} 35489_ACEOF 35490if ac_fn_c_try_run "$LINENO" 35491then : 35492 gl_cv_func_mbrtowc_incomplete_state=yes 35493else $as_nop 35494 gl_cv_func_mbrtowc_incomplete_state=no 35495fi 35496rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35497 conftest.$ac_objext conftest.beam conftest.$ac_ext 35498fi 35499 35500 else 35501 if test $LOCALE_FR_UTF8 != none; then 35502 if test "$cross_compiling" = yes 35503then : 35504 : 35505else $as_nop 35506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35507/* end confdefs.h. */ 35508 35509#include <locale.h> 35510#include <string.h> 35511#include <wchar.h> 35512int main () 35513{ 35514 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 35515 { 35516 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 35517 mbstate_t state; 35518 wchar_t wc; 35519 35520 memset (&state, '\0', sizeof (mbstate_t)); 35521 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 35522 if (mbsinit (&state)) 35523 return 2; 35524 } 35525 return 0; 35526} 35527_ACEOF 35528if ac_fn_c_try_run "$LINENO" 35529then : 35530 gl_cv_func_mbrtowc_incomplete_state=yes 35531else $as_nop 35532 gl_cv_func_mbrtowc_incomplete_state=no 35533fi 35534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35535 conftest.$ac_objext conftest.beam conftest.$ac_ext 35536fi 35537 35538 fi 35539 fi 35540 35541fi 35542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 35543printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 35544 35545 35546 35547 35548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 35549printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 35550if test ${gl_cv_func_mbrtowc_sanitycheck+y} 35551then : 35552 printf %s "(cached) " >&6 35553else $as_nop 35554 35555 case "$host_os" in 35556 # Guess no on Solaris 8. 35557 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 35558 # Guess yes otherwise. 35559 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 35560 esac 35561 if test $LOCALE_ZH_CN != none; then 35562 if test "$cross_compiling" = yes 35563then : 35564 : 35565else $as_nop 35566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35567/* end confdefs.h. */ 35568 35569#include <locale.h> 35570#include <stdlib.h> 35571#include <string.h> 35572#include <wchar.h> 35573int main () 35574{ 35575 /* This fails on Solaris 8: 35576 mbrtowc returns 2, and sets wc to 0x00F0. 35577 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 35578 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 35579 { 35580 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 35581 mbstate_t state; 35582 wchar_t wc; 35583 35584 memset (&state, '\0', sizeof (mbstate_t)); 35585 if (mbrtowc (&wc, input + 3, 6, &state) != 4 35586 && mbtowc (&wc, input + 3, 6) == 4) 35587 return 2; 35588 } 35589 return 0; 35590} 35591_ACEOF 35592if ac_fn_c_try_run "$LINENO" 35593then : 35594 gl_cv_func_mbrtowc_sanitycheck=yes 35595else $as_nop 35596 gl_cv_func_mbrtowc_sanitycheck=no 35597fi 35598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35599 conftest.$ac_objext conftest.beam conftest.$ac_ext 35600fi 35601 35602 fi 35603 35604fi 35605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 35606printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 35607 35608 REPLACE_MBSTATE_T=0 35609 case "$gl_cv_func_mbrtowc_incomplete_state" in 35610 *yes) ;; 35611 *) REPLACE_MBSTATE_T=1 ;; 35612 esac 35613 case "$gl_cv_func_mbrtowc_sanitycheck" in 35614 *yes) ;; 35615 *) REPLACE_MBSTATE_T=1 ;; 35616 esac 35617 else 35618 REPLACE_MBSTATE_T=1 35619 fi 35620 35621 35622 35623 if test $ac_cv_func_mbrtowc = no; then 35624 HAVE_MBRTOWC=0 35625 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" " 35626 #include <wchar.h> 35627 35628" 35629if test "x$ac_cv_have_decl_mbrtowc" = xyes 35630then : 35631 ac_have_decl=1 35632else $as_nop 35633 ac_have_decl=0 35634fi 35635 35636printf "%s\n" "#define HAVE_DECL_MBRTOWC $ac_have_decl" >>confdefs.h 35637 35638 if test $ac_cv_have_decl_mbrtowc = yes; then 35639 REPLACE_MBRTOWC=1 35640 fi 35641 else 35642 if test $REPLACE_MBSTATE_T = 1; then 35643 REPLACE_MBRTOWC=1 35644 else 35645 35646 35647 35648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5 35649printf %s "checking whether mbrtowc handles a NULL pwc argument... " >&6; } 35650if test ${gl_cv_func_mbrtowc_null_arg1+y} 35651then : 35652 printf %s "(cached) " >&6 35653else $as_nop 35654 35655 case "$host_os" in 35656 # Guess no on Solaris. 35657 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;; 35658 # Guess yes otherwise. 35659 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;; 35660 esac 35661 if test $LOCALE_FR_UTF8 != none; then 35662 if test "$cross_compiling" = yes 35663then : 35664 : 35665else $as_nop 35666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35667/* end confdefs.h. */ 35668 35669#include <locale.h> 35670#include <stdlib.h> 35671#include <string.h> 35672#include <wchar.h> 35673int main () 35674{ 35675 int result = 0; 35676 35677 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 35678 { 35679 char input[] = "\303\237er"; 35680 mbstate_t state; 35681 wchar_t wc; 35682 size_t ret; 35683 35684 memset (&state, '\0', sizeof (mbstate_t)); 35685 wc = (wchar_t) 0xBADFACE; 35686 ret = mbrtowc (&wc, input, 5, &state); 35687 if (ret != 2) 35688 result |= 1; 35689 if (!mbsinit (&state)) 35690 result |= 2; 35691 35692 memset (&state, '\0', sizeof (mbstate_t)); 35693 ret = mbrtowc (NULL, input, 5, &state); 35694 if (ret != 2) /* Solaris 7 fails here: ret is -1. */ 35695 result |= 4; 35696 if (!mbsinit (&state)) 35697 result |= 8; 35698 } 35699 return result; 35700} 35701_ACEOF 35702if ac_fn_c_try_run "$LINENO" 35703then : 35704 gl_cv_func_mbrtowc_null_arg1=yes 35705else $as_nop 35706 gl_cv_func_mbrtowc_null_arg1=no 35707fi 35708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35709 conftest.$ac_objext conftest.beam conftest.$ac_ext 35710fi 35711 35712 fi 35713 35714fi 35715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5 35716printf "%s\n" "$gl_cv_func_mbrtowc_null_arg1" >&6; } 35717 35718 35719 35720 35721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5 35722printf %s "checking whether mbrtowc handles a NULL string argument... " >&6; } 35723if test ${gl_cv_func_mbrtowc_null_arg2+y} 35724then : 35725 printf %s "(cached) " >&6 35726else $as_nop 35727 35728 case "$host_os" in 35729 # Guess no on OSF/1. 35730 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;; 35731 # Guess yes otherwise. 35732 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;; 35733 esac 35734 if test $LOCALE_FR_UTF8 != none; then 35735 if test "$cross_compiling" = yes 35736then : 35737 : 35738else $as_nop 35739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35740/* end confdefs.h. */ 35741 35742#include <locale.h> 35743#include <string.h> 35744#include <wchar.h> 35745int main () 35746{ 35747 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 35748 { 35749 mbstate_t state; 35750 wchar_t wc; 35751 int ret; 35752 35753 memset (&state, '\0', sizeof (mbstate_t)); 35754 wc = (wchar_t) 0xBADFACE; 35755 mbrtowc (&wc, NULL, 5, &state); 35756 /* Check that wc was not modified. */ 35757 if (wc != (wchar_t) 0xBADFACE) 35758 return 2; 35759 } 35760 return 0; 35761} 35762_ACEOF 35763if ac_fn_c_try_run "$LINENO" 35764then : 35765 gl_cv_func_mbrtowc_null_arg2=yes 35766else $as_nop 35767 gl_cv_func_mbrtowc_null_arg2=no 35768fi 35769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35770 conftest.$ac_objext conftest.beam conftest.$ac_ext 35771fi 35772 35773 fi 35774 35775fi 35776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5 35777printf "%s\n" "$gl_cv_func_mbrtowc_null_arg2" >&6; } 35778 35779 35780 35781 35782 35783 35784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5 35785printf %s "checking whether mbrtowc has a correct return value... " >&6; } 35786if test ${gl_cv_func_mbrtowc_retval+y} 35787then : 35788 printf %s "(cached) " >&6 35789else $as_nop 35790 35791 case "$host_os" in 35792 # Guess no on HP-UX, Solaris, native Windows. 35793 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;; 35794 # Guess yes otherwise. 35795 *) gl_cv_func_mbrtowc_retval="guessing yes" ;; 35796 esac 35797 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \ 35798 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then 35799 if test "$cross_compiling" = yes 35800then : 35801 : 35802else $as_nop 35803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35804/* end confdefs.h. */ 35805 35806#include <locale.h> 35807#include <string.h> 35808#include <wchar.h> 35809int main () 35810{ 35811 int result = 0; 35812 int found_some_locale = 0; 35813 /* This fails on Solaris. */ 35814 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 35815 { 35816 char input[] = "B\303\274\303\237er"; /* "Büßer" */ 35817 mbstate_t state; 35818 wchar_t wc; 35819 35820 memset (&state, '\0', sizeof (mbstate_t)); 35821 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 35822 { 35823 input[1] = '\0'; 35824 if (mbrtowc (&wc, input + 2, 5, &state) != 1) 35825 result |= 1; 35826 } 35827 found_some_locale = 1; 35828 } 35829 /* This fails on HP-UX 11.11. */ 35830 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 35831 { 35832 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 35833 mbstate_t state; 35834 wchar_t wc; 35835 35836 memset (&state, '\0', sizeof (mbstate_t)); 35837 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 35838 { 35839 input[1] = '\0'; 35840 if (mbrtowc (&wc, input + 2, 5, &state) != 2) 35841 result |= 2; 35842 } 35843 found_some_locale = 1; 35844 } 35845 /* This fails on native Windows. */ 35846 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 35847 { 35848 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */ 35849 mbstate_t state; 35850 wchar_t wc; 35851 35852 memset (&state, '\0', sizeof (mbstate_t)); 35853 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 35854 { 35855 input[3] = '\0'; 35856 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 35857 result |= 4; 35858 } 35859 found_some_locale = 1; 35860 } 35861 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 35862 { 35863 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */ 35864 mbstate_t state; 35865 wchar_t wc; 35866 35867 memset (&state, '\0', sizeof (mbstate_t)); 35868 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 35869 { 35870 input[3] = '\0'; 35871 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 35872 result |= 8; 35873 } 35874 found_some_locale = 1; 35875 } 35876 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 35877 { 35878 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */ 35879 mbstate_t state; 35880 wchar_t wc; 35881 35882 memset (&state, '\0', sizeof (mbstate_t)); 35883 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2)) 35884 { 35885 input[3] = '\0'; 35886 if (mbrtowc (&wc, input + 4, 4, &state) != 1) 35887 result |= 16; 35888 } 35889 found_some_locale = 1; 35890 } 35891 return (found_some_locale ? result : 77); 35892} 35893_ACEOF 35894if ac_fn_c_try_run "$LINENO" 35895then : 35896 gl_cv_func_mbrtowc_retval=yes 35897else $as_nop 35898 if test $? != 77; then 35899 gl_cv_func_mbrtowc_retval=no 35900 fi 35901 35902fi 35903rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35904 conftest.$ac_objext conftest.beam conftest.$ac_ext 35905fi 35906 35907 fi 35908 35909fi 35910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5 35911printf "%s\n" "$gl_cv_func_mbrtowc_retval" >&6; } 35912 35913 35914 35915 35916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5 35917printf %s "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; } 35918if test ${gl_cv_func_mbrtowc_nul_retval+y} 35919then : 35920 printf %s "(cached) " >&6 35921else $as_nop 35922 35923 case "$host_os" in 35924 # Guess no on Solaris 8 and 9. 35925 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;; 35926 # Guess yes otherwise. 35927 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;; 35928 esac 35929 if test $LOCALE_ZH_CN != none; then 35930 if test "$cross_compiling" = yes 35931then : 35932 : 35933else $as_nop 35934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35935/* end confdefs.h. */ 35936 35937#include <locale.h> 35938#include <string.h> 35939#include <wchar.h> 35940int main () 35941{ 35942 /* This fails on Solaris 8 and 9. */ 35943 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 35944 { 35945 mbstate_t state; 35946 wchar_t wc; 35947 35948 memset (&state, '\0', sizeof (mbstate_t)); 35949 if (mbrtowc (&wc, "", 1, &state) != 0) 35950 return 2; 35951 } 35952 return 0; 35953} 35954_ACEOF 35955if ac_fn_c_try_run "$LINENO" 35956then : 35957 gl_cv_func_mbrtowc_nul_retval=yes 35958else $as_nop 35959 gl_cv_func_mbrtowc_nul_retval=no 35960fi 35961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 35962 conftest.$ac_objext conftest.beam conftest.$ac_ext 35963fi 35964 35965 fi 35966 35967fi 35968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5 35969printf "%s\n" "$gl_cv_func_mbrtowc_nul_retval" >&6; } 35970 35971 35972 35973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc stores incomplete characters" >&5 35974printf %s "checking whether mbrtowc stores incomplete characters... " >&6; } 35975if test ${gl_cv_func_mbrtowc_stores_incomplete+y} 35976then : 35977 printf %s "(cached) " >&6 35978else $as_nop 35979 35980 case "$host_os" in 35981 # Guess yes on native Windows. 35982 mingw*) gl_cv_func_mbrtowc_stores_incomplete="guessing yes" ;; 35983 *) gl_cv_func_mbrtowc_stores_incomplete="guessing no" ;; 35984 esac 35985 case "$host_os" in 35986 mingw*) 35987 if test "$cross_compiling" = yes 35988then : 35989 : 35990else $as_nop 35991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35992/* end confdefs.h. */ 35993 35994#include <locale.h> 35995#include <string.h> 35996#include <wchar.h> 35997int main () 35998{ 35999 int result = 0; 36000 if (setlocale (LC_ALL, "French_France.65001") != NULL) 36001 { 36002 wchar_t wc = (wchar_t) 0xBADFACE; 36003 mbstate_t state; 36004 36005 memset (&state, '\0', sizeof (mbstate_t)); 36006 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 36007 && wc != (wchar_t) 0xBADFACE) 36008 result |= 1; 36009 } 36010 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL) 36011 { 36012 wchar_t wc = (wchar_t) 0xBADFACE; 36013 mbstate_t state; 36014 36015 memset (&state, '\0', sizeof (mbstate_t)); 36016 if (mbrtowc (&wc, "\226", 1, &state) == (size_t)(-2) 36017 && wc != (wchar_t) 0xBADFACE) 36018 result |= 2; 36019 } 36020 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL) 36021 { 36022 wchar_t wc = (wchar_t) 0xBADFACE; 36023 mbstate_t state; 36024 36025 memset (&state, '\0', sizeof (mbstate_t)); 36026 if (mbrtowc (&wc, "\245", 1, &state) == (size_t)(-2) 36027 && wc != (wchar_t) 0xBADFACE) 36028 result |= 4; 36029 } 36030 if (setlocale (LC_ALL, "Chinese_China.936") != NULL) 36031 { 36032 wchar_t wc = (wchar_t) 0xBADFACE; 36033 mbstate_t state; 36034 36035 memset (&state, '\0', sizeof (mbstate_t)); 36036 if (mbrtowc (&wc, "\261", 1, &state) == (size_t)(-2) 36037 && wc != (wchar_t) 0xBADFACE) 36038 result |= 8; 36039 } 36040 return result; 36041} 36042_ACEOF 36043if ac_fn_c_try_run "$LINENO" 36044then : 36045 gl_cv_func_mbrtowc_stores_incomplete=no 36046else $as_nop 36047 gl_cv_func_mbrtowc_stores_incomplete=yes 36048fi 36049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36050 conftest.$ac_objext conftest.beam conftest.$ac_ext 36051fi 36052 36053 ;; 36054 *) 36055 36056 if test $LOCALE_FR_UTF8 != none; then 36057 if test "$cross_compiling" = yes 36058then : 36059 : 36060else $as_nop 36061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36062/* end confdefs.h. */ 36063 36064#include <locale.h> 36065#include <string.h> 36066#include <wchar.h> 36067int main () 36068{ 36069 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 36070 { 36071 wchar_t wc = (wchar_t) 0xBADFACE; 36072 mbstate_t state; 36073 36074 memset (&state, '\0', sizeof (mbstate_t)); 36075 if (mbrtowc (&wc, "\303", 1, &state) == (size_t)(-2) 36076 && wc != (wchar_t) 0xBADFACE) 36077 return 1; 36078 } 36079 return 0; 36080} 36081_ACEOF 36082if ac_fn_c_try_run "$LINENO" 36083then : 36084 gl_cv_func_mbrtowc_stores_incomplete=no 36085else $as_nop 36086 gl_cv_func_mbrtowc_stores_incomplete=yes 36087fi 36088rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36089 conftest.$ac_objext conftest.beam conftest.$ac_ext 36090fi 36091 36092 fi 36093 ;; 36094 esac 36095 36096fi 36097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_stores_incomplete" >&5 36098printf "%s\n" "$gl_cv_func_mbrtowc_stores_incomplete" >&6; } 36099 36100 36101 36102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5 36103printf %s "checking whether mbrtowc works on empty input... " >&6; } 36104if test ${gl_cv_func_mbrtowc_empty_input+y} 36105then : 36106 printf %s "(cached) " >&6 36107else $as_nop 36108 36109 case "$host_os" in 36110 # Guess no on AIX and glibc systems. 36111 aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;; 36112 # Guess yes on native Windows. 36113 mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 36114 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;; 36115 esac 36116 if test "$cross_compiling" = yes 36117then : 36118 : 36119else $as_nop 36120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36121/* end confdefs.h. */ 36122 36123 #include <wchar.h> 36124 static wchar_t wc; 36125 static mbstate_t mbs; 36126 int 36127 main (void) 36128 { 36129 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2; 36130 } 36131_ACEOF 36132if ac_fn_c_try_run "$LINENO" 36133then : 36134 gl_cv_func_mbrtowc_empty_input=yes 36135else $as_nop 36136 gl_cv_func_mbrtowc_empty_input=no 36137fi 36138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36139 conftest.$ac_objext conftest.beam conftest.$ac_ext 36140fi 36141 36142 36143fi 36144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5 36145printf "%s\n" "$gl_cv_func_mbrtowc_empty_input" >&6; } 36146 36147 36148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5 36149printf %s "checking whether the C locale is free of encoding errors... " >&6; } 36150if test ${gl_cv_func_mbrtowc_C_locale_sans_EILSEQ+y} 36151then : 36152 printf %s "(cached) " >&6 36153else $as_nop 36154 36155 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="$gl_cross_guess_normal" 36156 36157 if test "$cross_compiling" = yes 36158then : 36159 case "$host_os" in 36160 # Guess yes on native Windows. 36161 mingw*) gl_cv_func_mbrtowc_C_locale_sans_EILSEQ="guessing yes" ;; 36162 esac 36163 36164else $as_nop 36165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36166/* end confdefs.h. */ 36167#include <limits.h> 36168 #include <locale.h> 36169 #include <wchar.h> 36170 36171int 36172main (void) 36173{ 36174 36175 int i; 36176 char *locale = setlocale (LC_ALL, "C"); 36177 if (! locale) 36178 return 2; 36179 for (i = CHAR_MIN; i <= CHAR_MAX; i++) 36180 { 36181 char c = i; 36182 wchar_t wc; 36183 mbstate_t mbs = { 0, }; 36184 size_t ss = mbrtowc (&wc, &c, 1, &mbs); 36185 if (1 < ss) 36186 return 3; 36187 } 36188 return 0; 36189 36190 ; 36191 return 0; 36192} 36193_ACEOF 36194if ac_fn_c_try_run "$LINENO" 36195then : 36196 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=yes 36197else $as_nop 36198 gl_cv_func_mbrtowc_C_locale_sans_EILSEQ=no 36199fi 36200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36201 conftest.$ac_objext conftest.beam conftest.$ac_ext 36202fi 36203 36204 36205fi 36206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&5 36207printf "%s\n" "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" >&6; } 36208 36209 case "$gl_cv_func_mbrtowc_null_arg1" in 36210 *yes) ;; 36211 *) 36212printf "%s\n" "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h 36213 36214 REPLACE_MBRTOWC=1 36215 ;; 36216 esac 36217 case "$gl_cv_func_mbrtowc_null_arg2" in 36218 *yes) ;; 36219 *) 36220printf "%s\n" "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h 36221 36222 REPLACE_MBRTOWC=1 36223 ;; 36224 esac 36225 case "$gl_cv_func_mbrtowc_retval" in 36226 *yes) ;; 36227 *) 36228printf "%s\n" "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h 36229 36230 REPLACE_MBRTOWC=1 36231 ;; 36232 esac 36233 case "$gl_cv_func_mbrtowc_nul_retval" in 36234 *yes) ;; 36235 *) 36236printf "%s\n" "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h 36237 36238 REPLACE_MBRTOWC=1 36239 ;; 36240 esac 36241 case "$gl_cv_func_mbrtowc_stores_incomplete" in 36242 *no) ;; 36243 *) 36244printf "%s\n" "#define MBRTOWC_STORES_INCOMPLETE_BUG 1" >>confdefs.h 36245 36246 REPLACE_MBRTOWC=1 36247 ;; 36248 esac 36249 case "$gl_cv_func_mbrtowc_empty_input" in 36250 *yes) ;; 36251 *) 36252printf "%s\n" "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h 36253 36254 REPLACE_MBRTOWC=1 36255 ;; 36256 esac 36257 case "$gl_cv_func_mbrtowc_C_locale_sans_EILSEQ" in 36258 *yes) ;; 36259 *) 36260printf "%s\n" "#define MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h 36261 36262 REPLACE_MBRTOWC=1 36263 ;; 36264 esac 36265 fi 36266 fi 36267 if test $REPLACE_MBSTATE_T = 1; then 36268 case "$host_os" in 36269 mingw*) LIB_MBRTOWC= ;; 36270 *) 36271 36272 36273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 36274printf %s "checking whether imported symbols can be declared weak... " >&6; } 36275if test ${gl_cv_have_weak+y} 36276then : 36277 printf %s "(cached) " >&6 36278else $as_nop 36279 gl_cv_have_weak=no 36280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36281/* end confdefs.h. */ 36282extern void xyzzy (); 36283#pragma weak xyzzy 36284int 36285main (void) 36286{ 36287xyzzy(); 36288 ; 36289 return 0; 36290} 36291_ACEOF 36292if ac_fn_c_try_link "$LINENO" 36293then : 36294 gl_cv_have_weak=maybe 36295fi 36296rm -f core conftest.err conftest.$ac_objext conftest.beam \ 36297 conftest$ac_exeext conftest.$ac_ext 36298 if test $gl_cv_have_weak = maybe; then 36299 if test "$cross_compiling" = yes 36300then : 36301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36302/* end confdefs.h. */ 36303#ifdef __ELF__ 36304 Extensible Linking Format 36305 #endif 36306 36307_ACEOF 36308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 36309 $EGREP "Extensible Linking Format" >/dev/null 2>&1 36310then : 36311 gl_cv_have_weak="guessing yes" 36312else $as_nop 36313 gl_cv_have_weak="guessing no" 36314fi 36315rm -rf conftest* 36316 36317 36318else $as_nop 36319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36320/* end confdefs.h. */ 36321 36322#include <stdio.h> 36323#pragma weak fputs 36324int main () 36325{ 36326 return (fputs == NULL); 36327} 36328_ACEOF 36329if ac_fn_c_try_run "$LINENO" 36330then : 36331 gl_cv_have_weak=yes 36332else $as_nop 36333 gl_cv_have_weak=no 36334fi 36335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36336 conftest.$ac_objext conftest.beam conftest.$ac_ext 36337fi 36338 36339 fi 36340 case " $LDFLAGS " in 36341 *" -static "*) gl_cv_have_weak=no ;; 36342 esac 36343 case "$gl_cv_have_weak" in 36344 *yes) 36345 case "$host_os" in 36346 freebsd* | dragonfly*) 36347 : > conftest1.c 36348 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 36349 cat <<EOF > conftest2.c 36350#include <pthread.h> 36351#pragma weak pthread_mutexattr_gettype 36352int main () 36353{ 36354 return (pthread_mutexattr_gettype != NULL); 36355} 36356EOF 36357 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 36358 || gl_cv_have_weak=no 36359 rm -f conftest1.c libempty.so conftest2.c conftest 36360 ;; 36361 esac 36362 ;; 36363 esac 36364 36365fi 36366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 36367printf "%s\n" "$gl_cv_have_weak" >&6; } 36368 case "$gl_cv_have_weak" in 36369 *yes) 36370 36371printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 36372 36373 ;; 36374 esac 36375 36376 case "$gl_cv_have_weak" in 36377 *yes) LIB_MBRTOWC= ;; 36378 *) LIB_MBRTOWC="$LIBPTHREAD" ;; 36379 esac 36380 ;; 36381 esac 36382 else 36383 LIB_MBRTOWC= 36384 fi 36385 36386 36387 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 36388 36389 36390 36391 36392 36393 36394 36395 36396 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext" 36397 36398 if test $REPLACE_MBSTATE_T = 1; then 36399 36400 36401 36402 36403 36404 36405 36406 36407 gl_LIBOBJS="$gl_LIBOBJS lc-charset-dispatch.$ac_objext" 36408 36409 36410 36411 36412 36413 36414 36415 36416 36417 gl_LIBOBJS="$gl_LIBOBJS mbtowc-lock.$ac_objext" 36418 36419 36420 36421 36422 CFLAG_VISIBILITY= 36423 HAVE_VISIBILITY=0 36424 if test -n "$GCC"; then 36425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 36426printf %s "checking whether the -Werror option is usable... " >&6; } 36427if test ${gl_cv_cc_vis_werror+y} 36428then : 36429 printf %s "(cached) " >&6 36430else $as_nop 36431 gl_save_CFLAGS="$CFLAGS" 36432 CFLAGS="$CFLAGS -Werror" 36433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36434/* end confdefs.h. */ 36435 36436int 36437main (void) 36438{ 36439 36440 ; 36441 return 0; 36442} 36443_ACEOF 36444if ac_fn_c_try_compile "$LINENO" 36445then : 36446 gl_cv_cc_vis_werror=yes 36447else $as_nop 36448 gl_cv_cc_vis_werror=no 36449fi 36450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36451 CFLAGS="$gl_save_CFLAGS" 36452 36453fi 36454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 36455printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 36456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 36457printf %s "checking for simple visibility declarations... " >&6; } 36458if test ${gl_cv_cc_visibility+y} 36459then : 36460 printf %s "(cached) " >&6 36461else $as_nop 36462 gl_save_CFLAGS="$CFLAGS" 36463 CFLAGS="$CFLAGS -fvisibility=hidden" 36464 if test $gl_cv_cc_vis_werror = yes; then 36465 CFLAGS="$CFLAGS -Werror" 36466 fi 36467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36468/* end confdefs.h. */ 36469extern __attribute__((__visibility__("hidden"))) int hiddenvar; 36470 extern __attribute__((__visibility__("default"))) int exportedvar; 36471 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 36472 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 36473 void dummyfunc (void) {} 36474 36475int 36476main (void) 36477{ 36478 36479 ; 36480 return 0; 36481} 36482_ACEOF 36483if ac_fn_c_try_compile "$LINENO" 36484then : 36485 gl_cv_cc_visibility=yes 36486else $as_nop 36487 gl_cv_cc_visibility=no 36488fi 36489rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36490 CFLAGS="$gl_save_CFLAGS" 36491 36492fi 36493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 36494printf "%s\n" "$gl_cv_cc_visibility" >&6; } 36495 if test $gl_cv_cc_visibility = yes; then 36496 CFLAG_VISIBILITY="-fvisibility=hidden" 36497 HAVE_VISIBILITY=1 36498 fi 36499 fi 36500 36501 36502 36503printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 36504 36505 36506 36507 fi 36508 36509 36510 : 36511 36512 fi 36513 36514 36515 36516 36517 36518 GNULIB_MBRTOWC=1 36519 36520 36521 36522 36523 36524printf "%s\n" "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h 36525 36526 36527 36528 36529 36530 36531 36532 36533 36534 36535 36536 36537 36538 36539 36540 if case "$host_os" in 36541 mingw*) true ;; 36542 *) test $ac_cv_func_mbsinit = yes ;; 36543 esac \ 36544 && test $ac_cv_func_mbrtowc = yes; then 36545 36546 36547 36548 36549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 36550printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 36551if test ${gl_cv_func_mbrtowc_incomplete_state+y} 36552then : 36553 printf %s "(cached) " >&6 36554else $as_nop 36555 36556 case "$host_os" in 36557 # Guess no on AIX and OSF/1. 36558 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 36559 # Guess yes otherwise. 36560 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 36561 esac 36562 if test $LOCALE_JA != none; then 36563 if test "$cross_compiling" = yes 36564then : 36565 : 36566else $as_nop 36567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36568/* end confdefs.h. */ 36569 36570#include <locale.h> 36571#include <string.h> 36572#include <wchar.h> 36573int main () 36574{ 36575 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 36576 { 36577 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 36578 mbstate_t state; 36579 wchar_t wc; 36580 36581 memset (&state, '\0', sizeof (mbstate_t)); 36582 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 36583 if (mbsinit (&state)) 36584 return 2; 36585 } 36586 return 0; 36587} 36588_ACEOF 36589if ac_fn_c_try_run "$LINENO" 36590then : 36591 gl_cv_func_mbrtowc_incomplete_state=yes 36592else $as_nop 36593 gl_cv_func_mbrtowc_incomplete_state=no 36594fi 36595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36596 conftest.$ac_objext conftest.beam conftest.$ac_ext 36597fi 36598 36599 else 36600 if test $LOCALE_FR_UTF8 != none; then 36601 if test "$cross_compiling" = yes 36602then : 36603 : 36604else $as_nop 36605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36606/* end confdefs.h. */ 36607 36608#include <locale.h> 36609#include <string.h> 36610#include <wchar.h> 36611int main () 36612{ 36613 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 36614 { 36615 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 36616 mbstate_t state; 36617 wchar_t wc; 36618 36619 memset (&state, '\0', sizeof (mbstate_t)); 36620 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 36621 if (mbsinit (&state)) 36622 return 2; 36623 } 36624 return 0; 36625} 36626_ACEOF 36627if ac_fn_c_try_run "$LINENO" 36628then : 36629 gl_cv_func_mbrtowc_incomplete_state=yes 36630else $as_nop 36631 gl_cv_func_mbrtowc_incomplete_state=no 36632fi 36633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36634 conftest.$ac_objext conftest.beam conftest.$ac_ext 36635fi 36636 36637 fi 36638 fi 36639 36640fi 36641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 36642printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 36643 36644 36645 36646 36647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 36648printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 36649if test ${gl_cv_func_mbrtowc_sanitycheck+y} 36650then : 36651 printf %s "(cached) " >&6 36652else $as_nop 36653 36654 case "$host_os" in 36655 # Guess no on Solaris 8. 36656 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 36657 # Guess yes otherwise. 36658 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 36659 esac 36660 if test $LOCALE_ZH_CN != none; then 36661 if test "$cross_compiling" = yes 36662then : 36663 : 36664else $as_nop 36665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36666/* end confdefs.h. */ 36667 36668#include <locale.h> 36669#include <stdlib.h> 36670#include <string.h> 36671#include <wchar.h> 36672int main () 36673{ 36674 /* This fails on Solaris 8: 36675 mbrtowc returns 2, and sets wc to 0x00F0. 36676 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 36677 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 36678 { 36679 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 36680 mbstate_t state; 36681 wchar_t wc; 36682 36683 memset (&state, '\0', sizeof (mbstate_t)); 36684 if (mbrtowc (&wc, input + 3, 6, &state) != 4 36685 && mbtowc (&wc, input + 3, 6) == 4) 36686 return 2; 36687 } 36688 return 0; 36689} 36690_ACEOF 36691if ac_fn_c_try_run "$LINENO" 36692then : 36693 gl_cv_func_mbrtowc_sanitycheck=yes 36694else $as_nop 36695 gl_cv_func_mbrtowc_sanitycheck=no 36696fi 36697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36698 conftest.$ac_objext conftest.beam conftest.$ac_ext 36699fi 36700 36701 fi 36702 36703fi 36704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 36705printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 36706 36707 REPLACE_MBSTATE_T=0 36708 case "$gl_cv_func_mbrtowc_incomplete_state" in 36709 *yes) ;; 36710 *) REPLACE_MBSTATE_T=1 ;; 36711 esac 36712 case "$gl_cv_func_mbrtowc_sanitycheck" in 36713 *yes) ;; 36714 *) REPLACE_MBSTATE_T=1 ;; 36715 esac 36716 else 36717 REPLACE_MBSTATE_T=1 36718 fi 36719 36720 36721 36722 if test $ac_cv_func_mbsinit = no; then 36723 HAVE_MBSINIT=0 36724 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" " 36725 #include <wchar.h> 36726 36727" 36728if test "x$ac_cv_have_decl_mbsinit" = xyes 36729then : 36730 ac_have_decl=1 36731else $as_nop 36732 ac_have_decl=0 36733fi 36734 36735printf "%s\n" "#define HAVE_DECL_MBSINIT $ac_have_decl" >>confdefs.h 36736 36737 if test $ac_cv_have_decl_mbsinit = yes; then 36738 REPLACE_MBSINIT=1 36739 fi 36740 else 36741 if test $REPLACE_MBSTATE_T = 1; then 36742 REPLACE_MBSINIT=1 36743 else 36744 case "$host_os" in 36745 mingw*) REPLACE_MBSINIT=1 ;; 36746 esac 36747 fi 36748 fi 36749 36750 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 36751 36752 36753 36754 36755 36756 36757 36758 36759 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext" 36760 36761 36762 : 36763 36764 fi 36765 36766 36767 36768 36769 36770 GNULIB_MBSINIT=1 36771 36772 36773 36774 36775 36776printf "%s\n" "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h 36777 36778 36779 36780 36781 if test $REPLACE_MEMCHR = 1; then 36782 36783 36784 36785 36786 36787 36788 36789 36790 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext" 36791 36792 36793 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default" 36794if test "x$ac_cv_header_bp_sym_h" = xyes 36795then : 36796 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h 36797 36798fi 36799 36800 36801 fi 36802 36803 36804 36805 36806 36807 GNULIB_MEMCHR=1 36808 36809 36810 36811 36812 36813printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h 36814 36815 36816 36817 36818 36819 36820 36821 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 36822 36823 36824 36825 36826 36827 36828 36829 36830 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext" 36831 36832 fi 36833 36834 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 36835 36836 36837 36838 36839 36840 36841 36842 36843 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext" 36844 36845 fi 36846 36847 36848printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h 36849 36850 36851 36852 36853 36854 36855 36856 36857 36858 36859 36860 36861 36862 36863 if test $gl_cv_have_include_next = yes; then 36864 gl_cv_next_netdb_h='<'netdb.h'>' 36865 else 36866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <netdb.h>" >&5 36867printf %s "checking absolute name of <netdb.h>... " >&6; } 36868if test ${gl_cv_next_netdb_h+y} 36869then : 36870 printf %s "(cached) " >&6 36871else $as_nop 36872 36873 if test $ac_cv_header_netdb_h = yes; then 36874 36875 36876 36877 36878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36879/* end confdefs.h. */ 36880#include <netdb.h> 36881_ACEOF 36882 case "$host_os" in 36883 aix*) gl_absname_cpp="$ac_cpp -C" ;; 36884 *) gl_absname_cpp="$ac_cpp" ;; 36885 esac 36886 36887 case "$host_os" in 36888 mingw*) 36889 gl_dirsep_regex='[/\\]' 36890 ;; 36891 *) 36892 gl_dirsep_regex='\/' 36893 ;; 36894 esac 36895 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 36896 gl_header_literal_regex=`echo 'netdb.h' \ 36897 | sed -e "$gl_make_literal_regex_sed"` 36898 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 36899 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 36900 s|^/[^/]|//&| 36901 p 36902 q 36903 }' 36904 36905 gl_cv_absolute_netdb_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 36906 sed -n "$gl_absolute_header_sed"` 36907 36908 gl_header=$gl_cv_absolute_netdb_h 36909 gl_cv_next_netdb_h='"'$gl_header'"' 36910 else 36911 gl_cv_next_netdb_h='<'netdb.h'>' 36912 fi 36913 36914 36915fi 36916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netdb_h" >&5 36917printf "%s\n" "$gl_cv_next_netdb_h" >&6; } 36918 fi 36919 NEXT_NETDB_H=$gl_cv_next_netdb_h 36920 36921 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 36922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 36923 gl_next_as_first_directive='<'netdb.h'>' 36924 else 36925 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 36926 gl_next_as_first_directive=$gl_cv_next_netdb_h 36927 fi 36928 NEXT_AS_FIRST_DIRECTIVE_NETDB_H=$gl_next_as_first_directive 36929 36930 36931 36932 36933 if test $ac_cv_header_netdb_h = yes; then 36934 HAVE_NETDB_H=1 36935 else 36936 HAVE_NETDB_H=0 36937 fi 36938 36939 36940 36941 36942 36943 36944 36945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5 36946printf %s "checking whether <netinet/in.h> is self-contained... " >&6; } 36947if test ${gl_cv_header_netinet_in_h_selfcontained+y} 36948then : 36949 printf %s "(cached) " >&6 36950else $as_nop 36951 36952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36953/* end confdefs.h. */ 36954#include <netinet/in.h> 36955int 36956main (void) 36957{ 36958 36959 ; 36960 return 0; 36961} 36962_ACEOF 36963if ac_fn_c_try_compile "$LINENO" 36964then : 36965 gl_cv_header_netinet_in_h_selfcontained=yes 36966else $as_nop 36967 gl_cv_header_netinet_in_h_selfcontained=no 36968fi 36969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 36970 36971fi 36972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5 36973printf "%s\n" "$gl_cv_header_netinet_in_h_selfcontained" >&6; } 36974 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then 36975 NETINET_IN_H='' 36976 else 36977 NETINET_IN_H='netinet/in.h' 36978 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 36979if test "x$ac_cv_header_netinet_in_h" = xyes 36980then : 36981 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 36982 36983fi 36984 36985 36986 36987 36988 36989 36990 36991 36992 36993 36994 if test $gl_cv_have_include_next = yes; then 36995 gl_cv_next_netinet_in_h='<'netinet/in.h'>' 36996 else 36997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5 36998printf %s "checking absolute name of <netinet/in.h>... " >&6; } 36999if test ${gl_cv_next_netinet_in_h+y} 37000then : 37001 printf %s "(cached) " >&6 37002else $as_nop 37003 37004 if test $ac_cv_header_netinet_in_h = yes; then 37005 37006 37007 37008 37009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37010/* end confdefs.h. */ 37011#include <netinet/in.h> 37012_ACEOF 37013 case "$host_os" in 37014 aix*) gl_absname_cpp="$ac_cpp -C" ;; 37015 *) gl_absname_cpp="$ac_cpp" ;; 37016 esac 37017 37018 case "$host_os" in 37019 mingw*) 37020 gl_dirsep_regex='[/\\]' 37021 ;; 37022 *) 37023 gl_dirsep_regex='\/' 37024 ;; 37025 esac 37026 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 37027 gl_header_literal_regex=`echo 'netinet/in.h' \ 37028 | sed -e "$gl_make_literal_regex_sed"` 37029 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 37030 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 37031 s|^/[^/]|//&| 37032 p 37033 q 37034 }' 37035 37036 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 37037 sed -n "$gl_absolute_header_sed"` 37038 37039 gl_header=$gl_cv_absolute_netinet_in_h 37040 gl_cv_next_netinet_in_h='"'$gl_header'"' 37041 else 37042 gl_cv_next_netinet_in_h='<'netinet/in.h'>' 37043 fi 37044 37045 37046fi 37047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5 37048printf "%s\n" "$gl_cv_next_netinet_in_h" >&6; } 37049 fi 37050 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h 37051 37052 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 37053 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 37054 gl_next_as_first_directive='<'netinet/in.h'>' 37055 else 37056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 37057 gl_next_as_first_directive=$gl_cv_next_netinet_in_h 37058 fi 37059 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive 37060 37061 37062 37063 37064 if test $ac_cv_header_netinet_in_h = yes; then 37065 HAVE_NETINET_IN_H=1 37066 else 37067 HAVE_NETINET_IN_H=0 37068 fi 37069 37070 fi 37071 37072 if test -n "$NETINET_IN_H"; then 37073 GL_GENERATE_NETINET_IN_H_TRUE= 37074 GL_GENERATE_NETINET_IN_H_FALSE='#' 37075else 37076 GL_GENERATE_NETINET_IN_H_TRUE='#' 37077 GL_GENERATE_NETINET_IN_H_FALSE= 37078fi 37079 37080 37081 37082 37083 37084 37085 case "$host_os" in 37086 mingw* | pw*) 37087 REPLACE_OPEN=1 37088 ;; 37089 *) 37090 37091 if test "$gl_cv_macro_O_CLOEXEC" != yes; then 37092 REPLACE_OPEN=1 37093 fi 37094 37095 37096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 37097printf %s "checking whether open recognizes a trailing slash... " >&6; } 37098if test ${gl_cv_func_open_slash+y} 37099then : 37100 printf %s "(cached) " >&6 37101else $as_nop 37102 # Assume that if we have lstat, we can also check symlinks. 37103 if test $ac_cv_func_lstat = yes; then 37104 touch conftest.tmp 37105 ln -s conftest.tmp conftest.lnk 37106 fi 37107 if test "$cross_compiling" = yes 37108then : 37109 37110 case "$host_os" in 37111 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) 37112 gl_cv_func_open_slash="guessing no" ;; 37113 *) 37114 gl_cv_func_open_slash="guessing yes" ;; 37115 esac 37116 37117else $as_nop 37118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37119/* end confdefs.h. */ 37120 37121#include <fcntl.h> 37122#if HAVE_UNISTD_H 37123# include <unistd.h> 37124#endif 37125 37126 37127$gl_mda_defines 37128 37129int main () 37130{ 37131 int result = 0; 37132#if HAVE_LSTAT 37133 if (open ("conftest.lnk/", O_RDONLY) != -1) 37134 result |= 1; 37135#endif 37136 if (open ("conftest.sl/", O_CREAT, 0600) >= 0) 37137 result |= 2; 37138 return result; 37139} 37140_ACEOF 37141if ac_fn_c_try_run "$LINENO" 37142then : 37143 gl_cv_func_open_slash=yes 37144else $as_nop 37145 gl_cv_func_open_slash=no 37146fi 37147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37148 conftest.$ac_objext conftest.beam conftest.$ac_ext 37149fi 37150 37151 rm -f conftest.sl conftest.tmp conftest.lnk 37152 37153fi 37154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 37155printf "%s\n" "$gl_cv_func_open_slash" >&6; } 37156 case "$gl_cv_func_open_slash" in 37157 *no) 37158 37159printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h 37160 37161 ;; 37162 esac 37163 37164 case "$gl_cv_func_open_slash" in 37165 *no) 37166 REPLACE_OPEN=1 37167 ;; 37168 esac 37169 ;; 37170 esac 37171 37172 37173 37174 if test $REPLACE_OPEN = 1; then 37175 37176 37177 37178 37179 37180 37181 37182 37183 gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext" 37184 37185 37186 37187 : 37188 37189 fi 37190 37191 37192 37193 37194 37195 GNULIB_OPEN=1 37196 37197 37198 37199 37200 37201printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h 37202 37203 37204 37205 37206 37207 37208 # Extract the first word of "pmccabe", so it can be a program name with args. 37209set dummy pmccabe; ac_word=$2 37210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37211printf %s "checking for $ac_word... " >&6; } 37212if test ${ac_cv_path_PMCCABE+y} 37213then : 37214 printf %s "(cached) " >&6 37215else $as_nop 37216 case $PMCCABE in 37217 [\\/]* | ?:[\\/]*) 37218 ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path. 37219 ;; 37220 *) 37221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37222for as_dir in $PATH 37223do 37224 IFS=$as_save_IFS 37225 case $as_dir in #((( 37226 '') as_dir=./ ;; 37227 */) ;; 37228 *) as_dir=$as_dir/ ;; 37229 esac 37230 for ac_exec_ext in '' $ac_executable_extensions; do 37231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 37232 ac_cv_path_PMCCABE="$as_dir$ac_word$ac_exec_ext" 37233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 37234 break 2 37235 fi 37236done 37237 done 37238IFS=$as_save_IFS 37239 37240 test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false" 37241 ;; 37242esac 37243fi 37244PMCCABE=$ac_cv_path_PMCCABE 37245if test -n "$PMCCABE"; then 37246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5 37247printf "%s\n" "$PMCCABE" >&6; } 37248else 37249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 37250printf "%s\n" "no" >&6; } 37251fi 37252 37253 37254 37255 37256 37257 if test $ac_cv_header_poll_h = no; then 37258 ac_cv_func_poll=no 37259 gl_cv_func_poll=no 37260 else 37261 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 37262if test "x$ac_cv_func_poll" = xyes 37263then : 37264 # Check whether poll() works on special files (like /dev/null) and 37265 # and ttys (like /dev/tty). On Mac OS X 10.4.0 and AIX 5.3, it doesn't. 37266 if test "$cross_compiling" = yes 37267then : 37268 # When cross-compiling, assume that poll() works everywhere except on 37269 # Mac OS X or AIX, regardless of its version. 37270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37271/* end confdefs.h. */ 37272 37273#if (defined(__APPLE__) && defined(__MACH__)) || defined(_AIX) 37274This is MacOSX or AIX 37275#endif 37276 37277_ACEOF 37278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 37279 $EGREP "MacOSX" >/dev/null 2>&1 37280then : 37281 gl_cv_func_poll="guessing no" 37282else $as_nop 37283 gl_cv_func_poll="guessing yes" 37284fi 37285rm -rf conftest* 37286 37287else $as_nop 37288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37289/* end confdefs.h. */ 37290 37291#include <fcntl.h> 37292#include <poll.h> 37293 37294 37295$gl_mda_defines 37296 37297 int main() 37298 { 37299 int result = 0; 37300 struct pollfd ufd; 37301 /* Try /dev/null for reading. */ 37302 ufd.fd = open ("/dev/null", O_RDONLY); 37303 /* If /dev/null does not exist, it's not Mac OS X nor AIX. */ 37304 if (ufd.fd >= 0) 37305 { 37306 ufd.events = POLLIN; 37307 ufd.revents = 0; 37308 if (!(poll (&ufd, 1, 0) == 1 && ufd.revents == POLLIN)) 37309 result |= 1; 37310 } 37311 /* Try /dev/null for writing. */ 37312 ufd.fd = open ("/dev/null", O_WRONLY); 37313 /* If /dev/null does not exist, it's not Mac OS X nor AIX. */ 37314 if (ufd.fd >= 0) 37315 { 37316 ufd.events = POLLOUT; 37317 ufd.revents = 0; 37318 if (!(poll (&ufd, 1, 0) == 1 && ufd.revents == POLLOUT)) 37319 result |= 2; 37320 } 37321 /* Trying /dev/tty may be too environment dependent. */ 37322 return result; 37323 } 37324_ACEOF 37325if ac_fn_c_try_run "$LINENO" 37326then : 37327 gl_cv_func_poll=yes 37328else $as_nop 37329 gl_cv_func_poll=no 37330fi 37331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37332 conftest.$ac_objext conftest.beam conftest.$ac_ext 37333fi 37334 37335fi 37336 37337 fi 37338 case "$gl_cv_func_poll" in 37339 *yes) ;; 37340 *) 37341 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 37342if test "x$ac_cv_func_poll" = xyes 37343then : 37344 ac_cv_func_poll=yes 37345else $as_nop 37346 ac_cv_func_poll=no 37347fi 37348 37349 if test $ac_cv_func_poll = no; then 37350 HAVE_POLL=0 37351 else 37352 REPLACE_POLL=1 37353 fi 37354 ;; 37355 esac 37356 if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then 37357 : 37358 else 37359 37360printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 37361 37362 fi 37363 37364 LIB_POLL="$LIBSOCKET" 37365 if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then 37366 case "$host_os" in 37367 mingw*) 37368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37369/* end confdefs.h. */ 37370 37371#define WIN32_LEAN_AND_MEAN 37372#include <windows.h> 37373int 37374main () 37375{ 37376 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0); 37377 return 0; 37378} 37379_ACEOF 37380if ac_fn_c_try_link "$LINENO" 37381then : 37382 37383else $as_nop 37384 LIB_POLL="$LIB_POLL -luser32" 37385fi 37386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 37387 conftest$ac_exeext conftest.$ac_ext 37388 ;; 37389 esac 37390 fi 37391 37392 37393 if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then 37394 37395 37396 37397 37398 37399 37400 37401 37402 gl_LIBOBJS="$gl_LIBOBJS poll.$ac_objext" 37403 37404 37405 37406 37407 fi 37408 37409 37410 37411 37412 37413 GNULIB_POLL=1 37414 37415 37416 37417 37418 37419printf "%s\n" "#define GNULIB_TEST_POLL 1" >>confdefs.h 37420 37421 37422 37423 37424 37425 37426 37427 if test $ac_cv_header_poll_h = yes; then 37428 HAVE_POLL_H=1 37429 else 37430 HAVE_POLL_H=0 37431 fi 37432 37433 37434 37435 37436 37437 37438 37439 37440 37441 37442 37443 if test $gl_cv_have_include_next = yes; then 37444 gl_cv_next_poll_h='<'poll.h'>' 37445 else 37446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <poll.h>" >&5 37447printf %s "checking absolute name of <poll.h>... " >&6; } 37448if test ${gl_cv_next_poll_h+y} 37449then : 37450 printf %s "(cached) " >&6 37451else $as_nop 37452 37453 if test $ac_cv_header_poll_h = yes; then 37454 37455 37456 37457 37458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37459/* end confdefs.h. */ 37460#include <poll.h> 37461_ACEOF 37462 case "$host_os" in 37463 aix*) gl_absname_cpp="$ac_cpp -C" ;; 37464 *) gl_absname_cpp="$ac_cpp" ;; 37465 esac 37466 37467 case "$host_os" in 37468 mingw*) 37469 gl_dirsep_regex='[/\\]' 37470 ;; 37471 *) 37472 gl_dirsep_regex='\/' 37473 ;; 37474 esac 37475 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 37476 gl_header_literal_regex=`echo 'poll.h' \ 37477 | sed -e "$gl_make_literal_regex_sed"` 37478 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 37479 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 37480 s|^/[^/]|//&| 37481 p 37482 q 37483 }' 37484 37485 gl_cv_absolute_poll_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 37486 sed -n "$gl_absolute_header_sed"` 37487 37488 gl_header=$gl_cv_absolute_poll_h 37489 gl_cv_next_poll_h='"'$gl_header'"' 37490 else 37491 gl_cv_next_poll_h='<'poll.h'>' 37492 fi 37493 37494 37495fi 37496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_poll_h" >&5 37497printf "%s\n" "$gl_cv_next_poll_h" >&6; } 37498 fi 37499 NEXT_POLL_H=$gl_cv_next_poll_h 37500 37501 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 37502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 37503 gl_next_as_first_directive='<'poll.h'>' 37504 else 37505 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 37506 gl_next_as_first_directive=$gl_cv_next_poll_h 37507 fi 37508 NEXT_AS_FIRST_DIRECTIVE_POLL_H=$gl_next_as_first_directive 37509 37510 37511 37512 37513 37514 37515 37516 37517 37518 if test $ac_cv_header_sys_socket_h != yes; then 37519 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 37520if test "x$ac_cv_header_winsock2_h" = xyes 37521then : 37522 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 37523 37524fi 37525 37526 fi 37527 if test "$ac_cv_header_winsock2_h" = yes; then 37528 HAVE_WINSOCK2_H=1 37529 UNISTD_H_HAVE_WINSOCK2_H=1 37530 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 37531 else 37532 HAVE_WINSOCK2_H=0 37533 fi 37534 37535 37536 37537 37538 37539 37540 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 37541" 37542if test "x$ac_cv_have_decl_program_invocation_name" = xyes 37543then : 37544 ac_have_decl=1 37545else $as_nop 37546 ac_have_decl=0 37547fi 37548 37549printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h 37550 37551 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 37552" 37553if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes 37554then : 37555 ac_have_decl=1 37556else $as_nop 37557 ac_have_decl=0 37558fi 37559 37560printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h 37561 37562 37563 : 37564 37565 37566 37567 : 37568 37569 37570 37571 37572 37573 37574 37575 37576 37577 37578 37579 use_additional=yes 37580 37581 acl_save_prefix="$prefix" 37582 prefix="$acl_final_prefix" 37583 acl_save_exec_prefix="$exec_prefix" 37584 exec_prefix="$acl_final_exec_prefix" 37585 37586 eval additional_includedir=\"$includedir\" 37587 eval additional_libdir=\"$libdir\" 37588 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 37589 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 37590 37591 exec_prefix="$acl_save_exec_prefix" 37592 prefix="$acl_save_prefix" 37593 37594 37595# Check whether --with-libreadline-prefix was given. 37596if test ${with_libreadline_prefix+y} 37597then : 37598 withval=$with_libreadline_prefix; 37599 if test "X$withval" = "Xno"; then 37600 use_additional=no 37601 else 37602 if test "X$withval" = "X"; then 37603 37604 acl_save_prefix="$prefix" 37605 prefix="$acl_final_prefix" 37606 acl_save_exec_prefix="$exec_prefix" 37607 exec_prefix="$acl_final_exec_prefix" 37608 37609 eval additional_includedir=\"$includedir\" 37610 eval additional_libdir=\"$libdir\" 37611 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" 37612 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 37613 37614 exec_prefix="$acl_save_exec_prefix" 37615 prefix="$acl_save_prefix" 37616 37617 else 37618 additional_includedir="$withval/include" 37619 additional_libdir="$withval/$acl_libdirstem" 37620 additional_libdir2="$withval/$acl_libdirstem2" 37621 additional_libdir3="$withval/$acl_libdirstem3" 37622 fi 37623 fi 37624 37625fi 37626 37627 if test "X$additional_libdir2" = "X$additional_libdir"; then 37628 additional_libdir2= 37629 fi 37630 if test "X$additional_libdir3" = "X$additional_libdir"; then 37631 additional_libdir3= 37632 fi 37633 LIBREADLINE= 37634 LTLIBREADLINE= 37635 INCREADLINE= 37636 LIBREADLINE_PREFIX= 37637 HAVE_LIBREADLINE= 37638 rpathdirs= 37639 ltrpathdirs= 37640 names_already_handled= 37641 names_next_round='readline ' 37642 while test -n "$names_next_round"; do 37643 names_this_round="$names_next_round" 37644 names_next_round= 37645 for name in $names_this_round; do 37646 already_handled= 37647 for n in $names_already_handled; do 37648 if test "$n" = "$name"; then 37649 already_handled=yes 37650 break 37651 fi 37652 done 37653 if test -z "$already_handled"; then 37654 names_already_handled="$names_already_handled $name" 37655 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 37656 eval value=\"\$HAVE_LIB$uppername\" 37657 if test -n "$value"; then 37658 if test "$value" = yes; then 37659 eval value=\"\$LIB$uppername\" 37660 test -z "$value" || LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$value" 37661 eval value=\"\$LTLIB$uppername\" 37662 test -z "$value" || LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$value" 37663 else 37664 : 37665 fi 37666 else 37667 found_dir= 37668 found_la= 37669 found_so= 37670 found_a= 37671 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 37672 if test -n "$acl_shlibext"; then 37673 shrext=".$acl_shlibext" # typically: shrext=.so 37674 else 37675 shrext= 37676 fi 37677 if test $use_additional = yes; then 37678 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do 37679 if test "X$found_dir" = "X"; then 37680 eval dir=\$$additional_libdir_variable 37681 if test -n "$dir"; then 37682 if test -n "$acl_shlibext"; then 37683 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 37684 found_dir="$dir" 37685 found_so="$dir/$libname$shrext" 37686 else 37687 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 37688 ver=`(cd "$dir" && \ 37689 for f in "$libname$shrext".*; do echo "$f"; done \ 37690 | sed -e "s,^$libname$shrext\\\\.,," \ 37691 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 37692 | sed 1q ) 2>/dev/null` 37693 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 37694 found_dir="$dir" 37695 found_so="$dir/$libname$shrext.$ver" 37696 fi 37697 else 37698 eval library_names=\"$acl_library_names_spec\" 37699 for f in $library_names; do 37700 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 37701 found_dir="$dir" 37702 found_so="$dir/$f" 37703 break 37704 fi 37705 done 37706 fi 37707 fi 37708 fi 37709 if test "X$found_dir" = "X"; then 37710 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 37711 found_dir="$dir" 37712 found_a="$dir/$libname.$acl_libext" 37713 fi 37714 fi 37715 if test "X$found_dir" != "X"; then 37716 if test -f "$dir/$libname.la"; then 37717 found_la="$dir/$libname.la" 37718 fi 37719 fi 37720 fi 37721 fi 37722 done 37723 fi 37724 if test "X$found_dir" = "X"; then 37725 for x in $LDFLAGS $LTLIBREADLINE; do 37726 37727 acl_save_prefix="$prefix" 37728 prefix="$acl_final_prefix" 37729 acl_save_exec_prefix="$exec_prefix" 37730 exec_prefix="$acl_final_exec_prefix" 37731 eval x=\"$x\" 37732 exec_prefix="$acl_save_exec_prefix" 37733 prefix="$acl_save_prefix" 37734 37735 case "$x" in 37736 -L*) 37737 dir=`echo "X$x" | sed -e 's/^X-L//'` 37738 if test -n "$acl_shlibext"; then 37739 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then 37740 found_dir="$dir" 37741 found_so="$dir/$libname$shrext" 37742 else 37743 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 37744 ver=`(cd "$dir" && \ 37745 for f in "$libname$shrext".*; do echo "$f"; done \ 37746 | sed -e "s,^$libname$shrext\\\\.,," \ 37747 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 37748 | sed 1q ) 2>/dev/null` 37749 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then 37750 found_dir="$dir" 37751 found_so="$dir/$libname$shrext.$ver" 37752 fi 37753 else 37754 eval library_names=\"$acl_library_names_spec\" 37755 for f in $library_names; do 37756 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then 37757 found_dir="$dir" 37758 found_so="$dir/$f" 37759 break 37760 fi 37761 done 37762 fi 37763 fi 37764 fi 37765 if test "X$found_dir" = "X"; then 37766 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then 37767 found_dir="$dir" 37768 found_a="$dir/$libname.$acl_libext" 37769 fi 37770 fi 37771 if test "X$found_dir" != "X"; then 37772 if test -f "$dir/$libname.la"; then 37773 found_la="$dir/$libname.la" 37774 fi 37775 fi 37776 ;; 37777 esac 37778 if test "X$found_dir" != "X"; then 37779 break 37780 fi 37781 done 37782 fi 37783 if test "X$found_dir" != "X"; then 37784 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$found_dir -l$name" 37785 if test "X$found_so" != "X"; then 37786 if test "$enable_rpath" = no \ 37787 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 37788 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ 37789 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then 37790 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so" 37791 else 37792 haveit= 37793 for x in $ltrpathdirs; do 37794 if test "X$x" = "X$found_dir"; then 37795 haveit=yes 37796 break 37797 fi 37798 done 37799 if test -z "$haveit"; then 37800 ltrpathdirs="$ltrpathdirs $found_dir" 37801 fi 37802 if test "$acl_hardcode_direct" = yes; then 37803 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so" 37804 else 37805 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 37806 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so" 37807 haveit= 37808 for x in $rpathdirs; do 37809 if test "X$x" = "X$found_dir"; then 37810 haveit=yes 37811 break 37812 fi 37813 done 37814 if test -z "$haveit"; then 37815 rpathdirs="$rpathdirs $found_dir" 37816 fi 37817 else 37818 haveit= 37819 for x in $LDFLAGS $LIBREADLINE; do 37820 37821 acl_save_prefix="$prefix" 37822 prefix="$acl_final_prefix" 37823 acl_save_exec_prefix="$exec_prefix" 37824 exec_prefix="$acl_final_exec_prefix" 37825 eval x=\"$x\" 37826 exec_prefix="$acl_save_exec_prefix" 37827 prefix="$acl_save_prefix" 37828 37829 if test "X$x" = "X-L$found_dir"; then 37830 haveit=yes 37831 break 37832 fi 37833 done 37834 if test -z "$haveit"; then 37835 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir" 37836 fi 37837 if test "$acl_hardcode_minus_L" != no; then 37838 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_so" 37839 else 37840 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name" 37841 fi 37842 fi 37843 fi 37844 fi 37845 else 37846 if test "X$found_a" != "X"; then 37847 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$found_a" 37848 else 37849 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$found_dir -l$name" 37850 fi 37851 fi 37852 additional_includedir= 37853 case "$found_dir" in 37854 */$acl_libdirstem | */$acl_libdirstem/) 37855 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 37856 if test "$name" = 'readline'; then 37857 LIBREADLINE_PREFIX="$basedir" 37858 fi 37859 additional_includedir="$basedir/include" 37860 ;; 37861 */$acl_libdirstem2 | */$acl_libdirstem2/) 37862 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 37863 if test "$name" = 'readline'; then 37864 LIBREADLINE_PREFIX="$basedir" 37865 fi 37866 additional_includedir="$basedir/include" 37867 ;; 37868 */$acl_libdirstem3 | */$acl_libdirstem3/) 37869 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` 37870 if test "$name" = 'readline'; then 37871 LIBREADLINE_PREFIX="$basedir" 37872 fi 37873 additional_includedir="$basedir/include" 37874 ;; 37875 esac 37876 if test "X$additional_includedir" != "X"; then 37877 if test "X$additional_includedir" != "X/usr/include"; then 37878 haveit= 37879 if test "X$additional_includedir" = "X/usr/local/include"; then 37880 if test -n "$GCC"; then 37881 case $host_os in 37882 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 37883 esac 37884 fi 37885 fi 37886 if test -z "$haveit"; then 37887 for x in $CPPFLAGS $INCREADLINE; do 37888 37889 acl_save_prefix="$prefix" 37890 prefix="$acl_final_prefix" 37891 acl_save_exec_prefix="$exec_prefix" 37892 exec_prefix="$acl_final_exec_prefix" 37893 eval x=\"$x\" 37894 exec_prefix="$acl_save_exec_prefix" 37895 prefix="$acl_save_prefix" 37896 37897 if test "X$x" = "X-I$additional_includedir"; then 37898 haveit=yes 37899 break 37900 fi 37901 done 37902 if test -z "$haveit"; then 37903 if test -d "$additional_includedir"; then 37904 INCREADLINE="${INCREADLINE}${INCREADLINE:+ }-I$additional_includedir" 37905 fi 37906 fi 37907 fi 37908 fi 37909 fi 37910 if test -n "$found_la"; then 37911 save_libdir="$libdir" 37912 case "$found_la" in 37913 */* | *\\*) . "$found_la" ;; 37914 *) . "./$found_la" ;; 37915 esac 37916 libdir="$save_libdir" 37917 for dep in $dependency_libs; do 37918 case "$dep" in 37919 -L*) 37920 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 37921 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ 37922 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ 37923 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then 37924 haveit= 37925 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ 37926 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ 37927 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then 37928 if test -n "$GCC"; then 37929 case $host_os in 37930 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 37931 esac 37932 fi 37933 fi 37934 if test -z "$haveit"; then 37935 haveit= 37936 for x in $LDFLAGS $LIBREADLINE; do 37937 37938 acl_save_prefix="$prefix" 37939 prefix="$acl_final_prefix" 37940 acl_save_exec_prefix="$exec_prefix" 37941 exec_prefix="$acl_final_exec_prefix" 37942 eval x=\"$x\" 37943 exec_prefix="$acl_save_exec_prefix" 37944 prefix="$acl_save_prefix" 37945 37946 if test "X$x" = "X-L$dependency_libdir"; then 37947 haveit=yes 37948 break 37949 fi 37950 done 37951 if test -z "$haveit"; then 37952 if test -d "$dependency_libdir"; then 37953 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-L$dependency_libdir" 37954 fi 37955 fi 37956 haveit= 37957 for x in $LDFLAGS $LTLIBREADLINE; do 37958 37959 acl_save_prefix="$prefix" 37960 prefix="$acl_final_prefix" 37961 acl_save_exec_prefix="$exec_prefix" 37962 exec_prefix="$acl_final_exec_prefix" 37963 eval x=\"$x\" 37964 exec_prefix="$acl_save_exec_prefix" 37965 prefix="$acl_save_prefix" 37966 37967 if test "X$x" = "X-L$dependency_libdir"; then 37968 haveit=yes 37969 break 37970 fi 37971 done 37972 if test -z "$haveit"; then 37973 if test -d "$dependency_libdir"; then 37974 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-L$dependency_libdir" 37975 fi 37976 fi 37977 fi 37978 fi 37979 ;; 37980 -R*) 37981 dir=`echo "X$dep" | sed -e 's/^X-R//'` 37982 if test "$enable_rpath" != no; then 37983 haveit= 37984 for x in $rpathdirs; do 37985 if test "X$x" = "X$dir"; then 37986 haveit=yes 37987 break 37988 fi 37989 done 37990 if test -z "$haveit"; then 37991 rpathdirs="$rpathdirs $dir" 37992 fi 37993 haveit= 37994 for x in $ltrpathdirs; do 37995 if test "X$x" = "X$dir"; then 37996 haveit=yes 37997 break 37998 fi 37999 done 38000 if test -z "$haveit"; then 38001 ltrpathdirs="$ltrpathdirs $dir" 38002 fi 38003 fi 38004 ;; 38005 -l*) 38006 dep=`echo "X$dep" | sed -e 's/^X-l//'` 38007 if test "X$dep" != Xc \ 38008 || case $host_os in 38009 linux* | gnu* | k*bsd*-gnu) false ;; 38010 *) true ;; 38011 esac; then 38012 names_next_round="$names_next_round $dep" 38013 fi 38014 ;; 38015 *.la) 38016 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 38017 ;; 38018 *) 38019 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$dep" 38020 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }$dep" 38021 ;; 38022 esac 38023 done 38024 fi 38025 else 38026 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }-l$name" 38027 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-l$name" 38028 fi 38029 fi 38030 fi 38031 done 38032 done 38033 if test "X$rpathdirs" != "X"; then 38034 if test -n "$acl_hardcode_libdir_separator"; then 38035 alldirs= 38036 for found_dir in $rpathdirs; do 38037 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 38038 done 38039 acl_save_libdir="$libdir" 38040 libdir="$alldirs" 38041 eval flag=\"$acl_hardcode_libdir_flag_spec\" 38042 libdir="$acl_save_libdir" 38043 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag" 38044 else 38045 for found_dir in $rpathdirs; do 38046 acl_save_libdir="$libdir" 38047 libdir="$found_dir" 38048 eval flag=\"$acl_hardcode_libdir_flag_spec\" 38049 libdir="$acl_save_libdir" 38050 LIBREADLINE="${LIBREADLINE}${LIBREADLINE:+ }$flag" 38051 done 38052 fi 38053 fi 38054 if test "X$ltrpathdirs" != "X"; then 38055 for found_dir in $ltrpathdirs; do 38056 LTLIBREADLINE="${LTLIBREADLINE}${LTLIBREADLINE:+ }-R$found_dir" 38057 done 38058 fi 38059 38060 38061 38062 38063 38064 38065 am_save_CPPFLAGS="$CPPFLAGS" 38066 38067 for element in $INCREADLINE; do 38068 haveit= 38069 for x in $CPPFLAGS; do 38070 38071 acl_save_prefix="$prefix" 38072 prefix="$acl_final_prefix" 38073 acl_save_exec_prefix="$exec_prefix" 38074 exec_prefix="$acl_final_exec_prefix" 38075 eval x=\"$x\" 38076 exec_prefix="$acl_save_exec_prefix" 38077 prefix="$acl_save_prefix" 38078 38079 if test "X$x" = "X$element"; then 38080 haveit=yes 38081 break 38082 fi 38083 done 38084 if test -z "$haveit"; then 38085 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 38086 fi 38087 done 38088 38089 38090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 38091printf %s "checking for readline... " >&6; } 38092if test ${gl_cv_lib_readline+y} 38093then : 38094 printf %s "(cached) " >&6 38095else $as_nop 38096 38097 gl_cv_lib_readline=no 38098 am_save_LIBS="$LIBS" 38099 for extra_lib in "" ncurses termcap curses; do 38100 LIBS="$am_save_LIBS $LIBREADLINE" 38101 if test -n "$extra_lib"; then 38102 LIBS="$LIBS -l$extra_lib" 38103 fi 38104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38105/* end confdefs.h. */ 38106#include <stdio.h> 38107#include <readline/readline.h> 38108int 38109main (void) 38110{ 38111readline((char*)0); 38112 ; 38113 return 0; 38114} 38115_ACEOF 38116if ac_fn_c_try_link "$LINENO" 38117then : 38118 if test -n "$extra_lib"; then 38119 gl_cv_lib_readline="yes, requires -l$extra_lib" 38120 else 38121 gl_cv_lib_readline="yes" 38122 fi 38123 38124fi 38125rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38126 conftest$ac_exeext conftest.$ac_ext 38127 if test "$gl_cv_lib_readline" != no; then 38128 break 38129 fi 38130 done 38131 LIBS="$am_save_LIBS" 38132 38133fi 38134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_readline" >&5 38135printf "%s\n" "$gl_cv_lib_readline" >&6; } 38136 38137 if test "$gl_cv_lib_readline" != no; then 38138 38139printf "%s\n" "#define HAVE_READLINE 1" >>confdefs.h 38140 38141 extra_lib=`echo "$gl_cv_lib_readline" | sed -n -e 's/yes, requires //p'` 38142 if test -n "$extra_lib"; then 38143 LIBREADLINE="$LIBREADLINE $extra_lib" 38144 LTLIBREADLINE="$LTLIBREADLINE $extra_lib" 38145 fi 38146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libreadline" >&5 38147printf %s "checking how to link with libreadline... " >&6; } 38148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBREADLINE" >&5 38149printf "%s\n" "$LIBREADLINE" >&6; } 38150 else 38151 CPPFLAGS="$am_save_CPPFLAGS" 38152 LIBREADLINE= 38153 LTLIBREADLINE= 38154 fi 38155 38156 38157 38158 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 38159if test "x$ac_cv_header_readline_readline_h" = xyes 38160then : 38161 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 38162 38163fi 38164ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 38165if test "x$ac_cv_header_readline_history_h" = xyes 38166then : 38167 printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h 38168 38169fi 38170 38171 38172 if test "$gl_cv_lib_readline" = no; then 38173 38174 38175 38176 38177 38178 38179 38180 38181 gl_LIBOBJS="$gl_LIBOBJS readline.$ac_objext" 38182 38183 38184 : 38185 38186 fi 38187 38188 if test "$ac_cv_header_winsock2_h" = yes; then 38189 38190 38191 38192 38193 38194 38195 38196 38197 gl_LIBOBJS="$gl_LIBOBJS recv.$ac_objext" 38198 38199 fi 38200 38201 38202 38203 38204 38205 GNULIB_RECV=1 38206 38207 38208 38209 38210 38211printf "%s\n" "#define GNULIB_TEST_RECV 1" >>confdefs.h 38212 38213 38214 38215 38216 38217 38218 38219 if test "$ac_cv_header_winsock2_h" = yes; then 38220 REPLACE_SELECT=1 38221 else 38222 38223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5 38224printf %s "checking whether select supports a 0 argument... " >&6; } 38225if test ${gl_cv_func_select_supports0+y} 38226then : 38227 printf %s "(cached) " >&6 38228else $as_nop 38229 38230 if test "$cross_compiling" = yes 38231then : 38232 38233 case "$host_os" in 38234 # Guess no on Interix. 38235 interix*) gl_cv_func_select_supports0="guessing no";; 38236 # Guess yes otherwise. 38237 *) gl_cv_func_select_supports0="guessing yes";; 38238 esac 38239 38240else $as_nop 38241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38242/* end confdefs.h. */ 38243 38244#include <sys/types.h> 38245#include <sys/time.h> 38246#if HAVE_SYS_SELECT_H 38247#include <sys/select.h> 38248#endif 38249int main () 38250{ 38251 struct timeval timeout; 38252 timeout.tv_sec = 0; 38253 timeout.tv_usec = 5; 38254 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0; 38255} 38256_ACEOF 38257if ac_fn_c_try_run "$LINENO" 38258then : 38259 gl_cv_func_select_supports0=yes 38260else $as_nop 38261 gl_cv_func_select_supports0=no 38262fi 38263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38264 conftest.$ac_objext conftest.beam conftest.$ac_ext 38265fi 38266 38267 38268fi 38269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5 38270printf "%s\n" "$gl_cv_func_select_supports0" >&6; } 38271 case "$gl_cv_func_select_supports0" in 38272 *yes) ;; 38273 *) REPLACE_SELECT=1 ;; 38274 esac 38275 38276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5 38277printf %s "checking whether select detects invalid fds... " >&6; } 38278if test ${gl_cv_func_select_detects_ebadf+y} 38279then : 38280 printf %s "(cached) " >&6 38281else $as_nop 38282 38283 if test "$cross_compiling" = yes 38284then : 38285 38286 case "$host_os" in 38287 # Guess yes on Linux systems. 38288 linux-* | linux) gl_cv_func_select_detects_ebadf="guessing yes" ;; 38289 # Guess yes on glibc systems. 38290 *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;; 38291 # If we don't know, obey --enable-cross-guesses. 38292 *) gl_cv_func_select_detects_ebadf="$gl_cross_guess_normal" ;; 38293 esac 38294 38295else $as_nop 38296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38297/* end confdefs.h. */ 38298 38299#include <sys/types.h> 38300#include <sys/time.h> 38301#if HAVE_SYS_SELECT_H 38302# include <sys/select.h> 38303#endif 38304#include <unistd.h> 38305#include <errno.h> 38306 38307 38308$gl_mda_defines 38309 38310int 38311main (void) 38312{ 38313 38314 fd_set set; 38315 dup2(0, 16); 38316 FD_ZERO(&set); 38317 FD_SET(16, &set); 38318 close(16); 38319 struct timeval timeout; 38320 timeout.tv_sec = 0; 38321 timeout.tv_usec = 5; 38322 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF; 38323 38324 ; 38325 return 0; 38326} 38327_ACEOF 38328if ac_fn_c_try_run "$LINENO" 38329then : 38330 gl_cv_func_select_detects_ebadf=yes 38331else $as_nop 38332 gl_cv_func_select_detects_ebadf=no 38333fi 38334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38335 conftest.$ac_objext conftest.beam conftest.$ac_ext 38336fi 38337 38338 38339fi 38340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5 38341printf "%s\n" "$gl_cv_func_select_detects_ebadf" >&6; } 38342 case $gl_cv_func_select_detects_ebadf in 38343 *yes) ;; 38344 *) REPLACE_SELECT=1 ;; 38345 esac 38346 fi 38347 38348 LIB_SELECT="$LIBSOCKET" 38349 if test $REPLACE_SELECT = 1; then 38350 case "$host_os" in 38351 mingw*) 38352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38353/* end confdefs.h. */ 38354 38355#define WIN32_LEAN_AND_MEAN 38356#include <windows.h> 38357int 38358main () 38359{ 38360 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0); 38361 return 0; 38362} 38363_ACEOF 38364if ac_fn_c_try_link "$LINENO" 38365then : 38366 38367else $as_nop 38368 LIB_SELECT="$LIB_SELECT -luser32" 38369fi 38370rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38371 conftest$ac_exeext conftest.$ac_ext 38372 ;; 38373 esac 38374 fi 38375 38376 38377 if test $REPLACE_SELECT = 1; then 38378 38379 38380 38381 38382 38383 38384 38385 38386 gl_LIBOBJS="$gl_LIBOBJS select.$ac_objext" 38387 38388 fi 38389 38390 38391 38392 38393 38394 GNULIB_SELECT=1 38395 38396 38397 38398 38399 38400printf "%s\n" "#define GNULIB_TEST_SELECT 1" >>confdefs.h 38401 38402 38403 38404 38405 SERVENT_LIB= 38406 gl_saved_libs="$LIBS" 38407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5 38408printf %s "checking for library containing getservbyname... " >&6; } 38409if test ${ac_cv_search_getservbyname+y} 38410then : 38411 printf %s "(cached) " >&6 38412else $as_nop 38413 ac_func_search_save_LIBS=$LIBS 38414cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38415/* end confdefs.h. */ 38416 38417/* Override any GCC internal prototype to avoid an error. 38418 Use char because int might match the return type of a GCC 38419 builtin and then its argument prototype would still apply. */ 38420char getservbyname (); 38421int 38422main (void) 38423{ 38424return getservbyname (); 38425 ; 38426 return 0; 38427} 38428_ACEOF 38429for ac_lib in '' socket network net 38430do 38431 if test -z "$ac_lib"; then 38432 ac_res="none required" 38433 else 38434 ac_res=-l$ac_lib 38435 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 38436 fi 38437 if ac_fn_c_try_link "$LINENO" 38438then : 38439 ac_cv_search_getservbyname=$ac_res 38440fi 38441rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38442 conftest$ac_exeext 38443 if test ${ac_cv_search_getservbyname+y} 38444then : 38445 break 38446fi 38447done 38448if test ${ac_cv_search_getservbyname+y} 38449then : 38450 38451else $as_nop 38452 ac_cv_search_getservbyname=no 38453fi 38454rm conftest.$ac_ext 38455LIBS=$ac_func_search_save_LIBS 38456fi 38457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5 38458printf "%s\n" "$ac_cv_search_getservbyname" >&6; } 38459ac_res=$ac_cv_search_getservbyname 38460if test "$ac_res" != no 38461then : 38462 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 38463 if test "$ac_cv_search_getservbyname" != "none required"; then 38464 SERVENT_LIB="$ac_cv_search_getservbyname" 38465 fi 38466fi 38467 38468 LIBS="$gl_saved_libs" 38469 if test -z "$SERVENT_LIB"; then 38470 38471 for ac_func in getservbyname 38472do : 38473 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" 38474if test "x$ac_cv_func_getservbyname" = xyes 38475then : 38476 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h 38477 38478else $as_nop 38479 38480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname in winsock2.h and -lws2_32" >&5 38481printf %s "checking for getservbyname in winsock2.h and -lws2_32... " >&6; } 38482if test ${gl_cv_w32_getservbyname+y} 38483then : 38484 printf %s "(cached) " >&6 38485else $as_nop 38486 gl_cv_w32_getservbyname=no 38487 gl_save_LIBS="$LIBS" 38488 LIBS="$LIBS -lws2_32" 38489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38490/* end confdefs.h. */ 38491 38492#ifdef HAVE_WINSOCK2_H 38493#include <winsock2.h> 38494#endif 38495#include <stddef.h> 38496 38497int 38498main (void) 38499{ 38500getservbyname(NULL,NULL); 38501 ; 38502 return 0; 38503} 38504_ACEOF 38505if ac_fn_c_try_link "$LINENO" 38506then : 38507 gl_cv_w32_getservbyname=yes 38508fi 38509rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38510 conftest$ac_exeext conftest.$ac_ext 38511 LIBS="$gl_save_LIBS" 38512 38513fi 38514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_w32_getservbyname" >&5 38515printf "%s\n" "$gl_cv_w32_getservbyname" >&6; } 38516 if test "$gl_cv_w32_getservbyname" = "yes"; then 38517 SERVENT_LIB="-lws2_32" 38518 fi 38519 38520fi 38521 38522done 38523 fi 38524 38525 38526 38527 38528 38529 38530 38531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (LC_ALL, NULL) is multithread-safe" >&5 38532printf %s "checking whether setlocale (LC_ALL, NULL) is multithread-safe... " >&6; } 38533if test ${gl_cv_func_setlocale_null_all_mtsafe+y} 38534then : 38535 printf %s "(cached) " >&6 38536else $as_nop 38537 case "$host_os" in 38538 # Guess no on musl libc, macOS, FreeBSD, NetBSD, OpenBSD, AIX, Haiku, Cygwin. 38539 *-musl* | darwin* | freebsd* | netbsd* | openbsd* | aix* | haiku* | cygwin*) 38540 gl_cv_func_setlocale_null_all_mtsafe=no ;; 38541 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 38542 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw*) 38543 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 38544 # If we don't know, obey --enable-cross-guesses. 38545 *) 38546 gl_cv_func_setlocale_null_all_mtsafe="$gl_cross_guess_normal" ;; 38547 esac 38548 38549fi 38550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_all_mtsafe" >&5 38551printf "%s\n" "$gl_cv_func_setlocale_null_all_mtsafe" >&6; } 38552 case "$host_os" in 38553 mingw*) ;; 38554 *) 38555 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 38556 gl_cv_func_setlocale_null_all_mtsafe="trivially yes" 38557 fi 38558 ;; 38559 esac 38560 case "$gl_cv_func_setlocale_null_all_mtsafe" in 38561 *yes) SETLOCALE_NULL_ALL_MTSAFE=1 ;; 38562 *) SETLOCALE_NULL_ALL_MTSAFE=0 ;; 38563 esac 38564 38565printf "%s\n" "#define SETLOCALE_NULL_ALL_MTSAFE $SETLOCALE_NULL_ALL_MTSAFE" >>confdefs.h 38566 38567 38568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale (category, NULL) is multithread-safe" >&5 38569printf %s "checking whether setlocale (category, NULL) is multithread-safe... " >&6; } 38570if test ${gl_cv_func_setlocale_null_one_mtsafe+y} 38571then : 38572 printf %s "(cached) " >&6 38573else $as_nop 38574 case "$host_os" in 38575 # Guess no on OpenBSD, AIX. 38576 openbsd* | aix*) 38577 gl_cv_func_setlocale_null_one_mtsafe=no ;; 38578 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 38579 *-gnu* | gnu* | *-musl* | darwin* | freebsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw*) 38580 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 38581 # If we don't know, obey --enable-cross-guesses. 38582 *) 38583 gl_cv_func_setlocale_null_one_mtsafe="$gl_cross_guess_normal" ;; 38584 esac 38585 38586fi 38587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_null_one_mtsafe" >&5 38588printf "%s\n" "$gl_cv_func_setlocale_null_one_mtsafe" >&6; } 38589 case "$host_os" in 38590 mingw*) ;; 38591 *) 38592 if test $gl_pthread_api = no && test $ac_cv_header_threads_h = no; then 38593 gl_cv_func_setlocale_null_one_mtsafe="trivially yes" 38594 fi 38595 ;; 38596 esac 38597 case "$gl_cv_func_setlocale_null_one_mtsafe" in 38598 *yes) SETLOCALE_NULL_ONE_MTSAFE=1 ;; 38599 *) SETLOCALE_NULL_ONE_MTSAFE=0 ;; 38600 esac 38601 38602printf "%s\n" "#define SETLOCALE_NULL_ONE_MTSAFE $SETLOCALE_NULL_ONE_MTSAFE" >>confdefs.h 38603 38604 38605 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 38606 case "$host_os" in 38607 mingw*) LIB_SETLOCALE_NULL= ;; 38608 *) 38609 38610 38611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 38612printf %s "checking whether imported symbols can be declared weak... " >&6; } 38613if test ${gl_cv_have_weak+y} 38614then : 38615 printf %s "(cached) " >&6 38616else $as_nop 38617 gl_cv_have_weak=no 38618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38619/* end confdefs.h. */ 38620extern void xyzzy (); 38621#pragma weak xyzzy 38622int 38623main (void) 38624{ 38625xyzzy(); 38626 ; 38627 return 0; 38628} 38629_ACEOF 38630if ac_fn_c_try_link "$LINENO" 38631then : 38632 gl_cv_have_weak=maybe 38633fi 38634rm -f core conftest.err conftest.$ac_objext conftest.beam \ 38635 conftest$ac_exeext conftest.$ac_ext 38636 if test $gl_cv_have_weak = maybe; then 38637 if test "$cross_compiling" = yes 38638then : 38639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38640/* end confdefs.h. */ 38641#ifdef __ELF__ 38642 Extensible Linking Format 38643 #endif 38644 38645_ACEOF 38646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 38647 $EGREP "Extensible Linking Format" >/dev/null 2>&1 38648then : 38649 gl_cv_have_weak="guessing yes" 38650else $as_nop 38651 gl_cv_have_weak="guessing no" 38652fi 38653rm -rf conftest* 38654 38655 38656else $as_nop 38657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38658/* end confdefs.h. */ 38659 38660#include <stdio.h> 38661#pragma weak fputs 38662int main () 38663{ 38664 return (fputs == NULL); 38665} 38666_ACEOF 38667if ac_fn_c_try_run "$LINENO" 38668then : 38669 gl_cv_have_weak=yes 38670else $as_nop 38671 gl_cv_have_weak=no 38672fi 38673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38674 conftest.$ac_objext conftest.beam conftest.$ac_ext 38675fi 38676 38677 fi 38678 case " $LDFLAGS " in 38679 *" -static "*) gl_cv_have_weak=no ;; 38680 esac 38681 case "$gl_cv_have_weak" in 38682 *yes) 38683 case "$host_os" in 38684 freebsd* | dragonfly*) 38685 : > conftest1.c 38686 $CC $CPPFLAGS $CFLAGS $LDFLAGS -fPIC -shared -o libempty.so conftest1.c -lpthread >&5 2>&1 38687 cat <<EOF > conftest2.c 38688#include <pthread.h> 38689#pragma weak pthread_mutexattr_gettype 38690int main () 38691{ 38692 return (pthread_mutexattr_gettype != NULL); 38693} 38694EOF 38695 $CC $CPPFLAGS $CFLAGS $LDFLAGS -o conftest conftest2.c libempty.so >&5 2>&1 \ 38696 || gl_cv_have_weak=no 38697 rm -f conftest1.c libempty.so conftest2.c conftest 38698 ;; 38699 esac 38700 ;; 38701 esac 38702 38703fi 38704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 38705printf "%s\n" "$gl_cv_have_weak" >&6; } 38706 case "$gl_cv_have_weak" in 38707 *yes) 38708 38709printf "%s\n" "#define HAVE_WEAK_SYMBOLS 1" >>confdefs.h 38710 38711 ;; 38712 esac 38713 38714 case "$gl_cv_have_weak" in 38715 *yes) LIB_SETLOCALE_NULL= ;; 38716 *) LIB_SETLOCALE_NULL="$LIBPTHREAD" ;; 38717 esac 38718 ;; 38719 esac 38720 else 38721 LIB_SETLOCALE_NULL= 38722 fi 38723 38724 38725 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 38726 38727 38728 38729 38730 38731 38732 38733 38734 gl_LIBOBJS="$gl_LIBOBJS setlocale-lock.$ac_objext" 38735 38736 38737 38738 38739 CFLAG_VISIBILITY= 38740 HAVE_VISIBILITY=0 38741 if test -n "$GCC"; then 38742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 38743printf %s "checking whether the -Werror option is usable... " >&6; } 38744if test ${gl_cv_cc_vis_werror+y} 38745then : 38746 printf %s "(cached) " >&6 38747else $as_nop 38748 gl_save_CFLAGS="$CFLAGS" 38749 CFLAGS="$CFLAGS -Werror" 38750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38751/* end confdefs.h. */ 38752 38753int 38754main (void) 38755{ 38756 38757 ; 38758 return 0; 38759} 38760_ACEOF 38761if ac_fn_c_try_compile "$LINENO" 38762then : 38763 gl_cv_cc_vis_werror=yes 38764else $as_nop 38765 gl_cv_cc_vis_werror=no 38766fi 38767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38768 CFLAGS="$gl_save_CFLAGS" 38769 38770fi 38771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 38772printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 38773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 38774printf %s "checking for simple visibility declarations... " >&6; } 38775if test ${gl_cv_cc_visibility+y} 38776then : 38777 printf %s "(cached) " >&6 38778else $as_nop 38779 gl_save_CFLAGS="$CFLAGS" 38780 CFLAGS="$CFLAGS -fvisibility=hidden" 38781 if test $gl_cv_cc_vis_werror = yes; then 38782 CFLAGS="$CFLAGS -Werror" 38783 fi 38784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38785/* end confdefs.h. */ 38786extern __attribute__((__visibility__("hidden"))) int hiddenvar; 38787 extern __attribute__((__visibility__("default"))) int exportedvar; 38788 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 38789 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 38790 void dummyfunc (void) {} 38791 38792int 38793main (void) 38794{ 38795 38796 ; 38797 return 0; 38798} 38799_ACEOF 38800if ac_fn_c_try_compile "$LINENO" 38801then : 38802 gl_cv_cc_visibility=yes 38803else $as_nop 38804 gl_cv_cc_visibility=no 38805fi 38806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 38807 CFLAGS="$gl_save_CFLAGS" 38808 38809fi 38810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 38811printf "%s\n" "$gl_cv_cc_visibility" >&6; } 38812 if test $gl_cv_cc_visibility = yes; then 38813 CFLAG_VISIBILITY="-fvisibility=hidden" 38814 HAVE_VISIBILITY=1 38815 fi 38816 fi 38817 38818 38819 38820printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 38821 38822 38823 38824 fi 38825 38826 38827 38828 38829 38830 GNULIB_SETLOCALE_NULL=1 38831 38832 38833 38834 38835 38836printf "%s\n" "#define GNULIB_TEST_SETLOCALE_NULL 1" >>confdefs.h 38837 38838 38839 38840 38841 if test "$ac_cv_header_winsock2_h" = yes; then 38842 38843 38844 38845 38846 38847 38848 38849 38850 gl_LIBOBJS="$gl_LIBOBJS shutdown.$ac_objext" 38851 38852 fi 38853 38854 38855 38856 38857 38858 GNULIB_SHUTDOWN=1 38859 38860 38861 38862 38863 38864printf "%s\n" "#define GNULIB_TEST_SHUTDOWN 1" >>confdefs.h 38865 38866 38867 38868 38869 38870 38871 38872 38873 38874 38875 38876 38877 38878 38879 if test $gl_cv_have_include_next = yes; then 38880 gl_cv_next_signal_h='<'signal.h'>' 38881 else 38882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 38883printf %s "checking absolute name of <signal.h>... " >&6; } 38884if test ${gl_cv_next_signal_h+y} 38885then : 38886 printf %s "(cached) " >&6 38887else $as_nop 38888 38889 38890 38891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38892/* end confdefs.h. */ 38893#include <signal.h> 38894_ACEOF 38895 case "$host_os" in 38896 aix*) gl_absname_cpp="$ac_cpp -C" ;; 38897 *) gl_absname_cpp="$ac_cpp" ;; 38898 esac 38899 38900 case "$host_os" in 38901 mingw*) 38902 gl_dirsep_regex='[/\\]' 38903 ;; 38904 *) 38905 gl_dirsep_regex='\/' 38906 ;; 38907 esac 38908 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 38909 gl_header_literal_regex=`echo 'signal.h' \ 38910 | sed -e "$gl_make_literal_regex_sed"` 38911 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 38912 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 38913 s|^/[^/]|//&| 38914 p 38915 q 38916 }' 38917 38918 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 38919 sed -n "$gl_absolute_header_sed"` 38920 38921 gl_header=$gl_cv_absolute_signal_h 38922 gl_cv_next_signal_h='"'$gl_header'"' 38923 38924 38925fi 38926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 38927printf "%s\n" "$gl_cv_next_signal_h" >&6; } 38928 fi 38929 NEXT_SIGNAL_H=$gl_cv_next_signal_h 38930 38931 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 38932 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 38933 gl_next_as_first_directive='<'signal.h'>' 38934 else 38935 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 38936 gl_next_as_first_directive=$gl_cv_next_signal_h 38937 fi 38938 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive 38939 38940 38941 38942 38943 38944# AIX declares sig_atomic_t to already include volatile, and C89 compilers 38945# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. 38946 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " 38947#include <signal.h> 38948 38949" 38950if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes 38951then : 38952 38953else $as_nop 38954 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 38955fi 38956 38957 38958 38959 38960 38961 38962 38963 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " 38964#include <signal.h> 38965 38966" 38967if test "x$ac_cv_type_sighandler_t" = xyes 38968then : 38969 38970else $as_nop 38971 HAVE_SIGHANDLER_T=0 38972fi 38973 38974 38975 38976 38977 38978 38979 38980 38981 38982 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 38983if test "x$ac_cv_header_stdint_h" = xyes 38984then : 38985 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 38986 38987fi 38988 38989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 38990printf %s "checking for SIZE_MAX... " >&6; } 38991if test ${gl_cv_size_max+y} 38992then : 38993 printf %s "(cached) " >&6 38994else $as_nop 38995 38996 gl_cv_size_max=no 38997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38998/* end confdefs.h. */ 38999 39000#include <limits.h> 39001#if HAVE_STDINT_H 39002#include <stdint.h> 39003#endif 39004#ifdef SIZE_MAX 39005Found it 39006#endif 39007 39008_ACEOF 39009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39010 $EGREP "Found it" >/dev/null 2>&1 39011then : 39012 gl_cv_size_max=yes 39013fi 39014rm -rf conftest* 39015 39016 if test $gl_cv_size_max != yes; then 39017 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 39018#include <limits.h>" 39019then : 39020 39021else $as_nop 39022 size_t_bits_minus_1= 39023fi 39024 39025 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>" 39026then : 39027 39028else $as_nop 39029 fits_in_uint= 39030fi 39031 39032 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 39033 if test $fits_in_uint = 1; then 39034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39035/* end confdefs.h. */ 39036#include <stddef.h> 39037 extern size_t foo; 39038 extern unsigned long foo; 39039 39040int 39041main (void) 39042{ 39043 39044 ; 39045 return 0; 39046} 39047_ACEOF 39048if ac_fn_c_try_compile "$LINENO" 39049then : 39050 fits_in_uint=0 39051fi 39052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39053 fi 39054 if test $fits_in_uint = 1; then 39055 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 39056 else 39057 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 39058 fi 39059 else 39060 gl_cv_size_max='((size_t)~(size_t)0)' 39061 fi 39062 fi 39063 39064fi 39065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 39066printf "%s\n" "$gl_cv_size_max" >&6; } 39067 if test "$gl_cv_size_max" != yes; then 39068 39069printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h 39070 39071 fi 39072 39073 39074 39075 39076 gl_cv_func_snprintf_usable=no 39077 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 39078if test "x$ac_cv_func_snprintf" = xyes 39079then : 39080 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 39081 39082fi 39083 39084 if test $ac_cv_func_snprintf = yes; then 39085 39086 39087 39088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5 39089printf %s "checking whether snprintf respects a size of 1... " >&6; } 39090if test ${gl_cv_func_snprintf_size1+y} 39091then : 39092 printf %s "(cached) " >&6 39093else $as_nop 39094 39095 if test "$cross_compiling" = yes 39096then : 39097 case "$host_os" in 39098 # Guess yes on Android. 39099 linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;; 39100 # Guess yes on native Windows. 39101 mingw*) gl_cv_func_snprintf_size1="guessing yes" ;; 39102 *) gl_cv_func_snprintf_size1="guessing yes" ;; 39103 esac 39104 39105else $as_nop 39106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39107/* end confdefs.h. */ 39108 39109#include <stdio.h> 39110#if HAVE_SNPRINTF 39111# define my_snprintf snprintf 39112#else 39113# include <stdarg.h> 39114static int my_snprintf (char *buf, int size, const char *format, ...) 39115{ 39116 va_list args; 39117 int ret; 39118 va_start (args, format); 39119 ret = vsnprintf (buf, size, format, args); 39120 va_end (args); 39121 return ret; 39122} 39123#endif 39124int main() 39125{ 39126 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' }; 39127 my_snprintf (buf, 1, "%d", 12345); 39128 return buf[1] != 'E'; 39129} 39130_ACEOF 39131if ac_fn_c_try_run "$LINENO" 39132then : 39133 gl_cv_func_snprintf_size1=yes 39134else $as_nop 39135 gl_cv_func_snprintf_size1=no 39136fi 39137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39138 conftest.$ac_objext conftest.beam conftest.$ac_ext 39139fi 39140 39141 39142fi 39143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5 39144printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; } 39145 39146 case "$gl_cv_func_snprintf_size1" in 39147 *yes) 39148 39149 case "$gl_cv_func_snprintf_retval_c99" in 39150 *yes) 39151 39152 39153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5 39154printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; } 39155if test ${gl_cv_func_printf_positions+y} 39156then : 39157 printf %s "(cached) " >&6 39158else $as_nop 39159 39160 if test "$cross_compiling" = yes 39161then : 39162 39163 case "$host_os" in 39164 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*) 39165 gl_cv_func_printf_positions="guessing no";; 39166 beos*) gl_cv_func_printf_positions="guessing no";; 39167 # Guess yes on Android. 39168 linux*-android*) gl_cv_func_printf_positions="guessing yes";; 39169 # Guess no on native Windows. 39170 mingw* | pw*) gl_cv_func_printf_positions="guessing no";; 39171 *) gl_cv_func_printf_positions="guessing yes";; 39172 esac 39173 39174else $as_nop 39175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39176/* end confdefs.h. */ 39177 39178#include <stdio.h> 39179#include <string.h> 39180/* The string "%2$d %1$d", with dollar characters protected from the shell's 39181 dollar expansion (possibly an autoconf bug). */ 39182static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 39183static char buf[100]; 39184int main () 39185{ 39186 sprintf (buf, format, 33, 55); 39187 return (strcmp (buf, "55 33") != 0); 39188} 39189_ACEOF 39190if ac_fn_c_try_run "$LINENO" 39191then : 39192 gl_cv_func_printf_positions=yes 39193else $as_nop 39194 gl_cv_func_printf_positions=no 39195fi 39196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39197 conftest.$ac_objext conftest.beam conftest.$ac_ext 39198fi 39199 39200 39201fi 39202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5 39203printf "%s\n" "$gl_cv_func_printf_positions" >&6; } 39204 39205 case "$gl_cv_func_printf_positions" in 39206 *yes) 39207 gl_cv_func_snprintf_usable=yes 39208 ;; 39209 esac 39210 ;; 39211 esac 39212 ;; 39213 esac 39214 fi 39215 if test $gl_cv_func_snprintf_usable = no; then 39216 39217 39218 39219 39220 39221 39222 39223 39224 39225 39226 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext" 39227 39228 if test $ac_cv_func_snprintf = yes; then 39229 REPLACE_SNPRINTF=1 39230 else 39231 39232 if test $ac_cv_have_decl_snprintf = yes; then 39233 REPLACE_SNPRINTF=1 39234 fi 39235 fi 39236 : 39237 39238 fi 39239 39240 if test $ac_cv_have_decl_snprintf = no; then 39241 HAVE_DECL_SNPRINTF=0 39242 fi 39243 39244 39245 39246 39247 39248 39249 GNULIB_SNPRINTF=1 39250 39251 39252 39253 39254 39255printf "%s\n" "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h 39256 39257 39258 39259 39260 39261printf "%s\n" "#define GNULIB_SNPRINTF 1" >>confdefs.h 39262 39263 39264 39265 if test "$ac_cv_header_winsock2_h" = yes; then 39266 39267 39268 39269 39270 39271 39272 39273 39274 gl_LIBOBJS="$gl_LIBOBJS socket.$ac_objext" 39275 39276 fi 39277 # When this module is used, sockets may actually occur as file descriptors, 39278 # hence it is worth warning if the modules 'close' and 'ioctl' are not used. 39279 39280 39281 39282 if test "$ac_cv_header_winsock2_h" = yes; then 39283 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 39284 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 39285 fi 39286 39287 39288 39289 39290 39291 GNULIB_SOCKET=1 39292 39293 39294 39295 39296 39297printf "%s\n" "#define GNULIB_TEST_SOCKET 1" >>confdefs.h 39298 39299 39300 39301 39302 39303 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 39304/* <sys/types.h> is not needed according to POSIX, but the 39305 <sys/socket.h> in i386-unknown-freebsd4.10 and 39306 powerpc-apple-darwin5.5 required it. */ 39307#include <sys/types.h> 39308#if HAVE_SYS_SOCKET_H 39309# include <sys/socket.h> 39310#elif HAVE_WS2TCPIP_H 39311# include <ws2tcpip.h> 39312#endif 39313 39314" 39315if test "x$ac_cv_type_socklen_t" = xyes 39316then : 39317 39318else $as_nop 39319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 39320printf %s "checking for socklen_t equivalent... " >&6; } 39321if test ${gl_cv_socklen_t_equiv+y} 39322then : 39323 printf %s "(cached) " >&6 39324else $as_nop 39325 # Systems have either "struct sockaddr *" or 39326 # "void *" as the second argument to getpeername 39327 gl_cv_socklen_t_equiv= 39328 for arg2 in "struct sockaddr" void; do 39329 for t in int size_t "unsigned int" "long int" "unsigned long int"; do 39330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39331/* end confdefs.h. */ 39332#include <sys/types.h> 39333 #include <sys/socket.h> 39334 39335 int getpeername (int, $arg2 *, $t *); 39336int 39337main (void) 39338{ 39339$t len; 39340 getpeername (0, 0, &len); 39341 ; 39342 return 0; 39343} 39344_ACEOF 39345if ac_fn_c_try_compile "$LINENO" 39346then : 39347 gl_cv_socklen_t_equiv="$t" 39348fi 39349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39350 test "$gl_cv_socklen_t_equiv" != "" && break 39351 done 39352 test "$gl_cv_socklen_t_equiv" != "" && break 39353 done 39354 if test "$gl_cv_socklen_t_equiv" = ""; then 39355 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 39356 fi 39357 39358fi 39359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5 39360printf "%s\n" "$gl_cv_socklen_t_equiv" >&6; } 39361 39362printf "%s\n" "#define socklen_t $gl_cv_socklen_t_equiv" >>confdefs.h 39363 39364fi 39365 39366 39367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 39368printf %s "checking for ssize_t... " >&6; } 39369if test ${gt_cv_ssize_t+y} 39370then : 39371 printf %s "(cached) " >&6 39372else $as_nop 39373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39374/* end confdefs.h. */ 39375#include <sys/types.h> 39376int 39377main (void) 39378{ 39379int x = sizeof (ssize_t *) + sizeof (ssize_t); 39380 return !x; 39381 ; 39382 return 0; 39383} 39384_ACEOF 39385if ac_fn_c_try_compile "$LINENO" 39386then : 39387 gt_cv_ssize_t=yes 39388else $as_nop 39389 gt_cv_ssize_t=no 39390fi 39391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39392fi 39393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 39394printf "%s\n" "$gt_cv_ssize_t" >&6; } 39395 if test $gt_cv_ssize_t = no; then 39396 39397printf "%s\n" "#define ssize_t int" >>confdefs.h 39398 39399 fi 39400 39401 39402 39403 39404 39405 case "$host_os" in 39406 mingw*) 39407 REPLACE_STAT=1 39408 ;; 39409 *) 39410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 39411printf %s "checking whether stat handles trailing slashes on files... " >&6; } 39412if test ${gl_cv_func_stat_file_slash+y} 39413then : 39414 printf %s "(cached) " >&6 39415else $as_nop 39416 touch conftest.tmp 39417 # Assume that if we have lstat, we can also check symlinks. 39418 if test $ac_cv_func_lstat = yes; then 39419 ln -s conftest.tmp conftest.lnk 39420 fi 39421 if test "$cross_compiling" = yes 39422then : 39423 case "$host_os" in 39424 # Guess yes on Linux systems. 39425 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;; 39426 # Guess yes on glibc systems. 39427 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; 39428 # If we don't know, obey --enable-cross-guesses. 39429 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;; 39430 esac 39431 39432else $as_nop 39433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39434/* end confdefs.h. */ 39435#include <sys/stat.h> 39436 39437int 39438main (void) 39439{ 39440int result = 0; 39441 struct stat st; 39442 if (!stat ("conftest.tmp/", &st)) 39443 result |= 1; 39444#if HAVE_LSTAT 39445 if (!stat ("conftest.lnk/", &st)) 39446 result |= 2; 39447#endif 39448 return result; 39449 39450 ; 39451 return 0; 39452} 39453_ACEOF 39454if ac_fn_c_try_run "$LINENO" 39455then : 39456 gl_cv_func_stat_file_slash=yes 39457else $as_nop 39458 gl_cv_func_stat_file_slash=no 39459fi 39460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39461 conftest.$ac_objext conftest.beam conftest.$ac_ext 39462fi 39463 39464 rm -f conftest.tmp conftest.lnk 39465fi 39466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 39467printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; } 39468 case $gl_cv_func_stat_file_slash in 39469 *no) 39470 REPLACE_STAT=1 39471 39472printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h 39473;; 39474 esac 39475 case $host_os in 39476 solaris*) 39477 REPLACE_FSTAT=1 ;; 39478 esac 39479 ;; 39480 esac 39481 39482 if test $REPLACE_STAT = 1; then 39483 39484 39485 39486 39487 39488 39489 39490 39491 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" 39492 39493 case "$host_os" in 39494 mingw*) 39495 39496 39497 39498 39499 39500 39501 39502 39503 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext" 39504 39505 ;; 39506 esac 39507 39508 39509 39510 : 39511 39512 fi 39513 39514 39515 39516 39517 39518 GNULIB_STAT=1 39519 39520 39521 39522 39523 39524printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h 39525 39526 39527 39528 39529 39530 39531 39532 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h> 39533 #include <sys/stat.h> 39534" 39535if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes 39536then : 39537 39538printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h 39539 39540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 39541printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; } 39542if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y} 39543then : 39544 printf %s "(cached) " >&6 39545else $as_nop 39546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39547/* end confdefs.h. */ 39548 39549 #include <sys/types.h> 39550 #include <sys/stat.h> 39551 #if HAVE_SYS_TIME_H 39552 # include <sys/time.h> 39553 #endif 39554 #include <time.h> 39555 struct timespec ts; 39556 struct stat st; 39557 39558int 39559main (void) 39560{ 39561 39562 st.st_atim = ts; 39563 39564 ; 39565 return 0; 39566} 39567_ACEOF 39568if ac_fn_c_try_compile "$LINENO" 39569then : 39570 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes 39571else $as_nop 39572 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no 39573fi 39574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39575fi 39576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 39577printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } 39578 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then 39579 39580printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h 39581 39582 fi 39583else $as_nop 39584 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h> 39585 #include <sys/stat.h> 39586" 39587if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes 39588then : 39589 39590printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h 39591 39592 39593else $as_nop 39594 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> 39595 #include <sys/stat.h> 39596" 39597if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes 39598then : 39599 39600printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h 39601 39602 39603else $as_nop 39604 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h> 39605 #include <sys/stat.h> 39606" 39607if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes 39608then : 39609 39610printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h 39611 39612 39613fi 39614 39615fi 39616 39617fi 39618 39619fi 39620 39621 39622 39623 39624 39625 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h> 39626 #include <sys/stat.h> 39627" 39628if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes 39629then : 39630 39631printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h 39632 39633 39634else $as_nop 39635 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h> 39636 #include <sys/stat.h> 39637" 39638if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes 39639then : 39640 39641printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h 39642 39643 39644else $as_nop 39645 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h> 39646 #include <sys/stat.h> 39647" 39648if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes 39649then : 39650 39651printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h 39652 39653 39654fi 39655 39656fi 39657 39658fi 39659 39660 39661 39662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 39663printf %s "checking for working stdalign.h... " >&6; } 39664if test ${gl_cv_header_working_stdalign_h+y} 39665then : 39666 printf %s "(cached) " >&6 39667else $as_nop 39668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39669/* end confdefs.h. */ 39670#include <stdalign.h> 39671 #include <stddef.h> 39672 39673 /* Test that alignof yields a result consistent with offsetof. 39674 This catches GCC bug 52023 39675 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ 39676 #ifdef __cplusplus 39677 template <class t> struct alignof_helper { char a; t b; }; 39678 # define ao(type) offsetof (alignof_helper<type>, b) 39679 #else 39680 # define ao(type) offsetof (struct { char a; type b; }, b) 39681 #endif 39682 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; 39683 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; 39684 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; 39685 39686 /* Test _Alignas only on platforms where gnulib can help. */ 39687 #if \ 39688 ((defined __cplusplus && 201103 <= __cplusplus) \ 39689 || (defined __APPLE__ && defined __MACH__ \ 39690 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ 39691 : __GNUC__) \ 39692 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ 39693 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \ 39694 || 1300 <= _MSC_VER) 39695 struct alignas_test { char c; char alignas (8) alignas_8; }; 39696 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 39697 ? 1 : -1]; 39698 #endif 39699 39700int 39701main (void) 39702{ 39703 39704 ; 39705 return 0; 39706} 39707_ACEOF 39708if ac_fn_c_try_compile "$LINENO" 39709then : 39710 gl_cv_header_working_stdalign_h=yes 39711else $as_nop 39712 gl_cv_header_working_stdalign_h=no 39713fi 39714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39715fi 39716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 39717printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; } 39718 39719 if test $gl_cv_header_working_stdalign_h = yes; then 39720 STDALIGN_H='' 39721 else 39722 STDALIGN_H='stdalign.h' 39723 fi 39724 39725 39726 if test -n "$STDALIGN_H"; then 39727 GL_GENERATE_STDALIGN_H_TRUE= 39728 GL_GENERATE_STDALIGN_H_FALSE='#' 39729else 39730 GL_GENERATE_STDALIGN_H_TRUE='#' 39731 GL_GENERATE_STDALIGN_H_FALSE= 39732fi 39733 39734 39735 39736 STDARG_H='' 39737 NEXT_STDARG_H='<stdarg.h>' 39738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 39739printf %s "checking for va_copy... " >&6; } 39740if test ${gl_cv_func_va_copy+y} 39741then : 39742 printf %s "(cached) " >&6 39743else $as_nop 39744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39745/* end confdefs.h. */ 39746#include <stdarg.h> 39747int 39748main (void) 39749{ 39750 39751#ifndef va_copy 39752void (*func) (va_list, va_list) = va_copy; 39753#endif 39754 39755 ; 39756 return 0; 39757} 39758_ACEOF 39759if ac_fn_c_try_compile "$LINENO" 39760then : 39761 gl_cv_func_va_copy=yes 39762else $as_nop 39763 gl_cv_func_va_copy=no 39764fi 39765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39766 39767fi 39768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 39769printf "%s\n" "$gl_cv_func_va_copy" >&6; } 39770 if test $gl_cv_func_va_copy = no; then 39771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39772/* end confdefs.h. */ 39773#if defined _AIX && !defined __GNUC__ 39774 AIX vaccine 39775 #endif 39776 39777_ACEOF 39778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39779 $EGREP "vaccine" >/dev/null 2>&1 39780then : 39781 gl_aixcc=yes 39782else $as_nop 39783 gl_aixcc=no 39784fi 39785rm -rf conftest* 39786 39787 if test $gl_aixcc = yes; then 39788 STDARG_H=stdarg.h 39789 39790 39791 39792 39793 39794 39795 39796 39797 if test $gl_cv_have_include_next = yes; then 39798 gl_cv_next_stdarg_h='<'stdarg.h'>' 39799 else 39800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 39801printf %s "checking absolute name of <stdarg.h>... " >&6; } 39802if test ${gl_cv_next_stdarg_h+y} 39803then : 39804 printf %s "(cached) " >&6 39805else $as_nop 39806 39807 39808 39809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39810/* end confdefs.h. */ 39811#include <stdarg.h> 39812_ACEOF 39813 case "$host_os" in 39814 aix*) gl_absname_cpp="$ac_cpp -C" ;; 39815 *) gl_absname_cpp="$ac_cpp" ;; 39816 esac 39817 39818 case "$host_os" in 39819 mingw*) 39820 gl_dirsep_regex='[/\\]' 39821 ;; 39822 *) 39823 gl_dirsep_regex='\/' 39824 ;; 39825 esac 39826 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 39827 gl_header_literal_regex=`echo 'stdarg.h' \ 39828 | sed -e "$gl_make_literal_regex_sed"` 39829 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 39830 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 39831 s|^/[^/]|//&| 39832 p 39833 q 39834 }' 39835 39836 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 39837 sed -n "$gl_absolute_header_sed"` 39838 39839 gl_header=$gl_cv_absolute_stdarg_h 39840 gl_cv_next_stdarg_h='"'$gl_header'"' 39841 39842 39843fi 39844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 39845printf "%s\n" "$gl_cv_next_stdarg_h" >&6; } 39846 fi 39847 NEXT_STDARG_H=$gl_cv_next_stdarg_h 39848 39849 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 39850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 39851 gl_next_as_first_directive='<'stdarg.h'>' 39852 else 39853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 39854 gl_next_as_first_directive=$gl_cv_next_stdarg_h 39855 fi 39856 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive 39857 39858 39859 39860 39861 if test "$gl_cv_next_stdarg_h" = '""'; then 39862 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' 39863 NEXT_STDARG_H="$gl_cv_next_stdarg_h" 39864 fi 39865 else 39866 39867 39868 exec 9>&6 6>/dev/null 39869 39870 if test ${gl_cv_func___va_copy+y} 39871then : 39872 printf %s "(cached) " >&6 39873else $as_nop 39874 39875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39876/* end confdefs.h. */ 39877#include <stdarg.h> 39878int 39879main (void) 39880{ 39881 39882#ifndef __va_copy 39883error, bail out 39884#endif 39885 39886 ; 39887 return 0; 39888} 39889_ACEOF 39890if ac_fn_c_try_compile "$LINENO" 39891then : 39892 gl_cv_func___va_copy=yes 39893else $as_nop 39894 gl_cv_func___va_copy=no 39895fi 39896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39897fi 39898 39899 39900 exec 6>&9 9>&- 39901 39902 39903 if test $gl_cv_func___va_copy = yes; then 39904 39905printf "%s\n" "#define va_copy __va_copy" >>confdefs.h 39906 39907 else 39908 39909 39910printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h 39911 39912 fi 39913 fi 39914 fi 39915 39916 if test -n "$STDARG_H"; then 39917 GL_GENERATE_STDARG_H_TRUE= 39918 GL_GENERATE_STDARG_H_FALSE='#' 39919else 39920 GL_GENERATE_STDARG_H_TRUE='#' 39921 GL_GENERATE_STDARG_H_FALSE= 39922fi 39923 39924 39925 39926 39927 39928 39929 39930 if test "$ac_cv_header_stdbool_h" = yes; then 39931 case "$host_os" in 39932 solaris*) 39933 if test -z "$GCC"; then 39934 STDBOOL_H='stdbool.h' 39935 else 39936 STDBOOL_H='' 39937 fi 39938 ;; 39939 *) 39940 STDBOOL_H='' 39941 ;; 39942 esac 39943 else 39944 STDBOOL_H='stdbool.h' 39945 fi 39946 39947 if test -n "$STDBOOL_H"; then 39948 GL_GENERATE_STDBOOL_H_TRUE= 39949 GL_GENERATE_STDBOOL_H_FALSE='#' 39950else 39951 GL_GENERATE_STDBOOL_H_TRUE='#' 39952 GL_GENERATE_STDBOOL_H_FALSE= 39953fi 39954 39955 39956 if test "$ac_cv_type__Bool" = yes; then 39957 HAVE__BOOL=1 39958 else 39959 HAVE__BOOL=0 39960 fi 39961 39962 39963 39964 39965 39966 STDDEF_H= 39967 39968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5 39969printf %s "checking for good max_align_t... " >&6; } 39970if test ${gl_cv_type_max_align_t+y} 39971then : 39972 printf %s "(cached) " >&6 39973else $as_nop 39974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39975/* end confdefs.h. */ 39976#include <stddef.h> 39977 unsigned int s = sizeof (max_align_t); 39978 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__ 39979 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1]; 39980 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1]; 39981 #endif 39982 39983int 39984main (void) 39985{ 39986 39987 ; 39988 return 0; 39989} 39990_ACEOF 39991if ac_fn_c_try_compile "$LINENO" 39992then : 39993 gl_cv_type_max_align_t=yes 39994else $as_nop 39995 gl_cv_type_max_align_t=no 39996fi 39997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 39998 39999fi 40000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5 40001printf "%s\n" "$gl_cv_type_max_align_t" >&6; } 40002 if test $gl_cv_type_max_align_t = no; then 40003 HAVE_MAX_ALIGN_T=0 40004 STDDEF_H=stddef.h 40005 fi 40006 40007 if test $gt_cv_c_wchar_t = no; then 40008 HAVE_WCHAR_T=0 40009 STDDEF_H=stddef.h 40010 fi 40011 40012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 40013printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; } 40014if test ${gl_cv_decl_null_works+y} 40015then : 40016 printf %s "(cached) " >&6 40017else $as_nop 40018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40019/* end confdefs.h. */ 40020#include <stddef.h> 40021 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 40022 40023int 40024main (void) 40025{ 40026 40027 ; 40028 return 0; 40029} 40030_ACEOF 40031if ac_fn_c_try_compile "$LINENO" 40032then : 40033 gl_cv_decl_null_works=yes 40034else $as_nop 40035 gl_cv_decl_null_works=no 40036fi 40037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40038fi 40039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 40040printf "%s\n" "$gl_cv_decl_null_works" >&6; } 40041 if test $gl_cv_decl_null_works = no; then 40042 REPLACE_NULL=1 40043 STDDEF_H=stddef.h 40044 fi 40045 40046 40047 if test -n "$STDDEF_H"; then 40048 GL_GENERATE_STDDEF_H_TRUE= 40049 GL_GENERATE_STDDEF_H_FALSE='#' 40050else 40051 GL_GENERATE_STDDEF_H_TRUE='#' 40052 GL_GENERATE_STDDEF_H_FALSE= 40053fi 40054 40055 if test -n "$STDDEF_H"; then 40056 40057 40058 40059 40060 40061 40062 40063 40064 if test $gl_cv_have_include_next = yes; then 40065 gl_cv_next_stddef_h='<'stddef.h'>' 40066 else 40067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 40068printf %s "checking absolute name of <stddef.h>... " >&6; } 40069if test ${gl_cv_next_stddef_h+y} 40070then : 40071 printf %s "(cached) " >&6 40072else $as_nop 40073 40074 40075 40076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40077/* end confdefs.h. */ 40078#include <stddef.h> 40079_ACEOF 40080 case "$host_os" in 40081 aix*) gl_absname_cpp="$ac_cpp -C" ;; 40082 *) gl_absname_cpp="$ac_cpp" ;; 40083 esac 40084 40085 case "$host_os" in 40086 mingw*) 40087 gl_dirsep_regex='[/\\]' 40088 ;; 40089 *) 40090 gl_dirsep_regex='\/' 40091 ;; 40092 esac 40093 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 40094 gl_header_literal_regex=`echo 'stddef.h' \ 40095 | sed -e "$gl_make_literal_regex_sed"` 40096 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 40097 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 40098 s|^/[^/]|//&| 40099 p 40100 q 40101 }' 40102 40103 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 40104 sed -n "$gl_absolute_header_sed"` 40105 40106 gl_header=$gl_cv_absolute_stddef_h 40107 gl_cv_next_stddef_h='"'$gl_header'"' 40108 40109 40110fi 40111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 40112printf "%s\n" "$gl_cv_next_stddef_h" >&6; } 40113 fi 40114 NEXT_STDDEF_H=$gl_cv_next_stddef_h 40115 40116 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 40117 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 40118 gl_next_as_first_directive='<'stddef.h'>' 40119 else 40120 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 40121 gl_next_as_first_directive=$gl_cv_next_stddef_h 40122 fi 40123 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 40124 40125 40126 40127 40128 fi 40129 40130 40131 40132 40133 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 40134 40135 40136 40137 40138 40139 40140 40141 40142 40143 40144 if test $gl_cv_have_include_next = yes; then 40145 gl_cv_next_stdio_h='<'stdio.h'>' 40146 else 40147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 40148printf %s "checking absolute name of <stdio.h>... " >&6; } 40149if test ${gl_cv_next_stdio_h+y} 40150then : 40151 printf %s "(cached) " >&6 40152else $as_nop 40153 40154 40155 40156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40157/* end confdefs.h. */ 40158#include <stdio.h> 40159_ACEOF 40160 case "$host_os" in 40161 aix*) gl_absname_cpp="$ac_cpp -C" ;; 40162 *) gl_absname_cpp="$ac_cpp" ;; 40163 esac 40164 40165 case "$host_os" in 40166 mingw*) 40167 gl_dirsep_regex='[/\\]' 40168 ;; 40169 *) 40170 gl_dirsep_regex='\/' 40171 ;; 40172 esac 40173 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 40174 gl_header_literal_regex=`echo 'stdio.h' \ 40175 | sed -e "$gl_make_literal_regex_sed"` 40176 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 40177 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 40178 s|^/[^/]|//&| 40179 p 40180 q 40181 }' 40182 40183 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 40184 sed -n "$gl_absolute_header_sed"` 40185 40186 gl_header=$gl_cv_absolute_stdio_h 40187 gl_cv_next_stdio_h='"'$gl_header'"' 40188 40189 40190fi 40191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 40192printf "%s\n" "$gl_cv_next_stdio_h" >&6; } 40193 fi 40194 NEXT_STDIO_H=$gl_cv_next_stdio_h 40195 40196 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 40197 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 40198 gl_next_as_first_directive='<'stdio.h'>' 40199 else 40200 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 40201 gl_next_as_first_directive=$gl_cv_next_stdio_h 40202 fi 40203 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 40204 40205 40206 40207 40208 40209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 40210printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; } 40211if test ${gl_cv_func_printf_attribute_flavor+y} 40212then : 40213 printf %s "(cached) " >&6 40214else $as_nop 40215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40216/* end confdefs.h. */ 40217 40218 #define __STDC_FORMAT_MACROS 1 40219 #include <stdio.h> 40220 #include <inttypes.h> 40221 /* For non-mingw systems, compilation will trivially succeed. 40222 For mingw, compilation will succeed for older mingw (system 40223 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ 40224 #if (defined _WIN32 && ! defined __CYGWIN__) && \ 40225 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 40226 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; 40227 #endif 40228 40229int 40230main (void) 40231{ 40232 40233 ; 40234 return 0; 40235} 40236_ACEOF 40237if ac_fn_c_try_compile "$LINENO" 40238then : 40239 gl_cv_func_printf_attribute_flavor=system 40240else $as_nop 40241 gl_cv_func_printf_attribute_flavor=gnu 40242fi 40243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 40244fi 40245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 40246printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; } 40247 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then 40248 40249printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h 40250 40251 fi 40252 40253 GNULIB_FSCANF=1 40254 40255 40256printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h 40257 40258 40259 GNULIB_SCANF=1 40260 40261 40262printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h 40263 40264 40265 GNULIB_FGETC=1 40266 GNULIB_GETC=1 40267 GNULIB_GETCHAR=1 40268 GNULIB_FGETS=1 40269 GNULIB_FREAD=1 40270 40271 40272 GNULIB_FPRINTF=1 40273 GNULIB_PRINTF=1 40274 GNULIB_VFPRINTF=1 40275 GNULIB_VPRINTF=1 40276 GNULIB_FPUTC=1 40277 GNULIB_PUTC=1 40278 GNULIB_PUTCHAR=1 40279 GNULIB_FPUTS=1 40280 GNULIB_PUTS=1 40281 GNULIB_FWRITE=1 40282 40283 40284 40285 40286 40287 40288 40289 40290 40291 40292 if test $ac_cv_have_decl_fcloseall = no; then 40293 HAVE_DECL_FCLOSEALL=0 40294 fi 40295 40296 40297 40298 40299 40300 40301 40302 40303 40304 40305 40306 if test $gl_cv_have_include_next = yes; then 40307 gl_cv_next_stdlib_h='<'stdlib.h'>' 40308 else 40309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 40310printf %s "checking absolute name of <stdlib.h>... " >&6; } 40311if test ${gl_cv_next_stdlib_h+y} 40312then : 40313 printf %s "(cached) " >&6 40314else $as_nop 40315 40316 40317 40318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40319/* end confdefs.h. */ 40320#include <stdlib.h> 40321_ACEOF 40322 case "$host_os" in 40323 aix*) gl_absname_cpp="$ac_cpp -C" ;; 40324 *) gl_absname_cpp="$ac_cpp" ;; 40325 esac 40326 40327 case "$host_os" in 40328 mingw*) 40329 gl_dirsep_regex='[/\\]' 40330 ;; 40331 *) 40332 gl_dirsep_regex='\/' 40333 ;; 40334 esac 40335 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 40336 gl_header_literal_regex=`echo 'stdlib.h' \ 40337 | sed -e "$gl_make_literal_regex_sed"` 40338 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 40339 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 40340 s|^/[^/]|//&| 40341 p 40342 q 40343 }' 40344 40345 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 40346 sed -n "$gl_absolute_header_sed"` 40347 40348 gl_header=$gl_cv_absolute_stdlib_h 40349 gl_cv_next_stdlib_h='"'$gl_header'"' 40350 40351 40352fi 40353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 40354printf "%s\n" "$gl_cv_next_stdlib_h" >&6; } 40355 fi 40356 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 40357 40358 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 40359 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 40360 gl_next_as_first_directive='<'stdlib.h'>' 40361 else 40362 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 40363 gl_next_as_first_directive=$gl_cv_next_stdlib_h 40364 fi 40365 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 40366 40367 40368 40369 40370 40371 40372 40373 40374 40375 40376 40377 40378 if test $ac_cv_have_decl_ecvt = no; then 40379 HAVE_DECL_ECVT=0 40380 fi 40381 40382 if test $ac_cv_have_decl_fcvt = no; then 40383 HAVE_DECL_FCVT=0 40384 fi 40385 40386 if test $ac_cv_have_decl_gcvt = no; then 40387 HAVE_DECL_GCVT=0 40388 fi 40389 40390 40391 40392 40393 if test $gl_cv_func_malloc_posix != yes; then 40394 REPLACE_STRDUP=1 40395 fi 40396 40397 if test $ac_cv_have_decl_strdup = no; then 40398 HAVE_DECL_STRDUP=0 40399 fi 40400 40401 if test $REPLACE_STRDUP = 1; then 40402 40403 40404 40405 40406 40407 40408 40409 40410 gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext" 40411 40412 : 40413 fi 40414 40415 40416 40417 40418 40419 GNULIB_STRDUP=1 40420 40421 40422 40423 40424 40425printf "%s\n" "#define GNULIB_TEST_STRDUP 1" >>confdefs.h 40426 40427 40428 40429 40430 40431 40432 40433 40434 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 40435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 40436printf %s "checking for working strerror function... " >&6; } 40437if test ${gl_cv_func_working_strerror+y} 40438then : 40439 printf %s "(cached) " >&6 40440else $as_nop 40441 if test "$cross_compiling" = yes 40442then : 40443 case "$host_os" in 40444 # Guess yes on glibc systems. 40445 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; 40446 # Guess yes on musl systems. 40447 *-musl*) gl_cv_func_working_strerror="guessing yes" ;; 40448 # If we don't know, obey --enable-cross-guesses. 40449 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;; 40450 esac 40451 40452else $as_nop 40453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40454/* end confdefs.h. */ 40455#include <string.h> 40456 40457int 40458main (void) 40459{ 40460if (!*strerror (-2)) return 1; 40461 ; 40462 return 0; 40463} 40464_ACEOF 40465if ac_fn_c_try_run "$LINENO" 40466then : 40467 gl_cv_func_working_strerror=yes 40468else $as_nop 40469 gl_cv_func_working_strerror=no 40470fi 40471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40472 conftest.$ac_objext conftest.beam conftest.$ac_ext 40473fi 40474 40475 40476fi 40477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 40478printf "%s\n" "$gl_cv_func_working_strerror" >&6; } 40479 case "$gl_cv_func_working_strerror" in 40480 *yes) ;; 40481 *) 40482 REPLACE_STRERROR=1 40483 ;; 40484 esac 40485 40486 else 40487 REPLACE_STRERROR=1 40488 fi 40489 40490 if test $REPLACE_STRERROR = 1; then 40491 40492 40493 40494 40495 40496 40497 40498 40499 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" 40500 40501 fi 40502 40503 40504printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h 40505 40506 40507 40508 40509 40510 40511 40512 GNULIB_STRERROR=1 40513 40514 40515 40516 40517 40518printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h 40519 40520 40521 40522 40523 40524 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 40525 40526 40527 40528 40529 40530 40531 40532 40533 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext" 40534 40535 40536 40537 40538 40539 if test $ac_cv_header_sys_socket_h != yes; then 40540 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 40541if test "x$ac_cv_header_winsock2_h" = xyes 40542then : 40543 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 40544 40545fi 40546 40547 fi 40548 if test "$ac_cv_header_winsock2_h" = yes; then 40549 HAVE_WINSOCK2_H=1 40550 UNISTD_H_HAVE_WINSOCK2_H=1 40551 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 40552 else 40553 HAVE_WINSOCK2_H=0 40554 fi 40555 40556 40557 fi 40558 if test $gl_cond_libtool = false; then 40559 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" 40560 gl_libdeps="$gl_libdeps $LIBICONV" 40561 fi 40562 40563 40564 40565 40566 40567 40568 40569 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" 40570if test "x$ac_cv_func_strtok_r" = xyes 40571then : 40572 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h 40573 40574fi 40575 40576 if test $ac_cv_func_strtok_r = yes; then 40577 HAVE_STRTOK_R=1 40578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5 40579printf %s "checking whether strtok_r works... " >&6; } 40580if test ${gl_cv_func_strtok_r_works+y} 40581then : 40582 printf %s "(cached) " >&6 40583else $as_nop 40584 if test "$cross_compiling" = yes 40585then : 40586 case "$host_os" in 40587 # Guess no on glibc systems. 40588 *-gnu* | gnu*) gl_cv_func_strtok_r_works="guessing no" ;; 40589 # Guess yes on native Windows. 40590 mingw*) gl_cv_func_strtok_r_works="guessing yes" ;; 40591 *) gl_cv_func_strtok_r_works="guessing yes" ;; 40592 esac 40593 40594else $as_nop 40595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40596/* end confdefs.h. */ 40597 40598 #ifndef __OPTIMIZE__ 40599 # define __OPTIMIZE__ 1 40600 #endif 40601 #undef __OPTIMIZE_SIZE__ 40602 #undef __NO_INLINE__ 40603 #include <stdlib.h> 40604 #include <string.h> 40605 40606int 40607main (void) 40608{ 40609static const char dummy[] = "\177\01a"; 40610 char delimiters[] = "xxxxxxxx"; 40611 char *save_ptr = (char *) dummy; 40612 strtok_r (delimiters, "x", &save_ptr); 40613 strtok_r (NULL, "x", &save_ptr); 40614 return 0; 40615 40616 ; 40617 return 0; 40618} 40619 40620_ACEOF 40621if ac_fn_c_try_run "$LINENO" 40622then : 40623 gl_cv_func_strtok_r_works=yes 40624else $as_nop 40625 gl_cv_func_strtok_r_works=no 40626fi 40627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40628 conftest.$ac_objext conftest.beam conftest.$ac_ext 40629fi 40630 40631 40632fi 40633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5 40634printf "%s\n" "$gl_cv_func_strtok_r_works" >&6; } 40635 case "$gl_cv_func_strtok_r_works" in 40636 *no) 40637 UNDEFINE_STRTOK_R=1 40638 ;; 40639 esac 40640 else 40641 HAVE_STRTOK_R=0 40642 fi 40643 40644 if test $ac_cv_have_decl_strtok_r = no; then 40645 HAVE_DECL_STRTOK_R=0 40646 fi 40647 40648 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then 40649 40650 40651 40652 40653 40654 40655 40656 40657 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext" 40658 40659 40660 : 40661 40662 fi 40663 40664 40665 40666 40667 40668 GNULIB_STRTOK_R=1 40669 40670 40671 40672 40673 40674printf "%s\n" "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h 40675 40676 40677 40678 40679 40680 40681 40682 40683 40684 40685 40686 40687 40688 40689 40690 40691 40692 40693 40694 40695 40696 if test $gl_cv_have_include_next = yes; then 40697 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 40698 else 40699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 40700printf %s "checking absolute name of <sys/stat.h>... " >&6; } 40701if test ${gl_cv_next_sys_stat_h+y} 40702then : 40703 printf %s "(cached) " >&6 40704else $as_nop 40705 40706 if test $ac_cv_header_sys_stat_h = yes; then 40707 40708 40709 40710 40711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40712/* end confdefs.h. */ 40713#include <sys/stat.h> 40714_ACEOF 40715 case "$host_os" in 40716 aix*) gl_absname_cpp="$ac_cpp -C" ;; 40717 *) gl_absname_cpp="$ac_cpp" ;; 40718 esac 40719 40720 case "$host_os" in 40721 mingw*) 40722 gl_dirsep_regex='[/\\]' 40723 ;; 40724 *) 40725 gl_dirsep_regex='\/' 40726 ;; 40727 esac 40728 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 40729 gl_header_literal_regex=`echo 'sys/stat.h' \ 40730 | sed -e "$gl_make_literal_regex_sed"` 40731 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 40732 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 40733 s|^/[^/]|//&| 40734 p 40735 q 40736 }' 40737 40738 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 40739 sed -n "$gl_absolute_header_sed"` 40740 40741 gl_header=$gl_cv_absolute_sys_stat_h 40742 gl_cv_next_sys_stat_h='"'$gl_header'"' 40743 else 40744 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 40745 fi 40746 40747 40748fi 40749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 40750printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; } 40751 fi 40752 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 40753 40754 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 40755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 40756 gl_next_as_first_directive='<'sys/stat.h'>' 40757 else 40758 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 40759 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 40760 fi 40761 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 40762 40763 40764 40765 40766 40767 40768 40769 40770 WINDOWS_STAT_TIMESPEC=0 40771 40772 40773 40774 40775 40776 40777 40778 40779 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 40780 #include <sys/stat.h> 40781" 40782if test "x$ac_cv_type_nlink_t" = xyes 40783then : 40784 40785else $as_nop 40786 40787printf "%s\n" "#define nlink_t int" >>confdefs.h 40788 40789fi 40790 40791 40792 40793 40794 40795 40796 40797 40798 40799 40800 40801 40802 40803 40804 40805 40806 40807 40808 40809 40810 40811 40812 40813 40814 40815 40816 if test $gl_cv_have_include_next = yes; then 40817 gl_cv_next_sys_uio_h='<'sys/uio.h'>' 40818 else 40819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5 40820printf %s "checking absolute name of <sys/uio.h>... " >&6; } 40821if test ${gl_cv_next_sys_uio_h+y} 40822then : 40823 printf %s "(cached) " >&6 40824else $as_nop 40825 40826 if test $ac_cv_header_sys_uio_h = yes; then 40827 40828 40829 40830 40831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40832/* end confdefs.h. */ 40833#include <sys/uio.h> 40834_ACEOF 40835 case "$host_os" in 40836 aix*) gl_absname_cpp="$ac_cpp -C" ;; 40837 *) gl_absname_cpp="$ac_cpp" ;; 40838 esac 40839 40840 case "$host_os" in 40841 mingw*) 40842 gl_dirsep_regex='[/\\]' 40843 ;; 40844 *) 40845 gl_dirsep_regex='\/' 40846 ;; 40847 esac 40848 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 40849 gl_header_literal_regex=`echo 'sys/uio.h' \ 40850 | sed -e "$gl_make_literal_regex_sed"` 40851 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 40852 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 40853 s|^/[^/]|//&| 40854 p 40855 q 40856 }' 40857 40858 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 40859 sed -n "$gl_absolute_header_sed"` 40860 40861 gl_header=$gl_cv_absolute_sys_uio_h 40862 gl_cv_next_sys_uio_h='"'$gl_header'"' 40863 else 40864 gl_cv_next_sys_uio_h='<'sys/uio.h'>' 40865 fi 40866 40867 40868fi 40869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5 40870printf "%s\n" "$gl_cv_next_sys_uio_h" >&6; } 40871 fi 40872 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h 40873 40874 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 40875 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 40876 gl_next_as_first_directive='<'sys/uio.h'>' 40877 else 40878 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 40879 gl_next_as_first_directive=$gl_cv_next_sys_uio_h 40880 fi 40881 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive 40882 40883 40884 40885 40886 if test $ac_cv_header_sys_uio_h = yes; then 40887 HAVE_SYS_UIO_H=1 40888 else 40889 HAVE_SYS_UIO_H=0 40890 fi 40891 40892 40893 40894 40895 40896 40897 40898 40899 40900 40901 40902 40903 40904 40905 40906 40907 40908 40909 if test $gl_cv_have_include_next = yes; then 40910 gl_cv_next_unistd_h='<'unistd.h'>' 40911 else 40912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 40913printf %s "checking absolute name of <unistd.h>... " >&6; } 40914if test ${gl_cv_next_unistd_h+y} 40915then : 40916 printf %s "(cached) " >&6 40917else $as_nop 40918 40919 if test $ac_cv_header_unistd_h = yes; then 40920 40921 40922 40923 40924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40925/* end confdefs.h. */ 40926#include <unistd.h> 40927_ACEOF 40928 case "$host_os" in 40929 aix*) gl_absname_cpp="$ac_cpp -C" ;; 40930 *) gl_absname_cpp="$ac_cpp" ;; 40931 esac 40932 40933 case "$host_os" in 40934 mingw*) 40935 gl_dirsep_regex='[/\\]' 40936 ;; 40937 *) 40938 gl_dirsep_regex='\/' 40939 ;; 40940 esac 40941 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 40942 gl_header_literal_regex=`echo 'unistd.h' \ 40943 | sed -e "$gl_make_literal_regex_sed"` 40944 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 40945 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 40946 s|^/[^/]|//&| 40947 p 40948 q 40949 }' 40950 40951 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 40952 sed -n "$gl_absolute_header_sed"` 40953 40954 gl_header=$gl_cv_absolute_unistd_h 40955 gl_cv_next_unistd_h='"'$gl_header'"' 40956 else 40957 gl_cv_next_unistd_h='<'unistd.h'>' 40958 fi 40959 40960 40961fi 40962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 40963printf "%s\n" "$gl_cv_next_unistd_h" >&6; } 40964 fi 40965 NEXT_UNISTD_H=$gl_cv_next_unistd_h 40966 40967 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 40968 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 40969 gl_next_as_first_directive='<'unistd.h'>' 40970 else 40971 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 40972 gl_next_as_first_directive=$gl_cv_next_unistd_h 40973 fi 40974 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 40975 40976 40977 40978 40979 if test $ac_cv_header_unistd_h = yes; then 40980 HAVE_UNISTD_H=1 40981 else 40982 HAVE_UNISTD_H=0 40983 fi 40984 40985 40986 40987 40988 40989 40990 40991 40992 40993 40994 40995 40996 40997 if test $ac_cv_have_decl_execvpe = no; then 40998 HAVE_DECL_EXECVPE=0 40999 fi 41000 41001 41002 41003 if { test "$HAVE_LIBUNISTRING" != yes \ 41004 || { 41005 41006 41007 41008 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 41009 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 41010 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 41011 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 41012 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 41013 } 41014 } 41015 } 41016 41017 41018 41019 41020 } 41021 }; then 41022 LIBUNISTRING_UNISTR_H='unistr.h' 41023 else 41024 LIBUNISTRING_UNISTR_H= 41025 fi 41026 41027 41028 41029 41030printf "%s\n" "#define GNULIB_UNISTR_U8_MBTOUCR 1" >>confdefs.h 41031 41032 41033 41034 41035 if { test "$HAVE_LIBUNISTRING" != yes \ 41036 || { 41037 41038 41039 41040 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 41041 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 41042 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 41043 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 41044 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 41045 } 41046 } 41047 } 41048 41049 41050 41051 41052 } 41053 }; then 41054 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE= 41055 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#' 41056else 41057 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#' 41058 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE= 41059fi 41060 41061 41062 41063 41064printf "%s\n" "#define GNULIB_UNISTR_U8_UCTOMB 1" >>confdefs.h 41065 41066 41067 41068 41069 if { test "$HAVE_LIBUNISTRING" != yes \ 41070 || { 41071 41072 41073 41074 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 41075 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 41076 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 41077 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 41078 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 41079 } 41080 } 41081 } 41082 41083 41084 41085 41086 } 41087 }; then 41088 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE= 41089 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#' 41090else 41091 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#' 41092 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE= 41093fi 41094 41095 41096 41097 41098 if { test "$HAVE_LIBUNISTRING" != yes \ 41099 || { 41100 41101 41102 41103 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 41104 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 41105 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 41106 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 41107 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 41108 } 41109 } 41110 } 41111 41112 41113 41114 41115 } 41116 }; then 41117 LIBUNISTRING_UNITYPES_H='unitypes.h' 41118 else 41119 LIBUNISTRING_UNITYPES_H= 41120 fi 41121 41122 41123 41124 # Check whether --enable-valgrind-tests was given. 41125if test ${enable_valgrind_tests+y} 41126then : 41127 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval 41128else $as_nop 41129 opt_valgrind_tests=yes 41130fi 41131 41132 41133 # Run self-tests under valgrind? 41134 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then 41135 for ac_prog in valgrind 41136do 41137 # Extract the first word of "$ac_prog", so it can be a program name with args. 41138set dummy $ac_prog; ac_word=$2 41139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41140printf %s "checking for $ac_word... " >&6; } 41141if test ${ac_cv_prog_VALGRIND+y} 41142then : 41143 printf %s "(cached) " >&6 41144else $as_nop 41145 if test -n "$VALGRIND"; then 41146 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 41147else 41148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41149for as_dir in $PATH 41150do 41151 IFS=$as_save_IFS 41152 case $as_dir in #((( 41153 '') as_dir=./ ;; 41154 */) ;; 41155 *) as_dir=$as_dir/ ;; 41156 esac 41157 for ac_exec_ext in '' $ac_executable_extensions; do 41158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 41159 ac_cv_prog_VALGRIND="$ac_prog" 41160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 41161 break 2 41162 fi 41163done 41164 done 41165IFS=$as_save_IFS 41166 41167fi 41168fi 41169VALGRIND=$ac_cv_prog_VALGRIND 41170if test -n "$VALGRIND"; then 41171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 41172printf "%s\n" "$VALGRIND" >&6; } 41173else 41174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 41175printf "%s\n" "no" >&6; } 41176fi 41177 41178 41179 test -n "$VALGRIND" && break 41180done 41181 41182 41183 if test "$VALGRIND"; then 41184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5 41185printf %s "checking for valgrind options for tests... " >&6; } 41186if test ${gl_cv_opt_valgrind_tests+y} 41187then : 41188 printf %s "(cached) " >&6 41189else $as_nop 41190 gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full" 41191 $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 || 41192 gl_cv_opt_valgrind_tests=no 41193fi 41194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5 41195printf "%s\n" "$gl_cv_opt_valgrind_tests" >&6; } 41196 41197 if test "$gl_cv_opt_valgrind_tests" != no; then 41198 VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests" 41199 else 41200 VALGRIND= 41201 fi 41202 fi 41203 fi 41204 41205 41206 41207 41208 if test $ac_cv_func_vasnprintf = no; then 41209 41210 41211 41212 41213 41214 41215 41216 41217 41218 41219 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext" 41220 41221 41222 41223 41224 41225 41226 41227 41228 41229 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext" 41230 41231 41232 41233 41234 41235 41236 41237 41238 41239 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext" 41240 41241 41242 41243 41244 41245 41246 41247 41248 41249 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext" 41250 41251 if test $ac_cv_func_vasnprintf = yes; then 41252 41253printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h 41254 41255 fi 41256 41257 41258 41259 41260 41261 41262 41263 41264 41265 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 41266if test "x$ac_cv_type_ptrdiff_t" = xyes 41267then : 41268 41269else $as_nop 41270 41271printf "%s\n" "#define ptrdiff_t long" >>confdefs.h 41272 41273 41274fi 41275 41276 41277 41278 41279 41280 41281 41282 fi 41283 41284 41285 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 41286if test "x$ac_cv_func_vasprintf" = xyes 41287then : 41288 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 41289 41290fi 41291 41292 if test $ac_cv_func_vasprintf = no; then 41293 41294 41295 41296 41297 41298 41299 41300 41301 41302 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext" 41303 41304 41305 41306 41307 41308 41309 41310 41311 41312 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext" 41313 41314 41315 if test $ac_cv_func_vasprintf = yes; then 41316 REPLACE_VASPRINTF=1 41317 else 41318 HAVE_VASPRINTF=0 41319 fi 41320 41321 41322 41323 41324 41325 41326 41327 41328 fi 41329 41330 41331 41332 41333 41334 41335 GNULIB_VASPRINTF=1 41336 41337 41338 41339 41340 41341printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h 41342 41343 41344 41345 41346 41347 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format" 41348 41349 41350 41351 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format" 41352 41353 41354# Check whether --with-packager was given. 41355if test ${with_packager+y} 41356then : 41357 withval=$with_packager; case $withval in 41358 yes|no) ;; 41359 *) 41360printf "%s\n" "#define PACKAGE_PACKAGER \"$withval\"" >>confdefs.h 41361 ;; 41362 esac 41363 41364fi 41365 41366 41367 41368# Check whether --with-packager-version was given. 41369if test ${with_packager_version+y} 41370then : 41371 withval=$with_packager_version; case $withval in 41372 yes|no) ;; 41373 *) 41374printf "%s\n" "#define PACKAGE_PACKAGER_VERSION \"$withval\"" >>confdefs.h 41375 ;; 41376 esac 41377 41378fi 41379 41380 41381 41382# Check whether --with-packager-bug-reports was given. 41383if test ${with_packager_bug_reports+y} 41384then : 41385 withval=$with_packager_bug_reports; case $withval in 41386 yes|no) ;; 41387 *) 41388printf "%s\n" "#define PACKAGE_PACKAGER_BUG_REPORTS \"$withval\"" >>confdefs.h 41389 ;; 41390 esac 41391 41392fi 41393 41394 41395 if test "X$with_packager" = "X" && \ 41396 test "X$with_packager_version$with_packager_bug_reports" != "X" 41397 then 41398 as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5 41399 fi 41400 41401 41402 41403 41404 41405 41406 41407 41408 41409 41410 41411 41412 41413 if test $gl_cv_have_include_next = yes; then 41414 gl_cv_next_wchar_h='<'wchar.h'>' 41415 else 41416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 41417printf %s "checking absolute name of <wchar.h>... " >&6; } 41418if test ${gl_cv_next_wchar_h+y} 41419then : 41420 printf %s "(cached) " >&6 41421else $as_nop 41422 41423 if test $ac_cv_header_wchar_h = yes; then 41424 41425 41426 41427 41428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41429/* end confdefs.h. */ 41430#include <wchar.h> 41431_ACEOF 41432 case "$host_os" in 41433 aix*) gl_absname_cpp="$ac_cpp -C" ;; 41434 *) gl_absname_cpp="$ac_cpp" ;; 41435 esac 41436 41437 case "$host_os" in 41438 mingw*) 41439 gl_dirsep_regex='[/\\]' 41440 ;; 41441 *) 41442 gl_dirsep_regex='\/' 41443 ;; 41444 esac 41445 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 41446 gl_header_literal_regex=`echo 'wchar.h' \ 41447 | sed -e "$gl_make_literal_regex_sed"` 41448 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 41449 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 41450 s|^/[^/]|//&| 41451 p 41452 q 41453 }' 41454 41455 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 41456 sed -n "$gl_absolute_header_sed"` 41457 41458 gl_header=$gl_cv_absolute_wchar_h 41459 gl_cv_next_wchar_h='"'$gl_header'"' 41460 else 41461 gl_cv_next_wchar_h='<'wchar.h'>' 41462 fi 41463 41464 41465fi 41466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 41467printf "%s\n" "$gl_cv_next_wchar_h" >&6; } 41468 fi 41469 NEXT_WCHAR_H=$gl_cv_next_wchar_h 41470 41471 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 41472 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 41473 gl_next_as_first_directive='<'wchar.h'>' 41474 else 41475 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 41476 gl_next_as_first_directive=$gl_cv_next_wchar_h 41477 fi 41478 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 41479 41480 41481 41482 41483 if test $ac_cv_header_wchar_h = yes; then 41484 HAVE_WCHAR_H=1 41485 else 41486 HAVE_WCHAR_H=0 41487 fi 41488 41489 41490 41491 41492 41493 if test $gt_cv_c_wint_t = yes; then 41494 HAVE_WINT_T=1 41495 else 41496 HAVE_WINT_T=0 41497 fi 41498 41499 41500 41501 41502 41503 41504 41505 41506 41507 41508 ac_fn_c_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" " 41509 #include <wchar.h> 41510 41511" 41512if test "x$ac_cv_have_decl_wcsdup" = xyes 41513then : 41514 ac_have_decl=1 41515else $as_nop 41516 ac_have_decl=0 41517fi 41518 41519printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h 41520 41521 if test $ac_cv_have_decl_wcsdup = no; then 41522 HAVE_DECL_WCSDUP=0 41523 fi 41524 41525 41526 41527 41528 41529 41530 if test $ac_cv_func_iswcntrl = yes; then 41531 HAVE_ISWCNTRL=1 41532 else 41533 HAVE_ISWCNTRL=0 41534 fi 41535 41536 41537 41538 if test $gt_cv_c_wint_t = yes; then 41539 HAVE_WINT_T=1 41540 else 41541 HAVE_WINT_T=0 41542 fi 41543 41544 41545 41546 41547 41548 41549 41550 41551 41552 41553 41554 41555 41556 if test $gl_cv_have_include_next = yes; then 41557 gl_cv_next_wctype_h='<'wctype.h'>' 41558 else 41559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5 41560printf %s "checking absolute name of <wctype.h>... " >&6; } 41561if test ${gl_cv_next_wctype_h+y} 41562then : 41563 printf %s "(cached) " >&6 41564else $as_nop 41565 41566 if test $ac_cv_header_wctype_h = yes; then 41567 41568 41569 41570 41571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41572/* end confdefs.h. */ 41573#include <wctype.h> 41574_ACEOF 41575 case "$host_os" in 41576 aix*) gl_absname_cpp="$ac_cpp -C" ;; 41577 *) gl_absname_cpp="$ac_cpp" ;; 41578 esac 41579 41580 case "$host_os" in 41581 mingw*) 41582 gl_dirsep_regex='[/\\]' 41583 ;; 41584 *) 41585 gl_dirsep_regex='\/' 41586 ;; 41587 esac 41588 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 41589 gl_header_literal_regex=`echo 'wctype.h' \ 41590 | sed -e "$gl_make_literal_regex_sed"` 41591 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 41592 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 41593 s|^/[^/]|//&| 41594 p 41595 q 41596 }' 41597 41598 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 41599 sed -n "$gl_absolute_header_sed"` 41600 41601 gl_header=$gl_cv_absolute_wctype_h 41602 gl_cv_next_wctype_h='"'$gl_header'"' 41603 else 41604 gl_cv_next_wctype_h='<'wctype.h'>' 41605 fi 41606 41607 41608fi 41609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5 41610printf "%s\n" "$gl_cv_next_wctype_h" >&6; } 41611 fi 41612 NEXT_WCTYPE_H=$gl_cv_next_wctype_h 41613 41614 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 41615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 41616 gl_next_as_first_directive='<'wctype.h'>' 41617 else 41618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 41619 gl_next_as_first_directive=$gl_cv_next_wctype_h 41620 fi 41621 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive 41622 41623 41624 41625 41626 if test $ac_cv_header_wctype_h = yes; then 41627 if test $ac_cv_func_iswcntrl = yes; then 41628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5 41629printf %s "checking whether iswcntrl works... " >&6; } 41630if test ${gl_cv_func_iswcntrl_works+y} 41631then : 41632 printf %s "(cached) " >&6 41633else $as_nop 41634 41635 if test "$cross_compiling" = yes 41636then : 41637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41638/* end confdefs.h. */ 41639#include <stdlib.h> 41640 #if __GNU_LIBRARY__ == 1 41641 Linux libc5 i18n is broken. 41642 #endif 41643int 41644main (void) 41645{ 41646 41647 ; 41648 return 0; 41649} 41650_ACEOF 41651if ac_fn_c_try_compile "$LINENO" 41652then : 41653 gl_cv_func_iswcntrl_works="guessing yes" 41654else $as_nop 41655 gl_cv_func_iswcntrl_works="guessing no" 41656fi 41657rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41658 41659else $as_nop 41660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41661/* end confdefs.h. */ 41662 41663 #include <wchar.h> 41664 #include <wctype.h> 41665 int main () { return iswprint ('x') == 0; } 41666 41667_ACEOF 41668if ac_fn_c_try_run "$LINENO" 41669then : 41670 gl_cv_func_iswcntrl_works=yes 41671else $as_nop 41672 gl_cv_func_iswcntrl_works=no 41673fi 41674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41675 conftest.$ac_objext conftest.beam conftest.$ac_ext 41676fi 41677 41678 41679fi 41680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5 41681printf "%s\n" "$gl_cv_func_iswcntrl_works" >&6; } 41682 fi 41683 HAVE_WCTYPE_H=1 41684 else 41685 HAVE_WCTYPE_H=0 41686 fi 41687 41688 41689 if test $GNULIB_OVERRIDES_WINT_T = 1; then 41690 REPLACE_ISWCNTRL=1 41691 else 41692 case "$gl_cv_func_iswcntrl_works" in 41693 *yes) REPLACE_ISWCNTRL=0 ;; 41694 *) REPLACE_ISWCNTRL=1 ;; 41695 esac 41696 fi 41697 41698 41699 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then 41700 : 41701 fi 41702 41703 if test $REPLACE_ISWCNTRL = 1; then 41704 REPLACE_TOWLOWER=1 41705 else 41706 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" 41707if test "x$ac_cv_func_towlower" = xyes 41708then : 41709 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h 41710 41711fi 41712 41713 if test $ac_cv_func_towlower = yes; then 41714 REPLACE_TOWLOWER=0 41715 else 41716 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "#include <wchar.h> 41717 #if HAVE_WCTYPE_H 41718 # include <wctype.h> 41719 #endif 41720 41721" 41722if test "x$ac_cv_have_decl_towlower" = xyes 41723then : 41724 ac_have_decl=1 41725else $as_nop 41726 ac_have_decl=0 41727fi 41728 41729printf "%s\n" "#define HAVE_DECL_TOWLOWER $ac_have_decl" >>confdefs.h 41730 41731 if test $ac_cv_have_decl_towlower = yes; then 41732 REPLACE_TOWLOWER=1 41733 else 41734 REPLACE_TOWLOWER=0 41735 fi 41736 fi 41737 fi 41738 41739 41740 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then 41741 : 41742 fi 41743 41744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5 41745printf %s "checking for wctype_t... " >&6; } 41746if test ${gl_cv_type_wctype_t+y} 41747then : 41748 printf %s "(cached) " >&6 41749else $as_nop 41750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41751/* end confdefs.h. */ 41752#include <wchar.h> 41753 #if HAVE_WCTYPE_H 41754 # include <wctype.h> 41755 #endif 41756 wctype_t a; 41757 41758int 41759main (void) 41760{ 41761 41762 ; 41763 return 0; 41764} 41765_ACEOF 41766if ac_fn_c_try_compile "$LINENO" 41767then : 41768 gl_cv_type_wctype_t=yes 41769else $as_nop 41770 gl_cv_type_wctype_t=no 41771fi 41772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41773 41774fi 41775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5 41776printf "%s\n" "$gl_cv_type_wctype_t" >&6; } 41777 if test $gl_cv_type_wctype_t = no; then 41778 HAVE_WCTYPE_T=0 41779 fi 41780 41781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5 41782printf %s "checking for wctrans_t... " >&6; } 41783if test ${gl_cv_type_wctrans_t+y} 41784then : 41785 printf %s "(cached) " >&6 41786else $as_nop 41787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41788/* end confdefs.h. */ 41789#include <wchar.h> 41790 #include <wctype.h> 41791 wctrans_t a; 41792 41793int 41794main (void) 41795{ 41796 41797 ; 41798 return 0; 41799} 41800_ACEOF 41801if ac_fn_c_try_compile "$LINENO" 41802then : 41803 gl_cv_type_wctrans_t=yes 41804else $as_nop 41805 gl_cv_type_wctrans_t=no 41806fi 41807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 41808 41809fi 41810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5 41811printf "%s\n" "$gl_cv_type_wctrans_t" >&6; } 41812 if test $gl_cv_type_wctrans_t = no; then 41813 HAVE_WCTRANS_T=0 41814 fi 41815 41816 41817 41818 41819 41820 : 41821 41822 41823printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h 41824 41825 41826 41827 41828printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h 41829 41830 41831 41832 41833 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 41834if test "x$ac_cv_header_stdint_h" = xyes 41835then : 41836 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 41837 41838fi 41839 41840 41841 # End of code from modules 41842 41843 41844 41845 41846 41847 41848 41849 41850 41851 gltests_libdeps= 41852 gltests_ltlibdeps= 41853 41854 41855 41856 41857 41858 41859 41860 41861 41862 41863 gl_source_base='gltests' 41864 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 41865 41866 gl_module_indicator_condition=$gltests_WITNESS 41867 41868 41869 41870 41871 41872 41873 41874 if test $ac_cv_func_btowc = no; then 41875 HAVE_BTOWC=0 41876 else 41877 41878 41879 41880 41881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(0) is correct" >&5 41882printf %s "checking whether btowc(0) is correct... " >&6; } 41883if test ${gl_cv_func_btowc_nul+y} 41884then : 41885 printf %s "(cached) " >&6 41886else $as_nop 41887 41888 if test "$cross_compiling" = yes 41889then : 41890 41891 case "$host_os" in 41892 # Guess no on Cygwin. 41893 cygwin*) gl_cv_func_btowc_nul="guessing no" ;; 41894 # Guess yes on native Windows. 41895 mingw*) gl_cv_func_btowc_nul="guessing yes" ;; 41896 # Guess yes otherwise. 41897 *) gl_cv_func_btowc_nul="guessing yes" ;; 41898 esac 41899 41900else $as_nop 41901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41902/* end confdefs.h. */ 41903 41904#include <wchar.h> 41905int main () 41906{ 41907 if (btowc ('\0') != 0) 41908 return 1; 41909 return 0; 41910} 41911_ACEOF 41912if ac_fn_c_try_run "$LINENO" 41913then : 41914 gl_cv_func_btowc_nul=yes 41915else $as_nop 41916 gl_cv_func_btowc_nul=no 41917fi 41918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41919 conftest.$ac_objext conftest.beam conftest.$ac_ext 41920fi 41921 41922 41923fi 41924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_nul" >&5 41925printf "%s\n" "$gl_cv_func_btowc_nul" >&6; } 41926 41927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether btowc(EOF) is correct" >&5 41928printf %s "checking whether btowc(EOF) is correct... " >&6; } 41929if test ${gl_cv_func_btowc_eof+y} 41930then : 41931 printf %s "(cached) " >&6 41932else $as_nop 41933 41934 case "$host_os" in 41935 # Guess no on IRIX. 41936 irix*) gl_cv_func_btowc_eof="guessing no" ;; 41937 # Guess yes on native Windows. 41938 mingw*) gl_cv_func_btowc_eof="guessing yes" ;; 41939 # Guess yes otherwise. 41940 *) gl_cv_func_btowc_eof="guessing yes" ;; 41941 esac 41942 if test $LOCALE_FR != none; then 41943 if test "$cross_compiling" = yes 41944then : 41945 : 41946else $as_nop 41947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41948/* end confdefs.h. */ 41949 41950#include <locale.h> 41951#include <stdio.h> 41952#include <wchar.h> 41953int main () 41954{ 41955 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 41956 { 41957 if (btowc (EOF) != WEOF) 41958 return 1; 41959 } 41960 return 0; 41961} 41962_ACEOF 41963if ac_fn_c_try_run "$LINENO" 41964then : 41965 gl_cv_func_btowc_eof=yes 41966else $as_nop 41967 gl_cv_func_btowc_eof=no 41968fi 41969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41970 conftest.$ac_objext conftest.beam conftest.$ac_ext 41971fi 41972 41973 fi 41974 41975fi 41976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_btowc_eof" >&5 41977printf "%s\n" "$gl_cv_func_btowc_eof" >&6; } 41978 41979 case "$gl_cv_func_btowc_nul" in 41980 *yes) ;; 41981 *) REPLACE_BTOWC=1 ;; 41982 esac 41983 case "$gl_cv_func_btowc_eof" in 41984 *yes) ;; 41985 *) REPLACE_BTOWC=1 ;; 41986 esac 41987 fi 41988 41989 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 41990 41991 41992 41993 41994 41995 41996 41997 41998 gltests_LIBOBJS="$gltests_LIBOBJS btowc.$ac_objext" 41999 42000 42001 : 42002 42003 fi 42004 42005 42006 42007 42008 42009 if test "$GNULIB_BTOWC" != 1; then 42010 if test "$GNULIB_BTOWC" = 0; then 42011 GNULIB_BTOWC=$gl_module_indicator_condition 42012 else 42013 GNULIB_BTOWC="($GNULIB_BTOWC || $gl_module_indicator_condition)" 42014 fi 42015 fi 42016 42017 42018 42019 42020 42021printf "%s\n" "#define GNULIB_TEST_BTOWC 1" >>confdefs.h 42022 42023 42024 42025 42026 42027 42028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 42029printf %s "checking for a traditional french locale... " >&6; } 42030if test ${gt_cv_locale_fr+y} 42031then : 42032 printf %s "(cached) " >&6 42033else $as_nop 42034 42035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42036/* end confdefs.h. */ 42037 42038#include <locale.h> 42039#include <time.h> 42040#if HAVE_LANGINFO_CODESET 42041# include <langinfo.h> 42042#endif 42043#include <stdlib.h> 42044#include <string.h> 42045struct tm t; 42046char buf[16]; 42047int main () { 42048 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 42049 imitates locale dependent behaviour by looking at the environment 42050 variables, and all locales use the UTF-8 encoding. */ 42051#if defined __BEOS__ || defined __HAIKU__ 42052 return 1; 42053#else 42054 /* Check whether the given locale name is recognized by the system. */ 42055# if defined _WIN32 && !defined __CYGWIN__ 42056 /* On native Windows, setlocale(category, "") looks at the system settings, 42057 not at the environment variables. Also, when an encoding suffix such 42058 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 42059 category of the locale to "C". */ 42060 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 42061 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 42062 return 1; 42063# else 42064 if (setlocale (LC_ALL, "") == NULL) return 1; 42065# endif 42066 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 42067 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 42068 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 42069 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 42070 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 42071 some unit tests fail. 42072 On MirBSD 10, when an unsupported locale is specified, setlocale() 42073 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 42074# if HAVE_LANGINFO_CODESET 42075 { 42076 const char *cs = nl_langinfo (CODESET); 42077 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 42078 || strcmp (cs, "UTF-8") == 0) 42079 return 1; 42080 } 42081# endif 42082# ifdef __CYGWIN__ 42083 /* On Cygwin, avoid locale names without encoding suffix, because the 42084 locale_charset() function relies on the encoding suffix. Note that 42085 LC_ALL is set on the command line. */ 42086 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 42087# endif 42088 /* Check whether in the abbreviation of the second month, the second 42089 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 42090 one byte long. This excludes the UTF-8 encoding. */ 42091 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 42092 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 42093# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 42094 /* Check whether the decimal separator is a comma. 42095 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 42096 are nl_langinfo(RADIXCHAR) are both ".". */ 42097 if (localeconv () ->decimal_point[0] != ',') return 1; 42098# endif 42099 return 0; 42100#endif 42101} 42102 42103_ACEOF 42104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 42105 (eval $ac_link) 2>&5 42106 ac_status=$? 42107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42108 test $ac_status = 0; } && test -s conftest$ac_exeext; then 42109 case "$host_os" in 42110 # Handle native Windows specially, because there setlocale() interprets 42111 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 42112 # "fr" or "fra" as "French" or "French_France.1252", 42113 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 42114 # "ja" as "Japanese" or "Japanese_Japan.932", 42115 # and similar. 42116 mingw*) 42117 # Test for the native Windows locale name. 42118 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42119 gt_cv_locale_fr=French_France.1252 42120 else 42121 # None found. 42122 gt_cv_locale_fr=none 42123 fi 42124 ;; 42125 *) 42126 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 42127 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 42128 # configure script would override the LC_ALL setting. Likewise for 42129 # LC_CTYPE, which is also set at the beginning of the configure script. 42130 # Test for the usual locale name. 42131 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42132 gt_cv_locale_fr=fr_FR 42133 else 42134 # Test for the locale name with explicit encoding suffix. 42135 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42136 gt_cv_locale_fr=fr_FR.ISO-8859-1 42137 else 42138 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 42139 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42140 gt_cv_locale_fr=fr_FR.ISO8859-1 42141 else 42142 # Test for the HP-UX locale name. 42143 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42144 gt_cv_locale_fr=fr_FR.iso88591 42145 else 42146 # Test for the Solaris 7 locale name. 42147 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42148 gt_cv_locale_fr=fr 42149 else 42150 # None found. 42151 gt_cv_locale_fr=none 42152 fi 42153 fi 42154 fi 42155 fi 42156 fi 42157 ;; 42158 esac 42159 fi 42160 rm -fr conftest* 42161 42162fi 42163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 42164printf "%s\n" "$gt_cv_locale_fr" >&6; } 42165 LOCALE_FR=$gt_cv_locale_fr 42166 42167 42168 42169 42170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 42171printf %s "checking for a french Unicode locale... " >&6; } 42172if test ${gt_cv_locale_fr_utf8+y} 42173then : 42174 printf %s "(cached) " >&6 42175else $as_nop 42176 42177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42178/* end confdefs.h. */ 42179 42180#include <locale.h> 42181#include <time.h> 42182#if HAVE_LANGINFO_CODESET 42183# include <langinfo.h> 42184#endif 42185#include <stdlib.h> 42186#include <string.h> 42187struct tm t; 42188char buf[16]; 42189int main () { 42190 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 42191 imitates locale dependent behaviour by looking at the environment 42192 variables, and all locales use the UTF-8 encoding. */ 42193#if !(defined __BEOS__ || defined __HAIKU__) 42194 /* Check whether the given locale name is recognized by the system. */ 42195# if defined _WIN32 && !defined __CYGWIN__ 42196 /* On native Windows, setlocale(category, "") looks at the system settings, 42197 not at the environment variables. Also, when an encoding suffix such 42198 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 42199 category of the locale to "C". */ 42200 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 42201 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 42202 return 1; 42203# else 42204 if (setlocale (LC_ALL, "") == NULL) return 1; 42205# endif 42206 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 42207 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 42208 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 42209 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 42210 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 42211 some unit tests fail. */ 42212# if HAVE_LANGINFO_CODESET 42213 { 42214 const char *cs = nl_langinfo (CODESET); 42215 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 42216 return 1; 42217 } 42218# endif 42219# ifdef __CYGWIN__ 42220 /* On Cygwin, avoid locale names without encoding suffix, because the 42221 locale_charset() function relies on the encoding suffix. Note that 42222 LC_ALL is set on the command line. */ 42223 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 42224# endif 42225 /* Check whether in the abbreviation of the second month, the second 42226 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 42227 two bytes long, with UTF-8 encoding. */ 42228 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 42229 if (strftime (buf, sizeof (buf), "%b", &t) < 4 42230 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 42231 return 1; 42232#endif 42233#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 42234 /* Check whether the decimal separator is a comma. 42235 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 42236 are nl_langinfo(RADIXCHAR) are both ".". */ 42237 if (localeconv () ->decimal_point[0] != ',') return 1; 42238#endif 42239 return 0; 42240} 42241 42242_ACEOF 42243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 42244 (eval $ac_link) 2>&5 42245 ac_status=$? 42246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42247 test $ac_status = 0; } && test -s conftest$ac_exeext; then 42248 case "$host_os" in 42249 # Handle native Windows specially, because there setlocale() interprets 42250 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 42251 # "fr" or "fra" as "French" or "French_France.1252", 42252 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 42253 # "ja" as "Japanese" or "Japanese_Japan.932", 42254 # and similar. 42255 mingw*) 42256 # Test for the hypothetical native Windows locale name. 42257 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42258 gt_cv_locale_fr_utf8=French_France.65001 42259 else 42260 # None found. 42261 gt_cv_locale_fr_utf8=none 42262 fi 42263 ;; 42264 *) 42265 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 42266 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 42267 # configure script would override the LC_ALL setting. Likewise for 42268 # LC_CTYPE, which is also set at the beginning of the configure script. 42269 # Test for the usual locale name. 42270 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42271 gt_cv_locale_fr_utf8=fr_FR 42272 else 42273 # Test for the locale name with explicit encoding suffix. 42274 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42275 gt_cv_locale_fr_utf8=fr_FR.UTF-8 42276 else 42277 # Test for the Solaris 7 locale name. 42278 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42279 gt_cv_locale_fr_utf8=fr.UTF-8 42280 else 42281 # None found. 42282 gt_cv_locale_fr_utf8=none 42283 fi 42284 fi 42285 fi 42286 ;; 42287 esac 42288 fi 42289 rm -fr conftest* 42290 42291fi 42292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 42293printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 42294 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 42295 42296 42297 42298 42299 42300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 42301printf %s "checking for a traditional french locale... " >&6; } 42302if test ${gt_cv_locale_fr+y} 42303then : 42304 printf %s "(cached) " >&6 42305else $as_nop 42306 42307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42308/* end confdefs.h. */ 42309 42310#include <locale.h> 42311#include <time.h> 42312#if HAVE_LANGINFO_CODESET 42313# include <langinfo.h> 42314#endif 42315#include <stdlib.h> 42316#include <string.h> 42317struct tm t; 42318char buf[16]; 42319int main () { 42320 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 42321 imitates locale dependent behaviour by looking at the environment 42322 variables, and all locales use the UTF-8 encoding. */ 42323#if defined __BEOS__ || defined __HAIKU__ 42324 return 1; 42325#else 42326 /* Check whether the given locale name is recognized by the system. */ 42327# if defined _WIN32 && !defined __CYGWIN__ 42328 /* On native Windows, setlocale(category, "") looks at the system settings, 42329 not at the environment variables. Also, when an encoding suffix such 42330 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 42331 category of the locale to "C". */ 42332 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 42333 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 42334 return 1; 42335# else 42336 if (setlocale (LC_ALL, "") == NULL) return 1; 42337# endif 42338 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 42339 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 42340 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 42341 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 42342 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 42343 some unit tests fail. 42344 On MirBSD 10, when an unsupported locale is specified, setlocale() 42345 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 42346# if HAVE_LANGINFO_CODESET 42347 { 42348 const char *cs = nl_langinfo (CODESET); 42349 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 42350 || strcmp (cs, "UTF-8") == 0) 42351 return 1; 42352 } 42353# endif 42354# ifdef __CYGWIN__ 42355 /* On Cygwin, avoid locale names without encoding suffix, because the 42356 locale_charset() function relies on the encoding suffix. Note that 42357 LC_ALL is set on the command line. */ 42358 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 42359# endif 42360 /* Check whether in the abbreviation of the second month, the second 42361 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 42362 one byte long. This excludes the UTF-8 encoding. */ 42363 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 42364 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 42365# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 42366 /* Check whether the decimal separator is a comma. 42367 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 42368 are nl_langinfo(RADIXCHAR) are both ".". */ 42369 if (localeconv () ->decimal_point[0] != ',') return 1; 42370# endif 42371 return 0; 42372#endif 42373} 42374 42375_ACEOF 42376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 42377 (eval $ac_link) 2>&5 42378 ac_status=$? 42379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42380 test $ac_status = 0; } && test -s conftest$ac_exeext; then 42381 case "$host_os" in 42382 # Handle native Windows specially, because there setlocale() interprets 42383 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 42384 # "fr" or "fra" as "French" or "French_France.1252", 42385 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 42386 # "ja" as "Japanese" or "Japanese_Japan.932", 42387 # and similar. 42388 mingw*) 42389 # Test for the native Windows locale name. 42390 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42391 gt_cv_locale_fr=French_France.1252 42392 else 42393 # None found. 42394 gt_cv_locale_fr=none 42395 fi 42396 ;; 42397 *) 42398 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 42399 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 42400 # configure script would override the LC_ALL setting. Likewise for 42401 # LC_CTYPE, which is also set at the beginning of the configure script. 42402 # Test for the usual locale name. 42403 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42404 gt_cv_locale_fr=fr_FR 42405 else 42406 # Test for the locale name with explicit encoding suffix. 42407 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42408 gt_cv_locale_fr=fr_FR.ISO-8859-1 42409 else 42410 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 42411 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42412 gt_cv_locale_fr=fr_FR.ISO8859-1 42413 else 42414 # Test for the HP-UX locale name. 42415 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42416 gt_cv_locale_fr=fr_FR.iso88591 42417 else 42418 # Test for the Solaris 7 locale name. 42419 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42420 gt_cv_locale_fr=fr 42421 else 42422 # None found. 42423 gt_cv_locale_fr=none 42424 fi 42425 fi 42426 fi 42427 fi 42428 fi 42429 ;; 42430 esac 42431 fi 42432 rm -fr conftest* 42433 42434fi 42435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 42436printf "%s\n" "$gt_cv_locale_fr" >&6; } 42437 LOCALE_FR=$gt_cv_locale_fr 42438 42439 42440 42441 42442 42443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5 42444printf %s "checking for a turkish Unicode locale... " >&6; } 42445if test ${gt_cv_locale_tr_utf8+y} 42446then : 42447 printf %s "(cached) " >&6 42448else $as_nop 42449 42450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42451/* end confdefs.h. */ 42452 42453#include <locale.h> 42454#include <time.h> 42455#if HAVE_LANGINFO_CODESET 42456# include <langinfo.h> 42457#endif 42458#include <stdlib.h> 42459#include <string.h> 42460#include <wctype.h> 42461struct tm t; 42462char buf[16]; 42463int main () { 42464 /* On BeOS, locales are not implemented in libc. Rather, libintl 42465 imitates locale dependent behaviour by looking at the environment 42466 variables, and all locales use the UTF-8 encoding. But BeOS does not 42467 implement the Turkish upper-/lowercase mappings. Therefore, let this 42468 program return 1 on BeOS. */ 42469 /* Check whether the given locale name is recognized by the system. */ 42470#if defined _WIN32 && !defined __CYGWIN__ 42471 /* On native Windows, setlocale(category, "") looks at the system settings, 42472 not at the environment variables. Also, when an encoding suffix such 42473 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 42474 category of the locale to "C". */ 42475 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 42476 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 42477 return 1; 42478#else 42479 if (setlocale (LC_ALL, "") == NULL) return 1; 42480#endif 42481 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 42482 On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET) 42483 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 42484 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 42485 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 42486 some unit tests fail. */ 42487#if HAVE_LANGINFO_CODESET 42488 { 42489 const char *cs = nl_langinfo (CODESET); 42490 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 42491 return 1; 42492 } 42493#endif 42494#ifdef __CYGWIN__ 42495 /* On Cygwin, avoid locale names without encoding suffix, because the 42496 locale_charset() function relies on the encoding suffix. Note that 42497 LC_ALL is set on the command line. */ 42498 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 42499#endif 42500 /* Check whether in the abbreviation of the eighth month, the second 42501 character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is 42502 two bytes long, with UTF-8 encoding. */ 42503 t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19; 42504 if (strftime (buf, sizeof (buf), "%b", &t) < 4 42505 || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f) 42506 return 1; 42507 /* Check whether the upper-/lowercase mappings are as expected for 42508 Turkish. */ 42509 if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i' 42510 || towupper(0x0131) != 'I' || towlower ('I') != 0x0131) 42511 return 1; 42512 return 0; 42513} 42514 42515_ACEOF 42516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 42517 (eval $ac_link) 2>&5 42518 ac_status=$? 42519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42520 test $ac_status = 0; } && test -s conftest$ac_exeext; then 42521 case "$host_os" in 42522 # Handle native Windows specially, because there setlocale() interprets 42523 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 42524 # "fr" or "fra" as "French" or "French_France.1252", 42525 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 42526 # "ja" as "Japanese" or "Japanese_Japan.932", 42527 # and similar. 42528 mingw*) 42529 # Test for the hypothetical native Windows locale name. 42530 if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42531 gt_cv_locale_tr_utf8=Turkish_Turkey.65001 42532 else 42533 # None found. 42534 gt_cv_locale_tr_utf8=none 42535 fi 42536 ;; 42537 *) 42538 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 42539 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 42540 # configure script would override the LC_ALL setting. Likewise for 42541 # LC_CTYPE, which is also set at the beginning of the configure script. 42542 # Test for the usual locale name. 42543 if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42544 gt_cv_locale_tr_utf8=tr_TR 42545 else 42546 # Test for the locale name with explicit encoding suffix. 42547 if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42548 gt_cv_locale_tr_utf8=tr_TR.UTF-8 42549 else 42550 # Test for the Solaris 7 locale name. 42551 if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 42552 gt_cv_locale_tr_utf8=tr.UTF-8 42553 else 42554 # None found. 42555 gt_cv_locale_tr_utf8=none 42556 fi 42557 fi 42558 fi 42559 ;; 42560 esac 42561 else 42562 gt_cv_locale_tr_utf8=none 42563 fi 42564 rm -fr conftest* 42565 42566fi 42567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5 42568printf "%s\n" "$gt_cv_locale_tr_utf8" >&6; } 42569 LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8 42570 42571 42572 42573 42574 42575 42576 42577 42578 42579 42580 42581 42582 42583 if test $gl_cv_have_include_next = yes; then 42584 gl_cv_next_ctype_h='<'ctype.h'>' 42585 else 42586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5 42587printf %s "checking absolute name of <ctype.h>... " >&6; } 42588if test ${gl_cv_next_ctype_h+y} 42589then : 42590 printf %s "(cached) " >&6 42591else $as_nop 42592 42593 42594 42595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42596/* end confdefs.h. */ 42597#include <ctype.h> 42598_ACEOF 42599 case "$host_os" in 42600 aix*) gl_absname_cpp="$ac_cpp -C" ;; 42601 *) gl_absname_cpp="$ac_cpp" ;; 42602 esac 42603 42604 case "$host_os" in 42605 mingw*) 42606 gl_dirsep_regex='[/\\]' 42607 ;; 42608 *) 42609 gl_dirsep_regex='\/' 42610 ;; 42611 esac 42612 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 42613 gl_header_literal_regex=`echo 'ctype.h' \ 42614 | sed -e "$gl_make_literal_regex_sed"` 42615 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 42616 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 42617 s|^/[^/]|//&| 42618 p 42619 q 42620 }' 42621 42622 gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 42623 sed -n "$gl_absolute_header_sed"` 42624 42625 gl_header=$gl_cv_absolute_ctype_h 42626 gl_cv_next_ctype_h='"'$gl_header'"' 42627 42628 42629fi 42630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5 42631printf "%s\n" "$gl_cv_next_ctype_h" >&6; } 42632 fi 42633 NEXT_CTYPE_H=$gl_cv_next_ctype_h 42634 42635 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 42636 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 42637 gl_next_as_first_directive='<'ctype.h'>' 42638 else 42639 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 42640 gl_next_as_first_directive=$gl_cv_next_ctype_h 42641 fi 42642 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive 42643 42644 42645 42646 42647 42648 42649 42650 42651 42652 42653 42654 42655 42656 42657 42658 if test "$GNULIB_ENVIRON" != 1; then 42659 if test "$GNULIB_ENVIRON" = 0; then 42660 GNULIB_ENVIRON=$gl_module_indicator_condition 42661 else 42662 GNULIB_ENVIRON="($GNULIB_ENVIRON || $gl_module_indicator_condition)" 42663 fi 42664 fi 42665 42666 42667 42668 42669 42670printf "%s\n" "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h 42671 42672 42673 42674 42675 42676 42677 42678 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 42679 REPLACE_FDOPEN=1 42680 fi 42681 42682 if test $REPLACE_FDOPEN = 0; then 42683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5 42684printf %s "checking whether fdopen sets errno... " >&6; } 42685if test ${gl_cv_func_fdopen_works+y} 42686then : 42687 printf %s "(cached) " >&6 42688else $as_nop 42689 42690 if test "$cross_compiling" = yes 42691then : 42692 case "$host_os" in 42693 mingw*) gl_cv_func_fdopen_works="guessing no" ;; 42694 *) gl_cv_func_fdopen_works="guessing yes" ;; 42695 esac 42696 42697else $as_nop 42698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42699/* end confdefs.h. */ 42700 42701#include <stdio.h> 42702#include <errno.h> 42703 42704 42705$gl_mda_defines 42706 42707int 42708main (void) 42709{ 42710 FILE *fp; 42711 errno = 0; 42712 fp = fdopen (-1, "r"); 42713 if (fp == NULL && errno == 0) 42714 return 1; 42715 return 0; 42716} 42717_ACEOF 42718if ac_fn_c_try_run "$LINENO" 42719then : 42720 gl_cv_func_fdopen_works=yes 42721else $as_nop 42722 gl_cv_func_fdopen_works=no 42723fi 42724rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42725 conftest.$ac_objext conftest.beam conftest.$ac_ext 42726fi 42727 42728 42729fi 42730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5 42731printf "%s\n" "$gl_cv_func_fdopen_works" >&6; } 42732 case "$gl_cv_func_fdopen_works" in 42733 *no) REPLACE_FDOPEN=1 ;; 42734 esac 42735 fi 42736 42737 if test $REPLACE_FDOPEN = 1; then 42738 42739 42740 42741 42742 42743 42744 42745 42746 gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext" 42747 42748 42749 fi 42750 42751 42752 42753 42754 42755 if test "$GNULIB_FDOPEN" != 1; then 42756 if test "$GNULIB_FDOPEN" = 0; then 42757 GNULIB_FDOPEN=$gl_module_indicator_condition 42758 else 42759 GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)" 42760 fi 42761 fi 42762 42763 42764 42765 42766 42767printf "%s\n" "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h 42768 42769 42770 42771 42772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5 42773printf %s "checking for flexible array member... " >&6; } 42774if test ${ac_cv_c_flexmember+y} 42775then : 42776 printf %s "(cached) " >&6 42777else $as_nop 42778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42779/* end confdefs.h. */ 42780#include <stdlib.h> 42781 #include <stdio.h> 42782 #include <stddef.h> 42783 struct m { struct m *next, **list; char name[]; }; 42784 struct s { struct s *p; struct m *m; int n; double d[]; }; 42785int 42786main (void) 42787{ 42788int m = getchar (); 42789 size_t nbytes = offsetof (struct s, d) + m * sizeof (double); 42790 nbytes += sizeof (struct s) - 1; 42791 nbytes -= nbytes % sizeof (struct s); 42792 struct s *p = malloc (nbytes); 42793 p->p = p; 42794 p->m = NULL; 42795 p->d[0] = 0.0; 42796 return p->d != (double *) NULL; 42797 ; 42798 return 0; 42799} 42800_ACEOF 42801if ac_fn_c_try_compile "$LINENO" 42802then : 42803 ac_cv_c_flexmember=yes 42804else $as_nop 42805 ac_cv_c_flexmember=no 42806fi 42807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 42808fi 42809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 42810printf "%s\n" "$ac_cv_c_flexmember" >&6; } 42811 if test $ac_cv_c_flexmember = yes; then 42812 42813printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 42814 42815 else 42816 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 42817 42818 fi 42819 42820 42821 42822 42823 42824 42825 42826 42827 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in 42828 *yes,yes) ;; 42829 *) 42830 REPLACE_GETCWD=1 42831 ;; 42832 esac 42833 42834 if test $REPLACE_GETCWD = 1; then 42835 42836 42837 42838 42839 42840 42841 42842 42843 gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext" 42844 42845 fi 42846 42847 42848 42849 42850 42851 if test "$GNULIB_GETCWD" != 1; then 42852 if test "$GNULIB_GETCWD" = 0; then 42853 GNULIB_GETCWD=$gl_module_indicator_condition 42854 else 42855 GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)" 42856 fi 42857 fi 42858 42859 42860 42861 42862 42863printf "%s\n" "#define GNULIB_TEST_GETCWD 1" >>confdefs.h 42864 42865 42866 42867 42868 42869 42870 42871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 42872printf %s "checking for getpagesize... " >&6; } 42873if test ${gl_cv_func_getpagesize+y} 42874then : 42875 printf %s "(cached) " >&6 42876else $as_nop 42877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42878/* end confdefs.h. */ 42879#include <unistd.h> 42880int 42881main (void) 42882{ 42883return getpagesize(); 42884 ; 42885 return 0; 42886} 42887 42888_ACEOF 42889if ac_fn_c_try_link "$LINENO" 42890then : 42891 gl_cv_func_getpagesize=yes 42892else $as_nop 42893 gl_cv_func_getpagesize=no 42894fi 42895rm -f core conftest.err conftest.$ac_objext conftest.beam \ 42896 conftest$ac_exeext conftest.$ac_ext 42897 42898fi 42899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getpagesize" >&5 42900printf "%s\n" "$gl_cv_func_getpagesize" >&6; } 42901 42902 if test $gl_cv_func_getpagesize = no; then 42903 HAVE_GETPAGESIZE=0 42904 ac_fn_c_check_header_compile "$LINENO" "OS.h" "ac_cv_header_OS_h" "$ac_includes_default" 42905if test "x$ac_cv_header_OS_h" = xyes 42906then : 42907 printf "%s\n" "#define HAVE_OS_H 1" >>confdefs.h 42908 42909fi 42910 42911 if test $ac_cv_header_OS_h = yes; then 42912 HAVE_OS_H=1 42913 fi 42914 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 42915if test "x$ac_cv_header_sys_param_h" = xyes 42916then : 42917 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 42918 42919fi 42920 42921 if test $ac_cv_header_sys_param_h = yes; then 42922 HAVE_SYS_PARAM_H=1 42923 fi 42924 fi 42925 case "$host_os" in 42926 mingw*) 42927 REPLACE_GETPAGESIZE=1 42928 ;; 42929 esac 42930 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default" 42931if test "x$ac_cv_have_decl_getpagesize" = xyes 42932then : 42933 42934else $as_nop 42935 HAVE_DECL_GETPAGESIZE=0 42936fi 42937 42938 42939 if test $REPLACE_GETPAGESIZE = 1; then 42940 42941 42942 42943 42944 42945 42946 42947 42948 gltests_LIBOBJS="$gltests_LIBOBJS getpagesize.$ac_objext" 42949 42950 fi 42951 42952 42953 42954 42955 42956 if test "$GNULIB_GETPAGESIZE" != 1; then 42957 if test "$GNULIB_GETPAGESIZE" = 0; then 42958 GNULIB_GETPAGESIZE=$gl_module_indicator_condition 42959 else 42960 GNULIB_GETPAGESIZE="($GNULIB_GETPAGESIZE || $gl_module_indicator_condition)" 42961 fi 42962 fi 42963 42964 42965 42966 42967 42968printf "%s\n" "#define GNULIB_TEST_GETPAGESIZE 1" >>confdefs.h 42969 42970 42971 42972 42973 42974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 42975printf %s "checking whether byte ordering is bigendian... " >&6; } 42976if test ${ac_cv_c_bigendian+y} 42977then : 42978 printf %s "(cached) " >&6 42979else $as_nop 42980 ac_cv_c_bigendian=unknown 42981 # See if we're dealing with a universal compiler. 42982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42983/* end confdefs.h. */ 42984#ifndef __APPLE_CC__ 42985 not a universal capable compiler 42986 #endif 42987 typedef int dummy; 42988 42989_ACEOF 42990if ac_fn_c_try_compile "$LINENO" 42991then : 42992 42993 # Check for potential -arch flags. It is not universal unless 42994 # there are at least two -arch flags with different values. 42995 ac_arch= 42996 ac_prev= 42997 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 42998 if test -n "$ac_prev"; then 42999 case $ac_word in 43000 i?86 | x86_64 | ppc | ppc64) 43001 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 43002 ac_arch=$ac_word 43003 else 43004 ac_cv_c_bigendian=universal 43005 break 43006 fi 43007 ;; 43008 esac 43009 ac_prev= 43010 elif test "x$ac_word" = "x-arch"; then 43011 ac_prev=arch 43012 fi 43013 done 43014fi 43015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43016 if test $ac_cv_c_bigendian = unknown; then 43017 # See if sys/param.h defines the BYTE_ORDER macro. 43018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43019/* end confdefs.h. */ 43020#include <sys/types.h> 43021 #include <sys/param.h> 43022 43023int 43024main (void) 43025{ 43026#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 43027 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 43028 && LITTLE_ENDIAN) 43029 bogus endian macros 43030 #endif 43031 43032 ; 43033 return 0; 43034} 43035_ACEOF 43036if ac_fn_c_try_compile "$LINENO" 43037then : 43038 # It does; now see whether it defined to BIG_ENDIAN or not. 43039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43040/* end confdefs.h. */ 43041#include <sys/types.h> 43042 #include <sys/param.h> 43043 43044int 43045main (void) 43046{ 43047#if BYTE_ORDER != BIG_ENDIAN 43048 not big endian 43049 #endif 43050 43051 ; 43052 return 0; 43053} 43054_ACEOF 43055if ac_fn_c_try_compile "$LINENO" 43056then : 43057 ac_cv_c_bigendian=yes 43058else $as_nop 43059 ac_cv_c_bigendian=no 43060fi 43061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43062fi 43063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43064 fi 43065 if test $ac_cv_c_bigendian = unknown; then 43066 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 43067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43068/* end confdefs.h. */ 43069#include <limits.h> 43070 43071int 43072main (void) 43073{ 43074#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 43075 bogus endian macros 43076 #endif 43077 43078 ; 43079 return 0; 43080} 43081_ACEOF 43082if ac_fn_c_try_compile "$LINENO" 43083then : 43084 # It does; now see whether it defined to _BIG_ENDIAN or not. 43085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43086/* end confdefs.h. */ 43087#include <limits.h> 43088 43089int 43090main (void) 43091{ 43092#ifndef _BIG_ENDIAN 43093 not big endian 43094 #endif 43095 43096 ; 43097 return 0; 43098} 43099_ACEOF 43100if ac_fn_c_try_compile "$LINENO" 43101then : 43102 ac_cv_c_bigendian=yes 43103else $as_nop 43104 ac_cv_c_bigendian=no 43105fi 43106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43107fi 43108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43109 fi 43110 if test $ac_cv_c_bigendian = unknown; then 43111 # Compile a test program. 43112 if test "$cross_compiling" = yes 43113then : 43114 # Try to guess by grepping values from an object file. 43115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43116/* end confdefs.h. */ 43117unsigned short int ascii_mm[] = 43118 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 43119 unsigned short int ascii_ii[] = 43120 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 43121 int use_ascii (int i) { 43122 return ascii_mm[i] + ascii_ii[i]; 43123 } 43124 unsigned short int ebcdic_ii[] = 43125 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 43126 unsigned short int ebcdic_mm[] = 43127 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 43128 int use_ebcdic (int i) { 43129 return ebcdic_mm[i] + ebcdic_ii[i]; 43130 } 43131 extern int foo; 43132 43133int 43134main (void) 43135{ 43136return use_ascii (foo) == use_ebcdic (foo); 43137 ; 43138 return 0; 43139} 43140_ACEOF 43141if ac_fn_c_try_compile "$LINENO" 43142then : 43143 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 43144 ac_cv_c_bigendian=yes 43145 fi 43146 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 43147 if test "$ac_cv_c_bigendian" = unknown; then 43148 ac_cv_c_bigendian=no 43149 else 43150 # finding both strings is unlikely to happen, but who knows? 43151 ac_cv_c_bigendian=unknown 43152 fi 43153 fi 43154fi 43155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43156else $as_nop 43157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43158/* end confdefs.h. */ 43159$ac_includes_default 43160int 43161main (void) 43162{ 43163 43164 /* Are we little or big endian? From Harbison&Steele. */ 43165 union 43166 { 43167 long int l; 43168 char c[sizeof (long int)]; 43169 } u; 43170 u.l = 1; 43171 return u.c[sizeof (long int) - 1] == 1; 43172 43173 ; 43174 return 0; 43175} 43176_ACEOF 43177if ac_fn_c_try_run "$LINENO" 43178then : 43179 ac_cv_c_bigendian=no 43180else $as_nop 43181 ac_cv_c_bigendian=yes 43182fi 43183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43184 conftest.$ac_objext conftest.beam conftest.$ac_ext 43185fi 43186 43187 fi 43188fi 43189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 43190printf "%s\n" "$ac_cv_c_bigendian" >&6; } 43191 case $ac_cv_c_bigendian in #( 43192 yes) 43193 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 43194;; #( 43195 no) 43196 ;; #( 43197 universal) 43198 43199printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 43200 43201 ;; #( 43202 *) 43203 as_fn_error $? "unknown endianness 43204 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 43205 esac 43206 43207 43208 43209 43210 43211 43212 43213 43214 HAVE_INET_PTON=1 43215 INET_PTON_LIB= 43216 43217 43218 43219 43220 if test $ac_cv_header_sys_socket_h != yes; then 43221 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 43222if test "x$ac_cv_header_winsock2_h" = xyes 43223then : 43224 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h 43225 43226fi 43227 43228 fi 43229 if test "$ac_cv_header_winsock2_h" = yes; then 43230 HAVE_WINSOCK2_H=1 43231 UNISTD_H_HAVE_WINSOCK2_H=1 43232 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 43233 else 43234 HAVE_WINSOCK2_H=0 43235 fi 43236 43237 43238 if test $HAVE_WINSOCK2_H = 1; then 43239 REPLACE_INET_PTON=1 43240 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h> 43241" 43242if test "x$ac_cv_have_decl_inet_pton" = xyes 43243then : 43244 ac_have_decl=1 43245else $as_nop 43246 ac_have_decl=0 43247fi 43248 43249printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h 43250 43251 if test $ac_cv_have_decl_inet_pton = yes; then 43252 INET_PTON_LIB="-lws2_32" 43253 else 43254 HAVE_DECL_INET_PTON=0 43255 fi 43256 else 43257 gl_save_LIBS=$LIBS 43258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 43259printf %s "checking for library containing inet_pton... " >&6; } 43260if test ${ac_cv_search_inet_pton+y} 43261then : 43262 printf %s "(cached) " >&6 43263else $as_nop 43264 ac_func_search_save_LIBS=$LIBS 43265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43266/* end confdefs.h. */ 43267 43268/* Override any GCC internal prototype to avoid an error. 43269 Use char because int might match the return type of a GCC 43270 builtin and then its argument prototype would still apply. */ 43271char inet_pton (); 43272int 43273main (void) 43274{ 43275return inet_pton (); 43276 ; 43277 return 0; 43278} 43279_ACEOF 43280for ac_lib in '' nsl resolv network 43281do 43282 if test -z "$ac_lib"; then 43283 ac_res="none required" 43284 else 43285 ac_res=-l$ac_lib 43286 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 43287 fi 43288 if ac_fn_c_try_link "$LINENO" 43289then : 43290 ac_cv_search_inet_pton=$ac_res 43291fi 43292rm -f core conftest.err conftest.$ac_objext conftest.beam \ 43293 conftest$ac_exeext 43294 if test ${ac_cv_search_inet_pton+y} 43295then : 43296 break 43297fi 43298done 43299if test ${ac_cv_search_inet_pton+y} 43300then : 43301 43302else $as_nop 43303 ac_cv_search_inet_pton=no 43304fi 43305rm conftest.$ac_ext 43306LIBS=$ac_func_search_save_LIBS 43307fi 43308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 43309printf "%s\n" "$ac_cv_search_inet_pton" >&6; } 43310ac_res=$ac_cv_search_inet_pton 43311if test "$ac_res" != no 43312then : 43313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 43314 43315else $as_nop 43316 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 43317if test "x$ac_cv_func_inet_pton" = xyes 43318then : 43319 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 43320 43321fi 43322 43323 if test $ac_cv_func_inet_pton = no; then 43324 HAVE_INET_PTON=0 43325 fi 43326 43327fi 43328 43329 LIBS=$gl_save_LIBS 43330 43331 if test "$ac_cv_search_inet_pton" != "no" \ 43332 && test "$ac_cv_search_inet_pton" != "none required"; then 43333 INET_PTON_LIB="$ac_cv_search_inet_pton" 43334 fi 43335 43336 43337 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h> 43338 #if HAVE_NETDB_H 43339 # include <netdb.h> 43340 #endif 43341 43342" 43343if test "x$ac_cv_have_decl_inet_pton" = xyes 43344then : 43345 ac_have_decl=1 43346else $as_nop 43347 ac_have_decl=0 43348fi 43349 43350printf "%s\n" "#define HAVE_DECL_INET_PTON $ac_have_decl" >>confdefs.h 43351 43352 if test $ac_cv_have_decl_inet_pton = no; then 43353 HAVE_DECL_INET_PTON=0 43354 fi 43355 fi 43356 43357 43358 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then 43359 43360 43361 43362 43363 43364 43365 43366 43367 gltests_LIBOBJS="$gltests_LIBOBJS inet_pton.$ac_objext" 43368 43369 43370 43371 43372 fi 43373 43374 43375 43376 43377 43378 if test "$GNULIB_INET_PTON" != 1; then 43379 if test "$GNULIB_INET_PTON" = 0; then 43380 GNULIB_INET_PTON=$gl_module_indicator_condition 43381 else 43382 GNULIB_INET_PTON="($GNULIB_INET_PTON || $gl_module_indicator_condition)" 43383 fi 43384 fi 43385 43386 43387 43388 43389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 43390printf %s "checking whether byte ordering is bigendian... " >&6; } 43391if test ${ac_cv_c_bigendian+y} 43392then : 43393 printf %s "(cached) " >&6 43394else $as_nop 43395 ac_cv_c_bigendian=unknown 43396 # See if we're dealing with a universal compiler. 43397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43398/* end confdefs.h. */ 43399#ifndef __APPLE_CC__ 43400 not a universal capable compiler 43401 #endif 43402 typedef int dummy; 43403 43404_ACEOF 43405if ac_fn_c_try_compile "$LINENO" 43406then : 43407 43408 # Check for potential -arch flags. It is not universal unless 43409 # there are at least two -arch flags with different values. 43410 ac_arch= 43411 ac_prev= 43412 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 43413 if test -n "$ac_prev"; then 43414 case $ac_word in 43415 i?86 | x86_64 | ppc | ppc64) 43416 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 43417 ac_arch=$ac_word 43418 else 43419 ac_cv_c_bigendian=universal 43420 break 43421 fi 43422 ;; 43423 esac 43424 ac_prev= 43425 elif test "x$ac_word" = "x-arch"; then 43426 ac_prev=arch 43427 fi 43428 done 43429fi 43430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43431 if test $ac_cv_c_bigendian = unknown; then 43432 # See if sys/param.h defines the BYTE_ORDER macro. 43433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43434/* end confdefs.h. */ 43435#include <sys/types.h> 43436 #include <sys/param.h> 43437 43438int 43439main (void) 43440{ 43441#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 43442 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 43443 && LITTLE_ENDIAN) 43444 bogus endian macros 43445 #endif 43446 43447 ; 43448 return 0; 43449} 43450_ACEOF 43451if ac_fn_c_try_compile "$LINENO" 43452then : 43453 # It does; now see whether it defined to BIG_ENDIAN or not. 43454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43455/* end confdefs.h. */ 43456#include <sys/types.h> 43457 #include <sys/param.h> 43458 43459int 43460main (void) 43461{ 43462#if BYTE_ORDER != BIG_ENDIAN 43463 not big endian 43464 #endif 43465 43466 ; 43467 return 0; 43468} 43469_ACEOF 43470if ac_fn_c_try_compile "$LINENO" 43471then : 43472 ac_cv_c_bigendian=yes 43473else $as_nop 43474 ac_cv_c_bigendian=no 43475fi 43476rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43477fi 43478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43479 fi 43480 if test $ac_cv_c_bigendian = unknown; then 43481 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 43482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43483/* end confdefs.h. */ 43484#include <limits.h> 43485 43486int 43487main (void) 43488{ 43489#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 43490 bogus endian macros 43491 #endif 43492 43493 ; 43494 return 0; 43495} 43496_ACEOF 43497if ac_fn_c_try_compile "$LINENO" 43498then : 43499 # It does; now see whether it defined to _BIG_ENDIAN or not. 43500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43501/* end confdefs.h. */ 43502#include <limits.h> 43503 43504int 43505main (void) 43506{ 43507#ifndef _BIG_ENDIAN 43508 not big endian 43509 #endif 43510 43511 ; 43512 return 0; 43513} 43514_ACEOF 43515if ac_fn_c_try_compile "$LINENO" 43516then : 43517 ac_cv_c_bigendian=yes 43518else $as_nop 43519 ac_cv_c_bigendian=no 43520fi 43521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43522fi 43523rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43524 fi 43525 if test $ac_cv_c_bigendian = unknown; then 43526 # Compile a test program. 43527 if test "$cross_compiling" = yes 43528then : 43529 # Try to guess by grepping values from an object file. 43530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43531/* end confdefs.h. */ 43532unsigned short int ascii_mm[] = 43533 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 43534 unsigned short int ascii_ii[] = 43535 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 43536 int use_ascii (int i) { 43537 return ascii_mm[i] + ascii_ii[i]; 43538 } 43539 unsigned short int ebcdic_ii[] = 43540 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 43541 unsigned short int ebcdic_mm[] = 43542 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 43543 int use_ebcdic (int i) { 43544 return ebcdic_mm[i] + ebcdic_ii[i]; 43545 } 43546 extern int foo; 43547 43548int 43549main (void) 43550{ 43551return use_ascii (foo) == use_ebcdic (foo); 43552 ; 43553 return 0; 43554} 43555_ACEOF 43556if ac_fn_c_try_compile "$LINENO" 43557then : 43558 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 43559 ac_cv_c_bigendian=yes 43560 fi 43561 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 43562 if test "$ac_cv_c_bigendian" = unknown; then 43563 ac_cv_c_bigendian=no 43564 else 43565 # finding both strings is unlikely to happen, but who knows? 43566 ac_cv_c_bigendian=unknown 43567 fi 43568 fi 43569fi 43570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43571else $as_nop 43572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43573/* end confdefs.h. */ 43574$ac_includes_default 43575int 43576main (void) 43577{ 43578 43579 /* Are we little or big endian? From Harbison&Steele. */ 43580 union 43581 { 43582 long int l; 43583 char c[sizeof (long int)]; 43584 } u; 43585 u.l = 1; 43586 return u.c[sizeof (long int) - 1] == 1; 43587 43588 ; 43589 return 0; 43590} 43591_ACEOF 43592if ac_fn_c_try_run "$LINENO" 43593then : 43594 ac_cv_c_bigendian=no 43595else $as_nop 43596 ac_cv_c_bigendian=yes 43597fi 43598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 43599 conftest.$ac_objext conftest.beam conftest.$ac_ext 43600fi 43601 43602 fi 43603fi 43604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 43605printf "%s\n" "$ac_cv_c_bigendian" >&6; } 43606 case $ac_cv_c_bigendian in #( 43607 yes) 43608 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 43609;; #( 43610 no) 43611 ;; #( 43612 universal) 43613 43614printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 43615 43616 ;; #( 43617 *) 43618 as_fn_error $? "unknown endianness 43619 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 43620 esac 43621 43622 43623 43624 43625 PRIPTR_PREFIX= 43626 if test -n "$STDINT_H"; then 43627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43628/* end confdefs.h. */ 43629 43630 #ifdef _WIN64 43631 LLP64 43632 #endif 43633 43634int 43635main (void) 43636{ 43637 43638 ; 43639 return 0; 43640} 43641 43642_ACEOF 43643if ac_fn_c_try_compile "$LINENO" 43644then : 43645 PRIPTR_PREFIX='"l"' 43646else $as_nop 43647 PRIPTR_PREFIX='"ll"' 43648fi 43649rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43650 else 43651 for glpfx in '' l ll I64; do 43652 case $glpfx in 43653 '') gltype1='int';; 43654 l) gltype1='long int';; 43655 ll) gltype1='long long int';; 43656 I64) gltype1='__int64';; 43657 esac 43658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43659/* end confdefs.h. */ 43660#include <stdint.h> 43661 extern intptr_t foo; 43662 extern $gltype1 foo; 43663int 43664main (void) 43665{ 43666 43667 ; 43668 return 0; 43669} 43670_ACEOF 43671if ac_fn_c_try_compile "$LINENO" 43672then : 43673 PRIPTR_PREFIX='"'$glpfx'"' 43674fi 43675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43676 test -n "$PRIPTR_PREFIX" && break 43677 done 43678 fi 43679 43680 43681 43682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5 43683printf %s "checking whether INT32_MAX < INTMAX_MAX... " >&6; } 43684if test ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+y} 43685then : 43686 printf %s "(cached) " >&6 43687else $as_nop 43688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43689/* end confdefs.h. */ 43690/* Work also in C++ mode. */ 43691 #define __STDC_LIMIT_MACROS 1 43692 43693 /* Work if build is not clean. */ 43694 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 43695 43696 #include <limits.h> 43697 #if HAVE_STDINT_H 43698 #include <stdint.h> 43699 #endif 43700 43701 #if defined INT32_MAX && defined INTMAX_MAX 43702 #define CONDITION (INT32_MAX < INTMAX_MAX) 43703 #else 43704 #define CONDITION (sizeof (int) < sizeof (long long int)) 43705 #endif 43706 int test[CONDITION ? 1 : -1]; 43707int 43708main (void) 43709{ 43710 43711 ; 43712 return 0; 43713} 43714_ACEOF 43715if ac_fn_c_try_compile "$LINENO" 43716then : 43717 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes 43718else $as_nop 43719 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no 43720fi 43721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43722fi 43723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5 43724printf "%s\n" "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } 43725 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then 43726 INT32_MAX_LT_INTMAX_MAX=1; 43727 else 43728 INT32_MAX_LT_INTMAX_MAX=0; 43729 fi 43730 43731 43732 if test $APPLE_UNIVERSAL_BUILD = 0; then 43733 43734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5 43735printf %s "checking whether INT64_MAX == LONG_MAX... " >&6; } 43736if test ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+y} 43737then : 43738 printf %s "(cached) " >&6 43739else $as_nop 43740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43741/* end confdefs.h. */ 43742/* Work also in C++ mode. */ 43743 #define __STDC_LIMIT_MACROS 1 43744 43745 /* Work if build is not clean. */ 43746 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 43747 43748 #include <limits.h> 43749 #if HAVE_STDINT_H 43750 #include <stdint.h> 43751 #endif 43752 43753 #if defined INT64_MAX 43754 #define CONDITION (INT64_MAX == LONG_MAX) 43755 #else 43756 #define CONDITION (sizeof (long long int) == sizeof (long int)) 43757 #endif 43758 int test[CONDITION ? 1 : -1]; 43759int 43760main (void) 43761{ 43762 43763 ; 43764 return 0; 43765} 43766_ACEOF 43767if ac_fn_c_try_compile "$LINENO" 43768then : 43769 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes 43770else $as_nop 43771 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no 43772fi 43773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43774fi 43775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5 43776printf "%s\n" "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } 43777 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then 43778 INT64_MAX_EQ_LONG_MAX=1; 43779 else 43780 INT64_MAX_EQ_LONG_MAX=0; 43781 fi 43782 43783 43784 else 43785 INT64_MAX_EQ_LONG_MAX=-1 43786 fi 43787 43788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5 43789printf %s "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } 43790if test ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+y} 43791then : 43792 printf %s "(cached) " >&6 43793else $as_nop 43794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43795/* end confdefs.h. */ 43796/* Work also in C++ mode. */ 43797 #define __STDC_LIMIT_MACROS 1 43798 43799 /* Work if build is not clean. */ 43800 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 43801 43802 #include <limits.h> 43803 #if HAVE_STDINT_H 43804 #include <stdint.h> 43805 #endif 43806 43807 #if defined UINT32_MAX && defined UINTMAX_MAX 43808 #define CONDITION (UINT32_MAX < UINTMAX_MAX) 43809 #else 43810 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int)) 43811 #endif 43812 int test[CONDITION ? 1 : -1]; 43813int 43814main (void) 43815{ 43816 43817 ; 43818 return 0; 43819} 43820_ACEOF 43821if ac_fn_c_try_compile "$LINENO" 43822then : 43823 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes 43824else $as_nop 43825 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no 43826fi 43827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43828fi 43829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5 43830printf "%s\n" "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } 43831 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then 43832 UINT32_MAX_LT_UINTMAX_MAX=1; 43833 else 43834 UINT32_MAX_LT_UINTMAX_MAX=0; 43835 fi 43836 43837 43838 if test $APPLE_UNIVERSAL_BUILD = 0; then 43839 43840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5 43841printf %s "checking whether UINT64_MAX == ULONG_MAX... " >&6; } 43842if test ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+y} 43843then : 43844 printf %s "(cached) " >&6 43845else $as_nop 43846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43847/* end confdefs.h. */ 43848/* Work also in C++ mode. */ 43849 #define __STDC_LIMIT_MACROS 1 43850 43851 /* Work if build is not clean. */ 43852 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 43853 43854 #include <limits.h> 43855 #if HAVE_STDINT_H 43856 #include <stdint.h> 43857 #endif 43858 43859 #if defined UINT64_MAX 43860 #define CONDITION (UINT64_MAX == ULONG_MAX) 43861 #else 43862 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int)) 43863 #endif 43864 int test[CONDITION ? 1 : -1]; 43865int 43866main (void) 43867{ 43868 43869 ; 43870 return 0; 43871} 43872_ACEOF 43873if ac_fn_c_try_compile "$LINENO" 43874then : 43875 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes 43876else $as_nop 43877 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no 43878fi 43879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 43880fi 43881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5 43882printf "%s\n" "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } 43883 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then 43884 UINT64_MAX_EQ_ULONG_MAX=1; 43885 else 43886 UINT64_MAX_EQ_ULONG_MAX=0; 43887 fi 43888 43889 43890 else 43891 UINT64_MAX_EQ_ULONG_MAX=-1 43892 fi 43893 43894 43895 43896 43897 43898 43899 43900 if test $ac_cv_func_isblank = no; then 43901 HAVE_ISBLANK=0 43902 fi 43903 43904 if test $HAVE_ISBLANK = 0; then 43905 43906 43907 43908 43909 43910 43911 43912 43913 gltests_LIBOBJS="$gltests_LIBOBJS isblank.$ac_objext" 43914 43915 fi 43916 43917 43918printf "%s\n" "#define GNULIB_ISBLANK $gl_module_indicator_condition" >>confdefs.h 43919 43920 43921 43922 43923 43924 43925 43926 if test "$GNULIB_ISBLANK" != 1; then 43927 if test "$GNULIB_ISBLANK" = 0; then 43928 GNULIB_ISBLANK=$gl_module_indicator_condition 43929 else 43930 GNULIB_ISBLANK="($GNULIB_ISBLANK || $gl_module_indicator_condition)" 43931 fi 43932 fi 43933 43934 43935 43936 43937 43938 43939 43940 43941 43942 43943 43944 43945 43946 43947 43948 43949 43950 43951 if test $gl_cv_have_include_next = yes; then 43952 gl_cv_next_langinfo_h='<'langinfo.h'>' 43953 else 43954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5 43955printf %s "checking absolute name of <langinfo.h>... " >&6; } 43956if test ${gl_cv_next_langinfo_h+y} 43957then : 43958 printf %s "(cached) " >&6 43959else $as_nop 43960 43961 if test $ac_cv_header_langinfo_h = yes; then 43962 43963 43964 43965 43966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43967/* end confdefs.h. */ 43968#include <langinfo.h> 43969_ACEOF 43970 case "$host_os" in 43971 aix*) gl_absname_cpp="$ac_cpp -C" ;; 43972 *) gl_absname_cpp="$ac_cpp" ;; 43973 esac 43974 43975 case "$host_os" in 43976 mingw*) 43977 gl_dirsep_regex='[/\\]' 43978 ;; 43979 *) 43980 gl_dirsep_regex='\/' 43981 ;; 43982 esac 43983 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 43984 gl_header_literal_regex=`echo 'langinfo.h' \ 43985 | sed -e "$gl_make_literal_regex_sed"` 43986 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 43987 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 43988 s|^/[^/]|//&| 43989 p 43990 q 43991 }' 43992 43993 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 43994 sed -n "$gl_absolute_header_sed"` 43995 43996 gl_header=$gl_cv_absolute_langinfo_h 43997 gl_cv_next_langinfo_h='"'$gl_header'"' 43998 else 43999 gl_cv_next_langinfo_h='<'langinfo.h'>' 44000 fi 44001 44002 44003fi 44004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 44005printf "%s\n" "$gl_cv_next_langinfo_h" >&6; } 44006 fi 44007 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h 44008 44009 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 44010 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 44011 gl_next_as_first_directive='<'langinfo.h'>' 44012 else 44013 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 44014 gl_next_as_first_directive=$gl_cv_next_langinfo_h 44015 fi 44016 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive 44017 44018 44019 44020 44021 44022 HAVE_LANGINFO_CODESET=0 44023 HAVE_LANGINFO_T_FMT_AMPM=0 44024 HAVE_LANGINFO_ALTMON=0 44025 HAVE_LANGINFO_ERA=0 44026 HAVE_LANGINFO_YESEXPR=0 44027 44028 if test $ac_cv_header_langinfo_h = yes; then 44029 HAVE_LANGINFO_H=1 44030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 44031printf %s "checking whether langinfo.h defines CODESET... " >&6; } 44032if test ${gl_cv_header_langinfo_codeset+y} 44033then : 44034 printf %s "(cached) " >&6 44035else $as_nop 44036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44037/* end confdefs.h. */ 44038#include <langinfo.h> 44039int a = CODESET; 44040 44041int 44042main (void) 44043{ 44044 44045 ; 44046 return 0; 44047} 44048_ACEOF 44049if ac_fn_c_try_compile "$LINENO" 44050then : 44051 gl_cv_header_langinfo_codeset=yes 44052else $as_nop 44053 gl_cv_header_langinfo_codeset=no 44054fi 44055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44056 44057fi 44058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 44059printf "%s\n" "$gl_cv_header_langinfo_codeset" >&6; } 44060 if test $gl_cv_header_langinfo_codeset = yes; then 44061 HAVE_LANGINFO_CODESET=1 44062 fi 44063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5 44064printf %s "checking whether langinfo.h defines T_FMT_AMPM... " >&6; } 44065if test ${gl_cv_header_langinfo_t_fmt_ampm+y} 44066then : 44067 printf %s "(cached) " >&6 44068else $as_nop 44069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44070/* end confdefs.h. */ 44071#include <langinfo.h> 44072int a = T_FMT_AMPM; 44073 44074int 44075main (void) 44076{ 44077 44078 ; 44079 return 0; 44080} 44081_ACEOF 44082if ac_fn_c_try_compile "$LINENO" 44083then : 44084 gl_cv_header_langinfo_t_fmt_ampm=yes 44085else $as_nop 44086 gl_cv_header_langinfo_t_fmt_ampm=no 44087fi 44088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44089 44090fi 44091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5 44092printf "%s\n" "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } 44093 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then 44094 HAVE_LANGINFO_T_FMT_AMPM=1 44095 fi 44096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5 44097printf %s "checking whether langinfo.h defines ALTMON_1... " >&6; } 44098if test ${gl_cv_header_langinfo_altmon+y} 44099then : 44100 printf %s "(cached) " >&6 44101else $as_nop 44102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44103/* end confdefs.h. */ 44104#include <langinfo.h> 44105int a = ALTMON_1; 44106 44107int 44108main (void) 44109{ 44110 44111 ; 44112 return 0; 44113} 44114_ACEOF 44115if ac_fn_c_try_compile "$LINENO" 44116then : 44117 gl_cv_header_langinfo_altmon=yes 44118else $as_nop 44119 gl_cv_header_langinfo_altmon=no 44120fi 44121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44122 44123fi 44124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5 44125printf "%s\n" "$gl_cv_header_langinfo_altmon" >&6; } 44126 if test $gl_cv_header_langinfo_altmon = yes; then 44127 HAVE_LANGINFO_ALTMON=1 44128 fi 44129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 44130printf %s "checking whether langinfo.h defines ERA... " >&6; } 44131if test ${gl_cv_header_langinfo_era+y} 44132then : 44133 printf %s "(cached) " >&6 44134else $as_nop 44135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44136/* end confdefs.h. */ 44137#include <langinfo.h> 44138int a = ERA; 44139 44140int 44141main (void) 44142{ 44143 44144 ; 44145 return 0; 44146} 44147_ACEOF 44148if ac_fn_c_try_compile "$LINENO" 44149then : 44150 gl_cv_header_langinfo_era=yes 44151else $as_nop 44152 gl_cv_header_langinfo_era=no 44153fi 44154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44155 44156fi 44157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 44158printf "%s\n" "$gl_cv_header_langinfo_era" >&6; } 44159 if test $gl_cv_header_langinfo_era = yes; then 44160 HAVE_LANGINFO_ERA=1 44161 fi 44162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5 44163printf %s "checking whether langinfo.h defines YESEXPR... " >&6; } 44164if test ${gl_cv_header_langinfo_yesexpr+y} 44165then : 44166 printf %s "(cached) " >&6 44167else $as_nop 44168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44169/* end confdefs.h. */ 44170#include <langinfo.h> 44171int a = YESEXPR; 44172 44173int 44174main (void) 44175{ 44176 44177 ; 44178 return 0; 44179} 44180_ACEOF 44181if ac_fn_c_try_compile "$LINENO" 44182then : 44183 gl_cv_header_langinfo_yesexpr=yes 44184else $as_nop 44185 gl_cv_header_langinfo_yesexpr=no 44186fi 44187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44188 44189fi 44190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5 44191printf "%s\n" "$gl_cv_header_langinfo_yesexpr" >&6; } 44192 if test $gl_cv_header_langinfo_yesexpr = yes; then 44193 HAVE_LANGINFO_YESEXPR=1 44194 fi 44195 else 44196 HAVE_LANGINFO_H=0 44197 fi 44198 44199 44200 44201 44202 44203 44204 44205 44206 44207 44208 44209 44210 44211 44212 44213 44214 44215 44216 44217 if test $HAVE_LOCALE_T = 1; then 44218 44219 gl_func_newlocale="$ac_cv_func_newlocale" 44220 gl_func_duplocale="$ac_cv_func_duplocale" 44221 gl_func_freelocale="$ac_cv_func_freelocale" 44222 else 44223 gl_func_newlocale=no 44224 gl_func_duplocale=no 44225 gl_func_freelocale=no 44226 fi 44227 if test $gl_func_newlocale != yes; then 44228 HAVE_NEWLOCALE=0 44229 fi 44230 if test $gl_func_duplocale != yes; then 44231 HAVE_DUPLOCALE=0 44232 fi 44233 if test $gl_func_freelocale != yes; then 44234 HAVE_FREELOCALE=0 44235 fi 44236 if test $gt_nameless_locales = yes; then 44237 REPLACE_NEWLOCALE=1 44238 REPLACE_DUPLOCALE=1 44239 REPLACE_FREELOCALE=1 44240 fi 44241 44242 44243 44244 44245 44246 44247 if test "$GNULIB_LOCALENAME" != 1; then 44248 if test "$GNULIB_LOCALENAME" = 0; then 44249 GNULIB_LOCALENAME=$gl_module_indicator_condition 44250 else 44251 GNULIB_LOCALENAME="($GNULIB_LOCALENAME || $gl_module_indicator_condition)" 44252 fi 44253 fi 44254 44255 44256 44257 44258 44259printf "%s\n" "#define GNULIB_TEST_LOCALENAME 1" >>confdefs.h 44260 44261 44262 44263 44264 44265 44266 if test "$gl_threads_api" = posix; then 44267 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 44268 # pthread_rwlock_* functions. 44269 has_rwlock=false 44270 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 44271" 44272if test "x$ac_cv_type_pthread_rwlock_t" = xyes 44273then : 44274 has_rwlock=true 44275 44276printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 44277 44278fi 44279 44280 if $has_rwlock; then 44281 44282 44283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5 44284printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; } 44285if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y} 44286then : 44287 printf %s "(cached) " >&6 44288else $as_nop 44289 save_LIBS="$LIBS" 44290 LIBS="$LIBS $LIBMULTITHREAD" 44291 if test "$cross_compiling" = yes 44292then : 44293 case "$host_os" in 44294 # Guess no on glibc systems. 44295 *-gnu* | gnu*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 44296 # Guess no on musl systems. 44297 *-musl*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 44298 # Guess no on bionic systems. 44299 *-android*) gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" ;; 44300 # Guess yes on native Windows with the mingw-w64 winpthreads library. 44301 # Guess no on native Windows with the gnulib windows-rwlock module. 44302 mingw*) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 44303 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes" 44304 else 44305 gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing no" 44306 fi 44307 ;; 44308 # If we don't know, obey --enable-cross-guesses. 44309 *) gl_cv_pthread_rwlock_rdlock_prefer_writer="$gl_cross_guess_normal" ;; 44310 esac 44311 44312else $as_nop 44313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44314/* end confdefs.h. */ 44315 44316#include <errno.h> 44317#include <pthread.h> 44318#include <stdlib.h> 44319#include <unistd.h> 44320 44321#define SUCCEED() exit (0) 44322#define FAILURE() exit (1) 44323#define UNEXPECTED(n) (exit (10 + (n))) 44324 44325/* The main thread creates the waiting writer and the requesting reader threads 44326 in the default way; this guarantees that they have the same priority. 44327 We can reuse the main thread as first reader thread. */ 44328 44329static pthread_rwlock_t lock; 44330static pthread_t reader1; 44331static pthread_t writer; 44332static pthread_t reader2; 44333static pthread_t timer; 44334/* Used to pass control from writer to reader2 and from reader2 to timer, 44335 as in a relay race. 44336 Passing control from one running thread to another running thread 44337 is most likely faster than to create the second thread. */ 44338static pthread_mutex_t baton; 44339 44340static void * 44341timer_func (void *ignored) 44342{ 44343 /* Step 13 (can be before or after step 12): 44344 The timer thread takes the baton, then waits a moment to make sure 44345 it can tell whether the second reader thread is blocked at step 12. */ 44346 if (pthread_mutex_lock (&baton)) 44347 UNEXPECTED (13); 44348 usleep (100000); 44349 /* By the time we get here, it's clear that the second reader thread is 44350 blocked at step 12. This is the desired behaviour. */ 44351 SUCCEED (); 44352} 44353 44354static void * 44355reader2_func (void *ignored) 44356{ 44357 int err; 44358 44359 /* Step 8 (can be before or after step 7): 44360 The second reader thread takes the baton, then waits a moment to make sure 44361 the writer thread has reached step 7. */ 44362 if (pthread_mutex_lock (&baton)) 44363 UNEXPECTED (8); 44364 usleep (100000); 44365 /* Step 9: The second reader thread requests the lock. */ 44366 err = pthread_rwlock_tryrdlock (&lock); 44367 if (err == 0) 44368 FAILURE (); 44369 else if (err != EBUSY) 44370 UNEXPECTED (9); 44371 /* Step 10: Launch a timer, to test whether the next call blocks. */ 44372 if (pthread_create (&timer, NULL, timer_func, NULL)) 44373 UNEXPECTED (10); 44374 /* Step 11: Release the baton. */ 44375 if (pthread_mutex_unlock (&baton)) 44376 UNEXPECTED (11); 44377 /* Step 12: The second reader thread requests the lock. */ 44378 err = pthread_rwlock_rdlock (&lock); 44379 if (err == 0) 44380 FAILURE (); 44381 else 44382 UNEXPECTED (12); 44383} 44384 44385static void * 44386writer_func (void *ignored) 44387{ 44388 /* Step 4: Take the baton, so that the second reader thread does not go ahead 44389 too early. */ 44390 if (pthread_mutex_lock (&baton)) 44391 UNEXPECTED (4); 44392 /* Step 5: Create the second reader thread. */ 44393 if (pthread_create (&reader2, NULL, reader2_func, NULL)) 44394 UNEXPECTED (5); 44395 /* Step 6: Release the baton. */ 44396 if (pthread_mutex_unlock (&baton)) 44397 UNEXPECTED (6); 44398 /* Step 7: The writer thread requests the lock. */ 44399 if (pthread_rwlock_wrlock (&lock)) 44400 UNEXPECTED (7); 44401 return NULL; 44402} 44403 44404int 44405main () 44406{ 44407 reader1 = pthread_self (); 44408 44409 /* Step 1: The main thread initializes the lock and the baton. */ 44410 if (pthread_rwlock_init (&lock, NULL)) 44411 UNEXPECTED (1); 44412 if (pthread_mutex_init (&baton, NULL)) 44413 UNEXPECTED (1); 44414 /* Step 2: The main thread acquires the lock as a reader. */ 44415 if (pthread_rwlock_rdlock (&lock)) 44416 UNEXPECTED (2); 44417 /* Step 3: Create the writer thread. */ 44418 if (pthread_create (&writer, NULL, writer_func, NULL)) 44419 UNEXPECTED (3); 44420 /* Job done. Go to sleep. */ 44421 for (;;) 44422 { 44423 sleep (1); 44424 } 44425} 44426 44427_ACEOF 44428if ac_fn_c_try_run "$LINENO" 44429then : 44430 gl_cv_pthread_rwlock_rdlock_prefer_writer=yes 44431else $as_nop 44432 gl_cv_pthread_rwlock_rdlock_prefer_writer=no 44433fi 44434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 44435 conftest.$ac_objext conftest.beam conftest.$ac_ext 44436fi 44437 44438 LIBS="$save_LIBS" 44439 44440fi 44441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5 44442printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; } 44443 case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in 44444 *yes) 44445 44446printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h 44447 44448 ;; 44449 esac 44450 44451 fi 44452 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 44453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44454/* end confdefs.h. */ 44455 44456 #include <pthread.h> 44457int 44458main (void) 44459{ 44460 44461#if __FreeBSD__ == 4 44462error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 44463#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 44464 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 44465error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 44466#else 44467int x = (int)PTHREAD_MUTEX_RECURSIVE; 44468return !x; 44469#endif 44470 44471 ; 44472 return 0; 44473} 44474_ACEOF 44475if ac_fn_c_try_compile "$LINENO" 44476then : 44477 44478printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 44479 44480fi 44481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 44482 fi 44483 : 44484 44485 44486 44487printf "%s\n" "#define GNULIB_LOCK $gl_module_indicator_condition" >>confdefs.h 44488 44489 44490 44491 44492 44493 44494 44495 44496 44497 if test $ac_cv_func_lstat = yes; then 44498 44499 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in 44500 solaris* | *no) 44501 REPLACE_LSTAT=1 44502 ;; 44503 esac 44504 else 44505 HAVE_LSTAT=0 44506 fi 44507 44508 if test $REPLACE_LSTAT = 1; then 44509 44510 44511 44512 44513 44514 44515 44516 44517 gltests_LIBOBJS="$gltests_LIBOBJS lstat.$ac_objext" 44518 44519 : 44520 fi 44521 44522 44523 44524 44525 44526 if test "$GNULIB_LSTAT" != 1; then 44527 if test "$GNULIB_LSTAT" = 0; then 44528 GNULIB_LSTAT=$gl_module_indicator_condition 44529 else 44530 GNULIB_LSTAT="($GNULIB_LSTAT || $gl_module_indicator_condition)" 44531 fi 44532 fi 44533 44534 44535 44536 44537 44538printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h 44539 44540 44541 44542 44543 44544 44545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 44546printf %s "checking for a traditional french locale... " >&6; } 44547if test ${gt_cv_locale_fr+y} 44548then : 44549 printf %s "(cached) " >&6 44550else $as_nop 44551 44552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44553/* end confdefs.h. */ 44554 44555#include <locale.h> 44556#include <time.h> 44557#if HAVE_LANGINFO_CODESET 44558# include <langinfo.h> 44559#endif 44560#include <stdlib.h> 44561#include <string.h> 44562struct tm t; 44563char buf[16]; 44564int main () { 44565 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 44566 imitates locale dependent behaviour by looking at the environment 44567 variables, and all locales use the UTF-8 encoding. */ 44568#if defined __BEOS__ || defined __HAIKU__ 44569 return 1; 44570#else 44571 /* Check whether the given locale name is recognized by the system. */ 44572# if defined _WIN32 && !defined __CYGWIN__ 44573 /* On native Windows, setlocale(category, "") looks at the system settings, 44574 not at the environment variables. Also, when an encoding suffix such 44575 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 44576 category of the locale to "C". */ 44577 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 44578 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 44579 return 1; 44580# else 44581 if (setlocale (LC_ALL, "") == NULL) return 1; 44582# endif 44583 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 44584 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 44585 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 44586 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 44587 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 44588 some unit tests fail. 44589 On MirBSD 10, when an unsupported locale is specified, setlocale() 44590 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 44591# if HAVE_LANGINFO_CODESET 44592 { 44593 const char *cs = nl_langinfo (CODESET); 44594 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 44595 || strcmp (cs, "UTF-8") == 0) 44596 return 1; 44597 } 44598# endif 44599# ifdef __CYGWIN__ 44600 /* On Cygwin, avoid locale names without encoding suffix, because the 44601 locale_charset() function relies on the encoding suffix. Note that 44602 LC_ALL is set on the command line. */ 44603 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 44604# endif 44605 /* Check whether in the abbreviation of the second month, the second 44606 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 44607 one byte long. This excludes the UTF-8 encoding. */ 44608 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 44609 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 44610# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 44611 /* Check whether the decimal separator is a comma. 44612 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 44613 are nl_langinfo(RADIXCHAR) are both ".". */ 44614 if (localeconv () ->decimal_point[0] != ',') return 1; 44615# endif 44616 return 0; 44617#endif 44618} 44619 44620_ACEOF 44621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 44622 (eval $ac_link) 2>&5 44623 ac_status=$? 44624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44625 test $ac_status = 0; } && test -s conftest$ac_exeext; then 44626 case "$host_os" in 44627 # Handle native Windows specially, because there setlocale() interprets 44628 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 44629 # "fr" or "fra" as "French" or "French_France.1252", 44630 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 44631 # "ja" as "Japanese" or "Japanese_Japan.932", 44632 # and similar. 44633 mingw*) 44634 # Test for the native Windows locale name. 44635 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44636 gt_cv_locale_fr=French_France.1252 44637 else 44638 # None found. 44639 gt_cv_locale_fr=none 44640 fi 44641 ;; 44642 *) 44643 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 44644 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 44645 # configure script would override the LC_ALL setting. Likewise for 44646 # LC_CTYPE, which is also set at the beginning of the configure script. 44647 # Test for the usual locale name. 44648 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44649 gt_cv_locale_fr=fr_FR 44650 else 44651 # Test for the locale name with explicit encoding suffix. 44652 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44653 gt_cv_locale_fr=fr_FR.ISO-8859-1 44654 else 44655 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 44656 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44657 gt_cv_locale_fr=fr_FR.ISO8859-1 44658 else 44659 # Test for the HP-UX locale name. 44660 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44661 gt_cv_locale_fr=fr_FR.iso88591 44662 else 44663 # Test for the Solaris 7 locale name. 44664 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44665 gt_cv_locale_fr=fr 44666 else 44667 # None found. 44668 gt_cv_locale_fr=none 44669 fi 44670 fi 44671 fi 44672 fi 44673 fi 44674 ;; 44675 esac 44676 fi 44677 rm -fr conftest* 44678 44679fi 44680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 44681printf "%s\n" "$gt_cv_locale_fr" >&6; } 44682 LOCALE_FR=$gt_cv_locale_fr 44683 44684 44685 44686 44687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 44688printf %s "checking for a french Unicode locale... " >&6; } 44689if test ${gt_cv_locale_fr_utf8+y} 44690then : 44691 printf %s "(cached) " >&6 44692else $as_nop 44693 44694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44695/* end confdefs.h. */ 44696 44697#include <locale.h> 44698#include <time.h> 44699#if HAVE_LANGINFO_CODESET 44700# include <langinfo.h> 44701#endif 44702#include <stdlib.h> 44703#include <string.h> 44704struct tm t; 44705char buf[16]; 44706int main () { 44707 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 44708 imitates locale dependent behaviour by looking at the environment 44709 variables, and all locales use the UTF-8 encoding. */ 44710#if !(defined __BEOS__ || defined __HAIKU__) 44711 /* Check whether the given locale name is recognized by the system. */ 44712# if defined _WIN32 && !defined __CYGWIN__ 44713 /* On native Windows, setlocale(category, "") looks at the system settings, 44714 not at the environment variables. Also, when an encoding suffix such 44715 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 44716 category of the locale to "C". */ 44717 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 44718 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 44719 return 1; 44720# else 44721 if (setlocale (LC_ALL, "") == NULL) return 1; 44722# endif 44723 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 44724 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 44725 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 44726 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 44727 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 44728 some unit tests fail. */ 44729# if HAVE_LANGINFO_CODESET 44730 { 44731 const char *cs = nl_langinfo (CODESET); 44732 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 44733 return 1; 44734 } 44735# endif 44736# ifdef __CYGWIN__ 44737 /* On Cygwin, avoid locale names without encoding suffix, because the 44738 locale_charset() function relies on the encoding suffix. Note that 44739 LC_ALL is set on the command line. */ 44740 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 44741# endif 44742 /* Check whether in the abbreviation of the second month, the second 44743 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 44744 two bytes long, with UTF-8 encoding. */ 44745 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 44746 if (strftime (buf, sizeof (buf), "%b", &t) < 4 44747 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 44748 return 1; 44749#endif 44750#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 44751 /* Check whether the decimal separator is a comma. 44752 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 44753 are nl_langinfo(RADIXCHAR) are both ".". */ 44754 if (localeconv () ->decimal_point[0] != ',') return 1; 44755#endif 44756 return 0; 44757} 44758 44759_ACEOF 44760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 44761 (eval $ac_link) 2>&5 44762 ac_status=$? 44763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44764 test $ac_status = 0; } && test -s conftest$ac_exeext; then 44765 case "$host_os" in 44766 # Handle native Windows specially, because there setlocale() interprets 44767 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 44768 # "fr" or "fra" as "French" or "French_France.1252", 44769 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 44770 # "ja" as "Japanese" or "Japanese_Japan.932", 44771 # and similar. 44772 mingw*) 44773 # Test for the hypothetical native Windows locale name. 44774 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44775 gt_cv_locale_fr_utf8=French_France.65001 44776 else 44777 # None found. 44778 gt_cv_locale_fr_utf8=none 44779 fi 44780 ;; 44781 *) 44782 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 44783 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 44784 # configure script would override the LC_ALL setting. Likewise for 44785 # LC_CTYPE, which is also set at the beginning of the configure script. 44786 # Test for the usual locale name. 44787 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44788 gt_cv_locale_fr_utf8=fr_FR 44789 else 44790 # Test for the locale name with explicit encoding suffix. 44791 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44792 gt_cv_locale_fr_utf8=fr_FR.UTF-8 44793 else 44794 # Test for the Solaris 7 locale name. 44795 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44796 gt_cv_locale_fr_utf8=fr.UTF-8 44797 else 44798 # None found. 44799 gt_cv_locale_fr_utf8=none 44800 fi 44801 fi 44802 fi 44803 ;; 44804 esac 44805 fi 44806 rm -fr conftest* 44807 44808fi 44809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 44810printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 44811 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 44812 44813 44814 44815 44816 44817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 44818printf %s "checking for a traditional japanese locale... " >&6; } 44819if test ${gt_cv_locale_ja+y} 44820then : 44821 printf %s "(cached) " >&6 44822else $as_nop 44823 44824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44825/* end confdefs.h. */ 44826 44827#include <locale.h> 44828#include <time.h> 44829#if HAVE_LANGINFO_CODESET 44830# include <langinfo.h> 44831#endif 44832#include <stdlib.h> 44833#include <string.h> 44834struct tm t; 44835char buf[16]; 44836int main () 44837{ 44838 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 44839 imitates locale dependent behaviour by looking at the environment 44840 variables, and all locales use the UTF-8 encoding. */ 44841#if defined __BEOS__ || defined __HAIKU__ 44842 return 1; 44843#else 44844 /* Check whether the given locale name is recognized by the system. */ 44845# if defined _WIN32 && !defined __CYGWIN__ 44846 /* On native Windows, setlocale(category, "") looks at the system settings, 44847 not at the environment variables. Also, when an encoding suffix such 44848 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 44849 category of the locale to "C". */ 44850 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 44851 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 44852 return 1; 44853# else 44854 if (setlocale (LC_ALL, "") == NULL) return 1; 44855# endif 44856 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 44857 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 44858 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 44859 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 44860 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 44861 some unit tests fail. 44862 On MirBSD 10, when an unsupported locale is specified, setlocale() 44863 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 44864# if HAVE_LANGINFO_CODESET 44865 { 44866 const char *cs = nl_langinfo (CODESET); 44867 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 44868 || strcmp (cs, "UTF-8") == 0) 44869 return 1; 44870 } 44871# endif 44872# ifdef __CYGWIN__ 44873 /* On Cygwin, avoid locale names without encoding suffix, because the 44874 locale_charset() function relies on the encoding suffix. Note that 44875 LC_ALL is set on the command line. */ 44876 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 44877# endif 44878 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 44879 on Cygwin 1.5.x. */ 44880 if (MB_CUR_MAX == 1) 44881 return 1; 44882 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 44883 This excludes the UTF-8 encoding (except on MirBSD). */ 44884 { 44885 const char *p; 44886 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 44887 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 44888 for (p = buf; *p != '\0'; p++) 44889 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 44890 return 1; 44891 } 44892 return 0; 44893#endif 44894} 44895 44896_ACEOF 44897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 44898 (eval $ac_link) 2>&5 44899 ac_status=$? 44900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44901 test $ac_status = 0; } && test -s conftest$ac_exeext; then 44902 case "$host_os" in 44903 # Handle native Windows specially, because there setlocale() interprets 44904 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 44905 # "fr" or "fra" as "French" or "French_France.1252", 44906 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 44907 # "ja" as "Japanese" or "Japanese_Japan.932", 44908 # and similar. 44909 mingw*) 44910 # Note that on native Windows, the Japanese locale is 44911 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 44912 # cannot use it here. 44913 gt_cv_locale_ja=none 44914 ;; 44915 *) 44916 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 44917 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 44918 # configure script would override the LC_ALL setting. Likewise for 44919 # LC_CTYPE, which is also set at the beginning of the configure script. 44920 # Test for the AIX locale name. 44921 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44922 gt_cv_locale_ja=ja_JP 44923 else 44924 # Test for the locale name with explicit encoding suffix. 44925 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44926 gt_cv_locale_ja=ja_JP.EUC-JP 44927 else 44928 # Test for the HP-UX, OSF/1, NetBSD locale name. 44929 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44930 gt_cv_locale_ja=ja_JP.eucJP 44931 else 44932 # Test for the IRIX, FreeBSD locale name. 44933 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44934 gt_cv_locale_ja=ja_JP.EUC 44935 else 44936 # Test for the Solaris 7 locale name. 44937 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 44938 gt_cv_locale_ja=ja 44939 else 44940 # Special test for NetBSD 1.6. 44941 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 44942 gt_cv_locale_ja=ja_JP.eucJP 44943 else 44944 # None found. 44945 gt_cv_locale_ja=none 44946 fi 44947 fi 44948 fi 44949 fi 44950 fi 44951 fi 44952 ;; 44953 esac 44954 fi 44955 rm -fr conftest* 44956 44957fi 44958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 44959printf "%s\n" "$gt_cv_locale_ja" >&6; } 44960 LOCALE_JA=$gt_cv_locale_ja 44961 44962 44963 44964 44965 44966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 44967printf %s "checking for a transitional chinese locale... " >&6; } 44968if test ${gt_cv_locale_zh_CN+y} 44969then : 44970 printf %s "(cached) " >&6 44971else $as_nop 44972 44973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 44974/* end confdefs.h. */ 44975 44976#include <locale.h> 44977#include <stdlib.h> 44978#include <time.h> 44979#if HAVE_LANGINFO_CODESET 44980# include <langinfo.h> 44981#endif 44982#include <stdlib.h> 44983#include <string.h> 44984struct tm t; 44985char buf[16]; 44986int main () 44987{ 44988 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 44989 imitates locale dependent behaviour by looking at the environment 44990 variables, and all locales use the UTF-8 encoding. */ 44991#if defined __BEOS__ || defined __HAIKU__ 44992 return 1; 44993#else 44994 /* Check whether the given locale name is recognized by the system. */ 44995# if defined _WIN32 && !defined __CYGWIN__ 44996 /* On native Windows, setlocale(category, "") looks at the system settings, 44997 not at the environment variables. Also, when an encoding suffix such 44998 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 44999 category of the locale to "C". */ 45000 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 45001 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 45002 return 1; 45003# else 45004 if (setlocale (LC_ALL, "") == NULL) return 1; 45005# endif 45006 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 45007 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 45008 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 45009 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 45010 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 45011 some unit tests fail. 45012 On MirBSD 10, when an unsupported locale is specified, setlocale() 45013 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 45014# if HAVE_LANGINFO_CODESET 45015 { 45016 const char *cs = nl_langinfo (CODESET); 45017 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 45018 || strcmp (cs, "UTF-8") == 0) 45019 return 1; 45020 } 45021# endif 45022# ifdef __CYGWIN__ 45023 /* On Cygwin, avoid locale names without encoding suffix, because the 45024 locale_charset() function relies on the encoding suffix. Note that 45025 LC_ALL is set on the command line. */ 45026 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 45027# endif 45028 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 45029 This excludes the UTF-8 encoding (except on MirBSD). */ 45030 { 45031 const char *p; 45032 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 45033 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 45034 for (p = buf; *p != '\0'; p++) 45035 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 45036 return 1; 45037 } 45038 /* Check whether a typical GB18030 multibyte sequence is recognized as a 45039 single wide character. This excludes the GB2312 and GBK encodings. */ 45040 if (mblen ("\203\062\332\066", 5) != 4) 45041 return 1; 45042 return 0; 45043#endif 45044} 45045 45046_ACEOF 45047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 45048 (eval $ac_link) 2>&5 45049 ac_status=$? 45050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45051 test $ac_status = 0; } && test -s conftest$ac_exeext; then 45052 case "$host_os" in 45053 # Handle native Windows specially, because there setlocale() interprets 45054 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 45055 # "fr" or "fra" as "French" or "French_France.1252", 45056 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 45057 # "ja" as "Japanese" or "Japanese_Japan.932", 45058 # and similar. 45059 mingw*) 45060 # Test for the hypothetical native Windows locale name. 45061 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 45062 gt_cv_locale_zh_CN=Chinese_China.54936 45063 else 45064 # None found. 45065 gt_cv_locale_zh_CN=none 45066 fi 45067 ;; 45068 solaris2.8) 45069 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 45070 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 45071 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 45072 gt_cv_locale_zh_CN=none 45073 ;; 45074 *) 45075 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 45076 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 45077 # configure script would override the LC_ALL setting. Likewise for 45078 # LC_CTYPE, which is also set at the beginning of the configure script. 45079 # Test for the locale name without encoding suffix. 45080 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 45081 gt_cv_locale_zh_CN=zh_CN 45082 else 45083 # Test for the locale name with explicit encoding suffix. 45084 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 45085 gt_cv_locale_zh_CN=zh_CN.GB18030 45086 else 45087 # None found. 45088 gt_cv_locale_zh_CN=none 45089 fi 45090 fi 45091 ;; 45092 esac 45093 else 45094 # If there was a link error, due to mblen(), the system is so old that 45095 # it certainly doesn't have a chinese locale. 45096 gt_cv_locale_zh_CN=none 45097 fi 45098 rm -fr conftest* 45099 45100fi 45101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 45102printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 45103 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 45104 45105 45106 45107 45108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 45109printf %s "checking for a french Unicode locale... " >&6; } 45110if test ${gt_cv_locale_fr_utf8+y} 45111then : 45112 printf %s "(cached) " >&6 45113else $as_nop 45114 45115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45116/* end confdefs.h. */ 45117 45118#include <locale.h> 45119#include <time.h> 45120#if HAVE_LANGINFO_CODESET 45121# include <langinfo.h> 45122#endif 45123#include <stdlib.h> 45124#include <string.h> 45125struct tm t; 45126char buf[16]; 45127int main () { 45128 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 45129 imitates locale dependent behaviour by looking at the environment 45130 variables, and all locales use the UTF-8 encoding. */ 45131#if !(defined __BEOS__ || defined __HAIKU__) 45132 /* Check whether the given locale name is recognized by the system. */ 45133# if defined _WIN32 && !defined __CYGWIN__ 45134 /* On native Windows, setlocale(category, "") looks at the system settings, 45135 not at the environment variables. Also, when an encoding suffix such 45136 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 45137 category of the locale to "C". */ 45138 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 45139 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 45140 return 1; 45141# else 45142 if (setlocale (LC_ALL, "") == NULL) return 1; 45143# endif 45144 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 45145 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 45146 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 45147 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 45148 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 45149 some unit tests fail. */ 45150# if HAVE_LANGINFO_CODESET 45151 { 45152 const char *cs = nl_langinfo (CODESET); 45153 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 45154 return 1; 45155 } 45156# endif 45157# ifdef __CYGWIN__ 45158 /* On Cygwin, avoid locale names without encoding suffix, because the 45159 locale_charset() function relies on the encoding suffix. Note that 45160 LC_ALL is set on the command line. */ 45161 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 45162# endif 45163 /* Check whether in the abbreviation of the second month, the second 45164 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 45165 two bytes long, with UTF-8 encoding. */ 45166 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 45167 if (strftime (buf, sizeof (buf), "%b", &t) < 4 45168 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 45169 return 1; 45170#endif 45171#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 45172 /* Check whether the decimal separator is a comma. 45173 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 45174 are nl_langinfo(RADIXCHAR) are both ".". */ 45175 if (localeconv () ->decimal_point[0] != ',') return 1; 45176#endif 45177 return 0; 45178} 45179 45180_ACEOF 45181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 45182 (eval $ac_link) 2>&5 45183 ac_status=$? 45184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45185 test $ac_status = 0; } && test -s conftest$ac_exeext; then 45186 case "$host_os" in 45187 # Handle native Windows specially, because there setlocale() interprets 45188 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 45189 # "fr" or "fra" as "French" or "French_France.1252", 45190 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 45191 # "ja" as "Japanese" or "Japanese_Japan.932", 45192 # and similar. 45193 mingw*) 45194 # Test for the hypothetical native Windows locale name. 45195 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 45196 gt_cv_locale_fr_utf8=French_France.65001 45197 else 45198 # None found. 45199 gt_cv_locale_fr_utf8=none 45200 fi 45201 ;; 45202 *) 45203 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 45204 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 45205 # configure script would override the LC_ALL setting. Likewise for 45206 # LC_CTYPE, which is also set at the beginning of the configure script. 45207 # Test for the usual locale name. 45208 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 45209 gt_cv_locale_fr_utf8=fr_FR 45210 else 45211 # Test for the locale name with explicit encoding suffix. 45212 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 45213 gt_cv_locale_fr_utf8=fr_FR.UTF-8 45214 else 45215 # Test for the Solaris 7 locale name. 45216 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 45217 gt_cv_locale_fr_utf8=fr.UTF-8 45218 else 45219 # None found. 45220 gt_cv_locale_fr_utf8=none 45221 fi 45222 fi 45223 fi 45224 ;; 45225 esac 45226 fi 45227 rm -fr conftest* 45228 45229fi 45230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 45231printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 45232 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 45233 45234 45235 45236 45237 45238 ac_fn_c_check_func "$LINENO" "mbtowc" "ac_cv_func_mbtowc" 45239if test "x$ac_cv_func_mbtowc" = xyes 45240then : 45241 printf "%s\n" "#define HAVE_MBTOWC 1" >>confdefs.h 45242 45243fi 45244 45245 if test $ac_cv_func_mbtowc = no; then 45246 HAVE_MBTOWC=0 45247 else 45248 if false; then 45249 REPLACE_MBTOWC=1 45250 fi 45251 fi 45252 45253 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then 45254 45255 45256 45257 45258 45259 45260 45261 45262 gltests_LIBOBJS="$gltests_LIBOBJS mbtowc.$ac_objext" 45263 45264 45265 : 45266 45267 fi 45268 45269 45270 45271 45272 45273 if test "$GNULIB_MBTOWC" != 1; then 45274 if test "$GNULIB_MBTOWC" = 0; then 45275 GNULIB_MBTOWC=$gl_module_indicator_condition 45276 else 45277 GNULIB_MBTOWC="($GNULIB_MBTOWC || $gl_module_indicator_condition)" 45278 fi 45279 fi 45280 45281 45282 45283 45284 45285printf "%s\n" "#define GNULIB_TEST_MBTOWC 1" >>confdefs.h 45286 45287 45288 45289 45290 45291 45292 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 45293 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 45294 # irrelevant for anonymous mappings. 45295 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 45296if test "x$ac_cv_func_mmap" = xyes 45297then : 45298 gl_have_mmap=yes 45299else $as_nop 45300 gl_have_mmap=no 45301fi 45302 45303 45304 # Try to allow MAP_ANONYMOUS. 45305 gl_have_mmap_anonymous=no 45306 if test $gl_have_mmap = yes; then 45307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 45308printf %s "checking for MAP_ANONYMOUS... " >&6; } 45309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45310/* end confdefs.h. */ 45311 45312#include <sys/mman.h> 45313#ifdef MAP_ANONYMOUS 45314 I cannot identify this map 45315#endif 45316 45317_ACEOF 45318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 45319 $EGREP "I cannot identify this map" >/dev/null 2>&1 45320then : 45321 gl_have_mmap_anonymous=yes 45322fi 45323rm -rf conftest* 45324 45325 if test $gl_have_mmap_anonymous != yes; then 45326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45327/* end confdefs.h. */ 45328 45329#include <sys/mman.h> 45330#ifdef MAP_ANON 45331 I cannot identify this map 45332#endif 45333 45334_ACEOF 45335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 45336 $EGREP "I cannot identify this map" >/dev/null 2>&1 45337then : 45338 45339printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 45340 45341 gl_have_mmap_anonymous=yes 45342fi 45343rm -rf conftest* 45344 45345 fi 45346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 45347printf "%s\n" "$gl_have_mmap_anonymous" >&6; } 45348 if test $gl_have_mmap_anonymous = yes; then 45349 45350printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 45351 45352 fi 45353 fi 45354 45355 45356 45357 45358 45359 45360 45361 45362 45363 45364 45365 45366 45367 nanosleep_save_libs=$LIBS 45368 45369 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function. 45370 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 45371 LIB_NANOSLEEP= 45372 45373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 45374printf %s "checking for library containing nanosleep... " >&6; } 45375if test ${ac_cv_search_nanosleep+y} 45376then : 45377 printf %s "(cached) " >&6 45378else $as_nop 45379 ac_func_search_save_LIBS=$LIBS 45380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45381/* end confdefs.h. */ 45382 45383/* Override any GCC internal prototype to avoid an error. 45384 Use char because int might match the return type of a GCC 45385 builtin and then its argument prototype would still apply. */ 45386char nanosleep (); 45387int 45388main (void) 45389{ 45390return nanosleep (); 45391 ; 45392 return 0; 45393} 45394_ACEOF 45395for ac_lib in '' rt posix4 45396do 45397 if test -z "$ac_lib"; then 45398 ac_res="none required" 45399 else 45400 ac_res=-l$ac_lib 45401 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 45402 fi 45403 if ac_fn_c_try_link "$LINENO" 45404then : 45405 ac_cv_search_nanosleep=$ac_res 45406fi 45407rm -f core conftest.err conftest.$ac_objext conftest.beam \ 45408 conftest$ac_exeext 45409 if test ${ac_cv_search_nanosleep+y} 45410then : 45411 break 45412fi 45413done 45414if test ${ac_cv_search_nanosleep+y} 45415then : 45416 45417else $as_nop 45418 ac_cv_search_nanosleep=no 45419fi 45420rm conftest.$ac_ext 45421LIBS=$ac_func_search_save_LIBS 45422fi 45423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 45424printf "%s\n" "$ac_cv_search_nanosleep" >&6; } 45425ac_res=$ac_cv_search_nanosleep 45426if test "$ac_res" != no 45427then : 45428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 45429 test "$ac_cv_search_nanosleep" = "none required" || 45430 LIB_NANOSLEEP=$ac_cv_search_nanosleep 45431fi 45432 45433 if test "x$ac_cv_search_nanosleep" != xno; then 45434 45435 45436 if test $APPLE_UNIVERSAL_BUILD = 1; then 45437 # A universal build on Apple Mac OS X platforms. 45438 # The test result would be 'no (mishandles large arguments)' in 64-bit 45439 # mode but 'yes' in 32-bit mode. But we need a configuration result that 45440 # is valid in both modes. 45441 gl_cv_func_nanosleep='no (mishandles large arguments)' 45442 fi 45443 45444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5 45445printf %s "checking for working nanosleep... " >&6; } 45446if test ${gl_cv_func_nanosleep+y} 45447then : 45448 printf %s "(cached) " >&6 45449else $as_nop 45450 45451 if test "$cross_compiling" = yes 45452then : 45453 case "$host_os" in linux*) # Guess it halfway works when the kernel is Linux. 45454 gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;; 45455 mingw*) # Guess no on native Windows. 45456 gl_cv_func_nanosleep='guessing no' ;; 45457 *) # If we don't know, obey --enable-cross-guesses. 45458 gl_cv_func_nanosleep="$gl_cross_guess_normal" ;; 45459 esac 45460 45461else $as_nop 45462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45463/* end confdefs.h. */ 45464 45465 #include <errno.h> 45466 #include <limits.h> 45467 #include <signal.h> 45468 #if HAVE_SYS_TIME_H 45469 #include <sys/time.h> 45470 #endif 45471 #include <time.h> 45472 #include <unistd.h> 45473 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) 45474 #define TYPE_MAXIMUM(t) \ 45475 ((t) (! TYPE_SIGNED (t) \ 45476 ? (t) -1 \ 45477 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 45478 45479 #if HAVE_DECL_ALARM 45480 static void 45481 check_for_SIGALRM (int sig) 45482 { 45483 if (sig != SIGALRM) 45484 _exit (1); 45485 } 45486 #endif 45487 45488 int 45489 main () 45490 { 45491 static struct timespec ts_sleep; 45492 static struct timespec ts_remaining; 45493 /* Test for major problems first. */ 45494 if (! nanosleep) 45495 return 2; 45496 ts_sleep.tv_sec = 0; 45497 ts_sleep.tv_nsec = 1; 45498 #if HAVE_DECL_ALARM 45499 { 45500 static struct sigaction act; 45501 act.sa_handler = check_for_SIGALRM; 45502 sigemptyset (&act.sa_mask); 45503 sigaction (SIGALRM, &act, NULL); 45504 alarm (1); 45505 if (nanosleep (&ts_sleep, NULL) != 0) 45506 return 3; 45507 /* Test for a minor problem: the handling of large arguments. */ 45508 ts_sleep.tv_sec = TYPE_MAXIMUM (time_t); 45509 ts_sleep.tv_nsec = 999999999; 45510 alarm (1); 45511 if (nanosleep (&ts_sleep, &ts_remaining) != -1) 45512 return 4; 45513 if (errno != EINTR) 45514 return 5; 45515 if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10) 45516 return 6; 45517 } 45518 #else /* A simpler test for native Windows. */ 45519 if (nanosleep (&ts_sleep, &ts_remaining) < 0) 45520 return 3; 45521 #endif 45522 return 0; 45523 } 45524_ACEOF 45525if ac_fn_c_try_run "$LINENO" 45526then : 45527 gl_cv_func_nanosleep=yes 45528else $as_nop 45529 case $? in 4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)';; *) gl_cv_func_nanosleep=no;; 45530 esac 45531fi 45532rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 45533 conftest.$ac_objext conftest.beam conftest.$ac_ext 45534fi 45535 45536 45537fi 45538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5 45539printf "%s\n" "$gl_cv_func_nanosleep" >&6; } 45540 case "$gl_cv_func_nanosleep" in 45541 *yes) 45542 REPLACE_NANOSLEEP=0 45543 ;; 45544 *) 45545 REPLACE_NANOSLEEP=1 45546 case "$gl_cv_func_nanosleep" in 45547 *"mishandles large arguments"*) 45548 45549printf "%s\n" "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h 45550 45551 ;; 45552 *) 45553 # The replacement uses select(). Add $LIBSOCKET to $LIB_NANOSLEEP. 45554 for ac_lib in $LIBSOCKET; do 45555 case " $LIB_NANOSLEEP " in 45556 *" $ac_lib "*) ;; 45557 *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";; 45558 esac 45559 done 45560 ;; 45561 esac 45562 ;; 45563 esac 45564 else 45565 HAVE_NANOSLEEP=0 45566 fi 45567 LIBS=$nanosleep_save_libs 45568 45569 if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then 45570 45571 45572 45573 45574 45575 45576 45577 45578 gltests_LIBOBJS="$gltests_LIBOBJS nanosleep.$ac_objext" 45579 45580 45581 45582 : 45583 45584 fi 45585 45586 45587 45588 45589 45590 if test "$GNULIB_NANOSLEEP" != 1; then 45591 if test "$GNULIB_NANOSLEEP" = 0; then 45592 GNULIB_NANOSLEEP=$gl_module_indicator_condition 45593 else 45594 GNULIB_NANOSLEEP="($GNULIB_NANOSLEEP || $gl_module_indicator_condition)" 45595 fi 45596 fi 45597 45598 45599 45600 45601 45602printf "%s\n" "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h 45603 45604 45605 45606 45607 45608 45609 45610 45611 45612 45613 45614 45615 45616 45617 45618 45619 45620 45621 45622 if test $gl_cv_have_include_next = yes; then 45623 gl_cv_next_pthread_h='<'pthread.h'>' 45624 else 45625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <pthread.h>" >&5 45626printf %s "checking absolute name of <pthread.h>... " >&6; } 45627if test ${gl_cv_next_pthread_h+y} 45628then : 45629 printf %s "(cached) " >&6 45630else $as_nop 45631 45632 if test $ac_cv_header_pthread_h = yes; then 45633 45634 45635 45636 45637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45638/* end confdefs.h. */ 45639#include <pthread.h> 45640_ACEOF 45641 case "$host_os" in 45642 aix*) gl_absname_cpp="$ac_cpp -C" ;; 45643 *) gl_absname_cpp="$ac_cpp" ;; 45644 esac 45645 45646 case "$host_os" in 45647 mingw*) 45648 gl_dirsep_regex='[/\\]' 45649 ;; 45650 *) 45651 gl_dirsep_regex='\/' 45652 ;; 45653 esac 45654 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 45655 gl_header_literal_regex=`echo 'pthread.h' \ 45656 | sed -e "$gl_make_literal_regex_sed"` 45657 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 45658 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 45659 s|^/[^/]|//&| 45660 p 45661 q 45662 }' 45663 45664 gl_cv_absolute_pthread_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 45665 sed -n "$gl_absolute_header_sed"` 45666 45667 gl_header=$gl_cv_absolute_pthread_h 45668 gl_cv_next_pthread_h='"'$gl_header'"' 45669 else 45670 gl_cv_next_pthread_h='<'pthread.h'>' 45671 fi 45672 45673 45674fi 45675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_pthread_h" >&5 45676printf "%s\n" "$gl_cv_next_pthread_h" >&6; } 45677 fi 45678 NEXT_PTHREAD_H=$gl_cv_next_pthread_h 45679 45680 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 45681 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 45682 gl_next_as_first_directive='<'pthread.h'>' 45683 else 45684 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 45685 gl_next_as_first_directive=$gl_cv_next_pthread_h 45686 fi 45687 NEXT_AS_FIRST_DIRECTIVE_PTHREAD_H=$gl_next_as_first_directive 45688 45689 45690 45691 45692 if test $ac_cv_header_pthread_h = yes; then 45693 HAVE_PTHREAD_H=1 45694 45695 45696 if { case "$host_os" in mingw*) true;; *) false;; esac; } \ 45697 && test $gl_threads_api = windows; then 45698 HAVE_PTHREAD_H=0 45699 fi 45700 45701 else 45702 HAVE_PTHREAD_H=0 45703 fi 45704 45705 45706 ac_fn_c_check_type "$LINENO" "pthread_t" "ac_cv_type_pthread_t" "$ac_includes_default 45707 #if HAVE_PTHREAD_H 45708 #include <pthread.h> 45709 #endif 45710" 45711if test "x$ac_cv_type_pthread_t" = xyes 45712then : 45713 45714printf "%s\n" "#define HAVE_PTHREAD_T 1" >>confdefs.h 45715 45716 45717fi 45718ac_fn_c_check_type "$LINENO" "pthread_spinlock_t" "ac_cv_type_pthread_spinlock_t" "$ac_includes_default 45719 #if HAVE_PTHREAD_H 45720 #include <pthread.h> 45721 #endif 45722" 45723if test "x$ac_cv_type_pthread_spinlock_t" = xyes 45724then : 45725 45726printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK_T 1" >>confdefs.h 45727 45728 45729fi 45730 45731 if test $ac_cv_type_pthread_t != yes; then 45732 HAVE_PTHREAD_T=0 45733 fi 45734 if test $ac_cv_type_pthread_spinlock_t != yes; then 45735 HAVE_PTHREAD_SPINLOCK_T=0 45736 fi 45737 45738 45739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_CREATE_DETACHED" >&5 45740printf %s "checking for PTHREAD_CREATE_DETACHED... " >&6; } 45741if test ${gl_cv_const_PTHREAD_CREATE_DETACHED+y} 45742then : 45743 printf %s "(cached) " >&6 45744else $as_nop 45745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45746/* end confdefs.h. */ 45747#include <pthread.h> 45748 int x = PTHREAD_CREATE_DETACHED; 45749 45750int 45751main (void) 45752{ 45753 45754 ; 45755 return 0; 45756} 45757_ACEOF 45758if ac_fn_c_try_compile "$LINENO" 45759then : 45760 gl_cv_const_PTHREAD_CREATE_DETACHED=yes 45761else $as_nop 45762 gl_cv_const_PTHREAD_CREATE_DETACHED=no 45763fi 45764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45765 45766fi 45767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_CREATE_DETACHED" >&5 45768printf "%s\n" "$gl_cv_const_PTHREAD_CREATE_DETACHED" >&6; } 45769 if test $gl_cv_const_PTHREAD_CREATE_DETACHED != yes; then 45770 HAVE_PTHREAD_CREATE_DETACHED=0 45771 fi 45772 45773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE" >&5 45774printf %s "checking for PTHREAD_MUTEX_RECURSIVE... " >&6; } 45775if test ${gl_cv_const_PTHREAD_MUTEX_RECURSIVE+y} 45776then : 45777 printf %s "(cached) " >&6 45778else $as_nop 45779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45780/* end confdefs.h. */ 45781#include <pthread.h> 45782 int x = PTHREAD_MUTEX_RECURSIVE; 45783 45784int 45785main (void) 45786{ 45787 45788 ; 45789 return 0; 45790} 45791_ACEOF 45792if ac_fn_c_try_compile "$LINENO" 45793then : 45794 gl_cv_const_PTHREAD_MUTEX_RECURSIVE=yes 45795else $as_nop 45796 gl_cv_const_PTHREAD_MUTEX_RECURSIVE=no 45797fi 45798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45799 45800fi 45801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&5 45802printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_RECURSIVE" >&6; } 45803 if test $gl_cv_const_PTHREAD_MUTEX_RECURSIVE != yes; then 45804 HAVE_PTHREAD_MUTEX_RECURSIVE=0 45805 fi 45806 45807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ROBUST" >&5 45808printf %s "checking for PTHREAD_MUTEX_ROBUST... " >&6; } 45809if test ${gl_cv_const_PTHREAD_MUTEX_ROBUST+y} 45810then : 45811 printf %s "(cached) " >&6 45812else $as_nop 45813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45814/* end confdefs.h. */ 45815#include <pthread.h> 45816 int x = PTHREAD_MUTEX_ROBUST; 45817 45818int 45819main (void) 45820{ 45821 45822 ; 45823 return 0; 45824} 45825_ACEOF 45826if ac_fn_c_try_compile "$LINENO" 45827then : 45828 gl_cv_const_PTHREAD_MUTEX_ROBUST=yes 45829else $as_nop 45830 gl_cv_const_PTHREAD_MUTEX_ROBUST=no 45831fi 45832rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45833 45834fi 45835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_MUTEX_ROBUST" >&5 45836printf "%s\n" "$gl_cv_const_PTHREAD_MUTEX_ROBUST" >&6; } 45837 if test $gl_cv_const_PTHREAD_MUTEX_ROBUST != yes; then 45838 HAVE_PTHREAD_MUTEX_ROBUST=0 45839 fi 45840 45841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PROCESS_SHARED" >&5 45842printf %s "checking for PTHREAD_PROCESS_SHARED... " >&6; } 45843if test ${gl_cv_const_PTHREAD_PROCESS_SHARED+y} 45844then : 45845 printf %s "(cached) " >&6 45846else $as_nop 45847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45848/* end confdefs.h. */ 45849#include <pthread.h> 45850 int x = PTHREAD_PROCESS_SHARED; 45851 45852int 45853main (void) 45854{ 45855 45856 ; 45857 return 0; 45858} 45859_ACEOF 45860if ac_fn_c_try_compile "$LINENO" 45861then : 45862 gl_cv_const_PTHREAD_PROCESS_SHARED=yes 45863else $as_nop 45864 gl_cv_const_PTHREAD_PROCESS_SHARED=no 45865fi 45866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 45867 45868fi 45869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_const_PTHREAD_PROCESS_SHARED" >&5 45870printf "%s\n" "$gl_cv_const_PTHREAD_PROCESS_SHARED" >&6; } 45871 if test $gl_cv_const_PTHREAD_PROCESS_SHARED != yes; then 45872 HAVE_PTHREAD_PROCESS_SHARED=0 45873 fi 45874 45875 45876 45877 45878 45879 45880 45881 LIB_PTHREAD="$LIBPMULTITHREAD" 45882 45883 45884 45885 45886 45887 45888 if { case "$host_os" in mingw*) true;; *) false;; esac; } \ 45889 && test $gl_threads_api = windows; then 45890 REPLACE_PTHREAD_CREATE=1 45891 REPLACE_PTHREAD_ATTR_INIT=1 45892 REPLACE_PTHREAD_ATTR_GETDETACHSTATE=1 45893 REPLACE_PTHREAD_ATTR_SETDETACHSTATE=1 45894 REPLACE_PTHREAD_ATTR_DESTROY=1 45895 REPLACE_PTHREAD_SELF=1 45896 REPLACE_PTHREAD_EQUAL=1 45897 REPLACE_PTHREAD_DETACH=1 45898 REPLACE_PTHREAD_JOIN=1 45899 REPLACE_PTHREAD_EXIT=1 45900 else 45901 if test $HAVE_PTHREAD_H = 0; then 45902 HAVE_PTHREAD_CREATE=0 45903 HAVE_PTHREAD_ATTR_INIT=0 45904 HAVE_PTHREAD_ATTR_GETDETACHSTATE=0 45905 HAVE_PTHREAD_ATTR_SETDETACHSTATE=0 45906 HAVE_PTHREAD_ATTR_DESTROY=0 45907 HAVE_PTHREAD_SELF=0 45908 HAVE_PTHREAD_EQUAL=0 45909 HAVE_PTHREAD_DETACH=0 45910 HAVE_PTHREAD_JOIN=0 45911 HAVE_PTHREAD_EXIT=0 45912 else 45913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_create exists as a global function" >&5 45914printf %s "checking whether pthread_create exists as a global function... " >&6; } 45915if test ${gl_cv_func_pthread_create+y} 45916then : 45917 printf %s "(cached) " >&6 45918else $as_nop 45919 saved_LIBS="$LIBS" 45920 LIBS="$LIBS $LIBPMULTITHREAD" 45921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45922/* end confdefs.h. */ 45923extern 45924 #ifdef __cplusplus 45925 "C" 45926 #endif 45927 int pthread_create (void); 45928 int main () 45929 { 45930 return pthread_create (); 45931 } 45932 45933_ACEOF 45934if ac_fn_c_try_link "$LINENO" 45935then : 45936 gl_cv_func_pthread_create=yes 45937else $as_nop 45938 gl_cv_func_pthread_create=no 45939fi 45940rm -f core conftest.err conftest.$ac_objext conftest.beam \ 45941 conftest$ac_exeext conftest.$ac_ext 45942 LIBS="$saved_LIBS" 45943 45944fi 45945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_create" >&5 45946printf "%s\n" "$gl_cv_func_pthread_create" >&6; } 45947 if test $gl_cv_func_pthread_create = no; then 45948 REPLACE_PTHREAD_CREATE=1 45949 REPLACE_PTHREAD_ATTR_INIT=1 45950 45951printf "%s\n" "#define PTHREAD_CREATE_IS_INLINE 1" >>confdefs.h 45952 45953 fi 45954 fi 45955 fi 45956 45957 if test $HAVE_PTHREAD_CREATE = 0 || test $REPLACE_PTHREAD_CREATE = 1; then 45958 45959 45960 45961 45962 45963 45964 45965 45966 gltests_LIBOBJS="$gltests_LIBOBJS pthread-thread.$ac_objext" 45967 45968 fi 45969 45970 45971 45972 45973 45974 if test "$GNULIB_PTHREAD_THREAD" != 1; then 45975 if test "$GNULIB_PTHREAD_THREAD" = 0; then 45976 GNULIB_PTHREAD_THREAD=$gl_module_indicator_condition 45977 else 45978 GNULIB_PTHREAD_THREAD="($GNULIB_PTHREAD_THREAD || $gl_module_indicator_condition)" 45979 fi 45980 fi 45981 45982 45983 45984 45985 45986printf "%s\n" "#define GNULIB_TEST_PTHREAD_THREAD 1" >>confdefs.h 45987 45988 45989 45990 45991 45992 45993 45994 45995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is a macro" >&5 45996printf %s "checking whether pthread_sigmask is a macro... " >&6; } 45997if test ${gl_cv_func_pthread_sigmask_macro+y} 45998then : 45999 printf %s "(cached) " >&6 46000else $as_nop 46001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46002/* end confdefs.h. */ 46003 46004#include <pthread.h> 46005#include <signal.h> 46006#ifdef pthread_sigmask 46007 headers_define_pthread_sigmask 46008#endif 46009_ACEOF 46010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 46011 $EGREP "headers_define_pthread_sigmask" >/dev/null 2>&1 46012then : 46013 gl_cv_func_pthread_sigmask_macro=yes 46014else $as_nop 46015 gl_cv_func_pthread_sigmask_macro=no 46016fi 46017rm -rf conftest* 46018 46019 46020fi 46021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_macro" >&5 46022printf "%s\n" "$gl_cv_func_pthread_sigmask_macro" >&6; } 46023 46024 LIB_PTHREAD_SIGMASK= 46025 46026 if test $gl_cv_func_pthread_sigmask_macro = yes; then 46027 HAVE_PTHREAD_SIGMASK=0 46028 REPLACE_PTHREAD_SIGMASK=1 46029 else 46030 46031 46032 46033 if test "$gl_threads_api" = posix; then 46034 if test $ac_cv_func_pthread_sigmask = yes; then 46035 : 46036 else 46037 if test -n "$LIBMULTITHREAD"; then 46038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5 46039printf %s "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; } 46040if test ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+y} 46041then : 46042 printf %s "(cached) " >&6 46043else $as_nop 46044 gl_save_LIBS="$LIBS" 46045 LIBS="$LIBS $LIBMULTITHREAD" 46046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46047/* end confdefs.h. */ 46048#include <pthread.h> 46049 #include <signal.h> 46050 46051int 46052main (void) 46053{ 46054return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0); 46055 ; 46056 return 0; 46057} 46058 46059_ACEOF 46060if ac_fn_c_try_link "$LINENO" 46061then : 46062 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes 46063else $as_nop 46064 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no 46065fi 46066rm -f core conftest.err conftest.$ac_objext conftest.beam \ 46067 conftest$ac_exeext conftest.$ac_ext 46068 LIBS="$gl_save_LIBS" 46069 46070fi 46071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5 46072printf "%s\n" "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; } 46073 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then 46074 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD" 46075 else 46076 HAVE_PTHREAD_SIGMASK=0 46077 fi 46078 else 46079 HAVE_PTHREAD_SIGMASK=0 46080 fi 46081 fi 46082 else 46083 if test $ac_cv_func_pthread_sigmask = yes; then 46084 REPLACE_PTHREAD_SIGMASK=1 46085 else 46086 HAVE_PTHREAD_SIGMASK=0 46087 fi 46088 fi 46089 46090 fi 46091 46092 46093 46094 if test $HAVE_PTHREAD_SIGMASK = 1; then 46095 46096 46097 if test -z "$LIB_PTHREAD_SIGMASK"; then 46098 case " $LIBS " in 46099 *' -pthread '*) ;; 46100 *' -lpthread '*) ;; 46101 *) 46102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5 46103printf %s "checking whether pthread_sigmask works without -lpthread... " >&6; } 46104if test ${gl_cv_func_pthread_sigmask_in_libc_works+y} 46105then : 46106 printf %s "(cached) " >&6 46107else $as_nop 46108 46109 if test "$cross_compiling" = yes 46110then : 46111 46112 case "$host_os" in 46113 freebsd* | hpux* | solaris | solaris2.[2-9]*) 46114 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";; 46115 *) 46116 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";; 46117 esac 46118 46119else $as_nop 46120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46121/* end confdefs.h. */ 46122 46123 #include <pthread.h> 46124 #include <signal.h> 46125 #include <stddef.h> 46126 int main () 46127 { 46128 sigset_t set; 46129 sigemptyset (&set); 46130 return pthread_sigmask (1729, &set, NULL) != 0; 46131 } 46132_ACEOF 46133if ac_fn_c_try_run "$LINENO" 46134then : 46135 gl_cv_func_pthread_sigmask_in_libc_works=no 46136else $as_nop 46137 gl_cv_func_pthread_sigmask_in_libc_works=yes 46138fi 46139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46140 conftest.$ac_objext conftest.beam conftest.$ac_ext 46141fi 46142 46143 46144fi 46145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5 46146printf "%s\n" "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; } 46147 case "$gl_cv_func_pthread_sigmask_in_libc_works" in 46148 *no) 46149 REPLACE_PTHREAD_SIGMASK=1 46150 46151printf "%s\n" "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h 46152 46153 ;; 46154 esac;; 46155 esac 46156 fi 46157 46158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5 46159printf %s "checking whether pthread_sigmask returns error numbers... " >&6; } 46160if test ${gl_cv_func_pthread_sigmask_return_works+y} 46161then : 46162 printf %s "(cached) " >&6 46163else $as_nop 46164 46165 gl_save_LIBS="$LIBS" 46166 LIBS="$LIBS $LIB_PTHREAD_SIGMASK" 46167 if test "$cross_compiling" = yes 46168then : 46169 case "$host_os" in 46170 cygwin*) 46171 gl_cv_func_pthread_sigmask_return_works="guessing no";; 46172 *) 46173 gl_cv_func_pthread_sigmask_return_works="guessing yes";; 46174 esac 46175 46176else $as_nop 46177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46178/* end confdefs.h. */ 46179 46180#include <pthread.h> 46181#include <signal.h> 46182#include <stddef.h> 46183int main () 46184{ 46185 sigset_t set; 46186 sigemptyset (&set); 46187 if (pthread_sigmask (1729, &set, NULL) == -1) 46188 return 1; 46189 return 0; 46190} 46191_ACEOF 46192if ac_fn_c_try_run "$LINENO" 46193then : 46194 gl_cv_func_pthread_sigmask_return_works=yes 46195else $as_nop 46196 gl_cv_func_pthread_sigmask_return_works=no 46197fi 46198rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46199 conftest.$ac_objext conftest.beam conftest.$ac_ext 46200fi 46201 46202 LIBS="$gl_save_LIBS" 46203 46204fi 46205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5 46206printf "%s\n" "$gl_cv_func_pthread_sigmask_return_works" >&6; } 46207 case "$gl_cv_func_pthread_sigmask_return_works" in 46208 *no) 46209 REPLACE_PTHREAD_SIGMASK=1 46210 46211printf "%s\n" "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h 46212 46213 ;; 46214 esac 46215 46216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5 46217printf %s "checking whether pthread_sigmask unblocks signals correctly... " >&6; } 46218if test ${gl_cv_func_pthread_sigmask_unblock_works+y} 46219then : 46220 printf %s "(cached) " >&6 46221else $as_nop 46222 46223 case "$host_os" in 46224 irix*) 46225 gl_cv_func_pthread_sigmask_unblock_works="guessing no";; 46226 *) 46227 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";; 46228 esac 46229 gl_save_LIBS=$LIBS 46230 LIBS="$LIBS $LIBMULTITHREAD" 46231 if test "$cross_compiling" = yes 46232then : 46233 : 46234else $as_nop 46235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46236/* end confdefs.h. */ 46237 46238#include <pthread.h> 46239#include <signal.h> 46240#include <stdio.h> 46241#include <stdlib.h> 46242#include <unistd.h> 46243 46244 46245$gl_mda_defines 46246 46247static volatile int sigint_occurred; 46248static void 46249sigint_handler (int sig) 46250{ 46251 sigint_occurred++; 46252} 46253int main () 46254{ 46255 sigset_t set; 46256 int pid = getpid (); 46257 char command[80]; 46258 signal (SIGINT, sigint_handler); 46259 sigemptyset (&set); 46260 sigaddset (&set, SIGINT); 46261 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0)) 46262 return 1; 46263 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid); 46264 if (!(system (command) == 0)) 46265 return 2; 46266 sleep (2); 46267 if (!(sigint_occurred == 0)) 46268 return 3; 46269 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0)) 46270 return 4; 46271 if (!(sigint_occurred == 1)) /* This fails on IRIX. */ 46272 return 5; 46273 return 0; 46274} 46275_ACEOF 46276if ac_fn_c_try_run "$LINENO" 46277then : 46278 : 46279else $as_nop 46280 gl_cv_func_pthread_sigmask_unblock_works=no 46281fi 46282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46283 conftest.$ac_objext conftest.beam conftest.$ac_ext 46284fi 46285 46286 LIBS=$gl_save_LIBS 46287 46288fi 46289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5 46290printf "%s\n" "$gl_cv_func_pthread_sigmask_unblock_works" >&6; } 46291 case "$gl_cv_func_pthread_sigmask_unblock_works" in 46292 *no) 46293 REPLACE_PTHREAD_SIGMASK=1 46294 46295printf "%s\n" "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h 46296 46297 ;; 46298 esac 46299 fi 46300 46301 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then 46302 46303 46304 46305 46306 46307 46308 46309 46310 gltests_LIBOBJS="$gltests_LIBOBJS pthread_sigmask.$ac_objext" 46311 46312 46313 if test $HAVE_PTHREAD_SIGMASK = 1; then 46314 46315printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h 46316 46317 fi 46318 46319 fi 46320 46321 46322 46323 46324 46325 if test "$GNULIB_PTHREAD_SIGMASK" != 1; then 46326 if test "$GNULIB_PTHREAD_SIGMASK" = 0; then 46327 GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition 46328 else 46329 GNULIB_PTHREAD_SIGMASK="($GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)" 46330 fi 46331 fi 46332 46333 46334 46335 46336 46337printf "%s\n" "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h 46338 46339 46340 46341 46342 46343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5 46344printf %s "checking for putenv compatible with GNU and SVID... " >&6; } 46345if test ${gl_cv_func_svid_putenv+y} 46346then : 46347 printf %s "(cached) " >&6 46348else $as_nop 46349 if test "$cross_compiling" = yes 46350then : 46351 case "$host_os" in 46352 # Guess yes on glibc systems. 46353 *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;; 46354 # Guess yes on musl systems. 46355 *-musl*) gl_cv_func_svid_putenv="guessing yes" ;; 46356 # Guess no on native Windows. 46357 mingw*) gl_cv_func_svid_putenv="guessing no" ;; 46358 # If we don't know, obey --enable-cross-guesses. 46359 *) gl_cv_func_svid_putenv="$gl_cross_guess_normal" ;; 46360 esac 46361 46362else $as_nop 46363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46364/* end confdefs.h. */ 46365$ac_includes_default 46366 46367 46368$gl_mda_defines 46369 46370int 46371main (void) 46372{ 46373 46374 /* Put it in env. */ 46375 if (putenv ("CONFTEST_putenv=val")) 46376 return 1; 46377 46378 /* Try to remove it. */ 46379 if (putenv ("CONFTEST_putenv")) 46380 return 2; 46381 46382 /* Make sure it was deleted. */ 46383 if (getenv ("CONFTEST_putenv") != 0) 46384 return 3; 46385 46386 return 0; 46387 46388 ; 46389 return 0; 46390} 46391_ACEOF 46392if ac_fn_c_try_run "$LINENO" 46393then : 46394 gl_cv_func_svid_putenv=yes 46395else $as_nop 46396 gl_cv_func_svid_putenv=no 46397fi 46398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46399 conftest.$ac_objext conftest.beam conftest.$ac_ext 46400fi 46401 46402 46403fi 46404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5 46405printf "%s\n" "$gl_cv_func_svid_putenv" >&6; } 46406 case "$gl_cv_func_svid_putenv" in 46407 *yes) ;; 46408 *) 46409 REPLACE_PUTENV=1 46410 ;; 46411 esac 46412 46413 if test $REPLACE_PUTENV = 1; then 46414 46415 46416 46417 46418 46419 46420 46421 46422 gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext" 46423 46424 46425 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default" 46426if test "x$ac_cv_have_decl__putenv" = xyes 46427then : 46428 ac_have_decl=1 46429else $as_nop 46430 ac_have_decl=0 46431fi 46432 46433printf "%s\n" "#define HAVE_DECL__PUTENV $ac_have_decl" >>confdefs.h 46434 46435 46436 fi 46437 46438 46439 46440 46441 46442 if test "$GNULIB_PUTENV" != 1; then 46443 if test "$GNULIB_PUTENV" = 0; then 46444 GNULIB_PUTENV=$gl_module_indicator_condition 46445 else 46446 GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)" 46447 fi 46448 fi 46449 46450 46451 46452 46453 46454printf "%s\n" "#define GNULIB_TEST_PUTENV 1" >>confdefs.h 46455 46456 46457 46458 46459 46460 46461 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 46462 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 46463 # irrelevant for anonymous mappings. 46464 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 46465if test "x$ac_cv_func_mmap" = xyes 46466then : 46467 gl_have_mmap=yes 46468else $as_nop 46469 gl_have_mmap=no 46470fi 46471 46472 46473 # Try to allow MAP_ANONYMOUS. 46474 gl_have_mmap_anonymous=no 46475 if test $gl_have_mmap = yes; then 46476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5 46477printf %s "checking for MAP_ANONYMOUS... " >&6; } 46478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46479/* end confdefs.h. */ 46480 46481#include <sys/mman.h> 46482#ifdef MAP_ANONYMOUS 46483 I cannot identify this map 46484#endif 46485 46486_ACEOF 46487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 46488 $EGREP "I cannot identify this map" >/dev/null 2>&1 46489then : 46490 gl_have_mmap_anonymous=yes 46491fi 46492rm -rf conftest* 46493 46494 if test $gl_have_mmap_anonymous != yes; then 46495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46496/* end confdefs.h. */ 46497 46498#include <sys/mman.h> 46499#ifdef MAP_ANON 46500 I cannot identify this map 46501#endif 46502 46503_ACEOF 46504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 46505 $EGREP "I cannot identify this map" >/dev/null 2>&1 46506then : 46507 46508printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h 46509 46510 gl_have_mmap_anonymous=yes 46511fi 46512rm -rf conftest* 46513 46514 fi 46515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5 46516printf "%s\n" "$gl_have_mmap_anonymous" >&6; } 46517 if test $gl_have_mmap_anonymous = yes; then 46518 46519printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h 46520 46521 fi 46522 fi 46523 46524 46525 46526 46527 46528 46529 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise" 46530if test "x$ac_cv_func_raise" = xyes 46531then : 46532 printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h 46533 46534fi 46535 46536 if test $ac_cv_func_raise = no; then 46537 HAVE_RAISE=0 46538 else 46539 46540 46541 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 46542 REPLACE_RAISE=1 46543 fi 46544 46545 46546 46547 46548 46549 HAVE_POSIX_SIGNALBLOCKING=0 46550 if test "$gl_cv_type_sigset_t" = yes; then 46551 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 46552if test "x$ac_cv_func_sigprocmask" = xyes 46553then : 46554 HAVE_POSIX_SIGNALBLOCKING=1 46555fi 46556 46557 fi 46558 46559 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 46560 : 46561 fi 46562 46563 fi 46564 46565 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then 46566 46567 46568 46569 46570 46571 46572 46573 46574 gltests_LIBOBJS="$gltests_LIBOBJS raise.$ac_objext" 46575 46576 : 46577 fi 46578 46579 46580 46581 46582 46583 if test "$GNULIB_RAISE" != 1; then 46584 if test "$GNULIB_RAISE" = 0; then 46585 GNULIB_RAISE=$gl_module_indicator_condition 46586 else 46587 GNULIB_RAISE="($GNULIB_RAISE || $gl_module_indicator_condition)" 46588 fi 46589 fi 46590 46591 46592 46593 46594 46595printf "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h 46596 46597 46598 46599 46600 46601 46602 46603 46604 46605 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "#if HAVE_SYS_CDEFS_H 46606 #include <sys/cdefs.h> 46607 #endif 46608 46609" 46610if test "x$ac_cv_header_sched_h" = xyes 46611then : 46612 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 46613 46614fi 46615 46616 46617 46618 46619 46620 46621 46622 46623 46624 if test $gl_cv_have_include_next = yes; then 46625 gl_cv_next_sched_h='<'sched.h'>' 46626 else 46627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sched.h>" >&5 46628printf %s "checking absolute name of <sched.h>... " >&6; } 46629if test ${gl_cv_next_sched_h+y} 46630then : 46631 printf %s "(cached) " >&6 46632else $as_nop 46633 46634 46635 46636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46637/* end confdefs.h. */ 46638#include <sched.h> 46639_ACEOF 46640 case "$host_os" in 46641 aix*) gl_absname_cpp="$ac_cpp -C" ;; 46642 *) gl_absname_cpp="$ac_cpp" ;; 46643 esac 46644 46645 case "$host_os" in 46646 mingw*) 46647 gl_dirsep_regex='[/\\]' 46648 ;; 46649 *) 46650 gl_dirsep_regex='\/' 46651 ;; 46652 esac 46653 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 46654 gl_header_literal_regex=`echo 'sched.h' \ 46655 | sed -e "$gl_make_literal_regex_sed"` 46656 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 46657 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 46658 s|^/[^/]|//&| 46659 p 46660 q 46661 }' 46662 46663 gl_cv_absolute_sched_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 46664 sed -n "$gl_absolute_header_sed"` 46665 46666 gl_header=$gl_cv_absolute_sched_h 46667 gl_cv_next_sched_h='"'$gl_header'"' 46668 46669 46670fi 46671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sched_h" >&5 46672printf "%s\n" "$gl_cv_next_sched_h" >&6; } 46673 fi 46674 NEXT_SCHED_H=$gl_cv_next_sched_h 46675 46676 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 46677 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 46678 gl_next_as_first_directive='<'sched.h'>' 46679 else 46680 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 46681 gl_next_as_first_directive=$gl_cv_next_sched_h 46682 fi 46683 NEXT_AS_FIRST_DIRECTIVE_SCHED_H=$gl_next_as_first_directive 46684 46685 46686 46687 46688 46689 if test "$ac_cv_header_sched_h" = yes; then 46690 HAVE_SCHED_H=1 46691 else 46692 HAVE_SCHED_H=0 46693 fi 46694 46695 46696 if test "$HAVE_SCHED_H" = 1; then 46697 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#if HAVE_SYS_CDEFS_H 46698 #include <sys/cdefs.h> 46699 #endif 46700 #include <sched.h> 46701 46702" 46703if test "x$ac_cv_type_struct_sched_param" = xyes 46704then : 46705 HAVE_STRUCT_SCHED_PARAM=1 46706else $as_nop 46707 HAVE_STRUCT_SCHED_PARAM=0 46708fi 46709 46710 else 46711 HAVE_STRUCT_SCHED_PARAM=0 46712 case "$host_os" in 46713 os2*) 46714 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <spawn.h> 46715" 46716if test "x$ac_cv_type_struct_sched_param" = xyes 46717then : 46718 HAVE_STRUCT_SCHED_PARAM=1 46719fi 46720 46721 ;; 46722 vms) 46723 ac_fn_c_check_type "$LINENO" "struct sched_param" "ac_cv_type_struct_sched_param" "#include <pthread.h> 46724" 46725if test "x$ac_cv_type_struct_sched_param" = xyes 46726then : 46727 HAVE_STRUCT_SCHED_PARAM=1 46728fi 46729 46730 ;; 46731 esac 46732 fi 46733 46734 46735 if test "$ac_cv_header_sys_cdefs_h" = yes; then 46736 HAVE_SYS_CDEFS_H=1 46737 else 46738 HAVE_SYS_CDEFS_H=0 46739 fi 46740 46741 46742 46743 46744 46745 46746 46747 46748 46749 46750 if test $ac_cv_func_setenv = no; then 46751 HAVE_SETENV=0 46752 else 46753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 46754printf %s "checking whether setenv validates arguments... " >&6; } 46755if test ${gl_cv_func_setenv_works+y} 46756then : 46757 printf %s "(cached) " >&6 46758else $as_nop 46759 if test "$cross_compiling" = yes 46760then : 46761 case "$host_os" in 46762 # Guess yes on glibc systems. 46763 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; 46764 # Guess yes on musl systems. 46765 *-musl*) gl_cv_func_setenv_works="guessing yes" ;; 46766 # If we don't know, obey --enable-cross-guesses. 46767 *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;; 46768 esac 46769 46770else $as_nop 46771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46772/* end confdefs.h. */ 46773 46774 #include <stdlib.h> 46775 #include <errno.h> 46776 #include <string.h> 46777 46778int 46779main (void) 46780{ 46781 46782 int result = 0; 46783 { 46784 if (setenv ("", "", 0) != -1) 46785 result |= 1; 46786 else if (errno != EINVAL) 46787 result |= 2; 46788 } 46789 { 46790 if (setenv ("a", "=", 1) != 0) 46791 result |= 4; 46792 else if (strcmp (getenv ("a"), "=") != 0) 46793 result |= 8; 46794 } 46795 return result; 46796 46797 ; 46798 return 0; 46799} 46800_ACEOF 46801if ac_fn_c_try_run "$LINENO" 46802then : 46803 gl_cv_func_setenv_works=yes 46804else $as_nop 46805 gl_cv_func_setenv_works=no 46806fi 46807rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46808 conftest.$ac_objext conftest.beam conftest.$ac_ext 46809fi 46810 46811fi 46812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 46813printf "%s\n" "$gl_cv_func_setenv_works" >&6; } 46814 case "$gl_cv_func_setenv_works" in 46815 *yes) ;; 46816 *) 46817 REPLACE_SETENV=1 46818 ;; 46819 esac 46820 fi 46821 46822 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then 46823 46824 46825 46826 46827 46828 46829 46830 46831 gltests_LIBOBJS="$gltests_LIBOBJS setenv.$ac_objext" 46832 46833 fi 46834 46835 46836 46837 46838 46839 if test "$GNULIB_SETENV" != 1; then 46840 if test "$GNULIB_SETENV" = 0; then 46841 GNULIB_SETENV=$gl_module_indicator_condition 46842 else 46843 GNULIB_SETENV="($GNULIB_SETENV || $gl_module_indicator_condition)" 46844 fi 46845 fi 46846 46847 46848 46849 46850 46851printf "%s\n" "#define GNULIB_TEST_SETENV 1" >>confdefs.h 46852 46853 46854 46855 46856 46857 46858 46859 46860 NEED_SETLOCALE_IMPROVED=0 46861 case "$host_os" in 46862 mingw*) NEED_SETLOCALE_IMPROVED=1 ;; 46863 cygwin*) 46864 case `uname -r` in 46865 1.5.*) NEED_SETLOCALE_IMPROVED=1 ;; 46866 esac 46867 ;; 46868 *) 46869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setlocale supports the C locale" >&5 46870printf %s "checking whether setlocale supports the C locale... " >&6; } 46871if test ${gl_cv_func_setlocale_works+y} 46872then : 46873 printf %s "(cached) " >&6 46874else $as_nop 46875 if test "$cross_compiling" = yes 46876then : 46877 case "$host_os" in 46878 # Guess no on Android. 46879 linux*-android*) gl_cv_func_setlocale_works="guessing no";; 46880 # Guess yes otherwise. 46881 *) gl_cv_func_setlocale_works="guessing yes";; 46882 esac 46883 46884else $as_nop 46885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46886/* end confdefs.h. */ 46887 46888#include <locale.h> 46889int main () 46890{ 46891 return setlocale (LC_ALL, "C") == NULL; 46892} 46893_ACEOF 46894if ac_fn_c_try_run "$LINENO" 46895then : 46896 gl_cv_func_setlocale_works=yes 46897else $as_nop 46898 gl_cv_func_setlocale_works=no 46899fi 46900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 46901 conftest.$ac_objext conftest.beam conftest.$ac_ext 46902fi 46903 46904 46905fi 46906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setlocale_works" >&5 46907printf "%s\n" "$gl_cv_func_setlocale_works" >&6; } 46908 case "$gl_cv_func_setlocale_works" in 46909 *yes) ;; 46910 *) NEED_SETLOCALE_IMPROVED=1 ;; 46911 esac 46912 ;; 46913 esac 46914 46915printf "%s\n" "#define NEED_SETLOCALE_IMPROVED $NEED_SETLOCALE_IMPROVED" >>confdefs.h 46916 46917 46918 NEED_SETLOCALE_MTSAFE=0 46919 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 46920 NEED_SETLOCALE_MTSAFE=1 46921 fi 46922 46923printf "%s\n" "#define NEED_SETLOCALE_MTSAFE $NEED_SETLOCALE_MTSAFE" >>confdefs.h 46924 46925 46926 if test $NEED_SETLOCALE_IMPROVED = 1 || test $NEED_SETLOCALE_MTSAFE = 1; then 46927 REPLACE_SETLOCALE=1 46928 fi 46929 46930 if test $NEED_SETLOCALE_MTSAFE = 1; then 46931 LIB_SETLOCALE="$LIB_SETLOCALE_NULL" 46932 else 46933 LIB_SETLOCALE= 46934 fi 46935 46936 46937 if test $REPLACE_SETLOCALE = 1; then 46938 46939 46940 46941 46942 46943 46944 46945 46946 gltests_LIBOBJS="$gltests_LIBOBJS setlocale.$ac_objext" 46947 46948 46949 : 46950 46951 fi 46952 46953 46954 46955 46956 46957 if test "$GNULIB_SETLOCALE" != 1; then 46958 if test "$GNULIB_SETLOCALE" = 0; then 46959 GNULIB_SETLOCALE=$gl_module_indicator_condition 46960 else 46961 GNULIB_SETLOCALE="($GNULIB_SETLOCALE || $gl_module_indicator_condition)" 46962 fi 46963 fi 46964 46965 46966 46967 46968 46969printf "%s\n" "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h 46970 46971 46972 46973 46974 46975 46976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 46977printf %s "checking for a traditional french locale... " >&6; } 46978if test ${gt_cv_locale_fr+y} 46979then : 46980 printf %s "(cached) " >&6 46981else $as_nop 46982 46983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46984/* end confdefs.h. */ 46985 46986#include <locale.h> 46987#include <time.h> 46988#if HAVE_LANGINFO_CODESET 46989# include <langinfo.h> 46990#endif 46991#include <stdlib.h> 46992#include <string.h> 46993struct tm t; 46994char buf[16]; 46995int main () { 46996 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 46997 imitates locale dependent behaviour by looking at the environment 46998 variables, and all locales use the UTF-8 encoding. */ 46999#if defined __BEOS__ || defined __HAIKU__ 47000 return 1; 47001#else 47002 /* Check whether the given locale name is recognized by the system. */ 47003# if defined _WIN32 && !defined __CYGWIN__ 47004 /* On native Windows, setlocale(category, "") looks at the system settings, 47005 not at the environment variables. Also, when an encoding suffix such 47006 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 47007 category of the locale to "C". */ 47008 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 47009 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 47010 return 1; 47011# else 47012 if (setlocale (LC_ALL, "") == NULL) return 1; 47013# endif 47014 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 47015 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 47016 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 47017 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 47018 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 47019 some unit tests fail. 47020 On MirBSD 10, when an unsupported locale is specified, setlocale() 47021 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 47022# if HAVE_LANGINFO_CODESET 47023 { 47024 const char *cs = nl_langinfo (CODESET); 47025 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 47026 || strcmp (cs, "UTF-8") == 0) 47027 return 1; 47028 } 47029# endif 47030# ifdef __CYGWIN__ 47031 /* On Cygwin, avoid locale names without encoding suffix, because the 47032 locale_charset() function relies on the encoding suffix. Note that 47033 LC_ALL is set on the command line. */ 47034 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 47035# endif 47036 /* Check whether in the abbreviation of the second month, the second 47037 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 47038 one byte long. This excludes the UTF-8 encoding. */ 47039 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 47040 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 47041# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 47042 /* Check whether the decimal separator is a comma. 47043 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 47044 are nl_langinfo(RADIXCHAR) are both ".". */ 47045 if (localeconv () ->decimal_point[0] != ',') return 1; 47046# endif 47047 return 0; 47048#endif 47049} 47050 47051_ACEOF 47052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 47053 (eval $ac_link) 2>&5 47054 ac_status=$? 47055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47056 test $ac_status = 0; } && test -s conftest$ac_exeext; then 47057 case "$host_os" in 47058 # Handle native Windows specially, because there setlocale() interprets 47059 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 47060 # "fr" or "fra" as "French" or "French_France.1252", 47061 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 47062 # "ja" as "Japanese" or "Japanese_Japan.932", 47063 # and similar. 47064 mingw*) 47065 # Test for the native Windows locale name. 47066 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47067 gt_cv_locale_fr=French_France.1252 47068 else 47069 # None found. 47070 gt_cv_locale_fr=none 47071 fi 47072 ;; 47073 *) 47074 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 47075 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 47076 # configure script would override the LC_ALL setting. Likewise for 47077 # LC_CTYPE, which is also set at the beginning of the configure script. 47078 # Test for the usual locale name. 47079 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47080 gt_cv_locale_fr=fr_FR 47081 else 47082 # Test for the locale name with explicit encoding suffix. 47083 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47084 gt_cv_locale_fr=fr_FR.ISO-8859-1 47085 else 47086 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 47087 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47088 gt_cv_locale_fr=fr_FR.ISO8859-1 47089 else 47090 # Test for the HP-UX locale name. 47091 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47092 gt_cv_locale_fr=fr_FR.iso88591 47093 else 47094 # Test for the Solaris 7 locale name. 47095 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47096 gt_cv_locale_fr=fr 47097 else 47098 # None found. 47099 gt_cv_locale_fr=none 47100 fi 47101 fi 47102 fi 47103 fi 47104 fi 47105 ;; 47106 esac 47107 fi 47108 rm -fr conftest* 47109 47110fi 47111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 47112printf "%s\n" "$gt_cv_locale_fr" >&6; } 47113 LOCALE_FR=$gt_cv_locale_fr 47114 47115 47116 47117 47118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 47119printf %s "checking for a french Unicode locale... " >&6; } 47120if test ${gt_cv_locale_fr_utf8+y} 47121then : 47122 printf %s "(cached) " >&6 47123else $as_nop 47124 47125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47126/* end confdefs.h. */ 47127 47128#include <locale.h> 47129#include <time.h> 47130#if HAVE_LANGINFO_CODESET 47131# include <langinfo.h> 47132#endif 47133#include <stdlib.h> 47134#include <string.h> 47135struct tm t; 47136char buf[16]; 47137int main () { 47138 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 47139 imitates locale dependent behaviour by looking at the environment 47140 variables, and all locales use the UTF-8 encoding. */ 47141#if !(defined __BEOS__ || defined __HAIKU__) 47142 /* Check whether the given locale name is recognized by the system. */ 47143# if defined _WIN32 && !defined __CYGWIN__ 47144 /* On native Windows, setlocale(category, "") looks at the system settings, 47145 not at the environment variables. Also, when an encoding suffix such 47146 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 47147 category of the locale to "C". */ 47148 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 47149 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 47150 return 1; 47151# else 47152 if (setlocale (LC_ALL, "") == NULL) return 1; 47153# endif 47154 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 47155 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 47156 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 47157 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 47158 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 47159 some unit tests fail. */ 47160# if HAVE_LANGINFO_CODESET 47161 { 47162 const char *cs = nl_langinfo (CODESET); 47163 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 47164 return 1; 47165 } 47166# endif 47167# ifdef __CYGWIN__ 47168 /* On Cygwin, avoid locale names without encoding suffix, because the 47169 locale_charset() function relies on the encoding suffix. Note that 47170 LC_ALL is set on the command line. */ 47171 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 47172# endif 47173 /* Check whether in the abbreviation of the second month, the second 47174 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 47175 two bytes long, with UTF-8 encoding. */ 47176 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 47177 if (strftime (buf, sizeof (buf), "%b", &t) < 4 47178 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 47179 return 1; 47180#endif 47181#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 47182 /* Check whether the decimal separator is a comma. 47183 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 47184 are nl_langinfo(RADIXCHAR) are both ".". */ 47185 if (localeconv () ->decimal_point[0] != ',') return 1; 47186#endif 47187 return 0; 47188} 47189 47190_ACEOF 47191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 47192 (eval $ac_link) 2>&5 47193 ac_status=$? 47194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47195 test $ac_status = 0; } && test -s conftest$ac_exeext; then 47196 case "$host_os" in 47197 # Handle native Windows specially, because there setlocale() interprets 47198 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 47199 # "fr" or "fra" as "French" or "French_France.1252", 47200 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 47201 # "ja" as "Japanese" or "Japanese_Japan.932", 47202 # and similar. 47203 mingw*) 47204 # Test for the hypothetical native Windows locale name. 47205 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47206 gt_cv_locale_fr_utf8=French_France.65001 47207 else 47208 # None found. 47209 gt_cv_locale_fr_utf8=none 47210 fi 47211 ;; 47212 *) 47213 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 47214 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 47215 # configure script would override the LC_ALL setting. Likewise for 47216 # LC_CTYPE, which is also set at the beginning of the configure script. 47217 # Test for the usual locale name. 47218 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47219 gt_cv_locale_fr_utf8=fr_FR 47220 else 47221 # Test for the locale name with explicit encoding suffix. 47222 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47223 gt_cv_locale_fr_utf8=fr_FR.UTF-8 47224 else 47225 # Test for the Solaris 7 locale name. 47226 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47227 gt_cv_locale_fr_utf8=fr.UTF-8 47228 else 47229 # None found. 47230 gt_cv_locale_fr_utf8=none 47231 fi 47232 fi 47233 fi 47234 ;; 47235 esac 47236 fi 47237 rm -fr conftest* 47238 47239fi 47240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 47241printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 47242 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 47243 47244 47245 47246 47247 47248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 47249printf %s "checking for a traditional japanese locale... " >&6; } 47250if test ${gt_cv_locale_ja+y} 47251then : 47252 printf %s "(cached) " >&6 47253else $as_nop 47254 47255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47256/* end confdefs.h. */ 47257 47258#include <locale.h> 47259#include <time.h> 47260#if HAVE_LANGINFO_CODESET 47261# include <langinfo.h> 47262#endif 47263#include <stdlib.h> 47264#include <string.h> 47265struct tm t; 47266char buf[16]; 47267int main () 47268{ 47269 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 47270 imitates locale dependent behaviour by looking at the environment 47271 variables, and all locales use the UTF-8 encoding. */ 47272#if defined __BEOS__ || defined __HAIKU__ 47273 return 1; 47274#else 47275 /* Check whether the given locale name is recognized by the system. */ 47276# if defined _WIN32 && !defined __CYGWIN__ 47277 /* On native Windows, setlocale(category, "") looks at the system settings, 47278 not at the environment variables. Also, when an encoding suffix such 47279 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 47280 category of the locale to "C". */ 47281 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 47282 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 47283 return 1; 47284# else 47285 if (setlocale (LC_ALL, "") == NULL) return 1; 47286# endif 47287 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 47288 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 47289 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 47290 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 47291 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 47292 some unit tests fail. 47293 On MirBSD 10, when an unsupported locale is specified, setlocale() 47294 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 47295# if HAVE_LANGINFO_CODESET 47296 { 47297 const char *cs = nl_langinfo (CODESET); 47298 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 47299 || strcmp (cs, "UTF-8") == 0) 47300 return 1; 47301 } 47302# endif 47303# ifdef __CYGWIN__ 47304 /* On Cygwin, avoid locale names without encoding suffix, because the 47305 locale_charset() function relies on the encoding suffix. Note that 47306 LC_ALL is set on the command line. */ 47307 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 47308# endif 47309 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 47310 on Cygwin 1.5.x. */ 47311 if (MB_CUR_MAX == 1) 47312 return 1; 47313 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 47314 This excludes the UTF-8 encoding (except on MirBSD). */ 47315 { 47316 const char *p; 47317 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 47318 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 47319 for (p = buf; *p != '\0'; p++) 47320 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 47321 return 1; 47322 } 47323 return 0; 47324#endif 47325} 47326 47327_ACEOF 47328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 47329 (eval $ac_link) 2>&5 47330 ac_status=$? 47331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47332 test $ac_status = 0; } && test -s conftest$ac_exeext; then 47333 case "$host_os" in 47334 # Handle native Windows specially, because there setlocale() interprets 47335 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 47336 # "fr" or "fra" as "French" or "French_France.1252", 47337 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 47338 # "ja" as "Japanese" or "Japanese_Japan.932", 47339 # and similar. 47340 mingw*) 47341 # Note that on native Windows, the Japanese locale is 47342 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 47343 # cannot use it here. 47344 gt_cv_locale_ja=none 47345 ;; 47346 *) 47347 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 47348 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 47349 # configure script would override the LC_ALL setting. Likewise for 47350 # LC_CTYPE, which is also set at the beginning of the configure script. 47351 # Test for the AIX locale name. 47352 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47353 gt_cv_locale_ja=ja_JP 47354 else 47355 # Test for the locale name with explicit encoding suffix. 47356 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47357 gt_cv_locale_ja=ja_JP.EUC-JP 47358 else 47359 # Test for the HP-UX, OSF/1, NetBSD locale name. 47360 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47361 gt_cv_locale_ja=ja_JP.eucJP 47362 else 47363 # Test for the IRIX, FreeBSD locale name. 47364 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47365 gt_cv_locale_ja=ja_JP.EUC 47366 else 47367 # Test for the Solaris 7 locale name. 47368 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47369 gt_cv_locale_ja=ja 47370 else 47371 # Special test for NetBSD 1.6. 47372 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 47373 gt_cv_locale_ja=ja_JP.eucJP 47374 else 47375 # None found. 47376 gt_cv_locale_ja=none 47377 fi 47378 fi 47379 fi 47380 fi 47381 fi 47382 fi 47383 ;; 47384 esac 47385 fi 47386 rm -fr conftest* 47387 47388fi 47389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 47390printf "%s\n" "$gt_cv_locale_ja" >&6; } 47391 LOCALE_JA=$gt_cv_locale_ja 47392 47393 47394 47395 47396 47397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 47398printf %s "checking for a transitional chinese locale... " >&6; } 47399if test ${gt_cv_locale_zh_CN+y} 47400then : 47401 printf %s "(cached) " >&6 47402else $as_nop 47403 47404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47405/* end confdefs.h. */ 47406 47407#include <locale.h> 47408#include <stdlib.h> 47409#include <time.h> 47410#if HAVE_LANGINFO_CODESET 47411# include <langinfo.h> 47412#endif 47413#include <stdlib.h> 47414#include <string.h> 47415struct tm t; 47416char buf[16]; 47417int main () 47418{ 47419 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 47420 imitates locale dependent behaviour by looking at the environment 47421 variables, and all locales use the UTF-8 encoding. */ 47422#if defined __BEOS__ || defined __HAIKU__ 47423 return 1; 47424#else 47425 /* Check whether the given locale name is recognized by the system. */ 47426# if defined _WIN32 && !defined __CYGWIN__ 47427 /* On native Windows, setlocale(category, "") looks at the system settings, 47428 not at the environment variables. Also, when an encoding suffix such 47429 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 47430 category of the locale to "C". */ 47431 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 47432 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 47433 return 1; 47434# else 47435 if (setlocale (LC_ALL, "") == NULL) return 1; 47436# endif 47437 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 47438 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 47439 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 47440 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 47441 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 47442 some unit tests fail. 47443 On MirBSD 10, when an unsupported locale is specified, setlocale() 47444 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 47445# if HAVE_LANGINFO_CODESET 47446 { 47447 const char *cs = nl_langinfo (CODESET); 47448 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 47449 || strcmp (cs, "UTF-8") == 0) 47450 return 1; 47451 } 47452# endif 47453# ifdef __CYGWIN__ 47454 /* On Cygwin, avoid locale names without encoding suffix, because the 47455 locale_charset() function relies on the encoding suffix. Note that 47456 LC_ALL is set on the command line. */ 47457 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 47458# endif 47459 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 47460 This excludes the UTF-8 encoding (except on MirBSD). */ 47461 { 47462 const char *p; 47463 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 47464 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 47465 for (p = buf; *p != '\0'; p++) 47466 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 47467 return 1; 47468 } 47469 /* Check whether a typical GB18030 multibyte sequence is recognized as a 47470 single wide character. This excludes the GB2312 and GBK encodings. */ 47471 if (mblen ("\203\062\332\066", 5) != 4) 47472 return 1; 47473 return 0; 47474#endif 47475} 47476 47477_ACEOF 47478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 47479 (eval $ac_link) 2>&5 47480 ac_status=$? 47481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47482 test $ac_status = 0; } && test -s conftest$ac_exeext; then 47483 case "$host_os" in 47484 # Handle native Windows specially, because there setlocale() interprets 47485 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 47486 # "fr" or "fra" as "French" or "French_France.1252", 47487 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 47488 # "ja" as "Japanese" or "Japanese_Japan.932", 47489 # and similar. 47490 mingw*) 47491 # Test for the hypothetical native Windows locale name. 47492 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47493 gt_cv_locale_zh_CN=Chinese_China.54936 47494 else 47495 # None found. 47496 gt_cv_locale_zh_CN=none 47497 fi 47498 ;; 47499 solaris2.8) 47500 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 47501 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 47502 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 47503 gt_cv_locale_zh_CN=none 47504 ;; 47505 *) 47506 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 47507 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 47508 # configure script would override the LC_ALL setting. Likewise for 47509 # LC_CTYPE, which is also set at the beginning of the configure script. 47510 # Test for the locale name without encoding suffix. 47511 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47512 gt_cv_locale_zh_CN=zh_CN 47513 else 47514 # Test for the locale name with explicit encoding suffix. 47515 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 47516 gt_cv_locale_zh_CN=zh_CN.GB18030 47517 else 47518 # None found. 47519 gt_cv_locale_zh_CN=none 47520 fi 47521 fi 47522 ;; 47523 esac 47524 else 47525 # If there was a link error, due to mblen(), the system is so old that 47526 # it certainly doesn't have a chinese locale. 47527 gt_cv_locale_zh_CN=none 47528 fi 47529 rm -fr conftest* 47530 47531fi 47532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 47533printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 47534 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 47535 47536 47537 47538 47539 47540 if test $ac_cv_func_sigaction = yes; then 47541 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h> 47542" 47543if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes 47544then : 47545 47546printf "%s\n" "#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1" >>confdefs.h 47547 47548 47549fi 47550 47551 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then 47552 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0 47553 fi 47554 else 47555 HAVE_SIGACTION=0 47556 fi 47557 47558 if test $HAVE_SIGACTION = 0; then 47559 47560 47561 47562 47563 47564 47565 47566 47567 gltests_LIBOBJS="$gltests_LIBOBJS sigaction.$ac_objext" 47568 47569 47570 47571 47572 47573 47574 47575 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" " 47576#include <signal.h> 47577 47578" 47579if test "x$ac_cv_type_siginfo_t" = xyes 47580then : 47581 47582printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h 47583 47584 47585fi 47586 47587 if test $ac_cv_type_siginfo_t = no; then 47588 HAVE_SIGINFO_T=0 47589 fi 47590 47591 fi 47592 47593 47594 47595 47596 47597 if test "$GNULIB_SIGACTION" != 1; then 47598 if test "$GNULIB_SIGACTION" = 0; then 47599 GNULIB_SIGACTION=$gl_module_indicator_condition 47600 else 47601 GNULIB_SIGACTION="($GNULIB_SIGACTION || $gl_module_indicator_condition)" 47602 fi 47603 fi 47604 47605 47606 47607 47608 47609printf "%s\n" "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h 47610 47611 47612 47613 47614 47615 47616 HAVE_POSIX_SIGNALBLOCKING=0 47617 if test "$gl_cv_type_sigset_t" = yes; then 47618 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 47619if test "x$ac_cv_func_sigprocmask" = xyes 47620then : 47621 HAVE_POSIX_SIGNALBLOCKING=1 47622fi 47623 47624 fi 47625 47626 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 47627 47628 47629 47630 47631 47632 47633 47634 47635 gltests_LIBOBJS="$gltests_LIBOBJS sigprocmask.$ac_objext" 47636 47637 : 47638 fi 47639 47640 47641 47642 47643 47644 if test "$GNULIB_SIGPROCMASK" != 1; then 47645 if test "$GNULIB_SIGPROCMASK" = 0; then 47646 GNULIB_SIGPROCMASK=$gl_module_indicator_condition 47647 else 47648 GNULIB_SIGPROCMASK="($GNULIB_SIGPROCMASK || $gl_module_indicator_condition)" 47649 fi 47650 fi 47651 47652 47653 47654 47655 47656printf "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h 47657 47658 47659 47660 47661 47662 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h> 47663" 47664if test "x$ac_cv_have_decl_sleep" = xyes 47665then : 47666 ac_have_decl=1 47667else $as_nop 47668 ac_have_decl=0 47669fi 47670 47671printf "%s\n" "#define HAVE_DECL_SLEEP $ac_have_decl" >>confdefs.h 47672 47673 47674 if test $ac_cv_have_decl_sleep != yes; then 47675 HAVE_SLEEP=0 47676 else 47677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5 47678printf %s "checking for working sleep... " >&6; } 47679if test ${gl_cv_func_sleep_works+y} 47680then : 47681 printf %s "(cached) " >&6 47682else $as_nop 47683 if test "$cross_compiling" = yes 47684then : 47685 case "$host_os" in 47686 # Guess yes on glibc systems. 47687 *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;; 47688 # Guess yes on musl systems. 47689 *-musl*) gl_cv_func_sleep_works="guessing yes" ;; 47690 # Guess no on native Windows. 47691 mingw*) gl_cv_func_sleep_works="guessing no" ;; 47692 # If we don't know, obey --enable-cross-guesses. 47693 *) gl_cv_func_sleep_works="$gl_cross_guess_normal" ;; 47694 esac 47695 47696else $as_nop 47697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47698/* end confdefs.h. */ 47699 47700#include <errno.h> 47701#include <unistd.h> 47702#include <signal.h> 47703static void 47704handle_alarm (int sig) 47705{ 47706 if (sig != SIGALRM) 47707 _exit (2); 47708} 47709 47710int 47711main (void) 47712{ 47713 47714 /* Failure to compile this test due to missing alarm is okay, 47715 since all such platforms (mingw) also lack sleep. */ 47716 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */ 47717 unsigned int remaining; 47718 signal (SIGALRM, handle_alarm); 47719 alarm (1); 47720 remaining = sleep (pentecost); 47721 if (remaining > pentecost) 47722 return 3; 47723 if (remaining <= pentecost - 10) 47724 return 4; 47725 return 0; 47726 47727 ; 47728 return 0; 47729} 47730_ACEOF 47731if ac_fn_c_try_run "$LINENO" 47732then : 47733 gl_cv_func_sleep_works=yes 47734else $as_nop 47735 gl_cv_func_sleep_works=no 47736fi 47737rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 47738 conftest.$ac_objext conftest.beam conftest.$ac_ext 47739fi 47740 47741fi 47742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5 47743printf "%s\n" "$gl_cv_func_sleep_works" >&6; } 47744 case "$gl_cv_func_sleep_works" in 47745 *yes) ;; 47746 *) 47747 REPLACE_SLEEP=1 47748 ;; 47749 esac 47750 fi 47751 47752 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then 47753 47754 47755 47756 47757 47758 47759 47760 47761 gltests_LIBOBJS="$gltests_LIBOBJS sleep.$ac_objext" 47762 47763 fi 47764 47765 47766 47767 47768 47769 if test "$GNULIB_SLEEP" != 1; then 47770 if test "$GNULIB_SLEEP" = 0; then 47771 GNULIB_SLEEP=$gl_module_indicator_condition 47772 else 47773 GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)" 47774 fi 47775 fi 47776 47777 47778 47779 47780 47781printf "%s\n" "#define GNULIB_TEST_SLEEP 1" >>confdefs.h 47782 47783 47784 47785 47786 47787 47788 47789 47790 47791 if test $ac_cv_func_symlink = no; then 47792 HAVE_SYMLINK=0 47793 else 47794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5 47795printf %s "checking whether symlink handles trailing slash correctly... " >&6; } 47796if test ${gl_cv_func_symlink_works+y} 47797then : 47798 printf %s "(cached) " >&6 47799else $as_nop 47800 if test "$cross_compiling" = yes 47801then : 47802 case "$host_os" in 47803 # Guess yes on Linux systems. 47804 linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;; 47805 # Guess yes on glibc systems. 47806 *-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;; 47807 # If we don't know, obey --enable-cross-guesses. 47808 *) gl_cv_func_symlink_works="$gl_cross_guess_normal" ;; 47809 esac 47810 47811else $as_nop 47812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47813/* end confdefs.h. */ 47814#include <unistd.h> 47815 47816int 47817main (void) 47818{ 47819int result = 0; 47820 if (!symlink ("a", "conftest.link/")) 47821 result |= 1; 47822 if (symlink ("conftest.f", "conftest.lnk2")) 47823 result |= 2; 47824 else if (!symlink ("a", "conftest.lnk2/")) 47825 result |= 4; 47826 return result; 47827 47828 ; 47829 return 0; 47830} 47831_ACEOF 47832if ac_fn_c_try_run "$LINENO" 47833then : 47834 gl_cv_func_symlink_works=yes 47835else $as_nop 47836 gl_cv_func_symlink_works=no 47837fi 47838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 47839 conftest.$ac_objext conftest.beam conftest.$ac_ext 47840fi 47841 47842 rm -f conftest.f conftest.link conftest.lnk2 47843fi 47844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5 47845printf "%s\n" "$gl_cv_func_symlink_works" >&6; } 47846 case "$gl_cv_func_symlink_works" in 47847 *yes) ;; 47848 *) 47849 REPLACE_SYMLINK=1 47850 ;; 47851 esac 47852 fi 47853 47854 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then 47855 47856 47857 47858 47859 47860 47861 47862 47863 gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext" 47864 47865 fi 47866 47867 47868 47869 47870 47871 if test "$GNULIB_SYMLINK" != 1; then 47872 if test "$GNULIB_SYMLINK" = 0; then 47873 GNULIB_SYMLINK=$gl_module_indicator_condition 47874 else 47875 GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)" 47876 fi 47877 fi 47878 47879 47880 47881 47882 47883printf "%s\n" "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h 47884 47885 47886 47887 47888 47889 47890 47891 if test $gl_threads_api = posix; then 47892 gl_save_LIBS="$LIBS" 47893 LIBS="$LIBS $LIBMULTITHREAD" 47894 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" 47895if test "x$ac_cv_func_pthread_atfork" = xyes 47896then : 47897 printf "%s\n" "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h 47898 47899fi 47900 47901 LIBS="$gl_save_LIBS" 47902 fi 47903 47904 ac_fn_c_check_header_compile "$LINENO" "sys/single_threaded.h" "ac_cv_header_sys_single_threaded_h" "$ac_includes_default" 47905if test "x$ac_cv_header_sys_single_threaded_h" = xyes 47906then : 47907 printf "%s\n" "#define HAVE_SYS_SINGLE_THREADED_H 1" >>confdefs.h 47908 47909fi 47910 47911 47912 47913 47914 47915 if test $ac_cv_have_decl_unsetenv = no; then 47916 HAVE_DECL_UNSETENV=0 47917 fi 47918 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 47919if test "x$ac_cv_func_unsetenv" = xyes 47920then : 47921 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h 47922 47923fi 47924 47925 if test $ac_cv_func_unsetenv = no; then 47926 HAVE_UNSETENV=0 47927 else 47928 HAVE_UNSETENV=1 47929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 47930printf %s "checking for unsetenv() return type... " >&6; } 47931if test ${gt_cv_func_unsetenv_ret+y} 47932then : 47933 printf %s "(cached) " >&6 47934else $as_nop 47935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47936/* end confdefs.h. */ 47937 47938#undef _BSD 47939#define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */ 47940#include <stdlib.h> 47941extern 47942#ifdef __cplusplus 47943"C" 47944#endif 47945int unsetenv (const char *name); 47946 47947int 47948main (void) 47949{ 47950 47951 ; 47952 return 0; 47953} 47954_ACEOF 47955if ac_fn_c_try_compile "$LINENO" 47956then : 47957 gt_cv_func_unsetenv_ret='int' 47958else $as_nop 47959 gt_cv_func_unsetenv_ret='void' 47960fi 47961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 47962fi 47963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 47964printf "%s\n" "$gt_cv_func_unsetenv_ret" >&6; } 47965 if test $gt_cv_func_unsetenv_ret = 'void'; then 47966 47967printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h 47968 47969 REPLACE_UNSETENV=1 47970 fi 47971 47972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5 47973printf %s "checking whether unsetenv obeys POSIX... " >&6; } 47974if test ${gl_cv_func_unsetenv_works+y} 47975then : 47976 printf %s "(cached) " >&6 47977else $as_nop 47978 if test "$cross_compiling" = yes 47979then : 47980 case "$host_os" in 47981 # Guess yes on glibc systems. 47982 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;; 47983 # If we don't know, obey --enable-cross-guesses. 47984 *) gl_cv_func_unsetenv_works="$gl_cross_guess_normal" ;; 47985 esac 47986 47987else $as_nop 47988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47989/* end confdefs.h. */ 47990 47991 #include <stdlib.h> 47992 #include <errno.h> 47993 extern char **environ; 47994 47995 47996$gl_mda_defines 47997 47998int 47999main (void) 48000{ 48001 48002 char entry1[] = "a=1"; 48003 char entry2[] = "b=2"; 48004 char *env[] = { entry1, entry2, NULL }; 48005 if (putenv ((char *) "a=1")) return 1; 48006 if (putenv (entry2)) return 2; 48007 entry2[0] = 'a'; 48008 unsetenv ("a"); 48009 if (getenv ("a")) return 3; 48010 if (!unsetenv ("") || errno != EINVAL) return 4; 48011 entry2[0] = 'b'; 48012 environ = env; 48013 if (!getenv ("a")) return 5; 48014 entry2[0] = 'a'; 48015 unsetenv ("a"); 48016 if (getenv ("a")) return 6; 48017 48018 ; 48019 return 0; 48020} 48021_ACEOF 48022if ac_fn_c_try_run "$LINENO" 48023then : 48024 gl_cv_func_unsetenv_works=yes 48025else $as_nop 48026 gl_cv_func_unsetenv_works=no 48027fi 48028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48029 conftest.$ac_objext conftest.beam conftest.$ac_ext 48030fi 48031 48032 48033fi 48034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5 48035printf "%s\n" "$gl_cv_func_unsetenv_works" >&6; } 48036 case "$gl_cv_func_unsetenv_works" in 48037 *yes) ;; 48038 *) 48039 REPLACE_UNSETENV=1 48040 ;; 48041 esac 48042 fi 48043 48044 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then 48045 48046 48047 48048 48049 48050 48051 48052 48053 gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext" 48054 48055 48056 48057 48058 48059 fi 48060 48061 48062 48063 48064 48065 if test "$GNULIB_UNSETENV" != 1; then 48066 if test "$GNULIB_UNSETENV" = 0; then 48067 GNULIB_UNSETENV=$gl_module_indicator_condition 48068 else 48069 GNULIB_UNSETENV="($GNULIB_UNSETENV || $gl_module_indicator_condition)" 48070 fi 48071 fi 48072 48073 48074 48075 48076 48077printf "%s\n" "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h 48078 48079 48080 48081 48082 48083 48084 48085 ac_fn_c_check_type "$LINENO" "useconds_t" "ac_cv_type_useconds_t" "$ac_includes_default" 48086if test "x$ac_cv_type_useconds_t" = xyes 48087then : 48088 48089else $as_nop 48090 48091printf "%s\n" "#define useconds_t unsigned int" >>confdefs.h 48092 48093fi 48094 48095 if test $ac_cv_func_usleep = no; then 48096 HAVE_USLEEP=0 48097 else 48098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether usleep allows large arguments" >&5 48099printf %s "checking whether usleep allows large arguments... " >&6; } 48100if test ${gl_cv_func_usleep_works+y} 48101then : 48102 printf %s "(cached) " >&6 48103else $as_nop 48104 if test "$cross_compiling" = yes 48105then : 48106 case "$host_os" in 48107 # Guess yes on glibc systems. 48108 *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;; 48109 # Guess yes on musl systems. 48110 *-musl*) gl_cv_func_usleep_works="guessing yes" ;; 48111 # Guess no on native Windows. 48112 mingw*) gl_cv_func_usleep_works="guessing no" ;; 48113 # If we don't know, obey --enable-cross-guesses. 48114 *) gl_cv_func_usleep_works="$gl_cross_guess_normal" ;; 48115 esac 48116 48117else $as_nop 48118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48119/* end confdefs.h. */ 48120 48121#include <unistd.h> 48122 48123int 48124main (void) 48125{ 48126return !!usleep (1000000); 48127 ; 48128 return 0; 48129} 48130_ACEOF 48131if ac_fn_c_try_run "$LINENO" 48132then : 48133 gl_cv_func_usleep_works=yes 48134else $as_nop 48135 gl_cv_func_usleep_works=no 48136fi 48137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48138 conftest.$ac_objext conftest.beam conftest.$ac_ext 48139fi 48140 48141fi 48142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_usleep_works" >&5 48143printf "%s\n" "$gl_cv_func_usleep_works" >&6; } 48144 case "$gl_cv_func_usleep_works" in 48145 *yes) ;; 48146 *) 48147 REPLACE_USLEEP=1 48148 ;; 48149 esac 48150 fi 48151 48152 if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then 48153 48154 48155 48156 48157 48158 48159 48160 48161 gltests_LIBOBJS="$gltests_LIBOBJS usleep.$ac_objext" 48162 48163 fi 48164 48165 48166 48167 48168 48169 if test "$GNULIB_USLEEP" != 1; then 48170 if test "$GNULIB_USLEEP" = 0; then 48171 GNULIB_USLEEP=$gl_module_indicator_condition 48172 else 48173 GNULIB_USLEEP="($GNULIB_USLEEP || $gl_module_indicator_condition)" 48174 fi 48175 fi 48176 48177 48178 48179 48180 48181printf "%s\n" "#define GNULIB_TEST_USLEEP 1" >>confdefs.h 48182 48183 48184 48185 48186 # Check whether --enable-valgrind-tests was given. 48187if test ${enable_valgrind_tests+y} 48188then : 48189 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval 48190else $as_nop 48191 opt_valgrind_tests=yes 48192fi 48193 48194 48195 # Run self-tests under valgrind? 48196 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then 48197 for ac_prog in valgrind 48198do 48199 # Extract the first word of "$ac_prog", so it can be a program name with args. 48200set dummy $ac_prog; ac_word=$2 48201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48202printf %s "checking for $ac_word... " >&6; } 48203if test ${ac_cv_prog_VALGRIND+y} 48204then : 48205 printf %s "(cached) " >&6 48206else $as_nop 48207 if test -n "$VALGRIND"; then 48208 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 48209else 48210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48211for as_dir in $PATH 48212do 48213 IFS=$as_save_IFS 48214 case $as_dir in #((( 48215 '') as_dir=./ ;; 48216 */) ;; 48217 *) as_dir=$as_dir/ ;; 48218 esac 48219 for ac_exec_ext in '' $ac_executable_extensions; do 48220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 48221 ac_cv_prog_VALGRIND="$ac_prog" 48222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 48223 break 2 48224 fi 48225done 48226 done 48227IFS=$as_save_IFS 48228 48229fi 48230fi 48231VALGRIND=$ac_cv_prog_VALGRIND 48232if test -n "$VALGRIND"; then 48233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 48234printf "%s\n" "$VALGRIND" >&6; } 48235else 48236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 48237printf "%s\n" "no" >&6; } 48238fi 48239 48240 48241 test -n "$VALGRIND" && break 48242done 48243 48244 48245 if test "$VALGRIND"; then 48246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5 48247printf %s "checking for valgrind options for tests... " >&6; } 48248if test ${gl_cv_opt_valgrind_tests+y} 48249then : 48250 printf %s "(cached) " >&6 48251else $as_nop 48252 gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full" 48253 $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 || 48254 gl_cv_opt_valgrind_tests=no 48255fi 48256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5 48257printf "%s\n" "$gl_cv_opt_valgrind_tests" >&6; } 48258 48259 if test "$gl_cv_opt_valgrind_tests" != no; then 48260 VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests" 48261 else 48262 VALGRIND= 48263 fi 48264 fi 48265 fi 48266 48267 abs_aux_dir=`cd "$ac_aux_dir"; pwd` 48268 48269 48270 48271 48272 48273 48274 48275 48276 48277 48278 48279 48280 if case "$host_os" in 48281 mingw*) true ;; 48282 *) test $ac_cv_func_mbsinit = yes ;; 48283 esac \ 48284 && test $ac_cv_func_mbrtowc = yes; then 48285 48286 48287 48288 48289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5 48290printf %s "checking whether mbrtowc handles incomplete characters... " >&6; } 48291if test ${gl_cv_func_mbrtowc_incomplete_state+y} 48292then : 48293 printf %s "(cached) " >&6 48294else $as_nop 48295 48296 case "$host_os" in 48297 # Guess no on AIX and OSF/1. 48298 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 48299 # Guess yes otherwise. 48300 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 48301 esac 48302 if test $LOCALE_JA != none; then 48303 if test "$cross_compiling" = yes 48304then : 48305 : 48306else $as_nop 48307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48308/* end confdefs.h. */ 48309 48310#include <locale.h> 48311#include <string.h> 48312#include <wchar.h> 48313int main () 48314{ 48315 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 48316 { 48317 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */ 48318 mbstate_t state; 48319 wchar_t wc; 48320 48321 memset (&state, '\0', sizeof (mbstate_t)); 48322 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 48323 if (mbsinit (&state)) 48324 return 2; 48325 } 48326 return 0; 48327} 48328_ACEOF 48329if ac_fn_c_try_run "$LINENO" 48330then : 48331 gl_cv_func_mbrtowc_incomplete_state=yes 48332else $as_nop 48333 gl_cv_func_mbrtowc_incomplete_state=no 48334fi 48335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48336 conftest.$ac_objext conftest.beam conftest.$ac_ext 48337fi 48338 48339 else 48340 if test $LOCALE_FR_UTF8 != none; then 48341 if test "$cross_compiling" = yes 48342then : 48343 : 48344else $as_nop 48345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48346/* end confdefs.h. */ 48347 48348#include <locale.h> 48349#include <string.h> 48350#include <wchar.h> 48351int main () 48352{ 48353 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 48354 { 48355 const char input[] = "B\303\274\303\237er"; /* "Büßer" */ 48356 mbstate_t state; 48357 wchar_t wc; 48358 48359 memset (&state, '\0', sizeof (mbstate_t)); 48360 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2)) 48361 if (mbsinit (&state)) 48362 return 2; 48363 } 48364 return 0; 48365} 48366_ACEOF 48367if ac_fn_c_try_run "$LINENO" 48368then : 48369 gl_cv_func_mbrtowc_incomplete_state=yes 48370else $as_nop 48371 gl_cv_func_mbrtowc_incomplete_state=no 48372fi 48373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48374 conftest.$ac_objext conftest.beam conftest.$ac_ext 48375fi 48376 48377 fi 48378 fi 48379 48380fi 48381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5 48382printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; } 48383 48384 48385 48386 48387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5 48388printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; } 48389if test ${gl_cv_func_mbrtowc_sanitycheck+y} 48390then : 48391 printf %s "(cached) " >&6 48392else $as_nop 48393 48394 case "$host_os" in 48395 # Guess no on Solaris 8. 48396 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;; 48397 # Guess yes otherwise. 48398 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;; 48399 esac 48400 if test $LOCALE_ZH_CN != none; then 48401 if test "$cross_compiling" = yes 48402then : 48403 : 48404else $as_nop 48405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48406/* end confdefs.h. */ 48407 48408#include <locale.h> 48409#include <stdlib.h> 48410#include <string.h> 48411#include <wchar.h> 48412int main () 48413{ 48414 /* This fails on Solaris 8: 48415 mbrtowc returns 2, and sets wc to 0x00F0. 48416 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */ 48417 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 48418 { 48419 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */ 48420 mbstate_t state; 48421 wchar_t wc; 48422 48423 memset (&state, '\0', sizeof (mbstate_t)); 48424 if (mbrtowc (&wc, input + 3, 6, &state) != 4 48425 && mbtowc (&wc, input + 3, 6) == 4) 48426 return 2; 48427 } 48428 return 0; 48429} 48430_ACEOF 48431if ac_fn_c_try_run "$LINENO" 48432then : 48433 gl_cv_func_mbrtowc_sanitycheck=yes 48434else $as_nop 48435 gl_cv_func_mbrtowc_sanitycheck=no 48436fi 48437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48438 conftest.$ac_objext conftest.beam conftest.$ac_ext 48439fi 48440 48441 fi 48442 48443fi 48444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5 48445printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; } 48446 48447 REPLACE_MBSTATE_T=0 48448 case "$gl_cv_func_mbrtowc_incomplete_state" in 48449 *yes) ;; 48450 *) REPLACE_MBSTATE_T=1 ;; 48451 esac 48452 case "$gl_cv_func_mbrtowc_sanitycheck" in 48453 *yes) ;; 48454 *) REPLACE_MBSTATE_T=1 ;; 48455 esac 48456 else 48457 REPLACE_MBSTATE_T=1 48458 fi 48459 48460 48461 48462 if test $ac_cv_func_wcrtomb = no; then 48463 HAVE_WCRTOMB=0 48464 ac_fn_c_check_decl "$LINENO" "wcrtomb" "ac_cv_have_decl_wcrtomb" " 48465 #include <wchar.h> 48466 48467" 48468if test "x$ac_cv_have_decl_wcrtomb" = xyes 48469then : 48470 ac_have_decl=1 48471else $as_nop 48472 ac_have_decl=0 48473fi 48474 48475printf "%s\n" "#define HAVE_DECL_WCRTOMB $ac_have_decl" >>confdefs.h 48476 48477 if test $ac_cv_have_decl_wcrtomb = yes; then 48478 REPLACE_WCRTOMB=1 48479 fi 48480 else 48481 if test $REPLACE_WCRTOMB = 0; then 48482 48483 48484 48485 48486 48487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb works in the C locale" >&5 48488printf %s "checking whether wcrtomb works in the C locale... " >&6; } 48489if test ${gl_cv_func_wcrtomb_works+y} 48490then : 48491 printf %s "(cached) " >&6 48492else $as_nop 48493 if test "$cross_compiling" = yes 48494then : 48495 case "$host_os" in 48496 # Guess no on Android. 48497 linux*-android*) gl_cv_func_wcrtomb_works="guessing no";; 48498 # Guess yes otherwise. 48499 *) gl_cv_func_wcrtomb_works="guessing yes";; 48500 esac 48501 48502else $as_nop 48503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48504/* end confdefs.h. */ 48505 48506#include <string.h> 48507#include <stdlib.h> 48508#include <wchar.h> 48509int main () 48510{ 48511 mbstate_t state; 48512 char out[64]; 48513 int count; 48514 memset (&state, 0, sizeof (state)); 48515 out[0] = 'x'; 48516 count = wcrtomb (out, L'a', &state); 48517 return !(count == 1 && out[0] == 'a'); 48518} 48519_ACEOF 48520if ac_fn_c_try_run "$LINENO" 48521then : 48522 gl_cv_func_wcrtomb_works=yes 48523else $as_nop 48524 gl_cv_func_wcrtomb_works=no 48525fi 48526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48527 conftest.$ac_objext conftest.beam conftest.$ac_ext 48528fi 48529 48530 48531fi 48532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_works" >&5 48533printf "%s\n" "$gl_cv_func_wcrtomb_works" >&6; } 48534 case "$gl_cv_func_wcrtomb_works" in 48535 *yes) ;; 48536 *) 48537printf "%s\n" "#define WCRTOMB_C_LOCALE_BUG 1" >>confdefs.h 48538 48539 REPLACE_WCRTOMB=1 ;; 48540 esac 48541 fi 48542 if test $REPLACE_WCRTOMB = 0; then 48543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wcrtomb return value is correct" >&5 48544printf %s "checking whether wcrtomb return value is correct... " >&6; } 48545if test ${gl_cv_func_wcrtomb_retval+y} 48546then : 48547 printf %s "(cached) " >&6 48548else $as_nop 48549 48550 case "$host_os" in 48551 # Guess no on AIX 4, OSF/1, Solaris, native Windows. 48552 aix4* | osf* | solaris* | mingw*) gl_cv_func_wcrtomb_retval="guessing no" ;; 48553 # Guess yes otherwise. 48554 *) gl_cv_func_wcrtomb_retval="guessing yes" ;; 48555 esac 48556 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then 48557 if test "$cross_compiling" = yes 48558then : 48559 : 48560else $as_nop 48561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48562/* end confdefs.h. */ 48563 48564#include <locale.h> 48565#include <string.h> 48566#include <wchar.h> 48567#include <stdlib.h> 48568int main () 48569{ 48570 int result = 0; 48571 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 48572 { 48573 if (wcrtomb (NULL, 0, NULL) != 1) 48574 result |= 1; 48575 } 48576 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL) 48577 { 48578 if (wcrtomb (NULL, 0, NULL) != 1) 48579 result |= 2; 48580 { 48581 wchar_t wc = (wchar_t) 0xBADFACE; 48582 if (mbtowc (&wc, "\303\274", 2) == 2) 48583 if (wcrtomb (NULL, wc, NULL) != 1) 48584 result |= 2; 48585 } 48586 } 48587 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL) 48588 { 48589 if (wcrtomb (NULL, 0, NULL) != 1) 48590 result |= 4; 48591 } 48592 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL) 48593 { 48594 if (wcrtomb (NULL, 0, NULL) != 1) 48595 result |= 8; 48596 } 48597 return result; 48598} 48599_ACEOF 48600if ac_fn_c_try_run "$LINENO" 48601then : 48602 gl_cv_func_wcrtomb_retval=yes 48603else $as_nop 48604 gl_cv_func_wcrtomb_retval=no 48605fi 48606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48607 conftest.$ac_objext conftest.beam conftest.$ac_ext 48608fi 48609 48610 fi 48611 48612fi 48613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wcrtomb_retval" >&5 48614printf "%s\n" "$gl_cv_func_wcrtomb_retval" >&6; } 48615 case "$gl_cv_func_wcrtomb_retval" in 48616 *yes) ;; 48617 *) 48618printf "%s\n" "#define WCRTOMB_RETVAL_BUG 1" >>confdefs.h 48619 48620 REPLACE_WCRTOMB=1 ;; 48621 esac 48622 fi 48623 fi 48624 48625 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 48626 48627 48628 48629 48630 48631 48632 48633 48634 gltests_LIBOBJS="$gltests_LIBOBJS wcrtomb.$ac_objext" 48635 48636 48637 : 48638 48639 fi 48640 48641 48642 48643 48644 48645 if test "$GNULIB_WCRTOMB" != 1; then 48646 if test "$GNULIB_WCRTOMB" = 0; then 48647 GNULIB_WCRTOMB=$gl_module_indicator_condition 48648 else 48649 GNULIB_WCRTOMB="($GNULIB_WCRTOMB || $gl_module_indicator_condition)" 48650 fi 48651 fi 48652 48653 48654 48655 48656 48657printf "%s\n" "#define GNULIB_TEST_WCRTOMB 1" >>confdefs.h 48658 48659 48660 48661 48662 48663 48664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 48665printf %s "checking for a traditional french locale... " >&6; } 48666if test ${gt_cv_locale_fr+y} 48667then : 48668 printf %s "(cached) " >&6 48669else $as_nop 48670 48671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48672/* end confdefs.h. */ 48673 48674#include <locale.h> 48675#include <time.h> 48676#if HAVE_LANGINFO_CODESET 48677# include <langinfo.h> 48678#endif 48679#include <stdlib.h> 48680#include <string.h> 48681struct tm t; 48682char buf[16]; 48683int main () { 48684 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 48685 imitates locale dependent behaviour by looking at the environment 48686 variables, and all locales use the UTF-8 encoding. */ 48687#if defined __BEOS__ || defined __HAIKU__ 48688 return 1; 48689#else 48690 /* Check whether the given locale name is recognized by the system. */ 48691# if defined _WIN32 && !defined __CYGWIN__ 48692 /* On native Windows, setlocale(category, "") looks at the system settings, 48693 not at the environment variables. Also, when an encoding suffix such 48694 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 48695 category of the locale to "C". */ 48696 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 48697 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 48698 return 1; 48699# else 48700 if (setlocale (LC_ALL, "") == NULL) return 1; 48701# endif 48702 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 48703 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 48704 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 48705 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 48706 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 48707 some unit tests fail. 48708 On MirBSD 10, when an unsupported locale is specified, setlocale() 48709 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 48710# if HAVE_LANGINFO_CODESET 48711 { 48712 const char *cs = nl_langinfo (CODESET); 48713 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 48714 || strcmp (cs, "UTF-8") == 0) 48715 return 1; 48716 } 48717# endif 48718# ifdef __CYGWIN__ 48719 /* On Cygwin, avoid locale names without encoding suffix, because the 48720 locale_charset() function relies on the encoding suffix. Note that 48721 LC_ALL is set on the command line. */ 48722 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 48723# endif 48724 /* Check whether in the abbreviation of the second month, the second 48725 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 48726 one byte long. This excludes the UTF-8 encoding. */ 48727 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 48728 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 48729# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 48730 /* Check whether the decimal separator is a comma. 48731 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 48732 are nl_langinfo(RADIXCHAR) are both ".". */ 48733 if (localeconv () ->decimal_point[0] != ',') return 1; 48734# endif 48735 return 0; 48736#endif 48737} 48738 48739_ACEOF 48740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 48741 (eval $ac_link) 2>&5 48742 ac_status=$? 48743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48744 test $ac_status = 0; } && test -s conftest$ac_exeext; then 48745 case "$host_os" in 48746 # Handle native Windows specially, because there setlocale() interprets 48747 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 48748 # "fr" or "fra" as "French" or "French_France.1252", 48749 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 48750 # "ja" as "Japanese" or "Japanese_Japan.932", 48751 # and similar. 48752 mingw*) 48753 # Test for the native Windows locale name. 48754 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48755 gt_cv_locale_fr=French_France.1252 48756 else 48757 # None found. 48758 gt_cv_locale_fr=none 48759 fi 48760 ;; 48761 *) 48762 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 48763 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 48764 # configure script would override the LC_ALL setting. Likewise for 48765 # LC_CTYPE, which is also set at the beginning of the configure script. 48766 # Test for the usual locale name. 48767 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48768 gt_cv_locale_fr=fr_FR 48769 else 48770 # Test for the locale name with explicit encoding suffix. 48771 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48772 gt_cv_locale_fr=fr_FR.ISO-8859-1 48773 else 48774 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 48775 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48776 gt_cv_locale_fr=fr_FR.ISO8859-1 48777 else 48778 # Test for the HP-UX locale name. 48779 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48780 gt_cv_locale_fr=fr_FR.iso88591 48781 else 48782 # Test for the Solaris 7 locale name. 48783 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48784 gt_cv_locale_fr=fr 48785 else 48786 # None found. 48787 gt_cv_locale_fr=none 48788 fi 48789 fi 48790 fi 48791 fi 48792 fi 48793 ;; 48794 esac 48795 fi 48796 rm -fr conftest* 48797 48798fi 48799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 48800printf "%s\n" "$gt_cv_locale_fr" >&6; } 48801 LOCALE_FR=$gt_cv_locale_fr 48802 48803 48804 48805 48806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 48807printf %s "checking for a french Unicode locale... " >&6; } 48808if test ${gt_cv_locale_fr_utf8+y} 48809then : 48810 printf %s "(cached) " >&6 48811else $as_nop 48812 48813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48814/* end confdefs.h. */ 48815 48816#include <locale.h> 48817#include <time.h> 48818#if HAVE_LANGINFO_CODESET 48819# include <langinfo.h> 48820#endif 48821#include <stdlib.h> 48822#include <string.h> 48823struct tm t; 48824char buf[16]; 48825int main () { 48826 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 48827 imitates locale dependent behaviour by looking at the environment 48828 variables, and all locales use the UTF-8 encoding. */ 48829#if !(defined __BEOS__ || defined __HAIKU__) 48830 /* Check whether the given locale name is recognized by the system. */ 48831# if defined _WIN32 && !defined __CYGWIN__ 48832 /* On native Windows, setlocale(category, "") looks at the system settings, 48833 not at the environment variables. Also, when an encoding suffix such 48834 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 48835 category of the locale to "C". */ 48836 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 48837 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 48838 return 1; 48839# else 48840 if (setlocale (LC_ALL, "") == NULL) return 1; 48841# endif 48842 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 48843 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 48844 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 48845 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 48846 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 48847 some unit tests fail. */ 48848# if HAVE_LANGINFO_CODESET 48849 { 48850 const char *cs = nl_langinfo (CODESET); 48851 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 48852 return 1; 48853 } 48854# endif 48855# ifdef __CYGWIN__ 48856 /* On Cygwin, avoid locale names without encoding suffix, because the 48857 locale_charset() function relies on the encoding suffix. Note that 48858 LC_ALL is set on the command line. */ 48859 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 48860# endif 48861 /* Check whether in the abbreviation of the second month, the second 48862 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 48863 two bytes long, with UTF-8 encoding. */ 48864 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 48865 if (strftime (buf, sizeof (buf), "%b", &t) < 4 48866 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 48867 return 1; 48868#endif 48869#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 48870 /* Check whether the decimal separator is a comma. 48871 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 48872 are nl_langinfo(RADIXCHAR) are both ".". */ 48873 if (localeconv () ->decimal_point[0] != ',') return 1; 48874#endif 48875 return 0; 48876} 48877 48878_ACEOF 48879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 48880 (eval $ac_link) 2>&5 48881 ac_status=$? 48882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48883 test $ac_status = 0; } && test -s conftest$ac_exeext; then 48884 case "$host_os" in 48885 # Handle native Windows specially, because there setlocale() interprets 48886 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 48887 # "fr" or "fra" as "French" or "French_France.1252", 48888 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 48889 # "ja" as "Japanese" or "Japanese_Japan.932", 48890 # and similar. 48891 mingw*) 48892 # Test for the hypothetical native Windows locale name. 48893 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48894 gt_cv_locale_fr_utf8=French_France.65001 48895 else 48896 # None found. 48897 gt_cv_locale_fr_utf8=none 48898 fi 48899 ;; 48900 *) 48901 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 48902 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 48903 # configure script would override the LC_ALL setting. Likewise for 48904 # LC_CTYPE, which is also set at the beginning of the configure script. 48905 # Test for the usual locale name. 48906 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48907 gt_cv_locale_fr_utf8=fr_FR 48908 else 48909 # Test for the locale name with explicit encoding suffix. 48910 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48911 gt_cv_locale_fr_utf8=fr_FR.UTF-8 48912 else 48913 # Test for the Solaris 7 locale name. 48914 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 48915 gt_cv_locale_fr_utf8=fr.UTF-8 48916 else 48917 # None found. 48918 gt_cv_locale_fr_utf8=none 48919 fi 48920 fi 48921 fi 48922 ;; 48923 esac 48924 fi 48925 rm -fr conftest* 48926 48927fi 48928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 48929printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; } 48930 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 48931 48932 48933 48934 48935 48936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 48937printf %s "checking for a traditional japanese locale... " >&6; } 48938if test ${gt_cv_locale_ja+y} 48939then : 48940 printf %s "(cached) " >&6 48941else $as_nop 48942 48943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48944/* end confdefs.h. */ 48945 48946#include <locale.h> 48947#include <time.h> 48948#if HAVE_LANGINFO_CODESET 48949# include <langinfo.h> 48950#endif 48951#include <stdlib.h> 48952#include <string.h> 48953struct tm t; 48954char buf[16]; 48955int main () 48956{ 48957 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 48958 imitates locale dependent behaviour by looking at the environment 48959 variables, and all locales use the UTF-8 encoding. */ 48960#if defined __BEOS__ || defined __HAIKU__ 48961 return 1; 48962#else 48963 /* Check whether the given locale name is recognized by the system. */ 48964# if defined _WIN32 && !defined __CYGWIN__ 48965 /* On native Windows, setlocale(category, "") looks at the system settings, 48966 not at the environment variables. Also, when an encoding suffix such 48967 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 48968 category of the locale to "C". */ 48969 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 48970 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 48971 return 1; 48972# else 48973 if (setlocale (LC_ALL, "") == NULL) return 1; 48974# endif 48975 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 48976 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 48977 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 48978 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 48979 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 48980 some unit tests fail. 48981 On MirBSD 10, when an unsupported locale is specified, setlocale() 48982 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 48983# if HAVE_LANGINFO_CODESET 48984 { 48985 const char *cs = nl_langinfo (CODESET); 48986 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 48987 || strcmp (cs, "UTF-8") == 0) 48988 return 1; 48989 } 48990# endif 48991# ifdef __CYGWIN__ 48992 /* On Cygwin, avoid locale names without encoding suffix, because the 48993 locale_charset() function relies on the encoding suffix. Note that 48994 LC_ALL is set on the command line. */ 48995 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 48996# endif 48997 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 48998 on Cygwin 1.5.x. */ 48999 if (MB_CUR_MAX == 1) 49000 return 1; 49001 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 49002 This excludes the UTF-8 encoding (except on MirBSD). */ 49003 { 49004 const char *p; 49005 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 49006 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 49007 for (p = buf; *p != '\0'; p++) 49008 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 49009 return 1; 49010 } 49011 return 0; 49012#endif 49013} 49014 49015_ACEOF 49016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 49017 (eval $ac_link) 2>&5 49018 ac_status=$? 49019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49020 test $ac_status = 0; } && test -s conftest$ac_exeext; then 49021 case "$host_os" in 49022 # Handle native Windows specially, because there setlocale() interprets 49023 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 49024 # "fr" or "fra" as "French" or "French_France.1252", 49025 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 49026 # "ja" as "Japanese" or "Japanese_Japan.932", 49027 # and similar. 49028 mingw*) 49029 # Note that on native Windows, the Japanese locale is 49030 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 49031 # cannot use it here. 49032 gt_cv_locale_ja=none 49033 ;; 49034 *) 49035 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 49036 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 49037 # configure script would override the LC_ALL setting. Likewise for 49038 # LC_CTYPE, which is also set at the beginning of the configure script. 49039 # Test for the AIX locale name. 49040 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 49041 gt_cv_locale_ja=ja_JP 49042 else 49043 # Test for the locale name with explicit encoding suffix. 49044 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 49045 gt_cv_locale_ja=ja_JP.EUC-JP 49046 else 49047 # Test for the HP-UX, OSF/1, NetBSD locale name. 49048 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 49049 gt_cv_locale_ja=ja_JP.eucJP 49050 else 49051 # Test for the IRIX, FreeBSD locale name. 49052 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 49053 gt_cv_locale_ja=ja_JP.EUC 49054 else 49055 # Test for the Solaris 7 locale name. 49056 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 49057 gt_cv_locale_ja=ja 49058 else 49059 # Special test for NetBSD 1.6. 49060 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 49061 gt_cv_locale_ja=ja_JP.eucJP 49062 else 49063 # None found. 49064 gt_cv_locale_ja=none 49065 fi 49066 fi 49067 fi 49068 fi 49069 fi 49070 fi 49071 ;; 49072 esac 49073 fi 49074 rm -fr conftest* 49075 49076fi 49077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 49078printf "%s\n" "$gt_cv_locale_ja" >&6; } 49079 LOCALE_JA=$gt_cv_locale_ja 49080 49081 49082 49083 49084 49085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 49086printf %s "checking for a transitional chinese locale... " >&6; } 49087if test ${gt_cv_locale_zh_CN+y} 49088then : 49089 printf %s "(cached) " >&6 49090else $as_nop 49091 49092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49093/* end confdefs.h. */ 49094 49095#include <locale.h> 49096#include <stdlib.h> 49097#include <time.h> 49098#if HAVE_LANGINFO_CODESET 49099# include <langinfo.h> 49100#endif 49101#include <stdlib.h> 49102#include <string.h> 49103struct tm t; 49104char buf[16]; 49105int main () 49106{ 49107 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 49108 imitates locale dependent behaviour by looking at the environment 49109 variables, and all locales use the UTF-8 encoding. */ 49110#if defined __BEOS__ || defined __HAIKU__ 49111 return 1; 49112#else 49113 /* Check whether the given locale name is recognized by the system. */ 49114# if defined _WIN32 && !defined __CYGWIN__ 49115 /* On native Windows, setlocale(category, "") looks at the system settings, 49116 not at the environment variables. Also, when an encoding suffix such 49117 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 49118 category of the locale to "C". */ 49119 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 49120 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 49121 return 1; 49122# else 49123 if (setlocale (LC_ALL, "") == NULL) return 1; 49124# endif 49125 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 49126 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 49127 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 49128 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 49129 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 49130 some unit tests fail. 49131 On MirBSD 10, when an unsupported locale is specified, setlocale() 49132 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 49133# if HAVE_LANGINFO_CODESET 49134 { 49135 const char *cs = nl_langinfo (CODESET); 49136 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 49137 || strcmp (cs, "UTF-8") == 0) 49138 return 1; 49139 } 49140# endif 49141# ifdef __CYGWIN__ 49142 /* On Cygwin, avoid locale names without encoding suffix, because the 49143 locale_charset() function relies on the encoding suffix. Note that 49144 LC_ALL is set on the command line. */ 49145 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 49146# endif 49147 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 49148 This excludes the UTF-8 encoding (except on MirBSD). */ 49149 { 49150 const char *p; 49151 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 49152 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 49153 for (p = buf; *p != '\0'; p++) 49154 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 49155 return 1; 49156 } 49157 /* Check whether a typical GB18030 multibyte sequence is recognized as a 49158 single wide character. This excludes the GB2312 and GBK encodings. */ 49159 if (mblen ("\203\062\332\066", 5) != 4) 49160 return 1; 49161 return 0; 49162#endif 49163} 49164 49165_ACEOF 49166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 49167 (eval $ac_link) 2>&5 49168 ac_status=$? 49169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49170 test $ac_status = 0; } && test -s conftest$ac_exeext; then 49171 case "$host_os" in 49172 # Handle native Windows specially, because there setlocale() interprets 49173 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 49174 # "fr" or "fra" as "French" or "French_France.1252", 49175 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 49176 # "ja" as "Japanese" or "Japanese_Japan.932", 49177 # and similar. 49178 mingw*) 49179 # Test for the hypothetical native Windows locale name. 49180 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 49181 gt_cv_locale_zh_CN=Chinese_China.54936 49182 else 49183 # None found. 49184 gt_cv_locale_zh_CN=none 49185 fi 49186 ;; 49187 solaris2.8) 49188 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 49189 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 49190 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 49191 gt_cv_locale_zh_CN=none 49192 ;; 49193 *) 49194 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 49195 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 49196 # configure script would override the LC_ALL setting. Likewise for 49197 # LC_CTYPE, which is also set at the beginning of the configure script. 49198 # Test for the locale name without encoding suffix. 49199 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 49200 gt_cv_locale_zh_CN=zh_CN 49201 else 49202 # Test for the locale name with explicit encoding suffix. 49203 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 49204 gt_cv_locale_zh_CN=zh_CN.GB18030 49205 else 49206 # None found. 49207 gt_cv_locale_zh_CN=none 49208 fi 49209 fi 49210 ;; 49211 esac 49212 else 49213 # If there was a link error, due to mblen(), the system is so old that 49214 # it certainly doesn't have a chinese locale. 49215 gt_cv_locale_zh_CN=none 49216 fi 49217 rm -fr conftest* 49218 49219fi 49220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 49221printf "%s\n" "$gt_cv_locale_zh_CN" >&6; } 49222 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 49223 49224 49225 49226 49227 49228 49229 if test $ac_cv_func_wctob = no; then 49230 HAVE_WCTOB=0 49231 HAVE_DECL_WCTOB=0 49232 else 49233 HAVE_WCTOB=1 49234 49235 49236 49237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wctob works" >&5 49238printf %s "checking whether wctob works... " >&6; } 49239if test ${gl_cv_func_wctob_works+y} 49240then : 49241 printf %s "(cached) " >&6 49242else $as_nop 49243 49244 case "$host_os" in 49245 # Guess no on Solaris <= 9 and Cygwin. 49246 solaris2.[1-9] | solaris2.[1-9].* | cygwin*) 49247 gl_cv_func_wctob_works="guessing no" ;; 49248 # Guess no on native Windows. 49249 mingw*) 49250 gl_cv_func_wctob_works="guessing no" ;; 49251 # Guess yes otherwise. 49252 *) gl_cv_func_wctob_works="guessing yes" ;; 49253 esac 49254 case "$host_os" in 49255 cygwin*) 49256 if test "$cross_compiling" = yes 49257then : 49258 : 49259else $as_nop 49260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49261/* end confdefs.h. */ 49262 49263#include <locale.h> 49264#include <wchar.h> 49265 49266register long global __asm__ ("%ebx"); 49267 49268int main () 49269{ 49270 setlocale (LC_ALL, "en_US.UTF-8"); 49271 49272 global = 0x12345678; 49273 if (wctob (0x00FC) != -1) 49274 return 1; 49275 if (global != 0x12345678) 49276 return 2; 49277 return 0; 49278} 49279_ACEOF 49280if ac_fn_c_try_run "$LINENO" 49281then : 49282 : 49283else $as_nop 49284 gl_cv_func_wctob_works=no 49285fi 49286rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49287 conftest.$ac_objext conftest.beam conftest.$ac_ext 49288fi 49289 49290 ;; 49291 esac 49292 if test "$gl_cv_func_wctob_works" != no && test $LOCALE_FR != none; then 49293 if test "$cross_compiling" = yes 49294then : 49295 : 49296else $as_nop 49297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49298/* end confdefs.h. */ 49299 49300#include <locale.h> 49301#include <stdlib.h> 49302#include <wchar.h> 49303int main () 49304{ 49305 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL) 49306 { 49307 wchar_t wc; 49308 49309 if (mbtowc (&wc, "\374", 1) == 1) 49310 if (wctob (wc) != (unsigned char) '\374') 49311 return 1; 49312 } 49313 return 0; 49314} 49315_ACEOF 49316if ac_fn_c_try_run "$LINENO" 49317then : 49318 gl_cv_func_wctob_works=yes 49319else $as_nop 49320 gl_cv_func_wctob_works=no 49321fi 49322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 49323 conftest.$ac_objext conftest.beam conftest.$ac_ext 49324fi 49325 49326 fi 49327 49328fi 49329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wctob_works" >&5 49330printf "%s\n" "$gl_cv_func_wctob_works" >&6; } 49331 case "$gl_cv_func_wctob_works" in 49332 *yes) ;; 49333 *) REPLACE_WCTOB=1 ;; 49334 esac 49335 if test $REPLACE_WCTOB = 0; then 49336 49337 ac_fn_c_check_decl "$LINENO" "wctob" "ac_cv_have_decl_wctob" " 49338 #include <wchar.h> 49339 49340" 49341if test "x$ac_cv_have_decl_wctob" = xyes 49342then : 49343 ac_have_decl=1 49344else $as_nop 49345 ac_have_decl=0 49346fi 49347 49348printf "%s\n" "#define HAVE_DECL_WCTOB $ac_have_decl" >>confdefs.h 49349 49350 if test $ac_cv_have_decl_wctob != yes; then 49351 HAVE_DECL_WCTOB=0 49352 fi 49353 fi 49354 fi 49355 49356 if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then 49357 49358 49359 49360 49361 49362 49363 49364 49365 gltests_LIBOBJS="$gltests_LIBOBJS wctob.$ac_objext" 49366 49367 49368 : 49369 49370 fi 49371 49372 49373 49374 49375 49376 if test "$GNULIB_WCTOB" != 1; then 49377 if test "$GNULIB_WCTOB" = 0; then 49378 GNULIB_WCTOB=$gl_module_indicator_condition 49379 else 49380 GNULIB_WCTOB="($GNULIB_WCTOB || $gl_module_indicator_condition)" 49381 fi 49382 fi 49383 49384 49385 49386 49387 49388printf "%s\n" "#define GNULIB_TEST_WCTOB 1" >>confdefs.h 49389 49390 49391 49392 49393 49394 49395 if false; then 49396 REPLACE_WCTOMB=1 49397 fi 49398 49399 if test $REPLACE_WCTOMB = 1; then 49400 49401 49402 49403 49404 49405 49406 49407 49408 gltests_LIBOBJS="$gltests_LIBOBJS wctomb.$ac_objext" 49409 49410 49411 : 49412 49413 fi 49414 49415 49416 49417 49418 49419 if test "$GNULIB_WCTOMB" != 1; then 49420 if test "$GNULIB_WCTOMB" = 0; then 49421 GNULIB_WCTOMB=$gl_module_indicator_condition 49422 else 49423 GNULIB_WCTOMB="($GNULIB_WCTOMB || $gl_module_indicator_condition)" 49424 fi 49425 fi 49426 49427 49428 49429 49430 49431printf "%s\n" "#define GNULIB_TEST_WCTOMB 1" >>confdefs.h 49432 49433 49434 49435 49436 case "$host_os" in 49437 mingw*) 49438 49439 49440 49441 49442 49443 49444 49445 49446 gltests_LIBOBJS="$gltests_LIBOBJS windows-mutex.$ac_objext" 49447 49448 ;; 49449 esac 49450 49451 case "$host_os" in 49452 mingw*) 49453 49454 49455 49456 49457 49458 49459 49460 49461 gltests_LIBOBJS="$gltests_LIBOBJS windows-once.$ac_objext" 49462 49463 ;; 49464 esac 49465 49466 case "$host_os" in 49467 mingw*) 49468 49469 49470 49471 49472 49473 49474 49475 49476 gltests_LIBOBJS="$gltests_LIBOBJS windows-recmutex.$ac_objext" 49477 49478 ;; 49479 esac 49480 49481 case "$host_os" in 49482 mingw*) 49483 49484 49485 49486 49487 49488 49489 49490 49491 gltests_LIBOBJS="$gltests_LIBOBJS windows-rwlock.$ac_objext" 49492 49493 ;; 49494 esac 49495 49496 case "$host_os" in 49497 mingw*) 49498 49499 49500 49501 49502 49503 49504 49505 49506 gltests_LIBOBJS="$gltests_LIBOBJS windows-thread.$ac_objext" 49507 49508 ;; 49509 esac 49510 49511 case "$host_os" in 49512 mingw*) 49513 49514 49515 49516 49517 49518 49519 49520 49521 gltests_LIBOBJS="$gltests_LIBOBJS windows-tls.$ac_objext" 49522 49523 ;; 49524 esac 49525 49526 49527 49528 49529 49530 49531 49532 49533 49534 49535 49536 LIBTESTS_LIBDEPS="$gltests_libdeps" 49537 49538 49539 49540printf "%s\n" "#define GNULIB_NO_VLA 1" >>confdefs.h 49541 49542 if test "$gl_cv_func_wsastartup" = "yes"; then 49543 WINDOWS_TRUE= 49544 WINDOWS_FALSE='#' 49545else 49546 WINDOWS_TRUE='#' 49547 WINDOWS_FALSE= 49548fi 49549 49550 49551# Check for Lasso. For examples/saml20/. Disabled by default on Windows. 49552lasso_default=yes 49553if test "$gl_cv_func_wsastartup" = "yes"; then 49554 lasso_default=no 49555fi 49556 49557# Check whether --with-lasso was given. 49558if test ${with_lasso+y} 49559then : 49560 withval=$with_lasso; lasso=$withval 49561else $as_nop 49562 lasso=$lasso_default 49563fi 49564 49565if test "$lasso" != "no"; then 49566 49567pkg_failed=no 49568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LASSO" >&5 49569printf %s "checking for LASSO... " >&6; } 49570 49571if test -n "$PKG_CONFIG"; then 49572 if test -n "$LASSO_CFLAGS"; then 49573 pkg_cv_LASSO_CFLAGS="$LASSO_CFLAGS" 49574 else 49575 if test -n "$PKG_CONFIG" && \ 49576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lasso >= 2.2.1\""; } >&5 49577 ($PKG_CONFIG --exists --print-errors "lasso >= 2.2.1") 2>&5 49578 ac_status=$? 49579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49580 test $ac_status = 0; }; then 49581 pkg_cv_LASSO_CFLAGS=`$PKG_CONFIG --cflags "lasso >= 2.2.1" 2>/dev/null` 49582else 49583 pkg_failed=yes 49584fi 49585 fi 49586else 49587 pkg_failed=untried 49588fi 49589if test -n "$PKG_CONFIG"; then 49590 if test -n "$LASSO_LIBS"; then 49591 pkg_cv_LASSO_LIBS="$LASSO_LIBS" 49592 else 49593 if test -n "$PKG_CONFIG" && \ 49594 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lasso >= 2.2.1\""; } >&5 49595 ($PKG_CONFIG --exists --print-errors "lasso >= 2.2.1") 2>&5 49596 ac_status=$? 49597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49598 test $ac_status = 0; }; then 49599 pkg_cv_LASSO_LIBS=`$PKG_CONFIG --libs "lasso >= 2.2.1" 2>/dev/null` 49600else 49601 pkg_failed=yes 49602fi 49603 fi 49604else 49605 pkg_failed=untried 49606fi 49607 49608 49609 49610if test $pkg_failed = yes; then 49611 49612if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49613 _pkg_short_errors_supported=yes 49614else 49615 _pkg_short_errors_supported=no 49616fi 49617 if test $_pkg_short_errors_supported = yes; then 49618 LASSO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "lasso >= 2.2.1"` 49619 else 49620 LASSO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "lasso >= 2.2.1"` 49621 fi 49622 # Put the nasty error message in config.log where it belongs 49623 echo "$LASSO_PKG_ERRORS" >&5 49624 49625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 49626printf "%s\n" "no" >&6; } 49627 lasso=no 49628elif test $pkg_failed = untried; then 49629 lasso=no 49630else 49631 LASSO_CFLAGS=$pkg_cv_LASSO_CFLAGS 49632 LASSO_LIBS=$pkg_cv_LASSO_LIBS 49633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49634printf "%s\n" "yes" >&6; } 49635 lasso=yes 49636fi 49637 49638 LASSO_CFLAGS=`echo $pkg_cv_LASSO_CFLAGS | sed -e 's,\\\\,,g'` 49639fi 49640 if test "$lasso" = "yes"; then 49641 LASSO_TRUE= 49642 LASSO_FALSE='#' 49643else 49644 LASSO_TRUE='#' 49645 LASSO_FALSE= 49646fi 49647 49648 49649# Check whether --enable-gcc-warnings was given. 49650if test ${enable_gcc_warnings+y} 49651then : 49652 enableval=$enable_gcc_warnings; case $enableval in 49653 yes|no) ;; 49654 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;; 49655 esac 49656 gl_gcc_warnings=$enableval 49657else $as_nop 49658 gl_gcc_warnings=no 49659 49660fi 49661 49662 49663if test "$gl_gcc_warnings" = yes; then 49664 49665 ac_ext=c 49666ac_cpp='$CPP $CPPFLAGS' 49667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49669ac_compiler_gnu=$ac_cv_c_compiler_gnu 49670 49671 49672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5 49673printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; } 49674if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y} 49675then : 49676 printf %s "(cached) " >&6 49677else $as_nop 49678 49679 gl_save_compiler_FLAGS="$CFLAGS" 49680 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 49681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49682/* end confdefs.h. */ 49683 49684int 49685main (void) 49686{ 49687 49688 ; 49689 return 0; 49690} 49691_ACEOF 49692if ac_fn_c_try_link "$LINENO" 49693then : 49694 gl_cv_warn_c__Werror__Wunknown_warning_option=yes 49695else $as_nop 49696 gl_cv_warn_c__Werror__Wunknown_warning_option=no 49697fi 49698rm -f core conftest.err conftest.$ac_objext conftest.beam \ 49699 conftest$ac_exeext conftest.$ac_ext 49700 CFLAGS="$gl_save_compiler_FLAGS" 49701 49702fi 49703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5 49704printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; } 49705if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes 49706then : 49707 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 49708else $as_nop 49709 gl_unknown_warnings_are_errors= 49710fi 49711 49712 ac_ext=c 49713ac_cpp='$CPP $CPPFLAGS' 49714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49716ac_compiler_gnu=$ac_cv_c_compiler_gnu 49717 49718 49719 49720 49721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5 49722printf %s "checking whether C compiler handles -Werror... " >&6; } 49723if test ${gl_cv_warn_c__Werror+y} 49724then : 49725 printf %s "(cached) " >&6 49726else $as_nop 49727 49728 gl_save_compiler_FLAGS="$CFLAGS" 49729 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror" 49730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49731/* end confdefs.h. */ 49732 49733int 49734main (void) 49735{ 49736 49737 ; 49738 return 0; 49739} 49740_ACEOF 49741if ac_fn_c_try_link "$LINENO" 49742then : 49743 gl_cv_warn_c__Werror=yes 49744else $as_nop 49745 gl_cv_warn_c__Werror=no 49746fi 49747rm -f core conftest.err conftest.$ac_objext conftest.beam \ 49748 conftest$ac_exeext conftest.$ac_ext 49749 CFLAGS="$gl_save_compiler_FLAGS" 49750 49751fi 49752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5 49753printf "%s\n" "$gl_cv_warn_c__Werror" >&6; } 49754if test "x$gl_cv_warn_c__Werror" = xyes 49755then : 49756 as_fn_append WERROR_CFLAGS " -Werror" 49757fi 49758 49759 49760 49761 49762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5 49763printf %s "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; } 49764if test ${gl_cv_warn_c__Wno_missing_field_initializers+y} 49765then : 49766 printf %s "(cached) " >&6 49767else $as_nop 49768 49769 gl_save_compiler_FLAGS="$CFLAGS" 49770 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers" 49771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49772/* end confdefs.h. */ 49773 49774int 49775main (void) 49776{ 49777 49778 ; 49779 return 0; 49780} 49781_ACEOF 49782if ac_fn_c_try_link "$LINENO" 49783then : 49784 gl_cv_warn_c__Wno_missing_field_initializers=yes 49785else $as_nop 49786 gl_cv_warn_c__Wno_missing_field_initializers=no 49787fi 49788rm -f core conftest.err conftest.$ac_objext conftest.beam \ 49789 conftest$ac_exeext conftest.$ac_ext 49790 CFLAGS="$gl_save_compiler_FLAGS" 49791 49792fi 49793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5 49794printf "%s\n" "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; } 49795if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes 49796then : 49797 as_fn_append WEASY_CFLAGS " -Wno-missing-field-initializers" 49798fi 49799 49800 49801 49802 49803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5 49804printf %s "checking whether C compiler handles -Wno-unused-parameter... " >&6; } 49805if test ${gl_cv_warn_c__Wno_unused_parameter+y} 49806then : 49807 printf %s "(cached) " >&6 49808else $as_nop 49809 49810 gl_save_compiler_FLAGS="$CFLAGS" 49811 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter" 49812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49813/* end confdefs.h. */ 49814 49815int 49816main (void) 49817{ 49818 49819 ; 49820 return 0; 49821} 49822_ACEOF 49823if ac_fn_c_try_link "$LINENO" 49824then : 49825 gl_cv_warn_c__Wno_unused_parameter=yes 49826else $as_nop 49827 gl_cv_warn_c__Wno_unused_parameter=no 49828fi 49829rm -f core conftest.err conftest.$ac_objext conftest.beam \ 49830 conftest$ac_exeext conftest.$ac_ext 49831 CFLAGS="$gl_save_compiler_FLAGS" 49832 49833fi 49834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5 49835printf "%s\n" "$gl_cv_warn_c__Wno_unused_parameter" >&6; } 49836if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes 49837then : 49838 as_fn_append WEASY_CFLAGS " -Wno-unused-parameter" 49839fi 49840 49841 49842 49843 49844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5 49845printf %s "checking whether C compiler handles -Wno-sign-compare... " >&6; } 49846if test ${gl_cv_warn_c__Wno_sign_compare+y} 49847then : 49848 printf %s "(cached) " >&6 49849else $as_nop 49850 49851 gl_save_compiler_FLAGS="$CFLAGS" 49852 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare" 49853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49854/* end confdefs.h. */ 49855 49856int 49857main (void) 49858{ 49859 49860 ; 49861 return 0; 49862} 49863_ACEOF 49864if ac_fn_c_try_link "$LINENO" 49865then : 49866 gl_cv_warn_c__Wno_sign_compare=yes 49867else $as_nop 49868 gl_cv_warn_c__Wno_sign_compare=no 49869fi 49870rm -f core conftest.err conftest.$ac_objext conftest.beam \ 49871 conftest$ac_exeext conftest.$ac_ext 49872 CFLAGS="$gl_save_compiler_FLAGS" 49873 49874fi 49875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5 49876printf "%s\n" "$gl_cv_warn_c__Wno_sign_compare" >&6; } 49877if test "x$gl_cv_warn_c__Wno_sign_compare" = xyes 49878then : 49879 as_fn_append WEASY_CFLAGS " -Wno-sign-compare" 49880fi 49881 49882 49883 49884 49885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-deprecated-declarations" >&5 49886printf %s "checking whether C compiler handles -Wno-deprecated-declarations... " >&6; } 49887if test ${gl_cv_warn_c__Wno_deprecated_declarations+y} 49888then : 49889 printf %s "(cached) " >&6 49890else $as_nop 49891 49892 gl_save_compiler_FLAGS="$CFLAGS" 49893 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wdeprecated-declarations" 49894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49895/* end confdefs.h. */ 49896 49897int 49898main (void) 49899{ 49900 49901 ; 49902 return 0; 49903} 49904_ACEOF 49905if ac_fn_c_try_link "$LINENO" 49906then : 49907 gl_cv_warn_c__Wno_deprecated_declarations=yes 49908else $as_nop 49909 gl_cv_warn_c__Wno_deprecated_declarations=no 49910fi 49911rm -f core conftest.err conftest.$ac_objext conftest.beam \ 49912 conftest$ac_exeext conftest.$ac_ext 49913 CFLAGS="$gl_save_compiler_FLAGS" 49914 49915fi 49916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_deprecated_declarations" >&5 49917printf "%s\n" "$gl_cv_warn_c__Wno_deprecated_declarations" >&6; } 49918if test "x$gl_cv_warn_c__Wno_deprecated_declarations" = xyes 49919then : 49920 as_fn_append WEASY_CFLAGS " -Wno-deprecated-declarations" 49921fi 49922 49923 49924 49925 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings 49926 nw="$nw -Wpadded" # Our structs are not padded 49927 nw="$nw -Wundef" # warns on '#if GNULIB_FOO' etc in gnulib 49928 nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers 49929 nw="$nw -Wswitch-enum" # Too many warnings for now 49930 nw="$nw -Wconversion" # Too many warnings for now 49931 nw="$nw -Wsign-conversion" # Too many warnings for now 49932 nw="$nw -Wtraditional" # Warns on #elif which we use often 49933 nw="$nw -Wtraditional-conversion" # Too many warnings for now 49934 nw="$nw -Wunreachable-code" # Too many false positives 49935 nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes? 49936 nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes? 49937 49938 49939 ac_ext=c 49940ac_cpp='$CPP $CPPFLAGS' 49941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49943ac_compiler_gnu=$ac_cv_c_compiler_gnu 49944 49945 49946 49947 if test -n "$GCC"; then 49948 49949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 49950printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; } 49951if test ${gl_cv_cc_nomfi_supported+y} 49952then : 49953 printf %s "(cached) " >&6 49954else $as_nop 49955 gl_save_CFLAGS="$CFLAGS" 49956 CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers" 49957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49958/* end confdefs.h. */ 49959 49960int 49961main (void) 49962{ 49963 49964 ; 49965 return 0; 49966} 49967_ACEOF 49968if ac_fn_c_try_compile "$LINENO" 49969then : 49970 gl_cv_cc_nomfi_supported=yes 49971else $as_nop 49972 gl_cv_cc_nomfi_supported=no 49973fi 49974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 49975 CFLAGS="$gl_save_CFLAGS" 49976 49977fi 49978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 49979printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; } 49980 49981 if test "$gl_cv_cc_nomfi_supported" = yes; then 49982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 49983printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; } 49984if test ${gl_cv_cc_nomfi_needed+y} 49985then : 49986 printf %s "(cached) " >&6 49987else $as_nop 49988 gl_save_CFLAGS="$CFLAGS" 49989 CFLAGS="$CFLAGS -Wextra -Werror" 49990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49991/* end confdefs.h. */ 49992int f (void) 49993 { 49994 typedef struct { int a; int b; } s_t; 49995 s_t s1 = { 0, }; 49996 return s1.b; 49997 } 49998 49999int 50000main (void) 50001{ 50002 50003 ; 50004 return 0; 50005} 50006_ACEOF 50007if ac_fn_c_try_compile "$LINENO" 50008then : 50009 gl_cv_cc_nomfi_needed=no 50010else $as_nop 50011 gl_cv_cc_nomfi_needed=yes 50012fi 50013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 50014 CFLAGS="$gl_save_CFLAGS" 50015 50016fi 50017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 50018printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; } 50019 fi 50020 50021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 50022printf %s "checking whether -Wuninitialized is supported... " >&6; } 50023if test ${gl_cv_cc_uninitialized_supported+y} 50024then : 50025 printf %s "(cached) " >&6 50026else $as_nop 50027 gl_save_CFLAGS="$CFLAGS" 50028 CFLAGS="$CFLAGS -Werror -Wuninitialized" 50029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50030/* end confdefs.h. */ 50031 50032int 50033main (void) 50034{ 50035 50036 ; 50037 return 0; 50038} 50039_ACEOF 50040if ac_fn_c_try_compile "$LINENO" 50041then : 50042 gl_cv_cc_uninitialized_supported=yes 50043else $as_nop 50044 gl_cv_cc_uninitialized_supported=no 50045fi 50046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 50047 CFLAGS="$gl_save_CFLAGS" 50048 50049fi 50050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 50051printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; } 50052 50053 fi 50054 50055 # List all gcc warning categories. 50056 # To compare this list to your installed GCC's, run this Bash command: 50057 # 50058 # comm -3 \ 50059 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \ 50060 # awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec) | sort) \ 50061 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort) 50062 50063 ws= 50064 for gl_manywarn_item in -fanalyzer -fno-common \ 50065 -Wall \ 50066 -Warith-conversion \ 50067 -Wbad-function-cast \ 50068 -Wcast-align=strict \ 50069 -Wdate-time \ 50070 -Wdisabled-optimization \ 50071 -Wdouble-promotion \ 50072 -Wduplicated-branches \ 50073 -Wduplicated-cond \ 50074 -Wextra \ 50075 -Wformat-signedness \ 50076 -Winit-self \ 50077 -Winline \ 50078 -Winvalid-pch \ 50079 -Wlogical-op \ 50080 -Wmissing-declarations \ 50081 -Wmissing-include-dirs \ 50082 -Wmissing-prototypes \ 50083 -Wnested-externs \ 50084 -Wnull-dereference \ 50085 -Wold-style-definition \ 50086 -Wopenmp-simd \ 50087 -Woverlength-strings \ 50088 -Wpacked \ 50089 -Wpointer-arith \ 50090 -Wshadow \ 50091 -Wstack-protector \ 50092 -Wstrict-overflow \ 50093 -Wstrict-prototypes \ 50094 -Wsuggest-attribute=cold \ 50095 -Wsuggest-attribute=const \ 50096 -Wsuggest-attribute=format \ 50097 -Wsuggest-attribute=malloc \ 50098 -Wsuggest-attribute=noreturn \ 50099 -Wsuggest-attribute=pure \ 50100 -Wsuggest-final-methods \ 50101 -Wsuggest-final-types \ 50102 -Wsync-nand \ 50103 -Wsystem-headers \ 50104 -Wtrampolines \ 50105 -Wuninitialized \ 50106 -Wunknown-pragmas \ 50107 -Wunsafe-loop-optimizations \ 50108 -Wunused-macros \ 50109 -Wvariadic-macros \ 50110 -Wvector-operation-performance \ 50111 -Wvla \ 50112 -Wwrite-strings \ 50113 \ 50114 ; do 50115 as_fn_append ws " $gl_manywarn_item" 50116 done 50117 50118 # gcc --help=warnings outputs an unusual form for these options; list 50119 # them here so that the above 'comm' command doesn't report a false match. 50120 as_fn_append ws ' -Warray-bounds=2' 50121 as_fn_append ws ' -Wattribute-alias=2' 50122 as_fn_append ws ' -Wformat-overflow=2' 50123 as_fn_append ws ' -Wformat=2' 50124 as_fn_append ws ' -Wformat-truncation=2' 50125 as_fn_append ws ' -Wimplicit-fallthrough=5' 50126 as_fn_append ws ' -Wshift-overflow=2' 50127 as_fn_append ws ' -Wunused-const-variable=2' 50128 as_fn_append ws ' -Wvla-larger-than=4031' 50129 50130 # These are needed for older GCC versions. 50131 if test -n "$GCC"; then 50132 case `($CC --version) 2>/dev/null` in 50133 'gcc (GCC) '[0-3].* | \ 50134 'gcc (GCC) '4.[0-7].*) 50135 as_fn_append ws ' -fdiagnostics-show-option' 50136 as_fn_append ws ' -funit-at-a-time' 50137 ;; 50138 esac 50139 fi 50140 50141 # Disable specific options as needed. 50142 if test "$gl_cv_cc_nomfi_needed" = yes; then 50143 as_fn_append ws ' -Wno-missing-field-initializers' 50144 fi 50145 50146 if test "$gl_cv_cc_uninitialized_supported" = no; then 50147 as_fn_append ws ' -Wno-uninitialized' 50148 fi 50149 50150 # Some warnings have too many false alarms in GCC 10.1. 50151 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93695 50152 as_fn_append ws ' -Wno-analyzer-double-free' 50153 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94458 50154 as_fn_append ws ' -Wno-analyzer-malloc-leak' 50155 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94851 50156 as_fn_append ws ' -Wno-analyzer-null-dereference' 50157 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95758 50158 as_fn_append ws ' -Wno-analyzer-use-after-free' 50159 50160 ac_ext=c 50161ac_cpp='$CPP $CPPFLAGS' 50162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50164ac_compiler_gnu=$ac_cv_c_compiler_gnu 50165 50166 50167 50168 gl_warn_set= 50169 set x $ws; shift 50170 for gl_warn_item 50171 do 50172 case " $nw " in 50173 *" $gl_warn_item "*) 50174 ;; 50175 *) 50176 as_fn_append gl_warn_set " $gl_warn_item" 50177 ;; 50178 esac 50179 done 50180 ws=$gl_warn_set 50181 50182 for w in $ws; do 50183 50184 50185as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh` 50186gl_positive="$w" 50187case $gl_positive in 50188 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; 50189esac 50190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 50191printf %s "checking whether C compiler handles $w... " >&6; } 50192if eval test \${$as_gl_Warn+y} 50193then : 50194 printf %s "(cached) " >&6 50195else $as_nop 50196 50197 gl_save_compiler_FLAGS="$CFLAGS" 50198 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive" 50199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50200/* end confdefs.h. */ 50201 50202int 50203main (void) 50204{ 50205 50206 ; 50207 return 0; 50208} 50209_ACEOF 50210if ac_fn_c_try_link "$LINENO" 50211then : 50212 eval "$as_gl_Warn=yes" 50213else $as_nop 50214 eval "$as_gl_Warn=no" 50215fi 50216rm -f core conftest.err conftest.$ac_objext conftest.beam \ 50217 conftest$ac_exeext conftest.$ac_ext 50218 CFLAGS="$gl_save_compiler_FLAGS" 50219 50220fi 50221eval ac_res=\$$as_gl_Warn 50222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 50223printf "%s\n" "$ac_res" >&6; } 50224if eval test \"x\$"$as_gl_Warn"\" = x"yes" 50225then : 50226 as_fn_append WARN_CFLAGS " $w" 50227fi 50228 50229 50230 done 50231fi 50232 50233 50234 50235subdirs="$subdirs lib" 50236 50237 50238ac_config_files="$ac_config_files Makefile doc/Makefile doc/cyclo/Makefile doc/doxygen/Doxyfile doc/reference/Makefile doc/reference/version.xml examples/Makefile examples/openid20/Makefile examples/saml20/Makefile gl/Makefile gltests/Makefile tests/Makefile" 50239 50240cat >confcache <<\_ACEOF 50241# This file is a shell script that caches the results of configure 50242# tests run on this system so they can be shared between configure 50243# scripts and configure runs, see configure's option --config-cache. 50244# It is not useful on other systems. If it contains results you don't 50245# want to keep, you may remove or edit it. 50246# 50247# config.status only pays attention to the cache file if you give it 50248# the --recheck option to rerun configure. 50249# 50250# `ac_cv_env_foo' variables (set or unset) will be overridden when 50251# loading this file, other *unset* `ac_cv_foo' will be assigned the 50252# following values. 50253 50254_ACEOF 50255 50256# The following way of writing the cache mishandles newlines in values, 50257# but we know of no workaround that is simple, portable, and efficient. 50258# So, we kill variables containing newlines. 50259# Ultrix sh set writes to stderr and can't be redirected directly, 50260# and sets the high bit in the cache file unless we assign to the vars. 50261( 50262 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 50263 eval ac_val=\$$ac_var 50264 case $ac_val in #( 50265 *${as_nl}*) 50266 case $ac_var in #( 50267 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 50268printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 50269 esac 50270 case $ac_var in #( 50271 _ | IFS | as_nl) ;; #( 50272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 50273 *) { eval $ac_var=; unset $ac_var;} ;; 50274 esac ;; 50275 esac 50276 done 50277 50278 (set) 2>&1 | 50279 case $as_nl`(ac_space=' '; set) 2>&1` in #( 50280 *${as_nl}ac_space=\ *) 50281 # `set' does not quote correctly, so add quotes: double-quote 50282 # substitution turns \\\\ into \\, and sed turns \\ into \. 50283 sed -n \ 50284 "s/'/'\\\\''/g; 50285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 50286 ;; #( 50287 *) 50288 # `set' quotes correctly as required by POSIX, so do not add quotes. 50289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 50290 ;; 50291 esac | 50292 sort 50293) | 50294 sed ' 50295 /^ac_cv_env_/b end 50296 t clear 50297 :clear 50298 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 50299 t end 50300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 50301 :end' >>confcache 50302if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 50303 if test -w "$cache_file"; then 50304 if test "x$cache_file" != "x/dev/null"; then 50305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 50306printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 50307 if test ! -f "$cache_file" || test -h "$cache_file"; then 50308 cat confcache >"$cache_file" 50309 else 50310 case $cache_file in #( 50311 */* | ?:*) 50312 mv -f confcache "$cache_file"$$ && 50313 mv -f "$cache_file"$$ "$cache_file" ;; #( 50314 *) 50315 mv -f confcache "$cache_file" ;; 50316 esac 50317 fi 50318 fi 50319 else 50320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 50321printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 50322 fi 50323fi 50324rm -f confcache 50325 50326test "x$prefix" = xNONE && prefix=$ac_default_prefix 50327# Let make expand exec_prefix. 50328test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 50329 50330DEFS=-DHAVE_CONFIG_H 50331 50332ac_libobjs= 50333ac_ltlibobjs= 50334U= 50335for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 50336 # 1. Remove the extension, and $U if already installed. 50337 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 50338 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 50339 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 50340 # will be set to the directory where LIBOBJS objects are built. 50341 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 50342 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 50343done 50344LIBOBJS=$ac_libobjs 50345 50346LTLIBOBJS=$ac_ltlibobjs 50347 50348 50349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 50350printf %s "checking that generated files are newer than configure... " >&6; } 50351 if test -n "$am_sleep_pid"; then 50352 # Hide warnings about reused PIDs. 50353 wait $am_sleep_pid 2>/dev/null 50354 fi 50355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 50356printf "%s\n" "done" >&6; } 50357 if test -n "$EXEEXT"; then 50358 am__EXEEXT_TRUE= 50359 am__EXEEXT_FALSE='#' 50360else 50361 am__EXEEXT_TRUE='#' 50362 am__EXEEXT_FALSE= 50363fi 50364 50365if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 50366 as_fn_error $? "conditional \"AMDEP\" was never defined. 50367Usually this means the macro was only invoked conditionally." "$LINENO" 5 50368fi 50369if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 50370 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 50371Usually this means the macro was only invoked conditionally." "$LINENO" 5 50372fi 50373if test -z "${OBSOLETE_TRUE}" && test -z "${OBSOLETE_FALSE}"; then 50374 as_fn_error $? "conditional \"OBSOLETE\" was never defined. 50375Usually this means the macro was only invoked conditionally." "$LINENO" 5 50376fi 50377if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then 50378 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. 50379Usually this means the macro was only invoked conditionally." "$LINENO" 5 50380fi 50381if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 50382 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 50383Usually this means the macro was only invoked conditionally." "$LINENO" 5 50384fi 50385if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 50386 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 50387Usually this means the macro was only invoked conditionally." "$LINENO" 5 50388fi 50389if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 50390 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 50391Usually this means the macro was only invoked conditionally." "$LINENO" 5 50392fi 50393if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 50394 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 50395Usually this means the macro was only invoked conditionally." "$LINENO" 5 50396fi 50397if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 50398 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 50399Usually this means the macro was only invoked conditionally." "$LINENO" 5 50400fi 50401if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 50402 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 50403Usually this means the macro was only invoked conditionally." "$LINENO" 5 50404fi 50405if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then 50406 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. 50407Usually this means the macro was only invoked conditionally." "$LINENO" 5 50408fi 50409if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then 50410 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. 50411Usually this means the macro was only invoked conditionally." "$LINENO" 5 50412fi 50413if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then 50414 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined. 50415Usually this means the macro was only invoked conditionally." "$LINENO" 5 50416fi 50417if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 50418 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 50419Usually this means the macro was only invoked conditionally." "$LINENO" 5 50420fi 50421if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 50422 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 50423Usually this means the macro was only invoked conditionally." "$LINENO" 5 50424fi 50425if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 50426 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 50427Usually this means the macro was only invoked conditionally." "$LINENO" 5 50428fi 50429if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 50430 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 50431Usually this means the macro was only invoked conditionally." "$LINENO" 5 50432fi 50433if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 50434 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 50435Usually this means the macro was only invoked conditionally." "$LINENO" 5 50436fi 50437if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then 50438 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined. 50439Usually this means the macro was only invoked conditionally." "$LINENO" 5 50440fi 50441if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 50442 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 50443Usually this means the macro was only invoked conditionally." "$LINENO" 5 50444fi 50445CONFIG_INCLUDE=config.h 50446 50447if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then 50448 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined. 50449Usually this means the macro was only invoked conditionally." "$LINENO" 5 50450fi 50451if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then 50452 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined. 50453Usually this means the macro was only invoked conditionally." "$LINENO" 5 50454fi 50455if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then 50456 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined. 50457Usually this means the macro was only invoked conditionally." "$LINENO" 5 50458fi 50459if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 50460 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 50461Usually this means the macro was only invoked conditionally." "$LINENO" 5 50462fi 50463if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 50464 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 50465Usually this means the macro was only invoked conditionally." "$LINENO" 5 50466fi 50467if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then 50468 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined. 50469Usually this means the macro was only invoked conditionally." "$LINENO" 5 50470fi 50471if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then 50472 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined. 50473Usually this means the macro was only invoked conditionally." "$LINENO" 5 50474fi 50475 50476 50477 gl_libobjs= 50478 gl_ltlibobjs= 50479 if test -n "$gl_LIBOBJS"; then 50480 # Remove the extension. 50481 sed_drop_objext='s/\.o$//;s/\.obj$//' 50482 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 50483 gl_libobjs="$gl_libobjs $i.$ac_objext" 50484 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 50485 done 50486 fi 50487 gl_LIBOBJS=$gl_libobjs 50488 50489 gl_LTLIBOBJS=$gl_ltlibobjs 50490 50491 50492 50493 50494 50495 gltests_libobjs= 50496 gltests_ltlibobjs= 50497 if test -n "$gltests_LIBOBJS"; then 50498 # Remove the extension. 50499 sed_drop_objext='s/\.o$//;s/\.obj$//' 50500 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 50501 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 50502 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 50503 done 50504 fi 50505 gltests_LIBOBJS=$gltests_libobjs 50506 50507 gltests_LTLIBOBJS=$gltests_ltlibobjs 50508 50509 50510if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then 50511 as_fn_error $? "conditional \"WINDOWS\" was never defined. 50512Usually this means the macro was only invoked conditionally." "$LINENO" 5 50513fi 50514if test -z "${LASSO_TRUE}" && test -z "${LASSO_FALSE}"; then 50515 as_fn_error $? "conditional \"LASSO\" was never defined. 50516Usually this means the macro was only invoked conditionally." "$LINENO" 5 50517fi 50518 50519: "${CONFIG_STATUS=./config.status}" 50520ac_write_fail=0 50521ac_clean_files_save=$ac_clean_files 50522ac_clean_files="$ac_clean_files $CONFIG_STATUS" 50523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 50524printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 50525as_write_fail=0 50526cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 50527#! $SHELL 50528# Generated by $as_me. 50529# Run this file to recreate the current configuration. 50530# Compiler output produced by configure, useful for debugging 50531# configure, is in config.log if it exists. 50532 50533debug=false 50534ac_cs_recheck=false 50535ac_cs_silent=false 50536 50537SHELL=\${CONFIG_SHELL-$SHELL} 50538export SHELL 50539_ASEOF 50540cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 50541## -------------------- ## 50542## M4sh Initialization. ## 50543## -------------------- ## 50544 50545# Be more Bourne compatible 50546DUALCASE=1; export DUALCASE # for MKS sh 50547as_nop=: 50548if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 50549then : 50550 emulate sh 50551 NULLCMD=: 50552 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 50553 # is contrary to our usage. Disable this feature. 50554 alias -g '${1+"$@"}'='"$@"' 50555 setopt NO_GLOB_SUBST 50556else $as_nop 50557 case `(set -o) 2>/dev/null` in #( 50558 *posix*) : 50559 set -o posix ;; #( 50560 *) : 50561 ;; 50562esac 50563fi 50564 50565 50566 50567# Reset variables that may have inherited troublesome values from 50568# the environment. 50569 50570# IFS needs to be set, to space, tab, and newline, in precisely that order. 50571# (If _AS_PATH_WALK were called with IFS unset, it would have the 50572# side effect of setting IFS to empty, thus disabling word splitting.) 50573# Quoting is to prevent editors from complaining about space-tab. 50574as_nl=' 50575' 50576export as_nl 50577IFS=" "" $as_nl" 50578 50579PS1='$ ' 50580PS2='> ' 50581PS4='+ ' 50582 50583# Ensure predictable behavior from utilities with locale-dependent output. 50584LC_ALL=C 50585export LC_ALL 50586LANGUAGE=C 50587export LANGUAGE 50588 50589# We cannot yet rely on "unset" to work, but we need these variables 50590# to be unset--not just set to an empty or harmless value--now, to 50591# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 50592# also avoids known problems related to "unset" and subshell syntax 50593# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 50594for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 50595do eval test \${$as_var+y} \ 50596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 50597done 50598 50599# Ensure that fds 0, 1, and 2 are open. 50600if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 50601if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 50602if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 50603 50604# The user is always right. 50605if ${PATH_SEPARATOR+false} :; then 50606 PATH_SEPARATOR=: 50607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 50608 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 50609 PATH_SEPARATOR=';' 50610 } 50611fi 50612 50613 50614# Find who we are. Look in the path if we contain no directory separator. 50615as_myself= 50616case $0 in #(( 50617 *[\\/]* ) as_myself=$0 ;; 50618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50619for as_dir in $PATH 50620do 50621 IFS=$as_save_IFS 50622 case $as_dir in #((( 50623 '') as_dir=./ ;; 50624 */) ;; 50625 *) as_dir=$as_dir/ ;; 50626 esac 50627 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 50628 done 50629IFS=$as_save_IFS 50630 50631 ;; 50632esac 50633# We did not find ourselves, most probably we were run as `sh COMMAND' 50634# in which case we are not to be found in the path. 50635if test "x$as_myself" = x; then 50636 as_myself=$0 50637fi 50638if test ! -f "$as_myself"; then 50639 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 50640 exit 1 50641fi 50642 50643 50644 50645# as_fn_error STATUS ERROR [LINENO LOG_FD] 50646# ---------------------------------------- 50647# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 50648# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 50649# script with STATUS, using 1 if that was 0. 50650as_fn_error () 50651{ 50652 as_status=$1; test $as_status -eq 0 && as_status=1 50653 if test "$4"; then 50654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 50655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 50656 fi 50657 printf "%s\n" "$as_me: error: $2" >&2 50658 as_fn_exit $as_status 50659} # as_fn_error 50660 50661 50662 50663# as_fn_set_status STATUS 50664# ----------------------- 50665# Set $? to STATUS, without forking. 50666as_fn_set_status () 50667{ 50668 return $1 50669} # as_fn_set_status 50670 50671# as_fn_exit STATUS 50672# ----------------- 50673# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 50674as_fn_exit () 50675{ 50676 set +e 50677 as_fn_set_status $1 50678 exit $1 50679} # as_fn_exit 50680 50681# as_fn_unset VAR 50682# --------------- 50683# Portably unset VAR. 50684as_fn_unset () 50685{ 50686 { eval $1=; unset $1;} 50687} 50688as_unset=as_fn_unset 50689 50690# as_fn_append VAR VALUE 50691# ---------------------- 50692# Append the text in VALUE to the end of the definition contained in VAR. Take 50693# advantage of any shell optimizations that allow amortized linear growth over 50694# repeated appends, instead of the typical quadratic growth present in naive 50695# implementations. 50696if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 50697then : 50698 eval 'as_fn_append () 50699 { 50700 eval $1+=\$2 50701 }' 50702else $as_nop 50703 as_fn_append () 50704 { 50705 eval $1=\$$1\$2 50706 } 50707fi # as_fn_append 50708 50709# as_fn_arith ARG... 50710# ------------------ 50711# Perform arithmetic evaluation on the ARGs, and store the result in the 50712# global $as_val. Take advantage of shells that can avoid forks. The arguments 50713# must be portable across $(()) and expr. 50714if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 50715then : 50716 eval 'as_fn_arith () 50717 { 50718 as_val=$(( $* )) 50719 }' 50720else $as_nop 50721 as_fn_arith () 50722 { 50723 as_val=`expr "$@" || test $? -eq 1` 50724 } 50725fi # as_fn_arith 50726 50727 50728if expr a : '\(a\)' >/dev/null 2>&1 && 50729 test "X`expr 00001 : '.*\(...\)'`" = X001; then 50730 as_expr=expr 50731else 50732 as_expr=false 50733fi 50734 50735if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 50736 as_basename=basename 50737else 50738 as_basename=false 50739fi 50740 50741if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 50742 as_dirname=dirname 50743else 50744 as_dirname=false 50745fi 50746 50747as_me=`$as_basename -- "$0" || 50748$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 50749 X"$0" : 'X\(//\)$' \| \ 50750 X"$0" : 'X\(/\)' \| . 2>/dev/null || 50751printf "%s\n" X/"$0" | 50752 sed '/^.*\/\([^/][^/]*\)\/*$/{ 50753 s//\1/ 50754 q 50755 } 50756 /^X\/\(\/\/\)$/{ 50757 s//\1/ 50758 q 50759 } 50760 /^X\/\(\/\).*/{ 50761 s//\1/ 50762 q 50763 } 50764 s/.*/./; q'` 50765 50766# Avoid depending upon Character Ranges. 50767as_cr_letters='abcdefghijklmnopqrstuvwxyz' 50768as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 50769as_cr_Letters=$as_cr_letters$as_cr_LETTERS 50770as_cr_digits='0123456789' 50771as_cr_alnum=$as_cr_Letters$as_cr_digits 50772 50773 50774# Determine whether it's possible to make 'echo' print without a newline. 50775# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 50776# for compatibility with existing Makefiles. 50777ECHO_C= ECHO_N= ECHO_T= 50778case `echo -n x` in #((((( 50779-n*) 50780 case `echo 'xy\c'` in 50781 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 50782 xy) ECHO_C='\c';; 50783 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 50784 ECHO_T=' ';; 50785 esac;; 50786*) 50787 ECHO_N='-n';; 50788esac 50789 50790# For backward compatibility with old third-party macros, we provide 50791# the shell variables $as_echo and $as_echo_n. New code should use 50792# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 50793as_echo='printf %s\n' 50794as_echo_n='printf %s' 50795 50796rm -f conf$$ conf$$.exe conf$$.file 50797if test -d conf$$.dir; then 50798 rm -f conf$$.dir/conf$$.file 50799else 50800 rm -f conf$$.dir 50801 mkdir conf$$.dir 2>/dev/null 50802fi 50803if (echo >conf$$.file) 2>/dev/null; then 50804 if ln -s conf$$.file conf$$ 2>/dev/null; then 50805 as_ln_s='ln -s' 50806 # ... but there are two gotchas: 50807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 50808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 50809 # In both cases, we have to default to `cp -pR'. 50810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 50811 as_ln_s='cp -pR' 50812 elif ln conf$$.file conf$$ 2>/dev/null; then 50813 as_ln_s=ln 50814 else 50815 as_ln_s='cp -pR' 50816 fi 50817else 50818 as_ln_s='cp -pR' 50819fi 50820rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 50821rmdir conf$$.dir 2>/dev/null 50822 50823 50824# as_fn_mkdir_p 50825# ------------- 50826# Create "$as_dir" as a directory, including parents if necessary. 50827as_fn_mkdir_p () 50828{ 50829 50830 case $as_dir in #( 50831 -*) as_dir=./$as_dir;; 50832 esac 50833 test -d "$as_dir" || eval $as_mkdir_p || { 50834 as_dirs= 50835 while :; do 50836 case $as_dir in #( 50837 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 50838 *) as_qdir=$as_dir;; 50839 esac 50840 as_dirs="'$as_qdir' $as_dirs" 50841 as_dir=`$as_dirname -- "$as_dir" || 50842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 50843 X"$as_dir" : 'X\(//\)[^/]' \| \ 50844 X"$as_dir" : 'X\(//\)$' \| \ 50845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 50846printf "%s\n" X"$as_dir" | 50847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 50848 s//\1/ 50849 q 50850 } 50851 /^X\(\/\/\)[^/].*/{ 50852 s//\1/ 50853 q 50854 } 50855 /^X\(\/\/\)$/{ 50856 s//\1/ 50857 q 50858 } 50859 /^X\(\/\).*/{ 50860 s//\1/ 50861 q 50862 } 50863 s/.*/./; q'` 50864 test -d "$as_dir" && break 50865 done 50866 test -z "$as_dirs" || eval "mkdir $as_dirs" 50867 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 50868 50869 50870} # as_fn_mkdir_p 50871if mkdir -p . 2>/dev/null; then 50872 as_mkdir_p='mkdir -p "$as_dir"' 50873else 50874 test -d ./-p && rmdir ./-p 50875 as_mkdir_p=false 50876fi 50877 50878 50879# as_fn_executable_p FILE 50880# ----------------------- 50881# Test if FILE is an executable regular file. 50882as_fn_executable_p () 50883{ 50884 test -f "$1" && test -x "$1" 50885} # as_fn_executable_p 50886as_test_x='test -x' 50887as_executable_p=as_fn_executable_p 50888 50889# Sed expression to map a string onto a valid CPP name. 50890as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 50891 50892# Sed expression to map a string onto a valid variable name. 50893as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 50894 50895 50896exec 6>&1 50897## ----------------------------------- ## 50898## Main body of $CONFIG_STATUS script. ## 50899## ----------------------------------- ## 50900_ASEOF 50901test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 50902 50903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50904# Save the log message, to keep $0 and so on meaningful, and to 50905# report actual input values of CONFIG_FILES etc. instead of their 50906# values after options handling. 50907ac_log=" 50908This file was extended by GNU SASL $as_me 1.10.0, which was 50909generated by GNU Autoconf 2.70. Invocation command line was 50910 50911 CONFIG_FILES = $CONFIG_FILES 50912 CONFIG_HEADERS = $CONFIG_HEADERS 50913 CONFIG_LINKS = $CONFIG_LINKS 50914 CONFIG_COMMANDS = $CONFIG_COMMANDS 50915 $ $0 $@ 50916 50917on `(hostname || uname -n) 2>/dev/null | sed 1q` 50918" 50919 50920_ACEOF 50921 50922case $ac_config_files in *" 50923"*) set x $ac_config_files; shift; ac_config_files=$*;; 50924esac 50925 50926case $ac_config_headers in *" 50927"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 50928esac 50929 50930 50931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50932# Files that config.status was made for. 50933config_files="$ac_config_files" 50934config_headers="$ac_config_headers" 50935config_links="$ac_config_links" 50936config_commands="$ac_config_commands" 50937 50938_ACEOF 50939 50940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50941ac_cs_usage="\ 50942\`$as_me' instantiates files and other configuration actions 50943from templates according to the current configuration. Unless the files 50944and actions are specified as TAGs, all are instantiated by default. 50945 50946Usage: $0 [OPTION]... [TAG]... 50947 50948 -h, --help print this help, then exit 50949 -V, --version print version number and configuration settings, then exit 50950 --config print configuration, then exit 50951 -q, --quiet, --silent 50952 do not print progress messages 50953 -d, --debug don't remove temporary files 50954 --recheck update $as_me by reconfiguring in the same conditions 50955 --file=FILE[:TEMPLATE] 50956 instantiate the configuration file FILE 50957 --header=FILE[:TEMPLATE] 50958 instantiate the configuration header FILE 50959 50960Configuration files: 50961$config_files 50962 50963Configuration headers: 50964$config_headers 50965 50966Configuration links: 50967$config_links 50968 50969Configuration commands: 50970$config_commands 50971 50972Report bugs to <bug-gsasl@gnu.org>. 50973GNU SASL home page: <https://www.gnu.org/software/gsasl/>. 50974General help using GNU software: <https://www.gnu.org/gethelp/>." 50975 50976_ACEOF 50977ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 50978ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 50979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50980ac_cs_config='$ac_cs_config_escaped' 50981ac_cs_version="\\ 50982GNU SASL config.status 1.10.0 50983configured by $0, generated by GNU Autoconf 2.70, 50984 with options \\"\$ac_cs_config\\" 50985 50986Copyright (C) 2020 Free Software Foundation, Inc. 50987This config.status script is free software; the Free Software Foundation 50988gives unlimited permission to copy, distribute and modify it." 50989 50990ac_pwd='$ac_pwd' 50991srcdir='$srcdir' 50992INSTALL='$INSTALL' 50993MKDIR_P='$MKDIR_P' 50994AWK='$AWK' 50995test -n "\$AWK" || AWK=awk 50996_ACEOF 50997 50998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50999# The default lists apply if the user does not specify any file. 51000ac_need_defaults=: 51001while test $# != 0 51002do 51003 case $1 in 51004 --*=?*) 51005 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 51007 ac_shift=: 51008 ;; 51009 --*=) 51010 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51011 ac_optarg= 51012 ac_shift=: 51013 ;; 51014 *) 51015 ac_option=$1 51016 ac_optarg=$2 51017 ac_shift=shift 51018 ;; 51019 esac 51020 51021 case $ac_option in 51022 # Handling of the options. 51023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 51024 ac_cs_recheck=: ;; 51025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 51026 printf "%s\n" "$ac_cs_version"; exit ;; 51027 --config | --confi | --conf | --con | --co | --c ) 51028 printf "%s\n" "$ac_cs_config"; exit ;; 51029 --debug | --debu | --deb | --de | --d | -d ) 51030 debug=: ;; 51031 --file | --fil | --fi | --f ) 51032 $ac_shift 51033 case $ac_optarg in 51034 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51035 '') as_fn_error $? "missing file argument" ;; 51036 esac 51037 as_fn_append CONFIG_FILES " '$ac_optarg'" 51038 ac_need_defaults=false;; 51039 --header | --heade | --head | --hea ) 51040 $ac_shift 51041 case $ac_optarg in 51042 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51043 esac 51044 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 51045 ac_need_defaults=false;; 51046 --he | --h) 51047 # Conflict between --help and --header 51048 as_fn_error $? "ambiguous option: \`$1' 51049Try \`$0 --help' for more information.";; 51050 --help | --hel | -h ) 51051 printf "%s\n" "$ac_cs_usage"; exit ;; 51052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 51053 | -silent | --silent | --silen | --sile | --sil | --si | --s) 51054 ac_cs_silent=: ;; 51055 51056 # This is an error. 51057 -*) as_fn_error $? "unrecognized option: \`$1' 51058Try \`$0 --help' for more information." ;; 51059 51060 *) as_fn_append ac_config_targets " $1" 51061 ac_need_defaults=false ;; 51062 51063 esac 51064 shift 51065done 51066 51067ac_configure_extra_args= 51068 51069if $ac_cs_silent; then 51070 exec 6>/dev/null 51071 ac_configure_extra_args="$ac_configure_extra_args --silent" 51072fi 51073 51074_ACEOF 51075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51076if \$ac_cs_recheck; then 51077 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 51078 shift 51079 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 51080 CONFIG_SHELL='$SHELL' 51081 export CONFIG_SHELL 51082 exec "\$@" 51083fi 51084 51085_ACEOF 51086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51087exec 5>>config.log 51088{ 51089 echo 51090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 51091## Running $as_me. ## 51092_ASBOX 51093 printf "%s\n" "$ac_log" 51094} >&5 51095 51096_ACEOF 51097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51098# 51099# INIT-COMMANDS 51100# 51101AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 51102 51103 51104# The HP-UX ksh and POSIX shell print the target directory to stdout 51105# if CDPATH is set. 51106(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 51107 51108sed_quote_subst='$sed_quote_subst' 51109double_quote_subst='$double_quote_subst' 51110delay_variable_subst='$delay_variable_subst' 51111macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 51112macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 51113AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 51114DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 51115OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 51116enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 51117enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 51118pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 51119enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 51120shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 51121SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 51122ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 51123PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 51124host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 51125host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 51126host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 51127build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 51128build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 51129build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 51130SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 51131Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 51132GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 51133EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 51134FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 51135LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 51136NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 51137LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 51138max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 51139ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 51140exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 51141lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 51142lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 51143lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 51144lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 51145lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 51146reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 51147reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 51148deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 51149file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 51150file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 51151want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 51152sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 51153AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 51154AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 51155archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 51156STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 51157RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 51158old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 51159old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 51160old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 51161lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 51162CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 51163CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 51164compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 51165GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 51166lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 51167lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 51168lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 51169lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 51170lt_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"`' 51171lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 51172nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 51173lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 51174lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 51175objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 51176MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 51177lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 51178lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 51179lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 51180lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 51181lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 51182need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 51183MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 51184DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 51185NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 51186LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 51187OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 51188OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 51189libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 51190shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 51191extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 51192archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 51193enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 51194export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 51195whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 51196compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 51197old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 51198old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 51199archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 51200archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 51201module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 51202module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 51203with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 51204allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 51205no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 51206hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 51207hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 51208hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 51209hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 51210hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 51211hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 51212hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 51213inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 51214link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 51215always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 51216export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 51217exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 51218include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 51219prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 51220postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 51221file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 51222variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 51223need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 51224need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 51225version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 51226runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 51227shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 51228shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 51229libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 51230library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 51231soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 51232install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 51233postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 51234postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 51235finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 51236finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 51237hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 51238sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 51239configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 51240configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 51241hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 51242enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 51243enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 51244enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 51245old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 51246striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 51247 51248LTCC='$LTCC' 51249LTCFLAGS='$LTCFLAGS' 51250compiler='$compiler_DEFAULT' 51251 51252# A function that is used when there is no print builtin or printf. 51253func_fallback_echo () 51254{ 51255 eval 'cat <<_LTECHO_EOF 51256\$1 51257_LTECHO_EOF' 51258} 51259 51260# Quote evaled strings. 51261for var in AS \ 51262DLLTOOL \ 51263OBJDUMP \ 51264SHELL \ 51265ECHO \ 51266PATH_SEPARATOR \ 51267SED \ 51268GREP \ 51269EGREP \ 51270FGREP \ 51271LD \ 51272NM \ 51273LN_S \ 51274lt_SP2NL \ 51275lt_NL2SP \ 51276reload_flag \ 51277deplibs_check_method \ 51278file_magic_cmd \ 51279file_magic_glob \ 51280want_nocaseglob \ 51281sharedlib_from_linklib_cmd \ 51282AR \ 51283AR_FLAGS \ 51284archiver_list_spec \ 51285STRIP \ 51286RANLIB \ 51287CC \ 51288CFLAGS \ 51289compiler \ 51290lt_cv_sys_global_symbol_pipe \ 51291lt_cv_sys_global_symbol_to_cdecl \ 51292lt_cv_sys_global_symbol_to_import \ 51293lt_cv_sys_global_symbol_to_c_name_address \ 51294lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 51295lt_cv_nm_interface \ 51296nm_file_list_spec \ 51297lt_cv_truncate_bin \ 51298lt_prog_compiler_no_builtin_flag \ 51299lt_prog_compiler_pic \ 51300lt_prog_compiler_wl \ 51301lt_prog_compiler_static \ 51302lt_cv_prog_compiler_c_o \ 51303need_locks \ 51304MANIFEST_TOOL \ 51305DSYMUTIL \ 51306NMEDIT \ 51307LIPO \ 51308OTOOL \ 51309OTOOL64 \ 51310shrext_cmds \ 51311export_dynamic_flag_spec \ 51312whole_archive_flag_spec \ 51313compiler_needs_object \ 51314with_gnu_ld \ 51315allow_undefined_flag \ 51316no_undefined_flag \ 51317hardcode_libdir_flag_spec \ 51318hardcode_libdir_separator \ 51319exclude_expsyms \ 51320include_expsyms \ 51321file_list_spec \ 51322variables_saved_for_relink \ 51323libname_spec \ 51324library_names_spec \ 51325soname_spec \ 51326install_override_mode \ 51327finish_eval \ 51328old_striplib \ 51329striplib; do 51330 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 51331 *[\\\\\\\`\\"\\\$]*) 51332 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 51333 ;; 51334 *) 51335 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 51336 ;; 51337 esac 51338done 51339 51340# Double-quote double-evaled strings. 51341for var in reload_cmds \ 51342old_postinstall_cmds \ 51343old_postuninstall_cmds \ 51344old_archive_cmds \ 51345extract_expsyms_cmds \ 51346old_archive_from_new_cmds \ 51347old_archive_from_expsyms_cmds \ 51348archive_cmds \ 51349archive_expsym_cmds \ 51350module_cmds \ 51351module_expsym_cmds \ 51352export_symbols_cmds \ 51353prelink_cmds \ 51354postlink_cmds \ 51355postinstall_cmds \ 51356postuninstall_cmds \ 51357finish_cmds \ 51358sys_lib_search_path_spec \ 51359configure_time_dlsearch_path \ 51360configure_time_lt_sys_library_path; do 51361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 51362 *[\\\\\\\`\\"\\\$]*) 51363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 51364 ;; 51365 *) 51366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 51367 ;; 51368 esac 51369done 51370 51371ac_aux_dir='$ac_aux_dir' 51372 51373# See if we are running on zsh, and set the options that allow our 51374# commands through without removal of \ escapes INIT. 51375if test -n "\${ZSH_VERSION+set}"; then 51376 setopt NO_GLOB_SUBST 51377fi 51378 51379 51380 PACKAGE='$PACKAGE' 51381 VERSION='$VERSION' 51382 RM='$RM' 51383 ofile='$ofile' 51384 51385 51386 51387# Capture the value of obsolete ALL_LINGUAS because we need it to compute 51388 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 51389 # from automake < 1.5. 51390 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 51391 # Capture the value of LINGUAS because we need it to compute CATALOGS. 51392 LINGUAS="${LINGUAS-%UNSET%}" 51393 51394GNUmakefile=$GNUmakefile 51395 51396_ACEOF 51397 51398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51399 51400# Handling of arguments. 51401for ac_config_target in $ac_config_targets 51402do 51403 case $ac_config_target in 51404 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 51405 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 51406 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 51407 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 51408 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;; 51409 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 51410 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 51411 "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;; 51412 "doc/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Doxyfile" ;; 51413 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;; 51414 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;; 51415 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 51416 "examples/openid20/Makefile") CONFIG_FILES="$CONFIG_FILES examples/openid20/Makefile" ;; 51417 "examples/saml20/Makefile") CONFIG_FILES="$CONFIG_FILES examples/saml20/Makefile" ;; 51418 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;; 51419 "gltests/Makefile") CONFIG_FILES="$CONFIG_FILES gltests/Makefile" ;; 51420 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 51421 51422 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 51423 esac 51424done 51425 51426 51427# If the user did not use the arguments to specify the items to instantiate, 51428# then the envvar interface is used. Set only those that are not. 51429# We use the long form for the default assignment because of an extremely 51430# bizarre bug on SunOS 4.1.3. 51431if $ac_need_defaults; then 51432 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 51433 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 51434 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links 51435 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 51436fi 51437 51438# Have a temporary directory for convenience. Make it in the build tree 51439# simply because there is no reason against having it here, and in addition, 51440# creating and moving files from /tmp can sometimes cause problems. 51441# Hook for its removal unless debugging. 51442# Note that there is a small window in which the directory will not be cleaned: 51443# after its creation but before its name has been assigned to `$tmp'. 51444$debug || 51445{ 51446 tmp= ac_tmp= 51447 trap 'exit_status=$? 51448 : "${ac_tmp:=$tmp}" 51449 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 51450' 0 51451 trap 'as_fn_exit 1' 1 2 13 15 51452} 51453# Create a (secure) tmp directory for tmp files. 51454 51455{ 51456 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 51457 test -d "$tmp" 51458} || 51459{ 51460 tmp=./conf$$-$RANDOM 51461 (umask 077 && mkdir "$tmp") 51462} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 51463ac_tmp=$tmp 51464 51465# Set up the scripts for CONFIG_FILES section. 51466# No need to generate them if there are no CONFIG_FILES. 51467# This happens for instance with `./config.status config.h'. 51468if test -n "$CONFIG_FILES"; then 51469 51470 51471ac_cr=`echo X | tr X '\015'` 51472# On cygwin, bash can eat \r inside `` if the user requested igncr. 51473# But we know of no other shell where ac_cr would be empty at this 51474# point, so we can use a bashism as a fallback. 51475if test "x$ac_cr" = x; then 51476 eval ac_cr=\$\'\\r\' 51477fi 51478ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 51479if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 51480 ac_cs_awk_cr='\\r' 51481else 51482 ac_cs_awk_cr=$ac_cr 51483fi 51484 51485echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 51486_ACEOF 51487 51488 51489{ 51490 echo "cat >conf$$subs.awk <<_ACEOF" && 51491 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 51492 echo "_ACEOF" 51493} >conf$$subs.sh || 51494 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51495ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 51496ac_delim='%!_!# ' 51497for ac_last_try in false false false false false :; do 51498 . ./conf$$subs.sh || 51499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51500 51501 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 51502 if test $ac_delim_n = $ac_delim_num; then 51503 break 51504 elif $ac_last_try; then 51505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51506 else 51507 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51508 fi 51509done 51510rm -f conf$$subs.sh 51511 51512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51513cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 51514_ACEOF 51515sed -n ' 51516h 51517s/^/S["/; s/!.*/"]=/ 51518p 51519g 51520s/^[^!]*!// 51521:repl 51522t repl 51523s/'"$ac_delim"'$// 51524t delim 51525:nl 51526h 51527s/\(.\{148\}\)..*/\1/ 51528t more1 51529s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 51530p 51531n 51532b repl 51533:more1 51534s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51535p 51536g 51537s/.\{148\}// 51538t nl 51539:delim 51540h 51541s/\(.\{148\}\)..*/\1/ 51542t more2 51543s/["\\]/\\&/g; s/^/"/; s/$/"/ 51544p 51545b 51546:more2 51547s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51548p 51549g 51550s/.\{148\}// 51551t delim 51552' <conf$$subs.awk | sed ' 51553/^[^""]/{ 51554 N 51555 s/\n// 51556} 51557' >>$CONFIG_STATUS || ac_write_fail=1 51558rm -f conf$$subs.awk 51559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51560_ACAWK 51561cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 51562 for (key in S) S_is_set[key] = 1 51563 FS = "" 51564 51565} 51566{ 51567 line = $ 0 51568 nfields = split(line, field, "@") 51569 substed = 0 51570 len = length(field[1]) 51571 for (i = 2; i < nfields; i++) { 51572 key = field[i] 51573 keylen = length(key) 51574 if (S_is_set[key]) { 51575 value = S[key] 51576 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 51577 len += length(value) + length(field[++i]) 51578 substed = 1 51579 } else 51580 len += 1 + keylen 51581 } 51582 51583 print line 51584} 51585 51586_ACAWK 51587_ACEOF 51588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51589if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 51590 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 51591else 51592 cat 51593fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 51594 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 51595_ACEOF 51596 51597# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 51598# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 51599# trailing colons and then remove the whole line if VPATH becomes empty 51600# (actually we leave an empty line to preserve line numbers). 51601if test "x$srcdir" = x.; then 51602 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 51603h 51604s/// 51605s/^/:/ 51606s/[ ]*$/:/ 51607s/:\$(srcdir):/:/g 51608s/:\${srcdir}:/:/g 51609s/:@srcdir@:/:/g 51610s/^:*// 51611s/:*$// 51612x 51613s/\(=[ ]*\).*/\1/ 51614G 51615s/\n// 51616s/^[^=]*=[ ]*$// 51617}' 51618fi 51619 51620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51621fi # test -n "$CONFIG_FILES" 51622 51623# Set up the scripts for CONFIG_HEADERS section. 51624# No need to generate them if there are no CONFIG_HEADERS. 51625# This happens for instance with `./config.status Makefile'. 51626if test -n "$CONFIG_HEADERS"; then 51627cat >"$ac_tmp/defines.awk" <<\_ACAWK || 51628BEGIN { 51629_ACEOF 51630 51631# Transform confdefs.h into an awk script `defines.awk', embedded as 51632# here-document in config.status, that substitutes the proper values into 51633# config.h.in to produce config.h. 51634 51635# Create a delimiter string that does not exist in confdefs.h, to ease 51636# handling of long lines. 51637ac_delim='%!_!# ' 51638for ac_last_try in false false :; do 51639 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 51640 if test -z "$ac_tt"; then 51641 break 51642 elif $ac_last_try; then 51643 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 51644 else 51645 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51646 fi 51647done 51648 51649# For the awk script, D is an array of macro values keyed by name, 51650# likewise P contains macro parameters if any. Preserve backslash 51651# newline sequences. 51652 51653ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 51654sed -n ' 51655s/.\{148\}/&'"$ac_delim"'/g 51656t rset 51657:rset 51658s/^[ ]*#[ ]*define[ ][ ]*/ / 51659t def 51660d 51661:def 51662s/\\$// 51663t bsnl 51664s/["\\]/\\&/g 51665s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 51666D["\1"]=" \3"/p 51667s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 51668d 51669:bsnl 51670s/["\\]/\\&/g 51671s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 51672D["\1"]=" \3\\\\\\n"\\/p 51673t cont 51674s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 51675t cont 51676d 51677:cont 51678n 51679s/.\{148\}/&'"$ac_delim"'/g 51680t clear 51681:clear 51682s/\\$// 51683t bsnlc 51684s/["\\]/\\&/g; s/^/"/; s/$/"/p 51685d 51686:bsnlc 51687s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 51688b cont 51689' <confdefs.h | sed ' 51690s/'"$ac_delim"'/"\\\ 51691"/g' >>$CONFIG_STATUS || ac_write_fail=1 51692 51693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51694 for (key in D) D_is_set[key] = 1 51695 FS = "" 51696} 51697/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 51698 line = \$ 0 51699 split(line, arg, " ") 51700 if (arg[1] == "#") { 51701 defundef = arg[2] 51702 mac1 = arg[3] 51703 } else { 51704 defundef = substr(arg[1], 2) 51705 mac1 = arg[2] 51706 } 51707 split(mac1, mac2, "(") #) 51708 macro = mac2[1] 51709 prefix = substr(line, 1, index(line, defundef) - 1) 51710 if (D_is_set[macro]) { 51711 # Preserve the white space surrounding the "#". 51712 print prefix "define", macro P[macro] D[macro] 51713 next 51714 } else { 51715 # Replace #undef with comments. This is necessary, for example, 51716 # in the case of _POSIX_SOURCE, which is predefined and required 51717 # on some systems where configure will not decide to define it. 51718 if (defundef == "undef") { 51719 print "/*", prefix defundef, macro, "*/" 51720 next 51721 } 51722 } 51723} 51724{ print } 51725_ACAWK 51726_ACEOF 51727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51728 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 51729fi # test -n "$CONFIG_HEADERS" 51730 51731 51732eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 51733shift 51734for ac_tag 51735do 51736 case $ac_tag in 51737 :[FHLC]) ac_mode=$ac_tag; continue;; 51738 esac 51739 case $ac_mode$ac_tag in 51740 :[FHL]*:*);; 51741 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 51742 :[FH]-) ac_tag=-:-;; 51743 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 51744 esac 51745 ac_save_IFS=$IFS 51746 IFS=: 51747 set x $ac_tag 51748 IFS=$ac_save_IFS 51749 shift 51750 ac_file=$1 51751 shift 51752 51753 case $ac_mode in 51754 :L) ac_source=$1;; 51755 :[FH]) 51756 ac_file_inputs= 51757 for ac_f 51758 do 51759 case $ac_f in 51760 -) ac_f="$ac_tmp/stdin";; 51761 *) # Look for the file first in the build tree, then in the source tree 51762 # (if the path is not absolute). The absolute path cannot be DOS-style, 51763 # because $ac_f cannot contain `:'. 51764 test -f "$ac_f" || 51765 case $ac_f in 51766 [\\/$]*) false;; 51767 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 51768 esac || 51769 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 51770 esac 51771 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 51772 as_fn_append ac_file_inputs " '$ac_f'" 51773 done 51774 51775 # Let's still pretend it is `configure' which instantiates (i.e., don't 51776 # use $as_me), people would be surprised to read: 51777 # /* config.h. Generated by config.status. */ 51778 configure_input='Generated from '` 51779 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 51780 `' by configure.' 51781 if test x"$ac_file" != x-; then 51782 configure_input="$ac_file. $configure_input" 51783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 51784printf "%s\n" "$as_me: creating $ac_file" >&6;} 51785 fi 51786 # Neutralize special characters interpreted by sed in replacement strings. 51787 case $configure_input in #( 51788 *\&* | *\|* | *\\* ) 51789 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 51790 sed 's/[\\\\&|]/\\\\&/g'`;; #( 51791 *) ac_sed_conf_input=$configure_input;; 51792 esac 51793 51794 case $ac_tag in 51795 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 51796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 51797 esac 51798 ;; 51799 esac 51800 51801 ac_dir=`$as_dirname -- "$ac_file" || 51802$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51803 X"$ac_file" : 'X\(//\)[^/]' \| \ 51804 X"$ac_file" : 'X\(//\)$' \| \ 51805 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 51806printf "%s\n" X"$ac_file" | 51807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51808 s//\1/ 51809 q 51810 } 51811 /^X\(\/\/\)[^/].*/{ 51812 s//\1/ 51813 q 51814 } 51815 /^X\(\/\/\)$/{ 51816 s//\1/ 51817 q 51818 } 51819 /^X\(\/\).*/{ 51820 s//\1/ 51821 q 51822 } 51823 s/.*/./; q'` 51824 as_dir="$ac_dir"; as_fn_mkdir_p 51825 ac_builddir=. 51826 51827case "$ac_dir" in 51828.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 51829*) 51830 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 51831 # A ".." for each directory in $ac_dir_suffix. 51832 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 51833 case $ac_top_builddir_sub in 51834 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 51835 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 51836 esac ;; 51837esac 51838ac_abs_top_builddir=$ac_pwd 51839ac_abs_builddir=$ac_pwd$ac_dir_suffix 51840# for backward compatibility: 51841ac_top_builddir=$ac_top_build_prefix 51842 51843case $srcdir in 51844 .) # We are building in place. 51845 ac_srcdir=. 51846 ac_top_srcdir=$ac_top_builddir_sub 51847 ac_abs_top_srcdir=$ac_pwd ;; 51848 [\\/]* | ?:[\\/]* ) # Absolute name. 51849 ac_srcdir=$srcdir$ac_dir_suffix; 51850 ac_top_srcdir=$srcdir 51851 ac_abs_top_srcdir=$srcdir ;; 51852 *) # Relative name. 51853 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 51854 ac_top_srcdir=$ac_top_build_prefix$srcdir 51855 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 51856esac 51857ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 51858 51859 51860 case $ac_mode in 51861 :F) 51862 # 51863 # CONFIG_FILE 51864 # 51865 51866 case $INSTALL in 51867 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 51868 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 51869 esac 51870 ac_MKDIR_P=$MKDIR_P 51871 case $MKDIR_P in 51872 [\\/$]* | ?:[\\/]* ) ;; 51873 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 51874 esac 51875_ACEOF 51876 51877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51878# If the template does not know about datarootdir, expand it. 51879# FIXME: This hack should be removed a few years after 2.60. 51880ac_datarootdir_hack=; ac_datarootdir_seen= 51881ac_sed_dataroot=' 51882/datarootdir/ { 51883 p 51884 q 51885} 51886/@datadir@/p 51887/@docdir@/p 51888/@infodir@/p 51889/@localedir@/p 51890/@mandir@/p' 51891case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 51892*datarootdir*) ac_datarootdir_seen=yes;; 51893*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 51894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 51895printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 51896_ACEOF 51897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51898 ac_datarootdir_hack=' 51899 s&@datadir@&$datadir&g 51900 s&@docdir@&$docdir&g 51901 s&@infodir@&$infodir&g 51902 s&@localedir@&$localedir&g 51903 s&@mandir@&$mandir&g 51904 s&\\\${datarootdir}&$datarootdir&g' ;; 51905esac 51906_ACEOF 51907 51908# Neutralize VPATH when `$srcdir' = `.'. 51909# Shell code in configure.ac might set extrasub. 51910# FIXME: do we really want to maintain this feature? 51911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51912ac_sed_extra="$ac_vpsub 51913$extrasub 51914_ACEOF 51915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51916:t 51917/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 51918s|@configure_input@|$ac_sed_conf_input|;t t 51919s&@top_builddir@&$ac_top_builddir_sub&;t t 51920s&@top_build_prefix@&$ac_top_build_prefix&;t t 51921s&@srcdir@&$ac_srcdir&;t t 51922s&@abs_srcdir@&$ac_abs_srcdir&;t t 51923s&@top_srcdir@&$ac_top_srcdir&;t t 51924s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 51925s&@builddir@&$ac_builddir&;t t 51926s&@abs_builddir@&$ac_abs_builddir&;t t 51927s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 51928s&@INSTALL@&$ac_INSTALL&;t t 51929s&@MKDIR_P@&$ac_MKDIR_P&;t t 51930$ac_datarootdir_hack 51931" 51932eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 51933 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51934 51935test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 51936 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 51937 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 51938 "$ac_tmp/out"`; test -z "$ac_out"; } && 51939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 51940which seems to be undefined. Please make sure it is defined" >&5 51941printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 51942which seems to be undefined. Please make sure it is defined" >&2;} 51943 51944 rm -f "$ac_tmp/stdin" 51945 case $ac_file in 51946 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 51947 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 51948 esac \ 51949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51950 ;; 51951 :H) 51952 # 51953 # CONFIG_HEADER 51954 # 51955 if test x"$ac_file" != x-; then 51956 { 51957 printf "%s\n" "/* $configure_input */" >&1 \ 51958 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 51959 } >"$ac_tmp/config.h" \ 51960 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51961 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 51962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 51963printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 51964 else 51965 rm -f "$ac_file" 51966 mv "$ac_tmp/config.h" "$ac_file" \ 51967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51968 fi 51969 else 51970 printf "%s\n" "/* $configure_input */" >&1 \ 51971 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 51972 || as_fn_error $? "could not create -" "$LINENO" 5 51973 fi 51974# Compute "$ac_file"'s index in $config_headers. 51975_am_arg="$ac_file" 51976_am_stamp_count=1 51977for _am_header in $config_headers :; do 51978 case $_am_header in 51979 $_am_arg | $_am_arg:* ) 51980 break ;; 51981 * ) 51982 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 51983 esac 51984done 51985echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 51986$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51987 X"$_am_arg" : 'X\(//\)[^/]' \| \ 51988 X"$_am_arg" : 'X\(//\)$' \| \ 51989 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 51990printf "%s\n" X"$_am_arg" | 51991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51992 s//\1/ 51993 q 51994 } 51995 /^X\(\/\/\)[^/].*/{ 51996 s//\1/ 51997 q 51998 } 51999 /^X\(\/\/\)$/{ 52000 s//\1/ 52001 q 52002 } 52003 /^X\(\/\).*/{ 52004 s//\1/ 52005 q 52006 } 52007 s/.*/./; q'`/stamp-h$_am_stamp_count 52008 ;; 52009 :L) 52010 # 52011 # CONFIG_LINK 52012 # 52013 52014 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 52015 : 52016 else 52017 # Prefer the file from the source tree if names are identical. 52018 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 52019 ac_source=$srcdir/$ac_source 52020 fi 52021 52022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 52023printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;} 52024 52025 if test ! -r "$ac_source"; then 52026 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 52027 fi 52028 rm -f "$ac_file" 52029 52030 # Try a relative symlink, then a hard link, then a copy. 52031 case $ac_source in 52032 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 52033 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 52034 esac 52035 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 52036 ln "$ac_source" "$ac_file" 2>/dev/null || 52037 cp -p "$ac_source" "$ac_file" || 52038 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 52039 fi 52040 ;; 52041 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 52042printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 52043 ;; 52044 esac 52045 52046 52047 case $ac_file$ac_mode in 52048 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 52049 # Older Autoconf quotes --file arguments for eval, but not when files 52050 # are listed without --file. Let's play safe and only enable the eval 52051 # if we detect the quoting. 52052 # TODO: see whether this extra hack can be removed once we start 52053 # requiring Autoconf 2.70 or later. 52054 case $CONFIG_FILES in #( 52055 *\'*) : 52056 eval set x "$CONFIG_FILES" ;; #( 52057 *) : 52058 set x $CONFIG_FILES ;; #( 52059 *) : 52060 ;; 52061esac 52062 shift 52063 # Used to flag and report bootstrapping failures. 52064 am_rc=0 52065 for am_mf 52066 do 52067 # Strip MF so we end up with the name of the file. 52068 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 52069 # Check whether this is an Automake generated Makefile which includes 52070 # dependency-tracking related rules and includes. 52071 # Grep'ing the whole file directly is not great: AIX grep has a line 52072 # limit of 2048, but all sed's we know have understand at least 4000. 52073 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 52074 || continue 52075 am_dirpart=`$as_dirname -- "$am_mf" || 52076$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52077 X"$am_mf" : 'X\(//\)[^/]' \| \ 52078 X"$am_mf" : 'X\(//\)$' \| \ 52079 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 52080printf "%s\n" X"$am_mf" | 52081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52082 s//\1/ 52083 q 52084 } 52085 /^X\(\/\/\)[^/].*/{ 52086 s//\1/ 52087 q 52088 } 52089 /^X\(\/\/\)$/{ 52090 s//\1/ 52091 q 52092 } 52093 /^X\(\/\).*/{ 52094 s//\1/ 52095 q 52096 } 52097 s/.*/./; q'` 52098 am_filepart=`$as_basename -- "$am_mf" || 52099$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 52100 X"$am_mf" : 'X\(//\)$' \| \ 52101 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 52102printf "%s\n" X/"$am_mf" | 52103 sed '/^.*\/\([^/][^/]*\)\/*$/{ 52104 s//\1/ 52105 q 52106 } 52107 /^X\/\(\/\/\)$/{ 52108 s//\1/ 52109 q 52110 } 52111 /^X\/\(\/\).*/{ 52112 s//\1/ 52113 q 52114 } 52115 s/.*/./; q'` 52116 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 52117 && sed -e '/# am--include-marker/d' "$am_filepart" \ 52118 | $MAKE -f - am--depfiles" >&5 52119 (cd "$am_dirpart" \ 52120 && sed -e '/# am--include-marker/d' "$am_filepart" \ 52121 | $MAKE -f - am--depfiles) >&5 2>&5 52122 ac_status=$? 52123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 52124 (exit $ac_status); } || am_rc=$? 52125 done 52126 if test $am_rc -ne 0; then 52127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 52128printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 52129as_fn_error $? "Something went wrong bootstrapping makefile fragments 52130 for automatic dependency tracking. If GNU make was not used, consider 52131 re-running the configure script with MAKE=\"gmake\" (or whatever is 52132 necessary). You can also try re-running configure with the 52133 '--disable-dependency-tracking' option to at least be able to build 52134 the package (albeit without support for automatic dependency tracking). 52135See \`config.log' for more details" "$LINENO" 5; } 52136 fi 52137 { am_dirpart=; unset am_dirpart;} 52138 { am_filepart=; unset am_filepart;} 52139 { am_mf=; unset am_mf;} 52140 { am_rc=; unset am_rc;} 52141 rm -f conftest-deps.mk 52142} 52143 ;; 52144 "libtool":C) 52145 52146 # See if we are running on zsh, and set the options that allow our 52147 # commands through without removal of \ escapes. 52148 if test -n "${ZSH_VERSION+set}"; then 52149 setopt NO_GLOB_SUBST 52150 fi 52151 52152 cfgfile=${ofile}T 52153 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 52154 $RM "$cfgfile" 52155 52156 cat <<_LT_EOF >> "$cfgfile" 52157#! $SHELL 52158# Generated automatically by $as_me ($PACKAGE) $VERSION 52159# NOTE: Changes made to this file will be lost: look at ltmain.sh. 52160 52161# Provide generalized library-building support services. 52162# Written by Gordon Matzigkeit, 1996 52163 52164# Copyright (C) 2014 Free Software Foundation, Inc. 52165# This is free software; see the source for copying conditions. There is NO 52166# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 52167 52168# GNU Libtool is free software; you can redistribute it and/or modify 52169# it under the terms of the GNU General Public License as published by 52170# the Free Software Foundation; either version 2 of of the License, or 52171# (at your option) any later version. 52172# 52173# As a special exception to the GNU General Public License, if you 52174# distribute this file as part of a program or library that is built 52175# using GNU Libtool, you may include this file under the same 52176# distribution terms that you use for the rest of that program. 52177# 52178# GNU Libtool is distributed in the hope that it will be useful, but 52179# WITHOUT ANY WARRANTY; without even the implied warranty of 52180# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 52181# GNU General Public License for more details. 52182# 52183# You should have received a copy of the GNU General Public License 52184# along with this program. If not, see <http://www.gnu.org/licenses/>. 52185 52186 52187# The names of the tagged configurations supported by this script. 52188available_tags='' 52189 52190# Configured defaults for sys_lib_dlsearch_path munging. 52191: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 52192 52193# ### BEGIN LIBTOOL CONFIG 52194 52195# Which release of libtool.m4 was used? 52196macro_version=$macro_version 52197macro_revision=$macro_revision 52198 52199# Assembler program. 52200AS=$lt_AS 52201 52202# DLL creation program. 52203DLLTOOL=$lt_DLLTOOL 52204 52205# Object dumper program. 52206OBJDUMP=$lt_OBJDUMP 52207 52208# Whether or not to build shared libraries. 52209build_libtool_libs=$enable_shared 52210 52211# Whether or not to build static libraries. 52212build_old_libs=$enable_static 52213 52214# What type of objects to build. 52215pic_mode=$pic_mode 52216 52217# Whether or not to optimize for fast installation. 52218fast_install=$enable_fast_install 52219 52220# Shared archive member basename,for filename based shared library versioning on AIX. 52221shared_archive_member_spec=$shared_archive_member_spec 52222 52223# Shell to use when invoking shell scripts. 52224SHELL=$lt_SHELL 52225 52226# An echo program that protects backslashes. 52227ECHO=$lt_ECHO 52228 52229# The PATH separator for the build system. 52230PATH_SEPARATOR=$lt_PATH_SEPARATOR 52231 52232# The host system. 52233host_alias=$host_alias 52234host=$host 52235host_os=$host_os 52236 52237# The build system. 52238build_alias=$build_alias 52239build=$build 52240build_os=$build_os 52241 52242# A sed program that does not truncate output. 52243SED=$lt_SED 52244 52245# Sed that helps us avoid accidentally triggering echo(1) options like -n. 52246Xsed="\$SED -e 1s/^X//" 52247 52248# A grep program that handles long lines. 52249GREP=$lt_GREP 52250 52251# An ERE matcher. 52252EGREP=$lt_EGREP 52253 52254# A literal string matcher. 52255FGREP=$lt_FGREP 52256 52257# A BSD- or MS-compatible name lister. 52258NM=$lt_NM 52259 52260# Whether we need soft or hard links. 52261LN_S=$lt_LN_S 52262 52263# What is the maximum length of a command? 52264max_cmd_len=$max_cmd_len 52265 52266# Object file suffix (normally "o"). 52267objext=$ac_objext 52268 52269# Executable file suffix (normally ""). 52270exeext=$exeext 52271 52272# whether the shell understands "unset". 52273lt_unset=$lt_unset 52274 52275# turn spaces into newlines. 52276SP2NL=$lt_lt_SP2NL 52277 52278# turn newlines into spaces. 52279NL2SP=$lt_lt_NL2SP 52280 52281# convert \$build file names to \$host format. 52282to_host_file_cmd=$lt_cv_to_host_file_cmd 52283 52284# convert \$build files to toolchain format. 52285to_tool_file_cmd=$lt_cv_to_tool_file_cmd 52286 52287# Method to check whether dependent libraries are shared objects. 52288deplibs_check_method=$lt_deplibs_check_method 52289 52290# Command to use when deplibs_check_method = "file_magic". 52291file_magic_cmd=$lt_file_magic_cmd 52292 52293# How to find potential files when deplibs_check_method = "file_magic". 52294file_magic_glob=$lt_file_magic_glob 52295 52296# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 52297want_nocaseglob=$lt_want_nocaseglob 52298 52299# Command to associate shared and link libraries. 52300sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 52301 52302# The archiver. 52303AR=$lt_AR 52304 52305# Flags to create an archive. 52306AR_FLAGS=$lt_AR_FLAGS 52307 52308# How to feed a file listing to the archiver. 52309archiver_list_spec=$lt_archiver_list_spec 52310 52311# A symbol stripping program. 52312STRIP=$lt_STRIP 52313 52314# Commands used to install an old-style archive. 52315RANLIB=$lt_RANLIB 52316old_postinstall_cmds=$lt_old_postinstall_cmds 52317old_postuninstall_cmds=$lt_old_postuninstall_cmds 52318 52319# Whether to use a lock for old archive extraction. 52320lock_old_archive_extraction=$lock_old_archive_extraction 52321 52322# A C compiler. 52323LTCC=$lt_CC 52324 52325# LTCC compiler flags. 52326LTCFLAGS=$lt_CFLAGS 52327 52328# Take the output of nm and produce a listing of raw symbols and C names. 52329global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 52330 52331# Transform the output of nm in a proper C declaration. 52332global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 52333 52334# Transform the output of nm into a list of symbols to manually relocate. 52335global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 52336 52337# Transform the output of nm in a C name address pair. 52338global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 52339 52340# Transform the output of nm in a C name address pair when lib prefix is needed. 52341global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 52342 52343# The name lister interface. 52344nm_interface=$lt_lt_cv_nm_interface 52345 52346# Specify filename containing input files for \$NM. 52347nm_file_list_spec=$lt_nm_file_list_spec 52348 52349# The root where to search for dependent libraries,and where our libraries should be installed. 52350lt_sysroot=$lt_sysroot 52351 52352# Command to truncate a binary pipe. 52353lt_truncate_bin=$lt_lt_cv_truncate_bin 52354 52355# The name of the directory that contains temporary libtool files. 52356objdir=$objdir 52357 52358# Used to examine libraries when file_magic_cmd begins with "file". 52359MAGIC_CMD=$MAGIC_CMD 52360 52361# Must we lock files when doing compilation? 52362need_locks=$lt_need_locks 52363 52364# Manifest tool. 52365MANIFEST_TOOL=$lt_MANIFEST_TOOL 52366 52367# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 52368DSYMUTIL=$lt_DSYMUTIL 52369 52370# Tool to change global to local symbols on Mac OS X. 52371NMEDIT=$lt_NMEDIT 52372 52373# Tool to manipulate fat objects and archives on Mac OS X. 52374LIPO=$lt_LIPO 52375 52376# ldd/readelf like tool for Mach-O binaries on Mac OS X. 52377OTOOL=$lt_OTOOL 52378 52379# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 52380OTOOL64=$lt_OTOOL64 52381 52382# Old archive suffix (normally "a"). 52383libext=$libext 52384 52385# Shared library suffix (normally ".so"). 52386shrext_cmds=$lt_shrext_cmds 52387 52388# The commands to extract the exported symbol list from a shared archive. 52389extract_expsyms_cmds=$lt_extract_expsyms_cmds 52390 52391# Variables whose values should be saved in libtool wrapper scripts and 52392# restored at link time. 52393variables_saved_for_relink=$lt_variables_saved_for_relink 52394 52395# Do we need the "lib" prefix for modules? 52396need_lib_prefix=$need_lib_prefix 52397 52398# Do we need a version for libraries? 52399need_version=$need_version 52400 52401# Library versioning type. 52402version_type=$version_type 52403 52404# Shared library runtime path variable. 52405runpath_var=$runpath_var 52406 52407# Shared library path variable. 52408shlibpath_var=$shlibpath_var 52409 52410# Is shlibpath searched before the hard-coded library search path? 52411shlibpath_overrides_runpath=$shlibpath_overrides_runpath 52412 52413# Format of library name prefix. 52414libname_spec=$lt_libname_spec 52415 52416# List of archive names. First name is the real one, the rest are links. 52417# The last name is the one that the linker finds with -lNAME 52418library_names_spec=$lt_library_names_spec 52419 52420# The coded name of the library, if different from the real name. 52421soname_spec=$lt_soname_spec 52422 52423# Permission mode override for installation of shared libraries. 52424install_override_mode=$lt_install_override_mode 52425 52426# Command to use after installation of a shared archive. 52427postinstall_cmds=$lt_postinstall_cmds 52428 52429# Command to use after uninstallation of a shared archive. 52430postuninstall_cmds=$lt_postuninstall_cmds 52431 52432# Commands used to finish a libtool library installation in a directory. 52433finish_cmds=$lt_finish_cmds 52434 52435# As "finish_cmds", except a single script fragment to be evaled but 52436# not shown. 52437finish_eval=$lt_finish_eval 52438 52439# Whether we should hardcode library paths into libraries. 52440hardcode_into_libs=$hardcode_into_libs 52441 52442# Compile-time system search path for libraries. 52443sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 52444 52445# Detected run-time system search path for libraries. 52446sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 52447 52448# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 52449configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 52450 52451# Whether dlopen is supported. 52452dlopen_support=$enable_dlopen 52453 52454# Whether dlopen of programs is supported. 52455dlopen_self=$enable_dlopen_self 52456 52457# Whether dlopen of statically linked programs is supported. 52458dlopen_self_static=$enable_dlopen_self_static 52459 52460# Commands to strip libraries. 52461old_striplib=$lt_old_striplib 52462striplib=$lt_striplib 52463 52464 52465# The linker used to build libraries. 52466LD=$lt_LD 52467 52468# How to create reloadable object files. 52469reload_flag=$lt_reload_flag 52470reload_cmds=$lt_reload_cmds 52471 52472# Commands used to build an old-style archive. 52473old_archive_cmds=$lt_old_archive_cmds 52474 52475# A language specific compiler. 52476CC=$lt_compiler 52477 52478# Is the compiler the GNU compiler? 52479with_gcc=$GCC 52480 52481# Compiler flag to turn off builtin functions. 52482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 52483 52484# Additional compiler flags for building library objects. 52485pic_flag=$lt_lt_prog_compiler_pic 52486 52487# How to pass a linker flag through the compiler. 52488wl=$lt_lt_prog_compiler_wl 52489 52490# Compiler flag to prevent dynamic linking. 52491link_static_flag=$lt_lt_prog_compiler_static 52492 52493# Does compiler simultaneously support -c and -o options? 52494compiler_c_o=$lt_lt_cv_prog_compiler_c_o 52495 52496# Whether or not to add -lc for building shared libraries. 52497build_libtool_need_lc=$archive_cmds_need_lc 52498 52499# Whether or not to disallow shared libs when runtime libs are static. 52500allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 52501 52502# Compiler flag to allow reflexive dlopens. 52503export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 52504 52505# Compiler flag to generate shared objects directly from archives. 52506whole_archive_flag_spec=$lt_whole_archive_flag_spec 52507 52508# Whether the compiler copes with passing no objects directly. 52509compiler_needs_object=$lt_compiler_needs_object 52510 52511# Create an old-style archive from a shared archive. 52512old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 52513 52514# Create a temporary old-style archive to link instead of a shared archive. 52515old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 52516 52517# Commands used to build a shared archive. 52518archive_cmds=$lt_archive_cmds 52519archive_expsym_cmds=$lt_archive_expsym_cmds 52520 52521# Commands used to build a loadable module if different from building 52522# a shared archive. 52523module_cmds=$lt_module_cmds 52524module_expsym_cmds=$lt_module_expsym_cmds 52525 52526# Whether we are building with GNU ld or not. 52527with_gnu_ld=$lt_with_gnu_ld 52528 52529# Flag that allows shared libraries with undefined symbols to be built. 52530allow_undefined_flag=$lt_allow_undefined_flag 52531 52532# Flag that enforces no undefined symbols. 52533no_undefined_flag=$lt_no_undefined_flag 52534 52535# Flag to hardcode \$libdir into a binary during linking. 52536# This must work even if \$libdir does not exist 52537hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 52538 52539# Whether we need a single "-rpath" flag with a separated argument. 52540hardcode_libdir_separator=$lt_hardcode_libdir_separator 52541 52542# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 52543# DIR into the resulting binary. 52544hardcode_direct=$hardcode_direct 52545 52546# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 52547# DIR into the resulting binary and the resulting library dependency is 52548# "absolute",i.e impossible to change by setting \$shlibpath_var if the 52549# library is relocated. 52550hardcode_direct_absolute=$hardcode_direct_absolute 52551 52552# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 52553# into the resulting binary. 52554hardcode_minus_L=$hardcode_minus_L 52555 52556# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 52557# into the resulting binary. 52558hardcode_shlibpath_var=$hardcode_shlibpath_var 52559 52560# Set to "yes" if building a shared library automatically hardcodes DIR 52561# into the library and all subsequent libraries and executables linked 52562# against it. 52563hardcode_automatic=$hardcode_automatic 52564 52565# Set to yes if linker adds runtime paths of dependent libraries 52566# to runtime path list. 52567inherit_rpath=$inherit_rpath 52568 52569# Whether libtool must link a program against all its dependency libraries. 52570link_all_deplibs=$link_all_deplibs 52571 52572# Set to "yes" if exported symbols are required. 52573always_export_symbols=$always_export_symbols 52574 52575# The commands to list exported symbols. 52576export_symbols_cmds=$lt_export_symbols_cmds 52577 52578# Symbols that should not be listed in the preloaded symbols. 52579exclude_expsyms=$lt_exclude_expsyms 52580 52581# Symbols that must always be exported. 52582include_expsyms=$lt_include_expsyms 52583 52584# Commands necessary for linking programs (against libraries) with templates. 52585prelink_cmds=$lt_prelink_cmds 52586 52587# Commands necessary for finishing linking programs. 52588postlink_cmds=$lt_postlink_cmds 52589 52590# Specify filename containing input files. 52591file_list_spec=$lt_file_list_spec 52592 52593# How to hardcode a shared library path into an executable. 52594hardcode_action=$hardcode_action 52595 52596# ### END LIBTOOL CONFIG 52597 52598_LT_EOF 52599 52600 cat <<'_LT_EOF' >> "$cfgfile" 52601 52602# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 52603 52604# func_munge_path_list VARIABLE PATH 52605# ----------------------------------- 52606# VARIABLE is name of variable containing _space_ separated list of 52607# directories to be munged by the contents of PATH, which is string 52608# having a format: 52609# "DIR[:DIR]:" 52610# string "DIR[ DIR]" will be prepended to VARIABLE 52611# ":DIR[:DIR]" 52612# string "DIR[ DIR]" will be appended to VARIABLE 52613# "DIRP[:DIRP]::[DIRA:]DIRA" 52614# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 52615# "DIRA[ DIRA]" will be appended to VARIABLE 52616# "DIR[:DIR]" 52617# VARIABLE will be replaced by "DIR[ DIR]" 52618func_munge_path_list () 52619{ 52620 case x$2 in 52621 x) 52622 ;; 52623 *:) 52624 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 52625 ;; 52626 x:*) 52627 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 52628 ;; 52629 *::*) 52630 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 52631 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 52632 ;; 52633 *) 52634 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 52635 ;; 52636 esac 52637} 52638 52639 52640# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 52641func_cc_basename () 52642{ 52643 for cc_temp in $*""; do 52644 case $cc_temp in 52645 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 52646 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 52647 \-*) ;; 52648 *) break;; 52649 esac 52650 done 52651 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 52652} 52653 52654 52655# ### END FUNCTIONS SHARED WITH CONFIGURE 52656 52657_LT_EOF 52658 52659 case $host_os in 52660 aix3*) 52661 cat <<\_LT_EOF >> "$cfgfile" 52662# AIX sometimes has problems with the GCC collect2 program. For some 52663# reason, if we set the COLLECT_NAMES environment variable, the problems 52664# vanish in a puff of smoke. 52665if test set != "${COLLECT_NAMES+set}"; then 52666 COLLECT_NAMES= 52667 export COLLECT_NAMES 52668fi 52669_LT_EOF 52670 ;; 52671 esac 52672 52673 52674 52675ltmain=$ac_aux_dir/ltmain.sh 52676 52677 52678 # We use sed instead of cat because bash on DJGPP gets confused if 52679 # if finds mixed CR/LF and LF-only lines. Since sed operates in 52680 # text mode, it properly converts lines to CR/LF. This bash problem 52681 # is reportedly fixed, but why not run on old versions too? 52682 sed '$q' "$ltmain" >> "$cfgfile" \ 52683 || (rm -f "$cfgfile"; exit 1) 52684 52685 mv -f "$cfgfile" "$ofile" || 52686 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 52687 chmod +x "$ofile" 52688 52689 ;; 52690 "po-directories":C) 52691 for ac_file in $CONFIG_FILES; do 52692 # Support "outfile[:infile[:infile...]]" 52693 case "$ac_file" in 52694 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 52695 esac 52696 # PO directories have a Makefile.in generated from Makefile.in.in. 52697 case "$ac_file" in */Makefile.in) 52698 # Adjust a relative srcdir. 52699 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 52700 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 52701 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 52702 # In autoconf-2.13 it is called $ac_given_srcdir. 52703 # In autoconf-2.50 it is called $srcdir. 52704 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 52705 case "$ac_given_srcdir" in 52706 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 52707 /*) top_srcdir="$ac_given_srcdir" ;; 52708 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 52709 esac 52710 # Treat a directory as a PO directory if and only if it has a 52711 # POTFILES.in file. This allows packages to have multiple PO 52712 # directories under different names or in different locations. 52713 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 52714 rm -f "$ac_dir/POTFILES" 52715 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 52716 gt_tab=`printf '\t'` 52717 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 52718 POMAKEFILEDEPS="POTFILES.in" 52719 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 52720 # on $ac_dir but don't depend on user-specified configuration 52721 # parameters. 52722 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 52723 # The LINGUAS file contains the set of available languages. 52724 if test -n "$OBSOLETE_ALL_LINGUAS"; then 52725 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 52726 fi 52727 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 52728 # Hide the ALL_LINGUAS assignment from automake < 1.5. 52729 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 52730 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 52731 else 52732 # The set of available languages was given in configure.in. 52733 # Hide the ALL_LINGUAS assignment from automake < 1.5. 52734 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 52735 fi 52736 # Compute POFILES 52737 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 52738 # Compute UPDATEPOFILES 52739 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 52740 # Compute DUMMYPOFILES 52741 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 52742 # Compute GMOFILES 52743 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 52744 case "$ac_given_srcdir" in 52745 .) srcdirpre= ;; 52746 *) srcdirpre='$(srcdir)/' ;; 52747 esac 52748 POFILES= 52749 UPDATEPOFILES= 52750 DUMMYPOFILES= 52751 GMOFILES= 52752 for lang in $ALL_LINGUAS; do 52753 POFILES="$POFILES $srcdirpre$lang.po" 52754 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 52755 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 52756 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 52757 done 52758 # CATALOGS depends on both $ac_dir and the user's LINGUAS 52759 # environment variable. 52760 INST_LINGUAS= 52761 if test -n "$ALL_LINGUAS"; then 52762 for presentlang in $ALL_LINGUAS; do 52763 useit=no 52764 if test "%UNSET%" != "$LINGUAS"; then 52765 desiredlanguages="$LINGUAS" 52766 else 52767 desiredlanguages="$ALL_LINGUAS" 52768 fi 52769 for desiredlang in $desiredlanguages; do 52770 # Use the presentlang catalog if desiredlang is 52771 # a. equal to presentlang, or 52772 # b. a variant of presentlang (because in this case, 52773 # presentlang can be used as a fallback for messages 52774 # which are not translated in the desiredlang catalog). 52775 case "$desiredlang" in 52776 "$presentlang"*) useit=yes;; 52777 esac 52778 done 52779 if test $useit = yes; then 52780 INST_LINGUAS="$INST_LINGUAS $presentlang" 52781 fi 52782 done 52783 fi 52784 CATALOGS= 52785 if test -n "$INST_LINGUAS"; then 52786 for lang in $INST_LINGUAS; do 52787 CATALOGS="$CATALOGS $lang.gmo" 52788 done 52789 fi 52790 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 52791 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 52792 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 52793 if test -f "$f"; then 52794 case "$f" in 52795 *.orig | *.bak | *~) ;; 52796 *) cat "$f" >> "$ac_dir/Makefile" ;; 52797 esac 52798 fi 52799 done 52800 fi 52801 ;; 52802 esac 52803 done ;; 52804 52805 esac 52806done # for ac_tag 52807 52808 52809as_fn_exit 0 52810_ACEOF 52811ac_clean_files=$ac_clean_files_save 52812 52813test $ac_write_fail = 0 || 52814 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 52815 52816 52817# configure is writing to config.log, and then calls config.status. 52818# config.status does its own redirection, appending to config.log. 52819# Unfortunately, on DOS this fails, as config.log is still kept open 52820# by configure, so config.status won't be able to write to it; its 52821# output is simply discarded. So we exec the FD to /dev/null, 52822# effectively closing config.log, so it can be properly (re)opened and 52823# appended to by config.status. When coming back to configure, we 52824# need to make the FD available again. 52825if test "$no_create" != yes; then 52826 ac_cs_success=: 52827 ac_config_status_args= 52828 test "$silent" = yes && 52829 ac_config_status_args="$ac_config_status_args --quiet" 52830 exec 5>/dev/null 52831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 52832 exec 5>>config.log 52833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 52834 # would make configure fail if this is the last instruction. 52835 $ac_cs_success || as_fn_exit 1 52836fi 52837 52838# 52839# CONFIG_SUBDIRS section. 52840# 52841if test "$no_recursion" != yes; then 52842 52843 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 52844 # so they do not pile up. 52845 ac_sub_configure_args= 52846 ac_prev= 52847 eval "set x $ac_configure_args" 52848 shift 52849 for ac_arg 52850 do 52851 if test -n "$ac_prev"; then 52852 ac_prev= 52853 continue 52854 fi 52855 case $ac_arg in 52856 -cache-file | --cache-file | --cache-fil | --cache-fi \ 52857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 52858 ac_prev=cache_file ;; 52859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 52860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 52861 | --c=*) 52862 ;; 52863 --config-cache | -C) 52864 ;; 52865 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 52866 ac_prev=srcdir ;; 52867 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 52868 ;; 52869 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 52870 ac_prev=prefix ;; 52871 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 52872 ;; 52873 --disable-option-checking) 52874 ;; 52875 *) 52876 case $ac_arg in 52877 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 52878 esac 52879 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 52880 esac 52881 done 52882 52883 # Always prepend --prefix to ensure using the same prefix 52884 # in subdir configurations. 52885 ac_arg="--prefix=$prefix" 52886 case $ac_arg in 52887 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 52888 esac 52889 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 52890 52891 # Pass --silent 52892 if test "$silent" = yes; then 52893 ac_sub_configure_args="--silent $ac_sub_configure_args" 52894 fi 52895 52896 # Always prepend --disable-option-checking to silence warnings, since 52897 # different subdirs can have different --enable and --with options. 52898 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 52899 52900 ac_popdir=`pwd` 52901 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 52902 52903 # Do not complain, so a configure script can configure whichever 52904 # parts of a large source tree are present. 52905 test -d "$srcdir/$ac_dir" || continue 52906 52907 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 52908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 52909 printf "%s\n" "$ac_msg" >&6 52910 as_dir="$ac_dir"; as_fn_mkdir_p 52911 ac_builddir=. 52912 52913case "$ac_dir" in 52914.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52915*) 52916 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 52917 # A ".." for each directory in $ac_dir_suffix. 52918 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52919 case $ac_top_builddir_sub in 52920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52922 esac ;; 52923esac 52924ac_abs_top_builddir=$ac_pwd 52925ac_abs_builddir=$ac_pwd$ac_dir_suffix 52926# for backward compatibility: 52927ac_top_builddir=$ac_top_build_prefix 52928 52929case $srcdir in 52930 .) # We are building in place. 52931 ac_srcdir=. 52932 ac_top_srcdir=$ac_top_builddir_sub 52933 ac_abs_top_srcdir=$ac_pwd ;; 52934 [\\/]* | ?:[\\/]* ) # Absolute name. 52935 ac_srcdir=$srcdir$ac_dir_suffix; 52936 ac_top_srcdir=$srcdir 52937 ac_abs_top_srcdir=$srcdir ;; 52938 *) # Relative name. 52939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52940 ac_top_srcdir=$ac_top_build_prefix$srcdir 52941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52942esac 52943ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52944 52945 52946 cd "$ac_dir" 52947 52948 # Check for configure.gnu first; this name is used for a wrapper for 52949 # Metaconfig's "Configure" on case-insensitive file systems. 52950 if test -f "$ac_srcdir/configure.gnu"; then 52951 ac_sub_configure=$ac_srcdir/configure.gnu 52952 elif test -f "$ac_srcdir/configure"; then 52953 ac_sub_configure=$ac_srcdir/configure 52954 else 52955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 52956printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 52957 ac_sub_configure= 52958 fi 52959 52960 # The recursion is here. 52961 if test -n "$ac_sub_configure"; then 52962 # Make the cache file name correct relative to the subdirectory. 52963 case $cache_file in 52964 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 52965 *) # Relative name. 52966 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 52967 esac 52968 52969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 52970printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 52971 # The eval makes quoting arguments work. 52972 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 52973 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 52974 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 52975 fi 52976 52977 cd "$ac_popdir" 52978 done 52979fi 52980if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 52981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 52982printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 52983fi 52984 52985 52986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: summary of main build options: 52987 52988 version: ${VERSION} 52989 Host/Target system: ${host} 52990 Build system: ${build} 52991 Install prefix: ${prefix} 52992 Compiler: cc: ${CC} cflags: ${CFLAGS} cppflags: ${CPPFLAGS} 52993 Valgrind: $opt_valgrind_tests ${VALGRIND} 52994 Library types: Shared=${enable_shared}, Static=${enable_static} 52995 Warning flags: $gl_gcc_warnings werror $WERROR_CFLAGS wstack $WSTACK_CFLAGS warn $WARN_CFLAGS 52996 52997 Obsolete functions: $obsolete 52998 52999 GnuTLS support: $gnutls 53000 CPPFLAGS: $INCLIBGNUTLS 53001 LDADD: $LTLIBGNUTLS 53002 53003 Lasso support: $lasso 53004 CPPFLAGS: $LASSO_CFLAGS 53005 LDADD: $LASSO_LIBS 53006" >&5 53007printf "%s\n" "$as_me: summary of main build options: 53008 53009 version: ${VERSION} 53010 Host/Target system: ${host} 53011 Build system: ${build} 53012 Install prefix: ${prefix} 53013 Compiler: cc: ${CC} cflags: ${CFLAGS} cppflags: ${CPPFLAGS} 53014 Valgrind: $opt_valgrind_tests ${VALGRIND} 53015 Library types: Shared=${enable_shared}, Static=${enable_static} 53016 Warning flags: $gl_gcc_warnings werror $WERROR_CFLAGS wstack $WSTACK_CFLAGS warn $WARN_CFLAGS 53017 53018 Obsolete functions: $obsolete 53019 53020 GnuTLS support: $gnutls 53021 CPPFLAGS: $INCLIBGNUTLS 53022 LDADD: $LTLIBGNUTLS 53023 53024 Lasso support: $lasso 53025 CPPFLAGS: $LASSO_CFLAGS 53026 LDADD: $LASSO_LIBS 53027" >&6;} 53028 53029