1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GNU Libidn 1.35. 4# 5# Report bugs to <bug-libidn@gnu.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-libidn@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# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='GNU Libidn' 592PACKAGE_TARNAME='libidn' 593PACKAGE_VERSION='1.35' 594PACKAGE_STRING='GNU Libidn 1.35' 595PACKAGE_BUGREPORT='bug-libidn@gnu.org' 596PACKAGE_URL='http://www.gnu.org/software/libidn/' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634gl_use_threads_default= 635gt_needs= 636ac_func_list= 637gl_getopt_required=POSIX 638ac_header_list= 639ac_subst_vars='lgltests_LTLIBOBJS 640lgltests_LIBOBJS 641lgl_LTLIBOBJS 642lgl_LIBOBJS 643gltests_LTLIBOBJS 644gltests_LIBOBJS 645gl_LTLIBOBJS 646gl_LIBOBJS 647CONFIG_INCLUDE 648am__EXEEXT_FALSE 649am__EXEEXT_TRUE 650LTLIBOBJS 651LIBOBJS 652ENABLE_DOC_FALSE 653ENABLE_DOC_TRUE 654WARN_CFLAGS 655WSTACK_CFLAGS 656CSHARP_FALSE 657CSHARP_TRUE 658HAVE_CLIX 659HAVE_MONO 660HAVE_ILRUN 661CLIX_PATH 662CLIX_PATH_VAR 663MONO_PATH_SEPARATOR 664MONO_PATH 665HAVE_CLIX_IN_PATH 666HAVE_MONO_IN_PATH 667HAVE_ILRUN_IN_PATH 668JAVA_FALSE 669JAVA_TRUE 670JAR 671JAVADOC 672JAVAC 673JAVA 674JAVAFLAGS 675JAVACFLAGS 676JAVAPREFIX 677GTK_DOC_USE_REBASE_FALSE 678GTK_DOC_USE_REBASE_TRUE 679GTK_DOC_USE_LIBTOOL_FALSE 680GTK_DOC_USE_LIBTOOL_TRUE 681GTK_DOC_BUILD_PDF_FALSE 682GTK_DOC_BUILD_PDF_TRUE 683GTK_DOC_BUILD_HTML_FALSE 684GTK_DOC_BUILD_HTML_TRUE 685ENABLE_GTK_DOC_FALSE 686ENABLE_GTK_DOC_TRUE 687HAVE_GTK_DOC_FALSE 688HAVE_GTK_DOC_TRUE 689GTKDOC_DEPS_LIBS 690GTKDOC_DEPS_CFLAGS 691HTML_DIR 692GTKDOC_MKPDF 693GTKDOC_REBASE 694GTKDOC_CHECK_PATH 695GTKDOC_CHECK 696PKG_CONFIG 697TLD_FALSE 698TLD_TRUE 699LOCALE_ZH_CN 700LOCALE_JA 701LOCALE_FR_UTF8 702NEXT_AS_FIRST_DIRECTIVE_LOCALE_H 703NEXT_LOCALE_H 704HAVE_XLOCALE_H 705REPLACE_STRUCT_LCONV 706REPLACE_DUPLOCALE 707REPLACE_SETLOCALE 708REPLACE_LOCALECONV 709HAVE_DUPLOCALE 710GNULIB_DUPLOCALE 711GNULIB_SETLOCALE 712GNULIB_LOCALECONV 713HAVE_LANGINFO_YESEXPR 714HAVE_LANGINFO_ERA 715HAVE_LANGINFO_ALTMON 716HAVE_LANGINFO_T_FMT_AMPM 717HAVE_LANGINFO_CODESET 718HAVE_LANGINFO_H 719NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H 720NEXT_LANGINFO_H 721REPLACE_NL_LANGINFO 722HAVE_NL_LANGINFO 723GNULIB_NL_LANGINFO 724LOCALE_TR_UTF8 725LOCALE_FR 726lgltests_WITNESS 727LIBUNISTRING_UNITYPES_H 728LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE 729LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE 730LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE 731LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE 732LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE 733LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE 734LIBUNISTRING_UNISTR_H 735HAVE_VISIBILITY 736CFLAG_VISIBILITY 737HAVE_LD_VERSION_SCRIPT_FALSE 738HAVE_LD_VERSION_SCRIPT_TRUE 739HAVE_LD_OUTPUT_DEF_FALSE 740HAVE_LD_OUTPUT_DEF_TRUE 741NEXT_AS_FIRST_DIRECTIVE_ICONV_H 742NEXT_ICONV_H 743LIBTESTS_LIBDEPS 744YIELD_LIB 745HAVE_CRTDEFS_H 746HAVE_WINT_T 747NEXT_AS_FIRST_DIRECTIVE_WCHAR_H 748NEXT_WCHAR_H 749REPLACE_WCSFTIME 750REPLACE_WCSWIDTH 751REPLACE_WCWIDTH 752REPLACE_WCSNRTOMBS 753REPLACE_WCSRTOMBS 754REPLACE_WCRTOMB 755REPLACE_MBSNRTOWCS 756REPLACE_MBSRTOWCS 757REPLACE_MBRLEN 758REPLACE_MBRTOWC 759REPLACE_MBSINIT 760REPLACE_WCTOB 761REPLACE_BTOWC 762REPLACE_MBSTATE_T 763HAVE_DECL_WCWIDTH 764HAVE_DECL_WCTOB 765HAVE_WCSFTIME 766HAVE_WCSWIDTH 767HAVE_WCSTOK 768HAVE_WCSSTR 769HAVE_WCSPBRK 770HAVE_WCSSPN 771HAVE_WCSCSPN 772HAVE_WCSRCHR 773HAVE_WCSCHR 774HAVE_WCSDUP 775HAVE_WCSXFRM 776HAVE_WCSCOLL 777HAVE_WCSNCASECMP 778HAVE_WCSCASECMP 779HAVE_WCSNCMP 780HAVE_WCSCMP 781HAVE_WCSNCAT 782HAVE_WCSCAT 783HAVE_WCPNCPY 784HAVE_WCSNCPY 785HAVE_WCPCPY 786HAVE_WCSCPY 787HAVE_WCSNLEN 788HAVE_WCSLEN 789HAVE_WMEMSET 790HAVE_WMEMMOVE 791HAVE_WMEMCPY 792HAVE_WMEMCMP 793HAVE_WMEMCHR 794HAVE_WCSNRTOMBS 795HAVE_WCSRTOMBS 796HAVE_WCRTOMB 797HAVE_MBSNRTOWCS 798HAVE_MBSRTOWCS 799HAVE_MBRLEN 800HAVE_MBRTOWC 801HAVE_MBSINIT 802HAVE_BTOWC 803GNULIB_WCSFTIME 804GNULIB_WCSWIDTH 805GNULIB_WCSTOK 806GNULIB_WCSSTR 807GNULIB_WCSPBRK 808GNULIB_WCSSPN 809GNULIB_WCSCSPN 810GNULIB_WCSRCHR 811GNULIB_WCSCHR 812GNULIB_WCSDUP 813GNULIB_WCSXFRM 814GNULIB_WCSCOLL 815GNULIB_WCSNCASECMP 816GNULIB_WCSCASECMP 817GNULIB_WCSNCMP 818GNULIB_WCSCMP 819GNULIB_WCSNCAT 820GNULIB_WCSCAT 821GNULIB_WCPNCPY 822GNULIB_WCSNCPY 823GNULIB_WCPCPY 824GNULIB_WCSCPY 825GNULIB_WCSNLEN 826GNULIB_WCSLEN 827GNULIB_WMEMSET 828GNULIB_WMEMMOVE 829GNULIB_WMEMCPY 830GNULIB_WMEMCMP 831GNULIB_WMEMCHR 832GNULIB_WCWIDTH 833GNULIB_WCSNRTOMBS 834GNULIB_WCSRTOMBS 835GNULIB_WCRTOMB 836GNULIB_MBSNRTOWCS 837GNULIB_MBSRTOWCS 838GNULIB_MBRLEN 839GNULIB_MBRTOWC 840GNULIB_MBSINIT 841GNULIB_WCTOB 842GNULIB_BTOWC 843abs_aux_dir 844UNISTD_H_DEFINES_STRUCT_TIMESPEC 845PTHREAD_H_DEFINES_STRUCT_TIMESPEC 846SYS_TIME_H_DEFINES_STRUCT_TIMESPEC 847TIME_H_DEFINES_STRUCT_TIMESPEC 848NEXT_AS_FIRST_DIRECTIVE_TIME_H 849NEXT_TIME_H 850HAVE_SYS_UIO_H 851NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H 852NEXT_SYS_UIO_H 853NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H 854NEXT_SYS_IOCTL_H 855HAVE_SYS_IOCTL_H 856GL_GENERATE_STDALIGN_H_FALSE 857GL_GENERATE_STDALIGN_H_TRUE 858STDALIGN_H 859NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H 860NEXT_SIGNAL_H 861LIB_PTHREAD_SIGMASK 862REPLACE_RAISE 863REPLACE_PTHREAD_SIGMASK 864HAVE_SIGHANDLER_T 865HAVE_TYPE_VOLATILE_SIG_ATOMIC_T 866HAVE_STRUCT_SIGACTION_SA_SIGACTION 867HAVE_SIGACTION 868HAVE_SIGINFO_T 869HAVE_SIGSET_T 870HAVE_RAISE 871HAVE_PTHREAD_SIGMASK 872HAVE_POSIX_SIGNALBLOCKING 873GNULIB_SIGACTION 874GNULIB_SIGPROCMASK 875GNULIB_SIGNAL_H_SIGPIPE 876GNULIB_RAISE 877GNULIB_PTHREAD_SIGMASK 878GL_GENERATE_NETINET_IN_H_FALSE 879GL_GENERATE_NETINET_IN_H_TRUE 880NETINET_IN_H 881HAVE_NETINET_IN_H 882NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H 883NEXT_NETINET_IN_H 884LIB_NANOSLEEP 885LIB_SELECT 886LIBSOCKET 887HAVE_SYS_SELECT_H 888NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H 889NEXT_SYS_SELECT_H 890REPLACE_SELECT 891REPLACE_PSELECT 892HAVE_PSELECT 893GNULIB_SELECT 894GNULIB_PSELECT 895LTLIBMULTITHREAD 896LIBMULTITHREAD 897LTLIBTHREAD 898LIBTHREAD 899LIBPTH_PREFIX 900LTLIBPTH 901LIBPTH 902NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H 903NEXT_INTTYPES_H 904UINT64_MAX_EQ_ULONG_MAX 905UINT32_MAX_LT_UINTMAX_MAX 906PRIPTR_PREFIX 907PRI_MACROS_BROKEN 908INT64_MAX_EQ_LONG_MAX 909INT32_MAX_LT_INTMAX_MAX 910REPLACE_STRTOUMAX 911REPLACE_STRTOIMAX 912HAVE_DECL_STRTOUMAX 913HAVE_DECL_STRTOIMAX 914HAVE_DECL_IMAXDIV 915HAVE_DECL_IMAXABS 916GNULIB_STRTOUMAX 917GNULIB_STRTOIMAX 918GNULIB_IMAXDIV 919GNULIB_IMAXABS 920INET_PTON_LIB 921HOST_CPU_C_ABI 922HOST_CPU 923REPLACE_LOCALTIME 924REPLACE_GMTIME 925REPLACE_TZSET 926REPLACE_TIMEGM 927REPLACE_STRFTIME 928REPLACE_NANOSLEEP 929REPLACE_MKTIME 930REPLACE_LOCALTIME_R 931REPLACE_CTIME 932HAVE_TIMEZONE_T 933HAVE_TZSET 934HAVE_TIMEGM 935HAVE_STRPTIME 936HAVE_NANOSLEEP 937HAVE_DECL_LOCALTIME_R 938GNULIB_TZSET 939GNULIB_TIME_RZ 940GNULIB_TIME_R 941GNULIB_TIMEGM 942GNULIB_STRPTIME 943GNULIB_STRFTIME 944GNULIB_NANOSLEEP 945GNULIB_LOCALTIME 946GNULIB_MKTIME 947GNULIB_CTIME 948NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H 949NEXT_SYS_TIME_H 950REPLACE_STRUCT_TIMEVAL 951REPLACE_GETTIMEOFDAY 952HAVE_SYS_TIME_H 953HAVE_STRUCT_TIMEVAL 954HAVE_GETTIMEOFDAY 955GNULIB_GETTIMEOFDAY 956WINDOWS_64_BIT_ST_SIZE 957WINDOWS_STAT_TIMESPEC 958NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H 959NEXT_SYS_STAT_H 960REPLACE_UTIMENSAT 961REPLACE_STAT 962REPLACE_MKNOD 963REPLACE_MKFIFO 964REPLACE_MKDIR 965REPLACE_LSTAT 966REPLACE_FUTIMENS 967REPLACE_FSTATAT 968REPLACE_FSTAT 969HAVE_UTIMENSAT 970HAVE_MKNODAT 971HAVE_MKNOD 972HAVE_MKFIFOAT 973HAVE_MKFIFO 974HAVE_MKDIRAT 975HAVE_LSTAT 976HAVE_LCHMOD 977HAVE_FUTIMENS 978HAVE_FSTATAT 979HAVE_FCHMODAT 980GNULIB_OVERRIDES_STRUCT_STAT 981GNULIB_UTIMENSAT 982GNULIB_STAT 983GNULIB_MKNODAT 984GNULIB_MKNOD 985GNULIB_MKFIFOAT 986GNULIB_MKFIFO 987GNULIB_MKDIRAT 988GNULIB_LSTAT 989GNULIB_LCHMOD 990GNULIB_FUTIMENS 991GNULIB_FSTATAT 992GNULIB_FSTAT 993GNULIB_FCHMODAT 994NEXT_AS_FIRST_DIRECTIVE_FCNTL_H 995NEXT_FCNTL_H 996REPLACE_OPENAT 997REPLACE_OPEN 998REPLACE_FCNTL 999HAVE_OPENAT 1000HAVE_FCNTL 1001GNULIB_OPENAT 1002GNULIB_OPEN 1003GNULIB_NONBLOCKING 1004GNULIB_FCNTL 1005NEXT_AS_FIRST_DIRECTIVE_CTYPE_H 1006NEXT_CTYPE_H 1007HAVE_ISBLANK 1008GNULIB_ISBLANK 1009HAVE_FEATURES_H 1010NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H 1011NEXT_ARPA_INET_H 1012HAVE_ARPA_INET_H 1013REPLACE_INET_PTON 1014REPLACE_INET_NTOP 1015HAVE_DECL_INET_PTON 1016HAVE_DECL_INET_NTOP 1017GNULIB_INET_PTON 1018GNULIB_INET_NTOP 1019GL_GENERATE_ALLOCA_H_FALSE 1020GL_GENERATE_ALLOCA_H_TRUE 1021ALLOCA_H 1022ALLOCA 1023HAVE_WS2TCPIP_H 1024HAVE_SYS_SOCKET_H 1025NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H 1026NEXT_SYS_SOCKET_H 1027HAVE_ACCEPT4 1028HAVE_SA_FAMILY_T 1029HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1030HAVE_STRUCT_SOCKADDR_STORAGE 1031GNULIB_ACCEPT4 1032GNULIB_SHUTDOWN 1033GNULIB_SETSOCKOPT 1034GNULIB_SENDTO 1035GNULIB_RECVFROM 1036GNULIB_SEND 1037GNULIB_RECV 1038GNULIB_LISTEN 1039GNULIB_GETSOCKOPT 1040GNULIB_GETSOCKNAME 1041GNULIB_GETPEERNAME 1042GNULIB_BIND 1043GNULIB_ACCEPT 1044GNULIB_CONNECT 1045GNULIB_SOCKET 1046gltests_WITNESS 1047VALGRIND 1048HAVE_UNISTD_H 1049NEXT_AS_FIRST_DIRECTIVE_UNISTD_H 1050NEXT_UNISTD_H 1051WINDOWS_STAT_INODES 1052WINDOWS_64_BIT_OFF_T 1053NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H 1054NEXT_SYS_TYPES_H 1055NEXT_AS_FIRST_DIRECTIVE_STRING_H 1056NEXT_STRING_H 1057HAVE_WINSOCK2_H 1058REPLACE_IOCTL 1059SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1060SYS_IOCTL_H_HAVE_WINSOCK2_H 1061GNULIB_IOCTL 1062UNDEFINE_STRTOK_R 1063REPLACE_STRSIGNAL 1064REPLACE_STRERROR_R 1065REPLACE_STRERROR 1066REPLACE_STRTOK_R 1067REPLACE_STRCASESTR 1068REPLACE_STRSTR 1069REPLACE_STRNLEN 1070REPLACE_STRNDUP 1071REPLACE_STRNCAT 1072REPLACE_STRDUP 1073REPLACE_STRCHRNUL 1074REPLACE_STPNCPY 1075REPLACE_MEMMEM 1076REPLACE_MEMCHR 1077HAVE_STRVERSCMP 1078HAVE_DECL_STRSIGNAL 1079HAVE_DECL_STRERROR_R 1080HAVE_DECL_STRTOK_R 1081HAVE_STRCASESTR 1082HAVE_STRSEP 1083HAVE_STRPBRK 1084HAVE_DECL_STRNLEN 1085HAVE_DECL_STRNDUP 1086HAVE_DECL_STRDUP 1087HAVE_STRCHRNUL 1088HAVE_STPNCPY 1089HAVE_STPCPY 1090HAVE_RAWMEMCHR 1091HAVE_DECL_MEMRCHR 1092HAVE_MEMPCPY 1093HAVE_DECL_MEMMEM 1094HAVE_MEMCHR 1095HAVE_FFSLL 1096HAVE_FFSL 1097HAVE_EXPLICIT_BZERO 1098HAVE_MBSLEN 1099GNULIB_STRVERSCMP 1100GNULIB_STRSIGNAL 1101GNULIB_STRERROR_R 1102GNULIB_STRERROR 1103GNULIB_MBSTOK_R 1104GNULIB_MBSSEP 1105GNULIB_MBSSPN 1106GNULIB_MBSPBRK 1107GNULIB_MBSCSPN 1108GNULIB_MBSCASESTR 1109GNULIB_MBSPCASECMP 1110GNULIB_MBSNCASECMP 1111GNULIB_MBSCASECMP 1112GNULIB_MBSSTR 1113GNULIB_MBSRCHR 1114GNULIB_MBSCHR 1115GNULIB_MBSNLEN 1116GNULIB_MBSLEN 1117GNULIB_STRTOK_R 1118GNULIB_STRCASESTR 1119GNULIB_STRSTR 1120GNULIB_STRSEP 1121GNULIB_STRPBRK 1122GNULIB_STRNLEN 1123GNULIB_STRNDUP 1124GNULIB_STRNCAT 1125GNULIB_STRDUP 1126GNULIB_STRCHRNUL 1127GNULIB_STPNCPY 1128GNULIB_STPCPY 1129GNULIB_RAWMEMCHR 1130GNULIB_MEMRCHR 1131GNULIB_MEMPCPY 1132GNULIB_MEMMEM 1133GNULIB_MEMCHR 1134GNULIB_FFSLL 1135GNULIB_FFSL 1136GNULIB_EXPLICIT_BZERO 1137NEXT_AS_FIRST_DIRECTIVE_STDLIB_H 1138NEXT_STDLIB_H 1139NEXT_AS_FIRST_DIRECTIVE_STDIO_H 1140NEXT_STDIO_H 1141GL_GENERATE_STDINT_H_FALSE 1142GL_GENERATE_STDINT_H_TRUE 1143STDINT_H 1144HAVE_SYS_INTTYPES_H 1145HAVE_SYS_BITYPES_H 1146HAVE_C99_STDINT_H 1147WINT_T_SUFFIX 1148WCHAR_T_SUFFIX 1149SIG_ATOMIC_T_SUFFIX 1150SIZE_T_SUFFIX 1151PTRDIFF_T_SUFFIX 1152HAVE_SIGNED_WINT_T 1153HAVE_SIGNED_WCHAR_T 1154HAVE_SIGNED_SIG_ATOMIC_T 1155BITSIZEOF_WINT_T 1156BITSIZEOF_WCHAR_T 1157BITSIZEOF_SIG_ATOMIC_T 1158BITSIZEOF_SIZE_T 1159BITSIZEOF_PTRDIFF_T 1160HAVE_STDINT_H 1161NEXT_AS_FIRST_DIRECTIVE_STDINT_H 1162NEXT_STDINT_H 1163HAVE_SYS_TYPES_H 1164HAVE_INTTYPES_H 1165HAVE_WCHAR_H 1166HAVE_UNSIGNED_LONG_LONG_INT 1167HAVE_LONG_LONG_INT 1168GNULIB_OVERRIDES_WINT_T 1169NEXT_AS_FIRST_DIRECTIVE_STDDEF_H 1170NEXT_STDDEF_H 1171GL_GENERATE_STDDEF_H_FALSE 1172GL_GENERATE_STDDEF_H_TRUE 1173STDDEF_H 1174HAVE_WCHAR_T 1175HAVE_MAX_ALIGN_T 1176REPLACE_NULL 1177HAVE__BOOL 1178GL_GENERATE_STDBOOL_H_FALSE 1179GL_GENERATE_STDBOOL_H_TRUE 1180STDBOOL_H 1181GL_GENERATE_STDARG_H_FALSE 1182GL_GENERATE_STDARG_H_TRUE 1183STDARG_H 1184NEXT_AS_FIRST_DIRECTIVE_STDARG_H 1185NEXT_STDARG_H 1186PMCCABE 1187APPLE_UNIVERSAL_BUILD 1188HAVE_MSVC_INVALID_PARAMETER_HANDLER 1189REPLACE_WCTOMB 1190REPLACE_UNSETENV 1191REPLACE_STRTOD 1192REPLACE_SETENV 1193REPLACE_REALPATH 1194REPLACE_REALLOC 1195REPLACE_RANDOM_R 1196REPLACE_QSORT_R 1197REPLACE_PUTENV 1198REPLACE_PTSNAME_R 1199REPLACE_PTSNAME 1200REPLACE_MKSTEMP 1201REPLACE_MBTOWC 1202REPLACE_MALLOC 1203REPLACE_CANONICALIZE_FILE_NAME 1204REPLACE_CALLOC 1205HAVE_DECL_UNSETENV 1206HAVE_UNLOCKPT 1207HAVE_SYS_LOADAVG_H 1208HAVE_STRUCT_RANDOM_DATA 1209HAVE_STRTOULL 1210HAVE_STRTOLL 1211HAVE_STRTOD 1212HAVE_DECL_SETSTATE 1213HAVE_DECL_SETENV 1214HAVE_SETENV 1215HAVE_SECURE_GETENV 1216HAVE_RPMATCH 1217HAVE_REALPATH 1218HAVE_REALLOCARRAY 1219HAVE_RANDOM_R 1220HAVE_RANDOM_H 1221HAVE_RANDOM 1222HAVE_QSORT_R 1223HAVE_PTSNAME_R 1224HAVE_PTSNAME 1225HAVE_POSIX_OPENPT 1226HAVE_MKSTEMPS 1227HAVE_MKSTEMP 1228HAVE_MKOSTEMPS 1229HAVE_MKOSTEMP 1230HAVE_MKDTEMP 1231HAVE_DECL_INITSTATE 1232HAVE_GRANTPT 1233HAVE_GETSUBOPT 1234HAVE_DECL_GETLOADAVG 1235HAVE_CANONICALIZE_FILE_NAME 1236HAVE_ATOLL 1237HAVE__EXIT 1238GNULIB_WCTOMB 1239GNULIB_UNSETENV 1240GNULIB_UNLOCKPT 1241GNULIB_SYSTEM_POSIX 1242GNULIB_STRTOULL 1243GNULIB_STRTOLL 1244GNULIB_STRTOD 1245GNULIB_SETENV 1246GNULIB_SECURE_GETENV 1247GNULIB_RPMATCH 1248GNULIB_REALPATH 1249GNULIB_REALLOC_POSIX 1250GNULIB_REALLOCARRAY 1251GNULIB_RANDOM_R 1252GNULIB_RANDOM 1253GNULIB_QSORT_R 1254GNULIB_PUTENV 1255GNULIB_PTSNAME_R 1256GNULIB_PTSNAME 1257GNULIB_POSIX_OPENPT 1258GNULIB_MKSTEMPS 1259GNULIB_MKSTEMP 1260GNULIB_MKOSTEMPS 1261GNULIB_MKOSTEMP 1262GNULIB_MKDTEMP 1263GNULIB_MBTOWC 1264GNULIB_MALLOC_POSIX 1265GNULIB_GRANTPT 1266GNULIB_GETSUBOPT 1267GNULIB_GETLOADAVG 1268GNULIB_CANONICALIZE_FILE_NAME 1269GNULIB_CALLOC_POSIX 1270GNULIB_ATOLL 1271GNULIB__EXIT 1272GL_GENERATE_LIMITS_H_FALSE 1273GL_GENERATE_LIMITS_H_TRUE 1274LIMITS_H 1275NEXT_AS_FIRST_DIRECTIVE_LIMITS_H 1276NEXT_LIMITS_H 1277GNULIB_GL_UNISTD_H_GETOPT 1278GETOPT_CDEFS_H 1279GETOPT_H 1280HAVE_SYS_CDEFS_H 1281HAVE_GETOPT_H 1282NEXT_AS_FIRST_DIRECTIVE_GETOPT_H 1283NEXT_GETOPT_H 1284UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS 1285UNISTD_H_HAVE_WINSOCK2_H 1286REPLACE_WRITE 1287REPLACE_USLEEP 1288REPLACE_UNLINKAT 1289REPLACE_UNLINK 1290REPLACE_TTYNAME_R 1291REPLACE_TRUNCATE 1292REPLACE_SYMLINKAT 1293REPLACE_SYMLINK 1294REPLACE_SLEEP 1295REPLACE_RMDIR 1296REPLACE_READLINKAT 1297REPLACE_READLINK 1298REPLACE_READ 1299REPLACE_PWRITE 1300REPLACE_PREAD 1301REPLACE_LSEEK 1302REPLACE_LINKAT 1303REPLACE_LINK 1304REPLACE_LCHOWN 1305REPLACE_ISATTY 1306REPLACE_GETPAGESIZE 1307REPLACE_GETGROUPS 1308REPLACE_GETLOGIN_R 1309REPLACE_GETDTABLESIZE 1310REPLACE_GETDOMAINNAME 1311REPLACE_GETCWD 1312REPLACE_FTRUNCATE 1313REPLACE_FCHOWNAT 1314REPLACE_FACCESSAT 1315REPLACE_DUP2 1316REPLACE_DUP 1317REPLACE_CLOSE 1318REPLACE_CHOWN 1319HAVE_SYS_PARAM_H 1320HAVE_OS_H 1321HAVE_DECL_TTYNAME_R 1322HAVE_DECL_SETHOSTNAME 1323HAVE_DECL_GETUSERSHELL 1324HAVE_DECL_GETPAGESIZE 1325HAVE_DECL_GETLOGIN_R 1326HAVE_DECL_GETLOGIN 1327HAVE_DECL_GETDOMAINNAME 1328HAVE_DECL_FDATASYNC 1329HAVE_DECL_FCHDIR 1330HAVE_DECL_ENVIRON 1331HAVE_USLEEP 1332HAVE_UNLINKAT 1333HAVE_TRUNCATE 1334HAVE_SYMLINKAT 1335HAVE_SYMLINK 1336HAVE_SLEEP 1337HAVE_SETHOSTNAME 1338HAVE_READLINKAT 1339HAVE_READLINK 1340HAVE_PWRITE 1341HAVE_PREAD 1342HAVE_PIPE2 1343HAVE_PIPE 1344HAVE_LINKAT 1345HAVE_LINK 1346HAVE_LCHOWN 1347HAVE_GROUP_MEMBER 1348HAVE_GETPAGESIZE 1349HAVE_GETLOGIN 1350HAVE_GETHOSTNAME 1351HAVE_GETGROUPS 1352HAVE_GETDTABLESIZE 1353HAVE_FTRUNCATE 1354HAVE_FSYNC 1355HAVE_FDATASYNC 1356HAVE_FCHOWNAT 1357HAVE_FCHDIR 1358HAVE_FACCESSAT 1359HAVE_EUIDACCESS 1360HAVE_DUP3 1361HAVE_DUP2 1362HAVE_CHOWN 1363GNULIB_WRITE 1364GNULIB_USLEEP 1365GNULIB_UNLINKAT 1366GNULIB_UNLINK 1367GNULIB_UNISTD_H_SIGPIPE 1368GNULIB_UNISTD_H_NONBLOCKING 1369GNULIB_TTYNAME_R 1370GNULIB_TRUNCATE 1371GNULIB_SYMLINKAT 1372GNULIB_SYMLINK 1373GNULIB_SLEEP 1374GNULIB_SETHOSTNAME 1375GNULIB_RMDIR 1376GNULIB_READLINKAT 1377GNULIB_READLINK 1378GNULIB_READ 1379GNULIB_PWRITE 1380GNULIB_PREAD 1381GNULIB_PIPE2 1382GNULIB_PIPE 1383GNULIB_LSEEK 1384GNULIB_LINKAT 1385GNULIB_LINK 1386GNULIB_LCHOWN 1387GNULIB_ISATTY 1388GNULIB_GROUP_MEMBER 1389GNULIB_GETUSERSHELL 1390GNULIB_GETPAGESIZE 1391GNULIB_GETLOGIN_R 1392GNULIB_GETLOGIN 1393GNULIB_GETHOSTNAME 1394GNULIB_GETGROUPS 1395GNULIB_GETDTABLESIZE 1396GNULIB_GETDOMAINNAME 1397GNULIB_GETCWD 1398GNULIB_FTRUNCATE 1399GNULIB_FSYNC 1400GNULIB_FDATASYNC 1401GNULIB_FCHOWNAT 1402GNULIB_FCHDIR 1403GNULIB_FACCESSAT 1404GNULIB_EUIDACCESS 1405GNULIB_ENVIRON 1406GNULIB_DUP3 1407GNULIB_DUP2 1408GNULIB_DUP 1409GNULIB_CLOSE 1410GNULIB_CHOWN 1411GNULIB_CHDIR 1412REPLACE_VSPRINTF 1413REPLACE_VSNPRINTF 1414REPLACE_VPRINTF 1415REPLACE_VFPRINTF 1416REPLACE_VDPRINTF 1417REPLACE_VASPRINTF 1418REPLACE_TMPFILE 1419REPLACE_STDIO_WRITE_FUNCS 1420REPLACE_STDIO_READ_FUNCS 1421REPLACE_SPRINTF 1422REPLACE_SNPRINTF 1423REPLACE_RENAMEAT 1424REPLACE_RENAME 1425REPLACE_REMOVE 1426REPLACE_PRINTF 1427REPLACE_POPEN 1428REPLACE_PERROR 1429REPLACE_OBSTACK_PRINTF 1430REPLACE_GETLINE 1431REPLACE_GETDELIM 1432REPLACE_FTELLO 1433REPLACE_FTELL 1434REPLACE_FSEEKO 1435REPLACE_FSEEK 1436REPLACE_FREOPEN 1437REPLACE_FPURGE 1438REPLACE_FPRINTF 1439REPLACE_FOPEN 1440REPLACE_FFLUSH 1441REPLACE_FDOPEN 1442REPLACE_FCLOSE 1443REPLACE_DPRINTF 1444HAVE_VDPRINTF 1445HAVE_VASPRINTF 1446HAVE_RENAMEAT 1447HAVE_POPEN 1448HAVE_PCLOSE 1449HAVE_FTELLO 1450HAVE_FSEEKO 1451HAVE_DPRINTF 1452HAVE_DECL_VSNPRINTF 1453HAVE_DECL_SNPRINTF 1454HAVE_DECL_OBSTACK_PRINTF 1455HAVE_DECL_GETLINE 1456HAVE_DECL_GETDELIM 1457HAVE_DECL_FTELLO 1458HAVE_DECL_FSEEKO 1459HAVE_DECL_FPURGE 1460GNULIB_VSPRINTF_POSIX 1461GNULIB_VSNPRINTF 1462GNULIB_VPRINTF_POSIX 1463GNULIB_VPRINTF 1464GNULIB_VFPRINTF_POSIX 1465GNULIB_VFPRINTF 1466GNULIB_VDPRINTF 1467GNULIB_VSCANF 1468GNULIB_VFSCANF 1469GNULIB_VASPRINTF 1470GNULIB_TMPFILE 1471GNULIB_STDIO_H_SIGPIPE 1472GNULIB_STDIO_H_NONBLOCKING 1473GNULIB_SPRINTF_POSIX 1474GNULIB_SNPRINTF 1475GNULIB_SCANF 1476GNULIB_RENAMEAT 1477GNULIB_RENAME 1478GNULIB_REMOVE 1479GNULIB_PUTS 1480GNULIB_PUTCHAR 1481GNULIB_PUTC 1482GNULIB_PRINTF_POSIX 1483GNULIB_PRINTF 1484GNULIB_POPEN 1485GNULIB_PERROR 1486GNULIB_PCLOSE 1487GNULIB_OBSTACK_PRINTF_POSIX 1488GNULIB_OBSTACK_PRINTF 1489GNULIB_GETLINE 1490GNULIB_GETDELIM 1491GNULIB_GETCHAR 1492GNULIB_GETC 1493GNULIB_FWRITE 1494GNULIB_FTELLO 1495GNULIB_FTELL 1496GNULIB_FSEEKO 1497GNULIB_FSEEK 1498GNULIB_FSCANF 1499GNULIB_FREOPEN 1500GNULIB_FREAD 1501GNULIB_FPUTS 1502GNULIB_FPUTC 1503GNULIB_FPURGE 1504GNULIB_FPRINTF_POSIX 1505GNULIB_FPRINTF 1506GNULIB_FOPEN 1507GNULIB_FGETS 1508GNULIB_FGETC 1509GNULIB_FFLUSH 1510GNULIB_FDOPEN 1511GNULIB_FCLOSE 1512GNULIB_DPRINTF 1513EOVERFLOW_VALUE 1514EOVERFLOW_HIDDEN 1515ENOLINK_VALUE 1516ENOLINK_HIDDEN 1517EMULTIHOP_VALUE 1518EMULTIHOP_HIDDEN 1519GL_GENERATE_ERRNO_H_FALSE 1520GL_GENERATE_ERRNO_H_TRUE 1521ERRNO_H 1522NEXT_AS_FIRST_DIRECTIVE_ERRNO_H 1523NEXT_ERRNO_H 1524PRAGMA_COLUMNS 1525PRAGMA_SYSTEM_HEADER 1526INCLUDE_NEXT_AS_FIRST_DIRECTIVE 1527INCLUDE_NEXT 1528CSHARPCOMPFLAGS 1529HAVE_CSC 1530HAVE_MCS 1531HAVE_CSCC 1532HAVE_CSC_IN_PATH 1533HAVE_MCS_IN_PATH 1534HAVE_CSCC_IN_PATH 1535CSHARP_CHOICE 1536GL_COND_LIBTOOL_FALSE 1537GL_COND_LIBTOOL_TRUE 1538lispdir 1539EMACSLOADPATH 1540EMACS 1541GL_GENERATE_ICONV_H_FALSE 1542GL_GENERATE_ICONV_H_TRUE 1543ICONV_H 1544REPLACE_ICONV_UTF 1545REPLACE_ICONV_OPEN 1546REPLACE_ICONV 1547ICONV_CONST 1548GNULIB_ICONV 1549POSUB 1550LTLIBINTL 1551LIBINTL 1552INTLLIBS 1553LTLIBICONV 1554LIBICONV 1555INTL_MACOSX_LIBS 1556XGETTEXT_EXTRA_OPTIONS 1557MSGMERGE 1558XGETTEXT_015 1559XGETTEXT 1560GMSGFMT_015 1561MSGFMT_015 1562GMSGFMT 1563MSGFMT 1564GETTEXT_MACRO_VERSION 1565USE_NLS 1566HELP2MAN 1567PERL 1568LT_SYS_LIBRARY_PATH 1569OTOOL64 1570OTOOL 1571LIPO 1572NMEDIT 1573DSYMUTIL 1574MANIFEST_TOOL 1575LN_S 1576NM 1577ac_ct_DUMPBIN 1578DUMPBIN 1579LD 1580FGREP 1581SED 1582LIBTOOL 1583OBJDUMP 1584DLLTOOL 1585AS 1586DLL_VERSION 1587host_os 1588host_vendor 1589host_cpu 1590host 1591build_os 1592build_vendor 1593build_cpu 1594build 1595RANLIB 1596ARFLAGS 1597ac_ct_AR 1598AR 1599EGREP 1600GREP 1601CPP 1602am__fastdepCC_FALSE 1603am__fastdepCC_TRUE 1604CCDEPMODE 1605am__nodep 1606AMDEPBACKSLASH 1607AMDEP_FALSE 1608AMDEP_TRUE 1609am__quote 1610am__include 1611DEPDIR 1612OBJEXT 1613EXEEXT 1614ac_ct_CC 1615CPPFLAGS 1616LDFLAGS 1617CFLAGS 1618CC 1619LT_AGE 1620LT_REVISION 1621LT_CURRENT 1622AM_BACKSLASH 1623AM_DEFAULT_VERBOSITY 1624AM_DEFAULT_V 1625AM_V 1626am__untar 1627am__tar 1628AMTAR 1629am__leading_dot 1630SET_MAKE 1631AWK 1632mkdir_p 1633MKDIR_P 1634INSTALL_STRIP_PROGRAM 1635STRIP 1636install_sh 1637MAKEINFO 1638AUTOHEADER 1639AUTOMAKE 1640AUTOCONF 1641ACLOCAL 1642VERSION 1643PACKAGE 1644CYGPATH_W 1645am__isrc 1646INSTALL_DATA 1647INSTALL_SCRIPT 1648INSTALL_PROGRAM 1649target_alias 1650host_alias 1651build_alias 1652LIBS 1653ECHO_T 1654ECHO_N 1655ECHO_C 1656DEFS 1657mandir 1658localedir 1659libdir 1660psdir 1661pdfdir 1662dvidir 1663htmldir 1664infodir 1665docdir 1666oldincludedir 1667includedir 1668runstatedir 1669localstatedir 1670sharedstatedir 1671sysconfdir 1672datadir 1673datarootdir 1674libexecdir 1675sbindir 1676bindir 1677program_transform_name 1678prefix 1679exec_prefix 1680PACKAGE_URL 1681PACKAGE_BUGREPORT 1682PACKAGE_STRING 1683PACKAGE_VERSION 1684PACKAGE_TARNAME 1685PACKAGE_NAME 1686PATH_SEPARATOR 1687SHELL' 1688ac_subst_files='' 1689ac_user_opts=' 1690enable_option_checking 1691enable_silent_rules 1692enable_dependency_tracking 1693enable_largefile 1694enable_threads 1695enable_shared 1696enable_static 1697with_pic 1698enable_fast_install 1699with_aix_soname 1700with_gnu_ld 1701with_sysroot 1702enable_libtool_lock 1703enable_nls 1704enable_rpath 1705with_libiconv_prefix 1706with_libintl_prefix 1707with_lispdir 1708enable_csharp 1709enable_valgrind_tests 1710with_packager 1711with_packager_version 1712with_packager_bug_reports 1713with_libpth_prefix 1714enable_ld_version_script 1715enable_tld 1716with_html_dir 1717enable_gtk_doc 1718enable_gtk_doc_html 1719enable_gtk_doc_pdf 1720enable_java 1721with_java_prefix 1722with_javac_flags 1723with_java_flags 1724enable_ubsan 1725enable_asan 1726enable_gcc_warnings 1727enable_doc 1728' 1729 ac_precious_vars='build_alias 1730host_alias 1731target_alias 1732CC 1733CFLAGS 1734LDFLAGS 1735LIBS 1736CPPFLAGS 1737CPP 1738LT_SYS_LIBRARY_PATH 1739EMACS 1740EMACSLOADPATH 1741PKG_CONFIG 1742GTKDOC_DEPS_CFLAGS 1743GTKDOC_DEPS_LIBS' 1744 1745 1746# Initialize some variables set by options. 1747ac_init_help= 1748ac_init_version=false 1749ac_unrecognized_opts= 1750ac_unrecognized_sep= 1751# The variables have the same names as the options, with 1752# dashes changed to underlines. 1753cache_file=/dev/null 1754exec_prefix=NONE 1755no_create= 1756no_recursion= 1757prefix=NONE 1758program_prefix=NONE 1759program_suffix=NONE 1760program_transform_name=s,x,x, 1761silent= 1762site= 1763srcdir= 1764verbose= 1765x_includes=NONE 1766x_libraries=NONE 1767 1768# Installation directory options. 1769# These are left unexpanded so users can "make install exec_prefix=/foo" 1770# and all the variables that are supposed to be based on exec_prefix 1771# by default will actually change. 1772# Use braces instead of parens because sh, perl, etc. also accept them. 1773# (The list follows the same order as the GNU Coding Standards.) 1774bindir='${exec_prefix}/bin' 1775sbindir='${exec_prefix}/sbin' 1776libexecdir='${exec_prefix}/libexec' 1777datarootdir='${prefix}/share' 1778datadir='${datarootdir}' 1779sysconfdir='${prefix}/etc' 1780sharedstatedir='${prefix}/com' 1781localstatedir='${prefix}/var' 1782runstatedir='${localstatedir}/run' 1783includedir='${prefix}/include' 1784oldincludedir='/usr/include' 1785docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1786infodir='${datarootdir}/info' 1787htmldir='${docdir}' 1788dvidir='${docdir}' 1789pdfdir='${docdir}' 1790psdir='${docdir}' 1791libdir='${exec_prefix}/lib' 1792localedir='${datarootdir}/locale' 1793mandir='${datarootdir}/man' 1794 1795ac_prev= 1796ac_dashdash= 1797for ac_option 1798do 1799 # If the previous option needs an argument, assign it. 1800 if test -n "$ac_prev"; then 1801 eval $ac_prev=\$ac_option 1802 ac_prev= 1803 continue 1804 fi 1805 1806 case $ac_option in 1807 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1808 *=) ac_optarg= ;; 1809 *) ac_optarg=yes ;; 1810 esac 1811 1812 # Accept the important Cygnus configure options, so we can diagnose typos. 1813 1814 case $ac_dashdash$ac_option in 1815 --) 1816 ac_dashdash=yes ;; 1817 1818 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1819 ac_prev=bindir ;; 1820 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1821 bindir=$ac_optarg ;; 1822 1823 -build | --build | --buil | --bui | --bu) 1824 ac_prev=build_alias ;; 1825 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1826 build_alias=$ac_optarg ;; 1827 1828 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1829 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1830 ac_prev=cache_file ;; 1831 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1832 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1833 cache_file=$ac_optarg ;; 1834 1835 --config-cache | -C) 1836 cache_file=config.cache ;; 1837 1838 -datadir | --datadir | --datadi | --datad) 1839 ac_prev=datadir ;; 1840 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1841 datadir=$ac_optarg ;; 1842 1843 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1844 | --dataroo | --dataro | --datar) 1845 ac_prev=datarootdir ;; 1846 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1847 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1848 datarootdir=$ac_optarg ;; 1849 1850 -disable-* | --disable-*) 1851 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1852 # Reject names that are not valid shell variable names. 1853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1854 as_fn_error $? "invalid feature name: $ac_useropt" 1855 ac_useropt_orig=$ac_useropt 1856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1857 case $ac_user_opts in 1858 *" 1859"enable_$ac_useropt" 1860"*) ;; 1861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1862 ac_unrecognized_sep=', ';; 1863 esac 1864 eval enable_$ac_useropt=no ;; 1865 1866 -docdir | --docdir | --docdi | --doc | --do) 1867 ac_prev=docdir ;; 1868 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1869 docdir=$ac_optarg ;; 1870 1871 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1872 ac_prev=dvidir ;; 1873 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1874 dvidir=$ac_optarg ;; 1875 1876 -enable-* | --enable-*) 1877 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1878 # Reject names that are not valid shell variable names. 1879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1880 as_fn_error $? "invalid feature name: $ac_useropt" 1881 ac_useropt_orig=$ac_useropt 1882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1883 case $ac_user_opts in 1884 *" 1885"enable_$ac_useropt" 1886"*) ;; 1887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1888 ac_unrecognized_sep=', ';; 1889 esac 1890 eval enable_$ac_useropt=\$ac_optarg ;; 1891 1892 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1893 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1894 | --exec | --exe | --ex) 1895 ac_prev=exec_prefix ;; 1896 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1897 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1898 | --exec=* | --exe=* | --ex=*) 1899 exec_prefix=$ac_optarg ;; 1900 1901 -gas | --gas | --ga | --g) 1902 # Obsolete; use --with-gas. 1903 with_gas=yes ;; 1904 1905 -help | --help | --hel | --he | -h) 1906 ac_init_help=long ;; 1907 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1908 ac_init_help=recursive ;; 1909 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1910 ac_init_help=short ;; 1911 1912 -host | --host | --hos | --ho) 1913 ac_prev=host_alias ;; 1914 -host=* | --host=* | --hos=* | --ho=*) 1915 host_alias=$ac_optarg ;; 1916 1917 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1918 ac_prev=htmldir ;; 1919 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1920 | --ht=*) 1921 htmldir=$ac_optarg ;; 1922 1923 -includedir | --includedir | --includedi | --included | --include \ 1924 | --includ | --inclu | --incl | --inc) 1925 ac_prev=includedir ;; 1926 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1927 | --includ=* | --inclu=* | --incl=* | --inc=*) 1928 includedir=$ac_optarg ;; 1929 1930 -infodir | --infodir | --infodi | --infod | --info | --inf) 1931 ac_prev=infodir ;; 1932 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1933 infodir=$ac_optarg ;; 1934 1935 -libdir | --libdir | --libdi | --libd) 1936 ac_prev=libdir ;; 1937 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1938 libdir=$ac_optarg ;; 1939 1940 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1941 | --libexe | --libex | --libe) 1942 ac_prev=libexecdir ;; 1943 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1944 | --libexe=* | --libex=* | --libe=*) 1945 libexecdir=$ac_optarg ;; 1946 1947 -localedir | --localedir | --localedi | --localed | --locale) 1948 ac_prev=localedir ;; 1949 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1950 localedir=$ac_optarg ;; 1951 1952 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1953 | --localstate | --localstat | --localsta | --localst | --locals) 1954 ac_prev=localstatedir ;; 1955 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1956 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1957 localstatedir=$ac_optarg ;; 1958 1959 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1960 ac_prev=mandir ;; 1961 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1962 mandir=$ac_optarg ;; 1963 1964 -nfp | --nfp | --nf) 1965 # Obsolete; use --without-fp. 1966 with_fp=no ;; 1967 1968 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1969 | --no-cr | --no-c | -n) 1970 no_create=yes ;; 1971 1972 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1973 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1974 no_recursion=yes ;; 1975 1976 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1977 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1978 | --oldin | --oldi | --old | --ol | --o) 1979 ac_prev=oldincludedir ;; 1980 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1981 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1982 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1983 oldincludedir=$ac_optarg ;; 1984 1985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1986 ac_prev=prefix ;; 1987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1988 prefix=$ac_optarg ;; 1989 1990 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1991 | --program-pre | --program-pr | --program-p) 1992 ac_prev=program_prefix ;; 1993 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1994 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1995 program_prefix=$ac_optarg ;; 1996 1997 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1998 | --program-suf | --program-su | --program-s) 1999 ac_prev=program_suffix ;; 2000 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 2001 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 2002 program_suffix=$ac_optarg ;; 2003 2004 -program-transform-name | --program-transform-name \ 2005 | --program-transform-nam | --program-transform-na \ 2006 | --program-transform-n | --program-transform- \ 2007 | --program-transform | --program-transfor \ 2008 | --program-transfo | --program-transf \ 2009 | --program-trans | --program-tran \ 2010 | --progr-tra | --program-tr | --program-t) 2011 ac_prev=program_transform_name ;; 2012 -program-transform-name=* | --program-transform-name=* \ 2013 | --program-transform-nam=* | --program-transform-na=* \ 2014 | --program-transform-n=* | --program-transform-=* \ 2015 | --program-transform=* | --program-transfor=* \ 2016 | --program-transfo=* | --program-transf=* \ 2017 | --program-trans=* | --program-tran=* \ 2018 | --progr-tra=* | --program-tr=* | --program-t=*) 2019 program_transform_name=$ac_optarg ;; 2020 2021 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 2022 ac_prev=pdfdir ;; 2023 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 2024 pdfdir=$ac_optarg ;; 2025 2026 -psdir | --psdir | --psdi | --psd | --ps) 2027 ac_prev=psdir ;; 2028 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 2029 psdir=$ac_optarg ;; 2030 2031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2032 | -silent | --silent | --silen | --sile | --sil) 2033 silent=yes ;; 2034 2035 -runstatedir | --runstatedir | --runstatedi | --runstated \ 2036 | --runstate | --runstat | --runsta | --runst | --runs \ 2037 | --run | --ru | --r) 2038 ac_prev=runstatedir ;; 2039 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 2040 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 2041 | --run=* | --ru=* | --r=*) 2042 runstatedir=$ac_optarg ;; 2043 2044 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 2045 ac_prev=sbindir ;; 2046 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 2047 | --sbi=* | --sb=*) 2048 sbindir=$ac_optarg ;; 2049 2050 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 2051 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 2052 | --sharedst | --shareds | --shared | --share | --shar \ 2053 | --sha | --sh) 2054 ac_prev=sharedstatedir ;; 2055 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 2056 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 2057 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 2058 | --sha=* | --sh=*) 2059 sharedstatedir=$ac_optarg ;; 2060 2061 -site | --site | --sit) 2062 ac_prev=site ;; 2063 -site=* | --site=* | --sit=*) 2064 site=$ac_optarg ;; 2065 2066 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 2067 ac_prev=srcdir ;; 2068 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 2069 srcdir=$ac_optarg ;; 2070 2071 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 2072 | --syscon | --sysco | --sysc | --sys | --sy) 2073 ac_prev=sysconfdir ;; 2074 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 2075 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 2076 sysconfdir=$ac_optarg ;; 2077 2078 -target | --target | --targe | --targ | --tar | --ta | --t) 2079 ac_prev=target_alias ;; 2080 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 2081 target_alias=$ac_optarg ;; 2082 2083 -v | -verbose | --verbose | --verbos | --verbo | --verb) 2084 verbose=yes ;; 2085 2086 -version | --version | --versio | --versi | --vers | -V) 2087 ac_init_version=: ;; 2088 2089 -with-* | --with-*) 2090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 2091 # Reject names that are not valid shell variable names. 2092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2093 as_fn_error $? "invalid package name: $ac_useropt" 2094 ac_useropt_orig=$ac_useropt 2095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 2096 case $ac_user_opts in 2097 *" 2098"with_$ac_useropt" 2099"*) ;; 2100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 2101 ac_unrecognized_sep=', ';; 2102 esac 2103 eval with_$ac_useropt=\$ac_optarg ;; 2104 2105 -without-* | --without-*) 2106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 2107 # Reject names that are not valid shell variable names. 2108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 2109 as_fn_error $? "invalid package name: $ac_useropt" 2110 ac_useropt_orig=$ac_useropt 2111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 2112 case $ac_user_opts in 2113 *" 2114"with_$ac_useropt" 2115"*) ;; 2116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 2117 ac_unrecognized_sep=', ';; 2118 esac 2119 eval with_$ac_useropt=no ;; 2120 2121 --x) 2122 # Obsolete; use --with-x. 2123 with_x=yes ;; 2124 2125 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 2126 | --x-incl | --x-inc | --x-in | --x-i) 2127 ac_prev=x_includes ;; 2128 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 2129 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 2130 x_includes=$ac_optarg ;; 2131 2132 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 2133 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 2134 ac_prev=x_libraries ;; 2135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 2136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 2137 x_libraries=$ac_optarg ;; 2138 2139 -*) as_fn_error $? "unrecognized option: \`$ac_option' 2140Try \`$0 --help' for more information" 2141 ;; 2142 2143 *=*) 2144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 2145 # Reject names that are not valid shell variable names. 2146 case $ac_envvar in #( 2147 '' | [0-9]* | *[!_$as_cr_alnum]* ) 2148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 2149 esac 2150 eval $ac_envvar=\$ac_optarg 2151 export $ac_envvar ;; 2152 2153 *) 2154 # FIXME: should be removed in autoconf 3.0. 2155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 2156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 2157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 2158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 2159 ;; 2160 2161 esac 2162done 2163 2164if test -n "$ac_prev"; then 2165 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 2166 as_fn_error $? "missing argument to $ac_option" 2167fi 2168 2169if test -n "$ac_unrecognized_opts"; then 2170 case $enable_option_checking in 2171 no) ;; 2172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 2173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 2174 esac 2175fi 2176 2177# Check all directory arguments for consistency. 2178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 2179 datadir sysconfdir sharedstatedir localstatedir includedir \ 2180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 2181 libdir localedir mandir runstatedir 2182do 2183 eval ac_val=\$$ac_var 2184 # Remove trailing slashes. 2185 case $ac_val in 2186 */ ) 2187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 2188 eval $ac_var=\$ac_val;; 2189 esac 2190 # Be sure to have absolute directory names. 2191 case $ac_val in 2192 [\\/$]* | ?:[\\/]* ) continue;; 2193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 2194 esac 2195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 2196done 2197 2198# There might be people who depend on the old broken behavior: `$host' 2199# used to hold the argument of --host etc. 2200# FIXME: To remove some day. 2201build=$build_alias 2202host=$host_alias 2203target=$target_alias 2204 2205# FIXME: To remove some day. 2206if test "x$host_alias" != x; then 2207 if test "x$build_alias" = x; then 2208 cross_compiling=maybe 2209 elif test "x$build_alias" != "x$host_alias"; then 2210 cross_compiling=yes 2211 fi 2212fi 2213 2214ac_tool_prefix= 2215test -n "$host_alias" && ac_tool_prefix=$host_alias- 2216 2217test "$silent" = yes && exec 6>/dev/null 2218 2219 2220ac_pwd=`pwd` && test -n "$ac_pwd" && 2221ac_ls_di=`ls -di .` && 2222ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 2223 as_fn_error $? "working directory cannot be determined" 2224test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 2225 as_fn_error $? "pwd does not report name of working directory" 2226 2227 2228# Find the source files, if location was not specified. 2229if test -z "$srcdir"; then 2230 ac_srcdir_defaulted=yes 2231 # Try the directory containing this script, then the parent directory. 2232 ac_confdir=`$as_dirname -- "$as_myself" || 2233$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2234 X"$as_myself" : 'X\(//\)[^/]' \| \ 2235 X"$as_myself" : 'X\(//\)$' \| \ 2236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 2237$as_echo X"$as_myself" | 2238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 2239 s//\1/ 2240 q 2241 } 2242 /^X\(\/\/\)[^/].*/{ 2243 s//\1/ 2244 q 2245 } 2246 /^X\(\/\/\)$/{ 2247 s//\1/ 2248 q 2249 } 2250 /^X\(\/\).*/{ 2251 s//\1/ 2252 q 2253 } 2254 s/.*/./; q'` 2255 srcdir=$ac_confdir 2256 if test ! -r "$srcdir/$ac_unique_file"; then 2257 srcdir=.. 2258 fi 2259else 2260 ac_srcdir_defaulted=no 2261fi 2262if test ! -r "$srcdir/$ac_unique_file"; then 2263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 2264 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 2265fi 2266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 2267ac_abs_confdir=`( 2268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 2269 pwd)` 2270# When building in place, set srcdir=. 2271if test "$ac_abs_confdir" = "$ac_pwd"; then 2272 srcdir=. 2273fi 2274# Remove unnecessary trailing slashes from srcdir. 2275# Double slashes in file names in object file debugging info 2276# mess up M-x gdb in Emacs. 2277case $srcdir in 2278*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 2279esac 2280for ac_var in $ac_precious_vars; do 2281 eval ac_env_${ac_var}_set=\${${ac_var}+set} 2282 eval ac_env_${ac_var}_value=\$${ac_var} 2283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 2284 eval ac_cv_env_${ac_var}_value=\$${ac_var} 2285done 2286 2287# 2288# Report the --help message. 2289# 2290if test "$ac_init_help" = "long"; then 2291 # Omit some internal or obsolete options to make the list less imposing. 2292 # This message is too long to be a string in the A/UX 3.1 sh. 2293 cat <<_ACEOF 2294\`configure' configures GNU Libidn 1.35 to adapt to many kinds of systems. 2295 2296Usage: $0 [OPTION]... [VAR=VALUE]... 2297 2298To assign environment variables (e.g., CC, CFLAGS...), specify them as 2299VAR=VALUE. See below for descriptions of some of the useful variables. 2300 2301Defaults for the options are specified in brackets. 2302 2303Configuration: 2304 -h, --help display this help and exit 2305 --help=short display options specific to this package 2306 --help=recursive display the short help of all the included packages 2307 -V, --version display version information and exit 2308 -q, --quiet, --silent do not print \`checking ...' messages 2309 --cache-file=FILE cache test results in FILE [disabled] 2310 -C, --config-cache alias for \`--cache-file=config.cache' 2311 -n, --no-create do not create output files 2312 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 2313 2314Installation directories: 2315 --prefix=PREFIX install architecture-independent files in PREFIX 2316 [$ac_default_prefix] 2317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 2318 [PREFIX] 2319 2320By default, \`make install' will install all the files in 2321\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 2322an installation prefix other than \`$ac_default_prefix' using \`--prefix', 2323for instance \`--prefix=\$HOME'. 2324 2325For better control, use the options below. 2326 2327Fine tuning of the installation directories: 2328 --bindir=DIR user executables [EPREFIX/bin] 2329 --sbindir=DIR system admin executables [EPREFIX/sbin] 2330 --libexecdir=DIR program executables [EPREFIX/libexec] 2331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 2332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 2333 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 2334 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 2335 --libdir=DIR object code libraries [EPREFIX/lib] 2336 --includedir=DIR C header files [PREFIX/include] 2337 --oldincludedir=DIR C header files for non-gcc [/usr/include] 2338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 2339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 2340 --infodir=DIR info documentation [DATAROOTDIR/info] 2341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 2342 --mandir=DIR man documentation [DATAROOTDIR/man] 2343 --docdir=DIR documentation root [DATAROOTDIR/doc/libidn] 2344 --htmldir=DIR html documentation [DOCDIR] 2345 --dvidir=DIR dvi documentation [DOCDIR] 2346 --pdfdir=DIR pdf documentation [DOCDIR] 2347 --psdir=DIR ps documentation [DOCDIR] 2348_ACEOF 2349 2350 cat <<\_ACEOF 2351 2352Program names: 2353 --program-prefix=PREFIX prepend PREFIX to installed program names 2354 --program-suffix=SUFFIX append SUFFIX to installed program names 2355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 2356 2357System types: 2358 --build=BUILD configure for building on BUILD [guessed] 2359 --host=HOST cross-compile to build programs to run on HOST [BUILD] 2360_ACEOF 2361fi 2362 2363if test -n "$ac_init_help"; then 2364 case $ac_init_help in 2365 short | recursive ) echo "Configuration of GNU Libidn 1.35:";; 2366 esac 2367 cat <<\_ACEOF 2368 2369Optional Features: 2370 --disable-option-checking ignore unrecognized --enable/--with options 2371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 2372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 2373 --enable-silent-rules less verbose build output (undo: "make V=1") 2374 --disable-silent-rules verbose build output (undo: "make V=0") 2375 --enable-dependency-tracking 2376 do not reject slow dependency extractors 2377 --disable-dependency-tracking 2378 speeds up one-time build 2379 --disable-largefile omit support for large files 2380 --enable-threads={posix|solaris|pth|windows} 2381 specify multithreading API 2382 --disable-threads build without multithread safety 2383 --enable-shared[=PKGS] build shared libraries [default=yes] 2384 --enable-static[=PKGS] build static libraries [default=yes] 2385 --enable-fast-install[=PKGS] 2386 optimize for fast installation [default=yes] 2387 --disable-libtool-lock avoid locking (might break parallel builds) 2388 --disable-nls do not use Native Language Support 2389 --disable-rpath do not hardcode runtime library paths 2390 --enable-csharp[=IMPL] choose preferred C# implementation (pnet or mono) 2391 --disable-valgrind-tests 2392 don't try to run self tests under valgrind 2393 --enable-ld-version-script 2394 enable linker version script (default is enabled 2395 when possible) 2396 --disable-tld disable TLD code 2397 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 2398 --enable-gtk-doc-html build documentation in html format [[default=yes]] 2399 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 2400 --enable-java enable Java API 2401 --enable-ubsan Turn on Undefined Behavior Sanitizer (UBSan) 2402 --enable-asan Turn on Address Sanitizer (ASan) 2403 --enable-gcc-warnings turn on lots of GCC warnings (for developers) 2404 --disable-doc don't generate any documentation 2405 2406Optional Packages: 2407 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2408 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2409 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 2410 both] 2411 --with-aix-soname=aix|svr4|both 2412 shared library versioning (aka "SONAME") variant to 2413 provide on AIX, [default=aix]. 2414 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2415 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 2416 compiler's sysroot if not specified). 2417 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 2418 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 2419 --without-libiconv-prefix don't search for libiconv in includedir and libdir 2420 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 2421 --without-libintl-prefix don't search for libintl in includedir and libdir 2422 --with-lispdir override the default lisp directory 2423 --with-packager String identifying the packager of this software 2424 --with-packager-version Packager-specific version information 2425 --with-packager-bug-reports 2426 Packager info for bug reports (URL/e-mail/...) 2427 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 2428 --without-libpth-prefix don't search for libpth in includedir and libdir 2429 --with-html-dir=PATH path to installed docs 2430 --with-java-prefix=PFX prefix where Java runtime is installed (optional) 2431 --with-javac-flags=FLAGS flags to pass to the Java compiler (optional) 2432 --with-java-flags=FLAGS flags to pass to the Java VM (optional) 2433 2434Some influential environment variables: 2435 CC C compiler command 2436 CFLAGS C compiler flags 2437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2438 nonstandard directory <lib dir> 2439 LIBS libraries to pass to the linker, e.g. -l<library> 2440 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2441 you have headers in a nonstandard directory <include dir> 2442 CPP C preprocessor 2443 LT_SYS_LIBRARY_PATH 2444 User-defined run-time library search path. 2445 EMACS the Emacs editor command 2446 EMACSLOADPATH 2447 the Emacs library search path 2448 PKG_CONFIG path to pkg-config utility 2449 GTKDOC_DEPS_CFLAGS 2450 C compiler flags for GTKDOC_DEPS, overriding pkg-config 2451 GTKDOC_DEPS_LIBS 2452 linker flags for GTKDOC_DEPS, overriding pkg-config 2453 2454Use these variables to override the choices made by `configure' or to help 2455it to find libraries and programs with nonstandard names/locations. 2456 2457Report bugs to <bug-libidn@gnu.org>. 2458GNU Libidn home page: <http://www.gnu.org/software/libidn/>. 2459General help using GNU software: <http://www.gnu.org/gethelp/>. 2460_ACEOF 2461ac_status=$? 2462fi 2463 2464if test "$ac_init_help" = "recursive"; then 2465 # If there are subdirs, report their specific --help. 2466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2467 test -d "$ac_dir" || 2468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2469 continue 2470 ac_builddir=. 2471 2472case "$ac_dir" in 2473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2474*) 2475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2476 # A ".." for each directory in $ac_dir_suffix. 2477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2478 case $ac_top_builddir_sub in 2479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2481 esac ;; 2482esac 2483ac_abs_top_builddir=$ac_pwd 2484ac_abs_builddir=$ac_pwd$ac_dir_suffix 2485# for backward compatibility: 2486ac_top_builddir=$ac_top_build_prefix 2487 2488case $srcdir in 2489 .) # We are building in place. 2490 ac_srcdir=. 2491 ac_top_srcdir=$ac_top_builddir_sub 2492 ac_abs_top_srcdir=$ac_pwd ;; 2493 [\\/]* | ?:[\\/]* ) # Absolute name. 2494 ac_srcdir=$srcdir$ac_dir_suffix; 2495 ac_top_srcdir=$srcdir 2496 ac_abs_top_srcdir=$srcdir ;; 2497 *) # Relative name. 2498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2499 ac_top_srcdir=$ac_top_build_prefix$srcdir 2500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2501esac 2502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2503 2504 cd "$ac_dir" || { ac_status=$?; continue; } 2505 # Check for guested configure. 2506 if test -f "$ac_srcdir/configure.gnu"; then 2507 echo && 2508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2509 elif test -f "$ac_srcdir/configure"; then 2510 echo && 2511 $SHELL "$ac_srcdir/configure" --help=recursive 2512 else 2513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2514 fi || ac_status=$? 2515 cd "$ac_pwd" || { ac_status=$?; break; } 2516 done 2517fi 2518 2519test -n "$ac_init_help" && exit $ac_status 2520if $ac_init_version; then 2521 cat <<\_ACEOF 2522GNU Libidn configure 1.35 2523generated by GNU Autoconf 2.69 2524 2525Copyright (C) 2012 Free Software Foundation, Inc. 2526This configure script is free software; the Free Software Foundation 2527gives unlimited permission to copy, distribute and modify it. 2528_ACEOF 2529 exit 2530fi 2531 2532## ------------------------ ## 2533## Autoconf initialization. ## 2534## ------------------------ ## 2535 2536# ac_fn_c_try_compile LINENO 2537# -------------------------- 2538# Try to compile conftest.$ac_ext, and return whether this succeeded. 2539ac_fn_c_try_compile () 2540{ 2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2542 rm -f conftest.$ac_objext 2543 if { { ac_try="$ac_compile" 2544case "(($ac_try" in 2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2546 *) ac_try_echo=$ac_try;; 2547esac 2548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2549$as_echo "$ac_try_echo"; } >&5 2550 (eval "$ac_compile") 2>conftest.err 2551 ac_status=$? 2552 if test -s conftest.err; then 2553 grep -v '^ *+' conftest.err >conftest.er1 2554 cat conftest.er1 >&5 2555 mv -f conftest.er1 conftest.err 2556 fi 2557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2558 test $ac_status = 0; } && { 2559 test -z "$ac_c_werror_flag" || 2560 test ! -s conftest.err 2561 } && test -s conftest.$ac_objext; then : 2562 ac_retval=0 2563else 2564 $as_echo "$as_me: failed program was:" >&5 2565sed 's/^/| /' conftest.$ac_ext >&5 2566 2567 ac_retval=1 2568fi 2569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2570 as_fn_set_status $ac_retval 2571 2572} # ac_fn_c_try_compile 2573 2574# ac_fn_c_try_cpp LINENO 2575# ---------------------- 2576# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2577ac_fn_c_try_cpp () 2578{ 2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2580 if { { ac_try="$ac_cpp conftest.$ac_ext" 2581case "(($ac_try" in 2582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2583 *) ac_try_echo=$ac_try;; 2584esac 2585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2586$as_echo "$ac_try_echo"; } >&5 2587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2588 ac_status=$? 2589 if test -s conftest.err; then 2590 grep -v '^ *+' conftest.err >conftest.er1 2591 cat conftest.er1 >&5 2592 mv -f conftest.er1 conftest.err 2593 fi 2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2595 test $ac_status = 0; } > conftest.i && { 2596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2597 test ! -s conftest.err 2598 }; then : 2599 ac_retval=0 2600else 2601 $as_echo "$as_me: failed program was:" >&5 2602sed 's/^/| /' conftest.$ac_ext >&5 2603 2604 ac_retval=1 2605fi 2606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2607 as_fn_set_status $ac_retval 2608 2609} # ac_fn_c_try_cpp 2610 2611# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2612# ------------------------------------------------------- 2613# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2614# the include files in INCLUDES and setting the cache variable VAR 2615# accordingly. 2616ac_fn_c_check_header_mongrel () 2617{ 2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2619 if eval \${$3+:} false; then : 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2621$as_echo_n "checking for $2... " >&6; } 2622if eval \${$3+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624fi 2625eval ac_res=\$$3 2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2627$as_echo "$ac_res" >&6; } 2628else 2629 # Is the header compilable? 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2631$as_echo_n "checking $2 usability... " >&6; } 2632cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2633/* end confdefs.h. */ 2634$4 2635#include <$2> 2636_ACEOF 2637if ac_fn_c_try_compile "$LINENO"; then : 2638 ac_header_compiler=yes 2639else 2640 ac_header_compiler=no 2641fi 2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2644$as_echo "$ac_header_compiler" >&6; } 2645 2646# Is the header present? 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2648$as_echo_n "checking $2 presence... " >&6; } 2649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2650/* end confdefs.h. */ 2651#include <$2> 2652_ACEOF 2653if ac_fn_c_try_cpp "$LINENO"; then : 2654 ac_header_preproc=yes 2655else 2656 ac_header_preproc=no 2657fi 2658rm -f conftest.err conftest.i conftest.$ac_ext 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2660$as_echo "$ac_header_preproc" >&6; } 2661 2662# So? What about this header? 2663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2664 yes:no: ) 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2666$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2668$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2669 ;; 2670 no:yes:* ) 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2672$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2674$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2676$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2678$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2680$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2681( $as_echo "## --------------------------------- ## 2682## Report this to bug-libidn@gnu.org ## 2683## --------------------------------- ##" 2684 ) | sed "s/^/$as_me: WARNING: /" >&2 2685 ;; 2686esac 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2688$as_echo_n "checking for $2... " >&6; } 2689if eval \${$3+:} false; then : 2690 $as_echo_n "(cached) " >&6 2691else 2692 eval "$3=\$ac_header_compiler" 2693fi 2694eval ac_res=\$$3 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2696$as_echo "$ac_res" >&6; } 2697fi 2698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2699 2700} # ac_fn_c_check_header_mongrel 2701 2702# ac_fn_c_try_run LINENO 2703# ---------------------- 2704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2705# that executables *can* be run. 2706ac_fn_c_try_run () 2707{ 2708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2709 if { { ac_try="$ac_link" 2710case "(($ac_try" in 2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2712 *) ac_try_echo=$ac_try;; 2713esac 2714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2715$as_echo "$ac_try_echo"; } >&5 2716 (eval "$ac_link") 2>&5 2717 ac_status=$? 2718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2720 { { case "(($ac_try" in 2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2722 *) ac_try_echo=$ac_try;; 2723esac 2724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2725$as_echo "$ac_try_echo"; } >&5 2726 (eval "$ac_try") 2>&5 2727 ac_status=$? 2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2729 test $ac_status = 0; }; }; then : 2730 ac_retval=0 2731else 2732 $as_echo "$as_me: program exited with status $ac_status" >&5 2733 $as_echo "$as_me: failed program was:" >&5 2734sed 's/^/| /' conftest.$ac_ext >&5 2735 2736 ac_retval=$ac_status 2737fi 2738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2740 as_fn_set_status $ac_retval 2741 2742} # ac_fn_c_try_run 2743 2744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2745# ------------------------------------------------------- 2746# Tests whether HEADER exists and can be compiled using the include files in 2747# INCLUDES, setting the cache variable VAR accordingly. 2748ac_fn_c_check_header_compile () 2749{ 2750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2752$as_echo_n "checking for $2... " >&6; } 2753if eval \${$3+:} false; then : 2754 $as_echo_n "(cached) " >&6 2755else 2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2757/* end confdefs.h. */ 2758$4 2759#include <$2> 2760_ACEOF 2761if ac_fn_c_try_compile "$LINENO"; then : 2762 eval "$3=yes" 2763else 2764 eval "$3=no" 2765fi 2766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2767fi 2768eval ac_res=\$$3 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2770$as_echo "$ac_res" >&6; } 2771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2772 2773} # ac_fn_c_check_header_compile 2774 2775# ac_fn_c_try_link LINENO 2776# ----------------------- 2777# Try to link conftest.$ac_ext, and return whether this succeeded. 2778ac_fn_c_try_link () 2779{ 2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2781 rm -f conftest.$ac_objext conftest$ac_exeext 2782 if { { ac_try="$ac_link" 2783case "(($ac_try" in 2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2785 *) ac_try_echo=$ac_try;; 2786esac 2787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2788$as_echo "$ac_try_echo"; } >&5 2789 (eval "$ac_link") 2>conftest.err 2790 ac_status=$? 2791 if test -s conftest.err; then 2792 grep -v '^ *+' conftest.err >conftest.er1 2793 cat conftest.er1 >&5 2794 mv -f conftest.er1 conftest.err 2795 fi 2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2797 test $ac_status = 0; } && { 2798 test -z "$ac_c_werror_flag" || 2799 test ! -s conftest.err 2800 } && test -s conftest$ac_exeext && { 2801 test "$cross_compiling" = yes || 2802 test -x conftest$ac_exeext 2803 }; then : 2804 ac_retval=0 2805else 2806 $as_echo "$as_me: failed program was:" >&5 2807sed 's/^/| /' conftest.$ac_ext >&5 2808 2809 ac_retval=1 2810fi 2811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2813 # interfere with the next link command; also delete a directory that is 2814 # left behind by Apple's compiler. We do this before executing the actions. 2815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2817 as_fn_set_status $ac_retval 2818 2819} # ac_fn_c_try_link 2820 2821# ac_fn_c_check_func LINENO FUNC VAR 2822# ---------------------------------- 2823# Tests whether FUNC exists, setting the cache variable VAR accordingly 2824ac_fn_c_check_func () 2825{ 2826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2828$as_echo_n "checking for $2... " >&6; } 2829if eval \${$3+:} false; then : 2830 $as_echo_n "(cached) " >&6 2831else 2832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2833/* end confdefs.h. */ 2834/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2835 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2836#define $2 innocuous_$2 2837 2838/* System header to define __stub macros and hopefully few prototypes, 2839 which can conflict with char $2 (); below. 2840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2841 <limits.h> exists even on freestanding compilers. */ 2842 2843#ifdef __STDC__ 2844# include <limits.h> 2845#else 2846# include <assert.h> 2847#endif 2848 2849#undef $2 2850 2851/* Override any GCC internal prototype to avoid an error. 2852 Use char because int might match the return type of a GCC 2853 builtin and then its argument prototype would still apply. */ 2854#ifdef __cplusplus 2855extern "C" 2856#endif 2857char $2 (); 2858/* The GNU C library defines this for functions which it implements 2859 to always fail with ENOSYS. Some functions are actually named 2860 something starting with __ and the normal name is an alias. */ 2861#if defined __stub_$2 || defined __stub___$2 2862choke me 2863#endif 2864 2865int 2866main () 2867{ 2868return $2 (); 2869 ; 2870 return 0; 2871} 2872_ACEOF 2873if ac_fn_c_try_link "$LINENO"; then : 2874 eval "$3=yes" 2875else 2876 eval "$3=no" 2877fi 2878rm -f core conftest.err conftest.$ac_objext \ 2879 conftest$ac_exeext conftest.$ac_ext 2880fi 2881eval ac_res=\$$3 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2883$as_echo "$ac_res" >&6; } 2884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2885 2886} # ac_fn_c_check_func 2887 2888# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2889# -------------------------------------------- 2890# Tries to find the compile-time value of EXPR in a program that includes 2891# INCLUDES, setting VAR accordingly. Returns whether the value could be 2892# computed 2893ac_fn_c_compute_int () 2894{ 2895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2896 if test "$cross_compiling" = yes; then 2897 # Depending upon the size, compute the lo and hi bounds. 2898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2899/* end confdefs.h. */ 2900$4 2901int 2902main () 2903{ 2904static int test_array [1 - 2 * !(($2) >= 0)]; 2905test_array [0] = 0; 2906return test_array [0]; 2907 2908 ; 2909 return 0; 2910} 2911_ACEOF 2912if ac_fn_c_try_compile "$LINENO"; then : 2913 ac_lo=0 ac_mid=0 2914 while :; do 2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2916/* end confdefs.h. */ 2917$4 2918int 2919main () 2920{ 2921static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2922test_array [0] = 0; 2923return test_array [0]; 2924 2925 ; 2926 return 0; 2927} 2928_ACEOF 2929if ac_fn_c_try_compile "$LINENO"; then : 2930 ac_hi=$ac_mid; break 2931else 2932 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2933 if test $ac_lo -le $ac_mid; then 2934 ac_lo= ac_hi= 2935 break 2936 fi 2937 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2938fi 2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2940 done 2941else 2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2943/* end confdefs.h. */ 2944$4 2945int 2946main () 2947{ 2948static int test_array [1 - 2 * !(($2) < 0)]; 2949test_array [0] = 0; 2950return test_array [0]; 2951 2952 ; 2953 return 0; 2954} 2955_ACEOF 2956if ac_fn_c_try_compile "$LINENO"; then : 2957 ac_hi=-1 ac_mid=-1 2958 while :; do 2959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2960/* end confdefs.h. */ 2961$4 2962int 2963main () 2964{ 2965static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2966test_array [0] = 0; 2967return test_array [0]; 2968 2969 ; 2970 return 0; 2971} 2972_ACEOF 2973if ac_fn_c_try_compile "$LINENO"; then : 2974 ac_lo=$ac_mid; break 2975else 2976 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2977 if test $ac_mid -le $ac_hi; then 2978 ac_lo= ac_hi= 2979 break 2980 fi 2981 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2982fi 2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2984 done 2985else 2986 ac_lo= ac_hi= 2987fi 2988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2989fi 2990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2991# Binary search between lo and hi bounds. 2992while test "x$ac_lo" != "x$ac_hi"; do 2993 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2995/* end confdefs.h. */ 2996$4 2997int 2998main () 2999{ 3000static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 3001test_array [0] = 0; 3002return test_array [0]; 3003 3004 ; 3005 return 0; 3006} 3007_ACEOF 3008if ac_fn_c_try_compile "$LINENO"; then : 3009 ac_hi=$ac_mid 3010else 3011 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 3012fi 3013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3014done 3015case $ac_lo in #(( 3016?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 3017'') ac_retval=1 ;; 3018esac 3019 else 3020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3021/* end confdefs.h. */ 3022$4 3023static long int longval () { return $2; } 3024static unsigned long int ulongval () { return $2; } 3025#include <stdio.h> 3026#include <stdlib.h> 3027int 3028main () 3029{ 3030 3031 FILE *f = fopen ("conftest.val", "w"); 3032 if (! f) 3033 return 1; 3034 if (($2) < 0) 3035 { 3036 long int i = longval (); 3037 if (i != ($2)) 3038 return 1; 3039 fprintf (f, "%ld", i); 3040 } 3041 else 3042 { 3043 unsigned long int i = ulongval (); 3044 if (i != ($2)) 3045 return 1; 3046 fprintf (f, "%lu", i); 3047 } 3048 /* Do not output a trailing newline, as this causes \r\n confusion 3049 on some platforms. */ 3050 return ferror (f) || fclose (f) != 0; 3051 3052 ; 3053 return 0; 3054} 3055_ACEOF 3056if ac_fn_c_try_run "$LINENO"; then : 3057 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 3058else 3059 ac_retval=1 3060fi 3061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3062 conftest.$ac_objext conftest.beam conftest.$ac_ext 3063rm -f conftest.val 3064 3065 fi 3066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3067 as_fn_set_status $ac_retval 3068 3069} # ac_fn_c_compute_int 3070 3071# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 3072# --------------------------------------------- 3073# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 3074# accordingly. 3075ac_fn_c_check_decl () 3076{ 3077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3078 as_decl_name=`echo $2|sed 's/ *(.*//'` 3079 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 3081$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 3082if eval \${$3+:} false; then : 3083 $as_echo_n "(cached) " >&6 3084else 3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3086/* end confdefs.h. */ 3087$4 3088int 3089main () 3090{ 3091#ifndef $as_decl_name 3092#ifdef __cplusplus 3093 (void) $as_decl_use; 3094#else 3095 (void) $as_decl_name; 3096#endif 3097#endif 3098 3099 ; 3100 return 0; 3101} 3102_ACEOF 3103if ac_fn_c_try_compile "$LINENO"; then : 3104 eval "$3=yes" 3105else 3106 eval "$3=no" 3107fi 3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3109fi 3110eval ac_res=\$$3 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3112$as_echo "$ac_res" >&6; } 3113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3114 3115} # ac_fn_c_check_decl 3116 3117# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 3118# ------------------------------------------- 3119# Tests whether TYPE exists after having included INCLUDES, setting cache 3120# variable VAR accordingly. 3121ac_fn_c_check_type () 3122{ 3123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3125$as_echo_n "checking for $2... " >&6; } 3126if eval \${$3+:} false; then : 3127 $as_echo_n "(cached) " >&6 3128else 3129 eval "$3=no" 3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3131/* end confdefs.h. */ 3132$4 3133int 3134main () 3135{ 3136if (sizeof ($2)) 3137 return 0; 3138 ; 3139 return 0; 3140} 3141_ACEOF 3142if ac_fn_c_try_compile "$LINENO"; then : 3143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3144/* end confdefs.h. */ 3145$4 3146int 3147main () 3148{ 3149if (sizeof (($2))) 3150 return 0; 3151 ; 3152 return 0; 3153} 3154_ACEOF 3155if ac_fn_c_try_compile "$LINENO"; then : 3156 3157else 3158 eval "$3=yes" 3159fi 3160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3161fi 3162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3163fi 3164eval ac_res=\$$3 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3166$as_echo "$ac_res" >&6; } 3167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3168 3169} # ac_fn_c_check_type 3170 3171# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 3172# ---------------------------------------------------- 3173# Tries to find if the field MEMBER exists in type AGGR, after including 3174# INCLUDES, setting cache variable VAR accordingly. 3175ac_fn_c_check_member () 3176{ 3177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 3179$as_echo_n "checking for $2.$3... " >&6; } 3180if eval \${$4+:} false; then : 3181 $as_echo_n "(cached) " >&6 3182else 3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3184/* end confdefs.h. */ 3185$5 3186int 3187main () 3188{ 3189static $2 ac_aggr; 3190if (ac_aggr.$3) 3191return 0; 3192 ; 3193 return 0; 3194} 3195_ACEOF 3196if ac_fn_c_try_compile "$LINENO"; then : 3197 eval "$4=yes" 3198else 3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3200/* end confdefs.h. */ 3201$5 3202int 3203main () 3204{ 3205static $2 ac_aggr; 3206if (sizeof ac_aggr.$3) 3207return 0; 3208 ; 3209 return 0; 3210} 3211_ACEOF 3212if ac_fn_c_try_compile "$LINENO"; then : 3213 eval "$4=yes" 3214else 3215 eval "$4=no" 3216fi 3217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3218fi 3219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3220fi 3221eval ac_res=\$$4 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3223$as_echo "$ac_res" >&6; } 3224 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3225 3226} # ac_fn_c_check_member 3227cat >config.log <<_ACEOF 3228This file contains any messages produced by compilers while 3229running configure, to aid debugging if configure makes a mistake. 3230 3231It was created by GNU Libidn $as_me 1.35, which was 3232generated by GNU Autoconf 2.69. Invocation command line was 3233 3234 $ $0 $@ 3235 3236_ACEOF 3237exec 5>>config.log 3238{ 3239cat <<_ASUNAME 3240## --------- ## 3241## Platform. ## 3242## --------- ## 3243 3244hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3245uname -m = `(uname -m) 2>/dev/null || echo unknown` 3246uname -r = `(uname -r) 2>/dev/null || echo unknown` 3247uname -s = `(uname -s) 2>/dev/null || echo unknown` 3248uname -v = `(uname -v) 2>/dev/null || echo unknown` 3249 3250/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3251/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3252 3253/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3254/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3255/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3256/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3257/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3258/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3259/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3260 3261_ASUNAME 3262 3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3264for as_dir in $PATH 3265do 3266 IFS=$as_save_IFS 3267 test -z "$as_dir" && as_dir=. 3268 $as_echo "PATH: $as_dir" 3269 done 3270IFS=$as_save_IFS 3271 3272} >&5 3273 3274cat >&5 <<_ACEOF 3275 3276 3277## ----------- ## 3278## Core tests. ## 3279## ----------- ## 3280 3281_ACEOF 3282 3283 3284# Keep a trace of the command line. 3285# Strip out --no-create and --no-recursion so they do not pile up. 3286# Strip out --silent because we don't want to record it for future runs. 3287# Also quote any args containing shell meta-characters. 3288# Make two passes to allow for proper duplicate-argument suppression. 3289ac_configure_args= 3290ac_configure_args0= 3291ac_configure_args1= 3292ac_must_keep_next=false 3293for ac_pass in 1 2 3294do 3295 for ac_arg 3296 do 3297 case $ac_arg in 3298 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3300 | -silent | --silent | --silen | --sile | --sil) 3301 continue ;; 3302 *\'*) 3303 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3304 esac 3305 case $ac_pass in 3306 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3307 2) 3308 as_fn_append ac_configure_args1 " '$ac_arg'" 3309 if test $ac_must_keep_next = true; then 3310 ac_must_keep_next=false # Got value, back to normal. 3311 else 3312 case $ac_arg in 3313 *=* | --config-cache | -C | -disable-* | --disable-* \ 3314 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3315 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3316 | -with-* | --with-* | -without-* | --without-* | --x) 3317 case "$ac_configure_args0 " in 3318 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3319 esac 3320 ;; 3321 -* ) ac_must_keep_next=true ;; 3322 esac 3323 fi 3324 as_fn_append ac_configure_args " '$ac_arg'" 3325 ;; 3326 esac 3327 done 3328done 3329{ ac_configure_args0=; unset ac_configure_args0;} 3330{ ac_configure_args1=; unset ac_configure_args1;} 3331 3332# When interrupted or exit'd, cleanup temporary files, and complete 3333# config.log. We remove comments because anyway the quotes in there 3334# would cause problems or look ugly. 3335# WARNING: Use '\'' to represent an apostrophe within the trap. 3336# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3337trap 'exit_status=$? 3338 # Save into config.log some information that might help in debugging. 3339 { 3340 echo 3341 3342 $as_echo "## ---------------- ## 3343## Cache variables. ## 3344## ---------------- ##" 3345 echo 3346 # The following way of writing the cache mishandles newlines in values, 3347( 3348 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3349 eval ac_val=\$$ac_var 3350 case $ac_val in #( 3351 *${as_nl}*) 3352 case $ac_var in #( 3353 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3354$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3355 esac 3356 case $ac_var in #( 3357 _ | IFS | as_nl) ;; #( 3358 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3359 *) { eval $ac_var=; unset $ac_var;} ;; 3360 esac ;; 3361 esac 3362 done 3363 (set) 2>&1 | 3364 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3365 *${as_nl}ac_space=\ *) 3366 sed -n \ 3367 "s/'\''/'\''\\\\'\'''\''/g; 3368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3369 ;; #( 3370 *) 3371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3372 ;; 3373 esac | 3374 sort 3375) 3376 echo 3377 3378 $as_echo "## ----------------- ## 3379## Output variables. ## 3380## ----------------- ##" 3381 echo 3382 for ac_var in $ac_subst_vars 3383 do 3384 eval ac_val=\$$ac_var 3385 case $ac_val in 3386 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3387 esac 3388 $as_echo "$ac_var='\''$ac_val'\''" 3389 done | sort 3390 echo 3391 3392 if test -n "$ac_subst_files"; then 3393 $as_echo "## ------------------- ## 3394## File substitutions. ## 3395## ------------------- ##" 3396 echo 3397 for ac_var in $ac_subst_files 3398 do 3399 eval ac_val=\$$ac_var 3400 case $ac_val in 3401 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3402 esac 3403 $as_echo "$ac_var='\''$ac_val'\''" 3404 done | sort 3405 echo 3406 fi 3407 3408 if test -s confdefs.h; then 3409 $as_echo "## ----------- ## 3410## confdefs.h. ## 3411## ----------- ##" 3412 echo 3413 cat confdefs.h 3414 echo 3415 fi 3416 test "$ac_signal" != 0 && 3417 $as_echo "$as_me: caught signal $ac_signal" 3418 $as_echo "$as_me: exit $exit_status" 3419 } >&5 3420 rm -f core *.core core.conftest.* && 3421 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3422 exit $exit_status 3423' 0 3424for ac_signal in 1 2 13 15; do 3425 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3426done 3427ac_signal=0 3428 3429# confdefs.h avoids OS command line length limits that DEFS can exceed. 3430rm -f -r conftest* confdefs.h 3431 3432$as_echo "/* confdefs.h */" > confdefs.h 3433 3434# Predefined preprocessor variables. 3435 3436cat >>confdefs.h <<_ACEOF 3437#define PACKAGE_NAME "$PACKAGE_NAME" 3438_ACEOF 3439 3440cat >>confdefs.h <<_ACEOF 3441#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3442_ACEOF 3443 3444cat >>confdefs.h <<_ACEOF 3445#define PACKAGE_VERSION "$PACKAGE_VERSION" 3446_ACEOF 3447 3448cat >>confdefs.h <<_ACEOF 3449#define PACKAGE_STRING "$PACKAGE_STRING" 3450_ACEOF 3451 3452cat >>confdefs.h <<_ACEOF 3453#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3454_ACEOF 3455 3456cat >>confdefs.h <<_ACEOF 3457#define PACKAGE_URL "$PACKAGE_URL" 3458_ACEOF 3459 3460 3461# Let the site file select an alternate cache file if it wants to. 3462# Prefer an explicitly selected file to automatically selected ones. 3463ac_site_file1=NONE 3464ac_site_file2=NONE 3465if test -n "$CONFIG_SITE"; then 3466 # We do not want a PATH search for config.site. 3467 case $CONFIG_SITE in #(( 3468 -*) ac_site_file1=./$CONFIG_SITE;; 3469 */*) ac_site_file1=$CONFIG_SITE;; 3470 *) ac_site_file1=./$CONFIG_SITE;; 3471 esac 3472elif test "x$prefix" != xNONE; then 3473 ac_site_file1=$prefix/share/config.site 3474 ac_site_file2=$prefix/etc/config.site 3475else 3476 ac_site_file1=$ac_default_prefix/share/config.site 3477 ac_site_file2=$ac_default_prefix/etc/config.site 3478fi 3479for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3480do 3481 test "x$ac_site_file" = xNONE && continue 3482 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3484$as_echo "$as_me: loading site script $ac_site_file" >&6;} 3485 sed 's/^/| /' "$ac_site_file" >&5 3486 . "$ac_site_file" \ 3487 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3489as_fn_error $? "failed to load site script $ac_site_file 3490See \`config.log' for more details" "$LINENO" 5; } 3491 fi 3492done 3493 3494if test -r "$cache_file"; then 3495 # Some versions of bash will fail to source /dev/null (special files 3496 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3497 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3499$as_echo "$as_me: loading cache $cache_file" >&6;} 3500 case $cache_file in 3501 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3502 *) . "./$cache_file";; 3503 esac 3504 fi 3505else 3506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3507$as_echo "$as_me: creating cache $cache_file" >&6;} 3508 >$cache_file 3509fi 3510 3511gt_needs="$gt_needs " 3512as_fn_append ac_func_list " getdelim" 3513gl_getopt_required=GNU 3514as_fn_append ac_header_list " getopt.h" 3515as_fn_append ac_header_list " sys/cdefs.h" 3516as_fn_append ac_func_list " getprogname" 3517as_fn_append ac_func_list " getexecname" 3518as_fn_append ac_header_list " limits.h" 3519as_fn_append ac_func_list " _set_invalid_parameter_handler" 3520as_fn_append ac_header_list " wchar.h" 3521as_fn_append ac_header_list " stdint.h" 3522as_fn_append ac_func_list " strerror_r" 3523as_fn_append ac_func_list " __xpg_strerror_r" 3524as_fn_append ac_header_list " sys/socket.h" 3525as_fn_append ac_header_list " unistd.h" 3526as_fn_append ac_header_list " arpa/inet.h" 3527as_fn_append ac_header_list " features.h" 3528as_fn_append ac_func_list " fcntl" 3529as_fn_append ac_func_list " symlink" 3530as_fn_append ac_header_list " sys/stat.h" 3531as_fn_append ac_func_list " ftruncate" 3532as_fn_append ac_func_list " getdtablesize" 3533as_fn_append ac_header_list " sys/time.h" 3534as_fn_append ac_func_list " gettimeofday" 3535as_fn_append ac_header_list " netdb.h" 3536as_fn_append ac_header_list " netinet/in.h" 3537as_fn_append ac_header_list " inttypes.h" 3538as_fn_append ac_func_list " isblank" 3539as_fn_append ac_header_list " semaphore.h" 3540as_fn_append ac_func_list " lstat" 3541as_fn_append ac_header_list " sys/select.h" 3542as_fn_append ac_header_list " sys/param.h" 3543as_fn_append ac_func_list " pipe" 3544as_fn_append ac_func_list " pthread_sigmask" 3545as_fn_append ac_header_list " sys/wait.h" 3546as_fn_append ac_func_list " setenv" 3547as_fn_append ac_func_list " sigaction" 3548as_fn_append ac_func_list " sigaltstack" 3549as_fn_append ac_func_list " siginterrupt" 3550as_fn_append ac_func_list " sleep" 3551as_fn_append ac_func_list " catgets" 3552as_fn_append ac_func_list " snprintf" 3553as_fn_append ac_header_list " sys/ioctl.h" 3554as_fn_append ac_func_list " shutdown" 3555as_fn_append ac_header_list " sys/uio.h" 3556as_fn_append ac_func_list " usleep" 3557as_fn_append ac_header_list " crtdefs.h" 3558as_fn_append ac_header_list " iconv.h" 3559as_fn_append ac_header_list " langinfo.h" 3560as_fn_append ac_header_list " xlocale.h" 3561as_fn_append ac_func_list " newlocale" 3562# Check that the precious variables saved in the cache have kept the same 3563# value. 3564ac_cache_corrupted=false 3565for ac_var in $ac_precious_vars; do 3566 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3567 eval ac_new_set=\$ac_env_${ac_var}_set 3568 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3569 eval ac_new_val=\$ac_env_${ac_var}_value 3570 case $ac_old_set,$ac_new_set in 3571 set,) 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3573$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3574 ac_cache_corrupted=: ;; 3575 ,set) 3576 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3577$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3578 ac_cache_corrupted=: ;; 3579 ,);; 3580 *) 3581 if test "x$ac_old_val" != "x$ac_new_val"; then 3582 # differences in whitespace do not lead to failure. 3583 ac_old_val_w=`echo x $ac_old_val` 3584 ac_new_val_w=`echo x $ac_new_val` 3585 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3587$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3588 ac_cache_corrupted=: 3589 else 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3591$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3592 eval $ac_var=\$ac_old_val 3593 fi 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3595$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3596 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3597$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3598 fi;; 3599 esac 3600 # Pass precious variables to config.status. 3601 if test "$ac_new_set" = set; then 3602 case $ac_new_val in 3603 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3604 *) ac_arg=$ac_var=$ac_new_val ;; 3605 esac 3606 case " $ac_configure_args " in 3607 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3608 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3609 esac 3610 fi 3611done 3612if $ac_cache_corrupted; then 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3616$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3617 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3618fi 3619## -------------------- ## 3620## Main body of script. ## 3621## -------------------- ## 3622 3623ac_ext=c 3624ac_cpp='$CPP $CPPFLAGS' 3625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3627ac_compiler_gnu=$ac_cv_c_compiler_gnu 3628 3629 3630ac_aux_dir= 3631for ac_dir in build-aux "$srcdir"/build-aux; do 3632 if test -f "$ac_dir/install-sh"; then 3633 ac_aux_dir=$ac_dir 3634 ac_install_sh="$ac_aux_dir/install-sh -c" 3635 break 3636 elif test -f "$ac_dir/install.sh"; then 3637 ac_aux_dir=$ac_dir 3638 ac_install_sh="$ac_aux_dir/install.sh -c" 3639 break 3640 elif test -f "$ac_dir/shtool"; then 3641 ac_aux_dir=$ac_dir 3642 ac_install_sh="$ac_aux_dir/shtool install -c" 3643 break 3644 fi 3645done 3646if test -z "$ac_aux_dir"; then 3647 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 3648fi 3649 3650# These three variables are undocumented and unsupported, 3651# and are intended to be withdrawn in a future Autoconf release. 3652# They can cause serious problems if a builder's source tree is in a directory 3653# whose full name contains unusual characters. 3654ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3655ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3656ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3657 3658 3659 3660ac_config_headers="$ac_config_headers config.h" 3661 3662am__api_version='1.15' 3663 3664# Find a good install program. We prefer a C program (faster), 3665# so one script is as good as another. But avoid the broken or 3666# incompatible versions: 3667# SysV /etc/install, /usr/sbin/install 3668# SunOS /usr/etc/install 3669# IRIX /sbin/install 3670# AIX /bin/install 3671# AmigaOS /C/install, which installs bootblocks on floppy discs 3672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3673# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3675# OS/2's system install, which has a completely different semantic 3676# ./install, which can be erroneously created by make from ./install.sh. 3677# Reject install programs that cannot install multiple files. 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3679$as_echo_n "checking for a BSD-compatible install... " >&6; } 3680if test -z "$INSTALL"; then 3681if ${ac_cv_path_install+:} false; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3685for as_dir in $PATH 3686do 3687 IFS=$as_save_IFS 3688 test -z "$as_dir" && as_dir=. 3689 # Account for people who put trailing slashes in PATH elements. 3690case $as_dir/ in #(( 3691 ./ | .// | /[cC]/* | \ 3692 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3693 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3694 /usr/ucb/* ) ;; 3695 *) 3696 # OSF1 and SCO ODT 3.0 have their own names for install. 3697 # Don't use installbsd from OSF since it installs stuff as root 3698 # by default. 3699 for ac_prog in ginstall scoinst install; do 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3702 if test $ac_prog = install && 3703 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3704 # AIX install. It has an incompatible calling convention. 3705 : 3706 elif test $ac_prog = install && 3707 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3708 # program-specific install script used by HP pwplus--don't use. 3709 : 3710 else 3711 rm -rf conftest.one conftest.two conftest.dir 3712 echo one > conftest.one 3713 echo two > conftest.two 3714 mkdir conftest.dir 3715 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3716 test -s conftest.one && test -s conftest.two && 3717 test -s conftest.dir/conftest.one && 3718 test -s conftest.dir/conftest.two 3719 then 3720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3721 break 3 3722 fi 3723 fi 3724 fi 3725 done 3726 done 3727 ;; 3728esac 3729 3730 done 3731IFS=$as_save_IFS 3732 3733rm -rf conftest.one conftest.two conftest.dir 3734 3735fi 3736 if test "${ac_cv_path_install+set}" = set; then 3737 INSTALL=$ac_cv_path_install 3738 else 3739 # As a last resort, use the slow shell script. Don't cache a 3740 # value for INSTALL within a source directory, because that will 3741 # break other packages using the cache if that directory is 3742 # removed, or if the value is a relative name. 3743 INSTALL=$ac_install_sh 3744 fi 3745fi 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3747$as_echo "$INSTALL" >&6; } 3748 3749# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3750# It thinks the first close brace ends the variable substitution. 3751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3752 3753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3754 3755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3756 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3758$as_echo_n "checking whether build environment is sane... " >&6; } 3759# Reject unsafe characters in $srcdir or the absolute working directory 3760# name. Accept space and tab only in the latter. 3761am_lf=' 3762' 3763case `pwd` in 3764 *[\\\"\#\$\&\'\`$am_lf]*) 3765 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3766esac 3767case $srcdir in 3768 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3769 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3770esac 3771 3772# Do 'set' in a subshell so we don't clobber the current shell's 3773# arguments. Must try -L first in case configure is actually a 3774# symlink; some systems play weird games with the mod time of symlinks 3775# (eg FreeBSD returns the mod time of the symlink's containing 3776# directory). 3777if ( 3778 am_has_slept=no 3779 for am_try in 1 2; do 3780 echo "timestamp, slept: $am_has_slept" > conftest.file 3781 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3782 if test "$*" = "X"; then 3783 # -L didn't work. 3784 set X `ls -t "$srcdir/configure" conftest.file` 3785 fi 3786 if test "$*" != "X $srcdir/configure conftest.file" \ 3787 && test "$*" != "X conftest.file $srcdir/configure"; then 3788 3789 # If neither matched, then we have a broken ls. This can happen 3790 # if, for instance, CONFIG_SHELL is bash and it inherits a 3791 # broken ls alias from the environment. This has actually 3792 # happened. Such a system could not be considered "sane". 3793 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3794 alias in your environment" "$LINENO" 5 3795 fi 3796 if test "$2" = conftest.file || test $am_try -eq 2; then 3797 break 3798 fi 3799 # Just in case. 3800 sleep 1 3801 am_has_slept=yes 3802 done 3803 test "$2" = conftest.file 3804 ) 3805then 3806 # Ok. 3807 : 3808else 3809 as_fn_error $? "newly created file is older than distributed files! 3810Check your system clock" "$LINENO" 5 3811fi 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3813$as_echo "yes" >&6; } 3814# If we didn't sleep, we still need to ensure time stamps of config.status and 3815# generated files are strictly newer. 3816am_sleep_pid= 3817if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3818 ( sleep 1 ) & 3819 am_sleep_pid=$! 3820fi 3821 3822rm -f conftest.file 3823 3824test "$program_prefix" != NONE && 3825 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3826# Use a double $ so make ignores it. 3827test "$program_suffix" != NONE && 3828 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3829# Double any \ or $. 3830# By default was `s,x,x', remove it if useless. 3831ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3832program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3833 3834# Expand $ac_aux_dir to an absolute path. 3835am_aux_dir=`cd "$ac_aux_dir" && pwd` 3836 3837if test x"${MISSING+set}" != xset; then 3838 case $am_aux_dir in 3839 *\ * | *\ *) 3840 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3841 *) 3842 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3843 esac 3844fi 3845# Use eval to expand $SHELL 3846if eval "$MISSING --is-lightweight"; then 3847 am_missing_run="$MISSING " 3848else 3849 am_missing_run= 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3851$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3852fi 3853 3854if test x"${install_sh+set}" != xset; then 3855 case $am_aux_dir in 3856 *\ * | *\ *) 3857 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3858 *) 3859 install_sh="\${SHELL} $am_aux_dir/install-sh" 3860 esac 3861fi 3862 3863# Installed binaries are usually stripped using 'strip' when the user 3864# run "make install-strip". However 'strip' might not be the right 3865# tool to use in cross-compilation environments, therefore Automake 3866# will honor the 'STRIP' environment variable to overrule this program. 3867if test "$cross_compiling" != no; then 3868 if test -n "$ac_tool_prefix"; then 3869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3870set dummy ${ac_tool_prefix}strip; ac_word=$2 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3872$as_echo_n "checking for $ac_word... " >&6; } 3873if ${ac_cv_prog_STRIP+:} false; then : 3874 $as_echo_n "(cached) " >&6 3875else 3876 if test -n "$STRIP"; then 3877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3878else 3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3880for as_dir in $PATH 3881do 3882 IFS=$as_save_IFS 3883 test -z "$as_dir" && as_dir=. 3884 for ac_exec_ext in '' $ac_executable_extensions; do 3885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3886 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3888 break 2 3889 fi 3890done 3891 done 3892IFS=$as_save_IFS 3893 3894fi 3895fi 3896STRIP=$ac_cv_prog_STRIP 3897if test -n "$STRIP"; then 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3899$as_echo "$STRIP" >&6; } 3900else 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3902$as_echo "no" >&6; } 3903fi 3904 3905 3906fi 3907if test -z "$ac_cv_prog_STRIP"; then 3908 ac_ct_STRIP=$STRIP 3909 # Extract the first word of "strip", so it can be a program name with args. 3910set dummy strip; ac_word=$2 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3912$as_echo_n "checking for $ac_word... " >&6; } 3913if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3914 $as_echo_n "(cached) " >&6 3915else 3916 if test -n "$ac_ct_STRIP"; then 3917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3918else 3919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3920for as_dir in $PATH 3921do 3922 IFS=$as_save_IFS 3923 test -z "$as_dir" && as_dir=. 3924 for ac_exec_ext in '' $ac_executable_extensions; do 3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3926 ac_cv_prog_ac_ct_STRIP="strip" 3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3928 break 2 3929 fi 3930done 3931 done 3932IFS=$as_save_IFS 3933 3934fi 3935fi 3936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3937if test -n "$ac_ct_STRIP"; then 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3939$as_echo "$ac_ct_STRIP" >&6; } 3940else 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3942$as_echo "no" >&6; } 3943fi 3944 3945 if test "x$ac_ct_STRIP" = x; then 3946 STRIP=":" 3947 else 3948 case $cross_compiling:$ac_tool_warned in 3949yes:) 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3952ac_tool_warned=yes ;; 3953esac 3954 STRIP=$ac_ct_STRIP 3955 fi 3956else 3957 STRIP="$ac_cv_prog_STRIP" 3958fi 3959 3960fi 3961INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3962 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3964$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3965if test -z "$MKDIR_P"; then 3966 if ${ac_cv_path_mkdir+:} false; then : 3967 $as_echo_n "(cached) " >&6 3968else 3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3970for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3971do 3972 IFS=$as_save_IFS 3973 test -z "$as_dir" && as_dir=. 3974 for ac_prog in mkdir gmkdir; do 3975 for ac_exec_ext in '' $ac_executable_extensions; do 3976 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3977 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3978 'mkdir (GNU coreutils) '* | \ 3979 'mkdir (coreutils) '* | \ 3980 'mkdir (fileutils) '4.1*) 3981 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3982 break 3;; 3983 esac 3984 done 3985 done 3986 done 3987IFS=$as_save_IFS 3988 3989fi 3990 3991 test -d ./--version && rmdir ./--version 3992 if test "${ac_cv_path_mkdir+set}" = set; then 3993 MKDIR_P="$ac_cv_path_mkdir -p" 3994 else 3995 # As a last resort, use the slow shell script. Don't cache a 3996 # value for MKDIR_P within a source directory, because that will 3997 # break other packages using the cache if that directory is 3998 # removed, or if the value is a relative name. 3999 MKDIR_P="$ac_install_sh -d" 4000 fi 4001fi 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4003$as_echo "$MKDIR_P" >&6; } 4004 4005for ac_prog in gawk mawk nawk awk 4006do 4007 # Extract the first word of "$ac_prog", so it can be a program name with args. 4008set dummy $ac_prog; ac_word=$2 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4010$as_echo_n "checking for $ac_word... " >&6; } 4011if ${ac_cv_prog_AWK+:} false; then : 4012 $as_echo_n "(cached) " >&6 4013else 4014 if test -n "$AWK"; then 4015 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4016else 4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4018for as_dir in $PATH 4019do 4020 IFS=$as_save_IFS 4021 test -z "$as_dir" && as_dir=. 4022 for ac_exec_ext in '' $ac_executable_extensions; do 4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4024 ac_cv_prog_AWK="$ac_prog" 4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4026 break 2 4027 fi 4028done 4029 done 4030IFS=$as_save_IFS 4031 4032fi 4033fi 4034AWK=$ac_cv_prog_AWK 4035if test -n "$AWK"; then 4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4037$as_echo "$AWK" >&6; } 4038else 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4040$as_echo "no" >&6; } 4041fi 4042 4043 4044 test -n "$AWK" && break 4045done 4046 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4048$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4049set x ${MAKE-make} 4050ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4051if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4052 $as_echo_n "(cached) " >&6 4053else 4054 cat >conftest.make <<\_ACEOF 4055SHELL = /bin/sh 4056all: 4057 @echo '@@@%%%=$(MAKE)=@@@%%%' 4058_ACEOF 4059# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4060case `${MAKE-make} -f conftest.make 2>/dev/null` in 4061 *@@@%%%=?*=@@@%%%*) 4062 eval ac_cv_prog_make_${ac_make}_set=yes;; 4063 *) 4064 eval ac_cv_prog_make_${ac_make}_set=no;; 4065esac 4066rm -f conftest.make 4067fi 4068if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4070$as_echo "yes" >&6; } 4071 SET_MAKE= 4072else 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4074$as_echo "no" >&6; } 4075 SET_MAKE="MAKE=${MAKE-make}" 4076fi 4077 4078rm -rf .tst 2>/dev/null 4079mkdir .tst 2>/dev/null 4080if test -d .tst; then 4081 am__leading_dot=. 4082else 4083 am__leading_dot=_ 4084fi 4085rmdir .tst 2>/dev/null 4086 4087# Check whether --enable-silent-rules was given. 4088if test "${enable_silent_rules+set}" = set; then : 4089 enableval=$enable_silent_rules; 4090fi 4091 4092case $enable_silent_rules in # ((( 4093 yes) AM_DEFAULT_VERBOSITY=0;; 4094 no) AM_DEFAULT_VERBOSITY=1;; 4095 *) AM_DEFAULT_VERBOSITY=1;; 4096esac 4097am_make=${MAKE-make} 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4099$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4100if ${am_cv_make_support_nested_variables+:} false; then : 4101 $as_echo_n "(cached) " >&6 4102else 4103 if $as_echo 'TRUE=$(BAR$(V)) 4104BAR0=false 4105BAR1=true 4106V=1 4107am__doit: 4108 @$(TRUE) 4109.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4110 am_cv_make_support_nested_variables=yes 4111else 4112 am_cv_make_support_nested_variables=no 4113fi 4114fi 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4116$as_echo "$am_cv_make_support_nested_variables" >&6; } 4117if test $am_cv_make_support_nested_variables = yes; then 4118 AM_V='$(V)' 4119 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4120else 4121 AM_V=$AM_DEFAULT_VERBOSITY 4122 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4123fi 4124AM_BACKSLASH='\' 4125 4126if test "`cd $srcdir && pwd`" != "`pwd`"; then 4127 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4128 # is not polluted with repeated "-I." 4129 am__isrc=' -I$(srcdir)' 4130 # test to see if srcdir already configured 4131 if test -f $srcdir/config.status; then 4132 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4133 fi 4134fi 4135 4136# test whether we have cygpath 4137if test -z "$CYGPATH_W"; then 4138 if (cygpath --version) >/dev/null 2>/dev/null; then 4139 CYGPATH_W='cygpath -w' 4140 else 4141 CYGPATH_W=echo 4142 fi 4143fi 4144 4145 4146# Define the identity of the package. 4147 PACKAGE='libidn' 4148 VERSION='1.35' 4149 4150 4151cat >>confdefs.h <<_ACEOF 4152#define PACKAGE "$PACKAGE" 4153_ACEOF 4154 4155 4156cat >>confdefs.h <<_ACEOF 4157#define VERSION "$VERSION" 4158_ACEOF 4159 4160# Some tools Automake needs. 4161 4162ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4163 4164 4165AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4166 4167 4168AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4169 4170 4171AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4172 4173 4174MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4175 4176# For better backward compatibility. To be removed once Automake 1.9.x 4177# dies out for good. For more background, see: 4178# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4179# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4180mkdir_p='$(MKDIR_P)' 4181 4182# We need awk for the "check" target (and possibly the TAP driver). The 4183# system "awk" is bad on some platforms. 4184# Always define AMTAR for backward compatibility. Yes, it's still used 4185# in the wild :-( We should find a proper way to deprecate it ... 4186AMTAR='$${TAR-tar}' 4187 4188 4189# We'll loop over all known methods to create a tar archive until one works. 4190_am_tools='gnutar pax cpio none' 4191 4192am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4193 4194 4195 4196 4197 4198 4199# POSIX will say in a future version that running "rm -f" with no argument 4200# is OK; and we want to be able to make that assumption in our Makefile 4201# recipes. So use an aggressive probe to check that the usage we want is 4202# actually supported "in the wild" to an acceptable degree. 4203# See automake bug#10828. 4204# To make any issue more visible, cause the running configure to be aborted 4205# by default if the 'rm' program in use doesn't match our expectations; the 4206# user can still override this though. 4207if rm -f && rm -fr && rm -rf; then : OK; else 4208 cat >&2 <<'END' 4209Oops! 4210 4211Your 'rm' program seems unable to run without file operands specified 4212on the command line, even when the '-f' option is present. This is contrary 4213to the behaviour of most rm programs out there, and not conforming with 4214the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4215 4216Please tell bug-automake@gnu.org about your system, including the value 4217of your $PATH and any error possibly output before this message. This 4218can help us improve future automake versions. 4219 4220END 4221 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4222 echo 'Configuration will proceed anyway, since you have set the' >&2 4223 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4224 echo >&2 4225 else 4226 cat >&2 <<'END' 4227Aborting the configuration process, to ensure you take notice of the issue. 4228 4229You can download and install GNU coreutils to get an 'rm' implementation 4230that behaves properly: <http://www.gnu.org/software/coreutils/>. 4231 4232If you want to complete the configuration process using your problematic 4233'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4234to "yes", and re-run configure. 4235 4236END 4237 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4238 fi 4239fi 4240 4241# Check whether --enable-silent-rules was given. 4242if test "${enable_silent_rules+set}" = set; then : 4243 enableval=$enable_silent_rules; 4244fi 4245 4246case $enable_silent_rules in # ((( 4247 yes) AM_DEFAULT_VERBOSITY=0;; 4248 no) AM_DEFAULT_VERBOSITY=1;; 4249 *) AM_DEFAULT_VERBOSITY=0;; 4250esac 4251am_make=${MAKE-make} 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4253$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4254if ${am_cv_make_support_nested_variables+:} false; then : 4255 $as_echo_n "(cached) " >&6 4256else 4257 if $as_echo 'TRUE=$(BAR$(V)) 4258BAR0=false 4259BAR1=true 4260V=1 4261am__doit: 4262 @$(TRUE) 4263.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4264 am_cv_make_support_nested_variables=yes 4265else 4266 am_cv_make_support_nested_variables=no 4267fi 4268fi 4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4270$as_echo "$am_cv_make_support_nested_variables" >&6; } 4271if test $am_cv_make_support_nested_variables = yes; then 4272 AM_V='$(V)' 4273 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4274else 4275 AM_V=$AM_DEFAULT_VERBOSITY 4276 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4277fi 4278AM_BACKSLASH='\' 4279 4280 4281# Library code modified: REVISION++ 4282# Interfaces changed/added/removed: CURRENT++ REVISION=0 4283# Interfaces added: AGE++ 4284# Interfaces removed: AGE=0 4285LT_CURRENT=18 4286 4287LT_REVISION=0 4288 4289LT_AGE=6 4290 4291 4292ac_ext=c 4293ac_cpp='$CPP $CPPFLAGS' 4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4296ac_compiler_gnu=$ac_cv_c_compiler_gnu 4297if test -n "$ac_tool_prefix"; then 4298 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4299set dummy ${ac_tool_prefix}gcc; ac_word=$2 4300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4301$as_echo_n "checking for $ac_word... " >&6; } 4302if ${ac_cv_prog_CC+:} false; then : 4303 $as_echo_n "(cached) " >&6 4304else 4305 if test -n "$CC"; then 4306 ac_cv_prog_CC="$CC" # Let the user override the test. 4307else 4308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4309for as_dir in $PATH 4310do 4311 IFS=$as_save_IFS 4312 test -z "$as_dir" && as_dir=. 4313 for ac_exec_ext in '' $ac_executable_extensions; do 4314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4315 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4317 break 2 4318 fi 4319done 4320 done 4321IFS=$as_save_IFS 4322 4323fi 4324fi 4325CC=$ac_cv_prog_CC 4326if test -n "$CC"; then 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4328$as_echo "$CC" >&6; } 4329else 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4331$as_echo "no" >&6; } 4332fi 4333 4334 4335fi 4336if test -z "$ac_cv_prog_CC"; then 4337 ac_ct_CC=$CC 4338 # Extract the first word of "gcc", so it can be a program name with args. 4339set dummy gcc; ac_word=$2 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4341$as_echo_n "checking for $ac_word... " >&6; } 4342if ${ac_cv_prog_ac_ct_CC+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 if test -n "$ac_ct_CC"; then 4346 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4347else 4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4349for as_dir in $PATH 4350do 4351 IFS=$as_save_IFS 4352 test -z "$as_dir" && as_dir=. 4353 for ac_exec_ext in '' $ac_executable_extensions; do 4354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4355 ac_cv_prog_ac_ct_CC="gcc" 4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4357 break 2 4358 fi 4359done 4360 done 4361IFS=$as_save_IFS 4362 4363fi 4364fi 4365ac_ct_CC=$ac_cv_prog_ac_ct_CC 4366if test -n "$ac_ct_CC"; then 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4368$as_echo "$ac_ct_CC" >&6; } 4369else 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4371$as_echo "no" >&6; } 4372fi 4373 4374 if test "x$ac_ct_CC" = x; then 4375 CC="" 4376 else 4377 case $cross_compiling:$ac_tool_warned in 4378yes:) 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4381ac_tool_warned=yes ;; 4382esac 4383 CC=$ac_ct_CC 4384 fi 4385else 4386 CC="$ac_cv_prog_CC" 4387fi 4388 4389if test -z "$CC"; then 4390 if test -n "$ac_tool_prefix"; then 4391 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4392set dummy ${ac_tool_prefix}cc; ac_word=$2 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4394$as_echo_n "checking for $ac_word... " >&6; } 4395if ${ac_cv_prog_CC+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -n "$CC"; then 4399 ac_cv_prog_CC="$CC" # Let the user override the test. 4400else 4401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_exec_ext in '' $ac_executable_extensions; do 4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4408 ac_cv_prog_CC="${ac_tool_prefix}cc" 4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4410 break 2 4411 fi 4412done 4413 done 4414IFS=$as_save_IFS 4415 4416fi 4417fi 4418CC=$ac_cv_prog_CC 4419if test -n "$CC"; then 4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4421$as_echo "$CC" >&6; } 4422else 4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4424$as_echo "no" >&6; } 4425fi 4426 4427 4428 fi 4429fi 4430if test -z "$CC"; then 4431 # Extract the first word of "cc", so it can be a program name with args. 4432set dummy cc; ac_word=$2 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4434$as_echo_n "checking for $ac_word... " >&6; } 4435if ${ac_cv_prog_CC+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 if test -n "$CC"; then 4439 ac_cv_prog_CC="$CC" # Let the user override the test. 4440else 4441 ac_prog_rejected=no 4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4443for as_dir in $PATH 4444do 4445 IFS=$as_save_IFS 4446 test -z "$as_dir" && as_dir=. 4447 for ac_exec_ext in '' $ac_executable_extensions; do 4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4450 ac_prog_rejected=yes 4451 continue 4452 fi 4453 ac_cv_prog_CC="cc" 4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4455 break 2 4456 fi 4457done 4458 done 4459IFS=$as_save_IFS 4460 4461if test $ac_prog_rejected = yes; then 4462 # We found a bogon in the path, so make sure we never use it. 4463 set dummy $ac_cv_prog_CC 4464 shift 4465 if test $# != 0; then 4466 # We chose a different compiler from the bogus one. 4467 # However, it has the same basename, so the bogon will be chosen 4468 # first if we set CC to just the basename; use the full file name. 4469 shift 4470 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4471 fi 4472fi 4473fi 4474fi 4475CC=$ac_cv_prog_CC 4476if test -n "$CC"; then 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4478$as_echo "$CC" >&6; } 4479else 4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4481$as_echo "no" >&6; } 4482fi 4483 4484 4485fi 4486if test -z "$CC"; then 4487 if test -n "$ac_tool_prefix"; then 4488 for ac_prog in cl.exe 4489 do 4490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4491set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4493$as_echo_n "checking for $ac_word... " >&6; } 4494if ${ac_cv_prog_CC+:} false; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 if test -n "$CC"; then 4498 ac_cv_prog_CC="$CC" # Let the user override the test. 4499else 4500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4501for as_dir in $PATH 4502do 4503 IFS=$as_save_IFS 4504 test -z "$as_dir" && as_dir=. 4505 for ac_exec_ext in '' $ac_executable_extensions; do 4506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4507 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4509 break 2 4510 fi 4511done 4512 done 4513IFS=$as_save_IFS 4514 4515fi 4516fi 4517CC=$ac_cv_prog_CC 4518if test -n "$CC"; then 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4520$as_echo "$CC" >&6; } 4521else 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4523$as_echo "no" >&6; } 4524fi 4525 4526 4527 test -n "$CC" && break 4528 done 4529fi 4530if test -z "$CC"; then 4531 ac_ct_CC=$CC 4532 for ac_prog in cl.exe 4533do 4534 # Extract the first word of "$ac_prog", so it can be a program name with args. 4535set dummy $ac_prog; ac_word=$2 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4537$as_echo_n "checking for $ac_word... " >&6; } 4538if ${ac_cv_prog_ac_ct_CC+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 if test -n "$ac_ct_CC"; then 4542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4543else 4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4545for as_dir in $PATH 4546do 4547 IFS=$as_save_IFS 4548 test -z "$as_dir" && as_dir=. 4549 for ac_exec_ext in '' $ac_executable_extensions; do 4550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4551 ac_cv_prog_ac_ct_CC="$ac_prog" 4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4553 break 2 4554 fi 4555done 4556 done 4557IFS=$as_save_IFS 4558 4559fi 4560fi 4561ac_ct_CC=$ac_cv_prog_ac_ct_CC 4562if test -n "$ac_ct_CC"; then 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4564$as_echo "$ac_ct_CC" >&6; } 4565else 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4567$as_echo "no" >&6; } 4568fi 4569 4570 4571 test -n "$ac_ct_CC" && break 4572done 4573 4574 if test "x$ac_ct_CC" = x; then 4575 CC="" 4576 else 4577 case $cross_compiling:$ac_tool_warned in 4578yes:) 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4581ac_tool_warned=yes ;; 4582esac 4583 CC=$ac_ct_CC 4584 fi 4585fi 4586 4587fi 4588 4589 4590test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4592as_fn_error $? "no acceptable C compiler found in \$PATH 4593See \`config.log' for more details" "$LINENO" 5; } 4594 4595# Provide some information about the compiler. 4596$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4597set X $ac_compile 4598ac_compiler=$2 4599for ac_option in --version -v -V -qversion; do 4600 { { ac_try="$ac_compiler $ac_option >&5" 4601case "(($ac_try" in 4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4603 *) ac_try_echo=$ac_try;; 4604esac 4605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4606$as_echo "$ac_try_echo"; } >&5 4607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4608 ac_status=$? 4609 if test -s conftest.err; then 4610 sed '10a\ 4611... rest of stderr output deleted ... 4612 10q' conftest.err >conftest.er1 4613 cat conftest.er1 >&5 4614 fi 4615 rm -f conftest.er1 conftest.err 4616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4617 test $ac_status = 0; } 4618done 4619 4620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4621/* end confdefs.h. */ 4622 4623int 4624main () 4625{ 4626 4627 ; 4628 return 0; 4629} 4630_ACEOF 4631ac_clean_files_save=$ac_clean_files 4632ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4633# Try to create an executable without -o first, disregard a.out. 4634# It will help us diagnose broken compilers, and finding out an intuition 4635# of exeext. 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4637$as_echo_n "checking whether the C compiler works... " >&6; } 4638ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4639 4640# The possible output files: 4641ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4642 4643ac_rmfiles= 4644for ac_file in $ac_files 4645do 4646 case $ac_file in 4647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4648 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4649 esac 4650done 4651rm -f $ac_rmfiles 4652 4653if { { ac_try="$ac_link_default" 4654case "(($ac_try" in 4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4656 *) ac_try_echo=$ac_try;; 4657esac 4658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4659$as_echo "$ac_try_echo"; } >&5 4660 (eval "$ac_link_default") 2>&5 4661 ac_status=$? 4662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4663 test $ac_status = 0; }; then : 4664 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4665# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4666# in a Makefile. We should not override ac_cv_exeext if it was cached, 4667# so that the user can short-circuit this test for compilers unknown to 4668# Autoconf. 4669for ac_file in $ac_files '' 4670do 4671 test -f "$ac_file" || continue 4672 case $ac_file in 4673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4674 ;; 4675 [ab].out ) 4676 # We found the default executable, but exeext='' is most 4677 # certainly right. 4678 break;; 4679 *.* ) 4680 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4681 then :; else 4682 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4683 fi 4684 # We set ac_cv_exeext here because the later test for it is not 4685 # safe: cross compilers may not add the suffix if given an `-o' 4686 # argument, so we may need to know it at that point already. 4687 # Even if this section looks crufty: it has the advantage of 4688 # actually working. 4689 break;; 4690 * ) 4691 break;; 4692 esac 4693done 4694test "$ac_cv_exeext" = no && ac_cv_exeext= 4695 4696else 4697 ac_file='' 4698fi 4699if test -z "$ac_file"; then : 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4701$as_echo "no" >&6; } 4702$as_echo "$as_me: failed program was:" >&5 4703sed 's/^/| /' conftest.$ac_ext >&5 4704 4705{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4707as_fn_error 77 "C compiler cannot create executables 4708See \`config.log' for more details" "$LINENO" 5; } 4709else 4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4711$as_echo "yes" >&6; } 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4714$as_echo_n "checking for C compiler default output file name... " >&6; } 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4716$as_echo "$ac_file" >&6; } 4717ac_exeext=$ac_cv_exeext 4718 4719rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4720ac_clean_files=$ac_clean_files_save 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4722$as_echo_n "checking for suffix of executables... " >&6; } 4723if { { ac_try="$ac_link" 4724case "(($ac_try" in 4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4726 *) ac_try_echo=$ac_try;; 4727esac 4728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4729$as_echo "$ac_try_echo"; } >&5 4730 (eval "$ac_link") 2>&5 4731 ac_status=$? 4732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4733 test $ac_status = 0; }; then : 4734 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4735# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4736# work properly (i.e., refer to `conftest.exe'), while it won't with 4737# `rm'. 4738for ac_file in conftest.exe conftest conftest.*; do 4739 test -f "$ac_file" || continue 4740 case $ac_file in 4741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4743 break;; 4744 * ) break;; 4745 esac 4746done 4747else 4748 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4750as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4751See \`config.log' for more details" "$LINENO" 5; } 4752fi 4753rm -f conftest conftest$ac_cv_exeext 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4755$as_echo "$ac_cv_exeext" >&6; } 4756 4757rm -f conftest.$ac_ext 4758EXEEXT=$ac_cv_exeext 4759ac_exeext=$EXEEXT 4760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4761/* end confdefs.h. */ 4762#include <stdio.h> 4763int 4764main () 4765{ 4766FILE *f = fopen ("conftest.out", "w"); 4767 return ferror (f) || fclose (f) != 0; 4768 4769 ; 4770 return 0; 4771} 4772_ACEOF 4773ac_clean_files="$ac_clean_files conftest.out" 4774# Check that the compiler produces executables we can run. If not, either 4775# the compiler is broken, or we cross compile. 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4777$as_echo_n "checking whether we are cross compiling... " >&6; } 4778if test "$cross_compiling" != yes; then 4779 { { ac_try="$ac_link" 4780case "(($ac_try" in 4781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4782 *) ac_try_echo=$ac_try;; 4783esac 4784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4785$as_echo "$ac_try_echo"; } >&5 4786 (eval "$ac_link") 2>&5 4787 ac_status=$? 4788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4789 test $ac_status = 0; } 4790 if { ac_try='./conftest$ac_cv_exeext' 4791 { { case "(($ac_try" in 4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4793 *) ac_try_echo=$ac_try;; 4794esac 4795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4796$as_echo "$ac_try_echo"; } >&5 4797 (eval "$ac_try") 2>&5 4798 ac_status=$? 4799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4800 test $ac_status = 0; }; }; then 4801 cross_compiling=no 4802 else 4803 if test "$cross_compiling" = maybe; then 4804 cross_compiling=yes 4805 else 4806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4808as_fn_error $? "cannot run C compiled programs. 4809If you meant to cross compile, use \`--host'. 4810See \`config.log' for more details" "$LINENO" 5; } 4811 fi 4812 fi 4813fi 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4815$as_echo "$cross_compiling" >&6; } 4816 4817rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4818ac_clean_files=$ac_clean_files_save 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4820$as_echo_n "checking for suffix of object files... " >&6; } 4821if ${ac_cv_objext+:} false; then : 4822 $as_echo_n "(cached) " >&6 4823else 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4825/* end confdefs.h. */ 4826 4827int 4828main () 4829{ 4830 4831 ; 4832 return 0; 4833} 4834_ACEOF 4835rm -f conftest.o conftest.obj 4836if { { ac_try="$ac_compile" 4837case "(($ac_try" in 4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4839 *) ac_try_echo=$ac_try;; 4840esac 4841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4842$as_echo "$ac_try_echo"; } >&5 4843 (eval "$ac_compile") 2>&5 4844 ac_status=$? 4845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4846 test $ac_status = 0; }; then : 4847 for ac_file in conftest.o conftest.obj conftest.*; do 4848 test -f "$ac_file" || continue; 4849 case $ac_file in 4850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4852 break;; 4853 esac 4854done 4855else 4856 $as_echo "$as_me: failed program was:" >&5 4857sed 's/^/| /' conftest.$ac_ext >&5 4858 4859{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4860$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4861as_fn_error $? "cannot compute suffix of object files: cannot compile 4862See \`config.log' for more details" "$LINENO" 5; } 4863fi 4864rm -f conftest.$ac_cv_objext conftest.$ac_ext 4865fi 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4867$as_echo "$ac_cv_objext" >&6; } 4868OBJEXT=$ac_cv_objext 4869ac_objext=$OBJEXT 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4871$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4872if ${ac_cv_c_compiler_gnu+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4876/* end confdefs.h. */ 4877 4878int 4879main () 4880{ 4881#ifndef __GNUC__ 4882 choke me 4883#endif 4884 4885 ; 4886 return 0; 4887} 4888_ACEOF 4889if ac_fn_c_try_compile "$LINENO"; then : 4890 ac_compiler_gnu=yes 4891else 4892 ac_compiler_gnu=no 4893fi 4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4895ac_cv_c_compiler_gnu=$ac_compiler_gnu 4896 4897fi 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4899$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4900if test $ac_compiler_gnu = yes; then 4901 GCC=yes 4902else 4903 GCC= 4904fi 4905ac_test_CFLAGS=${CFLAGS+set} 4906ac_save_CFLAGS=$CFLAGS 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4908$as_echo_n "checking whether $CC accepts -g... " >&6; } 4909if ${ac_cv_prog_cc_g+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 ac_save_c_werror_flag=$ac_c_werror_flag 4913 ac_c_werror_flag=yes 4914 ac_cv_prog_cc_g=no 4915 CFLAGS="-g" 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4917/* end confdefs.h. */ 4918 4919int 4920main () 4921{ 4922 4923 ; 4924 return 0; 4925} 4926_ACEOF 4927if ac_fn_c_try_compile "$LINENO"; then : 4928 ac_cv_prog_cc_g=yes 4929else 4930 CFLAGS="" 4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932/* end confdefs.h. */ 4933 4934int 4935main () 4936{ 4937 4938 ; 4939 return 0; 4940} 4941_ACEOF 4942if ac_fn_c_try_compile "$LINENO"; then : 4943 4944else 4945 ac_c_werror_flag=$ac_save_c_werror_flag 4946 CFLAGS="-g" 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949 4950int 4951main () 4952{ 4953 4954 ; 4955 return 0; 4956} 4957_ACEOF 4958if ac_fn_c_try_compile "$LINENO"; then : 4959 ac_cv_prog_cc_g=yes 4960fi 4961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4962fi 4963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4964fi 4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4966 ac_c_werror_flag=$ac_save_c_werror_flag 4967fi 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4969$as_echo "$ac_cv_prog_cc_g" >&6; } 4970if test "$ac_test_CFLAGS" = set; then 4971 CFLAGS=$ac_save_CFLAGS 4972elif test $ac_cv_prog_cc_g = yes; then 4973 if test "$GCC" = yes; then 4974 CFLAGS="-g -O2" 4975 else 4976 CFLAGS="-g" 4977 fi 4978else 4979 if test "$GCC" = yes; then 4980 CFLAGS="-O2" 4981 else 4982 CFLAGS= 4983 fi 4984fi 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4986$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4987if ${ac_cv_prog_cc_c89+:} false; then : 4988 $as_echo_n "(cached) " >&6 4989else 4990 ac_cv_prog_cc_c89=no 4991ac_save_CC=$CC 4992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4993/* end confdefs.h. */ 4994#include <stdarg.h> 4995#include <stdio.h> 4996struct stat; 4997/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4998struct buf { int x; }; 4999FILE * (*rcsopen) (struct buf *, struct stat *, int); 5000static char *e (p, i) 5001 char **p; 5002 int i; 5003{ 5004 return p[i]; 5005} 5006static char *f (char * (*g) (char **, int), char **p, ...) 5007{ 5008 char *s; 5009 va_list v; 5010 va_start (v,p); 5011 s = g (p, va_arg (v,int)); 5012 va_end (v); 5013 return s; 5014} 5015 5016/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5017 function prototypes and stuff, but not '\xHH' hex character constants. 5018 These don't provoke an error unfortunately, instead are silently treated 5019 as 'x'. The following induces an error, until -std is added to get 5020 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5021 array size at least. It's necessary to write '\x00'==0 to get something 5022 that's true only with -std. */ 5023int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5024 5025/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5026 inside strings and character constants. */ 5027#define FOO(x) 'x' 5028int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5029 5030int test (int i, double x); 5031struct s1 {int (*f) (int a);}; 5032struct s2 {int (*f) (double a);}; 5033int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5034int argc; 5035char **argv; 5036int 5037main () 5038{ 5039return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5040 ; 5041 return 0; 5042} 5043_ACEOF 5044for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5045 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5046do 5047 CC="$ac_save_CC $ac_arg" 5048 if ac_fn_c_try_compile "$LINENO"; then : 5049 ac_cv_prog_cc_c89=$ac_arg 5050fi 5051rm -f core conftest.err conftest.$ac_objext 5052 test "x$ac_cv_prog_cc_c89" != "xno" && break 5053done 5054rm -f conftest.$ac_ext 5055CC=$ac_save_CC 5056 5057fi 5058# AC_CACHE_VAL 5059case "x$ac_cv_prog_cc_c89" in 5060 x) 5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5062$as_echo "none needed" >&6; } ;; 5063 xno) 5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5065$as_echo "unsupported" >&6; } ;; 5066 *) 5067 CC="$CC $ac_cv_prog_cc_c89" 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5069$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5070esac 5071if test "x$ac_cv_prog_cc_c89" != xno; then : 5072 5073fi 5074 5075ac_ext=c 5076ac_cpp='$CPP $CPPFLAGS' 5077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5079ac_compiler_gnu=$ac_cv_c_compiler_gnu 5080 5081ac_ext=c 5082ac_cpp='$CPP $CPPFLAGS' 5083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5085ac_compiler_gnu=$ac_cv_c_compiler_gnu 5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5087$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5088if ${am_cv_prog_cc_c_o+:} false; then : 5089 $as_echo_n "(cached) " >&6 5090else 5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5092/* end confdefs.h. */ 5093 5094int 5095main () 5096{ 5097 5098 ; 5099 return 0; 5100} 5101_ACEOF 5102 # Make sure it works both with $CC and with simple cc. 5103 # Following AC_PROG_CC_C_O, we do the test twice because some 5104 # compilers refuse to overwrite an existing .o file with -o, 5105 # though they will create one. 5106 am_cv_prog_cc_c_o=yes 5107 for am_i in 1 2; do 5108 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5109 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5110 ac_status=$? 5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5112 (exit $ac_status); } \ 5113 && test -f conftest2.$ac_objext; then 5114 : OK 5115 else 5116 am_cv_prog_cc_c_o=no 5117 break 5118 fi 5119 done 5120 rm -f core conftest* 5121 unset am_i 5122fi 5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5124$as_echo "$am_cv_prog_cc_c_o" >&6; } 5125if test "$am_cv_prog_cc_c_o" != yes; then 5126 # Losing compiler, so override with the script. 5127 # FIXME: It is wrong to rewrite CC. 5128 # But if we don't then we get into trouble of one sort or another. 5129 # A longer-term fix would be to have automake use am__CC in this case, 5130 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5131 CC="$am_aux_dir/compile $CC" 5132fi 5133ac_ext=c 5134ac_cpp='$CPP $CPPFLAGS' 5135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5137ac_compiler_gnu=$ac_cv_c_compiler_gnu 5138 5139DEPDIR="${am__leading_dot}deps" 5140 5141ac_config_commands="$ac_config_commands depfiles" 5142 5143 5144am_make=${MAKE-make} 5145cat > confinc << 'END' 5146am__doit: 5147 @echo this is the am__doit target 5148.PHONY: am__doit 5149END 5150# If we don't find an include directive, just comment out the code. 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 5152$as_echo_n "checking for style of include used by $am_make... " >&6; } 5153am__include="#" 5154am__quote= 5155_am_result=none 5156# First try GNU make style include. 5157echo "include confinc" > confmf 5158# Ignore all kinds of additional output from 'make'. 5159case `$am_make -s -f confmf 2> /dev/null` in #( 5160*the\ am__doit\ target*) 5161 am__include=include 5162 am__quote= 5163 _am_result=GNU 5164 ;; 5165esac 5166# Now try BSD make style include. 5167if test "$am__include" = "#"; then 5168 echo '.include "confinc"' > confmf 5169 case `$am_make -s -f confmf 2> /dev/null` in #( 5170 *the\ am__doit\ target*) 5171 am__include=.include 5172 am__quote="\"" 5173 _am_result=BSD 5174 ;; 5175 esac 5176fi 5177 5178 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 5180$as_echo "$_am_result" >&6; } 5181rm -f confinc confmf 5182 5183# Check whether --enable-dependency-tracking was given. 5184if test "${enable_dependency_tracking+set}" = set; then : 5185 enableval=$enable_dependency_tracking; 5186fi 5187 5188if test "x$enable_dependency_tracking" != xno; then 5189 am_depcomp="$ac_aux_dir/depcomp" 5190 AMDEPBACKSLASH='\' 5191 am__nodep='_no' 5192fi 5193 if test "x$enable_dependency_tracking" != xno; then 5194 AMDEP_TRUE= 5195 AMDEP_FALSE='#' 5196else 5197 AMDEP_TRUE='#' 5198 AMDEP_FALSE= 5199fi 5200 5201 5202 5203depcc="$CC" am_compiler_list= 5204 5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5206$as_echo_n "checking dependency style of $depcc... " >&6; } 5207if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5208 $as_echo_n "(cached) " >&6 5209else 5210 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5211 # We make a subdir and do the tests there. Otherwise we can end up 5212 # making bogus files that we don't know about and never remove. For 5213 # instance it was reported that on HP-UX the gcc test will end up 5214 # making a dummy file named 'D' -- because '-MD' means "put the output 5215 # in D". 5216 rm -rf conftest.dir 5217 mkdir conftest.dir 5218 # Copy depcomp to subdir because otherwise we won't find it if we're 5219 # using a relative directory. 5220 cp "$am_depcomp" conftest.dir 5221 cd conftest.dir 5222 # We will build objects and dependencies in a subdirectory because 5223 # it helps to detect inapplicable dependency modes. For instance 5224 # both Tru64's cc and ICC support -MD to output dependencies as a 5225 # side effect of compilation, but ICC will put the dependencies in 5226 # the current directory while Tru64 will put them in the object 5227 # directory. 5228 mkdir sub 5229 5230 am_cv_CC_dependencies_compiler_type=none 5231 if test "$am_compiler_list" = ""; then 5232 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5233 fi 5234 am__universal=false 5235 case " $depcc " in #( 5236 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5237 esac 5238 5239 for depmode in $am_compiler_list; do 5240 # Setup a source with many dependencies, because some compilers 5241 # like to wrap large dependency lists on column 80 (with \), and 5242 # we should not choose a depcomp mode which is confused by this. 5243 # 5244 # We need to recreate these files for each test, as the compiler may 5245 # overwrite some of them when testing with obscure command lines. 5246 # This happens at least with the AIX C compiler. 5247 : > sub/conftest.c 5248 for i in 1 2 3 4 5 6; do 5249 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5250 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5251 # Solaris 10 /bin/sh. 5252 echo '/* dummy */' > sub/conftst$i.h 5253 done 5254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5255 5256 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5257 # mode. It turns out that the SunPro C++ compiler does not properly 5258 # handle '-M -o', and we need to detect this. Also, some Intel 5259 # versions had trouble with output in subdirs. 5260 am__obj=sub/conftest.${OBJEXT-o} 5261 am__minus_obj="-o $am__obj" 5262 case $depmode in 5263 gcc) 5264 # This depmode causes a compiler race in universal mode. 5265 test "$am__universal" = false || continue 5266 ;; 5267 nosideeffect) 5268 # After this tag, mechanisms are not by side-effect, so they'll 5269 # only be used when explicitly requested. 5270 if test "x$enable_dependency_tracking" = xyes; then 5271 continue 5272 else 5273 break 5274 fi 5275 ;; 5276 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5277 # This compiler won't grok '-c -o', but also, the minuso test has 5278 # not run yet. These depmodes are late enough in the game, and 5279 # so weak that their functioning should not be impacted. 5280 am__obj=conftest.${OBJEXT-o} 5281 am__minus_obj= 5282 ;; 5283 none) break ;; 5284 esac 5285 if depmode=$depmode \ 5286 source=sub/conftest.c object=$am__obj \ 5287 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5288 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5289 >/dev/null 2>conftest.err && 5290 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5291 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5292 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5293 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5294 # icc doesn't choke on unknown options, it will just issue warnings 5295 # or remarks (even with -Werror). So we grep stderr for any message 5296 # that says an option was ignored or not supported. 5297 # When given -MP, icc 7.0 and 7.1 complain thusly: 5298 # icc: Command line warning: ignoring option '-M'; no argument required 5299 # The diagnosis changed in icc 8.0: 5300 # icc: Command line remark: option '-MP' not supported 5301 if (grep 'ignoring option' conftest.err || 5302 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5303 am_cv_CC_dependencies_compiler_type=$depmode 5304 break 5305 fi 5306 fi 5307 done 5308 5309 cd .. 5310 rm -rf conftest.dir 5311else 5312 am_cv_CC_dependencies_compiler_type=none 5313fi 5314 5315fi 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5317$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5318CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5319 5320 if 5321 test "x$enable_dependency_tracking" != xno \ 5322 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5323 am__fastdepCC_TRUE= 5324 am__fastdepCC_FALSE='#' 5325else 5326 am__fastdepCC_TRUE='#' 5327 am__fastdepCC_FALSE= 5328fi 5329 5330 5331 5332ac_ext=c 5333ac_cpp='$CPP $CPPFLAGS' 5334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5336ac_compiler_gnu=$ac_cv_c_compiler_gnu 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5338$as_echo_n "checking how to run the C preprocessor... " >&6; } 5339# On Suns, sometimes $CPP names a directory. 5340if test -n "$CPP" && test -d "$CPP"; then 5341 CPP= 5342fi 5343if test -z "$CPP"; then 5344 if ${ac_cv_prog_CPP+:} false; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 # Double quotes because CPP needs to be expanded 5348 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5349 do 5350 ac_preproc_ok=false 5351for ac_c_preproc_warn_flag in '' yes 5352do 5353 # Use a header file that comes with gcc, so configuring glibc 5354 # with a fresh cross-compiler works. 5355 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5356 # <limits.h> exists even on freestanding compilers. 5357 # On the NeXT, cc -E runs the code through the compiler's parser, 5358 # not just through cpp. "Syntax error" is here to catch this case. 5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5360/* end confdefs.h. */ 5361#ifdef __STDC__ 5362# include <limits.h> 5363#else 5364# include <assert.h> 5365#endif 5366 Syntax error 5367_ACEOF 5368if ac_fn_c_try_cpp "$LINENO"; then : 5369 5370else 5371 # Broken: fails on valid input. 5372continue 5373fi 5374rm -f conftest.err conftest.i conftest.$ac_ext 5375 5376 # OK, works on sane cases. Now check whether nonexistent headers 5377 # can be detected and how. 5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5379/* end confdefs.h. */ 5380#include <ac_nonexistent.h> 5381_ACEOF 5382if ac_fn_c_try_cpp "$LINENO"; then : 5383 # Broken: success on invalid input. 5384continue 5385else 5386 # Passes both tests. 5387ac_preproc_ok=: 5388break 5389fi 5390rm -f conftest.err conftest.i conftest.$ac_ext 5391 5392done 5393# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5394rm -f conftest.i conftest.err conftest.$ac_ext 5395if $ac_preproc_ok; then : 5396 break 5397fi 5398 5399 done 5400 ac_cv_prog_CPP=$CPP 5401 5402fi 5403 CPP=$ac_cv_prog_CPP 5404else 5405 ac_cv_prog_CPP=$CPP 5406fi 5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5408$as_echo "$CPP" >&6; } 5409ac_preproc_ok=false 5410for ac_c_preproc_warn_flag in '' yes 5411do 5412 # Use a header file that comes with gcc, so configuring glibc 5413 # with a fresh cross-compiler works. 5414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5415 # <limits.h> exists even on freestanding compilers. 5416 # On the NeXT, cc -E runs the code through the compiler's parser, 5417 # not just through cpp. "Syntax error" is here to catch this case. 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420#ifdef __STDC__ 5421# include <limits.h> 5422#else 5423# include <assert.h> 5424#endif 5425 Syntax error 5426_ACEOF 5427if ac_fn_c_try_cpp "$LINENO"; then : 5428 5429else 5430 # Broken: fails on valid input. 5431continue 5432fi 5433rm -f conftest.err conftest.i conftest.$ac_ext 5434 5435 # OK, works on sane cases. Now check whether nonexistent headers 5436 # can be detected and how. 5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438/* end confdefs.h. */ 5439#include <ac_nonexistent.h> 5440_ACEOF 5441if ac_fn_c_try_cpp "$LINENO"; then : 5442 # Broken: success on invalid input. 5443continue 5444else 5445 # Passes both tests. 5446ac_preproc_ok=: 5447break 5448fi 5449rm -f conftest.err conftest.i conftest.$ac_ext 5450 5451done 5452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5453rm -f conftest.i conftest.err conftest.$ac_ext 5454if $ac_preproc_ok; then : 5455 5456else 5457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5459as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5460See \`config.log' for more details" "$LINENO" 5; } 5461fi 5462 5463ac_ext=c 5464ac_cpp='$CPP $CPPFLAGS' 5465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5467ac_compiler_gnu=$ac_cv_c_compiler_gnu 5468 5469 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5471$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5472if ${ac_cv_path_GREP+:} false; then : 5473 $as_echo_n "(cached) " >&6 5474else 5475 if test -z "$GREP"; then 5476 ac_path_GREP_found=false 5477 # Loop through the user's path and test for each of PROGNAME-LIST 5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5479for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5480do 5481 IFS=$as_save_IFS 5482 test -z "$as_dir" && as_dir=. 5483 for ac_prog in grep ggrep; do 5484 for ac_exec_ext in '' $ac_executable_extensions; do 5485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5486 as_fn_executable_p "$ac_path_GREP" || continue 5487# Check for GNU ac_path_GREP and select it if it is found. 5488 # Check for GNU $ac_path_GREP 5489case `"$ac_path_GREP" --version 2>&1` in 5490*GNU*) 5491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5492*) 5493 ac_count=0 5494 $as_echo_n 0123456789 >"conftest.in" 5495 while : 5496 do 5497 cat "conftest.in" "conftest.in" >"conftest.tmp" 5498 mv "conftest.tmp" "conftest.in" 5499 cp "conftest.in" "conftest.nl" 5500 $as_echo 'GREP' >> "conftest.nl" 5501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5503 as_fn_arith $ac_count + 1 && ac_count=$as_val 5504 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5505 # Best one so far, save it but keep looking for a better one 5506 ac_cv_path_GREP="$ac_path_GREP" 5507 ac_path_GREP_max=$ac_count 5508 fi 5509 # 10*(2^10) chars as input seems more than enough 5510 test $ac_count -gt 10 && break 5511 done 5512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5513esac 5514 5515 $ac_path_GREP_found && break 3 5516 done 5517 done 5518 done 5519IFS=$as_save_IFS 5520 if test -z "$ac_cv_path_GREP"; then 5521 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5522 fi 5523else 5524 ac_cv_path_GREP=$GREP 5525fi 5526 5527fi 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5529$as_echo "$ac_cv_path_GREP" >&6; } 5530 GREP="$ac_cv_path_GREP" 5531 5532 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5534$as_echo_n "checking for egrep... " >&6; } 5535if ${ac_cv_path_EGREP+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5539 then ac_cv_path_EGREP="$GREP -E" 5540 else 5541 if test -z "$EGREP"; then 5542 ac_path_EGREP_found=false 5543 # Loop through the user's path and test for each of PROGNAME-LIST 5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5545for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5546do 5547 IFS=$as_save_IFS 5548 test -z "$as_dir" && as_dir=. 5549 for ac_prog in egrep; do 5550 for ac_exec_ext in '' $ac_executable_extensions; do 5551 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5552 as_fn_executable_p "$ac_path_EGREP" || continue 5553# Check for GNU ac_path_EGREP and select it if it is found. 5554 # Check for GNU $ac_path_EGREP 5555case `"$ac_path_EGREP" --version 2>&1` in 5556*GNU*) 5557 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5558*) 5559 ac_count=0 5560 $as_echo_n 0123456789 >"conftest.in" 5561 while : 5562 do 5563 cat "conftest.in" "conftest.in" >"conftest.tmp" 5564 mv "conftest.tmp" "conftest.in" 5565 cp "conftest.in" "conftest.nl" 5566 $as_echo 'EGREP' >> "conftest.nl" 5567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5569 as_fn_arith $ac_count + 1 && ac_count=$as_val 5570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5571 # Best one so far, save it but keep looking for a better one 5572 ac_cv_path_EGREP="$ac_path_EGREP" 5573 ac_path_EGREP_max=$ac_count 5574 fi 5575 # 10*(2^10) chars as input seems more than enough 5576 test $ac_count -gt 10 && break 5577 done 5578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5579esac 5580 5581 $ac_path_EGREP_found && break 3 5582 done 5583 done 5584 done 5585IFS=$as_save_IFS 5586 if test -z "$ac_cv_path_EGREP"; then 5587 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5588 fi 5589else 5590 ac_cv_path_EGREP=$EGREP 5591fi 5592 5593 fi 5594fi 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5596$as_echo "$ac_cv_path_EGREP" >&6; } 5597 EGREP="$ac_cv_path_EGREP" 5598 5599 5600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5601$as_echo_n "checking for ANSI C header files... " >&6; } 5602if ${ac_cv_header_stdc+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607#include <stdlib.h> 5608#include <stdarg.h> 5609#include <string.h> 5610#include <float.h> 5611 5612int 5613main () 5614{ 5615 5616 ; 5617 return 0; 5618} 5619_ACEOF 5620if ac_fn_c_try_compile "$LINENO"; then : 5621 ac_cv_header_stdc=yes 5622else 5623 ac_cv_header_stdc=no 5624fi 5625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5626 5627if test $ac_cv_header_stdc = yes; then 5628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5630/* end confdefs.h. */ 5631#include <string.h> 5632 5633_ACEOF 5634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5635 $EGREP "memchr" >/dev/null 2>&1; then : 5636 5637else 5638 ac_cv_header_stdc=no 5639fi 5640rm -f conftest* 5641 5642fi 5643 5644if test $ac_cv_header_stdc = yes; then 5645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647/* end confdefs.h. */ 5648#include <stdlib.h> 5649 5650_ACEOF 5651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5652 $EGREP "free" >/dev/null 2>&1; then : 5653 5654else 5655 ac_cv_header_stdc=no 5656fi 5657rm -f conftest* 5658 5659fi 5660 5661if test $ac_cv_header_stdc = yes; then 5662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5663 if test "$cross_compiling" = yes; then : 5664 : 5665else 5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5667/* end confdefs.h. */ 5668#include <ctype.h> 5669#include <stdlib.h> 5670#if ((' ' & 0x0FF) == 0x020) 5671# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5672# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5673#else 5674# define ISLOWER(c) \ 5675 (('a' <= (c) && (c) <= 'i') \ 5676 || ('j' <= (c) && (c) <= 'r') \ 5677 || ('s' <= (c) && (c) <= 'z')) 5678# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5679#endif 5680 5681#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5682int 5683main () 5684{ 5685 int i; 5686 for (i = 0; i < 256; i++) 5687 if (XOR (islower (i), ISLOWER (i)) 5688 || toupper (i) != TOUPPER (i)) 5689 return 2; 5690 return 0; 5691} 5692_ACEOF 5693if ac_fn_c_try_run "$LINENO"; then : 5694 5695else 5696 ac_cv_header_stdc=no 5697fi 5698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5699 conftest.$ac_objext conftest.beam conftest.$ac_ext 5700fi 5701 5702fi 5703fi 5704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5705$as_echo "$ac_cv_header_stdc" >&6; } 5706if test $ac_cv_header_stdc = yes; then 5707 5708$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5709 5710fi 5711 5712# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5713for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5714 inttypes.h stdint.h unistd.h 5715do : 5716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5717ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5718" 5719if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5720 cat >>confdefs.h <<_ACEOF 5721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5722_ACEOF 5723 5724fi 5725 5726done 5727 5728 5729 5730 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5731if test "x$ac_cv_header_minix_config_h" = xyes; then : 5732 MINIX=yes 5733else 5734 MINIX= 5735fi 5736 5737 5738 if test "$MINIX" = yes; then 5739 5740$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5741 5742 5743$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5744 5745 5746$as_echo "#define _MINIX 1" >>confdefs.h 5747 5748 5749$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 5750 5751 fi 5752 5753 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5755$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5756if ${ac_cv_safe_to_define___extensions__+:} false; then : 5757 $as_echo_n "(cached) " >&6 5758else 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761 5762# define __EXTENSIONS__ 1 5763 $ac_includes_default 5764int 5765main () 5766{ 5767 5768 ; 5769 return 0; 5770} 5771_ACEOF 5772if ac_fn_c_try_compile "$LINENO"; then : 5773 ac_cv_safe_to_define___extensions__=yes 5774else 5775 ac_cv_safe_to_define___extensions__=no 5776fi 5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5778fi 5779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5780$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5781 test $ac_cv_safe_to_define___extensions__ = yes && 5782 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5783 5784 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5785 5786 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5787 5788 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5789 5790 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 5791 5792 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h 5793 5794 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5795 5796 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5797 5798 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5799 5800 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5801 5802 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5803 5804 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5805 5806 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5807 5808 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5809 5810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5811 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5813$as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5814if ${ac_cv_should_define__xopen_source+:} false; then : 5815 $as_echo_n "(cached) " >&6 5816else 5817 ac_cv_should_define__xopen_source=no 5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5819/* end confdefs.h. */ 5820 5821 #include <wchar.h> 5822 mbstate_t x; 5823int 5824main () 5825{ 5826 5827 ; 5828 return 0; 5829} 5830_ACEOF 5831if ac_fn_c_try_compile "$LINENO"; then : 5832 5833else 5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836 5837 #define _XOPEN_SOURCE 500 5838 #include <wchar.h> 5839 mbstate_t x; 5840int 5841main () 5842{ 5843 5844 ; 5845 return 0; 5846} 5847_ACEOF 5848if ac_fn_c_try_compile "$LINENO"; then : 5849 ac_cv_should_define__xopen_source=yes 5850fi 5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5852fi 5853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5854fi 5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5856$as_echo "$ac_cv_should_define__xopen_source" >&6; } 5857 test $ac_cv_should_define__xopen_source = yes && 5858 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 5859 5860 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 5873$as_echo_n "checking for Minix Amsterdam compiler... " >&6; } 5874if ${gl_cv_c_amsterdam_compiler+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879/* end confdefs.h. */ 5880 5881#ifdef __ACK__ 5882Amsterdam 5883#endif 5884 5885_ACEOF 5886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5887 $EGREP "Amsterdam" >/dev/null 2>&1; then : 5888 gl_cv_c_amsterdam_compiler=yes 5889else 5890 gl_cv_c_amsterdam_compiler=no 5891fi 5892rm -f conftest* 5893 5894 5895fi 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 5897$as_echo "$gl_cv_c_amsterdam_compiler" >&6; } 5898 5899 if test $gl_cv_c_amsterdam_compiler = yes; then 5900 if test -z "$AR"; then 5901 AR='cc -c.a' 5902 fi 5903 if test -z "$ARFLAGS"; then 5904 ARFLAGS='-o' 5905 fi 5906 else 5907 if test -n "$ac_tool_prefix"; then 5908 for ac_prog in ar lib "link -lib" 5909 do 5910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5911set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5913$as_echo_n "checking for $ac_word... " >&6; } 5914if ${ac_cv_prog_AR+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916else 5917 if test -n "$AR"; then 5918 ac_cv_prog_AR="$AR" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5927 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5929 break 2 5930 fi 5931done 5932 done 5933IFS=$as_save_IFS 5934 5935fi 5936fi 5937AR=$ac_cv_prog_AR 5938if test -n "$AR"; then 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5940$as_echo "$AR" >&6; } 5941else 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5943$as_echo "no" >&6; } 5944fi 5945 5946 5947 test -n "$AR" && break 5948 done 5949fi 5950if test -z "$AR"; then 5951 ac_ct_AR=$AR 5952 for ac_prog in ar lib "link -lib" 5953do 5954 # Extract the first word of "$ac_prog", so it can be a program name with args. 5955set dummy $ac_prog; ac_word=$2 5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5957$as_echo_n "checking for $ac_word... " >&6; } 5958if ${ac_cv_prog_ac_ct_AR+:} false; then : 5959 $as_echo_n "(cached) " >&6 5960else 5961 if test -n "$ac_ct_AR"; then 5962 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5963else 5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5965for as_dir in $PATH 5966do 5967 IFS=$as_save_IFS 5968 test -z "$as_dir" && as_dir=. 5969 for ac_exec_ext in '' $ac_executable_extensions; do 5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5971 ac_cv_prog_ac_ct_AR="$ac_prog" 5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5973 break 2 5974 fi 5975done 5976 done 5977IFS=$as_save_IFS 5978 5979fi 5980fi 5981ac_ct_AR=$ac_cv_prog_ac_ct_AR 5982if test -n "$ac_ct_AR"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5984$as_echo "$ac_ct_AR" >&6; } 5985else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5987$as_echo "no" >&6; } 5988fi 5989 5990 5991 test -n "$ac_ct_AR" && break 5992done 5993 5994 if test "x$ac_ct_AR" = x; then 5995 AR="false" 5996 else 5997 case $cross_compiling:$ac_tool_warned in 5998yes:) 5999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6001ac_tool_warned=yes ;; 6002esac 6003 AR=$ac_ct_AR 6004 fi 6005fi 6006 6007: ${AR=ar} 6008 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 6010$as_echo_n "checking the archiver ($AR) interface... " >&6; } 6011if ${am_cv_ar_interface+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013else 6014 ac_ext=c 6015ac_cpp='$CPP $CPPFLAGS' 6016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6018ac_compiler_gnu=$ac_cv_c_compiler_gnu 6019 6020 am_cv_ar_interface=ar 6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6022/* end confdefs.h. */ 6023int some_variable = 0; 6024_ACEOF 6025if ac_fn_c_try_compile "$LINENO"; then : 6026 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 6027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6028 (eval $am_ar_try) 2>&5 6029 ac_status=$? 6030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6031 test $ac_status = 0; } 6032 if test "$ac_status" -eq 0; then 6033 am_cv_ar_interface=ar 6034 else 6035 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 6036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 6037 (eval $am_ar_try) 2>&5 6038 ac_status=$? 6039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6040 test $ac_status = 0; } 6041 if test "$ac_status" -eq 0; then 6042 am_cv_ar_interface=lib 6043 else 6044 am_cv_ar_interface=unknown 6045 fi 6046 fi 6047 rm -f conftest.lib libconftest.a 6048 6049fi 6050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6051 ac_ext=c 6052ac_cpp='$CPP $CPPFLAGS' 6053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6055ac_compiler_gnu=$ac_cv_c_compiler_gnu 6056 6057fi 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 6059$as_echo "$am_cv_ar_interface" >&6; } 6060 6061case $am_cv_ar_interface in 6062ar) 6063 ;; 6064lib) 6065 # Microsoft lib, so override with the ar-lib wrapper script. 6066 # FIXME: It is wrong to rewrite AR. 6067 # But if we don't then we get into trouble of one sort or another. 6068 # A longer-term fix would be to have automake use am__AR in this case, 6069 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 6070 # similar. 6071 AR="$am_aux_dir/ar-lib $AR" 6072 ;; 6073unknown) 6074 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 6075 ;; 6076esac 6077 6078 fi 6079 6080 if test -n "$ac_tool_prefix"; then 6081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6082set dummy ${ac_tool_prefix}ar; ac_word=$2 6083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6084$as_echo_n "checking for $ac_word... " >&6; } 6085if ${ac_cv_prog_AR+:} false; then : 6086 $as_echo_n "(cached) " >&6 6087else 6088 if test -n "$AR"; then 6089 ac_cv_prog_AR="$AR" # Let the user override the test. 6090else 6091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6092for as_dir in $PATH 6093do 6094 IFS=$as_save_IFS 6095 test -z "$as_dir" && as_dir=. 6096 for ac_exec_ext in '' $ac_executable_extensions; do 6097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6098 ac_cv_prog_AR="${ac_tool_prefix}ar" 6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6100 break 2 6101 fi 6102done 6103 done 6104IFS=$as_save_IFS 6105 6106fi 6107fi 6108AR=$ac_cv_prog_AR 6109if test -n "$AR"; then 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6111$as_echo "$AR" >&6; } 6112else 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6114$as_echo "no" >&6; } 6115fi 6116 6117 6118fi 6119if test -z "$ac_cv_prog_AR"; then 6120 ac_ct_AR=$AR 6121 # Extract the first word of "ar", so it can be a program name with args. 6122set dummy ar; ac_word=$2 6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6124$as_echo_n "checking for $ac_word... " >&6; } 6125if ${ac_cv_prog_ac_ct_AR+:} false; then : 6126 $as_echo_n "(cached) " >&6 6127else 6128 if test -n "$ac_ct_AR"; then 6129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6130else 6131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6132for as_dir in $PATH 6133do 6134 IFS=$as_save_IFS 6135 test -z "$as_dir" && as_dir=. 6136 for ac_exec_ext in '' $ac_executable_extensions; do 6137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6138 ac_cv_prog_ac_ct_AR="ar" 6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6140 break 2 6141 fi 6142done 6143 done 6144IFS=$as_save_IFS 6145 6146fi 6147fi 6148ac_ct_AR=$ac_cv_prog_ac_ct_AR 6149if test -n "$ac_ct_AR"; then 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6151$as_echo "$ac_ct_AR" >&6; } 6152else 6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6154$as_echo "no" >&6; } 6155fi 6156 6157 if test "x$ac_ct_AR" = x; then 6158 AR="ar" 6159 else 6160 case $cross_compiling:$ac_tool_warned in 6161yes:) 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6164ac_tool_warned=yes ;; 6165esac 6166 AR=$ac_ct_AR 6167 fi 6168else 6169 AR="$ac_cv_prog_AR" 6170fi 6171 6172 if test -z "$ARFLAGS"; then 6173 ARFLAGS='cr' 6174 fi 6175 6176 6177 6178 if test -z "$RANLIB"; then 6179 if test $gl_cv_c_amsterdam_compiler = yes; then 6180 RANLIB=':' 6181 else 6182 if test -n "$ac_tool_prefix"; then 6183 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6184set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6186$as_echo_n "checking for $ac_word... " >&6; } 6187if ${ac_cv_prog_RANLIB+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 if test -n "$RANLIB"; then 6191 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6192else 6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6194for as_dir in $PATH 6195do 6196 IFS=$as_save_IFS 6197 test -z "$as_dir" && as_dir=. 6198 for ac_exec_ext in '' $ac_executable_extensions; do 6199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6200 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6202 break 2 6203 fi 6204done 6205 done 6206IFS=$as_save_IFS 6207 6208fi 6209fi 6210RANLIB=$ac_cv_prog_RANLIB 6211if test -n "$RANLIB"; then 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6213$as_echo "$RANLIB" >&6; } 6214else 6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6216$as_echo "no" >&6; } 6217fi 6218 6219 6220fi 6221if test -z "$ac_cv_prog_RANLIB"; then 6222 ac_ct_RANLIB=$RANLIB 6223 # Extract the first word of "ranlib", so it can be a program name with args. 6224set dummy ranlib; ac_word=$2 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6226$as_echo_n "checking for $ac_word... " >&6; } 6227if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6228 $as_echo_n "(cached) " >&6 6229else 6230 if test -n "$ac_ct_RANLIB"; then 6231 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6232else 6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6234for as_dir in $PATH 6235do 6236 IFS=$as_save_IFS 6237 test -z "$as_dir" && as_dir=. 6238 for ac_exec_ext in '' $ac_executable_extensions; do 6239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6240 ac_cv_prog_ac_ct_RANLIB="ranlib" 6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6242 break 2 6243 fi 6244done 6245 done 6246IFS=$as_save_IFS 6247 6248fi 6249fi 6250ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6251if test -n "$ac_ct_RANLIB"; then 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6253$as_echo "$ac_ct_RANLIB" >&6; } 6254else 6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6256$as_echo "no" >&6; } 6257fi 6258 6259 if test "x$ac_ct_RANLIB" = x; then 6260 RANLIB=":" 6261 else 6262 case $cross_compiling:$ac_tool_warned in 6263yes:) 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6266ac_tool_warned=yes ;; 6267esac 6268 RANLIB=$ac_ct_RANLIB 6269 fi 6270else 6271 RANLIB="$ac_cv_prog_RANLIB" 6272fi 6273 6274 fi 6275 fi 6276 6277 6278# Make sure we can run config.sub. 6279$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6280 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6281 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6283$as_echo_n "checking build system type... " >&6; } 6284if ${ac_cv_build+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 ac_build_alias=$build_alias 6288test "x$ac_build_alias" = x && 6289 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6290test "x$ac_build_alias" = x && 6291 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6292ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6293 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6294 6295fi 6296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6297$as_echo "$ac_cv_build" >&6; } 6298case $ac_cv_build in 6299*-*-*) ;; 6300*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6301esac 6302build=$ac_cv_build 6303ac_save_IFS=$IFS; IFS='-' 6304set x $ac_cv_build 6305shift 6306build_cpu=$1 6307build_vendor=$2 6308shift; shift 6309# Remember, the first character of IFS is used to create $*, 6310# except with old shells: 6311build_os=$* 6312IFS=$ac_save_IFS 6313case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6314 6315 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6317$as_echo_n "checking host system type... " >&6; } 6318if ${ac_cv_host+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 if test "x$host_alias" = x; then 6322 ac_cv_host=$ac_cv_build 6323else 6324 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6326fi 6327 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6330$as_echo "$ac_cv_host" >&6; } 6331case $ac_cv_host in 6332*-*-*) ;; 6333*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6334esac 6335host=$ac_cv_host 6336ac_save_IFS=$IFS; IFS='-' 6337set x $ac_cv_host 6338shift 6339host_cpu=$1 6340host_vendor=$2 6341shift; shift 6342# Remember, the first character of IFS is used to create $*, 6343# except with old shells: 6344host_os=$* 6345IFS=$ac_save_IFS 6346case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6347 6348 6349# Check whether --enable-largefile was given. 6350if test "${enable_largefile+set}" = set; then : 6351 enableval=$enable_largefile; 6352fi 6353 6354if test "$enable_largefile" != no; then 6355 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6357$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6358if ${ac_cv_sys_largefile_CC+:} false; then : 6359 $as_echo_n "(cached) " >&6 6360else 6361 ac_cv_sys_largefile_CC=no 6362 if test "$GCC" != yes; then 6363 ac_save_CC=$CC 6364 while :; do 6365 # IRIX 6.2 and later do not support large files by default, 6366 # so use the C compiler's -n32 option if that helps. 6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6368/* end confdefs.h. */ 6369#include <sys/types.h> 6370 /* Check that off_t can represent 2**63 - 1 correctly. 6371 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6372 since some C++ compilers masquerading as C compilers 6373 incorrectly reject 9223372036854775807. */ 6374#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6376 && LARGE_OFF_T % 2147483647 == 1) 6377 ? 1 : -1]; 6378int 6379main () 6380{ 6381 6382 ; 6383 return 0; 6384} 6385_ACEOF 6386 if ac_fn_c_try_compile "$LINENO"; then : 6387 break 6388fi 6389rm -f core conftest.err conftest.$ac_objext 6390 CC="$CC -n32" 6391 if ac_fn_c_try_compile "$LINENO"; then : 6392 ac_cv_sys_largefile_CC=' -n32'; break 6393fi 6394rm -f core conftest.err conftest.$ac_objext 6395 break 6396 done 6397 CC=$ac_save_CC 6398 rm -f conftest.$ac_ext 6399 fi 6400fi 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6402$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6403 if test "$ac_cv_sys_largefile_CC" != no; then 6404 CC=$CC$ac_cv_sys_largefile_CC 6405 fi 6406 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6408$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6409if ${ac_cv_sys_file_offset_bits+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 while :; do 6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6414/* end confdefs.h. */ 6415#include <sys/types.h> 6416 /* Check that off_t can represent 2**63 - 1 correctly. 6417 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6418 since some C++ compilers masquerading as C compilers 6419 incorrectly reject 9223372036854775807. */ 6420#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6422 && LARGE_OFF_T % 2147483647 == 1) 6423 ? 1 : -1]; 6424int 6425main () 6426{ 6427 6428 ; 6429 return 0; 6430} 6431_ACEOF 6432if ac_fn_c_try_compile "$LINENO"; then : 6433 ac_cv_sys_file_offset_bits=no; break 6434fi 6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438#define _FILE_OFFSET_BITS 64 6439#include <sys/types.h> 6440 /* Check that off_t can represent 2**63 - 1 correctly. 6441 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6442 since some C++ compilers masquerading as C compilers 6443 incorrectly reject 9223372036854775807. */ 6444#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6446 && LARGE_OFF_T % 2147483647 == 1) 6447 ? 1 : -1]; 6448int 6449main () 6450{ 6451 6452 ; 6453 return 0; 6454} 6455_ACEOF 6456if ac_fn_c_try_compile "$LINENO"; then : 6457 ac_cv_sys_file_offset_bits=64; break 6458fi 6459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6460 ac_cv_sys_file_offset_bits=unknown 6461 break 6462done 6463fi 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6465$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6466case $ac_cv_sys_file_offset_bits in #( 6467 no | unknown) ;; 6468 *) 6469cat >>confdefs.h <<_ACEOF 6470#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6471_ACEOF 6472;; 6473esac 6474rm -rf conftest* 6475 if test $ac_cv_sys_file_offset_bits = unknown; then 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6477$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6478if ${ac_cv_sys_large_files+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 while :; do 6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483/* end confdefs.h. */ 6484#include <sys/types.h> 6485 /* Check that off_t can represent 2**63 - 1 correctly. 6486 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6487 since some C++ compilers masquerading as C compilers 6488 incorrectly reject 9223372036854775807. */ 6489#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6491 && LARGE_OFF_T % 2147483647 == 1) 6492 ? 1 : -1]; 6493int 6494main () 6495{ 6496 6497 ; 6498 return 0; 6499} 6500_ACEOF 6501if ac_fn_c_try_compile "$LINENO"; then : 6502 ac_cv_sys_large_files=no; break 6503fi 6504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6506/* end confdefs.h. */ 6507#define _LARGE_FILES 1 6508#include <sys/types.h> 6509 /* Check that off_t can represent 2**63 - 1 correctly. 6510 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6511 since some C++ compilers masquerading as C compilers 6512 incorrectly reject 9223372036854775807. */ 6513#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6515 && LARGE_OFF_T % 2147483647 == 1) 6516 ? 1 : -1]; 6517int 6518main () 6519{ 6520 6521 ; 6522 return 0; 6523} 6524_ACEOF 6525if ac_fn_c_try_compile "$LINENO"; then : 6526 ac_cv_sys_large_files=1; break 6527fi 6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6529 ac_cv_sys_large_files=unknown 6530 break 6531done 6532fi 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6534$as_echo "$ac_cv_sys_large_files" >&6; } 6535case $ac_cv_sys_large_files in #( 6536 no | unknown) ;; 6537 *) 6538cat >>confdefs.h <<_ACEOF 6539#define _LARGE_FILES $ac_cv_sys_large_files 6540_ACEOF 6541;; 6542esac 6543rm -rf conftest* 6544 fi 6545 6546 6547$as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h 6548 6549fi 6550 6551 case $ac_cv_prog_cc_stdc in #( 6552 no) : 6553 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 6554 *) : 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 6556$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 6557if ${ac_cv_prog_cc_c99+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 ac_cv_prog_cc_c99=no 6561ac_save_CC=$CC 6562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6563/* end confdefs.h. */ 6564#include <stdarg.h> 6565#include <stdbool.h> 6566#include <stdlib.h> 6567#include <wchar.h> 6568#include <stdio.h> 6569 6570// Check varargs macros. These examples are taken from C99 6.10.3.5. 6571#define debug(...) fprintf (stderr, __VA_ARGS__) 6572#define showlist(...) puts (#__VA_ARGS__) 6573#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 6574static void 6575test_varargs_macros (void) 6576{ 6577 int x = 1234; 6578 int y = 5678; 6579 debug ("Flag"); 6580 debug ("X = %d\n", x); 6581 showlist (The first, second, and third items.); 6582 report (x>y, "x is %d but y is %d", x, y); 6583} 6584 6585// Check long long types. 6586#define BIG64 18446744073709551615ull 6587#define BIG32 4294967295ul 6588#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 6589#if !BIG_OK 6590 your preprocessor is broken; 6591#endif 6592#if BIG_OK 6593#else 6594 your preprocessor is broken; 6595#endif 6596static long long int bignum = -9223372036854775807LL; 6597static unsigned long long int ubignum = BIG64; 6598 6599struct incomplete_array 6600{ 6601 int datasize; 6602 double data[]; 6603}; 6604 6605struct named_init { 6606 int number; 6607 const wchar_t *name; 6608 double average; 6609}; 6610 6611typedef const char *ccp; 6612 6613static inline int 6614test_restrict (ccp restrict text) 6615{ 6616 // See if C++-style comments work. 6617 // Iterate through items via the restricted pointer. 6618 // Also check for declarations in for loops. 6619 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 6620 continue; 6621 return 0; 6622} 6623 6624// Check varargs and va_copy. 6625static void 6626test_varargs (const char *format, ...) 6627{ 6628 va_list args; 6629 va_start (args, format); 6630 va_list args_copy; 6631 va_copy (args_copy, args); 6632 6633 const char *str; 6634 int number; 6635 float fnumber; 6636 6637 while (*format) 6638 { 6639 switch (*format++) 6640 { 6641 case 's': // string 6642 str = va_arg (args_copy, const char *); 6643 break; 6644 case 'd': // int 6645 number = va_arg (args_copy, int); 6646 break; 6647 case 'f': // float 6648 fnumber = va_arg (args_copy, double); 6649 break; 6650 default: 6651 break; 6652 } 6653 } 6654 va_end (args_copy); 6655 va_end (args); 6656} 6657 6658int 6659main () 6660{ 6661 6662 // Check bool. 6663 _Bool success = false; 6664 6665 // Check restrict. 6666 if (test_restrict ("String literal") == 0) 6667 success = true; 6668 char *restrict newvar = "Another string"; 6669 6670 // Check varargs. 6671 test_varargs ("s, d' f .", "string", 65, 34.234); 6672 test_varargs_macros (); 6673 6674 // Check flexible array members. 6675 struct incomplete_array *ia = 6676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 6677 ia->datasize = 10; 6678 for (int i = 0; i < ia->datasize; ++i) 6679 ia->data[i] = i * 1.234; 6680 6681 // Check named initializers. 6682 struct named_init ni = { 6683 .number = 34, 6684 .name = L"Test wide string", 6685 .average = 543.34343, 6686 }; 6687 6688 ni.number = 58; 6689 6690 int dynamic_array[ni.number]; 6691 dynamic_array[ni.number - 1] = 543; 6692 6693 // work around unused variable warnings 6694 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 6695 || dynamic_array[ni.number - 1] != 543); 6696 6697 ; 6698 return 0; 6699} 6700_ACEOF 6701for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 6702do 6703 CC="$ac_save_CC $ac_arg" 6704 if ac_fn_c_try_compile "$LINENO"; then : 6705 ac_cv_prog_cc_c99=$ac_arg 6706fi 6707rm -f core conftest.err conftest.$ac_objext 6708 test "x$ac_cv_prog_cc_c99" != "xno" && break 6709done 6710rm -f conftest.$ac_ext 6711CC=$ac_save_CC 6712 6713fi 6714# AC_CACHE_VAL 6715case "x$ac_cv_prog_cc_c99" in 6716 x) 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6718$as_echo "none needed" >&6; } ;; 6719 xno) 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6721$as_echo "unsupported" >&6; } ;; 6722 *) 6723 CC="$CC $ac_cv_prog_cc_c99" 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 6725$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 6726esac 6727if test "x$ac_cv_prog_cc_c99" != xno; then : 6728 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 6729else 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6731$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6732if ${ac_cv_prog_cc_c89+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 ac_cv_prog_cc_c89=no 6736ac_save_CC=$CC 6737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6738/* end confdefs.h. */ 6739#include <stdarg.h> 6740#include <stdio.h> 6741struct stat; 6742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6743struct buf { int x; }; 6744FILE * (*rcsopen) (struct buf *, struct stat *, int); 6745static char *e (p, i) 6746 char **p; 6747 int i; 6748{ 6749 return p[i]; 6750} 6751static char *f (char * (*g) (char **, int), char **p, ...) 6752{ 6753 char *s; 6754 va_list v; 6755 va_start (v,p); 6756 s = g (p, va_arg (v,int)); 6757 va_end (v); 6758 return s; 6759} 6760 6761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6762 function prototypes and stuff, but not '\xHH' hex character constants. 6763 These don't provoke an error unfortunately, instead are silently treated 6764 as 'x'. The following induces an error, until -std is added to get 6765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6766 array size at least. It's necessary to write '\x00'==0 to get something 6767 that's true only with -std. */ 6768int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6769 6770/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6771 inside strings and character constants. */ 6772#define FOO(x) 'x' 6773int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6774 6775int test (int i, double x); 6776struct s1 {int (*f) (int a);}; 6777struct s2 {int (*f) (double a);}; 6778int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6779int argc; 6780char **argv; 6781int 6782main () 6783{ 6784return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6785 ; 6786 return 0; 6787} 6788_ACEOF 6789for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6791do 6792 CC="$ac_save_CC $ac_arg" 6793 if ac_fn_c_try_compile "$LINENO"; then : 6794 ac_cv_prog_cc_c89=$ac_arg 6795fi 6796rm -f core conftest.err conftest.$ac_objext 6797 test "x$ac_cv_prog_cc_c89" != "xno" && break 6798done 6799rm -f conftest.$ac_ext 6800CC=$ac_save_CC 6801 6802fi 6803# AC_CACHE_VAL 6804case "x$ac_cv_prog_cc_c89" in 6805 x) 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6807$as_echo "none needed" >&6; } ;; 6808 xno) 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6810$as_echo "unsupported" >&6; } ;; 6811 *) 6812 CC="$CC $ac_cv_prog_cc_c89" 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6814$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6815esac 6816if test "x$ac_cv_prog_cc_c89" != xno; then : 6817 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 6818else 6819 ac_cv_prog_cc_stdc=no 6820fi 6821 6822fi 6823 ;; 6824esac 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 6826$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 6827 if ${ac_cv_prog_cc_stdc+:} false; then : 6828 $as_echo_n "(cached) " >&6 6829fi 6830 6831 case $ac_cv_prog_cc_stdc in #( 6832 no) : 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6834$as_echo "unsupported" >&6; } ;; #( 6835 '') : 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6837$as_echo "none needed" >&6; } ;; #( 6838 *) : 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 6840$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 6841esac 6842 6843 6844 6845 6846 6847 6848 # Check whether --enable-threads was given. 6849if test "${enable_threads+set}" = set; then : 6850 enableval=$enable_threads; gl_use_threads=$enableval 6851else 6852 if test -n "$gl_use_threads_default"; then 6853 gl_use_threads="$gl_use_threads_default" 6854 else 6855 case "$host_os" in 6856 osf*) gl_use_threads=no ;; 6857 cygwin*) 6858 case `uname -r` in 6859 1.[0-5].*) gl_use_threads=no ;; 6860 *) gl_use_threads=yes ;; 6861 esac 6862 ;; 6863 *) gl_use_threads=yes ;; 6864 esac 6865 fi 6866 6867fi 6868 6869 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 6870 # For using <pthread.h>: 6871 case "$host_os" in 6872 osf*) 6873 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 6874 # groks <pthread.h>. cc also understands the flag -pthread, but 6875 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 6876 # 2. putting a flag into CPPFLAGS that has an effect on the linker 6877 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 6878 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 6879 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 6880 ;; 6881 esac 6882 # Some systems optimize for single-threaded programs by default, and 6883 # need special flags to disable these optimizations. For example, the 6884 # definition of 'errno' in <errno.h>. 6885 case "$host_os" in 6886 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 6887 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 6888 esac 6889 fi 6890 6891 6892 6893 # Pre-early section. 6894 6895 6896 6897 # Code from module absolute-header: 6898 # Code from module accept: 6899 # Code from module accept-tests: 6900 # Code from module alloca: 6901 # Code from module alloca-opt: 6902 # Code from module alloca-opt-tests: 6903 # Code from module arpa_inet: 6904 # Code from module arpa_inet-tests: 6905 # Code from module autobuild: 6906 6907 6908 6909 6910 if test -z "$AB_PACKAGE"; then 6911 AB_PACKAGE=${PACKAGE_NAME:-$PACKAGE} 6912 fi 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild project... $AB_PACKAGE" >&5 6914$as_echo "$as_me: autobuild project... $AB_PACKAGE" >&6;} 6915 6916 if test -z "$AB_VERSION"; then 6917 AB_VERSION=${PACKAGE_VERSION:-$VERSION} 6918 fi 6919 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild revision... $AB_VERSION" >&5 6920$as_echo "$as_me: autobuild revision... $AB_VERSION" >&6;} 6921 6922 hostname=`hostname` 6923 if test "$hostname"; then 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild hostname... $hostname" >&5 6925$as_echo "$as_me: autobuild hostname... $hostname" >&6;} 6926 fi 6927 6928 6929 6930 date=`TZ=UTC0 date +%Y%m%dT%H%M%SZ` 6931 if test "$?" != 0; then 6932 date=`date` 6933 fi 6934 if test "$date"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: autobuild timestamp... $date" >&5 6936$as_echo "$as_me: autobuild timestamp... $date" >&6;} 6937 fi 6938 6939 # Code from module binary-io: 6940 # Code from module binary-io-tests: 6941 # Code from module bind: 6942 # Code from module bind-tests: 6943 # Code from module c-ctype: 6944 # Code from module c-ctype-tests: 6945 # Code from module cloexec: 6946 # Code from module cloexec-tests: 6947 # Code from module close: 6948 # Code from module close-tests: 6949 # Code from module connect: 6950 # Code from module connect-tests: 6951 # Code from module csharpcomp-script: 6952 # Code from module csharpexec-script: 6953 # Code from module ctype: 6954 # Code from module ctype-tests: 6955 # Code from module dirname-lgpl: 6956 # Code from module dosname: 6957 # Code from module double-slash-root: 6958 # Code from module dup2: 6959 # Code from module dup2-tests: 6960 # Code from module environ: 6961 # Code from module environ-tests: 6962 # Code from module errno: 6963 # Code from module errno-tests: 6964 # Code from module error: 6965 # Code from module extensions: 6966 # Code from module extern-inline: 6967 # Code from module fcntl: 6968 # Code from module fcntl-h: 6969 # Code from module fcntl-tests: 6970 # Code from module fd-hook: 6971 # Code from module fdl-1.3: 6972 # Code from module fdopen: 6973 # Code from module fdopen-tests: 6974 # Code from module fgetc-tests: 6975 # Code from module filename: 6976 # Code from module fputc-tests: 6977 # Code from module fread-tests: 6978 # Code from module fstat: 6979 # Code from module fstat-tests: 6980 # Code from module ftruncate: 6981 # Code from module ftruncate-tests: 6982 # Code from module fwrite-tests: 6983 # Code from module gendocs: 6984 # Code from module getcwd-lgpl: 6985 # Code from module getcwd-lgpl-tests: 6986 # Code from module getdelim: 6987 # Code from module getdelim-tests: 6988 # Code from module getdtablesize: 6989 # Code from module getdtablesize-tests: 6990 # Code from module getline: 6991 # Code from module getline-tests: 6992 # Code from module getopt-gnu: 6993 # Code from module getopt-gnu-tests: 6994 # Code from module getopt-posix: 6995 # Code from module getopt-posix-tests: 6996 # Code from module getprogname: 6997 # Code from module getprogname-tests: 6998 # Code from module gettext-h: 6999 # Code from module gettimeofday: 7000 # Code from module gettimeofday-tests: 7001 # Code from module gnumakefile: 7002 # Code from module gnupload: 7003 # Code from module havelib: 7004 # Code from module host-cpu-c-abi: 7005 # Code from module ignore-value: 7006 # Code from module ignore-value-tests: 7007 # Code from module include_next: 7008 # Code from module inet_pton: 7009 # Code from module inet_pton-tests: 7010 # Code from module intprops: 7011 # Code from module intprops-tests: 7012 # Code from module inttypes: 7013 # Code from module inttypes-incomplete: 7014 # Code from module inttypes-tests: 7015 # Code from module ioctl: 7016 # Code from module ioctl-tests: 7017 # Code from module isblank: 7018 # Code from module isblank-tests: 7019 # Code from module largefile: 7020 7021 # Code from module limits-h: 7022 # Code from module limits-h-tests: 7023 # Code from module listen: 7024 # Code from module listen-tests: 7025 # Code from module localtime-buffer: 7026 # Code from module lock: 7027 # Code from module lock-tests: 7028 # Code from module lstat: 7029 # Code from module lstat-tests: 7030 # Code from module maintainer-makefile: 7031 # Code from module malloc-posix: 7032 # Code from module malloca: 7033 # Code from module malloca-tests: 7034 # Code from module manywarnings: 7035 # Code from module msvc-inval: 7036 # Code from module msvc-nothrow: 7037 # Code from module multiarch: 7038 # Code from module nanosleep: 7039 # Code from module nanosleep-tests: 7040 # Code from module netinet_in: 7041 # Code from module netinet_in-tests: 7042 # Code from module nocrash: 7043 # Code from module open: 7044 # Code from module open-tests: 7045 # Code from module pathmax: 7046 # Code from module pathmax-tests: 7047 # Code from module perror: 7048 # Code from module perror-tests: 7049 # Code from module pipe-posix: 7050 # Code from module pipe-posix-tests: 7051 # Code from module pmccabe2html: 7052 # Code from module progname: 7053 # Code from module pthread_sigmask: 7054 # Code from module pthread_sigmask-tests: 7055 # Code from module putenv: 7056 # Code from module raise: 7057 # Code from module raise-tests: 7058 # Code from module same-inode: 7059 # Code from module select: 7060 # Code from module select-tests: 7061 # Code from module setenv: 7062 # Code from module setenv-tests: 7063 # Code from module setsockopt: 7064 # Code from module setsockopt-tests: 7065 # Code from module sigaction: 7066 # Code from module sigaction-tests: 7067 # Code from module signal-h: 7068 # Code from module signal-h-tests: 7069 # Code from module sigprocmask: 7070 # Code from module sigprocmask-tests: 7071 # Code from module sleep: 7072 # Code from module sleep-tests: 7073 # Code from module snippet/_Noreturn: 7074 # Code from module snippet/arg-nonnull: 7075 # Code from module snippet/c++defs: 7076 # Code from module snippet/warn-on-use: 7077 # Code from module socket: 7078 # Code from module socketlib: 7079 # Code from module sockets: 7080 # Code from module sockets-tests: 7081 # Code from module socklen: 7082 # Code from module ssize_t: 7083 # Code from module stat: 7084 # Code from module stat-tests: 7085 # Code from module stat-time: 7086 # Code from module stat-time-tests: 7087 # Code from module stdalign: 7088 # Code from module stdalign-tests: 7089 # Code from module stdarg: 7090 7091 7092 7093 # Code from module stdbool: 7094 # Code from module stdbool-tests: 7095 # Code from module stddef: 7096 # Code from module stddef-tests: 7097 # Code from module stdint: 7098 # Code from module stdint-tests: 7099 # Code from module stdio: 7100 # Code from module stdio-tests: 7101 # Code from module stdlib: 7102 # Code from module strerror: 7103 # Code from module strerror-override: 7104 # Code from module strerror-tests: 7105 # Code from module strerror_r-posix: 7106 # Code from module strerror_r-posix-tests: 7107 # Code from module string: 7108 # Code from module symlink: 7109 # Code from module symlink-tests: 7110 # Code from module sys_ioctl: 7111 # Code from module sys_ioctl-tests: 7112 # Code from module sys_select: 7113 # Code from module sys_select-tests: 7114 # Code from module sys_socket: 7115 # Code from module sys_socket-tests: 7116 # Code from module sys_stat: 7117 # Code from module sys_time: 7118 # Code from module sys_time-tests: 7119 # Code from module sys_types: 7120 # Code from module sys_types-tests: 7121 # Code from module sys_uio: 7122 # Code from module sys_uio-tests: 7123 # Code from module test-framework-sh: 7124 # Code from module test-framework-sh-tests: 7125 # Code from module thread: 7126 # Code from module thread-tests: 7127 # Code from module threadlib: 7128 7129 7130 7131 # Code from module time: 7132 # Code from module unistd: 7133 # Code from module unsetenv: 7134 # Code from module unsetenv-tests: 7135 # Code from module update-copyright: 7136 # Code from module useless-if-before-free: 7137 # Code from module usleep: 7138 # Code from module usleep-tests: 7139 # Code from module valgrind-tests: 7140 # Code from module vc-list-files: 7141 # Code from module vc-list-files-tests: 7142 # Code from module verify: 7143 # Code from module verify-tests: 7144 # Code from module version-etc: 7145 # Code from module version-etc-fsf: 7146 # Code from module version-etc-tests: 7147 # Code from module warnings: 7148 # Code from module wchar: 7149 # Code from module xalloc-oversized: 7150 # Code from module yield: 7151 7152 7153 7154 7155 # Pre-early section. 7156 7157 7158 7159 7160 # Code from module absolute-header: 7161 # Code from module alloca-opt: 7162 # Code from module alloca-opt-tests: 7163 # Code from module c-ctype: 7164 # Code from module c-ctype-tests: 7165 # Code from module c-strcase: 7166 # Code from module c-strcase-tests: 7167 # Code from module ctype: 7168 # Code from module ctype-tests: 7169 # Code from module environ: 7170 # Code from module environ-tests: 7171 # Code from module extensions: 7172 # Code from module extern-inline: 7173 # Code from module flexmember: 7174 # Code from module gettext-h: 7175 # Code from module gperf: 7176 # Code from module havelib: 7177 # Code from module host-cpu-c-abi: 7178 # Code from module iconv: 7179 # Code from module iconv-h: 7180 # Code from module iconv-tests: 7181 # Code from module iconv_open: 7182 # Code from module include_next: 7183 # Code from module inline: 7184 # Code from module intprops: 7185 # Code from module intprops-tests: 7186 # Code from module inttypes: 7187 # Code from module inttypes-incomplete: 7188 # Code from module inttypes-tests: 7189 # Code from module isblank: 7190 # Code from module isblank-tests: 7191 # Code from module langinfo: 7192 # Code from module langinfo-tests: 7193 # Code from module lib-msvc-compat: 7194 # Code from module lib-symbol-versions: 7195 # Code from module lib-symbol-visibility: 7196 # Code from module limits-h: 7197 # Code from module limits-h-tests: 7198 # Code from module locale: 7199 # Code from module locale-tests: 7200 # Code from module localename: 7201 # Code from module localename-tests: 7202 # Code from module lock: 7203 # Code from module lock-tests: 7204 # Code from module malloc-posix: 7205 # Code from module malloca: 7206 # Code from module malloca-tests: 7207 # Code from module msvc-inval: 7208 # Code from module multiarch: 7209 # Code from module pthread_sigmask: 7210 # Code from module pthread_sigmask-tests: 7211 # Code from module putenv: 7212 # Code from module raise: 7213 # Code from module raise-tests: 7214 # Code from module setenv: 7215 # Code from module setenv-tests: 7216 # Code from module setlocale: 7217 # Code from module setlocale-tests: 7218 # Code from module signal-h: 7219 # Code from module signal-h-tests: 7220 # Code from module sigprocmask: 7221 # Code from module sigprocmask-tests: 7222 # Code from module sleep: 7223 # Code from module sleep-tests: 7224 # Code from module snippet/_Noreturn: 7225 # Code from module snippet/arg-nonnull: 7226 # Code from module snippet/c++defs: 7227 # Code from module snippet/unused-parameter: 7228 # Code from module snippet/warn-on-use: 7229 # Code from module ssize_t: 7230 # Code from module stdalign: 7231 # Code from module stdalign-tests: 7232 # Code from module stdbool: 7233 # Code from module stdbool-tests: 7234 # Code from module stddef: 7235 # Code from module stddef-tests: 7236 # Code from module stdint: 7237 # Code from module stdint-tests: 7238 # Code from module stdlib: 7239 # Code from module stdlib-tests: 7240 # Code from module striconv: 7241 # Code from module striconv-tests: 7242 # Code from module string: 7243 # Code from module strverscmp: 7244 # Code from module strverscmp-tests: 7245 # Code from module sys_types: 7246 # Code from module sys_types-tests: 7247 # Code from module test-framework-sh: 7248 # Code from module test-framework-sh-tests: 7249 # Code from module thread: 7250 # Code from module thread-tests: 7251 # Code from module threadlib: 7252 7253 7254 7255 # Code from module time: 7256 # Code from module time-tests: 7257 # Code from module unistd: 7258 # Code from module unistd-tests: 7259 # Code from module unistr/base: 7260 # Code from module unistr/u8-check: 7261 # Code from module unistr/u8-check-tests: 7262 # Code from module unistr/u8-mbtoucr: 7263 # Code from module unistr/u8-mbtoucr-tests: 7264 # Code from module unistr/u8-uctomb: 7265 # Code from module unistr/u8-uctomb-tests: 7266 # Code from module unitypes: 7267 # Code from module unsetenv: 7268 # Code from module unsetenv-tests: 7269 # Code from module usleep: 7270 # Code from module usleep-tests: 7271 # Code from module verify: 7272 # Code from module verify-tests: 7273 # Code from module wchar: 7274 # Code from module xalloc-oversized: 7275 # Code from module yield: 7276 7277 7278# For DEF file. 7279DLL_VERSION=`expr ${LT_CURRENT} - ${LT_AGE}` 7280 7281 7282if test -n "$ac_tool_prefix"; then 7283 for ac_prog in ar lib "link -lib" 7284 do 7285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7286set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7288$as_echo_n "checking for $ac_word... " >&6; } 7289if ${ac_cv_prog_AR+:} false; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 if test -n "$AR"; then 7293 ac_cv_prog_AR="$AR" # Let the user override the test. 7294else 7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH 7297do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_exec_ext in '' $ac_executable_extensions; do 7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7302 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7304 break 2 7305 fi 7306done 7307 done 7308IFS=$as_save_IFS 7309 7310fi 7311fi 7312AR=$ac_cv_prog_AR 7313if test -n "$AR"; then 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7315$as_echo "$AR" >&6; } 7316else 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7318$as_echo "no" >&6; } 7319fi 7320 7321 7322 test -n "$AR" && break 7323 done 7324fi 7325if test -z "$AR"; then 7326 ac_ct_AR=$AR 7327 for ac_prog in ar lib "link -lib" 7328do 7329 # Extract the first word of "$ac_prog", so it can be a program name with args. 7330set dummy $ac_prog; ac_word=$2 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7332$as_echo_n "checking for $ac_word... " >&6; } 7333if ${ac_cv_prog_ac_ct_AR+:} false; then : 7334 $as_echo_n "(cached) " >&6 7335else 7336 if test -n "$ac_ct_AR"; then 7337 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7338else 7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7340for as_dir in $PATH 7341do 7342 IFS=$as_save_IFS 7343 test -z "$as_dir" && as_dir=. 7344 for ac_exec_ext in '' $ac_executable_extensions; do 7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7346 ac_cv_prog_ac_ct_AR="$ac_prog" 7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7348 break 2 7349 fi 7350done 7351 done 7352IFS=$as_save_IFS 7353 7354fi 7355fi 7356ac_ct_AR=$ac_cv_prog_ac_ct_AR 7357if test -n "$ac_ct_AR"; then 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7359$as_echo "$ac_ct_AR" >&6; } 7360else 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7362$as_echo "no" >&6; } 7363fi 7364 7365 7366 test -n "$ac_ct_AR" && break 7367done 7368 7369 if test "x$ac_ct_AR" = x; then 7370 AR="false" 7371 else 7372 case $cross_compiling:$ac_tool_warned in 7373yes:) 7374{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7375$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7376ac_tool_warned=yes ;; 7377esac 7378 AR=$ac_ct_AR 7379 fi 7380fi 7381 7382: ${AR=ar} 7383 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 7385$as_echo_n "checking the archiver ($AR) interface... " >&6; } 7386if ${am_cv_ar_interface+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 ac_ext=c 7390ac_cpp='$CPP $CPPFLAGS' 7391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7393ac_compiler_gnu=$ac_cv_c_compiler_gnu 7394 7395 am_cv_ar_interface=ar 7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398int some_variable = 0; 7399_ACEOF 7400if ac_fn_c_try_compile "$LINENO"; then : 7401 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 7402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 7403 (eval $am_ar_try) 2>&5 7404 ac_status=$? 7405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7406 test $ac_status = 0; } 7407 if test "$ac_status" -eq 0; then 7408 am_cv_ar_interface=ar 7409 else 7410 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 7411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 7412 (eval $am_ar_try) 2>&5 7413 ac_status=$? 7414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7415 test $ac_status = 0; } 7416 if test "$ac_status" -eq 0; then 7417 am_cv_ar_interface=lib 7418 else 7419 am_cv_ar_interface=unknown 7420 fi 7421 fi 7422 rm -f conftest.lib libconftest.a 7423 7424fi 7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7426 ac_ext=c 7427ac_cpp='$CPP $CPPFLAGS' 7428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7430ac_compiler_gnu=$ac_cv_c_compiler_gnu 7431 7432fi 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 7434$as_echo "$am_cv_ar_interface" >&6; } 7435 7436case $am_cv_ar_interface in 7437ar) 7438 ;; 7439lib) 7440 # Microsoft lib, so override with the ar-lib wrapper script. 7441 # FIXME: It is wrong to rewrite AR. 7442 # But if we don't then we get into trouble of one sort or another. 7443 # A longer-term fix would be to have automake use am__AR in this case, 7444 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 7445 # similar. 7446 AR="$am_aux_dir/ar-lib $AR" 7447 ;; 7448unknown) 7449 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 7450 ;; 7451esac 7452 7453case `pwd` in 7454 *\ * | *\ *) 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7456$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7457esac 7458 7459 7460 7461macro_version='2.4.6' 7462macro_revision='2.4.6' 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476ltmain=$ac_aux_dir/ltmain.sh 7477 7478# Backslashify metacharacters that are still active within 7479# double-quoted strings. 7480sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7481 7482# Same as above, but do not quote variable references. 7483double_quote_subst='s/\(["`\\]\)/\\\1/g' 7484 7485# Sed substitution to delay expansion of an escaped shell variable in a 7486# double_quote_subst'ed string. 7487delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7488 7489# Sed substitution to delay expansion of an escaped single quote. 7490delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7491 7492# Sed substitution to avoid accidental globbing in evaled expressions 7493no_glob_subst='s/\*/\\\*/g' 7494 7495ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7496ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7497ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7498 7499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7500$as_echo_n "checking how to print strings... " >&6; } 7501# Test print first, because it will be a builtin if present. 7502if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 7503 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7504 ECHO='print -r --' 7505elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7506 ECHO='printf %s\n' 7507else 7508 # Use this function as a fallback that always works. 7509 func_fallback_echo () 7510 { 7511 eval 'cat <<_LTECHO_EOF 7512$1 7513_LTECHO_EOF' 7514 } 7515 ECHO='func_fallback_echo' 7516fi 7517 7518# func_echo_all arg... 7519# Invoke $ECHO with all args, space-separated. 7520func_echo_all () 7521{ 7522 $ECHO "" 7523} 7524 7525case $ECHO in 7526 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7527$as_echo "printf" >&6; } ;; 7528 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7529$as_echo "print -r" >&6; } ;; 7530 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7531$as_echo "cat" >&6; } ;; 7532esac 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7548$as_echo_n "checking for a sed that does not truncate output... " >&6; } 7549if ${ac_cv_path_SED+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551else 7552 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7553 for ac_i in 1 2 3 4 5 6 7; do 7554 ac_script="$ac_script$as_nl$ac_script" 7555 done 7556 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7557 { ac_script=; unset ac_script;} 7558 if test -z "$SED"; then 7559 ac_path_SED_found=false 7560 # Loop through the user's path and test for each of PROGNAME-LIST 7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7562for as_dir in $PATH 7563do 7564 IFS=$as_save_IFS 7565 test -z "$as_dir" && as_dir=. 7566 for ac_prog in sed gsed; do 7567 for ac_exec_ext in '' $ac_executable_extensions; do 7568 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7569 as_fn_executable_p "$ac_path_SED" || continue 7570# Check for GNU ac_path_SED and select it if it is found. 7571 # Check for GNU $ac_path_SED 7572case `"$ac_path_SED" --version 2>&1` in 7573*GNU*) 7574 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7575*) 7576 ac_count=0 7577 $as_echo_n 0123456789 >"conftest.in" 7578 while : 7579 do 7580 cat "conftest.in" "conftest.in" >"conftest.tmp" 7581 mv "conftest.tmp" "conftest.in" 7582 cp "conftest.in" "conftest.nl" 7583 $as_echo '' >> "conftest.nl" 7584 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7586 as_fn_arith $ac_count + 1 && ac_count=$as_val 7587 if test $ac_count -gt ${ac_path_SED_max-0}; then 7588 # Best one so far, save it but keep looking for a better one 7589 ac_cv_path_SED="$ac_path_SED" 7590 ac_path_SED_max=$ac_count 7591 fi 7592 # 10*(2^10) chars as input seems more than enough 7593 test $ac_count -gt 10 && break 7594 done 7595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7596esac 7597 7598 $ac_path_SED_found && break 3 7599 done 7600 done 7601 done 7602IFS=$as_save_IFS 7603 if test -z "$ac_cv_path_SED"; then 7604 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7605 fi 7606else 7607 ac_cv_path_SED=$SED 7608fi 7609 7610fi 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7612$as_echo "$ac_cv_path_SED" >&6; } 7613 SED="$ac_cv_path_SED" 7614 rm -f conftest.sed 7615 7616test -z "$SED" && SED=sed 7617Xsed="$SED -e 1s/^X//" 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7630$as_echo_n "checking for fgrep... " >&6; } 7631if ${ac_cv_path_FGREP+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7635 then ac_cv_path_FGREP="$GREP -F" 7636 else 7637 if test -z "$FGREP"; then 7638 ac_path_FGREP_found=false 7639 # Loop through the user's path and test for each of PROGNAME-LIST 7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7641for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7642do 7643 IFS=$as_save_IFS 7644 test -z "$as_dir" && as_dir=. 7645 for ac_prog in fgrep; do 7646 for ac_exec_ext in '' $ac_executable_extensions; do 7647 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7648 as_fn_executable_p "$ac_path_FGREP" || continue 7649# Check for GNU ac_path_FGREP and select it if it is found. 7650 # Check for GNU $ac_path_FGREP 7651case `"$ac_path_FGREP" --version 2>&1` in 7652*GNU*) 7653 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7654*) 7655 ac_count=0 7656 $as_echo_n 0123456789 >"conftest.in" 7657 while : 7658 do 7659 cat "conftest.in" "conftest.in" >"conftest.tmp" 7660 mv "conftest.tmp" "conftest.in" 7661 cp "conftest.in" "conftest.nl" 7662 $as_echo 'FGREP' >> "conftest.nl" 7663 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7665 as_fn_arith $ac_count + 1 && ac_count=$as_val 7666 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7667 # Best one so far, save it but keep looking for a better one 7668 ac_cv_path_FGREP="$ac_path_FGREP" 7669 ac_path_FGREP_max=$ac_count 7670 fi 7671 # 10*(2^10) chars as input seems more than enough 7672 test $ac_count -gt 10 && break 7673 done 7674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7675esac 7676 7677 $ac_path_FGREP_found && break 3 7678 done 7679 done 7680 done 7681IFS=$as_save_IFS 7682 if test -z "$ac_cv_path_FGREP"; then 7683 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7684 fi 7685else 7686 ac_cv_path_FGREP=$FGREP 7687fi 7688 7689 fi 7690fi 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7692$as_echo "$ac_cv_path_FGREP" >&6; } 7693 FGREP="$ac_cv_path_FGREP" 7694 7695 7696test -z "$GREP" && GREP=grep 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716# Check whether --with-gnu-ld was given. 7717if test "${with_gnu_ld+set}" = set; then : 7718 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 7719else 7720 with_gnu_ld=no 7721fi 7722 7723ac_prog=ld 7724if test yes = "$GCC"; then 7725 # Check if gcc -print-prog-name=ld gives a path. 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7727$as_echo_n "checking for ld used by $CC... " >&6; } 7728 case $host in 7729 *-*-mingw*) 7730 # gcc leaves a trailing carriage return, which upsets mingw 7731 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7732 *) 7733 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7734 esac 7735 case $ac_prog in 7736 # Accept absolute paths. 7737 [\\/]* | ?:[\\/]*) 7738 re_direlt='/[^/][^/]*/\.\./' 7739 # Canonicalize the pathname of ld 7740 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7741 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7742 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7743 done 7744 test -z "$LD" && LD=$ac_prog 7745 ;; 7746 "") 7747 # If it fails, then pretend we aren't using GCC. 7748 ac_prog=ld 7749 ;; 7750 *) 7751 # If it is relative, then search for the first ld in PATH. 7752 with_gnu_ld=unknown 7753 ;; 7754 esac 7755elif test yes = "$with_gnu_ld"; then 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7757$as_echo_n "checking for GNU ld... " >&6; } 7758else 7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7760$as_echo_n "checking for non-GNU ld... " >&6; } 7761fi 7762if ${lt_cv_path_LD+:} false; then : 7763 $as_echo_n "(cached) " >&6 7764else 7765 if test -z "$LD"; then 7766 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7767 for ac_dir in $PATH; do 7768 IFS=$lt_save_ifs 7769 test -z "$ac_dir" && ac_dir=. 7770 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7771 lt_cv_path_LD=$ac_dir/$ac_prog 7772 # Check to see if the program is GNU ld. I'd rather use --version, 7773 # but apparently some variants of GNU ld only accept -v. 7774 # Break only if it was the GNU/non-GNU ld that we prefer. 7775 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7776 *GNU* | *'with BFD'*) 7777 test no != "$with_gnu_ld" && break 7778 ;; 7779 *) 7780 test yes != "$with_gnu_ld" && break 7781 ;; 7782 esac 7783 fi 7784 done 7785 IFS=$lt_save_ifs 7786else 7787 lt_cv_path_LD=$LD # Let the user override the test with a path. 7788fi 7789fi 7790 7791LD=$lt_cv_path_LD 7792if test -n "$LD"; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7794$as_echo "$LD" >&6; } 7795else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797$as_echo "no" >&6; } 7798fi 7799test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7801$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7802if ${lt_cv_prog_gnu_ld+:} false; then : 7803 $as_echo_n "(cached) " >&6 7804else 7805 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7806case `$LD -v 2>&1 </dev/null` in 7807*GNU* | *'with BFD'*) 7808 lt_cv_prog_gnu_ld=yes 7809 ;; 7810*) 7811 lt_cv_prog_gnu_ld=no 7812 ;; 7813esac 7814fi 7815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7816$as_echo "$lt_cv_prog_gnu_ld" >&6; } 7817with_gnu_ld=$lt_cv_prog_gnu_ld 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7828$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7829if ${lt_cv_path_NM+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 if test -n "$NM"; then 7833 # Let the user override the test. 7834 lt_cv_path_NM=$NM 7835else 7836 lt_nm_to_check=${ac_tool_prefix}nm 7837 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7838 lt_nm_to_check="$lt_nm_to_check nm" 7839 fi 7840 for lt_tmp_nm in $lt_nm_to_check; do 7841 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7842 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7843 IFS=$lt_save_ifs 7844 test -z "$ac_dir" && ac_dir=. 7845 tmp_nm=$ac_dir/$lt_tmp_nm 7846 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 7847 # Check to see if the nm accepts a BSD-compat flag. 7848 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 7849 # nm: unknown option "B" ignored 7850 # Tru64's nm complains that /dev/null is an invalid object file 7851 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 7852 case $build_os in 7853 mingw*) lt_bad_file=conftest.nm/nofile ;; 7854 *) lt_bad_file=/dev/null ;; 7855 esac 7856 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 7857 *$lt_bad_file* | *'Invalid file or object type'*) 7858 lt_cv_path_NM="$tmp_nm -B" 7859 break 2 7860 ;; 7861 *) 7862 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7863 */dev/null*) 7864 lt_cv_path_NM="$tmp_nm -p" 7865 break 2 7866 ;; 7867 *) 7868 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7869 continue # so that we can try to find one that supports BSD flags 7870 ;; 7871 esac 7872 ;; 7873 esac 7874 fi 7875 done 7876 IFS=$lt_save_ifs 7877 done 7878 : ${lt_cv_path_NM=no} 7879fi 7880fi 7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7882$as_echo "$lt_cv_path_NM" >&6; } 7883if test no != "$lt_cv_path_NM"; then 7884 NM=$lt_cv_path_NM 7885else 7886 # Didn't find any BSD compatible name lister, look for dumpbin. 7887 if test -n "$DUMPBIN"; then : 7888 # Let the user override the test. 7889 else 7890 if test -n "$ac_tool_prefix"; then 7891 for ac_prog in dumpbin "link -dump" 7892 do 7893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7894set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7896$as_echo_n "checking for $ac_word... " >&6; } 7897if ${ac_cv_prog_DUMPBIN+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 if test -n "$DUMPBIN"; then 7901 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7902else 7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7904for as_dir in $PATH 7905do 7906 IFS=$as_save_IFS 7907 test -z "$as_dir" && as_dir=. 7908 for ac_exec_ext in '' $ac_executable_extensions; do 7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7910 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7912 break 2 7913 fi 7914done 7915 done 7916IFS=$as_save_IFS 7917 7918fi 7919fi 7920DUMPBIN=$ac_cv_prog_DUMPBIN 7921if test -n "$DUMPBIN"; then 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7923$as_echo "$DUMPBIN" >&6; } 7924else 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7926$as_echo "no" >&6; } 7927fi 7928 7929 7930 test -n "$DUMPBIN" && break 7931 done 7932fi 7933if test -z "$DUMPBIN"; then 7934 ac_ct_DUMPBIN=$DUMPBIN 7935 for ac_prog in dumpbin "link -dump" 7936do 7937 # Extract the first word of "$ac_prog", so it can be a program name with args. 7938set dummy $ac_prog; ac_word=$2 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7940$as_echo_n "checking for $ac_word... " >&6; } 7941if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7942 $as_echo_n "(cached) " >&6 7943else 7944 if test -n "$ac_ct_DUMPBIN"; then 7945 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7946else 7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7948for as_dir in $PATH 7949do 7950 IFS=$as_save_IFS 7951 test -z "$as_dir" && as_dir=. 7952 for ac_exec_ext in '' $ac_executable_extensions; do 7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7954 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7956 break 2 7957 fi 7958done 7959 done 7960IFS=$as_save_IFS 7961 7962fi 7963fi 7964ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7965if test -n "$ac_ct_DUMPBIN"; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7967$as_echo "$ac_ct_DUMPBIN" >&6; } 7968else 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7970$as_echo "no" >&6; } 7971fi 7972 7973 7974 test -n "$ac_ct_DUMPBIN" && break 7975done 7976 7977 if test "x$ac_ct_DUMPBIN" = x; then 7978 DUMPBIN=":" 7979 else 7980 case $cross_compiling:$ac_tool_warned in 7981yes:) 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7984ac_tool_warned=yes ;; 7985esac 7986 DUMPBIN=$ac_ct_DUMPBIN 7987 fi 7988fi 7989 7990 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 7991 *COFF*) 7992 DUMPBIN="$DUMPBIN -symbols -headers" 7993 ;; 7994 *) 7995 DUMPBIN=: 7996 ;; 7997 esac 7998 fi 7999 8000 if test : != "$DUMPBIN"; then 8001 NM=$DUMPBIN 8002 fi 8003fi 8004test -z "$NM" && NM=nm 8005 8006 8007 8008 8009 8010 8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8012$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8013if ${lt_cv_nm_interface+:} false; then : 8014 $as_echo_n "(cached) " >&6 8015else 8016 lt_cv_nm_interface="BSD nm" 8017 echo "int some_variable = 0;" > conftest.$ac_ext 8018 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8019 (eval "$ac_compile" 2>conftest.err) 8020 cat conftest.err >&5 8021 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8022 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8023 cat conftest.err >&5 8024 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8025 cat conftest.out >&5 8026 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8027 lt_cv_nm_interface="MS dumpbin" 8028 fi 8029 rm -f conftest* 8030fi 8031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8032$as_echo "$lt_cv_nm_interface" >&6; } 8033 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8035$as_echo_n "checking whether ln -s works... " >&6; } 8036LN_S=$as_ln_s 8037if test "$LN_S" = "ln -s"; then 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8039$as_echo "yes" >&6; } 8040else 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8042$as_echo "no, using $LN_S" >&6; } 8043fi 8044 8045# find the maximum length of command line arguments 8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8047$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8048if ${lt_cv_sys_max_cmd_len+:} false; then : 8049 $as_echo_n "(cached) " >&6 8050else 8051 i=0 8052 teststring=ABCD 8053 8054 case $build_os in 8055 msdosdjgpp*) 8056 # On DJGPP, this test can blow up pretty badly due to problems in libc 8057 # (any single argument exceeding 2000 bytes causes a buffer overrun 8058 # during glob expansion). Even if it were fixed, the result of this 8059 # check would be larger than it should be. 8060 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8061 ;; 8062 8063 gnu*) 8064 # Under GNU Hurd, this test is not required because there is 8065 # no limit to the length of command line arguments. 8066 # Libtool will interpret -1 as no limit whatsoever 8067 lt_cv_sys_max_cmd_len=-1; 8068 ;; 8069 8070 cygwin* | mingw* | cegcc*) 8071 # On Win9x/ME, this test blows up -- it succeeds, but takes 8072 # about 5 minutes as the teststring grows exponentially. 8073 # Worse, since 9x/ME are not pre-emptively multitasking, 8074 # you end up with a "frozen" computer, even though with patience 8075 # the test eventually succeeds (with a max line length of 256k). 8076 # Instead, let's just punt: use the minimum linelength reported by 8077 # all of the supported platforms: 8192 (on NT/2K/XP). 8078 lt_cv_sys_max_cmd_len=8192; 8079 ;; 8080 8081 mint*) 8082 # On MiNT this can take a long time and run out of memory. 8083 lt_cv_sys_max_cmd_len=8192; 8084 ;; 8085 8086 amigaos*) 8087 # On AmigaOS with pdksh, this test takes hours, literally. 8088 # So we just punt and use a minimum line length of 8192. 8089 lt_cv_sys_max_cmd_len=8192; 8090 ;; 8091 8092 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8093 # This has been around since 386BSD, at least. Likely further. 8094 if test -x /sbin/sysctl; then 8095 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8096 elif test -x /usr/sbin/sysctl; then 8097 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8098 else 8099 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8100 fi 8101 # And add a safety zone 8102 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8104 ;; 8105 8106 interix*) 8107 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8108 lt_cv_sys_max_cmd_len=196608 8109 ;; 8110 8111 os2*) 8112 # The test takes a long time on OS/2. 8113 lt_cv_sys_max_cmd_len=8192 8114 ;; 8115 8116 osf*) 8117 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8118 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8119 # nice to cause kernel panics so lets avoid the loop below. 8120 # First set a reasonable default. 8121 lt_cv_sys_max_cmd_len=16384 8122 # 8123 if test -x /sbin/sysconfig; then 8124 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8125 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8126 esac 8127 fi 8128 ;; 8129 sco3.2v5*) 8130 lt_cv_sys_max_cmd_len=102400 8131 ;; 8132 sysv5* | sco5v6* | sysv4.2uw2*) 8133 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8134 if test -n "$kargmax"; then 8135 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8136 else 8137 lt_cv_sys_max_cmd_len=32768 8138 fi 8139 ;; 8140 *) 8141 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8142 if test -n "$lt_cv_sys_max_cmd_len" && \ 8143 test undefined != "$lt_cv_sys_max_cmd_len"; then 8144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8146 else 8147 # Make teststring a little bigger before we do anything with it. 8148 # a 1K string should be a reasonable start. 8149 for i in 1 2 3 4 5 6 7 8; do 8150 teststring=$teststring$teststring 8151 done 8152 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8153 # If test is not a shell built-in, we'll probably end up computing a 8154 # maximum length that is only half of the actual maximum length, but 8155 # we can't tell. 8156 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8157 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8158 test 17 != "$i" # 1/2 MB should be enough 8159 do 8160 i=`expr $i + 1` 8161 teststring=$teststring$teststring 8162 done 8163 # Only check the string length outside the loop. 8164 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8165 teststring= 8166 # Add a significant safety factor because C++ compilers can tack on 8167 # massive amounts of additional arguments before passing them to the 8168 # linker. It appears as though 1/2 is a usable value. 8169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8170 fi 8171 ;; 8172 esac 8173 8174fi 8175 8176if test -n "$lt_cv_sys_max_cmd_len"; then 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8178$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8179else 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8181$as_echo "none" >&6; } 8182fi 8183max_cmd_len=$lt_cv_sys_max_cmd_len 8184 8185 8186 8187 8188 8189 8190: ${CP="cp -f"} 8191: ${MV="mv -f"} 8192: ${RM="rm -f"} 8193 8194if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8195 lt_unset=unset 8196else 8197 lt_unset=false 8198fi 8199 8200 8201 8202 8203 8204# test EBCDIC or ASCII 8205case `echo X|tr X '\101'` in 8206 A) # ASCII based system 8207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8208 lt_SP2NL='tr \040 \012' 8209 lt_NL2SP='tr \015\012 \040\040' 8210 ;; 8211 *) # EBCDIC based system 8212 lt_SP2NL='tr \100 \n' 8213 lt_NL2SP='tr \r\n \100\100' 8214 ;; 8215esac 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8226$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8227if ${lt_cv_to_host_file_cmd+:} false; then : 8228 $as_echo_n "(cached) " >&6 8229else 8230 case $host in 8231 *-*-mingw* ) 8232 case $build in 8233 *-*-mingw* ) # actually msys 8234 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8235 ;; 8236 *-*-cygwin* ) 8237 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8238 ;; 8239 * ) # otherwise, assume *nix 8240 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8241 ;; 8242 esac 8243 ;; 8244 *-*-cygwin* ) 8245 case $build in 8246 *-*-mingw* ) # actually msys 8247 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8248 ;; 8249 *-*-cygwin* ) 8250 lt_cv_to_host_file_cmd=func_convert_file_noop 8251 ;; 8252 * ) # otherwise, assume *nix 8253 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8254 ;; 8255 esac 8256 ;; 8257 * ) # unhandled hosts (and "normal" native builds) 8258 lt_cv_to_host_file_cmd=func_convert_file_noop 8259 ;; 8260esac 8261 8262fi 8263 8264to_host_file_cmd=$lt_cv_to_host_file_cmd 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8266$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8267 8268 8269 8270 8271 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8273$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8274if ${lt_cv_to_tool_file_cmd+:} false; then : 8275 $as_echo_n "(cached) " >&6 8276else 8277 #assume ordinary cross tools, or native build. 8278lt_cv_to_tool_file_cmd=func_convert_file_noop 8279case $host in 8280 *-*-mingw* ) 8281 case $build in 8282 *-*-mingw* ) # actually msys 8283 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8284 ;; 8285 esac 8286 ;; 8287esac 8288 8289fi 8290 8291to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8293$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8294 8295 8296 8297 8298 8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8300$as_echo_n "checking for $LD option to reload object files... " >&6; } 8301if ${lt_cv_ld_reload_flag+:} false; then : 8302 $as_echo_n "(cached) " >&6 8303else 8304 lt_cv_ld_reload_flag='-r' 8305fi 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8307$as_echo "$lt_cv_ld_reload_flag" >&6; } 8308reload_flag=$lt_cv_ld_reload_flag 8309case $reload_flag in 8310"" | " "*) ;; 8311*) reload_flag=" $reload_flag" ;; 8312esac 8313reload_cmds='$LD$reload_flag -o $output$reload_objs' 8314case $host_os in 8315 cygwin* | mingw* | pw32* | cegcc*) 8316 if test yes != "$GCC"; then 8317 reload_cmds=false 8318 fi 8319 ;; 8320 darwin*) 8321 if test yes = "$GCC"; then 8322 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8323 else 8324 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8325 fi 8326 ;; 8327esac 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337if test -n "$ac_tool_prefix"; then 8338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8339set dummy ${ac_tool_prefix}objdump; ac_word=$2 8340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8341$as_echo_n "checking for $ac_word... " >&6; } 8342if ${ac_cv_prog_OBJDUMP+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 if test -n "$OBJDUMP"; then 8346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8347else 8348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8349for as_dir in $PATH 8350do 8351 IFS=$as_save_IFS 8352 test -z "$as_dir" && as_dir=. 8353 for ac_exec_ext in '' $ac_executable_extensions; do 8354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8357 break 2 8358 fi 8359done 8360 done 8361IFS=$as_save_IFS 8362 8363fi 8364fi 8365OBJDUMP=$ac_cv_prog_OBJDUMP 8366if test -n "$OBJDUMP"; then 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8368$as_echo "$OBJDUMP" >&6; } 8369else 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8371$as_echo "no" >&6; } 8372fi 8373 8374 8375fi 8376if test -z "$ac_cv_prog_OBJDUMP"; then 8377 ac_ct_OBJDUMP=$OBJDUMP 8378 # Extract the first word of "objdump", so it can be a program name with args. 8379set dummy objdump; ac_word=$2 8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8381$as_echo_n "checking for $ac_word... " >&6; } 8382if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8383 $as_echo_n "(cached) " >&6 8384else 8385 if test -n "$ac_ct_OBJDUMP"; then 8386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8387else 8388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8389for as_dir in $PATH 8390do 8391 IFS=$as_save_IFS 8392 test -z "$as_dir" && as_dir=. 8393 for ac_exec_ext in '' $ac_executable_extensions; do 8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8395 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8397 break 2 8398 fi 8399done 8400 done 8401IFS=$as_save_IFS 8402 8403fi 8404fi 8405ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8406if test -n "$ac_ct_OBJDUMP"; then 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8408$as_echo "$ac_ct_OBJDUMP" >&6; } 8409else 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8411$as_echo "no" >&6; } 8412fi 8413 8414 if test "x$ac_ct_OBJDUMP" = x; then 8415 OBJDUMP="false" 8416 else 8417 case $cross_compiling:$ac_tool_warned in 8418yes:) 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8421ac_tool_warned=yes ;; 8422esac 8423 OBJDUMP=$ac_ct_OBJDUMP 8424 fi 8425else 8426 OBJDUMP="$ac_cv_prog_OBJDUMP" 8427fi 8428 8429test -z "$OBJDUMP" && OBJDUMP=objdump 8430 8431 8432 8433 8434 8435 8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8437$as_echo_n "checking how to recognize dependent libraries... " >&6; } 8438if ${lt_cv_deplibs_check_method+:} false; then : 8439 $as_echo_n "(cached) " >&6 8440else 8441 lt_cv_file_magic_cmd='$MAGIC_CMD' 8442lt_cv_file_magic_test_file= 8443lt_cv_deplibs_check_method='unknown' 8444# Need to set the preceding variable on all platforms that support 8445# interlibrary dependencies. 8446# 'none' -- dependencies not supported. 8447# 'unknown' -- same as none, but documents that we really don't know. 8448# 'pass_all' -- all dependencies passed with no checks. 8449# 'test_compile' -- check by making test program. 8450# 'file_magic [[regex]]' -- check by looking for files in library path 8451# that responds to the $file_magic_cmd with a given extended regex. 8452# If you have 'file' or equivalent on your system and you're not sure 8453# whether 'pass_all' will *always* work, you probably want this one. 8454 8455case $host_os in 8456aix[4-9]*) 8457 lt_cv_deplibs_check_method=pass_all 8458 ;; 8459 8460beos*) 8461 lt_cv_deplibs_check_method=pass_all 8462 ;; 8463 8464bsdi[45]*) 8465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8466 lt_cv_file_magic_cmd='/usr/bin/file -L' 8467 lt_cv_file_magic_test_file=/shlib/libc.so 8468 ;; 8469 8470cygwin*) 8471 # func_win32_libid is a shell function defined in ltmain.sh 8472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8473 lt_cv_file_magic_cmd='func_win32_libid' 8474 ;; 8475 8476mingw* | pw32*) 8477 # Base MSYS/MinGW do not provide the 'file' command needed by 8478 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8479 # unless we find 'file', for example because we are cross-compiling. 8480 if ( file / ) >/dev/null 2>&1; then 8481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8482 lt_cv_file_magic_cmd='func_win32_libid' 8483 else 8484 # Keep this pattern in sync with the one in func_win32_libid. 8485 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 8486 lt_cv_file_magic_cmd='$OBJDUMP -f' 8487 fi 8488 ;; 8489 8490cegcc*) 8491 # use the weaker test based on 'objdump'. See mingw*. 8492 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8493 lt_cv_file_magic_cmd='$OBJDUMP -f' 8494 ;; 8495 8496darwin* | rhapsody*) 8497 lt_cv_deplibs_check_method=pass_all 8498 ;; 8499 8500freebsd* | dragonfly*) 8501 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8502 case $host_cpu in 8503 i*86 ) 8504 # Not sure whether the presence of OpenBSD here was a mistake. 8505 # Let's accept both of them until this is cleared up. 8506 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8507 lt_cv_file_magic_cmd=/usr/bin/file 8508 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8509 ;; 8510 esac 8511 else 8512 lt_cv_deplibs_check_method=pass_all 8513 fi 8514 ;; 8515 8516haiku*) 8517 lt_cv_deplibs_check_method=pass_all 8518 ;; 8519 8520hpux10.20* | hpux11*) 8521 lt_cv_file_magic_cmd=/usr/bin/file 8522 case $host_cpu in 8523 ia64*) 8524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8525 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8526 ;; 8527 hppa*64*) 8528 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]' 8529 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8530 ;; 8531 *) 8532 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8533 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8534 ;; 8535 esac 8536 ;; 8537 8538interix[3-9]*) 8539 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8541 ;; 8542 8543irix5* | irix6* | nonstopux*) 8544 case $LD in 8545 *-32|*"-32 ") libmagic=32-bit;; 8546 *-n32|*"-n32 ") libmagic=N32;; 8547 *-64|*"-64 ") libmagic=64-bit;; 8548 *) libmagic=never-match;; 8549 esac 8550 lt_cv_deplibs_check_method=pass_all 8551 ;; 8552 8553# This must be glibc/ELF. 8554linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8555 lt_cv_deplibs_check_method=pass_all 8556 ;; 8557 8558netbsd* | netbsdelf*-gnu) 8559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8561 else 8562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8563 fi 8564 ;; 8565 8566newos6*) 8567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8568 lt_cv_file_magic_cmd=/usr/bin/file 8569 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8570 ;; 8571 8572*nto* | *qnx*) 8573 lt_cv_deplibs_check_method=pass_all 8574 ;; 8575 8576openbsd* | bitrig*) 8577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 8578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8579 else 8580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8581 fi 8582 ;; 8583 8584osf3* | osf4* | osf5*) 8585 lt_cv_deplibs_check_method=pass_all 8586 ;; 8587 8588rdos*) 8589 lt_cv_deplibs_check_method=pass_all 8590 ;; 8591 8592solaris*) 8593 lt_cv_deplibs_check_method=pass_all 8594 ;; 8595 8596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8597 lt_cv_deplibs_check_method=pass_all 8598 ;; 8599 8600sysv4 | sysv4.3*) 8601 case $host_vendor in 8602 motorola) 8603 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]' 8604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8605 ;; 8606 ncr) 8607 lt_cv_deplibs_check_method=pass_all 8608 ;; 8609 sequent) 8610 lt_cv_file_magic_cmd='/bin/file' 8611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8612 ;; 8613 sni) 8614 lt_cv_file_magic_cmd='/bin/file' 8615 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8616 lt_cv_file_magic_test_file=/lib/libc.so 8617 ;; 8618 siemens) 8619 lt_cv_deplibs_check_method=pass_all 8620 ;; 8621 pc) 8622 lt_cv_deplibs_check_method=pass_all 8623 ;; 8624 esac 8625 ;; 8626 8627tpf*) 8628 lt_cv_deplibs_check_method=pass_all 8629 ;; 8630os2*) 8631 lt_cv_deplibs_check_method=pass_all 8632 ;; 8633esac 8634 8635fi 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8637$as_echo "$lt_cv_deplibs_check_method" >&6; } 8638 8639file_magic_glob= 8640want_nocaseglob=no 8641if test "$build" = "$host"; then 8642 case $host_os in 8643 mingw* | pw32*) 8644 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 8645 want_nocaseglob=yes 8646 else 8647 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 8648 fi 8649 ;; 8650 esac 8651fi 8652 8653file_magic_cmd=$lt_cv_file_magic_cmd 8654deplibs_check_method=$lt_cv_deplibs_check_method 8655test -z "$deplibs_check_method" && deplibs_check_method=unknown 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678if test -n "$ac_tool_prefix"; then 8679 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8680set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8682$as_echo_n "checking for $ac_word... " >&6; } 8683if ${ac_cv_prog_DLLTOOL+:} false; then : 8684 $as_echo_n "(cached) " >&6 8685else 8686 if test -n "$DLLTOOL"; then 8687 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8688else 8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8690for as_dir in $PATH 8691do 8692 IFS=$as_save_IFS 8693 test -z "$as_dir" && as_dir=. 8694 for ac_exec_ext in '' $ac_executable_extensions; do 8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8696 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8698 break 2 8699 fi 8700done 8701 done 8702IFS=$as_save_IFS 8703 8704fi 8705fi 8706DLLTOOL=$ac_cv_prog_DLLTOOL 8707if test -n "$DLLTOOL"; then 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8709$as_echo "$DLLTOOL" >&6; } 8710else 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8712$as_echo "no" >&6; } 8713fi 8714 8715 8716fi 8717if test -z "$ac_cv_prog_DLLTOOL"; then 8718 ac_ct_DLLTOOL=$DLLTOOL 8719 # Extract the first word of "dlltool", so it can be a program name with args. 8720set dummy dlltool; ac_word=$2 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8722$as_echo_n "checking for $ac_word... " >&6; } 8723if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 if test -n "$ac_ct_DLLTOOL"; then 8727 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8728else 8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8730for as_dir in $PATH 8731do 8732 IFS=$as_save_IFS 8733 test -z "$as_dir" && as_dir=. 8734 for ac_exec_ext in '' $ac_executable_extensions; do 8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8736 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8738 break 2 8739 fi 8740done 8741 done 8742IFS=$as_save_IFS 8743 8744fi 8745fi 8746ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8747if test -n "$ac_ct_DLLTOOL"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8749$as_echo "$ac_ct_DLLTOOL" >&6; } 8750else 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8752$as_echo "no" >&6; } 8753fi 8754 8755 if test "x$ac_ct_DLLTOOL" = x; then 8756 DLLTOOL="false" 8757 else 8758 case $cross_compiling:$ac_tool_warned in 8759yes:) 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8762ac_tool_warned=yes ;; 8763esac 8764 DLLTOOL=$ac_ct_DLLTOOL 8765 fi 8766else 8767 DLLTOOL="$ac_cv_prog_DLLTOOL" 8768fi 8769 8770test -z "$DLLTOOL" && DLLTOOL=dlltool 8771 8772 8773 8774 8775 8776 8777 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 8779$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 8780if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 8781 $as_echo_n "(cached) " >&6 8782else 8783 lt_cv_sharedlib_from_linklib_cmd='unknown' 8784 8785case $host_os in 8786cygwin* | mingw* | pw32* | cegcc*) 8787 # two different shell functions defined in ltmain.sh; 8788 # decide which one to use based on capabilities of $DLLTOOL 8789 case `$DLLTOOL --help 2>&1` in 8790 *--identify-strict*) 8791 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 8792 ;; 8793 *) 8794 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 8795 ;; 8796 esac 8797 ;; 8798*) 8799 # fallback: assume linklib IS sharedlib 8800 lt_cv_sharedlib_from_linklib_cmd=$ECHO 8801 ;; 8802esac 8803 8804fi 8805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 8806$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 8807sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 8808test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 8809 8810 8811 8812 8813 8814 8815 8816if test -n "$ac_tool_prefix"; then 8817 for ac_prog in ar 8818 do 8819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8820set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8822$as_echo_n "checking for $ac_word... " >&6; } 8823if ${ac_cv_prog_AR+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825else 8826 if test -n "$AR"; then 8827 ac_cv_prog_AR="$AR" # Let the user override the test. 8828else 8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8830for as_dir in $PATH 8831do 8832 IFS=$as_save_IFS 8833 test -z "$as_dir" && as_dir=. 8834 for ac_exec_ext in '' $ac_executable_extensions; do 8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8836 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8838 break 2 8839 fi 8840done 8841 done 8842IFS=$as_save_IFS 8843 8844fi 8845fi 8846AR=$ac_cv_prog_AR 8847if test -n "$AR"; then 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8849$as_echo "$AR" >&6; } 8850else 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8852$as_echo "no" >&6; } 8853fi 8854 8855 8856 test -n "$AR" && break 8857 done 8858fi 8859if test -z "$AR"; then 8860 ac_ct_AR=$AR 8861 for ac_prog in ar 8862do 8863 # Extract the first word of "$ac_prog", so it can be a program name with args. 8864set dummy $ac_prog; ac_word=$2 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8866$as_echo_n "checking for $ac_word... " >&6; } 8867if ${ac_cv_prog_ac_ct_AR+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 if test -n "$ac_ct_AR"; then 8871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8872else 8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8874for as_dir in $PATH 8875do 8876 IFS=$as_save_IFS 8877 test -z "$as_dir" && as_dir=. 8878 for ac_exec_ext in '' $ac_executable_extensions; do 8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8880 ac_cv_prog_ac_ct_AR="$ac_prog" 8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8882 break 2 8883 fi 8884done 8885 done 8886IFS=$as_save_IFS 8887 8888fi 8889fi 8890ac_ct_AR=$ac_cv_prog_ac_ct_AR 8891if test -n "$ac_ct_AR"; then 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8893$as_echo "$ac_ct_AR" >&6; } 8894else 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896$as_echo "no" >&6; } 8897fi 8898 8899 8900 test -n "$ac_ct_AR" && break 8901done 8902 8903 if test "x$ac_ct_AR" = x; then 8904 AR="false" 8905 else 8906 case $cross_compiling:$ac_tool_warned in 8907yes:) 8908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8910ac_tool_warned=yes ;; 8911esac 8912 AR=$ac_ct_AR 8913 fi 8914fi 8915 8916: ${AR=ar} 8917: ${AR_FLAGS=cru} 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 8930$as_echo_n "checking for archiver @FILE support... " >&6; } 8931if ${lt_cv_ar_at_file+:} false; then : 8932 $as_echo_n "(cached) " >&6 8933else 8934 lt_cv_ar_at_file=no 8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8936/* end confdefs.h. */ 8937 8938int 8939main () 8940{ 8941 8942 ; 8943 return 0; 8944} 8945_ACEOF 8946if ac_fn_c_try_compile "$LINENO"; then : 8947 echo conftest.$ac_objext > conftest.lst 8948 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 8949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8950 (eval $lt_ar_try) 2>&5 8951 ac_status=$? 8952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8953 test $ac_status = 0; } 8954 if test 0 -eq "$ac_status"; then 8955 # Ensure the archiver fails upon bogus file names. 8956 rm -f conftest.$ac_objext libconftest.a 8957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 8958 (eval $lt_ar_try) 2>&5 8959 ac_status=$? 8960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8961 test $ac_status = 0; } 8962 if test 0 -ne "$ac_status"; then 8963 lt_cv_ar_at_file=@ 8964 fi 8965 fi 8966 rm -f conftest.* libconftest.a 8967 8968fi 8969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8970 8971fi 8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 8973$as_echo "$lt_cv_ar_at_file" >&6; } 8974 8975if test no = "$lt_cv_ar_at_file"; then 8976 archiver_list_spec= 8977else 8978 archiver_list_spec=$lt_cv_ar_at_file 8979fi 8980 8981 8982 8983 8984 8985 8986 8987if test -n "$ac_tool_prefix"; then 8988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 8989set dummy ${ac_tool_prefix}strip; ac_word=$2 8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8991$as_echo_n "checking for $ac_word... " >&6; } 8992if ${ac_cv_prog_STRIP+:} false; then : 8993 $as_echo_n "(cached) " >&6 8994else 8995 if test -n "$STRIP"; then 8996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 8997else 8998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8999for as_dir in $PATH 9000do 9001 IFS=$as_save_IFS 9002 test -z "$as_dir" && as_dir=. 9003 for ac_exec_ext in '' $ac_executable_extensions; do 9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9005 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9007 break 2 9008 fi 9009done 9010 done 9011IFS=$as_save_IFS 9012 9013fi 9014fi 9015STRIP=$ac_cv_prog_STRIP 9016if test -n "$STRIP"; then 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9018$as_echo "$STRIP" >&6; } 9019else 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9021$as_echo "no" >&6; } 9022fi 9023 9024 9025fi 9026if test -z "$ac_cv_prog_STRIP"; then 9027 ac_ct_STRIP=$STRIP 9028 # Extract the first word of "strip", so it can be a program name with args. 9029set dummy strip; ac_word=$2 9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9031$as_echo_n "checking for $ac_word... " >&6; } 9032if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9033 $as_echo_n "(cached) " >&6 9034else 9035 if test -n "$ac_ct_STRIP"; then 9036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9037else 9038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9039for as_dir in $PATH 9040do 9041 IFS=$as_save_IFS 9042 test -z "$as_dir" && as_dir=. 9043 for ac_exec_ext in '' $ac_executable_extensions; do 9044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9045 ac_cv_prog_ac_ct_STRIP="strip" 9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9047 break 2 9048 fi 9049done 9050 done 9051IFS=$as_save_IFS 9052 9053fi 9054fi 9055ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9056if test -n "$ac_ct_STRIP"; then 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9058$as_echo "$ac_ct_STRIP" >&6; } 9059else 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9061$as_echo "no" >&6; } 9062fi 9063 9064 if test "x$ac_ct_STRIP" = x; then 9065 STRIP=":" 9066 else 9067 case $cross_compiling:$ac_tool_warned in 9068yes:) 9069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9071ac_tool_warned=yes ;; 9072esac 9073 STRIP=$ac_ct_STRIP 9074 fi 9075else 9076 STRIP="$ac_cv_prog_STRIP" 9077fi 9078 9079test -z "$STRIP" && STRIP=: 9080 9081 9082 9083 9084 9085 9086if test -n "$ac_tool_prefix"; then 9087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9088set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9090$as_echo_n "checking for $ac_word... " >&6; } 9091if ${ac_cv_prog_RANLIB+:} false; then : 9092 $as_echo_n "(cached) " >&6 9093else 9094 if test -n "$RANLIB"; then 9095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9096else 9097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9098for as_dir in $PATH 9099do 9100 IFS=$as_save_IFS 9101 test -z "$as_dir" && as_dir=. 9102 for ac_exec_ext in '' $ac_executable_extensions; do 9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9106 break 2 9107 fi 9108done 9109 done 9110IFS=$as_save_IFS 9111 9112fi 9113fi 9114RANLIB=$ac_cv_prog_RANLIB 9115if test -n "$RANLIB"; then 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9117$as_echo "$RANLIB" >&6; } 9118else 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9120$as_echo "no" >&6; } 9121fi 9122 9123 9124fi 9125if test -z "$ac_cv_prog_RANLIB"; then 9126 ac_ct_RANLIB=$RANLIB 9127 # Extract the first word of "ranlib", so it can be a program name with args. 9128set dummy ranlib; ac_word=$2 9129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9130$as_echo_n "checking for $ac_word... " >&6; } 9131if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9132 $as_echo_n "(cached) " >&6 9133else 9134 if test -n "$ac_ct_RANLIB"; then 9135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9136else 9137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9138for as_dir in $PATH 9139do 9140 IFS=$as_save_IFS 9141 test -z "$as_dir" && as_dir=. 9142 for ac_exec_ext in '' $ac_executable_extensions; do 9143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9144 ac_cv_prog_ac_ct_RANLIB="ranlib" 9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9146 break 2 9147 fi 9148done 9149 done 9150IFS=$as_save_IFS 9151 9152fi 9153fi 9154ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9155if test -n "$ac_ct_RANLIB"; then 9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9157$as_echo "$ac_ct_RANLIB" >&6; } 9158else 9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9160$as_echo "no" >&6; } 9161fi 9162 9163 if test "x$ac_ct_RANLIB" = x; then 9164 RANLIB=":" 9165 else 9166 case $cross_compiling:$ac_tool_warned in 9167yes:) 9168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9170ac_tool_warned=yes ;; 9171esac 9172 RANLIB=$ac_ct_RANLIB 9173 fi 9174else 9175 RANLIB="$ac_cv_prog_RANLIB" 9176fi 9177 9178test -z "$RANLIB" && RANLIB=: 9179 9180 9181 9182 9183 9184 9185# Determine commands to create old-style static archives. 9186old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9187old_postinstall_cmds='chmod 644 $oldlib' 9188old_postuninstall_cmds= 9189 9190if test -n "$RANLIB"; then 9191 case $host_os in 9192 bitrig* | openbsd*) 9193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9194 ;; 9195 *) 9196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9197 ;; 9198 esac 9199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9200fi 9201 9202case $host_os in 9203 darwin*) 9204 lock_old_archive_extraction=yes ;; 9205 *) 9206 lock_old_archive_extraction=no ;; 9207esac 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247# If no C compiler was specified, use CC. 9248LTCC=${LTCC-"$CC"} 9249 9250# If no C compiler flags were specified, use CFLAGS. 9251LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9252 9253# Allow CC to be a program name with arguments. 9254compiler=$CC 9255 9256 9257# Check for command to grab the raw symbol name followed by C symbol from nm. 9258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9259$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9260if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9261 $as_echo_n "(cached) " >&6 9262else 9263 9264# These are sane defaults that work on at least a few old systems. 9265# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9266 9267# Character class describing NM global symbol codes. 9268symcode='[BCDEGRST]' 9269 9270# Regexp to match symbols that can be accessed directly from C. 9271sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9272 9273# Define system-specific variables. 9274case $host_os in 9275aix*) 9276 symcode='[BCDT]' 9277 ;; 9278cygwin* | mingw* | pw32* | cegcc*) 9279 symcode='[ABCDGISTW]' 9280 ;; 9281hpux*) 9282 if test ia64 = "$host_cpu"; then 9283 symcode='[ABCDEGRST]' 9284 fi 9285 ;; 9286irix* | nonstopux*) 9287 symcode='[BCDEGRST]' 9288 ;; 9289osf*) 9290 symcode='[BCDEGQRST]' 9291 ;; 9292solaris*) 9293 symcode='[BDRT]' 9294 ;; 9295sco3.2v5*) 9296 symcode='[DT]' 9297 ;; 9298sysv4.2uw2*) 9299 symcode='[DT]' 9300 ;; 9301sysv5* | sco5v6* | unixware* | OpenUNIX*) 9302 symcode='[ABDT]' 9303 ;; 9304sysv4) 9305 symcode='[DFNSTU]' 9306 ;; 9307esac 9308 9309# If we're using GNU nm, then use its standard symbol codes. 9310case `$NM -V 2>&1` in 9311*GNU* | *'with BFD'*) 9312 symcode='[ABCDGIRSTW]' ;; 9313esac 9314 9315if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9316 # Gets list of data symbols to import. 9317 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9318 # Adjust the below global symbol transforms to fixup imported variables. 9319 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9320 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9321 lt_c_name_lib_hook="\ 9322 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9323 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9324else 9325 # Disable hooks by default. 9326 lt_cv_sys_global_symbol_to_import= 9327 lt_cdecl_hook= 9328 lt_c_name_hook= 9329 lt_c_name_lib_hook= 9330fi 9331 9332# Transform an extracted symbol line into a proper C declaration. 9333# Some systems (esp. on ia64) link data and code symbols differently, 9334# so use this general approach. 9335lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 9336$lt_cdecl_hook\ 9337" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 9338" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 9339 9340# Transform an extracted symbol line into symbol name and symbol address 9341lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 9342$lt_c_name_hook\ 9343" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9344" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 9345 9346# Transform an extracted symbol line into symbol name with lib prefix and 9347# symbol address. 9348lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 9349$lt_c_name_lib_hook\ 9350" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 9351" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 9352" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 9353 9354# Handle CRLF in mingw tool chain 9355opt_cr= 9356case $build_os in 9357mingw*) 9358 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9359 ;; 9360esac 9361 9362# Try without a prefix underscore, then with it. 9363for ac_symprfx in "" "_"; do 9364 9365 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9366 symxfrm="\\1 $ac_symprfx\\2 \\2" 9367 9368 # Write the raw and C identifiers. 9369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9370 # Fake it for dumpbin and say T for any non-static function, 9371 # D for any global variable and I for any imported variable. 9372 # Also find C++ and __fastcall symbols from MSVC++, 9373 # which start with @ or ?. 9374 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9375" {last_section=section; section=\$ 3};"\ 9376" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 9377" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9378" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 9379" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 9380" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 9381" \$ 0!~/External *\|/{next};"\ 9382" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9383" {if(hide[section]) next};"\ 9384" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 9385" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 9386" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 9387" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 9388" ' prfx=^$ac_symprfx" 9389 else 9390 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9391 fi 9392 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 9393 9394 # Check to see that the pipe works correctly. 9395 pipe_works=no 9396 9397 rm -f conftest* 9398 cat > conftest.$ac_ext <<_LT_EOF 9399#ifdef __cplusplus 9400extern "C" { 9401#endif 9402char nm_test_var; 9403void nm_test_func(void); 9404void nm_test_func(void){} 9405#ifdef __cplusplus 9406} 9407#endif 9408int main(){nm_test_var='a';nm_test_func();return(0);} 9409_LT_EOF 9410 9411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9412 (eval $ac_compile) 2>&5 9413 ac_status=$? 9414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9415 test $ac_status = 0; }; then 9416 # Now try to grab the symbols. 9417 nlist=conftest.nm 9418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9419 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9420 ac_status=$? 9421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9422 test $ac_status = 0; } && test -s "$nlist"; then 9423 # Try sorting and uniquifying the output. 9424 if sort "$nlist" | uniq > "$nlist"T; then 9425 mv -f "$nlist"T "$nlist" 9426 else 9427 rm -f "$nlist"T 9428 fi 9429 9430 # Make sure that we snagged all the symbols we need. 9431 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9432 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9433 cat <<_LT_EOF > conftest.$ac_ext 9434/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 9435#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 9436/* DATA imports from DLLs on WIN32 can't be const, because runtime 9437 relocations are performed -- see ld's documentation on pseudo-relocs. */ 9438# define LT_DLSYM_CONST 9439#elif defined __osf__ 9440/* This system does not cope well with relocations in const data. */ 9441# define LT_DLSYM_CONST 9442#else 9443# define LT_DLSYM_CONST const 9444#endif 9445 9446#ifdef __cplusplus 9447extern "C" { 9448#endif 9449 9450_LT_EOF 9451 # Now generate the symbol file. 9452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9453 9454 cat <<_LT_EOF >> conftest.$ac_ext 9455 9456/* The mapping between symbol names and symbols. */ 9457LT_DLSYM_CONST struct { 9458 const char *name; 9459 void *address; 9460} 9461lt__PROGRAM__LTX_preloaded_symbols[] = 9462{ 9463 { "@PROGRAM@", (void *) 0 }, 9464_LT_EOF 9465 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9466 cat <<\_LT_EOF >> conftest.$ac_ext 9467 {0, (void *) 0} 9468}; 9469 9470/* This works around a problem in FreeBSD linker */ 9471#ifdef FREEBSD_WORKAROUND 9472static const void *lt_preloaded_setup() { 9473 return lt__PROGRAM__LTX_preloaded_symbols; 9474} 9475#endif 9476 9477#ifdef __cplusplus 9478} 9479#endif 9480_LT_EOF 9481 # Now try linking the two files. 9482 mv conftest.$ac_objext conftstm.$ac_objext 9483 lt_globsym_save_LIBS=$LIBS 9484 lt_globsym_save_CFLAGS=$CFLAGS 9485 LIBS=conftstm.$ac_objext 9486 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9488 (eval $ac_link) 2>&5 9489 ac_status=$? 9490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9491 test $ac_status = 0; } && test -s conftest$ac_exeext; then 9492 pipe_works=yes 9493 fi 9494 LIBS=$lt_globsym_save_LIBS 9495 CFLAGS=$lt_globsym_save_CFLAGS 9496 else 9497 echo "cannot find nm_test_func in $nlist" >&5 9498 fi 9499 else 9500 echo "cannot find nm_test_var in $nlist" >&5 9501 fi 9502 else 9503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9504 fi 9505 else 9506 echo "$progname: failed program was:" >&5 9507 cat conftest.$ac_ext >&5 9508 fi 9509 rm -rf conftest* conftst* 9510 9511 # Do not use the global_symbol_pipe unless it works. 9512 if test yes = "$pipe_works"; then 9513 break 9514 else 9515 lt_cv_sys_global_symbol_pipe= 9516 fi 9517done 9518 9519fi 9520 9521if test -z "$lt_cv_sys_global_symbol_pipe"; then 9522 lt_cv_sys_global_symbol_to_cdecl= 9523fi 9524if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9526$as_echo "failed" >&6; } 9527else 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9529$as_echo "ok" >&6; } 9530fi 9531 9532# Response file support. 9533if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9534 nm_file_list_spec='@' 9535elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 9536 nm_file_list_spec='@' 9537fi 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 9576$as_echo_n "checking for sysroot... " >&6; } 9577 9578# Check whether --with-sysroot was given. 9579if test "${with_sysroot+set}" = set; then : 9580 withval=$with_sysroot; 9581else 9582 with_sysroot=no 9583fi 9584 9585 9586lt_sysroot= 9587case $with_sysroot in #( 9588 yes) 9589 if test yes = "$GCC"; then 9590 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 9591 fi 9592 ;; #( 9593 /*) 9594 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 9595 ;; #( 9596 no|'') 9597 ;; #( 9598 *) 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 9600$as_echo "$with_sysroot" >&6; } 9601 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 9602 ;; 9603esac 9604 9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 9606$as_echo "${lt_sysroot:-no}" >&6; } 9607 9608 9609 9610 9611 9612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 9613$as_echo_n "checking for a working dd... " >&6; } 9614if ${ac_cv_path_lt_DD+:} false; then : 9615 $as_echo_n "(cached) " >&6 9616else 9617 printf 0123456789abcdef0123456789abcdef >conftest.i 9618cat conftest.i conftest.i >conftest2.i 9619: ${lt_DD:=$DD} 9620if test -z "$lt_DD"; then 9621 ac_path_lt_DD_found=false 9622 # Loop through the user's path and test for each of PROGNAME-LIST 9623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9624for as_dir in $PATH 9625do 9626 IFS=$as_save_IFS 9627 test -z "$as_dir" && as_dir=. 9628 for ac_prog in dd; do 9629 for ac_exec_ext in '' $ac_executable_extensions; do 9630 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 9631 as_fn_executable_p "$ac_path_lt_DD" || continue 9632if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9633 cmp -s conftest.i conftest.out \ 9634 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 9635fi 9636 $ac_path_lt_DD_found && break 3 9637 done 9638 done 9639 done 9640IFS=$as_save_IFS 9641 if test -z "$ac_cv_path_lt_DD"; then 9642 : 9643 fi 9644else 9645 ac_cv_path_lt_DD=$lt_DD 9646fi 9647 9648rm -f conftest.i conftest2.i conftest.out 9649fi 9650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 9651$as_echo "$ac_cv_path_lt_DD" >&6; } 9652 9653 9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 9655$as_echo_n "checking how to truncate binary pipes... " >&6; } 9656if ${lt_cv_truncate_bin+:} false; then : 9657 $as_echo_n "(cached) " >&6 9658else 9659 printf 0123456789abcdef0123456789abcdef >conftest.i 9660cat conftest.i conftest.i >conftest2.i 9661lt_cv_truncate_bin= 9662if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 9663 cmp -s conftest.i conftest.out \ 9664 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 9665fi 9666rm -f conftest.i conftest2.i conftest.out 9667test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 9668fi 9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 9670$as_echo "$lt_cv_truncate_bin" >&6; } 9671 9672 9673 9674 9675 9676 9677 9678# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 9679func_cc_basename () 9680{ 9681 for cc_temp in $*""; do 9682 case $cc_temp in 9683 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9684 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9685 \-*) ;; 9686 *) break;; 9687 esac 9688 done 9689 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9690} 9691 9692# Check whether --enable-libtool-lock was given. 9693if test "${enable_libtool_lock+set}" = set; then : 9694 enableval=$enable_libtool_lock; 9695fi 9696 9697test no = "$enable_libtool_lock" || enable_libtool_lock=yes 9698 9699# Some flags need to be propagated to the compiler or linker for good 9700# libtool support. 9701case $host in 9702ia64-*-hpux*) 9703 # Find out what ABI is being produced by ac_compile, and set mode 9704 # options accordingly. 9705 echo 'int i;' > conftest.$ac_ext 9706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9707 (eval $ac_compile) 2>&5 9708 ac_status=$? 9709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9710 test $ac_status = 0; }; then 9711 case `/usr/bin/file conftest.$ac_objext` in 9712 *ELF-32*) 9713 HPUX_IA64_MODE=32 9714 ;; 9715 *ELF-64*) 9716 HPUX_IA64_MODE=64 9717 ;; 9718 esac 9719 fi 9720 rm -rf conftest* 9721 ;; 9722*-*-irix6*) 9723 # Find out what ABI is being produced by ac_compile, and set linker 9724 # options accordingly. 9725 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9727 (eval $ac_compile) 2>&5 9728 ac_status=$? 9729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9730 test $ac_status = 0; }; then 9731 if test yes = "$lt_cv_prog_gnu_ld"; then 9732 case `/usr/bin/file conftest.$ac_objext` in 9733 *32-bit*) 9734 LD="${LD-ld} -melf32bsmip" 9735 ;; 9736 *N32*) 9737 LD="${LD-ld} -melf32bmipn32" 9738 ;; 9739 *64-bit*) 9740 LD="${LD-ld} -melf64bmip" 9741 ;; 9742 esac 9743 else 9744 case `/usr/bin/file conftest.$ac_objext` in 9745 *32-bit*) 9746 LD="${LD-ld} -32" 9747 ;; 9748 *N32*) 9749 LD="${LD-ld} -n32" 9750 ;; 9751 *64-bit*) 9752 LD="${LD-ld} -64" 9753 ;; 9754 esac 9755 fi 9756 fi 9757 rm -rf conftest* 9758 ;; 9759 9760mips64*-*linux*) 9761 # Find out what ABI is being produced by ac_compile, and set linker 9762 # options accordingly. 9763 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9765 (eval $ac_compile) 2>&5 9766 ac_status=$? 9767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9768 test $ac_status = 0; }; then 9769 emul=elf 9770 case `/usr/bin/file conftest.$ac_objext` in 9771 *32-bit*) 9772 emul="${emul}32" 9773 ;; 9774 *64-bit*) 9775 emul="${emul}64" 9776 ;; 9777 esac 9778 case `/usr/bin/file conftest.$ac_objext` in 9779 *MSB*) 9780 emul="${emul}btsmip" 9781 ;; 9782 *LSB*) 9783 emul="${emul}ltsmip" 9784 ;; 9785 esac 9786 case `/usr/bin/file conftest.$ac_objext` in 9787 *N32*) 9788 emul="${emul}n32" 9789 ;; 9790 esac 9791 LD="${LD-ld} -m $emul" 9792 fi 9793 rm -rf conftest* 9794 ;; 9795 9796x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9797s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9798 # Find out what ABI is being produced by ac_compile, and set linker 9799 # options accordingly. Note that the listed cases only cover the 9800 # situations where additional linker options are needed (such as when 9801 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 9802 # vice versa); the common cases where no linker options are needed do 9803 # not appear in the list. 9804 echo 'int i;' > conftest.$ac_ext 9805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9806 (eval $ac_compile) 2>&5 9807 ac_status=$? 9808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9809 test $ac_status = 0; }; then 9810 case `/usr/bin/file conftest.o` in 9811 *32-bit*) 9812 case $host in 9813 x86_64-*kfreebsd*-gnu) 9814 LD="${LD-ld} -m elf_i386_fbsd" 9815 ;; 9816 x86_64-*linux*) 9817 case `/usr/bin/file conftest.o` in 9818 *x86-64*) 9819 LD="${LD-ld} -m elf32_x86_64" 9820 ;; 9821 *) 9822 LD="${LD-ld} -m elf_i386" 9823 ;; 9824 esac 9825 ;; 9826 powerpc64le-*linux*) 9827 LD="${LD-ld} -m elf32lppclinux" 9828 ;; 9829 powerpc64-*linux*) 9830 LD="${LD-ld} -m elf32ppclinux" 9831 ;; 9832 s390x-*linux*) 9833 LD="${LD-ld} -m elf_s390" 9834 ;; 9835 sparc64-*linux*) 9836 LD="${LD-ld} -m elf32_sparc" 9837 ;; 9838 esac 9839 ;; 9840 *64-bit*) 9841 case $host in 9842 x86_64-*kfreebsd*-gnu) 9843 LD="${LD-ld} -m elf_x86_64_fbsd" 9844 ;; 9845 x86_64-*linux*) 9846 LD="${LD-ld} -m elf_x86_64" 9847 ;; 9848 powerpcle-*linux*) 9849 LD="${LD-ld} -m elf64lppc" 9850 ;; 9851 powerpc-*linux*) 9852 LD="${LD-ld} -m elf64ppc" 9853 ;; 9854 s390*-*linux*|s390*-*tpf*) 9855 LD="${LD-ld} -m elf64_s390" 9856 ;; 9857 sparc*-*linux*) 9858 LD="${LD-ld} -m elf64_sparc" 9859 ;; 9860 esac 9861 ;; 9862 esac 9863 fi 9864 rm -rf conftest* 9865 ;; 9866 9867*-*-sco3.2v5*) 9868 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9869 SAVE_CFLAGS=$CFLAGS 9870 CFLAGS="$CFLAGS -belf" 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9872$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9873if ${lt_cv_cc_needs_belf+:} false; then : 9874 $as_echo_n "(cached) " >&6 9875else 9876 ac_ext=c 9877ac_cpp='$CPP $CPPFLAGS' 9878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9880ac_compiler_gnu=$ac_cv_c_compiler_gnu 9881 9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9883/* end confdefs.h. */ 9884 9885int 9886main () 9887{ 9888 9889 ; 9890 return 0; 9891} 9892_ACEOF 9893if ac_fn_c_try_link "$LINENO"; then : 9894 lt_cv_cc_needs_belf=yes 9895else 9896 lt_cv_cc_needs_belf=no 9897fi 9898rm -f core conftest.err conftest.$ac_objext \ 9899 conftest$ac_exeext conftest.$ac_ext 9900 ac_ext=c 9901ac_cpp='$CPP $CPPFLAGS' 9902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9904ac_compiler_gnu=$ac_cv_c_compiler_gnu 9905 9906fi 9907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9908$as_echo "$lt_cv_cc_needs_belf" >&6; } 9909 if test yes != "$lt_cv_cc_needs_belf"; then 9910 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9911 CFLAGS=$SAVE_CFLAGS 9912 fi 9913 ;; 9914*-*solaris*) 9915 # Find out what ABI is being produced by ac_compile, and set linker 9916 # options accordingly. 9917 echo 'int i;' > conftest.$ac_ext 9918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9919 (eval $ac_compile) 2>&5 9920 ac_status=$? 9921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9922 test $ac_status = 0; }; then 9923 case `/usr/bin/file conftest.o` in 9924 *64-bit*) 9925 case $lt_cv_prog_gnu_ld in 9926 yes*) 9927 case $host in 9928 i?86-*-solaris*|x86_64-*-solaris*) 9929 LD="${LD-ld} -m elf_x86_64" 9930 ;; 9931 sparc*-*-solaris*) 9932 LD="${LD-ld} -m elf64_sparc" 9933 ;; 9934 esac 9935 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 9936 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 9937 LD=${LD-ld}_sol2 9938 fi 9939 ;; 9940 *) 9941 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9942 LD="${LD-ld} -64" 9943 fi 9944 ;; 9945 esac 9946 ;; 9947 esac 9948 fi 9949 rm -rf conftest* 9950 ;; 9951esac 9952 9953need_locks=$enable_libtool_lock 9954 9955if test -n "$ac_tool_prefix"; then 9956 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 9957set dummy ${ac_tool_prefix}mt; ac_word=$2 9958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9959$as_echo_n "checking for $ac_word... " >&6; } 9960if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 9961 $as_echo_n "(cached) " >&6 9962else 9963 if test -n "$MANIFEST_TOOL"; then 9964 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 9965else 9966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9967for as_dir in $PATH 9968do 9969 IFS=$as_save_IFS 9970 test -z "$as_dir" && as_dir=. 9971 for ac_exec_ext in '' $ac_executable_extensions; do 9972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9973 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9975 break 2 9976 fi 9977done 9978 done 9979IFS=$as_save_IFS 9980 9981fi 9982fi 9983MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 9984if test -n "$MANIFEST_TOOL"; then 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 9986$as_echo "$MANIFEST_TOOL" >&6; } 9987else 9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9989$as_echo "no" >&6; } 9990fi 9991 9992 9993fi 9994if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 9995 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 9996 # Extract the first word of "mt", so it can be a program name with args. 9997set dummy mt; ac_word=$2 9998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9999$as_echo_n "checking for $ac_word... " >&6; } 10000if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10001 $as_echo_n "(cached) " >&6 10002else 10003 if test -n "$ac_ct_MANIFEST_TOOL"; then 10004 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10005else 10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10007for as_dir in $PATH 10008do 10009 IFS=$as_save_IFS 10010 test -z "$as_dir" && as_dir=. 10011 for ac_exec_ext in '' $ac_executable_extensions; do 10012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10013 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10015 break 2 10016 fi 10017done 10018 done 10019IFS=$as_save_IFS 10020 10021fi 10022fi 10023ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10024if test -n "$ac_ct_MANIFEST_TOOL"; then 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10026$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10027else 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10029$as_echo "no" >&6; } 10030fi 10031 10032 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10033 MANIFEST_TOOL=":" 10034 else 10035 case $cross_compiling:$ac_tool_warned in 10036yes:) 10037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10039ac_tool_warned=yes ;; 10040esac 10041 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10042 fi 10043else 10044 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10045fi 10046 10047test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10049$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10050if ${lt_cv_path_mainfest_tool+:} false; then : 10051 $as_echo_n "(cached) " >&6 10052else 10053 lt_cv_path_mainfest_tool=no 10054 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10055 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10056 cat conftest.err >&5 10057 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10058 lt_cv_path_mainfest_tool=yes 10059 fi 10060 rm -f conftest* 10061fi 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10063$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10064if test yes != "$lt_cv_path_mainfest_tool"; then 10065 MANIFEST_TOOL=: 10066fi 10067 10068 10069 10070 10071 10072 10073 case $host_os in 10074 rhapsody* | darwin*) 10075 if test -n "$ac_tool_prefix"; then 10076 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10077set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10079$as_echo_n "checking for $ac_word... " >&6; } 10080if ${ac_cv_prog_DSYMUTIL+:} false; then : 10081 $as_echo_n "(cached) " >&6 10082else 10083 if test -n "$DSYMUTIL"; then 10084 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10085else 10086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10087for as_dir in $PATH 10088do 10089 IFS=$as_save_IFS 10090 test -z "$as_dir" && as_dir=. 10091 for ac_exec_ext in '' $ac_executable_extensions; do 10092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10093 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10095 break 2 10096 fi 10097done 10098 done 10099IFS=$as_save_IFS 10100 10101fi 10102fi 10103DSYMUTIL=$ac_cv_prog_DSYMUTIL 10104if test -n "$DSYMUTIL"; then 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10106$as_echo "$DSYMUTIL" >&6; } 10107else 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10109$as_echo "no" >&6; } 10110fi 10111 10112 10113fi 10114if test -z "$ac_cv_prog_DSYMUTIL"; then 10115 ac_ct_DSYMUTIL=$DSYMUTIL 10116 # Extract the first word of "dsymutil", so it can be a program name with args. 10117set dummy dsymutil; ac_word=$2 10118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10119$as_echo_n "checking for $ac_word... " >&6; } 10120if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10121 $as_echo_n "(cached) " >&6 10122else 10123 if test -n "$ac_ct_DSYMUTIL"; then 10124 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10125else 10126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10127for as_dir in $PATH 10128do 10129 IFS=$as_save_IFS 10130 test -z "$as_dir" && as_dir=. 10131 for ac_exec_ext in '' $ac_executable_extensions; do 10132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10133 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10135 break 2 10136 fi 10137done 10138 done 10139IFS=$as_save_IFS 10140 10141fi 10142fi 10143ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10144if test -n "$ac_ct_DSYMUTIL"; then 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10146$as_echo "$ac_ct_DSYMUTIL" >&6; } 10147else 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10149$as_echo "no" >&6; } 10150fi 10151 10152 if test "x$ac_ct_DSYMUTIL" = x; then 10153 DSYMUTIL=":" 10154 else 10155 case $cross_compiling:$ac_tool_warned in 10156yes:) 10157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10159ac_tool_warned=yes ;; 10160esac 10161 DSYMUTIL=$ac_ct_DSYMUTIL 10162 fi 10163else 10164 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10165fi 10166 10167 if test -n "$ac_tool_prefix"; then 10168 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10169set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10171$as_echo_n "checking for $ac_word... " >&6; } 10172if ${ac_cv_prog_NMEDIT+:} false; then : 10173 $as_echo_n "(cached) " >&6 10174else 10175 if test -n "$NMEDIT"; then 10176 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10177else 10178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10179for as_dir in $PATH 10180do 10181 IFS=$as_save_IFS 10182 test -z "$as_dir" && as_dir=. 10183 for ac_exec_ext in '' $ac_executable_extensions; do 10184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10185 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10187 break 2 10188 fi 10189done 10190 done 10191IFS=$as_save_IFS 10192 10193fi 10194fi 10195NMEDIT=$ac_cv_prog_NMEDIT 10196if test -n "$NMEDIT"; then 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10198$as_echo "$NMEDIT" >&6; } 10199else 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10201$as_echo "no" >&6; } 10202fi 10203 10204 10205fi 10206if test -z "$ac_cv_prog_NMEDIT"; then 10207 ac_ct_NMEDIT=$NMEDIT 10208 # Extract the first word of "nmedit", so it can be a program name with args. 10209set dummy nmedit; ac_word=$2 10210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10211$as_echo_n "checking for $ac_word... " >&6; } 10212if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10213 $as_echo_n "(cached) " >&6 10214else 10215 if test -n "$ac_ct_NMEDIT"; then 10216 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10217else 10218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10219for as_dir in $PATH 10220do 10221 IFS=$as_save_IFS 10222 test -z "$as_dir" && as_dir=. 10223 for ac_exec_ext in '' $ac_executable_extensions; do 10224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10225 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10227 break 2 10228 fi 10229done 10230 done 10231IFS=$as_save_IFS 10232 10233fi 10234fi 10235ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10236if test -n "$ac_ct_NMEDIT"; then 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10238$as_echo "$ac_ct_NMEDIT" >&6; } 10239else 10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10241$as_echo "no" >&6; } 10242fi 10243 10244 if test "x$ac_ct_NMEDIT" = x; then 10245 NMEDIT=":" 10246 else 10247 case $cross_compiling:$ac_tool_warned in 10248yes:) 10249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10251ac_tool_warned=yes ;; 10252esac 10253 NMEDIT=$ac_ct_NMEDIT 10254 fi 10255else 10256 NMEDIT="$ac_cv_prog_NMEDIT" 10257fi 10258 10259 if test -n "$ac_tool_prefix"; then 10260 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10261set dummy ${ac_tool_prefix}lipo; ac_word=$2 10262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10263$as_echo_n "checking for $ac_word... " >&6; } 10264if ${ac_cv_prog_LIPO+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266else 10267 if test -n "$LIPO"; then 10268 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10269else 10270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10271for as_dir in $PATH 10272do 10273 IFS=$as_save_IFS 10274 test -z "$as_dir" && as_dir=. 10275 for ac_exec_ext in '' $ac_executable_extensions; do 10276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10277 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10279 break 2 10280 fi 10281done 10282 done 10283IFS=$as_save_IFS 10284 10285fi 10286fi 10287LIPO=$ac_cv_prog_LIPO 10288if test -n "$LIPO"; then 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10290$as_echo "$LIPO" >&6; } 10291else 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10293$as_echo "no" >&6; } 10294fi 10295 10296 10297fi 10298if test -z "$ac_cv_prog_LIPO"; then 10299 ac_ct_LIPO=$LIPO 10300 # Extract the first word of "lipo", so it can be a program name with args. 10301set dummy lipo; ac_word=$2 10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10303$as_echo_n "checking for $ac_word... " >&6; } 10304if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10305 $as_echo_n "(cached) " >&6 10306else 10307 if test -n "$ac_ct_LIPO"; then 10308 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10309else 10310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10311for as_dir in $PATH 10312do 10313 IFS=$as_save_IFS 10314 test -z "$as_dir" && as_dir=. 10315 for ac_exec_ext in '' $ac_executable_extensions; do 10316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10317 ac_cv_prog_ac_ct_LIPO="lipo" 10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10319 break 2 10320 fi 10321done 10322 done 10323IFS=$as_save_IFS 10324 10325fi 10326fi 10327ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10328if test -n "$ac_ct_LIPO"; then 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10330$as_echo "$ac_ct_LIPO" >&6; } 10331else 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10333$as_echo "no" >&6; } 10334fi 10335 10336 if test "x$ac_ct_LIPO" = x; then 10337 LIPO=":" 10338 else 10339 case $cross_compiling:$ac_tool_warned in 10340yes:) 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10343ac_tool_warned=yes ;; 10344esac 10345 LIPO=$ac_ct_LIPO 10346 fi 10347else 10348 LIPO="$ac_cv_prog_LIPO" 10349fi 10350 10351 if test -n "$ac_tool_prefix"; then 10352 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10353set dummy ${ac_tool_prefix}otool; ac_word=$2 10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10355$as_echo_n "checking for $ac_word... " >&6; } 10356if ${ac_cv_prog_OTOOL+:} false; then : 10357 $as_echo_n "(cached) " >&6 10358else 10359 if test -n "$OTOOL"; then 10360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10361else 10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10363for as_dir in $PATH 10364do 10365 IFS=$as_save_IFS 10366 test -z "$as_dir" && as_dir=. 10367 for ac_exec_ext in '' $ac_executable_extensions; do 10368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10369 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10371 break 2 10372 fi 10373done 10374 done 10375IFS=$as_save_IFS 10376 10377fi 10378fi 10379OTOOL=$ac_cv_prog_OTOOL 10380if test -n "$OTOOL"; then 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10382$as_echo "$OTOOL" >&6; } 10383else 10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10385$as_echo "no" >&6; } 10386fi 10387 10388 10389fi 10390if test -z "$ac_cv_prog_OTOOL"; then 10391 ac_ct_OTOOL=$OTOOL 10392 # Extract the first word of "otool", so it can be a program name with args. 10393set dummy otool; ac_word=$2 10394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10395$as_echo_n "checking for $ac_word... " >&6; } 10396if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10397 $as_echo_n "(cached) " >&6 10398else 10399 if test -n "$ac_ct_OTOOL"; then 10400 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10401else 10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10403for as_dir in $PATH 10404do 10405 IFS=$as_save_IFS 10406 test -z "$as_dir" && as_dir=. 10407 for ac_exec_ext in '' $ac_executable_extensions; do 10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10409 ac_cv_prog_ac_ct_OTOOL="otool" 10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10411 break 2 10412 fi 10413done 10414 done 10415IFS=$as_save_IFS 10416 10417fi 10418fi 10419ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10420if test -n "$ac_ct_OTOOL"; then 10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10422$as_echo "$ac_ct_OTOOL" >&6; } 10423else 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10425$as_echo "no" >&6; } 10426fi 10427 10428 if test "x$ac_ct_OTOOL" = x; then 10429 OTOOL=":" 10430 else 10431 case $cross_compiling:$ac_tool_warned in 10432yes:) 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10435ac_tool_warned=yes ;; 10436esac 10437 OTOOL=$ac_ct_OTOOL 10438 fi 10439else 10440 OTOOL="$ac_cv_prog_OTOOL" 10441fi 10442 10443 if test -n "$ac_tool_prefix"; then 10444 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10445set dummy ${ac_tool_prefix}otool64; ac_word=$2 10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10447$as_echo_n "checking for $ac_word... " >&6; } 10448if ${ac_cv_prog_OTOOL64+:} false; then : 10449 $as_echo_n "(cached) " >&6 10450else 10451 if test -n "$OTOOL64"; then 10452 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10453else 10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10455for as_dir in $PATH 10456do 10457 IFS=$as_save_IFS 10458 test -z "$as_dir" && as_dir=. 10459 for ac_exec_ext in '' $ac_executable_extensions; do 10460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10461 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10463 break 2 10464 fi 10465done 10466 done 10467IFS=$as_save_IFS 10468 10469fi 10470fi 10471OTOOL64=$ac_cv_prog_OTOOL64 10472if test -n "$OTOOL64"; then 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10474$as_echo "$OTOOL64" >&6; } 10475else 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10477$as_echo "no" >&6; } 10478fi 10479 10480 10481fi 10482if test -z "$ac_cv_prog_OTOOL64"; then 10483 ac_ct_OTOOL64=$OTOOL64 10484 # Extract the first word of "otool64", so it can be a program name with args. 10485set dummy otool64; ac_word=$2 10486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10487$as_echo_n "checking for $ac_word... " >&6; } 10488if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10489 $as_echo_n "(cached) " >&6 10490else 10491 if test -n "$ac_ct_OTOOL64"; then 10492 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10493else 10494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10495for as_dir in $PATH 10496do 10497 IFS=$as_save_IFS 10498 test -z "$as_dir" && as_dir=. 10499 for ac_exec_ext in '' $ac_executable_extensions; do 10500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10501 ac_cv_prog_ac_ct_OTOOL64="otool64" 10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10503 break 2 10504 fi 10505done 10506 done 10507IFS=$as_save_IFS 10508 10509fi 10510fi 10511ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10512if test -n "$ac_ct_OTOOL64"; then 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10514$as_echo "$ac_ct_OTOOL64" >&6; } 10515else 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10517$as_echo "no" >&6; } 10518fi 10519 10520 if test "x$ac_ct_OTOOL64" = x; then 10521 OTOOL64=":" 10522 else 10523 case $cross_compiling:$ac_tool_warned in 10524yes:) 10525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10527ac_tool_warned=yes ;; 10528esac 10529 OTOOL64=$ac_ct_OTOOL64 10530 fi 10531else 10532 OTOOL64="$ac_cv_prog_OTOOL64" 10533fi 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10562$as_echo_n "checking for -single_module linker flag... " >&6; } 10563if ${lt_cv_apple_cc_single_mod+:} false; then : 10564 $as_echo_n "(cached) " >&6 10565else 10566 lt_cv_apple_cc_single_mod=no 10567 if test -z "$LT_MULTI_MODULE"; then 10568 # By default we will add the -single_module flag. You can override 10569 # by either setting the environment variable LT_MULTI_MODULE 10570 # non-empty at configure time, or by adding -multi_module to the 10571 # link flags. 10572 rm -rf libconftest.dylib* 10573 echo "int foo(void){return 1;}" > conftest.c 10574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10575-dynamiclib -Wl,-single_module conftest.c" >&5 10576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10578 _lt_result=$? 10579 # If there is a non-empty error log, and "single_module" 10580 # appears in it, assume the flag caused a linker warning 10581 if test -s conftest.err && $GREP single_module conftest.err; then 10582 cat conftest.err >&5 10583 # Otherwise, if the output was created with a 0 exit code from 10584 # the compiler, it worked. 10585 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10586 lt_cv_apple_cc_single_mod=yes 10587 else 10588 cat conftest.err >&5 10589 fi 10590 rm -rf libconftest.dylib* 10591 rm -f conftest.* 10592 fi 10593fi 10594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10595$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10596 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10598$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10599if ${lt_cv_ld_exported_symbols_list+:} false; then : 10600 $as_echo_n "(cached) " >&6 10601else 10602 lt_cv_ld_exported_symbols_list=no 10603 save_LDFLAGS=$LDFLAGS 10604 echo "_main" > conftest.sym 10605 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10607/* end confdefs.h. */ 10608 10609int 10610main () 10611{ 10612 10613 ; 10614 return 0; 10615} 10616_ACEOF 10617if ac_fn_c_try_link "$LINENO"; then : 10618 lt_cv_ld_exported_symbols_list=yes 10619else 10620 lt_cv_ld_exported_symbols_list=no 10621fi 10622rm -f core conftest.err conftest.$ac_objext \ 10623 conftest$ac_exeext conftest.$ac_ext 10624 LDFLAGS=$save_LDFLAGS 10625 10626fi 10627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10628$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10629 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10631$as_echo_n "checking for -force_load linker flag... " >&6; } 10632if ${lt_cv_ld_force_load+:} false; then : 10633 $as_echo_n "(cached) " >&6 10634else 10635 lt_cv_ld_force_load=no 10636 cat > conftest.c << _LT_EOF 10637int forced_loaded() { return 2;} 10638_LT_EOF 10639 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10640 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10641 echo "$AR cru libconftest.a conftest.o" >&5 10642 $AR cru libconftest.a conftest.o 2>&5 10643 echo "$RANLIB libconftest.a" >&5 10644 $RANLIB libconftest.a 2>&5 10645 cat > conftest.c << _LT_EOF 10646int main() { return 0;} 10647_LT_EOF 10648 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10649 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10650 _lt_result=$? 10651 if test -s conftest.err && $GREP force_load conftest.err; then 10652 cat conftest.err >&5 10653 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10654 lt_cv_ld_force_load=yes 10655 else 10656 cat conftest.err >&5 10657 fi 10658 rm -f conftest.err libconftest.a conftest conftest.c 10659 rm -rf conftest.dSYM 10660 10661fi 10662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10663$as_echo "$lt_cv_ld_force_load" >&6; } 10664 case $host_os in 10665 rhapsody* | darwin1.[012]) 10666 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10667 darwin1.*) 10668 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10669 darwin*) # darwin 5.x on 10670 # if running on 10.5 or later, the deployment target defaults 10671 # to the OS version, if on x86, and 10.4, the deployment 10672 # target defaults to 10.4. Don't you love it? 10673 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10674 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 10675 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10676 10.[012][,.]*) 10677 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10678 10.*) 10679 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10680 esac 10681 ;; 10682 esac 10683 if test yes = "$lt_cv_apple_cc_single_mod"; then 10684 _lt_dar_single_mod='$single_module' 10685 fi 10686 if test yes = "$lt_cv_ld_exported_symbols_list"; then 10687 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10688 else 10689 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10690 fi 10691 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10692 _lt_dsymutil='~$DSYMUTIL $lib || :' 10693 else 10694 _lt_dsymutil= 10695 fi 10696 ;; 10697 esac 10698 10699# func_munge_path_list VARIABLE PATH 10700# ----------------------------------- 10701# VARIABLE is name of variable containing _space_ separated list of 10702# directories to be munged by the contents of PATH, which is string 10703# having a format: 10704# "DIR[:DIR]:" 10705# string "DIR[ DIR]" will be prepended to VARIABLE 10706# ":DIR[:DIR]" 10707# string "DIR[ DIR]" will be appended to VARIABLE 10708# "DIRP[:DIRP]::[DIRA:]DIRA" 10709# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 10710# "DIRA[ DIRA]" will be appended to VARIABLE 10711# "DIR[:DIR]" 10712# VARIABLE will be replaced by "DIR[ DIR]" 10713func_munge_path_list () 10714{ 10715 case x$2 in 10716 x) 10717 ;; 10718 *:) 10719 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 10720 ;; 10721 x:*) 10722 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 10723 ;; 10724 *::*) 10725 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 10726 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 10727 ;; 10728 *) 10729 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 10730 ;; 10731 esac 10732} 10733 10734for ac_header in dlfcn.h 10735do : 10736 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10737" 10738if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10739 cat >>confdefs.h <<_ACEOF 10740#define HAVE_DLFCN_H 1 10741_ACEOF 10742 10743fi 10744 10745done 10746 10747 10748 10749 10750 10751# Set options 10752enable_win32_dll=yes 10753 10754case $host in 10755*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 10756 if test -n "$ac_tool_prefix"; then 10757 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 10758set dummy ${ac_tool_prefix}as; ac_word=$2 10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10760$as_echo_n "checking for $ac_word... " >&6; } 10761if ${ac_cv_prog_AS+:} false; then : 10762 $as_echo_n "(cached) " >&6 10763else 10764 if test -n "$AS"; then 10765 ac_cv_prog_AS="$AS" # Let the user override the test. 10766else 10767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10768for as_dir in $PATH 10769do 10770 IFS=$as_save_IFS 10771 test -z "$as_dir" && as_dir=. 10772 for ac_exec_ext in '' $ac_executable_extensions; do 10773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10774 ac_cv_prog_AS="${ac_tool_prefix}as" 10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10776 break 2 10777 fi 10778done 10779 done 10780IFS=$as_save_IFS 10781 10782fi 10783fi 10784AS=$ac_cv_prog_AS 10785if test -n "$AS"; then 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 10787$as_echo "$AS" >&6; } 10788else 10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10790$as_echo "no" >&6; } 10791fi 10792 10793 10794fi 10795if test -z "$ac_cv_prog_AS"; then 10796 ac_ct_AS=$AS 10797 # Extract the first word of "as", so it can be a program name with args. 10798set dummy as; ac_word=$2 10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10800$as_echo_n "checking for $ac_word... " >&6; } 10801if ${ac_cv_prog_ac_ct_AS+:} false; then : 10802 $as_echo_n "(cached) " >&6 10803else 10804 if test -n "$ac_ct_AS"; then 10805 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 10806else 10807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10808for as_dir in $PATH 10809do 10810 IFS=$as_save_IFS 10811 test -z "$as_dir" && as_dir=. 10812 for ac_exec_ext in '' $ac_executable_extensions; do 10813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10814 ac_cv_prog_ac_ct_AS="as" 10815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10816 break 2 10817 fi 10818done 10819 done 10820IFS=$as_save_IFS 10821 10822fi 10823fi 10824ac_ct_AS=$ac_cv_prog_ac_ct_AS 10825if test -n "$ac_ct_AS"; then 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 10827$as_echo "$ac_ct_AS" >&6; } 10828else 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10830$as_echo "no" >&6; } 10831fi 10832 10833 if test "x$ac_ct_AS" = x; then 10834 AS="false" 10835 else 10836 case $cross_compiling:$ac_tool_warned in 10837yes:) 10838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10840ac_tool_warned=yes ;; 10841esac 10842 AS=$ac_ct_AS 10843 fi 10844else 10845 AS="$ac_cv_prog_AS" 10846fi 10847 10848 if test -n "$ac_tool_prefix"; then 10849 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 10850set dummy ${ac_tool_prefix}dlltool; ac_word=$2 10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10852$as_echo_n "checking for $ac_word... " >&6; } 10853if ${ac_cv_prog_DLLTOOL+:} false; then : 10854 $as_echo_n "(cached) " >&6 10855else 10856 if test -n "$DLLTOOL"; then 10857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 10858else 10859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10860for as_dir in $PATH 10861do 10862 IFS=$as_save_IFS 10863 test -z "$as_dir" && as_dir=. 10864 for ac_exec_ext in '' $ac_executable_extensions; do 10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10866 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10868 break 2 10869 fi 10870done 10871 done 10872IFS=$as_save_IFS 10873 10874fi 10875fi 10876DLLTOOL=$ac_cv_prog_DLLTOOL 10877if test -n "$DLLTOOL"; then 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 10879$as_echo "$DLLTOOL" >&6; } 10880else 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10882$as_echo "no" >&6; } 10883fi 10884 10885 10886fi 10887if test -z "$ac_cv_prog_DLLTOOL"; then 10888 ac_ct_DLLTOOL=$DLLTOOL 10889 # Extract the first word of "dlltool", so it can be a program name with args. 10890set dummy dlltool; ac_word=$2 10891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10892$as_echo_n "checking for $ac_word... " >&6; } 10893if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 10894 $as_echo_n "(cached) " >&6 10895else 10896 if test -n "$ac_ct_DLLTOOL"; then 10897 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 10898else 10899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10900for as_dir in $PATH 10901do 10902 IFS=$as_save_IFS 10903 test -z "$as_dir" && as_dir=. 10904 for ac_exec_ext in '' $ac_executable_extensions; do 10905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10906 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 10907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10908 break 2 10909 fi 10910done 10911 done 10912IFS=$as_save_IFS 10913 10914fi 10915fi 10916ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 10917if test -n "$ac_ct_DLLTOOL"; then 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 10919$as_echo "$ac_ct_DLLTOOL" >&6; } 10920else 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10922$as_echo "no" >&6; } 10923fi 10924 10925 if test "x$ac_ct_DLLTOOL" = x; then 10926 DLLTOOL="false" 10927 else 10928 case $cross_compiling:$ac_tool_warned in 10929yes:) 10930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10932ac_tool_warned=yes ;; 10933esac 10934 DLLTOOL=$ac_ct_DLLTOOL 10935 fi 10936else 10937 DLLTOOL="$ac_cv_prog_DLLTOOL" 10938fi 10939 10940 if test -n "$ac_tool_prefix"; then 10941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 10942set dummy ${ac_tool_prefix}objdump; ac_word=$2 10943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10944$as_echo_n "checking for $ac_word... " >&6; } 10945if ${ac_cv_prog_OBJDUMP+:} false; then : 10946 $as_echo_n "(cached) " >&6 10947else 10948 if test -n "$OBJDUMP"; then 10949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 10950else 10951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10952for as_dir in $PATH 10953do 10954 IFS=$as_save_IFS 10955 test -z "$as_dir" && as_dir=. 10956 for ac_exec_ext in '' $ac_executable_extensions; do 10957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 10959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10960 break 2 10961 fi 10962done 10963 done 10964IFS=$as_save_IFS 10965 10966fi 10967fi 10968OBJDUMP=$ac_cv_prog_OBJDUMP 10969if test -n "$OBJDUMP"; then 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 10971$as_echo "$OBJDUMP" >&6; } 10972else 10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10974$as_echo "no" >&6; } 10975fi 10976 10977 10978fi 10979if test -z "$ac_cv_prog_OBJDUMP"; then 10980 ac_ct_OBJDUMP=$OBJDUMP 10981 # Extract the first word of "objdump", so it can be a program name with args. 10982set dummy objdump; ac_word=$2 10983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10984$as_echo_n "checking for $ac_word... " >&6; } 10985if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 10986 $as_echo_n "(cached) " >&6 10987else 10988 if test -n "$ac_ct_OBJDUMP"; then 10989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 10990else 10991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10992for as_dir in $PATH 10993do 10994 IFS=$as_save_IFS 10995 test -z "$as_dir" && as_dir=. 10996 for ac_exec_ext in '' $ac_executable_extensions; do 10997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10998 ac_cv_prog_ac_ct_OBJDUMP="objdump" 10999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11000 break 2 11001 fi 11002done 11003 done 11004IFS=$as_save_IFS 11005 11006fi 11007fi 11008ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11009if test -n "$ac_ct_OBJDUMP"; then 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11011$as_echo "$ac_ct_OBJDUMP" >&6; } 11012else 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11014$as_echo "no" >&6; } 11015fi 11016 11017 if test "x$ac_ct_OBJDUMP" = x; then 11018 OBJDUMP="false" 11019 else 11020 case $cross_compiling:$ac_tool_warned in 11021yes:) 11022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11024ac_tool_warned=yes ;; 11025esac 11026 OBJDUMP=$ac_ct_OBJDUMP 11027 fi 11028else 11029 OBJDUMP="$ac_cv_prog_OBJDUMP" 11030fi 11031 11032 ;; 11033esac 11034 11035test -z "$AS" && AS=as 11036 11037 11038 11039 11040 11041test -z "$DLLTOOL" && DLLTOOL=dlltool 11042 11043 11044 11045 11046 11047test -z "$OBJDUMP" && OBJDUMP=objdump 11048 11049 11050 11051 11052 11053 11054 11055 enable_dlopen=no 11056 11057 11058 11059 # Check whether --enable-shared was given. 11060if test "${enable_shared+set}" = set; then : 11061 enableval=$enable_shared; p=${PACKAGE-default} 11062 case $enableval in 11063 yes) enable_shared=yes ;; 11064 no) enable_shared=no ;; 11065 *) 11066 enable_shared=no 11067 # Look at the argument we got. We use all the common list separators. 11068 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11069 for pkg in $enableval; do 11070 IFS=$lt_save_ifs 11071 if test "X$pkg" = "X$p"; then 11072 enable_shared=yes 11073 fi 11074 done 11075 IFS=$lt_save_ifs 11076 ;; 11077 esac 11078else 11079 enable_shared=yes 11080fi 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 # Check whether --enable-static was given. 11091if test "${enable_static+set}" = set; then : 11092 enableval=$enable_static; p=${PACKAGE-default} 11093 case $enableval in 11094 yes) enable_static=yes ;; 11095 no) enable_static=no ;; 11096 *) 11097 enable_static=no 11098 # Look at the argument we got. We use all the common list separators. 11099 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11100 for pkg in $enableval; do 11101 IFS=$lt_save_ifs 11102 if test "X$pkg" = "X$p"; then 11103 enable_static=yes 11104 fi 11105 done 11106 IFS=$lt_save_ifs 11107 ;; 11108 esac 11109else 11110 enable_static=yes 11111fi 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122# Check whether --with-pic was given. 11123if test "${with_pic+set}" = set; then : 11124 withval=$with_pic; lt_p=${PACKAGE-default} 11125 case $withval in 11126 yes|no) pic_mode=$withval ;; 11127 *) 11128 pic_mode=default 11129 # Look at the argument we got. We use all the common list separators. 11130 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11131 for lt_pkg in $withval; do 11132 IFS=$lt_save_ifs 11133 if test "X$lt_pkg" = "X$lt_p"; then 11134 pic_mode=yes 11135 fi 11136 done 11137 IFS=$lt_save_ifs 11138 ;; 11139 esac 11140else 11141 pic_mode=default 11142fi 11143 11144 11145 11146 11147 11148 11149 11150 11151 # Check whether --enable-fast-install was given. 11152if test "${enable_fast_install+set}" = set; then : 11153 enableval=$enable_fast_install; p=${PACKAGE-default} 11154 case $enableval in 11155 yes) enable_fast_install=yes ;; 11156 no) enable_fast_install=no ;; 11157 *) 11158 enable_fast_install=no 11159 # Look at the argument we got. We use all the common list separators. 11160 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11161 for pkg in $enableval; do 11162 IFS=$lt_save_ifs 11163 if test "X$pkg" = "X$p"; then 11164 enable_fast_install=yes 11165 fi 11166 done 11167 IFS=$lt_save_ifs 11168 ;; 11169 esac 11170else 11171 enable_fast_install=yes 11172fi 11173 11174 11175 11176 11177 11178 11179 11180 11181 shared_archive_member_spec= 11182case $host,$enable_shared in 11183power*-*-aix[5-9]*,yes) 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11185$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11186 11187# Check whether --with-aix-soname was given. 11188if test "${with_aix_soname+set}" = set; then : 11189 withval=$with_aix_soname; case $withval in 11190 aix|svr4|both) 11191 ;; 11192 *) 11193 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11194 ;; 11195 esac 11196 lt_cv_with_aix_soname=$with_aix_soname 11197else 11198 if ${lt_cv_with_aix_soname+:} false; then : 11199 $as_echo_n "(cached) " >&6 11200else 11201 lt_cv_with_aix_soname=aix 11202fi 11203 11204 with_aix_soname=$lt_cv_with_aix_soname 11205fi 11206 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11208$as_echo "$with_aix_soname" >&6; } 11209 if test aix != "$with_aix_soname"; then 11210 # For the AIX way of multilib, we name the shared archive member 11211 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11212 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11213 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11214 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11215 if test 64 = "${OBJECT_MODE-32}"; then 11216 shared_archive_member_spec=shr_64 11217 else 11218 shared_archive_member_spec=shr 11219 fi 11220 fi 11221 ;; 11222*) 11223 with_aix_soname=aix 11224 ;; 11225esac 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236# This can be used to rebuild libtool when needed 11237LIBTOOL_DEPS=$ltmain 11238 11239# Always use our own libtool. 11240LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271test -z "$LN_S" && LN_S="ln -s" 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286if test -n "${ZSH_VERSION+set}"; then 11287 setopt NO_GLOB_SUBST 11288fi 11289 11290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11291$as_echo_n "checking for objdir... " >&6; } 11292if ${lt_cv_objdir+:} false; then : 11293 $as_echo_n "(cached) " >&6 11294else 11295 rm -f .libs 2>/dev/null 11296mkdir .libs 2>/dev/null 11297if test -d .libs; then 11298 lt_cv_objdir=.libs 11299else 11300 # MS-DOS does not allow filenames that begin with a dot. 11301 lt_cv_objdir=_libs 11302fi 11303rmdir .libs 2>/dev/null 11304fi 11305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11306$as_echo "$lt_cv_objdir" >&6; } 11307objdir=$lt_cv_objdir 11308 11309 11310 11311 11312 11313cat >>confdefs.h <<_ACEOF 11314#define LT_OBJDIR "$lt_cv_objdir/" 11315_ACEOF 11316 11317 11318 11319 11320case $host_os in 11321aix3*) 11322 # AIX sometimes has problems with the GCC collect2 program. For some 11323 # reason, if we set the COLLECT_NAMES environment variable, the problems 11324 # vanish in a puff of smoke. 11325 if test set != "${COLLECT_NAMES+set}"; then 11326 COLLECT_NAMES= 11327 export COLLECT_NAMES 11328 fi 11329 ;; 11330esac 11331 11332# Global variables: 11333ofile=libtool 11334can_build_shared=yes 11335 11336# All known linkers require a '.a' archive for static linking (except MSVC, 11337# which needs '.lib'). 11338libext=a 11339 11340with_gnu_ld=$lt_cv_prog_gnu_ld 11341 11342old_CC=$CC 11343old_CFLAGS=$CFLAGS 11344 11345# Set sane defaults for various variables 11346test -z "$CC" && CC=cc 11347test -z "$LTCC" && LTCC=$CC 11348test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11349test -z "$LD" && LD=ld 11350test -z "$ac_objext" && ac_objext=o 11351 11352func_cc_basename $compiler 11353cc_basename=$func_cc_basename_result 11354 11355 11356# Only perform the check for file, if the check method requires it 11357test -z "$MAGIC_CMD" && MAGIC_CMD=file 11358case $deplibs_check_method in 11359file_magic*) 11360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11362$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11363if ${lt_cv_path_MAGIC_CMD+:} false; then : 11364 $as_echo_n "(cached) " >&6 11365else 11366 case $MAGIC_CMD in 11367[\\/*] | ?:[\\/]*) 11368 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11369 ;; 11370*) 11371 lt_save_MAGIC_CMD=$MAGIC_CMD 11372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11374 for ac_dir in $ac_dummy; do 11375 IFS=$lt_save_ifs 11376 test -z "$ac_dir" && ac_dir=. 11377 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11378 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11379 if test -n "$file_magic_test_file"; then 11380 case $deplibs_check_method in 11381 "file_magic "*) 11382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11383 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11385 $EGREP "$file_magic_regex" > /dev/null; then 11386 : 11387 else 11388 cat <<_LT_EOF 1>&2 11389 11390*** Warning: the command libtool uses to detect shared libraries, 11391*** $file_magic_cmd, produces output that libtool cannot recognize. 11392*** The result is that libtool may fail to recognize shared libraries 11393*** as such. This will affect the creation of libtool libraries that 11394*** depend on shared libraries, but programs linked with such libtool 11395*** libraries will work regardless of this problem. Nevertheless, you 11396*** may want to report the problem to your system manager and/or to 11397*** bug-libtool@gnu.org 11398 11399_LT_EOF 11400 fi ;; 11401 esac 11402 fi 11403 break 11404 fi 11405 done 11406 IFS=$lt_save_ifs 11407 MAGIC_CMD=$lt_save_MAGIC_CMD 11408 ;; 11409esac 11410fi 11411 11412MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11413if test -n "$MAGIC_CMD"; then 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11415$as_echo "$MAGIC_CMD" >&6; } 11416else 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11418$as_echo "no" >&6; } 11419fi 11420 11421 11422 11423 11424 11425if test -z "$lt_cv_path_MAGIC_CMD"; then 11426 if test -n "$ac_tool_prefix"; then 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11428$as_echo_n "checking for file... " >&6; } 11429if ${lt_cv_path_MAGIC_CMD+:} false; then : 11430 $as_echo_n "(cached) " >&6 11431else 11432 case $MAGIC_CMD in 11433[\\/*] | ?:[\\/]*) 11434 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11435 ;; 11436*) 11437 lt_save_MAGIC_CMD=$MAGIC_CMD 11438 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11440 for ac_dir in $ac_dummy; do 11441 IFS=$lt_save_ifs 11442 test -z "$ac_dir" && ac_dir=. 11443 if test -f "$ac_dir/file"; then 11444 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11445 if test -n "$file_magic_test_file"; then 11446 case $deplibs_check_method in 11447 "file_magic "*) 11448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11449 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11451 $EGREP "$file_magic_regex" > /dev/null; then 11452 : 11453 else 11454 cat <<_LT_EOF 1>&2 11455 11456*** Warning: the command libtool uses to detect shared libraries, 11457*** $file_magic_cmd, produces output that libtool cannot recognize. 11458*** The result is that libtool may fail to recognize shared libraries 11459*** as such. This will affect the creation of libtool libraries that 11460*** depend on shared libraries, but programs linked with such libtool 11461*** libraries will work regardless of this problem. Nevertheless, you 11462*** may want to report the problem to your system manager and/or to 11463*** bug-libtool@gnu.org 11464 11465_LT_EOF 11466 fi ;; 11467 esac 11468 fi 11469 break 11470 fi 11471 done 11472 IFS=$lt_save_ifs 11473 MAGIC_CMD=$lt_save_MAGIC_CMD 11474 ;; 11475esac 11476fi 11477 11478MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11479if test -n "$MAGIC_CMD"; then 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11481$as_echo "$MAGIC_CMD" >&6; } 11482else 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11484$as_echo "no" >&6; } 11485fi 11486 11487 11488 else 11489 MAGIC_CMD=: 11490 fi 11491fi 11492 11493 fi 11494 ;; 11495esac 11496 11497# Use C for the default configuration in the libtool script 11498 11499lt_save_CC=$CC 11500ac_ext=c 11501ac_cpp='$CPP $CPPFLAGS' 11502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11504ac_compiler_gnu=$ac_cv_c_compiler_gnu 11505 11506 11507# Source file extension for C test sources. 11508ac_ext=c 11509 11510# Object file extension for compiled C test sources. 11511objext=o 11512objext=$objext 11513 11514# Code to be used in simple compile tests 11515lt_simple_compile_test_code="int some_variable = 0;" 11516 11517# Code to be used in simple link tests 11518lt_simple_link_test_code='int main(){return(0);}' 11519 11520 11521 11522 11523 11524 11525 11526# If no C compiler was specified, use CC. 11527LTCC=${LTCC-"$CC"} 11528 11529# If no C compiler flags were specified, use CFLAGS. 11530LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11531 11532# Allow CC to be a program name with arguments. 11533compiler=$CC 11534 11535# Save the default compiler, since it gets overwritten when the other 11536# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11537compiler_DEFAULT=$CC 11538 11539# save warnings/boilerplate of simple test code 11540ac_outfile=conftest.$ac_objext 11541echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11542eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11543_lt_compiler_boilerplate=`cat conftest.err` 11544$RM conftest* 11545 11546ac_outfile=conftest.$ac_objext 11547echo "$lt_simple_link_test_code" >conftest.$ac_ext 11548eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11549_lt_linker_boilerplate=`cat conftest.err` 11550$RM -r conftest* 11551 11552 11553## CAVEAT EMPTOR: 11554## There is no encapsulation within the following macros, do not change 11555## the running order or otherwise move them around unless you know exactly 11556## what you are doing... 11557if test -n "$compiler"; then 11558 11559lt_prog_compiler_no_builtin_flag= 11560 11561if test yes = "$GCC"; then 11562 case $cc_basename in 11563 nvcc*) 11564 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11565 *) 11566 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11567 esac 11568 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11570$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11571if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573else 11574 lt_cv_prog_compiler_rtti_exceptions=no 11575 ac_outfile=conftest.$ac_objext 11576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11577 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11578 # Insert the option either (1) after the last *FLAGS variable, or 11579 # (2) before a word containing "conftest.", or (3) at the end. 11580 # Note that $ac_compile itself does not contain backslashes and begins 11581 # with a dollar sign (not a hyphen), so the echo should work correctly. 11582 # The option is referenced via a variable to avoid confusing sed. 11583 lt_compile=`echo "$ac_compile" | $SED \ 11584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11586 -e 's:$: $lt_compiler_flag:'` 11587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11588 (eval "$lt_compile" 2>conftest.err) 11589 ac_status=$? 11590 cat conftest.err >&5 11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11592 if (exit $ac_status) && test -s "$ac_outfile"; then 11593 # The compiler can only warn and ignore the option if not recognized 11594 # So say no if there are warnings other than the usual output. 11595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11598 lt_cv_prog_compiler_rtti_exceptions=yes 11599 fi 11600 fi 11601 $RM conftest* 11602 11603fi 11604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11605$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11606 11607if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11609else 11610 : 11611fi 11612 11613fi 11614 11615 11616 11617 11618 11619 11620 lt_prog_compiler_wl= 11621lt_prog_compiler_pic= 11622lt_prog_compiler_static= 11623 11624 11625 if test yes = "$GCC"; then 11626 lt_prog_compiler_wl='-Wl,' 11627 lt_prog_compiler_static='-static' 11628 11629 case $host_os in 11630 aix*) 11631 # All AIX code is PIC. 11632 if test ia64 = "$host_cpu"; then 11633 # AIX 5 now supports IA64 processor 11634 lt_prog_compiler_static='-Bstatic' 11635 fi 11636 lt_prog_compiler_pic='-fPIC' 11637 ;; 11638 11639 amigaos*) 11640 case $host_cpu in 11641 powerpc) 11642 # see comment about AmigaOS4 .so support 11643 lt_prog_compiler_pic='-fPIC' 11644 ;; 11645 m68k) 11646 # FIXME: we need at least 68020 code to build shared libraries, but 11647 # adding the '-m68020' flag to GCC prevents building anything better, 11648 # like '-m68040'. 11649 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11650 ;; 11651 esac 11652 ;; 11653 11654 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11655 # PIC is the default for these OSes. 11656 ;; 11657 11658 mingw* | cygwin* | pw32* | os2* | cegcc*) 11659 # This hack is so that the source file can tell whether it is being 11660 # built for inclusion in a dll (and should export symbols for example). 11661 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11662 # (--disable-auto-import) libraries 11663 lt_prog_compiler_pic='-DDLL_EXPORT' 11664 case $host_os in 11665 os2*) 11666 lt_prog_compiler_static='$wl-static' 11667 ;; 11668 esac 11669 ;; 11670 11671 darwin* | rhapsody*) 11672 # PIC is the default on this platform 11673 # Common symbols not allowed in MH_DYLIB files 11674 lt_prog_compiler_pic='-fno-common' 11675 ;; 11676 11677 haiku*) 11678 # PIC is the default for Haiku. 11679 # The "-static" flag exists, but is broken. 11680 lt_prog_compiler_static= 11681 ;; 11682 11683 hpux*) 11684 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11685 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11686 # sets the default TLS model and affects inlining. 11687 case $host_cpu in 11688 hppa*64*) 11689 # +Z the default 11690 ;; 11691 *) 11692 lt_prog_compiler_pic='-fPIC' 11693 ;; 11694 esac 11695 ;; 11696 11697 interix[3-9]*) 11698 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11699 # Instead, we relocate shared libraries at runtime. 11700 ;; 11701 11702 msdosdjgpp*) 11703 # Just because we use GCC doesn't mean we suddenly get shared libraries 11704 # on systems that don't support them. 11705 lt_prog_compiler_can_build_shared=no 11706 enable_shared=no 11707 ;; 11708 11709 *nto* | *qnx*) 11710 # QNX uses GNU C++, but need to define -shared option too, otherwise 11711 # it will coredump. 11712 lt_prog_compiler_pic='-fPIC -shared' 11713 ;; 11714 11715 sysv4*MP*) 11716 if test -d /usr/nec; then 11717 lt_prog_compiler_pic=-Kconform_pic 11718 fi 11719 ;; 11720 11721 *) 11722 lt_prog_compiler_pic='-fPIC' 11723 ;; 11724 esac 11725 11726 case $cc_basename in 11727 nvcc*) # Cuda Compiler Driver 2.2 11728 lt_prog_compiler_wl='-Xlinker ' 11729 if test -n "$lt_prog_compiler_pic"; then 11730 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 11731 fi 11732 ;; 11733 esac 11734 else 11735 # PORTME Check for flag to pass linker flags through the system compiler. 11736 case $host_os in 11737 aix*) 11738 lt_prog_compiler_wl='-Wl,' 11739 if test ia64 = "$host_cpu"; then 11740 # AIX 5 now supports IA64 processor 11741 lt_prog_compiler_static='-Bstatic' 11742 else 11743 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11744 fi 11745 ;; 11746 11747 darwin* | rhapsody*) 11748 # PIC is the default on this platform 11749 # Common symbols not allowed in MH_DYLIB files 11750 lt_prog_compiler_pic='-fno-common' 11751 case $cc_basename in 11752 nagfor*) 11753 # NAG Fortran compiler 11754 lt_prog_compiler_wl='-Wl,-Wl,,' 11755 lt_prog_compiler_pic='-PIC' 11756 lt_prog_compiler_static='-Bstatic' 11757 ;; 11758 esac 11759 ;; 11760 11761 mingw* | cygwin* | pw32* | os2* | cegcc*) 11762 # This hack is so that the source file can tell whether it is being 11763 # built for inclusion in a dll (and should export symbols for example). 11764 lt_prog_compiler_pic='-DDLL_EXPORT' 11765 case $host_os in 11766 os2*) 11767 lt_prog_compiler_static='$wl-static' 11768 ;; 11769 esac 11770 ;; 11771 11772 hpux9* | hpux10* | hpux11*) 11773 lt_prog_compiler_wl='-Wl,' 11774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11775 # not for PA HP-UX. 11776 case $host_cpu in 11777 hppa*64*|ia64*) 11778 # +Z the default 11779 ;; 11780 *) 11781 lt_prog_compiler_pic='+Z' 11782 ;; 11783 esac 11784 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11785 lt_prog_compiler_static='$wl-a ${wl}archive' 11786 ;; 11787 11788 irix5* | irix6* | nonstopux*) 11789 lt_prog_compiler_wl='-Wl,' 11790 # PIC (with -KPIC) is the default. 11791 lt_prog_compiler_static='-non_shared' 11792 ;; 11793 11794 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11795 case $cc_basename in 11796 # old Intel for x86_64, which still supported -KPIC. 11797 ecc*) 11798 lt_prog_compiler_wl='-Wl,' 11799 lt_prog_compiler_pic='-KPIC' 11800 lt_prog_compiler_static='-static' 11801 ;; 11802 # icc used to be incompatible with GCC. 11803 # ICC 10 doesn't accept -KPIC any more. 11804 icc* | ifort*) 11805 lt_prog_compiler_wl='-Wl,' 11806 lt_prog_compiler_pic='-fPIC' 11807 lt_prog_compiler_static='-static' 11808 ;; 11809 # Lahey Fortran 8.1. 11810 lf95*) 11811 lt_prog_compiler_wl='-Wl,' 11812 lt_prog_compiler_pic='--shared' 11813 lt_prog_compiler_static='--static' 11814 ;; 11815 nagfor*) 11816 # NAG Fortran compiler 11817 lt_prog_compiler_wl='-Wl,-Wl,,' 11818 lt_prog_compiler_pic='-PIC' 11819 lt_prog_compiler_static='-Bstatic' 11820 ;; 11821 tcc*) 11822 # Fabrice Bellard et al's Tiny C Compiler 11823 lt_prog_compiler_wl='-Wl,' 11824 lt_prog_compiler_pic='-fPIC' 11825 lt_prog_compiler_static='-static' 11826 ;; 11827 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11828 # Portland Group compilers (*not* the Pentium gcc compiler, 11829 # which looks to be a dead project) 11830 lt_prog_compiler_wl='-Wl,' 11831 lt_prog_compiler_pic='-fpic' 11832 lt_prog_compiler_static='-Bstatic' 11833 ;; 11834 ccc*) 11835 lt_prog_compiler_wl='-Wl,' 11836 # All Alpha code is PIC. 11837 lt_prog_compiler_static='-non_shared' 11838 ;; 11839 xl* | bgxl* | bgf* | mpixl*) 11840 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11841 lt_prog_compiler_wl='-Wl,' 11842 lt_prog_compiler_pic='-qpic' 11843 lt_prog_compiler_static='-qstaticlink' 11844 ;; 11845 *) 11846 case `$CC -V 2>&1 | sed 5q` in 11847 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 11848 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11849 lt_prog_compiler_pic='-KPIC' 11850 lt_prog_compiler_static='-Bstatic' 11851 lt_prog_compiler_wl='' 11852 ;; 11853 *Sun\ F* | *Sun*Fortran*) 11854 lt_prog_compiler_pic='-KPIC' 11855 lt_prog_compiler_static='-Bstatic' 11856 lt_prog_compiler_wl='-Qoption ld ' 11857 ;; 11858 *Sun\ C*) 11859 # Sun C 5.9 11860 lt_prog_compiler_pic='-KPIC' 11861 lt_prog_compiler_static='-Bstatic' 11862 lt_prog_compiler_wl='-Wl,' 11863 ;; 11864 *Intel*\ [CF]*Compiler*) 11865 lt_prog_compiler_wl='-Wl,' 11866 lt_prog_compiler_pic='-fPIC' 11867 lt_prog_compiler_static='-static' 11868 ;; 11869 *Portland\ Group*) 11870 lt_prog_compiler_wl='-Wl,' 11871 lt_prog_compiler_pic='-fpic' 11872 lt_prog_compiler_static='-Bstatic' 11873 ;; 11874 esac 11875 ;; 11876 esac 11877 ;; 11878 11879 newsos6) 11880 lt_prog_compiler_pic='-KPIC' 11881 lt_prog_compiler_static='-Bstatic' 11882 ;; 11883 11884 *nto* | *qnx*) 11885 # QNX uses GNU C++, but need to define -shared option too, otherwise 11886 # it will coredump. 11887 lt_prog_compiler_pic='-fPIC -shared' 11888 ;; 11889 11890 osf3* | osf4* | osf5*) 11891 lt_prog_compiler_wl='-Wl,' 11892 # All OSF/1 code is PIC. 11893 lt_prog_compiler_static='-non_shared' 11894 ;; 11895 11896 rdos*) 11897 lt_prog_compiler_static='-non_shared' 11898 ;; 11899 11900 solaris*) 11901 lt_prog_compiler_pic='-KPIC' 11902 lt_prog_compiler_static='-Bstatic' 11903 case $cc_basename in 11904 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 11905 lt_prog_compiler_wl='-Qoption ld ';; 11906 *) 11907 lt_prog_compiler_wl='-Wl,';; 11908 esac 11909 ;; 11910 11911 sunos4*) 11912 lt_prog_compiler_wl='-Qoption ld ' 11913 lt_prog_compiler_pic='-PIC' 11914 lt_prog_compiler_static='-Bstatic' 11915 ;; 11916 11917 sysv4 | sysv4.2uw2* | sysv4.3*) 11918 lt_prog_compiler_wl='-Wl,' 11919 lt_prog_compiler_pic='-KPIC' 11920 lt_prog_compiler_static='-Bstatic' 11921 ;; 11922 11923 sysv4*MP*) 11924 if test -d /usr/nec; then 11925 lt_prog_compiler_pic='-Kconform_pic' 11926 lt_prog_compiler_static='-Bstatic' 11927 fi 11928 ;; 11929 11930 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11931 lt_prog_compiler_wl='-Wl,' 11932 lt_prog_compiler_pic='-KPIC' 11933 lt_prog_compiler_static='-Bstatic' 11934 ;; 11935 11936 unicos*) 11937 lt_prog_compiler_wl='-Wl,' 11938 lt_prog_compiler_can_build_shared=no 11939 ;; 11940 11941 uts4*) 11942 lt_prog_compiler_pic='-pic' 11943 lt_prog_compiler_static='-Bstatic' 11944 ;; 11945 11946 *) 11947 lt_prog_compiler_can_build_shared=no 11948 ;; 11949 esac 11950 fi 11951 11952case $host_os in 11953 # For platforms that do not support PIC, -DPIC is meaningless: 11954 *djgpp*) 11955 lt_prog_compiler_pic= 11956 ;; 11957 *) 11958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11959 ;; 11960esac 11961 11962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 11963$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11964if ${lt_cv_prog_compiler_pic+:} false; then : 11965 $as_echo_n "(cached) " >&6 11966else 11967 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 11968fi 11969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 11970$as_echo "$lt_cv_prog_compiler_pic" >&6; } 11971lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 11972 11973# 11974# Check to make sure the PIC flag actually works. 11975# 11976if test -n "$lt_prog_compiler_pic"; then 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11978$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11979if ${lt_cv_prog_compiler_pic_works+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 lt_cv_prog_compiler_pic_works=no 11983 ac_outfile=conftest.$ac_objext 11984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11985 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 11986 # Insert the option either (1) after the last *FLAGS variable, or 11987 # (2) before a word containing "conftest.", or (3) at the end. 11988 # Note that $ac_compile itself does not contain backslashes and begins 11989 # with a dollar sign (not a hyphen), so the echo should work correctly. 11990 # The option is referenced via a variable to avoid confusing sed. 11991 lt_compile=`echo "$ac_compile" | $SED \ 11992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11994 -e 's:$: $lt_compiler_flag:'` 11995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11996 (eval "$lt_compile" 2>conftest.err) 11997 ac_status=$? 11998 cat conftest.err >&5 11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12000 if (exit $ac_status) && test -s "$ac_outfile"; then 12001 # The compiler can only warn and ignore the option if not recognized 12002 # So say no if there are warnings other than the usual output. 12003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12006 lt_cv_prog_compiler_pic_works=yes 12007 fi 12008 fi 12009 $RM conftest* 12010 12011fi 12012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12013$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12014 12015if test yes = "$lt_cv_prog_compiler_pic_works"; then 12016 case $lt_prog_compiler_pic in 12017 "" | " "*) ;; 12018 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12019 esac 12020else 12021 lt_prog_compiler_pic= 12022 lt_prog_compiler_can_build_shared=no 12023fi 12024 12025fi 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037# 12038# Check to make sure the static flag actually works. 12039# 12040wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12042$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12043if ${lt_cv_prog_compiler_static_works+:} false; then : 12044 $as_echo_n "(cached) " >&6 12045else 12046 lt_cv_prog_compiler_static_works=no 12047 save_LDFLAGS=$LDFLAGS 12048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12049 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12051 # The linker can only warn and ignore the option if not recognized 12052 # So say no if there are warnings 12053 if test -s conftest.err; then 12054 # Append any errors to the config.log. 12055 cat conftest.err 1>&5 12056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12058 if diff conftest.exp conftest.er2 >/dev/null; then 12059 lt_cv_prog_compiler_static_works=yes 12060 fi 12061 else 12062 lt_cv_prog_compiler_static_works=yes 12063 fi 12064 fi 12065 $RM -r conftest* 12066 LDFLAGS=$save_LDFLAGS 12067 12068fi 12069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12070$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12071 12072if test yes = "$lt_cv_prog_compiler_static_works"; then 12073 : 12074else 12075 lt_prog_compiler_static= 12076fi 12077 12078 12079 12080 12081 12082 12083 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12085$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12086if ${lt_cv_prog_compiler_c_o+:} false; then : 12087 $as_echo_n "(cached) " >&6 12088else 12089 lt_cv_prog_compiler_c_o=no 12090 $RM -r conftest 2>/dev/null 12091 mkdir conftest 12092 cd conftest 12093 mkdir out 12094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12095 12096 lt_compiler_flag="-o out/conftest2.$ac_objext" 12097 # Insert the option either (1) after the last *FLAGS variable, or 12098 # (2) before a word containing "conftest.", or (3) at the end. 12099 # Note that $ac_compile itself does not contain backslashes and begins 12100 # with a dollar sign (not a hyphen), so the echo should work correctly. 12101 lt_compile=`echo "$ac_compile" | $SED \ 12102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12104 -e 's:$: $lt_compiler_flag:'` 12105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12106 (eval "$lt_compile" 2>out/conftest.err) 12107 ac_status=$? 12108 cat out/conftest.err >&5 12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12110 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12111 then 12112 # The compiler can only warn and ignore the option if not recognized 12113 # So say no if there are warnings 12114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12117 lt_cv_prog_compiler_c_o=yes 12118 fi 12119 fi 12120 chmod u+w . 2>&5 12121 $RM conftest* 12122 # SGI C++ compiler will create directory out/ii_files/ for 12123 # template instantiation 12124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12125 $RM out/* && rmdir out 12126 cd .. 12127 $RM -r conftest 12128 $RM conftest* 12129 12130fi 12131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12132$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12133 12134 12135 12136 12137 12138 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12140$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12141if ${lt_cv_prog_compiler_c_o+:} false; then : 12142 $as_echo_n "(cached) " >&6 12143else 12144 lt_cv_prog_compiler_c_o=no 12145 $RM -r conftest 2>/dev/null 12146 mkdir conftest 12147 cd conftest 12148 mkdir out 12149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12150 12151 lt_compiler_flag="-o out/conftest2.$ac_objext" 12152 # Insert the option either (1) after the last *FLAGS variable, or 12153 # (2) before a word containing "conftest.", or (3) at the end. 12154 # Note that $ac_compile itself does not contain backslashes and begins 12155 # with a dollar sign (not a hyphen), so the echo should work correctly. 12156 lt_compile=`echo "$ac_compile" | $SED \ 12157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12159 -e 's:$: $lt_compiler_flag:'` 12160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12161 (eval "$lt_compile" 2>out/conftest.err) 12162 ac_status=$? 12163 cat out/conftest.err >&5 12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12165 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12166 then 12167 # The compiler can only warn and ignore the option if not recognized 12168 # So say no if there are warnings 12169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12172 lt_cv_prog_compiler_c_o=yes 12173 fi 12174 fi 12175 chmod u+w . 2>&5 12176 $RM conftest* 12177 # SGI C++ compiler will create directory out/ii_files/ for 12178 # template instantiation 12179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12180 $RM out/* && rmdir out 12181 cd .. 12182 $RM -r conftest 12183 $RM conftest* 12184 12185fi 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12187$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12188 12189 12190 12191 12192hard_links=nottested 12193if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12194 # do not overwrite the value of need_locks provided by the user 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12196$as_echo_n "checking if we can lock with hard links... " >&6; } 12197 hard_links=yes 12198 $RM conftest* 12199 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12200 touch conftest.a 12201 ln conftest.a conftest.b 2>&5 || hard_links=no 12202 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12204$as_echo "$hard_links" >&6; } 12205 if test no = "$hard_links"; then 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12207$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12208 need_locks=warn 12209 fi 12210else 12211 need_locks=no 12212fi 12213 12214 12215 12216 12217 12218 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12220$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12221 12222 runpath_var= 12223 allow_undefined_flag= 12224 always_export_symbols=no 12225 archive_cmds= 12226 archive_expsym_cmds= 12227 compiler_needs_object=no 12228 enable_shared_with_static_runtimes=no 12229 export_dynamic_flag_spec= 12230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12231 hardcode_automatic=no 12232 hardcode_direct=no 12233 hardcode_direct_absolute=no 12234 hardcode_libdir_flag_spec= 12235 hardcode_libdir_separator= 12236 hardcode_minus_L=no 12237 hardcode_shlibpath_var=unsupported 12238 inherit_rpath=no 12239 link_all_deplibs=unknown 12240 module_cmds= 12241 module_expsym_cmds= 12242 old_archive_from_new_cmds= 12243 old_archive_from_expsyms_cmds= 12244 thread_safe_flag_spec= 12245 whole_archive_flag_spec= 12246 # include_expsyms should be a list of space-separated symbols to be *always* 12247 # included in the symbol list 12248 include_expsyms= 12249 # exclude_expsyms can be an extended regexp of symbols to exclude 12250 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12251 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12252 # as well as any symbol that contains 'd'. 12253 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12254 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12255 # platforms (ab)use it in PIC code, but their linkers get confused if 12256 # the symbol is explicitly referenced. Since portable code cannot 12257 # rely on this symbol name, it's probably fine to never include it in 12258 # preloaded symbol tables. 12259 # Exclude shared library initialization/finalization symbols. 12260 extract_expsyms_cmds= 12261 12262 case $host_os in 12263 cygwin* | mingw* | pw32* | cegcc*) 12264 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12265 # When not using gcc, we currently assume that we are using 12266 # Microsoft Visual C++. 12267 if test yes != "$GCC"; then 12268 with_gnu_ld=no 12269 fi 12270 ;; 12271 interix*) 12272 # we just hope/assume this is gcc and not c89 (= MSVC++) 12273 with_gnu_ld=yes 12274 ;; 12275 openbsd* | bitrig*) 12276 with_gnu_ld=no 12277 ;; 12278 linux* | k*bsd*-gnu | gnu*) 12279 link_all_deplibs=no 12280 ;; 12281 esac 12282 12283 ld_shlibs=yes 12284 12285 # On some targets, GNU ld is compatible enough with the native linker 12286 # that we're better off using the native interface for both. 12287 lt_use_gnu_ld_interface=no 12288 if test yes = "$with_gnu_ld"; then 12289 case $host_os in 12290 aix*) 12291 # The AIX port of GNU ld has always aspired to compatibility 12292 # with the native linker. However, as the warning in the GNU ld 12293 # block says, versions before 2.19.5* couldn't really create working 12294 # shared libraries, regardless of the interface used. 12295 case `$LD -v 2>&1` in 12296 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12297 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12298 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12299 *) 12300 lt_use_gnu_ld_interface=yes 12301 ;; 12302 esac 12303 ;; 12304 *) 12305 lt_use_gnu_ld_interface=yes 12306 ;; 12307 esac 12308 fi 12309 12310 if test yes = "$lt_use_gnu_ld_interface"; then 12311 # If archive_cmds runs LD, not CC, wlarc should be empty 12312 wlarc='$wl' 12313 12314 # Set some defaults for GNU ld with shared library support. These 12315 # are reset later if shared libraries are not supported. Putting them 12316 # here allows them to be overridden if necessary. 12317 runpath_var=LD_RUN_PATH 12318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12319 export_dynamic_flag_spec='$wl--export-dynamic' 12320 # ancient GNU ld didn't support --whole-archive et. al. 12321 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12322 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12323 else 12324 whole_archive_flag_spec= 12325 fi 12326 supports_anon_versioning=no 12327 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12328 *GNU\ gold*) supports_anon_versioning=yes ;; 12329 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12332 *\ 2.11.*) ;; # other 2.11 versions 12333 *) supports_anon_versioning=yes ;; 12334 esac 12335 12336 # See if GNU ld supports shared libraries. 12337 case $host_os in 12338 aix[3-9]*) 12339 # On AIX/PPC, the GNU linker is very broken 12340 if test ia64 != "$host_cpu"; then 12341 ld_shlibs=no 12342 cat <<_LT_EOF 1>&2 12343 12344*** Warning: the GNU linker, at least up to release 2.19, is reported 12345*** to be unable to reliably create shared libraries on AIX. 12346*** Therefore, libtool is disabling shared libraries support. If you 12347*** really care for shared libraries, you may want to install binutils 12348*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12349*** You will then need to restart the configuration process. 12350 12351_LT_EOF 12352 fi 12353 ;; 12354 12355 amigaos*) 12356 case $host_cpu in 12357 powerpc) 12358 # see comment about AmigaOS4 .so support 12359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12360 archive_expsym_cmds='' 12361 ;; 12362 m68k) 12363 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)' 12364 hardcode_libdir_flag_spec='-L$libdir' 12365 hardcode_minus_L=yes 12366 ;; 12367 esac 12368 ;; 12369 12370 beos*) 12371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12372 allow_undefined_flag=unsupported 12373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12374 # support --undefined. This deserves some investigation. FIXME 12375 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12376 else 12377 ld_shlibs=no 12378 fi 12379 ;; 12380 12381 cygwin* | mingw* | pw32* | cegcc*) 12382 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12383 # as there is no search path for DLLs. 12384 hardcode_libdir_flag_spec='-L$libdir' 12385 export_dynamic_flag_spec='$wl--export-all-symbols' 12386 allow_undefined_flag=unsupported 12387 always_export_symbols=no 12388 enable_shared_with_static_runtimes=yes 12389 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' 12390 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12391 12392 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12394 # If the export-symbols file already is a .def file, use it as 12395 # is; otherwise, prepend EXPORTS... 12396 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12397 cp $export_symbols $output_objdir/$soname.def; 12398 else 12399 echo EXPORTS > $output_objdir/$soname.def; 12400 cat $export_symbols >> $output_objdir/$soname.def; 12401 fi~ 12402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12403 else 12404 ld_shlibs=no 12405 fi 12406 ;; 12407 12408 haiku*) 12409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12410 link_all_deplibs=yes 12411 ;; 12412 12413 os2*) 12414 hardcode_libdir_flag_spec='-L$libdir' 12415 hardcode_minus_L=yes 12416 allow_undefined_flag=unsupported 12417 shrext_cmds=.dll 12418 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12419 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12420 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12421 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12422 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12423 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12424 emximp -o $lib $output_objdir/$libname.def' 12425 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12426 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12427 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12428 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12429 prefix_cmds="$SED"~ 12430 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12431 prefix_cmds="$prefix_cmds -e 1d"; 12432 fi~ 12433 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12434 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12435 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12436 emximp -o $lib $output_objdir/$libname.def' 12437 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12438 enable_shared_with_static_runtimes=yes 12439 ;; 12440 12441 interix[3-9]*) 12442 hardcode_direct=no 12443 hardcode_shlibpath_var=no 12444 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12445 export_dynamic_flag_spec='$wl-E' 12446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12447 # Instead, shared libraries are loaded at an image base (0x10000000 by 12448 # default) and relocated if they conflict, which is a slow very memory 12449 # consuming and fragmenting process. To avoid this, we pick a random, 12450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12451 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12453 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' 12454 ;; 12455 12456 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12457 tmp_diet=no 12458 if test linux-dietlibc = "$host_os"; then 12459 case $cc_basename in 12460 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12461 esac 12462 fi 12463 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12464 && test no = "$tmp_diet" 12465 then 12466 tmp_addflag=' $pic_flag' 12467 tmp_sharedflag='-shared' 12468 case $cc_basename,$host_cpu in 12469 pgcc*) # Portland Group C compiler 12470 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' 12471 tmp_addflag=' $pic_flag' 12472 ;; 12473 pgf77* | pgf90* | pgf95* | pgfortran*) 12474 # Portland Group f77 and f90 compilers 12475 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' 12476 tmp_addflag=' $pic_flag -Mnomain' ;; 12477 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12478 tmp_addflag=' -i_dynamic' ;; 12479 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12480 tmp_addflag=' -i_dynamic -nofor_main' ;; 12481 ifc* | ifort*) # Intel Fortran compiler 12482 tmp_addflag=' -nofor_main' ;; 12483 lf95*) # Lahey Fortran 8.1 12484 whole_archive_flag_spec= 12485 tmp_sharedflag='--shared' ;; 12486 nagfor*) # NAGFOR 5.3 12487 tmp_sharedflag='-Wl,-shared' ;; 12488 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12489 tmp_sharedflag='-qmkshrobj' 12490 tmp_addflag= ;; 12491 nvcc*) # Cuda Compiler Driver 2.2 12492 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' 12493 compiler_needs_object=yes 12494 ;; 12495 esac 12496 case `$CC -V 2>&1 | sed 5q` in 12497 *Sun\ C*) # Sun C 5.9 12498 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' 12499 compiler_needs_object=yes 12500 tmp_sharedflag='-G' ;; 12501 *Sun\ F*) # Sun Fortran 8.3 12502 tmp_sharedflag='-G' ;; 12503 esac 12504 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12505 12506 if test yes = "$supports_anon_versioning"; then 12507 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12509 echo "local: *; };" >> $output_objdir/$libname.ver~ 12510 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12511 fi 12512 12513 case $cc_basename in 12514 tcc*) 12515 export_dynamic_flag_spec='-rdynamic' 12516 ;; 12517 xlf* | bgf* | bgxlf* | mpixlf*) 12518 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12519 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12521 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12522 if test yes = "$supports_anon_versioning"; then 12523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12525 echo "local: *; };" >> $output_objdir/$libname.ver~ 12526 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12527 fi 12528 ;; 12529 esac 12530 else 12531 ld_shlibs=no 12532 fi 12533 ;; 12534 12535 netbsd* | netbsdelf*-gnu) 12536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12537 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12538 wlarc= 12539 else 12540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12542 fi 12543 ;; 12544 12545 solaris*) 12546 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12547 ld_shlibs=no 12548 cat <<_LT_EOF 1>&2 12549 12550*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12551*** create shared libraries on Solaris systems. Therefore, libtool 12552*** is disabling shared libraries support. We urge you to upgrade GNU 12553*** binutils to release 2.9.1 or newer. Another option is to modify 12554*** your PATH or compiler configuration so that the native linker is 12555*** used, and then restart. 12556 12557_LT_EOF 12558 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12561 else 12562 ld_shlibs=no 12563 fi 12564 ;; 12565 12566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12567 case `$LD -v 2>&1` in 12568 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12569 ld_shlibs=no 12570 cat <<_LT_EOF 1>&2 12571 12572*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12573*** reliably create shared libraries on SCO systems. Therefore, libtool 12574*** is disabling shared libraries support. We urge you to upgrade GNU 12575*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12576*** your PATH or compiler configuration so that the native linker is 12577*** used, and then restart. 12578 12579_LT_EOF 12580 ;; 12581 *) 12582 # For security reasons, it is highly recommended that you always 12583 # use absolute paths for naming shared libraries, and exclude the 12584 # DT_RUNPATH tag from executables and libraries. But doing so 12585 # requires that you compile everything twice, which is a pain. 12586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12587 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12590 else 12591 ld_shlibs=no 12592 fi 12593 ;; 12594 esac 12595 ;; 12596 12597 sunos4*) 12598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12599 wlarc= 12600 hardcode_direct=yes 12601 hardcode_shlibpath_var=no 12602 ;; 12603 12604 *) 12605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12607 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12608 else 12609 ld_shlibs=no 12610 fi 12611 ;; 12612 esac 12613 12614 if test no = "$ld_shlibs"; then 12615 runpath_var= 12616 hardcode_libdir_flag_spec= 12617 export_dynamic_flag_spec= 12618 whole_archive_flag_spec= 12619 fi 12620 else 12621 # PORTME fill in a description of your system's linker (not GNU ld) 12622 case $host_os in 12623 aix3*) 12624 allow_undefined_flag=unsupported 12625 always_export_symbols=yes 12626 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' 12627 # Note: this linker hardcodes the directories in LIBPATH if there 12628 # are no directories specified by -L. 12629 hardcode_minus_L=yes 12630 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 12631 # Neither direct hardcoding nor static linking is supported with a 12632 # broken collect2. 12633 hardcode_direct=unsupported 12634 fi 12635 ;; 12636 12637 aix[4-9]*) 12638 if test ia64 = "$host_cpu"; then 12639 # On IA64, the linker does run time linking by default, so we don't 12640 # have to do anything special. 12641 aix_use_runtimelinking=no 12642 exp_sym_flag='-Bexport' 12643 no_entry_flag= 12644 else 12645 # If we're using GNU nm, then we don't want the "-C" option. 12646 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 12647 # Without the "-l" option, or with the "-B" option, AIX nm treats 12648 # weak defined symbols like other global defined symbols, whereas 12649 # GNU nm marks them as "W". 12650 # While the 'weak' keyword is ignored in the Export File, we need 12651 # it in the Import File for the 'aix-soname' feature, so we have 12652 # to replace the "-B" option with "-P" for AIX nm. 12653 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 12654 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' 12655 else 12656 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' 12657 fi 12658 aix_use_runtimelinking=no 12659 12660 # Test if we are trying to use run time linking or normal 12661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12662 # have runtime linking enabled, and use it for executables. 12663 # For shared libraries, we enable/disable runtime linking 12664 # depending on the kind of the shared library created - 12665 # when "with_aix_soname,aix_use_runtimelinking" is: 12666 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 12667 # "aix,yes" lib.so shared, rtl:yes, for executables 12668 # lib.a static archive 12669 # "both,no" lib.so.V(shr.o) shared, rtl:yes 12670 # lib.a(lib.so.V) shared, rtl:no, for executables 12671 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 12672 # lib.a(lib.so.V) shared, rtl:no 12673 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 12674 # lib.a static archive 12675 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12676 for ld_flag in $LDFLAGS; do 12677 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 12678 aix_use_runtimelinking=yes 12679 break 12680 fi 12681 done 12682 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 12683 # With aix-soname=svr4, we create the lib.so.V shared archives only, 12684 # so we don't have lib.a shared libs to link our executables. 12685 # We have to force runtime linking in this case. 12686 aix_use_runtimelinking=yes 12687 LDFLAGS="$LDFLAGS -Wl,-brtl" 12688 fi 12689 ;; 12690 esac 12691 12692 exp_sym_flag='-bexport' 12693 no_entry_flag='-bnoentry' 12694 fi 12695 12696 # When large executables or shared objects are built, AIX ld can 12697 # have problems creating the table of contents. If linking a library 12698 # or program results in "error TOC overflow" add -mminimal-toc to 12699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12701 12702 archive_cmds='' 12703 hardcode_direct=yes 12704 hardcode_direct_absolute=yes 12705 hardcode_libdir_separator=':' 12706 link_all_deplibs=yes 12707 file_list_spec='$wl-f,' 12708 case $with_aix_soname,$aix_use_runtimelinking in 12709 aix,*) ;; # traditional, no import file 12710 svr4,* | *,yes) # use import file 12711 # The Import File defines what to hardcode. 12712 hardcode_direct=no 12713 hardcode_direct_absolute=no 12714 ;; 12715 esac 12716 12717 if test yes = "$GCC"; then 12718 case $host_os in aix4.[012]|aix4.[012].*) 12719 # We only want to do this on AIX 4.2 and lower, the check 12720 # below for broken collect2 doesn't work under 4.3+ 12721 collect2name=`$CC -print-prog-name=collect2` 12722 if test -f "$collect2name" && 12723 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12724 then 12725 # We have reworked collect2 12726 : 12727 else 12728 # We have old collect2 12729 hardcode_direct=unsupported 12730 # It fails to find uninstalled libraries when the uninstalled 12731 # path is not listed in the libpath. Setting hardcode_minus_L 12732 # to unsupported forces relinking 12733 hardcode_minus_L=yes 12734 hardcode_libdir_flag_spec='-L$libdir' 12735 hardcode_libdir_separator= 12736 fi 12737 ;; 12738 esac 12739 shared_flag='-shared' 12740 if test yes = "$aix_use_runtimelinking"; then 12741 shared_flag="$shared_flag "'$wl-G' 12742 fi 12743 # Need to ensure runtime linking is disabled for the traditional 12744 # shared library, or the linker may eventually find shared libraries 12745 # /with/ Import File - we do not want to mix them. 12746 shared_flag_aix='-shared' 12747 shared_flag_svr4='-shared $wl-G' 12748 else 12749 # not using gcc 12750 if test ia64 = "$host_cpu"; then 12751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12752 # chokes on -Wl,-G. The following line is correct: 12753 shared_flag='-G' 12754 else 12755 if test yes = "$aix_use_runtimelinking"; then 12756 shared_flag='$wl-G' 12757 else 12758 shared_flag='$wl-bM:SRE' 12759 fi 12760 shared_flag_aix='$wl-bM:SRE' 12761 shared_flag_svr4='$wl-G' 12762 fi 12763 fi 12764 12765 export_dynamic_flag_spec='$wl-bexpall' 12766 # It seems that -bexpall does not export symbols beginning with 12767 # underscore (_), so it is better to generate a list of symbols to export. 12768 always_export_symbols=yes 12769 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 12770 # Warning - without using the other runtime loading flags (-brtl), 12771 # -berok will link without error, but may produce a broken library. 12772 allow_undefined_flag='-berok' 12773 # Determine the default libpath from the value encoded in an 12774 # empty executable. 12775 if test set = "${lt_cv_aix_libpath+set}"; then 12776 aix_libpath=$lt_cv_aix_libpath 12777else 12778 if ${lt_cv_aix_libpath_+:} false; then : 12779 $as_echo_n "(cached) " >&6 12780else 12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12782/* end confdefs.h. */ 12783 12784int 12785main () 12786{ 12787 12788 ; 12789 return 0; 12790} 12791_ACEOF 12792if ac_fn_c_try_link "$LINENO"; then : 12793 12794 lt_aix_libpath_sed=' 12795 /Import File Strings/,/^$/ { 12796 /^0/ { 12797 s/^0 *\([^ ]*\) *$/\1/ 12798 p 12799 } 12800 }' 12801 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12802 # Check for a 64-bit object if we didn't find anything. 12803 if test -z "$lt_cv_aix_libpath_"; then 12804 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12805 fi 12806fi 12807rm -f core conftest.err conftest.$ac_objext \ 12808 conftest$ac_exeext conftest.$ac_ext 12809 if test -z "$lt_cv_aix_libpath_"; then 12810 lt_cv_aix_libpath_=/usr/lib:/lib 12811 fi 12812 12813fi 12814 12815 aix_libpath=$lt_cv_aix_libpath_ 12816fi 12817 12818 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12819 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 12820 else 12821 if test ia64 = "$host_cpu"; then 12822 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 12823 allow_undefined_flag="-z nodefs" 12824 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" 12825 else 12826 # Determine the default libpath from the value encoded in an 12827 # empty executable. 12828 if test set = "${lt_cv_aix_libpath+set}"; then 12829 aix_libpath=$lt_cv_aix_libpath 12830else 12831 if ${lt_cv_aix_libpath_+:} false; then : 12832 $as_echo_n "(cached) " >&6 12833else 12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12835/* end confdefs.h. */ 12836 12837int 12838main () 12839{ 12840 12841 ; 12842 return 0; 12843} 12844_ACEOF 12845if ac_fn_c_try_link "$LINENO"; then : 12846 12847 lt_aix_libpath_sed=' 12848 /Import File Strings/,/^$/ { 12849 /^0/ { 12850 s/^0 *\([^ ]*\) *$/\1/ 12851 p 12852 } 12853 }' 12854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12855 # Check for a 64-bit object if we didn't find anything. 12856 if test -z "$lt_cv_aix_libpath_"; then 12857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12858 fi 12859fi 12860rm -f core conftest.err conftest.$ac_objext \ 12861 conftest$ac_exeext conftest.$ac_ext 12862 if test -z "$lt_cv_aix_libpath_"; then 12863 lt_cv_aix_libpath_=/usr/lib:/lib 12864 fi 12865 12866fi 12867 12868 aix_libpath=$lt_cv_aix_libpath_ 12869fi 12870 12871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 12872 # Warning - without using the other run time loading flags, 12873 # -berok will link without error, but may produce a broken library. 12874 no_undefined_flag=' $wl-bernotok' 12875 allow_undefined_flag=' $wl-berok' 12876 if test yes = "$with_gnu_ld"; then 12877 # We only use this code for GNU lds that support --whole-archive. 12878 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 12879 else 12880 # Exported symbols can be pulled into shared objects from archives 12881 whole_archive_flag_spec='$convenience' 12882 fi 12883 archive_cmds_need_lc=yes 12884 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 12885 # -brtl affects multiple linker settings, -berok does not and is overridden later 12886 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 12887 if test svr4 != "$with_aix_soname"; then 12888 # This is similar to how AIX traditionally builds its shared libraries. 12889 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' 12890 fi 12891 if test aix != "$with_aix_soname"; then 12892 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' 12893 else 12894 # used by -dlpreopen to get the symbols 12895 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 12896 fi 12897 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 12898 fi 12899 fi 12900 ;; 12901 12902 amigaos*) 12903 case $host_cpu in 12904 powerpc) 12905 # see comment about AmigaOS4 .so support 12906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12907 archive_expsym_cmds='' 12908 ;; 12909 m68k) 12910 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)' 12911 hardcode_libdir_flag_spec='-L$libdir' 12912 hardcode_minus_L=yes 12913 ;; 12914 esac 12915 ;; 12916 12917 bsdi[45]*) 12918 export_dynamic_flag_spec=-rdynamic 12919 ;; 12920 12921 cygwin* | mingw* | pw32* | cegcc*) 12922 # When not using gcc, we currently assume that we are using 12923 # Microsoft Visual C++. 12924 # hardcode_libdir_flag_spec is actually meaningless, as there is 12925 # no search path for DLLs. 12926 case $cc_basename in 12927 cl*) 12928 # Native MSVC 12929 hardcode_libdir_flag_spec=' ' 12930 allow_undefined_flag=unsupported 12931 always_export_symbols=yes 12932 file_list_spec='@' 12933 # Tell ltmain to make .lib files, not .a files. 12934 libext=lib 12935 # Tell ltmain to make .dll files, not .so files. 12936 shrext_cmds=.dll 12937 # FIXME: Setting linknames here is a bad hack. 12938 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 12939 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12940 cp "$export_symbols" "$output_objdir/$soname.def"; 12941 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 12942 else 12943 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 12944 fi~ 12945 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12946 linknames=' 12947 # The linker will not automatically build a static lib if we build a DLL. 12948 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 12949 enable_shared_with_static_runtimes=yes 12950 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 12951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 12952 # Don't use ranlib 12953 old_postinstall_cmds='chmod 644 $oldlib' 12954 postlink_cmds='lt_outputfile="@OUTPUT@"~ 12955 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12956 case $lt_outputfile in 12957 *.exe|*.EXE) ;; 12958 *) 12959 lt_outputfile=$lt_outputfile.exe 12960 lt_tool_outputfile=$lt_tool_outputfile.exe 12961 ;; 12962 esac~ 12963 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 12964 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12965 $RM "$lt_outputfile.manifest"; 12966 fi' 12967 ;; 12968 *) 12969 # Assume MSVC wrapper 12970 hardcode_libdir_flag_spec=' ' 12971 allow_undefined_flag=unsupported 12972 # Tell ltmain to make .lib files, not .a files. 12973 libext=lib 12974 # Tell ltmain to make .dll files, not .so files. 12975 shrext_cmds=.dll 12976 # FIXME: Setting linknames here is a bad hack. 12977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12978 # The linker will automatically build a .lib file if we build a DLL. 12979 old_archive_from_new_cmds='true' 12980 # FIXME: Should let the user specify the lib program. 12981 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12982 enable_shared_with_static_runtimes=yes 12983 ;; 12984 esac 12985 ;; 12986 12987 darwin* | rhapsody*) 12988 12989 12990 archive_cmds_need_lc=no 12991 hardcode_direct=no 12992 hardcode_automatic=yes 12993 hardcode_shlibpath_var=unsupported 12994 if test yes = "$lt_cv_ld_force_load"; then 12995 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\"`' 12996 12997 else 12998 whole_archive_flag_spec='' 12999 fi 13000 link_all_deplibs=yes 13001 allow_undefined_flag=$_lt_dar_allow_undefined 13002 case $cc_basename in 13003 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13004 *) _lt_dar_can_shared=$GCC ;; 13005 esac 13006 if test yes = "$_lt_dar_can_shared"; then 13007 output_verbose_link_cmd=func_echo_all 13008 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13009 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13010 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" 13011 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" 13012 13013 else 13014 ld_shlibs=no 13015 fi 13016 13017 ;; 13018 13019 dgux*) 13020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13021 hardcode_libdir_flag_spec='-L$libdir' 13022 hardcode_shlibpath_var=no 13023 ;; 13024 13025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13026 # support. Future versions do this automatically, but an explicit c++rt0.o 13027 # does not break anything, and helps significantly (at the cost of a little 13028 # extra space). 13029 freebsd2.2*) 13030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13031 hardcode_libdir_flag_spec='-R$libdir' 13032 hardcode_direct=yes 13033 hardcode_shlibpath_var=no 13034 ;; 13035 13036 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13037 freebsd2.*) 13038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13039 hardcode_direct=yes 13040 hardcode_minus_L=yes 13041 hardcode_shlibpath_var=no 13042 ;; 13043 13044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13045 freebsd* | dragonfly*) 13046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13047 hardcode_libdir_flag_spec='-R$libdir' 13048 hardcode_direct=yes 13049 hardcode_shlibpath_var=no 13050 ;; 13051 13052 hpux9*) 13053 if test yes = "$GCC"; then 13054 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' 13055 else 13056 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' 13057 fi 13058 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13059 hardcode_libdir_separator=: 13060 hardcode_direct=yes 13061 13062 # hardcode_minus_L: Not really in the search PATH, 13063 # but as the default location of the library. 13064 hardcode_minus_L=yes 13065 export_dynamic_flag_spec='$wl-E' 13066 ;; 13067 13068 hpux10*) 13069 if test yes,no = "$GCC,$with_gnu_ld"; then 13070 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13071 else 13072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13073 fi 13074 if test no = "$with_gnu_ld"; then 13075 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13076 hardcode_libdir_separator=: 13077 hardcode_direct=yes 13078 hardcode_direct_absolute=yes 13079 export_dynamic_flag_spec='$wl-E' 13080 # hardcode_minus_L: Not really in the search PATH, 13081 # but as the default location of the library. 13082 hardcode_minus_L=yes 13083 fi 13084 ;; 13085 13086 hpux11*) 13087 if test yes,no = "$GCC,$with_gnu_ld"; then 13088 case $host_cpu in 13089 hppa*64*) 13090 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13091 ;; 13092 ia64*) 13093 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13094 ;; 13095 *) 13096 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13097 ;; 13098 esac 13099 else 13100 case $host_cpu in 13101 hppa*64*) 13102 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13103 ;; 13104 ia64*) 13105 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13106 ;; 13107 *) 13108 13109 # Older versions of the 11.00 compiler do not understand -b yet 13110 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13112$as_echo_n "checking if $CC understands -b... " >&6; } 13113if ${lt_cv_prog_compiler__b+:} false; then : 13114 $as_echo_n "(cached) " >&6 13115else 13116 lt_cv_prog_compiler__b=no 13117 save_LDFLAGS=$LDFLAGS 13118 LDFLAGS="$LDFLAGS -b" 13119 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13121 # The linker can only warn and ignore the option if not recognized 13122 # So say no if there are warnings 13123 if test -s conftest.err; then 13124 # Append any errors to the config.log. 13125 cat conftest.err 1>&5 13126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13128 if diff conftest.exp conftest.er2 >/dev/null; then 13129 lt_cv_prog_compiler__b=yes 13130 fi 13131 else 13132 lt_cv_prog_compiler__b=yes 13133 fi 13134 fi 13135 $RM -r conftest* 13136 LDFLAGS=$save_LDFLAGS 13137 13138fi 13139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13140$as_echo "$lt_cv_prog_compiler__b" >&6; } 13141 13142if test yes = "$lt_cv_prog_compiler__b"; then 13143 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13144else 13145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13146fi 13147 13148 ;; 13149 esac 13150 fi 13151 if test no = "$with_gnu_ld"; then 13152 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13153 hardcode_libdir_separator=: 13154 13155 case $host_cpu in 13156 hppa*64*|ia64*) 13157 hardcode_direct=no 13158 hardcode_shlibpath_var=no 13159 ;; 13160 *) 13161 hardcode_direct=yes 13162 hardcode_direct_absolute=yes 13163 export_dynamic_flag_spec='$wl-E' 13164 13165 # hardcode_minus_L: Not really in the search PATH, 13166 # but as the default location of the library. 13167 hardcode_minus_L=yes 13168 ;; 13169 esac 13170 fi 13171 ;; 13172 13173 irix5* | irix6* | nonstopux*) 13174 if test yes = "$GCC"; then 13175 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' 13176 # Try to use the -exported_symbol ld option, if it does not 13177 # work, assume that -exports_file does not work either and 13178 # implicitly export all symbols. 13179 # This should be the same for all languages, so no per-tag cache variable. 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13181$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13182if ${lt_cv_irix_exported_symbol+:} false; then : 13183 $as_echo_n "(cached) " >&6 13184else 13185 save_LDFLAGS=$LDFLAGS 13186 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13188/* end confdefs.h. */ 13189int foo (void) { return 0; } 13190_ACEOF 13191if ac_fn_c_try_link "$LINENO"; then : 13192 lt_cv_irix_exported_symbol=yes 13193else 13194 lt_cv_irix_exported_symbol=no 13195fi 13196rm -f core conftest.err conftest.$ac_objext \ 13197 conftest$ac_exeext conftest.$ac_ext 13198 LDFLAGS=$save_LDFLAGS 13199fi 13200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13201$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13202 if test yes = "$lt_cv_irix_exported_symbol"; then 13203 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' 13204 fi 13205 link_all_deplibs=no 13206 else 13207 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' 13208 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' 13209 fi 13210 archive_cmds_need_lc='no' 13211 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13212 hardcode_libdir_separator=: 13213 inherit_rpath=yes 13214 link_all_deplibs=yes 13215 ;; 13216 13217 linux*) 13218 case $cc_basename in 13219 tcc*) 13220 # Fabrice Bellard et al's Tiny C Compiler 13221 ld_shlibs=yes 13222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13223 ;; 13224 esac 13225 ;; 13226 13227 netbsd* | netbsdelf*-gnu) 13228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13230 else 13231 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13232 fi 13233 hardcode_libdir_flag_spec='-R$libdir' 13234 hardcode_direct=yes 13235 hardcode_shlibpath_var=no 13236 ;; 13237 13238 newsos6) 13239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13240 hardcode_direct=yes 13241 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13242 hardcode_libdir_separator=: 13243 hardcode_shlibpath_var=no 13244 ;; 13245 13246 *nto* | *qnx*) 13247 ;; 13248 13249 openbsd* | bitrig*) 13250 if test -f /usr/libexec/ld.so; then 13251 hardcode_direct=yes 13252 hardcode_shlibpath_var=no 13253 hardcode_direct_absolute=yes 13254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13256 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13257 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13258 export_dynamic_flag_spec='$wl-E' 13259 else 13260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13261 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13262 fi 13263 else 13264 ld_shlibs=no 13265 fi 13266 ;; 13267 13268 os2*) 13269 hardcode_libdir_flag_spec='-L$libdir' 13270 hardcode_minus_L=yes 13271 allow_undefined_flag=unsupported 13272 shrext_cmds=.dll 13273 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13274 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13275 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13276 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13277 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13278 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13279 emximp -o $lib $output_objdir/$libname.def' 13280 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13281 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13282 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13283 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13284 prefix_cmds="$SED"~ 13285 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13286 prefix_cmds="$prefix_cmds -e 1d"; 13287 fi~ 13288 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13289 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13290 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13291 emximp -o $lib $output_objdir/$libname.def' 13292 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13293 enable_shared_with_static_runtimes=yes 13294 ;; 13295 13296 osf3*) 13297 if test yes = "$GCC"; then 13298 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13299 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' 13300 else 13301 allow_undefined_flag=' -expect_unresolved \*' 13302 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' 13303 fi 13304 archive_cmds_need_lc='no' 13305 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13306 hardcode_libdir_separator=: 13307 ;; 13308 13309 osf4* | osf5*) # as osf3* with the addition of -msym flag 13310 if test yes = "$GCC"; then 13311 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13312 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' 13313 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13314 else 13315 allow_undefined_flag=' -expect_unresolved \*' 13316 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' 13317 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~ 13318 $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' 13319 13320 # Both c and cxx compiler support -rpath directly 13321 hardcode_libdir_flag_spec='-rpath $libdir' 13322 fi 13323 archive_cmds_need_lc='no' 13324 hardcode_libdir_separator=: 13325 ;; 13326 13327 solaris*) 13328 no_undefined_flag=' -z defs' 13329 if test yes = "$GCC"; then 13330 wlarc='$wl' 13331 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13333 $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' 13334 else 13335 case `$CC -V 2>&1` in 13336 *"Compilers 5.0"*) 13337 wlarc='' 13338 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13340 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13341 ;; 13342 *) 13343 wlarc='$wl' 13344 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13346 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13347 ;; 13348 esac 13349 fi 13350 hardcode_libdir_flag_spec='-R$libdir' 13351 hardcode_shlibpath_var=no 13352 case $host_os in 13353 solaris2.[0-5] | solaris2.[0-5].*) ;; 13354 *) 13355 # The compiler driver will combine and reorder linker options, 13356 # but understands '-z linker_flag'. GCC discards it without '$wl', 13357 # but is careful enough not to reorder. 13358 # Supported since Solaris 2.6 (maybe 2.5.1?) 13359 if test yes = "$GCC"; then 13360 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13361 else 13362 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13363 fi 13364 ;; 13365 esac 13366 link_all_deplibs=yes 13367 ;; 13368 13369 sunos4*) 13370 if test sequent = "$host_vendor"; then 13371 # Use $CC to link under sequent, because it throws in some extra .o 13372 # files that make .init and .fini sections work. 13373 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13374 else 13375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13376 fi 13377 hardcode_libdir_flag_spec='-L$libdir' 13378 hardcode_direct=yes 13379 hardcode_minus_L=yes 13380 hardcode_shlibpath_var=no 13381 ;; 13382 13383 sysv4) 13384 case $host_vendor in 13385 sni) 13386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13387 hardcode_direct=yes # is this really true??? 13388 ;; 13389 siemens) 13390 ## LD is ld it makes a PLAMLIB 13391 ## CC just makes a GrossModule. 13392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13393 reload_cmds='$CC -r -o $output$reload_objs' 13394 hardcode_direct=no 13395 ;; 13396 motorola) 13397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13399 ;; 13400 esac 13401 runpath_var='LD_RUN_PATH' 13402 hardcode_shlibpath_var=no 13403 ;; 13404 13405 sysv4.3*) 13406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13407 hardcode_shlibpath_var=no 13408 export_dynamic_flag_spec='-Bexport' 13409 ;; 13410 13411 sysv4*MP*) 13412 if test -d /usr/nec; then 13413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13414 hardcode_shlibpath_var=no 13415 runpath_var=LD_RUN_PATH 13416 hardcode_runpath_var=yes 13417 ld_shlibs=yes 13418 fi 13419 ;; 13420 13421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13422 no_undefined_flag='$wl-z,text' 13423 archive_cmds_need_lc=no 13424 hardcode_shlibpath_var=no 13425 runpath_var='LD_RUN_PATH' 13426 13427 if test yes = "$GCC"; then 13428 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13429 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13430 else 13431 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13432 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13433 fi 13434 ;; 13435 13436 sysv5* | sco3.2v5* | sco5v6*) 13437 # Note: We CANNOT use -z defs as we might desire, because we do not 13438 # link with -lc, and that would cause any symbols used from libc to 13439 # always be unresolved, which means just about no library would 13440 # ever link correctly. If we're not using GNU ld we use -z text 13441 # though, which does catch some bad symbols but isn't as heavy-handed 13442 # as -z defs. 13443 no_undefined_flag='$wl-z,text' 13444 allow_undefined_flag='$wl-z,nodefs' 13445 archive_cmds_need_lc=no 13446 hardcode_shlibpath_var=no 13447 hardcode_libdir_flag_spec='$wl-R,$libdir' 13448 hardcode_libdir_separator=':' 13449 link_all_deplibs=yes 13450 export_dynamic_flag_spec='$wl-Bexport' 13451 runpath_var='LD_RUN_PATH' 13452 13453 if test yes = "$GCC"; then 13454 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13455 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13456 else 13457 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13458 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13459 fi 13460 ;; 13461 13462 uts4*) 13463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13464 hardcode_libdir_flag_spec='-L$libdir' 13465 hardcode_shlibpath_var=no 13466 ;; 13467 13468 *) 13469 ld_shlibs=no 13470 ;; 13471 esac 13472 13473 if test sni = "$host_vendor"; then 13474 case $host in 13475 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13476 export_dynamic_flag_spec='$wl-Blargedynsym' 13477 ;; 13478 esac 13479 fi 13480 fi 13481 13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13483$as_echo "$ld_shlibs" >&6; } 13484test no = "$ld_shlibs" && can_build_shared=no 13485 13486with_gnu_ld=$with_gnu_ld 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502# 13503# Do we need to explicitly link libc? 13504# 13505case "x$archive_cmds_need_lc" in 13506x|xyes) 13507 # Assume -lc should be added 13508 archive_cmds_need_lc=yes 13509 13510 if test yes,yes = "$GCC,$enable_shared"; then 13511 case $archive_cmds in 13512 *'~'*) 13513 # FIXME: we may have to deal with multi-command sequences. 13514 ;; 13515 '$CC '*) 13516 # Test whether the compiler implicitly links with -lc since on some 13517 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13518 # to ld, don't add -lc before -lgcc. 13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13520$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13521if ${lt_cv_archive_cmds_need_lc+:} false; then : 13522 $as_echo_n "(cached) " >&6 13523else 13524 $RM conftest* 13525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13526 13527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13528 (eval $ac_compile) 2>&5 13529 ac_status=$? 13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13531 test $ac_status = 0; } 2>conftest.err; then 13532 soname=conftest 13533 lib=conftest 13534 libobjs=conftest.$ac_objext 13535 deplibs= 13536 wl=$lt_prog_compiler_wl 13537 pic_flag=$lt_prog_compiler_pic 13538 compiler_flags=-v 13539 linker_flags=-v 13540 verstring= 13541 output_objdir=. 13542 libname=conftest 13543 lt_save_allow_undefined_flag=$allow_undefined_flag 13544 allow_undefined_flag= 13545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13547 ac_status=$? 13548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13549 test $ac_status = 0; } 13550 then 13551 lt_cv_archive_cmds_need_lc=no 13552 else 13553 lt_cv_archive_cmds_need_lc=yes 13554 fi 13555 allow_undefined_flag=$lt_save_allow_undefined_flag 13556 else 13557 cat conftest.err 1>&5 13558 fi 13559 $RM conftest* 13560 13561fi 13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13563$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13564 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13565 ;; 13566 esac 13567 fi 13568 ;; 13569esac 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13723$as_echo_n "checking dynamic linker characteristics... " >&6; } 13724 13725if test yes = "$GCC"; then 13726 case $host_os in 13727 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 13728 *) lt_awk_arg='/^libraries:/' ;; 13729 esac 13730 case $host_os in 13731 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 13732 *) lt_sed_strip_eq='s|=/|/|g' ;; 13733 esac 13734 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 13735 case $lt_search_path_spec in 13736 *\;*) 13737 # if the path contains ";" then we assume it to be the separator 13738 # otherwise default to the standard path separator (i.e. ":") - it is 13739 # assumed that no part of a normal pathname contains ";" but that should 13740 # okay in the real world where ";" in dirpaths is itself problematic. 13741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 13742 ;; 13743 *) 13744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 13745 ;; 13746 esac 13747 # Ok, now we have the path, separated by spaces, we can step through it 13748 # and add multilib dir if necessary... 13749 lt_tmp_lt_search_path_spec= 13750 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13751 # ...but if some path component already ends with the multilib dir we assume 13752 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 13753 case "$lt_multi_os_dir; $lt_search_path_spec " in 13754 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 13755 lt_multi_os_dir= 13756 ;; 13757 esac 13758 for lt_sys_path in $lt_search_path_spec; do 13759 if test -d "$lt_sys_path$lt_multi_os_dir"; then 13760 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 13761 elif test -n "$lt_multi_os_dir"; then 13762 test -d "$lt_sys_path" && \ 13763 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13764 fi 13765 done 13766 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 13767BEGIN {RS = " "; FS = "/|\n";} { 13768 lt_foo = ""; 13769 lt_count = 0; 13770 for (lt_i = NF; lt_i > 0; lt_i--) { 13771 if ($lt_i != "" && $lt_i != ".") { 13772 if ($lt_i == "..") { 13773 lt_count++; 13774 } else { 13775 if (lt_count == 0) { 13776 lt_foo = "/" $lt_i lt_foo; 13777 } else { 13778 lt_count--; 13779 } 13780 } 13781 } 13782 } 13783 if (lt_foo != "") { lt_freq[lt_foo]++; } 13784 if (lt_freq[lt_foo] == 1) { print lt_foo; } 13785}'` 13786 # AWK program above erroneously prepends '/' to C:/dos/paths 13787 # for these hosts. 13788 case $host_os in 13789 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 13790 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 13791 esac 13792 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 13793else 13794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13795fi 13796library_names_spec= 13797libname_spec='lib$name' 13798soname_spec= 13799shrext_cmds=.so 13800postinstall_cmds= 13801postuninstall_cmds= 13802finish_cmds= 13803finish_eval= 13804shlibpath_var= 13805shlibpath_overrides_runpath=unknown 13806version_type=none 13807dynamic_linker="$host_os ld.so" 13808sys_lib_dlsearch_path_spec="/lib /usr/lib" 13809need_lib_prefix=unknown 13810hardcode_into_libs=no 13811 13812# when you set need_version to no, make sure it does not cause -set_version 13813# flags to be left without arguments 13814need_version=unknown 13815 13816 13817 13818case $host_os in 13819aix3*) 13820 version_type=linux # correct to gnu/linux during the next big refactor 13821 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 13822 shlibpath_var=LIBPATH 13823 13824 # AIX 3 has no versioning support, so we append a major version to the name. 13825 soname_spec='$libname$release$shared_ext$major' 13826 ;; 13827 13828aix[4-9]*) 13829 version_type=linux # correct to gnu/linux during the next big refactor 13830 need_lib_prefix=no 13831 need_version=no 13832 hardcode_into_libs=yes 13833 if test ia64 = "$host_cpu"; then 13834 # AIX 5 supports IA64 13835 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 13836 shlibpath_var=LD_LIBRARY_PATH 13837 else 13838 # With GCC up to 2.95.x, collect2 would create an import file 13839 # for dependence libraries. The import file would start with 13840 # the line '#! .'. This would cause the generated library to 13841 # depend on '.', always an invalid library. This was fixed in 13842 # development snapshots of GCC prior to 3.0. 13843 case $host_os in 13844 aix4 | aix4.[01] | aix4.[01].*) 13845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13846 echo ' yes ' 13847 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 13848 : 13849 else 13850 can_build_shared=no 13851 fi 13852 ;; 13853 esac 13854 # Using Import Files as archive members, it is possible to support 13855 # filename-based versioning of shared library archives on AIX. While 13856 # this would work for both with and without runtime linking, it will 13857 # prevent static linking of such archives. So we do filename-based 13858 # shared library versioning with .so extension only, which is used 13859 # when both runtime linking and shared linking is enabled. 13860 # Unfortunately, runtime linking may impact performance, so we do 13861 # not want this to be the default eventually. Also, we use the 13862 # versioned .so libs for executables only if there is the -brtl 13863 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 13864 # To allow for filename-based versioning support, we need to create 13865 # libNAME.so.V as an archive file, containing: 13866 # *) an Import File, referring to the versioned filename of the 13867 # archive as well as the shared archive member, telling the 13868 # bitwidth (32 or 64) of that shared object, and providing the 13869 # list of exported symbols of that shared object, eventually 13870 # decorated with the 'weak' keyword 13871 # *) the shared object with the F_LOADONLY flag set, to really avoid 13872 # it being seen by the linker. 13873 # At run time we better use the real file rather than another symlink, 13874 # but for link time we create the symlink libNAME.so -> libNAME.so.V 13875 13876 case $with_aix_soname,$aix_use_runtimelinking in 13877 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 13878 # soname into executable. Probably we can add versioning support to 13879 # collect2, so additional links can be useful in future. 13880 aix,yes) # traditional libtool 13881 dynamic_linker='AIX unversionable lib.so' 13882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13883 # instead of lib<name>.a to let people know that these are not 13884 # typical AIX shared libraries. 13885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13886 ;; 13887 aix,no) # traditional AIX only 13888 dynamic_linker='AIX lib.a(lib.so.V)' 13889 # We preserve .a as extension for shared libraries through AIX4.2 13890 # and later when we are not doing run time linking. 13891 library_names_spec='$libname$release.a $libname.a' 13892 soname_spec='$libname$release$shared_ext$major' 13893 ;; 13894 svr4,*) # full svr4 only 13895 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 13896 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13897 # We do not specify a path in Import Files, so LIBPATH fires. 13898 shlibpath_overrides_runpath=yes 13899 ;; 13900 *,yes) # both, prefer svr4 13901 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 13902 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 13903 # unpreferred sharedlib libNAME.a needs extra handling 13904 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"' 13905 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"' 13906 # We do not specify a path in Import Files, so LIBPATH fires. 13907 shlibpath_overrides_runpath=yes 13908 ;; 13909 *,no) # both, prefer aix 13910 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 13911 library_names_spec='$libname$release.a $libname.a' 13912 soname_spec='$libname$release$shared_ext$major' 13913 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 13914 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)' 13915 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"' 13916 ;; 13917 esac 13918 shlibpath_var=LIBPATH 13919 fi 13920 ;; 13921 13922amigaos*) 13923 case $host_cpu in 13924 powerpc) 13925 # Since July 2007 AmigaOS4 officially supports .so libraries. 13926 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13928 ;; 13929 m68k) 13930 library_names_spec='$libname.ixlibrary $libname.a' 13931 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13932 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' 13933 ;; 13934 esac 13935 ;; 13936 13937beos*) 13938 library_names_spec='$libname$shared_ext' 13939 dynamic_linker="$host_os ld.so" 13940 shlibpath_var=LIBRARY_PATH 13941 ;; 13942 13943bsdi[45]*) 13944 version_type=linux # correct to gnu/linux during the next big refactor 13945 need_version=no 13946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13947 soname_spec='$libname$release$shared_ext$major' 13948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13949 shlibpath_var=LD_LIBRARY_PATH 13950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13952 # the default ld.so.conf also contains /usr/contrib/lib and 13953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13954 # libtool to hard-code these into programs 13955 ;; 13956 13957cygwin* | mingw* | pw32* | cegcc*) 13958 version_type=windows 13959 shrext_cmds=.dll 13960 need_version=no 13961 need_lib_prefix=no 13962 13963 case $GCC,$cc_basename in 13964 yes,*) 13965 # gcc 13966 library_names_spec='$libname.dll.a' 13967 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13968 postinstall_cmds='base_file=`basename \$file`~ 13969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 13970 dldir=$destdir/`dirname \$dlpath`~ 13971 test -d \$dldir || mkdir -p \$dldir~ 13972 $install_prog $dir/$dlname \$dldir/$dlname~ 13973 chmod a+x \$dldir/$dlname~ 13974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13976 fi' 13977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13978 dlpath=$dir/\$dldll~ 13979 $RM \$dlpath' 13980 shlibpath_overrides_runpath=yes 13981 13982 case $host_os in 13983 cygwin*) 13984 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13985 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13986 13987 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13988 ;; 13989 mingw* | cegcc*) 13990 # MinGW DLLs use traditional 'lib' prefix 13991 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13992 ;; 13993 pw32*) 13994 # pw32 DLLs use 'pw' prefix rather than 'lib' 13995 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 13996 ;; 13997 esac 13998 dynamic_linker='Win32 ld.exe' 13999 ;; 14000 14001 *,cl*) 14002 # Native MSVC 14003 libname_spec='$name' 14004 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14005 library_names_spec='$libname.dll.lib' 14006 14007 case $build_os in 14008 mingw*) 14009 sys_lib_search_path_spec= 14010 lt_save_ifs=$IFS 14011 IFS=';' 14012 for lt_path in $LIB 14013 do 14014 IFS=$lt_save_ifs 14015 # Let DOS variable expansion print the short 8.3 style file name. 14016 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14017 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14018 done 14019 IFS=$lt_save_ifs 14020 # Convert to MSYS style. 14021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14022 ;; 14023 cygwin*) 14024 # Convert to unix form, then to dos form, then back to unix form 14025 # but this time dos style (no spaces!) so that the unix form looks 14026 # like /cygdrive/c/PROGRA~1:/cygdr... 14027 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14028 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14029 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14030 ;; 14031 *) 14032 sys_lib_search_path_spec=$LIB 14033 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14034 # It is most probably a Windows format PATH. 14035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14036 else 14037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14038 fi 14039 # FIXME: find the short name or the path components, as spaces are 14040 # common. (e.g. "Program Files" -> "PROGRA~1") 14041 ;; 14042 esac 14043 14044 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14045 postinstall_cmds='base_file=`basename \$file`~ 14046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14047 dldir=$destdir/`dirname \$dlpath`~ 14048 test -d \$dldir || mkdir -p \$dldir~ 14049 $install_prog $dir/$dlname \$dldir/$dlname' 14050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14051 dlpath=$dir/\$dldll~ 14052 $RM \$dlpath' 14053 shlibpath_overrides_runpath=yes 14054 dynamic_linker='Win32 link.exe' 14055 ;; 14056 14057 *) 14058 # Assume MSVC wrapper 14059 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14060 dynamic_linker='Win32 ld.exe' 14061 ;; 14062 esac 14063 # FIXME: first we should search . and the directory the executable is in 14064 shlibpath_var=PATH 14065 ;; 14066 14067darwin* | rhapsody*) 14068 dynamic_linker="$host_os dyld" 14069 version_type=darwin 14070 need_lib_prefix=no 14071 need_version=no 14072 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14073 soname_spec='$libname$release$major$shared_ext' 14074 shlibpath_overrides_runpath=yes 14075 shlibpath_var=DYLD_LIBRARY_PATH 14076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14077 14078 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14079 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14080 ;; 14081 14082dgux*) 14083 version_type=linux # correct to gnu/linux during the next big refactor 14084 need_lib_prefix=no 14085 need_version=no 14086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14087 soname_spec='$libname$release$shared_ext$major' 14088 shlibpath_var=LD_LIBRARY_PATH 14089 ;; 14090 14091freebsd* | dragonfly*) 14092 # DragonFly does not have aout. When/if they implement a new 14093 # versioning mechanism, adjust this. 14094 if test -x /usr/bin/objformat; then 14095 objformat=`/usr/bin/objformat` 14096 else 14097 case $host_os in 14098 freebsd[23].*) objformat=aout ;; 14099 *) objformat=elf ;; 14100 esac 14101 fi 14102 version_type=freebsd-$objformat 14103 case $version_type in 14104 freebsd-elf*) 14105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14106 soname_spec='$libname$release$shared_ext$major' 14107 need_version=no 14108 need_lib_prefix=no 14109 ;; 14110 freebsd-*) 14111 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14112 need_version=yes 14113 ;; 14114 esac 14115 shlibpath_var=LD_LIBRARY_PATH 14116 case $host_os in 14117 freebsd2.*) 14118 shlibpath_overrides_runpath=yes 14119 ;; 14120 freebsd3.[01]* | freebsdelf3.[01]*) 14121 shlibpath_overrides_runpath=yes 14122 hardcode_into_libs=yes 14123 ;; 14124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14126 shlibpath_overrides_runpath=no 14127 hardcode_into_libs=yes 14128 ;; 14129 *) # from 4.6 on, and DragonFly 14130 shlibpath_overrides_runpath=yes 14131 hardcode_into_libs=yes 14132 ;; 14133 esac 14134 ;; 14135 14136haiku*) 14137 version_type=linux # correct to gnu/linux during the next big refactor 14138 need_lib_prefix=no 14139 need_version=no 14140 dynamic_linker="$host_os runtime_loader" 14141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14142 soname_spec='$libname$release$shared_ext$major' 14143 shlibpath_var=LIBRARY_PATH 14144 shlibpath_overrides_runpath=no 14145 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14146 hardcode_into_libs=yes 14147 ;; 14148 14149hpux9* | hpux10* | hpux11*) 14150 # Give a soname corresponding to the major version so that dld.sl refuses to 14151 # link against other versions. 14152 version_type=sunos 14153 need_lib_prefix=no 14154 need_version=no 14155 case $host_cpu in 14156 ia64*) 14157 shrext_cmds='.so' 14158 hardcode_into_libs=yes 14159 dynamic_linker="$host_os dld.so" 14160 shlibpath_var=LD_LIBRARY_PATH 14161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14163 soname_spec='$libname$release$shared_ext$major' 14164 if test 32 = "$HPUX_IA64_MODE"; then 14165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14166 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14167 else 14168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14169 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14170 fi 14171 ;; 14172 hppa*64*) 14173 shrext_cmds='.sl' 14174 hardcode_into_libs=yes 14175 dynamic_linker="$host_os dld.sl" 14176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14179 soname_spec='$libname$release$shared_ext$major' 14180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14182 ;; 14183 *) 14184 shrext_cmds='.sl' 14185 dynamic_linker="$host_os dld.sl" 14186 shlibpath_var=SHLIB_PATH 14187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14189 soname_spec='$libname$release$shared_ext$major' 14190 ;; 14191 esac 14192 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14193 postinstall_cmds='chmod 555 $lib' 14194 # or fails outright, so override atomically: 14195 install_override_mode=555 14196 ;; 14197 14198interix[3-9]*) 14199 version_type=linux # correct to gnu/linux during the next big refactor 14200 need_lib_prefix=no 14201 need_version=no 14202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14203 soname_spec='$libname$release$shared_ext$major' 14204 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14205 shlibpath_var=LD_LIBRARY_PATH 14206 shlibpath_overrides_runpath=no 14207 hardcode_into_libs=yes 14208 ;; 14209 14210irix5* | irix6* | nonstopux*) 14211 case $host_os in 14212 nonstopux*) version_type=nonstopux ;; 14213 *) 14214 if test yes = "$lt_cv_prog_gnu_ld"; then 14215 version_type=linux # correct to gnu/linux during the next big refactor 14216 else 14217 version_type=irix 14218 fi ;; 14219 esac 14220 need_lib_prefix=no 14221 need_version=no 14222 soname_spec='$libname$release$shared_ext$major' 14223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14224 case $host_os in 14225 irix5* | nonstopux*) 14226 libsuff= shlibsuff= 14227 ;; 14228 *) 14229 case $LD in # libtool.m4 will add one of these switches to LD 14230 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14231 libsuff= shlibsuff= libmagic=32-bit;; 14232 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14233 libsuff=32 shlibsuff=N32 libmagic=N32;; 14234 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14235 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14236 *) libsuff= shlibsuff= libmagic=never-match;; 14237 esac 14238 ;; 14239 esac 14240 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14241 shlibpath_overrides_runpath=no 14242 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14243 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14244 hardcode_into_libs=yes 14245 ;; 14246 14247# No shared lib support for Linux oldld, aout, or coff. 14248linux*oldld* | linux*aout* | linux*coff*) 14249 dynamic_linker=no 14250 ;; 14251 14252linux*android*) 14253 version_type=none # Android doesn't support versioned libraries. 14254 need_lib_prefix=no 14255 need_version=no 14256 library_names_spec='$libname$release$shared_ext' 14257 soname_spec='$libname$release$shared_ext' 14258 finish_cmds= 14259 shlibpath_var=LD_LIBRARY_PATH 14260 shlibpath_overrides_runpath=yes 14261 14262 # This implies no fast_install, which is unacceptable. 14263 # Some rework will be needed to allow for fast_install 14264 # before this can be enabled. 14265 hardcode_into_libs=yes 14266 14267 dynamic_linker='Android linker' 14268 # Don't embed -rpath directories since the linker doesn't support them. 14269 hardcode_libdir_flag_spec='-L$libdir' 14270 ;; 14271 14272# This must be glibc/ELF. 14273linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14274 version_type=linux # correct to gnu/linux during the next big refactor 14275 need_lib_prefix=no 14276 need_version=no 14277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14278 soname_spec='$libname$release$shared_ext$major' 14279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14280 shlibpath_var=LD_LIBRARY_PATH 14281 shlibpath_overrides_runpath=no 14282 14283 # Some binutils ld are patched to set DT_RUNPATH 14284 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14285 $as_echo_n "(cached) " >&6 14286else 14287 lt_cv_shlibpath_overrides_runpath=no 14288 save_LDFLAGS=$LDFLAGS 14289 save_libdir=$libdir 14290 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14291 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14293/* end confdefs.h. */ 14294 14295int 14296main () 14297{ 14298 14299 ; 14300 return 0; 14301} 14302_ACEOF 14303if ac_fn_c_try_link "$LINENO"; then : 14304 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14305 lt_cv_shlibpath_overrides_runpath=yes 14306fi 14307fi 14308rm -f core conftest.err conftest.$ac_objext \ 14309 conftest$ac_exeext conftest.$ac_ext 14310 LDFLAGS=$save_LDFLAGS 14311 libdir=$save_libdir 14312 14313fi 14314 14315 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14316 14317 # This implies no fast_install, which is unacceptable. 14318 # Some rework will be needed to allow for fast_install 14319 # before this can be enabled. 14320 hardcode_into_libs=yes 14321 14322 # Ideally, we could use ldconfig to report *all* directores which are 14323 # searched for libraries, however this is still not possible. Aside from not 14324 # being certain /sbin/ldconfig is available, command 14325 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14326 # even though it is searched at run-time. Try to do the best guess by 14327 # appending ld.so.conf contents (and includes) to the search path. 14328 if test -f /etc/ld.so.conf; then 14329 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' ' '` 14330 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14331 fi 14332 14333 # We used to test for /lib/ld.so.1 and disable shared libraries on 14334 # powerpc, because MkLinux only supported shared libraries with the 14335 # GNU dynamic linker. Since this was broken with cross compilers, 14336 # most powerpc-linux boxes support dynamic linking these days and 14337 # people can always --disable-shared, the test was removed, and we 14338 # assume the GNU/Linux dynamic linker is in use. 14339 dynamic_linker='GNU/Linux ld.so' 14340 ;; 14341 14342netbsdelf*-gnu) 14343 version_type=linux 14344 need_lib_prefix=no 14345 need_version=no 14346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14347 soname_spec='${libname}${release}${shared_ext}$major' 14348 shlibpath_var=LD_LIBRARY_PATH 14349 shlibpath_overrides_runpath=no 14350 hardcode_into_libs=yes 14351 dynamic_linker='NetBSD ld.elf_so' 14352 ;; 14353 14354netbsd*) 14355 version_type=sunos 14356 need_lib_prefix=no 14357 need_version=no 14358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14359 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14361 dynamic_linker='NetBSD (a.out) ld.so' 14362 else 14363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14364 soname_spec='$libname$release$shared_ext$major' 14365 dynamic_linker='NetBSD ld.elf_so' 14366 fi 14367 shlibpath_var=LD_LIBRARY_PATH 14368 shlibpath_overrides_runpath=yes 14369 hardcode_into_libs=yes 14370 ;; 14371 14372newsos6) 14373 version_type=linux # correct to gnu/linux during the next big refactor 14374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14375 shlibpath_var=LD_LIBRARY_PATH 14376 shlibpath_overrides_runpath=yes 14377 ;; 14378 14379*nto* | *qnx*) 14380 version_type=qnx 14381 need_lib_prefix=no 14382 need_version=no 14383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14384 soname_spec='$libname$release$shared_ext$major' 14385 shlibpath_var=LD_LIBRARY_PATH 14386 shlibpath_overrides_runpath=no 14387 hardcode_into_libs=yes 14388 dynamic_linker='ldqnx.so' 14389 ;; 14390 14391openbsd* | bitrig*) 14392 version_type=sunos 14393 sys_lib_dlsearch_path_spec=/usr/lib 14394 need_lib_prefix=no 14395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14396 need_version=no 14397 else 14398 need_version=yes 14399 fi 14400 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14402 shlibpath_var=LD_LIBRARY_PATH 14403 shlibpath_overrides_runpath=yes 14404 ;; 14405 14406os2*) 14407 libname_spec='$name' 14408 version_type=windows 14409 shrext_cmds=.dll 14410 need_version=no 14411 need_lib_prefix=no 14412 # OS/2 can only load a DLL with a base name of 8 characters or less. 14413 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14414 v=$($ECHO $release$versuffix | tr -d .-); 14415 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14416 $ECHO $n$v`$shared_ext' 14417 library_names_spec='${libname}_dll.$libext' 14418 dynamic_linker='OS/2 ld.exe' 14419 shlibpath_var=BEGINLIBPATH 14420 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14422 postinstall_cmds='base_file=`basename \$file`~ 14423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14424 dldir=$destdir/`dirname \$dlpath`~ 14425 test -d \$dldir || mkdir -p \$dldir~ 14426 $install_prog $dir/$dlname \$dldir/$dlname~ 14427 chmod a+x \$dldir/$dlname~ 14428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14430 fi' 14431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14432 dlpath=$dir/\$dldll~ 14433 $RM \$dlpath' 14434 ;; 14435 14436osf3* | osf4* | osf5*) 14437 version_type=osf 14438 need_lib_prefix=no 14439 need_version=no 14440 soname_spec='$libname$release$shared_ext$major' 14441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14442 shlibpath_var=LD_LIBRARY_PATH 14443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14445 ;; 14446 14447rdos*) 14448 dynamic_linker=no 14449 ;; 14450 14451solaris*) 14452 version_type=linux # correct to gnu/linux during the next big refactor 14453 need_lib_prefix=no 14454 need_version=no 14455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14456 soname_spec='$libname$release$shared_ext$major' 14457 shlibpath_var=LD_LIBRARY_PATH 14458 shlibpath_overrides_runpath=yes 14459 hardcode_into_libs=yes 14460 # ldd complains unless libraries are executable 14461 postinstall_cmds='chmod +x $lib' 14462 ;; 14463 14464sunos4*) 14465 version_type=sunos 14466 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14467 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14468 shlibpath_var=LD_LIBRARY_PATH 14469 shlibpath_overrides_runpath=yes 14470 if test yes = "$with_gnu_ld"; then 14471 need_lib_prefix=no 14472 fi 14473 need_version=yes 14474 ;; 14475 14476sysv4 | sysv4.3*) 14477 version_type=linux # correct to gnu/linux during the next big refactor 14478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14479 soname_spec='$libname$release$shared_ext$major' 14480 shlibpath_var=LD_LIBRARY_PATH 14481 case $host_vendor in 14482 sni) 14483 shlibpath_overrides_runpath=no 14484 need_lib_prefix=no 14485 runpath_var=LD_RUN_PATH 14486 ;; 14487 siemens) 14488 need_lib_prefix=no 14489 ;; 14490 motorola) 14491 need_lib_prefix=no 14492 need_version=no 14493 shlibpath_overrides_runpath=no 14494 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14495 ;; 14496 esac 14497 ;; 14498 14499sysv4*MP*) 14500 if test -d /usr/nec; then 14501 version_type=linux # correct to gnu/linux during the next big refactor 14502 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14503 soname_spec='$libname$shared_ext.$major' 14504 shlibpath_var=LD_LIBRARY_PATH 14505 fi 14506 ;; 14507 14508sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14509 version_type=sco 14510 need_lib_prefix=no 14511 need_version=no 14512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14513 soname_spec='$libname$release$shared_ext$major' 14514 shlibpath_var=LD_LIBRARY_PATH 14515 shlibpath_overrides_runpath=yes 14516 hardcode_into_libs=yes 14517 if test yes = "$with_gnu_ld"; then 14518 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14519 else 14520 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14521 case $host_os in 14522 sco3.2v5*) 14523 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14524 ;; 14525 esac 14526 fi 14527 sys_lib_dlsearch_path_spec='/usr/lib' 14528 ;; 14529 14530tpf*) 14531 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14532 version_type=linux # correct to gnu/linux during the next big refactor 14533 need_lib_prefix=no 14534 need_version=no 14535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14536 shlibpath_var=LD_LIBRARY_PATH 14537 shlibpath_overrides_runpath=no 14538 hardcode_into_libs=yes 14539 ;; 14540 14541uts4*) 14542 version_type=linux # correct to gnu/linux during the next big refactor 14543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14544 soname_spec='$libname$release$shared_ext$major' 14545 shlibpath_var=LD_LIBRARY_PATH 14546 ;; 14547 14548*) 14549 dynamic_linker=no 14550 ;; 14551esac 14552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14553$as_echo "$dynamic_linker" >&6; } 14554test no = "$dynamic_linker" && can_build_shared=no 14555 14556variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14557if test yes = "$GCC"; then 14558 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14559fi 14560 14561if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14562 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14563fi 14564 14565if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14566 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14567fi 14568 14569# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14570configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14571 14572# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14573func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14574 14575# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14576configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14675$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14676hardcode_action= 14677if test -n "$hardcode_libdir_flag_spec" || 14678 test -n "$runpath_var" || 14679 test yes = "$hardcode_automatic"; then 14680 14681 # We can hardcode non-existent directories. 14682 if test no != "$hardcode_direct" && 14683 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14684 # have to relink, otherwise we might link with an installed library 14685 # when we should be linking with a yet-to-be-installed one 14686 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 14687 test no != "$hardcode_minus_L"; then 14688 # Linking always hardcodes the temporary library directory. 14689 hardcode_action=relink 14690 else 14691 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14692 hardcode_action=immediate 14693 fi 14694else 14695 # We cannot hardcode anything, or else we can only hardcode existing 14696 # directories. 14697 hardcode_action=unsupported 14698fi 14699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 14700$as_echo "$hardcode_action" >&6; } 14701 14702if test relink = "$hardcode_action" || 14703 test yes = "$inherit_rpath"; then 14704 # Fast installation is not supported 14705 enable_fast_install=no 14706elif test yes = "$shlibpath_overrides_runpath" || 14707 test no = "$enable_shared"; then 14708 # Fast installation is not necessary 14709 enable_fast_install=needless 14710fi 14711 14712 14713 14714 14715 14716 14717 if test yes != "$enable_dlopen"; then 14718 enable_dlopen=unknown 14719 enable_dlopen_self=unknown 14720 enable_dlopen_self_static=unknown 14721else 14722 lt_cv_dlopen=no 14723 lt_cv_dlopen_libs= 14724 14725 case $host_os in 14726 beos*) 14727 lt_cv_dlopen=load_add_on 14728 lt_cv_dlopen_libs= 14729 lt_cv_dlopen_self=yes 14730 ;; 14731 14732 mingw* | pw32* | cegcc*) 14733 lt_cv_dlopen=LoadLibrary 14734 lt_cv_dlopen_libs= 14735 ;; 14736 14737 cygwin*) 14738 lt_cv_dlopen=dlopen 14739 lt_cv_dlopen_libs= 14740 ;; 14741 14742 darwin*) 14743 # if libdl is installed we need to link against it 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14745$as_echo_n "checking for dlopen in -ldl... " >&6; } 14746if ${ac_cv_lib_dl_dlopen+:} false; then : 14747 $as_echo_n "(cached) " >&6 14748else 14749 ac_check_lib_save_LIBS=$LIBS 14750LIBS="-ldl $LIBS" 14751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14752/* end confdefs.h. */ 14753 14754/* Override any GCC internal prototype to avoid an error. 14755 Use char because int might match the return type of a GCC 14756 builtin and then its argument prototype would still apply. */ 14757#ifdef __cplusplus 14758extern "C" 14759#endif 14760char dlopen (); 14761int 14762main () 14763{ 14764return dlopen (); 14765 ; 14766 return 0; 14767} 14768_ACEOF 14769if ac_fn_c_try_link "$LINENO"; then : 14770 ac_cv_lib_dl_dlopen=yes 14771else 14772 ac_cv_lib_dl_dlopen=no 14773fi 14774rm -f core conftest.err conftest.$ac_objext \ 14775 conftest$ac_exeext conftest.$ac_ext 14776LIBS=$ac_check_lib_save_LIBS 14777fi 14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14779$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14780if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14781 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14782else 14783 14784 lt_cv_dlopen=dyld 14785 lt_cv_dlopen_libs= 14786 lt_cv_dlopen_self=yes 14787 14788fi 14789 14790 ;; 14791 14792 tpf*) 14793 # Don't try to run any link tests for TPF. We know it's impossible 14794 # because TPF is a cross-compiler, and we know how we open DSOs. 14795 lt_cv_dlopen=dlopen 14796 lt_cv_dlopen_libs= 14797 lt_cv_dlopen_self=no 14798 ;; 14799 14800 *) 14801 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 14802if test "x$ac_cv_func_shl_load" = xyes; then : 14803 lt_cv_dlopen=shl_load 14804else 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 14806$as_echo_n "checking for shl_load in -ldld... " >&6; } 14807if ${ac_cv_lib_dld_shl_load+:} false; then : 14808 $as_echo_n "(cached) " >&6 14809else 14810 ac_check_lib_save_LIBS=$LIBS 14811LIBS="-ldld $LIBS" 14812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813/* end confdefs.h. */ 14814 14815/* Override any GCC internal prototype to avoid an error. 14816 Use char because int might match the return type of a GCC 14817 builtin and then its argument prototype would still apply. */ 14818#ifdef __cplusplus 14819extern "C" 14820#endif 14821char shl_load (); 14822int 14823main () 14824{ 14825return shl_load (); 14826 ; 14827 return 0; 14828} 14829_ACEOF 14830if ac_fn_c_try_link "$LINENO"; then : 14831 ac_cv_lib_dld_shl_load=yes 14832else 14833 ac_cv_lib_dld_shl_load=no 14834fi 14835rm -f core conftest.err conftest.$ac_objext \ 14836 conftest$ac_exeext conftest.$ac_ext 14837LIBS=$ac_check_lib_save_LIBS 14838fi 14839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 14840$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 14841if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 14842 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 14843else 14844 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 14845if test "x$ac_cv_func_dlopen" = xyes; then : 14846 lt_cv_dlopen=dlopen 14847else 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 14849$as_echo_n "checking for dlopen in -ldl... " >&6; } 14850if ${ac_cv_lib_dl_dlopen+:} false; then : 14851 $as_echo_n "(cached) " >&6 14852else 14853 ac_check_lib_save_LIBS=$LIBS 14854LIBS="-ldl $LIBS" 14855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14856/* end confdefs.h. */ 14857 14858/* Override any GCC internal prototype to avoid an error. 14859 Use char because int might match the return type of a GCC 14860 builtin and then its argument prototype would still apply. */ 14861#ifdef __cplusplus 14862extern "C" 14863#endif 14864char dlopen (); 14865int 14866main () 14867{ 14868return dlopen (); 14869 ; 14870 return 0; 14871} 14872_ACEOF 14873if ac_fn_c_try_link "$LINENO"; then : 14874 ac_cv_lib_dl_dlopen=yes 14875else 14876 ac_cv_lib_dl_dlopen=no 14877fi 14878rm -f core conftest.err conftest.$ac_objext \ 14879 conftest$ac_exeext conftest.$ac_ext 14880LIBS=$ac_check_lib_save_LIBS 14881fi 14882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 14883$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 14884if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 14885 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 14886else 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 14888$as_echo_n "checking for dlopen in -lsvld... " >&6; } 14889if ${ac_cv_lib_svld_dlopen+:} false; then : 14890 $as_echo_n "(cached) " >&6 14891else 14892 ac_check_lib_save_LIBS=$LIBS 14893LIBS="-lsvld $LIBS" 14894cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895/* end confdefs.h. */ 14896 14897/* Override any GCC internal prototype to avoid an error. 14898 Use char because int might match the return type of a GCC 14899 builtin and then its argument prototype would still apply. */ 14900#ifdef __cplusplus 14901extern "C" 14902#endif 14903char dlopen (); 14904int 14905main () 14906{ 14907return dlopen (); 14908 ; 14909 return 0; 14910} 14911_ACEOF 14912if ac_fn_c_try_link "$LINENO"; then : 14913 ac_cv_lib_svld_dlopen=yes 14914else 14915 ac_cv_lib_svld_dlopen=no 14916fi 14917rm -f core conftest.err conftest.$ac_objext \ 14918 conftest$ac_exeext conftest.$ac_ext 14919LIBS=$ac_check_lib_save_LIBS 14920fi 14921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 14922$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 14923if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 14924 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 14925else 14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 14927$as_echo_n "checking for dld_link in -ldld... " >&6; } 14928if ${ac_cv_lib_dld_dld_link+:} false; then : 14929 $as_echo_n "(cached) " >&6 14930else 14931 ac_check_lib_save_LIBS=$LIBS 14932LIBS="-ldld $LIBS" 14933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14934/* end confdefs.h. */ 14935 14936/* Override any GCC internal prototype to avoid an error. 14937 Use char because int might match the return type of a GCC 14938 builtin and then its argument prototype would still apply. */ 14939#ifdef __cplusplus 14940extern "C" 14941#endif 14942char dld_link (); 14943int 14944main () 14945{ 14946return dld_link (); 14947 ; 14948 return 0; 14949} 14950_ACEOF 14951if ac_fn_c_try_link "$LINENO"; then : 14952 ac_cv_lib_dld_dld_link=yes 14953else 14954 ac_cv_lib_dld_dld_link=no 14955fi 14956rm -f core conftest.err conftest.$ac_objext \ 14957 conftest$ac_exeext conftest.$ac_ext 14958LIBS=$ac_check_lib_save_LIBS 14959fi 14960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 14961$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 14962if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 14963 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 14964fi 14965 14966 14967fi 14968 14969 14970fi 14971 14972 14973fi 14974 14975 14976fi 14977 14978 14979fi 14980 14981 ;; 14982 esac 14983 14984 if test no = "$lt_cv_dlopen"; then 14985 enable_dlopen=no 14986 else 14987 enable_dlopen=yes 14988 fi 14989 14990 case $lt_cv_dlopen in 14991 dlopen) 14992 save_CPPFLAGS=$CPPFLAGS 14993 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 14994 14995 save_LDFLAGS=$LDFLAGS 14996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 14997 14998 save_LIBS=$LIBS 14999 LIBS="$lt_cv_dlopen_libs $LIBS" 15000 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15002$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15003if ${lt_cv_dlopen_self+:} false; then : 15004 $as_echo_n "(cached) " >&6 15005else 15006 if test yes = "$cross_compiling"; then : 15007 lt_cv_dlopen_self=cross 15008else 15009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15010 lt_status=$lt_dlunknown 15011 cat > conftest.$ac_ext <<_LT_EOF 15012#line $LINENO "configure" 15013#include "confdefs.h" 15014 15015#if HAVE_DLFCN_H 15016#include <dlfcn.h> 15017#endif 15018 15019#include <stdio.h> 15020 15021#ifdef RTLD_GLOBAL 15022# define LT_DLGLOBAL RTLD_GLOBAL 15023#else 15024# ifdef DL_GLOBAL 15025# define LT_DLGLOBAL DL_GLOBAL 15026# else 15027# define LT_DLGLOBAL 0 15028# endif 15029#endif 15030 15031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15032 find out it does not work in some platform. */ 15033#ifndef LT_DLLAZY_OR_NOW 15034# ifdef RTLD_LAZY 15035# define LT_DLLAZY_OR_NOW RTLD_LAZY 15036# else 15037# ifdef DL_LAZY 15038# define LT_DLLAZY_OR_NOW DL_LAZY 15039# else 15040# ifdef RTLD_NOW 15041# define LT_DLLAZY_OR_NOW RTLD_NOW 15042# else 15043# ifdef DL_NOW 15044# define LT_DLLAZY_OR_NOW DL_NOW 15045# else 15046# define LT_DLLAZY_OR_NOW 0 15047# endif 15048# endif 15049# endif 15050# endif 15051#endif 15052 15053/* When -fvisibility=hidden is used, assume the code has been annotated 15054 correspondingly for the symbols needed. */ 15055#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15056int fnord () __attribute__((visibility("default"))); 15057#endif 15058 15059int fnord () { return 42; } 15060int main () 15061{ 15062 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15063 int status = $lt_dlunknown; 15064 15065 if (self) 15066 { 15067 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15068 else 15069 { 15070 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15071 else puts (dlerror ()); 15072 } 15073 /* dlclose (self); */ 15074 } 15075 else 15076 puts (dlerror ()); 15077 15078 return status; 15079} 15080_LT_EOF 15081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15082 (eval $ac_link) 2>&5 15083 ac_status=$? 15084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15085 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15086 (./conftest; exit; ) >&5 2>/dev/null 15087 lt_status=$? 15088 case x$lt_status in 15089 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15090 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15091 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15092 esac 15093 else : 15094 # compilation failed 15095 lt_cv_dlopen_self=no 15096 fi 15097fi 15098rm -fr conftest* 15099 15100 15101fi 15102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15103$as_echo "$lt_cv_dlopen_self" >&6; } 15104 15105 if test yes = "$lt_cv_dlopen_self"; then 15106 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15108$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15109if ${lt_cv_dlopen_self_static+:} false; then : 15110 $as_echo_n "(cached) " >&6 15111else 15112 if test yes = "$cross_compiling"; then : 15113 lt_cv_dlopen_self_static=cross 15114else 15115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15116 lt_status=$lt_dlunknown 15117 cat > conftest.$ac_ext <<_LT_EOF 15118#line $LINENO "configure" 15119#include "confdefs.h" 15120 15121#if HAVE_DLFCN_H 15122#include <dlfcn.h> 15123#endif 15124 15125#include <stdio.h> 15126 15127#ifdef RTLD_GLOBAL 15128# define LT_DLGLOBAL RTLD_GLOBAL 15129#else 15130# ifdef DL_GLOBAL 15131# define LT_DLGLOBAL DL_GLOBAL 15132# else 15133# define LT_DLGLOBAL 0 15134# endif 15135#endif 15136 15137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15138 find out it does not work in some platform. */ 15139#ifndef LT_DLLAZY_OR_NOW 15140# ifdef RTLD_LAZY 15141# define LT_DLLAZY_OR_NOW RTLD_LAZY 15142# else 15143# ifdef DL_LAZY 15144# define LT_DLLAZY_OR_NOW DL_LAZY 15145# else 15146# ifdef RTLD_NOW 15147# define LT_DLLAZY_OR_NOW RTLD_NOW 15148# else 15149# ifdef DL_NOW 15150# define LT_DLLAZY_OR_NOW DL_NOW 15151# else 15152# define LT_DLLAZY_OR_NOW 0 15153# endif 15154# endif 15155# endif 15156# endif 15157#endif 15158 15159/* When -fvisibility=hidden is used, assume the code has been annotated 15160 correspondingly for the symbols needed. */ 15161#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15162int fnord () __attribute__((visibility("default"))); 15163#endif 15164 15165int fnord () { return 42; } 15166int main () 15167{ 15168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15169 int status = $lt_dlunknown; 15170 15171 if (self) 15172 { 15173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15174 else 15175 { 15176 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15177 else puts (dlerror ()); 15178 } 15179 /* dlclose (self); */ 15180 } 15181 else 15182 puts (dlerror ()); 15183 15184 return status; 15185} 15186_LT_EOF 15187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15188 (eval $ac_link) 2>&5 15189 ac_status=$? 15190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15191 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15192 (./conftest; exit; ) >&5 2>/dev/null 15193 lt_status=$? 15194 case x$lt_status in 15195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15197 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15198 esac 15199 else : 15200 # compilation failed 15201 lt_cv_dlopen_self_static=no 15202 fi 15203fi 15204rm -fr conftest* 15205 15206 15207fi 15208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15209$as_echo "$lt_cv_dlopen_self_static" >&6; } 15210 fi 15211 15212 CPPFLAGS=$save_CPPFLAGS 15213 LDFLAGS=$save_LDFLAGS 15214 LIBS=$save_LIBS 15215 ;; 15216 esac 15217 15218 case $lt_cv_dlopen_self in 15219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15220 *) enable_dlopen_self=unknown ;; 15221 esac 15222 15223 case $lt_cv_dlopen_self_static in 15224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15225 *) enable_dlopen_self_static=unknown ;; 15226 esac 15227fi 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245striplib= 15246old_striplib= 15247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15248$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15249if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15250 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15251 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15253$as_echo "yes" >&6; } 15254else 15255# FIXME - insert some real tests, host_os isn't really good enough 15256 case $host_os in 15257 darwin*) 15258 if test -n "$STRIP"; then 15259 striplib="$STRIP -x" 15260 old_striplib="$STRIP -S" 15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15262$as_echo "yes" >&6; } 15263 else 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15265$as_echo "no" >&6; } 15266 fi 15267 ;; 15268 *) 15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15270$as_echo "no" >&6; } 15271 ;; 15272 esac 15273fi 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 # Report what library types will actually be built 15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15288$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15290$as_echo "$can_build_shared" >&6; } 15291 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15293$as_echo_n "checking whether to build shared libraries... " >&6; } 15294 test no = "$can_build_shared" && enable_shared=no 15295 15296 # On AIX, shared libraries and static libraries use the same namespace, and 15297 # are all built from PIC. 15298 case $host_os in 15299 aix3*) 15300 test yes = "$enable_shared" && enable_static=no 15301 if test -n "$RANLIB"; then 15302 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15303 postinstall_cmds='$RANLIB $lib' 15304 fi 15305 ;; 15306 15307 aix[4-9]*) 15308 if test ia64 != "$host_cpu"; then 15309 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15310 yes,aix,yes) ;; # shared object as lib.so file only 15311 yes,svr4,*) ;; # shared object as lib.so archive member only 15312 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15313 esac 15314 fi 15315 ;; 15316 esac 15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15318$as_echo "$enable_shared" >&6; } 15319 15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15321$as_echo_n "checking whether to build static libraries... " >&6; } 15322 # Make sure either enable_shared or enable_static is yes. 15323 test yes = "$enable_shared" || enable_static=yes 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15325$as_echo "$enable_static" >&6; } 15326 15327 15328 15329 15330fi 15331ac_ext=c 15332ac_cpp='$CPP $CPPFLAGS' 15333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15335ac_compiler_gnu=$ac_cv_c_compiler_gnu 15336 15337CC=$lt_save_CC 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 ac_config_commands="$ac_config_commands libtool" 15354 15355 15356 15357 15358# Only expand once: 15359 15360 15361 15362# Checks for programs. 15363 15364PERL=${PERL-"${am_missing_run}perl"} 15365 15366 15367HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 15368 15369 15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 15371$as_echo_n "checking whether NLS is requested... " >&6; } 15372 # Check whether --enable-nls was given. 15373if test "${enable_nls+set}" = set; then : 15374 enableval=$enable_nls; USE_NLS=$enableval 15375else 15376 USE_NLS=yes 15377fi 15378 15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 15380$as_echo "$USE_NLS" >&6; } 15381 15382 15383 15384 15385 GETTEXT_MACRO_VERSION=0.19 15386 15387 15388 15389 15390# Prepare PATH_SEPARATOR. 15391# The user is always right. 15392if test "${PATH_SEPARATOR+set}" != set; then 15393 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 15394 # contains only /bin. Note that ksh looks also at the FPATH variable, 15395 # so we have to set that as well for the test. 15396 PATH_SEPARATOR=: 15397 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15398 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15399 || PATH_SEPARATOR=';' 15400 } 15401fi 15402 15403# Find out how to test for executable files. Don't use a zero-byte file, 15404# as systems may use methods other than mode bits to determine executability. 15405cat >conf$$.file <<_ASEOF 15406#! /bin/sh 15407exit 0 15408_ASEOF 15409chmod +x conf$$.file 15410if test -x conf$$.file >/dev/null 2>&1; then 15411 ac_executable_p="test -x" 15412else 15413 ac_executable_p="test -f" 15414fi 15415rm -f conf$$.file 15416 15417# Extract the first word of "msgfmt", so it can be a program name with args. 15418set dummy msgfmt; ac_word=$2 15419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15420$as_echo_n "checking for $ac_word... " >&6; } 15421if ${ac_cv_path_MSGFMT+:} false; then : 15422 $as_echo_n "(cached) " >&6 15423else 15424 case "$MSGFMT" in 15425 [\\/]* | ?:[\\/]*) 15426 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 15427 ;; 15428 *) 15429 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 15430 for ac_dir in $PATH; do 15431 IFS="$ac_save_IFS" 15432 test -z "$ac_dir" && ac_dir=. 15433 for ac_exec_ext in '' $ac_executable_extensions; do 15434 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 15435 echo "$as_me: trying $ac_dir/$ac_word..." >&5 15436 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 15437 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 15438 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 15439 break 2 15440 fi 15441 fi 15442 done 15443 done 15444 IFS="$ac_save_IFS" 15445 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 15446 ;; 15447esac 15448fi 15449MSGFMT="$ac_cv_path_MSGFMT" 15450if test "$MSGFMT" != ":"; then 15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 15452$as_echo "$MSGFMT" >&6; } 15453else 15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15455$as_echo "no" >&6; } 15456fi 15457 15458 # Extract the first word of "gmsgfmt", so it can be a program name with args. 15459set dummy gmsgfmt; ac_word=$2 15460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15461$as_echo_n "checking for $ac_word... " >&6; } 15462if ${ac_cv_path_GMSGFMT+:} false; then : 15463 $as_echo_n "(cached) " >&6 15464else 15465 case $GMSGFMT in 15466 [\\/]* | ?:[\\/]*) 15467 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 15468 ;; 15469 *) 15470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15471for as_dir in $PATH 15472do 15473 IFS=$as_save_IFS 15474 test -z "$as_dir" && as_dir=. 15475 for ac_exec_ext in '' $ac_executable_extensions; do 15476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15477 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 15478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15479 break 2 15480 fi 15481done 15482 done 15483IFS=$as_save_IFS 15484 15485 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 15486 ;; 15487esac 15488fi 15489GMSGFMT=$ac_cv_path_GMSGFMT 15490if test -n "$GMSGFMT"; then 15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 15492$as_echo "$GMSGFMT" >&6; } 15493else 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15495$as_echo "no" >&6; } 15496fi 15497 15498 15499 15500 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 15501 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 15502 *) MSGFMT_015=$MSGFMT ;; 15503 esac 15504 15505 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 15506 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 15507 *) GMSGFMT_015=$GMSGFMT ;; 15508 esac 15509 15510 15511 15512# Prepare PATH_SEPARATOR. 15513# The user is always right. 15514if test "${PATH_SEPARATOR+set}" != set; then 15515 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 15516 # contains only /bin. Note that ksh looks also at the FPATH variable, 15517 # so we have to set that as well for the test. 15518 PATH_SEPARATOR=: 15519 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15520 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15521 || PATH_SEPARATOR=';' 15522 } 15523fi 15524 15525# Find out how to test for executable files. Don't use a zero-byte file, 15526# as systems may use methods other than mode bits to determine executability. 15527cat >conf$$.file <<_ASEOF 15528#! /bin/sh 15529exit 0 15530_ASEOF 15531chmod +x conf$$.file 15532if test -x conf$$.file >/dev/null 2>&1; then 15533 ac_executable_p="test -x" 15534else 15535 ac_executable_p="test -f" 15536fi 15537rm -f conf$$.file 15538 15539# Extract the first word of "xgettext", so it can be a program name with args. 15540set dummy xgettext; ac_word=$2 15541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15542$as_echo_n "checking for $ac_word... " >&6; } 15543if ${ac_cv_path_XGETTEXT+:} false; then : 15544 $as_echo_n "(cached) " >&6 15545else 15546 case "$XGETTEXT" in 15547 [\\/]* | ?:[\\/]*) 15548 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 15549 ;; 15550 *) 15551 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 15552 for ac_dir in $PATH; do 15553 IFS="$ac_save_IFS" 15554 test -z "$ac_dir" && ac_dir=. 15555 for ac_exec_ext in '' $ac_executable_extensions; do 15556 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 15557 echo "$as_me: trying $ac_dir/$ac_word..." >&5 15558 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 15559 (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 15560 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 15561 break 2 15562 fi 15563 fi 15564 done 15565 done 15566 IFS="$ac_save_IFS" 15567 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 15568 ;; 15569esac 15570fi 15571XGETTEXT="$ac_cv_path_XGETTEXT" 15572if test "$XGETTEXT" != ":"; then 15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 15574$as_echo "$XGETTEXT" >&6; } 15575else 15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15577$as_echo "no" >&6; } 15578fi 15579 15580 rm -f messages.po 15581 15582 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 15583 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 15584 *) XGETTEXT_015=$XGETTEXT ;; 15585 esac 15586 15587 15588 15589# Prepare PATH_SEPARATOR. 15590# The user is always right. 15591if test "${PATH_SEPARATOR+set}" != set; then 15592 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 15593 # contains only /bin. Note that ksh looks also at the FPATH variable, 15594 # so we have to set that as well for the test. 15595 PATH_SEPARATOR=: 15596 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15597 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15598 || PATH_SEPARATOR=';' 15599 } 15600fi 15601 15602# Find out how to test for executable files. Don't use a zero-byte file, 15603# as systems may use methods other than mode bits to determine executability. 15604cat >conf$$.file <<_ASEOF 15605#! /bin/sh 15606exit 0 15607_ASEOF 15608chmod +x conf$$.file 15609if test -x conf$$.file >/dev/null 2>&1; then 15610 ac_executable_p="test -x" 15611else 15612 ac_executable_p="test -f" 15613fi 15614rm -f conf$$.file 15615 15616# Extract the first word of "msgmerge", so it can be a program name with args. 15617set dummy msgmerge; ac_word=$2 15618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15619$as_echo_n "checking for $ac_word... " >&6; } 15620if ${ac_cv_path_MSGMERGE+:} false; then : 15621 $as_echo_n "(cached) " >&6 15622else 15623 case "$MSGMERGE" in 15624 [\\/]* | ?:[\\/]*) 15625 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 15626 ;; 15627 *) 15628 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 15629 for ac_dir in $PATH; do 15630 IFS="$ac_save_IFS" 15631 test -z "$ac_dir" && ac_dir=. 15632 for ac_exec_ext in '' $ac_executable_extensions; do 15633 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 15634 echo "$as_me: trying $ac_dir/$ac_word..." >&5 15635 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 15636 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 15637 break 2 15638 fi 15639 fi 15640 done 15641 done 15642 IFS="$ac_save_IFS" 15643 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 15644 ;; 15645esac 15646fi 15647MSGMERGE="$ac_cv_path_MSGMERGE" 15648if test "$MSGMERGE" != ":"; then 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 15650$as_echo "$MSGMERGE" >&6; } 15651else 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15653$as_echo "no" >&6; } 15654fi 15655 15656 15657 test -n "$localedir" || localedir='${datadir}/locale' 15658 15659 15660 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 15661 15662 15663 ac_config_commands="$ac_config_commands po-directories" 15664 15665 15666 15667 if test "X$prefix" = "XNONE"; then 15668 acl_final_prefix="$ac_default_prefix" 15669 else 15670 acl_final_prefix="$prefix" 15671 fi 15672 if test "X$exec_prefix" = "XNONE"; then 15673 acl_final_exec_prefix='${prefix}' 15674 else 15675 acl_final_exec_prefix="$exec_prefix" 15676 fi 15677 acl_save_prefix="$prefix" 15678 prefix="$acl_final_prefix" 15679 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 15680 prefix="$acl_save_prefix" 15681 15682 15683 15684# Check whether --with-gnu-ld was given. 15685if test "${with_gnu_ld+set}" = set; then : 15686 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 15687else 15688 with_gnu_ld=no 15689fi 15690 15691# Prepare PATH_SEPARATOR. 15692# The user is always right. 15693if test "${PATH_SEPARATOR+set}" != set; then 15694 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 15695 # contains only /bin. Note that ksh looks also at the FPATH variable, 15696 # so we have to set that as well for the test. 15697 PATH_SEPARATOR=: 15698 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15699 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 15700 || PATH_SEPARATOR=';' 15701 } 15702fi 15703 15704ac_prog=ld 15705if test "$GCC" = yes; then 15706 # Check if gcc -print-prog-name=ld gives a path. 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15708$as_echo_n "checking for ld used by $CC... " >&6; } 15709 case $host in 15710 *-*-mingw*) 15711 # gcc leaves a trailing carriage return which upsets mingw 15712 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15713 *) 15714 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15715 esac 15716 case $ac_prog in 15717 # Accept absolute paths. 15718 [\\/]* | ?:[\\/]*) 15719 re_direlt='/[^/][^/]*/\.\./' 15720 # Canonicalize the pathname of ld 15721 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 15722 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 15723 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 15724 done 15725 test -z "$LD" && LD="$ac_prog" 15726 ;; 15727 "") 15728 # If it fails, then pretend we aren't using GCC. 15729 ac_prog=ld 15730 ;; 15731 *) 15732 # If it is relative, then search for the first ld in PATH. 15733 with_gnu_ld=unknown 15734 ;; 15735 esac 15736elif test "$with_gnu_ld" = yes; then 15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15738$as_echo_n "checking for GNU ld... " >&6; } 15739else 15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15741$as_echo_n "checking for non-GNU ld... " >&6; } 15742fi 15743if ${acl_cv_path_LD+:} false; then : 15744 $as_echo_n "(cached) " >&6 15745else 15746 if test -z "$LD"; then 15747 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15748 for ac_dir in $PATH; do 15749 IFS="$acl_save_ifs" 15750 test -z "$ac_dir" && ac_dir=. 15751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15752 acl_cv_path_LD="$ac_dir/$ac_prog" 15753 # Check to see if the program is GNU ld. I'd rather use --version, 15754 # but apparently some variants of GNU ld only accept -v. 15755 # Break only if it was the GNU/non-GNU ld that we prefer. 15756 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 15757 *GNU* | *'with BFD'*) 15758 test "$with_gnu_ld" != no && break 15759 ;; 15760 *) 15761 test "$with_gnu_ld" != yes && break 15762 ;; 15763 esac 15764 fi 15765 done 15766 IFS="$acl_save_ifs" 15767else 15768 acl_cv_path_LD="$LD" # Let the user override the test with a path. 15769fi 15770fi 15771 15772LD="$acl_cv_path_LD" 15773if test -n "$LD"; then 15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15775$as_echo "$LD" >&6; } 15776else 15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15778$as_echo "no" >&6; } 15779fi 15780test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15782$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15783if ${acl_cv_prog_gnu_ld+:} false; then : 15784 $as_echo_n "(cached) " >&6 15785else 15786 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15787case `$LD -v 2>&1 </dev/null` in 15788*GNU* | *'with BFD'*) 15789 acl_cv_prog_gnu_ld=yes 15790 ;; 15791*) 15792 acl_cv_prog_gnu_ld=no 15793 ;; 15794esac 15795fi 15796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 15797$as_echo "$acl_cv_prog_gnu_ld" >&6; } 15798with_gnu_ld=$acl_cv_prog_gnu_ld 15799 15800 15801 15802 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 15804$as_echo_n "checking for shared library run path origin... " >&6; } 15805if ${acl_cv_rpath+:} false; then : 15806 $as_echo_n "(cached) " >&6 15807else 15808 15809 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 15810 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 15811 . ./conftest.sh 15812 rm -f ./conftest.sh 15813 acl_cv_rpath=done 15814 15815fi 15816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 15817$as_echo "$acl_cv_rpath" >&6; } 15818 wl="$acl_cv_wl" 15819 acl_libext="$acl_cv_libext" 15820 acl_shlibext="$acl_cv_shlibext" 15821 acl_libname_spec="$acl_cv_libname_spec" 15822 acl_library_names_spec="$acl_cv_library_names_spec" 15823 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 15824 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 15825 acl_hardcode_direct="$acl_cv_hardcode_direct" 15826 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 15827 # Check whether --enable-rpath was given. 15828if test "${enable_rpath+set}" = set; then : 15829 enableval=$enable_rpath; : 15830else 15831 enable_rpath=yes 15832fi 15833 15834 15835 15836 15837 acl_libdirstem=lib 15838 acl_libdirstem2= 15839 case "$host_os" in 15840 solaris*) 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 15842$as_echo_n "checking for 64-bit host... " >&6; } 15843if ${gl_cv_solaris_64bit+:} false; then : 15844 $as_echo_n "(cached) " >&6 15845else 15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15847/* end confdefs.h. */ 15848 15849#ifdef _LP64 15850sixtyfour bits 15851#endif 15852 15853_ACEOF 15854if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15855 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 15856 gl_cv_solaris_64bit=yes 15857else 15858 gl_cv_solaris_64bit=no 15859fi 15860rm -f conftest* 15861 15862 15863fi 15864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 15865$as_echo "$gl_cv_solaris_64bit" >&6; } 15866 if test $gl_cv_solaris_64bit = yes; then 15867 acl_libdirstem=lib/64 15868 case "$host_cpu" in 15869 sparc*) acl_libdirstem2=lib/sparcv9 ;; 15870 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 15871 esac 15872 fi 15873 ;; 15874 *) 15875 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 15876 if test -n "$searchpath"; then 15877 acl_save_IFS="${IFS= }"; IFS=":" 15878 for searchdir in $searchpath; do 15879 if test -d "$searchdir"; then 15880 case "$searchdir" in 15881 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 15882 */../ | */.. ) 15883 # Better ignore directories of this form. They are misleading. 15884 ;; 15885 *) searchdir=`cd "$searchdir" && pwd` 15886 case "$searchdir" in 15887 */lib64 ) acl_libdirstem=lib64 ;; 15888 esac ;; 15889 esac 15890 fi 15891 done 15892 IFS="$acl_save_IFS" 15893 fi 15894 ;; 15895 esac 15896 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 use_additional=yes 15910 15911 acl_save_prefix="$prefix" 15912 prefix="$acl_final_prefix" 15913 acl_save_exec_prefix="$exec_prefix" 15914 exec_prefix="$acl_final_exec_prefix" 15915 15916 eval additional_includedir=\"$includedir\" 15917 eval additional_libdir=\"$libdir\" 15918 15919 exec_prefix="$acl_save_exec_prefix" 15920 prefix="$acl_save_prefix" 15921 15922 15923# Check whether --with-libiconv-prefix was given. 15924if test "${with_libiconv_prefix+set}" = set; then : 15925 withval=$with_libiconv_prefix; 15926 if test "X$withval" = "Xno"; then 15927 use_additional=no 15928 else 15929 if test "X$withval" = "X"; then 15930 15931 acl_save_prefix="$prefix" 15932 prefix="$acl_final_prefix" 15933 acl_save_exec_prefix="$exec_prefix" 15934 exec_prefix="$acl_final_exec_prefix" 15935 15936 eval additional_includedir=\"$includedir\" 15937 eval additional_libdir=\"$libdir\" 15938 15939 exec_prefix="$acl_save_exec_prefix" 15940 prefix="$acl_save_prefix" 15941 15942 else 15943 additional_includedir="$withval/include" 15944 additional_libdir="$withval/$acl_libdirstem" 15945 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 15946 && ! test -d "$withval/$acl_libdirstem"; then 15947 additional_libdir="$withval/$acl_libdirstem2" 15948 fi 15949 fi 15950 fi 15951 15952fi 15953 15954 LIBICONV= 15955 LTLIBICONV= 15956 INCICONV= 15957 LIBICONV_PREFIX= 15958 HAVE_LIBICONV= 15959 rpathdirs= 15960 ltrpathdirs= 15961 names_already_handled= 15962 names_next_round='iconv ' 15963 while test -n "$names_next_round"; do 15964 names_this_round="$names_next_round" 15965 names_next_round= 15966 for name in $names_this_round; do 15967 already_handled= 15968 for n in $names_already_handled; do 15969 if test "$n" = "$name"; then 15970 already_handled=yes 15971 break 15972 fi 15973 done 15974 if test -z "$already_handled"; then 15975 names_already_handled="$names_already_handled $name" 15976 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 15977 eval value=\"\$HAVE_LIB$uppername\" 15978 if test -n "$value"; then 15979 if test "$value" = yes; then 15980 eval value=\"\$LIB$uppername\" 15981 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 15982 eval value=\"\$LTLIB$uppername\" 15983 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 15984 else 15985 : 15986 fi 15987 else 15988 found_dir= 15989 found_la= 15990 found_so= 15991 found_a= 15992 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 15993 if test -n "$acl_shlibext"; then 15994 shrext=".$acl_shlibext" # typically: shrext=.so 15995 else 15996 shrext= 15997 fi 15998 if test $use_additional = yes; then 15999 dir="$additional_libdir" 16000 if test -n "$acl_shlibext"; then 16001 if test -f "$dir/$libname$shrext"; then 16002 found_dir="$dir" 16003 found_so="$dir/$libname$shrext" 16004 else 16005 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16006 ver=`(cd "$dir" && \ 16007 for f in "$libname$shrext".*; do echo "$f"; done \ 16008 | sed -e "s,^$libname$shrext\\\\.,," \ 16009 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16010 | sed 1q ) 2>/dev/null` 16011 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 16012 found_dir="$dir" 16013 found_so="$dir/$libname$shrext.$ver" 16014 fi 16015 else 16016 eval library_names=\"$acl_library_names_spec\" 16017 for f in $library_names; do 16018 if test -f "$dir/$f"; then 16019 found_dir="$dir" 16020 found_so="$dir/$f" 16021 break 16022 fi 16023 done 16024 fi 16025 fi 16026 fi 16027 if test "X$found_dir" = "X"; then 16028 if test -f "$dir/$libname.$acl_libext"; then 16029 found_dir="$dir" 16030 found_a="$dir/$libname.$acl_libext" 16031 fi 16032 fi 16033 if test "X$found_dir" != "X"; then 16034 if test -f "$dir/$libname.la"; then 16035 found_la="$dir/$libname.la" 16036 fi 16037 fi 16038 fi 16039 if test "X$found_dir" = "X"; then 16040 for x in $LDFLAGS $LTLIBICONV; do 16041 16042 acl_save_prefix="$prefix" 16043 prefix="$acl_final_prefix" 16044 acl_save_exec_prefix="$exec_prefix" 16045 exec_prefix="$acl_final_exec_prefix" 16046 eval x=\"$x\" 16047 exec_prefix="$acl_save_exec_prefix" 16048 prefix="$acl_save_prefix" 16049 16050 case "$x" in 16051 -L*) 16052 dir=`echo "X$x" | sed -e 's/^X-L//'` 16053 if test -n "$acl_shlibext"; then 16054 if test -f "$dir/$libname$shrext"; then 16055 found_dir="$dir" 16056 found_so="$dir/$libname$shrext" 16057 else 16058 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16059 ver=`(cd "$dir" && \ 16060 for f in "$libname$shrext".*; do echo "$f"; done \ 16061 | sed -e "s,^$libname$shrext\\\\.,," \ 16062 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16063 | sed 1q ) 2>/dev/null` 16064 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 16065 found_dir="$dir" 16066 found_so="$dir/$libname$shrext.$ver" 16067 fi 16068 else 16069 eval library_names=\"$acl_library_names_spec\" 16070 for f in $library_names; do 16071 if test -f "$dir/$f"; then 16072 found_dir="$dir" 16073 found_so="$dir/$f" 16074 break 16075 fi 16076 done 16077 fi 16078 fi 16079 fi 16080 if test "X$found_dir" = "X"; then 16081 if test -f "$dir/$libname.$acl_libext"; then 16082 found_dir="$dir" 16083 found_a="$dir/$libname.$acl_libext" 16084 fi 16085 fi 16086 if test "X$found_dir" != "X"; then 16087 if test -f "$dir/$libname.la"; then 16088 found_la="$dir/$libname.la" 16089 fi 16090 fi 16091 ;; 16092 esac 16093 if test "X$found_dir" != "X"; then 16094 break 16095 fi 16096 done 16097 fi 16098 if test "X$found_dir" != "X"; then 16099 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 16100 if test "X$found_so" != "X"; then 16101 if test "$enable_rpath" = no \ 16102 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 16103 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 16104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 16105 else 16106 haveit= 16107 for x in $ltrpathdirs; do 16108 if test "X$x" = "X$found_dir"; then 16109 haveit=yes 16110 break 16111 fi 16112 done 16113 if test -z "$haveit"; then 16114 ltrpathdirs="$ltrpathdirs $found_dir" 16115 fi 16116 if test "$acl_hardcode_direct" = yes; then 16117 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 16118 else 16119 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 16120 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 16121 haveit= 16122 for x in $rpathdirs; do 16123 if test "X$x" = "X$found_dir"; then 16124 haveit=yes 16125 break 16126 fi 16127 done 16128 if test -z "$haveit"; then 16129 rpathdirs="$rpathdirs $found_dir" 16130 fi 16131 else 16132 haveit= 16133 for x in $LDFLAGS $LIBICONV; do 16134 16135 acl_save_prefix="$prefix" 16136 prefix="$acl_final_prefix" 16137 acl_save_exec_prefix="$exec_prefix" 16138 exec_prefix="$acl_final_exec_prefix" 16139 eval x=\"$x\" 16140 exec_prefix="$acl_save_exec_prefix" 16141 prefix="$acl_save_prefix" 16142 16143 if test "X$x" = "X-L$found_dir"; then 16144 haveit=yes 16145 break 16146 fi 16147 done 16148 if test -z "$haveit"; then 16149 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 16150 fi 16151 if test "$acl_hardcode_minus_L" != no; then 16152 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 16153 else 16154 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 16155 fi 16156 fi 16157 fi 16158 fi 16159 else 16160 if test "X$found_a" != "X"; then 16161 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 16162 else 16163 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 16164 fi 16165 fi 16166 additional_includedir= 16167 case "$found_dir" in 16168 */$acl_libdirstem | */$acl_libdirstem/) 16169 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 16170 if test "$name" = 'iconv'; then 16171 LIBICONV_PREFIX="$basedir" 16172 fi 16173 additional_includedir="$basedir/include" 16174 ;; 16175 */$acl_libdirstem2 | */$acl_libdirstem2/) 16176 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 16177 if test "$name" = 'iconv'; then 16178 LIBICONV_PREFIX="$basedir" 16179 fi 16180 additional_includedir="$basedir/include" 16181 ;; 16182 esac 16183 if test "X$additional_includedir" != "X"; then 16184 if test "X$additional_includedir" != "X/usr/include"; then 16185 haveit= 16186 if test "X$additional_includedir" = "X/usr/local/include"; then 16187 if test -n "$GCC"; then 16188 case $host_os in 16189 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16190 esac 16191 fi 16192 fi 16193 if test -z "$haveit"; then 16194 for x in $CPPFLAGS $INCICONV; do 16195 16196 acl_save_prefix="$prefix" 16197 prefix="$acl_final_prefix" 16198 acl_save_exec_prefix="$exec_prefix" 16199 exec_prefix="$acl_final_exec_prefix" 16200 eval x=\"$x\" 16201 exec_prefix="$acl_save_exec_prefix" 16202 prefix="$acl_save_prefix" 16203 16204 if test "X$x" = "X-I$additional_includedir"; then 16205 haveit=yes 16206 break 16207 fi 16208 done 16209 if test -z "$haveit"; then 16210 if test -d "$additional_includedir"; then 16211 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 16212 fi 16213 fi 16214 fi 16215 fi 16216 fi 16217 if test -n "$found_la"; then 16218 save_libdir="$libdir" 16219 case "$found_la" in 16220 */* | *\\*) . "$found_la" ;; 16221 *) . "./$found_la" ;; 16222 esac 16223 libdir="$save_libdir" 16224 for dep in $dependency_libs; do 16225 case "$dep" in 16226 -L*) 16227 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 16228 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 16229 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 16230 haveit= 16231 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 16232 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 16233 if test -n "$GCC"; then 16234 case $host_os in 16235 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16236 esac 16237 fi 16238 fi 16239 if test -z "$haveit"; then 16240 haveit= 16241 for x in $LDFLAGS $LIBICONV; do 16242 16243 acl_save_prefix="$prefix" 16244 prefix="$acl_final_prefix" 16245 acl_save_exec_prefix="$exec_prefix" 16246 exec_prefix="$acl_final_exec_prefix" 16247 eval x=\"$x\" 16248 exec_prefix="$acl_save_exec_prefix" 16249 prefix="$acl_save_prefix" 16250 16251 if test "X$x" = "X-L$additional_libdir"; then 16252 haveit=yes 16253 break 16254 fi 16255 done 16256 if test -z "$haveit"; then 16257 if test -d "$additional_libdir"; then 16258 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 16259 fi 16260 fi 16261 haveit= 16262 for x in $LDFLAGS $LTLIBICONV; do 16263 16264 acl_save_prefix="$prefix" 16265 prefix="$acl_final_prefix" 16266 acl_save_exec_prefix="$exec_prefix" 16267 exec_prefix="$acl_final_exec_prefix" 16268 eval x=\"$x\" 16269 exec_prefix="$acl_save_exec_prefix" 16270 prefix="$acl_save_prefix" 16271 16272 if test "X$x" = "X-L$additional_libdir"; then 16273 haveit=yes 16274 break 16275 fi 16276 done 16277 if test -z "$haveit"; then 16278 if test -d "$additional_libdir"; then 16279 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 16280 fi 16281 fi 16282 fi 16283 fi 16284 ;; 16285 -R*) 16286 dir=`echo "X$dep" | sed -e 's/^X-R//'` 16287 if test "$enable_rpath" != no; then 16288 haveit= 16289 for x in $rpathdirs; do 16290 if test "X$x" = "X$dir"; then 16291 haveit=yes 16292 break 16293 fi 16294 done 16295 if test -z "$haveit"; then 16296 rpathdirs="$rpathdirs $dir" 16297 fi 16298 haveit= 16299 for x in $ltrpathdirs; do 16300 if test "X$x" = "X$dir"; then 16301 haveit=yes 16302 break 16303 fi 16304 done 16305 if test -z "$haveit"; then 16306 ltrpathdirs="$ltrpathdirs $dir" 16307 fi 16308 fi 16309 ;; 16310 -l*) 16311 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 16312 ;; 16313 *.la) 16314 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 16315 ;; 16316 *) 16317 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 16318 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 16319 ;; 16320 esac 16321 done 16322 fi 16323 else 16324 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 16325 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 16326 fi 16327 fi 16328 fi 16329 done 16330 done 16331 if test "X$rpathdirs" != "X"; then 16332 if test -n "$acl_hardcode_libdir_separator"; then 16333 alldirs= 16334 for found_dir in $rpathdirs; do 16335 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 16336 done 16337 acl_save_libdir="$libdir" 16338 libdir="$alldirs" 16339 eval flag=\"$acl_hardcode_libdir_flag_spec\" 16340 libdir="$acl_save_libdir" 16341 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 16342 else 16343 for found_dir in $rpathdirs; do 16344 acl_save_libdir="$libdir" 16345 libdir="$found_dir" 16346 eval flag=\"$acl_hardcode_libdir_flag_spec\" 16347 libdir="$acl_save_libdir" 16348 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 16349 done 16350 fi 16351 fi 16352 if test "X$ltrpathdirs" != "X"; then 16353 for found_dir in $ltrpathdirs; do 16354 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 16355 done 16356 fi 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 16389$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 16390if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 16391 $as_echo_n "(cached) " >&6 16392else 16393 gt_save_LIBS="$LIBS" 16394 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16396/* end confdefs.h. */ 16397#include <CoreFoundation/CFPreferences.h> 16398int 16399main () 16400{ 16401CFPreferencesCopyAppValue(NULL, NULL) 16402 ; 16403 return 0; 16404} 16405_ACEOF 16406if ac_fn_c_try_link "$LINENO"; then : 16407 gt_cv_func_CFPreferencesCopyAppValue=yes 16408else 16409 gt_cv_func_CFPreferencesCopyAppValue=no 16410fi 16411rm -f core conftest.err conftest.$ac_objext \ 16412 conftest$ac_exeext conftest.$ac_ext 16413 LIBS="$gt_save_LIBS" 16414fi 16415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 16416$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 16417 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 16418 16419$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 16420 16421 fi 16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 16423$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 16424if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 16425 $as_echo_n "(cached) " >&6 16426else 16427 gt_save_LIBS="$LIBS" 16428 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16430/* end confdefs.h. */ 16431#include <CoreFoundation/CFLocale.h> 16432int 16433main () 16434{ 16435CFLocaleCopyCurrent(); 16436 ; 16437 return 0; 16438} 16439_ACEOF 16440if ac_fn_c_try_link "$LINENO"; then : 16441 gt_cv_func_CFLocaleCopyCurrent=yes 16442else 16443 gt_cv_func_CFLocaleCopyCurrent=no 16444fi 16445rm -f core conftest.err conftest.$ac_objext \ 16446 conftest$ac_exeext conftest.$ac_ext 16447 LIBS="$gt_save_LIBS" 16448fi 16449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 16450$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 16451 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 16452 16453$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 16454 16455 fi 16456 INTL_MACOSX_LIBS= 16457 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 16458 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 16459 fi 16460 16461 16462 16463 16464 16465 16466 LIBINTL= 16467 LTLIBINTL= 16468 POSUB= 16469 16470 case " $gt_needs " in 16471 *" need-formatstring-macros "*) gt_api_version=3 ;; 16472 *" need-ngettext "*) gt_api_version=2 ;; 16473 *) gt_api_version=1 ;; 16474 esac 16475 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 16476 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 16477 16478 if test "$USE_NLS" = "yes"; then 16479 gt_use_preinstalled_gnugettext=no 16480 16481 16482 if test $gt_api_version -ge 3; then 16483 gt_revision_test_code=' 16484#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 16485#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 16486#endif 16487typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 16488' 16489 else 16490 gt_revision_test_code= 16491 fi 16492 if test $gt_api_version -ge 2; then 16493 gt_expression_test_code=' + * ngettext ("", "", 0)' 16494 else 16495 gt_expression_test_code= 16496 fi 16497 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 16499$as_echo_n "checking for GNU gettext in libc... " >&6; } 16500if eval \${$gt_func_gnugettext_libc+:} false; then : 16501 $as_echo_n "(cached) " >&6 16502else 16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16504/* end confdefs.h. */ 16505 16506#include <libintl.h> 16507$gt_revision_test_code 16508extern int _nl_msg_cat_cntr; 16509extern int *_nl_domain_bindings; 16510 16511int 16512main () 16513{ 16514 16515bindtextdomain ("", ""); 16516return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 16517 16518 ; 16519 return 0; 16520} 16521_ACEOF 16522if ac_fn_c_try_link "$LINENO"; then : 16523 eval "$gt_func_gnugettext_libc=yes" 16524else 16525 eval "$gt_func_gnugettext_libc=no" 16526fi 16527rm -f core conftest.err conftest.$ac_objext \ 16528 conftest$ac_exeext conftest.$ac_ext 16529fi 16530eval ac_res=\$$gt_func_gnugettext_libc 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16532$as_echo "$ac_res" >&6; } 16533 16534 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 16535 16536 16537 16538 16539 16540 am_save_CPPFLAGS="$CPPFLAGS" 16541 16542 for element in $INCICONV; do 16543 haveit= 16544 for x in $CPPFLAGS; do 16545 16546 acl_save_prefix="$prefix" 16547 prefix="$acl_final_prefix" 16548 acl_save_exec_prefix="$exec_prefix" 16549 exec_prefix="$acl_final_exec_prefix" 16550 eval x=\"$x\" 16551 exec_prefix="$acl_save_exec_prefix" 16552 prefix="$acl_save_prefix" 16553 16554 if test "X$x" = "X$element"; then 16555 haveit=yes 16556 break 16557 fi 16558 done 16559 if test -z "$haveit"; then 16560 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 16561 fi 16562 done 16563 16564 16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 16566$as_echo_n "checking for iconv... " >&6; } 16567if ${am_cv_func_iconv+:} false; then : 16568 $as_echo_n "(cached) " >&6 16569else 16570 16571 am_cv_func_iconv="no, consider installing GNU libiconv" 16572 am_cv_lib_iconv=no 16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16574/* end confdefs.h. */ 16575 16576#include <stdlib.h> 16577#include <iconv.h> 16578 16579int 16580main () 16581{ 16582iconv_t cd = iconv_open("",""); 16583 iconv(cd,NULL,NULL,NULL,NULL); 16584 iconv_close(cd); 16585 ; 16586 return 0; 16587} 16588_ACEOF 16589if ac_fn_c_try_link "$LINENO"; then : 16590 am_cv_func_iconv=yes 16591fi 16592rm -f core conftest.err conftest.$ac_objext \ 16593 conftest$ac_exeext conftest.$ac_ext 16594 if test "$am_cv_func_iconv" != yes; then 16595 am_save_LIBS="$LIBS" 16596 LIBS="$LIBS $LIBICONV" 16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16598/* end confdefs.h. */ 16599 16600#include <stdlib.h> 16601#include <iconv.h> 16602 16603int 16604main () 16605{ 16606iconv_t cd = iconv_open("",""); 16607 iconv(cd,NULL,NULL,NULL,NULL); 16608 iconv_close(cd); 16609 ; 16610 return 0; 16611} 16612_ACEOF 16613if ac_fn_c_try_link "$LINENO"; then : 16614 am_cv_lib_iconv=yes 16615 am_cv_func_iconv=yes 16616fi 16617rm -f core conftest.err conftest.$ac_objext \ 16618 conftest$ac_exeext conftest.$ac_ext 16619 LIBS="$am_save_LIBS" 16620 fi 16621 16622fi 16623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 16624$as_echo "$am_cv_func_iconv" >&6; } 16625 if test "$am_cv_func_iconv" = yes; then 16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 16627$as_echo_n "checking for working iconv... " >&6; } 16628if ${am_cv_func_iconv_works+:} false; then : 16629 $as_echo_n "(cached) " >&6 16630else 16631 16632 am_save_LIBS="$LIBS" 16633 if test $am_cv_lib_iconv = yes; then 16634 LIBS="$LIBS $LIBICONV" 16635 fi 16636 if test "$cross_compiling" = yes; then : 16637 16638 case "$host_os" in 16639 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 16640 *) am_cv_func_iconv_works="guessing yes" ;; 16641 esac 16642 16643else 16644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16645/* end confdefs.h. */ 16646 16647#include <iconv.h> 16648#include <string.h> 16649int main () 16650{ 16651 int result = 0; 16652 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 16653 returns. */ 16654 { 16655 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 16656 if (cd_utf8_to_88591 != (iconv_t)(-1)) 16657 { 16658 static const char input[] = "\342\202\254"; /* EURO SIGN */ 16659 char buf[10]; 16660 const char *inptr = input; 16661 size_t inbytesleft = strlen (input); 16662 char *outptr = buf; 16663 size_t outbytesleft = sizeof (buf); 16664 size_t res = iconv (cd_utf8_to_88591, 16665 (char **) &inptr, &inbytesleft, 16666 &outptr, &outbytesleft); 16667 if (res == 0) 16668 result |= 1; 16669 iconv_close (cd_utf8_to_88591); 16670 } 16671 } 16672 /* Test against Solaris 10 bug: Failures are not distinguishable from 16673 successful returns. */ 16674 { 16675 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 16676 if (cd_ascii_to_88591 != (iconv_t)(-1)) 16677 { 16678 static const char input[] = "\263"; 16679 char buf[10]; 16680 const char *inptr = input; 16681 size_t inbytesleft = strlen (input); 16682 char *outptr = buf; 16683 size_t outbytesleft = sizeof (buf); 16684 size_t res = iconv (cd_ascii_to_88591, 16685 (char **) &inptr, &inbytesleft, 16686 &outptr, &outbytesleft); 16687 if (res == 0) 16688 result |= 2; 16689 iconv_close (cd_ascii_to_88591); 16690 } 16691 } 16692 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 16693 { 16694 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 16695 if (cd_88591_to_utf8 != (iconv_t)(-1)) 16696 { 16697 static const char input[] = "\304"; 16698 static char buf[2] = { (char)0xDE, (char)0xAD }; 16699 const char *inptr = input; 16700 size_t inbytesleft = 1; 16701 char *outptr = buf; 16702 size_t outbytesleft = 1; 16703 size_t res = iconv (cd_88591_to_utf8, 16704 (char **) &inptr, &inbytesleft, 16705 &outptr, &outbytesleft); 16706 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 16707 result |= 4; 16708 iconv_close (cd_88591_to_utf8); 16709 } 16710 } 16711#if 0 /* This bug could be worked around by the caller. */ 16712 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 16713 { 16714 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 16715 if (cd_88591_to_utf8 != (iconv_t)(-1)) 16716 { 16717 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 16718 char buf[50]; 16719 const char *inptr = input; 16720 size_t inbytesleft = strlen (input); 16721 char *outptr = buf; 16722 size_t outbytesleft = sizeof (buf); 16723 size_t res = iconv (cd_88591_to_utf8, 16724 (char **) &inptr, &inbytesleft, 16725 &outptr, &outbytesleft); 16726 if ((int)res > 0) 16727 result |= 8; 16728 iconv_close (cd_88591_to_utf8); 16729 } 16730 } 16731#endif 16732 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 16733 provided. */ 16734 if (/* Try standardized names. */ 16735 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 16736 /* Try IRIX, OSF/1 names. */ 16737 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 16738 /* Try AIX names. */ 16739 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 16740 /* Try HP-UX names. */ 16741 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 16742 result |= 16; 16743 return result; 16744} 16745_ACEOF 16746if ac_fn_c_try_run "$LINENO"; then : 16747 am_cv_func_iconv_works=yes 16748else 16749 am_cv_func_iconv_works=no 16750fi 16751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16752 conftest.$ac_objext conftest.beam conftest.$ac_ext 16753fi 16754 16755 LIBS="$am_save_LIBS" 16756 16757fi 16758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 16759$as_echo "$am_cv_func_iconv_works" >&6; } 16760 case "$am_cv_func_iconv_works" in 16761 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 16762 *) am_func_iconv=yes ;; 16763 esac 16764 else 16765 am_func_iconv=no am_cv_lib_iconv=no 16766 fi 16767 if test "$am_func_iconv" = yes; then 16768 16769$as_echo "#define HAVE_ICONV 1" >>confdefs.h 16770 16771 fi 16772 if test "$am_cv_lib_iconv" = yes; then 16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 16774$as_echo_n "checking how to link with libiconv... " >&6; } 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 16776$as_echo "$LIBICONV" >&6; } 16777 else 16778 CPPFLAGS="$am_save_CPPFLAGS" 16779 LIBICONV= 16780 LTLIBICONV= 16781 fi 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 use_additional=yes 16794 16795 acl_save_prefix="$prefix" 16796 prefix="$acl_final_prefix" 16797 acl_save_exec_prefix="$exec_prefix" 16798 exec_prefix="$acl_final_exec_prefix" 16799 16800 eval additional_includedir=\"$includedir\" 16801 eval additional_libdir=\"$libdir\" 16802 16803 exec_prefix="$acl_save_exec_prefix" 16804 prefix="$acl_save_prefix" 16805 16806 16807# Check whether --with-libintl-prefix was given. 16808if test "${with_libintl_prefix+set}" = set; then : 16809 withval=$with_libintl_prefix; 16810 if test "X$withval" = "Xno"; then 16811 use_additional=no 16812 else 16813 if test "X$withval" = "X"; then 16814 16815 acl_save_prefix="$prefix" 16816 prefix="$acl_final_prefix" 16817 acl_save_exec_prefix="$exec_prefix" 16818 exec_prefix="$acl_final_exec_prefix" 16819 16820 eval additional_includedir=\"$includedir\" 16821 eval additional_libdir=\"$libdir\" 16822 16823 exec_prefix="$acl_save_exec_prefix" 16824 prefix="$acl_save_prefix" 16825 16826 else 16827 additional_includedir="$withval/include" 16828 additional_libdir="$withval/$acl_libdirstem" 16829 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 16830 && ! test -d "$withval/$acl_libdirstem"; then 16831 additional_libdir="$withval/$acl_libdirstem2" 16832 fi 16833 fi 16834 fi 16835 16836fi 16837 16838 LIBINTL= 16839 LTLIBINTL= 16840 INCINTL= 16841 LIBINTL_PREFIX= 16842 HAVE_LIBINTL= 16843 rpathdirs= 16844 ltrpathdirs= 16845 names_already_handled= 16846 names_next_round='intl ' 16847 while test -n "$names_next_round"; do 16848 names_this_round="$names_next_round" 16849 names_next_round= 16850 for name in $names_this_round; do 16851 already_handled= 16852 for n in $names_already_handled; do 16853 if test "$n" = "$name"; then 16854 already_handled=yes 16855 break 16856 fi 16857 done 16858 if test -z "$already_handled"; then 16859 names_already_handled="$names_already_handled $name" 16860 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 16861 eval value=\"\$HAVE_LIB$uppername\" 16862 if test -n "$value"; then 16863 if test "$value" = yes; then 16864 eval value=\"\$LIB$uppername\" 16865 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 16866 eval value=\"\$LTLIB$uppername\" 16867 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 16868 else 16869 : 16870 fi 16871 else 16872 found_dir= 16873 found_la= 16874 found_so= 16875 found_a= 16876 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 16877 if test -n "$acl_shlibext"; then 16878 shrext=".$acl_shlibext" # typically: shrext=.so 16879 else 16880 shrext= 16881 fi 16882 if test $use_additional = yes; then 16883 dir="$additional_libdir" 16884 if test -n "$acl_shlibext"; then 16885 if test -f "$dir/$libname$shrext"; then 16886 found_dir="$dir" 16887 found_so="$dir/$libname$shrext" 16888 else 16889 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16890 ver=`(cd "$dir" && \ 16891 for f in "$libname$shrext".*; do echo "$f"; done \ 16892 | sed -e "s,^$libname$shrext\\\\.,," \ 16893 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16894 | sed 1q ) 2>/dev/null` 16895 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 16896 found_dir="$dir" 16897 found_so="$dir/$libname$shrext.$ver" 16898 fi 16899 else 16900 eval library_names=\"$acl_library_names_spec\" 16901 for f in $library_names; do 16902 if test -f "$dir/$f"; then 16903 found_dir="$dir" 16904 found_so="$dir/$f" 16905 break 16906 fi 16907 done 16908 fi 16909 fi 16910 fi 16911 if test "X$found_dir" = "X"; then 16912 if test -f "$dir/$libname.$acl_libext"; then 16913 found_dir="$dir" 16914 found_a="$dir/$libname.$acl_libext" 16915 fi 16916 fi 16917 if test "X$found_dir" != "X"; then 16918 if test -f "$dir/$libname.la"; then 16919 found_la="$dir/$libname.la" 16920 fi 16921 fi 16922 fi 16923 if test "X$found_dir" = "X"; then 16924 for x in $LDFLAGS $LTLIBINTL; do 16925 16926 acl_save_prefix="$prefix" 16927 prefix="$acl_final_prefix" 16928 acl_save_exec_prefix="$exec_prefix" 16929 exec_prefix="$acl_final_exec_prefix" 16930 eval x=\"$x\" 16931 exec_prefix="$acl_save_exec_prefix" 16932 prefix="$acl_save_prefix" 16933 16934 case "$x" in 16935 -L*) 16936 dir=`echo "X$x" | sed -e 's/^X-L//'` 16937 if test -n "$acl_shlibext"; then 16938 if test -f "$dir/$libname$shrext"; then 16939 found_dir="$dir" 16940 found_so="$dir/$libname$shrext" 16941 else 16942 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16943 ver=`(cd "$dir" && \ 16944 for f in "$libname$shrext".*; do echo "$f"; done \ 16945 | sed -e "s,^$libname$shrext\\\\.,," \ 16946 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16947 | sed 1q ) 2>/dev/null` 16948 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 16949 found_dir="$dir" 16950 found_so="$dir/$libname$shrext.$ver" 16951 fi 16952 else 16953 eval library_names=\"$acl_library_names_spec\" 16954 for f in $library_names; do 16955 if test -f "$dir/$f"; then 16956 found_dir="$dir" 16957 found_so="$dir/$f" 16958 break 16959 fi 16960 done 16961 fi 16962 fi 16963 fi 16964 if test "X$found_dir" = "X"; then 16965 if test -f "$dir/$libname.$acl_libext"; then 16966 found_dir="$dir" 16967 found_a="$dir/$libname.$acl_libext" 16968 fi 16969 fi 16970 if test "X$found_dir" != "X"; then 16971 if test -f "$dir/$libname.la"; then 16972 found_la="$dir/$libname.la" 16973 fi 16974 fi 16975 ;; 16976 esac 16977 if test "X$found_dir" != "X"; then 16978 break 16979 fi 16980 done 16981 fi 16982 if test "X$found_dir" != "X"; then 16983 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 16984 if test "X$found_so" != "X"; then 16985 if test "$enable_rpath" = no \ 16986 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 16987 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 16988 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16989 else 16990 haveit= 16991 for x in $ltrpathdirs; do 16992 if test "X$x" = "X$found_dir"; then 16993 haveit=yes 16994 break 16995 fi 16996 done 16997 if test -z "$haveit"; then 16998 ltrpathdirs="$ltrpathdirs $found_dir" 16999 fi 17000 if test "$acl_hardcode_direct" = yes; then 17001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 17002 else 17003 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 17004 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 17005 haveit= 17006 for x in $rpathdirs; do 17007 if test "X$x" = "X$found_dir"; then 17008 haveit=yes 17009 break 17010 fi 17011 done 17012 if test -z "$haveit"; then 17013 rpathdirs="$rpathdirs $found_dir" 17014 fi 17015 else 17016 haveit= 17017 for x in $LDFLAGS $LIBINTL; do 17018 17019 acl_save_prefix="$prefix" 17020 prefix="$acl_final_prefix" 17021 acl_save_exec_prefix="$exec_prefix" 17022 exec_prefix="$acl_final_exec_prefix" 17023 eval x=\"$x\" 17024 exec_prefix="$acl_save_exec_prefix" 17025 prefix="$acl_save_prefix" 17026 17027 if test "X$x" = "X-L$found_dir"; then 17028 haveit=yes 17029 break 17030 fi 17031 done 17032 if test -z "$haveit"; then 17033 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 17034 fi 17035 if test "$acl_hardcode_minus_L" != no; then 17036 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 17037 else 17038 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 17039 fi 17040 fi 17041 fi 17042 fi 17043 else 17044 if test "X$found_a" != "X"; then 17045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 17046 else 17047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 17048 fi 17049 fi 17050 additional_includedir= 17051 case "$found_dir" in 17052 */$acl_libdirstem | */$acl_libdirstem/) 17053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 17054 if test "$name" = 'intl'; then 17055 LIBINTL_PREFIX="$basedir" 17056 fi 17057 additional_includedir="$basedir/include" 17058 ;; 17059 */$acl_libdirstem2 | */$acl_libdirstem2/) 17060 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 17061 if test "$name" = 'intl'; then 17062 LIBINTL_PREFIX="$basedir" 17063 fi 17064 additional_includedir="$basedir/include" 17065 ;; 17066 esac 17067 if test "X$additional_includedir" != "X"; then 17068 if test "X$additional_includedir" != "X/usr/include"; then 17069 haveit= 17070 if test "X$additional_includedir" = "X/usr/local/include"; then 17071 if test -n "$GCC"; then 17072 case $host_os in 17073 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 17074 esac 17075 fi 17076 fi 17077 if test -z "$haveit"; then 17078 for x in $CPPFLAGS $INCINTL; do 17079 17080 acl_save_prefix="$prefix" 17081 prefix="$acl_final_prefix" 17082 acl_save_exec_prefix="$exec_prefix" 17083 exec_prefix="$acl_final_exec_prefix" 17084 eval x=\"$x\" 17085 exec_prefix="$acl_save_exec_prefix" 17086 prefix="$acl_save_prefix" 17087 17088 if test "X$x" = "X-I$additional_includedir"; then 17089 haveit=yes 17090 break 17091 fi 17092 done 17093 if test -z "$haveit"; then 17094 if test -d "$additional_includedir"; then 17095 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 17096 fi 17097 fi 17098 fi 17099 fi 17100 fi 17101 if test -n "$found_la"; then 17102 save_libdir="$libdir" 17103 case "$found_la" in 17104 */* | *\\*) . "$found_la" ;; 17105 *) . "./$found_la" ;; 17106 esac 17107 libdir="$save_libdir" 17108 for dep in $dependency_libs; do 17109 case "$dep" in 17110 -L*) 17111 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 17112 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 17113 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 17114 haveit= 17115 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 17116 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 17117 if test -n "$GCC"; then 17118 case $host_os in 17119 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 17120 esac 17121 fi 17122 fi 17123 if test -z "$haveit"; then 17124 haveit= 17125 for x in $LDFLAGS $LIBINTL; do 17126 17127 acl_save_prefix="$prefix" 17128 prefix="$acl_final_prefix" 17129 acl_save_exec_prefix="$exec_prefix" 17130 exec_prefix="$acl_final_exec_prefix" 17131 eval x=\"$x\" 17132 exec_prefix="$acl_save_exec_prefix" 17133 prefix="$acl_save_prefix" 17134 17135 if test "X$x" = "X-L$additional_libdir"; then 17136 haveit=yes 17137 break 17138 fi 17139 done 17140 if test -z "$haveit"; then 17141 if test -d "$additional_libdir"; then 17142 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 17143 fi 17144 fi 17145 haveit= 17146 for x in $LDFLAGS $LTLIBINTL; do 17147 17148 acl_save_prefix="$prefix" 17149 prefix="$acl_final_prefix" 17150 acl_save_exec_prefix="$exec_prefix" 17151 exec_prefix="$acl_final_exec_prefix" 17152 eval x=\"$x\" 17153 exec_prefix="$acl_save_exec_prefix" 17154 prefix="$acl_save_prefix" 17155 17156 if test "X$x" = "X-L$additional_libdir"; then 17157 haveit=yes 17158 break 17159 fi 17160 done 17161 if test -z "$haveit"; then 17162 if test -d "$additional_libdir"; then 17163 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 17164 fi 17165 fi 17166 fi 17167 fi 17168 ;; 17169 -R*) 17170 dir=`echo "X$dep" | sed -e 's/^X-R//'` 17171 if test "$enable_rpath" != no; then 17172 haveit= 17173 for x in $rpathdirs; do 17174 if test "X$x" = "X$dir"; then 17175 haveit=yes 17176 break 17177 fi 17178 done 17179 if test -z "$haveit"; then 17180 rpathdirs="$rpathdirs $dir" 17181 fi 17182 haveit= 17183 for x in $ltrpathdirs; do 17184 if test "X$x" = "X$dir"; then 17185 haveit=yes 17186 break 17187 fi 17188 done 17189 if test -z "$haveit"; then 17190 ltrpathdirs="$ltrpathdirs $dir" 17191 fi 17192 fi 17193 ;; 17194 -l*) 17195 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 17196 ;; 17197 *.la) 17198 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 17199 ;; 17200 *) 17201 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 17202 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 17203 ;; 17204 esac 17205 done 17206 fi 17207 else 17208 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 17209 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 17210 fi 17211 fi 17212 fi 17213 done 17214 done 17215 if test "X$rpathdirs" != "X"; then 17216 if test -n "$acl_hardcode_libdir_separator"; then 17217 alldirs= 17218 for found_dir in $rpathdirs; do 17219 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 17220 done 17221 acl_save_libdir="$libdir" 17222 libdir="$alldirs" 17223 eval flag=\"$acl_hardcode_libdir_flag_spec\" 17224 libdir="$acl_save_libdir" 17225 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 17226 else 17227 for found_dir in $rpathdirs; do 17228 acl_save_libdir="$libdir" 17229 libdir="$found_dir" 17230 eval flag=\"$acl_hardcode_libdir_flag_spec\" 17231 libdir="$acl_save_libdir" 17232 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 17233 done 17234 fi 17235 fi 17236 if test "X$ltrpathdirs" != "X"; then 17237 for found_dir in $ltrpathdirs; do 17238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 17239 done 17240 fi 17241 17242 17243 17244 17245 17246 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 17248$as_echo_n "checking for GNU gettext in libintl... " >&6; } 17249if eval \${$gt_func_gnugettext_libintl+:} false; then : 17250 $as_echo_n "(cached) " >&6 17251else 17252 gt_save_CPPFLAGS="$CPPFLAGS" 17253 CPPFLAGS="$CPPFLAGS $INCINTL" 17254 gt_save_LIBS="$LIBS" 17255 LIBS="$LIBS $LIBINTL" 17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17257/* end confdefs.h. */ 17258 17259#include <libintl.h> 17260$gt_revision_test_code 17261extern int _nl_msg_cat_cntr; 17262extern 17263#ifdef __cplusplus 17264"C" 17265#endif 17266const char *_nl_expand_alias (const char *); 17267 17268int 17269main () 17270{ 17271 17272bindtextdomain ("", ""); 17273return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 17274 17275 ; 17276 return 0; 17277} 17278_ACEOF 17279if ac_fn_c_try_link "$LINENO"; then : 17280 eval "$gt_func_gnugettext_libintl=yes" 17281else 17282 eval "$gt_func_gnugettext_libintl=no" 17283fi 17284rm -f core conftest.err conftest.$ac_objext \ 17285 conftest$ac_exeext conftest.$ac_ext 17286 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 17287 LIBS="$LIBS $LIBICONV" 17288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17289/* end confdefs.h. */ 17290 17291#include <libintl.h> 17292$gt_revision_test_code 17293extern int _nl_msg_cat_cntr; 17294extern 17295#ifdef __cplusplus 17296"C" 17297#endif 17298const char *_nl_expand_alias (const char *); 17299 17300int 17301main () 17302{ 17303 17304bindtextdomain ("", ""); 17305return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 17306 17307 ; 17308 return 0; 17309} 17310_ACEOF 17311if ac_fn_c_try_link "$LINENO"; then : 17312 LIBINTL="$LIBINTL $LIBICONV" 17313 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 17314 eval "$gt_func_gnugettext_libintl=yes" 17315 17316fi 17317rm -f core conftest.err conftest.$ac_objext \ 17318 conftest$ac_exeext conftest.$ac_ext 17319 fi 17320 CPPFLAGS="$gt_save_CPPFLAGS" 17321 LIBS="$gt_save_LIBS" 17322fi 17323eval ac_res=\$$gt_func_gnugettext_libintl 17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17325$as_echo "$ac_res" >&6; } 17326 fi 17327 17328 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 17329 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 17330 && test "$PACKAGE" != gettext-runtime \ 17331 && test "$PACKAGE" != gettext-tools; }; then 17332 gt_use_preinstalled_gnugettext=yes 17333 else 17334 LIBINTL= 17335 LTLIBINTL= 17336 INCINTL= 17337 fi 17338 17339 17340 17341 if test -n "$INTL_MACOSX_LIBS"; then 17342 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 17343 || test "$nls_cv_use_gnu_gettext" = "yes"; then 17344 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 17345 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 17346 fi 17347 fi 17348 17349 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 17350 || test "$nls_cv_use_gnu_gettext" = "yes"; then 17351 17352$as_echo "#define ENABLE_NLS 1" >>confdefs.h 17353 17354 else 17355 USE_NLS=no 17356 fi 17357 fi 17358 17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 17360$as_echo_n "checking whether to use NLS... " >&6; } 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 17362$as_echo "$USE_NLS" >&6; } 17363 if test "$USE_NLS" = "yes"; then 17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 17365$as_echo_n "checking where the gettext function comes from... " >&6; } 17366 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 17367 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 17368 gt_source="external libintl" 17369 else 17370 gt_source="libc" 17371 fi 17372 else 17373 gt_source="included intl directory" 17374 fi 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 17376$as_echo "$gt_source" >&6; } 17377 fi 17378 17379 if test "$USE_NLS" = "yes"; then 17380 17381 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 17382 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 17384$as_echo_n "checking how to link with libintl... " >&6; } 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 17386$as_echo "$LIBINTL" >&6; } 17387 17388 for element in $INCINTL; do 17389 haveit= 17390 for x in $CPPFLAGS; do 17391 17392 acl_save_prefix="$prefix" 17393 prefix="$acl_final_prefix" 17394 acl_save_exec_prefix="$exec_prefix" 17395 exec_prefix="$acl_final_exec_prefix" 17396 eval x=\"$x\" 17397 exec_prefix="$acl_save_exec_prefix" 17398 prefix="$acl_save_prefix" 17399 17400 if test "X$x" = "X$element"; then 17401 haveit=yes 17402 break 17403 fi 17404 done 17405 if test -z "$haveit"; then 17406 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 17407 fi 17408 done 17409 17410 fi 17411 17412 17413$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 17414 17415 17416$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 17417 17418 fi 17419 17420 POSUB=po 17421 fi 17422 17423 17424 17425 INTLLIBS="$LIBINTL" 17426 17427 17428 17429 17430 17431 17432 17433 17434 GNULIB_ICONV=0; 17435 ICONV_CONST=; 17436 REPLACE_ICONV=0; 17437 REPLACE_ICONV_OPEN=0; 17438 REPLACE_ICONV_UTF=0; 17439 ICONV_H=''; 17440 if test -n "$ICONV_H"; then 17441 GL_GENERATE_ICONV_H_TRUE= 17442 GL_GENERATE_ICONV_H_FALSE='#' 17443else 17444 GL_GENERATE_ICONV_H_TRUE='#' 17445 GL_GENERATE_ICONV_H_FALSE= 17446fi 17447 17448 17449 17450 17451 17452 17453 17454 am_save_CPPFLAGS="$CPPFLAGS" 17455 17456 for element in $INCICONV; do 17457 haveit= 17458 for x in $CPPFLAGS; do 17459 17460 acl_save_prefix="$prefix" 17461 prefix="$acl_final_prefix" 17462 acl_save_exec_prefix="$exec_prefix" 17463 exec_prefix="$acl_final_exec_prefix" 17464 eval x=\"$x\" 17465 exec_prefix="$acl_save_exec_prefix" 17466 prefix="$acl_save_prefix" 17467 17468 if test "X$x" = "X$element"; then 17469 haveit=yes 17470 break 17471 fi 17472 done 17473 if test -z "$haveit"; then 17474 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 17475 fi 17476 done 17477 17478 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 17480$as_echo_n "checking for iconv... " >&6; } 17481if ${am_cv_func_iconv+:} false; then : 17482 $as_echo_n "(cached) " >&6 17483else 17484 17485 am_cv_func_iconv="no, consider installing GNU libiconv" 17486 am_cv_lib_iconv=no 17487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17488/* end confdefs.h. */ 17489 17490#include <stdlib.h> 17491#include <iconv.h> 17492 17493int 17494main () 17495{ 17496iconv_t cd = iconv_open("",""); 17497 iconv(cd,NULL,NULL,NULL,NULL); 17498 iconv_close(cd); 17499 ; 17500 return 0; 17501} 17502_ACEOF 17503if ac_fn_c_try_link "$LINENO"; then : 17504 am_cv_func_iconv=yes 17505fi 17506rm -f core conftest.err conftest.$ac_objext \ 17507 conftest$ac_exeext conftest.$ac_ext 17508 if test "$am_cv_func_iconv" != yes; then 17509 am_save_LIBS="$LIBS" 17510 LIBS="$LIBS $LIBICONV" 17511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17512/* end confdefs.h. */ 17513 17514#include <stdlib.h> 17515#include <iconv.h> 17516 17517int 17518main () 17519{ 17520iconv_t cd = iconv_open("",""); 17521 iconv(cd,NULL,NULL,NULL,NULL); 17522 iconv_close(cd); 17523 ; 17524 return 0; 17525} 17526_ACEOF 17527if ac_fn_c_try_link "$LINENO"; then : 17528 am_cv_lib_iconv=yes 17529 am_cv_func_iconv=yes 17530fi 17531rm -f core conftest.err conftest.$ac_objext \ 17532 conftest$ac_exeext conftest.$ac_ext 17533 LIBS="$am_save_LIBS" 17534 fi 17535 17536fi 17537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 17538$as_echo "$am_cv_func_iconv" >&6; } 17539 if test "$am_cv_func_iconv" = yes; then 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 17541$as_echo_n "checking for working iconv... " >&6; } 17542if ${am_cv_func_iconv_works+:} false; then : 17543 $as_echo_n "(cached) " >&6 17544else 17545 17546 am_save_LIBS="$LIBS" 17547 if test $am_cv_lib_iconv = yes; then 17548 LIBS="$LIBS $LIBICONV" 17549 fi 17550 if test "$cross_compiling" = yes; then : 17551 17552 case "$host_os" in 17553 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 17554 *) am_cv_func_iconv_works="guessing yes" ;; 17555 esac 17556 17557else 17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17559/* end confdefs.h. */ 17560 17561#include <iconv.h> 17562#include <string.h> 17563int main () 17564{ 17565 int result = 0; 17566 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 17567 returns. */ 17568 { 17569 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 17570 if (cd_utf8_to_88591 != (iconv_t)(-1)) 17571 { 17572 static const char input[] = "\342\202\254"; /* EURO SIGN */ 17573 char buf[10]; 17574 const char *inptr = input; 17575 size_t inbytesleft = strlen (input); 17576 char *outptr = buf; 17577 size_t outbytesleft = sizeof (buf); 17578 size_t res = iconv (cd_utf8_to_88591, 17579 (char **) &inptr, &inbytesleft, 17580 &outptr, &outbytesleft); 17581 if (res == 0) 17582 result |= 1; 17583 iconv_close (cd_utf8_to_88591); 17584 } 17585 } 17586 /* Test against Solaris 10 bug: Failures are not distinguishable from 17587 successful returns. */ 17588 { 17589 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 17590 if (cd_ascii_to_88591 != (iconv_t)(-1)) 17591 { 17592 static const char input[] = "\263"; 17593 char buf[10]; 17594 const char *inptr = input; 17595 size_t inbytesleft = strlen (input); 17596 char *outptr = buf; 17597 size_t outbytesleft = sizeof (buf); 17598 size_t res = iconv (cd_ascii_to_88591, 17599 (char **) &inptr, &inbytesleft, 17600 &outptr, &outbytesleft); 17601 if (res == 0) 17602 result |= 2; 17603 iconv_close (cd_ascii_to_88591); 17604 } 17605 } 17606 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 17607 { 17608 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 17609 if (cd_88591_to_utf8 != (iconv_t)(-1)) 17610 { 17611 static const char input[] = "\304"; 17612 static char buf[2] = { (char)0xDE, (char)0xAD }; 17613 const char *inptr = input; 17614 size_t inbytesleft = 1; 17615 char *outptr = buf; 17616 size_t outbytesleft = 1; 17617 size_t res = iconv (cd_88591_to_utf8, 17618 (char **) &inptr, &inbytesleft, 17619 &outptr, &outbytesleft); 17620 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 17621 result |= 4; 17622 iconv_close (cd_88591_to_utf8); 17623 } 17624 } 17625#if 0 /* This bug could be worked around by the caller. */ 17626 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 17627 { 17628 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 17629 if (cd_88591_to_utf8 != (iconv_t)(-1)) 17630 { 17631 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 17632 char buf[50]; 17633 const char *inptr = input; 17634 size_t inbytesleft = strlen (input); 17635 char *outptr = buf; 17636 size_t outbytesleft = sizeof (buf); 17637 size_t res = iconv (cd_88591_to_utf8, 17638 (char **) &inptr, &inbytesleft, 17639 &outptr, &outbytesleft); 17640 if ((int)res > 0) 17641 result |= 8; 17642 iconv_close (cd_88591_to_utf8); 17643 } 17644 } 17645#endif 17646 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 17647 provided. */ 17648 if (/* Try standardized names. */ 17649 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 17650 /* Try IRIX, OSF/1 names. */ 17651 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 17652 /* Try AIX names. */ 17653 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 17654 /* Try HP-UX names. */ 17655 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 17656 result |= 16; 17657 return result; 17658} 17659_ACEOF 17660if ac_fn_c_try_run "$LINENO"; then : 17661 am_cv_func_iconv_works=yes 17662else 17663 am_cv_func_iconv_works=no 17664fi 17665rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17666 conftest.$ac_objext conftest.beam conftest.$ac_ext 17667fi 17668 17669 LIBS="$am_save_LIBS" 17670 17671fi 17672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 17673$as_echo "$am_cv_func_iconv_works" >&6; } 17674 case "$am_cv_func_iconv_works" in 17675 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 17676 *) am_func_iconv=yes ;; 17677 esac 17678 else 17679 am_func_iconv=no am_cv_lib_iconv=no 17680 fi 17681 if test "$am_func_iconv" = yes; then 17682 17683$as_echo "#define HAVE_ICONV 1" >>confdefs.h 17684 17685 fi 17686 if test "$am_cv_lib_iconv" = yes; then 17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 17688$as_echo_n "checking how to link with libiconv... " >&6; } 17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 17690$as_echo "$LIBICONV" >&6; } 17691 else 17692 CPPFLAGS="$am_save_CPPFLAGS" 17693 LIBICONV= 17694 LTLIBICONV= 17695 fi 17696 17697 17698 17699 if test "$am_cv_func_iconv" = yes; then 17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 17701$as_echo_n "checking for iconv declaration... " >&6; } 17702 if ${am_cv_proto_iconv+:} false; then : 17703 $as_echo_n "(cached) " >&6 17704else 17705 17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17707/* end confdefs.h. */ 17708 17709#include <stdlib.h> 17710#include <iconv.h> 17711extern 17712#ifdef __cplusplus 17713"C" 17714#endif 17715#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 17716size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 17717#else 17718size_t iconv(); 17719#endif 17720 17721int 17722main () 17723{ 17724 17725 ; 17726 return 0; 17727} 17728_ACEOF 17729if ac_fn_c_try_compile "$LINENO"; then : 17730 am_cv_proto_iconv_arg1="" 17731else 17732 am_cv_proto_iconv_arg1="const" 17733fi 17734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17735 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 17736fi 17737 17738 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 17740 $am_cv_proto_iconv" >&5 17741$as_echo " 17742 $am_cv_proto_iconv" >&6; } 17743 17744cat >>confdefs.h <<_ACEOF 17745#define ICONV_CONST $am_cv_proto_iconv_arg1 17746_ACEOF 17747 17748 17749 if test -n "$am_cv_proto_iconv_arg1"; then 17750 ICONV_CONST="const" 17751 fi 17752 17753 fi 17754 17755 # If set to t, that means we are running in a shell under Emacs. 17756 # If you have an Emacs named "t", then use the full path. 17757 test x"$EMACS" = xt && EMACS= 17758 for ac_prog in emacs xemacs 17759do 17760 # Extract the first word of "$ac_prog", so it can be a program name with args. 17761set dummy $ac_prog; ac_word=$2 17762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17763$as_echo_n "checking for $ac_word... " >&6; } 17764if ${ac_cv_prog_EMACS+:} false; then : 17765 $as_echo_n "(cached) " >&6 17766else 17767 if test -n "$EMACS"; then 17768 ac_cv_prog_EMACS="$EMACS" # Let the user override the test. 17769else 17770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17771for as_dir in $PATH 17772do 17773 IFS=$as_save_IFS 17774 test -z "$as_dir" && as_dir=. 17775 for ac_exec_ext in '' $ac_executable_extensions; do 17776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17777 ac_cv_prog_EMACS="$ac_prog" 17778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17779 break 2 17780 fi 17781done 17782 done 17783IFS=$as_save_IFS 17784 17785fi 17786fi 17787EMACS=$ac_cv_prog_EMACS 17788if test -n "$EMACS"; then 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5 17790$as_echo "$EMACS" >&6; } 17791else 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17793$as_echo "no" >&6; } 17794fi 17795 17796 17797 test -n "$EMACS" && break 17798done 17799test -n "$EMACS" || EMACS="no" 17800 17801 17802 17803 17804# Check whether --with-lispdir was given. 17805if test "${with_lispdir+set}" = set; then : 17806 withval=$with_lispdir; lispdir="$withval" 17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5 17808$as_echo_n "checking where .elc files should go... " >&6; } 17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5 17810$as_echo "$lispdir" >&6; } 17811else 17812 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5 17814$as_echo_n "checking where .elc files should go... " >&6; } 17815if ${am_cv_lispdir+:} false; then : 17816 $as_echo_n "(cached) " >&6 17817else 17818 17819 if test $EMACS != "no"; then 17820 if test x${lispdir+set} != xset; then 17821 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly 17822 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit, 17823 # which is non-obvious for non-emacs users. 17824 # Redirecting /dev/null should help a bit; pity we can't detect "broken" 17825 # emacsen earlier and avoid running this altogether. 17826 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5 17827 ($EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5 17828 ac_status=$? 17829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17830 test $ac_status = 0; } 17831 am_cv_lispdir=`sed -n \ 17832 -e 's,/$,,' \ 17833 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \ 17834 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \ 17835 conftest.out` 17836 rm conftest.out 17837 fi 17838 fi 17839 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp' 17840 17841fi 17842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5 17843$as_echo "$am_cv_lispdir" >&6; } 17844 lispdir="$am_cv_lispdir" 17845 17846fi 17847 17848 17849 17850 17851if test "$am_cv_func_iconv" != "yes"; then 17852 { $as_echo "$as_me:${as_lineno-$LINENO}: 17853*** 17854 17855Your system does not have iconv(). The iconv() function is not 17856strictly required by the source code. However, that may change in 17857the future, unless you report that this may be a problem for you. 17858 17859Please report this to $PACKAGE_BUGREPORT. 17860 17861***" >&5 17862$as_echo "$as_me: 17863*** 17864 17865Your system does not have iconv(). The iconv() function is not 17866strictly required by the source code. However, that may change in 17867the future, unless you report that this may be a problem for you. 17868 17869Please report this to $PACKAGE_BUGREPORT. 17870 17871***" >&6;} 17872fi 17873 17874# Checks for header files. 17875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17876$as_echo_n "checking for ANSI C header files... " >&6; } 17877if ${ac_cv_header_stdc+:} false; then : 17878 $as_echo_n "(cached) " >&6 17879else 17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17881/* end confdefs.h. */ 17882#include <stdlib.h> 17883#include <stdarg.h> 17884#include <string.h> 17885#include <float.h> 17886 17887int 17888main () 17889{ 17890 17891 ; 17892 return 0; 17893} 17894_ACEOF 17895if ac_fn_c_try_compile "$LINENO"; then : 17896 ac_cv_header_stdc=yes 17897else 17898 ac_cv_header_stdc=no 17899fi 17900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17901 17902if test $ac_cv_header_stdc = yes; then 17903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17905/* end confdefs.h. */ 17906#include <string.h> 17907 17908_ACEOF 17909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17910 $EGREP "memchr" >/dev/null 2>&1; then : 17911 17912else 17913 ac_cv_header_stdc=no 17914fi 17915rm -f conftest* 17916 17917fi 17918 17919if test $ac_cv_header_stdc = yes; then 17920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17922/* end confdefs.h. */ 17923#include <stdlib.h> 17924 17925_ACEOF 17926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17927 $EGREP "free" >/dev/null 2>&1; then : 17928 17929else 17930 ac_cv_header_stdc=no 17931fi 17932rm -f conftest* 17933 17934fi 17935 17936if test $ac_cv_header_stdc = yes; then 17937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17938 if test "$cross_compiling" = yes; then : 17939 : 17940else 17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17942/* end confdefs.h. */ 17943#include <ctype.h> 17944#include <stdlib.h> 17945#if ((' ' & 0x0FF) == 0x020) 17946# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17947# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17948#else 17949# define ISLOWER(c) \ 17950 (('a' <= (c) && (c) <= 'i') \ 17951 || ('j' <= (c) && (c) <= 'r') \ 17952 || ('s' <= (c) && (c) <= 'z')) 17953# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17954#endif 17955 17956#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17957int 17958main () 17959{ 17960 int i; 17961 for (i = 0; i < 256; i++) 17962 if (XOR (islower (i), ISLOWER (i)) 17963 || toupper (i) != TOUPPER (i)) 17964 return 2; 17965 return 0; 17966} 17967_ACEOF 17968if ac_fn_c_try_run "$LINENO"; then : 17969 17970else 17971 ac_cv_header_stdc=no 17972fi 17973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17974 conftest.$ac_objext conftest.beam conftest.$ac_ext 17975fi 17976 17977fi 17978fi 17979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17980$as_echo "$ac_cv_header_stdc" >&6; } 17981if test $ac_cv_header_stdc = yes; then 17982 17983$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17984 17985fi 17986 17987 17988# For gnulib stuff in gl/. 17989 17990 17991 17992 17993 17994 LIBC_FATAL_STDERR_=1 17995 export LIBC_FATAL_STDERR_ 17996 17997 17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preferred C# implementation" >&5 17999$as_echo_n "checking for preferred C# implementation... " >&6; } 18000 # Check whether --enable-csharp was given. 18001if test "${enable_csharp+set}" = set; then : 18002 enableval=$enable_csharp; CSHARP_CHOICE="$enableval" 18003else 18004 CSHARP_CHOICE=any 18005fi 18006 18007 18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSHARP_CHOICE" >&5 18009$as_echo "$CSHARP_CHOICE" >&6; } 18010 case "$CSHARP_CHOICE" in 18011 pnet) 18012 18013$as_echo "#define CSHARP_CHOICE_PNET 1" >>confdefs.h 18014 18015 ;; 18016 mono) 18017 18018$as_echo "#define CSHARP_CHOICE_MONO 1" >>confdefs.h 18019 18020 ;; 18021 esac 18022 18023 18024 18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# compiler" >&5 18026$as_echo_n "checking for C# compiler... " >&6; } 18027 HAVE_CSHARPCOMP=1 18028 # Extract the first word of "cscc", so it can be a program name with args. 18029set dummy cscc; ac_word=$2 18030: 18031if ${ac_cv_prog_HAVE_CSCC_IN_PATH+:} false; then : 18032 $as_echo_n "(cached) " >&6 18033else 18034 if test -n "$HAVE_CSCC_IN_PATH"; then 18035 ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test. 18036else 18037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18038for as_dir in $PATH 18039do 18040 IFS=$as_save_IFS 18041 test -z "$as_dir" && as_dir=. 18042 for ac_exec_ext in '' $ac_executable_extensions; do 18043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18044 ac_cv_prog_HAVE_CSCC_IN_PATH="yes" 18045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18046 break 2 18047 fi 18048done 18049 done 18050IFS=$as_save_IFS 18051 18052fi 18053fi 18054HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH 18055if test -n "$HAVE_CSCC_IN_PATH"; then 18056 : 18057else 18058 : 18059fi 18060 18061 18062 # Extract the first word of "mcs", so it can be a program name with args. 18063set dummy mcs; ac_word=$2 18064: 18065if ${ac_cv_prog_HAVE_MCS_IN_PATH+:} false; then : 18066 $as_echo_n "(cached) " >&6 18067else 18068 if test -n "$HAVE_MCS_IN_PATH"; then 18069 ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test. 18070else 18071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18072for as_dir in $PATH 18073do 18074 IFS=$as_save_IFS 18075 test -z "$as_dir" && as_dir=. 18076 for ac_exec_ext in '' $ac_executable_extensions; do 18077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18078 ac_cv_prog_HAVE_MCS_IN_PATH="yes" 18079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18080 break 2 18081 fi 18082done 18083 done 18084IFS=$as_save_IFS 18085 18086fi 18087fi 18088HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH 18089if test -n "$HAVE_MCS_IN_PATH"; then 18090 : 18091else 18092 : 18093fi 18094 18095 18096 # Extract the first word of "csc", so it can be a program name with args. 18097set dummy csc; ac_word=$2 18098: 18099if ${ac_cv_prog_HAVE_CSC_IN_PATH+:} false; then : 18100 $as_echo_n "(cached) " >&6 18101else 18102 if test -n "$HAVE_CSC_IN_PATH"; then 18103 ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test. 18104else 18105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18106for as_dir in $PATH 18107do 18108 IFS=$as_save_IFS 18109 test -z "$as_dir" && as_dir=. 18110 for ac_exec_ext in '' $ac_executable_extensions; do 18111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18112 ac_cv_prog_HAVE_CSC_IN_PATH="yes" 18113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18114 break 2 18115 fi 18116done 18117 done 18118IFS=$as_save_IFS 18119 18120fi 18121fi 18122HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH 18123if test -n "$HAVE_CSC_IN_PATH"; then 18124 : 18125else 18126 : 18127fi 18128 18129 18130 for impl in "$CSHARP_CHOICE" pnet mono sscli no; do 18131 case "$impl" in 18132 pnet) 18133 if test -n "$HAVE_CSCC_IN_PATH" \ 18134 && cscc --version >/dev/null 2>/dev/null \ 18135 && ( 18136 # See if pnetlib is well installed. 18137 echo 'class ConfTest { static void Main() { } }' > conftest.cs 18138 cscc -o conftest.exe conftest.cs 2>/dev/null 18139 error=$? 18140 rm -f conftest.cs conftest.exe 18141 exit $error 18142 ); then 18143 HAVE_CSCC=1 18144 ac_result="cscc" 18145 break 18146 fi 18147 ;; 18148 mono) 18149 if test -n "$HAVE_MCS_IN_PATH" \ 18150 && mcs --version >/dev/null 2>/dev/null \ 18151 && mcs --version 2>/dev/null | grep Mono >/dev/null; then 18152 HAVE_MCS=1 18153 ac_result="mcs" 18154 break 18155 fi 18156 ;; 18157 sscli) 18158 if test -n "$HAVE_CSC_IN_PATH" \ 18159 && csc -help >/dev/null 2>/dev/null \ 18160 && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then 18161 HAVE_CSC=1 18162 ac_result="csc" 18163 break 18164 fi 18165 ;; 18166 no) 18167 HAVE_CSHARPCOMP= 18168 ac_result="no" 18169 break 18170 ;; 18171 esac 18172 done 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 18174$as_echo "$ac_result" >&6; } 18175 18176 18177 18178 if test -z "${CSHARPCOMPFLAGS+set}"; then 18179 CSHARPCOMPFLAGS="-O -g" 18180 fi 18181 18182 18183 18184 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 18186$as_echo_n "checking whether // is distinct from /... " >&6; } 18187if ${gl_cv_double_slash_root+:} false; then : 18188 $as_echo_n "(cached) " >&6 18189else 18190 if test x"$cross_compiling" = xyes ; then 18191 # When cross-compiling, there is no way to tell whether // is special 18192 # short of a list of hosts. However, the only known hosts to date 18193 # that have a distinct // are Apollo DomainOS (too old to port to), 18194 # Cygwin, and z/OS. If anyone knows of another system for which // has 18195 # special semantics and is distinct from /, please report it to 18196 # <bug-gnulib@gnu.org>. 18197 case $host in 18198 *-cygwin | i370-ibm-openedition) 18199 gl_cv_double_slash_root=yes ;; 18200 *) 18201 # Be optimistic and assume that / and // are the same when we 18202 # don't know. 18203 gl_cv_double_slash_root='unknown, assuming no' ;; 18204 esac 18205 else 18206 set x `ls -di / // 2>/dev/null` 18207 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 18208 gl_cv_double_slash_root=no 18209 else 18210 gl_cv_double_slash_root=yes 18211 fi 18212 fi 18213fi 18214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 18215$as_echo "$gl_cv_double_slash_root" >&6; } 18216 if test "$gl_cv_double_slash_root" = yes; then 18217 18218$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 18219 18220 fi 18221 18222 18223 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 18225$as_echo_n "checking whether the preprocessor supports include_next... " >&6; } 18226if ${gl_cv_have_include_next+:} false; then : 18227 $as_echo_n "(cached) " >&6 18228else 18229 rm -rf conftestd1a conftestd1b conftestd2 18230 mkdir conftestd1a conftestd1b conftestd2 18231 cat <<EOF > conftestd1a/conftest.h 18232#define DEFINED_IN_CONFTESTD1 18233#include_next <conftest.h> 18234#ifdef DEFINED_IN_CONFTESTD2 18235int foo; 18236#else 18237#error "include_next doesn't work" 18238#endif 18239EOF 18240 cat <<EOF > conftestd1b/conftest.h 18241#define DEFINED_IN_CONFTESTD1 18242#include <stdio.h> 18243#include_next <conftest.h> 18244#ifdef DEFINED_IN_CONFTESTD2 18245int foo; 18246#else 18247#error "include_next doesn't work" 18248#endif 18249EOF 18250 cat <<EOF > conftestd2/conftest.h 18251#ifndef DEFINED_IN_CONFTESTD1 18252#error "include_next test doesn't work" 18253#endif 18254#define DEFINED_IN_CONFTESTD2 18255EOF 18256 gl_save_CPPFLAGS="$CPPFLAGS" 18257 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" 18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18259/* end confdefs.h. */ 18260#include <conftest.h> 18261_ACEOF 18262if ac_fn_c_try_compile "$LINENO"; then : 18263 gl_cv_have_include_next=yes 18264else 18265 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" 18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18267/* end confdefs.h. */ 18268#include <conftest.h> 18269_ACEOF 18270if ac_fn_c_try_compile "$LINENO"; then : 18271 gl_cv_have_include_next=buggy 18272else 18273 gl_cv_have_include_next=no 18274fi 18275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18276 18277fi 18278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18279 CPPFLAGS="$gl_save_CPPFLAGS" 18280 rm -rf conftestd1a conftestd1b conftestd2 18281 18282fi 18283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 18284$as_echo "$gl_cv_have_include_next" >&6; } 18285 PRAGMA_SYSTEM_HEADER= 18286 if test $gl_cv_have_include_next = yes; then 18287 INCLUDE_NEXT=include_next 18288 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 18289 if test -n "$GCC"; then 18290 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' 18291 fi 18292 else 18293 if test $gl_cv_have_include_next = buggy; then 18294 INCLUDE_NEXT=include 18295 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next 18296 else 18297 INCLUDE_NEXT=include 18298 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include 18299 fi 18300 fi 18301 18302 18303 18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 18305$as_echo_n "checking whether system header files limit the line length... " >&6; } 18306if ${gl_cv_pragma_columns+:} false; then : 18307 $as_echo_n "(cached) " >&6 18308else 18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18310/* end confdefs.h. */ 18311 18312#ifdef __TANDEM 18313choke me 18314#endif 18315 18316_ACEOF 18317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18318 $EGREP "choke me" >/dev/null 2>&1; then : 18319 gl_cv_pragma_columns=yes 18320else 18321 gl_cv_pragma_columns=no 18322fi 18323rm -f conftest* 18324 18325 18326fi 18327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 18328$as_echo "$gl_cv_pragma_columns" >&6; } 18329 if test $gl_cv_pragma_columns = yes; then 18330 PRAGMA_COLUMNS="#pragma COLUMNS 10000" 18331 else 18332 PRAGMA_COLUMNS= 18333 fi 18334 18335 18336 18337 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5 18339$as_echo_n "checking for complete errno.h... " >&6; } 18340if ${gl_cv_header_errno_h_complete+:} false; then : 18341 $as_echo_n "(cached) " >&6 18342else 18343 18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18345/* end confdefs.h. */ 18346 18347#include <errno.h> 18348#if !defined ETXTBSY 18349booboo 18350#endif 18351#if !defined ENOMSG 18352booboo 18353#endif 18354#if !defined EIDRM 18355booboo 18356#endif 18357#if !defined ENOLINK 18358booboo 18359#endif 18360#if !defined EPROTO 18361booboo 18362#endif 18363#if !defined EMULTIHOP 18364booboo 18365#endif 18366#if !defined EBADMSG 18367booboo 18368#endif 18369#if !defined EOVERFLOW 18370booboo 18371#endif 18372#if !defined ENOTSUP 18373booboo 18374#endif 18375#if !defined ENETRESET 18376booboo 18377#endif 18378#if !defined ECONNABORTED 18379booboo 18380#endif 18381#if !defined ESTALE 18382booboo 18383#endif 18384#if !defined EDQUOT 18385booboo 18386#endif 18387#if !defined ECANCELED 18388booboo 18389#endif 18390#if !defined EOWNERDEAD 18391booboo 18392#endif 18393#if !defined ENOTRECOVERABLE 18394booboo 18395#endif 18396#if !defined EILSEQ 18397booboo 18398#endif 18399 18400_ACEOF 18401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18402 $EGREP "booboo" >/dev/null 2>&1; then : 18403 gl_cv_header_errno_h_complete=no 18404else 18405 gl_cv_header_errno_h_complete=yes 18406fi 18407rm -f conftest* 18408 18409 18410fi 18411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5 18412$as_echo "$gl_cv_header_errno_h_complete" >&6; } 18413 if test $gl_cv_header_errno_h_complete = yes; then 18414 ERRNO_H='' 18415 else 18416 18417 18418 18419 18420 18421 18422 18423 18424 if test $gl_cv_have_include_next = yes; then 18425 gl_cv_next_errno_h='<'errno.h'>' 18426 else 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5 18428$as_echo_n "checking absolute name of <errno.h>... " >&6; } 18429if ${gl_cv_next_errno_h+:} false; then : 18430 $as_echo_n "(cached) " >&6 18431else 18432 18433 18434 18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18436/* end confdefs.h. */ 18437#include <errno.h> 18438_ACEOF 18439 case "$host_os" in 18440 aix*) gl_absname_cpp="$ac_cpp -C" ;; 18441 *) gl_absname_cpp="$ac_cpp" ;; 18442 esac 18443 18444 case "$host_os" in 18445 mingw*) 18446 gl_dirsep_regex='[/\\]' 18447 ;; 18448 *) 18449 gl_dirsep_regex='\/' 18450 ;; 18451 esac 18452 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 18453 gl_header_literal_regex=`echo 'errno.h' \ 18454 | sed -e "$gl_make_literal_regex_sed"` 18455 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 18456 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 18457 s|^/[^/]|//&| 18458 p 18459 q 18460 }' 18461 18462 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 18463 sed -n "$gl_absolute_header_sed"` 18464 18465 gl_header=$gl_cv_absolute_errno_h 18466 gl_cv_next_errno_h='"'$gl_header'"' 18467 18468 18469fi 18470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5 18471$as_echo "$gl_cv_next_errno_h" >&6; } 18472 fi 18473 NEXT_ERRNO_H=$gl_cv_next_errno_h 18474 18475 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 18476 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 18477 gl_next_as_first_directive='<'errno.h'>' 18478 else 18479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 18480 gl_next_as_first_directive=$gl_cv_next_errno_h 18481 fi 18482 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive 18483 18484 18485 18486 18487 ERRNO_H='errno.h' 18488 fi 18489 18490 if test -n "$ERRNO_H"; then 18491 GL_GENERATE_ERRNO_H_TRUE= 18492 GL_GENERATE_ERRNO_H_FALSE='#' 18493else 18494 GL_GENERATE_ERRNO_H_TRUE='#' 18495 GL_GENERATE_ERRNO_H_FALSE= 18496fi 18497 18498 18499 if test -n "$ERRNO_H"; then 18500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5 18501$as_echo_n "checking for EMULTIHOP value... " >&6; } 18502if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then : 18503 $as_echo_n "(cached) " >&6 18504else 18505 18506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18507/* end confdefs.h. */ 18508 18509#include <errno.h> 18510#ifdef EMULTIHOP 18511yes 18512#endif 18513 18514_ACEOF 18515if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18516 $EGREP "yes" >/dev/null 2>&1; then : 18517 gl_cv_header_errno_h_EMULTIHOP=yes 18518else 18519 gl_cv_header_errno_h_EMULTIHOP=no 18520fi 18521rm -f conftest* 18522 18523 if test $gl_cv_header_errno_h_EMULTIHOP = no; then 18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18525/* end confdefs.h. */ 18526 18527#define _XOPEN_SOURCE_EXTENDED 1 18528#include <errno.h> 18529#ifdef EMULTIHOP 18530yes 18531#endif 18532 18533_ACEOF 18534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18535 $EGREP "yes" >/dev/null 2>&1; then : 18536 gl_cv_header_errno_h_EMULTIHOP=hidden 18537fi 18538rm -f conftest* 18539 18540 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then 18541 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" " 18542#define _XOPEN_SOURCE_EXTENDED 1 18543#include <errno.h> 18544/* The following two lines are a workaround against an autoconf-2.52 bug. */ 18545#include <stdio.h> 18546#include <stdlib.h> 18547"; then : 18548 18549fi 18550 18551 fi 18552 fi 18553 18554fi 18555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5 18556$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; } 18557 case $gl_cv_header_errno_h_EMULTIHOP in 18558 yes | no) 18559 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE= 18560 ;; 18561 *) 18562 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP" 18563 ;; 18564 esac 18565 18566 18567 fi 18568 18569 18570 if test -n "$ERRNO_H"; then 18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5 18572$as_echo_n "checking for ENOLINK value... " >&6; } 18573if ${gl_cv_header_errno_h_ENOLINK+:} false; then : 18574 $as_echo_n "(cached) " >&6 18575else 18576 18577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18578/* end confdefs.h. */ 18579 18580#include <errno.h> 18581#ifdef ENOLINK 18582yes 18583#endif 18584 18585_ACEOF 18586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18587 $EGREP "yes" >/dev/null 2>&1; then : 18588 gl_cv_header_errno_h_ENOLINK=yes 18589else 18590 gl_cv_header_errno_h_ENOLINK=no 18591fi 18592rm -f conftest* 18593 18594 if test $gl_cv_header_errno_h_ENOLINK = no; then 18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18596/* end confdefs.h. */ 18597 18598#define _XOPEN_SOURCE_EXTENDED 1 18599#include <errno.h> 18600#ifdef ENOLINK 18601yes 18602#endif 18603 18604_ACEOF 18605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18606 $EGREP "yes" >/dev/null 2>&1; then : 18607 gl_cv_header_errno_h_ENOLINK=hidden 18608fi 18609rm -f conftest* 18610 18611 if test $gl_cv_header_errno_h_ENOLINK = hidden; then 18612 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" " 18613#define _XOPEN_SOURCE_EXTENDED 1 18614#include <errno.h> 18615/* The following two lines are a workaround against an autoconf-2.52 bug. */ 18616#include <stdio.h> 18617#include <stdlib.h> 18618"; then : 18619 18620fi 18621 18622 fi 18623 fi 18624 18625fi 18626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5 18627$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; } 18628 case $gl_cv_header_errno_h_ENOLINK in 18629 yes | no) 18630 ENOLINK_HIDDEN=0; ENOLINK_VALUE= 18631 ;; 18632 *) 18633 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK" 18634 ;; 18635 esac 18636 18637 18638 fi 18639 18640 18641 if test -n "$ERRNO_H"; then 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5 18643$as_echo_n "checking for EOVERFLOW value... " >&6; } 18644if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then : 18645 $as_echo_n "(cached) " >&6 18646else 18647 18648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18649/* end confdefs.h. */ 18650 18651#include <errno.h> 18652#ifdef EOVERFLOW 18653yes 18654#endif 18655 18656_ACEOF 18657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18658 $EGREP "yes" >/dev/null 2>&1; then : 18659 gl_cv_header_errno_h_EOVERFLOW=yes 18660else 18661 gl_cv_header_errno_h_EOVERFLOW=no 18662fi 18663rm -f conftest* 18664 18665 if test $gl_cv_header_errno_h_EOVERFLOW = no; then 18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18667/* end confdefs.h. */ 18668 18669#define _XOPEN_SOURCE_EXTENDED 1 18670#include <errno.h> 18671#ifdef EOVERFLOW 18672yes 18673#endif 18674 18675_ACEOF 18676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18677 $EGREP "yes" >/dev/null 2>&1; then : 18678 gl_cv_header_errno_h_EOVERFLOW=hidden 18679fi 18680rm -f conftest* 18681 18682 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then 18683 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" " 18684#define _XOPEN_SOURCE_EXTENDED 1 18685#include <errno.h> 18686/* The following two lines are a workaround against an autoconf-2.52 bug. */ 18687#include <stdio.h> 18688#include <stdlib.h> 18689"; then : 18690 18691fi 18692 18693 fi 18694 fi 18695 18696fi 18697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5 18698$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; } 18699 case $gl_cv_header_errno_h_EOVERFLOW in 18700 yes | no) 18701 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE= 18702 ;; 18703 *) 18704 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW" 18705 ;; 18706 esac 18707 18708 18709 fi 18710 18711 18712ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 18713if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 18714 ac_have_decl=1 18715else 18716 ac_have_decl=0 18717fi 18718 18719cat >>confdefs.h <<_ACEOF 18720#define HAVE_DECL_STRERROR_R $ac_have_decl 18721_ACEOF 18722 18723for ac_func in strerror_r 18724do : 18725 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 18726if test "x$ac_cv_func_strerror_r" = xyes; then : 18727 cat >>confdefs.h <<_ACEOF 18728#define HAVE_STRERROR_R 1 18729_ACEOF 18730 18731fi 18732done 18733 18734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 18735$as_echo_n "checking whether strerror_r returns char *... " >&6; } 18736if ${ac_cv_func_strerror_r_char_p+:} false; then : 18737 $as_echo_n "(cached) " >&6 18738else 18739 18740 ac_cv_func_strerror_r_char_p=no 18741 if test $ac_cv_have_decl_strerror_r = yes; then 18742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18743/* end confdefs.h. */ 18744$ac_includes_default 18745int 18746main () 18747{ 18748 18749 char buf[100]; 18750 char x = *strerror_r (0, buf, sizeof buf); 18751 char *p = strerror_r (0, buf, sizeof buf); 18752 return !p || x; 18753 18754 ; 18755 return 0; 18756} 18757_ACEOF 18758if ac_fn_c_try_compile "$LINENO"; then : 18759 ac_cv_func_strerror_r_char_p=yes 18760fi 18761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18762 else 18763 # strerror_r is not declared. Choose between 18764 # systems that have relatively inaccessible declarations for the 18765 # function. BeOS and DEC UNIX 4.0 fall in this category, but the 18766 # former has a strerror_r that returns char*, while the latter 18767 # has a strerror_r that returns `int'. 18768 # This test should segfault on the DEC system. 18769 if test "$cross_compiling" = yes; then : 18770 : 18771else 18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18773/* end confdefs.h. */ 18774$ac_includes_default 18775 extern char *strerror_r (); 18776int 18777main () 18778{ 18779char buf[100]; 18780 char x = *strerror_r (0, buf, sizeof buf); 18781 return ! isalpha (x); 18782 ; 18783 return 0; 18784} 18785_ACEOF 18786if ac_fn_c_try_run "$LINENO"; then : 18787 ac_cv_func_strerror_r_char_p=yes 18788fi 18789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18790 conftest.$ac_objext conftest.beam conftest.$ac_ext 18791fi 18792 18793 fi 18794 18795fi 18796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 18797$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 18798if test $ac_cv_func_strerror_r_char_p = yes; then 18799 18800$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 18801 18802fi 18803 18804 18805 XGETTEXT_EXTRA_OPTIONS= 18806 18807 18808 18809 18810 18811 GNULIB_DPRINTF=0; 18812 GNULIB_FCLOSE=0; 18813 GNULIB_FDOPEN=0; 18814 GNULIB_FFLUSH=0; 18815 GNULIB_FGETC=0; 18816 GNULIB_FGETS=0; 18817 GNULIB_FOPEN=0; 18818 GNULIB_FPRINTF=0; 18819 GNULIB_FPRINTF_POSIX=0; 18820 GNULIB_FPURGE=0; 18821 GNULIB_FPUTC=0; 18822 GNULIB_FPUTS=0; 18823 GNULIB_FREAD=0; 18824 GNULIB_FREOPEN=0; 18825 GNULIB_FSCANF=0; 18826 GNULIB_FSEEK=0; 18827 GNULIB_FSEEKO=0; 18828 GNULIB_FTELL=0; 18829 GNULIB_FTELLO=0; 18830 GNULIB_FWRITE=0; 18831 GNULIB_GETC=0; 18832 GNULIB_GETCHAR=0; 18833 GNULIB_GETDELIM=0; 18834 GNULIB_GETLINE=0; 18835 GNULIB_OBSTACK_PRINTF=0; 18836 GNULIB_OBSTACK_PRINTF_POSIX=0; 18837 GNULIB_PCLOSE=0; 18838 GNULIB_PERROR=0; 18839 GNULIB_POPEN=0; 18840 GNULIB_PRINTF=0; 18841 GNULIB_PRINTF_POSIX=0; 18842 GNULIB_PUTC=0; 18843 GNULIB_PUTCHAR=0; 18844 GNULIB_PUTS=0; 18845 GNULIB_REMOVE=0; 18846 GNULIB_RENAME=0; 18847 GNULIB_RENAMEAT=0; 18848 GNULIB_SCANF=0; 18849 GNULIB_SNPRINTF=0; 18850 GNULIB_SPRINTF_POSIX=0; 18851 GNULIB_STDIO_H_NONBLOCKING=0; 18852 GNULIB_STDIO_H_SIGPIPE=0; 18853 GNULIB_TMPFILE=0; 18854 GNULIB_VASPRINTF=0; 18855 GNULIB_VFSCANF=0; 18856 GNULIB_VSCANF=0; 18857 GNULIB_VDPRINTF=0; 18858 GNULIB_VFPRINTF=0; 18859 GNULIB_VFPRINTF_POSIX=0; 18860 GNULIB_VPRINTF=0; 18861 GNULIB_VPRINTF_POSIX=0; 18862 GNULIB_VSNPRINTF=0; 18863 GNULIB_VSPRINTF_POSIX=0; 18864 HAVE_DECL_FPURGE=1; 18865 HAVE_DECL_FSEEKO=1; 18866 HAVE_DECL_FTELLO=1; 18867 HAVE_DECL_GETDELIM=1; 18868 HAVE_DECL_GETLINE=1; 18869 HAVE_DECL_OBSTACK_PRINTF=1; 18870 HAVE_DECL_SNPRINTF=1; 18871 HAVE_DECL_VSNPRINTF=1; 18872 HAVE_DPRINTF=1; 18873 HAVE_FSEEKO=1; 18874 HAVE_FTELLO=1; 18875 HAVE_PCLOSE=1; 18876 HAVE_POPEN=1; 18877 HAVE_RENAMEAT=1; 18878 HAVE_VASPRINTF=1; 18879 HAVE_VDPRINTF=1; 18880 REPLACE_DPRINTF=0; 18881 REPLACE_FCLOSE=0; 18882 REPLACE_FDOPEN=0; 18883 REPLACE_FFLUSH=0; 18884 REPLACE_FOPEN=0; 18885 REPLACE_FPRINTF=0; 18886 REPLACE_FPURGE=0; 18887 REPLACE_FREOPEN=0; 18888 REPLACE_FSEEK=0; 18889 REPLACE_FSEEKO=0; 18890 REPLACE_FTELL=0; 18891 REPLACE_FTELLO=0; 18892 REPLACE_GETDELIM=0; 18893 REPLACE_GETLINE=0; 18894 REPLACE_OBSTACK_PRINTF=0; 18895 REPLACE_PERROR=0; 18896 REPLACE_POPEN=0; 18897 REPLACE_PRINTF=0; 18898 REPLACE_REMOVE=0; 18899 REPLACE_RENAME=0; 18900 REPLACE_RENAMEAT=0; 18901 REPLACE_SNPRINTF=0; 18902 REPLACE_SPRINTF=0; 18903 REPLACE_STDIO_READ_FUNCS=0; 18904 REPLACE_STDIO_WRITE_FUNCS=0; 18905 REPLACE_TMPFILE=0; 18906 REPLACE_VASPRINTF=0; 18907 REPLACE_VDPRINTF=0; 18908 REPLACE_VFPRINTF=0; 18909 REPLACE_VPRINTF=0; 18910 REPLACE_VSNPRINTF=0; 18911 REPLACE_VSPRINTF=0; 18912 18913ac_fn_c_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" 18914if test "x$ac_cv_have_decl_getdelim" = xyes; then : 18915 ac_have_decl=1 18916else 18917 ac_have_decl=0 18918fi 18919 18920cat >>confdefs.h <<_ACEOF 18921#define HAVE_DECL_GETDELIM $ac_have_decl 18922_ACEOF 18923 18924 18925 18926 18927 for ac_func in $ac_func_list 18928do : 18929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18930ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18931if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18932 cat >>confdefs.h <<_ACEOF 18933#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18934_ACEOF 18935 18936fi 18937done 18938 18939 18940 18941ac_fn_c_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" 18942if test "x$ac_cv_have_decl_getline" = xyes; then : 18943 ac_have_decl=1 18944else 18945 ac_have_decl=0 18946fi 18947 18948cat >>confdefs.h <<_ACEOF 18949#define HAVE_DECL_GETLINE $ac_have_decl 18950_ACEOF 18951 18952 18953 GNULIB_CHDIR=0; 18954 GNULIB_CHOWN=0; 18955 GNULIB_CLOSE=0; 18956 GNULIB_DUP=0; 18957 GNULIB_DUP2=0; 18958 GNULIB_DUP3=0; 18959 GNULIB_ENVIRON=0; 18960 GNULIB_EUIDACCESS=0; 18961 GNULIB_FACCESSAT=0; 18962 GNULIB_FCHDIR=0; 18963 GNULIB_FCHOWNAT=0; 18964 GNULIB_FDATASYNC=0; 18965 GNULIB_FSYNC=0; 18966 GNULIB_FTRUNCATE=0; 18967 GNULIB_GETCWD=0; 18968 GNULIB_GETDOMAINNAME=0; 18969 GNULIB_GETDTABLESIZE=0; 18970 GNULIB_GETGROUPS=0; 18971 GNULIB_GETHOSTNAME=0; 18972 GNULIB_GETLOGIN=0; 18973 GNULIB_GETLOGIN_R=0; 18974 GNULIB_GETPAGESIZE=0; 18975 GNULIB_GETUSERSHELL=0; 18976 GNULIB_GROUP_MEMBER=0; 18977 GNULIB_ISATTY=0; 18978 GNULIB_LCHOWN=0; 18979 GNULIB_LINK=0; 18980 GNULIB_LINKAT=0; 18981 GNULIB_LSEEK=0; 18982 GNULIB_PIPE=0; 18983 GNULIB_PIPE2=0; 18984 GNULIB_PREAD=0; 18985 GNULIB_PWRITE=0; 18986 GNULIB_READ=0; 18987 GNULIB_READLINK=0; 18988 GNULIB_READLINKAT=0; 18989 GNULIB_RMDIR=0; 18990 GNULIB_SETHOSTNAME=0; 18991 GNULIB_SLEEP=0; 18992 GNULIB_SYMLINK=0; 18993 GNULIB_SYMLINKAT=0; 18994 GNULIB_TRUNCATE=0; 18995 GNULIB_TTYNAME_R=0; 18996 GNULIB_UNISTD_H_NONBLOCKING=0; 18997 GNULIB_UNISTD_H_SIGPIPE=0; 18998 GNULIB_UNLINK=0; 18999 GNULIB_UNLINKAT=0; 19000 GNULIB_USLEEP=0; 19001 GNULIB_WRITE=0; 19002 HAVE_CHOWN=1; 19003 HAVE_DUP2=1; 19004 HAVE_DUP3=1; 19005 HAVE_EUIDACCESS=1; 19006 HAVE_FACCESSAT=1; 19007 HAVE_FCHDIR=1; 19008 HAVE_FCHOWNAT=1; 19009 HAVE_FDATASYNC=1; 19010 HAVE_FSYNC=1; 19011 HAVE_FTRUNCATE=1; 19012 HAVE_GETDTABLESIZE=1; 19013 HAVE_GETGROUPS=1; 19014 HAVE_GETHOSTNAME=1; 19015 HAVE_GETLOGIN=1; 19016 HAVE_GETPAGESIZE=1; 19017 HAVE_GROUP_MEMBER=1; 19018 HAVE_LCHOWN=1; 19019 HAVE_LINK=1; 19020 HAVE_LINKAT=1; 19021 HAVE_PIPE=1; 19022 HAVE_PIPE2=1; 19023 HAVE_PREAD=1; 19024 HAVE_PWRITE=1; 19025 HAVE_READLINK=1; 19026 HAVE_READLINKAT=1; 19027 HAVE_SETHOSTNAME=1; 19028 HAVE_SLEEP=1; 19029 HAVE_SYMLINK=1; 19030 HAVE_SYMLINKAT=1; 19031 HAVE_TRUNCATE=1; 19032 HAVE_UNLINKAT=1; 19033 HAVE_USLEEP=1; 19034 HAVE_DECL_ENVIRON=1; 19035 HAVE_DECL_FCHDIR=1; 19036 HAVE_DECL_FDATASYNC=1; 19037 HAVE_DECL_GETDOMAINNAME=1; 19038 HAVE_DECL_GETLOGIN=1; 19039 HAVE_DECL_GETLOGIN_R=1; 19040 HAVE_DECL_GETPAGESIZE=1; 19041 HAVE_DECL_GETUSERSHELL=1; 19042 HAVE_DECL_SETHOSTNAME=1; 19043 HAVE_DECL_TTYNAME_R=1; 19044 HAVE_OS_H=0; 19045 HAVE_SYS_PARAM_H=0; 19046 REPLACE_CHOWN=0; 19047 REPLACE_CLOSE=0; 19048 REPLACE_DUP=0; 19049 REPLACE_DUP2=0; 19050 REPLACE_FACCESSAT=0; 19051 REPLACE_FCHOWNAT=0; 19052 REPLACE_FTRUNCATE=0; 19053 REPLACE_GETCWD=0; 19054 REPLACE_GETDOMAINNAME=0; 19055 REPLACE_GETDTABLESIZE=0; 19056 REPLACE_GETLOGIN_R=0; 19057 REPLACE_GETGROUPS=0; 19058 REPLACE_GETPAGESIZE=0; 19059 REPLACE_ISATTY=0; 19060 REPLACE_LCHOWN=0; 19061 REPLACE_LINK=0; 19062 REPLACE_LINKAT=0; 19063 REPLACE_LSEEK=0; 19064 REPLACE_PREAD=0; 19065 REPLACE_PWRITE=0; 19066 REPLACE_READ=0; 19067 REPLACE_READLINK=0; 19068 REPLACE_READLINKAT=0; 19069 REPLACE_RMDIR=0; 19070 REPLACE_SLEEP=0; 19071 REPLACE_SYMLINK=0; 19072 REPLACE_SYMLINKAT=0; 19073 REPLACE_TRUNCATE=0; 19074 REPLACE_TTYNAME_R=0; 19075 REPLACE_UNLINK=0; 19076 REPLACE_UNLINKAT=0; 19077 REPLACE_USLEEP=0; 19078 REPLACE_WRITE=0; 19079 UNISTD_H_HAVE_WINSOCK2_H=0; 19080 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 19081 19082 19083 19084 19085 19086 for ac_header in $ac_header_list 19087do : 19088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19089ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 19090" 19091if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19092 cat >>confdefs.h <<_ACEOF 19093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19094_ACEOF 19095 19096fi 19097 19098done 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 if test $gl_cv_have_include_next = yes; then 19116 gl_cv_next_getopt_h='<'getopt.h'>' 19117 else 19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 19119$as_echo_n "checking absolute name of <getopt.h>... " >&6; } 19120if ${gl_cv_next_getopt_h+:} false; then : 19121 $as_echo_n "(cached) " >&6 19122else 19123 19124 if test $ac_cv_header_getopt_h = yes; then 19125 19126 19127 19128 19129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19130/* end confdefs.h. */ 19131#include <getopt.h> 19132_ACEOF 19133 case "$host_os" in 19134 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19135 *) gl_absname_cpp="$ac_cpp" ;; 19136 esac 19137 19138 case "$host_os" in 19139 mingw*) 19140 gl_dirsep_regex='[/\\]' 19141 ;; 19142 *) 19143 gl_dirsep_regex='\/' 19144 ;; 19145 esac 19146 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19147 gl_header_literal_regex=`echo 'getopt.h' \ 19148 | sed -e "$gl_make_literal_regex_sed"` 19149 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19150 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19151 s|^/[^/]|//&| 19152 p 19153 q 19154 }' 19155 19156 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19157 sed -n "$gl_absolute_header_sed"` 19158 19159 gl_header=$gl_cv_absolute_getopt_h 19160 gl_cv_next_getopt_h='"'$gl_header'"' 19161 else 19162 gl_cv_next_getopt_h='<'getopt.h'>' 19163 fi 19164 19165 19166fi 19167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 19168$as_echo "$gl_cv_next_getopt_h" >&6; } 19169 fi 19170 NEXT_GETOPT_H=$gl_cv_next_getopt_h 19171 19172 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19174 gl_next_as_first_directive='<'getopt.h'>' 19175 else 19176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19177 gl_next_as_first_directive=$gl_cv_next_getopt_h 19178 fi 19179 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive 19180 19181 19182 19183 19184 if test $ac_cv_header_getopt_h = yes; then 19185 HAVE_GETOPT_H=1 19186 else 19187 HAVE_GETOPT_H=0 19188 fi 19189 19190 19191 gl_replace_getopt= 19192 19193 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 19194 for ac_header in getopt.h 19195do : 19196 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 19197if test "x$ac_cv_header_getopt_h" = xyes; then : 19198 cat >>confdefs.h <<_ACEOF 19199#define HAVE_GETOPT_H 1 19200_ACEOF 19201 19202else 19203 gl_replace_getopt=yes 19204fi 19205 19206done 19207 19208 fi 19209 19210 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 19211 for ac_func in getopt_long_only 19212do : 19213 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 19214if test "x$ac_cv_func_getopt_long_only" = xyes; then : 19215 cat >>confdefs.h <<_ACEOF 19216#define HAVE_GETOPT_LONG_ONLY 1 19217_ACEOF 19218 19219else 19220 gl_replace_getopt=yes 19221fi 19222done 19223 19224 fi 19225 19226 if test -z "$gl_replace_getopt"; then 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 19228$as_echo_n "checking whether getopt is POSIX compatible... " >&6; } 19229if ${gl_cv_func_getopt_posix+:} false; then : 19230 $as_echo_n "(cached) " >&6 19231else 19232 19233 if test $cross_compiling = no; then 19234 if test "$cross_compiling" = yes; then : 19235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19237as_fn_error $? "cannot run test program while cross compiling 19238See \`config.log' for more details" "$LINENO" 5; } 19239else 19240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19241/* end confdefs.h. */ 19242 19243#include <unistd.h> 19244#include <stdlib.h> 19245#include <string.h> 19246 19247int 19248main () 19249{ 19250 static char program[] = "program"; 19251 static char a[] = "-a"; 19252 static char foo[] = "foo"; 19253 static char bar[] = "bar"; 19254 char *argv[] = { program, a, foo, bar, NULL }; 19255 int c; 19256 19257 c = getopt (4, argv, "ab"); 19258 if (!(c == 'a')) 19259 return 1; 19260 c = getopt (4, argv, "ab"); 19261 if (!(c == -1)) 19262 return 2; 19263 if (!(optind == 2)) 19264 return 3; 19265 return 0; 19266} 19267 19268_ACEOF 19269if ac_fn_c_try_run "$LINENO"; then : 19270 gl_cv_func_getopt_posix=maybe 19271else 19272 gl_cv_func_getopt_posix=no 19273fi 19274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19275 conftest.$ac_objext conftest.beam conftest.$ac_ext 19276fi 19277 19278 if test $gl_cv_func_getopt_posix = maybe; then 19279 if test "$cross_compiling" = yes; then : 19280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19282as_fn_error $? "cannot run test program while cross compiling 19283See \`config.log' for more details" "$LINENO" 5; } 19284else 19285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286/* end confdefs.h. */ 19287 19288#include <unistd.h> 19289#include <stdlib.h> 19290#include <string.h> 19291 19292int 19293main () 19294{ 19295 static char program[] = "program"; 19296 static char donald[] = "donald"; 19297 static char p[] = "-p"; 19298 static char billy[] = "billy"; 19299 static char duck[] = "duck"; 19300 static char a[] = "-a"; 19301 static char bar[] = "bar"; 19302 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; 19303 int c; 19304 19305 c = getopt (7, argv, "+abp:q:"); 19306 if (!(c == -1)) 19307 return 4; 19308 if (!(strcmp (argv[0], "program") == 0)) 19309 return 5; 19310 if (!(strcmp (argv[1], "donald") == 0)) 19311 return 6; 19312 if (!(strcmp (argv[2], "-p") == 0)) 19313 return 7; 19314 if (!(strcmp (argv[3], "billy") == 0)) 19315 return 8; 19316 if (!(strcmp (argv[4], "duck") == 0)) 19317 return 9; 19318 if (!(strcmp (argv[5], "-a") == 0)) 19319 return 10; 19320 if (!(strcmp (argv[6], "bar") == 0)) 19321 return 11; 19322 if (!(optind == 1)) 19323 return 12; 19324 return 0; 19325} 19326 19327_ACEOF 19328if ac_fn_c_try_run "$LINENO"; then : 19329 gl_cv_func_getopt_posix=maybe 19330else 19331 gl_cv_func_getopt_posix=no 19332fi 19333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19334 conftest.$ac_objext conftest.beam conftest.$ac_ext 19335fi 19336 19337 fi 19338 if test $gl_cv_func_getopt_posix = maybe; then 19339 if test "$cross_compiling" = yes; then : 19340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19342as_fn_error $? "cannot run test program while cross compiling 19343See \`config.log' for more details" "$LINENO" 5; } 19344else 19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19346/* end confdefs.h. */ 19347 19348#include <unistd.h> 19349#include <stdlib.h> 19350#include <string.h> 19351 19352int 19353main () 19354{ 19355 static char program[] = "program"; 19356 static char ab[] = "-ab"; 19357 char *argv[3] = { program, ab, NULL }; 19358 if (getopt (2, argv, "ab:") != 'a') 19359 return 13; 19360 if (getopt (2, argv, "ab:") != '?') 19361 return 14; 19362 if (optopt != 'b') 19363 return 15; 19364 if (optind != 2) 19365 return 16; 19366 return 0; 19367} 19368 19369_ACEOF 19370if ac_fn_c_try_run "$LINENO"; then : 19371 gl_cv_func_getopt_posix=yes 19372else 19373 gl_cv_func_getopt_posix=no 19374fi 19375rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19376 conftest.$ac_objext conftest.beam conftest.$ac_ext 19377fi 19378 19379 fi 19380 else 19381 case "$host_os" in 19382 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; 19383 *) gl_cv_func_getopt_posix="guessing yes";; 19384 esac 19385 fi 19386 19387fi 19388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 19389$as_echo "$gl_cv_func_getopt_posix" >&6; } 19390 case "$gl_cv_func_getopt_posix" in 19391 *no) gl_replace_getopt=yes ;; 19392 esac 19393 fi 19394 19395 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then 19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 19397$as_echo_n "checking for working GNU getopt function... " >&6; } 19398if ${gl_cv_func_getopt_gnu+:} false; then : 19399 $as_echo_n "(cached) " >&6 19400else 19401 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the 19402 # optstring is necessary for programs like m4 that have POSIX-mandated 19403 # semantics for supporting options interspersed with files. 19404 # Also, since getopt_long is a GNU extension, we require optind=0. 19405 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; 19406 # so take care to revert to the correct (non-)export state. 19407 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' 19408 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in 19409 xx) gl_had_POSIXLY_CORRECT=exported ;; 19410 x) gl_had_POSIXLY_CORRECT=yes ;; 19411 *) gl_had_POSIXLY_CORRECT= ;; 19412 esac 19413 POSIXLY_CORRECT=1 19414 export POSIXLY_CORRECT 19415 if test "$cross_compiling" = yes; then : 19416 gl_cv_func_getopt_gnu="guessing no" 19417 19418else 19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19420/* end confdefs.h. */ 19421#include <getopt.h> 19422 #include <stddef.h> 19423 #include <string.h> 19424 19425#include <stdlib.h> 19426#if defined __MACH__ && defined __APPLE__ 19427/* Avoid a crash on Mac OS X. */ 19428#include <mach/mach.h> 19429#include <mach/mach_error.h> 19430#include <mach/thread_status.h> 19431#include <mach/exception.h> 19432#include <mach/task.h> 19433#include <pthread.h> 19434/* The exception port on which our thread listens. */ 19435static mach_port_t our_exception_port; 19436/* The main function of the thread listening for exceptions of type 19437 EXC_BAD_ACCESS. */ 19438static void * 19439mach_exception_thread (void *arg) 19440{ 19441 /* Buffer for a message to be received. */ 19442 struct { 19443 mach_msg_header_t head; 19444 mach_msg_body_t msgh_body; 19445 char data[1024]; 19446 } msg; 19447 mach_msg_return_t retval; 19448 /* Wait for a message on the exception port. */ 19449 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), 19450 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); 19451 if (retval != MACH_MSG_SUCCESS) 19452 abort (); 19453 exit (1); 19454} 19455static void 19456nocrash_init (void) 19457{ 19458 mach_port_t self = mach_task_self (); 19459 /* Allocate a port on which the thread shall listen for exceptions. */ 19460 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) 19461 == KERN_SUCCESS) { 19462 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ 19463 if (mach_port_insert_right (self, our_exception_port, our_exception_port, 19464 MACH_MSG_TYPE_MAKE_SEND) 19465 == KERN_SUCCESS) { 19466 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting 19467 for us. */ 19468 exception_mask_t mask = EXC_MASK_BAD_ACCESS; 19469 /* Create the thread listening on the exception port. */ 19470 pthread_attr_t attr; 19471 pthread_t thread; 19472 if (pthread_attr_init (&attr) == 0 19473 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 19474 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { 19475 pthread_attr_destroy (&attr); 19476 /* Replace the exception port info for these exceptions with our own. 19477 Note that we replace the exception port for the entire task, not only 19478 for a particular thread. This has the effect that when our exception 19479 port gets the message, the thread specific exception port has already 19480 been asked, and we don't need to bother about it. 19481 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ 19482 task_set_exception_ports (self, mask, our_exception_port, 19483 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); 19484 } 19485 } 19486 } 19487} 19488#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 19489/* Avoid a crash on native Windows. */ 19490#define WIN32_LEAN_AND_MEAN 19491#include <windows.h> 19492#include <winerror.h> 19493static LONG WINAPI 19494exception_filter (EXCEPTION_POINTERS *ExceptionInfo) 19495{ 19496 switch (ExceptionInfo->ExceptionRecord->ExceptionCode) 19497 { 19498 case EXCEPTION_ACCESS_VIOLATION: 19499 case EXCEPTION_IN_PAGE_ERROR: 19500 case EXCEPTION_STACK_OVERFLOW: 19501 case EXCEPTION_GUARD_PAGE: 19502 case EXCEPTION_PRIV_INSTRUCTION: 19503 case EXCEPTION_ILLEGAL_INSTRUCTION: 19504 case EXCEPTION_DATATYPE_MISALIGNMENT: 19505 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: 19506 case EXCEPTION_NONCONTINUABLE_EXCEPTION: 19507 exit (1); 19508 } 19509 return EXCEPTION_CONTINUE_SEARCH; 19510} 19511static void 19512nocrash_init (void) 19513{ 19514 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); 19515} 19516#else 19517/* Avoid a crash on POSIX systems. */ 19518#include <signal.h> 19519#include <unistd.h> 19520/* A POSIX signal handler. */ 19521static void 19522exception_handler (int sig) 19523{ 19524 _exit (1); 19525} 19526static void 19527nocrash_init (void) 19528{ 19529#ifdef SIGSEGV 19530 signal (SIGSEGV, exception_handler); 19531#endif 19532#ifdef SIGBUS 19533 signal (SIGBUS, exception_handler); 19534#endif 19535} 19536#endif 19537 19538 19539int 19540main () 19541{ 19542 19543 int result = 0; 19544 19545 nocrash_init(); 19546 19547 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 19548 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 19549 OSF/1 5.1, Solaris 10. */ 19550 { 19551 static char conftest[] = "conftest"; 19552 static char plus[] = "-+"; 19553 char *argv[3] = { conftest, plus, NULL }; 19554 opterr = 0; 19555 if (getopt (2, argv, "+a") != '?') 19556 result |= 1; 19557 } 19558 /* This code succeeds on glibc 2.8, mingw, 19559 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 19560 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 19561 { 19562 static char program[] = "program"; 19563 static char p[] = "-p"; 19564 static char foo[] = "foo"; 19565 static char bar[] = "bar"; 19566 char *argv[] = { program, p, foo, bar, NULL }; 19567 19568 optind = 1; 19569 if (getopt (4, argv, "p::") != 'p') 19570 result |= 2; 19571 else if (optarg != NULL) 19572 result |= 4; 19573 else if (getopt (4, argv, "p::") != -1) 19574 result |= 6; 19575 else if (optind != 2) 19576 result |= 8; 19577 } 19578 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ 19579 { 19580 static char program[] = "program"; 19581 static char foo[] = "foo"; 19582 static char p[] = "-p"; 19583 char *argv[] = { program, foo, p, NULL }; 19584 optind = 0; 19585 if (getopt (3, argv, "-p") != 1) 19586 result |= 16; 19587 else if (getopt (3, argv, "-p") != 'p') 19588 result |= 16; 19589 } 19590 /* This code fails on glibc 2.11. */ 19591 { 19592 static char program[] = "program"; 19593 static char b[] = "-b"; 19594 static char a[] = "-a"; 19595 char *argv[] = { program, b, a, NULL }; 19596 optind = opterr = 0; 19597 if (getopt (3, argv, "+:a:b") != 'b') 19598 result |= 32; 19599 else if (getopt (3, argv, "+:a:b") != ':') 19600 result |= 32; 19601 } 19602 /* This code dumps core on glibc 2.14. */ 19603 { 19604 static char program[] = "program"; 19605 static char w[] = "-W"; 19606 static char dummy[] = "dummy"; 19607 char *argv[] = { program, w, dummy, NULL }; 19608 optind = opterr = 1; 19609 if (getopt (3, argv, "W;") != 'W') 19610 result |= 64; 19611 } 19612 return result; 19613 19614 ; 19615 return 0; 19616} 19617_ACEOF 19618if ac_fn_c_try_run "$LINENO"; then : 19619 gl_cv_func_getopt_gnu=yes 19620else 19621 gl_cv_func_getopt_gnu=no 19622fi 19623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19624 conftest.$ac_objext conftest.beam conftest.$ac_ext 19625fi 19626 19627 case $gl_had_POSIXLY_CORRECT in 19628 exported) ;; 19629 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; 19630 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; 19631 esac 19632 19633fi 19634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 19635$as_echo "$gl_cv_func_getopt_gnu" >&6; } 19636 if test "$gl_cv_func_getopt_gnu" != yes; then 19637 gl_replace_getopt=yes 19638 else 19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 19640$as_echo_n "checking for working GNU getopt_long function... " >&6; } 19641if ${gl_cv_func_getopt_long_gnu+:} false; then : 19642 $as_echo_n "(cached) " >&6 19643else 19644 if test "$cross_compiling" = yes; then : 19645 case "$host_os" in 19646 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; 19647 *) gl_cv_func_getopt_long_gnu="guessing yes";; 19648 esac 19649 19650else 19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19652/* end confdefs.h. */ 19653#include <getopt.h> 19654 #include <stddef.h> 19655 #include <string.h> 19656 19657int 19658main () 19659{ 19660static const struct option long_options[] = 19661 { 19662 { "xtremely-",no_argument, NULL, 1003 }, 19663 { "xtra", no_argument, NULL, 1001 }, 19664 { "xtreme", no_argument, NULL, 1002 }, 19665 { "xtremely", no_argument, NULL, 1003 }, 19666 { NULL, 0, NULL, 0 } 19667 }; 19668 /* This code fails on OpenBSD 5.0. */ 19669 { 19670 static char program[] = "program"; 19671 static char xtremel[] = "--xtremel"; 19672 char *argv[] = { program, xtremel, NULL }; 19673 int option_index; 19674 optind = 1; opterr = 0; 19675 if (getopt_long (2, argv, "", long_options, &option_index) != 1003) 19676 return 1; 19677 } 19678 return 0; 19679 19680 ; 19681 return 0; 19682} 19683_ACEOF 19684if ac_fn_c_try_run "$LINENO"; then : 19685 gl_cv_func_getopt_long_gnu=yes 19686else 19687 gl_cv_func_getopt_long_gnu=no 19688fi 19689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19690 conftest.$ac_objext conftest.beam conftest.$ac_ext 19691fi 19692 19693 19694fi 19695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 19696$as_echo "$gl_cv_func_getopt_long_gnu" >&6; } 19697 case "$gl_cv_func_getopt_long_gnu" in 19698 *yes) ;; 19699 *) gl_replace_getopt=yes ;; 19700 esac 19701 fi 19702 fi 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 if test $gl_cv_have_include_next = yes; then 19723 gl_cv_next_limits_h='<'limits.h'>' 19724 else 19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5 19726$as_echo_n "checking absolute name of <limits.h>... " >&6; } 19727if ${gl_cv_next_limits_h+:} false; then : 19728 $as_echo_n "(cached) " >&6 19729else 19730 19731 if test $ac_cv_header_limits_h = yes; then 19732 19733 19734 19735 19736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19737/* end confdefs.h. */ 19738#include <limits.h> 19739_ACEOF 19740 case "$host_os" in 19741 aix*) gl_absname_cpp="$ac_cpp -C" ;; 19742 *) gl_absname_cpp="$ac_cpp" ;; 19743 esac 19744 19745 case "$host_os" in 19746 mingw*) 19747 gl_dirsep_regex='[/\\]' 19748 ;; 19749 *) 19750 gl_dirsep_regex='\/' 19751 ;; 19752 esac 19753 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 19754 gl_header_literal_regex=`echo 'limits.h' \ 19755 | sed -e "$gl_make_literal_regex_sed"` 19756 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 19757 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 19758 s|^/[^/]|//&| 19759 p 19760 q 19761 }' 19762 19763 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 19764 sed -n "$gl_absolute_header_sed"` 19765 19766 gl_header=$gl_cv_absolute_limits_h 19767 gl_cv_next_limits_h='"'$gl_header'"' 19768 else 19769 gl_cv_next_limits_h='<'limits.h'>' 19770 fi 19771 19772 19773fi 19774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5 19775$as_echo "$gl_cv_next_limits_h" >&6; } 19776 fi 19777 NEXT_LIMITS_H=$gl_cv_next_limits_h 19778 19779 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 19780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 19781 gl_next_as_first_directive='<'limits.h'>' 19782 else 19783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 19784 gl_next_as_first_directive=$gl_cv_next_limits_h 19785 fi 19786 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive 19787 19788 19789 19790 19791 19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5 19793$as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; } 19794if ${gl_cv_header_limits_width+:} false; then : 19795 $as_echo_n "(cached) " >&6 19796else 19797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19798/* end confdefs.h. */ 19799#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 19800 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 19801 #endif 19802 #include <limits.h> 19803 int ullw = ULLONG_WIDTH; 19804int 19805main () 19806{ 19807 19808 ; 19809 return 0; 19810} 19811_ACEOF 19812if ac_fn_c_try_compile "$LINENO"; then : 19813 gl_cv_header_limits_width=yes 19814else 19815 gl_cv_header_limits_width=no 19816fi 19817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19818fi 19819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5 19820$as_echo "$gl_cv_header_limits_width" >&6; } 19821 if test "$gl_cv_header_limits_width" = yes; then 19822 LIMITS_H= 19823 else 19824 LIMITS_H=limits.h 19825 fi 19826 19827 if test -n "$LIMITS_H"; then 19828 GL_GENERATE_LIMITS_H_TRUE= 19829 GL_GENERATE_LIMITS_H_FALSE='#' 19830else 19831 GL_GENERATE_LIMITS_H_TRUE='#' 19832 GL_GENERATE_LIMITS_H_FALSE= 19833fi 19834 19835 19836 19837 GNULIB__EXIT=0; 19838 GNULIB_ATOLL=0; 19839 GNULIB_CALLOC_POSIX=0; 19840 GNULIB_CANONICALIZE_FILE_NAME=0; 19841 GNULIB_GETLOADAVG=0; 19842 GNULIB_GETSUBOPT=0; 19843 GNULIB_GRANTPT=0; 19844 GNULIB_MALLOC_POSIX=0; 19845 GNULIB_MBTOWC=0; 19846 GNULIB_MKDTEMP=0; 19847 GNULIB_MKOSTEMP=0; 19848 GNULIB_MKOSTEMPS=0; 19849 GNULIB_MKSTEMP=0; 19850 GNULIB_MKSTEMPS=0; 19851 GNULIB_POSIX_OPENPT=0; 19852 GNULIB_PTSNAME=0; 19853 GNULIB_PTSNAME_R=0; 19854 GNULIB_PUTENV=0; 19855 GNULIB_QSORT_R=0; 19856 GNULIB_RANDOM=0; 19857 GNULIB_RANDOM_R=0; 19858 GNULIB_REALLOCARRAY=0; 19859 GNULIB_REALLOC_POSIX=0; 19860 GNULIB_REALPATH=0; 19861 GNULIB_RPMATCH=0; 19862 GNULIB_SECURE_GETENV=0; 19863 GNULIB_SETENV=0; 19864 GNULIB_STRTOD=0; 19865 GNULIB_STRTOLL=0; 19866 GNULIB_STRTOULL=0; 19867 GNULIB_SYSTEM_POSIX=0; 19868 GNULIB_UNLOCKPT=0; 19869 GNULIB_UNSETENV=0; 19870 GNULIB_WCTOMB=0; 19871 HAVE__EXIT=1; 19872 HAVE_ATOLL=1; 19873 HAVE_CANONICALIZE_FILE_NAME=1; 19874 HAVE_DECL_GETLOADAVG=1; 19875 HAVE_GETSUBOPT=1; 19876 HAVE_GRANTPT=1; 19877 HAVE_DECL_INITSTATE=1; 19878 HAVE_MKDTEMP=1; 19879 HAVE_MKOSTEMP=1; 19880 HAVE_MKOSTEMPS=1; 19881 HAVE_MKSTEMP=1; 19882 HAVE_MKSTEMPS=1; 19883 HAVE_POSIX_OPENPT=1; 19884 HAVE_PTSNAME=1; 19885 HAVE_PTSNAME_R=1; 19886 HAVE_QSORT_R=1; 19887 HAVE_RANDOM=1; 19888 HAVE_RANDOM_H=1; 19889 HAVE_RANDOM_R=1; 19890 HAVE_REALLOCARRAY=1; 19891 HAVE_REALPATH=1; 19892 HAVE_RPMATCH=1; 19893 HAVE_SECURE_GETENV=1; 19894 HAVE_SETENV=1; 19895 HAVE_DECL_SETENV=1; 19896 HAVE_DECL_SETSTATE=1; 19897 HAVE_STRTOD=1; 19898 HAVE_STRTOLL=1; 19899 HAVE_STRTOULL=1; 19900 HAVE_STRUCT_RANDOM_DATA=1; 19901 HAVE_SYS_LOADAVG_H=0; 19902 HAVE_UNLOCKPT=1; 19903 HAVE_DECL_UNSETENV=1; 19904 REPLACE_CALLOC=0; 19905 REPLACE_CANONICALIZE_FILE_NAME=0; 19906 REPLACE_MALLOC=0; 19907 REPLACE_MBTOWC=0; 19908 REPLACE_MKSTEMP=0; 19909 REPLACE_PTSNAME=0; 19910 REPLACE_PTSNAME_R=0; 19911 REPLACE_PUTENV=0; 19912 REPLACE_QSORT_R=0; 19913 REPLACE_RANDOM_R=0; 19914 REPLACE_REALLOC=0; 19915 REPLACE_REALPATH=0; 19916 REPLACE_SETENV=0; 19917 REPLACE_STRTOD=0; 19918 REPLACE_UNSETENV=0; 19919 REPLACE_WCTOMB=0; 19920 19921 19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5 19923$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; } 19924if ${gl_cv_func_malloc_posix+:} false; then : 19925 $as_echo_n "(cached) " >&6 19926else 19927 19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19929/* end confdefs.h. */ 19930 19931int 19932main () 19933{ 19934#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 19935 choke me 19936 #endif 19937 19938 ; 19939 return 0; 19940} 19941_ACEOF 19942if ac_fn_c_try_compile "$LINENO"; then : 19943 gl_cv_func_malloc_posix=yes 19944else 19945 gl_cv_func_malloc_posix=no 19946fi 19947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19948 19949fi 19950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5 19951$as_echo "$gl_cv_func_malloc_posix" >&6; } 19952 19953 19954 19955 19956 19957 if test $ac_cv_func__set_invalid_parameter_handler = yes; then 19958 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 19959 19960$as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h 19961 19962 else 19963 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 19964 fi 19965 19966 19967 19968 19969 19970 19971 gl_cv_c_multiarch=no 19972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19973/* end confdefs.h. */ 19974#ifndef __APPLE_CC__ 19975 not a universal capable compiler 19976 #endif 19977 typedef int dummy; 19978 19979_ACEOF 19980if ac_fn_c_try_compile "$LINENO"; then : 19981 19982 arch= 19983 prev= 19984 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do 19985 if test -n "$prev"; then 19986 case $word in 19987 i?86 | x86_64 | ppc | ppc64) 19988 if test -z "$arch" || test "$arch" = "$word"; then 19989 arch="$word" 19990 else 19991 gl_cv_c_multiarch=yes 19992 fi 19993 ;; 19994 esac 19995 prev= 19996 else 19997 if test "x$word" = "x-arch"; then 19998 prev=arch 19999 fi 20000 fi 20001 done 20002 20003fi 20004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20005 if test $gl_cv_c_multiarch = yes; then 20006 APPLE_UNIVERSAL_BUILD=1 20007 else 20008 APPLE_UNIVERSAL_BUILD=0 20009 fi 20010 20011 20012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 20013$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 20014if ${ac_cv_header_stdbool_h+:} false; then : 20015 $as_echo_n "(cached) " >&6 20016else 20017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20018/* end confdefs.h. */ 20019 20020 #include <stdbool.h> 20021 20022 #ifdef __cplusplus 20023 typedef bool Bool; 20024 #else 20025 typedef _Bool Bool; 20026 #ifndef bool 20027 "error: bool is not defined" 20028 #endif 20029 #ifndef false 20030 "error: false is not defined" 20031 #endif 20032 #if false 20033 "error: false is not 0" 20034 #endif 20035 #ifndef true 20036 "error: true is not defined" 20037 #endif 20038 #if true != 1 20039 "error: true is not 1" 20040 #endif 20041 #endif 20042 20043 #ifndef __bool_true_false_are_defined 20044 "error: __bool_true_false_are_defined is not defined" 20045 #endif 20046 20047 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s; 20048 20049 char a[true == 1 ? 1 : -1]; 20050 char b[false == 0 ? 1 : -1]; 20051 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 20052 char d[(bool) 0.5 == true ? 1 : -1]; 20053 /* See body of main program for 'e'. */ 20054 char f[(Bool) 0.0 == false ? 1 : -1]; 20055 char g[true]; 20056 char h[sizeof (Bool)]; 20057 char i[sizeof s.t]; 20058 enum { j = false, k = true, l = false * true, m = true * 256 }; 20059 /* The following fails for 20060 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 20061 Bool n[m]; 20062 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 20063 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 20064 /* Catch a bug in an HP-UX C compiler. See 20065 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 20066 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html 20067 */ 20068 Bool q = true; 20069 Bool *pq = &q; 20070 bool *qq = &q; 20071 20072int 20073main () 20074{ 20075 20076 bool e = &s; 20077 *pq |= q; *pq |= ! q; 20078 *qq |= q; *qq |= ! q; 20079 /* Refer to every declared value, to avoid compiler optimizations. */ 20080 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 20081 + !m + !n + !o + !p + !q + !pq + !qq); 20082 20083 ; 20084 return 0; 20085} 20086_ACEOF 20087if ac_fn_c_try_compile "$LINENO"; then : 20088 ac_cv_header_stdbool_h=yes 20089else 20090 ac_cv_header_stdbool_h=no 20091fi 20092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20093fi 20094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 20095$as_echo "$ac_cv_header_stdbool_h" >&6; } 20096 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 20097if test "x$ac_cv_type__Bool" = xyes; then : 20098 20099cat >>confdefs.h <<_ACEOF 20100#define HAVE__BOOL 1 20101_ACEOF 20102 20103 20104fi 20105 20106 20107 20108 REPLACE_NULL=0; 20109 HAVE_MAX_ALIGN_T=1; 20110 HAVE_WCHAR_T=1; 20111 20112 20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 20114$as_echo_n "checking for wchar_t... " >&6; } 20115if ${gt_cv_c_wchar_t+:} false; then : 20116 $as_echo_n "(cached) " >&6 20117else 20118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20119/* end confdefs.h. */ 20120#include <stddef.h> 20121 wchar_t foo = (wchar_t)'\0'; 20122int 20123main () 20124{ 20125 20126 ; 20127 return 0; 20128} 20129_ACEOF 20130if ac_fn_c_try_compile "$LINENO"; then : 20131 gt_cv_c_wchar_t=yes 20132else 20133 gt_cv_c_wchar_t=no 20134fi 20135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20136fi 20137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 20138$as_echo "$gt_cv_c_wchar_t" >&6; } 20139 if test $gt_cv_c_wchar_t = yes; then 20140 20141$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 20142 20143 fi 20144 20145 20146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 20147$as_echo_n "checking for wint_t... " >&6; } 20148if ${gt_cv_c_wint_t+:} false; then : 20149 $as_echo_n "(cached) " >&6 20150else 20151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20152/* end confdefs.h. */ 20153 20154/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 20155 <wchar.h>. 20156 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 20157 before <wchar.h>. */ 20158#include <stddef.h> 20159#include <stdio.h> 20160#include <time.h> 20161#include <wchar.h> 20162 wint_t foo = (wchar_t)'\0'; 20163int 20164main () 20165{ 20166 20167 ; 20168 return 0; 20169} 20170_ACEOF 20171if ac_fn_c_try_compile "$LINENO"; then : 20172 gt_cv_c_wint_t=yes 20173else 20174 gt_cv_c_wint_t=no 20175fi 20176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20177fi 20178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 20179$as_echo "$gt_cv_c_wint_t" >&6; } 20180 if test $gt_cv_c_wint_t = yes; then 20181 20182$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 20183 20184 20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5 20186$as_echo_n "checking whether wint_t is too small... " >&6; } 20187if ${gl_cv_type_wint_t_too_small+:} false; then : 20188 $as_echo_n "(cached) " >&6 20189else 20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20191/* end confdefs.h. */ 20192 20193/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 20194 <wchar.h>. 20195 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20196 included before <wchar.h>. */ 20197#if !(defined __GLIBC__ && !defined __UCLIBC__) 20198# include <stddef.h> 20199# include <stdio.h> 20200# include <time.h> 20201#endif 20202#include <wchar.h> 20203 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1]; 20204 20205int 20206main () 20207{ 20208 20209 ; 20210 return 0; 20211} 20212_ACEOF 20213if ac_fn_c_try_compile "$LINENO"; then : 20214 gl_cv_type_wint_t_too_small=no 20215else 20216 gl_cv_type_wint_t_too_small=yes 20217fi 20218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20219fi 20220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5 20221$as_echo "$gl_cv_type_wint_t_too_small" >&6; } 20222 if test $gl_cv_type_wint_t_too_small = yes; then 20223 GNULIB_OVERRIDES_WINT_T=1 20224 else 20225 GNULIB_OVERRIDES_WINT_T=0 20226 fi 20227 else 20228 GNULIB_OVERRIDES_WINT_T=0 20229 fi 20230 20231 20232 20233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 20234$as_echo_n "checking for unsigned long long int... " >&6; } 20235if ${ac_cv_type_unsigned_long_long_int+:} false; then : 20236 $as_echo_n "(cached) " >&6 20237else 20238 ac_cv_type_unsigned_long_long_int=yes 20239 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 20240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20241/* end confdefs.h. */ 20242 20243 /* For now, do not test the preprocessor; as of 2007 there are too many 20244 implementations with broken preprocessors. Perhaps this can 20245 be revisited in 2012. In the meantime, code should not expect 20246 #if to work with literals wider than 32 bits. */ 20247 /* Test literals. */ 20248 long long int ll = 9223372036854775807ll; 20249 long long int nll = -9223372036854775807LL; 20250 unsigned long long int ull = 18446744073709551615ULL; 20251 /* Test constant expressions. */ 20252 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 20253 ? 1 : -1)]; 20254 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 20255 ? 1 : -1)]; 20256 int i = 63; 20257int 20258main () 20259{ 20260/* Test availability of runtime routines for shift and division. */ 20261 long long int llmax = 9223372036854775807ll; 20262 unsigned long long int ullmax = 18446744073709551615ull; 20263 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 20264 | (llmax / ll) | (llmax % ll) 20265 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 20266 | (ullmax / ull) | (ullmax % ull)); 20267 ; 20268 return 0; 20269} 20270 20271_ACEOF 20272if ac_fn_c_try_link "$LINENO"; then : 20273 20274else 20275 ac_cv_type_unsigned_long_long_int=no 20276fi 20277rm -f core conftest.err conftest.$ac_objext \ 20278 conftest$ac_exeext conftest.$ac_ext 20279 fi 20280fi 20281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 20282$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 20283 if test $ac_cv_type_unsigned_long_long_int = yes; then 20284 20285$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 20286 20287 fi 20288 20289 20290 20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 20292$as_echo_n "checking for long long int... " >&6; } 20293if ${ac_cv_type_long_long_int+:} false; then : 20294 $as_echo_n "(cached) " >&6 20295else 20296 ac_cv_type_long_long_int=yes 20297 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 20298 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 20299 if test $ac_cv_type_long_long_int = yes; then 20300 if test "$cross_compiling" = yes; then : 20301 : 20302else 20303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20304/* end confdefs.h. */ 20305#include <limits.h> 20306 #ifndef LLONG_MAX 20307 # define HALF \ 20308 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 20309 # define LLONG_MAX (HALF - 1 + HALF) 20310 #endif 20311int 20312main () 20313{ 20314long long int n = 1; 20315 int i; 20316 for (i = 0; ; i++) 20317 { 20318 long long int m = n << i; 20319 if (m >> i != n) 20320 return 1; 20321 if (LLONG_MAX / 2 < m) 20322 break; 20323 } 20324 return 0; 20325 ; 20326 return 0; 20327} 20328_ACEOF 20329if ac_fn_c_try_run "$LINENO"; then : 20330 20331else 20332 ac_cv_type_long_long_int=no 20333fi 20334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20335 conftest.$ac_objext conftest.beam conftest.$ac_ext 20336fi 20337 20338 fi 20339 fi 20340fi 20341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 20342$as_echo "$ac_cv_type_long_long_int" >&6; } 20343 if test $ac_cv_type_long_long_int = yes; then 20344 20345$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 20346 20347 fi 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 if test $ac_cv_type_long_long_int = yes; then 20360 HAVE_LONG_LONG_INT=1 20361 else 20362 HAVE_LONG_LONG_INT=0 20363 fi 20364 20365 20366 if test $ac_cv_type_unsigned_long_long_int = yes; then 20367 HAVE_UNSIGNED_LONG_LONG_INT=1 20368 else 20369 HAVE_UNSIGNED_LONG_LONG_INT=0 20370 fi 20371 20372 20373 20374 if test $ac_cv_header_wchar_h = yes; then 20375 HAVE_WCHAR_H=1 20376 else 20377 HAVE_WCHAR_H=0 20378 fi 20379 20380 20381 if test $ac_cv_header_inttypes_h = yes; then 20382 HAVE_INTTYPES_H=1 20383 else 20384 HAVE_INTTYPES_H=0 20385 fi 20386 20387 20388 if test $ac_cv_header_sys_types_h = yes; then 20389 HAVE_SYS_TYPES_H=1 20390 else 20391 HAVE_SYS_TYPES_H=0 20392 fi 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 if test $gl_cv_have_include_next = yes; then 20405 gl_cv_next_stdint_h='<'stdint.h'>' 20406 else 20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 20408$as_echo_n "checking absolute name of <stdint.h>... " >&6; } 20409if ${gl_cv_next_stdint_h+:} false; then : 20410 $as_echo_n "(cached) " >&6 20411else 20412 20413 if test $ac_cv_header_stdint_h = yes; then 20414 20415 20416 20417 20418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20419/* end confdefs.h. */ 20420#include <stdint.h> 20421_ACEOF 20422 case "$host_os" in 20423 aix*) gl_absname_cpp="$ac_cpp -C" ;; 20424 *) gl_absname_cpp="$ac_cpp" ;; 20425 esac 20426 20427 case "$host_os" in 20428 mingw*) 20429 gl_dirsep_regex='[/\\]' 20430 ;; 20431 *) 20432 gl_dirsep_regex='\/' 20433 ;; 20434 esac 20435 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 20436 gl_header_literal_regex=`echo 'stdint.h' \ 20437 | sed -e "$gl_make_literal_regex_sed"` 20438 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 20439 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 20440 s|^/[^/]|//&| 20441 p 20442 q 20443 }' 20444 20445 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 20446 sed -n "$gl_absolute_header_sed"` 20447 20448 gl_header=$gl_cv_absolute_stdint_h 20449 gl_cv_next_stdint_h='"'$gl_header'"' 20450 else 20451 gl_cv_next_stdint_h='<'stdint.h'>' 20452 fi 20453 20454 20455fi 20456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 20457$as_echo "$gl_cv_next_stdint_h" >&6; } 20458 fi 20459 NEXT_STDINT_H=$gl_cv_next_stdint_h 20460 20461 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 20462 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 20463 gl_next_as_first_directive='<'stdint.h'>' 20464 else 20465 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 20466 gl_next_as_first_directive=$gl_cv_next_stdint_h 20467 fi 20468 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive 20469 20470 20471 20472 20473 if test $ac_cv_header_stdint_h = yes; then 20474 HAVE_STDINT_H=1 20475 else 20476 HAVE_STDINT_H=0 20477 fi 20478 20479 20480 if test $ac_cv_header_stdint_h = yes; then 20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 20482$as_echo_n "checking whether stdint.h conforms to C99... " >&6; } 20483if ${gl_cv_header_working_stdint_h+:} false; then : 20484 $as_echo_n "(cached) " >&6 20485else 20486 gl_cv_header_working_stdint_h=no 20487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20488/* end confdefs.h. */ 20489 20490 20491#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 20492#define __STDC_CONSTANT_MACROS 1 20493#define __STDC_LIMIT_MACROS 1 20494#include <stdint.h> 20495/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ 20496#if !(defined WCHAR_MIN && defined WCHAR_MAX) 20497#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" 20498#endif 20499 20500 20501 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20502 included before <wchar.h>. */ 20503 #include <stddef.h> 20504 #include <signal.h> 20505 #if HAVE_WCHAR_H 20506 # include <stdio.h> 20507 # include <time.h> 20508 # include <wchar.h> 20509 #endif 20510 20511 20512#ifdef INT8_MAX 20513int8_t a1 = INT8_MAX; 20514int8_t a1min = INT8_MIN; 20515#endif 20516#ifdef INT16_MAX 20517int16_t a2 = INT16_MAX; 20518int16_t a2min = INT16_MIN; 20519#endif 20520#ifdef INT32_MAX 20521int32_t a3 = INT32_MAX; 20522int32_t a3min = INT32_MIN; 20523#endif 20524#ifdef INT64_MAX 20525int64_t a4 = INT64_MAX; 20526int64_t a4min = INT64_MIN; 20527#endif 20528#ifdef UINT8_MAX 20529uint8_t b1 = UINT8_MAX; 20530#else 20531typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; 20532#endif 20533#ifdef UINT16_MAX 20534uint16_t b2 = UINT16_MAX; 20535#endif 20536#ifdef UINT32_MAX 20537uint32_t b3 = UINT32_MAX; 20538#endif 20539#ifdef UINT64_MAX 20540uint64_t b4 = UINT64_MAX; 20541#endif 20542int_least8_t c1 = INT8_C (0x7f); 20543int_least8_t c1max = INT_LEAST8_MAX; 20544int_least8_t c1min = INT_LEAST8_MIN; 20545int_least16_t c2 = INT16_C (0x7fff); 20546int_least16_t c2max = INT_LEAST16_MAX; 20547int_least16_t c2min = INT_LEAST16_MIN; 20548int_least32_t c3 = INT32_C (0x7fffffff); 20549int_least32_t c3max = INT_LEAST32_MAX; 20550int_least32_t c3min = INT_LEAST32_MIN; 20551int_least64_t c4 = INT64_C (0x7fffffffffffffff); 20552int_least64_t c4max = INT_LEAST64_MAX; 20553int_least64_t c4min = INT_LEAST64_MIN; 20554uint_least8_t d1 = UINT8_C (0xff); 20555uint_least8_t d1max = UINT_LEAST8_MAX; 20556uint_least16_t d2 = UINT16_C (0xffff); 20557uint_least16_t d2max = UINT_LEAST16_MAX; 20558uint_least32_t d3 = UINT32_C (0xffffffff); 20559uint_least32_t d3max = UINT_LEAST32_MAX; 20560uint_least64_t d4 = UINT64_C (0xffffffffffffffff); 20561uint_least64_t d4max = UINT_LEAST64_MAX; 20562int_fast8_t e1 = INT_FAST8_MAX; 20563int_fast8_t e1min = INT_FAST8_MIN; 20564int_fast16_t e2 = INT_FAST16_MAX; 20565int_fast16_t e2min = INT_FAST16_MIN; 20566int_fast32_t e3 = INT_FAST32_MAX; 20567int_fast32_t e3min = INT_FAST32_MIN; 20568int_fast64_t e4 = INT_FAST64_MAX; 20569int_fast64_t e4min = INT_FAST64_MIN; 20570uint_fast8_t f1 = UINT_FAST8_MAX; 20571uint_fast16_t f2 = UINT_FAST16_MAX; 20572uint_fast32_t f3 = UINT_FAST32_MAX; 20573uint_fast64_t f4 = UINT_FAST64_MAX; 20574#ifdef INTPTR_MAX 20575intptr_t g = INTPTR_MAX; 20576intptr_t gmin = INTPTR_MIN; 20577#endif 20578#ifdef UINTPTR_MAX 20579uintptr_t h = UINTPTR_MAX; 20580#endif 20581intmax_t i = INTMAX_MAX; 20582uintmax_t j = UINTMAX_MAX; 20583 20584/* Check that SIZE_MAX has the correct type, if possible. */ 20585#if 201112 <= __STDC_VERSION__ 20586int k = _Generic (SIZE_MAX, size_t: 0); 20587#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \ 20588 || (0x5110 <= __SUNPRO_C && !__STDC__)) 20589extern size_t k; 20590extern __typeof__ (SIZE_MAX) k; 20591#endif 20592 20593#include <limits.h> /* for CHAR_BIT */ 20594#define TYPE_MINIMUM(t) \ 20595 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) 20596#define TYPE_MAXIMUM(t) \ 20597 ((t) ((t) 0 < (t) -1 \ 20598 ? (t) -1 \ 20599 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 20600struct s { 20601 int check_PTRDIFF: 20602 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) 20603 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) 20604 ? 1 : -1; 20605 /* Detect bug in FreeBSD 6.0 / ia64. */ 20606 int check_SIG_ATOMIC: 20607 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) 20608 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) 20609 ? 1 : -1; 20610 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; 20611 int check_WCHAR: 20612 WCHAR_MIN == TYPE_MINIMUM (wchar_t) 20613 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) 20614 ? 1 : -1; 20615 /* Detect bug in mingw. */ 20616 int check_WINT: 20617 WINT_MIN == TYPE_MINIMUM (wint_t) 20618 && WINT_MAX == TYPE_MAXIMUM (wint_t) 20619 ? 1 : -1; 20620 20621 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ 20622 int check_UINT8_C: 20623 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; 20624 int check_UINT16_C: 20625 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; 20626 20627 /* Detect bugs in OpenBSD 3.9 stdint.h. */ 20628#ifdef UINT8_MAX 20629 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; 20630#endif 20631#ifdef UINT16_MAX 20632 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; 20633#endif 20634#ifdef UINT32_MAX 20635 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; 20636#endif 20637#ifdef UINT64_MAX 20638 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; 20639#endif 20640 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; 20641 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; 20642 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; 20643 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; 20644 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; 20645 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; 20646 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; 20647 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; 20648 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; 20649 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; 20650 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; 20651}; 20652 20653int 20654main () 20655{ 20656 20657 ; 20658 return 0; 20659} 20660_ACEOF 20661if ac_fn_c_try_compile "$LINENO"; then : 20662 if test "$cross_compiling" = yes; then : 20663 case "$host_os" in 20664 # Guess yes on native Windows. 20665 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;; 20666 # In general, assume it works. 20667 *) gl_cv_header_working_stdint_h="guessing yes" ;; 20668 esac 20669 20670else 20671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20672/* end confdefs.h. */ 20673 20674 20675#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 20676#define __STDC_CONSTANT_MACROS 1 20677#define __STDC_LIMIT_MACROS 1 20678#include <stdint.h> 20679 20680 20681 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20682 included before <wchar.h>. */ 20683 #include <stddef.h> 20684 #include <signal.h> 20685 #if HAVE_WCHAR_H 20686 # include <stdio.h> 20687 # include <time.h> 20688 # include <wchar.h> 20689 #endif 20690 20691 20692#include <stdio.h> 20693#include <string.h> 20694#define MVAL(macro) MVAL1(macro) 20695#define MVAL1(expression) #expression 20696static const char *macro_values[] = 20697 { 20698#ifdef INT8_MAX 20699 MVAL (INT8_MAX), 20700#endif 20701#ifdef INT16_MAX 20702 MVAL (INT16_MAX), 20703#endif 20704#ifdef INT32_MAX 20705 MVAL (INT32_MAX), 20706#endif 20707#ifdef INT64_MAX 20708 MVAL (INT64_MAX), 20709#endif 20710#ifdef UINT8_MAX 20711 MVAL (UINT8_MAX), 20712#endif 20713#ifdef UINT16_MAX 20714 MVAL (UINT16_MAX), 20715#endif 20716#ifdef UINT32_MAX 20717 MVAL (UINT32_MAX), 20718#endif 20719#ifdef UINT64_MAX 20720 MVAL (UINT64_MAX), 20721#endif 20722 NULL 20723 }; 20724 20725int 20726main () 20727{ 20728 20729 const char **mv; 20730 for (mv = macro_values; *mv != NULL; mv++) 20731 { 20732 const char *value = *mv; 20733 /* Test whether it looks like a cast expression. */ 20734 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 20735 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 20736 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 20737 || strncmp (value, "((int)"/*)*/, 6) == 0 20738 || strncmp (value, "((signed short)"/*)*/, 15) == 0 20739 || strncmp (value, "((signed char)"/*)*/, 14) == 0) 20740 return mv - macro_values + 1; 20741 } 20742 return 0; 20743 20744 ; 20745 return 0; 20746} 20747_ACEOF 20748if ac_fn_c_try_run "$LINENO"; then : 20749 gl_cv_header_working_stdint_h=yes 20750fi 20751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20752 conftest.$ac_objext conftest.beam conftest.$ac_ext 20753fi 20754 20755 20756fi 20757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20758 20759fi 20760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 20761$as_echo "$gl_cv_header_working_stdint_h" >&6; } 20762 fi 20763 20764 HAVE_C99_STDINT_H=0 20765 HAVE_SYS_BITYPES_H=0 20766 HAVE_SYS_INTTYPES_H=0 20767 STDINT_H=stdint.h 20768 case "$gl_cv_header_working_stdint_h" in 20769 *yes) 20770 HAVE_C99_STDINT_H=1 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5 20772$as_echo_n "checking whether stdint.h predates C++11... " >&6; } 20773if ${gl_cv_header_stdint_predates_cxx11_h+:} false; then : 20774 $as_echo_n "(cached) " >&6 20775else 20776 gl_cv_header_stdint_predates_cxx11_h=yes 20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20778/* end confdefs.h. */ 20779 20780 20781#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ 20782#include <stdint.h> 20783 20784 20785 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20786 included before <wchar.h>. */ 20787 #include <stddef.h> 20788 #include <signal.h> 20789 #if HAVE_WCHAR_H 20790 # include <stdio.h> 20791 # include <time.h> 20792 # include <wchar.h> 20793 #endif 20794 20795 20796intmax_t im = INTMAX_MAX; 20797int32_t i32 = INT32_C (0x7fffffff); 20798 20799int 20800main () 20801{ 20802 20803 ; 20804 return 0; 20805} 20806_ACEOF 20807if ac_fn_c_try_compile "$LINENO"; then : 20808 gl_cv_header_stdint_predates_cxx11_h=no 20809fi 20810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20811fi 20812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5 20813$as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; } 20814 20815 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then 20816 20817$as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h 20818 20819 20820$as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h 20821 20822 fi 20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5 20824$as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; } 20825if ${gl_cv_header_stdint_width+:} false; then : 20826 $as_echo_n "(cached) " >&6 20827else 20828 gl_cv_header_stdint_width=no 20829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20830/* end confdefs.h. */ 20831 20832 /* Work if build is not clean. */ 20833 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 20834 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__ 20835 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1 20836 #endif 20837 #include <stdint.h> 20838 20839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20840 included before <wchar.h>. */ 20841 #include <stddef.h> 20842 #include <signal.h> 20843 #if HAVE_WCHAR_H 20844 # include <stdio.h> 20845 # include <time.h> 20846 # include <wchar.h> 20847 #endif 20848 20849 int iw = UINTMAX_WIDTH; 20850 20851int 20852main () 20853{ 20854 20855 ; 20856 return 0; 20857} 20858_ACEOF 20859if ac_fn_c_try_compile "$LINENO"; then : 20860 gl_cv_header_stdint_width=yes 20861fi 20862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20863fi 20864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5 20865$as_echo "$gl_cv_header_stdint_width" >&6; } 20866 if test "$gl_cv_header_stdint_width" = yes; then 20867 STDINT_H= 20868 fi 20869 ;; 20870 *) 20871 for ac_header in sys/inttypes.h sys/bitypes.h 20872do : 20873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20874ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20875if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20876 cat >>confdefs.h <<_ACEOF 20877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20878_ACEOF 20879 20880fi 20881 20882done 20883 20884 if test $ac_cv_header_sys_inttypes_h = yes; then 20885 HAVE_SYS_INTTYPES_H=1 20886 fi 20887 if test $ac_cv_header_sys_bitypes_h = yes; then 20888 HAVE_SYS_BITYPES_H=1 20889 fi 20890 20891 20892 if test $APPLE_UNIVERSAL_BUILD = 0; then 20893 20894 20895 for gltype in ptrdiff_t size_t ; do 20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 20897$as_echo_n "checking for bit size of $gltype... " >&6; } 20898if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 20899 $as_echo_n "(cached) " >&6 20900else 20901 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 20902 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20903 included before <wchar.h>. */ 20904 #include <stddef.h> 20905 #include <signal.h> 20906 #if HAVE_WCHAR_H 20907 # include <stdio.h> 20908 # include <time.h> 20909 # include <wchar.h> 20910 #endif 20911 20912#include <limits.h>"; then : 20913 20914else 20915 result=unknown 20916fi 20917 20918 eval gl_cv_bitsizeof_${gltype}=\$result 20919 20920fi 20921eval ac_res=\$gl_cv_bitsizeof_${gltype} 20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20923$as_echo "$ac_res" >&6; } 20924 eval result=\$gl_cv_bitsizeof_${gltype} 20925 if test $result = unknown; then 20926 result=0 20927 fi 20928 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 20929 cat >>confdefs.h <<_ACEOF 20930#define BITSIZEOF_${GLTYPE} $result 20931_ACEOF 20932 20933 eval BITSIZEOF_${GLTYPE}=\$result 20934 done 20935 20936 20937 fi 20938 20939 20940 for gltype in sig_atomic_t wchar_t wint_t ; do 20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 20942$as_echo_n "checking for bit size of $gltype... " >&6; } 20943if eval \${gl_cv_bitsizeof_${gltype}+:} false; then : 20944 $as_echo_n "(cached) " >&6 20945else 20946 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " 20947 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20948 included before <wchar.h>. */ 20949 #include <stddef.h> 20950 #include <signal.h> 20951 #if HAVE_WCHAR_H 20952 # include <stdio.h> 20953 # include <time.h> 20954 # include <wchar.h> 20955 #endif 20956 20957#include <limits.h>"; then : 20958 20959else 20960 result=unknown 20961fi 20962 20963 eval gl_cv_bitsizeof_${gltype}=\$result 20964 20965fi 20966eval ac_res=\$gl_cv_bitsizeof_${gltype} 20967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 20968$as_echo "$ac_res" >&6; } 20969 eval result=\$gl_cv_bitsizeof_${gltype} 20970 if test $result = unknown; then 20971 result=0 20972 fi 20973 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 20974 cat >>confdefs.h <<_ACEOF 20975#define BITSIZEOF_${GLTYPE} $result 20976_ACEOF 20977 20978 eval BITSIZEOF_${GLTYPE}=\$result 20979 done 20980 20981 20982 20983 20984 for gltype in sig_atomic_t wchar_t wint_t ; do 20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 20986$as_echo_n "checking whether $gltype is signed... " >&6; } 20987if eval \${gl_cv_type_${gltype}_signed+:} false; then : 20988 $as_echo_n "(cached) " >&6 20989else 20990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20991/* end confdefs.h. */ 20992 20993 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 20994 included before <wchar.h>. */ 20995 #include <stddef.h> 20996 #include <signal.h> 20997 #if HAVE_WCHAR_H 20998 # include <stdio.h> 20999 # include <time.h> 21000 # include <wchar.h> 21001 #endif 21002 21003 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; 21004int 21005main () 21006{ 21007 21008 ; 21009 return 0; 21010} 21011_ACEOF 21012if ac_fn_c_try_compile "$LINENO"; then : 21013 result=yes 21014else 21015 result=no 21016fi 21017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21018 eval gl_cv_type_${gltype}_signed=\$result 21019 21020fi 21021eval ac_res=\$gl_cv_type_${gltype}_signed 21022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21023$as_echo "$ac_res" >&6; } 21024 eval result=\$gl_cv_type_${gltype}_signed 21025 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 21026 if test "$result" = yes; then 21027 cat >>confdefs.h <<_ACEOF 21028#define HAVE_SIGNED_${GLTYPE} 1 21029_ACEOF 21030 21031 eval HAVE_SIGNED_${GLTYPE}=1 21032 else 21033 eval HAVE_SIGNED_${GLTYPE}=0 21034 fi 21035 done 21036 21037 21038 gl_cv_type_ptrdiff_t_signed=yes 21039 gl_cv_type_size_t_signed=no 21040 if test $APPLE_UNIVERSAL_BUILD = 0; then 21041 21042 21043 for gltype in ptrdiff_t size_t ; do 21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 21045$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 21046if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 21047 $as_echo_n "(cached) " >&6 21048else 21049 eval gl_cv_type_${gltype}_suffix=no 21050 eval result=\$gl_cv_type_${gltype}_signed 21051 if test "$result" = yes; then 21052 glsufu= 21053 else 21054 glsufu=u 21055 fi 21056 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 21057 case $glsuf in 21058 '') gltype1='int';; 21059 l) gltype1='long int';; 21060 ll) gltype1='long long int';; 21061 i64) gltype1='__int64';; 21062 u) gltype1='unsigned int';; 21063 ul) gltype1='unsigned long int';; 21064 ull) gltype1='unsigned long long int';; 21065 ui64)gltype1='unsigned __int64';; 21066 esac 21067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21068/* end confdefs.h. */ 21069 21070 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21071 included before <wchar.h>. */ 21072 #include <stddef.h> 21073 #include <signal.h> 21074 #if HAVE_WCHAR_H 21075 # include <stdio.h> 21076 # include <time.h> 21077 # include <wchar.h> 21078 #endif 21079 21080 extern $gltype foo; 21081 extern $gltype1 foo; 21082int 21083main () 21084{ 21085 21086 ; 21087 return 0; 21088} 21089_ACEOF 21090if ac_fn_c_try_compile "$LINENO"; then : 21091 eval gl_cv_type_${gltype}_suffix=\$glsuf 21092fi 21093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21094 eval result=\$gl_cv_type_${gltype}_suffix 21095 test "$result" != no && break 21096 done 21097fi 21098eval ac_res=\$gl_cv_type_${gltype}_suffix 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21100$as_echo "$ac_res" >&6; } 21101 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 21102 eval result=\$gl_cv_type_${gltype}_suffix 21103 test "$result" = no && result= 21104 eval ${GLTYPE}_SUFFIX=\$result 21105 cat >>confdefs.h <<_ACEOF 21106#define ${GLTYPE}_SUFFIX $result 21107_ACEOF 21108 21109 done 21110 21111 21112 fi 21113 21114 21115 for gltype in sig_atomic_t wchar_t wint_t ; do 21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 21117$as_echo_n "checking for $gltype integer literal suffix... " >&6; } 21118if eval \${gl_cv_type_${gltype}_suffix+:} false; then : 21119 $as_echo_n "(cached) " >&6 21120else 21121 eval gl_cv_type_${gltype}_suffix=no 21122 eval result=\$gl_cv_type_${gltype}_signed 21123 if test "$result" = yes; then 21124 glsufu= 21125 else 21126 glsufu=u 21127 fi 21128 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do 21129 case $glsuf in 21130 '') gltype1='int';; 21131 l) gltype1='long int';; 21132 ll) gltype1='long long int';; 21133 i64) gltype1='__int64';; 21134 u) gltype1='unsigned int';; 21135 ul) gltype1='unsigned long int';; 21136 ull) gltype1='unsigned long long int';; 21137 ui64)gltype1='unsigned __int64';; 21138 esac 21139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21140/* end confdefs.h. */ 21141 21142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 21143 included before <wchar.h>. */ 21144 #include <stddef.h> 21145 #include <signal.h> 21146 #if HAVE_WCHAR_H 21147 # include <stdio.h> 21148 # include <time.h> 21149 # include <wchar.h> 21150 #endif 21151 21152 extern $gltype foo; 21153 extern $gltype1 foo; 21154int 21155main () 21156{ 21157 21158 ; 21159 return 0; 21160} 21161_ACEOF 21162if ac_fn_c_try_compile "$LINENO"; then : 21163 eval gl_cv_type_${gltype}_suffix=\$glsuf 21164fi 21165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21166 eval result=\$gl_cv_type_${gltype}_suffix 21167 test "$result" != no && break 21168 done 21169fi 21170eval ac_res=\$gl_cv_type_${gltype}_suffix 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21172$as_echo "$ac_res" >&6; } 21173 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` 21174 eval result=\$gl_cv_type_${gltype}_suffix 21175 test "$result" = no && result= 21176 eval ${GLTYPE}_SUFFIX=\$result 21177 cat >>confdefs.h <<_ACEOF 21178#define ${GLTYPE}_SUFFIX $result 21179_ACEOF 21180 21181 done 21182 21183 21184 21185 if test $GNULIB_OVERRIDES_WINT_T = 1; then 21186 BITSIZEOF_WINT_T=32 21187 fi 21188 21189 ;; 21190 esac 21191 21192 LIMITS_H=limits.h 21193 if test -n "$LIMITS_H"; then 21194 GL_GENERATE_LIMITS_H_TRUE= 21195 GL_GENERATE_LIMITS_H_FALSE='#' 21196else 21197 GL_GENERATE_LIMITS_H_TRUE='#' 21198 GL_GENERATE_LIMITS_H_FALSE= 21199fi 21200 21201 21202 21203 21204 21205 21206 if test -n "$STDINT_H"; then 21207 GL_GENERATE_STDINT_H_TRUE= 21208 GL_GENERATE_STDINT_H_FALSE='#' 21209else 21210 GL_GENERATE_STDINT_H_TRUE='#' 21211 GL_GENERATE_STDINT_H_FALSE= 21212fi 21213 21214 21215 21216 GNULIB_EXPLICIT_BZERO=0; 21217 GNULIB_FFSL=0; 21218 GNULIB_FFSLL=0; 21219 GNULIB_MEMCHR=0; 21220 GNULIB_MEMMEM=0; 21221 GNULIB_MEMPCPY=0; 21222 GNULIB_MEMRCHR=0; 21223 GNULIB_RAWMEMCHR=0; 21224 GNULIB_STPCPY=0; 21225 GNULIB_STPNCPY=0; 21226 GNULIB_STRCHRNUL=0; 21227 GNULIB_STRDUP=0; 21228 GNULIB_STRNCAT=0; 21229 GNULIB_STRNDUP=0; 21230 GNULIB_STRNLEN=0; 21231 GNULIB_STRPBRK=0; 21232 GNULIB_STRSEP=0; 21233 GNULIB_STRSTR=0; 21234 GNULIB_STRCASESTR=0; 21235 GNULIB_STRTOK_R=0; 21236 GNULIB_MBSLEN=0; 21237 GNULIB_MBSNLEN=0; 21238 GNULIB_MBSCHR=0; 21239 GNULIB_MBSRCHR=0; 21240 GNULIB_MBSSTR=0; 21241 GNULIB_MBSCASECMP=0; 21242 GNULIB_MBSNCASECMP=0; 21243 GNULIB_MBSPCASECMP=0; 21244 GNULIB_MBSCASESTR=0; 21245 GNULIB_MBSCSPN=0; 21246 GNULIB_MBSPBRK=0; 21247 GNULIB_MBSSPN=0; 21248 GNULIB_MBSSEP=0; 21249 GNULIB_MBSTOK_R=0; 21250 GNULIB_STRERROR=0; 21251 GNULIB_STRERROR_R=0; 21252 GNULIB_STRSIGNAL=0; 21253 GNULIB_STRVERSCMP=0; 21254 HAVE_MBSLEN=0; 21255 HAVE_EXPLICIT_BZERO=1; 21256 HAVE_FFSL=1; 21257 HAVE_FFSLL=1; 21258 HAVE_MEMCHR=1; 21259 HAVE_DECL_MEMMEM=1; 21260 HAVE_MEMPCPY=1; 21261 HAVE_DECL_MEMRCHR=1; 21262 HAVE_RAWMEMCHR=1; 21263 HAVE_STPCPY=1; 21264 HAVE_STPNCPY=1; 21265 HAVE_STRCHRNUL=1; 21266 HAVE_DECL_STRDUP=1; 21267 HAVE_DECL_STRNDUP=1; 21268 HAVE_DECL_STRNLEN=1; 21269 HAVE_STRPBRK=1; 21270 HAVE_STRSEP=1; 21271 HAVE_STRCASESTR=1; 21272 HAVE_DECL_STRTOK_R=1; 21273 HAVE_DECL_STRERROR_R=1; 21274 HAVE_DECL_STRSIGNAL=1; 21275 HAVE_STRVERSCMP=1; 21276 REPLACE_MEMCHR=0; 21277 REPLACE_MEMMEM=0; 21278 REPLACE_STPNCPY=0; 21279 REPLACE_STRCHRNUL=0; 21280 REPLACE_STRDUP=0; 21281 REPLACE_STRNCAT=0; 21282 REPLACE_STRNDUP=0; 21283 REPLACE_STRNLEN=0; 21284 REPLACE_STRSTR=0; 21285 REPLACE_STRCASESTR=0; 21286 REPLACE_STRTOK_R=0; 21287 REPLACE_STRERROR=0; 21288 REPLACE_STRERROR_R=0; 21289 REPLACE_STRSIGNAL=0; 21290 UNDEFINE_STRTOK_R=0; 21291 21292 21293 REPLACE_STRERROR_0=0 21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5 21295$as_echo_n "checking whether strerror(0) succeeds... " >&6; } 21296if ${gl_cv_func_strerror_0_works+:} false; then : 21297 $as_echo_n "(cached) " >&6 21298else 21299 if test "$cross_compiling" = yes; then : 21300 case "$host_os" in 21301 # Guess yes on glibc systems. 21302 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;; 21303 # Guess yes on native Windows. 21304 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;; 21305 # If we don't know, assume the worst. 21306 *) gl_cv_func_strerror_0_works="guessing no" ;; 21307 esac 21308 21309else 21310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21311/* end confdefs.h. */ 21312#include <string.h> 21313 #include <errno.h> 21314 21315int 21316main () 21317{ 21318int result = 0; 21319 char *str; 21320 errno = 0; 21321 str = strerror (0); 21322 if (!*str) result |= 1; 21323 if (errno) result |= 2; 21324 if (strstr (str, "nknown") || strstr (str, "ndefined")) 21325 result |= 4; 21326 return result; 21327 ; 21328 return 0; 21329} 21330_ACEOF 21331if ac_fn_c_try_run "$LINENO"; then : 21332 gl_cv_func_strerror_0_works=yes 21333else 21334 gl_cv_func_strerror_0_works=no 21335fi 21336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21337 conftest.$ac_objext conftest.beam conftest.$ac_ext 21338fi 21339 21340 21341fi 21342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5 21343$as_echo "$gl_cv_func_strerror_0_works" >&6; } 21344 case "$gl_cv_func_strerror_0_works" in 21345 *yes) ;; 21346 *) 21347 REPLACE_STRERROR_0=1 21348 21349$as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h 21350 21351 ;; 21352 esac 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 if test $ac_cv_func_strerror_r = yes; then 21364 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 21365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5 21366$as_echo_n "checking for strerror_r with POSIX signature... " >&6; } 21367if ${gl_cv_func_strerror_r_posix_signature+:} false; then : 21368 $as_echo_n "(cached) " >&6 21369else 21370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21371/* end confdefs.h. */ 21372#include <string.h> 21373 int strerror_r (int, char *, size_t); 21374 21375int 21376main () 21377{ 21378 21379 ; 21380 return 0; 21381} 21382_ACEOF 21383if ac_fn_c_try_compile "$LINENO"; then : 21384 gl_cv_func_strerror_r_posix_signature=yes 21385else 21386 gl_cv_func_strerror_r_posix_signature=no 21387fi 21388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21389 21390fi 21391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5 21392$as_echo "$gl_cv_func_strerror_r_posix_signature" >&6; } 21393 if test $gl_cv_func_strerror_r_posix_signature = yes; then 21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5 21395$as_echo_n "checking whether strerror_r works... " >&6; } 21396if ${gl_cv_func_strerror_r_works+:} false; then : 21397 $as_echo_n "(cached) " >&6 21398else 21399 if test "$cross_compiling" = yes; then : 21400 21401 case "$host_os" in 21402 # Guess no on AIX. 21403 aix*) gl_cv_func_strerror_r_works="guessing no";; 21404 # Guess no on HP-UX. 21405 hpux*) gl_cv_func_strerror_r_works="guessing no";; 21406 # Guess no on BSD variants. 21407 *bsd*) gl_cv_func_strerror_r_works="guessing no";; 21408 # Guess yes otherwise. 21409 *) gl_cv_func_strerror_r_works="guessing yes";; 21410 esac 21411 21412else 21413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21414/* end confdefs.h. */ 21415#include <errno.h> 21416 #include <string.h> 21417 21418int 21419main () 21420{ 21421int result = 0; 21422 char buf[79]; 21423 if (strerror_r (EACCES, buf, 0) < 0) 21424 result |= 1; 21425 errno = 0; 21426 if (strerror_r (EACCES, buf, sizeof buf) != 0) 21427 result |= 2; 21428 strcpy (buf, "Unknown"); 21429 if (strerror_r (0, buf, sizeof buf) != 0) 21430 result |= 4; 21431 if (errno) 21432 result |= 8; 21433 if (strstr (buf, "nknown") || strstr (buf, "ndefined")) 21434 result |= 0x10; 21435 errno = 0; 21436 *buf = 0; 21437 if (strerror_r (-3, buf, sizeof buf) < 0) 21438 result |= 0x20; 21439 if (errno) 21440 result |= 0x40; 21441 if (!*buf) 21442 result |= 0x80; 21443 return result; 21444 21445 ; 21446 return 0; 21447} 21448_ACEOF 21449if ac_fn_c_try_run "$LINENO"; then : 21450 gl_cv_func_strerror_r_works=yes 21451else 21452 gl_cv_func_strerror_r_works=no 21453fi 21454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21455 conftest.$ac_objext conftest.beam conftest.$ac_ext 21456fi 21457 21458 21459fi 21460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5 21461$as_echo "$gl_cv_func_strerror_r_works" >&6; } 21462 else 21463 21464 if test $ac_cv_func___xpg_strerror_r = yes; then 21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5 21466$as_echo_n "checking whether __xpg_strerror_r works... " >&6; } 21467if ${gl_cv_func_strerror_r_works+:} false; then : 21468 $as_echo_n "(cached) " >&6 21469else 21470 if test "$cross_compiling" = yes; then : 21471 gl_cv_func_strerror_r_works="guessing no" 21472 21473else 21474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21475/* end confdefs.h. */ 21476#include <errno.h> 21477 #include <string.h> 21478 extern 21479 #ifdef __cplusplus 21480 "C" 21481 #endif 21482 int __xpg_strerror_r(int, char *, size_t); 21483 21484int 21485main () 21486{ 21487int result = 0; 21488 char buf[256] = "^"; 21489 char copy[256]; 21490 char *str = strerror (-1); 21491 strcpy (copy, str); 21492 if (__xpg_strerror_r (-2, buf, 1) == 0) 21493 result |= 1; 21494 if (*buf) 21495 result |= 2; 21496 __xpg_strerror_r (-2, buf, 256); 21497 if (strcmp (str, copy)) 21498 result |= 4; 21499 return result; 21500 21501 ; 21502 return 0; 21503} 21504_ACEOF 21505if ac_fn_c_try_run "$LINENO"; then : 21506 gl_cv_func_strerror_r_works=yes 21507else 21508 gl_cv_func_strerror_r_works=no 21509fi 21510rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21511 conftest.$ac_objext conftest.beam conftest.$ac_ext 21512fi 21513 21514 21515fi 21516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5 21517$as_echo "$gl_cv_func_strerror_r_works" >&6; } 21518 fi 21519 fi 21520 fi 21521 fi 21522 21523 21524 GNULIB_IOCTL=0; 21525 SYS_IOCTL_H_HAVE_WINSOCK2_H=0; 21526 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 21527 21528 REPLACE_IOCTL=0; 21529 21530 21531 21532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 21533$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 21534if ${ac_cv_c_restrict+:} false; then : 21535 $as_echo_n "(cached) " >&6 21536else 21537 ac_cv_c_restrict=no 21538 # The order here caters to the fact that C++ does not require restrict. 21539 for ac_kw in __restrict __restrict__ _Restrict restrict; do 21540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21541/* end confdefs.h. */ 21542typedef int *int_ptr; 21543 int foo (int_ptr $ac_kw ip) { return ip[0]; } 21544 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ 21545 int bar (int ip[$ac_kw]) { return ip[0]; } 21546 21547int 21548main () 21549{ 21550int s[1]; 21551 int *$ac_kw t = s; 21552 t[0] = 0; 21553 return foo (t) + bar (t); 21554 21555 ; 21556 return 0; 21557} 21558_ACEOF 21559if ac_fn_c_try_compile "$LINENO"; then : 21560 ac_cv_c_restrict=$ac_kw 21561fi 21562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21563 test "$ac_cv_c_restrict" != no && break 21564 done 21565 21566fi 21567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 21568$as_echo "$ac_cv_c_restrict" >&6; } 21569 21570 case $ac_cv_c_restrict in 21571 restrict) ;; 21572 no) $as_echo "#define restrict /**/" >>confdefs.h 21573 ;; 21574 *) cat >>confdefs.h <<_ACEOF 21575#define restrict $ac_cv_c_restrict 21576_ACEOF 21577 ;; 21578 esac 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 if test $gl_cv_have_include_next = yes; then 21592 gl_cv_next_string_h='<'string.h'>' 21593 else 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5 21595$as_echo_n "checking absolute name of <string.h>... " >&6; } 21596if ${gl_cv_next_string_h+:} false; then : 21597 $as_echo_n "(cached) " >&6 21598else 21599 21600 21601 21602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21603/* end confdefs.h. */ 21604#include <string.h> 21605_ACEOF 21606 case "$host_os" in 21607 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21608 *) gl_absname_cpp="$ac_cpp" ;; 21609 esac 21610 21611 case "$host_os" in 21612 mingw*) 21613 gl_dirsep_regex='[/\\]' 21614 ;; 21615 *) 21616 gl_dirsep_regex='\/' 21617 ;; 21618 esac 21619 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21620 gl_header_literal_regex=`echo 'string.h' \ 21621 | sed -e "$gl_make_literal_regex_sed"` 21622 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21623 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21624 s|^/[^/]|//&| 21625 p 21626 q 21627 }' 21628 21629 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21630 sed -n "$gl_absolute_header_sed"` 21631 21632 gl_header=$gl_cv_absolute_string_h 21633 gl_cv_next_string_h='"'$gl_header'"' 21634 21635 21636fi 21637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5 21638$as_echo "$gl_cv_next_string_h" >&6; } 21639 fi 21640 NEXT_STRING_H=$gl_cv_next_string_h 21641 21642 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21643 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21644 gl_next_as_first_directive='<'string.h'>' 21645 else 21646 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21647 gl_next_as_first_directive=$gl_cv_next_string_h 21648 fi 21649 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive 21650 21651 21652 21653 21654 21655 21656 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do 21657 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 21658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 21659$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 21660if eval \${$as_gl_Symbol+:} false; then : 21661 $as_echo_n "(cached) " >&6 21662else 21663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21664/* end confdefs.h. */ 21665#include <string.h> 21666 21667int 21668main () 21669{ 21670#undef $gl_func 21671 (void) $gl_func; 21672 ; 21673 return 0; 21674} 21675_ACEOF 21676if ac_fn_c_try_compile "$LINENO"; then : 21677 eval "$as_gl_Symbol=yes" 21678else 21679 eval "$as_gl_Symbol=no" 21680fi 21681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21682fi 21683eval ac_res=\$$as_gl_Symbol 21684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21685$as_echo "$ac_res" >&6; } 21686 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 21687 cat >>confdefs.h <<_ACEOF 21688#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 21689_ACEOF 21690 21691 eval ac_cv_have_decl_$gl_func=yes 21692fi 21693 done 21694 21695 21696 21697 21698ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 21699if test "x$ac_cv_type_pid_t" = xyes; then : 21700 21701else 21702 21703cat >>confdefs.h <<_ACEOF 21704#define pid_t int 21705_ACEOF 21706 21707fi 21708 21709ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 21710if test "x$ac_cv_type_mode_t" = xyes; then : 21711 21712else 21713 21714cat >>confdefs.h <<_ACEOF 21715#define mode_t int 21716_ACEOF 21717 21718fi 21719 21720 21721 21722 case "$host_os" in 21723 mingw*) 21724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 21725$as_echo_n "checking for 64-bit off_t... " >&6; } 21726if ${gl_cv_type_off_t_64+:} false; then : 21727 $as_echo_n "(cached) " >&6 21728else 21729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21730/* end confdefs.h. */ 21731#include <sys/types.h> 21732 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; 21733 21734int 21735main () 21736{ 21737 21738 ; 21739 return 0; 21740} 21741_ACEOF 21742if ac_fn_c_try_compile "$LINENO"; then : 21743 gl_cv_type_off_t_64=yes 21744else 21745 gl_cv_type_off_t_64=no 21746fi 21747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21748 21749fi 21750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 21751$as_echo "$gl_cv_type_off_t_64" >&6; } 21752 if test $gl_cv_type_off_t_64 = no; then 21753 WINDOWS_64_BIT_OFF_T=1 21754 else 21755 WINDOWS_64_BIT_OFF_T=0 21756 fi 21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5 21758$as_echo_n "checking for 64-bit st_size... " >&6; } 21759if ${gl_cv_member_st_size_64+:} false; then : 21760 $as_echo_n "(cached) " >&6 21761else 21762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21763/* end confdefs.h. */ 21764#include <sys/types.h> 21765 struct stat buf; 21766 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1]; 21767 21768int 21769main () 21770{ 21771 21772 ; 21773 return 0; 21774} 21775_ACEOF 21776if ac_fn_c_try_compile "$LINENO"; then : 21777 gl_cv_member_st_size_64=yes 21778else 21779 gl_cv_member_st_size_64=no 21780fi 21781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21782 21783fi 21784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5 21785$as_echo "$gl_cv_member_st_size_64" >&6; } 21786 if test $gl_cv_member_st_size_64 = no; then 21787 WINDOWS_64_BIT_ST_SIZE=1 21788 else 21789 WINDOWS_64_BIT_ST_SIZE=0 21790 fi 21791 ;; 21792 *) 21793 WINDOWS_64_BIT_OFF_T=0 21794 WINDOWS_64_BIT_ST_SIZE=0 21795 ;; 21796 esac 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806$as_echo "#define _USE_STD_STAT 1" >>confdefs.h 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 if test $gl_cv_have_include_next = yes; then 21819 gl_cv_next_sys_types_h='<'sys/types.h'>' 21820 else 21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5 21822$as_echo_n "checking absolute name of <sys/types.h>... " >&6; } 21823if ${gl_cv_next_sys_types_h+:} false; then : 21824 $as_echo_n "(cached) " >&6 21825else 21826 21827 21828 21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21830/* end confdefs.h. */ 21831#include <sys/types.h> 21832_ACEOF 21833 case "$host_os" in 21834 aix*) gl_absname_cpp="$ac_cpp -C" ;; 21835 *) gl_absname_cpp="$ac_cpp" ;; 21836 esac 21837 21838 case "$host_os" in 21839 mingw*) 21840 gl_dirsep_regex='[/\\]' 21841 ;; 21842 *) 21843 gl_dirsep_regex='\/' 21844 ;; 21845 esac 21846 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 21847 gl_header_literal_regex=`echo 'sys/types.h' \ 21848 | sed -e "$gl_make_literal_regex_sed"` 21849 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 21850 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 21851 s|^/[^/]|//&| 21852 p 21853 q 21854 }' 21855 21856 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 21857 sed -n "$gl_absolute_header_sed"` 21858 21859 gl_header=$gl_cv_absolute_sys_types_h 21860 gl_cv_next_sys_types_h='"'$gl_header'"' 21861 21862 21863fi 21864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5 21865$as_echo "$gl_cv_next_sys_types_h" >&6; } 21866 fi 21867 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h 21868 21869 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 21870 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 21871 gl_next_as_first_directive='<'sys/types.h'>' 21872 else 21873 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 21874 gl_next_as_first_directive=$gl_cv_next_sys_types_h 21875 fi 21876 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 WINDOWS_STAT_INODES=0 21890 21891 21892 21893 21894 21895 21896 GNULIB_SOCKET=0; 21897 GNULIB_CONNECT=0; 21898 GNULIB_ACCEPT=0; 21899 GNULIB_BIND=0; 21900 GNULIB_GETPEERNAME=0; 21901 GNULIB_GETSOCKNAME=0; 21902 GNULIB_GETSOCKOPT=0; 21903 GNULIB_LISTEN=0; 21904 GNULIB_RECV=0; 21905 GNULIB_SEND=0; 21906 GNULIB_RECVFROM=0; 21907 GNULIB_SENDTO=0; 21908 GNULIB_SETSOCKOPT=0; 21909 GNULIB_SHUTDOWN=0; 21910 GNULIB_ACCEPT4=0; 21911 HAVE_STRUCT_SOCKADDR_STORAGE=1; 21912 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1; 21913 21914 HAVE_SA_FAMILY_T=1; 21915 HAVE_ACCEPT4=1; 21916 21917 21918 if test $ac_cv_header_sys_socket_h = no; then 21919 for ac_header in ws2tcpip.h 21920do : 21921 ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" 21922if test "x$ac_cv_header_ws2tcpip_h" = xyes; then : 21923 cat >>confdefs.h <<_ACEOF 21924#define HAVE_WS2TCPIP_H 1 21925_ACEOF 21926 21927fi 21928 21929done 21930 21931 fi 21932 21933 21934 21935 21936 21937 case "$host_os" in 21938 osf*) 21939 21940$as_echo "#define _POSIX_PII_SOCKET 1" >>confdefs.h 21941 21942 ;; 21943 esac 21944 21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> is self-contained" >&5 21946$as_echo_n "checking whether <sys/socket.h> is self-contained... " >&6; } 21947if ${gl_cv_header_sys_socket_h_selfcontained+:} false; then : 21948 $as_echo_n "(cached) " >&6 21949else 21950 21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21952/* end confdefs.h. */ 21953#include <sys/socket.h> 21954int 21955main () 21956{ 21957 21958 ; 21959 return 0; 21960} 21961_ACEOF 21962if ac_fn_c_try_compile "$LINENO"; then : 21963 gl_cv_header_sys_socket_h_selfcontained=yes 21964else 21965 gl_cv_header_sys_socket_h_selfcontained=no 21966fi 21967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21968 21969fi 21970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_selfcontained" >&5 21971$as_echo "$gl_cv_header_sys_socket_h_selfcontained" >&6; } 21972 if test $gl_cv_header_sys_socket_h_selfcontained = yes; then 21973 for ac_func in shutdown 21974do : 21975 ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" 21976if test "x$ac_cv_func_shutdown" = xyes; then : 21977 cat >>confdefs.h <<_ACEOF 21978#define HAVE_SHUTDOWN 1 21979_ACEOF 21980 21981fi 21982done 21983 21984 if test $ac_cv_func_shutdown = yes; then 21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/socket.h> defines the SHUT_* macros" >&5 21986$as_echo_n "checking whether <sys/socket.h> defines the SHUT_* macros... " >&6; } 21987if ${gl_cv_header_sys_socket_h_shut+:} false; then : 21988 $as_echo_n "(cached) " >&6 21989else 21990 21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21992/* end confdefs.h. */ 21993#include <sys/socket.h> 21994int 21995main () 21996{ 21997int a[] = { SHUT_RD, SHUT_WR, SHUT_RDWR }; 21998 ; 21999 return 0; 22000} 22001_ACEOF 22002if ac_fn_c_try_compile "$LINENO"; then : 22003 gl_cv_header_sys_socket_h_shut=yes 22004else 22005 gl_cv_header_sys_socket_h_shut=no 22006fi 22007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22008 22009fi 22010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_socket_h_shut" >&5 22011$as_echo "$gl_cv_header_sys_socket_h_shut" >&6; } 22012 if test $gl_cv_header_sys_socket_h_shut = no; then 22013 SYS_SOCKET_H='sys/socket.h' 22014 fi 22015 fi 22016 fi 22017 # We need to check for ws2tcpip.h now. 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 if test $gl_cv_have_include_next = yes; then 22030 gl_cv_next_sys_socket_h='<'sys/socket.h'>' 22031 else 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/socket.h>" >&5 22033$as_echo_n "checking absolute name of <sys/socket.h>... " >&6; } 22034if ${gl_cv_next_sys_socket_h+:} false; then : 22035 $as_echo_n "(cached) " >&6 22036else 22037 22038 if test $ac_cv_header_sys_socket_h = yes; then 22039 22040 22041 22042 22043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22044/* end confdefs.h. */ 22045#include <sys/socket.h> 22046_ACEOF 22047 case "$host_os" in 22048 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22049 *) gl_absname_cpp="$ac_cpp" ;; 22050 esac 22051 22052 case "$host_os" in 22053 mingw*) 22054 gl_dirsep_regex='[/\\]' 22055 ;; 22056 *) 22057 gl_dirsep_regex='\/' 22058 ;; 22059 esac 22060 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22061 gl_header_literal_regex=`echo 'sys/socket.h' \ 22062 | sed -e "$gl_make_literal_regex_sed"` 22063 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22064 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22065 s|^/[^/]|//&| 22066 p 22067 q 22068 }' 22069 22070 gl_cv_absolute_sys_socket_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22071 sed -n "$gl_absolute_header_sed"` 22072 22073 gl_header=$gl_cv_absolute_sys_socket_h 22074 gl_cv_next_sys_socket_h='"'$gl_header'"' 22075 else 22076 gl_cv_next_sys_socket_h='<'sys/socket.h'>' 22077 fi 22078 22079 22080fi 22081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_socket_h" >&5 22082$as_echo "$gl_cv_next_sys_socket_h" >&6; } 22083 fi 22084 NEXT_SYS_SOCKET_H=$gl_cv_next_sys_socket_h 22085 22086 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22087 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22088 gl_next_as_first_directive='<'sys/socket.h'>' 22089 else 22090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22091 gl_next_as_first_directive=$gl_cv_next_sys_socket_h 22092 fi 22093 NEXT_AS_FIRST_DIRECTIVE_SYS_SOCKET_H=$gl_next_as_first_directive 22094 22095 22096 22097 22098 if test $ac_cv_header_sys_socket_h = yes; then 22099 HAVE_SYS_SOCKET_H=1 22100 HAVE_WS2TCPIP_H=0 22101 else 22102 HAVE_SYS_SOCKET_H=0 22103 if test $ac_cv_header_ws2tcpip_h = yes; then 22104 HAVE_WS2TCPIP_H=1 22105 else 22106 HAVE_WS2TCPIP_H=0 22107 fi 22108 fi 22109 22110 22111 22112 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " 22113 /* sys/types.h is not needed according to POSIX, but the 22114 sys/socket.h in i386-unknown-freebsd4.10 and 22115 powerpc-apple-darwin5.5 required it. */ 22116#include <sys/types.h> 22117#ifdef HAVE_SYS_SOCKET_H 22118#include <sys/socket.h> 22119#endif 22120#ifdef HAVE_WS2TCPIP_H 22121#include <ws2tcpip.h> 22122#endif 22123 22124" 22125if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then : 22126 22127cat >>confdefs.h <<_ACEOF 22128#define HAVE_STRUCT_SOCKADDR_STORAGE 1 22129_ACEOF 22130 22131 22132fi 22133ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" " 22134 /* sys/types.h is not needed according to POSIX, but the 22135 sys/socket.h in i386-unknown-freebsd4.10 and 22136 powerpc-apple-darwin5.5 required it. */ 22137#include <sys/types.h> 22138#ifdef HAVE_SYS_SOCKET_H 22139#include <sys/socket.h> 22140#endif 22141#ifdef HAVE_WS2TCPIP_H 22142#include <ws2tcpip.h> 22143#endif 22144 22145" 22146if test "x$ac_cv_type_sa_family_t" = xyes; then : 22147 22148cat >>confdefs.h <<_ACEOF 22149#define HAVE_SA_FAMILY_T 1 22150_ACEOF 22151 22152 22153fi 22154 22155 if test $ac_cv_type_struct_sockaddr_storage = no; then 22156 HAVE_STRUCT_SOCKADDR_STORAGE=0 22157 fi 22158 if test $ac_cv_type_sa_family_t = no; then 22159 HAVE_SA_FAMILY_T=0 22160 fi 22161 if test $ac_cv_type_struct_sockaddr_storage != no; then 22162 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h> 22163 #ifdef HAVE_SYS_SOCKET_H 22164 #include <sys/socket.h> 22165 #endif 22166 #ifdef HAVE_WS2TCPIP_H 22167 #include <ws2tcpip.h> 22168 #endif 22169 22170" 22171if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then : 22172 22173cat >>confdefs.h <<_ACEOF 22174#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1 22175_ACEOF 22176 22177 22178else 22179 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=0 22180fi 22181 22182 fi 22183 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ 22184 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then 22185 SYS_SOCKET_H='sys/socket.h' 22186 fi 22187 22188 22189 22190 22191 if test $ac_cv_header_sys_socket_h != yes; then 22192 for ac_header in winsock2.h 22193do : 22194 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 22195if test "x$ac_cv_header_winsock2_h" = xyes; then : 22196 cat >>confdefs.h <<_ACEOF 22197#define HAVE_WINSOCK2_H 1 22198_ACEOF 22199 22200fi 22201 22202done 22203 22204 fi 22205 if test "$ac_cv_header_winsock2_h" = yes; then 22206 HAVE_WINSOCK2_H=1 22207 UNISTD_H_HAVE_WINSOCK2_H=1 22208 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 22209 else 22210 HAVE_WINSOCK2_H=0 22211 fi 22212 22213 22214 22215 22216 for gl_func in socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4; do 22217 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 22219$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 22220if eval \${$as_gl_Symbol+:} false; then : 22221 $as_echo_n "(cached) " >&6 22222else 22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22224/* end confdefs.h. */ 22225 22226/* Some systems require prerequisite headers. */ 22227#include <sys/types.h> 22228#include <sys/socket.h> 22229 22230int 22231main () 22232{ 22233#undef $gl_func 22234 (void) $gl_func; 22235 ; 22236 return 0; 22237} 22238_ACEOF 22239if ac_fn_c_try_compile "$LINENO"; then : 22240 eval "$as_gl_Symbol=yes" 22241else 22242 eval "$as_gl_Symbol=no" 22243fi 22244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22245fi 22246eval ac_res=\$$as_gl_Symbol 22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22248$as_echo "$ac_res" >&6; } 22249 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 22250 cat >>confdefs.h <<_ACEOF 22251#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 22252_ACEOF 22253 22254 eval ac_cv_have_decl_$gl_func=yes 22255fi 22256 done 22257 22258 22259ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 22260if test "x$ac_cv_type_size_t" = xyes; then : 22261 22262else 22263 22264cat >>confdefs.h <<_ACEOF 22265#define size_t unsigned int 22266_ACEOF 22267 22268fi 22269 22270# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 22271# for constant arguments. Useless! 22272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 22273$as_echo_n "checking for working alloca.h... " >&6; } 22274if ${ac_cv_working_alloca_h+:} false; then : 22275 $as_echo_n "(cached) " >&6 22276else 22277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22278/* end confdefs.h. */ 22279#include <alloca.h> 22280int 22281main () 22282{ 22283char *p = (char *) alloca (2 * sizeof (int)); 22284 if (p) return 0; 22285 ; 22286 return 0; 22287} 22288_ACEOF 22289if ac_fn_c_try_link "$LINENO"; then : 22290 ac_cv_working_alloca_h=yes 22291else 22292 ac_cv_working_alloca_h=no 22293fi 22294rm -f core conftest.err conftest.$ac_objext \ 22295 conftest$ac_exeext conftest.$ac_ext 22296fi 22297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 22298$as_echo "$ac_cv_working_alloca_h" >&6; } 22299if test $ac_cv_working_alloca_h = yes; then 22300 22301$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 22302 22303fi 22304 22305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 22306$as_echo_n "checking for alloca... " >&6; } 22307if ${ac_cv_func_alloca_works+:} false; then : 22308 $as_echo_n "(cached) " >&6 22309else 22310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22311/* end confdefs.h. */ 22312#ifdef __GNUC__ 22313# define alloca __builtin_alloca 22314#else 22315# ifdef _MSC_VER 22316# include <malloc.h> 22317# define alloca _alloca 22318# else 22319# ifdef HAVE_ALLOCA_H 22320# include <alloca.h> 22321# else 22322# ifdef _AIX 22323 #pragma alloca 22324# else 22325# ifndef alloca /* predefined by HP cc +Olibcalls */ 22326void *alloca (size_t); 22327# endif 22328# endif 22329# endif 22330# endif 22331#endif 22332 22333int 22334main () 22335{ 22336char *p = (char *) alloca (1); 22337 if (p) return 0; 22338 ; 22339 return 0; 22340} 22341_ACEOF 22342if ac_fn_c_try_link "$LINENO"; then : 22343 ac_cv_func_alloca_works=yes 22344else 22345 ac_cv_func_alloca_works=no 22346fi 22347rm -f core conftest.err conftest.$ac_objext \ 22348 conftest$ac_exeext conftest.$ac_ext 22349fi 22350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 22351$as_echo "$ac_cv_func_alloca_works" >&6; } 22352 22353if test $ac_cv_func_alloca_works = yes; then 22354 22355$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 22356 22357else 22358 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 22359# that cause trouble. Some versions do not even contain alloca or 22360# contain a buggy version. If you still want to use their alloca, 22361# use ar to extract alloca.o from them instead of compiling alloca.c. 22362 22363 22364 22365 22366 22367ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 22368 22369$as_echo "#define C_ALLOCA 1" >>confdefs.h 22370 22371 22372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 22373$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 22374if ${ac_cv_os_cray+:} false; then : 22375 $as_echo_n "(cached) " >&6 22376else 22377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22378/* end confdefs.h. */ 22379#if defined CRAY && ! defined CRAY2 22380webecray 22381#else 22382wenotbecray 22383#endif 22384 22385_ACEOF 22386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22387 $EGREP "webecray" >/dev/null 2>&1; then : 22388 ac_cv_os_cray=yes 22389else 22390 ac_cv_os_cray=no 22391fi 22392rm -f conftest* 22393 22394fi 22395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 22396$as_echo "$ac_cv_os_cray" >&6; } 22397if test $ac_cv_os_cray = yes; then 22398 for ac_func in _getb67 GETB67 getb67; do 22399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 22400ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 22401if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 22402 22403cat >>confdefs.h <<_ACEOF 22404#define CRAY_STACKSEG_END $ac_func 22405_ACEOF 22406 22407 break 22408fi 22409 22410 done 22411fi 22412 22413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 22414$as_echo_n "checking stack direction for C alloca... " >&6; } 22415if ${ac_cv_c_stack_direction+:} false; then : 22416 $as_echo_n "(cached) " >&6 22417else 22418 if test "$cross_compiling" = yes; then : 22419 ac_cv_c_stack_direction=0 22420else 22421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22422/* end confdefs.h. */ 22423$ac_includes_default 22424int 22425find_stack_direction (int *addr, int depth) 22426{ 22427 int dir, dummy = 0; 22428 if (! addr) 22429 addr = &dummy; 22430 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 22431 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 22432 return dir + dummy; 22433} 22434 22435int 22436main (int argc, char **argv) 22437{ 22438 return find_stack_direction (0, argc + !argv + 20) < 0; 22439} 22440_ACEOF 22441if ac_fn_c_try_run "$LINENO"; then : 22442 ac_cv_c_stack_direction=1 22443else 22444 ac_cv_c_stack_direction=-1 22445fi 22446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22447 conftest.$ac_objext conftest.beam conftest.$ac_ext 22448fi 22449 22450fi 22451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 22452$as_echo "$ac_cv_c_stack_direction" >&6; } 22453cat >>confdefs.h <<_ACEOF 22454#define STACK_DIRECTION $ac_cv_c_stack_direction 22455_ACEOF 22456 22457 22458fi 22459 22460 22461 GNULIB_INET_NTOP=0; 22462 GNULIB_INET_PTON=0; 22463 HAVE_DECL_INET_NTOP=1; 22464 HAVE_DECL_INET_PTON=1; 22465 REPLACE_INET_NTOP=0; 22466 REPLACE_INET_PTON=0; 22467 22468 22469 22470 22471 22472 22473 22474 if test $ac_cv_header_features_h = yes; then 22475 HAVE_FEATURES_H=1 22476 else 22477 HAVE_FEATURES_H=0 22478 fi 22479 22480 22481 22482 GNULIB_ISBLANK=0; 22483 HAVE_ISBLANK=1; 22484 22485 22486 22487 22488 22489 22490 22491 22492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 22493$as_echo_n "checking if environ is properly declared... " >&6; } 22494 if ${gt_cv_var_environ_declaration+:} false; then : 22495 $as_echo_n "(cached) " >&6 22496else 22497 22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22499/* end confdefs.h. */ 22500#if HAVE_UNISTD_H 22501 #include <unistd.h> 22502 #endif 22503 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */ 22504 #include <stdlib.h> 22505 22506 extern struct { int foo; } environ; 22507int 22508main () 22509{ 22510environ.foo = 1; 22511 ; 22512 return 0; 22513} 22514_ACEOF 22515if ac_fn_c_try_compile "$LINENO"; then : 22516 gt_cv_var_environ_declaration=no 22517else 22518 gt_cv_var_environ_declaration=yes 22519fi 22520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22521fi 22522 22523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 22524$as_echo "$gt_cv_var_environ_declaration" >&6; } 22525 if test $gt_cv_var_environ_declaration = yes; then 22526 22527$as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h 22528 22529 fi 22530 22531 22532 if test $gt_cv_var_environ_declaration != yes; then 22533 HAVE_DECL_ENVIRON=0 22534 fi 22535 22536 22537 GNULIB_FCNTL=0; 22538 GNULIB_NONBLOCKING=0; 22539 GNULIB_OPEN=0; 22540 GNULIB_OPENAT=0; 22541 HAVE_FCNTL=1; 22542 HAVE_OPENAT=1; 22543 REPLACE_FCNTL=0; 22544 REPLACE_OPEN=0; 22545 REPLACE_OPENAT=0; 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555 22556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 22557$as_echo_n "checking for working fcntl.h... " >&6; } 22558if ${gl_cv_header_working_fcntl_h+:} false; then : 22559 $as_echo_n "(cached) " >&6 22560else 22561 if test "$cross_compiling" = yes; then : 22562 gl_cv_header_working_fcntl_h=cross-compiling 22563else 22564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22565/* end confdefs.h. */ 22566#include <sys/types.h> 22567 #include <sys/stat.h> 22568 #if HAVE_UNISTD_H 22569 # include <unistd.h> 22570 #else /* on Windows with MSVC */ 22571 # include <io.h> 22572 # include <stdlib.h> 22573 # defined sleep(n) _sleep ((n) * 1000) 22574 #endif 22575 #include <fcntl.h> 22576 #ifndef O_NOATIME 22577 #define O_NOATIME 0 22578 #endif 22579 #ifndef O_NOFOLLOW 22580 #define O_NOFOLLOW 0 22581 #endif 22582 static int const constants[] = 22583 { 22584 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 22585 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 22586 }; 22587 22588int 22589main () 22590{ 22591 22592 int result = !constants; 22593 #if HAVE_SYMLINK 22594 { 22595 static char const sym[] = "conftest.sym"; 22596 if (symlink ("/dev/null", sym) != 0) 22597 result |= 2; 22598 else 22599 { 22600 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 22601 if (fd >= 0) 22602 { 22603 close (fd); 22604 result |= 4; 22605 } 22606 } 22607 if (unlink (sym) != 0 || symlink (".", sym) != 0) 22608 result |= 2; 22609 else 22610 { 22611 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 22612 if (fd >= 0) 22613 { 22614 close (fd); 22615 result |= 4; 22616 } 22617 } 22618 unlink (sym); 22619 } 22620 #endif 22621 { 22622 static char const file[] = "confdefs.h"; 22623 int fd = open (file, O_RDONLY | O_NOATIME); 22624 if (fd < 0) 22625 result |= 8; 22626 else 22627 { 22628 struct stat st0; 22629 if (fstat (fd, &st0) != 0) 22630 result |= 16; 22631 else 22632 { 22633 char c; 22634 sleep (1); 22635 if (read (fd, &c, 1) != 1) 22636 result |= 24; 22637 else 22638 { 22639 if (close (fd) != 0) 22640 result |= 32; 22641 else 22642 { 22643 struct stat st1; 22644 if (stat (file, &st1) != 0) 22645 result |= 40; 22646 else 22647 if (st0.st_atime != st1.st_atime) 22648 result |= 64; 22649 } 22650 } 22651 } 22652 } 22653 } 22654 return result; 22655 ; 22656 return 0; 22657} 22658_ACEOF 22659if ac_fn_c_try_run "$LINENO"; then : 22660 gl_cv_header_working_fcntl_h=yes 22661else 22662 case $? in #( 22663 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 22664 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 22665 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 22666 *) gl_cv_header_working_fcntl_h='no';; 22667 esac 22668fi 22669rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22670 conftest.$ac_objext conftest.beam conftest.$ac_ext 22671fi 22672 22673fi 22674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 22675$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 22676 22677 case $gl_cv_header_working_fcntl_h in #( 22678 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 22679 *) ac_val=1;; 22680 esac 22681 22682cat >>confdefs.h <<_ACEOF 22683#define HAVE_WORKING_O_NOATIME $ac_val 22684_ACEOF 22685 22686 22687 case $gl_cv_header_working_fcntl_h in #( 22688 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 22689 *) ac_val=1;; 22690 esac 22691 22692cat >>confdefs.h <<_ACEOF 22693#define HAVE_WORKING_O_NOFOLLOW $ac_val 22694_ACEOF 22695 22696 22697 22698 GNULIB_FCHMODAT=0; 22699 GNULIB_FSTAT=0; 22700 GNULIB_FSTATAT=0; 22701 GNULIB_FUTIMENS=0; 22702 GNULIB_LCHMOD=0; 22703 GNULIB_LSTAT=0; 22704 GNULIB_MKDIRAT=0; 22705 GNULIB_MKFIFO=0; 22706 GNULIB_MKFIFOAT=0; 22707 GNULIB_MKNOD=0; 22708 GNULIB_MKNODAT=0; 22709 GNULIB_STAT=0; 22710 GNULIB_UTIMENSAT=0; 22711 GNULIB_OVERRIDES_STRUCT_STAT=0; 22712 HAVE_FCHMODAT=1; 22713 HAVE_FSTATAT=1; 22714 HAVE_FUTIMENS=1; 22715 HAVE_LCHMOD=1; 22716 HAVE_LSTAT=1; 22717 HAVE_MKDIRAT=1; 22718 HAVE_MKFIFO=1; 22719 HAVE_MKFIFOAT=1; 22720 HAVE_MKNOD=1; 22721 HAVE_MKNODAT=1; 22722 HAVE_UTIMENSAT=1; 22723 REPLACE_FSTAT=0; 22724 REPLACE_FSTATAT=0; 22725 REPLACE_FUTIMENS=0; 22726 REPLACE_LSTAT=0; 22727 REPLACE_MKDIR=0; 22728 REPLACE_MKFIFO=0; 22729 REPLACE_MKNOD=0; 22730 REPLACE_STAT=0; 22731 REPLACE_UTIMENSAT=0; 22732 22733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 22734$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 22735if ${ac_cv_header_stat_broken+:} false; then : 22736 $as_echo_n "(cached) " >&6 22737else 22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22739/* end confdefs.h. */ 22740#include <sys/types.h> 22741#include <sys/stat.h> 22742 22743#if defined S_ISBLK && defined S_IFDIR 22744extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 22745#endif 22746 22747#if defined S_ISBLK && defined S_IFCHR 22748extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 22749#endif 22750 22751#if defined S_ISLNK && defined S_IFREG 22752extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 22753#endif 22754 22755#if defined S_ISSOCK && defined S_IFREG 22756extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 22757#endif 22758 22759_ACEOF 22760if ac_fn_c_try_compile "$LINENO"; then : 22761 ac_cv_header_stat_broken=no 22762else 22763 ac_cv_header_stat_broken=yes 22764fi 22765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22766fi 22767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 22768$as_echo "$ac_cv_header_stat_broken" >&6; } 22769if test $ac_cv_header_stat_broken = yes; then 22770 22771$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 22772 22773fi 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 if test $gl_cv_have_include_next = yes; then 22792 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 22793 else 22794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 22795$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 22796if ${gl_cv_next_sys_stat_h+:} false; then : 22797 $as_echo_n "(cached) " >&6 22798else 22799 22800 if test $ac_cv_header_sys_stat_h = yes; then 22801 22802 22803 22804 22805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22806/* end confdefs.h. */ 22807#include <sys/stat.h> 22808_ACEOF 22809 case "$host_os" in 22810 aix*) gl_absname_cpp="$ac_cpp -C" ;; 22811 *) gl_absname_cpp="$ac_cpp" ;; 22812 esac 22813 22814 case "$host_os" in 22815 mingw*) 22816 gl_dirsep_regex='[/\\]' 22817 ;; 22818 *) 22819 gl_dirsep_regex='\/' 22820 ;; 22821 esac 22822 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 22823 gl_header_literal_regex=`echo 'sys/stat.h' \ 22824 | sed -e "$gl_make_literal_regex_sed"` 22825 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 22826 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 22827 s|^/[^/]|//&| 22828 p 22829 q 22830 }' 22831 22832 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 22833 sed -n "$gl_absolute_header_sed"` 22834 22835 gl_header=$gl_cv_absolute_sys_stat_h 22836 gl_cv_next_sys_stat_h='"'$gl_header'"' 22837 else 22838 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 22839 fi 22840 22841 22842fi 22843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 22844$as_echo "$gl_cv_next_sys_stat_h" >&6; } 22845 fi 22846 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 22847 22848 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 22849 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 22850 gl_next_as_first_directive='<'sys/stat.h'>' 22851 else 22852 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 22853 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 22854 fi 22855 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 22856 22857 22858 22859 22860 22861 22862 22863 22864 WINDOWS_STAT_TIMESPEC=0 22865 22866 22867 22868 22869 22870 22871 22872 22873 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 22874 #include <sys/stat.h> 22875" 22876if test "x$ac_cv_type_nlink_t" = xyes; then : 22877 22878else 22879 22880$as_echo "#define nlink_t int" >>confdefs.h 22881 22882fi 22883 22884 22885 22886 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do 22887 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 22889$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 22890if eval \${$as_gl_Symbol+:} false; then : 22891 $as_echo_n "(cached) " >&6 22892else 22893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22894/* end confdefs.h. */ 22895#include <sys/stat.h> 22896 22897int 22898main () 22899{ 22900#undef $gl_func 22901 (void) $gl_func; 22902 ; 22903 return 0; 22904} 22905_ACEOF 22906if ac_fn_c_try_compile "$LINENO"; then : 22907 eval "$as_gl_Symbol=yes" 22908else 22909 eval "$as_gl_Symbol=no" 22910fi 22911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22912fi 22913eval ac_res=\$$as_gl_Symbol 22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 22915$as_echo "$ac_res" >&6; } 22916 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 22917 cat >>confdefs.h <<_ACEOF 22918#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 22919_ACEOF 22920 22921 eval ac_cv_have_decl_$gl_func=yes 22922fi 22923 done 22924 22925 22926 22927 22928 22929 22930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5 22931$as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; } 22932if ${gl_cv_func_getcwd_null+:} false; then : 22933 $as_echo_n "(cached) " >&6 22934else 22935 if test "$cross_compiling" = yes; then : 22936 case "$host_os" in 22937 # Guess yes on glibc systems. 22938 *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";; 22939 # Guess yes on Cygwin. 22940 cygwin*) gl_cv_func_getcwd_null="guessing yes";; 22941 # If we don't know, assume the worst. 22942 *) gl_cv_func_getcwd_null="guessing no";; 22943 esac 22944 22945else 22946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22947/* end confdefs.h. */ 22948 22949# include <stdlib.h> 22950# if HAVE_UNISTD_H 22951# include <unistd.h> 22952# else /* on Windows with MSVC */ 22953# include <direct.h> 22954# endif 22955# ifndef getcwd 22956 char *getcwd (); 22957# endif 22958 22959int 22960main () 22961{ 22962 22963#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 22964/* mingw cwd does not start with '/', but getcwd does allocate. 22965 However, mingw fails to honor non-zero size. */ 22966#else 22967 if (chdir ("/") != 0) 22968 return 1; 22969 else 22970 { 22971 char *f = getcwd (NULL, 0); 22972 if (! f) 22973 return 2; 22974 if (f[0] != '/') 22975 { free (f); return 3; } 22976 if (f[1] != '\0') 22977 { free (f); return 4; } 22978 free (f); 22979 return 0; 22980 } 22981#endif 22982 22983 ; 22984 return 0; 22985} 22986_ACEOF 22987if ac_fn_c_try_run "$LINENO"; then : 22988 gl_cv_func_getcwd_null=yes 22989else 22990 gl_cv_func_getcwd_null=no 22991fi 22992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22993 conftest.$ac_objext conftest.beam conftest.$ac_ext 22994fi 22995 22996fi 22997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5 22998$as_echo "$gl_cv_func_getcwd_null" >&6; } 22999 23000 23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5 23002$as_echo_n "checking for getcwd with POSIX signature... " >&6; } 23003if ${gl_cv_func_getcwd_posix_signature+:} false; then : 23004 $as_echo_n "(cached) " >&6 23005else 23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23007/* end confdefs.h. */ 23008#include <unistd.h> 23009int 23010main () 23011{ 23012extern 23013 #ifdef __cplusplus 23014 "C" 23015 #endif 23016 char *getcwd (char *, size_t); 23017 23018 ; 23019 return 0; 23020} 23021 23022_ACEOF 23023if ac_fn_c_try_compile "$LINENO"; then : 23024 gl_cv_func_getcwd_posix_signature=yes 23025else 23026 gl_cv_func_getcwd_posix_signature=no 23027fi 23028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23029 23030fi 23031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5 23032$as_echo "$gl_cv_func_getcwd_posix_signature" >&6; } 23033 23034 23035 23036ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" 23037if test "x$ac_cv_have_decl_getdtablesize" = xyes; then : 23038 ac_have_decl=1 23039else 23040 ac_have_decl=0 23041fi 23042 23043cat >>confdefs.h <<_ACEOF 23044#define HAVE_DECL_GETDTABLESIZE $ac_have_decl 23045_ACEOF 23046 23047 23048 GNULIB_GETTIMEOFDAY=0; 23049 HAVE_GETTIMEOFDAY=1; 23050 HAVE_STRUCT_TIMEVAL=1; 23051 HAVE_SYS_TIME_H=1; 23052 REPLACE_GETTIMEOFDAY=0; 23053 REPLACE_STRUCT_TIMEVAL=0; 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 if test $gl_cv_have_include_next = yes; then 23071 gl_cv_next_sys_time_h='<'sys/time.h'>' 23072 else 23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 23074$as_echo_n "checking absolute name of <sys/time.h>... " >&6; } 23075if ${gl_cv_next_sys_time_h+:} false; then : 23076 $as_echo_n "(cached) " >&6 23077else 23078 23079 if test $ac_cv_header_sys_time_h = yes; then 23080 23081 23082 23083 23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23085/* end confdefs.h. */ 23086#include <sys/time.h> 23087_ACEOF 23088 case "$host_os" in 23089 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23090 *) gl_absname_cpp="$ac_cpp" ;; 23091 esac 23092 23093 case "$host_os" in 23094 mingw*) 23095 gl_dirsep_regex='[/\\]' 23096 ;; 23097 *) 23098 gl_dirsep_regex='\/' 23099 ;; 23100 esac 23101 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23102 gl_header_literal_regex=`echo 'sys/time.h' \ 23103 | sed -e "$gl_make_literal_regex_sed"` 23104 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23105 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23106 s|^/[^/]|//&| 23107 p 23108 q 23109 }' 23110 23111 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23112 sed -n "$gl_absolute_header_sed"` 23113 23114 gl_header=$gl_cv_absolute_sys_time_h 23115 gl_cv_next_sys_time_h='"'$gl_header'"' 23116 else 23117 gl_cv_next_sys_time_h='<'sys/time.h'>' 23118 fi 23119 23120 23121fi 23122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 23123$as_echo "$gl_cv_next_sys_time_h" >&6; } 23124 fi 23125 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h 23126 23127 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23128 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23129 gl_next_as_first_directive='<'sys/time.h'>' 23130 else 23131 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23132 gl_next_as_first_directive=$gl_cv_next_sys_time_h 23133 fi 23134 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive 23135 23136 23137 23138 23139 23140 if test $ac_cv_header_sys_time_h != yes; then 23141 HAVE_SYS_TIME_H=0 23142 fi 23143 23144 23145 23146 23147 23148 if test $ac_cv_header_sys_socket_h != yes; then 23149 for ac_header in winsock2.h 23150do : 23151 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 23152if test "x$ac_cv_header_winsock2_h" = xyes; then : 23153 cat >>confdefs.h <<_ACEOF 23154#define HAVE_WINSOCK2_H 1 23155_ACEOF 23156 23157fi 23158 23159done 23160 23161 fi 23162 if test "$ac_cv_header_winsock2_h" = yes; then 23163 HAVE_WINSOCK2_H=1 23164 UNISTD_H_HAVE_WINSOCK2_H=1 23165 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 23166 else 23167 HAVE_WINSOCK2_H=0 23168 fi 23169 23170 23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 23172$as_echo_n "checking for struct timeval... " >&6; } 23173if ${gl_cv_sys_struct_timeval+:} false; then : 23174 $as_echo_n "(cached) " >&6 23175else 23176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23177/* end confdefs.h. */ 23178#if HAVE_SYS_TIME_H 23179 #include <sys/time.h> 23180 #endif 23181 #include <time.h> 23182 #if HAVE_WINSOCK2_H 23183 # include <winsock2.h> 23184 #endif 23185 23186int 23187main () 23188{ 23189static struct timeval x; x.tv_sec = x.tv_usec; 23190 ; 23191 return 0; 23192} 23193_ACEOF 23194if ac_fn_c_try_compile "$LINENO"; then : 23195 gl_cv_sys_struct_timeval=yes 23196else 23197 gl_cv_sys_struct_timeval=no 23198fi 23199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23200 23201fi 23202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 23203$as_echo "$gl_cv_sys_struct_timeval" >&6; } 23204 if test $gl_cv_sys_struct_timeval != yes; then 23205 HAVE_STRUCT_TIMEVAL=0 23206 else 23207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5 23208$as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; } 23209if ${gl_cv_sys_struct_timeval_tv_sec+:} false; then : 23210 $as_echo_n "(cached) " >&6 23211else 23212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23213/* end confdefs.h. */ 23214#if HAVE_SYS_TIME_H 23215 #include <sys/time.h> 23216 #endif 23217 #include <time.h> 23218 #if HAVE_WINSOCK2_H 23219 # include <winsock2.h> 23220 #endif 23221 23222int 23223main () 23224{ 23225static struct timeval x; 23226 typedef int verify_tv_sec_type[ 23227 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 23228 ]; 23229 23230 ; 23231 return 0; 23232} 23233_ACEOF 23234if ac_fn_c_try_compile "$LINENO"; then : 23235 gl_cv_sys_struct_timeval_tv_sec=yes 23236else 23237 gl_cv_sys_struct_timeval_tv_sec=no 23238fi 23239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23240 23241fi 23242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 23243$as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; } 23244 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then 23245 REPLACE_STRUCT_TIMEVAL=1 23246 fi 23247 fi 23248 23249 23250 for gl_func in gettimeofday; do 23251 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 23253$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 23254if eval \${$as_gl_Symbol+:} false; then : 23255 $as_echo_n "(cached) " >&6 23256else 23257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23258/* end confdefs.h. */ 23259 23260#if HAVE_SYS_TIME_H 23261# include <sys/time.h> 23262#endif 23263#include <time.h> 23264 23265int 23266main () 23267{ 23268#undef $gl_func 23269 (void) $gl_func; 23270 ; 23271 return 0; 23272} 23273_ACEOF 23274if ac_fn_c_try_compile "$LINENO"; then : 23275 eval "$as_gl_Symbol=yes" 23276else 23277 eval "$as_gl_Symbol=no" 23278fi 23279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23280fi 23281eval ac_res=\$$as_gl_Symbol 23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23283$as_echo "$ac_res" >&6; } 23284 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 23285 cat >>confdefs.h <<_ACEOF 23286#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 23287_ACEOF 23288 23289 eval ac_cv_have_decl_$gl_func=yes 23290fi 23291 done 23292 23293 23294 23295 23296 23297 23298 23299 23300 NEED_LOCALTIME_BUFFER=0 23301 23302 23303 GNULIB_CTIME=0; 23304 GNULIB_MKTIME=0; 23305 GNULIB_LOCALTIME=0; 23306 GNULIB_NANOSLEEP=0; 23307 GNULIB_STRFTIME=0; 23308 GNULIB_STRPTIME=0; 23309 GNULIB_TIMEGM=0; 23310 GNULIB_TIME_R=0; 23311 GNULIB_TIME_RZ=0; 23312 GNULIB_TZSET=0; 23313 HAVE_DECL_LOCALTIME_R=1; 23314 HAVE_NANOSLEEP=1; 23315 HAVE_STRPTIME=1; 23316 HAVE_TIMEGM=1; 23317 HAVE_TZSET=1; 23318 HAVE_TIMEZONE_T=0; 23319 REPLACE_CTIME=GNULIB_PORTCHECK; 23320 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; 23321 REPLACE_MKTIME=GNULIB_PORTCHECK; 23322 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; 23323 REPLACE_STRFTIME=GNULIB_PORTCHECK; 23324 REPLACE_TIMEGM=GNULIB_PORTCHECK; 23325 REPLACE_TZSET=GNULIB_PORTCHECK; 23326 23327 : ${GNULIB_GETTIMEOFDAY=0}; 23328 REPLACE_GMTIME=0; 23329 REPLACE_LOCALTIME=0; 23330 23331 23332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23333/* end confdefs.h. */ 23334 23335#ifdef _MSC_VER 23336MicrosoftCompiler 23337#endif 23338 23339_ACEOF 23340if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 23341 $EGREP "MicrosoftCompiler" >/dev/null 2>&1; then : 23342 gl_asmext='asm' 23343 gl_c_asm_opt='-c -Fa' 23344 23345else 23346 gl_asmext='s' 23347 gl_c_asm_opt='-S' 23348 23349fi 23350rm -f conftest* 23351 23352 23353 23354 23355 23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5 23357$as_echo_n "checking host CPU and C ABI... " >&6; } 23358if ${gl_cv_host_cpu_c_abi+:} false; then : 23359 $as_echo_n "(cached) " >&6 23360else 23361 case "$host_cpu" in 23362 23363 i[4567]86 ) 23364 gl_cv_host_cpu_c_abi=i386 23365 ;; 23366 23367 x86_64 ) 23368 # On x86_64 systems, the C compiler may be generating code in one of 23369 # these ABIs: 23370 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. 23371 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 23372 # with native Windows (mingw, MSVC). 23373 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. 23374 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. 23375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23376/* end confdefs.h. */ 23377#if (defined __x86_64__ || defined __amd64__ \ 23378 || defined _M_X64 || defined _M_AMD64) 23379 int ok; 23380 #else 23381 error fail 23382 #endif 23383 23384_ACEOF 23385if ac_fn_c_try_compile "$LINENO"; then : 23386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23387/* end confdefs.h. */ 23388#if defined __ILP32__ || defined _ILP32 23389 int ok; 23390 #else 23391 error fail 23392 #endif 23393 23394_ACEOF 23395if ac_fn_c_try_compile "$LINENO"; then : 23396 gl_cv_host_cpu_c_abi=x86_64-x32 23397else 23398 gl_cv_host_cpu_c_abi=x86_64 23399fi 23400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23401else 23402 gl_cv_host_cpu_c_abi=i386 23403fi 23404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23405 ;; 23406 23407 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) 23408 gl_cv_host_cpu_c_abi=alpha 23409 ;; 23410 23411 arm* | aarch64 ) 23412 # Assume arm with EABI. 23413 # On arm64 systems, the C compiler may be generating code in one of 23414 # these ABIs: 23415 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. 23416 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. 23417 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. 23418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23419/* end confdefs.h. */ 23420#ifdef __aarch64__ 23421 int ok; 23422 #else 23423 error fail 23424 #endif 23425 23426_ACEOF 23427if ac_fn_c_try_compile "$LINENO"; then : 23428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23429/* end confdefs.h. */ 23430#if defined __ILP32__ || defined _ILP32 23431 int ok; 23432 #else 23433 error fail 23434 #endif 23435 23436_ACEOF 23437if ac_fn_c_try_compile "$LINENO"; then : 23438 gl_cv_host_cpu_c_abi=arm64-ilp32 23439else 23440 gl_cv_host_cpu_c_abi=arm64 23441fi 23442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23443else 23444 # Don't distinguish little-endian and big-endian arm, since they 23445 # don't require different machine code for simple operations and 23446 # since the user can distinguish them through the preprocessor 23447 # defines __ARMEL__ vs. __ARMEB__. 23448 # But distinguish arm which passes floating-point arguments and 23449 # return values in integer registers (r0, r1, ...) - this is 23450 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which 23451 # passes them in float registers (s0, s1, ...) and double registers 23452 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer 23453 # sets the preprocessor defines __ARM_PCS (for the first case) and 23454 # __ARM_PCS_VFP (for the second case), but older GCC does not. 23455 echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c 23456 # Look for a reference to the register d0 in the .s file. 23457 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c' 23458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 23459 (eval $ac_try) 2>&5 23460 ac_status=$? 23461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23462 test $ac_status = 0; }; } >/dev/null 2>&1 23463 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then 23464 gl_cv_host_cpu_c_abi=armhf 23465 else 23466 gl_cv_host_cpu_c_abi=arm 23467 fi 23468 rm -f conftest* 23469 23470fi 23471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23472 ;; 23473 23474 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) 23475 # On hppa, the C compiler may be generating 32-bit code or 64-bit 23476 # code. In the latter case, it defines _LP64 and __LP64__. 23477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23478/* end confdefs.h. */ 23479#ifdef __LP64__ 23480 int ok; 23481 #else 23482 error fail 23483 #endif 23484 23485_ACEOF 23486if ac_fn_c_try_compile "$LINENO"; then : 23487 gl_cv_host_cpu_c_abi=hppa64 23488else 23489 gl_cv_host_cpu_c_abi=hppa 23490fi 23491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23492 ;; 23493 23494 ia64* ) 23495 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or 23496 # 32-bit code. In the latter case, it defines _ILP32. 23497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23498/* end confdefs.h. */ 23499#ifdef _ILP32 23500 int ok; 23501 #else 23502 error fail 23503 #endif 23504 23505_ACEOF 23506if ac_fn_c_try_compile "$LINENO"; then : 23507 gl_cv_host_cpu_c_abi=ia64-ilp32 23508else 23509 gl_cv_host_cpu_c_abi=ia64 23510fi 23511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23512 ;; 23513 23514 mips* ) 23515 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this 23516 # at 32. 23517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23518/* end confdefs.h. */ 23519#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) 23520 int ok; 23521 #else 23522 error fail 23523 #endif 23524 23525_ACEOF 23526if ac_fn_c_try_compile "$LINENO"; then : 23527 gl_cv_host_cpu_c_abi=mips64 23528else 23529 # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but 23530 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32. 23531 # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but 23532 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32. 23533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23534/* end confdefs.h. */ 23535#if (_MIPS_SIM == _ABIN32) 23536 int ok; 23537 #else 23538 error fail 23539 #endif 23540 23541_ACEOF 23542if ac_fn_c_try_compile "$LINENO"; then : 23543 gl_cv_host_cpu_c_abi=mipsn32 23544else 23545 gl_cv_host_cpu_c_abi=mips 23546fi 23547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23548fi 23549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23550 ;; 23551 23552 powerpc* ) 23553 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. 23554 # No need to distinguish them here; the caller may distinguish 23555 # them based on the OS. 23556 # On powerpc64 systems, the C compiler may still be generating 23557 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may 23558 # be generating 64-bit code. 23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23560/* end confdefs.h. */ 23561#if defined __powerpc64__ || defined _ARCH_PPC64 23562 int ok; 23563 #else 23564 error fail 23565 #endif 23566 23567_ACEOF 23568if ac_fn_c_try_compile "$LINENO"; then : 23569 # On powerpc64, there are two ABIs on Linux: The AIX compatible 23570 # one and the ELFv2 one. The latter defines _CALL_ELF=2. 23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23572/* end confdefs.h. */ 23573#if defined _CALL_ELF && _CALL_ELF == 2 23574 int ok; 23575 #else 23576 error fail 23577 #endif 23578 23579_ACEOF 23580if ac_fn_c_try_compile "$LINENO"; then : 23581 gl_cv_host_cpu_c_abi=powerpc64-elfv2 23582else 23583 gl_cv_host_cpu_c_abi=powerpc64 23584fi 23585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23586 23587else 23588 gl_cv_host_cpu_c_abi=powerpc 23589fi 23590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23591 ;; 23592 23593 rs6000 ) 23594 gl_cv_host_cpu_c_abi=powerpc 23595 ;; 23596 23597 s390* ) 23598 # On s390x, the C compiler may be generating 64-bit (= s390x) code 23599 # or 31-bit (= s390) code. 23600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23601/* end confdefs.h. */ 23602#if defined __LP64__ || defined __s390x__ 23603 int ok; 23604 #else 23605 error fail 23606 #endif 23607 23608_ACEOF 23609if ac_fn_c_try_compile "$LINENO"; then : 23610 gl_cv_host_cpu_c_abi=s390x 23611else 23612 gl_cv_host_cpu_c_abi=s390 23613fi 23614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23615 ;; 23616 23617 sparc | sparc64 ) 23618 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the 23619 # C compiler still generates 32-bit code. 23620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23621/* end confdefs.h. */ 23622#if defined __sparcv9 || defined __arch64__ 23623 int ok; 23624 #else 23625 error fail 23626 #endif 23627 23628_ACEOF 23629if ac_fn_c_try_compile "$LINENO"; then : 23630 gl_cv_host_cpu_c_abi=sparc64 23631else 23632 gl_cv_host_cpu_c_abi=sparc 23633fi 23634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23635 ;; 23636 23637 *) 23638 gl_cv_host_cpu_c_abi="$host_cpu" 23639 ;; 23640 esac 23641 23642fi 23643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5 23644$as_echo "$gl_cv_host_cpu_c_abi" >&6; } 23645 23646 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'` 23647 HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi" 23648 23649 23650 23651 # This was 23652 # AC_DEFINE_UNQUOTED([__${HOST_CPU}__]) 23653 # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__]) 23654 # earlier, but KAI C++ 3.2d doesn't like this. 23655 sed -e 's/-/_/g' >> confdefs.h <<EOF 23656#ifndef __${HOST_CPU}__ 23657#define __${HOST_CPU}__ 1 23658#endif 23659#ifndef __${HOST_CPU_C_ABI}__ 23660#define __${HOST_CPU_C_ABI}__ 1 23661#endif 23662EOF 23663 23664 23665 23666 23667 23668 23669 23670 23671 23672 23673 23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv4 sockets" >&5 23675$as_echo_n "checking for IPv4 sockets... " >&6; } 23676 if ${gl_cv_socket_ipv4+:} false; then : 23677 $as_echo_n "(cached) " >&6 23678else 23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23680/* end confdefs.h. */ 23681#include <sys/types.h> 23682#ifdef HAVE_SYS_SOCKET_H 23683#include <sys/socket.h> 23684#endif 23685#ifdef HAVE_NETINET_IN_H 23686#include <netinet/in.h> 23687#endif 23688#ifdef HAVE_WINSOCK2_H 23689#include <winsock2.h> 23690#endif 23691int 23692main () 23693{ 23694int x = AF_INET; struct in_addr y; struct sockaddr_in z; 23695 if (&x && &y && &z) return 0; 23696 ; 23697 return 0; 23698} 23699_ACEOF 23700if ac_fn_c_try_compile "$LINENO"; then : 23701 gl_cv_socket_ipv4=yes 23702else 23703 gl_cv_socket_ipv4=no 23704fi 23705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23706fi 23707 23708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv4" >&5 23709$as_echo "$gl_cv_socket_ipv4" >&6; } 23710 if test $gl_cv_socket_ipv4 = yes; then 23711 23712$as_echo "#define HAVE_IPV4 1" >>confdefs.h 23713 23714 fi 23715 23716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 sockets" >&5 23717$as_echo_n "checking for IPv6 sockets... " >&6; } 23718 if ${gl_cv_socket_ipv6+:} false; then : 23719 $as_echo_n "(cached) " >&6 23720else 23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23722/* end confdefs.h. */ 23723#include <sys/types.h> 23724#ifdef HAVE_SYS_SOCKET_H 23725#include <sys/socket.h> 23726#endif 23727#ifdef HAVE_NETINET_IN_H 23728#include <netinet/in.h> 23729#endif 23730#ifdef HAVE_WINSOCK2_H 23731#include <winsock2.h> 23732#endif 23733#ifdef HAVE_WS2TCPIP_H 23734#include <ws2tcpip.h> 23735#endif 23736int 23737main () 23738{ 23739int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z; 23740 if (&x && &y && &z) return 0; 23741 ; 23742 return 0; 23743} 23744_ACEOF 23745if ac_fn_c_try_compile "$LINENO"; then : 23746 gl_cv_socket_ipv6=yes 23747else 23748 gl_cv_socket_ipv6=no 23749fi 23750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23751fi 23752 23753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socket_ipv6" >&5 23754$as_echo "$gl_cv_socket_ipv6" >&6; } 23755 if test $gl_cv_socket_ipv6 = yes; then 23756 23757$as_echo "#define HAVE_IPV6 1" >>confdefs.h 23758 23759 fi 23760 23761 23762 23763 23764 GNULIB_IMAXABS=0; 23765 GNULIB_IMAXDIV=0; 23766 GNULIB_STRTOIMAX=0; 23767 GNULIB_STRTOUMAX=0; 23768 HAVE_DECL_IMAXABS=1; 23769 HAVE_DECL_IMAXDIV=1; 23770 HAVE_DECL_STRTOIMAX=1; 23771 HAVE_DECL_STRTOUMAX=1; 23772 REPLACE_STRTOIMAX=0; 23773 REPLACE_STRTOUMAX=0; 23774 INT32_MAX_LT_INTMAX_MAX=1; 23775 INT64_MAX_EQ_LONG_MAX='defined _LP64'; 23776 PRI_MACROS_BROKEN=0; 23777 PRIPTR_PREFIX=__PRIPTR_PREFIX; 23778 UINT32_MAX_LT_UINTMAX_MAX=1; 23779 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 if test $gl_cv_have_include_next = yes; then 23796 gl_cv_next_inttypes_h='<'inttypes.h'>' 23797 else 23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 23799$as_echo_n "checking absolute name of <inttypes.h>... " >&6; } 23800if ${gl_cv_next_inttypes_h+:} false; then : 23801 $as_echo_n "(cached) " >&6 23802else 23803 23804 if test $ac_cv_header_inttypes_h = yes; then 23805 23806 23807 23808 23809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23810/* end confdefs.h. */ 23811#include <inttypes.h> 23812_ACEOF 23813 case "$host_os" in 23814 aix*) gl_absname_cpp="$ac_cpp -C" ;; 23815 *) gl_absname_cpp="$ac_cpp" ;; 23816 esac 23817 23818 case "$host_os" in 23819 mingw*) 23820 gl_dirsep_regex='[/\\]' 23821 ;; 23822 *) 23823 gl_dirsep_regex='\/' 23824 ;; 23825 esac 23826 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 23827 gl_header_literal_regex=`echo 'inttypes.h' \ 23828 | sed -e "$gl_make_literal_regex_sed"` 23829 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 23830 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 23831 s|^/[^/]|//&| 23832 p 23833 q 23834 }' 23835 23836 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 23837 sed -n "$gl_absolute_header_sed"` 23838 23839 gl_header=$gl_cv_absolute_inttypes_h 23840 gl_cv_next_inttypes_h='"'$gl_header'"' 23841 else 23842 gl_cv_next_inttypes_h='<'inttypes.h'>' 23843 fi 23844 23845 23846fi 23847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 23848$as_echo "$gl_cv_next_inttypes_h" >&6; } 23849 fi 23850 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h 23851 23852 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 23853 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 23854 gl_next_as_first_directive='<'inttypes.h'>' 23855 else 23856 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 23857 gl_next_as_first_directive=$gl_cv_next_inttypes_h 23858 fi 23859 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive 23860 23861 23862 23863 23864 23865 23866 23867 23868 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do 23869 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 23870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 23871$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 23872if eval \${$as_gl_Symbol+:} false; then : 23873 $as_echo_n "(cached) " >&6 23874else 23875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23876/* end confdefs.h. */ 23877#include <inttypes.h> 23878 23879int 23880main () 23881{ 23882#undef $gl_func 23883 (void) $gl_func; 23884 ; 23885 return 0; 23886} 23887_ACEOF 23888if ac_fn_c_try_compile "$LINENO"; then : 23889 eval "$as_gl_Symbol=yes" 23890else 23891 eval "$as_gl_Symbol=no" 23892fi 23893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23894fi 23895eval ac_res=\$$as_gl_Symbol 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 23897$as_echo "$ac_res" >&6; } 23898 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 23899 cat >>confdefs.h <<_ACEOF 23900#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 23901_ACEOF 23902 23903 eval ac_cv_have_decl_$gl_func=yes 23904fi 23905 done 23906 23907 23908 23909 for ac_header in inttypes.h 23910do : 23911 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 23912if test "x$ac_cv_header_inttypes_h" = xyes; then : 23913 cat >>confdefs.h <<_ACEOF 23914#define HAVE_INTTYPES_H 1 23915_ACEOF 23916 23917fi 23918 23919done 23920 23921 if test $ac_cv_header_inttypes_h = yes; then 23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 23923$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 23924if ${gt_cv_inttypes_pri_broken+:} false; then : 23925 $as_echo_n "(cached) " >&6 23926else 23927 23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23929/* end confdefs.h. */ 23930 23931#include <inttypes.h> 23932#ifdef PRId32 23933char *p = PRId32; 23934#endif 23935 23936int 23937main () 23938{ 23939 23940 ; 23941 return 0; 23942} 23943_ACEOF 23944if ac_fn_c_try_compile "$LINENO"; then : 23945 gt_cv_inttypes_pri_broken=no 23946else 23947 gt_cv_inttypes_pri_broken=yes 23948fi 23949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 23950 23951fi 23952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 23953$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 23954 fi 23955 if test "$gt_cv_inttypes_pri_broken" = yes; then 23956 23957cat >>confdefs.h <<_ACEOF 23958#define PRI_MACROS_BROKEN 1 23959_ACEOF 23960 23961 PRI_MACROS_BROKEN=1 23962 else 23963 PRI_MACROS_BROKEN=0 23964 fi 23965 23966 23967 23968 23969 23970 23971 gl_threads_api=none 23972 LIBTHREAD= 23973 LTLIBTHREAD= 23974 LIBMULTITHREAD= 23975 LTLIBMULTITHREAD= 23976 if test "$gl_use_threads" != no; then 23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 23978$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 23979if ${gl_cv_have_weak+:} false; then : 23980 $as_echo_n "(cached) " >&6 23981else 23982 gl_cv_have_weak=no 23983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23984/* end confdefs.h. */ 23985extern void xyzzy (); 23986#pragma weak xyzzy 23987int 23988main () 23989{ 23990xyzzy(); 23991 ; 23992 return 0; 23993} 23994_ACEOF 23995if ac_fn_c_try_link "$LINENO"; then : 23996 gl_cv_have_weak=maybe 23997fi 23998rm -f core conftest.err conftest.$ac_objext \ 23999 conftest$ac_exeext conftest.$ac_ext 24000 if test $gl_cv_have_weak = maybe; then 24001 if test "$cross_compiling" = yes; then : 24002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24003/* end confdefs.h. */ 24004#ifdef __ELF__ 24005 Extensible Linking Format 24006 #endif 24007 24008_ACEOF 24009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24010 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 24011 gl_cv_have_weak="guessing yes" 24012else 24013 gl_cv_have_weak="guessing no" 24014fi 24015rm -f conftest* 24016 24017 24018else 24019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24020/* end confdefs.h. */ 24021 24022#include <stdio.h> 24023#pragma weak fputs 24024int main () 24025{ 24026 return (fputs == NULL); 24027} 24028_ACEOF 24029if ac_fn_c_try_run "$LINENO"; then : 24030 gl_cv_have_weak=yes 24031else 24032 gl_cv_have_weak=no 24033fi 24034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24035 conftest.$ac_objext conftest.beam conftest.$ac_ext 24036fi 24037 24038 fi 24039 24040fi 24041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 24042$as_echo "$gl_cv_have_weak" >&6; } 24043 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 24044 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 24045 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. 24046 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 24047if test "x$ac_cv_header_pthread_h" = xyes; then : 24048 gl_have_pthread_h=yes 24049else 24050 gl_have_pthread_h=no 24051fi 24052 24053 24054 if test "$gl_have_pthread_h" = yes; then 24055 # Other possible tests: 24056 # -lpthreads (FSU threads, PCthreads) 24057 # -lgthreads 24058 gl_have_pthread= 24059 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 24060 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 24061 # the second one only in libpthread, and lock.c needs it. 24062 # 24063 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 24064 # needs -pthread for some reason. See: 24065 # http://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00023.html 24066 save_LIBS=$LIBS 24067 for gl_pthread in '' '-pthread'; do 24068 LIBS="$LIBS $gl_pthread" 24069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24070/* end confdefs.h. */ 24071#include <pthread.h> 24072 pthread_mutex_t m; 24073 pthread_mutexattr_t ma; 24074 24075int 24076main () 24077{ 24078pthread_mutex_lock (&m); 24079 pthread_mutexattr_init (&ma); 24080 ; 24081 return 0; 24082} 24083_ACEOF 24084if ac_fn_c_try_link "$LINENO"; then : 24085 gl_have_pthread=yes 24086 LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread 24087 LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread 24088fi 24089rm -f core conftest.err conftest.$ac_objext \ 24090 conftest$ac_exeext conftest.$ac_ext 24091 LIBS=$save_LIBS 24092 test -n "$gl_have_pthread" && break 24093 done 24094 24095 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 24096 # since it is defined as a macro on OSF/1.) 24097 if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then 24098 # The program links fine without libpthread. But it may actually 24099 # need to link with libpthread in order to create multiple threads. 24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 24101$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 24102if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 24103 $as_echo_n "(cached) " >&6 24104else 24105 ac_check_lib_save_LIBS=$LIBS 24106LIBS="-lpthread $LIBS" 24107cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24108/* end confdefs.h. */ 24109 24110/* Override any GCC internal prototype to avoid an error. 24111 Use char because int might match the return type of a GCC 24112 builtin and then its argument prototype would still apply. */ 24113#ifdef __cplusplus 24114extern "C" 24115#endif 24116char pthread_kill (); 24117int 24118main () 24119{ 24120return pthread_kill (); 24121 ; 24122 return 0; 24123} 24124_ACEOF 24125if ac_fn_c_try_link "$LINENO"; then : 24126 ac_cv_lib_pthread_pthread_kill=yes 24127else 24128 ac_cv_lib_pthread_pthread_kill=no 24129fi 24130rm -f core conftest.err conftest.$ac_objext \ 24131 conftest$ac_exeext conftest.$ac_ext 24132LIBS=$ac_check_lib_save_LIBS 24133fi 24134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 24135$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 24136if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 24137 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 24138 # On Solaris and HP-UX, most pthread functions exist also in libc. 24139 # Therefore pthread_in_use() needs to actually try to create a 24140 # thread: pthread_create from libc will fail, whereas 24141 # pthread_create will actually create a thread. 24142 case "$host_os" in 24143 solaris* | hpux*) 24144 24145$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 24146 24147 esac 24148 24149fi 24150 24151 elif test -z "$gl_have_pthread"; then 24152 # Some library is needed. Try libpthread and libc_r. 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 24154$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 24155if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 24156 $as_echo_n "(cached) " >&6 24157else 24158 ac_check_lib_save_LIBS=$LIBS 24159LIBS="-lpthread $LIBS" 24160cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24161/* end confdefs.h. */ 24162 24163/* Override any GCC internal prototype to avoid an error. 24164 Use char because int might match the return type of a GCC 24165 builtin and then its argument prototype would still apply. */ 24166#ifdef __cplusplus 24167extern "C" 24168#endif 24169char pthread_kill (); 24170int 24171main () 24172{ 24173return pthread_kill (); 24174 ; 24175 return 0; 24176} 24177_ACEOF 24178if ac_fn_c_try_link "$LINENO"; then : 24179 ac_cv_lib_pthread_pthread_kill=yes 24180else 24181 ac_cv_lib_pthread_pthread_kill=no 24182fi 24183rm -f core conftest.err conftest.$ac_objext \ 24184 conftest$ac_exeext conftest.$ac_ext 24185LIBS=$ac_check_lib_save_LIBS 24186fi 24187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 24188$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 24189if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 24190 gl_have_pthread=yes 24191 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread 24192 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 24193fi 24194 24195 if test -z "$gl_have_pthread"; then 24196 # For FreeBSD 4. 24197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 24198$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 24199if ${ac_cv_lib_c_r_pthread_kill+:} false; then : 24200 $as_echo_n "(cached) " >&6 24201else 24202 ac_check_lib_save_LIBS=$LIBS 24203LIBS="-lc_r $LIBS" 24204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24205/* end confdefs.h. */ 24206 24207/* Override any GCC internal prototype to avoid an error. 24208 Use char because int might match the return type of a GCC 24209 builtin and then its argument prototype would still apply. */ 24210#ifdef __cplusplus 24211extern "C" 24212#endif 24213char pthread_kill (); 24214int 24215main () 24216{ 24217return pthread_kill (); 24218 ; 24219 return 0; 24220} 24221_ACEOF 24222if ac_fn_c_try_link "$LINENO"; then : 24223 ac_cv_lib_c_r_pthread_kill=yes 24224else 24225 ac_cv_lib_c_r_pthread_kill=no 24226fi 24227rm -f core conftest.err conftest.$ac_objext \ 24228 conftest$ac_exeext conftest.$ac_ext 24229LIBS=$ac_check_lib_save_LIBS 24230fi 24231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 24232$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 24233if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : 24234 gl_have_pthread=yes 24235 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r 24236 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r 24237fi 24238 24239 fi 24240 fi 24241 if test -n "$gl_have_pthread"; then 24242 gl_threads_api=posix 24243 24244$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h 24245 24246 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 24247 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 24248 24249$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 24250 24251 LIBTHREAD= 24252 LTLIBTHREAD= 24253 fi 24254 fi 24255 fi 24256 fi 24257 fi 24258 if test -z "$gl_have_pthread"; then 24259 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then 24260 gl_have_solaristhread= 24261 gl_save_LIBS="$LIBS" 24262 LIBS="$LIBS -lthread" 24263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24264/* end confdefs.h. */ 24265 24266#include <thread.h> 24267#include <synch.h> 24268 24269int 24270main () 24271{ 24272thr_self(); 24273 ; 24274 return 0; 24275} 24276_ACEOF 24277if ac_fn_c_try_link "$LINENO"; then : 24278 gl_have_solaristhread=yes 24279fi 24280rm -f core conftest.err conftest.$ac_objext \ 24281 conftest$ac_exeext conftest.$ac_ext 24282 LIBS="$gl_save_LIBS" 24283 if test -n "$gl_have_solaristhread"; then 24284 gl_threads_api=solaris 24285 LIBTHREAD=-lthread 24286 LTLIBTHREAD=-lthread 24287 LIBMULTITHREAD="$LIBTHREAD" 24288 LTLIBMULTITHREAD="$LTLIBTHREAD" 24289 24290$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h 24291 24292 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 24293 24294$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h 24295 24296 LIBTHREAD= 24297 LTLIBTHREAD= 24298 fi 24299 fi 24300 fi 24301 fi 24302 if test "$gl_use_threads" = pth; then 24303 gl_save_CPPFLAGS="$CPPFLAGS" 24304 24305 24306 24307 24308 24309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 24310$as_echo_n "checking how to link with libpth... " >&6; } 24311if ${ac_cv_libpth_libs+:} false; then : 24312 $as_echo_n "(cached) " >&6 24313else 24314 24315 24316 24317 24318 24319 24320 24321 24322 use_additional=yes 24323 24324 acl_save_prefix="$prefix" 24325 prefix="$acl_final_prefix" 24326 acl_save_exec_prefix="$exec_prefix" 24327 exec_prefix="$acl_final_exec_prefix" 24328 24329 eval additional_includedir=\"$includedir\" 24330 eval additional_libdir=\"$libdir\" 24331 24332 exec_prefix="$acl_save_exec_prefix" 24333 prefix="$acl_save_prefix" 24334 24335 24336# Check whether --with-libpth-prefix was given. 24337if test "${with_libpth_prefix+set}" = set; then : 24338 withval=$with_libpth_prefix; 24339 if test "X$withval" = "Xno"; then 24340 use_additional=no 24341 else 24342 if test "X$withval" = "X"; then 24343 24344 acl_save_prefix="$prefix" 24345 prefix="$acl_final_prefix" 24346 acl_save_exec_prefix="$exec_prefix" 24347 exec_prefix="$acl_final_exec_prefix" 24348 24349 eval additional_includedir=\"$includedir\" 24350 eval additional_libdir=\"$libdir\" 24351 24352 exec_prefix="$acl_save_exec_prefix" 24353 prefix="$acl_save_prefix" 24354 24355 else 24356 additional_includedir="$withval/include" 24357 additional_libdir="$withval/$acl_libdirstem" 24358 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 24359 && ! test -d "$withval/$acl_libdirstem"; then 24360 additional_libdir="$withval/$acl_libdirstem2" 24361 fi 24362 fi 24363 fi 24364 24365fi 24366 24367 LIBPTH= 24368 LTLIBPTH= 24369 INCPTH= 24370 LIBPTH_PREFIX= 24371 HAVE_LIBPTH= 24372 rpathdirs= 24373 ltrpathdirs= 24374 names_already_handled= 24375 names_next_round='pth ' 24376 while test -n "$names_next_round"; do 24377 names_this_round="$names_next_round" 24378 names_next_round= 24379 for name in $names_this_round; do 24380 already_handled= 24381 for n in $names_already_handled; do 24382 if test "$n" = "$name"; then 24383 already_handled=yes 24384 break 24385 fi 24386 done 24387 if test -z "$already_handled"; then 24388 names_already_handled="$names_already_handled $name" 24389 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 24390 eval value=\"\$HAVE_LIB$uppername\" 24391 if test -n "$value"; then 24392 if test "$value" = yes; then 24393 eval value=\"\$LIB$uppername\" 24394 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" 24395 eval value=\"\$LTLIB$uppername\" 24396 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" 24397 else 24398 : 24399 fi 24400 else 24401 found_dir= 24402 found_la= 24403 found_so= 24404 found_a= 24405 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 24406 if test -n "$acl_shlibext"; then 24407 shrext=".$acl_shlibext" # typically: shrext=.so 24408 else 24409 shrext= 24410 fi 24411 if test $use_additional = yes; then 24412 dir="$additional_libdir" 24413 if test -n "$acl_shlibext"; then 24414 if test -f "$dir/$libname$shrext"; then 24415 found_dir="$dir" 24416 found_so="$dir/$libname$shrext" 24417 else 24418 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 24419 ver=`(cd "$dir" && \ 24420 for f in "$libname$shrext".*; do echo "$f"; done \ 24421 | sed -e "s,^$libname$shrext\\\\.,," \ 24422 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 24423 | sed 1q ) 2>/dev/null` 24424 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 24425 found_dir="$dir" 24426 found_so="$dir/$libname$shrext.$ver" 24427 fi 24428 else 24429 eval library_names=\"$acl_library_names_spec\" 24430 for f in $library_names; do 24431 if test -f "$dir/$f"; then 24432 found_dir="$dir" 24433 found_so="$dir/$f" 24434 break 24435 fi 24436 done 24437 fi 24438 fi 24439 fi 24440 if test "X$found_dir" = "X"; then 24441 if test -f "$dir/$libname.$acl_libext"; then 24442 found_dir="$dir" 24443 found_a="$dir/$libname.$acl_libext" 24444 fi 24445 fi 24446 if test "X$found_dir" != "X"; then 24447 if test -f "$dir/$libname.la"; then 24448 found_la="$dir/$libname.la" 24449 fi 24450 fi 24451 fi 24452 if test "X$found_dir" = "X"; then 24453 for x in $LDFLAGS $LTLIBPTH; do 24454 24455 acl_save_prefix="$prefix" 24456 prefix="$acl_final_prefix" 24457 acl_save_exec_prefix="$exec_prefix" 24458 exec_prefix="$acl_final_exec_prefix" 24459 eval x=\"$x\" 24460 exec_prefix="$acl_save_exec_prefix" 24461 prefix="$acl_save_prefix" 24462 24463 case "$x" in 24464 -L*) 24465 dir=`echo "X$x" | sed -e 's/^X-L//'` 24466 if test -n "$acl_shlibext"; then 24467 if test -f "$dir/$libname$shrext"; then 24468 found_dir="$dir" 24469 found_so="$dir/$libname$shrext" 24470 else 24471 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 24472 ver=`(cd "$dir" && \ 24473 for f in "$libname$shrext".*; do echo "$f"; done \ 24474 | sed -e "s,^$libname$shrext\\\\.,," \ 24475 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 24476 | sed 1q ) 2>/dev/null` 24477 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 24478 found_dir="$dir" 24479 found_so="$dir/$libname$shrext.$ver" 24480 fi 24481 else 24482 eval library_names=\"$acl_library_names_spec\" 24483 for f in $library_names; do 24484 if test -f "$dir/$f"; then 24485 found_dir="$dir" 24486 found_so="$dir/$f" 24487 break 24488 fi 24489 done 24490 fi 24491 fi 24492 fi 24493 if test "X$found_dir" = "X"; then 24494 if test -f "$dir/$libname.$acl_libext"; then 24495 found_dir="$dir" 24496 found_a="$dir/$libname.$acl_libext" 24497 fi 24498 fi 24499 if test "X$found_dir" != "X"; then 24500 if test -f "$dir/$libname.la"; then 24501 found_la="$dir/$libname.la" 24502 fi 24503 fi 24504 ;; 24505 esac 24506 if test "X$found_dir" != "X"; then 24507 break 24508 fi 24509 done 24510 fi 24511 if test "X$found_dir" != "X"; then 24512 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" 24513 if test "X$found_so" != "X"; then 24514 if test "$enable_rpath" = no \ 24515 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 24516 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 24517 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 24518 else 24519 haveit= 24520 for x in $ltrpathdirs; do 24521 if test "X$x" = "X$found_dir"; then 24522 haveit=yes 24523 break 24524 fi 24525 done 24526 if test -z "$haveit"; then 24527 ltrpathdirs="$ltrpathdirs $found_dir" 24528 fi 24529 if test "$acl_hardcode_direct" = yes; then 24530 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 24531 else 24532 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 24533 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 24534 haveit= 24535 for x in $rpathdirs; do 24536 if test "X$x" = "X$found_dir"; then 24537 haveit=yes 24538 break 24539 fi 24540 done 24541 if test -z "$haveit"; then 24542 rpathdirs="$rpathdirs $found_dir" 24543 fi 24544 else 24545 haveit= 24546 for x in $LDFLAGS $LIBPTH; do 24547 24548 acl_save_prefix="$prefix" 24549 prefix="$acl_final_prefix" 24550 acl_save_exec_prefix="$exec_prefix" 24551 exec_prefix="$acl_final_exec_prefix" 24552 eval x=\"$x\" 24553 exec_prefix="$acl_save_exec_prefix" 24554 prefix="$acl_save_prefix" 24555 24556 if test "X$x" = "X-L$found_dir"; then 24557 haveit=yes 24558 break 24559 fi 24560 done 24561 if test -z "$haveit"; then 24562 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" 24563 fi 24564 if test "$acl_hardcode_minus_L" != no; then 24565 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 24566 else 24567 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 24568 fi 24569 fi 24570 fi 24571 fi 24572 else 24573 if test "X$found_a" != "X"; then 24574 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" 24575 else 24576 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" 24577 fi 24578 fi 24579 additional_includedir= 24580 case "$found_dir" in 24581 */$acl_libdirstem | */$acl_libdirstem/) 24582 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 24583 if test "$name" = 'pth'; then 24584 LIBPTH_PREFIX="$basedir" 24585 fi 24586 additional_includedir="$basedir/include" 24587 ;; 24588 */$acl_libdirstem2 | */$acl_libdirstem2/) 24589 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 24590 if test "$name" = 'pth'; then 24591 LIBPTH_PREFIX="$basedir" 24592 fi 24593 additional_includedir="$basedir/include" 24594 ;; 24595 esac 24596 if test "X$additional_includedir" != "X"; then 24597 if test "X$additional_includedir" != "X/usr/include"; then 24598 haveit= 24599 if test "X$additional_includedir" = "X/usr/local/include"; then 24600 if test -n "$GCC"; then 24601 case $host_os in 24602 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 24603 esac 24604 fi 24605 fi 24606 if test -z "$haveit"; then 24607 for x in $CPPFLAGS $INCPTH; do 24608 24609 acl_save_prefix="$prefix" 24610 prefix="$acl_final_prefix" 24611 acl_save_exec_prefix="$exec_prefix" 24612 exec_prefix="$acl_final_exec_prefix" 24613 eval x=\"$x\" 24614 exec_prefix="$acl_save_exec_prefix" 24615 prefix="$acl_save_prefix" 24616 24617 if test "X$x" = "X-I$additional_includedir"; then 24618 haveit=yes 24619 break 24620 fi 24621 done 24622 if test -z "$haveit"; then 24623 if test -d "$additional_includedir"; then 24624 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" 24625 fi 24626 fi 24627 fi 24628 fi 24629 fi 24630 if test -n "$found_la"; then 24631 save_libdir="$libdir" 24632 case "$found_la" in 24633 */* | *\\*) . "$found_la" ;; 24634 *) . "./$found_la" ;; 24635 esac 24636 libdir="$save_libdir" 24637 for dep in $dependency_libs; do 24638 case "$dep" in 24639 -L*) 24640 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 24641 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 24642 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 24643 haveit= 24644 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 24645 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 24646 if test -n "$GCC"; then 24647 case $host_os in 24648 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 24649 esac 24650 fi 24651 fi 24652 if test -z "$haveit"; then 24653 haveit= 24654 for x in $LDFLAGS $LIBPTH; do 24655 24656 acl_save_prefix="$prefix" 24657 prefix="$acl_final_prefix" 24658 acl_save_exec_prefix="$exec_prefix" 24659 exec_prefix="$acl_final_exec_prefix" 24660 eval x=\"$x\" 24661 exec_prefix="$acl_save_exec_prefix" 24662 prefix="$acl_save_prefix" 24663 24664 if test "X$x" = "X-L$additional_libdir"; then 24665 haveit=yes 24666 break 24667 fi 24668 done 24669 if test -z "$haveit"; then 24670 if test -d "$additional_libdir"; then 24671 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" 24672 fi 24673 fi 24674 haveit= 24675 for x in $LDFLAGS $LTLIBPTH; do 24676 24677 acl_save_prefix="$prefix" 24678 prefix="$acl_final_prefix" 24679 acl_save_exec_prefix="$exec_prefix" 24680 exec_prefix="$acl_final_exec_prefix" 24681 eval x=\"$x\" 24682 exec_prefix="$acl_save_exec_prefix" 24683 prefix="$acl_save_prefix" 24684 24685 if test "X$x" = "X-L$additional_libdir"; then 24686 haveit=yes 24687 break 24688 fi 24689 done 24690 if test -z "$haveit"; then 24691 if test -d "$additional_libdir"; then 24692 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" 24693 fi 24694 fi 24695 fi 24696 fi 24697 ;; 24698 -R*) 24699 dir=`echo "X$dep" | sed -e 's/^X-R//'` 24700 if test "$enable_rpath" != no; then 24701 haveit= 24702 for x in $rpathdirs; do 24703 if test "X$x" = "X$dir"; then 24704 haveit=yes 24705 break 24706 fi 24707 done 24708 if test -z "$haveit"; then 24709 rpathdirs="$rpathdirs $dir" 24710 fi 24711 haveit= 24712 for x in $ltrpathdirs; do 24713 if test "X$x" = "X$dir"; then 24714 haveit=yes 24715 break 24716 fi 24717 done 24718 if test -z "$haveit"; then 24719 ltrpathdirs="$ltrpathdirs $dir" 24720 fi 24721 fi 24722 ;; 24723 -l*) 24724 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 24725 ;; 24726 *.la) 24727 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 24728 ;; 24729 *) 24730 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" 24731 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" 24732 ;; 24733 esac 24734 done 24735 fi 24736 else 24737 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 24738 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" 24739 fi 24740 fi 24741 fi 24742 done 24743 done 24744 if test "X$rpathdirs" != "X"; then 24745 if test -n "$acl_hardcode_libdir_separator"; then 24746 alldirs= 24747 for found_dir in $rpathdirs; do 24748 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 24749 done 24750 acl_save_libdir="$libdir" 24751 libdir="$alldirs" 24752 eval flag=\"$acl_hardcode_libdir_flag_spec\" 24753 libdir="$acl_save_libdir" 24754 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 24755 else 24756 for found_dir in $rpathdirs; do 24757 acl_save_libdir="$libdir" 24758 libdir="$found_dir" 24759 eval flag=\"$acl_hardcode_libdir_flag_spec\" 24760 libdir="$acl_save_libdir" 24761 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 24762 done 24763 fi 24764 fi 24765 if test "X$ltrpathdirs" != "X"; then 24766 for found_dir in $ltrpathdirs; do 24767 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" 24768 done 24769 fi 24770 24771 24772 24773 24774 24775 24776 ac_cv_libpth_libs="$LIBPTH" 24777 ac_cv_libpth_ltlibs="$LTLIBPTH" 24778 ac_cv_libpth_cppflags="$INCPTH" 24779 ac_cv_libpth_prefix="$LIBPTH_PREFIX" 24780 24781fi 24782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 24783$as_echo "$ac_cv_libpth_libs" >&6; } 24784 LIBPTH="$ac_cv_libpth_libs" 24785 LTLIBPTH="$ac_cv_libpth_ltlibs" 24786 INCPTH="$ac_cv_libpth_cppflags" 24787 LIBPTH_PREFIX="$ac_cv_libpth_prefix" 24788 24789 for element in $INCPTH; do 24790 haveit= 24791 for x in $CPPFLAGS; do 24792 24793 acl_save_prefix="$prefix" 24794 prefix="$acl_final_prefix" 24795 acl_save_exec_prefix="$exec_prefix" 24796 exec_prefix="$acl_final_exec_prefix" 24797 eval x=\"$x\" 24798 exec_prefix="$acl_save_exec_prefix" 24799 prefix="$acl_save_prefix" 24800 24801 if test "X$x" = "X$element"; then 24802 haveit=yes 24803 break 24804 fi 24805 done 24806 if test -z "$haveit"; then 24807 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 24808 fi 24809 done 24810 24811 24812 24813 24814 HAVE_LIBPTH=yes 24815 24816 24817 24818 gl_have_pth= 24819 gl_save_LIBS="$LIBS" 24820 LIBS="$LIBS $LIBPTH" 24821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24822/* end confdefs.h. */ 24823#include <pth.h> 24824int 24825main () 24826{ 24827pth_self(); 24828 ; 24829 return 0; 24830} 24831_ACEOF 24832if ac_fn_c_try_link "$LINENO"; then : 24833 gl_have_pth=yes 24834fi 24835rm -f core conftest.err conftest.$ac_objext \ 24836 conftest$ac_exeext conftest.$ac_ext 24837 LIBS="$gl_save_LIBS" 24838 if test -n "$gl_have_pth"; then 24839 gl_threads_api=pth 24840 LIBTHREAD="$LIBPTH" 24841 LTLIBTHREAD="$LTLIBPTH" 24842 LIBMULTITHREAD="$LIBTHREAD" 24843 LTLIBMULTITHREAD="$LTLIBTHREAD" 24844 24845$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h 24846 24847 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 24848 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 24849 24850$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h 24851 24852 LIBTHREAD= 24853 LTLIBTHREAD= 24854 fi 24855 fi 24856 else 24857 CPPFLAGS="$gl_save_CPPFLAGS" 24858 fi 24859 fi 24860 if test -z "$gl_have_pthread"; then 24861 case "$gl_use_threads" in 24862 yes | windows | win32) # The 'win32' is for backward compatibility. 24863 if { case "$host_os" in 24864 mingw*) true;; 24865 *) false;; 24866 esac 24867 }; then 24868 gl_threads_api=windows 24869 24870$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h 24871 24872 fi 24873 ;; 24874 esac 24875 fi 24876 fi 24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 24878$as_echo_n "checking for multithread API to use... " >&6; } 24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 24880$as_echo "$gl_threads_api" >&6; } 24881 24882 24883 24884 24885 24886 24887 24888 24889 24890 24891 24892 24893 24894 24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 24896$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 24897if ${gl_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 24898 $as_echo_n "(cached) " >&6 24899else 24900 rm -f conftest.sym conftest.file 24901 echo >conftest.file 24902 if test "$cross_compiling" = yes; then : 24903 case "$host_os" in 24904 *-gnu* | gnu*) 24905 # Guess yes on glibc systems. 24906 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; 24907 mingw*) 24908 # Guess no on native Windows. 24909 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; 24910 *) 24911 # If we don't know, assume the worst. 24912 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; 24913 esac 24914 24915else 24916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24917/* end confdefs.h. */ 24918$ac_includes_default 24919int 24920main () 24921{ 24922struct stat sbuf; 24923 if (symlink ("conftest.file", "conftest.sym") != 0) 24924 return 1; 24925 /* Linux will dereference the symlink and fail, as required by 24926 POSIX. That is better in the sense that it means we will not 24927 have to compile and use the lstat wrapper. */ 24928 return lstat ("conftest.sym/", &sbuf) == 0; 24929 24930 ; 24931 return 0; 24932} 24933_ACEOF 24934if ac_fn_c_try_run "$LINENO"; then : 24935 gl_cv_func_lstat_dereferences_slashed_symlink=yes 24936else 24937 gl_cv_func_lstat_dereferences_slashed_symlink=no 24938fi 24939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24940 conftest.$ac_objext conftest.beam conftest.$ac_ext 24941fi 24942 24943 rm -f conftest.sym conftest.file 24944 24945fi 24946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 24947$as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } 24948 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in 24949 *yes) 24950 24951cat >>confdefs.h <<_ACEOF 24952#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 24953_ACEOF 24954 24955 ;; 24956 esac 24957 24958 24959 24960 for ac_header in stdlib.h 24961do : 24962 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 24963if test "x$ac_cv_header_stdlib_h" = xyes; then : 24964 cat >>confdefs.h <<_ACEOF 24965#define HAVE_STDLIB_H 1 24966_ACEOF 24967 24968fi 24969 24970done 24971 24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 24973$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 24974if ${ac_cv_func_malloc_0_nonnull+:} false; then : 24975 $as_echo_n "(cached) " >&6 24976else 24977 if test "$cross_compiling" = yes; then : 24978 case "$host_os" in 24979 # Guess yes on platforms where we know the result. 24980 *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \ 24981 | hpux* | solaris* | cygwin* | mingw*) 24982 ac_cv_func_malloc_0_nonnull=yes ;; 24983 # If we don't know, assume the worst. 24984 *) ac_cv_func_malloc_0_nonnull=no ;; 24985 esac 24986 24987else 24988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24989/* end confdefs.h. */ 24990#if defined STDC_HEADERS || defined HAVE_STDLIB_H 24991 # include <stdlib.h> 24992 #else 24993 char *malloc (); 24994 #endif 24995 24996int 24997main () 24998{ 24999char *p = malloc (0); 25000 int result = !p; 25001 free (p); 25002 return result; 25003 ; 25004 return 0; 25005} 25006 25007_ACEOF 25008if ac_fn_c_try_run "$LINENO"; then : 25009 ac_cv_func_malloc_0_nonnull=yes 25010else 25011 ac_cv_func_malloc_0_nonnull=no 25012fi 25013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25014 conftest.$ac_objext conftest.beam conftest.$ac_ext 25015fi 25016 25017 25018fi 25019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 25020$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 25021 if test $ac_cv_func_malloc_0_nonnull = yes; then : 25022 gl_cv_func_malloc_0_nonnull=1 25023else 25024 gl_cv_func_malloc_0_nonnull=0 25025fi 25026 25027 25028cat >>confdefs.h <<_ACEOF 25029#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull 25030_ACEOF 25031 25032 25033 25034 GNULIB_PSELECT=0; 25035 GNULIB_SELECT=0; 25036 HAVE_PSELECT=1; 25037 REPLACE_PSELECT=0; 25038 REPLACE_SELECT=0; 25039 25040 25041 25042 25043 25044 25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5 25046$as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; } 25047if ${gl_cv_header_sys_select_h_selfcontained+:} false; then : 25048 $as_echo_n "(cached) " >&6 25049else 25050 25051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25052/* end confdefs.h. */ 25053#include <sys/select.h> 25054int 25055main () 25056{ 25057struct timeval b; 25058 ; 25059 return 0; 25060} 25061_ACEOF 25062if ac_fn_c_try_compile "$LINENO"; then : 25063 gl_cv_header_sys_select_h_selfcontained=yes 25064else 25065 gl_cv_header_sys_select_h_selfcontained=no 25066fi 25067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25068 if test $gl_cv_header_sys_select_h_selfcontained = yes; then 25069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25070/* end confdefs.h. */ 25071#include <sys/select.h> 25072int 25073main () 25074{ 25075int memset; int bzero; 25076 ; 25077 return 0; 25078} 25079 25080_ACEOF 25081if ac_fn_c_try_compile "$LINENO"; then : 25082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25083/* end confdefs.h. */ 25084#include <sys/select.h> 25085int 25086main () 25087{ 25088 25089 #undef memset 25090 #define memset nonexistent_memset 25091 extern 25092 #ifdef __cplusplus 25093 "C" 25094 #endif 25095 void *memset (void *, int, unsigned long); 25096 #undef bzero 25097 #define bzero nonexistent_bzero 25098 extern 25099 #ifdef __cplusplus 25100 "C" 25101 #endif 25102 void bzero (void *, unsigned long); 25103 fd_set fds; 25104 FD_ZERO (&fds); 25105 25106 ; 25107 return 0; 25108} 25109 25110_ACEOF 25111if ac_fn_c_try_link "$LINENO"; then : 25112 25113else 25114 gl_cv_header_sys_select_h_selfcontained=no 25115fi 25116rm -f core conftest.err conftest.$ac_objext \ 25117 conftest$ac_exeext conftest.$ac_ext 25118 25119fi 25120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25121 fi 25122 25123fi 25124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 25125$as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; } 25126 25127 25128 25129 25130 25131 25132 25133 25134 25135 if test $gl_cv_have_include_next = yes; then 25136 gl_cv_next_sys_select_h='<'sys/select.h'>' 25137 else 25138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5 25139$as_echo_n "checking absolute name of <sys/select.h>... " >&6; } 25140if ${gl_cv_next_sys_select_h+:} false; then : 25141 $as_echo_n "(cached) " >&6 25142else 25143 25144 if test $ac_cv_header_sys_select_h = yes; then 25145 25146 25147 25148 25149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25150/* end confdefs.h. */ 25151#include <sys/select.h> 25152_ACEOF 25153 case "$host_os" in 25154 aix*) gl_absname_cpp="$ac_cpp -C" ;; 25155 *) gl_absname_cpp="$ac_cpp" ;; 25156 esac 25157 25158 case "$host_os" in 25159 mingw*) 25160 gl_dirsep_regex='[/\\]' 25161 ;; 25162 *) 25163 gl_dirsep_regex='\/' 25164 ;; 25165 esac 25166 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 25167 gl_header_literal_regex=`echo 'sys/select.h' \ 25168 | sed -e "$gl_make_literal_regex_sed"` 25169 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 25170 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 25171 s|^/[^/]|//&| 25172 p 25173 q 25174 }' 25175 25176 gl_cv_absolute_sys_select_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 25177 sed -n "$gl_absolute_header_sed"` 25178 25179 gl_header=$gl_cv_absolute_sys_select_h 25180 gl_cv_next_sys_select_h='"'$gl_header'"' 25181 else 25182 gl_cv_next_sys_select_h='<'sys/select.h'>' 25183 fi 25184 25185 25186fi 25187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 25188$as_echo "$gl_cv_next_sys_select_h" >&6; } 25189 fi 25190 NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h 25191 25192 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 25193 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 25194 gl_next_as_first_directive='<'sys/select.h'>' 25195 else 25196 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 25197 gl_next_as_first_directive=$gl_cv_next_sys_select_h 25198 fi 25199 NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive 25200 25201 25202 25203 25204 if test $ac_cv_header_sys_select_h = yes; then 25205 HAVE_SYS_SELECT_H=1 25206 else 25207 HAVE_SYS_SELECT_H=0 25208 fi 25209 25210 25211 25212 25213 25214 if test $ac_cv_header_sys_socket_h != yes; then 25215 for ac_header in winsock2.h 25216do : 25217 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 25218if test "x$ac_cv_header_winsock2_h" = xyes; then : 25219 cat >>confdefs.h <<_ACEOF 25220#define HAVE_WINSOCK2_H 1 25221_ACEOF 25222 25223fi 25224 25225done 25226 25227 fi 25228 if test "$ac_cv_header_winsock2_h" = yes; then 25229 HAVE_WINSOCK2_H=1 25230 UNISTD_H_HAVE_WINSOCK2_H=1 25231 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 25232 else 25233 HAVE_WINSOCK2_H=0 25234 fi 25235 25236 25237 25238 25239 for gl_func in pselect select; do 25240 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 25242$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 25243if eval \${$as_gl_Symbol+:} false; then : 25244 $as_echo_n "(cached) " >&6 25245else 25246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25247/* end confdefs.h. */ 25248 25249/* Some systems require prerequisite headers. */ 25250#include <sys/types.h> 25251#if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H 25252# include <sys/time.h> 25253#endif 25254#include <sys/select.h> 25255 25256int 25257main () 25258{ 25259#undef $gl_func 25260 (void) $gl_func; 25261 ; 25262 return 0; 25263} 25264_ACEOF 25265if ac_fn_c_try_compile "$LINENO"; then : 25266 eval "$as_gl_Symbol=yes" 25267else 25268 eval "$as_gl_Symbol=no" 25269fi 25270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25271fi 25272eval ac_res=\$$as_gl_Symbol 25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 25274$as_echo "$ac_res" >&6; } 25275 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 25276 cat >>confdefs.h <<_ACEOF 25277#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 25278_ACEOF 25279 25280 eval ac_cv_have_decl_$gl_func=yes 25281fi 25282 done 25283 25284 25285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 25286$as_echo_n "checking for inline... " >&6; } 25287if ${ac_cv_c_inline+:} false; then : 25288 $as_echo_n "(cached) " >&6 25289else 25290 ac_cv_c_inline=no 25291for ac_kw in inline __inline__ __inline; do 25292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25293/* end confdefs.h. */ 25294#ifndef __cplusplus 25295typedef int foo_t; 25296static $ac_kw foo_t static_foo () {return 0; } 25297$ac_kw foo_t foo () {return 0; } 25298#endif 25299 25300_ACEOF 25301if ac_fn_c_try_compile "$LINENO"; then : 25302 ac_cv_c_inline=$ac_kw 25303fi 25304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25305 test "$ac_cv_c_inline" != no && break 25306done 25307 25308fi 25309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 25310$as_echo "$ac_cv_c_inline" >&6; } 25311 25312case $ac_cv_c_inline in 25313 inline | yes) ;; 25314 *) 25315 case $ac_cv_c_inline in 25316 no) ac_val=;; 25317 *) ac_val=$ac_cv_c_inline;; 25318 esac 25319 cat >>confdefs.h <<_ACEOF 25320#ifndef __cplusplus 25321#define inline $ac_val 25322#endif 25323_ACEOF 25324 ;; 25325esac 25326 25327 25328 25329 25330 25331 25332 if test $ac_cv_header_sys_socket_h != yes; then 25333 for ac_header in winsock2.h 25334do : 25335 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 25336if test "x$ac_cv_header_winsock2_h" = xyes; then : 25337 cat >>confdefs.h <<_ACEOF 25338#define HAVE_WINSOCK2_H 1 25339_ACEOF 25340 25341fi 25342 25343done 25344 25345 fi 25346 if test "$ac_cv_header_winsock2_h" = yes; then 25347 HAVE_WINSOCK2_H=1 25348 UNISTD_H_HAVE_WINSOCK2_H=1 25349 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 25350 else 25351 HAVE_WINSOCK2_H=0 25352 fi 25353 25354 LIBSOCKET= 25355 if test $HAVE_WINSOCK2_H = 1; then 25356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to call WSAStartup in winsock2.h and -lws2_32" >&5 25357$as_echo_n "checking if we need to call WSAStartup in winsock2.h and -lws2_32... " >&6; } 25358if ${gl_cv_func_wsastartup+:} false; then : 25359 $as_echo_n "(cached) " >&6 25360else 25361 25362 gl_save_LIBS="$LIBS" 25363 LIBS="$LIBS -lws2_32" 25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25365/* end confdefs.h. */ 25366 25367#ifdef HAVE_WINSOCK2_H 25368# include <winsock2.h> 25369#endif 25370int 25371main () 25372{ 25373 25374 WORD wVersionRequested = MAKEWORD(1, 1); 25375 WSADATA wsaData; 25376 int err = WSAStartup(wVersionRequested, &wsaData); 25377 WSACleanup (); 25378 ; 25379 return 0; 25380} 25381_ACEOF 25382if ac_fn_c_try_link "$LINENO"; then : 25383 gl_cv_func_wsastartup=yes 25384else 25385 gl_cv_func_wsastartup=no 25386fi 25387rm -f core conftest.err conftest.$ac_objext \ 25388 conftest$ac_exeext conftest.$ac_ext 25389 LIBS="$gl_save_LIBS" 25390 25391fi 25392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_wsastartup" >&5 25393$as_echo "$gl_cv_func_wsastartup" >&6; } 25394 if test "$gl_cv_func_wsastartup" = "yes"; then 25395 25396$as_echo "#define WINDOWS_SOCKETS 1" >>confdefs.h 25397 25398 LIBSOCKET='-lws2_32' 25399 fi 25400 else 25401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5 25402$as_echo_n "checking for library containing setsockopt... " >&6; } 25403if ${gl_cv_lib_socket+:} false; then : 25404 $as_echo_n "(cached) " >&6 25405else 25406 25407 gl_cv_lib_socket= 25408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25409/* end confdefs.h. */ 25410extern 25411#ifdef __cplusplus 25412"C" 25413#endif 25414char setsockopt(); 25415int 25416main () 25417{ 25418setsockopt(); 25419 ; 25420 return 0; 25421} 25422_ACEOF 25423if ac_fn_c_try_link "$LINENO"; then : 25424 25425else 25426 gl_save_LIBS="$LIBS" 25427 LIBS="$gl_save_LIBS -lsocket" 25428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25429/* end confdefs.h. */ 25430extern 25431#ifdef __cplusplus 25432"C" 25433#endif 25434char setsockopt(); 25435int 25436main () 25437{ 25438setsockopt(); 25439 ; 25440 return 0; 25441} 25442_ACEOF 25443if ac_fn_c_try_link "$LINENO"; then : 25444 gl_cv_lib_socket="-lsocket" 25445fi 25446rm -f core conftest.err conftest.$ac_objext \ 25447 conftest$ac_exeext conftest.$ac_ext 25448 if test -z "$gl_cv_lib_socket"; then 25449 LIBS="$gl_save_LIBS -lnetwork" 25450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25451/* end confdefs.h. */ 25452extern 25453#ifdef __cplusplus 25454"C" 25455#endif 25456char setsockopt(); 25457int 25458main () 25459{ 25460setsockopt(); 25461 ; 25462 return 0; 25463} 25464_ACEOF 25465if ac_fn_c_try_link "$LINENO"; then : 25466 gl_cv_lib_socket="-lnetwork" 25467fi 25468rm -f core conftest.err conftest.$ac_objext \ 25469 conftest$ac_exeext conftest.$ac_ext 25470 if test -z "$gl_cv_lib_socket"; then 25471 LIBS="$gl_save_LIBS -lnet" 25472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25473/* end confdefs.h. */ 25474extern 25475#ifdef __cplusplus 25476"C" 25477#endif 25478char setsockopt(); 25479int 25480main () 25481{ 25482setsockopt(); 25483 ; 25484 return 0; 25485} 25486_ACEOF 25487if ac_fn_c_try_link "$LINENO"; then : 25488 gl_cv_lib_socket="-lnet" 25489fi 25490rm -f core conftest.err conftest.$ac_objext \ 25491 conftest$ac_exeext conftest.$ac_ext 25492 fi 25493 fi 25494 LIBS="$gl_save_LIBS" 25495 25496fi 25497rm -f core conftest.err conftest.$ac_objext \ 25498 conftest$ac_exeext conftest.$ac_ext 25499 if test -z "$gl_cv_lib_socket"; then 25500 gl_cv_lib_socket="none needed" 25501 fi 25502 25503fi 25504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_lib_socket" >&5 25505$as_echo "$gl_cv_lib_socket" >&6; } 25506 if test "$gl_cv_lib_socket" != "none needed"; then 25507 LIBSOCKET="$gl_cv_lib_socket" 25508 fi 25509 fi 25510 25511 25512 25513 25514 25515 25516 : 25517 25518 25519 25520 25521 25522 25523 if test "$ac_cv_header_winsock2_h" = yes; then 25524 REPLACE_SELECT=1 25525 else 25526 25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5 25528$as_echo_n "checking whether select supports a 0 argument... " >&6; } 25529if ${gl_cv_func_select_supports0+:} false; then : 25530 $as_echo_n "(cached) " >&6 25531else 25532 25533 if test "$cross_compiling" = yes; then : 25534 25535 case "$host_os" in 25536 # Guess no on Interix. 25537 interix*) gl_cv_func_select_supports0="guessing no";; 25538 # Guess yes otherwise. 25539 *) gl_cv_func_select_supports0="guessing yes";; 25540 esac 25541 25542else 25543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25544/* end confdefs.h. */ 25545 25546#include <sys/types.h> 25547#include <sys/time.h> 25548#if HAVE_SYS_SELECT_H 25549#include <sys/select.h> 25550#endif 25551int main () 25552{ 25553 struct timeval timeout; 25554 timeout.tv_sec = 0; 25555 timeout.tv_usec = 5; 25556 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0; 25557} 25558_ACEOF 25559if ac_fn_c_try_run "$LINENO"; then : 25560 gl_cv_func_select_supports0=yes 25561else 25562 gl_cv_func_select_supports0=no 25563fi 25564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25565 conftest.$ac_objext conftest.beam conftest.$ac_ext 25566fi 25567 25568 25569fi 25570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5 25571$as_echo "$gl_cv_func_select_supports0" >&6; } 25572 case "$gl_cv_func_select_supports0" in 25573 *yes) ;; 25574 *) REPLACE_SELECT=1 ;; 25575 esac 25576 25577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5 25578$as_echo_n "checking whether select detects invalid fds... " >&6; } 25579if ${gl_cv_func_select_detects_ebadf+:} false; then : 25580 $as_echo_n "(cached) " >&6 25581else 25582 25583 if test "$cross_compiling" = yes; then : 25584 25585 case "$host_os" in 25586 # Guess yes on glibc systems. 25587 *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;; 25588 # If we don't know, assume the worst. 25589 *) gl_cv_func_select_detects_ebadf="guessing no" ;; 25590 esac 25591 25592else 25593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25594/* end confdefs.h. */ 25595 25596#include <sys/types.h> 25597#include <sys/time.h> 25598#if HAVE_SYS_SELECT_H 25599# include <sys/select.h> 25600#endif 25601#include <unistd.h> 25602#include <errno.h> 25603 25604int 25605main () 25606{ 25607 25608 fd_set set; 25609 dup2(0, 16); 25610 FD_ZERO(&set); 25611 FD_SET(16, &set); 25612 close(16); 25613 struct timeval timeout; 25614 timeout.tv_sec = 0; 25615 timeout.tv_usec = 5; 25616 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF; 25617 25618 ; 25619 return 0; 25620} 25621_ACEOF 25622if ac_fn_c_try_run "$LINENO"; then : 25623 gl_cv_func_select_detects_ebadf=yes 25624else 25625 gl_cv_func_select_detects_ebadf=no 25626fi 25627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25628 conftest.$ac_objext conftest.beam conftest.$ac_ext 25629fi 25630 25631 25632fi 25633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5 25634$as_echo "$gl_cv_func_select_detects_ebadf" >&6; } 25635 case $gl_cv_func_select_detects_ebadf in 25636 *yes) ;; 25637 *) REPLACE_SELECT=1 ;; 25638 esac 25639 fi 25640 25641 LIB_SELECT="$LIBSOCKET" 25642 if test $REPLACE_SELECT = 1; then 25643 case "$host_os" in 25644 mingw*) 25645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25646/* end confdefs.h. */ 25647 25648#define WIN32_LEAN_AND_MEAN 25649#include <windows.h> 25650int 25651main () 25652{ 25653 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0); 25654 return 0; 25655} 25656_ACEOF 25657if ac_fn_c_try_link "$LINENO"; then : 25658 25659else 25660 LIB_SELECT="$LIB_SELECT -luser32" 25661fi 25662rm -f core conftest.err conftest.$ac_objext \ 25663 conftest$ac_exeext conftest.$ac_ext 25664 ;; 25665 esac 25666 fi 25667 25668 25669ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default" 25670if test "x$ac_cv_have_decl_alarm" = xyes; then : 25671 ac_have_decl=1 25672else 25673 ac_have_decl=0 25674fi 25675 25676cat >>confdefs.h <<_ACEOF 25677#define HAVE_DECL_ALARM $ac_have_decl 25678_ACEOF 25679 25680 25681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 25682$as_echo_n "checking for O_CLOEXEC... " >&6; } 25683if ${gl_cv_macro_O_CLOEXEC+:} false; then : 25684 $as_echo_n "(cached) " >&6 25685else 25686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25687/* end confdefs.h. */ 25688#include <fcntl.h> 25689 #ifndef O_CLOEXEC 25690 choke me; 25691 #endif 25692 25693int 25694main () 25695{ 25696return O_CLOEXEC; 25697 ; 25698 return 0; 25699} 25700_ACEOF 25701if ac_fn_c_try_compile "$LINENO"; then : 25702 gl_cv_macro_O_CLOEXEC=yes 25703else 25704 gl_cv_macro_O_CLOEXEC=no 25705fi 25706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25707fi 25708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5 25709$as_echo "$gl_cv_macro_O_CLOEXEC" >&6; } 25710 25711 25712 25713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 25714$as_echo_n "checking for promoted mode_t type... " >&6; } 25715if ${gl_cv_promoted_mode_t+:} false; then : 25716 $as_echo_n "(cached) " >&6 25717else 25718 25719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25720/* end confdefs.h. */ 25721#include <sys/types.h> 25722int 25723main () 25724{ 25725typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; 25726 ; 25727 return 0; 25728} 25729_ACEOF 25730if ac_fn_c_try_compile "$LINENO"; then : 25731 gl_cv_promoted_mode_t='int' 25732else 25733 gl_cv_promoted_mode_t='mode_t' 25734fi 25735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25736 25737fi 25738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 25739$as_echo "$gl_cv_promoted_mode_t" >&6; } 25740 25741cat >>confdefs.h <<_ACEOF 25742#define PROMOTED_MODE_T $gl_cv_promoted_mode_t 25743_ACEOF 25744 25745 25746 25747 25748ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 25749if test "x$ac_cv_have_decl_strerror_r" = xyes; then : 25750 ac_have_decl=1 25751else 25752 ac_have_decl=0 25753fi 25754 25755cat >>confdefs.h <<_ACEOF 25756#define HAVE_DECL_STRERROR_R $ac_have_decl 25757_ACEOF 25758 25759 25760 25761 25762 25763 25764 25765 25766 if test $ac_cv_have_decl_strerror_r = no; then 25767 HAVE_DECL_STRERROR_R=0 25768 fi 25769 25770 if test $ac_cv_func_strerror_r = yes; then 25771 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 25772 if test $gl_cv_func_strerror_r_posix_signature = yes; then 25773 case "$gl_cv_func_strerror_r_works" in 25774 *no) REPLACE_STRERROR_R=1 ;; 25775 esac 25776 else 25777 REPLACE_STRERROR_R=1 25778 fi 25779 else 25780 REPLACE_STRERROR_R=1 25781 fi 25782 fi 25783 25784 25785 25786 25787 GNULIB_PTHREAD_SIGMASK=0; 25788 GNULIB_RAISE=0; 25789 GNULIB_SIGNAL_H_SIGPIPE=0; 25790 GNULIB_SIGPROCMASK=0; 25791 GNULIB_SIGACTION=0; 25792 HAVE_POSIX_SIGNALBLOCKING=1; 25793 HAVE_PTHREAD_SIGMASK=1; 25794 HAVE_RAISE=1; 25795 HAVE_SIGSET_T=1; 25796 HAVE_SIGINFO_T=1; 25797 HAVE_SIGACTION=1; 25798 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; 25799 25800 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; 25801 25802 HAVE_SIGHANDLER_T=1; 25803 REPLACE_PTHREAD_SIGMASK=0; 25804 REPLACE_RAISE=0; 25805 25806 25807 25808 25809 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " 25810 #include <signal.h> 25811 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ 25812 #include <sys/types.h> 25813 25814" 25815if test "x$ac_cv_type_sigset_t" = xyes; then : 25816 25817cat >>confdefs.h <<_ACEOF 25818#define HAVE_SIGSET_T 1 25819_ACEOF 25820 25821gl_cv_type_sigset_t=yes 25822else 25823 gl_cv_type_sigset_t=no 25824fi 25825 25826 if test $gl_cv_type_sigset_t != yes; then 25827 HAVE_SIGSET_T=0 25828 fi 25829 25830 25831 25832ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default" 25833if test "x$ac_cv_have_decl_setenv" = xyes; then : 25834 ac_have_decl=1 25835else 25836 ac_have_decl=0 25837fi 25838 25839cat >>confdefs.h <<_ACEOF 25840#define HAVE_DECL_SETENV $ac_have_decl 25841_ACEOF 25842 25843 25844 25845 25846 25847 25848 if test $ac_cv_have_decl_setenv = no; then 25849 HAVE_DECL_SETENV=0 25850 fi 25851 25852 25853 25854 25855 25856 for ac_header in search.h 25857do : 25858 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default" 25859if test "x$ac_cv_header_search_h" = xyes; then : 25860 cat >>confdefs.h <<_ACEOF 25861#define HAVE_SEARCH_H 1 25862_ACEOF 25863 25864fi 25865 25866done 25867 25868 for ac_func in tsearch 25869do : 25870 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch" 25871if test "x$ac_cv_func_tsearch" = xyes; then : 25872 cat >>confdefs.h <<_ACEOF 25873#define HAVE_TSEARCH 1 25874_ACEOF 25875 25876fi 25877done 25878 25879 25880 25881 25882 25883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 25884$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 25885if ${ac_cv_type_uid_t+:} false; then : 25886 $as_echo_n "(cached) " >&6 25887else 25888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25889/* end confdefs.h. */ 25890#include <sys/types.h> 25891 25892_ACEOF 25893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25894 $EGREP "uid_t" >/dev/null 2>&1; then : 25895 ac_cv_type_uid_t=yes 25896else 25897 ac_cv_type_uid_t=no 25898fi 25899rm -f conftest* 25900 25901fi 25902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 25903$as_echo "$ac_cv_type_uid_t" >&6; } 25904if test $ac_cv_type_uid_t = no; then 25905 25906$as_echo "#define uid_t int" >>confdefs.h 25907 25908 25909$as_echo "#define gid_t int" >>confdefs.h 25910 25911fi 25912 25913 25914 25915 25916 25917 25918 25919 25920 25921 25922 25923 25924 25925 25926 25927 25928 25929 25930 25931 25932 25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 25934$as_echo_n "checking for struct timespec in <time.h>... " >&6; } 25935if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then : 25936 $as_echo_n "(cached) " >&6 25937else 25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25939/* end confdefs.h. */ 25940#include <time.h> 25941 25942int 25943main () 25944{ 25945static struct timespec x; x.tv_sec = x.tv_nsec; 25946 ; 25947 return 0; 25948} 25949_ACEOF 25950if ac_fn_c_try_compile "$LINENO"; then : 25951 gl_cv_sys_struct_timespec_in_time_h=yes 25952else 25953 gl_cv_sys_struct_timespec_in_time_h=no 25954fi 25955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25956fi 25957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 25958$as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } 25959 25960 TIME_H_DEFINES_STRUCT_TIMESPEC=0 25961 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 25962 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 25963 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0 25964 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then 25965 TIME_H_DEFINES_STRUCT_TIMESPEC=1 25966 else 25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 25968$as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } 25969if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then : 25970 $as_echo_n "(cached) " >&6 25971else 25972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25973/* end confdefs.h. */ 25974#include <sys/time.h> 25975 25976int 25977main () 25978{ 25979static struct timespec x; x.tv_sec = x.tv_nsec; 25980 ; 25981 return 0; 25982} 25983_ACEOF 25984if ac_fn_c_try_compile "$LINENO"; then : 25985 gl_cv_sys_struct_timespec_in_sys_time_h=yes 25986else 25987 gl_cv_sys_struct_timespec_in_sys_time_h=no 25988fi 25989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25990fi 25991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 25992$as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } 25993 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then 25994 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 25995 else 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 25997$as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } 25998if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then : 25999 $as_echo_n "(cached) " >&6 26000else 26001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26002/* end confdefs.h. */ 26003#include <pthread.h> 26004 26005int 26006main () 26007{ 26008static struct timespec x; x.tv_sec = x.tv_nsec; 26009 ; 26010 return 0; 26011} 26012_ACEOF 26013if ac_fn_c_try_compile "$LINENO"; then : 26014 gl_cv_sys_struct_timespec_in_pthread_h=yes 26015else 26016 gl_cv_sys_struct_timespec_in_pthread_h=no 26017fi 26018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26019fi 26020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 26021$as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } 26022 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then 26023 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 26024 else 26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5 26026$as_echo_n "checking for struct timespec in <unistd.h>... " >&6; } 26027if ${gl_cv_sys_struct_timespec_in_unistd_h+:} false; then : 26028 $as_echo_n "(cached) " >&6 26029else 26030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26031/* end confdefs.h. */ 26032#include <unistd.h> 26033 26034int 26035main () 26036{ 26037static struct timespec x; x.tv_sec = x.tv_nsec; 26038 ; 26039 return 0; 26040} 26041_ACEOF 26042if ac_fn_c_try_compile "$LINENO"; then : 26043 gl_cv_sys_struct_timespec_in_unistd_h=yes 26044else 26045 gl_cv_sys_struct_timespec_in_unistd_h=no 26046fi 26047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26048fi 26049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5 26050$as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; } 26051 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then 26052 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1 26053 fi 26054 fi 26055 fi 26056 fi 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 if test $gl_cv_have_include_next = yes; then 26074 gl_cv_next_time_h='<'time.h'>' 26075 else 26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 26077$as_echo_n "checking absolute name of <time.h>... " >&6; } 26078if ${gl_cv_next_time_h+:} false; then : 26079 $as_echo_n "(cached) " >&6 26080else 26081 26082 26083 26084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26085/* end confdefs.h. */ 26086#include <time.h> 26087_ACEOF 26088 case "$host_os" in 26089 aix*) gl_absname_cpp="$ac_cpp -C" ;; 26090 *) gl_absname_cpp="$ac_cpp" ;; 26091 esac 26092 26093 case "$host_os" in 26094 mingw*) 26095 gl_dirsep_regex='[/\\]' 26096 ;; 26097 *) 26098 gl_dirsep_regex='\/' 26099 ;; 26100 esac 26101 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 26102 gl_header_literal_regex=`echo 'time.h' \ 26103 | sed -e "$gl_make_literal_regex_sed"` 26104 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 26105 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 26106 s|^/[^/]|//&| 26107 p 26108 q 26109 }' 26110 26111 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 26112 sed -n "$gl_absolute_header_sed"` 26113 26114 gl_header=$gl_cv_absolute_time_h 26115 gl_cv_next_time_h='"'$gl_header'"' 26116 26117 26118fi 26119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 26120$as_echo "$gl_cv_next_time_h" >&6; } 26121 fi 26122 NEXT_TIME_H=$gl_cv_next_time_h 26123 26124 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 26125 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 26126 gl_next_as_first_directive='<'time.h'>' 26127 else 26128 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 26129 gl_next_as_first_directive=$gl_cv_next_time_h 26130 fi 26131 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive 26132 26133 26134 26135 26136 26137 26138ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default" 26139if test "x$ac_cv_have_decl_unsetenv" = xyes; then : 26140 ac_have_decl=1 26141else 26142 ac_have_decl=0 26143fi 26144 26145cat >>confdefs.h <<_ACEOF 26146#define HAVE_DECL_UNSETENV $ac_have_decl 26147_ACEOF 26148 26149 26150 26151 26152 GNULIB_BTOWC=0; 26153 GNULIB_WCTOB=0; 26154 GNULIB_MBSINIT=0; 26155 GNULIB_MBRTOWC=0; 26156 GNULIB_MBRLEN=0; 26157 GNULIB_MBSRTOWCS=0; 26158 GNULIB_MBSNRTOWCS=0; 26159 GNULIB_WCRTOMB=0; 26160 GNULIB_WCSRTOMBS=0; 26161 GNULIB_WCSNRTOMBS=0; 26162 GNULIB_WCWIDTH=0; 26163 GNULIB_WMEMCHR=0; 26164 GNULIB_WMEMCMP=0; 26165 GNULIB_WMEMCPY=0; 26166 GNULIB_WMEMMOVE=0; 26167 GNULIB_WMEMSET=0; 26168 GNULIB_WCSLEN=0; 26169 GNULIB_WCSNLEN=0; 26170 GNULIB_WCSCPY=0; 26171 GNULIB_WCPCPY=0; 26172 GNULIB_WCSNCPY=0; 26173 GNULIB_WCPNCPY=0; 26174 GNULIB_WCSCAT=0; 26175 GNULIB_WCSNCAT=0; 26176 GNULIB_WCSCMP=0; 26177 GNULIB_WCSNCMP=0; 26178 GNULIB_WCSCASECMP=0; 26179 GNULIB_WCSNCASECMP=0; 26180 GNULIB_WCSCOLL=0; 26181 GNULIB_WCSXFRM=0; 26182 GNULIB_WCSDUP=0; 26183 GNULIB_WCSCHR=0; 26184 GNULIB_WCSRCHR=0; 26185 GNULIB_WCSCSPN=0; 26186 GNULIB_WCSSPN=0; 26187 GNULIB_WCSPBRK=0; 26188 GNULIB_WCSSTR=0; 26189 GNULIB_WCSTOK=0; 26190 GNULIB_WCSWIDTH=0; 26191 GNULIB_WCSFTIME=0; 26192 HAVE_BTOWC=1; 26193 HAVE_MBSINIT=1; 26194 HAVE_MBRTOWC=1; 26195 HAVE_MBRLEN=1; 26196 HAVE_MBSRTOWCS=1; 26197 HAVE_MBSNRTOWCS=1; 26198 HAVE_WCRTOMB=1; 26199 HAVE_WCSRTOMBS=1; 26200 HAVE_WCSNRTOMBS=1; 26201 HAVE_WMEMCHR=1; 26202 HAVE_WMEMCMP=1; 26203 HAVE_WMEMCPY=1; 26204 HAVE_WMEMMOVE=1; 26205 HAVE_WMEMSET=1; 26206 HAVE_WCSLEN=1; 26207 HAVE_WCSNLEN=1; 26208 HAVE_WCSCPY=1; 26209 HAVE_WCPCPY=1; 26210 HAVE_WCSNCPY=1; 26211 HAVE_WCPNCPY=1; 26212 HAVE_WCSCAT=1; 26213 HAVE_WCSNCAT=1; 26214 HAVE_WCSCMP=1; 26215 HAVE_WCSNCMP=1; 26216 HAVE_WCSCASECMP=1; 26217 HAVE_WCSNCASECMP=1; 26218 HAVE_WCSCOLL=1; 26219 HAVE_WCSXFRM=1; 26220 HAVE_WCSDUP=1; 26221 HAVE_WCSCHR=1; 26222 HAVE_WCSRCHR=1; 26223 HAVE_WCSCSPN=1; 26224 HAVE_WCSSPN=1; 26225 HAVE_WCSPBRK=1; 26226 HAVE_WCSSTR=1; 26227 HAVE_WCSTOK=1; 26228 HAVE_WCSWIDTH=1; 26229 HAVE_WCSFTIME=1; 26230 HAVE_DECL_WCTOB=1; 26231 HAVE_DECL_WCWIDTH=1; 26232 REPLACE_MBSTATE_T=0; 26233 REPLACE_BTOWC=0; 26234 REPLACE_WCTOB=0; 26235 REPLACE_MBSINIT=0; 26236 REPLACE_MBRTOWC=0; 26237 REPLACE_MBRLEN=0; 26238 REPLACE_MBSRTOWCS=0; 26239 REPLACE_MBSNRTOWCS=0; 26240 REPLACE_WCRTOMB=0; 26241 REPLACE_WCSRTOMBS=0; 26242 REPLACE_WCSNRTOMBS=0; 26243 REPLACE_WCWIDTH=0; 26244 REPLACE_WCSWIDTH=0; 26245 REPLACE_WCSFTIME=0; 26246 26247 26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5 26249$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; } 26250if ${gl_cv_header_wchar_h_correct_inline+:} false; then : 26251 $as_echo_n "(cached) " >&6 26252else 26253 gl_cv_header_wchar_h_correct_inline=yes 26254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26255/* end confdefs.h. */ 26256 26257 #define wcstod renamed_wcstod 26258/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 26259 <wchar.h>. 26260 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 26261 included before <wchar.h>. */ 26262#include <stddef.h> 26263#include <stdio.h> 26264#include <time.h> 26265#include <wchar.h> 26266extern int zero (void); 26267int main () { return zero(); } 26268 26269_ACEOF 26270 save_ac_compile="$ac_compile" 26271 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/` 26272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 26273 (eval $ac_compile) 2>&5 26274 ac_status=$? 26275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26276 test $ac_status = 0; }; then 26277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26278/* end confdefs.h. */ 26279 26280 #define wcstod renamed_wcstod 26281/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 26282 <wchar.h>. 26283 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 26284 included before <wchar.h>. */ 26285#include <stddef.h> 26286#include <stdio.h> 26287#include <time.h> 26288#include <wchar.h> 26289int zero (void) { return 0; } 26290 26291_ACEOF 26292 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/` 26293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 26294 (eval $ac_compile) 2>&5 26295 ac_status=$? 26296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26297 test $ac_status = 0; }; then 26298 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then 26299 : 26300 else 26301 gl_cv_header_wchar_h_correct_inline=no 26302 fi 26303 fi 26304 fi 26305 ac_compile="$save_ac_compile" 26306 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext 26307 26308fi 26309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5 26310$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; } 26311 if test $gl_cv_header_wchar_h_correct_inline = no; then 26312 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS). 26313This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in 26314C99 mode. You have four options: 26315 - Add the flag -fgnu89-inline to CC and reconfigure, or 26316 - Fix your include files, using parts of 26317 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or 26318 - Use a gcc version older than 4.3, or 26319 - Don't use the flags -std=c99 or -std=gnu99. 26320Configuration aborted." "$LINENO" 5 26321 fi 26322 26323 26324 26325 26326 26327 if test $ac_cv_header_crtdefs_h = yes; then 26328 HAVE_CRTDEFS_H=1 26329 else 26330 HAVE_CRTDEFS_H=0 26331 fi 26332 26333 26334 26335 if true; then 26336 GL_COND_LIBTOOL_TRUE= 26337 GL_COND_LIBTOOL_FALSE='#' 26338else 26339 GL_COND_LIBTOOL_TRUE='#' 26340 GL_COND_LIBTOOL_FALSE= 26341fi 26342 26343 gl_cond_libtool=true 26344 gl_m4_base='gl/m4' 26345 26346 26347 26348 26349 26350 26351 26352 26353 26354 gl_source_base='gl' 26355 26356 ac_config_files="$ac_config_files csharpcomp.sh:build-aux/csharpcomp.sh.in" 26357 26358 # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments. 26359 ac_config_files="$ac_config_files csharpexec.sh:build-aux/csharpexec.sh.in" 26360 26361 26362 26363 26364 26365 26366 26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5 26368$as_echo_n "checking whether // is distinct from /... " >&6; } 26369if ${gl_cv_double_slash_root+:} false; then : 26370 $as_echo_n "(cached) " >&6 26371else 26372 if test x"$cross_compiling" = xyes ; then 26373 # When cross-compiling, there is no way to tell whether // is special 26374 # short of a list of hosts. However, the only known hosts to date 26375 # that have a distinct // are Apollo DomainOS (too old to port to), 26376 # Cygwin, and z/OS. If anyone knows of another system for which // has 26377 # special semantics and is distinct from /, please report it to 26378 # <bug-gnulib@gnu.org>. 26379 case $host in 26380 *-cygwin | i370-ibm-openedition) 26381 gl_cv_double_slash_root=yes ;; 26382 *) 26383 # Be optimistic and assume that / and // are the same when we 26384 # don't know. 26385 gl_cv_double_slash_root='unknown, assuming no' ;; 26386 esac 26387 else 26388 set x `ls -di / // 2>/dev/null` 26389 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then 26390 gl_cv_double_slash_root=no 26391 else 26392 gl_cv_double_slash_root=yes 26393 fi 26394 fi 26395fi 26396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5 26397$as_echo "$gl_cv_double_slash_root" >&6; } 26398 if test "$gl_cv_double_slash_root" = yes; then 26399 26400$as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h 26401 26402 fi 26403 26404 26405 26406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 26407$as_echo_n "checking for error_at_line... " >&6; } 26408if ${ac_cv_lib_error_at_line+:} false; then : 26409 $as_echo_n "(cached) " >&6 26410else 26411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26412/* end confdefs.h. */ 26413#include <error.h> 26414int 26415main () 26416{ 26417error_at_line (0, 0, "", 0, "an error occurred"); 26418 ; 26419 return 0; 26420} 26421_ACEOF 26422if ac_fn_c_try_link "$LINENO"; then : 26423 ac_cv_lib_error_at_line=yes 26424else 26425 ac_cv_lib_error_at_line=no 26426fi 26427rm -f core conftest.err conftest.$ac_objext \ 26428 conftest$ac_exeext conftest.$ac_ext 26429fi 26430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 26431$as_echo "$ac_cv_lib_error_at_line" >&6; } 26432 26433 if test $ac_cv_lib_error_at_line = no; then 26434 26435 26436 26437 26438 26439 26440 26441 26442 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext" 26443 26444 26445 26446 : 26447 26448 fi 26449 26450 26451 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format" 26452 26453 26454 26455 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format" 26456 26457 26458 26459 26460 26461 26462 26463 26464 26465 26466 if test $ac_cv_func_getdelim = yes; then 26467 HAVE_GETDELIM=1 26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5 26469$as_echo_n "checking for working getdelim function... " >&6; } 26470if ${gl_cv_func_working_getdelim+:} false; then : 26471 $as_echo_n "(cached) " >&6 26472else 26473 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 26474 if test "$cross_compiling" = yes; then : 26475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26476/* end confdefs.h. */ 26477 26478#include <features.h> 26479#ifdef __GNU_LIBRARY__ 26480 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 26481 Lucky GNU user 26482 #endif 26483#endif 26484 26485_ACEOF 26486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26487 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 26488 gl_cv_func_working_getdelim="guessing yes" 26489else 26490 gl_cv_func_working_getdelim="guessing no" 26491fi 26492rm -f conftest* 26493 26494 26495else 26496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26497/* end confdefs.h. */ 26498 26499# include <stdio.h> 26500# include <stdlib.h> 26501# include <string.h> 26502 int main () 26503 { 26504 FILE *in = fopen ("./conftest.data", "r"); 26505 if (!in) 26506 return 1; 26507 { 26508 /* Test result for a NULL buffer and a zero size. 26509 Based on a test program from Karl Heuer. */ 26510 char *line = NULL; 26511 size_t siz = 0; 26512 int len = getdelim (&line, &siz, '\n', in); 26513 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 26514 { free (line); fclose (in); return 2; } 26515 } 26516 { 26517 /* Test result for a NULL buffer and a non-zero size. 26518 This crashes on FreeBSD 8.0. */ 26519 char *line = NULL; 26520 size_t siz = (size_t)(~0) / 4; 26521 if (getdelim (&line, &siz, '\n', in) == -1) 26522 { fclose (in); return 3; } 26523 free (line); 26524 } 26525 fclose (in); 26526 return 0; 26527 } 26528 26529_ACEOF 26530if ac_fn_c_try_run "$LINENO"; then : 26531 gl_cv_func_working_getdelim=yes 26532else 26533 gl_cv_func_working_getdelim=no 26534fi 26535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26536 conftest.$ac_objext conftest.beam conftest.$ac_ext 26537fi 26538 26539fi 26540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5 26541$as_echo "$gl_cv_func_working_getdelim" >&6; } 26542 case "$gl_cv_func_working_getdelim" in 26543 *no) 26544 REPLACE_GETDELIM=1 26545 ;; 26546 esac 26547 else 26548 HAVE_GETDELIM=0 26549 fi 26550 26551 if test $ac_cv_have_decl_getdelim = no; then 26552 HAVE_DECL_GETDELIM=0 26553 fi 26554 26555 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then 26556 26557 26558 26559 26560 26561 26562 26563 26564 gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext" 26565 26566 26567 for ac_func in flockfile funlockfile 26568do : 26569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26570ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26571if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 26572 cat >>confdefs.h <<_ACEOF 26573#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26574_ACEOF 26575 26576fi 26577done 26578 26579 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" 26580if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 26581 ac_have_decl=1 26582else 26583 ac_have_decl=0 26584fi 26585 26586cat >>confdefs.h <<_ACEOF 26587#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 26588_ACEOF 26589 26590 26591 fi 26592 26593 26594 26595 26596 26597 GNULIB_GETDELIM=1 26598 26599 26600 26601 26602 26603$as_echo "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h 26604 26605 26606 26607 26608 26609 26610 26611 26612 26613 26614 gl_getline_needs_run_time_check=no 26615 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 26616if test "x$ac_cv_func_getline" = xyes; then : 26617 gl_getline_needs_run_time_check=yes 26618else 26619 am_cv_func_working_getline=no 26620fi 26621 26622 if test $gl_getline_needs_run_time_check = yes; then 26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5 26624$as_echo_n "checking for working getline function... " >&6; } 26625if ${am_cv_func_working_getline+:} false; then : 26626 $as_echo_n "(cached) " >&6 26627else 26628 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 26629 if test "$cross_compiling" = yes; then : 26630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26631/* end confdefs.h. */ 26632 26633#include <features.h> 26634#ifdef __GNU_LIBRARY__ 26635 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 26636 Lucky GNU user 26637 #endif 26638#endif 26639 26640_ACEOF 26641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26642 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 26643 am_cv_func_working_getline="guessing yes" 26644else 26645 am_cv_func_working_getline="guessing no" 26646fi 26647rm -f conftest* 26648 26649 26650else 26651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26652/* end confdefs.h. */ 26653 26654# include <stdio.h> 26655# include <stdlib.h> 26656# include <string.h> 26657 int main () 26658 { 26659 FILE *in = fopen ("./conftest.data", "r"); 26660 if (!in) 26661 return 1; 26662 { 26663 /* Test result for a NULL buffer and a zero size. 26664 Based on a test program from Karl Heuer. */ 26665 char *line = NULL; 26666 size_t siz = 0; 26667 int len = getline (&line, &siz, in); 26668 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 26669 { free (line); fclose (in); return 2; } 26670 free (line); 26671 } 26672 { 26673 /* Test result for a NULL buffer and a non-zero size. 26674 This crashes on FreeBSD 8.0. */ 26675 char *line = NULL; 26676 size_t siz = (size_t)(~0) / 4; 26677 if (getline (&line, &siz, in) == -1) 26678 { fclose (in); return 3; } 26679 free (line); 26680 } 26681 fclose (in); 26682 return 0; 26683 } 26684 26685_ACEOF 26686if ac_fn_c_try_run "$LINENO"; then : 26687 am_cv_func_working_getline=yes 26688else 26689 am_cv_func_working_getline=no 26690fi 26691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26692 conftest.$ac_objext conftest.beam conftest.$ac_ext 26693fi 26694 26695fi 26696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5 26697$as_echo "$am_cv_func_working_getline" >&6; } 26698 fi 26699 26700 if test $ac_cv_have_decl_getline = no; then 26701 HAVE_DECL_GETLINE=0 26702 fi 26703 26704 case "$am_cv_func_working_getline" in 26705 *no) 26706 REPLACE_GETLINE=1 26707 ;; 26708 esac 26709 26710 if test $REPLACE_GETLINE = 1; then 26711 26712 26713 26714 26715 26716 26717 26718 26719 gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext" 26720 26721 26722 : 26723 26724 fi 26725 26726 26727 26728 26729 26730 GNULIB_GETLINE=1 26731 26732 26733 26734 26735 26736$as_echo "#define GNULIB_TEST_GETLINE 1" >>confdefs.h 26737 26738 26739 26740 26741 26742 26743 26744 26745 26746 26747 26748 26749 REPLACE_GETOPT=0 26750 if test -n "$gl_replace_getopt"; then 26751 REPLACE_GETOPT=1 26752 fi 26753 26754 if test $REPLACE_GETOPT = 1; then 26755 26756 26757 if test $ac_cv_header_sys_cdefs_h = yes; then 26758 HAVE_SYS_CDEFS_H=1 26759 else 26760 HAVE_SYS_CDEFS_H=0 26761 fi 26762 26763 26764 26765$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 26766 26767 GETOPT_H=getopt.h 26768 GETOPT_CDEFS_H=getopt-cdefs.h 26769 26770 26771 26772 fi 26773 26774 if test $REPLACE_GETOPT = 1; then 26775 26776 26777 26778 26779 26780 26781 26782 26783 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" 26784 26785 26786 26787 26788 26789 26790 26791 26792 26793 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" 26794 26795 GNULIB_GL_UNISTD_H_GETOPT=1 26796 fi 26797 26798 26799 26800 26801 ac_found=0 26802 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 26803" 26804if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : 26805 ac_have_decl=1 26806else 26807 ac_have_decl=0 26808fi 26809 26810cat >>confdefs.h <<_ACEOF 26811#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl 26812_ACEOF 26813if test $ac_have_decl = 1; then : 26814 ac_found=1 26815fi 26816 26817 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 26818" 26819if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 26820 ac_have_decl=1 26821else 26822 ac_have_decl=0 26823fi 26824 26825cat >>confdefs.h <<_ACEOF 26826#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 26827_ACEOF 26828if test $ac_have_decl = 1; then : 26829 ac_found=1 26830fi 26831 26832 ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h> 26833" 26834if test "x$ac_cv_have_decl___argv" = xyes; then : 26835 ac_have_decl=1 26836else 26837 ac_have_decl=0 26838fi 26839 26840cat >>confdefs.h <<_ACEOF 26841#define HAVE_DECL___ARGV $ac_have_decl 26842_ACEOF 26843if test $ac_have_decl = 1; then : 26844 ac_found=1 26845fi 26846 26847 26848 # Incur the cost of this test only if none of the above worked. 26849 if test $ac_found = 0; then 26850 # On OpenBSD 5.1, using the global __progname variable appears to be 26851 # the only way to implement getprogname. 26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5 26853$as_echo_n "checking whether __progname is defined in default libraries... " >&6; } 26854if ${gl_cv_var___progname+:} false; then : 26855 $as_echo_n "(cached) " >&6 26856else 26857 26858 gl_cv_var___progname= 26859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26860/* end confdefs.h. */ 26861extern char *__progname; 26862int 26863main () 26864{ 26865return *__progname; 26866 26867 ; 26868 return 0; 26869} 26870_ACEOF 26871if ac_fn_c_try_link "$LINENO"; then : 26872 gl_cv_var___progname=yes 26873 26874fi 26875rm -f core conftest.err conftest.$ac_objext \ 26876 conftest$ac_exeext conftest.$ac_ext 26877 26878 26879fi 26880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5 26881$as_echo "$gl_cv_var___progname" >&6; } 26882 if test "$gl_cv_var___progname" = yes; then 26883 26884$as_echo "#define HAVE_VAR___PROGNAME 1" >>confdefs.h 26885 26886 fi 26887 fi 26888 26889 26890 26891 # Autoconf 2.61a.99 and earlier don't support linking a file only 26892 # in VPATH builds. But since GNUmakefile is for maintainer use 26893 # only, it does not matter if we skip the link with older autoconf. 26894 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH 26895 # builds, so use a shell variable to bypass this. 26896 GNUmakefile=GNUmakefile 26897 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile" 26898 26899 26900 26901 26902 26903 26904 26905 if test $gl_cv_func_malloc_posix = yes; then 26906 26907$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h 26908 26909 else 26910 REPLACE_MALLOC=1 26911 fi 26912 26913 if test $REPLACE_MALLOC = 1; then 26914 26915 26916 26917 26918 26919 26920 26921 26922 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext" 26923 26924 fi 26925 26926 26927 26928 26929 26930 GNULIB_MALLOC_POSIX=1 26931 26932 26933 26934 26935 26936$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h 26937 26938 26939 26940 26941 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 26942 26943 26944 26945 26946 26947 26948 26949 26950 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext" 26951 26952 fi 26953 26954 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 26955 26956 26957 26958 26959 26960 26961 26962 26963 gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext" 26964 26965 fi 26966 26967 26968cat >>confdefs.h <<_ACEOF 26969#define GNULIB_MSVC_NOTHROW 1 26970_ACEOF 26971 26972 26973 26974 # Extract the first word of "pmccabe", so it can be a program name with args. 26975set dummy pmccabe; ac_word=$2 26976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26977$as_echo_n "checking for $ac_word... " >&6; } 26978if ${ac_cv_path_PMCCABE+:} false; then : 26979 $as_echo_n "(cached) " >&6 26980else 26981 case $PMCCABE in 26982 [\\/]* | ?:[\\/]*) 26983 ac_cv_path_PMCCABE="$PMCCABE" # Let the user override the test with a path. 26984 ;; 26985 *) 26986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26987for as_dir in $PATH 26988do 26989 IFS=$as_save_IFS 26990 test -z "$as_dir" && as_dir=. 26991 for ac_exec_ext in '' $ac_executable_extensions; do 26992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26993 ac_cv_path_PMCCABE="$as_dir/$ac_word$ac_exec_ext" 26994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26995 break 2 26996 fi 26997done 26998 done 26999IFS=$as_save_IFS 27000 27001 test -z "$ac_cv_path_PMCCABE" && ac_cv_path_PMCCABE="false" 27002 ;; 27003esac 27004fi 27005PMCCABE=$ac_cv_path_PMCCABE 27006if test -n "$PMCCABE"; then 27007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PMCCABE" >&5 27008$as_echo "$PMCCABE" >&6; } 27009else 27010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27011$as_echo "no" >&6; } 27012fi 27013 27014 27015 ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h> 27016" 27017if test "x$ac_cv_have_decl_program_invocation_name" = xyes; then : 27018 ac_have_decl=1 27019else 27020 ac_have_decl=0 27021fi 27022 27023cat >>confdefs.h <<_ACEOF 27024#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl 27025_ACEOF 27026 27027 ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h> 27028" 27029if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then : 27030 ac_have_decl=1 27031else 27032 ac_have_decl=0 27033fi 27034 27035cat >>confdefs.h <<_ACEOF 27036#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl 27037_ACEOF 27038 27039 27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 27041$as_echo_n "checking for ssize_t... " >&6; } 27042if ${gt_cv_ssize_t+:} false; then : 27043 $as_echo_n "(cached) " >&6 27044else 27045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27046/* end confdefs.h. */ 27047#include <sys/types.h> 27048int 27049main () 27050{ 27051int x = sizeof (ssize_t *) + sizeof (ssize_t); 27052 return !x; 27053 ; 27054 return 0; 27055} 27056_ACEOF 27057if ac_fn_c_try_compile "$LINENO"; then : 27058 gt_cv_ssize_t=yes 27059else 27060 gt_cv_ssize_t=no 27061fi 27062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27063fi 27064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 27065$as_echo "$gt_cv_ssize_t" >&6; } 27066 if test $gt_cv_ssize_t = no; then 27067 27068$as_echo "#define ssize_t int" >>confdefs.h 27069 27070 fi 27071 27072 27073 STDARG_H='' 27074 NEXT_STDARG_H='<stdarg.h>' 27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 27076$as_echo_n "checking for va_copy... " >&6; } 27077 if ${gl_cv_func_va_copy+:} false; then : 27078 $as_echo_n "(cached) " >&6 27079else 27080 27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27082/* end confdefs.h. */ 27083#include <stdarg.h> 27084int 27085main () 27086{ 27087 27088#ifndef va_copy 27089void (*func) (va_list, va_list) = va_copy; 27090#endif 27091 27092 ; 27093 return 0; 27094} 27095_ACEOF 27096if ac_fn_c_try_compile "$LINENO"; then : 27097 gl_cv_func_va_copy=yes 27098else 27099 gl_cv_func_va_copy=no 27100fi 27101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27102fi 27103 27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 27105$as_echo "$gl_cv_func_va_copy" >&6; } 27106 if test $gl_cv_func_va_copy = no; then 27107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27108/* end confdefs.h. */ 27109#if defined _AIX && !defined __GNUC__ 27110 AIX vaccine 27111 #endif 27112 27113_ACEOF 27114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27115 $EGREP "vaccine" >/dev/null 2>&1; then : 27116 gl_aixcc=yes 27117else 27118 gl_aixcc=no 27119fi 27120rm -f conftest* 27121 27122 if test $gl_aixcc = yes; then 27123 STDARG_H=stdarg.h 27124 27125 27126 27127 27128 27129 27130 27131 27132 if test $gl_cv_have_include_next = yes; then 27133 gl_cv_next_stdarg_h='<'stdarg.h'>' 27134 else 27135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 27136$as_echo_n "checking absolute name of <stdarg.h>... " >&6; } 27137if ${gl_cv_next_stdarg_h+:} false; then : 27138 $as_echo_n "(cached) " >&6 27139else 27140 27141 27142 27143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27144/* end confdefs.h. */ 27145#include <stdarg.h> 27146_ACEOF 27147 case "$host_os" in 27148 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27149 *) gl_absname_cpp="$ac_cpp" ;; 27150 esac 27151 27152 case "$host_os" in 27153 mingw*) 27154 gl_dirsep_regex='[/\\]' 27155 ;; 27156 *) 27157 gl_dirsep_regex='\/' 27158 ;; 27159 esac 27160 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27161 gl_header_literal_regex=`echo 'stdarg.h' \ 27162 | sed -e "$gl_make_literal_regex_sed"` 27163 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27164 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27165 s|^/[^/]|//&| 27166 p 27167 q 27168 }' 27169 27170 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27171 sed -n "$gl_absolute_header_sed"` 27172 27173 gl_header=$gl_cv_absolute_stdarg_h 27174 gl_cv_next_stdarg_h='"'$gl_header'"' 27175 27176 27177fi 27178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 27179$as_echo "$gl_cv_next_stdarg_h" >&6; } 27180 fi 27181 NEXT_STDARG_H=$gl_cv_next_stdarg_h 27182 27183 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27185 gl_next_as_first_directive='<'stdarg.h'>' 27186 else 27187 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27188 gl_next_as_first_directive=$gl_cv_next_stdarg_h 27189 fi 27190 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive 27191 27192 27193 27194 27195 if test "$gl_cv_next_stdarg_h" = '""'; then 27196 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' 27197 NEXT_STDARG_H="$gl_cv_next_stdarg_h" 27198 fi 27199 else 27200 27201 saved_as_echo_n="$as_echo_n" 27202 as_echo_n=':' 27203 if ${gl_cv_func___va_copy+:} false; then : 27204 $as_echo_n "(cached) " >&6 27205else 27206 27207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27208/* end confdefs.h. */ 27209#include <stdarg.h> 27210int 27211main () 27212{ 27213 27214#ifndef __va_copy 27215error, bail out 27216#endif 27217 27218 ; 27219 return 0; 27220} 27221_ACEOF 27222if ac_fn_c_try_compile "$LINENO"; then : 27223 gl_cv_func___va_copy=yes 27224else 27225 gl_cv_func___va_copy=no 27226fi 27227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27228fi 27229 27230 as_echo_n="$saved_as_echo_n" 27231 27232 if test $gl_cv_func___va_copy = yes; then 27233 27234$as_echo "#define va_copy __va_copy" >>confdefs.h 27235 27236 else 27237 27238 27239$as_echo "#define va_copy gl_va_copy" >>confdefs.h 27240 27241 fi 27242 fi 27243 fi 27244 27245 if test -n "$STDARG_H"; then 27246 GL_GENERATE_STDARG_H_TRUE= 27247 GL_GENERATE_STDARG_H_FALSE='#' 27248else 27249 GL_GENERATE_STDARG_H_TRUE='#' 27250 GL_GENERATE_STDARG_H_FALSE= 27251fi 27252 27253 27254 27255 27256 27257 27258 # Define two additional variables used in the Makefile substitution. 27259 27260 if test "$ac_cv_header_stdbool_h" = yes; then 27261 STDBOOL_H='' 27262 else 27263 STDBOOL_H='stdbool.h' 27264 fi 27265 27266 if test -n "$STDBOOL_H"; then 27267 GL_GENERATE_STDBOOL_H_TRUE= 27268 GL_GENERATE_STDBOOL_H_FALSE='#' 27269else 27270 GL_GENERATE_STDBOOL_H_TRUE='#' 27271 GL_GENERATE_STDBOOL_H_FALSE= 27272fi 27273 27274 27275 if test "$ac_cv_type__Bool" = yes; then 27276 HAVE__BOOL=1 27277 else 27278 HAVE__BOOL=0 27279 fi 27280 27281 27282 27283 27284 27285 STDDEF_H= 27286 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h> 27287 27288" 27289if test "x$ac_cv_type_max_align_t" = xyes; then : 27290 27291else 27292 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h 27293fi 27294 27295 if test $gt_cv_c_wchar_t = no; then 27296 HAVE_WCHAR_T=0 27297 STDDEF_H=stddef.h 27298 fi 27299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 27300$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 27301if ${gl_cv_decl_null_works+:} false; then : 27302 $as_echo_n "(cached) " >&6 27303else 27304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27305/* end confdefs.h. */ 27306#include <stddef.h> 27307 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 27308 27309int 27310main () 27311{ 27312 27313 ; 27314 return 0; 27315} 27316_ACEOF 27317if ac_fn_c_try_compile "$LINENO"; then : 27318 gl_cv_decl_null_works=yes 27319else 27320 gl_cv_decl_null_works=no 27321fi 27322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27323fi 27324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 27325$as_echo "$gl_cv_decl_null_works" >&6; } 27326 if test $gl_cv_decl_null_works = no; then 27327 REPLACE_NULL=1 27328 STDDEF_H=stddef.h 27329 fi 27330 27331 if test -n "$STDDEF_H"; then 27332 GL_GENERATE_STDDEF_H_TRUE= 27333 GL_GENERATE_STDDEF_H_FALSE='#' 27334else 27335 GL_GENERATE_STDDEF_H_TRUE='#' 27336 GL_GENERATE_STDDEF_H_FALSE= 27337fi 27338 27339 if test -n "$STDDEF_H"; then 27340 27341 27342 27343 27344 27345 27346 27347 27348 if test $gl_cv_have_include_next = yes; then 27349 gl_cv_next_stddef_h='<'stddef.h'>' 27350 else 27351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 27352$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 27353if ${gl_cv_next_stddef_h+:} false; then : 27354 $as_echo_n "(cached) " >&6 27355else 27356 27357 27358 27359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27360/* end confdefs.h. */ 27361#include <stddef.h> 27362_ACEOF 27363 case "$host_os" in 27364 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27365 *) gl_absname_cpp="$ac_cpp" ;; 27366 esac 27367 27368 case "$host_os" in 27369 mingw*) 27370 gl_dirsep_regex='[/\\]' 27371 ;; 27372 *) 27373 gl_dirsep_regex='\/' 27374 ;; 27375 esac 27376 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27377 gl_header_literal_regex=`echo 'stddef.h' \ 27378 | sed -e "$gl_make_literal_regex_sed"` 27379 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27380 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27381 s|^/[^/]|//&| 27382 p 27383 q 27384 }' 27385 27386 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27387 sed -n "$gl_absolute_header_sed"` 27388 27389 gl_header=$gl_cv_absolute_stddef_h 27390 gl_cv_next_stddef_h='"'$gl_header'"' 27391 27392 27393fi 27394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 27395$as_echo "$gl_cv_next_stddef_h" >&6; } 27396 fi 27397 NEXT_STDDEF_H=$gl_cv_next_stddef_h 27398 27399 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27400 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27401 gl_next_as_first_directive='<'stddef.h'>' 27402 else 27403 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27404 gl_next_as_first_directive=$gl_cv_next_stddef_h 27405 fi 27406 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 27407 27408 27409 27410 27411 fi 27412 27413 27414 27415 27416 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h 27417 27418 27419 27420 27421 27422 27423 27424 27425 27426 27427 if test $gl_cv_have_include_next = yes; then 27428 gl_cv_next_stdio_h='<'stdio.h'>' 27429 else 27430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 27431$as_echo_n "checking absolute name of <stdio.h>... " >&6; } 27432if ${gl_cv_next_stdio_h+:} false; then : 27433 $as_echo_n "(cached) " >&6 27434else 27435 27436 27437 27438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27439/* end confdefs.h. */ 27440#include <stdio.h> 27441_ACEOF 27442 case "$host_os" in 27443 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27444 *) gl_absname_cpp="$ac_cpp" ;; 27445 esac 27446 27447 case "$host_os" in 27448 mingw*) 27449 gl_dirsep_regex='[/\\]' 27450 ;; 27451 *) 27452 gl_dirsep_regex='\/' 27453 ;; 27454 esac 27455 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27456 gl_header_literal_regex=`echo 'stdio.h' \ 27457 | sed -e "$gl_make_literal_regex_sed"` 27458 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27459 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27460 s|^/[^/]|//&| 27461 p 27462 q 27463 }' 27464 27465 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27466 sed -n "$gl_absolute_header_sed"` 27467 27468 gl_header=$gl_cv_absolute_stdio_h 27469 gl_cv_next_stdio_h='"'$gl_header'"' 27470 27471 27472fi 27473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 27474$as_echo "$gl_cv_next_stdio_h" >&6; } 27475 fi 27476 NEXT_STDIO_H=$gl_cv_next_stdio_h 27477 27478 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27479 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27480 gl_next_as_first_directive='<'stdio.h'>' 27481 else 27482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27483 gl_next_as_first_directive=$gl_cv_next_stdio_h 27484 fi 27485 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive 27486 27487 27488 27489 27490 27491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5 27492$as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; } 27493if ${gl_cv_func_printf_attribute_flavor+:} false; then : 27494 $as_echo_n "(cached) " >&6 27495else 27496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27497/* end confdefs.h. */ 27498 27499 #define __STDC_FORMAT_MACROS 1 27500 #include <stdio.h> 27501 #include <inttypes.h> 27502 /* For non-mingw systems, compilation will trivially succeed. 27503 For mingw, compilation will succeed for older mingw (system 27504 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */ 27505 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \ 27506 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) 27507 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1]; 27508 #endif 27509 27510int 27511main () 27512{ 27513 27514 ; 27515 return 0; 27516} 27517_ACEOF 27518if ac_fn_c_try_compile "$LINENO"; then : 27519 gl_cv_func_printf_attribute_flavor=system 27520else 27521 gl_cv_func_printf_attribute_flavor=gnu 27522fi 27523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27524fi 27525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5 27526$as_echo "$gl_cv_func_printf_attribute_flavor" >&6; } 27527 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then 27528 27529$as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h 27530 27531 fi 27532 27533 GNULIB_FSCANF=1 27534 27535 27536cat >>confdefs.h <<_ACEOF 27537#define GNULIB_FSCANF 1 27538_ACEOF 27539 27540 27541 GNULIB_SCANF=1 27542 27543 27544cat >>confdefs.h <<_ACEOF 27545#define GNULIB_SCANF 1 27546_ACEOF 27547 27548 27549 GNULIB_FGETC=1 27550 GNULIB_GETC=1 27551 GNULIB_GETCHAR=1 27552 GNULIB_FGETS=1 27553 GNULIB_FREAD=1 27554 27555 27556 GNULIB_FPRINTF=1 27557 GNULIB_PRINTF=1 27558 GNULIB_VFPRINTF=1 27559 GNULIB_VPRINTF=1 27560 GNULIB_FPUTC=1 27561 GNULIB_PUTC=1 27562 GNULIB_PUTCHAR=1 27563 GNULIB_FPUTS=1 27564 GNULIB_PUTS=1 27565 GNULIB_FWRITE=1 27566 27567 27568 27569 27570 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do 27571 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 27572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 27573$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 27574if eval \${$as_gl_Symbol+:} false; then : 27575 $as_echo_n "(cached) " >&6 27576else 27577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27578/* end confdefs.h. */ 27579#include <stdio.h> 27580 27581int 27582main () 27583{ 27584#undef $gl_func 27585 (void) $gl_func; 27586 ; 27587 return 0; 27588} 27589_ACEOF 27590if ac_fn_c_try_compile "$LINENO"; then : 27591 eval "$as_gl_Symbol=yes" 27592else 27593 eval "$as_gl_Symbol=no" 27594fi 27595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27596fi 27597eval ac_res=\$$as_gl_Symbol 27598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 27599$as_echo "$ac_res" >&6; } 27600 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 27601 cat >>confdefs.h <<_ACEOF 27602#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 27603_ACEOF 27604 27605 eval ac_cv_have_decl_$gl_func=yes 27606fi 27607 done 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 if test $gl_cv_have_include_next = yes; then 27621 gl_cv_next_stdlib_h='<'stdlib.h'>' 27622 else 27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 27624$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } 27625if ${gl_cv_next_stdlib_h+:} false; then : 27626 $as_echo_n "(cached) " >&6 27627else 27628 27629 27630 27631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27632/* end confdefs.h. */ 27633#include <stdlib.h> 27634_ACEOF 27635 case "$host_os" in 27636 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27637 *) gl_absname_cpp="$ac_cpp" ;; 27638 esac 27639 27640 case "$host_os" in 27641 mingw*) 27642 gl_dirsep_regex='[/\\]' 27643 ;; 27644 *) 27645 gl_dirsep_regex='\/' 27646 ;; 27647 esac 27648 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27649 gl_header_literal_regex=`echo 'stdlib.h' \ 27650 | sed -e "$gl_make_literal_regex_sed"` 27651 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27652 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27653 s|^/[^/]|//&| 27654 p 27655 q 27656 }' 27657 27658 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27659 sed -n "$gl_absolute_header_sed"` 27660 27661 gl_header=$gl_cv_absolute_stdlib_h 27662 gl_cv_next_stdlib_h='"'$gl_header'"' 27663 27664 27665fi 27666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 27667$as_echo "$gl_cv_next_stdlib_h" >&6; } 27668 fi 27669 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 27670 27671 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27672 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27673 gl_next_as_first_directive='<'stdlib.h'>' 27674 else 27675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27676 gl_next_as_first_directive=$gl_cv_next_stdlib_h 27677 fi 27678 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 27679 27680 27681 27682 27683 27684 27685 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r reallocarray realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do 27686 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 27687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 27688$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 27689if eval \${$as_gl_Symbol+:} false; then : 27690 $as_echo_n "(cached) " >&6 27691else 27692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27693/* end confdefs.h. */ 27694#include <stdlib.h> 27695#if HAVE_SYS_LOADAVG_H 27696/* OpenIndiana has a bug: <sys/time.h> must be included before 27697 <sys/loadavg.h>. */ 27698# include <sys/time.h> 27699# include <sys/loadavg.h> 27700#endif 27701#if HAVE_RANDOM_H 27702# include <random.h> 27703#endif 27704 27705int 27706main () 27707{ 27708#undef $gl_func 27709 (void) $gl_func; 27710 ; 27711 return 0; 27712} 27713_ACEOF 27714if ac_fn_c_try_compile "$LINENO"; then : 27715 eval "$as_gl_Symbol=yes" 27716else 27717 eval "$as_gl_Symbol=no" 27718fi 27719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27720fi 27721eval ac_res=\$$as_gl_Symbol 27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 27723$as_echo "$ac_res" >&6; } 27724 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 27725 cat >>confdefs.h <<_ACEOF 27726#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 27727_ACEOF 27728 27729 eval ac_cv_have_decl_$gl_func=yes 27730fi 27731 done 27732 27733 27734 27735 27736 27737 27738 27739 27740 27741 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5 27743$as_echo_n "checking for working strerror function... " >&6; } 27744if ${gl_cv_func_working_strerror+:} false; then : 27745 $as_echo_n "(cached) " >&6 27746else 27747 if test "$cross_compiling" = yes; then : 27748 case "$host_os" in 27749 # Guess yes on glibc systems. 27750 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;; 27751 # If we don't know, assume the worst. 27752 *) gl_cv_func_working_strerror="guessing no" ;; 27753 esac 27754 27755else 27756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27757/* end confdefs.h. */ 27758#include <string.h> 27759 27760int 27761main () 27762{ 27763if (!*strerror (-2)) return 1; 27764 ; 27765 return 0; 27766} 27767_ACEOF 27768if ac_fn_c_try_run "$LINENO"; then : 27769 gl_cv_func_working_strerror=yes 27770else 27771 gl_cv_func_working_strerror=no 27772fi 27773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27774 conftest.$ac_objext conftest.beam conftest.$ac_ext 27775fi 27776 27777 27778fi 27779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5 27780$as_echo "$gl_cv_func_working_strerror" >&6; } 27781 case "$gl_cv_func_working_strerror" in 27782 *yes) ;; 27783 *) 27784 REPLACE_STRERROR=1 27785 ;; 27786 esac 27787 27788 case "$gl_cv_func_strerror_r_works" in 27789 *no) REPLACE_STRERROR=1 ;; 27790 esac 27791 27792 else 27793 REPLACE_STRERROR=1 27794 fi 27795 27796 if test $REPLACE_STRERROR = 1; then 27797 27798 27799 27800 27801 27802 27803 27804 27805 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext" 27806 27807 fi 27808 27809 27810cat >>confdefs.h <<_ACEOF 27811#define GNULIB_STRERROR 1 27812_ACEOF 27813 27814 27815 27816 27817 27818 27819 27820 GNULIB_STRERROR=1 27821 27822 27823 27824 27825 27826$as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h 27827 27828 27829 27830 27831 27832 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 27833 27834 27835 27836 27837 27838 27839 27840 27841 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext" 27842 27843 27844 27845 27846 27847 if test $ac_cv_header_sys_socket_h != yes; then 27848 for ac_header in winsock2.h 27849do : 27850 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 27851if test "x$ac_cv_header_winsock2_h" = xyes; then : 27852 cat >>confdefs.h <<_ACEOF 27853#define HAVE_WINSOCK2_H 1 27854_ACEOF 27855 27856fi 27857 27858done 27859 27860 fi 27861 if test "$ac_cv_header_winsock2_h" = yes; then 27862 HAVE_WINSOCK2_H=1 27863 UNISTD_H_HAVE_WINSOCK2_H=1 27864 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 27865 else 27866 HAVE_WINSOCK2_H=0 27867 fi 27868 27869 27870 fi 27871 27872 27873 27874 27875 27876 27877 27878 27879 27880 27881 27882 27883 27884 27885 27886 27887 27888 if test $gl_cv_have_include_next = yes; then 27889 gl_cv_next_unistd_h='<'unistd.h'>' 27890 else 27891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 27892$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 27893if ${gl_cv_next_unistd_h+:} false; then : 27894 $as_echo_n "(cached) " >&6 27895else 27896 27897 if test $ac_cv_header_unistd_h = yes; then 27898 27899 27900 27901 27902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27903/* end confdefs.h. */ 27904#include <unistd.h> 27905_ACEOF 27906 case "$host_os" in 27907 aix*) gl_absname_cpp="$ac_cpp -C" ;; 27908 *) gl_absname_cpp="$ac_cpp" ;; 27909 esac 27910 27911 case "$host_os" in 27912 mingw*) 27913 gl_dirsep_regex='[/\\]' 27914 ;; 27915 *) 27916 gl_dirsep_regex='\/' 27917 ;; 27918 esac 27919 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 27920 gl_header_literal_regex=`echo 'unistd.h' \ 27921 | sed -e "$gl_make_literal_regex_sed"` 27922 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 27923 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 27924 s|^/[^/]|//&| 27925 p 27926 q 27927 }' 27928 27929 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 27930 sed -n "$gl_absolute_header_sed"` 27931 27932 gl_header=$gl_cv_absolute_unistd_h 27933 gl_cv_next_unistd_h='"'$gl_header'"' 27934 else 27935 gl_cv_next_unistd_h='<'unistd.h'>' 27936 fi 27937 27938 27939fi 27940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 27941$as_echo "$gl_cv_next_unistd_h" >&6; } 27942 fi 27943 NEXT_UNISTD_H=$gl_cv_next_unistd_h 27944 27945 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 27946 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 27947 gl_next_as_first_directive='<'unistd.h'>' 27948 else 27949 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 27950 gl_next_as_first_directive=$gl_cv_next_unistd_h 27951 fi 27952 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 27953 27954 27955 27956 27957 if test $ac_cv_header_unistd_h = yes; then 27958 HAVE_UNISTD_H=1 27959 else 27960 HAVE_UNISTD_H=0 27961 fi 27962 27963 27964 27965 27966 27967 27968 27969 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat truncate ttyname_r unlink unlinkat usleep; do 27970 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 27971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 27972$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 27973if eval \${$as_gl_Symbol+:} false; then : 27974 $as_echo_n "(cached) " >&6 27975else 27976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27977/* end confdefs.h. */ 27978 27979#if HAVE_UNISTD_H 27980# include <unistd.h> 27981#endif 27982/* Some systems declare various items in the wrong headers. */ 27983#if !(defined __GLIBC__ && !defined __UCLIBC__) 27984# include <fcntl.h> 27985# include <stdio.h> 27986# include <stdlib.h> 27987# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 27988# include <io.h> 27989# endif 27990#endif 27991 27992int 27993main () 27994{ 27995#undef $gl_func 27996 (void) $gl_func; 27997 ; 27998 return 0; 27999} 28000_ACEOF 28001if ac_fn_c_try_compile "$LINENO"; then : 28002 eval "$as_gl_Symbol=yes" 28003else 28004 eval "$as_gl_Symbol=no" 28005fi 28006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28007fi 28008eval ac_res=\$$as_gl_Symbol 28009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 28010$as_echo "$ac_res" >&6; } 28011 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 28012 cat >>confdefs.h <<_ACEOF 28013#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 28014_ACEOF 28015 28016 eval ac_cv_have_decl_$gl_func=yes 28017fi 28018 done 28019 28020 28021 28022 # Check whether --enable-valgrind-tests was given. 28023if test "${enable_valgrind_tests+set}" = set; then : 28024 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval 28025else 28026 opt_valgrind_tests=yes 28027fi 28028 28029 28030 # Run self-tests under valgrind? 28031 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then 28032 for ac_prog in valgrind 28033do 28034 # Extract the first word of "$ac_prog", so it can be a program name with args. 28035set dummy $ac_prog; ac_word=$2 28036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28037$as_echo_n "checking for $ac_word... " >&6; } 28038if ${ac_cv_prog_VALGRIND+:} false; then : 28039 $as_echo_n "(cached) " >&6 28040else 28041 if test -n "$VALGRIND"; then 28042 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 28043else 28044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28045for as_dir in $PATH 28046do 28047 IFS=$as_save_IFS 28048 test -z "$as_dir" && as_dir=. 28049 for ac_exec_ext in '' $ac_executable_extensions; do 28050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28051 ac_cv_prog_VALGRIND="$ac_prog" 28052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28053 break 2 28054 fi 28055done 28056 done 28057IFS=$as_save_IFS 28058 28059fi 28060fi 28061VALGRIND=$ac_cv_prog_VALGRIND 28062if test -n "$VALGRIND"; then 28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 28064$as_echo "$VALGRIND" >&6; } 28065else 28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28067$as_echo "no" >&6; } 28068fi 28069 28070 28071 test -n "$VALGRIND" && break 28072done 28073 28074 28075 if test "$VALGRIND"; then 28076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5 28077$as_echo_n "checking for valgrind options for tests... " >&6; } 28078if ${gl_cv_opt_valgrind_tests+:} false; then : 28079 $as_echo_n "(cached) " >&6 28080else 28081 gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full" 28082 $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 || 28083 gl_cv_opt_valgrind_tests=no 28084fi 28085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5 28086$as_echo "$gl_cv_opt_valgrind_tests" >&6; } 28087 28088 if test "$gl_cv_opt_valgrind_tests" != no; then 28089 VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests" 28090 else 28091 VALGRIND= 28092 fi 28093 fi 28094 fi 28095 28096 28097# Check whether --with-packager was given. 28098if test "${with_packager+set}" = set; then : 28099 withval=$with_packager; case $withval in 28100 yes|no) ;; 28101 *) 28102cat >>confdefs.h <<_ACEOF 28103#define PACKAGE_PACKAGER "$withval" 28104_ACEOF 28105 ;; 28106 esac 28107 28108fi 28109 28110 28111 28112# Check whether --with-packager-version was given. 28113if test "${with_packager_version+set}" = set; then : 28114 withval=$with_packager_version; case $withval in 28115 yes|no) ;; 28116 *) 28117cat >>confdefs.h <<_ACEOF 28118#define PACKAGE_PACKAGER_VERSION "$withval" 28119_ACEOF 28120 ;; 28121 esac 28122 28123fi 28124 28125 28126 28127# Check whether --with-packager-bug-reports was given. 28128if test "${with_packager_bug_reports+set}" = set; then : 28129 withval=$with_packager_bug_reports; case $withval in 28130 yes|no) ;; 28131 *) 28132cat >>confdefs.h <<_ACEOF 28133#define PACKAGE_PACKAGER_BUG_REPORTS "$withval" 28134_ACEOF 28135 ;; 28136 esac 28137 28138fi 28139 28140 28141 if test "X$with_packager" = "X" && \ 28142 test "X$with_packager_version$with_packager_bug_reports" != "X" 28143 then 28144 as_fn_error $? "The --with-packager-{bug-reports,version} options require --with-packager" "$LINENO" 5 28145 fi 28146 28147 # End of code from modules 28148 28149 28150 28151 28152 28153 28154 28155 28156 28157 gltests_libdeps= 28158 gltests_ltlibdeps= 28159 28160 28161 28162 28163 28164 28165 28166 28167 28168 gl_source_base='gltests' 28169 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 28170 28171 gl_module_indicator_condition=$gltests_WITNESS 28172 28173 28174 if test "$ac_cv_header_winsock2_h" = yes; then 28175 28176 28177 28178 28179 28180 28181 28182 28183 gltests_LIBOBJS="$gltests_LIBOBJS accept.$ac_objext" 28184 28185 fi 28186 28187 28188 28189 28190 28191 if test "$GNULIB_ACCEPT" != 1; then 28192 if test "$GNULIB_ACCEPT" = 0; then 28193 GNULIB_ACCEPT=$gl_module_indicator_condition 28194 else 28195 GNULIB_ACCEPT="($GNULIB_ACCEPT || $gl_module_indicator_condition)" 28196 fi 28197 fi 28198 28199 28200 28201 28202 28203$as_echo "#define GNULIB_TEST_ACCEPT 1" >>confdefs.h 28204 28205 28206 28207 28208 28209 if test $ac_cv_func_alloca_works = no; then 28210 : 28211 fi 28212 28213 # Define an additional variable used in the Makefile substitution. 28214 if test $ac_cv_working_alloca_h = yes; then 28215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 28216$as_echo_n "checking for alloca as a compiler built-in... " >&6; } 28217if ${gl_cv_rpl_alloca+:} false; then : 28218 $as_echo_n "(cached) " >&6 28219else 28220 28221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28222/* end confdefs.h. */ 28223 28224#if defined __GNUC__ || defined _AIX || defined _MSC_VER 28225 Need own alloca 28226#endif 28227 28228_ACEOF 28229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 28230 $EGREP "Need own alloca" >/dev/null 2>&1; then : 28231 gl_cv_rpl_alloca=yes 28232else 28233 gl_cv_rpl_alloca=no 28234fi 28235rm -f conftest* 28236 28237 28238fi 28239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 28240$as_echo "$gl_cv_rpl_alloca" >&6; } 28241 if test $gl_cv_rpl_alloca = yes; then 28242 28243$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 28244 28245 ALLOCA_H=alloca.h 28246 else 28247 ALLOCA_H= 28248 fi 28249 else 28250 ALLOCA_H=alloca.h 28251 fi 28252 28253 if test -n "$ALLOCA_H"; then 28254 GL_GENERATE_ALLOCA_H_TRUE= 28255 GL_GENERATE_ALLOCA_H_FALSE='#' 28256else 28257 GL_GENERATE_ALLOCA_H_TRUE='#' 28258 GL_GENERATE_ALLOCA_H_FALSE= 28259fi 28260 28261 28262 28263 28264 28265 28266 if test $ac_cv_header_arpa_inet_h = yes; then 28267 HAVE_ARPA_INET_H=1 28268 else 28269 HAVE_ARPA_INET_H=0 28270 fi 28271 28272 28273 28274 28275 28276 28277 28278 28279 28280 28281 if test $gl_cv_have_include_next = yes; then 28282 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' 28283 else 28284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <arpa/inet.h>" >&5 28285$as_echo_n "checking absolute name of <arpa/inet.h>... " >&6; } 28286if ${gl_cv_next_arpa_inet_h+:} false; then : 28287 $as_echo_n "(cached) " >&6 28288else 28289 28290 if test $ac_cv_header_arpa_inet_h = yes; then 28291 28292 28293 28294 28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28296/* end confdefs.h. */ 28297#include <arpa/inet.h> 28298_ACEOF 28299 case "$host_os" in 28300 aix*) gl_absname_cpp="$ac_cpp -C" ;; 28301 *) gl_absname_cpp="$ac_cpp" ;; 28302 esac 28303 28304 case "$host_os" in 28305 mingw*) 28306 gl_dirsep_regex='[/\\]' 28307 ;; 28308 *) 28309 gl_dirsep_regex='\/' 28310 ;; 28311 esac 28312 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 28313 gl_header_literal_regex=`echo 'arpa/inet.h' \ 28314 | sed -e "$gl_make_literal_regex_sed"` 28315 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 28316 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 28317 s|^/[^/]|//&| 28318 p 28319 q 28320 }' 28321 28322 gl_cv_absolute_arpa_inet_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 28323 sed -n "$gl_absolute_header_sed"` 28324 28325 gl_header=$gl_cv_absolute_arpa_inet_h 28326 gl_cv_next_arpa_inet_h='"'$gl_header'"' 28327 else 28328 gl_cv_next_arpa_inet_h='<'arpa/inet.h'>' 28329 fi 28330 28331 28332fi 28333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_arpa_inet_h" >&5 28334$as_echo "$gl_cv_next_arpa_inet_h" >&6; } 28335 fi 28336 NEXT_ARPA_INET_H=$gl_cv_next_arpa_inet_h 28337 28338 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 28339 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 28340 gl_next_as_first_directive='<'arpa/inet.h'>' 28341 else 28342 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 28343 gl_next_as_first_directive=$gl_cv_next_arpa_inet_h 28344 fi 28345 NEXT_AS_FIRST_DIRECTIVE_ARPA_INET_H=$gl_next_as_first_directive 28346 28347 28348 28349 28350 28351 28352 28353 28354 for gl_func in inet_ntop inet_pton; do 28355 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 28356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 28357$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 28358if eval \${$as_gl_Symbol+:} false; then : 28359 $as_echo_n "(cached) " >&6 28360else 28361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28362/* end confdefs.h. */ 28363 28364/* On some systems, this header is not self-consistent. */ 28365#if !(defined __GLIBC__ || defined __UCLIBC__) 28366# include <sys/socket.h> 28367#endif 28368#ifdef __TANDEM 28369# include <netdb.h> 28370#endif 28371#include <arpa/inet.h> 28372 28373int 28374main () 28375{ 28376#undef $gl_func 28377 (void) $gl_func; 28378 ; 28379 return 0; 28380} 28381_ACEOF 28382if ac_fn_c_try_compile "$LINENO"; then : 28383 eval "$as_gl_Symbol=yes" 28384else 28385 eval "$as_gl_Symbol=no" 28386fi 28387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28388fi 28389eval ac_res=\$$as_gl_Symbol 28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 28391$as_echo "$ac_res" >&6; } 28392 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 28393 cat >>confdefs.h <<_ACEOF 28394#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 28395_ACEOF 28396 28397 eval ac_cv_have_decl_$gl_func=yes 28398fi 28399 done 28400 28401 28402 28403 28404 if test "$ac_cv_header_winsock2_h" = yes; then 28405 28406 28407 28408 28409 28410 28411 28412 28413 gltests_LIBOBJS="$gltests_LIBOBJS bind.$ac_objext" 28414 28415 fi 28416 28417 28418 28419 28420 28421 if test "$GNULIB_BIND" != 1; then 28422 if test "$GNULIB_BIND" = 0; then 28423 GNULIB_BIND=$gl_module_indicator_condition 28424 else 28425 GNULIB_BIND="($GNULIB_BIND || $gl_module_indicator_condition)" 28426 fi 28427 fi 28428 28429 28430 28431 28432 28433$as_echo "#define GNULIB_TEST_BIND 1" >>confdefs.h 28434 28435 28436 28437 28438 28439$as_echo "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h 28440 28441 28442 28443 28444 28445 28446 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 28447 REPLACE_CLOSE=1 28448 fi 28449 28450 28451 28452 28453 28454 28455 if test $ac_cv_header_sys_socket_h != yes; then 28456 for ac_header in winsock2.h 28457do : 28458 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 28459if test "x$ac_cv_header_winsock2_h" = xyes; then : 28460 cat >>confdefs.h <<_ACEOF 28461#define HAVE_WINSOCK2_H 1 28462_ACEOF 28463 28464fi 28465 28466done 28467 28468 fi 28469 if test "$ac_cv_header_winsock2_h" = yes; then 28470 HAVE_WINSOCK2_H=1 28471 UNISTD_H_HAVE_WINSOCK2_H=1 28472 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 28473 else 28474 HAVE_WINSOCK2_H=0 28475 fi 28476 28477 28478 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then 28479 REPLACE_CLOSE=1 28480 fi 28481 28482 28483 28484 if test $REPLACE_CLOSE = 1; then 28485 28486 28487 28488 28489 28490 28491 28492 28493 gltests_LIBOBJS="$gltests_LIBOBJS close.$ac_objext" 28494 28495 fi 28496 28497 28498 28499 28500 28501 if test "$GNULIB_CLOSE" != 1; then 28502 if test "$GNULIB_CLOSE" = 0; then 28503 GNULIB_CLOSE=$gl_module_indicator_condition 28504 else 28505 GNULIB_CLOSE="($GNULIB_CLOSE || $gl_module_indicator_condition)" 28506 fi 28507 fi 28508 28509 28510 28511 28512 28513$as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h 28514 28515 28516 28517 28518 if test "$ac_cv_header_winsock2_h" = yes; then 28519 28520 28521 28522 28523 28524 28525 28526 28527 gltests_LIBOBJS="$gltests_LIBOBJS connect.$ac_objext" 28528 28529 fi 28530 28531 28532 28533 28534 28535 if test "$GNULIB_CONNECT" != 1; then 28536 if test "$GNULIB_CONNECT" = 0; then 28537 GNULIB_CONNECT=$gl_module_indicator_condition 28538 else 28539 GNULIB_CONNECT="($GNULIB_CONNECT || $gl_module_indicator_condition)" 28540 fi 28541 fi 28542 28543 28544 28545 28546 28547$as_echo "#define GNULIB_TEST_CONNECT 1" >>confdefs.h 28548 28549 28550 28551 28552 28553 28554 28555 28556 28557 28558 28559 28560 28561 28562 if test $gl_cv_have_include_next = yes; then 28563 gl_cv_next_ctype_h='<'ctype.h'>' 28564 else 28565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5 28566$as_echo_n "checking absolute name of <ctype.h>... " >&6; } 28567if ${gl_cv_next_ctype_h+:} false; then : 28568 $as_echo_n "(cached) " >&6 28569else 28570 28571 28572 28573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28574/* end confdefs.h. */ 28575#include <ctype.h> 28576_ACEOF 28577 case "$host_os" in 28578 aix*) gl_absname_cpp="$ac_cpp -C" ;; 28579 *) gl_absname_cpp="$ac_cpp" ;; 28580 esac 28581 28582 case "$host_os" in 28583 mingw*) 28584 gl_dirsep_regex='[/\\]' 28585 ;; 28586 *) 28587 gl_dirsep_regex='\/' 28588 ;; 28589 esac 28590 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 28591 gl_header_literal_regex=`echo 'ctype.h' \ 28592 | sed -e "$gl_make_literal_regex_sed"` 28593 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 28594 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 28595 s|^/[^/]|//&| 28596 p 28597 q 28598 }' 28599 28600 gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 28601 sed -n "$gl_absolute_header_sed"` 28602 28603 gl_header=$gl_cv_absolute_ctype_h 28604 gl_cv_next_ctype_h='"'$gl_header'"' 28605 28606 28607fi 28608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5 28609$as_echo "$gl_cv_next_ctype_h" >&6; } 28610 fi 28611 NEXT_CTYPE_H=$gl_cv_next_ctype_h 28612 28613 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 28614 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 28615 gl_next_as_first_directive='<'ctype.h'>' 28616 else 28617 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 28618 gl_next_as_first_directive=$gl_cv_next_ctype_h 28619 fi 28620 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive 28621 28622 28623 28624 28625 28626 28627 for gl_func in isblank; do 28628 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 28630$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 28631if eval \${$as_gl_Symbol+:} false; then : 28632 $as_echo_n "(cached) " >&6 28633else 28634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28635/* end confdefs.h. */ 28636#include <ctype.h> 28637 28638int 28639main () 28640{ 28641#undef $gl_func 28642 (void) $gl_func; 28643 ; 28644 return 0; 28645} 28646_ACEOF 28647if ac_fn_c_try_compile "$LINENO"; then : 28648 eval "$as_gl_Symbol=yes" 28649else 28650 eval "$as_gl_Symbol=no" 28651fi 28652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28653fi 28654eval ac_res=\$$as_gl_Symbol 28655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 28656$as_echo "$ac_res" >&6; } 28657 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 28658 cat >>confdefs.h <<_ACEOF 28659#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 28660_ACEOF 28661 28662 eval ac_cv_have_decl_$gl_func=yes 28663fi 28664 done 28665 28666 28667 28668 28669 28670 28671 28672$as_echo "#define HAVE_DUP2 1" >>confdefs.h 28673 28674 28675 if test $HAVE_DUP2 = 1; then 28676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 28677$as_echo_n "checking whether dup2 works... " >&6; } 28678if ${gl_cv_func_dup2_works+:} false; then : 28679 $as_echo_n "(cached) " >&6 28680else 28681 if test "$cross_compiling" = yes; then : 28682 case "$host_os" in 28683 mingw*) # on this platform, dup2 always returns 0 for success 28684 gl_cv_func_dup2_works="guessing no" ;; 28685 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 28686 gl_cv_func_dup2_works="guessing no" ;; 28687 aix* | freebsd*) 28688 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE, 28689 # not EBADF. 28690 gl_cv_func_dup2_works="guessing no" ;; 28691 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. 28692 gl_cv_func_dup2_works="guessing no" ;; 28693 *-android*) # implemented using dup3(), which fails if oldfd == newfd 28694 gl_cv_func_dup2_works="guessing no" ;; 28695 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd. 28696 gl_cv_func_dup2_works="guessing no" ;; 28697 *) gl_cv_func_dup2_works="guessing yes" ;; 28698 esac 28699else 28700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28701/* end confdefs.h. */ 28702 28703 #include <errno.h> 28704 #include <fcntl.h> 28705 #include <limits.h> 28706 #include <sys/resource.h> 28707 #include <unistd.h> 28708 #ifndef RLIM_SAVED_CUR 28709 # define RLIM_SAVED_CUR RLIM_INFINITY 28710 #endif 28711 #ifndef RLIM_SAVED_MAX 28712 # define RLIM_SAVED_MAX RLIM_INFINITY 28713 #endif 28714 28715int 28716main () 28717{ 28718int result = 0; 28719 int bad_fd = INT_MAX; 28720 struct rlimit rlim; 28721 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 28722 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 28723 && rlim.rlim_cur != RLIM_INFINITY 28724 && rlim.rlim_cur != RLIM_SAVED_MAX 28725 && rlim.rlim_cur != RLIM_SAVED_CUR) 28726 bad_fd = rlim.rlim_cur; 28727 #ifdef FD_CLOEXEC 28728 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) 28729 result |= 1; 28730 #endif 28731 if (dup2 (1, 1) != 1) 28732 result |= 2; 28733 #ifdef FD_CLOEXEC 28734 if (fcntl (1, F_GETFD) != FD_CLOEXEC) 28735 result |= 4; 28736 #endif 28737 close (0); 28738 if (dup2 (0, 0) != -1) 28739 result |= 8; 28740 /* Many gnulib modules require POSIX conformance of EBADF. */ 28741 if (dup2 (2, bad_fd) == -1 && errno != EBADF) 28742 result |= 16; 28743 /* Flush out some cygwin core dumps. */ 28744 if (dup2 (2, -1) != -1 || errno != EBADF) 28745 result |= 32; 28746 dup2 (2, 255); 28747 dup2 (2, 256); 28748 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */ 28749 { 28750 int fd = open (".", O_RDONLY); 28751 if (fd == -1) 28752 result |= 64; 28753 else if (dup2 (fd, fd + 1) == -1) 28754 result |= 128; 28755 28756 close (fd); 28757 } 28758 return result; 28759 ; 28760 return 0; 28761} 28762 28763_ACEOF 28764if ac_fn_c_try_run "$LINENO"; then : 28765 gl_cv_func_dup2_works=yes 28766else 28767 gl_cv_func_dup2_works=no 28768fi 28769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28770 conftest.$ac_objext conftest.beam conftest.$ac_ext 28771fi 28772 28773 28774fi 28775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 28776$as_echo "$gl_cv_func_dup2_works" >&6; } 28777 case "$gl_cv_func_dup2_works" in 28778 *yes) ;; 28779 *) 28780 REPLACE_DUP2=1 28781 for ac_func in setdtablesize 28782do : 28783 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize" 28784if test "x$ac_cv_func_setdtablesize" = xyes; then : 28785 cat >>confdefs.h <<_ACEOF 28786#define HAVE_SETDTABLESIZE 1 28787_ACEOF 28788 28789fi 28790done 28791 28792 ;; 28793 esac 28794 fi 28795 28796 28797 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then 28798 28799 28800 28801 28802 28803 28804 28805 28806 gltests_LIBOBJS="$gltests_LIBOBJS dup2.$ac_objext" 28807 28808 28809 fi 28810 28811 28812 28813 28814 28815 if test "$GNULIB_DUP2" != 1; then 28816 if test "$GNULIB_DUP2" = 0; then 28817 GNULIB_DUP2=$gl_module_indicator_condition 28818 else 28819 GNULIB_DUP2="($GNULIB_DUP2 || $gl_module_indicator_condition)" 28820 fi 28821 fi 28822 28823 28824 28825 28826 28827$as_echo "#define GNULIB_TEST_DUP2 1" >>confdefs.h 28828 28829 28830 28831 28832 28833 28834 28835 28836 28837 if test "$GNULIB_ENVIRON" != 1; then 28838 if test "$GNULIB_ENVIRON" = 0; then 28839 GNULIB_ENVIRON=$gl_module_indicator_condition 28840 else 28841 GNULIB_ENVIRON="($GNULIB_ENVIRON || $gl_module_indicator_condition)" 28842 fi 28843 fi 28844 28845 28846 28847 28848 28849$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h 28850 28851 28852 28853 28854 28855 28856 28857 28858 if test $ac_cv_func_fcntl = no; then 28859 28860 28861 28862 if test $ac_cv_func_fcntl = no; then 28863 HAVE_FCNTL=0 28864 else 28865 REPLACE_FCNTL=1 28866 fi 28867 28868 else 28869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5 28870$as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; } 28871if ${gl_cv_func_fcntl_f_dupfd_works+:} false; then : 28872 $as_echo_n "(cached) " >&6 28873else 28874 if test "$cross_compiling" = yes; then : 28875 case $host_os in 28876 aix* | cygwin* | haiku*) 28877 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;; 28878 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;; 28879 esac 28880else 28881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28882/* end confdefs.h. */ 28883#include <errno.h> 28884 #include <fcntl.h> 28885 #include <limits.h> 28886 #include <sys/resource.h> 28887 #include <unistd.h> 28888 #ifndef RLIM_SAVED_CUR 28889 # define RLIM_SAVED_CUR RLIM_INFINITY 28890 #endif 28891 #ifndef RLIM_SAVED_MAX 28892 # define RLIM_SAVED_MAX RLIM_INFINITY 28893 #endif 28894 28895int 28896main () 28897{ 28898int result = 0; 28899 int bad_fd = INT_MAX; 28900 struct rlimit rlim; 28901 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 28902 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX 28903 && rlim.rlim_cur != RLIM_INFINITY 28904 && rlim.rlim_cur != RLIM_SAVED_MAX 28905 && rlim.rlim_cur != RLIM_SAVED_CUR) 28906 bad_fd = rlim.rlim_cur; 28907 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1; 28908 if (errno != EINVAL) result |= 2; 28909 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4; 28910 if (errno != EINVAL) result |= 8; 28911 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */ 28912 { 28913 int fd; 28914 fd = open (".", O_RDONLY); 28915 if (fd == -1) 28916 result |= 16; 28917 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1) 28918 result |= 32; 28919 28920 close (fd); 28921 } 28922 return result; 28923 ; 28924 return 0; 28925} 28926_ACEOF 28927if ac_fn_c_try_run "$LINENO"; then : 28928 gl_cv_func_fcntl_f_dupfd_works=yes 28929else 28930 gl_cv_func_fcntl_f_dupfd_works=no 28931fi 28932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 28933 conftest.$ac_objext conftest.beam conftest.$ac_ext 28934fi 28935 28936fi 28937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5 28938$as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; } 28939 case $gl_cv_func_fcntl_f_dupfd_works in 28940 *yes) ;; 28941 *) 28942 28943 28944 if test $ac_cv_func_fcntl = no; then 28945 HAVE_FCNTL=0 28946 else 28947 REPLACE_FCNTL=1 28948 fi 28949 28950 28951$as_echo "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h 28952 ;; 28953 esac 28954 28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5 28956$as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; } 28957if ${gl_cv_func_fcntl_f_dupfd_cloexec+:} false; then : 28958 $as_echo_n "(cached) " >&6 28959else 28960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28961/* end confdefs.h. */ 28962 28963#include <fcntl.h> 28964#ifndef F_DUPFD_CLOEXEC 28965choke me 28966#endif 28967 28968int 28969main () 28970{ 28971 28972 ; 28973 return 0; 28974} 28975_ACEOF 28976if ac_fn_c_try_compile "$LINENO"; then : 28977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28978/* end confdefs.h. */ 28979 28980#ifdef __linux__ 28981/* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace 28982 it to support the semantics on older kernels that failed with EINVAL. */ 28983choke me 28984#endif 28985 28986int 28987main () 28988{ 28989 28990 ; 28991 return 0; 28992} 28993_ACEOF 28994if ac_fn_c_try_compile "$LINENO"; then : 28995 gl_cv_func_fcntl_f_dupfd_cloexec=yes 28996else 28997 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" 28998fi 28999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29000else 29001 gl_cv_func_fcntl_f_dupfd_cloexec=no 29002fi 29003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29004fi 29005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5 29006$as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; } 29007 if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then 29008 29009 29010 29011 if test $ac_cv_func_fcntl = no; then 29012 HAVE_FCNTL=0 29013 else 29014 REPLACE_FCNTL=1 29015 fi 29016 29017 fi 29018 fi 29019 29020 29021 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 29022 29023 29024 29025 29026 29027 29028 29029 29030 gltests_LIBOBJS="$gltests_LIBOBJS fcntl.$ac_objext" 29031 29032 fi 29033 29034 29035 29036 29037 29038 if test "$GNULIB_FCNTL" != 1; then 29039 if test "$GNULIB_FCNTL" = 0; then 29040 GNULIB_FCNTL=$gl_module_indicator_condition 29041 else 29042 GNULIB_FCNTL="($GNULIB_FCNTL || $gl_module_indicator_condition)" 29043 fi 29044 fi 29045 29046 29047 29048 29049 29050$as_echo "#define GNULIB_TEST_FCNTL 1" >>confdefs.h 29051 29052 29053 29054 29055 29056 29057 29058 29059 29060 29061 29062 29063 29064 29065 if test $gl_cv_have_include_next = yes; then 29066 gl_cv_next_fcntl_h='<'fcntl.h'>' 29067 else 29068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 29069$as_echo_n "checking absolute name of <fcntl.h>... " >&6; } 29070if ${gl_cv_next_fcntl_h+:} false; then : 29071 $as_echo_n "(cached) " >&6 29072else 29073 29074 29075 29076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29077/* end confdefs.h. */ 29078#include <fcntl.h> 29079_ACEOF 29080 case "$host_os" in 29081 aix*) gl_absname_cpp="$ac_cpp -C" ;; 29082 *) gl_absname_cpp="$ac_cpp" ;; 29083 esac 29084 29085 case "$host_os" in 29086 mingw*) 29087 gl_dirsep_regex='[/\\]' 29088 ;; 29089 *) 29090 gl_dirsep_regex='\/' 29091 ;; 29092 esac 29093 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 29094 gl_header_literal_regex=`echo 'fcntl.h' \ 29095 | sed -e "$gl_make_literal_regex_sed"` 29096 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 29097 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 29098 s|^/[^/]|//&| 29099 p 29100 q 29101 }' 29102 29103 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 29104 sed -n "$gl_absolute_header_sed"` 29105 29106 gl_header=$gl_cv_absolute_fcntl_h 29107 gl_cv_next_fcntl_h='"'$gl_header'"' 29108 29109 29110fi 29111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 29112$as_echo "$gl_cv_next_fcntl_h" >&6; } 29113 fi 29114 NEXT_FCNTL_H=$gl_cv_next_fcntl_h 29115 29116 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 29117 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 29118 gl_next_as_first_directive='<'fcntl.h'>' 29119 else 29120 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 29121 gl_next_as_first_directive=$gl_cv_next_fcntl_h 29122 fi 29123 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive 29124 29125 29126 29127 29128 29129 29130 29131 29132 29133 29134 for gl_func in fcntl openat; do 29135 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 29136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 29137$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 29138if eval \${$as_gl_Symbol+:} false; then : 29139 $as_echo_n "(cached) " >&6 29140else 29141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29142/* end confdefs.h. */ 29143#include <fcntl.h> 29144 29145int 29146main () 29147{ 29148#undef $gl_func 29149 (void) $gl_func; 29150 ; 29151 return 0; 29152} 29153_ACEOF 29154if ac_fn_c_try_compile "$LINENO"; then : 29155 eval "$as_gl_Symbol=yes" 29156else 29157 eval "$as_gl_Symbol=no" 29158fi 29159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29160fi 29161eval ac_res=\$$as_gl_Symbol 29162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 29163$as_echo "$ac_res" >&6; } 29164 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 29165 cat >>confdefs.h <<_ACEOF 29166#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 29167_ACEOF 29168 29169 eval ac_cv_have_decl_$gl_func=yes 29170fi 29171 done 29172 29173 29174 29175 29176 29177 29178 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 29179 REPLACE_FDOPEN=1 29180 fi 29181 29182 if test $REPLACE_FDOPEN = 0; then 29183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fdopen sets errno" >&5 29184$as_echo_n "checking whether fdopen sets errno... " >&6; } 29185if ${gl_cv_func_fdopen_works+:} false; then : 29186 $as_echo_n "(cached) " >&6 29187else 29188 29189 if test "$cross_compiling" = yes; then : 29190 case "$host_os" in 29191 mingw*) gl_cv_func_fdopen_works="guessing no" ;; 29192 *) gl_cv_func_fdopen_works="guessing yes" ;; 29193 esac 29194 29195else 29196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29197/* end confdefs.h. */ 29198 29199#include <stdio.h> 29200#include <errno.h> 29201int 29202main (void) 29203{ 29204 FILE *fp; 29205 errno = 0; 29206 fp = fdopen (-1, "r"); 29207 if (fp == NULL && errno == 0) 29208 return 1; 29209 return 0; 29210} 29211_ACEOF 29212if ac_fn_c_try_run "$LINENO"; then : 29213 gl_cv_func_fdopen_works=yes 29214else 29215 gl_cv_func_fdopen_works=no 29216fi 29217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29218 conftest.$ac_objext conftest.beam conftest.$ac_ext 29219fi 29220 29221 29222fi 29223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopen_works" >&5 29224$as_echo "$gl_cv_func_fdopen_works" >&6; } 29225 case "$gl_cv_func_fdopen_works" in 29226 *no) REPLACE_FDOPEN=1 ;; 29227 esac 29228 fi 29229 29230 if test $REPLACE_FDOPEN = 1; then 29231 29232 29233 29234 29235 29236 29237 29238 29239 gltests_LIBOBJS="$gltests_LIBOBJS fdopen.$ac_objext" 29240 29241 29242 fi 29243 29244 29245 29246 29247 29248 if test "$GNULIB_FDOPEN" != 1; then 29249 if test "$GNULIB_FDOPEN" = 0; then 29250 GNULIB_FDOPEN=$gl_module_indicator_condition 29251 else 29252 GNULIB_FDOPEN="($GNULIB_FDOPEN || $gl_module_indicator_condition)" 29253 fi 29254 fi 29255 29256 29257 29258 29259 29260$as_echo "#define GNULIB_TEST_FDOPEN 1" >>confdefs.h 29261 29262 29263 29264 29265 29266 29267 29268 case "$host_os" in 29269 mingw* | solaris*) 29270 REPLACE_FSTAT=1 29271 ;; 29272 esac 29273 29274 29275 29276 if test $REPLACE_FSTAT = 1; then 29277 29278 29279 29280 29281 29282 29283 29284 29285 gltests_LIBOBJS="$gltests_LIBOBJS fstat.$ac_objext" 29286 29287 case "$host_os" in 29288 mingw*) 29289 29290 29291 29292 29293 29294 29295 29296 29297 gltests_LIBOBJS="$gltests_LIBOBJS stat-w32.$ac_objext" 29298 29299 ;; 29300 esac 29301 29302 29303 : 29304 29305 fi 29306 29307 29308 29309 29310 29311 if test "$GNULIB_FSTAT" != 1; then 29312 if test "$GNULIB_FSTAT" = 0; then 29313 GNULIB_FSTAT=$gl_module_indicator_condition 29314 else 29315 GNULIB_FSTAT="($GNULIB_FSTAT || $gl_module_indicator_condition)" 29316 fi 29317 fi 29318 29319 29320 29321 29322 29323$as_echo "#define GNULIB_TEST_FSTAT 1" >>confdefs.h 29324 29325 29326 29327 29328 29329 29330 if test $ac_cv_func_ftruncate = yes; then 29331 29332 29333 case "$host_os" in 29334 mingw*) 29335 REPLACE_FTRUNCATE=1 29336 ;; 29337 esac 29338 29339 else 29340 HAVE_FTRUNCATE=0 29341 fi 29342 29343 if test $HAVE_FTRUNCATE = 0 || test $REPLACE_FTRUNCATE = 1; then 29344 29345 29346 29347 29348 29349 29350 29351 29352 gltests_LIBOBJS="$gltests_LIBOBJS ftruncate.$ac_objext" 29353 29354 29355 for ac_func in chsize 29356do : 29357 ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize" 29358if test "x$ac_cv_func_chsize" = xyes; then : 29359 cat >>confdefs.h <<_ACEOF 29360#define HAVE_CHSIZE 1 29361_ACEOF 29362 29363fi 29364done 29365 29366 29367 fi 29368 29369 29370 29371 29372 29373 if test "$GNULIB_FTRUNCATE" != 1; then 29374 if test "$GNULIB_FTRUNCATE" = 0; then 29375 GNULIB_FTRUNCATE=$gl_module_indicator_condition 29376 else 29377 GNULIB_FTRUNCATE="($GNULIB_FTRUNCATE || $gl_module_indicator_condition)" 29378 fi 29379 fi 29380 29381 29382 29383 29384 29385$as_echo "#define GNULIB_TEST_FTRUNCATE 1" >>confdefs.h 29386 29387 29388 29389 29390 29391 29392 29393 29394 case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in 29395 *yes,yes) ;; 29396 *) 29397 REPLACE_GETCWD=1 29398 ;; 29399 esac 29400 29401 if test $REPLACE_GETCWD = 1; then 29402 29403 29404 29405 29406 29407 29408 29409 29410 gltests_LIBOBJS="$gltests_LIBOBJS getcwd-lgpl.$ac_objext" 29411 29412 fi 29413 29414 29415 29416 29417 29418 if test "$GNULIB_GETCWD" != 1; then 29419 if test "$GNULIB_GETCWD" = 0; then 29420 GNULIB_GETCWD=$gl_module_indicator_condition 29421 else 29422 GNULIB_GETCWD="($GNULIB_GETCWD || $gl_module_indicator_condition)" 29423 fi 29424 fi 29425 29426 29427 29428 29429 29430$as_echo "#define GNULIB_TEST_GETCWD 1" >>confdefs.h 29431 29432 29433 29434 29435 29436 29437 29438 29439 if test $ac_cv_func_getdtablesize = yes && 29440 test $ac_cv_have_decl_getdtablesize = yes; then 29441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5 29442$as_echo_n "checking whether getdtablesize works... " >&6; } 29443if ${gl_cv_func_getdtablesize_works+:} false; then : 29444 $as_echo_n "(cached) " >&6 29445else 29446 case "$host_os" in 29447 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;; 29448 *) 29449 if test "$cross_compiling" = yes; then : 29450 case "$host_os" in 29451 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows 29452 gl_cv_func_getdtablesize_works="guessing no" ;; 29453 *) gl_cv_func_getdtablesize_works="guessing yes" ;; 29454 esac 29455 29456else 29457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29458/* end confdefs.h. */ 29459 29460 #include <unistd.h> 29461int 29462main () 29463{ 29464int size = getdtablesize(); 29465 if (dup2 (0, getdtablesize()) != -1) 29466 return 1; 29467 if (size != getdtablesize()) 29468 return 2; 29469 29470 ; 29471 return 0; 29472} 29473_ACEOF 29474if ac_fn_c_try_run "$LINENO"; then : 29475 gl_cv_func_getdtablesize_works=yes 29476else 29477 gl_cv_func_getdtablesize_works=no 29478fi 29479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29480 conftest.$ac_objext conftest.beam conftest.$ac_ext 29481fi 29482 29483 ;; 29484 esac 29485 29486fi 29487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5 29488$as_echo "$gl_cv_func_getdtablesize_works" >&6; } 29489 case "$gl_cv_func_getdtablesize_works" in 29490 *yes | "no (limitation)") ;; 29491 *) REPLACE_GETDTABLESIZE=1 ;; 29492 esac 29493 else 29494 HAVE_GETDTABLESIZE=0 29495 fi 29496 29497 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then 29498 29499 29500 29501 29502 29503 29504 29505 29506 gltests_LIBOBJS="$gltests_LIBOBJS getdtablesize.$ac_objext" 29507 29508 : 29509 fi 29510 29511 29512 29513 29514 29515 if test "$GNULIB_GETDTABLESIZE" != 1; then 29516 if test "$GNULIB_GETDTABLESIZE" = 0; then 29517 GNULIB_GETDTABLESIZE=$gl_module_indicator_condition 29518 else 29519 GNULIB_GETDTABLESIZE="($GNULIB_GETDTABLESIZE || $gl_module_indicator_condition)" 29520 fi 29521 fi 29522 29523 29524 29525 29526 29527$as_echo "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h 29528 29529 29530 29531 29532 29533 29534 29535 29536 29537 29538 gl_gettimeofday_timezone=void 29539 if test $ac_cv_func_gettimeofday != yes; then 29540 HAVE_GETTIMEOFDAY=0 29541 else 29542 29543 29544 29545 29546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5 29547$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } 29548if ${gl_cv_func_gettimeofday_clobber+:} false; then : 29549 $as_echo_n "(cached) " >&6 29550else 29551 if test "$cross_compiling" = yes; then : 29552 # When cross-compiling: 29553 case "$host_os" in 29554 # Guess all is fine on glibc systems. 29555 *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;; 29556 # Guess no on native Windows. 29557 mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;; 29558 # If we don't know, assume the worst. 29559 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;; 29560 esac 29561 29562else 29563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29564/* end confdefs.h. */ 29565#include <string.h> 29566 #include <sys/time.h> 29567 #include <time.h> 29568 #include <stdlib.h> 29569 29570int 29571main () 29572{ 29573 29574 time_t t = 0; 29575 struct tm *lt; 29576 struct tm saved_lt; 29577 struct timeval tv; 29578 lt = localtime (&t); 29579 saved_lt = *lt; 29580 gettimeofday (&tv, NULL); 29581 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; 29582 29583 ; 29584 return 0; 29585} 29586_ACEOF 29587if ac_fn_c_try_run "$LINENO"; then : 29588 gl_cv_func_gettimeofday_clobber=no 29589else 29590 gl_cv_func_gettimeofday_clobber=yes 29591fi 29592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 29593 conftest.$ac_objext conftest.beam conftest.$ac_ext 29594fi 29595 29596fi 29597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5 29598$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; } 29599 29600 case "$gl_cv_func_gettimeofday_clobber" in 29601 *yes) 29602 REPLACE_GETTIMEOFDAY=1 29603 29604$as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h 29605 29606 29607 29608 29609 NEED_LOCALTIME_BUFFER=1 29610 REPLACE_GMTIME=1 29611 REPLACE_LOCALTIME=1 29612 29613 ;; 29614 esac 29615 29616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 29617$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; } 29618if ${gl_cv_func_gettimeofday_posix_signature+:} false; then : 29619 $as_echo_n "(cached) " >&6 29620else 29621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29622/* end confdefs.h. */ 29623#include <sys/time.h> 29624 struct timeval c; 29625 int gettimeofday (struct timeval *restrict, void *restrict); 29626 29627int 29628main () 29629{ 29630/* glibc uses struct timezone * rather than the POSIX void * 29631 if _GNU_SOURCE is defined. However, since the only portable 29632 use of gettimeofday uses NULL as the second parameter, and 29633 since the glibc definition is actually more typesafe, it is 29634 not worth wrapping this to get a compliant signature. */ 29635 int (*f) (struct timeval *restrict, void *restrict) 29636 = gettimeofday; 29637 int x = f (&c, 0); 29638 return !(x | c.tv_sec | c.tv_usec); 29639 29640 ; 29641 return 0; 29642} 29643_ACEOF 29644if ac_fn_c_try_compile "$LINENO"; then : 29645 gl_cv_func_gettimeofday_posix_signature=yes 29646else 29647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29648/* end confdefs.h. */ 29649#include <sys/time.h> 29650int gettimeofday (struct timeval *restrict, struct timezone *restrict); 29651 29652int 29653main () 29654{ 29655 29656 ; 29657 return 0; 29658} 29659_ACEOF 29660if ac_fn_c_try_compile "$LINENO"; then : 29661 gl_cv_func_gettimeofday_posix_signature=almost 29662else 29663 gl_cv_func_gettimeofday_posix_signature=no 29664fi 29665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29666fi 29667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29668fi 29669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 29670$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } 29671 if test $gl_cv_func_gettimeofday_posix_signature = almost; then 29672 gl_gettimeofday_timezone='struct timezone' 29673 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then 29674 REPLACE_GETTIMEOFDAY=1 29675 fi 29676 if test $REPLACE_STRUCT_TIMEVAL = 1; then 29677 REPLACE_GETTIMEOFDAY=1 29678 fi 29679 case "$host_os" in 29680 mingw*) REPLACE_GETTIMEOFDAY=1 ;; 29681 esac 29682 fi 29683 29684cat >>confdefs.h <<_ACEOF 29685#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone 29686_ACEOF 29687 29688 29689 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then 29690 29691 29692 29693 29694 29695 29696 29697 29698 gltests_LIBOBJS="$gltests_LIBOBJS gettimeofday.$ac_objext" 29699 29700 : 29701 fi 29702 29703 29704 29705 29706 29707 if test "$GNULIB_GETTIMEOFDAY" != 1; then 29708 if test "$GNULIB_GETTIMEOFDAY" = 0; then 29709 GNULIB_GETTIMEOFDAY=$gl_module_indicator_condition 29710 else 29711 GNULIB_GETTIMEOFDAY="($GNULIB_GETTIMEOFDAY || $gl_module_indicator_condition)" 29712 fi 29713 fi 29714 29715 29716 29717 29718 29719$as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h 29720 29721 29722 29723 29724 29725 29726 29727 29728 29729 29730 29731 HAVE_INET_PTON=1 29732 INET_PTON_LIB= 29733 29734 29735 29736 29737 if test $ac_cv_header_sys_socket_h != yes; then 29738 for ac_header in winsock2.h 29739do : 29740 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 29741if test "x$ac_cv_header_winsock2_h" = xyes; then : 29742 cat >>confdefs.h <<_ACEOF 29743#define HAVE_WINSOCK2_H 1 29744_ACEOF 29745 29746fi 29747 29748done 29749 29750 fi 29751 if test "$ac_cv_header_winsock2_h" = yes; then 29752 HAVE_WINSOCK2_H=1 29753 UNISTD_H_HAVE_WINSOCK2_H=1 29754 SYS_IOCTL_H_HAVE_WINSOCK2_H=1 29755 else 29756 HAVE_WINSOCK2_H=0 29757 fi 29758 29759 29760 if test $HAVE_WINSOCK2_H = 1; then 29761 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <ws2tcpip.h> 29762" 29763if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 29764 ac_have_decl=1 29765else 29766 ac_have_decl=0 29767fi 29768 29769cat >>confdefs.h <<_ACEOF 29770#define HAVE_DECL_INET_PTON $ac_have_decl 29771_ACEOF 29772 29773 if test $ac_cv_have_decl_inet_pton = yes; then 29774 REPLACE_INET_PTON=1 29775 INET_PTON_LIB="-lws2_32" 29776 else 29777 HAVE_DECL_INET_PTON=0 29778 HAVE_INET_PTON=0 29779 fi 29780 else 29781 gl_save_LIBS=$LIBS 29782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 29783$as_echo_n "checking for library containing inet_pton... " >&6; } 29784if ${ac_cv_search_inet_pton+:} false; then : 29785 $as_echo_n "(cached) " >&6 29786else 29787 ac_func_search_save_LIBS=$LIBS 29788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29789/* end confdefs.h. */ 29790 29791/* Override any GCC internal prototype to avoid an error. 29792 Use char because int might match the return type of a GCC 29793 builtin and then its argument prototype would still apply. */ 29794#ifdef __cplusplus 29795extern "C" 29796#endif 29797char inet_pton (); 29798int 29799main () 29800{ 29801return inet_pton (); 29802 ; 29803 return 0; 29804} 29805_ACEOF 29806for ac_lib in '' nsl resolv network; do 29807 if test -z "$ac_lib"; then 29808 ac_res="none required" 29809 else 29810 ac_res=-l$ac_lib 29811 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 29812 fi 29813 if ac_fn_c_try_link "$LINENO"; then : 29814 ac_cv_search_inet_pton=$ac_res 29815fi 29816rm -f core conftest.err conftest.$ac_objext \ 29817 conftest$ac_exeext 29818 if ${ac_cv_search_inet_pton+:} false; then : 29819 break 29820fi 29821done 29822if ${ac_cv_search_inet_pton+:} false; then : 29823 29824else 29825 ac_cv_search_inet_pton=no 29826fi 29827rm conftest.$ac_ext 29828LIBS=$ac_func_search_save_LIBS 29829fi 29830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 29831$as_echo "$ac_cv_search_inet_pton" >&6; } 29832ac_res=$ac_cv_search_inet_pton 29833if test "$ac_res" != no; then : 29834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 29835 29836else 29837 for ac_func in inet_pton 29838do : 29839 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton" 29840if test "x$ac_cv_func_inet_pton" = xyes; then : 29841 cat >>confdefs.h <<_ACEOF 29842#define HAVE_INET_PTON 1 29843_ACEOF 29844 29845fi 29846done 29847 29848 if test $ac_cv_func_inet_pton = no; then 29849 HAVE_INET_PTON=0 29850 fi 29851 29852fi 29853 29854 LIBS=$gl_save_LIBS 29855 29856 if test "$ac_cv_search_inet_pton" != "no" \ 29857 && test "$ac_cv_search_inet_pton" != "none required"; then 29858 INET_PTON_LIB="$ac_cv_search_inet_pton" 29859 fi 29860 29861 29862 ac_fn_c_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_inet_pton" "#include <arpa/inet.h> 29863 #if HAVE_NETDB_H 29864 # include <netdb.h> 29865 #endif 29866 29867" 29868if test "x$ac_cv_have_decl_inet_pton" = xyes; then : 29869 ac_have_decl=1 29870else 29871 ac_have_decl=0 29872fi 29873 29874cat >>confdefs.h <<_ACEOF 29875#define HAVE_DECL_INET_PTON $ac_have_decl 29876_ACEOF 29877 29878 if test $ac_cv_have_decl_inet_pton = no; then 29879 HAVE_DECL_INET_PTON=0 29880 fi 29881 fi 29882 29883 29884 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then 29885 29886 29887 29888 29889 29890 29891 29892 29893 gltests_LIBOBJS="$gltests_LIBOBJS inet_pton.$ac_objext" 29894 29895 29896 29897 29898 fi 29899 29900 29901 29902 29903 29904 if test "$GNULIB_INET_PTON" != 1; then 29905 if test "$GNULIB_INET_PTON" = 0; then 29906 GNULIB_INET_PTON=$gl_module_indicator_condition 29907 else 29908 GNULIB_INET_PTON="($GNULIB_INET_PTON || $gl_module_indicator_condition)" 29909 fi 29910 fi 29911 29912 29913 29914 29915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 29916$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 29917if ${ac_cv_c_bigendian+:} false; then : 29918 $as_echo_n "(cached) " >&6 29919else 29920 ac_cv_c_bigendian=unknown 29921 # See if we're dealing with a universal compiler. 29922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29923/* end confdefs.h. */ 29924#ifndef __APPLE_CC__ 29925 not a universal capable compiler 29926 #endif 29927 typedef int dummy; 29928 29929_ACEOF 29930if ac_fn_c_try_compile "$LINENO"; then : 29931 29932 # Check for potential -arch flags. It is not universal unless 29933 # there are at least two -arch flags with different values. 29934 ac_arch= 29935 ac_prev= 29936 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 29937 if test -n "$ac_prev"; then 29938 case $ac_word in 29939 i?86 | x86_64 | ppc | ppc64) 29940 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 29941 ac_arch=$ac_word 29942 else 29943 ac_cv_c_bigendian=universal 29944 break 29945 fi 29946 ;; 29947 esac 29948 ac_prev= 29949 elif test "x$ac_word" = "x-arch"; then 29950 ac_prev=arch 29951 fi 29952 done 29953fi 29954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29955 if test $ac_cv_c_bigendian = unknown; then 29956 # See if sys/param.h defines the BYTE_ORDER macro. 29957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29958/* end confdefs.h. */ 29959#include <sys/types.h> 29960 #include <sys/param.h> 29961 29962int 29963main () 29964{ 29965#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 29966 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 29967 && LITTLE_ENDIAN) 29968 bogus endian macros 29969 #endif 29970 29971 ; 29972 return 0; 29973} 29974_ACEOF 29975if ac_fn_c_try_compile "$LINENO"; then : 29976 # It does; now see whether it defined to BIG_ENDIAN or not. 29977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29978/* end confdefs.h. */ 29979#include <sys/types.h> 29980 #include <sys/param.h> 29981 29982int 29983main () 29984{ 29985#if BYTE_ORDER != BIG_ENDIAN 29986 not big endian 29987 #endif 29988 29989 ; 29990 return 0; 29991} 29992_ACEOF 29993if ac_fn_c_try_compile "$LINENO"; then : 29994 ac_cv_c_bigendian=yes 29995else 29996 ac_cv_c_bigendian=no 29997fi 29998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29999fi 30000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30001 fi 30002 if test $ac_cv_c_bigendian = unknown; then 30003 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 30004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30005/* end confdefs.h. */ 30006#include <limits.h> 30007 30008int 30009main () 30010{ 30011#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 30012 bogus endian macros 30013 #endif 30014 30015 ; 30016 return 0; 30017} 30018_ACEOF 30019if ac_fn_c_try_compile "$LINENO"; then : 30020 # It does; now see whether it defined to _BIG_ENDIAN or not. 30021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30022/* end confdefs.h. */ 30023#include <limits.h> 30024 30025int 30026main () 30027{ 30028#ifndef _BIG_ENDIAN 30029 not big endian 30030 #endif 30031 30032 ; 30033 return 0; 30034} 30035_ACEOF 30036if ac_fn_c_try_compile "$LINENO"; then : 30037 ac_cv_c_bigendian=yes 30038else 30039 ac_cv_c_bigendian=no 30040fi 30041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30042fi 30043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30044 fi 30045 if test $ac_cv_c_bigendian = unknown; then 30046 # Compile a test program. 30047 if test "$cross_compiling" = yes; then : 30048 # Try to guess by grepping values from an object file. 30049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30050/* end confdefs.h. */ 30051short int ascii_mm[] = 30052 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 30053 short int ascii_ii[] = 30054 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 30055 int use_ascii (int i) { 30056 return ascii_mm[i] + ascii_ii[i]; 30057 } 30058 short int ebcdic_ii[] = 30059 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 30060 short int ebcdic_mm[] = 30061 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 30062 int use_ebcdic (int i) { 30063 return ebcdic_mm[i] + ebcdic_ii[i]; 30064 } 30065 extern int foo; 30066 30067int 30068main () 30069{ 30070return use_ascii (foo) == use_ebcdic (foo); 30071 ; 30072 return 0; 30073} 30074_ACEOF 30075if ac_fn_c_try_compile "$LINENO"; then : 30076 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 30077 ac_cv_c_bigendian=yes 30078 fi 30079 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 30080 if test "$ac_cv_c_bigendian" = unknown; then 30081 ac_cv_c_bigendian=no 30082 else 30083 # finding both strings is unlikely to happen, but who knows? 30084 ac_cv_c_bigendian=unknown 30085 fi 30086 fi 30087fi 30088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30089else 30090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30091/* end confdefs.h. */ 30092$ac_includes_default 30093int 30094main () 30095{ 30096 30097 /* Are we little or big endian? From Harbison&Steele. */ 30098 union 30099 { 30100 long int l; 30101 char c[sizeof (long int)]; 30102 } u; 30103 u.l = 1; 30104 return u.c[sizeof (long int) - 1] == 1; 30105 30106 ; 30107 return 0; 30108} 30109_ACEOF 30110if ac_fn_c_try_run "$LINENO"; then : 30111 ac_cv_c_bigendian=no 30112else 30113 ac_cv_c_bigendian=yes 30114fi 30115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30116 conftest.$ac_objext conftest.beam conftest.$ac_ext 30117fi 30118 30119 fi 30120fi 30121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 30122$as_echo "$ac_cv_c_bigendian" >&6; } 30123 case $ac_cv_c_bigendian in #( 30124 yes) 30125 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 30126;; #( 30127 no) 30128 ;; #( 30129 universal) 30130 30131$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 30132 30133 ;; #( 30134 *) 30135 as_fn_error $? "unknown endianness 30136 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 30137 esac 30138 30139 30140 30141 30142 30143 30144 PRIPTR_PREFIX= 30145 if test -n "$STDINT_H"; then 30146 PRIPTR_PREFIX='"l"' 30147 else 30148 for glpfx in '' l ll I64; do 30149 case $glpfx in 30150 '') gltype1='int';; 30151 l) gltype1='long int';; 30152 ll) gltype1='long long int';; 30153 I64) gltype1='__int64';; 30154 esac 30155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30156/* end confdefs.h. */ 30157#include <stdint.h> 30158 extern intptr_t foo; 30159 extern $gltype1 foo; 30160int 30161main () 30162{ 30163 30164 ; 30165 return 0; 30166} 30167_ACEOF 30168if ac_fn_c_try_compile "$LINENO"; then : 30169 PRIPTR_PREFIX='"'$glpfx'"' 30170fi 30171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30172 test -n "$PRIPTR_PREFIX" && break 30173 done 30174 fi 30175 30176 30177 30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5 30179$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; } 30180if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then : 30181 $as_echo_n "(cached) " >&6 30182else 30183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30184/* end confdefs.h. */ 30185/* Work also in C++ mode. */ 30186 #define __STDC_LIMIT_MACROS 1 30187 30188 /* Work if build is not clean. */ 30189 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 30190 30191 #include <limits.h> 30192 #if HAVE_STDINT_H 30193 #include <stdint.h> 30194 #endif 30195 30196 #if defined INT32_MAX && defined INTMAX_MAX 30197 #define CONDITION (INT32_MAX < INTMAX_MAX) 30198 #elif HAVE_LONG_LONG_INT 30199 #define CONDITION (sizeof (int) < sizeof (long long int)) 30200 #else 30201 #define CONDITION 0 30202 #endif 30203 int test[CONDITION ? 1 : -1]; 30204int 30205main () 30206{ 30207 30208 ; 30209 return 0; 30210} 30211_ACEOF 30212if ac_fn_c_try_compile "$LINENO"; then : 30213 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes 30214else 30215 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no 30216fi 30217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30218fi 30219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5 30220$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } 30221 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then 30222 INT32_MAX_LT_INTMAX_MAX=1; 30223 else 30224 INT32_MAX_LT_INTMAX_MAX=0; 30225 fi 30226 30227 30228 if test $APPLE_UNIVERSAL_BUILD = 0; then 30229 30230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5 30231$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; } 30232if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then : 30233 $as_echo_n "(cached) " >&6 30234else 30235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30236/* end confdefs.h. */ 30237/* Work also in C++ mode. */ 30238 #define __STDC_LIMIT_MACROS 1 30239 30240 /* Work if build is not clean. */ 30241 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 30242 30243 #include <limits.h> 30244 #if HAVE_STDINT_H 30245 #include <stdint.h> 30246 #endif 30247 30248 #if defined INT64_MAX 30249 #define CONDITION (INT64_MAX == LONG_MAX) 30250 #elif HAVE_LONG_LONG_INT 30251 #define CONDITION (sizeof (long long int) == sizeof (long int)) 30252 #else 30253 #define CONDITION 0 30254 #endif 30255 int test[CONDITION ? 1 : -1]; 30256int 30257main () 30258{ 30259 30260 ; 30261 return 0; 30262} 30263_ACEOF 30264if ac_fn_c_try_compile "$LINENO"; then : 30265 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes 30266else 30267 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no 30268fi 30269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30270fi 30271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5 30272$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } 30273 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then 30274 INT64_MAX_EQ_LONG_MAX=1; 30275 else 30276 INT64_MAX_EQ_LONG_MAX=0; 30277 fi 30278 30279 30280 else 30281 INT64_MAX_EQ_LONG_MAX=-1 30282 fi 30283 30284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5 30285$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } 30286if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then : 30287 $as_echo_n "(cached) " >&6 30288else 30289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30290/* end confdefs.h. */ 30291/* Work also in C++ mode. */ 30292 #define __STDC_LIMIT_MACROS 1 30293 30294 /* Work if build is not clean. */ 30295 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 30296 30297 #include <limits.h> 30298 #if HAVE_STDINT_H 30299 #include <stdint.h> 30300 #endif 30301 30302 #if defined UINT32_MAX && defined UINTMAX_MAX 30303 #define CONDITION (UINT32_MAX < UINTMAX_MAX) 30304 #elif HAVE_LONG_LONG_INT 30305 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int)) 30306 #else 30307 #define CONDITION 0 30308 #endif 30309 int test[CONDITION ? 1 : -1]; 30310int 30311main () 30312{ 30313 30314 ; 30315 return 0; 30316} 30317_ACEOF 30318if ac_fn_c_try_compile "$LINENO"; then : 30319 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes 30320else 30321 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no 30322fi 30323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30324fi 30325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5 30326$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } 30327 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then 30328 UINT32_MAX_LT_UINTMAX_MAX=1; 30329 else 30330 UINT32_MAX_LT_UINTMAX_MAX=0; 30331 fi 30332 30333 30334 if test $APPLE_UNIVERSAL_BUILD = 0; then 30335 30336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5 30337$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; } 30338if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then : 30339 $as_echo_n "(cached) " >&6 30340else 30341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30342/* end confdefs.h. */ 30343/* Work also in C++ mode. */ 30344 #define __STDC_LIMIT_MACROS 1 30345 30346 /* Work if build is not clean. */ 30347 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 30348 30349 #include <limits.h> 30350 #if HAVE_STDINT_H 30351 #include <stdint.h> 30352 #endif 30353 30354 #if defined UINT64_MAX 30355 #define CONDITION (UINT64_MAX == ULONG_MAX) 30356 #elif HAVE_LONG_LONG_INT 30357 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int)) 30358 #else 30359 #define CONDITION 0 30360 #endif 30361 int test[CONDITION ? 1 : -1]; 30362int 30363main () 30364{ 30365 30366 ; 30367 return 0; 30368} 30369_ACEOF 30370if ac_fn_c_try_compile "$LINENO"; then : 30371 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes 30372else 30373 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no 30374fi 30375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30376fi 30377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5 30378$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } 30379 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then 30380 UINT64_MAX_EQ_ULONG_MAX=1; 30381 else 30382 UINT64_MAX_EQ_ULONG_MAX=0; 30383 fi 30384 30385 30386 else 30387 UINT64_MAX_EQ_ULONG_MAX=-1 30388 fi 30389 30390 30391 30392 30393 30394 30395 HAVE_IOCTL=1 30396 if test "$ac_cv_header_winsock2_h" = yes; then 30397 HAVE_IOCTL=0 30398 else 30399 for ac_func in ioctl 30400do : 30401 ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl" 30402if test "x$ac_cv_func_ioctl" = xyes; then : 30403 cat >>confdefs.h <<_ACEOF 30404#define HAVE_IOCTL 1 30405_ACEOF 30406 30407fi 30408done 30409 30410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl with POSIX signature" >&5 30411$as_echo_n "checking for ioctl with POSIX signature... " >&6; } 30412if ${gl_cv_func_ioctl_posix_signature+:} false; then : 30413 $as_echo_n "(cached) " >&6 30414else 30415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30416/* end confdefs.h. */ 30417#include <sys/ioctl.h> 30418 /* On some platforms, ioctl() is declared in <unistd.h>. */ 30419 #include <unistd.h> 30420 30421int 30422main () 30423{ 30424extern 30425 #ifdef __cplusplus 30426 "C" 30427 #endif 30428 int ioctl (int, int, ...); 30429 30430 ; 30431 return 0; 30432} 30433 30434_ACEOF 30435if ac_fn_c_try_compile "$LINENO"; then : 30436 gl_cv_func_ioctl_posix_signature=yes 30437else 30438 gl_cv_func_ioctl_posix_signature=no 30439fi 30440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30441 30442fi 30443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ioctl_posix_signature" >&5 30444$as_echo "$gl_cv_func_ioctl_posix_signature" >&6; } 30445 if test $gl_cv_func_ioctl_posix_signature != yes; then 30446 REPLACE_IOCTL=1 30447 fi 30448 fi 30449 30450 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then 30451 30452 30453 30454 30455 30456 30457 30458 30459 gltests_LIBOBJS="$gltests_LIBOBJS ioctl.$ac_objext" 30460 30461 fi 30462 30463 30464 30465 30466 30467 if test "$GNULIB_IOCTL" != 1; then 30468 if test "$GNULIB_IOCTL" = 0; then 30469 GNULIB_IOCTL=$gl_module_indicator_condition 30470 else 30471 GNULIB_IOCTL="($GNULIB_IOCTL || $gl_module_indicator_condition)" 30472 fi 30473 fi 30474 30475 30476 30477 30478 30479$as_echo "#define GNULIB_TEST_IOCTL 1" >>confdefs.h 30480 30481 30482 30483 30484 30485 30486 30487 30488 if test $ac_cv_func_isblank = no; then 30489 HAVE_ISBLANK=0 30490 fi 30491 30492 if test $HAVE_ISBLANK = 0; then 30493 30494 30495 30496 30497 30498 30499 30500 30501 gltests_LIBOBJS="$gltests_LIBOBJS isblank.$ac_objext" 30502 30503 fi 30504 30505 30506 30507 30508 30509 if test "$GNULIB_ISBLANK" != 1; then 30510 if test "$GNULIB_ISBLANK" = 0; then 30511 GNULIB_ISBLANK=$gl_module_indicator_condition 30512 else 30513 GNULIB_ISBLANK="($GNULIB_ISBLANK || $gl_module_indicator_condition)" 30514 fi 30515 fi 30516 30517 30518 30519 30520 30521 30522 if test "$ac_cv_header_winsock2_h" = yes; then 30523 30524 30525 30526 30527 30528 30529 30530 30531 gltests_LIBOBJS="$gltests_LIBOBJS listen.$ac_objext" 30532 30533 fi 30534 30535 30536 30537 30538 30539 if test "$GNULIB_LISTEN" != 1; then 30540 if test "$GNULIB_LISTEN" = 0; then 30541 GNULIB_LISTEN=$gl_module_indicator_condition 30542 else 30543 GNULIB_LISTEN="($GNULIB_LISTEN || $gl_module_indicator_condition)" 30544 fi 30545 fi 30546 30547 30548 30549 30550 30551$as_echo "#define GNULIB_TEST_LISTEN 1" >>confdefs.h 30552 30553 30554 30555 30556 30557 30558 30559 30560 30561 30562 30563 30564 gltests_LIBOBJS="$gltests_LIBOBJS localtime-buffer.$ac_objext" 30565 30566 30567 30568 if test "$gl_threads_api" = posix; then 30569 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 30570 # pthread_rwlock_* functions. 30571 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 30572" 30573if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 30574 30575$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 30576 30577fi 30578 30579 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 30580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30581/* end confdefs.h. */ 30582 30583 #include <pthread.h> 30584int 30585main () 30586{ 30587 30588#if __FreeBSD__ == 4 30589error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 30590#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 30591 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 30592error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 30593#else 30594int x = (int)PTHREAD_MUTEX_RECURSIVE; 30595return !x; 30596#endif 30597 30598 ; 30599 return 0; 30600} 30601_ACEOF 30602if ac_fn_c_try_compile "$LINENO"; then : 30603 30604$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 30605 30606fi 30607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30608 fi 30609 : 30610 30611 30612 30613cat >>confdefs.h <<_ACEOF 30614#define GNULIB_LOCK $gl_module_indicator_condition 30615_ACEOF 30616 30617 30618 30619 30620 30621 30622 30623 if test $ac_cv_func_lstat = yes; then 30624 30625 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in 30626 solaris* | *no) 30627 REPLACE_LSTAT=1 30628 ;; 30629 esac 30630 else 30631 HAVE_LSTAT=0 30632 fi 30633 30634 if test $REPLACE_LSTAT = 1; then 30635 30636 30637 30638 30639 30640 30641 30642 30643 gltests_LIBOBJS="$gltests_LIBOBJS lstat.$ac_objext" 30644 30645 : 30646 fi 30647 30648 30649 30650 30651 30652 if test "$GNULIB_LSTAT" != 1; then 30653 if test "$GNULIB_LSTAT" = 0; then 30654 GNULIB_LSTAT=$gl_module_indicator_condition 30655 else 30656 GNULIB_LSTAT="($GNULIB_LSTAT || $gl_module_indicator_condition)" 30657 fi 30658 fi 30659 30660 30661 30662 30663 30664$as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h 30665 30666 30667 30668 30669 30670 30671 30672 30673 30674 30675 30676 30677 30678 30679 30680 nanosleep_save_libs=$LIBS 30681 30682 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function. 30683 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 30684 LIB_NANOSLEEP= 30685 30686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5 30687$as_echo_n "checking for library containing nanosleep... " >&6; } 30688if ${ac_cv_search_nanosleep+:} false; then : 30689 $as_echo_n "(cached) " >&6 30690else 30691 ac_func_search_save_LIBS=$LIBS 30692cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30693/* end confdefs.h. */ 30694 30695/* Override any GCC internal prototype to avoid an error. 30696 Use char because int might match the return type of a GCC 30697 builtin and then its argument prototype would still apply. */ 30698#ifdef __cplusplus 30699extern "C" 30700#endif 30701char nanosleep (); 30702int 30703main () 30704{ 30705return nanosleep (); 30706 ; 30707 return 0; 30708} 30709_ACEOF 30710for ac_lib in '' rt posix4; do 30711 if test -z "$ac_lib"; then 30712 ac_res="none required" 30713 else 30714 ac_res=-l$ac_lib 30715 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 30716 fi 30717 if ac_fn_c_try_link "$LINENO"; then : 30718 ac_cv_search_nanosleep=$ac_res 30719fi 30720rm -f core conftest.err conftest.$ac_objext \ 30721 conftest$ac_exeext 30722 if ${ac_cv_search_nanosleep+:} false; then : 30723 break 30724fi 30725done 30726if ${ac_cv_search_nanosleep+:} false; then : 30727 30728else 30729 ac_cv_search_nanosleep=no 30730fi 30731rm conftest.$ac_ext 30732LIBS=$ac_func_search_save_LIBS 30733fi 30734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5 30735$as_echo "$ac_cv_search_nanosleep" >&6; } 30736ac_res=$ac_cv_search_nanosleep 30737if test "$ac_res" != no; then : 30738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 30739 test "$ac_cv_search_nanosleep" = "none required" || 30740 LIB_NANOSLEEP=$ac_cv_search_nanosleep 30741fi 30742 30743 if test "x$ac_cv_search_nanosleep" != xno; then 30744 30745 30746 if test $APPLE_UNIVERSAL_BUILD = 1; then 30747 # A universal build on Apple Mac OS X platforms. 30748 # The test result would be 'no (mishandles large arguments)' in 64-bit 30749 # mode but 'yes' in 32-bit mode. But we need a configuration result that 30750 # is valid in both modes. 30751 gl_cv_func_nanosleep='no (mishandles large arguments)' 30752 fi 30753 30754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nanosleep" >&5 30755$as_echo_n "checking for working nanosleep... " >&6; } 30756if ${gl_cv_func_nanosleep+:} false; then : 30757 $as_echo_n "(cached) " >&6 30758else 30759 30760 if test "$cross_compiling" = yes; then : 30761 case "$host_os" in linux*) # Guess it halfway works when the kernel is Linux. 30762 gl_cv_func_nanosleep='guessing no (mishandles large arguments)' ;; 30763 mingw*) # Guess no on native Windows. 30764 gl_cv_func_nanosleep='guessing no' ;; 30765 *) # If we don't know, assume the worst. 30766 gl_cv_func_nanosleep='guessing no' ;; 30767 esac 30768 30769else 30770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30771/* end confdefs.h. */ 30772 30773 #include <errno.h> 30774 #include <limits.h> 30775 #include <signal.h> 30776 #if HAVE_SYS_TIME_H 30777 #include <sys/time.h> 30778 #endif 30779 #include <time.h> 30780 #include <unistd.h> 30781 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) 30782 #define TYPE_MAXIMUM(t) \ 30783 ((t) (! TYPE_SIGNED (t) \ 30784 ? (t) -1 \ 30785 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) 30786 30787 static void 30788 check_for_SIGALRM (int sig) 30789 { 30790 if (sig != SIGALRM) 30791 _exit (1); 30792 } 30793 30794 int 30795 main () 30796 { 30797 static struct timespec ts_sleep; 30798 static struct timespec ts_remaining; 30799 static struct sigaction act; 30800 /* Test for major problems first. */ 30801 if (! nanosleep) 30802 return 2; 30803 act.sa_handler = check_for_SIGALRM; 30804 sigemptyset (&act.sa_mask); 30805 sigaction (SIGALRM, &act, NULL); 30806 ts_sleep.tv_sec = 0; 30807 ts_sleep.tv_nsec = 1; 30808 alarm (1); 30809 if (nanosleep (&ts_sleep, NULL) != 0) 30810 return 3; 30811 /* Test for a minor problem: the handling of large arguments. */ 30812 ts_sleep.tv_sec = TYPE_MAXIMUM (time_t); 30813 ts_sleep.tv_nsec = 999999999; 30814 alarm (1); 30815 if (nanosleep (&ts_sleep, &ts_remaining) != -1) 30816 return 4; 30817 if (errno != EINTR) 30818 return 5; 30819 if (ts_remaining.tv_sec <= TYPE_MAXIMUM (time_t) - 10) 30820 return 6; 30821 return 0; 30822 } 30823_ACEOF 30824if ac_fn_c_try_run "$LINENO"; then : 30825 gl_cv_func_nanosleep=yes 30826else 30827 case $? in 4|5|6) gl_cv_func_nanosleep='no (mishandles large arguments)';; *) gl_cv_func_nanosleep=no;; 30828 esac 30829fi 30830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 30831 conftest.$ac_objext conftest.beam conftest.$ac_ext 30832fi 30833 30834 30835fi 30836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_nanosleep" >&5 30837$as_echo "$gl_cv_func_nanosleep" >&6; } 30838 case "$gl_cv_func_nanosleep" in 30839 *yes) 30840 REPLACE_NANOSLEEP=0 30841 ;; 30842 *) 30843 REPLACE_NANOSLEEP=1 30844 case "$gl_cv_func_nanosleep" in 30845 *"mishandles large arguments"*) 30846 30847$as_echo "#define HAVE_BUG_BIG_NANOSLEEP 1" >>confdefs.h 30848 30849 ;; 30850 *) 30851 # The replacement uses select(). Add $LIBSOCKET to $LIB_NANOSLEEP. 30852 for ac_lib in $LIBSOCKET; do 30853 case " $LIB_NANOSLEEP " in 30854 *" $ac_lib "*) ;; 30855 *) LIB_NANOSLEEP="$LIB_NANOSLEEP $ac_lib";; 30856 esac 30857 done 30858 ;; 30859 esac 30860 ;; 30861 esac 30862 else 30863 HAVE_NANOSLEEP=0 30864 fi 30865 LIBS=$nanosleep_save_libs 30866 30867 if test $HAVE_NANOSLEEP = 0 || test $REPLACE_NANOSLEEP = 1; then 30868 30869 30870 30871 30872 30873 30874 30875 30876 gltests_LIBOBJS="$gltests_LIBOBJS nanosleep.$ac_objext" 30877 30878 30879 30880 : 30881 30882 fi 30883 30884 30885 30886 30887 30888 if test "$GNULIB_NANOSLEEP" != 1; then 30889 if test "$GNULIB_NANOSLEEP" = 0; then 30890 GNULIB_NANOSLEEP=$gl_module_indicator_condition 30891 else 30892 GNULIB_NANOSLEEP="($GNULIB_NANOSLEEP || $gl_module_indicator_condition)" 30893 fi 30894 fi 30895 30896 30897 30898 30899 30900$as_echo "#define GNULIB_TEST_NANOSLEEP 1" >>confdefs.h 30901 30902 30903 30904 30905 30906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <netinet/in.h> is self-contained" >&5 30907$as_echo_n "checking whether <netinet/in.h> is self-contained... " >&6; } 30908if ${gl_cv_header_netinet_in_h_selfcontained+:} false; then : 30909 $as_echo_n "(cached) " >&6 30910else 30911 30912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30913/* end confdefs.h. */ 30914#include <netinet/in.h> 30915int 30916main () 30917{ 30918 30919 ; 30920 return 0; 30921} 30922_ACEOF 30923if ac_fn_c_try_compile "$LINENO"; then : 30924 gl_cv_header_netinet_in_h_selfcontained=yes 30925else 30926 gl_cv_header_netinet_in_h_selfcontained=no 30927fi 30928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30929 30930fi 30931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_netinet_in_h_selfcontained" >&5 30932$as_echo "$gl_cv_header_netinet_in_h_selfcontained" >&6; } 30933 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then 30934 NETINET_IN_H='' 30935 else 30936 NETINET_IN_H='netinet/in.h' 30937 for ac_header in netinet/in.h 30938do : 30939 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 30940if test "x$ac_cv_header_netinet_in_h" = xyes; then : 30941 cat >>confdefs.h <<_ACEOF 30942#define HAVE_NETINET_IN_H 1 30943_ACEOF 30944 30945fi 30946 30947done 30948 30949 30950 30951 30952 30953 30954 30955 30956 30957 30958 if test $gl_cv_have_include_next = yes; then 30959 gl_cv_next_netinet_in_h='<'netinet/in.h'>' 30960 else 30961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <netinet/in.h>" >&5 30962$as_echo_n "checking absolute name of <netinet/in.h>... " >&6; } 30963if ${gl_cv_next_netinet_in_h+:} false; then : 30964 $as_echo_n "(cached) " >&6 30965else 30966 30967 if test $ac_cv_header_netinet_in_h = yes; then 30968 30969 30970 30971 30972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30973/* end confdefs.h. */ 30974#include <netinet/in.h> 30975_ACEOF 30976 case "$host_os" in 30977 aix*) gl_absname_cpp="$ac_cpp -C" ;; 30978 *) gl_absname_cpp="$ac_cpp" ;; 30979 esac 30980 30981 case "$host_os" in 30982 mingw*) 30983 gl_dirsep_regex='[/\\]' 30984 ;; 30985 *) 30986 gl_dirsep_regex='\/' 30987 ;; 30988 esac 30989 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 30990 gl_header_literal_regex=`echo 'netinet/in.h' \ 30991 | sed -e "$gl_make_literal_regex_sed"` 30992 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 30993 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 30994 s|^/[^/]|//&| 30995 p 30996 q 30997 }' 30998 30999 gl_cv_absolute_netinet_in_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 31000 sed -n "$gl_absolute_header_sed"` 31001 31002 gl_header=$gl_cv_absolute_netinet_in_h 31003 gl_cv_next_netinet_in_h='"'$gl_header'"' 31004 else 31005 gl_cv_next_netinet_in_h='<'netinet/in.h'>' 31006 fi 31007 31008 31009fi 31010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_netinet_in_h" >&5 31011$as_echo "$gl_cv_next_netinet_in_h" >&6; } 31012 fi 31013 NEXT_NETINET_IN_H=$gl_cv_next_netinet_in_h 31014 31015 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 31016 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 31017 gl_next_as_first_directive='<'netinet/in.h'>' 31018 else 31019 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 31020 gl_next_as_first_directive=$gl_cv_next_netinet_in_h 31021 fi 31022 NEXT_AS_FIRST_DIRECTIVE_NETINET_IN_H=$gl_next_as_first_directive 31023 31024 31025 31026 31027 if test $ac_cv_header_netinet_in_h = yes; then 31028 HAVE_NETINET_IN_H=1 31029 else 31030 HAVE_NETINET_IN_H=0 31031 fi 31032 31033 fi 31034 31035 if test -n "$NETINET_IN_H"; then 31036 GL_GENERATE_NETINET_IN_H_TRUE= 31037 GL_GENERATE_NETINET_IN_H_FALSE='#' 31038else 31039 GL_GENERATE_NETINET_IN_H_TRUE='#' 31040 GL_GENERATE_NETINET_IN_H_FALSE= 31041fi 31042 31043 31044 31045 31046 31047 31048 case "$host_os" in 31049 mingw* | pw*) 31050 REPLACE_OPEN=1 31051 ;; 31052 *) 31053 31054 if test "$gl_cv_macro_O_CLOEXEC" != yes; then 31055 REPLACE_OPEN=1 31056 fi 31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5 31058$as_echo_n "checking whether open recognizes a trailing slash... " >&6; } 31059if ${gl_cv_func_open_slash+:} false; then : 31060 $as_echo_n "(cached) " >&6 31061else 31062 # Assume that if we have lstat, we can also check symlinks. 31063 if test $ac_cv_func_lstat = yes; then 31064 touch conftest.tmp 31065 ln -s conftest.tmp conftest.lnk 31066 fi 31067 if test "$cross_compiling" = yes; then : 31068 31069 case "$host_os" in 31070 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*) 31071 gl_cv_func_open_slash="guessing no" ;; 31072 *) 31073 gl_cv_func_open_slash="guessing yes" ;; 31074 esac 31075 31076else 31077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31078/* end confdefs.h. */ 31079 31080#include <fcntl.h> 31081#if HAVE_UNISTD_H 31082# include <unistd.h> 31083#endif 31084int main () 31085{ 31086 int result = 0; 31087#if HAVE_LSTAT 31088 if (open ("conftest.lnk/", O_RDONLY) != -1) 31089 result |= 1; 31090#endif 31091 if (open ("conftest.sl/", O_CREAT, 0600) >= 0) 31092 result |= 2; 31093 return result; 31094} 31095_ACEOF 31096if ac_fn_c_try_run "$LINENO"; then : 31097 gl_cv_func_open_slash=yes 31098else 31099 gl_cv_func_open_slash=no 31100fi 31101rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31102 conftest.$ac_objext conftest.beam conftest.$ac_ext 31103fi 31104 31105 rm -f conftest.sl conftest.tmp conftest.lnk 31106 31107fi 31108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5 31109$as_echo "$gl_cv_func_open_slash" >&6; } 31110 case "$gl_cv_func_open_slash" in 31111 *no) 31112 31113$as_echo "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h 31114 31115 REPLACE_OPEN=1 31116 ;; 31117 esac 31118 ;; 31119 esac 31120 31121 31122 31123 if test $REPLACE_OPEN = 1; then 31124 31125 31126 31127 31128 31129 31130 31131 31132 gltests_LIBOBJS="$gltests_LIBOBJS open.$ac_objext" 31133 31134 31135 31136 : 31137 31138 fi 31139 31140 31141 31142 31143 31144 if test "$GNULIB_OPEN" != 1; then 31145 if test "$GNULIB_OPEN" = 0; then 31146 GNULIB_OPEN=$gl_module_indicator_condition 31147 else 31148 GNULIB_OPEN="($GNULIB_OPEN || $gl_module_indicator_condition)" 31149 fi 31150 fi 31151 31152 31153 31154 31155 31156$as_echo "#define GNULIB_TEST_OPEN 1" >>confdefs.h 31157 31158 31159 31160 31161 31162 31163 31164 31165 31166 31167 31168 if test "$ERRNO_H:$REPLACE_STRERROR_0" != :0; then 31169 REPLACE_PERROR=1 31170 fi 31171 case ${gl_cv_func_strerror_r_works-unset} in 31172 unset|*yes) 31173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5 31174$as_echo_n "checking whether perror matches strerror... " >&6; } 31175if ${gl_cv_func_perror_works+:} false; then : 31176 $as_echo_n "(cached) " >&6 31177else 31178 if test "$cross_compiling" = yes; then : 31179 case "$host_os" in 31180 # Guess yes on native Windows. 31181 mingw*) gl_cv_func_perror_works="guessing yes" ;; 31182 # Otherwise guess no. 31183 *) gl_cv_func_perror_works="guessing no" ;; 31184 esac 31185 31186else 31187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31188/* end confdefs.h. */ 31189#include <errno.h> 31190 #include <stdio.h> 31191 #include <stdlib.h> 31192 #include <string.h> 31193 31194int 31195main () 31196{ 31197char *str = strerror (-1); 31198 if (!getenv("CONFTEST_OUTPUT")) return 0; 31199 if (!str) str = ""; 31200 puts (str); 31201 errno = -1; 31202 perror (""); 31203 return 0; 31204 31205 ; 31206 return 0; 31207} 31208_ACEOF 31209if ac_fn_c_try_run "$LINENO"; then : 31210 if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \ 31211 && cmp conftest.txt1 conftest.txt2 >/dev/null; then 31212 gl_cv_func_perror_works=yes 31213 else 31214 gl_cv_func_perror_works=no 31215 fi 31216 rm -rf conftest.txt1 conftest.txt2 31217else 31218 gl_cv_func_perror_works=no 31219fi 31220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31221 conftest.$ac_objext conftest.beam conftest.$ac_ext 31222fi 31223 31224 31225fi 31226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5 31227$as_echo "$gl_cv_func_perror_works" >&6; } 31228 case "$gl_cv_func_perror_works" in 31229 *yes) ;; 31230 *) REPLACE_PERROR=1 ;; 31231 esac 31232 ;; 31233 *) 31234 REPLACE_PERROR=1 31235 ;; 31236 esac 31237 31238 if test $REPLACE_PERROR = 1; then 31239 31240 31241 31242 31243 31244 31245 31246 31247 gltests_LIBOBJS="$gltests_LIBOBJS perror.$ac_objext" 31248 31249 fi 31250 31251 31252 31253 31254 31255 if test "$GNULIB_PERROR" != 1; then 31256 if test "$GNULIB_PERROR" = 0; then 31257 GNULIB_PERROR=$gl_module_indicator_condition 31258 else 31259 GNULIB_PERROR="($GNULIB_PERROR || $gl_module_indicator_condition)" 31260 fi 31261 fi 31262 31263 31264 31265 31266 31267$as_echo "#define GNULIB_TEST_PERROR 1" >>confdefs.h 31268 31269 31270 31271 31272 31273 31274 31275 if test $ac_cv_func_pipe != yes; then 31276 HAVE_PIPE=0 31277 fi 31278 31279 if test $HAVE_PIPE = 0; then 31280 31281 31282 31283 31284 31285 31286 31287 31288 gltests_LIBOBJS="$gltests_LIBOBJS pipe.$ac_objext" 31289 31290 fi 31291 31292 31293 31294 31295 31296 if test "$GNULIB_PIPE" != 1; then 31297 if test "$GNULIB_PIPE" = 0; then 31298 GNULIB_PIPE=$gl_module_indicator_condition 31299 else 31300 GNULIB_PIPE="($GNULIB_PIPE || $gl_module_indicator_condition)" 31301 fi 31302 fi 31303 31304 31305 31306 31307 31308$as_echo "#define GNULIB_TEST_PIPE 1" >>confdefs.h 31309 31310 31311 31312 31313 31314 31315 31316 LIB_PTHREAD_SIGMASK= 31317 31318 31319 31320 31321 if test "$gl_threads_api" = posix; then 31322 if test $ac_cv_func_pthread_sigmask = yes; then 31323 : 31324 else 31325 if test -n "$LIBMULTITHREAD"; then 31326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5 31327$as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; } 31328if ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+:} false; then : 31329 $as_echo_n "(cached) " >&6 31330else 31331 gl_save_LIBS="$LIBS" 31332 LIBS="$LIBS $LIBMULTITHREAD" 31333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31334/* end confdefs.h. */ 31335#include <pthread.h> 31336 #include <signal.h> 31337 31338int 31339main () 31340{ 31341return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0); 31342 ; 31343 return 0; 31344} 31345 31346_ACEOF 31347if ac_fn_c_try_link "$LINENO"; then : 31348 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes 31349else 31350 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no 31351fi 31352rm -f core conftest.err conftest.$ac_objext \ 31353 conftest$ac_exeext conftest.$ac_ext 31354 LIBS="$gl_save_LIBS" 31355 31356fi 31357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5 31358$as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; } 31359 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then 31360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is only a macro" >&5 31361$as_echo_n "checking whether pthread_sigmask is only a macro... " >&6; } 31362if ${gl_cv_func_pthread_sigmask_is_macro+:} false; then : 31363 $as_echo_n "(cached) " >&6 31364else 31365 gl_save_LIBS="$LIBS" 31366 LIBS="$LIBS $LIBMULTITHREAD" 31367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31368/* end confdefs.h. */ 31369#include <pthread.h> 31370 #include <signal.h> 31371 #undef pthread_sigmask 31372 31373int 31374main () 31375{ 31376return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0); 31377 ; 31378 return 0; 31379} 31380 31381_ACEOF 31382if ac_fn_c_try_link "$LINENO"; then : 31383 gl_cv_func_pthread_sigmask_is_macro=no 31384else 31385 gl_cv_func_pthread_sigmask_is_macro=yes 31386fi 31387rm -f core conftest.err conftest.$ac_objext \ 31388 conftest$ac_exeext conftest.$ac_ext 31389 LIBS="$gl_save_LIBS" 31390 31391fi 31392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_is_macro" >&5 31393$as_echo "$gl_cv_func_pthread_sigmask_is_macro" >&6; } 31394 if test $gl_cv_func_pthread_sigmask_is_macro = yes; then 31395 REPLACE_PTHREAD_SIGMASK=1 31396 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no 31397 fi 31398 fi 31399 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then 31400 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD" 31401 else 31402 HAVE_PTHREAD_SIGMASK=0 31403 fi 31404 else 31405 HAVE_PTHREAD_SIGMASK=0 31406 fi 31407 fi 31408 else 31409 if test $ac_cv_func_pthread_sigmask = yes; then 31410 REPLACE_PTHREAD_SIGMASK=1 31411 else 31412 HAVE_PTHREAD_SIGMASK=0 31413 fi 31414 fi 31415 31416 31417 31418 31419 if test $HAVE_PTHREAD_SIGMASK = 1; then 31420 31421 31422 if test -z "$LIB_PTHREAD_SIGMASK"; then 31423 case " $LIBS " in 31424 *' -pthread '*) ;; 31425 *' -lpthread '*) ;; 31426 *) 31427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5 31428$as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; } 31429if ${gl_cv_func_pthread_sigmask_in_libc_works+:} false; then : 31430 $as_echo_n "(cached) " >&6 31431else 31432 31433 if test "$cross_compiling" = yes; then : 31434 31435 case "$host_os" in 31436 freebsd* | hpux* | solaris | solaris2.[2-9]*) 31437 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";; 31438 *) 31439 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";; 31440 esac 31441 31442else 31443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31444/* end confdefs.h. */ 31445 31446 #include <pthread.h> 31447 #include <signal.h> 31448 #include <stddef.h> 31449 int main () 31450 { 31451 sigset_t set; 31452 sigemptyset (&set); 31453 return pthread_sigmask (1729, &set, NULL) != 0; 31454 } 31455_ACEOF 31456if ac_fn_c_try_run "$LINENO"; then : 31457 gl_cv_func_pthread_sigmask_in_libc_works=no 31458else 31459 gl_cv_func_pthread_sigmask_in_libc_works=yes 31460fi 31461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31462 conftest.$ac_objext conftest.beam conftest.$ac_ext 31463fi 31464 31465 31466fi 31467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5 31468$as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; } 31469 case "$gl_cv_func_pthread_sigmask_in_libc_works" in 31470 *no) 31471 REPLACE_PTHREAD_SIGMASK=1 31472 31473$as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h 31474 31475 ;; 31476 esac;; 31477 esac 31478 fi 31479 31480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5 31481$as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; } 31482if ${gl_cv_func_pthread_sigmask_return_works+:} false; then : 31483 $as_echo_n "(cached) " >&6 31484else 31485 31486 gl_save_LIBS="$LIBS" 31487 LIBS="$LIBS $LIB_PTHREAD_SIGMASK" 31488 if test "$cross_compiling" = yes; then : 31489 case "$host_os" in 31490 cygwin*) 31491 gl_cv_func_pthread_sigmask_return_works="guessing no";; 31492 *) 31493 gl_cv_func_pthread_sigmask_return_works="guessing yes";; 31494 esac 31495 31496else 31497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31498/* end confdefs.h. */ 31499 31500#include <pthread.h> 31501#include <signal.h> 31502#include <stddef.h> 31503int main () 31504{ 31505 sigset_t set; 31506 sigemptyset (&set); 31507 if (pthread_sigmask (1729, &set, NULL) == -1) 31508 return 1; 31509 return 0; 31510} 31511_ACEOF 31512if ac_fn_c_try_run "$LINENO"; then : 31513 gl_cv_func_pthread_sigmask_return_works=yes 31514else 31515 gl_cv_func_pthread_sigmask_return_works=no 31516fi 31517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31518 conftest.$ac_objext conftest.beam conftest.$ac_ext 31519fi 31520 31521 LIBS="$gl_save_LIBS" 31522 31523fi 31524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5 31525$as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; } 31526 case "$gl_cv_func_pthread_sigmask_return_works" in 31527 *no) 31528 REPLACE_PTHREAD_SIGMASK=1 31529 31530$as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h 31531 31532 ;; 31533 esac 31534 31535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5 31536$as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; } 31537if ${gl_cv_func_pthread_sigmask_unblock_works+:} false; then : 31538 $as_echo_n "(cached) " >&6 31539else 31540 31541 case "$host_os" in 31542 irix*) 31543 gl_cv_func_pthread_sigmask_unblock_works="guessing no";; 31544 *) 31545 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";; 31546 esac 31547 gl_save_LIBS=$LIBS 31548 LIBS="$LIBS $LIBMULTITHREAD" 31549 if test "$cross_compiling" = yes; then : 31550 : 31551else 31552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31553/* end confdefs.h. */ 31554 31555#include <pthread.h> 31556#include <signal.h> 31557#include <stdio.h> 31558#include <stdlib.h> 31559#include <unistd.h> 31560static volatile int sigint_occurred; 31561static void 31562sigint_handler (int sig) 31563{ 31564 sigint_occurred++; 31565} 31566int main () 31567{ 31568 sigset_t set; 31569 int pid = getpid (); 31570 char command[80]; 31571 signal (SIGINT, sigint_handler); 31572 sigemptyset (&set); 31573 sigaddset (&set, SIGINT); 31574 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0)) 31575 return 1; 31576 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid); 31577 if (!(system (command) == 0)) 31578 return 2; 31579 sleep (2); 31580 if (!(sigint_occurred == 0)) 31581 return 3; 31582 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0)) 31583 return 4; 31584 if (!(sigint_occurred == 1)) /* This fails on IRIX. */ 31585 return 5; 31586 return 0; 31587} 31588_ACEOF 31589if ac_fn_c_try_run "$LINENO"; then : 31590 : 31591else 31592 gl_cv_func_pthread_sigmask_unblock_works=no 31593fi 31594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31595 conftest.$ac_objext conftest.beam conftest.$ac_ext 31596fi 31597 31598 LIBS=$gl_save_LIBS 31599 31600fi 31601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5 31602$as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; } 31603 case "$gl_cv_func_pthread_sigmask_unblock_works" in 31604 *no) 31605 REPLACE_PTHREAD_SIGMASK=1 31606 31607$as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h 31608 31609 ;; 31610 esac 31611 fi 31612 31613 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then 31614 31615 31616 31617 31618 31619 31620 31621 31622 gltests_LIBOBJS="$gltests_LIBOBJS pthread_sigmask.$ac_objext" 31623 31624 31625 if test $HAVE_PTHREAD_SIGMASK = 1; then 31626 31627$as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h 31628 31629 fi 31630 31631 fi 31632 31633 31634 31635 31636 31637 if test "$GNULIB_PTHREAD_SIGMASK" != 1; then 31638 if test "$GNULIB_PTHREAD_SIGMASK" = 0; then 31639 GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition 31640 else 31641 GNULIB_PTHREAD_SIGMASK="($GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)" 31642 fi 31643 fi 31644 31645 31646 31647 31648 31649$as_echo "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h 31650 31651 31652 31653 31654 31655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5 31656$as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; } 31657if ${gl_cv_func_svid_putenv+:} false; then : 31658 $as_echo_n "(cached) " >&6 31659else 31660 if test "$cross_compiling" = yes; then : 31661 case "$host_os" in 31662 # Guess yes on glibc systems. 31663 *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;; 31664 # Guess no on native Windows. 31665 mingw*) gl_cv_func_svid_putenv="guessing no" ;; 31666 # If we don't know, assume the worst. 31667 *) gl_cv_func_svid_putenv="guessing no" ;; 31668 esac 31669 31670else 31671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31672/* end confdefs.h. */ 31673$ac_includes_default 31674int 31675main () 31676{ 31677 31678 /* Put it in env. */ 31679 if (putenv ("CONFTEST_putenv=val")) 31680 return 1; 31681 31682 /* Try to remove it. */ 31683 if (putenv ("CONFTEST_putenv")) 31684 return 2; 31685 31686 /* Make sure it was deleted. */ 31687 if (getenv ("CONFTEST_putenv") != 0) 31688 return 3; 31689 31690 return 0; 31691 31692 ; 31693 return 0; 31694} 31695_ACEOF 31696if ac_fn_c_try_run "$LINENO"; then : 31697 gl_cv_func_svid_putenv=yes 31698else 31699 gl_cv_func_svid_putenv=no 31700fi 31701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31702 conftest.$ac_objext conftest.beam conftest.$ac_ext 31703fi 31704 31705 31706fi 31707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5 31708$as_echo "$gl_cv_func_svid_putenv" >&6; } 31709 case "$gl_cv_func_svid_putenv" in 31710 *yes) ;; 31711 *) 31712 REPLACE_PUTENV=1 31713 ;; 31714 esac 31715 31716 if test $REPLACE_PUTENV = 1; then 31717 31718 31719 31720 31721 31722 31723 31724 31725 gltests_LIBOBJS="$gltests_LIBOBJS putenv.$ac_objext" 31726 31727 31728 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default" 31729if test "x$ac_cv_have_decl__putenv" = xyes; then : 31730 ac_have_decl=1 31731else 31732 ac_have_decl=0 31733fi 31734 31735cat >>confdefs.h <<_ACEOF 31736#define HAVE_DECL__PUTENV $ac_have_decl 31737_ACEOF 31738 31739 31740 fi 31741 31742 31743 31744 31745 31746 if test "$GNULIB_PUTENV" != 1; then 31747 if test "$GNULIB_PUTENV" = 0; then 31748 GNULIB_PUTENV=$gl_module_indicator_condition 31749 else 31750 GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)" 31751 fi 31752 fi 31753 31754 31755 31756 31757 31758$as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h 31759 31760 31761 31762 31763 31764 31765 for ac_func in raise 31766do : 31767 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise" 31768if test "x$ac_cv_func_raise" = xyes; then : 31769 cat >>confdefs.h <<_ACEOF 31770#define HAVE_RAISE 1 31771_ACEOF 31772 31773fi 31774done 31775 31776 if test $ac_cv_func_raise = no; then 31777 HAVE_RAISE=0 31778 else 31779 31780 31781 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 31782 REPLACE_RAISE=1 31783 fi 31784 31785 31786 31787 31788 31789 if test $gl_cv_type_sigset_t = yes; then 31790 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 31791if test "x$ac_cv_func_sigprocmask" = xyes; then : 31792 gl_cv_func_sigprocmask=1 31793fi 31794 31795 fi 31796 if test -z "$gl_cv_func_sigprocmask"; then 31797 HAVE_POSIX_SIGNALBLOCKING=0 31798 fi 31799 31800 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 31801 : 31802 fi 31803 31804 fi 31805 31806 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then 31807 31808 31809 31810 31811 31812 31813 31814 31815 gltests_LIBOBJS="$gltests_LIBOBJS raise.$ac_objext" 31816 31817 : 31818 fi 31819 31820 31821 31822 31823 31824 if test "$GNULIB_RAISE" != 1; then 31825 if test "$GNULIB_RAISE" = 0; then 31826 GNULIB_RAISE=$gl_module_indicator_condition 31827 else 31828 GNULIB_RAISE="($GNULIB_RAISE || $gl_module_indicator_condition)" 31829 fi 31830 fi 31831 31832 31833 31834 31835 31836$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h 31837 31838 31839 31840 31841 31842 31843 31844 if test "$ac_cv_header_winsock2_h" = yes; then 31845 REPLACE_SELECT=1 31846 else 31847 31848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select supports a 0 argument" >&5 31849$as_echo_n "checking whether select supports a 0 argument... " >&6; } 31850if ${gl_cv_func_select_supports0+:} false; then : 31851 $as_echo_n "(cached) " >&6 31852else 31853 31854 if test "$cross_compiling" = yes; then : 31855 31856 case "$host_os" in 31857 # Guess no on Interix. 31858 interix*) gl_cv_func_select_supports0="guessing no";; 31859 # Guess yes otherwise. 31860 *) gl_cv_func_select_supports0="guessing yes";; 31861 esac 31862 31863else 31864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31865/* end confdefs.h. */ 31866 31867#include <sys/types.h> 31868#include <sys/time.h> 31869#if HAVE_SYS_SELECT_H 31870#include <sys/select.h> 31871#endif 31872int main () 31873{ 31874 struct timeval timeout; 31875 timeout.tv_sec = 0; 31876 timeout.tv_usec = 5; 31877 return select (0, (fd_set *)0, (fd_set *)0, (fd_set *)0, &timeout) < 0; 31878} 31879_ACEOF 31880if ac_fn_c_try_run "$LINENO"; then : 31881 gl_cv_func_select_supports0=yes 31882else 31883 gl_cv_func_select_supports0=no 31884fi 31885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31886 conftest.$ac_objext conftest.beam conftest.$ac_ext 31887fi 31888 31889 31890fi 31891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_supports0" >&5 31892$as_echo "$gl_cv_func_select_supports0" >&6; } 31893 case "$gl_cv_func_select_supports0" in 31894 *yes) ;; 31895 *) REPLACE_SELECT=1 ;; 31896 esac 31897 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether select detects invalid fds" >&5 31899$as_echo_n "checking whether select detects invalid fds... " >&6; } 31900if ${gl_cv_func_select_detects_ebadf+:} false; then : 31901 $as_echo_n "(cached) " >&6 31902else 31903 31904 if test "$cross_compiling" = yes; then : 31905 31906 case "$host_os" in 31907 # Guess yes on glibc systems. 31908 *-gnu* | gnu*) gl_cv_func_select_detects_ebadf="guessing yes" ;; 31909 # If we don't know, assume the worst. 31910 *) gl_cv_func_select_detects_ebadf="guessing no" ;; 31911 esac 31912 31913else 31914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31915/* end confdefs.h. */ 31916 31917#include <sys/types.h> 31918#include <sys/time.h> 31919#if HAVE_SYS_SELECT_H 31920# include <sys/select.h> 31921#endif 31922#include <unistd.h> 31923#include <errno.h> 31924 31925int 31926main () 31927{ 31928 31929 fd_set set; 31930 dup2(0, 16); 31931 FD_ZERO(&set); 31932 FD_SET(16, &set); 31933 close(16); 31934 struct timeval timeout; 31935 timeout.tv_sec = 0; 31936 timeout.tv_usec = 5; 31937 return select (17, &set, NULL, NULL, &timeout) != -1 || errno != EBADF; 31938 31939 ; 31940 return 0; 31941} 31942_ACEOF 31943if ac_fn_c_try_run "$LINENO"; then : 31944 gl_cv_func_select_detects_ebadf=yes 31945else 31946 gl_cv_func_select_detects_ebadf=no 31947fi 31948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 31949 conftest.$ac_objext conftest.beam conftest.$ac_ext 31950fi 31951 31952 31953fi 31954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_select_detects_ebadf" >&5 31955$as_echo "$gl_cv_func_select_detects_ebadf" >&6; } 31956 case $gl_cv_func_select_detects_ebadf in 31957 *yes) ;; 31958 *) REPLACE_SELECT=1 ;; 31959 esac 31960 fi 31961 31962 LIB_SELECT="$LIBSOCKET" 31963 if test $REPLACE_SELECT = 1; then 31964 case "$host_os" in 31965 mingw*) 31966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31967/* end confdefs.h. */ 31968 31969#define WIN32_LEAN_AND_MEAN 31970#include <windows.h> 31971int 31972main () 31973{ 31974 MsgWaitForMultipleObjects (0, NULL, 0, 0, 0); 31975 return 0; 31976} 31977_ACEOF 31978if ac_fn_c_try_link "$LINENO"; then : 31979 31980else 31981 LIB_SELECT="$LIB_SELECT -luser32" 31982fi 31983rm -f core conftest.err conftest.$ac_objext \ 31984 conftest$ac_exeext conftest.$ac_ext 31985 ;; 31986 esac 31987 fi 31988 31989 31990 if test $REPLACE_SELECT = 1; then 31991 31992 31993 31994 31995 31996 31997 31998 31999 gltests_LIBOBJS="$gltests_LIBOBJS select.$ac_objext" 32000 32001 fi 32002 32003 32004 32005 32006 32007 if test "$GNULIB_SELECT" != 1; then 32008 if test "$GNULIB_SELECT" = 0; then 32009 GNULIB_SELECT=$gl_module_indicator_condition 32010 else 32011 GNULIB_SELECT="($GNULIB_SELECT || $gl_module_indicator_condition)" 32012 fi 32013 fi 32014 32015 32016 32017 32018 32019$as_echo "#define GNULIB_TEST_SELECT 1" >>confdefs.h 32020 32021 32022 32023 32024 32025 32026 if test $ac_cv_func_setenv = no; then 32027 HAVE_SETENV=0 32028 else 32029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 32030$as_echo_n "checking whether setenv validates arguments... " >&6; } 32031if ${gl_cv_func_setenv_works+:} false; then : 32032 $as_echo_n "(cached) " >&6 32033else 32034 if test "$cross_compiling" = yes; then : 32035 case "$host_os" in 32036 # Guess yes on glibc systems. 32037 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; 32038 # If we don't know, assume the worst. 32039 *) gl_cv_func_setenv_works="guessing no" ;; 32040 esac 32041 32042else 32043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32044/* end confdefs.h. */ 32045 32046 #include <stdlib.h> 32047 #include <errno.h> 32048 #include <string.h> 32049 32050int 32051main () 32052{ 32053 32054 int result = 0; 32055 { 32056 if (setenv ("", "", 0) != -1) 32057 result |= 1; 32058 else if (errno != EINVAL) 32059 result |= 2; 32060 } 32061 { 32062 if (setenv ("a", "=", 1) != 0) 32063 result |= 4; 32064 else if (strcmp (getenv ("a"), "=") != 0) 32065 result |= 8; 32066 } 32067 return result; 32068 32069 ; 32070 return 0; 32071} 32072_ACEOF 32073if ac_fn_c_try_run "$LINENO"; then : 32074 gl_cv_func_setenv_works=yes 32075else 32076 gl_cv_func_setenv_works=no 32077fi 32078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32079 conftest.$ac_objext conftest.beam conftest.$ac_ext 32080fi 32081 32082fi 32083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 32084$as_echo "$gl_cv_func_setenv_works" >&6; } 32085 case "$gl_cv_func_setenv_works" in 32086 *yes) ;; 32087 *) 32088 REPLACE_SETENV=1 32089 ;; 32090 esac 32091 fi 32092 32093 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then 32094 32095 32096 32097 32098 32099 32100 32101 32102 gltests_LIBOBJS="$gltests_LIBOBJS setenv.$ac_objext" 32103 32104 fi 32105 32106 32107 32108 32109 32110 if test "$GNULIB_SETENV" != 1; then 32111 if test "$GNULIB_SETENV" = 0; then 32112 GNULIB_SETENV=$gl_module_indicator_condition 32113 else 32114 GNULIB_SETENV="($GNULIB_SETENV || $gl_module_indicator_condition)" 32115 fi 32116 fi 32117 32118 32119 32120 32121 32122$as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h 32123 32124 32125 32126 32127 if test "$ac_cv_header_winsock2_h" = yes; then 32128 32129 32130 32131 32132 32133 32134 32135 32136 gltests_LIBOBJS="$gltests_LIBOBJS setsockopt.$ac_objext" 32137 32138 fi 32139 32140 32141 32142 32143 32144 if test "$GNULIB_SETSOCKOPT" != 1; then 32145 if test "$GNULIB_SETSOCKOPT" = 0; then 32146 GNULIB_SETSOCKOPT=$gl_module_indicator_condition 32147 else 32148 GNULIB_SETSOCKOPT="($GNULIB_SETSOCKOPT || $gl_module_indicator_condition)" 32149 fi 32150 fi 32151 32152 32153 32154 32155 32156$as_echo "#define GNULIB_TEST_SETSOCKOPT 1" >>confdefs.h 32157 32158 32159 32160 32161 32162 32163 if test $ac_cv_func_sigaction = yes; then 32164 ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h> 32165" 32166if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then : 32167 32168cat >>confdefs.h <<_ACEOF 32169#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1 32170_ACEOF 32171 32172 32173fi 32174 32175 if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then 32176 HAVE_STRUCT_SIGACTION_SA_SIGACTION=0 32177 fi 32178 else 32179 HAVE_SIGACTION=0 32180 fi 32181 32182 if test $HAVE_SIGACTION = 0; then 32183 32184 32185 32186 32187 32188 32189 32190 32191 gltests_LIBOBJS="$gltests_LIBOBJS sigaction.$ac_objext" 32192 32193 32194 32195 32196 32197 32198 32199 ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" " 32200#include <signal.h> 32201 32202" 32203if test "x$ac_cv_type_siginfo_t" = xyes; then : 32204 32205cat >>confdefs.h <<_ACEOF 32206#define HAVE_SIGINFO_T 1 32207_ACEOF 32208 32209 32210fi 32211 32212 if test $ac_cv_type_siginfo_t = no; then 32213 HAVE_SIGINFO_T=0 32214 fi 32215 32216 fi 32217 32218 32219 32220 32221 32222 if test "$GNULIB_SIGACTION" != 1; then 32223 if test "$GNULIB_SIGACTION" = 0; then 32224 GNULIB_SIGACTION=$gl_module_indicator_condition 32225 else 32226 GNULIB_SIGACTION="($GNULIB_SIGACTION || $gl_module_indicator_condition)" 32227 fi 32228 fi 32229 32230 32231 32232 32233 32234$as_echo "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h 32235 32236 32237 32238 32239 32240 32241 32242 32243 32244 32245 32246 32247 32248 32249 if test $gl_cv_have_include_next = yes; then 32250 gl_cv_next_signal_h='<'signal.h'>' 32251 else 32252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 32253$as_echo_n "checking absolute name of <signal.h>... " >&6; } 32254if ${gl_cv_next_signal_h+:} false; then : 32255 $as_echo_n "(cached) " >&6 32256else 32257 32258 32259 32260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32261/* end confdefs.h. */ 32262#include <signal.h> 32263_ACEOF 32264 case "$host_os" in 32265 aix*) gl_absname_cpp="$ac_cpp -C" ;; 32266 *) gl_absname_cpp="$ac_cpp" ;; 32267 esac 32268 32269 case "$host_os" in 32270 mingw*) 32271 gl_dirsep_regex='[/\\]' 32272 ;; 32273 *) 32274 gl_dirsep_regex='\/' 32275 ;; 32276 esac 32277 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 32278 gl_header_literal_regex=`echo 'signal.h' \ 32279 | sed -e "$gl_make_literal_regex_sed"` 32280 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 32281 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 32282 s|^/[^/]|//&| 32283 p 32284 q 32285 }' 32286 32287 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 32288 sed -n "$gl_absolute_header_sed"` 32289 32290 gl_header=$gl_cv_absolute_signal_h 32291 gl_cv_next_signal_h='"'$gl_header'"' 32292 32293 32294fi 32295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 32296$as_echo "$gl_cv_next_signal_h" >&6; } 32297 fi 32298 NEXT_SIGNAL_H=$gl_cv_next_signal_h 32299 32300 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 32301 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 32302 gl_next_as_first_directive='<'signal.h'>' 32303 else 32304 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 32305 gl_next_as_first_directive=$gl_cv_next_signal_h 32306 fi 32307 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive 32308 32309 32310 32311 32312 32313# AIX declares sig_atomic_t to already include volatile, and C89 compilers 32314# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. 32315 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " 32316#include <signal.h> 32317 32318" 32319if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then : 32320 32321else 32322 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 32323fi 32324 32325 32326 32327 32328 32329 32330 32331 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " 32332#include <signal.h> 32333 32334" 32335if test "x$ac_cv_type_sighandler_t" = xyes; then : 32336 32337else 32338 HAVE_SIGHANDLER_T=0 32339fi 32340 32341 32342 32343 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do 32344 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 32345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 32346$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 32347if eval \${$as_gl_Symbol+:} false; then : 32348 $as_echo_n "(cached) " >&6 32349else 32350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32351/* end confdefs.h. */ 32352#include <signal.h> 32353 32354int 32355main () 32356{ 32357#undef $gl_func 32358 (void) $gl_func; 32359 ; 32360 return 0; 32361} 32362_ACEOF 32363if ac_fn_c_try_compile "$LINENO"; then : 32364 eval "$as_gl_Symbol=yes" 32365else 32366 eval "$as_gl_Symbol=no" 32367fi 32368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32369fi 32370eval ac_res=\$$as_gl_Symbol 32371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 32372$as_echo "$ac_res" >&6; } 32373 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 32374 cat >>confdefs.h <<_ACEOF 32375#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 32376_ACEOF 32377 32378 eval ac_cv_have_decl_$gl_func=yes 32379fi 32380 done 32381 32382 32383 32384 32385 32386 if test $gl_cv_type_sigset_t = yes; then 32387 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 32388if test "x$ac_cv_func_sigprocmask" = xyes; then : 32389 gl_cv_func_sigprocmask=1 32390fi 32391 32392 fi 32393 if test -z "$gl_cv_func_sigprocmask"; then 32394 HAVE_POSIX_SIGNALBLOCKING=0 32395 fi 32396 32397 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 32398 32399 32400 32401 32402 32403 32404 32405 32406 gltests_LIBOBJS="$gltests_LIBOBJS sigprocmask.$ac_objext" 32407 32408 : 32409 fi 32410 32411 32412 32413 32414 32415 if test "$GNULIB_SIGPROCMASK" != 1; then 32416 if test "$GNULIB_SIGPROCMASK" = 0; then 32417 GNULIB_SIGPROCMASK=$gl_module_indicator_condition 32418 else 32419 GNULIB_SIGPROCMASK="($GNULIB_SIGPROCMASK || $gl_module_indicator_condition)" 32420 fi 32421 fi 32422 32423 32424 32425 32426 32427$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h 32428 32429 32430 32431 32432 32433 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h> 32434" 32435if test "x$ac_cv_have_decl_sleep" = xyes; then : 32436 ac_have_decl=1 32437else 32438 ac_have_decl=0 32439fi 32440 32441cat >>confdefs.h <<_ACEOF 32442#define HAVE_DECL_SLEEP $ac_have_decl 32443_ACEOF 32444 32445 32446 if test $ac_cv_have_decl_sleep != yes; then 32447 HAVE_SLEEP=0 32448 else 32449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5 32450$as_echo_n "checking for working sleep... " >&6; } 32451if ${gl_cv_func_sleep_works+:} false; then : 32452 $as_echo_n "(cached) " >&6 32453else 32454 if test "$cross_compiling" = yes; then : 32455 case "$host_os" in 32456 # Guess yes on glibc systems. 32457 *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;; 32458 # Guess no on native Windows. 32459 mingw*) gl_cv_func_sleep_works="guessing no" ;; 32460 # If we don't know, assume the worst. 32461 *) gl_cv_func_sleep_works="guessing no" ;; 32462 esac 32463 32464else 32465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32466/* end confdefs.h. */ 32467 32468#include <errno.h> 32469#include <unistd.h> 32470#include <signal.h> 32471static void 32472handle_alarm (int sig) 32473{ 32474 if (sig != SIGALRM) 32475 _exit (2); 32476} 32477 32478int 32479main () 32480{ 32481 32482 /* Failure to compile this test due to missing alarm is okay, 32483 since all such platforms (mingw) also lack sleep. */ 32484 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */ 32485 unsigned int remaining; 32486 signal (SIGALRM, handle_alarm); 32487 alarm (1); 32488 remaining = sleep (pentecost); 32489 if (remaining > pentecost) 32490 return 3; 32491 if (remaining <= pentecost - 10) 32492 return 4; 32493 return 0; 32494 32495 ; 32496 return 0; 32497} 32498_ACEOF 32499if ac_fn_c_try_run "$LINENO"; then : 32500 gl_cv_func_sleep_works=yes 32501else 32502 gl_cv_func_sleep_works=no 32503fi 32504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32505 conftest.$ac_objext conftest.beam conftest.$ac_ext 32506fi 32507 32508fi 32509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5 32510$as_echo "$gl_cv_func_sleep_works" >&6; } 32511 case "$gl_cv_func_sleep_works" in 32512 *yes) ;; 32513 *) 32514 REPLACE_SLEEP=1 32515 ;; 32516 esac 32517 fi 32518 32519 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then 32520 32521 32522 32523 32524 32525 32526 32527 32528 gltests_LIBOBJS="$gltests_LIBOBJS sleep.$ac_objext" 32529 32530 fi 32531 32532 32533 32534 32535 32536 if test "$GNULIB_SLEEP" != 1; then 32537 if test "$GNULIB_SLEEP" = 0; then 32538 GNULIB_SLEEP=$gl_module_indicator_condition 32539 else 32540 GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)" 32541 fi 32542 fi 32543 32544 32545 32546 32547 32548$as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h 32549 32550 32551 32552 32553 32554 if test "$ac_cv_header_winsock2_h" = yes; then 32555 32556 32557 32558 32559 32560 32561 32562 32563 gltests_LIBOBJS="$gltests_LIBOBJS socket.$ac_objext" 32564 32565 fi 32566 # When this module is used, sockets may actually occur as file descriptors, 32567 # hence it is worth warning if the modules 'close' and 'ioctl' are not used. 32568 32569 32570 32571 if test "$ac_cv_header_winsock2_h" = yes; then 32572 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 32573 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1 32574 fi 32575 32576 32577 32578 32579 32580 if test "$GNULIB_SOCKET" != 1; then 32581 if test "$GNULIB_SOCKET" = 0; then 32582 GNULIB_SOCKET=$gl_module_indicator_condition 32583 else 32584 GNULIB_SOCKET="($GNULIB_SOCKET || $gl_module_indicator_condition)" 32585 fi 32586 fi 32587 32588 32589 32590 32591 32592$as_echo "#define GNULIB_TEST_SOCKET 1" >>confdefs.h 32593 32594 32595 32596 32597 32598 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 32599/* <sys/types.h> is not needed according to POSIX, but the 32600 <sys/socket.h> in i386-unknown-freebsd4.10 and 32601 powerpc-apple-darwin5.5 required it. */ 32602#include <sys/types.h> 32603#if HAVE_SYS_SOCKET_H 32604# include <sys/socket.h> 32605#elif HAVE_WS2TCPIP_H 32606# include <ws2tcpip.h> 32607#endif 32608 32609" 32610if test "x$ac_cv_type_socklen_t" = xyes; then : 32611 32612else 32613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 32614$as_echo_n "checking for socklen_t equivalent... " >&6; } 32615 if ${gl_cv_socklen_t_equiv+:} false; then : 32616 $as_echo_n "(cached) " >&6 32617else 32618 # Systems have either "struct sockaddr *" or 32619 # "void *" as the second argument to getpeername 32620 gl_cv_socklen_t_equiv= 32621 for arg2 in "struct sockaddr" void; do 32622 for t in int size_t "unsigned int" "long int" "unsigned long int"; do 32623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32624/* end confdefs.h. */ 32625#include <sys/types.h> 32626 #include <sys/socket.h> 32627 32628 int getpeername (int, $arg2 *, $t *); 32629int 32630main () 32631{ 32632$t len; 32633 getpeername (0, 0, &len); 32634 ; 32635 return 0; 32636} 32637_ACEOF 32638if ac_fn_c_try_compile "$LINENO"; then : 32639 gl_cv_socklen_t_equiv="$t" 32640fi 32641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32642 test "$gl_cv_socklen_t_equiv" != "" && break 32643 done 32644 test "$gl_cv_socklen_t_equiv" != "" && break 32645 done 32646 32647fi 32648 32649 if test "$gl_cv_socklen_t_equiv" = ""; then 32650 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5 32651 fi 32652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5 32653$as_echo "$gl_cv_socklen_t_equiv" >&6; } 32654 32655cat >>confdefs.h <<_ACEOF 32656#define socklen_t $gl_cv_socklen_t_equiv 32657_ACEOF 32658 32659fi 32660 32661 32662 32663 32664 32665 case "$host_os" in 32666 mingw*) 32667 REPLACE_STAT=1 32668 ;; 32669 *) 32670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 32671$as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } 32672if ${gl_cv_func_stat_file_slash+:} false; then : 32673 $as_echo_n "(cached) " >&6 32674else 32675 touch conftest.tmp 32676 # Assume that if we have lstat, we can also check symlinks. 32677 if test $ac_cv_func_lstat = yes; then 32678 ln -s conftest.tmp conftest.lnk 32679 fi 32680 if test "$cross_compiling" = yes; then : 32681 case "$host_os" in 32682 # Guess yes on glibc systems. 32683 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; 32684 # If we don't know, assume the worst. 32685 *) gl_cv_func_stat_file_slash="guessing no" ;; 32686 esac 32687 32688else 32689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32690/* end confdefs.h. */ 32691#include <sys/stat.h> 32692 32693int 32694main () 32695{ 32696int result = 0; 32697 struct stat st; 32698 if (!stat ("conftest.tmp/", &st)) 32699 result |= 1; 32700#if HAVE_LSTAT 32701 if (!stat ("conftest.lnk/", &st)) 32702 result |= 2; 32703#endif 32704 return result; 32705 32706 ; 32707 return 0; 32708} 32709_ACEOF 32710if ac_fn_c_try_run "$LINENO"; then : 32711 gl_cv_func_stat_file_slash=yes 32712else 32713 gl_cv_func_stat_file_slash=no 32714fi 32715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 32716 conftest.$ac_objext conftest.beam conftest.$ac_ext 32717fi 32718 32719 rm -f conftest.tmp conftest.lnk 32720fi 32721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 32722$as_echo "$gl_cv_func_stat_file_slash" >&6; } 32723 case $gl_cv_func_stat_file_slash in 32724 *no) 32725 REPLACE_STAT=1 32726 32727$as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h 32728;; 32729 esac 32730 case $host_os in 32731 solaris*) 32732 REPLACE_FSTAT=1 ;; 32733 esac 32734 ;; 32735 esac 32736 32737 if test $REPLACE_STAT = 1; then 32738 32739 32740 32741 32742 32743 32744 32745 32746 gltests_LIBOBJS="$gltests_LIBOBJS stat.$ac_objext" 32747 32748 case "$host_os" in 32749 mingw*) 32750 32751 32752 32753 32754 32755 32756 32757 32758 gltests_LIBOBJS="$gltests_LIBOBJS stat-w32.$ac_objext" 32759 32760 ;; 32761 esac 32762 32763 32764 : 32765 32766 fi 32767 32768 32769 32770 32771 32772 if test "$GNULIB_STAT" != 1; then 32773 if test "$GNULIB_STAT" = 0; then 32774 GNULIB_STAT=$gl_module_indicator_condition 32775 else 32776 GNULIB_STAT="($GNULIB_STAT || $gl_module_indicator_condition)" 32777 fi 32778 fi 32779 32780 32781 32782 32783 32784$as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h 32785 32786 32787 32788 32789 32790 32791 32792 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> 32793 #include <sys/stat.h> 32794" 32795if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then : 32796 32797cat >>confdefs.h <<_ACEOF 32798#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 32799_ACEOF 32800 32801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 32802$as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } 32803if ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+:} false; then : 32804 $as_echo_n "(cached) " >&6 32805else 32806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32807/* end confdefs.h. */ 32808 32809 #include <sys/types.h> 32810 #include <sys/stat.h> 32811 #if HAVE_SYS_TIME_H 32812 # include <sys/time.h> 32813 #endif 32814 #include <time.h> 32815 struct timespec ts; 32816 struct stat st; 32817 32818int 32819main () 32820{ 32821 32822 st.st_atim = ts; 32823 32824 ; 32825 return 0; 32826} 32827_ACEOF 32828if ac_fn_c_try_compile "$LINENO"; then : 32829 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes 32830else 32831 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no 32832fi 32833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32834fi 32835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 32836$as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } 32837 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then 32838 32839$as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h 32840 32841 fi 32842else 32843 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> 32844 #include <sys/stat.h> 32845" 32846if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes; then : 32847 32848cat >>confdefs.h <<_ACEOF 32849#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 32850_ACEOF 32851 32852 32853else 32854 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> 32855 #include <sys/stat.h> 32856" 32857if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then : 32858 32859cat >>confdefs.h <<_ACEOF 32860#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 32861_ACEOF 32862 32863 32864else 32865 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> 32866 #include <sys/stat.h> 32867" 32868if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes; then : 32869 32870cat >>confdefs.h <<_ACEOF 32871#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 32872_ACEOF 32873 32874 32875fi 32876 32877fi 32878 32879fi 32880 32881fi 32882 32883 32884 32885 32886 32887 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> 32888 #include <sys/stat.h> 32889" 32890if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then : 32891 32892cat >>confdefs.h <<_ACEOF 32893#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 32894_ACEOF 32895 32896 32897else 32898 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h> 32899 #include <sys/stat.h> 32900" 32901if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes; then : 32902 32903cat >>confdefs.h <<_ACEOF 32904#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 32905_ACEOF 32906 32907 32908else 32909 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> 32910 #include <sys/stat.h> 32911" 32912if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes; then : 32913 32914cat >>confdefs.h <<_ACEOF 32915#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1 32916_ACEOF 32917 32918 32919fi 32920 32921fi 32922 32923fi 32924 32925 32926 32927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 32928$as_echo_n "checking for working stdalign.h... " >&6; } 32929if ${gl_cv_header_working_stdalign_h+:} false; then : 32930 $as_echo_n "(cached) " >&6 32931else 32932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32933/* end confdefs.h. */ 32934#include <stdalign.h> 32935 #include <stddef.h> 32936 32937 /* Test that alignof yields a result consistent with offsetof. 32938 This catches GCC bug 52023 32939 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ 32940 #ifdef __cplusplus 32941 template <class t> struct alignof_helper { char a; t b; }; 32942 # define ao(type) offsetof (alignof_helper<type>, b) 32943 #else 32944 # define ao(type) offsetof (struct { char a; type b; }, b) 32945 #endif 32946 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; 32947 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; 32948 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; 32949 32950 /* Test _Alignas only on platforms where gnulib can help. */ 32951 #if \ 32952 ((defined __cplusplus && 201103 <= __cplusplus) \ 32953 || (defined __APPLE__ && defined __MACH__ \ 32954 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ 32955 : __GNUC__) \ 32956 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ 32957 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \ 32958 || 1300 <= _MSC_VER) 32959 struct alignas_test { char c; char alignas (8) alignas_8; }; 32960 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 32961 ? 1 : -1]; 32962 #endif 32963 32964int 32965main () 32966{ 32967 32968 ; 32969 return 0; 32970} 32971_ACEOF 32972if ac_fn_c_try_compile "$LINENO"; then : 32973 gl_cv_header_working_stdalign_h=yes 32974else 32975 gl_cv_header_working_stdalign_h=no 32976fi 32977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32978fi 32979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 32980$as_echo "$gl_cv_header_working_stdalign_h" >&6; } 32981 32982 if test $gl_cv_header_working_stdalign_h = yes; then 32983 STDALIGN_H='' 32984 else 32985 STDALIGN_H='stdalign.h' 32986 fi 32987 32988 32989 if test -n "$STDALIGN_H"; then 32990 GL_GENERATE_STDALIGN_H_TRUE= 32991 GL_GENERATE_STDALIGN_H_FALSE='#' 32992else 32993 GL_GENERATE_STDALIGN_H_TRUE='#' 32994 GL_GENERATE_STDALIGN_H_FALSE= 32995fi 32996 32997 32998 32999 33000 33001 33002 33003 33004 33005 33006 33007 if test $ac_cv_have_decl_strerror_r = no; then 33008 HAVE_DECL_STRERROR_R=0 33009 fi 33010 33011 if test $ac_cv_func_strerror_r = yes; then 33012 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 33013 if test $gl_cv_func_strerror_r_posix_signature = yes; then 33014 case "$gl_cv_func_strerror_r_works" in 33015 *no) REPLACE_STRERROR_R=1 ;; 33016 esac 33017 else 33018 REPLACE_STRERROR_R=1 33019 fi 33020 else 33021 REPLACE_STRERROR_R=1 33022 fi 33023 fi 33024 33025 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then 33026 33027 33028 33029 33030 33031 33032 33033 33034 gltests_LIBOBJS="$gltests_LIBOBJS strerror_r.$ac_objext" 33035 33036 33037 33038 33039 33040 33041 fi 33042 33043 33044 33045 33046 33047 if test "$GNULIB_STRERROR_R" != 1; then 33048 if test "$GNULIB_STRERROR_R" = 0; then 33049 GNULIB_STRERROR_R=$gl_module_indicator_condition 33050 else 33051 GNULIB_STRERROR_R="($GNULIB_STRERROR_R || $gl_module_indicator_condition)" 33052 fi 33053 fi 33054 33055 33056 33057 33058 33059$as_echo "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h 33060 33061 33062 33063 33064 33065cat >>confdefs.h <<_ACEOF 33066#define GNULIB_STRERROR_R_POSIX $gl_module_indicator_condition 33067_ACEOF 33068 33069 33070 33071 33072 33073 if test $ac_cv_func_symlink = no; then 33074 HAVE_SYMLINK=0 33075 else 33076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5 33077$as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; } 33078if ${gl_cv_func_symlink_works+:} false; then : 33079 $as_echo_n "(cached) " >&6 33080else 33081 if test "$cross_compiling" = yes; then : 33082 case "$host_os" in 33083 # Guess yes on glibc systems. 33084 *-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;; 33085 # If we don't know, assume the worst. 33086 *) gl_cv_func_symlink_works="guessing no" ;; 33087 esac 33088 33089else 33090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33091/* end confdefs.h. */ 33092#include <unistd.h> 33093 33094int 33095main () 33096{ 33097int result = 0; 33098 if (!symlink ("a", "conftest.link/")) 33099 result |= 1; 33100 if (symlink ("conftest.f", "conftest.lnk2")) 33101 result |= 2; 33102 else if (!symlink ("a", "conftest.lnk2/")) 33103 result |= 4; 33104 return result; 33105 33106 ; 33107 return 0; 33108} 33109_ACEOF 33110if ac_fn_c_try_run "$LINENO"; then : 33111 gl_cv_func_symlink_works=yes 33112else 33113 gl_cv_func_symlink_works=no 33114fi 33115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33116 conftest.$ac_objext conftest.beam conftest.$ac_ext 33117fi 33118 33119 rm -f conftest.f conftest.link conftest.lnk2 33120fi 33121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5 33122$as_echo "$gl_cv_func_symlink_works" >&6; } 33123 case "$gl_cv_func_symlink_works" in 33124 *yes) ;; 33125 *) 33126 REPLACE_SYMLINK=1 33127 ;; 33128 esac 33129 fi 33130 33131 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then 33132 33133 33134 33135 33136 33137 33138 33139 33140 gltests_LIBOBJS="$gltests_LIBOBJS symlink.$ac_objext" 33141 33142 fi 33143 33144 33145 33146 33147 33148 if test "$GNULIB_SYMLINK" != 1; then 33149 if test "$GNULIB_SYMLINK" = 0; then 33150 GNULIB_SYMLINK=$gl_module_indicator_condition 33151 else 33152 GNULIB_SYMLINK="($GNULIB_SYMLINK || $gl_module_indicator_condition)" 33153 fi 33154 fi 33155 33156 33157 33158 33159 33160$as_echo "#define GNULIB_TEST_SYMLINK 1" >>confdefs.h 33161 33162 33163 33164 33165 33166 33167 33168 if test $ac_cv_header_sys_ioctl_h = yes; then 33169 HAVE_SYS_IOCTL_H=1 33170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/ioctl.h> declares ioctl" >&5 33171$as_echo_n "checking whether <sys/ioctl.h> declares ioctl... " >&6; } 33172if ${gl_cv_decl_ioctl_in_sys_ioctl_h+:} false; then : 33173 $as_echo_n "(cached) " >&6 33174else 33175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33176/* end confdefs.h. */ 33177#include <sys/ioctl.h> 33178 33179int 33180main () 33181{ 33182(void) ioctl; 33183 ; 33184 return 0; 33185} 33186_ACEOF 33187if ac_fn_c_try_compile "$LINENO"; then : 33188 gl_cv_decl_ioctl_in_sys_ioctl_h=yes 33189else 33190 gl_cv_decl_ioctl_in_sys_ioctl_h=no 33191fi 33192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33193 33194fi 33195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_ioctl_in_sys_ioctl_h" >&5 33196$as_echo "$gl_cv_decl_ioctl_in_sys_ioctl_h" >&6; } 33197 else 33198 HAVE_SYS_IOCTL_H=0 33199 fi 33200 33201 33202 33203 33204 33205 33206 33207 33208 33209 33210 if test $gl_cv_have_include_next = yes; then 33211 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>' 33212 else 33213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/ioctl.h>" >&5 33214$as_echo_n "checking absolute name of <sys/ioctl.h>... " >&6; } 33215if ${gl_cv_next_sys_ioctl_h+:} false; then : 33216 $as_echo_n "(cached) " >&6 33217else 33218 33219 if test $ac_cv_header_sys_ioctl_h = yes; then 33220 33221 33222 33223 33224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33225/* end confdefs.h. */ 33226#include <sys/ioctl.h> 33227_ACEOF 33228 case "$host_os" in 33229 aix*) gl_absname_cpp="$ac_cpp -C" ;; 33230 *) gl_absname_cpp="$ac_cpp" ;; 33231 esac 33232 33233 case "$host_os" in 33234 mingw*) 33235 gl_dirsep_regex='[/\\]' 33236 ;; 33237 *) 33238 gl_dirsep_regex='\/' 33239 ;; 33240 esac 33241 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 33242 gl_header_literal_regex=`echo 'sys/ioctl.h' \ 33243 | sed -e "$gl_make_literal_regex_sed"` 33244 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 33245 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 33246 s|^/[^/]|//&| 33247 p 33248 q 33249 }' 33250 33251 gl_cv_absolute_sys_ioctl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 33252 sed -n "$gl_absolute_header_sed"` 33253 33254 gl_header=$gl_cv_absolute_sys_ioctl_h 33255 gl_cv_next_sys_ioctl_h='"'$gl_header'"' 33256 else 33257 gl_cv_next_sys_ioctl_h='<'sys/ioctl.h'>' 33258 fi 33259 33260 33261fi 33262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_ioctl_h" >&5 33263$as_echo "$gl_cv_next_sys_ioctl_h" >&6; } 33264 fi 33265 NEXT_SYS_IOCTL_H=$gl_cv_next_sys_ioctl_h 33266 33267 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 33268 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 33269 gl_next_as_first_directive='<'sys/ioctl.h'>' 33270 else 33271 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 33272 gl_next_as_first_directive=$gl_cv_next_sys_ioctl_h 33273 fi 33274 NEXT_AS_FIRST_DIRECTIVE_SYS_IOCTL_H=$gl_next_as_first_directive 33275 33276 33277 33278 33279 33280 33281 for gl_func in ioctl; do 33282 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 33283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 33284$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 33285if eval \${$as_gl_Symbol+:} false; then : 33286 $as_echo_n "(cached) " >&6 33287else 33288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33289/* end confdefs.h. */ 33290#include <sys/ioctl.h> 33291/* Some platforms declare ioctl in the wrong header. */ 33292#if !(defined __GLIBC__ && !defined __UCLIBC__) 33293# include <unistd.h> 33294#endif 33295 33296int 33297main () 33298{ 33299#undef $gl_func 33300 (void) $gl_func; 33301 ; 33302 return 0; 33303} 33304_ACEOF 33305if ac_fn_c_try_compile "$LINENO"; then : 33306 eval "$as_gl_Symbol=yes" 33307else 33308 eval "$as_gl_Symbol=no" 33309fi 33310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33311fi 33312eval ac_res=\$$as_gl_Symbol 33313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 33314$as_echo "$ac_res" >&6; } 33315 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 33316 cat >>confdefs.h <<_ACEOF 33317#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 33318_ACEOF 33319 33320 eval ac_cv_have_decl_$gl_func=yes 33321fi 33322 done 33323 33324 33325 33326 33327 33328 33329 33330 33331 33332 33333 33334 33335 33336 33337 33338 33339 33340 33341 33342 33343 33344 33345 if test $gl_cv_have_include_next = yes; then 33346 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 33347 else 33348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 33349$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } 33350if ${gl_cv_next_sys_stat_h+:} false; then : 33351 $as_echo_n "(cached) " >&6 33352else 33353 33354 if test $ac_cv_header_sys_stat_h = yes; then 33355 33356 33357 33358 33359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33360/* end confdefs.h. */ 33361#include <sys/stat.h> 33362_ACEOF 33363 case "$host_os" in 33364 aix*) gl_absname_cpp="$ac_cpp -C" ;; 33365 *) gl_absname_cpp="$ac_cpp" ;; 33366 esac 33367 33368 case "$host_os" in 33369 mingw*) 33370 gl_dirsep_regex='[/\\]' 33371 ;; 33372 *) 33373 gl_dirsep_regex='\/' 33374 ;; 33375 esac 33376 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 33377 gl_header_literal_regex=`echo 'sys/stat.h' \ 33378 | sed -e "$gl_make_literal_regex_sed"` 33379 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 33380 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 33381 s|^/[^/]|//&| 33382 p 33383 q 33384 }' 33385 33386 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 33387 sed -n "$gl_absolute_header_sed"` 33388 33389 gl_header=$gl_cv_absolute_sys_stat_h 33390 gl_cv_next_sys_stat_h='"'$gl_header'"' 33391 else 33392 gl_cv_next_sys_stat_h='<'sys/stat.h'>' 33393 fi 33394 33395 33396fi 33397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 33398$as_echo "$gl_cv_next_sys_stat_h" >&6; } 33399 fi 33400 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h 33401 33402 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 33403 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 33404 gl_next_as_first_directive='<'sys/stat.h'>' 33405 else 33406 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 33407 gl_next_as_first_directive=$gl_cv_next_sys_stat_h 33408 fi 33409 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive 33410 33411 33412 33413 33414 33415 33416 33417 33418 WINDOWS_STAT_TIMESPEC=0 33419 33420 33421 33422 33423 33424 33425 33426 33427 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> 33428 #include <sys/stat.h> 33429" 33430if test "x$ac_cv_type_nlink_t" = xyes; then : 33431 33432else 33433 33434$as_echo "#define nlink_t int" >>confdefs.h 33435 33436fi 33437 33438 33439 33440 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do 33441 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 33442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 33443$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 33444if eval \${$as_gl_Symbol+:} false; then : 33445 $as_echo_n "(cached) " >&6 33446else 33447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33448/* end confdefs.h. */ 33449#include <sys/stat.h> 33450 33451int 33452main () 33453{ 33454#undef $gl_func 33455 (void) $gl_func; 33456 ; 33457 return 0; 33458} 33459_ACEOF 33460if ac_fn_c_try_compile "$LINENO"; then : 33461 eval "$as_gl_Symbol=yes" 33462else 33463 eval "$as_gl_Symbol=no" 33464fi 33465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33466fi 33467eval ac_res=\$$as_gl_Symbol 33468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 33469$as_echo "$ac_res" >&6; } 33470 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 33471 cat >>confdefs.h <<_ACEOF 33472#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 33473_ACEOF 33474 33475 eval ac_cv_have_decl_$gl_func=yes 33476fi 33477 done 33478 33479 33480 33481 33482 33483 33484 33485 33486 33487 33488 33489 33490 33491 33492 33493 33494 33495 33496 if test $gl_cv_have_include_next = yes; then 33497 gl_cv_next_sys_uio_h='<'sys/uio.h'>' 33498 else 33499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/uio.h>" >&5 33500$as_echo_n "checking absolute name of <sys/uio.h>... " >&6; } 33501if ${gl_cv_next_sys_uio_h+:} false; then : 33502 $as_echo_n "(cached) " >&6 33503else 33504 33505 if test $ac_cv_header_sys_uio_h = yes; then 33506 33507 33508 33509 33510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33511/* end confdefs.h. */ 33512#include <sys/uio.h> 33513_ACEOF 33514 case "$host_os" in 33515 aix*) gl_absname_cpp="$ac_cpp -C" ;; 33516 *) gl_absname_cpp="$ac_cpp" ;; 33517 esac 33518 33519 case "$host_os" in 33520 mingw*) 33521 gl_dirsep_regex='[/\\]' 33522 ;; 33523 *) 33524 gl_dirsep_regex='\/' 33525 ;; 33526 esac 33527 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 33528 gl_header_literal_regex=`echo 'sys/uio.h' \ 33529 | sed -e "$gl_make_literal_regex_sed"` 33530 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 33531 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 33532 s|^/[^/]|//&| 33533 p 33534 q 33535 }' 33536 33537 gl_cv_absolute_sys_uio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 33538 sed -n "$gl_absolute_header_sed"` 33539 33540 gl_header=$gl_cv_absolute_sys_uio_h 33541 gl_cv_next_sys_uio_h='"'$gl_header'"' 33542 else 33543 gl_cv_next_sys_uio_h='<'sys/uio.h'>' 33544 fi 33545 33546 33547fi 33548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_uio_h" >&5 33549$as_echo "$gl_cv_next_sys_uio_h" >&6; } 33550 fi 33551 NEXT_SYS_UIO_H=$gl_cv_next_sys_uio_h 33552 33553 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 33554 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 33555 gl_next_as_first_directive='<'sys/uio.h'>' 33556 else 33557 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 33558 gl_next_as_first_directive=$gl_cv_next_sys_uio_h 33559 fi 33560 NEXT_AS_FIRST_DIRECTIVE_SYS_UIO_H=$gl_next_as_first_directive 33561 33562 33563 33564 33565 if test $ac_cv_header_sys_uio_h = yes; then 33566 HAVE_SYS_UIO_H=1 33567 else 33568 HAVE_SYS_UIO_H=0 33569 fi 33570 33571 33572 33573 33574 33575 33576 if test $gl_threads_api = posix; then 33577 gl_save_LIBS="$LIBS" 33578 LIBS="$LIBS $LIBMULTITHREAD" 33579 for ac_func in pthread_atfork 33580do : 33581 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" 33582if test "x$ac_cv_func_pthread_atfork" = xyes; then : 33583 cat >>confdefs.h <<_ACEOF 33584#define HAVE_PTHREAD_ATFORK 1 33585_ACEOF 33586 33587fi 33588done 33589 33590 LIBS="$gl_save_LIBS" 33591 fi 33592 33593 33594 33595 33596 33597 33598 33599 33600 33601 33602 33603 if test $ac_cv_have_decl_unsetenv = no; then 33604 HAVE_DECL_UNSETENV=0 33605 fi 33606 for ac_func in unsetenv 33607do : 33608 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 33609if test "x$ac_cv_func_unsetenv" = xyes; then : 33610 cat >>confdefs.h <<_ACEOF 33611#define HAVE_UNSETENV 1 33612_ACEOF 33613 33614fi 33615done 33616 33617 if test $ac_cv_func_unsetenv = no; then 33618 HAVE_UNSETENV=0 33619 else 33620 HAVE_UNSETENV=1 33621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 33622$as_echo_n "checking for unsetenv() return type... " >&6; } 33623if ${gt_cv_func_unsetenv_ret+:} false; then : 33624 $as_echo_n "(cached) " >&6 33625else 33626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33627/* end confdefs.h. */ 33628 33629#undef _BSD 33630#define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */ 33631#include <stdlib.h> 33632extern 33633#ifdef __cplusplus 33634"C" 33635#endif 33636int unsetenv (const char *name); 33637 33638int 33639main () 33640{ 33641 33642 ; 33643 return 0; 33644} 33645_ACEOF 33646if ac_fn_c_try_compile "$LINENO"; then : 33647 gt_cv_func_unsetenv_ret='int' 33648else 33649 gt_cv_func_unsetenv_ret='void' 33650fi 33651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33652fi 33653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 33654$as_echo "$gt_cv_func_unsetenv_ret" >&6; } 33655 if test $gt_cv_func_unsetenv_ret = 'void'; then 33656 33657$as_echo "#define VOID_UNSETENV 1" >>confdefs.h 33658 33659 REPLACE_UNSETENV=1 33660 fi 33661 33662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5 33663$as_echo_n "checking whether unsetenv obeys POSIX... " >&6; } 33664if ${gl_cv_func_unsetenv_works+:} false; then : 33665 $as_echo_n "(cached) " >&6 33666else 33667 if test "$cross_compiling" = yes; then : 33668 case "$host_os" in 33669 # Guess yes on glibc systems. 33670 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;; 33671 # If we don't know, assume the worst. 33672 *) gl_cv_func_unsetenv_works="guessing no" ;; 33673 esac 33674 33675else 33676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33677/* end confdefs.h. */ 33678 33679 #include <stdlib.h> 33680 #include <errno.h> 33681 extern char **environ; 33682 33683int 33684main () 33685{ 33686 33687 char entry1[] = "a=1"; 33688 char entry2[] = "b=2"; 33689 char *env[] = { entry1, entry2, NULL }; 33690 if (putenv ((char *) "a=1")) return 1; 33691 if (putenv (entry2)) return 2; 33692 entry2[0] = 'a'; 33693 unsetenv ("a"); 33694 if (getenv ("a")) return 3; 33695 if (!unsetenv ("") || errno != EINVAL) return 4; 33696 entry2[0] = 'b'; 33697 environ = env; 33698 if (!getenv ("a")) return 5; 33699 entry2[0] = 'a'; 33700 unsetenv ("a"); 33701 if (getenv ("a")) return 6; 33702 33703 ; 33704 return 0; 33705} 33706_ACEOF 33707if ac_fn_c_try_run "$LINENO"; then : 33708 gl_cv_func_unsetenv_works=yes 33709else 33710 gl_cv_func_unsetenv_works=no 33711fi 33712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33713 conftest.$ac_objext conftest.beam conftest.$ac_ext 33714fi 33715 33716fi 33717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5 33718$as_echo "$gl_cv_func_unsetenv_works" >&6; } 33719 case "$gl_cv_func_unsetenv_works" in 33720 *yes) ;; 33721 *) 33722 REPLACE_UNSETENV=1 33723 ;; 33724 esac 33725 fi 33726 33727 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then 33728 33729 33730 33731 33732 33733 33734 33735 33736 gltests_LIBOBJS="$gltests_LIBOBJS unsetenv.$ac_objext" 33737 33738 33739 33740 33741 33742 fi 33743 33744 33745 33746 33747 33748 if test "$GNULIB_UNSETENV" != 1; then 33749 if test "$GNULIB_UNSETENV" = 0; then 33750 GNULIB_UNSETENV=$gl_module_indicator_condition 33751 else 33752 GNULIB_UNSETENV="($GNULIB_UNSETENV || $gl_module_indicator_condition)" 33753 fi 33754 fi 33755 33756 33757 33758 33759 33760$as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h 33761 33762 33763 33764 33765 33766 33767 33768 ac_fn_c_check_type "$LINENO" "useconds_t" "ac_cv_type_useconds_t" "$ac_includes_default" 33769if test "x$ac_cv_type_useconds_t" = xyes; then : 33770 33771else 33772 33773$as_echo "#define useconds_t unsigned int" >>confdefs.h 33774 33775fi 33776 33777 if test $ac_cv_func_usleep = no; then 33778 HAVE_USLEEP=0 33779 else 33780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep allows large arguments" >&5 33781$as_echo_n "checking whether usleep allows large arguments... " >&6; } 33782if ${gl_cv_func_usleep_works+:} false; then : 33783 $as_echo_n "(cached) " >&6 33784else 33785 if test "$cross_compiling" = yes; then : 33786 case "$host_os" in 33787 # Guess yes on glibc systems. 33788 *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;; 33789 # Guess no on native Windows. 33790 mingw*) gl_cv_func_usleep_works="guessing no" ;; 33791 # If we don't know, assume the worst. 33792 *) gl_cv_func_usleep_works="guessing no" ;; 33793 esac 33794 33795else 33796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33797/* end confdefs.h. */ 33798 33799#include <unistd.h> 33800 33801int 33802main () 33803{ 33804return !!usleep (1000000); 33805 ; 33806 return 0; 33807} 33808_ACEOF 33809if ac_fn_c_try_run "$LINENO"; then : 33810 gl_cv_func_usleep_works=yes 33811else 33812 gl_cv_func_usleep_works=no 33813fi 33814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 33815 conftest.$ac_objext conftest.beam conftest.$ac_ext 33816fi 33817 33818fi 33819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_usleep_works" >&5 33820$as_echo "$gl_cv_func_usleep_works" >&6; } 33821 case "$gl_cv_func_usleep_works" in 33822 *yes) ;; 33823 *) 33824 REPLACE_USLEEP=1 33825 ;; 33826 esac 33827 fi 33828 33829 if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then 33830 33831 33832 33833 33834 33835 33836 33837 33838 gltests_LIBOBJS="$gltests_LIBOBJS usleep.$ac_objext" 33839 33840 fi 33841 33842 33843 33844 33845 33846 if test "$GNULIB_USLEEP" != 1; then 33847 if test "$GNULIB_USLEEP" = 0; then 33848 GNULIB_USLEEP=$gl_module_indicator_condition 33849 else 33850 GNULIB_USLEEP="($GNULIB_USLEEP || $gl_module_indicator_condition)" 33851 fi 33852 fi 33853 33854 33855 33856 33857 33858$as_echo "#define GNULIB_TEST_USLEEP 1" >>confdefs.h 33859 33860 33861 33862 33863 # Check whether --enable-valgrind-tests was given. 33864if test "${enable_valgrind_tests+set}" = set; then : 33865 enableval=$enable_valgrind_tests; opt_valgrind_tests=$enableval 33866else 33867 opt_valgrind_tests=yes 33868fi 33869 33870 33871 # Run self-tests under valgrind? 33872 if test "$opt_valgrind_tests" = "yes" && test "$cross_compiling" = no; then 33873 for ac_prog in valgrind 33874do 33875 # Extract the first word of "$ac_prog", so it can be a program name with args. 33876set dummy $ac_prog; ac_word=$2 33877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33878$as_echo_n "checking for $ac_word... " >&6; } 33879if ${ac_cv_prog_VALGRIND+:} false; then : 33880 $as_echo_n "(cached) " >&6 33881else 33882 if test -n "$VALGRIND"; then 33883 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test. 33884else 33885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33886for as_dir in $PATH 33887do 33888 IFS=$as_save_IFS 33889 test -z "$as_dir" && as_dir=. 33890 for ac_exec_ext in '' $ac_executable_extensions; do 33891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33892 ac_cv_prog_VALGRIND="$ac_prog" 33893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33894 break 2 33895 fi 33896done 33897 done 33898IFS=$as_save_IFS 33899 33900fi 33901fi 33902VALGRIND=$ac_cv_prog_VALGRIND 33903if test -n "$VALGRIND"; then 33904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5 33905$as_echo "$VALGRIND" >&6; } 33906else 33907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33908$as_echo "no" >&6; } 33909fi 33910 33911 33912 test -n "$VALGRIND" && break 33913done 33914 33915 33916 if test "$VALGRIND"; then 33917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind options for tests" >&5 33918$as_echo_n "checking for valgrind options for tests... " >&6; } 33919if ${gl_cv_opt_valgrind_tests+:} false; then : 33920 $as_echo_n "(cached) " >&6 33921else 33922 gl_cv_opt_valgrind_tests="-q --error-exitcode=1 --leak-check=full" 33923 $VALGRIND $gl_valgrind_opts ls > /dev/null 2>&1 || 33924 gl_cv_opt_valgrind_tests=no 33925fi 33926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_opt_valgrind_tests" >&5 33927$as_echo "$gl_cv_opt_valgrind_tests" >&6; } 33928 33929 if test "$gl_cv_opt_valgrind_tests" != no; then 33930 VALGRIND="$VALGRIND $gl_cv_opt_valgrind_tests" 33931 else 33932 VALGRIND= 33933 fi 33934 fi 33935 fi 33936 33937 abs_aux_dir=`cd "$ac_aux_dir"; pwd` 33938 33939 33940 33941 33942 33943 33944 33945 33946 33947 33948 33949 33950 33951 if test $gl_cv_have_include_next = yes; then 33952 gl_cv_next_wchar_h='<'wchar.h'>' 33953 else 33954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 33955$as_echo_n "checking absolute name of <wchar.h>... " >&6; } 33956if ${gl_cv_next_wchar_h+:} false; then : 33957 $as_echo_n "(cached) " >&6 33958else 33959 33960 if test $ac_cv_header_wchar_h = yes; then 33961 33962 33963 33964 33965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33966/* end confdefs.h. */ 33967#include <wchar.h> 33968_ACEOF 33969 case "$host_os" in 33970 aix*) gl_absname_cpp="$ac_cpp -C" ;; 33971 *) gl_absname_cpp="$ac_cpp" ;; 33972 esac 33973 33974 case "$host_os" in 33975 mingw*) 33976 gl_dirsep_regex='[/\\]' 33977 ;; 33978 *) 33979 gl_dirsep_regex='\/' 33980 ;; 33981 esac 33982 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 33983 gl_header_literal_regex=`echo 'wchar.h' \ 33984 | sed -e "$gl_make_literal_regex_sed"` 33985 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 33986 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 33987 s|^/[^/]|//&| 33988 p 33989 q 33990 }' 33991 33992 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 33993 sed -n "$gl_absolute_header_sed"` 33994 33995 gl_header=$gl_cv_absolute_wchar_h 33996 gl_cv_next_wchar_h='"'$gl_header'"' 33997 else 33998 gl_cv_next_wchar_h='<'wchar.h'>' 33999 fi 34000 34001 34002fi 34003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 34004$as_echo "$gl_cv_next_wchar_h" >&6; } 34005 fi 34006 NEXT_WCHAR_H=$gl_cv_next_wchar_h 34007 34008 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 34009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 34010 gl_next_as_first_directive='<'wchar.h'>' 34011 else 34012 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 34013 gl_next_as_first_directive=$gl_cv_next_wchar_h 34014 fi 34015 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 34016 34017 34018 34019 34020 if test $ac_cv_header_wchar_h = yes; then 34021 HAVE_WCHAR_H=1 34022 else 34023 HAVE_WCHAR_H=0 34024 fi 34025 34026 34027 34028 34029 34030 if test $gt_cv_c_wint_t = yes; then 34031 HAVE_WINT_T=1 34032 else 34033 HAVE_WINT_T=0 34034 fi 34035 34036 34037 34038 34039 34040 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth wcsftime ; do 34041 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 34042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 34043$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 34044if eval \${$as_gl_Symbol+:} false; then : 34045 $as_echo_n "(cached) " >&6 34046else 34047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34048/* end confdefs.h. */ 34049 34050/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 34051 <wchar.h>. 34052 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 34053 included before <wchar.h>. */ 34054#if !(defined __GLIBC__ && !defined __UCLIBC__) 34055# include <stddef.h> 34056# include <stdio.h> 34057# include <time.h> 34058#endif 34059#include <wchar.h> 34060 34061int 34062main () 34063{ 34064#undef $gl_func 34065 (void) $gl_func; 34066 ; 34067 return 0; 34068} 34069_ACEOF 34070if ac_fn_c_try_compile "$LINENO"; then : 34071 eval "$as_gl_Symbol=yes" 34072else 34073 eval "$as_gl_Symbol=no" 34074fi 34075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34076fi 34077eval ac_res=\$$as_gl_Symbol 34078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 34079$as_echo "$ac_res" >&6; } 34080 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 34081 cat >>confdefs.h <<_ACEOF 34082#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 34083_ACEOF 34084 34085 eval ac_cv_have_decl_$gl_func=yes 34086fi 34087 done 34088 34089 34090 34091 34092 YIELD_LIB= 34093 if test $gl_threads_api = posix; then 34094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 34095$as_echo_n "checking for sched_yield in -lrt... " >&6; } 34096if ${ac_cv_lib_rt_sched_yield+:} false; then : 34097 $as_echo_n "(cached) " >&6 34098else 34099 ac_check_lib_save_LIBS=$LIBS 34100LIBS="-lrt $LIBS" 34101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34102/* end confdefs.h. */ 34103 34104/* Override any GCC internal prototype to avoid an error. 34105 Use char because int might match the return type of a GCC 34106 builtin and then its argument prototype would still apply. */ 34107#ifdef __cplusplus 34108extern "C" 34109#endif 34110char sched_yield (); 34111int 34112main () 34113{ 34114return sched_yield (); 34115 ; 34116 return 0; 34117} 34118_ACEOF 34119if ac_fn_c_try_link "$LINENO"; then : 34120 ac_cv_lib_rt_sched_yield=yes 34121else 34122 ac_cv_lib_rt_sched_yield=no 34123fi 34124rm -f core conftest.err conftest.$ac_objext \ 34125 conftest$ac_exeext conftest.$ac_ext 34126LIBS=$ac_check_lib_save_LIBS 34127fi 34128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 34129$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 34130if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 34131 YIELD_LIB=-lrt 34132else 34133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 34134$as_echo_n "checking for sched_yield in -lposix4... " >&6; } 34135if ${ac_cv_lib_posix4_sched_yield+:} false; then : 34136 $as_echo_n "(cached) " >&6 34137else 34138 ac_check_lib_save_LIBS=$LIBS 34139LIBS="-lposix4 $LIBS" 34140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34141/* end confdefs.h. */ 34142 34143/* Override any GCC internal prototype to avoid an error. 34144 Use char because int might match the return type of a GCC 34145 builtin and then its argument prototype would still apply. */ 34146#ifdef __cplusplus 34147extern "C" 34148#endif 34149char sched_yield (); 34150int 34151main () 34152{ 34153return sched_yield (); 34154 ; 34155 return 0; 34156} 34157_ACEOF 34158if ac_fn_c_try_link "$LINENO"; then : 34159 ac_cv_lib_posix4_sched_yield=yes 34160else 34161 ac_cv_lib_posix4_sched_yield=no 34162fi 34163rm -f core conftest.err conftest.$ac_objext \ 34164 conftest$ac_exeext conftest.$ac_ext 34165LIBS=$ac_check_lib_save_LIBS 34166fi 34167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 34168$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } 34169if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : 34170 YIELD_LIB=-lposix4 34171fi 34172 34173fi 34174 34175 fi 34176 34177 34178 34179 34180 34181 34182 34183 34184 34185 34186 34187 34188 LIBTESTS_LIBDEPS="$gltests_libdeps" 34189 34190 34191 34192 34193 34194 34195 34196 34197 34198 34199gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;} 34200i\ 342010 34202q 34203' 34204gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;} 34205i\ 342060 34207q 34208' 34209gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;} 34210i\ 342110 34212q 34213' 34214 34215 34216 if test "$HAVE_LIBUNISTRING" = yes; then 34217 LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"` 34218 LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"` 34219 LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"` 34220 fi 34221 34222 34223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 34224$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 34225if ${am_cv_langinfo_codeset+:} false; then : 34226 $as_echo_n "(cached) " >&6 34227else 34228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34229/* end confdefs.h. */ 34230#include <langinfo.h> 34231int 34232main () 34233{ 34234char* cs = nl_langinfo(CODESET); return !cs; 34235 ; 34236 return 0; 34237} 34238_ACEOF 34239if ac_fn_c_try_link "$LINENO"; then : 34240 am_cv_langinfo_codeset=yes 34241else 34242 am_cv_langinfo_codeset=no 34243fi 34244rm -f core conftest.err conftest.$ac_objext \ 34245 conftest$ac_exeext conftest.$ac_ext 34246 34247fi 34248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 34249$as_echo "$am_cv_langinfo_codeset" >&6; } 34250 if test $am_cv_langinfo_codeset = yes; then 34251 34252$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 34253 34254 fi 34255 34256 34257 GNULIB_NL_LANGINFO=0; 34258 HAVE_NL_LANGINFO=1; 34259 REPLACE_NL_LANGINFO=0; 34260 34261 34262 34263 34264 GNULIB_LOCALECONV=0; 34265 GNULIB_SETLOCALE=0; 34266 GNULIB_DUPLOCALE=0; 34267 HAVE_DUPLOCALE=1; 34268 REPLACE_LOCALECONV=0; 34269 REPLACE_SETLOCALE=0; 34270 REPLACE_DUPLOCALE=0; 34271 REPLACE_STRUCT_LCONV=0; 34272 34273 34274 34275 34276 34277 34278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 34279$as_echo_n "checking for LC_MESSAGES... " >&6; } 34280if ${gt_cv_val_LC_MESSAGES+:} false; then : 34281 $as_echo_n "(cached) " >&6 34282else 34283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34284/* end confdefs.h. */ 34285#include <locale.h> 34286int 34287main () 34288{ 34289return LC_MESSAGES 34290 ; 34291 return 0; 34292} 34293_ACEOF 34294if ac_fn_c_try_link "$LINENO"; then : 34295 gt_cv_val_LC_MESSAGES=yes 34296else 34297 gt_cv_val_LC_MESSAGES=no 34298fi 34299rm -f core conftest.err conftest.$ac_objext \ 34300 conftest$ac_exeext conftest.$ac_ext 34301fi 34302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 34303$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 34304 if test $gt_cv_val_LC_MESSAGES = yes; then 34305 34306$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 34307 34308 fi 34309 34310 34311 if true; then 34312 GL_COND_LIBTOOL_TRUE= 34313 GL_COND_LIBTOOL_FALSE='#' 34314else 34315 GL_COND_LIBTOOL_TRUE='#' 34316 GL_COND_LIBTOOL_FALSE= 34317fi 34318 34319 gl_cond_libtool=true 34320 gl_m4_base='lib/gl/m4' 34321 34322 34323 34324 34325 34326 34327 34328 34329 34330 gl_source_base='lib/gl' 34331 34332 34333 34334 34335 34336 34337 34338 34339 34340 34341 GNULIB_ICONV=1 34342 34343 34344 34345 34346 34347 34348 34349 34350 34351 34352 34353 34354 34355 34356 34357 34358 if test $gl_cv_have_include_next = yes; then 34359 gl_cv_next_iconv_h='<'iconv.h'>' 34360 else 34361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <iconv.h>" >&5 34362$as_echo_n "checking absolute name of <iconv.h>... " >&6; } 34363if ${gl_cv_next_iconv_h+:} false; then : 34364 $as_echo_n "(cached) " >&6 34365else 34366 34367 if test $ac_cv_header_iconv_h = yes; then 34368 34369 34370 34371 34372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34373/* end confdefs.h. */ 34374#include <iconv.h> 34375_ACEOF 34376 case "$host_os" in 34377 aix*) gl_absname_cpp="$ac_cpp -C" ;; 34378 *) gl_absname_cpp="$ac_cpp" ;; 34379 esac 34380 34381 case "$host_os" in 34382 mingw*) 34383 gl_dirsep_regex='[/\\]' 34384 ;; 34385 *) 34386 gl_dirsep_regex='\/' 34387 ;; 34388 esac 34389 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 34390 gl_header_literal_regex=`echo 'iconv.h' \ 34391 | sed -e "$gl_make_literal_regex_sed"` 34392 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 34393 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 34394 s|^/[^/]|//&| 34395 p 34396 q 34397 }' 34398 34399 gl_cv_absolute_iconv_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 34400 sed -n "$gl_absolute_header_sed"` 34401 34402 gl_header=$gl_cv_absolute_iconv_h 34403 gl_cv_next_iconv_h='"'$gl_header'"' 34404 else 34405 gl_cv_next_iconv_h='<'iconv.h'>' 34406 fi 34407 34408 34409fi 34410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_iconv_h" >&5 34411$as_echo "$gl_cv_next_iconv_h" >&6; } 34412 fi 34413 NEXT_ICONV_H=$gl_cv_next_iconv_h 34414 34415 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 34416 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 34417 gl_next_as_first_directive='<'iconv.h'>' 34418 else 34419 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 34420 gl_next_as_first_directive=$gl_cv_next_iconv_h 34421 fi 34422 NEXT_AS_FIRST_DIRECTIVE_ICONV_H=$gl_next_as_first_directive 34423 34424 34425 34426 34427 34428 34429 34430 34431 34432 if test "$am_cv_func_iconv" = yes; then 34433 34434 34435 ICONV_H='iconv.h' 34436 if test -n "$ICONV_H"; then 34437 GL_GENERATE_ICONV_H_TRUE= 34438 GL_GENERATE_ICONV_H_FALSE='#' 34439else 34440 GL_GENERATE_ICONV_H_TRUE='#' 34441 GL_GENERATE_ICONV_H_FALSE= 34442fi 34443 34444 34445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34446/* end confdefs.h. */ 34447 34448 #include <iconv.h> 34449 #if defined _LIBICONV_VERSION || (defined __GLIBC__ && !defined __UCLIBC__) 34450 gnu_iconv 34451 #endif 34452 34453_ACEOF 34454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 34455 $EGREP "gnu_iconv" >/dev/null 2>&1; then : 34456 gl_func_iconv_gnu=yes 34457else 34458 gl_func_iconv_gnu=no 34459fi 34460rm -f conftest* 34461 34462 if test $gl_func_iconv_gnu = no; then 34463 iconv_flavor= 34464 case "$host_os" in 34465 aix*) iconv_flavor=ICONV_FLAVOR_AIX ;; 34466 irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;; 34467 hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;; 34468 osf*) iconv_flavor=ICONV_FLAVOR_OSF ;; 34469 solaris*) iconv_flavor=ICONV_FLAVOR_SOLARIS ;; 34470 esac 34471 if test -n "$iconv_flavor"; then 34472 34473cat >>confdefs.h <<_ACEOF 34474#define ICONV_FLAVOR $iconv_flavor 34475_ACEOF 34476 34477 34478 34479 34480 ICONV_H='iconv.h' 34481 if test -n "$ICONV_H"; then 34482 GL_GENERATE_ICONV_H_TRUE= 34483 GL_GENERATE_ICONV_H_FALSE='#' 34484else 34485 GL_GENERATE_ICONV_H_TRUE='#' 34486 GL_GENERATE_ICONV_H_FALSE= 34487fi 34488 34489 34490 REPLACE_ICONV_OPEN=1 34491 34492 fi 34493 fi 34494 34495 fi 34496 34497 if test $REPLACE_ICONV_OPEN = 1; then 34498 34499 34500 34501 34502 34503 34504 34505 34506 lgl_LIBOBJS="$lgl_LIBOBJS iconv_open.$ac_objext" 34507 34508 fi 34509 if test $REPLACE_ICONV = 1; then 34510 34511 34512 34513 34514 34515 34516 34517 34518 lgl_LIBOBJS="$lgl_LIBOBJS iconv.$ac_objext" 34519 34520 34521 34522 34523 34524 34525 34526 34527 34528 lgl_LIBOBJS="$lgl_LIBOBJS iconv_close.$ac_objext" 34529 34530 fi 34531 34532 34533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler generally respects inline" >&5 34534$as_echo_n "checking whether the compiler generally respects inline... " >&6; } 34535if ${gl_cv_c_inline_effective+:} false; then : 34536 $as_echo_n "(cached) " >&6 34537else 34538 if test $ac_cv_c_inline = no; then 34539 gl_cv_c_inline_effective=no 34540 else 34541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34542/* end confdefs.h. */ 34543 34544int 34545main () 34546{ 34547#ifdef __NO_INLINE__ 34548 #error "inline is not effective" 34549 #endif 34550 ; 34551 return 0; 34552} 34553_ACEOF 34554if ac_fn_c_try_compile "$LINENO"; then : 34555 gl_cv_c_inline_effective=yes 34556else 34557 gl_cv_c_inline_effective=no 34558fi 34559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34560 fi 34561 34562fi 34563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_inline_effective" >&5 34564$as_echo "$gl_cv_c_inline_effective" >&6; } 34565 if test $gl_cv_c_inline_effective = yes; then 34566 34567$as_echo "#define HAVE_INLINE 1" >>confdefs.h 34568 34569 fi 34570 34571 34572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc/ld supports -Wl,--output-def" >&5 34573$as_echo_n "checking if gcc/ld supports -Wl,--output-def... " >&6; } 34574if ${gl_cv_ld_output_def+:} false; then : 34575 $as_echo_n "(cached) " >&6 34576else 34577 if test "$enable_shared" = no; then 34578 gl_cv_ld_output_def="not needed, shared libraries are disabled" 34579 else 34580 gl_ldflags_save=$LDFLAGS 34581 LDFLAGS="-Wl,--output-def,conftest.def" 34582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34583/* end confdefs.h. */ 34584 34585int 34586main () 34587{ 34588 34589 ; 34590 return 0; 34591} 34592_ACEOF 34593if ac_fn_c_try_link "$LINENO"; then : 34594 gl_cv_ld_output_def=yes 34595else 34596 gl_cv_ld_output_def=no 34597fi 34598rm -f core conftest.err conftest.$ac_objext \ 34599 conftest$ac_exeext conftest.$ac_ext 34600 rm -f conftest.def 34601 LDFLAGS="$gl_ldflags_save" 34602 fi 34603fi 34604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ld_output_def" >&5 34605$as_echo "$gl_cv_ld_output_def" >&6; } 34606 if test "x$gl_cv_ld_output_def" = "xyes"; then 34607 HAVE_LD_OUTPUT_DEF_TRUE= 34608 HAVE_LD_OUTPUT_DEF_FALSE='#' 34609else 34610 HAVE_LD_OUTPUT_DEF_TRUE='#' 34611 HAVE_LD_OUTPUT_DEF_FALSE= 34612fi 34613 34614 34615 34616 # Check whether --enable-ld-version-script was given. 34617if test "${enable_ld_version_script+set}" = set; then : 34618 enableval=$enable_ld_version_script; have_ld_version_script=$enableval 34619else 34620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5 34621$as_echo_n "checking if LD -Wl,--version-script works... " >&6; } 34622if ${gl_cv_sys_ld_version_script+:} false; then : 34623 $as_echo_n "(cached) " >&6 34624else 34625 gl_cv_sys_ld_version_script=no 34626 save_LDFLAGS=$LDFLAGS 34627 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 34628 echo foo >conftest.map 34629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34630/* end confdefs.h. */ 34631 34632int 34633main () 34634{ 34635 34636 ; 34637 return 0; 34638} 34639_ACEOF 34640if ac_fn_c_try_link "$LINENO"; then : 34641 34642else 34643 cat > conftest.map <<EOF 34644VERS_1 { 34645 global: sym; 34646}; 34647 34648VERS_2 { 34649 global: sym; 34650} VERS_1; 34651EOF 34652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34653/* end confdefs.h. */ 34654 34655int 34656main () 34657{ 34658 34659 ; 34660 return 0; 34661} 34662_ACEOF 34663if ac_fn_c_try_link "$LINENO"; then : 34664 gl_cv_sys_ld_version_script=yes 34665fi 34666rm -f core conftest.err conftest.$ac_objext \ 34667 conftest$ac_exeext conftest.$ac_ext 34668fi 34669rm -f core conftest.err conftest.$ac_objext \ 34670 conftest$ac_exeext conftest.$ac_ext 34671 rm -f conftest.map 34672 LDFLAGS=$save_LDFLAGS 34673fi 34674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5 34675$as_echo "$gl_cv_sys_ld_version_script" >&6; } 34676 have_ld_version_script=$gl_cv_sys_ld_version_script 34677fi 34678 34679 if test "$have_ld_version_script" = yes; then 34680 HAVE_LD_VERSION_SCRIPT_TRUE= 34681 HAVE_LD_VERSION_SCRIPT_FALSE='#' 34682else 34683 HAVE_LD_VERSION_SCRIPT_TRUE='#' 34684 HAVE_LD_VERSION_SCRIPT_FALSE= 34685fi 34686 34687 34688 34689 34690 CFLAG_VISIBILITY= 34691 HAVE_VISIBILITY=0 34692 if test -n "$GCC"; then 34693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 34694$as_echo_n "checking whether the -Werror option is usable... " >&6; } 34695 if ${gl_cv_cc_vis_werror+:} false; then : 34696 $as_echo_n "(cached) " >&6 34697else 34698 34699 gl_save_CFLAGS="$CFLAGS" 34700 CFLAGS="$CFLAGS -Werror" 34701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34702/* end confdefs.h. */ 34703 34704int 34705main () 34706{ 34707 34708 ; 34709 return 0; 34710} 34711_ACEOF 34712if ac_fn_c_try_compile "$LINENO"; then : 34713 gl_cv_cc_vis_werror=yes 34714else 34715 gl_cv_cc_vis_werror=no 34716fi 34717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34718 CFLAGS="$gl_save_CFLAGS" 34719fi 34720 34721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 34722$as_echo "$gl_cv_cc_vis_werror" >&6; } 34723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 34724$as_echo_n "checking for simple visibility declarations... " >&6; } 34725 if ${gl_cv_cc_visibility+:} false; then : 34726 $as_echo_n "(cached) " >&6 34727else 34728 34729 gl_save_CFLAGS="$CFLAGS" 34730 CFLAGS="$CFLAGS -fvisibility=hidden" 34731 if test $gl_cv_cc_vis_werror = yes; then 34732 CFLAGS="$CFLAGS -Werror" 34733 fi 34734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34735/* end confdefs.h. */ 34736extern __attribute__((__visibility__("hidden"))) int hiddenvar; 34737 extern __attribute__((__visibility__("default"))) int exportedvar; 34738 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 34739 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 34740 void dummyfunc (void) {} 34741 34742int 34743main () 34744{ 34745 34746 ; 34747 return 0; 34748} 34749_ACEOF 34750if ac_fn_c_try_compile "$LINENO"; then : 34751 gl_cv_cc_visibility=yes 34752else 34753 gl_cv_cc_visibility=no 34754fi 34755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34756 CFLAGS="$gl_save_CFLAGS" 34757fi 34758 34759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 34760$as_echo "$gl_cv_cc_visibility" >&6; } 34761 if test $gl_cv_cc_visibility = yes; then 34762 CFLAG_VISIBILITY="-fvisibility=hidden" 34763 HAVE_VISIBILITY=1 34764 fi 34765 fi 34766 34767 34768 34769cat >>confdefs.h <<_ACEOF 34770#define HAVE_VISIBILITY $HAVE_VISIBILITY 34771_ACEOF 34772 34773 34774 34775 34776 34777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 34778$as_echo_n "checking for ssize_t... " >&6; } 34779if ${gt_cv_ssize_t+:} false; then : 34780 $as_echo_n "(cached) " >&6 34781else 34782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34783/* end confdefs.h. */ 34784#include <sys/types.h> 34785int 34786main () 34787{ 34788int x = sizeof (ssize_t *) + sizeof (ssize_t); 34789 return !x; 34790 ; 34791 return 0; 34792} 34793_ACEOF 34794if ac_fn_c_try_compile "$LINENO"; then : 34795 gt_cv_ssize_t=yes 34796else 34797 gt_cv_ssize_t=no 34798fi 34799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34800fi 34801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 34802$as_echo "$gt_cv_ssize_t" >&6; } 34803 if test $gt_cv_ssize_t = no; then 34804 34805$as_echo "#define ssize_t int" >>confdefs.h 34806 34807 fi 34808 34809 34810 34811 34812 # Define two additional variables used in the Makefile substitution. 34813 34814 if test "$ac_cv_header_stdbool_h" = yes; then 34815 STDBOOL_H='' 34816 else 34817 STDBOOL_H='stdbool.h' 34818 fi 34819 34820 if test -n "$STDBOOL_H"; then 34821 GL_GENERATE_STDBOOL_H_TRUE= 34822 GL_GENERATE_STDBOOL_H_FALSE='#' 34823else 34824 GL_GENERATE_STDBOOL_H_TRUE='#' 34825 GL_GENERATE_STDBOOL_H_FALSE= 34826fi 34827 34828 34829 if test "$ac_cv_type__Bool" = yes; then 34830 HAVE__BOOL=1 34831 else 34832 HAVE__BOOL=0 34833 fi 34834 34835 34836 34837 34838 34839 STDDEF_H= 34840 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h> 34841 34842" 34843if test "x$ac_cv_type_max_align_t" = xyes; then : 34844 34845else 34846 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h 34847fi 34848 34849 if test $gt_cv_c_wchar_t = no; then 34850 HAVE_WCHAR_T=0 34851 STDDEF_H=stddef.h 34852 fi 34853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 34854$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } 34855if ${gl_cv_decl_null_works+:} false; then : 34856 $as_echo_n "(cached) " >&6 34857else 34858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34859/* end confdefs.h. */ 34860#include <stddef.h> 34861 int test[2 * (sizeof NULL == sizeof (void *)) -1]; 34862 34863int 34864main () 34865{ 34866 34867 ; 34868 return 0; 34869} 34870_ACEOF 34871if ac_fn_c_try_compile "$LINENO"; then : 34872 gl_cv_decl_null_works=yes 34873else 34874 gl_cv_decl_null_works=no 34875fi 34876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34877fi 34878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 34879$as_echo "$gl_cv_decl_null_works" >&6; } 34880 if test $gl_cv_decl_null_works = no; then 34881 REPLACE_NULL=1 34882 STDDEF_H=stddef.h 34883 fi 34884 34885 if test -n "$STDDEF_H"; then 34886 GL_GENERATE_STDDEF_H_TRUE= 34887 GL_GENERATE_STDDEF_H_FALSE='#' 34888else 34889 GL_GENERATE_STDDEF_H_TRUE='#' 34890 GL_GENERATE_STDDEF_H_FALSE= 34891fi 34892 34893 if test -n "$STDDEF_H"; then 34894 34895 34896 34897 34898 34899 34900 34901 34902 if test $gl_cv_have_include_next = yes; then 34903 gl_cv_next_stddef_h='<'stddef.h'>' 34904 else 34905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 34906$as_echo_n "checking absolute name of <stddef.h>... " >&6; } 34907if ${gl_cv_next_stddef_h+:} false; then : 34908 $as_echo_n "(cached) " >&6 34909else 34910 34911 34912 34913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34914/* end confdefs.h. */ 34915#include <stddef.h> 34916_ACEOF 34917 case "$host_os" in 34918 aix*) gl_absname_cpp="$ac_cpp -C" ;; 34919 *) gl_absname_cpp="$ac_cpp" ;; 34920 esac 34921 34922 case "$host_os" in 34923 mingw*) 34924 gl_dirsep_regex='[/\\]' 34925 ;; 34926 *) 34927 gl_dirsep_regex='\/' 34928 ;; 34929 esac 34930 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 34931 gl_header_literal_regex=`echo 'stddef.h' \ 34932 | sed -e "$gl_make_literal_regex_sed"` 34933 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 34934 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 34935 s|^/[^/]|//&| 34936 p 34937 q 34938 }' 34939 34940 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 34941 sed -n "$gl_absolute_header_sed"` 34942 34943 gl_header=$gl_cv_absolute_stddef_h 34944 gl_cv_next_stddef_h='"'$gl_header'"' 34945 34946 34947fi 34948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 34949$as_echo "$gl_cv_next_stddef_h" >&6; } 34950 fi 34951 NEXT_STDDEF_H=$gl_cv_next_stddef_h 34952 34953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 34954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 34955 gl_next_as_first_directive='<'stddef.h'>' 34956 else 34957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 34958 gl_next_as_first_directive=$gl_cv_next_stddef_h 34959 fi 34960 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive 34961 34962 34963 34964 34965 fi 34966 34967 34968 if test $gl_cond_libtool = false; then 34969 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV" 34970 gl_libdeps="$gl_libdeps $LIBICONV" 34971 fi 34972 34973 34974 34975 34976 34977 34978 34979 for ac_func in strverscmp 34980do : 34981 ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp" 34982if test "x$ac_cv_func_strverscmp" = xyes; then : 34983 cat >>confdefs.h <<_ACEOF 34984#define HAVE_STRVERSCMP 1 34985_ACEOF 34986 34987fi 34988done 34989 34990 if test $ac_cv_func_strverscmp = no; then 34991 HAVE_STRVERSCMP=0 34992 fi 34993 34994 if test $HAVE_STRVERSCMP = 0; then 34995 34996 34997 34998 34999 35000 35001 35002 35003 lgl_LIBOBJS="$lgl_LIBOBJS strverscmp.$ac_objext" 35004 35005 35006 : 35007 35008 fi 35009 35010 35011 35012 35013 35014 GNULIB_STRVERSCMP=1 35015 35016 35017 35018 35019 35020$as_echo "#define GNULIB_TEST_STRVERSCMP 1" >>confdefs.h 35021 35022 35023 35024 35025 35026 35027 35028 if { test "$HAVE_LIBUNISTRING" != yes \ 35029 || { 35030 35031 35032 35033 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35034 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35035 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35036 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35037 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 35038 } 35039 } 35040 } 35041 35042 35043 35044 35045 } 35046 }; then 35047 LIBUNISTRING_UNISTR_H='unistr.h' 35048 else 35049 LIBUNISTRING_UNISTR_H= 35050 fi 35051 35052 35053 35054 35055 if { test "$HAVE_LIBUNISTRING" != yes \ 35056 || { 35057 35058 35059 35060 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35061 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35062 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35063 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35064 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 35065 } 35066 } 35067 } 35068 35069 35070 35071 35072 } 35073 }; then 35074 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE= 35075 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE='#' 35076else 35077 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE='#' 35078 LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE= 35079fi 35080 35081 35082 35083 35084cat >>confdefs.h <<_ACEOF 35085#define GNULIB_UNISTR_U8_MBTOUCR 1 35086_ACEOF 35087 35088 35089 35090 35091 if { test "$HAVE_LIBUNISTRING" != yes \ 35092 || { 35093 35094 35095 35096 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35097 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35098 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35099 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35100 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 35101 } 35102 } 35103 } 35104 35105 35106 35107 35108 } 35109 }; then 35110 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE= 35111 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE='#' 35112else 35113 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE='#' 35114 LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE= 35115fi 35116 35117 35118 35119 35120cat >>confdefs.h <<_ACEOF 35121#define GNULIB_UNISTR_U8_UCTOMB 1 35122_ACEOF 35123 35124 35125 35126 35127 if { test "$HAVE_LIBUNISTRING" != yes \ 35128 || { 35129 35130 35131 35132 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35133 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35134 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35135 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35136 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0 35137 } 35138 } 35139 } 35140 35141 35142 35143 35144 } 35145 }; then 35146 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE= 35147 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE='#' 35148else 35149 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE='#' 35150 LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE= 35151fi 35152 35153 35154 35155 35156 if { test "$HAVE_LIBUNISTRING" != yes \ 35157 || { 35158 35159 35160 35161 test $LIBUNISTRING_VERSION_MAJOR -lt 0 \ 35162 || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \ 35163 && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \ 35164 || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \ 35165 && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4 35166 } 35167 } 35168 } 35169 35170 35171 35172 35173 } 35174 }; then 35175 LIBUNISTRING_UNITYPES_H='unitypes.h' 35176 else 35177 LIBUNISTRING_UNITYPES_H= 35178 fi 35179 35180 35181 # End of code from modules 35182 35183 35184 35185 35186 35187 35188 35189 35190 35191 gltests_libdeps= 35192 gltests_ltlibdeps= 35193 35194 35195 35196 35197 35198 35199 35200 35201 35202 gl_source_base='lib/gltests' 35203 lgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS 35204 35205 gl_module_indicator_condition=$lgltests_WITNESS 35206 35207 35208 35209 if test $ac_cv_func_alloca_works = no; then 35210 : 35211 fi 35212 35213 # Define an additional variable used in the Makefile substitution. 35214 if test $ac_cv_working_alloca_h = yes; then 35215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 35216$as_echo_n "checking for alloca as a compiler built-in... " >&6; } 35217if ${gl_cv_rpl_alloca+:} false; then : 35218 $as_echo_n "(cached) " >&6 35219else 35220 35221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35222/* end confdefs.h. */ 35223 35224#if defined __GNUC__ || defined _AIX || defined _MSC_VER 35225 Need own alloca 35226#endif 35227 35228_ACEOF 35229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35230 $EGREP "Need own alloca" >/dev/null 2>&1; then : 35231 gl_cv_rpl_alloca=yes 35232else 35233 gl_cv_rpl_alloca=no 35234fi 35235rm -f conftest* 35236 35237 35238fi 35239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 35240$as_echo "$gl_cv_rpl_alloca" >&6; } 35241 if test $gl_cv_rpl_alloca = yes; then 35242 35243$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 35244 35245 ALLOCA_H=alloca.h 35246 else 35247 ALLOCA_H= 35248 fi 35249 else 35250 ALLOCA_H=alloca.h 35251 fi 35252 35253 if test -n "$ALLOCA_H"; then 35254 GL_GENERATE_ALLOCA_H_TRUE= 35255 GL_GENERATE_ALLOCA_H_FALSE='#' 35256else 35257 GL_GENERATE_ALLOCA_H_TRUE='#' 35258 GL_GENERATE_ALLOCA_H_FALSE= 35259fi 35260 35261 35262 35263 35264 35265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 35266$as_echo_n "checking for a traditional french locale... " >&6; } 35267if ${gt_cv_locale_fr+:} false; then : 35268 $as_echo_n "(cached) " >&6 35269else 35270 35271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35272/* end confdefs.h. */ 35273 35274#include <locale.h> 35275#include <time.h> 35276#if HAVE_LANGINFO_CODESET 35277# include <langinfo.h> 35278#endif 35279#include <stdlib.h> 35280#include <string.h> 35281struct tm t; 35282char buf[16]; 35283int main () { 35284 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 35285 imitates locale dependent behaviour by looking at the environment 35286 variables, and all locales use the UTF-8 encoding. */ 35287#if defined __BEOS__ || defined __HAIKU__ 35288 return 1; 35289#else 35290 /* Check whether the given locale name is recognized by the system. */ 35291# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 35292 /* On native Windows, setlocale(category, "") looks at the system settings, 35293 not at the environment variables. Also, when an encoding suffix such 35294 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 35295 category of the locale to "C". */ 35296 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 35297 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 35298 return 1; 35299# else 35300 if (setlocale (LC_ALL, "") == NULL) return 1; 35301# endif 35302 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 35303 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 35304 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 35305 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 35306 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 35307 some unit tests fail. 35308 On MirBSD 10, when an unsupported locale is specified, setlocale() 35309 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 35310# if HAVE_LANGINFO_CODESET 35311 { 35312 const char *cs = nl_langinfo (CODESET); 35313 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 35314 || strcmp (cs, "UTF-8") == 0) 35315 return 1; 35316 } 35317# endif 35318# ifdef __CYGWIN__ 35319 /* On Cygwin, avoid locale names without encoding suffix, because the 35320 locale_charset() function relies on the encoding suffix. Note that 35321 LC_ALL is set on the command line. */ 35322 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 35323# endif 35324 /* Check whether in the abbreviation of the second month, the second 35325 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 35326 one byte long. This excludes the UTF-8 encoding. */ 35327 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 35328 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 35329# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 35330 /* Check whether the decimal separator is a comma. 35331 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 35332 are nl_langinfo(RADIXCHAR) are both ".". */ 35333 if (localeconv () ->decimal_point[0] != ',') return 1; 35334# endif 35335 return 0; 35336#endif 35337} 35338 35339_ACEOF 35340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 35341 (eval $ac_link) 2>&5 35342 ac_status=$? 35343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35344 test $ac_status = 0; } && test -s conftest$ac_exeext; then 35345 case "$host_os" in 35346 # Handle native Windows specially, because there setlocale() interprets 35347 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 35348 # "fr" or "fra" as "French" or "French_France.1252", 35349 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 35350 # "ja" as "Japanese" or "Japanese_Japan.932", 35351 # and similar. 35352 mingw*) 35353 # Test for the native Windows locale name. 35354 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35355 gt_cv_locale_fr=French_France.1252 35356 else 35357 # None found. 35358 gt_cv_locale_fr=none 35359 fi 35360 ;; 35361 *) 35362 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 35363 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 35364 # configure script would override the LC_ALL setting. Likewise for 35365 # LC_CTYPE, which is also set at the beginning of the configure script. 35366 # Test for the usual locale name. 35367 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35368 gt_cv_locale_fr=fr_FR 35369 else 35370 # Test for the locale name with explicit encoding suffix. 35371 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35372 gt_cv_locale_fr=fr_FR.ISO-8859-1 35373 else 35374 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 35375 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35376 gt_cv_locale_fr=fr_FR.ISO8859-1 35377 else 35378 # Test for the HP-UX locale name. 35379 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35380 gt_cv_locale_fr=fr_FR.iso88591 35381 else 35382 # Test for the Solaris 7 locale name. 35383 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35384 gt_cv_locale_fr=fr 35385 else 35386 # None found. 35387 gt_cv_locale_fr=none 35388 fi 35389 fi 35390 fi 35391 fi 35392 fi 35393 ;; 35394 esac 35395 fi 35396 rm -fr conftest* 35397 35398fi 35399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 35400$as_echo "$gt_cv_locale_fr" >&6; } 35401 LOCALE_FR=$gt_cv_locale_fr 35402 35403 35404 35405 35406 35407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a turkish Unicode locale" >&5 35408$as_echo_n "checking for a turkish Unicode locale... " >&6; } 35409if ${gt_cv_locale_tr_utf8+:} false; then : 35410 $as_echo_n "(cached) " >&6 35411else 35412 35413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35414/* end confdefs.h. */ 35415 35416#include <locale.h> 35417#include <time.h> 35418#if HAVE_LANGINFO_CODESET 35419# include <langinfo.h> 35420#endif 35421#include <stdlib.h> 35422#include <string.h> 35423struct tm t; 35424char buf[16]; 35425int main () { 35426 /* On BeOS, locales are not implemented in libc. Rather, libintl 35427 imitates locale dependent behaviour by looking at the environment 35428 variables, and all locales use the UTF-8 encoding. But BeOS does not 35429 implement the Turkish upper-/lowercase mappings. Therefore, let this 35430 program return 1 on BeOS. */ 35431 /* Check whether the given locale name is recognized by the system. */ 35432#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 35433 /* On native Windows, setlocale(category, "") looks at the system settings, 35434 not at the environment variables. Also, when an encoding suffix such 35435 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 35436 category of the locale to "C". */ 35437 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 35438 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 35439 return 1; 35440#else 35441 if (setlocale (LC_ALL, "") == NULL) return 1; 35442#endif 35443 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 35444 On Mac OS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET) 35445 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 35446 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 35447 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 35448 some unit tests fail. */ 35449#if HAVE_LANGINFO_CODESET 35450 { 35451 const char *cs = nl_langinfo (CODESET); 35452 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 35453 return 1; 35454 } 35455#endif 35456#ifdef __CYGWIN__ 35457 /* On Cygwin, avoid locale names without encoding suffix, because the 35458 locale_charset() function relies on the encoding suffix. Note that 35459 LC_ALL is set on the command line. */ 35460 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 35461#endif 35462 /* Check whether in the abbreviation of the eighth month, the second 35463 character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is 35464 two bytes long, with UTF-8 encoding. */ 35465 t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19; 35466 if (strftime (buf, sizeof (buf), "%b", &t) < 4 35467 || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f) 35468 return 1; 35469 /* Check whether the upper-/lowercase mappings are as expected for 35470 Turkish. */ 35471 if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i' 35472 || towupper(0x0131) != 'I' || towlower ('I') != 0x0131) 35473 return 1; 35474 return 0; 35475} 35476 35477_ACEOF 35478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 35479 (eval $ac_link) 2>&5 35480 ac_status=$? 35481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35482 test $ac_status = 0; } && test -s conftest$ac_exeext; then 35483 case "$host_os" in 35484 # Handle native Windows specially, because there setlocale() interprets 35485 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 35486 # "fr" or "fra" as "French" or "French_France.1252", 35487 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 35488 # "ja" as "Japanese" or "Japanese_Japan.932", 35489 # and similar. 35490 mingw*) 35491 # Test for the hypothetical native Windows locale name. 35492 if (LC_ALL=Turkish_Turkey.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35493 gt_cv_locale_tr_utf8=Turkish_Turkey.65001 35494 else 35495 # None found. 35496 gt_cv_locale_tr_utf8=none 35497 fi 35498 ;; 35499 *) 35500 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 35501 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 35502 # configure script would override the LC_ALL setting. Likewise for 35503 # LC_CTYPE, which is also set at the beginning of the configure script. 35504 # Test for the usual locale name. 35505 if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35506 gt_cv_locale_tr_utf8=tr_TR 35507 else 35508 # Test for the locale name with explicit encoding suffix. 35509 if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35510 gt_cv_locale_tr_utf8=tr_TR.UTF-8 35511 else 35512 # Test for the Solaris 7 locale name. 35513 if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 35514 gt_cv_locale_tr_utf8=tr.UTF-8 35515 else 35516 # None found. 35517 gt_cv_locale_tr_utf8=none 35518 fi 35519 fi 35520 fi 35521 ;; 35522 esac 35523 else 35524 gt_cv_locale_tr_utf8=none 35525 fi 35526 rm -fr conftest* 35527 35528fi 35529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_tr_utf8" >&5 35530$as_echo "$gt_cv_locale_tr_utf8" >&6; } 35531 LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8 35532 35533 35534 35535 35536 35537 35538 35539 35540 35541 35542 35543 35544 35545 if test $gl_cv_have_include_next = yes; then 35546 gl_cv_next_ctype_h='<'ctype.h'>' 35547 else 35548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <ctype.h>" >&5 35549$as_echo_n "checking absolute name of <ctype.h>... " >&6; } 35550if ${gl_cv_next_ctype_h+:} false; then : 35551 $as_echo_n "(cached) " >&6 35552else 35553 35554 35555 35556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35557/* end confdefs.h. */ 35558#include <ctype.h> 35559_ACEOF 35560 case "$host_os" in 35561 aix*) gl_absname_cpp="$ac_cpp -C" ;; 35562 *) gl_absname_cpp="$ac_cpp" ;; 35563 esac 35564 35565 case "$host_os" in 35566 mingw*) 35567 gl_dirsep_regex='[/\\]' 35568 ;; 35569 *) 35570 gl_dirsep_regex='\/' 35571 ;; 35572 esac 35573 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 35574 gl_header_literal_regex=`echo 'ctype.h' \ 35575 | sed -e "$gl_make_literal_regex_sed"` 35576 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 35577 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 35578 s|^/[^/]|//&| 35579 p 35580 q 35581 }' 35582 35583 gl_cv_absolute_ctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 35584 sed -n "$gl_absolute_header_sed"` 35585 35586 gl_header=$gl_cv_absolute_ctype_h 35587 gl_cv_next_ctype_h='"'$gl_header'"' 35588 35589 35590fi 35591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_ctype_h" >&5 35592$as_echo "$gl_cv_next_ctype_h" >&6; } 35593 fi 35594 NEXT_CTYPE_H=$gl_cv_next_ctype_h 35595 35596 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 35597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 35598 gl_next_as_first_directive='<'ctype.h'>' 35599 else 35600 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 35601 gl_next_as_first_directive=$gl_cv_next_ctype_h 35602 fi 35603 NEXT_AS_FIRST_DIRECTIVE_CTYPE_H=$gl_next_as_first_directive 35604 35605 35606 35607 35608 35609 35610 for gl_func in isblank; do 35611 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 35612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 35613$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 35614if eval \${$as_gl_Symbol+:} false; then : 35615 $as_echo_n "(cached) " >&6 35616else 35617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35618/* end confdefs.h. */ 35619#include <ctype.h> 35620 35621int 35622main () 35623{ 35624#undef $gl_func 35625 (void) $gl_func; 35626 ; 35627 return 0; 35628} 35629_ACEOF 35630if ac_fn_c_try_compile "$LINENO"; then : 35631 eval "$as_gl_Symbol=yes" 35632else 35633 eval "$as_gl_Symbol=no" 35634fi 35635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35636fi 35637eval ac_res=\$$as_gl_Symbol 35638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 35639$as_echo "$ac_res" >&6; } 35640 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 35641 cat >>confdefs.h <<_ACEOF 35642#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 35643_ACEOF 35644 35645 eval ac_cv_have_decl_$gl_func=yes 35646fi 35647 done 35648 35649 35650 35651 35652 35653 35654 35655 35656 if test "$GNULIB_ENVIRON" != 1; then 35657 if test "$GNULIB_ENVIRON" = 0; then 35658 GNULIB_ENVIRON=$gl_module_indicator_condition 35659 else 35660 GNULIB_ENVIRON="($GNULIB_ENVIRON || $gl_module_indicator_condition)" 35661 fi 35662 fi 35663 35664 35665 35666 35667 35668$as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h 35669 35670 35671 35672 35673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5 35674$as_echo_n "checking for flexible array member... " >&6; } 35675if ${ac_cv_c_flexmember+:} false; then : 35676 $as_echo_n "(cached) " >&6 35677else 35678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35679/* end confdefs.h. */ 35680#include <stdlib.h> 35681 #include <stdio.h> 35682 #include <stddef.h> 35683 struct m { struct m *next, **list; char name[]; }; 35684 struct s { struct s *p; struct m *m; int n; double d[]; }; 35685int 35686main () 35687{ 35688int m = getchar (); 35689 size_t nbytes = offsetof (struct s, d) + m * sizeof (double); 35690 nbytes += sizeof (struct s) - 1; 35691 nbytes -= nbytes % sizeof (struct s); 35692 struct s *p = malloc (nbytes); 35693 p->p = p; 35694 p->m = NULL; 35695 p->d[0] = 0.0; 35696 return p->d != (double *) NULL; 35697 ; 35698 return 0; 35699} 35700_ACEOF 35701if ac_fn_c_try_compile "$LINENO"; then : 35702 ac_cv_c_flexmember=yes 35703else 35704 ac_cv_c_flexmember=no 35705fi 35706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35707fi 35708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5 35709$as_echo "$ac_cv_c_flexmember" >&6; } 35710 if test $ac_cv_c_flexmember = yes; then 35711 35712$as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h 35713 35714 else 35715 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h 35716 35717 fi 35718 35719 35720 35721 35722 35723 35724 PRIPTR_PREFIX= 35725 if test -n "$STDINT_H"; then 35726 PRIPTR_PREFIX='"l"' 35727 else 35728 for glpfx in '' l ll I64; do 35729 case $glpfx in 35730 '') gltype1='int';; 35731 l) gltype1='long int';; 35732 ll) gltype1='long long int';; 35733 I64) gltype1='__int64';; 35734 esac 35735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35736/* end confdefs.h. */ 35737#include <stdint.h> 35738 extern intptr_t foo; 35739 extern $gltype1 foo; 35740int 35741main () 35742{ 35743 35744 ; 35745 return 0; 35746} 35747_ACEOF 35748if ac_fn_c_try_compile "$LINENO"; then : 35749 PRIPTR_PREFIX='"'$glpfx'"' 35750fi 35751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35752 test -n "$PRIPTR_PREFIX" && break 35753 done 35754 fi 35755 35756 35757 35758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5 35759$as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; } 35760if ${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+:} false; then : 35761 $as_echo_n "(cached) " >&6 35762else 35763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35764/* end confdefs.h. */ 35765/* Work also in C++ mode. */ 35766 #define __STDC_LIMIT_MACROS 1 35767 35768 /* Work if build is not clean. */ 35769 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 35770 35771 #include <limits.h> 35772 #if HAVE_STDINT_H 35773 #include <stdint.h> 35774 #endif 35775 35776 #if defined INT32_MAX && defined INTMAX_MAX 35777 #define CONDITION (INT32_MAX < INTMAX_MAX) 35778 #elif HAVE_LONG_LONG_INT 35779 #define CONDITION (sizeof (int) < sizeof (long long int)) 35780 #else 35781 #define CONDITION 0 35782 #endif 35783 int test[CONDITION ? 1 : -1]; 35784int 35785main () 35786{ 35787 35788 ; 35789 return 0; 35790} 35791_ACEOF 35792if ac_fn_c_try_compile "$LINENO"; then : 35793 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes 35794else 35795 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no 35796fi 35797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35798fi 35799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5 35800$as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; } 35801 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then 35802 INT32_MAX_LT_INTMAX_MAX=1; 35803 else 35804 INT32_MAX_LT_INTMAX_MAX=0; 35805 fi 35806 35807 35808 if test $APPLE_UNIVERSAL_BUILD = 0; then 35809 35810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5 35811$as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; } 35812if ${gl_cv_test_INT64_MAX_EQ_LONG_MAX+:} false; then : 35813 $as_echo_n "(cached) " >&6 35814else 35815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35816/* end confdefs.h. */ 35817/* Work also in C++ mode. */ 35818 #define __STDC_LIMIT_MACROS 1 35819 35820 /* Work if build is not clean. */ 35821 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 35822 35823 #include <limits.h> 35824 #if HAVE_STDINT_H 35825 #include <stdint.h> 35826 #endif 35827 35828 #if defined INT64_MAX 35829 #define CONDITION (INT64_MAX == LONG_MAX) 35830 #elif HAVE_LONG_LONG_INT 35831 #define CONDITION (sizeof (long long int) == sizeof (long int)) 35832 #else 35833 #define CONDITION 0 35834 #endif 35835 int test[CONDITION ? 1 : -1]; 35836int 35837main () 35838{ 35839 35840 ; 35841 return 0; 35842} 35843_ACEOF 35844if ac_fn_c_try_compile "$LINENO"; then : 35845 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes 35846else 35847 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no 35848fi 35849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35850fi 35851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5 35852$as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; } 35853 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then 35854 INT64_MAX_EQ_LONG_MAX=1; 35855 else 35856 INT64_MAX_EQ_LONG_MAX=0; 35857 fi 35858 35859 35860 else 35861 INT64_MAX_EQ_LONG_MAX=-1 35862 fi 35863 35864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5 35865$as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; } 35866if ${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+:} false; then : 35867 $as_echo_n "(cached) " >&6 35868else 35869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35870/* end confdefs.h. */ 35871/* Work also in C++ mode. */ 35872 #define __STDC_LIMIT_MACROS 1 35873 35874 /* Work if build is not clean. */ 35875 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 35876 35877 #include <limits.h> 35878 #if HAVE_STDINT_H 35879 #include <stdint.h> 35880 #endif 35881 35882 #if defined UINT32_MAX && defined UINTMAX_MAX 35883 #define CONDITION (UINT32_MAX < UINTMAX_MAX) 35884 #elif HAVE_LONG_LONG_INT 35885 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int)) 35886 #else 35887 #define CONDITION 0 35888 #endif 35889 int test[CONDITION ? 1 : -1]; 35890int 35891main () 35892{ 35893 35894 ; 35895 return 0; 35896} 35897_ACEOF 35898if ac_fn_c_try_compile "$LINENO"; then : 35899 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes 35900else 35901 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no 35902fi 35903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35904fi 35905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5 35906$as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; } 35907 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then 35908 UINT32_MAX_LT_UINTMAX_MAX=1; 35909 else 35910 UINT32_MAX_LT_UINTMAX_MAX=0; 35911 fi 35912 35913 35914 if test $APPLE_UNIVERSAL_BUILD = 0; then 35915 35916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5 35917$as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; } 35918if ${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+:} false; then : 35919 $as_echo_n "(cached) " >&6 35920else 35921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35922/* end confdefs.h. */ 35923/* Work also in C++ mode. */ 35924 #define __STDC_LIMIT_MACROS 1 35925 35926 /* Work if build is not clean. */ 35927 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 35928 35929 #include <limits.h> 35930 #if HAVE_STDINT_H 35931 #include <stdint.h> 35932 #endif 35933 35934 #if defined UINT64_MAX 35935 #define CONDITION (UINT64_MAX == ULONG_MAX) 35936 #elif HAVE_LONG_LONG_INT 35937 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int)) 35938 #else 35939 #define CONDITION 0 35940 #endif 35941 int test[CONDITION ? 1 : -1]; 35942int 35943main () 35944{ 35945 35946 ; 35947 return 0; 35948} 35949_ACEOF 35950if ac_fn_c_try_compile "$LINENO"; then : 35951 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes 35952else 35953 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no 35954fi 35955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35956fi 35957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5 35958$as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; } 35959 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then 35960 UINT64_MAX_EQ_ULONG_MAX=1; 35961 else 35962 UINT64_MAX_EQ_ULONG_MAX=0; 35963 fi 35964 35965 35966 else 35967 UINT64_MAX_EQ_ULONG_MAX=-1 35968 fi 35969 35970 35971 35972 35973 35974 35975 35976 35977 if test $ac_cv_func_isblank = no; then 35978 HAVE_ISBLANK=0 35979 fi 35980 35981 if test $HAVE_ISBLANK = 0; then 35982 35983 35984 35985 35986 35987 35988 35989 35990 lgltests_LIBOBJS="$lgltests_LIBOBJS isblank.$ac_objext" 35991 35992 fi 35993 35994 35995 35996 35997 35998 if test "$GNULIB_ISBLANK" != 1; then 35999 if test "$GNULIB_ISBLANK" = 0; then 36000 GNULIB_ISBLANK=$gl_module_indicator_condition 36001 else 36002 GNULIB_ISBLANK="($GNULIB_ISBLANK || $gl_module_indicator_condition)" 36003 fi 36004 fi 36005 36006 36007 36008 36009 36010 36011 36012 36013 36014 36015 36016 36017 36018 36019 36020 36021 36022 36023 if test $gl_cv_have_include_next = yes; then 36024 gl_cv_next_langinfo_h='<'langinfo.h'>' 36025 else 36026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <langinfo.h>" >&5 36027$as_echo_n "checking absolute name of <langinfo.h>... " >&6; } 36028if ${gl_cv_next_langinfo_h+:} false; then : 36029 $as_echo_n "(cached) " >&6 36030else 36031 36032 if test $ac_cv_header_langinfo_h = yes; then 36033 36034 36035 36036 36037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36038/* end confdefs.h. */ 36039#include <langinfo.h> 36040_ACEOF 36041 case "$host_os" in 36042 aix*) gl_absname_cpp="$ac_cpp -C" ;; 36043 *) gl_absname_cpp="$ac_cpp" ;; 36044 esac 36045 36046 case "$host_os" in 36047 mingw*) 36048 gl_dirsep_regex='[/\\]' 36049 ;; 36050 *) 36051 gl_dirsep_regex='\/' 36052 ;; 36053 esac 36054 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 36055 gl_header_literal_regex=`echo 'langinfo.h' \ 36056 | sed -e "$gl_make_literal_regex_sed"` 36057 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 36058 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 36059 s|^/[^/]|//&| 36060 p 36061 q 36062 }' 36063 36064 gl_cv_absolute_langinfo_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 36065 sed -n "$gl_absolute_header_sed"` 36066 36067 gl_header=$gl_cv_absolute_langinfo_h 36068 gl_cv_next_langinfo_h='"'$gl_header'"' 36069 else 36070 gl_cv_next_langinfo_h='<'langinfo.h'>' 36071 fi 36072 36073 36074fi 36075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_langinfo_h" >&5 36076$as_echo "$gl_cv_next_langinfo_h" >&6; } 36077 fi 36078 NEXT_LANGINFO_H=$gl_cv_next_langinfo_h 36079 36080 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 36081 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 36082 gl_next_as_first_directive='<'langinfo.h'>' 36083 else 36084 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 36085 gl_next_as_first_directive=$gl_cv_next_langinfo_h 36086 fi 36087 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive 36088 36089 36090 36091 36092 36093 HAVE_LANGINFO_CODESET=0 36094 HAVE_LANGINFO_T_FMT_AMPM=0 36095 HAVE_LANGINFO_ALTMON=0 36096 HAVE_LANGINFO_ERA=0 36097 HAVE_LANGINFO_YESEXPR=0 36098 36099 if test $ac_cv_header_langinfo_h = yes; then 36100 HAVE_LANGINFO_H=1 36101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines CODESET" >&5 36102$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; } 36103if ${gl_cv_header_langinfo_codeset+:} false; then : 36104 $as_echo_n "(cached) " >&6 36105else 36106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36107/* end confdefs.h. */ 36108#include <langinfo.h> 36109int a = CODESET; 36110 36111int 36112main () 36113{ 36114 36115 ; 36116 return 0; 36117} 36118_ACEOF 36119if ac_fn_c_try_compile "$LINENO"; then : 36120 gl_cv_header_langinfo_codeset=yes 36121else 36122 gl_cv_header_langinfo_codeset=no 36123fi 36124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36125 36126fi 36127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_codeset" >&5 36128$as_echo "$gl_cv_header_langinfo_codeset" >&6; } 36129 if test $gl_cv_header_langinfo_codeset = yes; then 36130 HAVE_LANGINFO_CODESET=1 36131 fi 36132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines T_FMT_AMPM" >&5 36133$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; } 36134if ${gl_cv_header_langinfo_t_fmt_ampm+:} false; then : 36135 $as_echo_n "(cached) " >&6 36136else 36137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36138/* end confdefs.h. */ 36139#include <langinfo.h> 36140int a = T_FMT_AMPM; 36141 36142int 36143main () 36144{ 36145 36146 ; 36147 return 0; 36148} 36149_ACEOF 36150if ac_fn_c_try_compile "$LINENO"; then : 36151 gl_cv_header_langinfo_t_fmt_ampm=yes 36152else 36153 gl_cv_header_langinfo_t_fmt_ampm=no 36154fi 36155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36156 36157fi 36158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5 36159$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; } 36160 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then 36161 HAVE_LANGINFO_T_FMT_AMPM=1 36162 fi 36163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ALTMON_1" >&5 36164$as_echo_n "checking whether langinfo.h defines ALTMON_1... " >&6; } 36165if ${gl_cv_header_langinfo_altmon+:} false; then : 36166 $as_echo_n "(cached) " >&6 36167else 36168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36169/* end confdefs.h. */ 36170#include <langinfo.h> 36171int a = ALTMON_1; 36172 36173int 36174main () 36175{ 36176 36177 ; 36178 return 0; 36179} 36180_ACEOF 36181if ac_fn_c_try_compile "$LINENO"; then : 36182 gl_cv_header_langinfo_altmon=yes 36183else 36184 gl_cv_header_langinfo_altmon=no 36185fi 36186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36187 36188fi 36189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_altmon" >&5 36190$as_echo "$gl_cv_header_langinfo_altmon" >&6; } 36191 if test $gl_cv_header_langinfo_altmon = yes; then 36192 HAVE_LANGINFO_ALTMON=1 36193 fi 36194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines ERA" >&5 36195$as_echo_n "checking whether langinfo.h defines ERA... " >&6; } 36196if ${gl_cv_header_langinfo_era+:} false; then : 36197 $as_echo_n "(cached) " >&6 36198else 36199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36200/* end confdefs.h. */ 36201#include <langinfo.h> 36202int a = ERA; 36203 36204int 36205main () 36206{ 36207 36208 ; 36209 return 0; 36210} 36211_ACEOF 36212if ac_fn_c_try_compile "$LINENO"; then : 36213 gl_cv_header_langinfo_era=yes 36214else 36215 gl_cv_header_langinfo_era=no 36216fi 36217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36218 36219fi 36220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_era" >&5 36221$as_echo "$gl_cv_header_langinfo_era" >&6; } 36222 if test $gl_cv_header_langinfo_era = yes; then 36223 HAVE_LANGINFO_ERA=1 36224 fi 36225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether langinfo.h defines YESEXPR" >&5 36226$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; } 36227if ${gl_cv_header_langinfo_yesexpr+:} false; then : 36228 $as_echo_n "(cached) " >&6 36229else 36230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36231/* end confdefs.h. */ 36232#include <langinfo.h> 36233int a = YESEXPR; 36234 36235int 36236main () 36237{ 36238 36239 ; 36240 return 0; 36241} 36242_ACEOF 36243if ac_fn_c_try_compile "$LINENO"; then : 36244 gl_cv_header_langinfo_yesexpr=yes 36245else 36246 gl_cv_header_langinfo_yesexpr=no 36247fi 36248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36249 36250fi 36251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_langinfo_yesexpr" >&5 36252$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; } 36253 if test $gl_cv_header_langinfo_yesexpr = yes; then 36254 HAVE_LANGINFO_YESEXPR=1 36255 fi 36256 else 36257 HAVE_LANGINFO_H=0 36258 fi 36259 36260 36261 36262 36263 36264 36265 36266 36267 for gl_func in nl_langinfo; do 36268 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 36269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 36270$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 36271if eval \${$as_gl_Symbol+:} false; then : 36272 $as_echo_n "(cached) " >&6 36273else 36274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36275/* end confdefs.h. */ 36276#include <langinfo.h> 36277 36278int 36279main () 36280{ 36281#undef $gl_func 36282 (void) $gl_func; 36283 ; 36284 return 0; 36285} 36286_ACEOF 36287if ac_fn_c_try_compile "$LINENO"; then : 36288 eval "$as_gl_Symbol=yes" 36289else 36290 eval "$as_gl_Symbol=no" 36291fi 36292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36293fi 36294eval ac_res=\$$as_gl_Symbol 36295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 36296$as_echo "$ac_res" >&6; } 36297 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 36298 cat >>confdefs.h <<_ACEOF 36299#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 36300_ACEOF 36301 36302 eval ac_cv_have_decl_$gl_func=yes 36303fi 36304 done 36305 36306 36307 36308 36309 36310 36311 36312 36313 36314 36315 case "$host_os" in 36316 solaris*) 36317 36318$as_echo "#define _LCONV_C99 1" >>confdefs.h 36319 36320 ;; 36321 esac 36322 36323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5 36324$as_echo_n "checking whether locale.h conforms to POSIX:2001... " >&6; } 36325if ${gl_cv_header_locale_h_posix2001+:} false; then : 36326 $as_echo_n "(cached) " >&6 36327else 36328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36329/* end confdefs.h. */ 36330#include <locale.h> 36331 int x = LC_MESSAGES; 36332 int y = sizeof (((struct lconv *) 0)->decimal_point); 36333int 36334main () 36335{ 36336 36337 ; 36338 return 0; 36339} 36340_ACEOF 36341if ac_fn_c_try_compile "$LINENO"; then : 36342 gl_cv_header_locale_h_posix2001=yes 36343else 36344 gl_cv_header_locale_h_posix2001=no 36345fi 36346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36347fi 36348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5 36349$as_echo "$gl_cv_header_locale_h_posix2001" >&6; } 36350 36351 36352 if test $ac_cv_header_xlocale_h = yes; then 36353 HAVE_XLOCALE_H=1 36354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5 36355$as_echo_n "checking whether locale.h defines locale_t... " >&6; } 36356if ${gl_cv_header_locale_has_locale_t+:} false; then : 36357 $as_echo_n "(cached) " >&6 36358else 36359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36360/* end confdefs.h. */ 36361#include <locale.h> 36362 locale_t x; 36363int 36364main () 36365{ 36366 36367 ; 36368 return 0; 36369} 36370_ACEOF 36371if ac_fn_c_try_compile "$LINENO"; then : 36372 gl_cv_header_locale_has_locale_t=yes 36373else 36374 gl_cv_header_locale_has_locale_t=no 36375fi 36376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36377 36378fi 36379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5 36380$as_echo "$gl_cv_header_locale_has_locale_t" >&6; } 36381 if test $gl_cv_header_locale_has_locale_t = yes; then 36382 gl_cv_header_locale_h_needs_xlocale_h=no 36383 else 36384 gl_cv_header_locale_h_needs_xlocale_h=yes 36385 fi 36386 else 36387 HAVE_XLOCALE_H=0 36388 gl_cv_header_locale_h_needs_xlocale_h=no 36389 fi 36390 36391 36392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5 36393$as_echo_n "checking whether struct lconv is properly defined... " >&6; } 36394if ${gl_cv_sys_struct_lconv_ok+:} false; then : 36395 $as_echo_n "(cached) " >&6 36396else 36397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36398/* end confdefs.h. */ 36399#include <locale.h> 36400 struct lconv l; 36401 int x = sizeof (l.decimal_point); 36402 int y = sizeof (l.int_p_cs_precedes); 36403int 36404main () 36405{ 36406 36407 ; 36408 return 0; 36409} 36410_ACEOF 36411if ac_fn_c_try_compile "$LINENO"; then : 36412 gl_cv_sys_struct_lconv_ok=yes 36413else 36414 gl_cv_sys_struct_lconv_ok=no 36415fi 36416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36417 36418fi 36419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5 36420$as_echo "$gl_cv_sys_struct_lconv_ok" >&6; } 36421 if test $gl_cv_sys_struct_lconv_ok = no; then 36422 REPLACE_STRUCT_LCONV=1 36423 fi 36424 36425 36426 36427 36428 36429 36430 36431 36432 36433 if test $gl_cv_have_include_next = yes; then 36434 gl_cv_next_locale_h='<'locale.h'>' 36435 else 36436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5 36437$as_echo_n "checking absolute name of <locale.h>... " >&6; } 36438if ${gl_cv_next_locale_h+:} false; then : 36439 $as_echo_n "(cached) " >&6 36440else 36441 36442 36443 36444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36445/* end confdefs.h. */ 36446#include <locale.h> 36447_ACEOF 36448 case "$host_os" in 36449 aix*) gl_absname_cpp="$ac_cpp -C" ;; 36450 *) gl_absname_cpp="$ac_cpp" ;; 36451 esac 36452 36453 case "$host_os" in 36454 mingw*) 36455 gl_dirsep_regex='[/\\]' 36456 ;; 36457 *) 36458 gl_dirsep_regex='\/' 36459 ;; 36460 esac 36461 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 36462 gl_header_literal_regex=`echo 'locale.h' \ 36463 | sed -e "$gl_make_literal_regex_sed"` 36464 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 36465 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 36466 s|^/[^/]|//&| 36467 p 36468 q 36469 }' 36470 36471 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 36472 sed -n "$gl_absolute_header_sed"` 36473 36474 gl_header=$gl_cv_absolute_locale_h 36475 gl_cv_next_locale_h='"'$gl_header'"' 36476 36477 36478fi 36479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5 36480$as_echo "$gl_cv_next_locale_h" >&6; } 36481 fi 36482 NEXT_LOCALE_H=$gl_cv_next_locale_h 36483 36484 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 36485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 36486 gl_next_as_first_directive='<'locale.h'>' 36487 else 36488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 36489 gl_next_as_first_directive=$gl_cv_next_locale_h 36490 fi 36491 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive 36492 36493 36494 36495 36496 36497 36498 for gl_func in setlocale duplocale; do 36499 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 36500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 36501$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 36502if eval \${$as_gl_Symbol+:} false; then : 36503 $as_echo_n "(cached) " >&6 36504else 36505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36506/* end confdefs.h. */ 36507#include <locale.h> 36508/* Some systems provide declarations in a non-standard header. */ 36509#if HAVE_XLOCALE_H 36510# include <xlocale.h> 36511#endif 36512 36513int 36514main () 36515{ 36516#undef $gl_func 36517 (void) $gl_func; 36518 ; 36519 return 0; 36520} 36521_ACEOF 36522if ac_fn_c_try_compile "$LINENO"; then : 36523 eval "$as_gl_Symbol=yes" 36524else 36525 eval "$as_gl_Symbol=no" 36526fi 36527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36528fi 36529eval ac_res=\$$as_gl_Symbol 36530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 36531$as_echo "$ac_res" >&6; } 36532 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 36533 cat >>confdefs.h <<_ACEOF 36534#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 36535_ACEOF 36536 36537 eval ac_cv_have_decl_$gl_func=yes 36538fi 36539 done 36540 36541 36542 36543 36544 36545 36546 for ac_func in setlocale uselocale 36547do : 36548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 36549ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 36550if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 36551 cat >>confdefs.h <<_ACEOF 36552#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 36553_ACEOF 36554 36555fi 36556done 36557 36558 if test $ac_cv_func_uselocale = yes; then 36559 for ac_func in getlocalename_l 36560do : 36561 ac_fn_c_check_func "$LINENO" "getlocalename_l" "ac_cv_func_getlocalename_l" 36562if test "x$ac_cv_func_getlocalename_l" = xyes; then : 36563 cat >>confdefs.h <<_ACEOF 36564#define HAVE_GETLOCALENAME_L 1 36565_ACEOF 36566 36567fi 36568done 36569 36570 fi 36571 36572 36573 36574 36575 if test "$gl_threads_api" = posix; then 36576 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 36577 # pthread_rwlock_* functions. 36578 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 36579" 36580if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 36581 36582$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 36583 36584fi 36585 36586 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 36587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36588/* end confdefs.h. */ 36589 36590 #include <pthread.h> 36591int 36592main () 36593{ 36594 36595#if __FreeBSD__ == 4 36596error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 36597#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 36598 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 36599error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 36600#else 36601int x = (int)PTHREAD_MUTEX_RECURSIVE; 36602return !x; 36603#endif 36604 36605 ; 36606 return 0; 36607} 36608_ACEOF 36609if ac_fn_c_try_compile "$LINENO"; then : 36610 36611$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 36612 36613fi 36614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36615 fi 36616 : 36617 36618 36619 36620cat >>confdefs.h <<_ACEOF 36621#define GNULIB_LOCK $gl_module_indicator_condition 36622_ACEOF 36623 36624 36625 36626 36627 36628 36629 if test $gl_cv_func_malloc_posix = yes; then 36630 36631$as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h 36632 36633 else 36634 REPLACE_MALLOC=1 36635 fi 36636 36637 if test $REPLACE_MALLOC = 1; then 36638 36639 36640 36641 36642 36643 36644 36645 36646 lgltests_LIBOBJS="$lgltests_LIBOBJS malloc.$ac_objext" 36647 36648 fi 36649 36650 36651 36652 36653 36654 if test "$GNULIB_MALLOC_POSIX" != 1; then 36655 if test "$GNULIB_MALLOC_POSIX" = 0; then 36656 GNULIB_MALLOC_POSIX=$gl_module_indicator_condition 36657 else 36658 GNULIB_MALLOC_POSIX="($GNULIB_MALLOC_POSIX || $gl_module_indicator_condition)" 36659 fi 36660 fi 36661 36662 36663 36664 36665 36666$as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h 36667 36668 36669 36670 36671 36672 36673 36674 36675 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 36676 36677 36678 36679 36680 36681 36682 36683 36684 lgltests_LIBOBJS="$lgltests_LIBOBJS msvc-inval.$ac_objext" 36685 36686 fi 36687 36688 36689 36690 36691 LIB_PTHREAD_SIGMASK= 36692 36693 36694 36695 36696 if test "$gl_threads_api" = posix; then 36697 if test $ac_cv_func_pthread_sigmask = yes; then 36698 : 36699 else 36700 if test -n "$LIBMULTITHREAD"; then 36701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5 36702$as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; } 36703if ${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+:} false; then : 36704 $as_echo_n "(cached) " >&6 36705else 36706 gl_save_LIBS="$LIBS" 36707 LIBS="$LIBS $LIBMULTITHREAD" 36708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36709/* end confdefs.h. */ 36710#include <pthread.h> 36711 #include <signal.h> 36712 36713int 36714main () 36715{ 36716return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0); 36717 ; 36718 return 0; 36719} 36720 36721_ACEOF 36722if ac_fn_c_try_link "$LINENO"; then : 36723 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes 36724else 36725 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no 36726fi 36727rm -f core conftest.err conftest.$ac_objext \ 36728 conftest$ac_exeext conftest.$ac_ext 36729 LIBS="$gl_save_LIBS" 36730 36731fi 36732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5 36733$as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; } 36734 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then 36735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask is only a macro" >&5 36736$as_echo_n "checking whether pthread_sigmask is only a macro... " >&6; } 36737if ${gl_cv_func_pthread_sigmask_is_macro+:} false; then : 36738 $as_echo_n "(cached) " >&6 36739else 36740 gl_save_LIBS="$LIBS" 36741 LIBS="$LIBS $LIBMULTITHREAD" 36742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36743/* end confdefs.h. */ 36744#include <pthread.h> 36745 #include <signal.h> 36746 #undef pthread_sigmask 36747 36748int 36749main () 36750{ 36751return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0); 36752 ; 36753 return 0; 36754} 36755 36756_ACEOF 36757if ac_fn_c_try_link "$LINENO"; then : 36758 gl_cv_func_pthread_sigmask_is_macro=no 36759else 36760 gl_cv_func_pthread_sigmask_is_macro=yes 36761fi 36762rm -f core conftest.err conftest.$ac_objext \ 36763 conftest$ac_exeext conftest.$ac_ext 36764 LIBS="$gl_save_LIBS" 36765 36766fi 36767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_is_macro" >&5 36768$as_echo "$gl_cv_func_pthread_sigmask_is_macro" >&6; } 36769 if test $gl_cv_func_pthread_sigmask_is_macro = yes; then 36770 REPLACE_PTHREAD_SIGMASK=1 36771 gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no 36772 fi 36773 fi 36774 if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then 36775 LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD" 36776 else 36777 HAVE_PTHREAD_SIGMASK=0 36778 fi 36779 else 36780 HAVE_PTHREAD_SIGMASK=0 36781 fi 36782 fi 36783 else 36784 if test $ac_cv_func_pthread_sigmask = yes; then 36785 REPLACE_PTHREAD_SIGMASK=1 36786 else 36787 HAVE_PTHREAD_SIGMASK=0 36788 fi 36789 fi 36790 36791 36792 36793 36794 if test $HAVE_PTHREAD_SIGMASK = 1; then 36795 36796 36797 if test -z "$LIB_PTHREAD_SIGMASK"; then 36798 case " $LIBS " in 36799 *' -pthread '*) ;; 36800 *' -lpthread '*) ;; 36801 *) 36802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5 36803$as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; } 36804if ${gl_cv_func_pthread_sigmask_in_libc_works+:} false; then : 36805 $as_echo_n "(cached) " >&6 36806else 36807 36808 if test "$cross_compiling" = yes; then : 36809 36810 case "$host_os" in 36811 freebsd* | hpux* | solaris | solaris2.[2-9]*) 36812 gl_cv_func_pthread_sigmask_in_libc_works="guessing no";; 36813 *) 36814 gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";; 36815 esac 36816 36817else 36818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36819/* end confdefs.h. */ 36820 36821 #include <pthread.h> 36822 #include <signal.h> 36823 #include <stddef.h> 36824 int main () 36825 { 36826 sigset_t set; 36827 sigemptyset (&set); 36828 return pthread_sigmask (1729, &set, NULL) != 0; 36829 } 36830_ACEOF 36831if ac_fn_c_try_run "$LINENO"; then : 36832 gl_cv_func_pthread_sigmask_in_libc_works=no 36833else 36834 gl_cv_func_pthread_sigmask_in_libc_works=yes 36835fi 36836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36837 conftest.$ac_objext conftest.beam conftest.$ac_ext 36838fi 36839 36840 36841fi 36842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5 36843$as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; } 36844 case "$gl_cv_func_pthread_sigmask_in_libc_works" in 36845 *no) 36846 REPLACE_PTHREAD_SIGMASK=1 36847 36848$as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h 36849 36850 ;; 36851 esac;; 36852 esac 36853 fi 36854 36855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5 36856$as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; } 36857if ${gl_cv_func_pthread_sigmask_return_works+:} false; then : 36858 $as_echo_n "(cached) " >&6 36859else 36860 36861 gl_save_LIBS="$LIBS" 36862 LIBS="$LIBS $LIB_PTHREAD_SIGMASK" 36863 if test "$cross_compiling" = yes; then : 36864 case "$host_os" in 36865 cygwin*) 36866 gl_cv_func_pthread_sigmask_return_works="guessing no";; 36867 *) 36868 gl_cv_func_pthread_sigmask_return_works="guessing yes";; 36869 esac 36870 36871else 36872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36873/* end confdefs.h. */ 36874 36875#include <pthread.h> 36876#include <signal.h> 36877#include <stddef.h> 36878int main () 36879{ 36880 sigset_t set; 36881 sigemptyset (&set); 36882 if (pthread_sigmask (1729, &set, NULL) == -1) 36883 return 1; 36884 return 0; 36885} 36886_ACEOF 36887if ac_fn_c_try_run "$LINENO"; then : 36888 gl_cv_func_pthread_sigmask_return_works=yes 36889else 36890 gl_cv_func_pthread_sigmask_return_works=no 36891fi 36892rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36893 conftest.$ac_objext conftest.beam conftest.$ac_ext 36894fi 36895 36896 LIBS="$gl_save_LIBS" 36897 36898fi 36899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5 36900$as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; } 36901 case "$gl_cv_func_pthread_sigmask_return_works" in 36902 *no) 36903 REPLACE_PTHREAD_SIGMASK=1 36904 36905$as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h 36906 36907 ;; 36908 esac 36909 36910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5 36911$as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; } 36912if ${gl_cv_func_pthread_sigmask_unblock_works+:} false; then : 36913 $as_echo_n "(cached) " >&6 36914else 36915 36916 case "$host_os" in 36917 irix*) 36918 gl_cv_func_pthread_sigmask_unblock_works="guessing no";; 36919 *) 36920 gl_cv_func_pthread_sigmask_unblock_works="guessing yes";; 36921 esac 36922 gl_save_LIBS=$LIBS 36923 LIBS="$LIBS $LIBMULTITHREAD" 36924 if test "$cross_compiling" = yes; then : 36925 : 36926else 36927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36928/* end confdefs.h. */ 36929 36930#include <pthread.h> 36931#include <signal.h> 36932#include <stdio.h> 36933#include <stdlib.h> 36934#include <unistd.h> 36935static volatile int sigint_occurred; 36936static void 36937sigint_handler (int sig) 36938{ 36939 sigint_occurred++; 36940} 36941int main () 36942{ 36943 sigset_t set; 36944 int pid = getpid (); 36945 char command[80]; 36946 signal (SIGINT, sigint_handler); 36947 sigemptyset (&set); 36948 sigaddset (&set, SIGINT); 36949 if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0)) 36950 return 1; 36951 sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid); 36952 if (!(system (command) == 0)) 36953 return 2; 36954 sleep (2); 36955 if (!(sigint_occurred == 0)) 36956 return 3; 36957 if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0)) 36958 return 4; 36959 if (!(sigint_occurred == 1)) /* This fails on IRIX. */ 36960 return 5; 36961 return 0; 36962} 36963_ACEOF 36964if ac_fn_c_try_run "$LINENO"; then : 36965 : 36966else 36967 gl_cv_func_pthread_sigmask_unblock_works=no 36968fi 36969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 36970 conftest.$ac_objext conftest.beam conftest.$ac_ext 36971fi 36972 36973 LIBS=$gl_save_LIBS 36974 36975fi 36976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5 36977$as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; } 36978 case "$gl_cv_func_pthread_sigmask_unblock_works" in 36979 *no) 36980 REPLACE_PTHREAD_SIGMASK=1 36981 36982$as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h 36983 36984 ;; 36985 esac 36986 fi 36987 36988 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then 36989 36990 36991 36992 36993 36994 36995 36996 36997 lgltests_LIBOBJS="$lgltests_LIBOBJS pthread_sigmask.$ac_objext" 36998 36999 37000 if test $HAVE_PTHREAD_SIGMASK = 1; then 37001 37002$as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h 37003 37004 fi 37005 37006 fi 37007 37008 37009 37010 37011 37012 if test "$GNULIB_PTHREAD_SIGMASK" != 1; then 37013 if test "$GNULIB_PTHREAD_SIGMASK" = 0; then 37014 GNULIB_PTHREAD_SIGMASK=$gl_module_indicator_condition 37015 else 37016 GNULIB_PTHREAD_SIGMASK="($GNULIB_PTHREAD_SIGMASK || $gl_module_indicator_condition)" 37017 fi 37018 fi 37019 37020 37021 37022 37023 37024$as_echo "#define GNULIB_TEST_PTHREAD_SIGMASK 1" >>confdefs.h 37025 37026 37027 37028 37029 37030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for putenv compatible with GNU and SVID" >&5 37031$as_echo_n "checking for putenv compatible with GNU and SVID... " >&6; } 37032if ${gl_cv_func_svid_putenv+:} false; then : 37033 $as_echo_n "(cached) " >&6 37034else 37035 if test "$cross_compiling" = yes; then : 37036 case "$host_os" in 37037 # Guess yes on glibc systems. 37038 *-gnu* | gnu*) gl_cv_func_svid_putenv="guessing yes" ;; 37039 # Guess no on native Windows. 37040 mingw*) gl_cv_func_svid_putenv="guessing no" ;; 37041 # If we don't know, assume the worst. 37042 *) gl_cv_func_svid_putenv="guessing no" ;; 37043 esac 37044 37045else 37046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37047/* end confdefs.h. */ 37048$ac_includes_default 37049int 37050main () 37051{ 37052 37053 /* Put it in env. */ 37054 if (putenv ("CONFTEST_putenv=val")) 37055 return 1; 37056 37057 /* Try to remove it. */ 37058 if (putenv ("CONFTEST_putenv")) 37059 return 2; 37060 37061 /* Make sure it was deleted. */ 37062 if (getenv ("CONFTEST_putenv") != 0) 37063 return 3; 37064 37065 return 0; 37066 37067 ; 37068 return 0; 37069} 37070_ACEOF 37071if ac_fn_c_try_run "$LINENO"; then : 37072 gl_cv_func_svid_putenv=yes 37073else 37074 gl_cv_func_svid_putenv=no 37075fi 37076rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37077 conftest.$ac_objext conftest.beam conftest.$ac_ext 37078fi 37079 37080 37081fi 37082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_svid_putenv" >&5 37083$as_echo "$gl_cv_func_svid_putenv" >&6; } 37084 case "$gl_cv_func_svid_putenv" in 37085 *yes) ;; 37086 *) 37087 REPLACE_PUTENV=1 37088 ;; 37089 esac 37090 37091 if test $REPLACE_PUTENV = 1; then 37092 37093 37094 37095 37096 37097 37098 37099 37100 lgltests_LIBOBJS="$lgltests_LIBOBJS putenv.$ac_objext" 37101 37102 37103 ac_fn_c_check_decl "$LINENO" "_putenv" "ac_cv_have_decl__putenv" "$ac_includes_default" 37104if test "x$ac_cv_have_decl__putenv" = xyes; then : 37105 ac_have_decl=1 37106else 37107 ac_have_decl=0 37108fi 37109 37110cat >>confdefs.h <<_ACEOF 37111#define HAVE_DECL__PUTENV $ac_have_decl 37112_ACEOF 37113 37114 37115 fi 37116 37117 37118 37119 37120 37121 if test "$GNULIB_PUTENV" != 1; then 37122 if test "$GNULIB_PUTENV" = 0; then 37123 GNULIB_PUTENV=$gl_module_indicator_condition 37124 else 37125 GNULIB_PUTENV="($GNULIB_PUTENV || $gl_module_indicator_condition)" 37126 fi 37127 fi 37128 37129 37130 37131 37132 37133$as_echo "#define GNULIB_TEST_PUTENV 1" >>confdefs.h 37134 37135 37136 37137 37138 37139 37140 for ac_func in raise 37141do : 37142 ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise" 37143if test "x$ac_cv_func_raise" = xyes; then : 37144 cat >>confdefs.h <<_ACEOF 37145#define HAVE_RAISE 1 37146_ACEOF 37147 37148fi 37149done 37150 37151 if test $ac_cv_func_raise = no; then 37152 HAVE_RAISE=0 37153 else 37154 37155 37156 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 37157 REPLACE_RAISE=1 37158 fi 37159 37160 37161 37162 37163 37164 if test $gl_cv_type_sigset_t = yes; then 37165 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 37166if test "x$ac_cv_func_sigprocmask" = xyes; then : 37167 gl_cv_func_sigprocmask=1 37168fi 37169 37170 fi 37171 if test -z "$gl_cv_func_sigprocmask"; then 37172 HAVE_POSIX_SIGNALBLOCKING=0 37173 fi 37174 37175 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 37176 : 37177 fi 37178 37179 fi 37180 37181 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then 37182 37183 37184 37185 37186 37187 37188 37189 37190 lgltests_LIBOBJS="$lgltests_LIBOBJS raise.$ac_objext" 37191 37192 : 37193 fi 37194 37195 37196 37197 37198 37199 if test "$GNULIB_RAISE" != 1; then 37200 if test "$GNULIB_RAISE" = 0; then 37201 GNULIB_RAISE=$gl_module_indicator_condition 37202 else 37203 GNULIB_RAISE="($GNULIB_RAISE || $gl_module_indicator_condition)" 37204 fi 37205 fi 37206 37207 37208 37209 37210 37211$as_echo "#define GNULIB_TEST_RAISE 1" >>confdefs.h 37212 37213 37214 37215 37216 37217 if test $ac_cv_func_setenv = no; then 37218 HAVE_SETENV=0 37219 else 37220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5 37221$as_echo_n "checking whether setenv validates arguments... " >&6; } 37222if ${gl_cv_func_setenv_works+:} false; then : 37223 $as_echo_n "(cached) " >&6 37224else 37225 if test "$cross_compiling" = yes; then : 37226 case "$host_os" in 37227 # Guess yes on glibc systems. 37228 *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; 37229 # If we don't know, assume the worst. 37230 *) gl_cv_func_setenv_works="guessing no" ;; 37231 esac 37232 37233else 37234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37235/* end confdefs.h. */ 37236 37237 #include <stdlib.h> 37238 #include <errno.h> 37239 #include <string.h> 37240 37241int 37242main () 37243{ 37244 37245 int result = 0; 37246 { 37247 if (setenv ("", "", 0) != -1) 37248 result |= 1; 37249 else if (errno != EINVAL) 37250 result |= 2; 37251 } 37252 { 37253 if (setenv ("a", "=", 1) != 0) 37254 result |= 4; 37255 else if (strcmp (getenv ("a"), "=") != 0) 37256 result |= 8; 37257 } 37258 return result; 37259 37260 ; 37261 return 0; 37262} 37263_ACEOF 37264if ac_fn_c_try_run "$LINENO"; then : 37265 gl_cv_func_setenv_works=yes 37266else 37267 gl_cv_func_setenv_works=no 37268fi 37269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 37270 conftest.$ac_objext conftest.beam conftest.$ac_ext 37271fi 37272 37273fi 37274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5 37275$as_echo "$gl_cv_func_setenv_works" >&6; } 37276 case "$gl_cv_func_setenv_works" in 37277 *yes) ;; 37278 *) 37279 REPLACE_SETENV=1 37280 ;; 37281 esac 37282 fi 37283 37284 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then 37285 37286 37287 37288 37289 37290 37291 37292 37293 lgltests_LIBOBJS="$lgltests_LIBOBJS setenv.$ac_objext" 37294 37295 fi 37296 37297 37298 37299 37300 37301 if test "$GNULIB_SETENV" != 1; then 37302 if test "$GNULIB_SETENV" = 0; then 37303 GNULIB_SETENV=$gl_module_indicator_condition 37304 else 37305 GNULIB_SETENV="($GNULIB_SETENV || $gl_module_indicator_condition)" 37306 fi 37307 fi 37308 37309 37310 37311 37312 37313$as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h 37314 37315 37316 37317 37318 37319 37320 case "$host_os" in 37321 mingw*) REPLACE_SETLOCALE=1 ;; 37322 cygwin*) 37323 case `uname -r` in 37324 1.5.*) REPLACE_SETLOCALE=1 ;; 37325 esac 37326 ;; 37327 esac 37328 37329 if test $REPLACE_SETLOCALE = 1; then 37330 37331 37332 37333 37334 37335 37336 37337 37338 lgltests_LIBOBJS="$lgltests_LIBOBJS setlocale.$ac_objext" 37339 37340 37341 : 37342 37343 fi 37344 37345 37346 37347 37348 37349 if test "$GNULIB_SETLOCALE" != 1; then 37350 if test "$GNULIB_SETLOCALE" = 0; then 37351 GNULIB_SETLOCALE=$gl_module_indicator_condition 37352 else 37353 GNULIB_SETLOCALE="($GNULIB_SETLOCALE || $gl_module_indicator_condition)" 37354 fi 37355 fi 37356 37357 37358 37359 37360 37361$as_echo "#define GNULIB_TEST_SETLOCALE 1" >>confdefs.h 37362 37363 37364 37365 37366 37367 37368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5 37369$as_echo_n "checking for a traditional french locale... " >&6; } 37370if ${gt_cv_locale_fr+:} false; then : 37371 $as_echo_n "(cached) " >&6 37372else 37373 37374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37375/* end confdefs.h. */ 37376 37377#include <locale.h> 37378#include <time.h> 37379#if HAVE_LANGINFO_CODESET 37380# include <langinfo.h> 37381#endif 37382#include <stdlib.h> 37383#include <string.h> 37384struct tm t; 37385char buf[16]; 37386int main () { 37387 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 37388 imitates locale dependent behaviour by looking at the environment 37389 variables, and all locales use the UTF-8 encoding. */ 37390#if defined __BEOS__ || defined __HAIKU__ 37391 return 1; 37392#else 37393 /* Check whether the given locale name is recognized by the system. */ 37394# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 37395 /* On native Windows, setlocale(category, "") looks at the system settings, 37396 not at the environment variables. Also, when an encoding suffix such 37397 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 37398 category of the locale to "C". */ 37399 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 37400 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 37401 return 1; 37402# else 37403 if (setlocale (LC_ALL, "") == NULL) return 1; 37404# endif 37405 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 37406 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 37407 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 37408 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 37409 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 37410 some unit tests fail. 37411 On MirBSD 10, when an unsupported locale is specified, setlocale() 37412 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 37413# if HAVE_LANGINFO_CODESET 37414 { 37415 const char *cs = nl_langinfo (CODESET); 37416 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 37417 || strcmp (cs, "UTF-8") == 0) 37418 return 1; 37419 } 37420# endif 37421# ifdef __CYGWIN__ 37422 /* On Cygwin, avoid locale names without encoding suffix, because the 37423 locale_charset() function relies on the encoding suffix. Note that 37424 LC_ALL is set on the command line. */ 37425 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 37426# endif 37427 /* Check whether in the abbreviation of the second month, the second 37428 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only 37429 one byte long. This excludes the UTF-8 encoding. */ 37430 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 37431 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1; 37432# if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 37433 /* Check whether the decimal separator is a comma. 37434 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 37435 are nl_langinfo(RADIXCHAR) are both ".". */ 37436 if (localeconv () ->decimal_point[0] != ',') return 1; 37437# endif 37438 return 0; 37439#endif 37440} 37441 37442_ACEOF 37443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 37444 (eval $ac_link) 2>&5 37445 ac_status=$? 37446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37447 test $ac_status = 0; } && test -s conftest$ac_exeext; then 37448 case "$host_os" in 37449 # Handle native Windows specially, because there setlocale() interprets 37450 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 37451 # "fr" or "fra" as "French" or "French_France.1252", 37452 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 37453 # "ja" as "Japanese" or "Japanese_Japan.932", 37454 # and similar. 37455 mingw*) 37456 # Test for the native Windows locale name. 37457 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37458 gt_cv_locale_fr=French_France.1252 37459 else 37460 # None found. 37461 gt_cv_locale_fr=none 37462 fi 37463 ;; 37464 *) 37465 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 37466 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 37467 # configure script would override the LC_ALL setting. Likewise for 37468 # LC_CTYPE, which is also set at the beginning of the configure script. 37469 # Test for the usual locale name. 37470 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37471 gt_cv_locale_fr=fr_FR 37472 else 37473 # Test for the locale name with explicit encoding suffix. 37474 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37475 gt_cv_locale_fr=fr_FR.ISO-8859-1 37476 else 37477 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 37478 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37479 gt_cv_locale_fr=fr_FR.ISO8859-1 37480 else 37481 # Test for the HP-UX locale name. 37482 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37483 gt_cv_locale_fr=fr_FR.iso88591 37484 else 37485 # Test for the Solaris 7 locale name. 37486 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37487 gt_cv_locale_fr=fr 37488 else 37489 # None found. 37490 gt_cv_locale_fr=none 37491 fi 37492 fi 37493 fi 37494 fi 37495 fi 37496 ;; 37497 esac 37498 fi 37499 rm -fr conftest* 37500 37501fi 37502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5 37503$as_echo "$gt_cv_locale_fr" >&6; } 37504 LOCALE_FR=$gt_cv_locale_fr 37505 37506 37507 37508 37509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5 37510$as_echo_n "checking for a french Unicode locale... " >&6; } 37511if ${gt_cv_locale_fr_utf8+:} false; then : 37512 $as_echo_n "(cached) " >&6 37513else 37514 37515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37516/* end confdefs.h. */ 37517 37518#include <locale.h> 37519#include <time.h> 37520#if HAVE_LANGINFO_CODESET 37521# include <langinfo.h> 37522#endif 37523#include <stdlib.h> 37524#include <string.h> 37525struct tm t; 37526char buf[16]; 37527int main () { 37528 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 37529 imitates locale dependent behaviour by looking at the environment 37530 variables, and all locales use the UTF-8 encoding. */ 37531#if !(defined __BEOS__ || defined __HAIKU__) 37532 /* Check whether the given locale name is recognized by the system. */ 37533# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 37534 /* On native Windows, setlocale(category, "") looks at the system settings, 37535 not at the environment variables. Also, when an encoding suffix such 37536 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 37537 category of the locale to "C". */ 37538 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 37539 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 37540 return 1; 37541# else 37542 if (setlocale (LC_ALL, "") == NULL) return 1; 37543# endif 37544 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 37545 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 37546 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 37547 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 37548 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 37549 some unit tests fail. */ 37550# if HAVE_LANGINFO_CODESET 37551 { 37552 const char *cs = nl_langinfo (CODESET); 37553 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0) 37554 return 1; 37555 } 37556# endif 37557# ifdef __CYGWIN__ 37558 /* On Cygwin, avoid locale names without encoding suffix, because the 37559 locale_charset() function relies on the encoding suffix. Note that 37560 LC_ALL is set on the command line. */ 37561 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 37562# endif 37563 /* Check whether in the abbreviation of the second month, the second 37564 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is 37565 two bytes long, with UTF-8 encoding. */ 37566 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 37567 if (strftime (buf, sizeof (buf), "%b", &t) < 4 37568 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v') 37569 return 1; 37570#endif 37571#if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */ 37572 /* Check whether the decimal separator is a comma. 37573 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point 37574 are nl_langinfo(RADIXCHAR) are both ".". */ 37575 if (localeconv () ->decimal_point[0] != ',') return 1; 37576#endif 37577 return 0; 37578} 37579 37580_ACEOF 37581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 37582 (eval $ac_link) 2>&5 37583 ac_status=$? 37584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37585 test $ac_status = 0; } && test -s conftest$ac_exeext; then 37586 case "$host_os" in 37587 # Handle native Windows specially, because there setlocale() interprets 37588 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 37589 # "fr" or "fra" as "French" or "French_France.1252", 37590 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 37591 # "ja" as "Japanese" or "Japanese_Japan.932", 37592 # and similar. 37593 mingw*) 37594 # Test for the hypothetical native Windows locale name. 37595 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37596 gt_cv_locale_fr_utf8=French_France.65001 37597 else 37598 # None found. 37599 gt_cv_locale_fr_utf8=none 37600 fi 37601 ;; 37602 *) 37603 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 37604 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 37605 # configure script would override the LC_ALL setting. Likewise for 37606 # LC_CTYPE, which is also set at the beginning of the configure script. 37607 # Test for the usual locale name. 37608 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37609 gt_cv_locale_fr_utf8=fr_FR 37610 else 37611 # Test for the locale name with explicit encoding suffix. 37612 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37613 gt_cv_locale_fr_utf8=fr_FR.UTF-8 37614 else 37615 # Test for the Solaris 7 locale name. 37616 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37617 gt_cv_locale_fr_utf8=fr.UTF-8 37618 else 37619 # None found. 37620 gt_cv_locale_fr_utf8=none 37621 fi 37622 fi 37623 fi 37624 ;; 37625 esac 37626 fi 37627 rm -fr conftest* 37628 37629fi 37630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5 37631$as_echo "$gt_cv_locale_fr_utf8" >&6; } 37632 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8 37633 37634 37635 37636 37637 37638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5 37639$as_echo_n "checking for a traditional japanese locale... " >&6; } 37640if ${gt_cv_locale_ja+:} false; then : 37641 $as_echo_n "(cached) " >&6 37642else 37643 37644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37645/* end confdefs.h. */ 37646 37647#include <locale.h> 37648#include <time.h> 37649#if HAVE_LANGINFO_CODESET 37650# include <langinfo.h> 37651#endif 37652#include <stdlib.h> 37653#include <string.h> 37654struct tm t; 37655char buf[16]; 37656int main () 37657{ 37658 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 37659 imitates locale dependent behaviour by looking at the environment 37660 variables, and all locales use the UTF-8 encoding. */ 37661#if defined __BEOS__ || defined __HAIKU__ 37662 return 1; 37663#else 37664 /* Check whether the given locale name is recognized by the system. */ 37665# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 37666 /* On native Windows, setlocale(category, "") looks at the system settings, 37667 not at the environment variables. Also, when an encoding suffix such 37668 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 37669 category of the locale to "C". */ 37670 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 37671 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 37672 return 1; 37673# else 37674 if (setlocale (LC_ALL, "") == NULL) return 1; 37675# endif 37676 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 37677 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 37678 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 37679 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 37680 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 37681 some unit tests fail. 37682 On MirBSD 10, when an unsupported locale is specified, setlocale() 37683 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 37684# if HAVE_LANGINFO_CODESET 37685 { 37686 const char *cs = nl_langinfo (CODESET); 37687 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 37688 || strcmp (cs, "UTF-8") == 0) 37689 return 1; 37690 } 37691# endif 37692# ifdef __CYGWIN__ 37693 /* On Cygwin, avoid locale names without encoding suffix, because the 37694 locale_charset() function relies on the encoding suffix. Note that 37695 LC_ALL is set on the command line. */ 37696 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 37697# endif 37698 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales 37699 on Cygwin 1.5.x. */ 37700 if (MB_CUR_MAX == 1) 37701 return 1; 37702 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 37703 This excludes the UTF-8 encoding (except on MirBSD). */ 37704 { 37705 const char *p; 37706 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 37707 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 37708 for (p = buf; *p != '\0'; p++) 37709 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 37710 return 1; 37711 } 37712 return 0; 37713#endif 37714} 37715 37716_ACEOF 37717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 37718 (eval $ac_link) 2>&5 37719 ac_status=$? 37720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37721 test $ac_status = 0; } && test -s conftest$ac_exeext; then 37722 case "$host_os" in 37723 # Handle native Windows specially, because there setlocale() interprets 37724 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 37725 # "fr" or "fra" as "French" or "French_France.1252", 37726 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 37727 # "ja" as "Japanese" or "Japanese_Japan.932", 37728 # and similar. 37729 mingw*) 37730 # Note that on native Windows, the Japanese locale is 37731 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we 37732 # cannot use it here. 37733 gt_cv_locale_ja=none 37734 ;; 37735 *) 37736 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 37737 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 37738 # configure script would override the LC_ALL setting. Likewise for 37739 # LC_CTYPE, which is also set at the beginning of the configure script. 37740 # Test for the AIX locale name. 37741 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37742 gt_cv_locale_ja=ja_JP 37743 else 37744 # Test for the locale name with explicit encoding suffix. 37745 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37746 gt_cv_locale_ja=ja_JP.EUC-JP 37747 else 37748 # Test for the HP-UX, OSF/1, NetBSD locale name. 37749 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37750 gt_cv_locale_ja=ja_JP.eucJP 37751 else 37752 # Test for the IRIX, FreeBSD locale name. 37753 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37754 gt_cv_locale_ja=ja_JP.EUC 37755 else 37756 # Test for the Solaris 7 locale name. 37757 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37758 gt_cv_locale_ja=ja 37759 else 37760 # Special test for NetBSD 1.6. 37761 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then 37762 gt_cv_locale_ja=ja_JP.eucJP 37763 else 37764 # None found. 37765 gt_cv_locale_ja=none 37766 fi 37767 fi 37768 fi 37769 fi 37770 fi 37771 fi 37772 ;; 37773 esac 37774 fi 37775 rm -fr conftest* 37776 37777fi 37778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5 37779$as_echo "$gt_cv_locale_ja" >&6; } 37780 LOCALE_JA=$gt_cv_locale_ja 37781 37782 37783 37784 37785 37786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5 37787$as_echo_n "checking for a transitional chinese locale... " >&6; } 37788if ${gt_cv_locale_zh_CN+:} false; then : 37789 $as_echo_n "(cached) " >&6 37790else 37791 37792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37793/* end confdefs.h. */ 37794 37795#include <locale.h> 37796#include <stdlib.h> 37797#include <time.h> 37798#if HAVE_LANGINFO_CODESET 37799# include <langinfo.h> 37800#endif 37801#include <stdlib.h> 37802#include <string.h> 37803struct tm t; 37804char buf[16]; 37805int main () 37806{ 37807 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl 37808 imitates locale dependent behaviour by looking at the environment 37809 variables, and all locales use the UTF-8 encoding. */ 37810#if defined __BEOS__ || defined __HAIKU__ 37811 return 1; 37812#else 37813 /* Check whether the given locale name is recognized by the system. */ 37814# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ 37815 /* On native Windows, setlocale(category, "") looks at the system settings, 37816 not at the environment variables. Also, when an encoding suffix such 37817 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE 37818 category of the locale to "C". */ 37819 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL 37820 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0) 37821 return 1; 37822# else 37823 if (setlocale (LC_ALL, "") == NULL) return 1; 37824# endif 37825 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646". 37826 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET) 37827 is empty, and the behaviour of Tcl 8.4 in this locale is not useful. 37828 On OpenBSD 4.0, when an unsupported locale is specified, setlocale() 37829 succeeds but then nl_langinfo(CODESET) is "646". In this situation, 37830 some unit tests fail. 37831 On MirBSD 10, when an unsupported locale is specified, setlocale() 37832 succeeds but then nl_langinfo(CODESET) is "UTF-8". */ 37833# if HAVE_LANGINFO_CODESET 37834 { 37835 const char *cs = nl_langinfo (CODESET); 37836 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0 37837 || strcmp (cs, "UTF-8") == 0) 37838 return 1; 37839 } 37840# endif 37841# ifdef __CYGWIN__ 37842 /* On Cygwin, avoid locale names without encoding suffix, because the 37843 locale_charset() function relies on the encoding suffix. Note that 37844 LC_ALL is set on the command line. */ 37845 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1; 37846# endif 37847 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs. 37848 This excludes the UTF-8 encoding (except on MirBSD). */ 37849 { 37850 const char *p; 37851 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4; 37852 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1; 37853 for (p = buf; *p != '\0'; p++) 37854 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0) 37855 return 1; 37856 } 37857 /* Check whether a typical GB18030 multibyte sequence is recognized as a 37858 single wide character. This excludes the GB2312 and GBK encodings. */ 37859 if (mblen ("\203\062\332\066", 5) != 4) 37860 return 1; 37861 return 0; 37862#endif 37863} 37864 37865_ACEOF 37866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 37867 (eval $ac_link) 2>&5 37868 ac_status=$? 37869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 37870 test $ac_status = 0; } && test -s conftest$ac_exeext; then 37871 case "$host_os" in 37872 # Handle native Windows specially, because there setlocale() interprets 37873 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256", 37874 # "fr" or "fra" as "French" or "French_France.1252", 37875 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252", 37876 # "ja" as "Japanese" or "Japanese_Japan.932", 37877 # and similar. 37878 mingw*) 37879 # Test for the hypothetical native Windows locale name. 37880 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37881 gt_cv_locale_zh_CN=Chinese_China.54936 37882 else 37883 # None found. 37884 gt_cv_locale_zh_CN=none 37885 fi 37886 ;; 37887 solaris2.8) 37888 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are 37889 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK. 37890 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core. 37891 gt_cv_locale_zh_CN=none 37892 ;; 37893 *) 37894 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because 37895 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the 37896 # configure script would override the LC_ALL setting. Likewise for 37897 # LC_CTYPE, which is also set at the beginning of the configure script. 37898 # Test for the locale name without encoding suffix. 37899 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37900 gt_cv_locale_zh_CN=zh_CN 37901 else 37902 # Test for the locale name with explicit encoding suffix. 37903 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 37904 gt_cv_locale_zh_CN=zh_CN.GB18030 37905 else 37906 # None found. 37907 gt_cv_locale_zh_CN=none 37908 fi 37909 fi 37910 ;; 37911 esac 37912 else 37913 # If there was a link error, due to mblen(), the system is so old that 37914 # it certainly doesn't have a chinese locale. 37915 gt_cv_locale_zh_CN=none 37916 fi 37917 rm -fr conftest* 37918 37919fi 37920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5 37921$as_echo "$gt_cv_locale_zh_CN" >&6; } 37922 LOCALE_ZH_CN=$gt_cv_locale_zh_CN 37923 37924 37925 37926 37927 37928 37929 37930 37931 37932 37933 37934 37935 37936 if test $gl_cv_have_include_next = yes; then 37937 gl_cv_next_signal_h='<'signal.h'>' 37938 else 37939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 37940$as_echo_n "checking absolute name of <signal.h>... " >&6; } 37941if ${gl_cv_next_signal_h+:} false; then : 37942 $as_echo_n "(cached) " >&6 37943else 37944 37945 37946 37947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 37948/* end confdefs.h. */ 37949#include <signal.h> 37950_ACEOF 37951 case "$host_os" in 37952 aix*) gl_absname_cpp="$ac_cpp -C" ;; 37953 *) gl_absname_cpp="$ac_cpp" ;; 37954 esac 37955 37956 case "$host_os" in 37957 mingw*) 37958 gl_dirsep_regex='[/\\]' 37959 ;; 37960 *) 37961 gl_dirsep_regex='\/' 37962 ;; 37963 esac 37964 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 37965 gl_header_literal_regex=`echo 'signal.h' \ 37966 | sed -e "$gl_make_literal_regex_sed"` 37967 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 37968 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 37969 s|^/[^/]|//&| 37970 p 37971 q 37972 }' 37973 37974 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 37975 sed -n "$gl_absolute_header_sed"` 37976 37977 gl_header=$gl_cv_absolute_signal_h 37978 gl_cv_next_signal_h='"'$gl_header'"' 37979 37980 37981fi 37982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 37983$as_echo "$gl_cv_next_signal_h" >&6; } 37984 fi 37985 NEXT_SIGNAL_H=$gl_cv_next_signal_h 37986 37987 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 37988 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 37989 gl_next_as_first_directive='<'signal.h'>' 37990 else 37991 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 37992 gl_next_as_first_directive=$gl_cv_next_signal_h 37993 fi 37994 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive 37995 37996 37997 37998 37999 38000# AIX declares sig_atomic_t to already include volatile, and C89 compilers 38001# then choke on 'volatile sig_atomic_t'. C99 requires that it compile. 38002 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " 38003#include <signal.h> 38004 38005" 38006if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes; then : 38007 38008else 38009 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 38010fi 38011 38012 38013 38014 38015 38016 38017 38018 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " 38019#include <signal.h> 38020 38021" 38022if test "x$ac_cv_type_sighandler_t" = xyes; then : 38023 38024else 38025 HAVE_SIGHANDLER_T=0 38026fi 38027 38028 38029 38030 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do 38031 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 38032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 38033$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 38034if eval \${$as_gl_Symbol+:} false; then : 38035 $as_echo_n "(cached) " >&6 38036else 38037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38038/* end confdefs.h. */ 38039#include <signal.h> 38040 38041int 38042main () 38043{ 38044#undef $gl_func 38045 (void) $gl_func; 38046 ; 38047 return 0; 38048} 38049_ACEOF 38050if ac_fn_c_try_compile "$LINENO"; then : 38051 eval "$as_gl_Symbol=yes" 38052else 38053 eval "$as_gl_Symbol=no" 38054fi 38055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38056fi 38057eval ac_res=\$$as_gl_Symbol 38058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 38059$as_echo "$ac_res" >&6; } 38060 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 38061 cat >>confdefs.h <<_ACEOF 38062#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 38063_ACEOF 38064 38065 eval ac_cv_have_decl_$gl_func=yes 38066fi 38067 done 38068 38069 38070 38071 38072 38073 if test $gl_cv_type_sigset_t = yes; then 38074 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" 38075if test "x$ac_cv_func_sigprocmask" = xyes; then : 38076 gl_cv_func_sigprocmask=1 38077fi 38078 38079 fi 38080 if test -z "$gl_cv_func_sigprocmask"; then 38081 HAVE_POSIX_SIGNALBLOCKING=0 38082 fi 38083 38084 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then 38085 38086 38087 38088 38089 38090 38091 38092 38093 lgltests_LIBOBJS="$lgltests_LIBOBJS sigprocmask.$ac_objext" 38094 38095 : 38096 fi 38097 38098 38099 38100 38101 38102 if test "$GNULIB_SIGPROCMASK" != 1; then 38103 if test "$GNULIB_SIGPROCMASK" = 0; then 38104 GNULIB_SIGPROCMASK=$gl_module_indicator_condition 38105 else 38106 GNULIB_SIGPROCMASK="($GNULIB_SIGPROCMASK || $gl_module_indicator_condition)" 38107 fi 38108 fi 38109 38110 38111 38112 38113 38114$as_echo "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h 38115 38116 38117 38118 38119 38120 ac_fn_c_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h> 38121" 38122if test "x$ac_cv_have_decl_sleep" = xyes; then : 38123 ac_have_decl=1 38124else 38125 ac_have_decl=0 38126fi 38127 38128cat >>confdefs.h <<_ACEOF 38129#define HAVE_DECL_SLEEP $ac_have_decl 38130_ACEOF 38131 38132 38133 if test $ac_cv_have_decl_sleep != yes; then 38134 HAVE_SLEEP=0 38135 else 38136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5 38137$as_echo_n "checking for working sleep... " >&6; } 38138if ${gl_cv_func_sleep_works+:} false; then : 38139 $as_echo_n "(cached) " >&6 38140else 38141 if test "$cross_compiling" = yes; then : 38142 case "$host_os" in 38143 # Guess yes on glibc systems. 38144 *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;; 38145 # Guess no on native Windows. 38146 mingw*) gl_cv_func_sleep_works="guessing no" ;; 38147 # If we don't know, assume the worst. 38148 *) gl_cv_func_sleep_works="guessing no" ;; 38149 esac 38150 38151else 38152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38153/* end confdefs.h. */ 38154 38155#include <errno.h> 38156#include <unistd.h> 38157#include <signal.h> 38158static void 38159handle_alarm (int sig) 38160{ 38161 if (sig != SIGALRM) 38162 _exit (2); 38163} 38164 38165int 38166main () 38167{ 38168 38169 /* Failure to compile this test due to missing alarm is okay, 38170 since all such platforms (mingw) also lack sleep. */ 38171 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */ 38172 unsigned int remaining; 38173 signal (SIGALRM, handle_alarm); 38174 alarm (1); 38175 remaining = sleep (pentecost); 38176 if (remaining > pentecost) 38177 return 3; 38178 if (remaining <= pentecost - 10) 38179 return 4; 38180 return 0; 38181 38182 ; 38183 return 0; 38184} 38185_ACEOF 38186if ac_fn_c_try_run "$LINENO"; then : 38187 gl_cv_func_sleep_works=yes 38188else 38189 gl_cv_func_sleep_works=no 38190fi 38191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38192 conftest.$ac_objext conftest.beam conftest.$ac_ext 38193fi 38194 38195fi 38196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5 38197$as_echo "$gl_cv_func_sleep_works" >&6; } 38198 case "$gl_cv_func_sleep_works" in 38199 *yes) ;; 38200 *) 38201 REPLACE_SLEEP=1 38202 ;; 38203 esac 38204 fi 38205 38206 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then 38207 38208 38209 38210 38211 38212 38213 38214 38215 lgltests_LIBOBJS="$lgltests_LIBOBJS sleep.$ac_objext" 38216 38217 fi 38218 38219 38220 38221 38222 38223 if test "$GNULIB_SLEEP" != 1; then 38224 if test "$GNULIB_SLEEP" = 0; then 38225 GNULIB_SLEEP=$gl_module_indicator_condition 38226 else 38227 GNULIB_SLEEP="($GNULIB_SLEEP || $gl_module_indicator_condition)" 38228 fi 38229 fi 38230 38231 38232 38233 38234 38235$as_echo "#define GNULIB_TEST_SLEEP 1" >>confdefs.h 38236 38237 38238 38239 38240 38241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 38242$as_echo_n "checking for working stdalign.h... " >&6; } 38243if ${gl_cv_header_working_stdalign_h+:} false; then : 38244 $as_echo_n "(cached) " >&6 38245else 38246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38247/* end confdefs.h. */ 38248#include <stdalign.h> 38249 #include <stddef.h> 38250 38251 /* Test that alignof yields a result consistent with offsetof. 38252 This catches GCC bug 52023 38253 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ 38254 #ifdef __cplusplus 38255 template <class t> struct alignof_helper { char a; t b; }; 38256 # define ao(type) offsetof (alignof_helper<type>, b) 38257 #else 38258 # define ao(type) offsetof (struct { char a; type b; }, b) 38259 #endif 38260 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; 38261 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; 38262 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; 38263 38264 /* Test _Alignas only on platforms where gnulib can help. */ 38265 #if \ 38266 ((defined __cplusplus && 201103 <= __cplusplus) \ 38267 || (defined __APPLE__ && defined __MACH__ \ 38268 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \ 38269 : __GNUC__) \ 38270 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \ 38271 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \ 38272 || 1300 <= _MSC_VER) 38273 struct alignas_test { char c; char alignas (8) alignas_8; }; 38274 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8 38275 ? 1 : -1]; 38276 #endif 38277 38278int 38279main () 38280{ 38281 38282 ; 38283 return 0; 38284} 38285_ACEOF 38286if ac_fn_c_try_compile "$LINENO"; then : 38287 gl_cv_header_working_stdalign_h=yes 38288else 38289 gl_cv_header_working_stdalign_h=no 38290fi 38291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38292fi 38293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 38294$as_echo "$gl_cv_header_working_stdalign_h" >&6; } 38295 38296 if test $gl_cv_header_working_stdalign_h = yes; then 38297 STDALIGN_H='' 38298 else 38299 STDALIGN_H='stdalign.h' 38300 fi 38301 38302 38303 if test -n "$STDALIGN_H"; then 38304 GL_GENERATE_STDALIGN_H_TRUE= 38305 GL_GENERATE_STDALIGN_H_FALSE='#' 38306else 38307 GL_GENERATE_STDALIGN_H_TRUE='#' 38308 GL_GENERATE_STDALIGN_H_FALSE= 38309fi 38310 38311 38312 38313 38314 38315 38316 38317 38318 38319 38320 38321 38322 38323 38324 if test $gl_cv_have_include_next = yes; then 38325 gl_cv_next_stdlib_h='<'stdlib.h'>' 38326 else 38327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 38328$as_echo_n "checking absolute name of <stdlib.h>... " >&6; } 38329if ${gl_cv_next_stdlib_h+:} false; then : 38330 $as_echo_n "(cached) " >&6 38331else 38332 38333 38334 38335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38336/* end confdefs.h. */ 38337#include <stdlib.h> 38338_ACEOF 38339 case "$host_os" in 38340 aix*) gl_absname_cpp="$ac_cpp -C" ;; 38341 *) gl_absname_cpp="$ac_cpp" ;; 38342 esac 38343 38344 case "$host_os" in 38345 mingw*) 38346 gl_dirsep_regex='[/\\]' 38347 ;; 38348 *) 38349 gl_dirsep_regex='\/' 38350 ;; 38351 esac 38352 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 38353 gl_header_literal_regex=`echo 'stdlib.h' \ 38354 | sed -e "$gl_make_literal_regex_sed"` 38355 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 38356 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 38357 s|^/[^/]|//&| 38358 p 38359 q 38360 }' 38361 38362 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 38363 sed -n "$gl_absolute_header_sed"` 38364 38365 gl_header=$gl_cv_absolute_stdlib_h 38366 gl_cv_next_stdlib_h='"'$gl_header'"' 38367 38368 38369fi 38370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 38371$as_echo "$gl_cv_next_stdlib_h" >&6; } 38372 fi 38373 NEXT_STDLIB_H=$gl_cv_next_stdlib_h 38374 38375 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 38376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 38377 gl_next_as_first_directive='<'stdlib.h'>' 38378 else 38379 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 38380 gl_next_as_first_directive=$gl_cv_next_stdlib_h 38381 fi 38382 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive 38383 38384 38385 38386 38387 38388 38389 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r reallocarray realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do 38390 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 38391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 38392$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 38393if eval \${$as_gl_Symbol+:} false; then : 38394 $as_echo_n "(cached) " >&6 38395else 38396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38397/* end confdefs.h. */ 38398#include <stdlib.h> 38399#if HAVE_SYS_LOADAVG_H 38400/* OpenIndiana has a bug: <sys/time.h> must be included before 38401 <sys/loadavg.h>. */ 38402# include <sys/time.h> 38403# include <sys/loadavg.h> 38404#endif 38405#if HAVE_RANDOM_H 38406# include <random.h> 38407#endif 38408 38409int 38410main () 38411{ 38412#undef $gl_func 38413 (void) $gl_func; 38414 ; 38415 return 0; 38416} 38417_ACEOF 38418if ac_fn_c_try_compile "$LINENO"; then : 38419 eval "$as_gl_Symbol=yes" 38420else 38421 eval "$as_gl_Symbol=no" 38422fi 38423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38424fi 38425eval ac_res=\$$as_gl_Symbol 38426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 38427$as_echo "$ac_res" >&6; } 38428 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 38429 cat >>confdefs.h <<_ACEOF 38430#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 38431_ACEOF 38432 38433 eval ac_cv_have_decl_$gl_func=yes 38434fi 38435 done 38436 38437 38438 38439 38440 38441 if test $gl_threads_api = posix; then 38442 gl_save_LIBS="$LIBS" 38443 LIBS="$LIBS $LIBMULTITHREAD" 38444 for ac_func in pthread_atfork 38445do : 38446 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" 38447if test "x$ac_cv_func_pthread_atfork" = xyes; then : 38448 cat >>confdefs.h <<_ACEOF 38449#define HAVE_PTHREAD_ATFORK 1 38450_ACEOF 38451 38452fi 38453done 38454 38455 LIBS="$gl_save_LIBS" 38456 fi 38457 38458 38459 38460 38461 38462 38463 38464 38465 38466 38467 38468 38469 38470 38471 38472 38473 38474 38475 38476 38477 if test $gl_cv_have_include_next = yes; then 38478 gl_cv_next_unistd_h='<'unistd.h'>' 38479 else 38480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 38481$as_echo_n "checking absolute name of <unistd.h>... " >&6; } 38482if ${gl_cv_next_unistd_h+:} false; then : 38483 $as_echo_n "(cached) " >&6 38484else 38485 38486 if test $ac_cv_header_unistd_h = yes; then 38487 38488 38489 38490 38491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38492/* end confdefs.h. */ 38493#include <unistd.h> 38494_ACEOF 38495 case "$host_os" in 38496 aix*) gl_absname_cpp="$ac_cpp -C" ;; 38497 *) gl_absname_cpp="$ac_cpp" ;; 38498 esac 38499 38500 case "$host_os" in 38501 mingw*) 38502 gl_dirsep_regex='[/\\]' 38503 ;; 38504 *) 38505 gl_dirsep_regex='\/' 38506 ;; 38507 esac 38508 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 38509 gl_header_literal_regex=`echo 'unistd.h' \ 38510 | sed -e "$gl_make_literal_regex_sed"` 38511 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 38512 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 38513 s|^/[^/]|//&| 38514 p 38515 q 38516 }' 38517 38518 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 38519 sed -n "$gl_absolute_header_sed"` 38520 38521 gl_header=$gl_cv_absolute_unistd_h 38522 gl_cv_next_unistd_h='"'$gl_header'"' 38523 else 38524 gl_cv_next_unistd_h='<'unistd.h'>' 38525 fi 38526 38527 38528fi 38529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 38530$as_echo "$gl_cv_next_unistd_h" >&6; } 38531 fi 38532 NEXT_UNISTD_H=$gl_cv_next_unistd_h 38533 38534 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 38535 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 38536 gl_next_as_first_directive='<'unistd.h'>' 38537 else 38538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 38539 gl_next_as_first_directive=$gl_cv_next_unistd_h 38540 fi 38541 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive 38542 38543 38544 38545 38546 if test $ac_cv_header_unistd_h = yes; then 38547 HAVE_UNISTD_H=1 38548 else 38549 HAVE_UNISTD_H=0 38550 fi 38551 38552 38553 38554 38555 38556 38557 38558 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat truncate ttyname_r unlink unlinkat usleep; do 38559 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 38560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 38561$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 38562if eval \${$as_gl_Symbol+:} false; then : 38563 $as_echo_n "(cached) " >&6 38564else 38565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38566/* end confdefs.h. */ 38567 38568#if HAVE_UNISTD_H 38569# include <unistd.h> 38570#endif 38571/* Some systems declare various items in the wrong headers. */ 38572#if !(defined __GLIBC__ && !defined __UCLIBC__) 38573# include <fcntl.h> 38574# include <stdio.h> 38575# include <stdlib.h> 38576# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ 38577# include <io.h> 38578# endif 38579#endif 38580 38581int 38582main () 38583{ 38584#undef $gl_func 38585 (void) $gl_func; 38586 ; 38587 return 0; 38588} 38589_ACEOF 38590if ac_fn_c_try_compile "$LINENO"; then : 38591 eval "$as_gl_Symbol=yes" 38592else 38593 eval "$as_gl_Symbol=no" 38594fi 38595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38596fi 38597eval ac_res=\$$as_gl_Symbol 38598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 38599$as_echo "$ac_res" >&6; } 38600 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 38601 cat >>confdefs.h <<_ACEOF 38602#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 38603_ACEOF 38604 38605 eval ac_cv_have_decl_$gl_func=yes 38606fi 38607 done 38608 38609 38610 38611 38612 38613 if test $ac_cv_have_decl_unsetenv = no; then 38614 HAVE_DECL_UNSETENV=0 38615 fi 38616 for ac_func in unsetenv 38617do : 38618 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 38619if test "x$ac_cv_func_unsetenv" = xyes; then : 38620 cat >>confdefs.h <<_ACEOF 38621#define HAVE_UNSETENV 1 38622_ACEOF 38623 38624fi 38625done 38626 38627 if test $ac_cv_func_unsetenv = no; then 38628 HAVE_UNSETENV=0 38629 else 38630 HAVE_UNSETENV=1 38631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5 38632$as_echo_n "checking for unsetenv() return type... " >&6; } 38633if ${gt_cv_func_unsetenv_ret+:} false; then : 38634 $as_echo_n "(cached) " >&6 38635else 38636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38637/* end confdefs.h. */ 38638 38639#undef _BSD 38640#define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */ 38641#include <stdlib.h> 38642extern 38643#ifdef __cplusplus 38644"C" 38645#endif 38646int unsetenv (const char *name); 38647 38648int 38649main () 38650{ 38651 38652 ; 38653 return 0; 38654} 38655_ACEOF 38656if ac_fn_c_try_compile "$LINENO"; then : 38657 gt_cv_func_unsetenv_ret='int' 38658else 38659 gt_cv_func_unsetenv_ret='void' 38660fi 38661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 38662fi 38663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5 38664$as_echo "$gt_cv_func_unsetenv_ret" >&6; } 38665 if test $gt_cv_func_unsetenv_ret = 'void'; then 38666 38667$as_echo "#define VOID_UNSETENV 1" >>confdefs.h 38668 38669 REPLACE_UNSETENV=1 38670 fi 38671 38672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5 38673$as_echo_n "checking whether unsetenv obeys POSIX... " >&6; } 38674if ${gl_cv_func_unsetenv_works+:} false; then : 38675 $as_echo_n "(cached) " >&6 38676else 38677 if test "$cross_compiling" = yes; then : 38678 case "$host_os" in 38679 # Guess yes on glibc systems. 38680 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;; 38681 # If we don't know, assume the worst. 38682 *) gl_cv_func_unsetenv_works="guessing no" ;; 38683 esac 38684 38685else 38686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38687/* end confdefs.h. */ 38688 38689 #include <stdlib.h> 38690 #include <errno.h> 38691 extern char **environ; 38692 38693int 38694main () 38695{ 38696 38697 char entry1[] = "a=1"; 38698 char entry2[] = "b=2"; 38699 char *env[] = { entry1, entry2, NULL }; 38700 if (putenv ((char *) "a=1")) return 1; 38701 if (putenv (entry2)) return 2; 38702 entry2[0] = 'a'; 38703 unsetenv ("a"); 38704 if (getenv ("a")) return 3; 38705 if (!unsetenv ("") || errno != EINVAL) return 4; 38706 entry2[0] = 'b'; 38707 environ = env; 38708 if (!getenv ("a")) return 5; 38709 entry2[0] = 'a'; 38710 unsetenv ("a"); 38711 if (getenv ("a")) return 6; 38712 38713 ; 38714 return 0; 38715} 38716_ACEOF 38717if ac_fn_c_try_run "$LINENO"; then : 38718 gl_cv_func_unsetenv_works=yes 38719else 38720 gl_cv_func_unsetenv_works=no 38721fi 38722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38723 conftest.$ac_objext conftest.beam conftest.$ac_ext 38724fi 38725 38726fi 38727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5 38728$as_echo "$gl_cv_func_unsetenv_works" >&6; } 38729 case "$gl_cv_func_unsetenv_works" in 38730 *yes) ;; 38731 *) 38732 REPLACE_UNSETENV=1 38733 ;; 38734 esac 38735 fi 38736 38737 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then 38738 38739 38740 38741 38742 38743 38744 38745 38746 lgltests_LIBOBJS="$lgltests_LIBOBJS unsetenv.$ac_objext" 38747 38748 38749 38750 38751 38752 fi 38753 38754 38755 38756 38757 38758 if test "$GNULIB_UNSETENV" != 1; then 38759 if test "$GNULIB_UNSETENV" = 0; then 38760 GNULIB_UNSETENV=$gl_module_indicator_condition 38761 else 38762 GNULIB_UNSETENV="($GNULIB_UNSETENV || $gl_module_indicator_condition)" 38763 fi 38764 fi 38765 38766 38767 38768 38769 38770$as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h 38771 38772 38773 38774 38775 38776 38777 38778 ac_fn_c_check_type "$LINENO" "useconds_t" "ac_cv_type_useconds_t" "$ac_includes_default" 38779if test "x$ac_cv_type_useconds_t" = xyes; then : 38780 38781else 38782 38783$as_echo "#define useconds_t unsigned int" >>confdefs.h 38784 38785fi 38786 38787 if test $ac_cv_func_usleep = no; then 38788 HAVE_USLEEP=0 38789 else 38790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether usleep allows large arguments" >&5 38791$as_echo_n "checking whether usleep allows large arguments... " >&6; } 38792if ${gl_cv_func_usleep_works+:} false; then : 38793 $as_echo_n "(cached) " >&6 38794else 38795 if test "$cross_compiling" = yes; then : 38796 case "$host_os" in 38797 # Guess yes on glibc systems. 38798 *-gnu* | gnu*) gl_cv_func_usleep_works="guessing yes" ;; 38799 # Guess no on native Windows. 38800 mingw*) gl_cv_func_usleep_works="guessing no" ;; 38801 # If we don't know, assume the worst. 38802 *) gl_cv_func_usleep_works="guessing no" ;; 38803 esac 38804 38805else 38806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38807/* end confdefs.h. */ 38808 38809#include <unistd.h> 38810 38811int 38812main () 38813{ 38814return !!usleep (1000000); 38815 ; 38816 return 0; 38817} 38818_ACEOF 38819if ac_fn_c_try_run "$LINENO"; then : 38820 gl_cv_func_usleep_works=yes 38821else 38822 gl_cv_func_usleep_works=no 38823fi 38824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 38825 conftest.$ac_objext conftest.beam conftest.$ac_ext 38826fi 38827 38828fi 38829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_usleep_works" >&5 38830$as_echo "$gl_cv_func_usleep_works" >&6; } 38831 case "$gl_cv_func_usleep_works" in 38832 *yes) ;; 38833 *) 38834 REPLACE_USLEEP=1 38835 ;; 38836 esac 38837 fi 38838 38839 if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then 38840 38841 38842 38843 38844 38845 38846 38847 38848 lgltests_LIBOBJS="$lgltests_LIBOBJS usleep.$ac_objext" 38849 38850 fi 38851 38852 38853 38854 38855 38856 if test "$GNULIB_USLEEP" != 1; then 38857 if test "$GNULIB_USLEEP" = 0; then 38858 GNULIB_USLEEP=$gl_module_indicator_condition 38859 else 38860 GNULIB_USLEEP="($GNULIB_USLEEP || $gl_module_indicator_condition)" 38861 fi 38862 fi 38863 38864 38865 38866 38867 38868$as_echo "#define GNULIB_TEST_USLEEP 1" >>confdefs.h 38869 38870 38871 38872 38873 38874 38875 38876 38877 38878 38879 38880 38881 38882 38883 38884 if test $gl_cv_have_include_next = yes; then 38885 gl_cv_next_wchar_h='<'wchar.h'>' 38886 else 38887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5 38888$as_echo_n "checking absolute name of <wchar.h>... " >&6; } 38889if ${gl_cv_next_wchar_h+:} false; then : 38890 $as_echo_n "(cached) " >&6 38891else 38892 38893 if test $ac_cv_header_wchar_h = yes; then 38894 38895 38896 38897 38898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38899/* end confdefs.h. */ 38900#include <wchar.h> 38901_ACEOF 38902 case "$host_os" in 38903 aix*) gl_absname_cpp="$ac_cpp -C" ;; 38904 *) gl_absname_cpp="$ac_cpp" ;; 38905 esac 38906 38907 case "$host_os" in 38908 mingw*) 38909 gl_dirsep_regex='[/\\]' 38910 ;; 38911 *) 38912 gl_dirsep_regex='\/' 38913 ;; 38914 esac 38915 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' 38916 gl_header_literal_regex=`echo 'wchar.h' \ 38917 | sed -e "$gl_make_literal_regex_sed"` 38918 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ 38919 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ 38920 s|^/[^/]|//&| 38921 p 38922 q 38923 }' 38924 38925 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | 38926 sed -n "$gl_absolute_header_sed"` 38927 38928 gl_header=$gl_cv_absolute_wchar_h 38929 gl_cv_next_wchar_h='"'$gl_header'"' 38930 else 38931 gl_cv_next_wchar_h='<'wchar.h'>' 38932 fi 38933 38934 38935fi 38936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5 38937$as_echo "$gl_cv_next_wchar_h" >&6; } 38938 fi 38939 NEXT_WCHAR_H=$gl_cv_next_wchar_h 38940 38941 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then 38942 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' 38943 gl_next_as_first_directive='<'wchar.h'>' 38944 else 38945 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' 38946 gl_next_as_first_directive=$gl_cv_next_wchar_h 38947 fi 38948 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive 38949 38950 38951 38952 38953 if test $ac_cv_header_wchar_h = yes; then 38954 HAVE_WCHAR_H=1 38955 else 38956 HAVE_WCHAR_H=0 38957 fi 38958 38959 38960 38961 38962 38963 if test $gt_cv_c_wint_t = yes; then 38964 HAVE_WINT_T=1 38965 else 38966 HAVE_WINT_T=0 38967 fi 38968 38969 38970 38971 38972 38973 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth wcsftime ; do 38974 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh` 38975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5 38976$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; } 38977if eval \${$as_gl_Symbol+:} false; then : 38978 $as_echo_n "(cached) " >&6 38979else 38980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 38981/* end confdefs.h. */ 38982 38983/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 38984 <wchar.h>. 38985 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be 38986 included before <wchar.h>. */ 38987#if !(defined __GLIBC__ && !defined __UCLIBC__) 38988# include <stddef.h> 38989# include <stdio.h> 38990# include <time.h> 38991#endif 38992#include <wchar.h> 38993 38994int 38995main () 38996{ 38997#undef $gl_func 38998 (void) $gl_func; 38999 ; 39000 return 0; 39001} 39002_ACEOF 39003if ac_fn_c_try_compile "$LINENO"; then : 39004 eval "$as_gl_Symbol=yes" 39005else 39006 eval "$as_gl_Symbol=no" 39007fi 39008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39009fi 39010eval ac_res=\$$as_gl_Symbol 39011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 39012$as_echo "$ac_res" >&6; } 39013 if eval test \"x\$"$as_gl_Symbol"\" = x"yes"; then : 39014 cat >>confdefs.h <<_ACEOF 39015#define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1 39016_ACEOF 39017 39018 eval ac_cv_have_decl_$gl_func=yes 39019fi 39020 done 39021 39022 39023 39024 39025 YIELD_LIB= 39026 if test $gl_threads_api = posix; then 39027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 39028$as_echo_n "checking for sched_yield in -lrt... " >&6; } 39029if ${ac_cv_lib_rt_sched_yield+:} false; then : 39030 $as_echo_n "(cached) " >&6 39031else 39032 ac_check_lib_save_LIBS=$LIBS 39033LIBS="-lrt $LIBS" 39034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39035/* end confdefs.h. */ 39036 39037/* Override any GCC internal prototype to avoid an error. 39038 Use char because int might match the return type of a GCC 39039 builtin and then its argument prototype would still apply. */ 39040#ifdef __cplusplus 39041extern "C" 39042#endif 39043char sched_yield (); 39044int 39045main () 39046{ 39047return sched_yield (); 39048 ; 39049 return 0; 39050} 39051_ACEOF 39052if ac_fn_c_try_link "$LINENO"; then : 39053 ac_cv_lib_rt_sched_yield=yes 39054else 39055 ac_cv_lib_rt_sched_yield=no 39056fi 39057rm -f core conftest.err conftest.$ac_objext \ 39058 conftest$ac_exeext conftest.$ac_ext 39059LIBS=$ac_check_lib_save_LIBS 39060fi 39061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 39062$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 39063if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 39064 YIELD_LIB=-lrt 39065else 39066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 39067$as_echo_n "checking for sched_yield in -lposix4... " >&6; } 39068if ${ac_cv_lib_posix4_sched_yield+:} false; then : 39069 $as_echo_n "(cached) " >&6 39070else 39071 ac_check_lib_save_LIBS=$LIBS 39072LIBS="-lposix4 $LIBS" 39073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39074/* end confdefs.h. */ 39075 39076/* Override any GCC internal prototype to avoid an error. 39077 Use char because int might match the return type of a GCC 39078 builtin and then its argument prototype would still apply. */ 39079#ifdef __cplusplus 39080extern "C" 39081#endif 39082char sched_yield (); 39083int 39084main () 39085{ 39086return sched_yield (); 39087 ; 39088 return 0; 39089} 39090_ACEOF 39091if ac_fn_c_try_link "$LINENO"; then : 39092 ac_cv_lib_posix4_sched_yield=yes 39093else 39094 ac_cv_lib_posix4_sched_yield=no 39095fi 39096rm -f core conftest.err conftest.$ac_objext \ 39097 conftest$ac_exeext conftest.$ac_ext 39098LIBS=$ac_check_lib_save_LIBS 39099fi 39100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 39101$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } 39102if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : 39103 YIELD_LIB=-lposix4 39104fi 39105 39106fi 39107 39108 fi 39109 39110 39111 39112 39113 39114 39115 39116 39117 39118 39119 39120 39121 LIBTESTS_LIBDEPS="$gltests_libdeps" 39122 39123 39124 39125# Check if locale stuff works 39126 39127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 39128$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 39129if ${am_cv_langinfo_codeset+:} false; then : 39130 $as_echo_n "(cached) " >&6 39131else 39132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39133/* end confdefs.h. */ 39134#include <langinfo.h> 39135int 39136main () 39137{ 39138char* cs = nl_langinfo(CODESET); return !cs; 39139 ; 39140 return 0; 39141} 39142_ACEOF 39143if ac_fn_c_try_link "$LINENO"; then : 39144 am_cv_langinfo_codeset=yes 39145else 39146 am_cv_langinfo_codeset=no 39147fi 39148rm -f core conftest.err conftest.$ac_objext \ 39149 conftest$ac_exeext conftest.$ac_ext 39150 39151fi 39152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 39153$as_echo "$am_cv_langinfo_codeset" >&6; } 39154 if test $am_cv_langinfo_codeset = yes; then 39155 39156$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 39157 39158 fi 39159 39160 39161# Make it possible to disable TLD code. 39162# Check whether --enable-tld was given. 39163if test "${enable_tld+set}" = set; then : 39164 enableval=$enable_tld; enable_tld=$enableval 39165else 39166 enable_tld=yes 39167fi 39168 39169 if test "$enable_tld" != "no"; then 39170 TLD_TRUE= 39171 TLD_FALSE='#' 39172else 39173 TLD_TRUE='#' 39174 TLD_FALSE= 39175fi 39176 39177if test "$enable_tld" != "no"; then 39178 39179$as_echo "#define WITH_TLD 1" >>confdefs.h 39180 39181fi 39182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if TLD API for specific TLD rules should be built" >&5 39183$as_echo_n "checking if TLD API for specific TLD rules should be built... " >&6; } 39184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tld" >&5 39185$as_echo "$enable_tld" >&6; } 39186 39187# Check for gtk-doc. 39188# 39189 39190 39191 39192if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 39193 if test -n "$ac_tool_prefix"; then 39194 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 39195set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 39196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39197$as_echo_n "checking for $ac_word... " >&6; } 39198if ${ac_cv_path_PKG_CONFIG+:} false; then : 39199 $as_echo_n "(cached) " >&6 39200else 39201 case $PKG_CONFIG in 39202 [\\/]* | ?:[\\/]*) 39203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 39204 ;; 39205 *) 39206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39207for as_dir in $PATH 39208do 39209 IFS=$as_save_IFS 39210 test -z "$as_dir" && as_dir=. 39211 for ac_exec_ext in '' $ac_executable_extensions; do 39212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 39214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39215 break 2 39216 fi 39217done 39218 done 39219IFS=$as_save_IFS 39220 39221 ;; 39222esac 39223fi 39224PKG_CONFIG=$ac_cv_path_PKG_CONFIG 39225if test -n "$PKG_CONFIG"; then 39226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 39227$as_echo "$PKG_CONFIG" >&6; } 39228else 39229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39230$as_echo "no" >&6; } 39231fi 39232 39233 39234fi 39235if test -z "$ac_cv_path_PKG_CONFIG"; then 39236 ac_pt_PKG_CONFIG=$PKG_CONFIG 39237 # Extract the first word of "pkg-config", so it can be a program name with args. 39238set dummy pkg-config; ac_word=$2 39239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39240$as_echo_n "checking for $ac_word... " >&6; } 39241if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 39242 $as_echo_n "(cached) " >&6 39243else 39244 case $ac_pt_PKG_CONFIG in 39245 [\\/]* | ?:[\\/]*) 39246 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 39247 ;; 39248 *) 39249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39250for as_dir in $PATH 39251do 39252 IFS=$as_save_IFS 39253 test -z "$as_dir" && as_dir=. 39254 for ac_exec_ext in '' $ac_executable_extensions; do 39255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39256 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 39257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39258 break 2 39259 fi 39260done 39261 done 39262IFS=$as_save_IFS 39263 39264 ;; 39265esac 39266fi 39267ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 39268if test -n "$ac_pt_PKG_CONFIG"; then 39269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 39270$as_echo "$ac_pt_PKG_CONFIG" >&6; } 39271else 39272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39273$as_echo "no" >&6; } 39274fi 39275 39276 if test "x$ac_pt_PKG_CONFIG" = x; then 39277 PKG_CONFIG="" 39278 else 39279 case $cross_compiling:$ac_tool_warned in 39280yes:) 39281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39283ac_tool_warned=yes ;; 39284esac 39285 PKG_CONFIG=$ac_pt_PKG_CONFIG 39286 fi 39287else 39288 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 39289fi 39290 39291fi 39292if test -n "$PKG_CONFIG"; then 39293 _pkg_min_version=0.9.0 39294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 39295$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 39296 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 39297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39298$as_echo "yes" >&6; } 39299 else 39300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39301$as_echo "no" >&6; } 39302 PKG_CONFIG="" 39303 fi 39304 39305fi 39306 39307 39308 39309 gtk_doc_requires="gtk-doc >= 1.1" 39310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 39311$as_echo_n "checking for gtk-doc... " >&6; } 39312 if test -n "$PKG_CONFIG" && \ 39313 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 39314 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 39315 ac_status=$? 39316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39317 test $ac_status = 0; }; then 39318 have_gtk_doc=yes 39319else 39320 have_gtk_doc=no 39321fi 39322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 39323$as_echo "$have_gtk_doc" >&6; } 39324 39325 if test "$have_gtk_doc" = "no"; then 39326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 39327 You will not be able to create source packages with 'make dist' 39328 because $gtk_doc_requires is not found." >&5 39329$as_echo "$as_me: WARNING: 39330 You will not be able to create source packages with 'make dist' 39331 because $gtk_doc_requires is not found." >&2;} 39332 fi 39333 39334 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 39335set dummy gtkdoc-check; ac_word=$2 39336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39337$as_echo_n "checking for $ac_word... " >&6; } 39338if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : 39339 $as_echo_n "(cached) " >&6 39340else 39341 if test -n "$GTKDOC_CHECK"; then 39342 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. 39343else 39344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39345for as_dir in $PATH 39346do 39347 IFS=$as_save_IFS 39348 test -z "$as_dir" && as_dir=. 39349 for ac_exec_ext in '' $ac_executable_extensions; do 39350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39351 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" 39352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39353 break 2 39354 fi 39355done 39356 done 39357IFS=$as_save_IFS 39358 39359fi 39360fi 39361GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK 39362if test -n "$GTKDOC_CHECK"; then 39363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 39364$as_echo "$GTKDOC_CHECK" >&6; } 39365else 39366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39367$as_echo "no" >&6; } 39368fi 39369 39370 39371 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 39372set dummy gtkdoc-check; ac_word=$2 39373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39374$as_echo_n "checking for $ac_word... " >&6; } 39375if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : 39376 $as_echo_n "(cached) " >&6 39377else 39378 case $GTKDOC_CHECK_PATH in 39379 [\\/]* | ?:[\\/]*) 39380 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. 39381 ;; 39382 *) 39383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39384for as_dir in $PATH 39385do 39386 IFS=$as_save_IFS 39387 test -z "$as_dir" && as_dir=. 39388 for ac_exec_ext in '' $ac_executable_extensions; do 39389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39390 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" 39391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39392 break 2 39393 fi 39394done 39395 done 39396IFS=$as_save_IFS 39397 39398 ;; 39399esac 39400fi 39401GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH 39402if test -n "$GTKDOC_CHECK_PATH"; then 39403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 39404$as_echo "$GTKDOC_CHECK_PATH" >&6; } 39405else 39406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39407$as_echo "no" >&6; } 39408fi 39409 39410 39411 for ac_prog in gtkdoc-rebase 39412do 39413 # Extract the first word of "$ac_prog", so it can be a program name with args. 39414set dummy $ac_prog; ac_word=$2 39415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39416$as_echo_n "checking for $ac_word... " >&6; } 39417if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 39418 $as_echo_n "(cached) " >&6 39419else 39420 case $GTKDOC_REBASE in 39421 [\\/]* | ?:[\\/]*) 39422 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 39423 ;; 39424 *) 39425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39426for as_dir in $PATH 39427do 39428 IFS=$as_save_IFS 39429 test -z "$as_dir" && as_dir=. 39430 for ac_exec_ext in '' $ac_executable_extensions; do 39431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39432 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 39433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39434 break 2 39435 fi 39436done 39437 done 39438IFS=$as_save_IFS 39439 39440 ;; 39441esac 39442fi 39443GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 39444if test -n "$GTKDOC_REBASE"; then 39445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 39446$as_echo "$GTKDOC_REBASE" >&6; } 39447else 39448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39449$as_echo "no" >&6; } 39450fi 39451 39452 39453 test -n "$GTKDOC_REBASE" && break 39454done 39455test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 39456 39457 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 39458set dummy gtkdoc-mkpdf; ac_word=$2 39459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39460$as_echo_n "checking for $ac_word... " >&6; } 39461if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 39462 $as_echo_n "(cached) " >&6 39463else 39464 case $GTKDOC_MKPDF in 39465 [\\/]* | ?:[\\/]*) 39466 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 39467 ;; 39468 *) 39469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39470for as_dir in $PATH 39471do 39472 IFS=$as_save_IFS 39473 test -z "$as_dir" && as_dir=. 39474 for ac_exec_ext in '' $ac_executable_extensions; do 39475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39476 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 39477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39478 break 2 39479 fi 39480done 39481 done 39482IFS=$as_save_IFS 39483 39484 ;; 39485esac 39486fi 39487GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 39488if test -n "$GTKDOC_MKPDF"; then 39489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 39490$as_echo "$GTKDOC_MKPDF" >&6; } 39491else 39492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39493$as_echo "no" >&6; } 39494fi 39495 39496 39497 39498 39499# Check whether --with-html-dir was given. 39500if test "${with_html_dir+set}" = set; then : 39501 withval=$with_html_dir; 39502else 39503 with_html_dir='${datadir}/gtk-doc/html' 39504fi 39505 39506 HTML_DIR="$with_html_dir" 39507 39508 39509 # Check whether --enable-gtk-doc was given. 39510if test "${enable_gtk_doc+set}" = set; then : 39511 enableval=$enable_gtk_doc; 39512else 39513 enable_gtk_doc=no 39514fi 39515 39516 39517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 39518$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 39519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 39520$as_echo "$enable_gtk_doc" >&6; } 39521 39522 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then 39523 as_fn_error $? " 39524 You must have $gtk_doc_requires installed to build documentation for 39525 $PACKAGE_NAME. Please install gtk-doc or disable building the 39526 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 39527 fi 39528 39529 if test "x$PACKAGE_NAME" != "xglib"; then 39530 39531pkg_failed=no 39532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 39533$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 39534 39535if test -n "$PKG_CONFIG"; then 39536 if test -n "$GTKDOC_DEPS_CFLAGS"; then 39537 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 39538 else 39539 if test -n "$PKG_CONFIG" && \ 39540 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 39541 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 39542 ac_status=$? 39543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39544 test $ac_status = 0; }; then 39545 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 39546else 39547 pkg_failed=yes 39548fi 39549 fi 39550else 39551 pkg_failed=untried 39552fi 39553if test -n "$PKG_CONFIG"; then 39554 if test -n "$GTKDOC_DEPS_LIBS"; then 39555 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 39556 else 39557 if test -n "$PKG_CONFIG" && \ 39558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 39559 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 39560 ac_status=$? 39561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39562 test $ac_status = 0; }; then 39563 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 39564else 39565 pkg_failed=yes 39566fi 39567 fi 39568else 39569 pkg_failed=untried 39570fi 39571 39572 39573 39574if test $pkg_failed = yes; then 39575 39576if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 39577 _pkg_short_errors_supported=yes 39578else 39579 _pkg_short_errors_supported=no 39580fi 39581 if test $_pkg_short_errors_supported = yes; then 39582 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"` 39583 else 39584 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0"` 39585 fi 39586 # Put the nasty error message in config.log where it belongs 39587 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 39588 39589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39590$as_echo "no" >&6; } 39591 : 39592elif test $pkg_failed = untried; then 39593 : 39594else 39595 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 39596 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 39597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 39598$as_echo "yes" >&6; } 39599 : 39600fi 39601 fi 39602 39603 # Check whether --enable-gtk-doc-html was given. 39604if test "${enable_gtk_doc_html+set}" = set; then : 39605 enableval=$enable_gtk_doc_html; 39606else 39607 enable_gtk_doc_html=yes 39608fi 39609 39610 # Check whether --enable-gtk-doc-pdf was given. 39611if test "${enable_gtk_doc_pdf+set}" = set; then : 39612 enableval=$enable_gtk_doc_pdf; 39613else 39614 enable_gtk_doc_pdf=no 39615fi 39616 39617 39618 if test -z "$GTKDOC_MKPDF"; then 39619 enable_gtk_doc_pdf=no 39620 fi 39621 39622 if test -z "$AM_DEFAULT_VERBOSITY"; then 39623 AM_DEFAULT_VERBOSITY=1 39624 fi 39625 39626 39627 if test x$have_gtk_doc = xyes; then 39628 HAVE_GTK_DOC_TRUE= 39629 HAVE_GTK_DOC_FALSE='#' 39630else 39631 HAVE_GTK_DOC_TRUE='#' 39632 HAVE_GTK_DOC_FALSE= 39633fi 39634 39635 if test x$enable_gtk_doc = xyes; then 39636 ENABLE_GTK_DOC_TRUE= 39637 ENABLE_GTK_DOC_FALSE='#' 39638else 39639 ENABLE_GTK_DOC_TRUE='#' 39640 ENABLE_GTK_DOC_FALSE= 39641fi 39642 39643 if test x$enable_gtk_doc_html = xyes; then 39644 GTK_DOC_BUILD_HTML_TRUE= 39645 GTK_DOC_BUILD_HTML_FALSE='#' 39646else 39647 GTK_DOC_BUILD_HTML_TRUE='#' 39648 GTK_DOC_BUILD_HTML_FALSE= 39649fi 39650 39651 if test x$enable_gtk_doc_pdf = xyes; then 39652 GTK_DOC_BUILD_PDF_TRUE= 39653 GTK_DOC_BUILD_PDF_FALSE='#' 39654else 39655 GTK_DOC_BUILD_PDF_TRUE='#' 39656 GTK_DOC_BUILD_PDF_FALSE= 39657fi 39658 39659 if test -n "$LIBTOOL"; then 39660 GTK_DOC_USE_LIBTOOL_TRUE= 39661 GTK_DOC_USE_LIBTOOL_FALSE='#' 39662else 39663 GTK_DOC_USE_LIBTOOL_TRUE='#' 39664 GTK_DOC_USE_LIBTOOL_FALSE= 39665fi 39666 39667 if test -n "$GTKDOC_REBASE"; then 39668 GTK_DOC_USE_REBASE_TRUE= 39669 GTK_DOC_USE_REBASE_FALSE='#' 39670else 39671 GTK_DOC_USE_REBASE_TRUE='#' 39672 GTK_DOC_USE_REBASE_FALSE= 39673fi 39674 39675 39676 39677 39678 39679# Check for java 39680# Check whether --enable-java was given. 39681if test "${enable_java+set}" = set; then : 39682 enableval=$enable_java; 39683else 39684 enable_java=no 39685fi 39686 39687if test "$enable_java" != "no"; then 39688 39689 39690# Check whether --with-java-prefix was given. 39691if test "${with_java_prefix+set}" = set; then : 39692 withval=$with_java_prefix; 39693fi 39694 39695 39696# Check whether --with-javac-flags was given. 39697if test "${with_javac_flags+set}" = set; then : 39698 withval=$with_javac_flags; 39699fi 39700 39701 39702# Check whether --with-java-flags was given. 39703if test "${with_java_flags+set}" = set; then : 39704 withval=$with_java_flags; 39705fi 39706 39707JAVAPREFIX=$with_java_prefix 39708JAVACFLAGS=$with_javac_flags 39709JAVAFLAGS=$with_java_flags 39710 39711 39712if test "x$JAVAPREFIX" = x; then : 39713 test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac 39714do 39715 # Extract the first word of "$ac_prog", so it can be a program name with args. 39716set dummy $ac_prog; ac_word=$2 39717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39718$as_echo_n "checking for $ac_word... " >&6; } 39719if ${ac_cv_prog_JAVAC+:} false; then : 39720 $as_echo_n "(cached) " >&6 39721else 39722 if test -n "$JAVAC"; then 39723 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 39724else 39725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39726for as_dir in $PATH 39727do 39728 IFS=$as_save_IFS 39729 test -z "$as_dir" && as_dir=. 39730 for ac_exec_ext in '' $ac_executable_extensions; do 39731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39732 ac_cv_prog_JAVAC="$ac_prog" 39733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39734 break 2 39735 fi 39736done 39737 done 39738IFS=$as_save_IFS 39739 39740fi 39741fi 39742JAVAC=$ac_cv_prog_JAVAC 39743if test -n "$JAVAC"; then 39744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 39745$as_echo "$JAVAC" >&6; } 39746else 39747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39748$as_echo "no" >&6; } 39749fi 39750 39751 39752 test -n "$JAVAC" && break 39753done 39754 39755else 39756 test "x$JAVAC" = x && for ac_prog in "gcj -C" guavac jikes javac 39757do 39758 # Extract the first word of "$ac_prog", so it can be a program name with args. 39759set dummy $ac_prog; ac_word=$2 39760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39761$as_echo_n "checking for $ac_word... " >&6; } 39762if ${ac_cv_prog_JAVAC+:} false; then : 39763 $as_echo_n "(cached) " >&6 39764else 39765 if test -n "$JAVAC"; then 39766 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test. 39767else 39768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39769for as_dir in $JAVAPREFIX/bin 39770do 39771 IFS=$as_save_IFS 39772 test -z "$as_dir" && as_dir=. 39773 for ac_exec_ext in '' $ac_executable_extensions; do 39774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39775 ac_cv_prog_JAVAC="$ac_prog" 39776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39777 break 2 39778 fi 39779done 39780 done 39781IFS=$as_save_IFS 39782 39783fi 39784fi 39785JAVAC=$ac_cv_prog_JAVAC 39786if test -n "$JAVAC"; then 39787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 39788$as_echo "$JAVAC" >&6; } 39789else 39790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39791$as_echo "no" >&6; } 39792fi 39793 39794 39795 test -n "$JAVAC" && break 39796done 39797 39798fi 39799test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5 39800 39801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5 39802$as_echo_n "checking if $JAVAC works... " >&6; } 39803if ${ac_cv_prog_javac_works+:} false; then : 39804 $as_echo_n "(cached) " >&6 39805else 39806 39807JAVA_TEST=Test.java 39808CLASS_TEST=Test.class 39809cat << \EOF > $JAVA_TEST 39810/* #line 39810 "configure" */ 39811public class Test { 39812} 39813EOF 39814if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST' 39815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 39816 (eval $ac_try) 2>&5 39817 ac_status=$? 39818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 39819 test $ac_status = 0; }; } >/dev/null 2>&1; then 39820 ac_cv_prog_javac_works=yes 39821else 39822 as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5 39823 echo "configure: failed program was:" >&5 39824 cat $JAVA_TEST >&5 39825fi 39826rm -f $JAVA_TEST $CLASS_TEST 39827 39828fi 39829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5 39830$as_echo "$ac_cv_prog_javac_works" >&6; } 39831 39832 39833 39834if test "x$JAVAPREFIX" = x; then : 39835 test "x$JAVADOC" = x && for ac_prog in javadoc 39836do 39837 # Extract the first word of "$ac_prog", so it can be a program name with args. 39838set dummy $ac_prog; ac_word=$2 39839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39840$as_echo_n "checking for $ac_word... " >&6; } 39841if ${ac_cv_prog_JAVADOC+:} false; then : 39842 $as_echo_n "(cached) " >&6 39843else 39844 if test -n "$JAVADOC"; then 39845 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test. 39846else 39847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39848for as_dir in $PATH 39849do 39850 IFS=$as_save_IFS 39851 test -z "$as_dir" && as_dir=. 39852 for ac_exec_ext in '' $ac_executable_extensions; do 39853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39854 ac_cv_prog_JAVADOC="$ac_prog" 39855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39856 break 2 39857 fi 39858done 39859 done 39860IFS=$as_save_IFS 39861 39862fi 39863fi 39864JAVADOC=$ac_cv_prog_JAVADOC 39865if test -n "$JAVADOC"; then 39866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 39867$as_echo "$JAVADOC" >&6; } 39868else 39869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39870$as_echo "no" >&6; } 39871fi 39872 39873 39874 test -n "$JAVADOC" && break 39875done 39876 39877else 39878 test "x$JAVADOC" = x && for ac_prog in javadoc 39879do 39880 # Extract the first word of "$ac_prog", so it can be a program name with args. 39881set dummy $ac_prog; ac_word=$2 39882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39883$as_echo_n "checking for $ac_word... " >&6; } 39884if ${ac_cv_prog_JAVADOC+:} false; then : 39885 $as_echo_n "(cached) " >&6 39886else 39887 if test -n "$JAVADOC"; then 39888 ac_cv_prog_JAVADOC="$JAVADOC" # Let the user override the test. 39889else 39890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39891for as_dir in $JAVAPREFIX/bin 39892do 39893 IFS=$as_save_IFS 39894 test -z "$as_dir" && as_dir=. 39895 for ac_exec_ext in '' $ac_executable_extensions; do 39896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39897 ac_cv_prog_JAVADOC="$ac_prog" 39898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39899 break 2 39900 fi 39901done 39902 done 39903IFS=$as_save_IFS 39904 39905fi 39906fi 39907JAVADOC=$ac_cv_prog_JAVADOC 39908if test -n "$JAVADOC"; then 39909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 39910$as_echo "$JAVADOC" >&6; } 39911else 39912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39913$as_echo "no" >&6; } 39914fi 39915 39916 39917 test -n "$JAVADOC" && break 39918done 39919 39920fi 39921test "x$JAVADOC" = x && as_fn_error $? "no acceptable javadoc generator found in \$PATH" "$LINENO" 5 39922 39923 39924 39925if test "x$JAVAPREFIX" = x; then 39926 test "x$JAR" = x && for ac_prog in jar$EXEEXT 39927do 39928 # Extract the first word of "$ac_prog", so it can be a program name with args. 39929set dummy $ac_prog; ac_word=$2 39930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39931$as_echo_n "checking for $ac_word... " >&6; } 39932if ${ac_cv_prog_JAR+:} false; then : 39933 $as_echo_n "(cached) " >&6 39934else 39935 if test -n "$JAR"; then 39936 ac_cv_prog_JAR="$JAR" # Let the user override the test. 39937else 39938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39939for as_dir in $PATH 39940do 39941 IFS=$as_save_IFS 39942 test -z "$as_dir" && as_dir=. 39943 for ac_exec_ext in '' $ac_executable_extensions; do 39944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39945 ac_cv_prog_JAR="$ac_prog" 39946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39947 break 2 39948 fi 39949done 39950 done 39951IFS=$as_save_IFS 39952 39953fi 39954fi 39955JAR=$ac_cv_prog_JAR 39956if test -n "$JAR"; then 39957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 39958$as_echo "$JAR" >&6; } 39959else 39960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39961$as_echo "no" >&6; } 39962fi 39963 39964 39965 test -n "$JAR" && break 39966done 39967 39968else 39969 test "x$JAR" = x && for ac_prog in jar 39970do 39971 # Extract the first word of "$ac_prog", so it can be a program name with args. 39972set dummy $ac_prog; ac_word=$2 39973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39974$as_echo_n "checking for $ac_word... " >&6; } 39975if ${ac_cv_prog_JAR+:} false; then : 39976 $as_echo_n "(cached) " >&6 39977else 39978 if test -n "$JAR"; then 39979 ac_cv_prog_JAR="$JAR" # Let the user override the test. 39980else 39981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39982for as_dir in $PATH 39983do 39984 IFS=$as_save_IFS 39985 test -z "$as_dir" && as_dir=. 39986 for ac_exec_ext in '' $ac_executable_extensions; do 39987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39988 ac_cv_prog_JAR="$ac_prog" 39989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39990 break 2 39991 fi 39992done 39993 done 39994IFS=$as_save_IFS 39995 39996fi 39997fi 39998JAR=$ac_cv_prog_JAR 39999if test -n "$JAR"; then 40000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 40001$as_echo "$JAR" >&6; } 40002else 40003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40004$as_echo "no" >&6; } 40005fi 40006 40007 40008 test -n "$JAR" && break 40009done 40010test -n "$JAR" || JAR="$JAVAPREFIX" 40011 40012fi 40013test "x$JAR" = x && as_fn_error $? "no acceptable jar program found in \$PATH" "$LINENO" 5 40014 40015 40016JAVADOC=${JAVADOC-"${am_missing_run}javadoc"} 40017 40018fi 40019 if test "$enable_java" != "no"; then 40020 JAVA_TRUE= 40021 JAVA_FALSE='#' 40022else 40023 JAVA_TRUE='#' 40024 JAVA_FALSE= 40025fi 40026 40027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if implementation in Java should be built" >&5 40028$as_echo_n "checking if implementation in Java should be built... " >&6; } 40029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_java" >&5 40030$as_echo "$enable_java" >&6; } 40031 40032# Check for C# 40033if test -n "$HAVE_CSHARPCOMP"; then 40034 40035 40036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C# program execution engine" >&5 40037$as_echo_n "checking for C# program execution engine... " >&6; } 40038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40039/* end confdefs.h. */ 40040 40041#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__ 40042 yes 40043#endif 40044 40045_ACEOF 40046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40047 $EGREP "yes" >/dev/null 2>&1; then : 40048 MONO_PATH_SEPARATOR=';' 40049else 40050 MONO_PATH_SEPARATOR=':' 40051fi 40052rm -f conftest* 40053 40054 HAVE_CSHARPEXEC=1 40055 # Extract the first word of "ilrun", so it can be a program name with args. 40056set dummy ilrun; ac_word=$2 40057: 40058if ${ac_cv_prog_HAVE_ILRUN_IN_PATH+:} false; then : 40059 $as_echo_n "(cached) " >&6 40060else 40061 if test -n "$HAVE_ILRUN_IN_PATH"; then 40062 ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test. 40063else 40064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40065for as_dir in $PATH 40066do 40067 IFS=$as_save_IFS 40068 test -z "$as_dir" && as_dir=. 40069 for ac_exec_ext in '' $ac_executable_extensions; do 40070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40071 ac_cv_prog_HAVE_ILRUN_IN_PATH="yes" 40072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40073 break 2 40074 fi 40075done 40076 done 40077IFS=$as_save_IFS 40078 40079fi 40080fi 40081HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH 40082if test -n "$HAVE_ILRUN_IN_PATH"; then 40083 : 40084else 40085 : 40086fi 40087 40088 40089 # Extract the first word of "mono", so it can be a program name with args. 40090set dummy mono; ac_word=$2 40091: 40092if ${ac_cv_prog_HAVE_MONO_IN_PATH+:} false; then : 40093 $as_echo_n "(cached) " >&6 40094else 40095 if test -n "$HAVE_MONO_IN_PATH"; then 40096 ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test. 40097else 40098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40099for as_dir in $PATH 40100do 40101 IFS=$as_save_IFS 40102 test -z "$as_dir" && as_dir=. 40103 for ac_exec_ext in '' $ac_executable_extensions; do 40104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40105 ac_cv_prog_HAVE_MONO_IN_PATH="yes" 40106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40107 break 2 40108 fi 40109done 40110 done 40111IFS=$as_save_IFS 40112 40113fi 40114fi 40115HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH 40116if test -n "$HAVE_MONO_IN_PATH"; then 40117 : 40118else 40119 : 40120fi 40121 40122 40123 # Extract the first word of "clix", so it can be a program name with args. 40124set dummy clix; ac_word=$2 40125: 40126if ${ac_cv_prog_HAVE_CLIX_IN_PATH+:} false; then : 40127 $as_echo_n "(cached) " >&6 40128else 40129 if test -n "$HAVE_CLIX_IN_PATH"; then 40130 ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test. 40131else 40132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40133for as_dir in $PATH 40134do 40135 IFS=$as_save_IFS 40136 test -z "$as_dir" && as_dir=. 40137 for ac_exec_ext in '' $ac_executable_extensions; do 40138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40139 ac_cv_prog_HAVE_CLIX_IN_PATH="yes" 40140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40141 break 2 40142 fi 40143done 40144 done 40145IFS=$as_save_IFS 40146 40147fi 40148fi 40149HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH 40150if test -n "$HAVE_CLIX_IN_PATH"; then 40151 : 40152else 40153 : 40154fi 40155 40156 40157 for impl in "$CSHARP_CHOICE" pnet mono no; do 40158 case "$impl" in 40159 pnet) 40160 if test -n "$HAVE_ILRUN_IN_PATH" \ 40161 && ilrun --version >/dev/null 2>/dev/null \ 40162 ; then 40163 HAVE_ILRUN=1 40164 ac_result="ilrun" 40165 break 40166 fi 40167 ;; 40168 mono) 40169 if test -n "$HAVE_MONO_IN_PATH" \ 40170 && mono --version >/dev/null 2>/dev/null \ 40171 ; then 40172 HAVE_MONO=1 40173 ac_result="mono" 40174 break 40175 fi 40176 ;; 40177 sscli) 40178 if test -n "$HAVE_CLIX_IN_PATH" \ 40179 ; then 40180 HAVE_CLIX=1 40181 case $host_os in 40182 cygwin* | mingw* | pw32*) 40183 CLIX_PATH_VAR=PATH 40184 ;; 40185 darwin* | rhapsody*) 40186 CLIX_PATH_VAR=DYLD_LIBRARY_PATH 40187 ;; 40188 *) 40189 CLIX_PATH_VAR=LD_LIBRARY_PATH 40190 ;; 40191 esac 40192 eval CLIX_PATH=\"\$CLIX_PATH_VAR\" 40193 ac_result="clix" 40194 break 40195 fi 40196 ;; 40197 no) 40198 HAVE_CSHARPEXEC= 40199 ac_result="no" 40200 break 40201 ;; 40202 esac 40203 done 40204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_result" >&5 40205$as_echo "$ac_result" >&6; } 40206 40207 40208 40209 40210 40211 40212 40213 40214fi 40215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if implementation in C# should be built" >&5 40216$as_echo_n "checking if implementation in C# should be built... " >&6; } 40217if test -n "$HAVE_CSHARPCOMP" && test -n "$HAVE_CSHARPEXEC"; then 40218 enable_csharp=yes 40219else 40220 enable_csharp=no 40221fi 40222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_csharp" >&5 40223$as_echo "$enable_csharp" >&6; } 40224 if test "$enable_csharp" = yes; then 40225 CSHARP_TRUE= 40226 CSHARP_FALSE='#' 40227else 40228 CSHARP_TRUE='#' 40229 CSHARP_FALSE= 40230fi 40231 40232 40233 40234 # Update version number in lib/libtasn1.h. 40235 if ! sed 's/_VERSION ".*"/_VERSION "'$PACKAGE_VERSION'"/' $srcdir/lib/stringprep.h > fixhdr.tmp; then 40236 as_fn_error $? "*** Failed to update version number in $srcdir/lib/stringprep.h..." "$LINENO" 5 40237 fi 40238 if cmp -s $srcdir/lib/stringprep.h fixhdr.tmp 2>/dev/null; then 40239 rm -f fixhdr.tmp 40240 elif ! mv fixhdr.tmp $srcdir/lib/stringprep.h; then 40241 as_fn_error $? "*** Failed to move fixhdr.tmp to $srcdir/lib/stringprep.h..." "$LINENO" 5 40242 fi 40243 40244 40245ubsan=no 40246# Check whether --enable-ubsan was given. 40247if test "${enable_ubsan+set}" = set; then : 40248 enableval=$enable_ubsan; 40249 if test "$enableval" = yes; then 40250 ubsan=yes 40251 CFLAGS=$CFLAGS" -fsanitize=undefined -fno-sanitize-recover=undefined" 40252 fi 40253 40254fi 40255 40256 40257asan=no 40258# Check whether --enable-asan was given. 40259if test "${enable_asan+set}" = set; then : 40260 enableval=$enable_asan; 40261 if test "$enableval" = yes; then 40262 asan=yes 40263 CFLAGS=$CFLAGS" -fsanitize=address -fno-omit-frame-pointer" 40264 fi 40265 40266fi 40267 40268 40269# Check whether --enable-gcc-warnings was given. 40270if test "${enable_gcc_warnings+set}" = set; then : 40271 enableval=$enable_gcc_warnings; case $enableval in 40272 yes|no) ;; 40273 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;; 40274 esac 40275 gl_gcc_warnings=$enableval 40276else 40277 gl_gcc_warnings=no 40278 40279fi 40280 40281 40282if test "$gl_gcc_warnings" = yes; then 40283 40284 ac_ext=c 40285ac_cpp='$CPP $CPPFLAGS' 40286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40288ac_compiler_gnu=$ac_cv_c_compiler_gnu 40289 40290 40291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5 40292$as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; } 40293if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then : 40294 $as_echo_n "(cached) " >&6 40295else 40296 40297 gl_save_compiler_FLAGS="$CFLAGS" 40298 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 40299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40300/* end confdefs.h. */ 40301 40302int 40303main () 40304{ 40305 40306 ; 40307 return 0; 40308} 40309_ACEOF 40310if ac_fn_c_try_link "$LINENO"; then : 40311 gl_cv_warn_c__Werror__Wunknown_warning_option=yes 40312else 40313 gl_cv_warn_c__Werror__Wunknown_warning_option=no 40314fi 40315rm -f core conftest.err conftest.$ac_objext \ 40316 conftest$ac_exeext conftest.$ac_ext 40317 CFLAGS="$gl_save_compiler_FLAGS" 40318 40319fi 40320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5 40321$as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; } 40322if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then : 40323 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 40324else 40325 gl_unknown_warnings_are_errors= 40326fi 40327 40328 ac_ext=c 40329ac_cpp='$CPP $CPPFLAGS' 40330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40332ac_compiler_gnu=$ac_cv_c_compiler_gnu 40333 40334 40335 40336 40337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wframe-larger-than=160" >&5 40338$as_echo_n "checking whether C compiler handles -Wframe-larger-than=160... " >&6; } 40339if ${gl_cv_warn_c__Wframe_larger_than_160+:} false; then : 40340 $as_echo_n "(cached) " >&6 40341else 40342 40343 gl_save_compiler_FLAGS="$CFLAGS" 40344 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wframe-larger-than=160" 40345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40346/* end confdefs.h. */ 40347 40348int 40349main () 40350{ 40351 40352 ; 40353 return 0; 40354} 40355_ACEOF 40356if ac_fn_c_try_link "$LINENO"; then : 40357 gl_cv_warn_c__Wframe_larger_than_160=yes 40358else 40359 gl_cv_warn_c__Wframe_larger_than_160=no 40360fi 40361rm -f core conftest.err conftest.$ac_objext \ 40362 conftest$ac_exeext conftest.$ac_ext 40363 CFLAGS="$gl_save_compiler_FLAGS" 40364 40365fi 40366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wframe_larger_than_160" >&5 40367$as_echo "$gl_cv_warn_c__Wframe_larger_than_160" >&6; } 40368if test "x$gl_cv_warn_c__Wframe_larger_than_160" = xyes; then : 40369 as_fn_append WSTACK_CFLAGS " -Wframe-larger-than=160" 40370fi 40371 40372 40373 40374 nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings 40375 nw="$nw -Wpadded" # Struct in src/idn_cmd.h is not padded 40376 nw="$nw -Wformat" # Self tests and examples print size_t as %d 40377 nw="$nw -Wc++-compat" # We don't care strongly about C++ compilers 40378 nw="$nw -Woverlength-strings" # Some of our strings are too large 40379 nw="$nw -Wsign-conversion" # Too many warnings for now 40380 nw="$nw -Wconversion" # Too many warnings for now 40381 nw="$nw -Wtraditional" # Warns on #elif which we use often 40382 nw="$nw -Wtraditional-conversion" # Too many warnings for now 40383 nw="$nw -Wmissing-noreturn" # Too many warnings for now 40384 nw="$nw -Wunreachable-code" # Too many false positives 40385 nw="$nw -Wlogical-op" # Too many false positives 40386 nw="$nw -Wsuggest-attribute=pure" # Is it worth using attributes? 40387 nw="$nw -Wsuggest-attribute=const" # Is it worth using attributes? 40388 40389 40390 ac_ext=c 40391ac_cpp='$CPP $CPPFLAGS' 40392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40394ac_compiler_gnu=$ac_cv_c_compiler_gnu 40395 40396 40397 40398 if test -n "$GCC"; then 40399 40400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 40401$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; } 40402 if ${gl_cv_cc_nomfi_supported+:} false; then : 40403 $as_echo_n "(cached) " >&6 40404else 40405 40406 gl_save_CFLAGS="$CFLAGS" 40407 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers" 40408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40409/* end confdefs.h. */ 40410 40411int 40412main () 40413{ 40414 40415 ; 40416 return 0; 40417} 40418_ACEOF 40419if ac_fn_c_try_compile "$LINENO"; then : 40420 gl_cv_cc_nomfi_supported=yes 40421else 40422 gl_cv_cc_nomfi_supported=no 40423fi 40424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40425 CFLAGS="$gl_save_CFLAGS" 40426fi 40427 40428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 40429$as_echo "$gl_cv_cc_nomfi_supported" >&6; } 40430 40431 if test "$gl_cv_cc_nomfi_supported" = yes; then 40432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 40433$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; } 40434 if ${gl_cv_cc_nomfi_needed+:} false; then : 40435 $as_echo_n "(cached) " >&6 40436else 40437 40438 gl_save_CFLAGS="$CFLAGS" 40439 CFLAGS="$CFLAGS -W -Werror" 40440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40441/* end confdefs.h. */ 40442int f (void) 40443 { 40444 typedef struct { int a; int b; } s_t; 40445 s_t s1 = { 0, }; 40446 return s1.b; 40447 } 40448 40449int 40450main () 40451{ 40452 40453 ; 40454 return 0; 40455} 40456_ACEOF 40457if ac_fn_c_try_compile "$LINENO"; then : 40458 gl_cv_cc_nomfi_needed=no 40459else 40460 gl_cv_cc_nomfi_needed=yes 40461fi 40462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40463 CFLAGS="$gl_save_CFLAGS" 40464 40465fi 40466 40467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 40468$as_echo "$gl_cv_cc_nomfi_needed" >&6; } 40469 fi 40470 40471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 40472$as_echo_n "checking whether -Wuninitialized is supported... " >&6; } 40473 if ${gl_cv_cc_uninitialized_supported+:} false; then : 40474 $as_echo_n "(cached) " >&6 40475else 40476 40477 gl_save_CFLAGS="$CFLAGS" 40478 CFLAGS="$CFLAGS -Werror -Wuninitialized" 40479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40480/* end confdefs.h. */ 40481 40482int 40483main () 40484{ 40485 40486 ; 40487 return 0; 40488} 40489_ACEOF 40490if ac_fn_c_try_compile "$LINENO"; then : 40491 gl_cv_cc_uninitialized_supported=yes 40492else 40493 gl_cv_cc_uninitialized_supported=no 40494fi 40495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40496 CFLAGS="$gl_save_CFLAGS" 40497fi 40498 40499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 40500$as_echo "$gl_cv_cc_uninitialized_supported" >&6; } 40501 40502 fi 40503 40504 # List all gcc warning categories. 40505 # To compare this list to your installed GCC's, run this Bash command: 40506 # 40507 # comm -3 \ 40508 # <(sed -n 's/^ *\(-[^ 0-9][^ ]*\) .*/\1/p' manywarnings.m4 | sort) \ 40509 # <(gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort | 40510 # grep -v -x -F -f <( 40511 # awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec)) 40512 40513 gl_manywarn_set= 40514 for gl_manywarn_item in -fno-common \ 40515 -W \ 40516 -Wabi \ 40517 -Waddress \ 40518 -Waggressive-loop-optimizations \ 40519 -Wall \ 40520 -Wattributes \ 40521 -Wbad-function-cast \ 40522 -Wbool-compare \ 40523 -Wbool-operation \ 40524 -Wbuiltin-declaration-mismatch \ 40525 -Wbuiltin-macro-redefined \ 40526 -Wcast-align \ 40527 -Wchar-subscripts \ 40528 -Wchkp \ 40529 -Wclobbered \ 40530 -Wcomment \ 40531 -Wcomments \ 40532 -Wcoverage-mismatch \ 40533 -Wcpp \ 40534 -Wdangling-else \ 40535 -Wdate-time \ 40536 -Wdeprecated \ 40537 -Wdeprecated-declarations \ 40538 -Wdesignated-init \ 40539 -Wdisabled-optimization \ 40540 -Wdiscarded-array-qualifiers \ 40541 -Wdiscarded-qualifiers \ 40542 -Wdiv-by-zero \ 40543 -Wdouble-promotion \ 40544 -Wduplicated-branches \ 40545 -Wduplicated-cond \ 40546 -Wduplicate-decl-specifier \ 40547 -Wempty-body \ 40548 -Wendif-labels \ 40549 -Wenum-compare \ 40550 -Wexpansion-to-defined \ 40551 -Wextra \ 40552 -Wformat-contains-nul \ 40553 -Wformat-extra-args \ 40554 -Wformat-nonliteral \ 40555 -Wformat-security \ 40556 -Wformat-signedness \ 40557 -Wformat-y2k \ 40558 -Wformat-zero-length \ 40559 -Wframe-address \ 40560 -Wfree-nonheap-object \ 40561 -Whsa \ 40562 -Wignored-attributes \ 40563 -Wignored-qualifiers \ 40564 -Wimplicit \ 40565 -Wimplicit-function-declaration \ 40566 -Wimplicit-int \ 40567 -Wincompatible-pointer-types \ 40568 -Winit-self \ 40569 -Winline \ 40570 -Wint-conversion \ 40571 -Wint-in-bool-context \ 40572 -Wint-to-pointer-cast \ 40573 -Winvalid-memory-model \ 40574 -Winvalid-pch \ 40575 -Wjump-misses-init \ 40576 -Wlogical-not-parentheses \ 40577 -Wlogical-op \ 40578 -Wmain \ 40579 -Wmaybe-uninitialized \ 40580 -Wmemset-elt-size \ 40581 -Wmemset-transposed-args \ 40582 -Wmisleading-indentation \ 40583 -Wmissing-braces \ 40584 -Wmissing-declarations \ 40585 -Wmissing-field-initializers \ 40586 -Wmissing-include-dirs \ 40587 -Wmissing-parameter-type \ 40588 -Wmissing-prototypes \ 40589 -Wmultichar \ 40590 -Wnarrowing \ 40591 -Wnested-externs \ 40592 -Wnonnull \ 40593 -Wnonnull-compare \ 40594 -Wnull-dereference \ 40595 -Wodr \ 40596 -Wold-style-declaration \ 40597 -Wold-style-definition \ 40598 -Wopenmp-simd \ 40599 -Woverflow \ 40600 -Woverlength-strings \ 40601 -Woverride-init \ 40602 -Wpacked \ 40603 -Wpacked-bitfield-compat \ 40604 -Wparentheses \ 40605 -Wpointer-arith \ 40606 -Wpointer-compare \ 40607 -Wpointer-sign \ 40608 -Wpointer-to-int-cast \ 40609 -Wpragmas \ 40610 -Wpsabi \ 40611 -Wrestrict \ 40612 -Wreturn-local-addr \ 40613 -Wreturn-type \ 40614 -Wscalar-storage-order \ 40615 -Wsequence-point \ 40616 -Wshadow \ 40617 -Wshift-count-negative \ 40618 -Wshift-count-overflow \ 40619 -Wshift-negative-value \ 40620 -Wsizeof-array-argument \ 40621 -Wsizeof-pointer-memaccess \ 40622 -Wstack-protector \ 40623 -Wstrict-aliasing \ 40624 -Wstrict-overflow \ 40625 -Wstrict-prototypes \ 40626 -Wsuggest-attribute=const \ 40627 -Wsuggest-attribute=format \ 40628 -Wsuggest-attribute=noreturn \ 40629 -Wsuggest-attribute=pure \ 40630 -Wsuggest-final-methods \ 40631 -Wsuggest-final-types \ 40632 -Wswitch \ 40633 -Wswitch-bool \ 40634 -Wswitch-default \ 40635 -Wswitch-unreachable \ 40636 -Wsync-nand \ 40637 -Wsystem-headers \ 40638 -Wtautological-compare \ 40639 -Wtrampolines \ 40640 -Wtrigraphs \ 40641 -Wtype-limits \ 40642 -Wuninitialized \ 40643 -Wunknown-pragmas \ 40644 -Wunsafe-loop-optimizations \ 40645 -Wunused \ 40646 -Wunused-but-set-parameter \ 40647 -Wunused-but-set-variable \ 40648 -Wunused-function \ 40649 -Wunused-label \ 40650 -Wunused-local-typedefs \ 40651 -Wunused-macros \ 40652 -Wunused-parameter \ 40653 -Wunused-result \ 40654 -Wunused-value \ 40655 -Wunused-variable \ 40656 -Wvarargs \ 40657 -Wvariadic-macros \ 40658 -Wvector-operation-performance \ 40659 -Wvla \ 40660 -Wvolatile-register-var \ 40661 -Wwrite-strings \ 40662 \ 40663 ; do 40664 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" 40665 done 40666 40667 # gcc --help=warnings outputs an unusual form for these options; list 40668 # them here so that the above 'comm' command doesn't report a false match. 40669 # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal. 40670 # Also, AC_COMPUTE_INT requires it to fit in a long; it is 2**63 on 40671 # the only platforms where it does not fit in a long, so make that 40672 # a special case. 40673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max safe object size" >&5 40674$as_echo_n "checking max safe object size... " >&6; } 40675 if ac_fn_c_compute_int "$LINENO" "LONG_MAX < (PTRDIFF_MAX < (size_t) -1 ? PTRDIFF_MAX : (size_t) -1) 40676 ? -1 40677 : PTRDIFF_MAX < (size_t) -1 ? (long) PTRDIFF_MAX : (long) (size_t) -1" "gl_alloc_max" "#include <limits.h> 40678 #include <stddef.h> 40679 #include <stdint.h> 40680 "; then : 40681 40682else 40683 gl_alloc_max=2147483647 40684fi 40685 40686 case $gl_alloc_max in 40687 -1) gl_alloc_max=9223372036854775807;; 40688 esac 40689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_alloc_max" >&5 40690$as_echo "$gl_alloc_max" >&6; } 40691 gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max" 40692 gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" 40693 gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2" 40694 gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2" 40695 gl_manywarn_set="$gl_manywarn_set -Wimplicit-fallthrough=5" 40696 gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc" 40697 gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2" 40698 gl_manywarn_set="$gl_manywarn_set -Wstringop-overflow=2" 40699 gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2" 40700 gl_manywarn_set="$gl_manywarn_set -Wvla-larger-than=4031" 40701 40702 # These are needed for older GCC versions. 40703 if test -n "$GCC"; then 40704 case `($CC --version) 2>/dev/null` in 40705 'gcc (GCC) '[0-3].* | \ 40706 'gcc (GCC) '4.[0-7].*) 40707 gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option" 40708 gl_manywarn_set="$gl_manywarn_set -funit-at-a-time" 40709 ;; 40710 esac 40711 fi 40712 40713 # Disable specific options as needed. 40714 if test "$gl_cv_cc_nomfi_needed" = yes; then 40715 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" 40716 fi 40717 40718 if test "$gl_cv_cc_uninitialized_supported" = no; then 40719 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized" 40720 fi 40721 40722 ws=$gl_manywarn_set 40723 40724 ac_ext=c 40725ac_cpp='$CPP $CPPFLAGS' 40726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40728ac_compiler_gnu=$ac_cv_c_compiler_gnu 40729 40730 40731 40732 gl_warn_set= 40733 set x $ws; shift 40734 for gl_warn_item 40735 do 40736 case " $nw " in 40737 *" $gl_warn_item "*) 40738 ;; 40739 *) 40740 gl_warn_set="$gl_warn_set $gl_warn_item" 40741 ;; 40742 esac 40743 done 40744 ws=$gl_warn_set 40745 40746 for w in $ws; do 40747 40748 40749as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh` 40750gl_positive="$w" 40751case $gl_positive in 40752 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; 40753esac 40754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 40755$as_echo_n "checking whether C compiler handles $w... " >&6; } 40756if eval \${$as_gl_Warn+:} false; then : 40757 $as_echo_n "(cached) " >&6 40758else 40759 40760 gl_save_compiler_FLAGS="$CFLAGS" 40761 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive" 40762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40763/* end confdefs.h. */ 40764 40765int 40766main () 40767{ 40768 40769 ; 40770 return 0; 40771} 40772_ACEOF 40773if ac_fn_c_try_link "$LINENO"; then : 40774 eval "$as_gl_Warn=yes" 40775else 40776 eval "$as_gl_Warn=no" 40777fi 40778rm -f core conftest.err conftest.$ac_objext \ 40779 conftest$ac_exeext conftest.$ac_ext 40780 CFLAGS="$gl_save_compiler_FLAGS" 40781 40782fi 40783eval ac_res=\$$as_gl_Warn 40784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 40785$as_echo "$ac_res" >&6; } 40786if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then : 40787 as_fn_append WARN_CFLAGS " $w" 40788fi 40789 40790 40791 done 40792 40793 40794 40795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5 40796$as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; } 40797if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then : 40798 $as_echo_n "(cached) " >&6 40799else 40800 40801 gl_save_compiler_FLAGS="$CFLAGS" 40802 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option" 40803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40804/* end confdefs.h. */ 40805 40806int 40807main () 40808{ 40809 40810 ; 40811 return 0; 40812} 40813_ACEOF 40814if ac_fn_c_try_link "$LINENO"; then : 40815 gl_cv_warn_c__fdiagnostics_show_option=yes 40816else 40817 gl_cv_warn_c__fdiagnostics_show_option=no 40818fi 40819rm -f core conftest.err conftest.$ac_objext \ 40820 conftest$ac_exeext conftest.$ac_ext 40821 CFLAGS="$gl_save_compiler_FLAGS" 40822 40823fi 40824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5 40825$as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; } 40826if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then : 40827 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option" 40828fi 40829 40830 40831 40832 40833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5 40834$as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; } 40835if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then : 40836 $as_echo_n "(cached) " >&6 40837else 40838 40839 gl_save_compiler_FLAGS="$CFLAGS" 40840 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers" 40841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40842/* end confdefs.h. */ 40843 40844int 40845main () 40846{ 40847 40848 ; 40849 return 0; 40850} 40851_ACEOF 40852if ac_fn_c_try_link "$LINENO"; then : 40853 gl_cv_warn_c__Wno_missing_field_initializers=yes 40854else 40855 gl_cv_warn_c__Wno_missing_field_initializers=no 40856fi 40857rm -f core conftest.err conftest.$ac_objext \ 40858 conftest$ac_exeext conftest.$ac_ext 40859 CFLAGS="$gl_save_compiler_FLAGS" 40860 40861fi 40862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5 40863$as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; } 40864if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then : 40865 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers" 40866fi 40867 40868 # Rely on missing field = 0. 40869fi 40870 40871# Check whether --enable-doc was given. 40872if test "${enable_doc+set}" = set; then : 40873 enableval=$enable_doc; enable_doc=$enableval 40874else 40875 enable_doc=yes 40876fi 40877 40878 if test "$enable_doc" != "no"; then 40879 ENABLE_DOC_TRUE= 40880 ENABLE_DOC_FALSE='#' 40881else 40882 ENABLE_DOC_TRUE='#' 40883 ENABLE_DOC_FALSE= 40884fi 40885 40886 40887 40888ac_config_files="$ac_config_files Makefile contrib/doxygen/Doxyfile csharp/Makefile doc/Makefile doc/cyclo/Makefile doc/java/Makefile doc/reference/Makefile doc/reference/version.xml doc/specifications/Makefile doc/tld/Makefile examples/Makefile gl/Makefile gltests/Makefile java/Makefile java/pom.xml java/src/Makefile java/src/main/Makefile java/src/main/java/Makefile java/src/main/java/gnu/Makefile java/src/main/java/gnu/inet/Makefile java/src/main/java/gnu/inet/encoding/Makefile java/src/util/Makefile java/src/util/java/Makefile java/src/test/Makefile java/src/test/java/Makefile lib/Makefile lib/gl/Makefile lib/gltests/Makefile libidn.pc po/Makefile.in src/Makefile fuzz/Makefile tests/Makefile" 40889 40890cat >confcache <<\_ACEOF 40891# This file is a shell script that caches the results of configure 40892# tests run on this system so they can be shared between configure 40893# scripts and configure runs, see configure's option --config-cache. 40894# It is not useful on other systems. If it contains results you don't 40895# want to keep, you may remove or edit it. 40896# 40897# config.status only pays attention to the cache file if you give it 40898# the --recheck option to rerun configure. 40899# 40900# `ac_cv_env_foo' variables (set or unset) will be overridden when 40901# loading this file, other *unset* `ac_cv_foo' will be assigned the 40902# following values. 40903 40904_ACEOF 40905 40906# The following way of writing the cache mishandles newlines in values, 40907# but we know of no workaround that is simple, portable, and efficient. 40908# So, we kill variables containing newlines. 40909# Ultrix sh set writes to stderr and can't be redirected directly, 40910# and sets the high bit in the cache file unless we assign to the vars. 40911( 40912 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 40913 eval ac_val=\$$ac_var 40914 case $ac_val in #( 40915 *${as_nl}*) 40916 case $ac_var in #( 40917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 40918$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 40919 esac 40920 case $ac_var in #( 40921 _ | IFS | as_nl) ;; #( 40922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 40923 *) { eval $ac_var=; unset $ac_var;} ;; 40924 esac ;; 40925 esac 40926 done 40927 40928 (set) 2>&1 | 40929 case $as_nl`(ac_space=' '; set) 2>&1` in #( 40930 *${as_nl}ac_space=\ *) 40931 # `set' does not quote correctly, so add quotes: double-quote 40932 # substitution turns \\\\ into \\, and sed turns \\ into \. 40933 sed -n \ 40934 "s/'/'\\\\''/g; 40935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 40936 ;; #( 40937 *) 40938 # `set' quotes correctly as required by POSIX, so do not add quotes. 40939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 40940 ;; 40941 esac | 40942 sort 40943) | 40944 sed ' 40945 /^ac_cv_env_/b end 40946 t clear 40947 :clear 40948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 40949 t end 40950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 40951 :end' >>confcache 40952if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 40953 if test -w "$cache_file"; then 40954 if test "x$cache_file" != "x/dev/null"; then 40955 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 40956$as_echo "$as_me: updating cache $cache_file" >&6;} 40957 if test ! -f "$cache_file" || test -h "$cache_file"; then 40958 cat confcache >"$cache_file" 40959 else 40960 case $cache_file in #( 40961 */* | ?:*) 40962 mv -f confcache "$cache_file"$$ && 40963 mv -f "$cache_file"$$ "$cache_file" ;; #( 40964 *) 40965 mv -f confcache "$cache_file" ;; 40966 esac 40967 fi 40968 fi 40969 else 40970 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 40971$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 40972 fi 40973fi 40974rm -f confcache 40975 40976test "x$prefix" = xNONE && prefix=$ac_default_prefix 40977# Let make expand exec_prefix. 40978test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 40979 40980DEFS=-DHAVE_CONFIG_H 40981 40982ac_libobjs= 40983ac_ltlibobjs= 40984U= 40985for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 40986 # 1. Remove the extension, and $U if already installed. 40987 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 40988 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 40989 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 40990 # will be set to the directory where LIBOBJS objects are built. 40991 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 40992 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 40993done 40994LIBOBJS=$ac_libobjs 40995 40996LTLIBOBJS=$ac_ltlibobjs 40997 40998 40999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 41000$as_echo_n "checking that generated files are newer than configure... " >&6; } 41001 if test -n "$am_sleep_pid"; then 41002 # Hide warnings about reused PIDs. 41003 wait $am_sleep_pid 2>/dev/null 41004 fi 41005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 41006$as_echo "done" >&6; } 41007 if test -n "$EXEEXT"; then 41008 am__EXEEXT_TRUE= 41009 am__EXEEXT_FALSE='#' 41010else 41011 am__EXEEXT_TRUE='#' 41012 am__EXEEXT_FALSE= 41013fi 41014 41015if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 41016 as_fn_error $? "conditional \"AMDEP\" was never defined. 41017Usually this means the macro was only invoked conditionally." "$LINENO" 5 41018fi 41019if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 41020 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 41021Usually this means the macro was only invoked conditionally." "$LINENO" 5 41022fi 41023if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 41024 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 41025Usually this means the macro was only invoked conditionally." "$LINENO" 5 41026fi 41027if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 41028 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 41029Usually this means the macro was only invoked conditionally." "$LINENO" 5 41030fi 41031if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then 41032 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined. 41033Usually this means the macro was only invoked conditionally." "$LINENO" 5 41034fi 41035if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 41036 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 41037Usually this means the macro was only invoked conditionally." "$LINENO" 5 41038fi 41039CONFIG_INCLUDE=config.h 41040 41041if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then 41042 as_fn_error $? "conditional \"GL_GENERATE_STDARG_H\" was never defined. 41043Usually this means the macro was only invoked conditionally." "$LINENO" 5 41044fi 41045if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 41046 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 41047Usually this means the macro was only invoked conditionally." "$LINENO" 5 41048fi 41049if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 41050 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 41051Usually this means the macro was only invoked conditionally." "$LINENO" 5 41052fi 41053if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then 41054 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined. 41055Usually this means the macro was only invoked conditionally." "$LINENO" 5 41056fi 41057if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then 41058 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined. 41059Usually this means the macro was only invoked conditionally." "$LINENO" 5 41060fi 41061 41062 gl_libobjs= 41063 gl_ltlibobjs= 41064 if test -n "$gl_LIBOBJS"; then 41065 # Remove the extension. 41066 sed_drop_objext='s/\.o$//;s/\.obj$//' 41067 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 41068 gl_libobjs="$gl_libobjs $i.$ac_objext" 41069 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 41070 done 41071 fi 41072 gl_LIBOBJS=$gl_libobjs 41073 41074 gl_LTLIBOBJS=$gl_ltlibobjs 41075 41076 41077if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then 41078 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. 41079Usually this means the macro was only invoked conditionally." "$LINENO" 5 41080fi 41081 41082if test -z "${GL_GENERATE_NETINET_IN_H_TRUE}" && test -z "${GL_GENERATE_NETINET_IN_H_FALSE}"; then 41083 as_fn_error $? "conditional \"GL_GENERATE_NETINET_IN_H\" was never defined. 41084Usually this means the macro was only invoked conditionally." "$LINENO" 5 41085fi 41086if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then 41087 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined. 41088Usually this means the macro was only invoked conditionally." "$LINENO" 5 41089fi 41090 41091 gltests_libobjs= 41092 gltests_ltlibobjs= 41093 if test -n "$gltests_LIBOBJS"; then 41094 # Remove the extension. 41095 sed_drop_objext='s/\.o$//;s/\.obj$//' 41096 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 41097 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 41098 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 41099 done 41100 fi 41101 gltests_LIBOBJS=$gltests_libobjs 41102 41103 gltests_LTLIBOBJS=$gltests_ltlibobjs 41104 41105 41106if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then 41107 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined. 41108Usually this means the macro was only invoked conditionally." "$LINENO" 5 41109fi 41110if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 41111 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 41112Usually this means the macro was only invoked conditionally." "$LINENO" 5 41113fi 41114if test -z "${GL_GENERATE_ICONV_H_TRUE}" && test -z "${GL_GENERATE_ICONV_H_FALSE}"; then 41115 as_fn_error $? "conditional \"GL_GENERATE_ICONV_H\" was never defined. 41116Usually this means the macro was only invoked conditionally." "$LINENO" 5 41117fi 41118if test -z "${HAVE_LD_OUTPUT_DEF_TRUE}" && test -z "${HAVE_LD_OUTPUT_DEF_FALSE}"; then 41119 as_fn_error $? "conditional \"HAVE_LD_OUTPUT_DEF\" was never defined. 41120Usually this means the macro was only invoked conditionally." "$LINENO" 5 41121fi 41122if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 41123 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 41124Usually this means the macro was only invoked conditionally." "$LINENO" 5 41125fi 41126if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then 41127 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. 41128Usually this means the macro was only invoked conditionally." "$LINENO" 5 41129fi 41130if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then 41131 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined. 41132Usually this means the macro was only invoked conditionally." "$LINENO" 5 41133fi 41134if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_CHECK_FALSE}"; then 41135 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_CHECK\" was never defined. 41136Usually this means the macro was only invoked conditionally." "$LINENO" 5 41137fi 41138if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR_FALSE}"; then 41139 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR\" was never defined. 41140Usually this means the macro was only invoked conditionally." "$LINENO" 5 41141fi 41142if test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB_FALSE}"; then 41143 as_fn_error $? "conditional \"LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB\" was never defined. 41144Usually this means the macro was only invoked conditionally." "$LINENO" 5 41145fi 41146 41147 lgl_libobjs= 41148 lgl_ltlibobjs= 41149 if test -n "$lgl_LIBOBJS"; then 41150 # Remove the extension. 41151 sed_drop_objext='s/\.o$//;s/\.obj$//' 41152 for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 41153 lgl_libobjs="$lgl_libobjs $i.$ac_objext" 41154 lgl_ltlibobjs="$lgl_ltlibobjs $i.lo" 41155 done 41156 fi 41157 lgl_LIBOBJS=$lgl_libobjs 41158 41159 lgl_LTLIBOBJS=$lgl_ltlibobjs 41160 41161 41162if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then 41163 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. 41164Usually this means the macro was only invoked conditionally." "$LINENO" 5 41165fi 41166if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then 41167 as_fn_error $? "conditional \"GL_GENERATE_STDALIGN_H\" was never defined. 41168Usually this means the macro was only invoked conditionally." "$LINENO" 5 41169fi 41170 41171 lgltests_libobjs= 41172 lgltests_ltlibobjs= 41173 if test -n "$lgltests_LIBOBJS"; then 41174 # Remove the extension. 41175 sed_drop_objext='s/\.o$//;s/\.obj$//' 41176 for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 41177 lgltests_libobjs="$lgltests_libobjs $i.$ac_objext" 41178 lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo" 41179 done 41180 fi 41181 lgltests_LIBOBJS=$lgltests_libobjs 41182 41183 lgltests_LTLIBOBJS=$lgltests_ltlibobjs 41184 41185 41186if test -z "${TLD_TRUE}" && test -z "${TLD_FALSE}"; then 41187 as_fn_error $? "conditional \"TLD\" was never defined. 41188Usually this means the macro was only invoked conditionally." "$LINENO" 5 41189fi 41190if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then 41191 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. 41192Usually this means the macro was only invoked conditionally." "$LINENO" 5 41193fi 41194if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 41195 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 41196Usually this means the macro was only invoked conditionally." "$LINENO" 5 41197fi 41198if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 41199 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 41200Usually this means the macro was only invoked conditionally." "$LINENO" 5 41201fi 41202if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 41203 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 41204Usually this means the macro was only invoked conditionally." "$LINENO" 5 41205fi 41206if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 41207 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 41208Usually this means the macro was only invoked conditionally." "$LINENO" 5 41209fi 41210if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 41211 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 41212Usually this means the macro was only invoked conditionally." "$LINENO" 5 41213fi 41214if test -z "${JAVA_TRUE}" && test -z "${JAVA_FALSE}"; then 41215 as_fn_error $? "conditional \"JAVA\" was never defined. 41216Usually this means the macro was only invoked conditionally." "$LINENO" 5 41217fi 41218if test -z "${CSHARP_TRUE}" && test -z "${CSHARP_FALSE}"; then 41219 as_fn_error $? "conditional \"CSHARP\" was never defined. 41220Usually this means the macro was only invoked conditionally." "$LINENO" 5 41221fi 41222if test -z "${ENABLE_DOC_TRUE}" && test -z "${ENABLE_DOC_FALSE}"; then 41223 as_fn_error $? "conditional \"ENABLE_DOC\" was never defined. 41224Usually this means the macro was only invoked conditionally." "$LINENO" 5 41225fi 41226 41227: "${CONFIG_STATUS=./config.status}" 41228ac_write_fail=0 41229ac_clean_files_save=$ac_clean_files 41230ac_clean_files="$ac_clean_files $CONFIG_STATUS" 41231{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 41232$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 41233as_write_fail=0 41234cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 41235#! $SHELL 41236# Generated by $as_me. 41237# Run this file to recreate the current configuration. 41238# Compiler output produced by configure, useful for debugging 41239# configure, is in config.log if it exists. 41240 41241debug=false 41242ac_cs_recheck=false 41243ac_cs_silent=false 41244 41245SHELL=\${CONFIG_SHELL-$SHELL} 41246export SHELL 41247_ASEOF 41248cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 41249## -------------------- ## 41250## M4sh Initialization. ## 41251## -------------------- ## 41252 41253# Be more Bourne compatible 41254DUALCASE=1; export DUALCASE # for MKS sh 41255if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 41256 emulate sh 41257 NULLCMD=: 41258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 41259 # is contrary to our usage. Disable this feature. 41260 alias -g '${1+"$@"}'='"$@"' 41261 setopt NO_GLOB_SUBST 41262else 41263 case `(set -o) 2>/dev/null` in #( 41264 *posix*) : 41265 set -o posix ;; #( 41266 *) : 41267 ;; 41268esac 41269fi 41270 41271 41272as_nl=' 41273' 41274export as_nl 41275# Printing a long string crashes Solaris 7 /usr/bin/printf. 41276as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41277as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 41278as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41279# Prefer a ksh shell builtin over an external printf program on Solaris, 41280# but without wasting forks for bash or zsh. 41281if test -z "$BASH_VERSION$ZSH_VERSION" \ 41282 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 41283 as_echo='print -r --' 41284 as_echo_n='print -rn --' 41285elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 41286 as_echo='printf %s\n' 41287 as_echo_n='printf %s' 41288else 41289 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 41290 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 41291 as_echo_n='/usr/ucb/echo -n' 41292 else 41293 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 41294 as_echo_n_body='eval 41295 arg=$1; 41296 case $arg in #( 41297 *"$as_nl"*) 41298 expr "X$arg" : "X\\(.*\\)$as_nl"; 41299 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 41300 esac; 41301 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 41302 ' 41303 export as_echo_n_body 41304 as_echo_n='sh -c $as_echo_n_body as_echo' 41305 fi 41306 export as_echo_body 41307 as_echo='sh -c $as_echo_body as_echo' 41308fi 41309 41310# The user is always right. 41311if test "${PATH_SEPARATOR+set}" != set; then 41312 PATH_SEPARATOR=: 41313 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 41314 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 41315 PATH_SEPARATOR=';' 41316 } 41317fi 41318 41319 41320# IFS 41321# We need space, tab and new line, in precisely that order. Quoting is 41322# there to prevent editors from complaining about space-tab. 41323# (If _AS_PATH_WALK were called with IFS unset, it would disable word 41324# splitting by setting IFS to empty value.) 41325IFS=" "" $as_nl" 41326 41327# Find who we are. Look in the path if we contain no directory separator. 41328as_myself= 41329case $0 in #(( 41330 *[\\/]* ) as_myself=$0 ;; 41331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41332for as_dir in $PATH 41333do 41334 IFS=$as_save_IFS 41335 test -z "$as_dir" && as_dir=. 41336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 41337 done 41338IFS=$as_save_IFS 41339 41340 ;; 41341esac 41342# We did not find ourselves, most probably we were run as `sh COMMAND' 41343# in which case we are not to be found in the path. 41344if test "x$as_myself" = x; then 41345 as_myself=$0 41346fi 41347if test ! -f "$as_myself"; then 41348 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 41349 exit 1 41350fi 41351 41352# Unset variables that we do not need and which cause bugs (e.g. in 41353# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 41354# suppresses any "Segmentation fault" message there. '((' could 41355# trigger a bug in pdksh 5.2.14. 41356for as_var in BASH_ENV ENV MAIL MAILPATH 41357do eval test x\${$as_var+set} = xset \ 41358 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 41359done 41360PS1='$ ' 41361PS2='> ' 41362PS4='+ ' 41363 41364# NLS nuisances. 41365LC_ALL=C 41366export LC_ALL 41367LANGUAGE=C 41368export LANGUAGE 41369 41370# CDPATH. 41371(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 41372 41373 41374# as_fn_error STATUS ERROR [LINENO LOG_FD] 41375# ---------------------------------------- 41376# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 41377# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 41378# script with STATUS, using 1 if that was 0. 41379as_fn_error () 41380{ 41381 as_status=$1; test $as_status -eq 0 && as_status=1 41382 if test "$4"; then 41383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 41384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 41385 fi 41386 $as_echo "$as_me: error: $2" >&2 41387 as_fn_exit $as_status 41388} # as_fn_error 41389 41390 41391# as_fn_set_status STATUS 41392# ----------------------- 41393# Set $? to STATUS, without forking. 41394as_fn_set_status () 41395{ 41396 return $1 41397} # as_fn_set_status 41398 41399# as_fn_exit STATUS 41400# ----------------- 41401# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 41402as_fn_exit () 41403{ 41404 set +e 41405 as_fn_set_status $1 41406 exit $1 41407} # as_fn_exit 41408 41409# as_fn_unset VAR 41410# --------------- 41411# Portably unset VAR. 41412as_fn_unset () 41413{ 41414 { eval $1=; unset $1;} 41415} 41416as_unset=as_fn_unset 41417# as_fn_append VAR VALUE 41418# ---------------------- 41419# Append the text in VALUE to the end of the definition contained in VAR. Take 41420# advantage of any shell optimizations that allow amortized linear growth over 41421# repeated appends, instead of the typical quadratic growth present in naive 41422# implementations. 41423if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 41424 eval 'as_fn_append () 41425 { 41426 eval $1+=\$2 41427 }' 41428else 41429 as_fn_append () 41430 { 41431 eval $1=\$$1\$2 41432 } 41433fi # as_fn_append 41434 41435# as_fn_arith ARG... 41436# ------------------ 41437# Perform arithmetic evaluation on the ARGs, and store the result in the 41438# global $as_val. Take advantage of shells that can avoid forks. The arguments 41439# must be portable across $(()) and expr. 41440if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 41441 eval 'as_fn_arith () 41442 { 41443 as_val=$(( $* )) 41444 }' 41445else 41446 as_fn_arith () 41447 { 41448 as_val=`expr "$@" || test $? -eq 1` 41449 } 41450fi # as_fn_arith 41451 41452 41453if expr a : '\(a\)' >/dev/null 2>&1 && 41454 test "X`expr 00001 : '.*\(...\)'`" = X001; then 41455 as_expr=expr 41456else 41457 as_expr=false 41458fi 41459 41460if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 41461 as_basename=basename 41462else 41463 as_basename=false 41464fi 41465 41466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 41467 as_dirname=dirname 41468else 41469 as_dirname=false 41470fi 41471 41472as_me=`$as_basename -- "$0" || 41473$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 41474 X"$0" : 'X\(//\)$' \| \ 41475 X"$0" : 'X\(/\)' \| . 2>/dev/null || 41476$as_echo X/"$0" | 41477 sed '/^.*\/\([^/][^/]*\)\/*$/{ 41478 s//\1/ 41479 q 41480 } 41481 /^X\/\(\/\/\)$/{ 41482 s//\1/ 41483 q 41484 } 41485 /^X\/\(\/\).*/{ 41486 s//\1/ 41487 q 41488 } 41489 s/.*/./; q'` 41490 41491# Avoid depending upon Character Ranges. 41492as_cr_letters='abcdefghijklmnopqrstuvwxyz' 41493as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 41494as_cr_Letters=$as_cr_letters$as_cr_LETTERS 41495as_cr_digits='0123456789' 41496as_cr_alnum=$as_cr_Letters$as_cr_digits 41497 41498ECHO_C= ECHO_N= ECHO_T= 41499case `echo -n x` in #((((( 41500-n*) 41501 case `echo 'xy\c'` in 41502 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 41503 xy) ECHO_C='\c';; 41504 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 41505 ECHO_T=' ';; 41506 esac;; 41507*) 41508 ECHO_N='-n';; 41509esac 41510 41511rm -f conf$$ conf$$.exe conf$$.file 41512if test -d conf$$.dir; then 41513 rm -f conf$$.dir/conf$$.file 41514else 41515 rm -f conf$$.dir 41516 mkdir conf$$.dir 2>/dev/null 41517fi 41518if (echo >conf$$.file) 2>/dev/null; then 41519 if ln -s conf$$.file conf$$ 2>/dev/null; then 41520 as_ln_s='ln -s' 41521 # ... but there are two gotchas: 41522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 41523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 41524 # In both cases, we have to default to `cp -pR'. 41525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 41526 as_ln_s='cp -pR' 41527 elif ln conf$$.file conf$$ 2>/dev/null; then 41528 as_ln_s=ln 41529 else 41530 as_ln_s='cp -pR' 41531 fi 41532else 41533 as_ln_s='cp -pR' 41534fi 41535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 41536rmdir conf$$.dir 2>/dev/null 41537 41538 41539# as_fn_mkdir_p 41540# ------------- 41541# Create "$as_dir" as a directory, including parents if necessary. 41542as_fn_mkdir_p () 41543{ 41544 41545 case $as_dir in #( 41546 -*) as_dir=./$as_dir;; 41547 esac 41548 test -d "$as_dir" || eval $as_mkdir_p || { 41549 as_dirs= 41550 while :; do 41551 case $as_dir in #( 41552 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 41553 *) as_qdir=$as_dir;; 41554 esac 41555 as_dirs="'$as_qdir' $as_dirs" 41556 as_dir=`$as_dirname -- "$as_dir" || 41557$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 41558 X"$as_dir" : 'X\(//\)[^/]' \| \ 41559 X"$as_dir" : 'X\(//\)$' \| \ 41560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 41561$as_echo X"$as_dir" | 41562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 41563 s//\1/ 41564 q 41565 } 41566 /^X\(\/\/\)[^/].*/{ 41567 s//\1/ 41568 q 41569 } 41570 /^X\(\/\/\)$/{ 41571 s//\1/ 41572 q 41573 } 41574 /^X\(\/\).*/{ 41575 s//\1/ 41576 q 41577 } 41578 s/.*/./; q'` 41579 test -d "$as_dir" && break 41580 done 41581 test -z "$as_dirs" || eval "mkdir $as_dirs" 41582 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 41583 41584 41585} # as_fn_mkdir_p 41586if mkdir -p . 2>/dev/null; then 41587 as_mkdir_p='mkdir -p "$as_dir"' 41588else 41589 test -d ./-p && rmdir ./-p 41590 as_mkdir_p=false 41591fi 41592 41593 41594# as_fn_executable_p FILE 41595# ----------------------- 41596# Test if FILE is an executable regular file. 41597as_fn_executable_p () 41598{ 41599 test -f "$1" && test -x "$1" 41600} # as_fn_executable_p 41601as_test_x='test -x' 41602as_executable_p=as_fn_executable_p 41603 41604# Sed expression to map a string onto a valid CPP name. 41605as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 41606 41607# Sed expression to map a string onto a valid variable name. 41608as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 41609 41610 41611exec 6>&1 41612## ----------------------------------- ## 41613## Main body of $CONFIG_STATUS script. ## 41614## ----------------------------------- ## 41615_ASEOF 41616test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 41617 41618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 41619# Save the log message, to keep $0 and so on meaningful, and to 41620# report actual input values of CONFIG_FILES etc. instead of their 41621# values after options handling. 41622ac_log=" 41623This file was extended by GNU Libidn $as_me 1.35, which was 41624generated by GNU Autoconf 2.69. Invocation command line was 41625 41626 CONFIG_FILES = $CONFIG_FILES 41627 CONFIG_HEADERS = $CONFIG_HEADERS 41628 CONFIG_LINKS = $CONFIG_LINKS 41629 CONFIG_COMMANDS = $CONFIG_COMMANDS 41630 $ $0 $@ 41631 41632on `(hostname || uname -n) 2>/dev/null | sed 1q` 41633" 41634 41635_ACEOF 41636 41637case $ac_config_files in *" 41638"*) set x $ac_config_files; shift; ac_config_files=$*;; 41639esac 41640 41641case $ac_config_headers in *" 41642"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 41643esac 41644 41645 41646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 41647# Files that config.status was made for. 41648config_files="$ac_config_files" 41649config_headers="$ac_config_headers" 41650config_links="$ac_config_links" 41651config_commands="$ac_config_commands" 41652 41653_ACEOF 41654 41655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 41656ac_cs_usage="\ 41657\`$as_me' instantiates files and other configuration actions 41658from templates according to the current configuration. Unless the files 41659and actions are specified as TAGs, all are instantiated by default. 41660 41661Usage: $0 [OPTION]... [TAG]... 41662 41663 -h, --help print this help, then exit 41664 -V, --version print version number and configuration settings, then exit 41665 --config print configuration, then exit 41666 -q, --quiet, --silent 41667 do not print progress messages 41668 -d, --debug don't remove temporary files 41669 --recheck update $as_me by reconfiguring in the same conditions 41670 --file=FILE[:TEMPLATE] 41671 instantiate the configuration file FILE 41672 --header=FILE[:TEMPLATE] 41673 instantiate the configuration header FILE 41674 41675Configuration files: 41676$config_files 41677 41678Configuration headers: 41679$config_headers 41680 41681Configuration links: 41682$config_links 41683 41684Configuration commands: 41685$config_commands 41686 41687Report bugs to <bug-libidn@gnu.org>. 41688GNU Libidn home page: <http://www.gnu.org/software/libidn/>. 41689General help using GNU software: <http://www.gnu.org/gethelp/>." 41690 41691_ACEOF 41692cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 41693ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 41694ac_cs_version="\\ 41695GNU Libidn config.status 1.35 41696configured by $0, generated by GNU Autoconf 2.69, 41697 with options \\"\$ac_cs_config\\" 41698 41699Copyright (C) 2012 Free Software Foundation, Inc. 41700This config.status script is free software; the Free Software Foundation 41701gives unlimited permission to copy, distribute and modify it." 41702 41703ac_pwd='$ac_pwd' 41704srcdir='$srcdir' 41705INSTALL='$INSTALL' 41706MKDIR_P='$MKDIR_P' 41707AWK='$AWK' 41708test -n "\$AWK" || AWK=awk 41709_ACEOF 41710 41711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 41712# The default lists apply if the user does not specify any file. 41713ac_need_defaults=: 41714while test $# != 0 41715do 41716 case $1 in 41717 --*=?*) 41718 ac_option=`expr "X$1" : 'X\([^=]*\)='` 41719 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 41720 ac_shift=: 41721 ;; 41722 --*=) 41723 ac_option=`expr "X$1" : 'X\([^=]*\)='` 41724 ac_optarg= 41725 ac_shift=: 41726 ;; 41727 *) 41728 ac_option=$1 41729 ac_optarg=$2 41730 ac_shift=shift 41731 ;; 41732 esac 41733 41734 case $ac_option in 41735 # Handling of the options. 41736 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 41737 ac_cs_recheck=: ;; 41738 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 41739 $as_echo "$ac_cs_version"; exit ;; 41740 --config | --confi | --conf | --con | --co | --c ) 41741 $as_echo "$ac_cs_config"; exit ;; 41742 --debug | --debu | --deb | --de | --d | -d ) 41743 debug=: ;; 41744 --file | --fil | --fi | --f ) 41745 $ac_shift 41746 case $ac_optarg in 41747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 41748 '') as_fn_error $? "missing file argument" ;; 41749 esac 41750 as_fn_append CONFIG_FILES " '$ac_optarg'" 41751 ac_need_defaults=false;; 41752 --header | --heade | --head | --hea ) 41753 $ac_shift 41754 case $ac_optarg in 41755 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 41756 esac 41757 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 41758 ac_need_defaults=false;; 41759 --he | --h) 41760 # Conflict between --help and --header 41761 as_fn_error $? "ambiguous option: \`$1' 41762Try \`$0 --help' for more information.";; 41763 --help | --hel | -h ) 41764 $as_echo "$ac_cs_usage"; exit ;; 41765 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 41766 | -silent | --silent | --silen | --sile | --sil | --si | --s) 41767 ac_cs_silent=: ;; 41768 41769 # This is an error. 41770 -*) as_fn_error $? "unrecognized option: \`$1' 41771Try \`$0 --help' for more information." ;; 41772 41773 *) as_fn_append ac_config_targets " $1" 41774 ac_need_defaults=false ;; 41775 41776 esac 41777 shift 41778done 41779 41780ac_configure_extra_args= 41781 41782if $ac_cs_silent; then 41783 exec 6>/dev/null 41784 ac_configure_extra_args="$ac_configure_extra_args --silent" 41785fi 41786 41787_ACEOF 41788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 41789if \$ac_cs_recheck; then 41790 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 41791 shift 41792 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 41793 CONFIG_SHELL='$SHELL' 41794 export CONFIG_SHELL 41795 exec "\$@" 41796fi 41797 41798_ACEOF 41799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 41800exec 5>>config.log 41801{ 41802 echo 41803 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 41804## Running $as_me. ## 41805_ASBOX 41806 $as_echo "$ac_log" 41807} >&5 41808 41809_ACEOF 41810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 41811# 41812# INIT-COMMANDS 41813# 41814AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 41815 41816 41817# The HP-UX ksh and POSIX shell print the target directory to stdout 41818# if CDPATH is set. 41819(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 41820 41821sed_quote_subst='$sed_quote_subst' 41822double_quote_subst='$double_quote_subst' 41823delay_variable_subst='$delay_variable_subst' 41824macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 41825macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 41826AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 41827DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 41828OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 41829enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 41830enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 41831pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 41832enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 41833shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 41834SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 41835ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 41836PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 41837host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 41838host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 41839host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 41840build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 41841build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 41842build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 41843SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 41844Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 41845GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 41846EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 41847FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 41848LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 41849NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 41850LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 41851max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 41852ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 41853exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 41854lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 41855lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 41856lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 41857lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 41858lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 41859reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 41860reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 41861deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 41862file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 41863file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 41864want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 41865sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 41866AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 41867AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 41868archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 41869STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 41870RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 41871old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 41872old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 41873old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 41874lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 41875CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 41876CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 41877compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 41878GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 41879lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 41880lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 41881lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 41882lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 41883lt_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"`' 41884lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 41885nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 41886lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 41887lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 41888objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 41889MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 41890lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 41891lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 41892lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 41893lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 41894lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 41895need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 41896MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 41897DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 41898NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 41899LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 41900OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 41901OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 41902libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 41903shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 41904extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 41905archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 41906enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 41907export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 41908whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 41909compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 41910old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 41911old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 41912archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 41913archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 41914module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 41915module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 41916with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 41917allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 41918no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 41919hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 41920hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 41921hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 41922hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 41923hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 41924hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 41925hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 41926inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 41927link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 41928always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 41929export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 41930exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 41931include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 41932prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 41933postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 41934file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 41935variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 41936need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 41937need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 41938version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 41939runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 41940shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 41941shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 41942libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 41943library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 41944soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 41945install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 41946postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 41947postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 41948finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 41949finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 41950hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 41951sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 41952configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 41953configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 41954hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 41955enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 41956enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 41957enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 41958old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 41959striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 41960 41961LTCC='$LTCC' 41962LTCFLAGS='$LTCFLAGS' 41963compiler='$compiler_DEFAULT' 41964 41965# A function that is used when there is no print builtin or printf. 41966func_fallback_echo () 41967{ 41968 eval 'cat <<_LTECHO_EOF 41969\$1 41970_LTECHO_EOF' 41971} 41972 41973# Quote evaled strings. 41974for var in AS \ 41975DLLTOOL \ 41976OBJDUMP \ 41977SHELL \ 41978ECHO \ 41979PATH_SEPARATOR \ 41980SED \ 41981GREP \ 41982EGREP \ 41983FGREP \ 41984LD \ 41985NM \ 41986LN_S \ 41987lt_SP2NL \ 41988lt_NL2SP \ 41989reload_flag \ 41990deplibs_check_method \ 41991file_magic_cmd \ 41992file_magic_glob \ 41993want_nocaseglob \ 41994sharedlib_from_linklib_cmd \ 41995AR \ 41996AR_FLAGS \ 41997archiver_list_spec \ 41998STRIP \ 41999RANLIB \ 42000CC \ 42001CFLAGS \ 42002compiler \ 42003lt_cv_sys_global_symbol_pipe \ 42004lt_cv_sys_global_symbol_to_cdecl \ 42005lt_cv_sys_global_symbol_to_import \ 42006lt_cv_sys_global_symbol_to_c_name_address \ 42007lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 42008lt_cv_nm_interface \ 42009nm_file_list_spec \ 42010lt_cv_truncate_bin \ 42011lt_prog_compiler_no_builtin_flag \ 42012lt_prog_compiler_pic \ 42013lt_prog_compiler_wl \ 42014lt_prog_compiler_static \ 42015lt_cv_prog_compiler_c_o \ 42016need_locks \ 42017MANIFEST_TOOL \ 42018DSYMUTIL \ 42019NMEDIT \ 42020LIPO \ 42021OTOOL \ 42022OTOOL64 \ 42023shrext_cmds \ 42024export_dynamic_flag_spec \ 42025whole_archive_flag_spec \ 42026compiler_needs_object \ 42027with_gnu_ld \ 42028allow_undefined_flag \ 42029no_undefined_flag \ 42030hardcode_libdir_flag_spec \ 42031hardcode_libdir_separator \ 42032exclude_expsyms \ 42033include_expsyms \ 42034file_list_spec \ 42035variables_saved_for_relink \ 42036libname_spec \ 42037library_names_spec \ 42038soname_spec \ 42039install_override_mode \ 42040finish_eval \ 42041old_striplib \ 42042striplib; do 42043 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 42044 *[\\\\\\\`\\"\\\$]*) 42045 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 42046 ;; 42047 *) 42048 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 42049 ;; 42050 esac 42051done 42052 42053# Double-quote double-evaled strings. 42054for var in reload_cmds \ 42055old_postinstall_cmds \ 42056old_postuninstall_cmds \ 42057old_archive_cmds \ 42058extract_expsyms_cmds \ 42059old_archive_from_new_cmds \ 42060old_archive_from_expsyms_cmds \ 42061archive_cmds \ 42062archive_expsym_cmds \ 42063module_cmds \ 42064module_expsym_cmds \ 42065export_symbols_cmds \ 42066prelink_cmds \ 42067postlink_cmds \ 42068postinstall_cmds \ 42069postuninstall_cmds \ 42070finish_cmds \ 42071sys_lib_search_path_spec \ 42072configure_time_dlsearch_path \ 42073configure_time_lt_sys_library_path; do 42074 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 42075 *[\\\\\\\`\\"\\\$]*) 42076 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 42077 ;; 42078 *) 42079 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 42080 ;; 42081 esac 42082done 42083 42084ac_aux_dir='$ac_aux_dir' 42085 42086# See if we are running on zsh, and set the options that allow our 42087# commands through without removal of \ escapes INIT. 42088if test -n "\${ZSH_VERSION+set}"; then 42089 setopt NO_GLOB_SUBST 42090fi 42091 42092 42093 PACKAGE='$PACKAGE' 42094 VERSION='$VERSION' 42095 RM='$RM' 42096 ofile='$ofile' 42097 42098 42099 42100# Capture the value of obsolete ALL_LINGUAS because we need it to compute 42101 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 42102 # from automake < 1.5. 42103 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 42104 # Capture the value of LINGUAS because we need it to compute CATALOGS. 42105 LINGUAS="${LINGUAS-%UNSET%}" 42106 42107GNUmakefile=$GNUmakefile 42108 42109_ACEOF 42110 42111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42112 42113# Handling of arguments. 42114for ac_config_target in $ac_config_targets 42115do 42116 case $ac_config_target in 42117 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 42118 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 42119 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 42120 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 42121 "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:build-aux/csharpcomp.sh.in" ;; 42122 "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:build-aux/csharpexec.sh.in" ;; 42123 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;; 42124 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 42125 "contrib/doxygen/Doxyfile") CONFIG_FILES="$CONFIG_FILES contrib/doxygen/Doxyfile" ;; 42126 "csharp/Makefile") CONFIG_FILES="$CONFIG_FILES csharp/Makefile" ;; 42127 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 42128 "doc/cyclo/Makefile") CONFIG_FILES="$CONFIG_FILES doc/cyclo/Makefile" ;; 42129 "doc/java/Makefile") CONFIG_FILES="$CONFIG_FILES doc/java/Makefile" ;; 42130 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;; 42131 "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;; 42132 "doc/specifications/Makefile") CONFIG_FILES="$CONFIG_FILES doc/specifications/Makefile" ;; 42133 "doc/tld/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tld/Makefile" ;; 42134 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 42135 "gl/Makefile") CONFIG_FILES="$CONFIG_FILES gl/Makefile" ;; 42136 "gltests/Makefile") CONFIG_FILES="$CONFIG_FILES gltests/Makefile" ;; 42137 "java/Makefile") CONFIG_FILES="$CONFIG_FILES java/Makefile" ;; 42138 "java/pom.xml") CONFIG_FILES="$CONFIG_FILES java/pom.xml" ;; 42139 "java/src/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/Makefile" ;; 42140 "java/src/main/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/Makefile" ;; 42141 "java/src/main/java/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/java/Makefile" ;; 42142 "java/src/main/java/gnu/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/java/gnu/Makefile" ;; 42143 "java/src/main/java/gnu/inet/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/java/gnu/inet/Makefile" ;; 42144 "java/src/main/java/gnu/inet/encoding/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/main/java/gnu/inet/encoding/Makefile" ;; 42145 "java/src/util/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/util/Makefile" ;; 42146 "java/src/util/java/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/util/java/Makefile" ;; 42147 "java/src/test/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/test/Makefile" ;; 42148 "java/src/test/java/Makefile") CONFIG_FILES="$CONFIG_FILES java/src/test/java/Makefile" ;; 42149 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 42150 "lib/gl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gl/Makefile" ;; 42151 "lib/gltests/Makefile") CONFIG_FILES="$CONFIG_FILES lib/gltests/Makefile" ;; 42152 "libidn.pc") CONFIG_FILES="$CONFIG_FILES libidn.pc" ;; 42153 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 42154 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 42155 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;; 42156 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 42157 42158 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 42159 esac 42160done 42161 42162 42163# If the user did not use the arguments to specify the items to instantiate, 42164# then the envvar interface is used. Set only those that are not. 42165# We use the long form for the default assignment because of an extremely 42166# bizarre bug on SunOS 4.1.3. 42167if $ac_need_defaults; then 42168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 42169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 42170 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 42171 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 42172fi 42173 42174# Have a temporary directory for convenience. Make it in the build tree 42175# simply because there is no reason against having it here, and in addition, 42176# creating and moving files from /tmp can sometimes cause problems. 42177# Hook for its removal unless debugging. 42178# Note that there is a small window in which the directory will not be cleaned: 42179# after its creation but before its name has been assigned to `$tmp'. 42180$debug || 42181{ 42182 tmp= ac_tmp= 42183 trap 'exit_status=$? 42184 : "${ac_tmp:=$tmp}" 42185 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 42186' 0 42187 trap 'as_fn_exit 1' 1 2 13 15 42188} 42189# Create a (secure) tmp directory for tmp files. 42190 42191{ 42192 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 42193 test -d "$tmp" 42194} || 42195{ 42196 tmp=./conf$$-$RANDOM 42197 (umask 077 && mkdir "$tmp") 42198} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 42199ac_tmp=$tmp 42200 42201# Set up the scripts for CONFIG_FILES section. 42202# No need to generate them if there are no CONFIG_FILES. 42203# This happens for instance with `./config.status config.h'. 42204if test -n "$CONFIG_FILES"; then 42205 42206 42207ac_cr=`echo X | tr X '\015'` 42208# On cygwin, bash can eat \r inside `` if the user requested igncr. 42209# But we know of no other shell where ac_cr would be empty at this 42210# point, so we can use a bashism as a fallback. 42211if test "x$ac_cr" = x; then 42212 eval ac_cr=\$\'\\r\' 42213fi 42214ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 42215if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 42216 ac_cs_awk_cr='\\r' 42217else 42218 ac_cs_awk_cr=$ac_cr 42219fi 42220 42221echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 42222_ACEOF 42223 42224 42225{ 42226 echo "cat >conf$$subs.awk <<_ACEOF" && 42227 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 42228 echo "_ACEOF" 42229} >conf$$subs.sh || 42230 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 42231ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 42232ac_delim='%!_!# ' 42233for ac_last_try in false false false false false :; do 42234 . ./conf$$subs.sh || 42235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 42236 42237 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 42238 if test $ac_delim_n = $ac_delim_num; then 42239 break 42240 elif $ac_last_try; then 42241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 42242 else 42243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 42244 fi 42245done 42246rm -f conf$$subs.sh 42247 42248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42249cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 42250_ACEOF 42251sed -n ' 42252h 42253s/^/S["/; s/!.*/"]=/ 42254p 42255g 42256s/^[^!]*!// 42257:repl 42258t repl 42259s/'"$ac_delim"'$// 42260t delim 42261:nl 42262h 42263s/\(.\{148\}\)..*/\1/ 42264t more1 42265s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 42266p 42267n 42268b repl 42269:more1 42270s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 42271p 42272g 42273s/.\{148\}// 42274t nl 42275:delim 42276h 42277s/\(.\{148\}\)..*/\1/ 42278t more2 42279s/["\\]/\\&/g; s/^/"/; s/$/"/ 42280p 42281b 42282:more2 42283s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 42284p 42285g 42286s/.\{148\}// 42287t delim 42288' <conf$$subs.awk | sed ' 42289/^[^""]/{ 42290 N 42291 s/\n// 42292} 42293' >>$CONFIG_STATUS || ac_write_fail=1 42294rm -f conf$$subs.awk 42295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42296_ACAWK 42297cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 42298 for (key in S) S_is_set[key] = 1 42299 FS = "" 42300 42301} 42302{ 42303 line = $ 0 42304 nfields = split(line, field, "@") 42305 substed = 0 42306 len = length(field[1]) 42307 for (i = 2; i < nfields; i++) { 42308 key = field[i] 42309 keylen = length(key) 42310 if (S_is_set[key]) { 42311 value = S[key] 42312 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 42313 len += length(value) + length(field[++i]) 42314 substed = 1 42315 } else 42316 len += 1 + keylen 42317 } 42318 42319 print line 42320} 42321 42322_ACAWK 42323_ACEOF 42324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42325if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 42326 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 42327else 42328 cat 42329fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 42330 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 42331_ACEOF 42332 42333# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 42334# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 42335# trailing colons and then remove the whole line if VPATH becomes empty 42336# (actually we leave an empty line to preserve line numbers). 42337if test "x$srcdir" = x.; then 42338 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 42339h 42340s/// 42341s/^/:/ 42342s/[ ]*$/:/ 42343s/:\$(srcdir):/:/g 42344s/:\${srcdir}:/:/g 42345s/:@srcdir@:/:/g 42346s/^:*// 42347s/:*$// 42348x 42349s/\(=[ ]*\).*/\1/ 42350G 42351s/\n// 42352s/^[^=]*=[ ]*$// 42353}' 42354fi 42355 42356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42357fi # test -n "$CONFIG_FILES" 42358 42359# Set up the scripts for CONFIG_HEADERS section. 42360# No need to generate them if there are no CONFIG_HEADERS. 42361# This happens for instance with `./config.status Makefile'. 42362if test -n "$CONFIG_HEADERS"; then 42363cat >"$ac_tmp/defines.awk" <<\_ACAWK || 42364BEGIN { 42365_ACEOF 42366 42367# Transform confdefs.h into an awk script `defines.awk', embedded as 42368# here-document in config.status, that substitutes the proper values into 42369# config.h.in to produce config.h. 42370 42371# Create a delimiter string that does not exist in confdefs.h, to ease 42372# handling of long lines. 42373ac_delim='%!_!# ' 42374for ac_last_try in false false :; do 42375 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 42376 if test -z "$ac_tt"; then 42377 break 42378 elif $ac_last_try; then 42379 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 42380 else 42381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 42382 fi 42383done 42384 42385# For the awk script, D is an array of macro values keyed by name, 42386# likewise P contains macro parameters if any. Preserve backslash 42387# newline sequences. 42388 42389ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 42390sed -n ' 42391s/.\{148\}/&'"$ac_delim"'/g 42392t rset 42393:rset 42394s/^[ ]*#[ ]*define[ ][ ]*/ / 42395t def 42396d 42397:def 42398s/\\$// 42399t bsnl 42400s/["\\]/\\&/g 42401s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 42402D["\1"]=" \3"/p 42403s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 42404d 42405:bsnl 42406s/["\\]/\\&/g 42407s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 42408D["\1"]=" \3\\\\\\n"\\/p 42409t cont 42410s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 42411t cont 42412d 42413:cont 42414n 42415s/.\{148\}/&'"$ac_delim"'/g 42416t clear 42417:clear 42418s/\\$// 42419t bsnlc 42420s/["\\]/\\&/g; s/^/"/; s/$/"/p 42421d 42422:bsnlc 42423s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 42424b cont 42425' <confdefs.h | sed ' 42426s/'"$ac_delim"'/"\\\ 42427"/g' >>$CONFIG_STATUS || ac_write_fail=1 42428 42429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42430 for (key in D) D_is_set[key] = 1 42431 FS = "" 42432} 42433/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 42434 line = \$ 0 42435 split(line, arg, " ") 42436 if (arg[1] == "#") { 42437 defundef = arg[2] 42438 mac1 = arg[3] 42439 } else { 42440 defundef = substr(arg[1], 2) 42441 mac1 = arg[2] 42442 } 42443 split(mac1, mac2, "(") #) 42444 macro = mac2[1] 42445 prefix = substr(line, 1, index(line, defundef) - 1) 42446 if (D_is_set[macro]) { 42447 # Preserve the white space surrounding the "#". 42448 print prefix "define", macro P[macro] D[macro] 42449 next 42450 } else { 42451 # Replace #undef with comments. This is necessary, for example, 42452 # in the case of _POSIX_SOURCE, which is predefined and required 42453 # on some systems where configure will not decide to define it. 42454 if (defundef == "undef") { 42455 print "/*", prefix defundef, macro, "*/" 42456 next 42457 } 42458 } 42459} 42460{ print } 42461_ACAWK 42462_ACEOF 42463cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42464 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 42465fi # test -n "$CONFIG_HEADERS" 42466 42467 42468eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 42469shift 42470for ac_tag 42471do 42472 case $ac_tag in 42473 :[FHLC]) ac_mode=$ac_tag; continue;; 42474 esac 42475 case $ac_mode$ac_tag in 42476 :[FHL]*:*);; 42477 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 42478 :[FH]-) ac_tag=-:-;; 42479 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 42480 esac 42481 ac_save_IFS=$IFS 42482 IFS=: 42483 set x $ac_tag 42484 IFS=$ac_save_IFS 42485 shift 42486 ac_file=$1 42487 shift 42488 42489 case $ac_mode in 42490 :L) ac_source=$1;; 42491 :[FH]) 42492 ac_file_inputs= 42493 for ac_f 42494 do 42495 case $ac_f in 42496 -) ac_f="$ac_tmp/stdin";; 42497 *) # Look for the file first in the build tree, then in the source tree 42498 # (if the path is not absolute). The absolute path cannot be DOS-style, 42499 # because $ac_f cannot contain `:'. 42500 test -f "$ac_f" || 42501 case $ac_f in 42502 [\\/$]*) false;; 42503 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 42504 esac || 42505 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 42506 esac 42507 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 42508 as_fn_append ac_file_inputs " '$ac_f'" 42509 done 42510 42511 # Let's still pretend it is `configure' which instantiates (i.e., don't 42512 # use $as_me), people would be surprised to read: 42513 # /* config.h. Generated by config.status. */ 42514 configure_input='Generated from '` 42515 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 42516 `' by configure.' 42517 if test x"$ac_file" != x-; then 42518 configure_input="$ac_file. $configure_input" 42519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 42520$as_echo "$as_me: creating $ac_file" >&6;} 42521 fi 42522 # Neutralize special characters interpreted by sed in replacement strings. 42523 case $configure_input in #( 42524 *\&* | *\|* | *\\* ) 42525 ac_sed_conf_input=`$as_echo "$configure_input" | 42526 sed 's/[\\\\&|]/\\\\&/g'`;; #( 42527 *) ac_sed_conf_input=$configure_input;; 42528 esac 42529 42530 case $ac_tag in 42531 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 42532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 42533 esac 42534 ;; 42535 esac 42536 42537 ac_dir=`$as_dirname -- "$ac_file" || 42538$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 42539 X"$ac_file" : 'X\(//\)[^/]' \| \ 42540 X"$ac_file" : 'X\(//\)$' \| \ 42541 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 42542$as_echo X"$ac_file" | 42543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 42544 s//\1/ 42545 q 42546 } 42547 /^X\(\/\/\)[^/].*/{ 42548 s//\1/ 42549 q 42550 } 42551 /^X\(\/\/\)$/{ 42552 s//\1/ 42553 q 42554 } 42555 /^X\(\/\).*/{ 42556 s//\1/ 42557 q 42558 } 42559 s/.*/./; q'` 42560 as_dir="$ac_dir"; as_fn_mkdir_p 42561 ac_builddir=. 42562 42563case "$ac_dir" in 42564.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 42565*) 42566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 42567 # A ".." for each directory in $ac_dir_suffix. 42568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 42569 case $ac_top_builddir_sub in 42570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 42571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 42572 esac ;; 42573esac 42574ac_abs_top_builddir=$ac_pwd 42575ac_abs_builddir=$ac_pwd$ac_dir_suffix 42576# for backward compatibility: 42577ac_top_builddir=$ac_top_build_prefix 42578 42579case $srcdir in 42580 .) # We are building in place. 42581 ac_srcdir=. 42582 ac_top_srcdir=$ac_top_builddir_sub 42583 ac_abs_top_srcdir=$ac_pwd ;; 42584 [\\/]* | ?:[\\/]* ) # Absolute name. 42585 ac_srcdir=$srcdir$ac_dir_suffix; 42586 ac_top_srcdir=$srcdir 42587 ac_abs_top_srcdir=$srcdir ;; 42588 *) # Relative name. 42589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 42590 ac_top_srcdir=$ac_top_build_prefix$srcdir 42591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 42592esac 42593ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 42594 42595 42596 case $ac_mode in 42597 :F) 42598 # 42599 # CONFIG_FILE 42600 # 42601 42602 case $INSTALL in 42603 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 42604 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 42605 esac 42606 ac_MKDIR_P=$MKDIR_P 42607 case $MKDIR_P in 42608 [\\/$]* | ?:[\\/]* ) ;; 42609 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 42610 esac 42611_ACEOF 42612 42613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42614# If the template does not know about datarootdir, expand it. 42615# FIXME: This hack should be removed a few years after 2.60. 42616ac_datarootdir_hack=; ac_datarootdir_seen= 42617ac_sed_dataroot=' 42618/datarootdir/ { 42619 p 42620 q 42621} 42622/@datadir@/p 42623/@docdir@/p 42624/@infodir@/p 42625/@localedir@/p 42626/@mandir@/p' 42627case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 42628*datarootdir*) ac_datarootdir_seen=yes;; 42629*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 42630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 42631$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 42632_ACEOF 42633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42634 ac_datarootdir_hack=' 42635 s&@datadir@&$datadir&g 42636 s&@docdir@&$docdir&g 42637 s&@infodir@&$infodir&g 42638 s&@localedir@&$localedir&g 42639 s&@mandir@&$mandir&g 42640 s&\\\${datarootdir}&$datarootdir&g' ;; 42641esac 42642_ACEOF 42643 42644# Neutralize VPATH when `$srcdir' = `.'. 42645# Shell code in configure.ac might set extrasub. 42646# FIXME: do we really want to maintain this feature? 42647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 42648ac_sed_extra="$ac_vpsub 42649$extrasub 42650_ACEOF 42651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 42652:t 42653/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 42654s|@configure_input@|$ac_sed_conf_input|;t t 42655s&@top_builddir@&$ac_top_builddir_sub&;t t 42656s&@top_build_prefix@&$ac_top_build_prefix&;t t 42657s&@srcdir@&$ac_srcdir&;t t 42658s&@abs_srcdir@&$ac_abs_srcdir&;t t 42659s&@top_srcdir@&$ac_top_srcdir&;t t 42660s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 42661s&@builddir@&$ac_builddir&;t t 42662s&@abs_builddir@&$ac_abs_builddir&;t t 42663s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 42664s&@INSTALL@&$ac_INSTALL&;t t 42665s&@MKDIR_P@&$ac_MKDIR_P&;t t 42666$ac_datarootdir_hack 42667" 42668eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 42669 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 42670 42671test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 42672 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 42673 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 42674 "$ac_tmp/out"`; test -z "$ac_out"; } && 42675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 42676which seems to be undefined. Please make sure it is defined" >&5 42677$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 42678which seems to be undefined. Please make sure it is defined" >&2;} 42679 42680 rm -f "$ac_tmp/stdin" 42681 case $ac_file in 42682 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 42683 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 42684 esac \ 42685 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 42686 ;; 42687 :H) 42688 # 42689 # CONFIG_HEADER 42690 # 42691 if test x"$ac_file" != x-; then 42692 { 42693 $as_echo "/* $configure_input */" \ 42694 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 42695 } >"$ac_tmp/config.h" \ 42696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 42697 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 42698 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 42699$as_echo "$as_me: $ac_file is unchanged" >&6;} 42700 else 42701 rm -f "$ac_file" 42702 mv "$ac_tmp/config.h" "$ac_file" \ 42703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 42704 fi 42705 else 42706 $as_echo "/* $configure_input */" \ 42707 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 42708 || as_fn_error $? "could not create -" "$LINENO" 5 42709 fi 42710# Compute "$ac_file"'s index in $config_headers. 42711_am_arg="$ac_file" 42712_am_stamp_count=1 42713for _am_header in $config_headers :; do 42714 case $_am_header in 42715 $_am_arg | $_am_arg:* ) 42716 break ;; 42717 * ) 42718 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 42719 esac 42720done 42721echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 42722$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 42723 X"$_am_arg" : 'X\(//\)[^/]' \| \ 42724 X"$_am_arg" : 'X\(//\)$' \| \ 42725 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 42726$as_echo X"$_am_arg" | 42727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 42728 s//\1/ 42729 q 42730 } 42731 /^X\(\/\/\)[^/].*/{ 42732 s//\1/ 42733 q 42734 } 42735 /^X\(\/\/\)$/{ 42736 s//\1/ 42737 q 42738 } 42739 /^X\(\/\).*/{ 42740 s//\1/ 42741 q 42742 } 42743 s/.*/./; q'`/stamp-h$_am_stamp_count 42744 ;; 42745 :L) 42746 # 42747 # CONFIG_LINK 42748 # 42749 42750 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 42751 : 42752 else 42753 # Prefer the file from the source tree if names are identical. 42754 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 42755 ac_source=$srcdir/$ac_source 42756 fi 42757 42758 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 42759$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 42760 42761 if test ! -r "$ac_source"; then 42762 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 42763 fi 42764 rm -f "$ac_file" 42765 42766 # Try a relative symlink, then a hard link, then a copy. 42767 case $ac_source in 42768 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 42769 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 42770 esac 42771 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 42772 ln "$ac_source" "$ac_file" 2>/dev/null || 42773 cp -p "$ac_source" "$ac_file" || 42774 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 42775 fi 42776 ;; 42777 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 42778$as_echo "$as_me: executing $ac_file commands" >&6;} 42779 ;; 42780 esac 42781 42782 42783 case $ac_file$ac_mode in 42784 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 42785 # Older Autoconf quotes --file arguments for eval, but not when files 42786 # are listed without --file. Let's play safe and only enable the eval 42787 # if we detect the quoting. 42788 case $CONFIG_FILES in 42789 *\'*) eval set x "$CONFIG_FILES" ;; 42790 *) set x $CONFIG_FILES ;; 42791 esac 42792 shift 42793 for mf 42794 do 42795 # Strip MF so we end up with the name of the file. 42796 mf=`echo "$mf" | sed -e 's/:.*$//'` 42797 # Check whether this is an Automake generated Makefile or not. 42798 # We used to match only the files named 'Makefile.in', but 42799 # some people rename them; so instead we look at the file content. 42800 # Grep'ing the first line is not enough: some people post-process 42801 # each Makefile.in and add a new line on top of each file to say so. 42802 # Grep'ing the whole file is not good either: AIX grep has a line 42803 # limit of 2048, but all sed's we know have understand at least 4000. 42804 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 42805 dirpart=`$as_dirname -- "$mf" || 42806$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 42807 X"$mf" : 'X\(//\)[^/]' \| \ 42808 X"$mf" : 'X\(//\)$' \| \ 42809 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 42810$as_echo X"$mf" | 42811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 42812 s//\1/ 42813 q 42814 } 42815 /^X\(\/\/\)[^/].*/{ 42816 s//\1/ 42817 q 42818 } 42819 /^X\(\/\/\)$/{ 42820 s//\1/ 42821 q 42822 } 42823 /^X\(\/\).*/{ 42824 s//\1/ 42825 q 42826 } 42827 s/.*/./; q'` 42828 else 42829 continue 42830 fi 42831 # Extract the definition of DEPDIR, am__include, and am__quote 42832 # from the Makefile without running 'make'. 42833 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 42834 test -z "$DEPDIR" && continue 42835 am__include=`sed -n 's/^am__include = //p' < "$mf"` 42836 test -z "$am__include" && continue 42837 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 42838 # Find all dependency output files, they are included files with 42839 # $(DEPDIR) in their names. We invoke sed twice because it is the 42840 # simplest approach to changing $(DEPDIR) to its actual value in the 42841 # expansion. 42842 for file in `sed -n " 42843 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 42844 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 42845 # Make sure the directory exists. 42846 test -f "$dirpart/$file" && continue 42847 fdir=`$as_dirname -- "$file" || 42848$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 42849 X"$file" : 'X\(//\)[^/]' \| \ 42850 X"$file" : 'X\(//\)$' \| \ 42851 X"$file" : 'X\(/\)' \| . 2>/dev/null || 42852$as_echo X"$file" | 42853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 42854 s//\1/ 42855 q 42856 } 42857 /^X\(\/\/\)[^/].*/{ 42858 s//\1/ 42859 q 42860 } 42861 /^X\(\/\/\)$/{ 42862 s//\1/ 42863 q 42864 } 42865 /^X\(\/\).*/{ 42866 s//\1/ 42867 q 42868 } 42869 s/.*/./; q'` 42870 as_dir=$dirpart/$fdir; as_fn_mkdir_p 42871 # echo "creating $dirpart/$file" 42872 echo '# dummy' > "$dirpart/$file" 42873 done 42874 done 42875} 42876 ;; 42877 "libtool":C) 42878 42879 # See if we are running on zsh, and set the options that allow our 42880 # commands through without removal of \ escapes. 42881 if test -n "${ZSH_VERSION+set}"; then 42882 setopt NO_GLOB_SUBST 42883 fi 42884 42885 cfgfile=${ofile}T 42886 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 42887 $RM "$cfgfile" 42888 42889 cat <<_LT_EOF >> "$cfgfile" 42890#! $SHELL 42891# Generated automatically by $as_me ($PACKAGE) $VERSION 42892# NOTE: Changes made to this file will be lost: look at ltmain.sh. 42893 42894# Provide generalized library-building support services. 42895# Written by Gordon Matzigkeit, 1996 42896 42897# Copyright (C) 2014 Free Software Foundation, Inc. 42898# This is free software; see the source for copying conditions. There is NO 42899# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 42900 42901# GNU Libtool is free software; you can redistribute it and/or modify 42902# it under the terms of the GNU General Public License as published by 42903# the Free Software Foundation; either version 2 of of the License, or 42904# (at your option) any later version. 42905# 42906# As a special exception to the GNU General Public License, if you 42907# distribute this file as part of a program or library that is built 42908# using GNU Libtool, you may include this file under the same 42909# distribution terms that you use for the rest of that program. 42910# 42911# GNU Libtool is distributed in the hope that it will be useful, but 42912# WITHOUT ANY WARRANTY; without even the implied warranty of 42913# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 42914# GNU General Public License for more details. 42915# 42916# You should have received a copy of the GNU General Public License 42917# along with this program. If not, see <http://www.gnu.org/licenses/>. 42918 42919 42920# The names of the tagged configurations supported by this script. 42921available_tags='' 42922 42923# Configured defaults for sys_lib_dlsearch_path munging. 42924: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 42925 42926# ### BEGIN LIBTOOL CONFIG 42927 42928# Which release of libtool.m4 was used? 42929macro_version=$macro_version 42930macro_revision=$macro_revision 42931 42932# Assembler program. 42933AS=$lt_AS 42934 42935# DLL creation program. 42936DLLTOOL=$lt_DLLTOOL 42937 42938# Object dumper program. 42939OBJDUMP=$lt_OBJDUMP 42940 42941# Whether or not to build shared libraries. 42942build_libtool_libs=$enable_shared 42943 42944# Whether or not to build static libraries. 42945build_old_libs=$enable_static 42946 42947# What type of objects to build. 42948pic_mode=$pic_mode 42949 42950# Whether or not to optimize for fast installation. 42951fast_install=$enable_fast_install 42952 42953# Shared archive member basename,for filename based shared library versioning on AIX. 42954shared_archive_member_spec=$shared_archive_member_spec 42955 42956# Shell to use when invoking shell scripts. 42957SHELL=$lt_SHELL 42958 42959# An echo program that protects backslashes. 42960ECHO=$lt_ECHO 42961 42962# The PATH separator for the build system. 42963PATH_SEPARATOR=$lt_PATH_SEPARATOR 42964 42965# The host system. 42966host_alias=$host_alias 42967host=$host 42968host_os=$host_os 42969 42970# The build system. 42971build_alias=$build_alias 42972build=$build 42973build_os=$build_os 42974 42975# A sed program that does not truncate output. 42976SED=$lt_SED 42977 42978# Sed that helps us avoid accidentally triggering echo(1) options like -n. 42979Xsed="\$SED -e 1s/^X//" 42980 42981# A grep program that handles long lines. 42982GREP=$lt_GREP 42983 42984# An ERE matcher. 42985EGREP=$lt_EGREP 42986 42987# A literal string matcher. 42988FGREP=$lt_FGREP 42989 42990# A BSD- or MS-compatible name lister. 42991NM=$lt_NM 42992 42993# Whether we need soft or hard links. 42994LN_S=$lt_LN_S 42995 42996# What is the maximum length of a command? 42997max_cmd_len=$max_cmd_len 42998 42999# Object file suffix (normally "o"). 43000objext=$ac_objext 43001 43002# Executable file suffix (normally ""). 43003exeext=$exeext 43004 43005# whether the shell understands "unset". 43006lt_unset=$lt_unset 43007 43008# turn spaces into newlines. 43009SP2NL=$lt_lt_SP2NL 43010 43011# turn newlines into spaces. 43012NL2SP=$lt_lt_NL2SP 43013 43014# convert \$build file names to \$host format. 43015to_host_file_cmd=$lt_cv_to_host_file_cmd 43016 43017# convert \$build files to toolchain format. 43018to_tool_file_cmd=$lt_cv_to_tool_file_cmd 43019 43020# Method to check whether dependent libraries are shared objects. 43021deplibs_check_method=$lt_deplibs_check_method 43022 43023# Command to use when deplibs_check_method = "file_magic". 43024file_magic_cmd=$lt_file_magic_cmd 43025 43026# How to find potential files when deplibs_check_method = "file_magic". 43027file_magic_glob=$lt_file_magic_glob 43028 43029# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 43030want_nocaseglob=$lt_want_nocaseglob 43031 43032# Command to associate shared and link libraries. 43033sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 43034 43035# The archiver. 43036AR=$lt_AR 43037 43038# Flags to create an archive. 43039AR_FLAGS=$lt_AR_FLAGS 43040 43041# How to feed a file listing to the archiver. 43042archiver_list_spec=$lt_archiver_list_spec 43043 43044# A symbol stripping program. 43045STRIP=$lt_STRIP 43046 43047# Commands used to install an old-style archive. 43048RANLIB=$lt_RANLIB 43049old_postinstall_cmds=$lt_old_postinstall_cmds 43050old_postuninstall_cmds=$lt_old_postuninstall_cmds 43051 43052# Whether to use a lock for old archive extraction. 43053lock_old_archive_extraction=$lock_old_archive_extraction 43054 43055# A C compiler. 43056LTCC=$lt_CC 43057 43058# LTCC compiler flags. 43059LTCFLAGS=$lt_CFLAGS 43060 43061# Take the output of nm and produce a listing of raw symbols and C names. 43062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 43063 43064# Transform the output of nm in a proper C declaration. 43065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 43066 43067# Transform the output of nm into a list of symbols to manually relocate. 43068global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 43069 43070# Transform the output of nm in a C name address pair. 43071global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 43072 43073# Transform the output of nm in a C name address pair when lib prefix is needed. 43074global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 43075 43076# The name lister interface. 43077nm_interface=$lt_lt_cv_nm_interface 43078 43079# Specify filename containing input files for \$NM. 43080nm_file_list_spec=$lt_nm_file_list_spec 43081 43082# The root where to search for dependent libraries,and where our libraries should be installed. 43083lt_sysroot=$lt_sysroot 43084 43085# Command to truncate a binary pipe. 43086lt_truncate_bin=$lt_lt_cv_truncate_bin 43087 43088# The name of the directory that contains temporary libtool files. 43089objdir=$objdir 43090 43091# Used to examine libraries when file_magic_cmd begins with "file". 43092MAGIC_CMD=$MAGIC_CMD 43093 43094# Must we lock files when doing compilation? 43095need_locks=$lt_need_locks 43096 43097# Manifest tool. 43098MANIFEST_TOOL=$lt_MANIFEST_TOOL 43099 43100# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 43101DSYMUTIL=$lt_DSYMUTIL 43102 43103# Tool to change global to local symbols on Mac OS X. 43104NMEDIT=$lt_NMEDIT 43105 43106# Tool to manipulate fat objects and archives on Mac OS X. 43107LIPO=$lt_LIPO 43108 43109# ldd/readelf like tool for Mach-O binaries on Mac OS X. 43110OTOOL=$lt_OTOOL 43111 43112# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 43113OTOOL64=$lt_OTOOL64 43114 43115# Old archive suffix (normally "a"). 43116libext=$libext 43117 43118# Shared library suffix (normally ".so"). 43119shrext_cmds=$lt_shrext_cmds 43120 43121# The commands to extract the exported symbol list from a shared archive. 43122extract_expsyms_cmds=$lt_extract_expsyms_cmds 43123 43124# Variables whose values should be saved in libtool wrapper scripts and 43125# restored at link time. 43126variables_saved_for_relink=$lt_variables_saved_for_relink 43127 43128# Do we need the "lib" prefix for modules? 43129need_lib_prefix=$need_lib_prefix 43130 43131# Do we need a version for libraries? 43132need_version=$need_version 43133 43134# Library versioning type. 43135version_type=$version_type 43136 43137# Shared library runtime path variable. 43138runpath_var=$runpath_var 43139 43140# Shared library path variable. 43141shlibpath_var=$shlibpath_var 43142 43143# Is shlibpath searched before the hard-coded library search path? 43144shlibpath_overrides_runpath=$shlibpath_overrides_runpath 43145 43146# Format of library name prefix. 43147libname_spec=$lt_libname_spec 43148 43149# List of archive names. First name is the real one, the rest are links. 43150# The last name is the one that the linker finds with -lNAME 43151library_names_spec=$lt_library_names_spec 43152 43153# The coded name of the library, if different from the real name. 43154soname_spec=$lt_soname_spec 43155 43156# Permission mode override for installation of shared libraries. 43157install_override_mode=$lt_install_override_mode 43158 43159# Command to use after installation of a shared archive. 43160postinstall_cmds=$lt_postinstall_cmds 43161 43162# Command to use after uninstallation of a shared archive. 43163postuninstall_cmds=$lt_postuninstall_cmds 43164 43165# Commands used to finish a libtool library installation in a directory. 43166finish_cmds=$lt_finish_cmds 43167 43168# As "finish_cmds", except a single script fragment to be evaled but 43169# not shown. 43170finish_eval=$lt_finish_eval 43171 43172# Whether we should hardcode library paths into libraries. 43173hardcode_into_libs=$hardcode_into_libs 43174 43175# Compile-time system search path for libraries. 43176sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 43177 43178# Detected run-time system search path for libraries. 43179sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 43180 43181# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 43182configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 43183 43184# Whether dlopen is supported. 43185dlopen_support=$enable_dlopen 43186 43187# Whether dlopen of programs is supported. 43188dlopen_self=$enable_dlopen_self 43189 43190# Whether dlopen of statically linked programs is supported. 43191dlopen_self_static=$enable_dlopen_self_static 43192 43193# Commands to strip libraries. 43194old_striplib=$lt_old_striplib 43195striplib=$lt_striplib 43196 43197 43198# The linker used to build libraries. 43199LD=$lt_LD 43200 43201# How to create reloadable object files. 43202reload_flag=$lt_reload_flag 43203reload_cmds=$lt_reload_cmds 43204 43205# Commands used to build an old-style archive. 43206old_archive_cmds=$lt_old_archive_cmds 43207 43208# A language specific compiler. 43209CC=$lt_compiler 43210 43211# Is the compiler the GNU compiler? 43212with_gcc=$GCC 43213 43214# Compiler flag to turn off builtin functions. 43215no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 43216 43217# Additional compiler flags for building library objects. 43218pic_flag=$lt_lt_prog_compiler_pic 43219 43220# How to pass a linker flag through the compiler. 43221wl=$lt_lt_prog_compiler_wl 43222 43223# Compiler flag to prevent dynamic linking. 43224link_static_flag=$lt_lt_prog_compiler_static 43225 43226# Does compiler simultaneously support -c and -o options? 43227compiler_c_o=$lt_lt_cv_prog_compiler_c_o 43228 43229# Whether or not to add -lc for building shared libraries. 43230build_libtool_need_lc=$archive_cmds_need_lc 43231 43232# Whether or not to disallow shared libs when runtime libs are static. 43233allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 43234 43235# Compiler flag to allow reflexive dlopens. 43236export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 43237 43238# Compiler flag to generate shared objects directly from archives. 43239whole_archive_flag_spec=$lt_whole_archive_flag_spec 43240 43241# Whether the compiler copes with passing no objects directly. 43242compiler_needs_object=$lt_compiler_needs_object 43243 43244# Create an old-style archive from a shared archive. 43245old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 43246 43247# Create a temporary old-style archive to link instead of a shared archive. 43248old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 43249 43250# Commands used to build a shared archive. 43251archive_cmds=$lt_archive_cmds 43252archive_expsym_cmds=$lt_archive_expsym_cmds 43253 43254# Commands used to build a loadable module if different from building 43255# a shared archive. 43256module_cmds=$lt_module_cmds 43257module_expsym_cmds=$lt_module_expsym_cmds 43258 43259# Whether we are building with GNU ld or not. 43260with_gnu_ld=$lt_with_gnu_ld 43261 43262# Flag that allows shared libraries with undefined symbols to be built. 43263allow_undefined_flag=$lt_allow_undefined_flag 43264 43265# Flag that enforces no undefined symbols. 43266no_undefined_flag=$lt_no_undefined_flag 43267 43268# Flag to hardcode \$libdir into a binary during linking. 43269# This must work even if \$libdir does not exist 43270hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 43271 43272# Whether we need a single "-rpath" flag with a separated argument. 43273hardcode_libdir_separator=$lt_hardcode_libdir_separator 43274 43275# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 43276# DIR into the resulting binary. 43277hardcode_direct=$hardcode_direct 43278 43279# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 43280# DIR into the resulting binary and the resulting library dependency is 43281# "absolute",i.e impossible to change by setting \$shlibpath_var if the 43282# library is relocated. 43283hardcode_direct_absolute=$hardcode_direct_absolute 43284 43285# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 43286# into the resulting binary. 43287hardcode_minus_L=$hardcode_minus_L 43288 43289# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 43290# into the resulting binary. 43291hardcode_shlibpath_var=$hardcode_shlibpath_var 43292 43293# Set to "yes" if building a shared library automatically hardcodes DIR 43294# into the library and all subsequent libraries and executables linked 43295# against it. 43296hardcode_automatic=$hardcode_automatic 43297 43298# Set to yes if linker adds runtime paths of dependent libraries 43299# to runtime path list. 43300inherit_rpath=$inherit_rpath 43301 43302# Whether libtool must link a program against all its dependency libraries. 43303link_all_deplibs=$link_all_deplibs 43304 43305# Set to "yes" if exported symbols are required. 43306always_export_symbols=$always_export_symbols 43307 43308# The commands to list exported symbols. 43309export_symbols_cmds=$lt_export_symbols_cmds 43310 43311# Symbols that should not be listed in the preloaded symbols. 43312exclude_expsyms=$lt_exclude_expsyms 43313 43314# Symbols that must always be exported. 43315include_expsyms=$lt_include_expsyms 43316 43317# Commands necessary for linking programs (against libraries) with templates. 43318prelink_cmds=$lt_prelink_cmds 43319 43320# Commands necessary for finishing linking programs. 43321postlink_cmds=$lt_postlink_cmds 43322 43323# Specify filename containing input files. 43324file_list_spec=$lt_file_list_spec 43325 43326# How to hardcode a shared library path into an executable. 43327hardcode_action=$hardcode_action 43328 43329# ### END LIBTOOL CONFIG 43330 43331_LT_EOF 43332 43333 cat <<'_LT_EOF' >> "$cfgfile" 43334 43335# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 43336 43337# func_munge_path_list VARIABLE PATH 43338# ----------------------------------- 43339# VARIABLE is name of variable containing _space_ separated list of 43340# directories to be munged by the contents of PATH, which is string 43341# having a format: 43342# "DIR[:DIR]:" 43343# string "DIR[ DIR]" will be prepended to VARIABLE 43344# ":DIR[:DIR]" 43345# string "DIR[ DIR]" will be appended to VARIABLE 43346# "DIRP[:DIRP]::[DIRA:]DIRA" 43347# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 43348# "DIRA[ DIRA]" will be appended to VARIABLE 43349# "DIR[:DIR]" 43350# VARIABLE will be replaced by "DIR[ DIR]" 43351func_munge_path_list () 43352{ 43353 case x$2 in 43354 x) 43355 ;; 43356 *:) 43357 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 43358 ;; 43359 x:*) 43360 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 43361 ;; 43362 *::*) 43363 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 43364 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 43365 ;; 43366 *) 43367 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 43368 ;; 43369 esac 43370} 43371 43372 43373# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 43374func_cc_basename () 43375{ 43376 for cc_temp in $*""; do 43377 case $cc_temp in 43378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 43379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 43380 \-*) ;; 43381 *) break;; 43382 esac 43383 done 43384 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 43385} 43386 43387 43388# ### END FUNCTIONS SHARED WITH CONFIGURE 43389 43390_LT_EOF 43391 43392 case $host_os in 43393 aix3*) 43394 cat <<\_LT_EOF >> "$cfgfile" 43395# AIX sometimes has problems with the GCC collect2 program. For some 43396# reason, if we set the COLLECT_NAMES environment variable, the problems 43397# vanish in a puff of smoke. 43398if test set != "${COLLECT_NAMES+set}"; then 43399 COLLECT_NAMES= 43400 export COLLECT_NAMES 43401fi 43402_LT_EOF 43403 ;; 43404 esac 43405 43406 43407ltmain=$ac_aux_dir/ltmain.sh 43408 43409 43410 # We use sed instead of cat because bash on DJGPP gets confused if 43411 # if finds mixed CR/LF and LF-only lines. Since sed operates in 43412 # text mode, it properly converts lines to CR/LF. This bash problem 43413 # is reportedly fixed, but why not run on old versions too? 43414 sed '$q' "$ltmain" >> "$cfgfile" \ 43415 || (rm -f "$cfgfile"; exit 1) 43416 43417 mv -f "$cfgfile" "$ofile" || 43418 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 43419 chmod +x "$ofile" 43420 43421 ;; 43422 "po-directories":C) 43423 for ac_file in $CONFIG_FILES; do 43424 # Support "outfile[:infile[:infile...]]" 43425 case "$ac_file" in 43426 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 43427 esac 43428 # PO directories have a Makefile.in generated from Makefile.in.in. 43429 case "$ac_file" in */Makefile.in) 43430 # Adjust a relative srcdir. 43431 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 43432 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 43433 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 43434 # In autoconf-2.13 it is called $ac_given_srcdir. 43435 # In autoconf-2.50 it is called $srcdir. 43436 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 43437 case "$ac_given_srcdir" in 43438 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 43439 /*) top_srcdir="$ac_given_srcdir" ;; 43440 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 43441 esac 43442 # Treat a directory as a PO directory if and only if it has a 43443 # POTFILES.in file. This allows packages to have multiple PO 43444 # directories under different names or in different locations. 43445 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 43446 rm -f "$ac_dir/POTFILES" 43447 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 43448 gt_tab=`printf '\t'` 43449 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" 43450 POMAKEFILEDEPS="POTFILES.in" 43451 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 43452 # on $ac_dir but don't depend on user-specified configuration 43453 # parameters. 43454 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 43455 # The LINGUAS file contains the set of available languages. 43456 if test -n "$OBSOLETE_ALL_LINGUAS"; then 43457 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 43458 fi 43459 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 43460 # Hide the ALL_LINGUAS assignment from automake < 1.5. 43461 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 43462 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 43463 else 43464 # The set of available languages was given in configure.in. 43465 # Hide the ALL_LINGUAS assignment from automake < 1.5. 43466 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 43467 fi 43468 # Compute POFILES 43469 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 43470 # Compute UPDATEPOFILES 43471 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 43472 # Compute DUMMYPOFILES 43473 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 43474 # Compute GMOFILES 43475 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 43476 case "$ac_given_srcdir" in 43477 .) srcdirpre= ;; 43478 *) srcdirpre='$(srcdir)/' ;; 43479 esac 43480 POFILES= 43481 UPDATEPOFILES= 43482 DUMMYPOFILES= 43483 GMOFILES= 43484 for lang in $ALL_LINGUAS; do 43485 POFILES="$POFILES $srcdirpre$lang.po" 43486 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 43487 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 43488 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 43489 done 43490 # CATALOGS depends on both $ac_dir and the user's LINGUAS 43491 # environment variable. 43492 INST_LINGUAS= 43493 if test -n "$ALL_LINGUAS"; then 43494 for presentlang in $ALL_LINGUAS; do 43495 useit=no 43496 if test "%UNSET%" != "$LINGUAS"; then 43497 desiredlanguages="$LINGUAS" 43498 else 43499 desiredlanguages="$ALL_LINGUAS" 43500 fi 43501 for desiredlang in $desiredlanguages; do 43502 # Use the presentlang catalog if desiredlang is 43503 # a. equal to presentlang, or 43504 # b. a variant of presentlang (because in this case, 43505 # presentlang can be used as a fallback for messages 43506 # which are not translated in the desiredlang catalog). 43507 case "$desiredlang" in 43508 "$presentlang"*) useit=yes;; 43509 esac 43510 done 43511 if test $useit = yes; then 43512 INST_LINGUAS="$INST_LINGUAS $presentlang" 43513 fi 43514 done 43515 fi 43516 CATALOGS= 43517 if test -n "$INST_LINGUAS"; then 43518 for lang in $INST_LINGUAS; do 43519 CATALOGS="$CATALOGS $lang.gmo" 43520 done 43521 fi 43522 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 43523 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" 43524 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 43525 if test -f "$f"; then 43526 case "$f" in 43527 *.orig | *.bak | *~) ;; 43528 *) cat "$f" >> "$ac_dir/Makefile" ;; 43529 esac 43530 fi 43531 done 43532 fi 43533 ;; 43534 esac 43535 done ;; 43536 43537 esac 43538done # for ac_tag 43539 43540 43541as_fn_exit 0 43542_ACEOF 43543ac_clean_files=$ac_clean_files_save 43544 43545test $ac_write_fail = 0 || 43546 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 43547 43548 43549# configure is writing to config.log, and then calls config.status. 43550# config.status does its own redirection, appending to config.log. 43551# Unfortunately, on DOS this fails, as config.log is still kept open 43552# by configure, so config.status won't be able to write to it; its 43553# output is simply discarded. So we exec the FD to /dev/null, 43554# effectively closing config.log, so it can be properly (re)opened and 43555# appended to by config.status. When coming back to configure, we 43556# need to make the FD available again. 43557if test "$no_create" != yes; then 43558 ac_cs_success=: 43559 ac_config_status_args= 43560 test "$silent" = yes && 43561 ac_config_status_args="$ac_config_status_args --quiet" 43562 exec 5>/dev/null 43563 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 43564 exec 5>>config.log 43565 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 43566 # would make configure fail if this is the last instruction. 43567 $ac_cs_success || as_fn_exit 1 43568fi 43569if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 43570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 43571$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 43572fi 43573 43574 43575{ $as_echo "$as_me:${as_lineno-$LINENO}: summary of build options: 43576 43577 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE 43578 Host type: ${host} 43579 Install prefix: ${prefix} 43580 Compiler: ${CC} 43581 Compiler flags: ${CFLAGS} 43582 Warning flags: ${WARN_CFLAGS} 43583 Library types: Shared=${enable_shared}, Static=${enable_static} 43584 Libiconv: $am_cv_func_iconv 43585 Valgrind: ${VALGRIND} 43586 Version script: $have_ld_version_script 43587 Documentation: $enable_doc 43588 TLD code: $enable_tld 43589 Build Java port: $enable_java 43590 Build C# port: $enable_csharp 43591 Address Sanitizer: $asan 43592 UB Sanitizer: $ubsan 43593" >&5 43594$as_echo "$as_me: summary of build options: 43595 43596 version: ${VERSION} shared $LT_CURRENT:$LT_REVISION:$LT_AGE 43597 Host type: ${host} 43598 Install prefix: ${prefix} 43599 Compiler: ${CC} 43600 Compiler flags: ${CFLAGS} 43601 Warning flags: ${WARN_CFLAGS} 43602 Library types: Shared=${enable_shared}, Static=${enable_static} 43603 Libiconv: $am_cv_func_iconv 43604 Valgrind: ${VALGRIND} 43605 Version script: $have_ld_version_script 43606 Documentation: $enable_doc 43607 TLD code: $enable_tld 43608 Build Java port: $enable_java 43609 Build C# port: $enable_csharp 43610 Address Sanitizer: $asan 43611 UB Sanitizer: $ubsan 43612" >&6;} 43613